@waline/client 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.esm.js +1 -1
- package/dist/component.js +1 -1
- package/dist/legacy.js +1 -1
- package/dist/legacy.js.map +1 -1
- package/dist/pageview.cjs.js +1 -1
- package/dist/pageview.cjs.js.map +1 -1
- package/dist/pageview.esm.js +1 -1
- package/dist/pageview.esm.js.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/shim.esm.js +1 -1
- package/dist/shim.esm.js.map +1 -1
- package/dist/shim.js +1 -1
- package/dist/shim.js.map +1 -1
- package/dist/waline.cjs.js +1 -1
- package/dist/waline.cjs.js.map +1 -1
- package/dist/waline.esm.js +1 -1
- package/dist/waline.esm.js.map +1 -1
- package/dist/waline.js +1 -1
- package/dist/waline.js.map +1 -1
- package/package.json +5 -5
- package/src/pageview.ts +5 -1
package/dist/waline.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=e=>new Promise(((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),r=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',l=()=>{const e={next:""},t=({keyword:e,pos:t})=>{const n=new URLSearchParams("media_filter=minimal");return n.set("key","PAY5JLFIH6V6"),n.set("limit","20"),n.set("pos",t||""),n.set("q",e),fetch(`https://g.tenor.com/v1/search?${n.toString()}`,{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:t||"",results:[]})))};return{search:(n="")=>t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url})))))),more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},o=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),i=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],s={},a=e=>{let t=0;return e.replace(o,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"<";let l;s[n]?l=s[n]:(l=i[t],s[n]=l);const o=`<span style="color: #${l}">${n}</span>`;return t=++t%i.length,o}))},c=["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"],u=e=>Object.fromEntries(e.map(((e,t)=>[c[t],e])));var p=u(["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!\n Current word number: $2","Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF"]),d=u(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF"]),h=u(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包"]),f=u(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包"]),g=u(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF"]),m=u(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF"]);const v={zh:h,"zh-cn":h,"zh-CN":h,"zh-tw":f,"zh-TW":f,en:p,"en-US":p,"en-us":p,jp:d,"jp-jp":d,"jp-JP":d,"pt-br":g,"pt-BR":g,ru:m,"ru-ru":m,"ru-RU":m};function y(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const w=y("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function k(e){return!!e||""===e}function b(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=q(r)?$(r):b(r);if(l)for(const e in l)t[e]=l[e]}return t}return q(e)||G(e)?e:void 0}const x=/;(?![^(]*\))/g,_=/:(.+)/;function $(e){const t={};return e.split(x).forEach((e=>{if(e){const n=e.split(_);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function S(e){let t="";if(q(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=S(e[n]);r&&(t+=r+" ")}else if(G(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function C(e,t){if(e===t)return!0;let n=H(e),r=H(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=Z(e),r=Z(t),n||r)return e===t;if(n=V(e),r=V(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=C(e[r],t[r]);return n}(e,t);if(n=G(e),r=G(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(r&&!l||!r&&l||!C(e[n],t[n]))return!1}}return String(e)===String(t)}function I(e,t){return e.findIndex((e=>C(e,t)))}const z=e=>q(e)?e:null==e?"":V(e)||G(e)&&(e.toString===K||!W(e.toString))?JSON.stringify(e,R,2):String(e),R=(e,t)=>t&&t.__v_isRef?R(e,t.value):B(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()]}:!G(t)||V(t)||Y(t)?t:String(t),E={},A=[],L=()=>{},T=()=>!1,j=/^on[^a-z]/,O=e=>j.test(e),U=e=>e.startsWith("onUpdate:"),M=Object.assign,P=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},N=Object.prototype.hasOwnProperty,F=(e,t)=>N.call(e,t),V=Array.isArray,B=e=>"[object Map]"===Q(e),D=e=>"[object Set]"===Q(e),H=e=>"[object Date]"===Q(e),W=e=>"function"==typeof e,q=e=>"string"==typeof e,Z=e=>"symbol"==typeof e,G=e=>null!==e&&"object"==typeof e,J=e=>G(e)&&W(e.then)&&W(e.catch),K=Object.prototype.toString,Q=e=>K.call(e),Y=e=>"[object Object]"===Q(e),X=e=>q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ee=y(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),te=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ne=/-(\w)/g,re=te((e=>e.replace(ne,((e,t)=>t?t.toUpperCase():"")))),le=/\B([A-Z])/g,oe=te((e=>e.replace(le,"-$1").toLowerCase())),ie=te((e=>e.charAt(0).toUpperCase()+e.slice(1))),se=te((e=>e?`on${ie(e)}`:"")),ae=(e,t)=>!Object.is(e,t),ce=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ue=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},pe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let de;let he;class fe{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&he&&(this.parent=he,this.index=(he.scopes||(he.scopes=[])).push(this)-1)}run(e){if(this.active){const t=he;try{return he=this,e()}finally{he=t}}}on(){he=this}off(){he=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const ge=e=>{const t=new Set(e);return t.w=0,t.n=0,t},me=e=>(e.w&ke)>0,ve=e=>(e.n&ke)>0,ye=new WeakMap;let we=0,ke=1;let be;const xe=Symbol(""),_e=Symbol("");class $e{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=he){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=be,t=Ce;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=be,be=this,Ce=!0,ke=1<<++we,we<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ke})(this):Se(this),this.fn()}finally{we<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const l=t[r];me(l)&&!ve(l)?l.delete(e):t[n++]=l,l.w&=~ke,l.n&=~ke}t.length=n}})(this),ke=1<<--we,be=this.parent,Ce=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){be===this?this.deferStop=!0:this.active&&(Se(this),this.onStop&&this.onStop(),this.active=!1)}}function Se(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ce=!0;const Ie=[];function ze(){Ie.push(Ce),Ce=!1}function Re(){const e=Ie.pop();Ce=void 0===e||e}function Ee(e,t,n){if(Ce&&be){let t=ye.get(e);t||ye.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=ge()),Ae(r)}}function Ae(e,t){let n=!1;we<=30?ve(e)||(e.n|=ke,n=!me(e)):n=!e.has(be),n&&(e.add(be),be.deps.push(e))}function Le(e,t,n,r,l,o){const i=ye.get(e);if(!i)return;let s=[];if("clear"===t)s=[...i.values()];else if("length"===n&&V(e))i.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(i.get(n)),t){case"add":V(e)?X(n)&&s.push(i.get("length")):(s.push(i.get(xe)),B(e)&&s.push(i.get(_e)));break;case"delete":V(e)||(s.push(i.get(xe)),B(e)&&s.push(i.get(_e)));break;case"set":B(e)&&s.push(i.get(xe))}if(1===s.length)s[0]&&Te(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Te(ge(e))}}function Te(e,t){const n=V(e)?e:[...e];for(const e of n)e.computed&&je(e);for(const e of n)e.computed||je(e)}function je(e,t){(e!==be||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Oe=y("__proto__,__v_isRef,__isVue"),Ue=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(Z)),Me=Be(),Pe=Be(!1,!0),Ne=Be(!0),Fe=Ve();function Ve(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ct(this);for(let e=0,t=this.length;e<t;e++)Ee(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Ct)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ze();const n=Ct(this)[t].apply(this,e);return Re(),n}})),e}function Be(e=!1,t=!1){return function(n,r,l){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&l===(e?t?vt:mt:t?gt:ft).get(n))return n;const o=V(n);if(!e&&o&&F(Fe,r))return Reflect.get(Fe,r,l);const i=Reflect.get(n,r,l);return(Z(r)?Ue.has(r):Oe(r))?i:(e||Ee(n,0,r),t?i:Lt(i)?o&&X(r)?i:i.value:G(i)?e?kt(i):wt(i):i)}}function De(e=!1){return function(t,n,r,l){let o=t[n];if(_t(o)&&Lt(o)&&!Lt(r))return!1;if(!e&&!_t(r)&&($t(r)||(r=Ct(r),o=Ct(o)),!V(t)&&Lt(o)&&!Lt(r)))return o.value=r,!0;const i=V(t)&&X(n)?Number(n)<t.length:F(t,n),s=Reflect.set(t,n,r,l);return t===Ct(l)&&(i?ae(r,o)&&Le(t,"set",n,r):Le(t,"add",n,r)),s}}const He={get:Me,set:De(),deleteProperty:function(e,t){const n=F(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Le(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return Z(t)&&Ue.has(t)||Ee(e,0,t),n},ownKeys:function(e){return Ee(e,0,V(e)?"length":xe),Reflect.ownKeys(e)}},We={get:Ne,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},qe=M({},He,{get:Pe,set:De(!0)}),Ze=e=>e,Ge=e=>Reflect.getPrototypeOf(e);function Je(e,t,n=!1,r=!1){const l=Ct(e=e.__v_raw),o=Ct(t);n||(t!==o&&Ee(l,0,t),Ee(l,0,o));const{has:i}=Ge(l),s=r?Ze:n?Rt:zt;return i.call(l,t)?s(e.get(t)):i.call(l,o)?s(e.get(o)):void(e!==l&&e.get(t))}function Ke(e,t=!1){const n=this.__v_raw,r=Ct(n),l=Ct(e);return t||(e!==l&&Ee(r,0,e),Ee(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function Qe(e,t=!1){return e=e.__v_raw,!t&&Ee(Ct(e),0,xe),Reflect.get(e,"size",e)}function Ye(e){e=Ct(e);const t=Ct(this);return Ge(t).has.call(t,e)||(t.add(e),Le(t,"add",e,e)),this}function Xe(e,t){t=Ct(t);const n=Ct(this),{has:r,get:l}=Ge(n);let o=r.call(n,e);o||(e=Ct(e),o=r.call(n,e));const i=l.call(n,e);return n.set(e,t),o?ae(t,i)&&Le(n,"set",e,t):Le(n,"add",e,t),this}function et(e){const t=Ct(this),{has:n,get:r}=Ge(t);let l=n.call(t,e);l||(e=Ct(e),l=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return l&&Le(t,"delete",e,void 0),o}function tt(){const e=Ct(this),t=0!==e.size,n=e.clear();return t&&Le(e,"clear",void 0,void 0),n}function nt(e,t){return function(n,r){const l=this,o=l.__v_raw,i=Ct(o),s=t?Ze:e?Rt:zt;return!e&&Ee(i,0,xe),o.forEach(((e,t)=>n.call(r,s(e),s(t),l)))}}function rt(e,t,n){return function(...r){const l=this.__v_raw,o=Ct(l),i=B(o),s="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,c=l[e](...r),u=n?Ze:t?Rt:zt;return!t&&Ee(o,0,a?_e:xe),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function lt(e){return function(...t){return"delete"!==e&&this}}function ot(){const e={get(e){return Je(this,e)},get size(){return Qe(this)},has:Ke,add:Ye,set:Xe,delete:et,clear:tt,forEach:nt(!1,!1)},t={get(e){return Je(this,e,!1,!0)},get size(){return Qe(this)},has:Ke,add:Ye,set:Xe,delete:et,clear:tt,forEach:nt(!1,!0)},n={get(e){return Je(this,e,!0)},get size(){return Qe(this,!0)},has(e){return Ke.call(this,e,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:nt(!0,!1)},r={get(e){return Je(this,e,!0,!0)},get size(){return Qe(this,!0)},has(e){return Ke.call(this,e,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:nt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((l=>{e[l]=rt(l,!1,!1),n[l]=rt(l,!0,!1),t[l]=rt(l,!1,!0),r[l]=rt(l,!0,!0)})),[e,n,t,r]}const[it,st,at,ct]=ot();function ut(e,t){const n=t?e?ct:at:e?st:it;return(t,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(F(n,r)&&r in t?n:t,r,l)}const pt={get:ut(!1,!1)},dt={get:ut(!1,!0)},ht={get:ut(!0,!1)},ft=new WeakMap,gt=new WeakMap,mt=new WeakMap,vt=new WeakMap;function yt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>Q(e).slice(8,-1))(e))}function wt(e){return _t(e)?e:bt(e,!1,He,pt,ft)}function kt(e){return bt(e,!0,We,ht,mt)}function bt(e,t,n,r,l){if(!G(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=l.get(e);if(o)return o;const i=yt(e);if(0===i)return e;const s=new Proxy(e,2===i?r:n);return l.set(e,s),s}function xt(e){return _t(e)?xt(e.__v_raw):!(!e||!e.__v_isReactive)}function _t(e){return!(!e||!e.__v_isReadonly)}function $t(e){return!(!e||!e.__v_isShallow)}function St(e){return xt(e)||_t(e)}function Ct(e){const t=e&&e.__v_raw;return t?Ct(t):e}function It(e){return ue(e,"__v_skip",!0),e}const zt=e=>G(e)?wt(e):e,Rt=e=>G(e)?kt(e):e;function Et(e){Ce&&be&&Ae((e=Ct(e)).dep||(e.dep=ge()))}function At(e,t){(e=Ct(e)).dep&&Te(e.dep)}function Lt(e){return!(!e||!0!==e.__v_isRef)}function Tt(e){return Ot(e,!1)}function jt(e){return Ot(e,!0)}function Ot(e,t){return Lt(e)?e:new Ut(e,t)}class Ut{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ct(e),this._value=t?e:zt(e)}get value(){return Et(this),this._value}set value(e){e=this.__v_isShallow?e:Ct(e),ae(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:zt(e),At(this))}}function Mt(e){return Lt(e)?e.value:e}const Pt={get:(e,t,n)=>Mt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return Lt(l)&&!Lt(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function Nt(e){return xt(e)?e:new Proxy(e,Pt)}class Ft{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new $e(e,(()=>{this._dirty||(this._dirty=!0,At(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ct(this);return Et(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Vt(e,t,n,r){let l;try{l=r?e(...r):e()}catch(e){Dt(e,t,n)}return l}function Bt(e,t,n,r){if(W(e)){const l=Vt(e,t,n,r);return l&&J(l)&&l.catch((e=>{Dt(e,t,n)})),l}const l=[];for(let o=0;o<e.length;o++)l.push(Bt(e[o],t,n,r));return l}function Dt(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const l=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,l,o))return;r=r.parent}const i=t.appContext.config.errorHandler;if(i)return void Vt(i,null,10,[e,l,o])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Ht=!1,Wt=!1;const qt=[];let Zt=0;const Gt=[];let Jt=null,Kt=0;const Qt=[];let Yt=null,Xt=0;const en=Promise.resolve();let tn=null,nn=null;function rn(e){const t=tn||en;return e?t.then(this?e.bind(this):e):t}function ln(e){qt.length&&qt.includes(e,Ht&&e.allowRecurse?Zt+1:Zt)||e===nn||(null==e.id?qt.push(e):qt.splice(function(e){let t=Zt+1,n=qt.length;for(;t<n;){const r=t+n>>>1;un(qt[r])<e?t=r+1:n=r}return t}(e.id),0,e),on())}function on(){Ht||Wt||(Wt=!0,tn=en.then(pn))}function sn(e,t,n,r){V(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),on()}function an(e,t=null){if(Gt.length){for(nn=t,Jt=[...new Set(Gt)],Gt.length=0,Kt=0;Kt<Jt.length;Kt++)Jt[Kt]();Jt=null,Kt=0,nn=null,an(e,t)}}function cn(e){if(an(),Qt.length){const e=[...new Set(Qt)];if(Qt.length=0,Yt)return void Yt.push(...e);for(Yt=e,Yt.sort(((e,t)=>un(e)-un(t))),Xt=0;Xt<Yt.length;Xt++)Yt[Xt]();Yt=null,Xt=0}}const un=e=>null==e.id?1/0:e.id;function pn(e){Wt=!1,Ht=!0,an(e),qt.sort(((e,t)=>un(e)-un(t)));try{for(Zt=0;Zt<qt.length;Zt++){const e=qt[Zt];e&&!1!==e.active&&Vt(e,null,14)}}finally{Zt=0,qt.length=0,cn(),Ht=!1,tn=null,(qt.length||Gt.length||Qt.length)&&pn(e)}}function dn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||E;let l=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:o}=r[e]||E;o&&(l=n.map((e=>e.trim()))),t&&(l=n.map(pe))}let s,a=r[s=se(t)]||r[s=se(re(t))];!a&&o&&(a=r[s=se(oe(t))]),a&&Bt(a,e,6,l);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Bt(c,e,6,l)}}function hn(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(void 0!==l)return l;const o=e.emits;let i={};return o?(V(o)?o.forEach((e=>i[e]=null)):M(i,o),r.set(e,i),i):(r.set(e,null),null)}function fn(e,t){return!(!e||!O(t))&&(t=t.slice(2).replace(/Once$/,""),F(e,t[0].toLowerCase()+t.slice(1))||F(e,oe(t))||F(e,t))}let gn=null,mn=null;function vn(e){const t=gn;return gn=e,mn=e&&e.type.__scopeId||null,t}function yn(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:o,propsOptions:[i],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=vn(e);try{if(4&n.shapeFlag){const e=l||r;m=Lr(u.call(e,e,p,o,h,d,f)),v=a}else{const e=t;m=Lr(e.length>1?e(o,{attrs:a,slots:s,emit:c}):e(o,null)),v=t.props?a:wn(a)}}catch(t){fr.length=0,Dt(t,e,1),m=zr(dr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(U)&&(v=kn(v,i)),w=Rr(w,v))}return n.dirs&&(w=Rr(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,vn(y),m}const wn=e=>{let t;for(const n in e)("class"===n||"style"===n||O(n))&&((t||(t={}))[n]=e[n]);return t},kn=(e,t)=>{const n={};for(const r in e)U(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function bn(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 o=r[l];if(t[o]!==e[o]&&!fn(n,o))return!0}return!1}function xn(e,t,n=!1){const r=Pr||gn;if(r){const l=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&W(t)?t.call(r.proxy):t}}function _n(e,t){return Cn(e,null,t)}const $n={};function Sn(e,t,n){return Cn(e,t,n)}function Cn(e,t,{immediate:n,deep:r,flush:l,onTrack:o,onTrigger:i}=E){const s=Pr;let a,c,u=!1,p=!1;if(Lt(e)?(a=()=>e.value,u=$t(e)):xt(e)?(a=()=>e,r=!0):V(e)?(p=!0,u=e.some((e=>xt(e)||$t(e))),a=()=>e.map((e=>Lt(e)?e.value:xt(e)?In(e):W(e)?Vt(e,s,2):void 0))):a=W(e)?t?()=>Vt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Bt(e,s,3,[d])}:L,t&&r){const e=a;a=()=>In(e())}let d=e=>{c=m.onStop=()=>{Vt(e,s,4)}};if(Br)return d=L,t?n&&Bt(t,s,3,[a(),p?[]:void 0,d]):a(),L;let h=p?[]:$n;const f=()=>{if(m.active)if(t){const e=m.run();(r||u||(p?e.some(((e,t)=>ae(e,h[t]))):ae(e,h)))&&(c&&c(),Bt(t,s,3,[e,h===$n?void 0:h,d]),h=e)}else m.run()};let g;f.allowRecurse=!!t,g="sync"===l?f:"post"===l?()=>ir(f,s&&s.suspense):()=>function(e){sn(e,Jt,Gt,Kt)}(f);const m=new $e(a,g);return t?n?f():h=m.run():"post"===l?ir(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&P(s.scope.effects,m)}}function In(e,t){if(!G(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Lt(e))In(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)In(e[n],t);else if(D(e)||B(e))e.forEach((e=>{In(e,t)}));else if(Y(e))for(const n in e)In(e[n],t);return e}function zn(e){return W(e)?{setup:e,name:e.name}:e}const Rn=e=>!!e.type.__asyncLoader;const En=e=>(t,n=Pr)=>(!Br||"sp"===e)&&function(e,t,n=Pr,r=!1){if(n){const l=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ze(),Nr(n);const l=Bt(t,n,e,r);return Fr(),Re(),l});return r?l.unshift(o):l.push(o),o}}(e,t,n),An=En("m"),Ln=En("bum"),Tn=En("um");function jn(e,t){const n=gn;if(null===n)return e;const r=Wr(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,o,i,s=E]=t[e];W(n)&&(n={mounted:n,updated:n}),n.deep&&In(o),l.push({dir:n,instance:r,value:o,oldValue:void 0,arg:i,modifiers:s})}return e}function On(e,t,n,r){const l=e.dirs,o=t&&t.dirs;for(let i=0;i<l.length;i++){const s=l[i];o&&(s.oldValue=o[i].value);let a=s.dir[r];a&&(ze(),Bt(a,n,8,[e.el,s,e,t]),Re())}}function Un(e,t){return function(e,t,n=!0,r=!1){const l=gn||Pr;if(l){const n=l.type;if("components"===e){const e=function(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===re(t)||e===ie(re(t))))return n}const o=Pn(l[e]||n[e],t)||Pn(l.appContext[e],t);return!o&&r?n:o}}("components",e,!0,t)||e}const Mn=Symbol();function Pn(e,t){return e&&(e[t]||e[re(t)]||e[ie(re(t))])}function Nn(e,t,n,r){let l;const o=n&&n[r];if(V(e)||q(e)){l=new Array(e.length);for(let n=0,r=e.length;n<r;n++)l[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){l=new Array(e);for(let n=0;n<e;n++)l[n]=t(n+1,n,void 0,o&&o[n])}else if(G(e))if(e[Symbol.iterator])l=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);l=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];l[r]=t(e[i],i,r,o&&o[r])}}else l=[];return n&&(n[r]=l),l}const Fn=e=>e?Vr(e)?Wr(e)||e.proxy:Fn(e.parent):null,Vn=M(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=>Fn(e.parent),$root:e=>Fn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>ln(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>L}),Bn={get({_:e},t){const{ctx:n,setupState:r,data:l,props:o,accessCache:i,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=i[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return o[t]}else{if(r!==E&&F(r,t))return i[t]=1,r[t];if(l!==E&&F(l,t))return i[t]=2,l[t];if((c=e.propsOptions[0])&&F(c,t))return i[t]=3,o[t];if(n!==E&&F(n,t))return i[t]=4,n[t];i[t]=0}}const u=Vn[t];let p,d;return u?("$attrs"===t&&Ee(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==E&&F(n,t)?(i[t]=4,n[t]):(d=a.config.globalProperties,F(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:l,ctx:o}=e;return l!==E&&F(l,t)?(l[t]=n,!0):r!==E&&F(r,t)?(r[t]=n,!0):!F(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:o}},i){let s;return!!n[i]||e!==E&&F(e,i)||t!==E&&F(t,i)||(s=o[0])&&F(s,i)||F(r,i)||F(Vn,i)||F(l.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:F(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Dn(e,t,n,r=!1){const l={},o={};ue(o,$r,1),e.propsDefaults=Object.create(null),Hn(e,t,l,o);for(const t in e.propsOptions[0])t in l||(l[t]=void 0);n?e.props=r?l:bt(l,!1,qe,dt,gt):e.type.props?e.props=l:e.props=o,e.attrs=o}function Hn(e,t,n,r){const[l,o]=e.propsOptions;let i,s=!1;if(t)for(let a in t){if(ee(a))continue;const c=t[a];let u;l&&F(l,u=re(a))?o&&o.includes(u)?(i||(i={}))[u]=c:n[u]=c:fn(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(o){const t=Ct(n),r=i||E;for(let i=0;i<o.length;i++){const s=o[i];n[s]=Wn(l,t,s,r[s],e,!F(r,s))}}return s}function Wn(e,t,n,r,l,o){const i=e[n];if(null!=i){const e=F(i,"default");if(e&&void 0===r){const e=i.default;if(i.type!==Function&&W(e)){const{propsDefaults:o}=l;n in o?r=o[n]:(Nr(l),r=o[n]=e.call(null,t),Fr())}else r=e}i[0]&&(o&&!e?r=!1:!i[1]||""!==r&&r!==oe(n)||(r=!0))}return r}function qn(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const o=e.props,i={},s=[];if(!o)return r.set(e,A),A;if(V(o))for(let e=0;e<o.length;e++){const t=re(o[e]);Zn(t)&&(i[t]=E)}else if(o)for(const e in o){const t=re(e);if(Zn(t)){const n=o[e],r=i[t]=V(n)||W(n)?{type:n}:n;if(r){const e=Kn(Boolean,r.type),n=Kn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||F(r,"default"))&&s.push(t)}}}const a=[i,s];return r.set(e,a),a}function Zn(e){return"$"!==e[0]}function Gn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Jn(e,t){return Gn(e)===Gn(t)}function Kn(e,t){return V(t)?t.findIndex((t=>Jn(t,e))):W(t)&&Jn(t,e)?0:-1}const Qn=e=>"_"===e[0]||"$stable"===e,Yn=e=>V(e)?e.map(Lr):[Lr(e)],Xn=(e,t,n)=>{if(t._n)return t;const r=function(e,t=gn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&yr(-1);const l=vn(t),o=e(...n);return vn(l),r._d&&yr(1),o};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>Yn(t(...e))),n);return r._c=!1,r},er=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Qn(n))continue;const l=e[n];if(W(l))t[n]=Xn(0,l,r);else if(null!=l){const e=Yn(l);t[n]=()=>e}}},tr=(e,t)=>{const n=Yn(t);e.slots.default=()=>n};function nr(){return{app:null,config:{isNativeTag:T,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 rr=0;function lr(e,t){return function(n,r=null){W(n)||(n=Object.assign({},n)),null==r||G(r)||(r=null);const l=nr(),o=new Set;let i=!1;const s=l.app={_uid:rr++,_component:n,_props:r,_container:null,_context:l,_instance:null,version:Gr,get config(){return l.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&W(e.install)?(o.add(e),e.install(s,...t)):W(e)&&(o.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(l.components[e]=t,s):l.components[e],directive:(e,t)=>t?(l.directives[e]=t,s):l.directives[e],mount(o,a,c){if(!i){const u=zr(n,r);return u.appContext=l,a&&t?t(u,o):e(u,o,c),i=!0,s._container=o,o.__vue_app__=s,Wr(u.component)||u.component.proxy}},unmount(){i&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(l.provides[e]=t,s)};return s}}function or(e,t,n,r,l=!1){if(V(e))return void e.forEach(((e,o)=>or(e,t&&(V(t)?t[o]:t),n,r,l)));if(Rn(r)&&!l)return;const o=4&r.shapeFlag?Wr(r.component)||r.component.proxy:r.el,i=l?null:o,{i:s,r:a}=e,c=t&&t.r,u=s.refs===E?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(q(c)?(u[c]=null,F(p,c)&&(p[c]=null)):Lt(c)&&(c.value=null)),W(a))Vt(a,s,12,[i,u]);else{const t=q(a),r=Lt(a);if(t||r){const s=()=>{if(e.f){const n=t?u[a]:a.value;l?V(n)&&P(n,o):V(n)?n.includes(o)||n.push(o):t?(u[a]=[o],F(p,a)&&(p[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else t?(u[a]=i,F(p,a)&&(p[a]=i)):r&&(a.value=i,e.k&&(u[e.k]=i))};i?(s.id=-1,ir(s,n)):s()}}}const ir=function(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):sn(e,Yt,Qt,Xt)};function sr(e){return function(e,t){(de||(de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:r,patchProp:l,createElement:o,createText:i,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=L,cloneNode:h,insertStaticContent:f}=e,g=(e,t,n,r=null,l=null,o=null,i=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!_r(e,t)&&(r=G(e),D(e,l,o,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case pr:m(e,t,n,r);break;case dr:v(e,t,n,r);break;case hr:null==e&&y(t,n,r,i);break;case ur:z(e,t,n,r,l,o,i,s,a);break;default:1&p?b(e,t,n,r,l,o,i,s,a):6&p?R(e,t,n,r,l,o,i,s,a):(64&p||128&p)&&c.process(e,t,n,r,l,o,i,s,a,Q)}null!=u&&l&&or(u,e&&e.ref,o,t||e,!t)},m=(e,t,r,l)=>{if(null==e)n(t.el=i(t.children),r,l);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,r,l)=>{null==e?n(t.el=s(t.children||""),r,l):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=f(e.children,t,n,r,e.el,e.anchor)},w=({el:e,anchor:t},r,l)=>{let o;for(;e&&e!==t;)o=p(e),n(e,r,l),e=o;n(t,r,l)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)},b=(e,t,n,r,l,o,i,s,a)=>{i=i||"svg"===t.type,null==e?x(t,n,r,l,o,i,s,a):S(e,t,l,o,i,s,a)},x=(e,t,r,i,s,a,u,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:k}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=o(e.type,a,m&&m.is,m),8&v?c(d,e.children):16&v&&$(e.children,d,null,i,s,a&&"foreignObject"!==g,u,p),k&&On(e,null,i,"created"),m){for(const t in m)"value"===t||ee(t)||l(d,t,null,m[t],a,e.children,i,s,Z);"value"in m&&l(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Or(f,i,e)}_(d,e,e.scopeId,u,i)}k&&On(e,null,i,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;b&&y.beforeEnter(d),n(d,t,r),((f=m&&m.onVnodeMounted)||b||k)&&ir((()=>{f&&Or(f,i,e),b&&y.enter(d),k&&On(e,null,i,"mounted")}),s)},_=(e,t,n,r,l)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(l){if(t===l.subTree){const t=l.vnode;_(e,t,t.scopeId,t.slotScopeIds,l.parent)}}},$=(e,t,n,r,l,o,i,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?Tr(e[c]):Lr(e[c]);g(null,a,t,n,r,l,o,i,s)}},S=(e,t,n,r,o,i,s)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||E,f=t.props||E;let g;n&&ar(n,!1),(g=f.onVnodeBeforeUpdate)&&Or(g,n,t,e),d&&On(t,e,n,"beforeUpdate"),n&&ar(n,!0);const m=o&&"foreignObject"!==t.type;if(p?C(e.dynamicChildren,p,a,n,r,m,i):s||P(e,t,a,null,n,r,m,i,!1),u>0){if(16&u)I(a,t,h,f,n,r,o);else if(2&u&&h.class!==f.class&&l(a,"class",null,f.class,o),4&u&&l(a,"style",h.style,f.style,o),8&u){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const s=i[t],c=h[s],u=f[s];u===c&&"value"!==s||l(a,s,c,u,o,e.children,n,r,Z)}}1&u&&e.children!==t.children&&c(a,t.children)}else s||null!=p||I(a,t,h,f,n,r,o);((g=f.onVnodeUpdated)||d)&&ir((()=>{g&&Or(g,n,t,e),d&&On(t,e,n,"updated")}),r)},C=(e,t,n,r,l,o,i)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],p=a.el&&(a.type===ur||!_r(a,c)||70&a.shapeFlag)?u(a.el):n;g(a,c,p,null,r,l,o,i,!0)}},I=(e,t,n,r,o,i,s)=>{if(n!==r){for(const a in r){if(ee(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&l(e,a,u,c,s,t.children,o,i,Z)}if(n!==E)for(const a in n)ee(a)||a in r||l(e,a,n[a],null,s,t.children,o,i,Z);"value"in r&&l(e,"value",n.value,r.value)}},z=(e,t,r,l,o,s,a,c,u)=>{const p=t.el=e?e.el:i(""),d=t.anchor=e?e.anchor:i("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,r,l),n(d,r,l),$(t.children,r,d,o,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(C(e.dynamicChildren,f,r,o,s,a,c),(null!=t.key||o&&t===o.subTree)&&cr(e,t,!0)):P(e,t,r,d,o,s,a,c,u)},R=(e,t,n,r,l,o,i,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?l.ctx.activate(t,n,r,i,a):T(t,n,r,l,o,i,a):j(e,t,a)},T=(e,t,n,r,l,o,i)=>{const s=e.component=function(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Ur,o={uid:Mr++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new fe(!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:qn(r,l),emitsOptions:hn(r,l),emit:null,emitted:null,propsDefaults:E,inheritAttrs:r.inheritAttrs,ctx:E,data:E,props:E,attrs:E,slots:E,refs:E,setupState:E,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=dn.bind(null,o),e.ce&&e.ce(o);return o}(e,r,l);if(e.type.__isKeepAlive&&(s.ctx.renderer=Q),function(e,t=!1){Br=t;const{props:n,children:r}=e.vnode,l=Vr(e);Dn(e,n,l,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Ct(t),ue(t,"_",n)):er(t,e.slots={})}else e.slots={},t&&tr(e,t);ue(e.slots,$r,1)})(e,r);const o=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=It(new Proxy(e.ctx,Bn));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Ee(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Nr(e),ze();const l=Vt(r,e,0,[e.props,n]);if(Re(),Fr(),J(l)){if(l.then(Fr,Fr),t)return l.then((n=>{Dr(e,n,t)})).catch((t=>{Dt(t,e,0)}));e.asyncDep=l}else Dr(e,l,t)}else Hr(e,t)}(e,t):void 0;Br=!1}(s),s.asyncDep){if(l&&l.registerDep(s,O),!e.el){const e=s.subTree=zr(dr);v(null,e,t,n)}}else O(s,e,t,n,l,o,i)},j=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:l,component:o}=e,{props:i,children:s,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!l&&!s||s&&s.$stable)||r!==i&&(r?!i||bn(r,i,c):!!i);if(1024&a)return!0;if(16&a)return r?bn(r,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==r[n]&&!fn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void U(r,t,n);r.next=t,function(e){const t=qt.indexOf(e);t>Zt&&qt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},O=(e,t,n,r,l,o,i)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,p=n;ar(e,!1),n?(n.el=c.el,U(e,n,i)):n=c,r&&ce(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Or(t,a,n,c),ar(e,!0);const d=yn(e),h=e.subTree;e.subTree=d,g(h,d,u(h.el),G(h),e,l,o),n.el=d.el,null===p&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),s&&ir(s,l),(t=n.props&&n.props.onVnodeUpdated)&&ir((()=>Or(t,a,n,c)),l)}else{let i;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=Rn(t);if(ar(e,!1),c&&ce(c),!d&&(i=a&&a.onVnodeBeforeMount)&&Or(i,p,t),ar(e,!0),s&&X){const n=()=>{e.subTree=yn(e),X(s,e.subTree,e,l,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=yn(e);g(null,i,n,r,e,l,o),t.el=i.el}if(u&&ir(u,l),!d&&(i=a&&a.onVnodeMounted)){const e=t;ir((()=>Or(i,p,e)),l)}(256&t.shapeFlag||p&&Rn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&ir(e.a,l),e.isMounted=!0,t=n=r=null}},a=e.effect=new $e(s,(()=>ln(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,ar(e,!0),c()},U=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:l,attrs:o,vnode:{patchFlag:i}}=e,s=Ct(l),[a]=e.propsOptions;let c=!1;if(!(r||i>0)||16&i){let r;Hn(e,t,l,o)&&(c=!0);for(const o in s)t&&(F(t,o)||(r=oe(o))!==o&&F(t,r))||(a?!n||void 0===n[o]&&void 0===n[r]||(l[o]=Wn(a,s,o,void 0,e,!0)):delete l[o]);if(o!==s)for(const e in o)t&&F(t,e)||(delete o[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(fn(e.emitsOptions,i))continue;const u=t[i];if(a)if(F(o,i))u!==o[i]&&(o[i]=u,c=!0);else{const t=re(i);l[t]=Wn(a,s,t,u,e,!1)}else u!==o[i]&&(o[i]=u,c=!0)}}c&&Le(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:l}=e;let o=!0,i=E;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(M(l,t),n||1!==e||delete l._):(o=!t.$stable,er(t,l)),i=t}else t&&(tr(e,t),i={default:1});if(o)for(const e in l)Qn(e)||e in i||delete l[e]})(e,t.children,n),ze(),an(void 0,e.update),Re()},P=(e,t,n,r,l,o,i,s,a=!1)=>{const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void V(u,d,n,r,l,o,i,s,a);if(256&h)return void N(u,d,n,r,l,o,i,s,a)}8&f?(16&p&&Z(u,l,o),d!==u&&c(n,d)):16&p?16&f?V(u,d,n,r,l,o,i,s,a):Z(u,l,o,!0):(8&p&&c(n,""),16&f&&$(d,n,r,l,o,i,s,a))},N=(e,t,n,r,l,o,i,s,a)=>{t=t||A;const c=(e=e||A).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?Tr(t[d]):Lr(t[d]);g(e[d],r,n,null,l,o,i,s,a)}c>u?Z(e,l,o,!0,!1,p):$(t,n,r,l,o,i,s,a,p)},V=(e,t,n,r,l,o,i,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const r=e[c],u=t[c]=a?Tr(t[c]):Lr(t[c]);if(!_r(r,u))break;g(r,u,n,null,l,o,i,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?Tr(t[d]):Lr(t[d]);if(!_r(r,c))break;g(r,c,n,null,l,o,i,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)g(null,t[c]=a?Tr(t[c]):Lr(t[c]),n,p,l,o,i,s,a),c++}}else if(c>d)for(;c<=p;)D(e[c],l,o,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?Tr(t[c]):Lr(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=d-f+1;let k=!1,b=0;const x=new Array(w);for(c=0;c<w;c++)x[c]=0;for(c=h;c<=p;c++){const r=e[c];if(y>=w){D(r,l,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=f;v<=d;v++)if(0===x[v-f]&&_r(r,t[v])){u=v;break}void 0===u?D(r,l,o,!0):(x[u-f]=c+1,u>=b?b=u:k=!0,g(r,t[u],n,null,l,o,i,s,a),y++)}const _=k?function(e){const t=e.slice(),n=[0];let r,l,o,i,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(l=n[n.length-1],e[l]<a){t[r]=l,n.push(r);continue}for(o=0,i=n.length-1;o<i;)s=o+i>>1,e[n[s]]<a?o=s+1:i=s;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,i=n[o-1];for(;o-- >0;)n[o]=i,i=t[i];return n}(x):A;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:r;0===x[c]?g(null,p,n,d,l,o,i,s,a):k&&(v<0||c!==_[v]?B(p,n,d,2):v--)}}},B=(e,t,r,l,o=null)=>{const{el:i,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void B(e.component.subTree,t,r,l);if(128&u)return void e.suspense.move(t,r,l);if(64&u)return void s.move(e,t,r,Q);if(s===ur){n(i,t,r);for(let e=0;e<c.length;e++)B(c[e],t,r,l);return void n(e.anchor,t,r)}if(s===hr)return void w(e,t,r);if(2!==l&&1&u&&a)if(0===l)a.beforeEnter(i),n(i,t,r),ir((()=>a.enter(i)),o);else{const{leave:e,delayLeave:l,afterLeave:o}=a,s=()=>n(i,t,r),c=()=>{e(i,(()=>{s(),o&&o()}))};l?l(i,s,c):c()}else n(i,t,r)},D=(e,t,n,r=!1,l=!1)=>{const{type:o,props:i,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&or(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Rn(e);let g;if(f&&(g=i&&i.onVnodeBeforeUnmount)&&Or(g,t,e),6&u)q(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&On(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,l,Q,r):c&&(o!==ur||p>0&&64&p)?Z(c,t,n,!1,!0):(o===ur&&384&p||!l&&16&u)&&Z(a,t,n),r&&H(e)}(f&&(g=i&&i.onVnodeUnmounted)||h)&&ir((()=>{g&&Or(g,t,e),h&&On(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:l,transition:o}=e;if(t===ur)return void W(n,l);if(t===hr)return void k(e);const i=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,l=()=>t(n,i);r?r(e.el,i,l):l()}else i()},W=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},q=(e,t,n)=>{const{bum:r,scope:l,update:o,subTree:i,um:s}=e;r&&ce(r),l.stop(),o&&(o.active=!1,D(i,e,t,n)),s&&ir(s,t),ir((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=(e,t,n,r=!1,l=!1,o=0)=>{for(let i=o;i<e.length;i++)D(e[i],t,n,r,l)},G=e=>6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),K=(e,t,n)=>{null==e?t._vnode&&D(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),cn(),t._vnode=e},Q={p:g,um:D,m:B,r:H,mt:T,mc:$,pc:P,pbc:C,n:G,o:e};let Y,X;t&&([Y,X]=t(Q));return{render:K,hydrate:Y,createApp:lr(K,Y)}}(e)}function ar({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function cr(e,t,n=!1){const r=e.children,l=t.children;if(V(r)&&V(l))for(let e=0;e<r.length;e++){const t=r[e];let o=l[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=l[e]=Tr(l[e]),o.el=t.el),n||cr(t,o))}}const ur=Symbol(void 0),pr=Symbol(void 0),dr=Symbol(void 0),hr=Symbol(void 0),fr=[];let gr=null;function mr(e=!1){fr.push(gr=e?null:[])}let vr=1;function yr(e){vr+=e}function wr(e){return e.dynamicChildren=vr>0?gr||A:null,fr.pop(),gr=fr[fr.length-1]||null,vr>0&&gr&&gr.push(e),e}function kr(e,t,n,r,l,o){return wr(Ir(e,t,n,r,l,o,!0))}function br(e,t,n,r,l){return wr(zr(e,t,n,r,l,!0))}function xr(e){return!!e&&!0===e.__v_isVNode}function _r(e,t){return e.type===t.type&&e.key===t.key}const $r="__vInternal",Sr=({key:e})=>null!=e?e:null,Cr=({ref:e,ref_key:t,ref_for:n})=>null!=e?q(e)||Lt(e)||W(e)?{i:gn,r:e,k:t,f:!!n}:e:null;function Ir(e,t=null,n=null,r=0,l=null,o=(e===ur?0:1),i=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sr(t),ref:t&&Cr(t),scopeId:mn,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:o,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null};return s?(jr(a,n),128&o&&e.normalize(a)):n&&(a.shapeFlag|=q(n)?8:16),vr>0&&!i&&gr&&(a.patchFlag>0||6&o)&&32!==a.patchFlag&&gr.push(a),a}const zr=function(e,t=null,n=null,r=0,l=null,o=!1){e&&e!==Mn||(e=dr);if(xr(e)){const r=Rr(e,t,!0);return n&&jr(r,n),vr>0&&!o&&gr&&(6&r.shapeFlag?gr[gr.indexOf(e)]=r:gr.push(r)),r.patchFlag|=-2,r}i=e,W(i)&&"__vccOpts"in i&&(e=e.__vccOpts);var i;if(t){t=function(e){return e?St(e)||$r in e?M({},e):e:null}(t);let{class:e,style:n}=t;e&&!q(e)&&(t.class=S(e)),G(n)&&(St(n)&&!V(n)&&(n=M({},n)),t.style=b(n))}const s=q(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:G(e)?4:W(e)?2:0;return Ir(e,t,n,r,l,s,o,!0)};function Rr(e,t,n=!1){const{props:r,ref:l,patchFlag:o,children:i}=e,s=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=S([t.class,r.class]));else if("style"===e)t.style=b([t.style,r.style]);else if(O(e)){const n=t[e],l=r[e];!l||n===l||V(n)&&n.includes(l)||(t[e]=n?[].concat(n,l):l)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Sr(s),ref:t&&t.ref?n&&l?V(l)?l.concat(Cr(t)):[l,Cr(t)]:Cr(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ur?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rr(e.ssContent),ssFallback:e.ssFallback&&Rr(e.ssFallback),el:e.el,anchor:e.anchor}}function Er(e=" ",t=0){return zr(pr,null,e,t)}function Ar(e="",t=!1){return t?(mr(),br(dr,null,e)):zr(dr,null,e)}function Lr(e){return null==e||"boolean"==typeof e?zr(dr):V(e)?zr(ur,null,e.slice()):"object"==typeof e?Tr(e):zr(pr,null,String(e))}function Tr(e){return null===e.el||e.memo?e:Rr(e)}function jr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(V(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),jr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||$r in t?3===r&&gn&&(1===gn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=gn}}else W(t)?(t={default:t,_ctx:gn},n=32):(t=String(t),64&r?(n=16,t=[Er(t)]):n=8);e.children=t,e.shapeFlag|=n}function Or(e,t,n,r=null){Bt(e,t,7,[n,r])}const Ur=nr();let Mr=0;let Pr=null;const Nr=e=>{Pr=e,e.scope.on()},Fr=()=>{Pr&&Pr.scope.off(),Pr=null};function Vr(e){return 4&e.vnode.shapeFlag}let Br=!1;function Dr(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=Nt(t)),Hr(e,n)}function Hr(e,t,n){const r=e.type;e.render||(e.render=r.render||L)}function Wr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Nt(It(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Vn?Vn[n](e):void 0}))}const qr=(e,t)=>function(e,t,n=!1){let r,l;const o=W(e);return o?(r=e,l=L):(r=e.get,l=e.set),new Ft(r,l,o||!l,n)}(e,0,Br);function Zr(e,t,n){const r=arguments.length;return 2===r?G(t)&&!V(t)?xr(t)?zr(e,null,[t]):zr(e,t):zr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&xr(n)&&(n=[n]),zr(e,t,n))}const Gr="3.2.37",Jr="undefined"!=typeof document?document:null,Kr=Jr&&Jr.createElement("template"),Qr={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?Jr.createElementNS("http://www.w3.org/2000/svg",e):Jr.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>Jr.createTextNode(e),createComment:e=>Jr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,l,o){const i=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==o&&(l=l.nextSibling););else{Kr.innerHTML=r?`<svg>${e}</svg>`:e;const l=Kr.content;if(r){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Yr=/\s*!important$/;function Xr(e,t,n){if(V(n))n.forEach((n=>Xr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=tl[t];if(n)return n;let r=re(t);if("filter"!==r&&r in e)return tl[t]=r;r=ie(r);for(let n=0;n<el.length;n++){const l=el[n]+r;if(l in e)return tl[t]=l}return t}(e,t);Yr.test(n)?e.setProperty(oe(r),n.replace(Yr,""),"important"):e[r]=n}}const el=["Webkit","Moz","ms"],tl={};const nl="http://www.w3.org/1999/xlink";const[rl,ll]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let ol=0;const il=Promise.resolve(),sl=()=>{ol=0};function al(e,t,n,r){e.addEventListener(t,n,r)}function cl(e,t,n,r,l=null){const o=e._vei||(e._vei={}),i=o[t];if(r&&i)i.value=r;else{const[n,s]=function(e){let t;if(ul.test(e)){let n;for(t={};n=e.match(ul);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[oe(e.slice(2)),t]}(t);if(r){const i=o[t]=function(e,t){const n=e=>{const r=e.timeStamp||rl();(ll||r>=n.attached-1)&&Bt(function(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>ol||(il.then(sl),ol=rl()))(),n}(r,l);al(e,n,i,s)}else i&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,i,s),o[t]=void 0)}}const ul=/(?:Once|Passive|Capture)$/;const pl=/^on[a-z]/;const dl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?e=>ce(t,e):t};function hl(e){e.target.composing=!0}function fl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gl={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e._assign=dl(l);const o=r||l.props&&"number"===l.props.type;al(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),o&&(r=pe(r)),e._assign(r)})),n&&al(e,"change",(()=>{e.value=e.value.trim()})),t||(al(e,"compositionstart",hl),al(e,"compositionend",fl),al(e,"change",fl))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},o){if(e._assign=dl(o),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((l||"number"===e.type)&&pe(e.value)===t)return}const i=null==t?"":t;e.value!==i&&(e.value=i)}},ml={deep:!0,created(e,t,n){e._assign=dl(n),al(e,"change",(()=>{const t=e._modelValue,n=bl(e),r=e.checked,l=e._assign;if(V(t)){const e=I(t,n),o=-1!==e;if(r&&!o)l(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),l(n)}}else if(D(t)){const e=new Set(t);r?e.add(n):e.delete(n),l(e)}else l(xl(e,r))}))},mounted:vl,beforeUpdate(e,t,n){e._assign=dl(n),vl(e,t,n)}};function vl(e,{value:t,oldValue:n},r){e._modelValue=t,V(t)?e.checked=I(t,r.props.value)>-1:D(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=C(t,xl(e,!0)))}const yl={created(e,{value:t},n){e.checked=C(t,n.props.value),e._assign=dl(n),al(e,"change",(()=>{e._assign(bl(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=dl(r),t!==n&&(e.checked=C(t,r.props.value))}},wl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const l=D(t);al(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?pe(bl(e)):bl(e)));e._assign(e.multiple?l?new Set(t):t:t[0])})),e._assign=dl(r)},mounted(e,{value:t}){kl(e,t)},beforeUpdate(e,t,n){e._assign=dl(n)},updated(e,{value:t}){kl(e,t)}};function kl(e,t){const n=e.multiple;if(!n||V(t)||D(t)){for(let r=0,l=e.options.length;r<l;r++){const l=e.options[r],o=bl(l);if(n)V(t)?l.selected=I(t,o)>-1:l.selected=t.has(o);else if(C(bl(l),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function bl(e){return"_value"in e?e._value:e.value}function xl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const _l={created(e,t,n){$l(e,t,n,null,"created")},mounted(e,t,n){$l(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){$l(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){$l(e,t,n,r,"updated")}};function $l(e,t,n,r,l){const o=function(e,t){switch(e){case"SELECT":return wl;case"TEXTAREA":return gl;default:switch(t){case"checkbox":return ml;case"radio":return yl;default:return gl}}}(e.tagName,n.props&&n.props.type)[l];o&&o(e,t,n,r)}const Sl={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Cl(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),Cl(e,!0),r.enter(e)):r.leave(e,(()=>{Cl(e,!1)})):Cl(e,t))},beforeUnmount(e,{value:t}){Cl(e,t)}};function Cl(e,t){e.style.display=t?e._vod:"none"}const Il=M({patchProp:(e,t,n,r,l=!1,o,i,s,a)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,l):"style"===t?function(e,t,n){const r=e.style,l=q(n);if(n&&!l){for(const e in n)Xr(r,e,n[e]);if(t&&!q(t))for(const e in t)null==n[e]&&Xr(r,e,"")}else{const o=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}(e,n,r):O(t)?U(t)||cl(e,t,0,r,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&pl.test(t)&&W(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(pl.test(t)&&q(n))return!1;return t in e}(e,t,r,l))?function(e,t,n,r,l,o,i){if("innerHTML"===t||"textContent"===t)return r&&i(r,l,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=k(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,o,i,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,l){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(nl,t.slice(6,t.length)):e.setAttributeNS(nl,t,n);else{const r=w(t);null==n||r&&!k(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,l))}},Qr);let zl;const Rl=(...e)=>{const t=(zl||(zl=sr(Il))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(q(e)){return document.querySelector(e)}return e}(e);if(!r)return;const l=t._component;W(l)||l.render||l.template||(l.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function El(e){return!!he&&(function(e){he&&he.cleanups.push(e)}(e),!0)}var Al;const Ll="undefined"!=typeof window,Tl=()=>{};function jl(e,t){return function(...n){e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})}}Ll&&(null==(Al=null==window?void 0:window.navigator)?void 0:Al.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Ol=e=>e();function Ul(e,t=200,n={}){return jl(function(e,t={}){let n,r;return l=>{const o=Mt(e),i=Mt(t.maxWait);if(n&&clearTimeout(n),o<=0||void 0!==i&&i<=0)return r&&(clearTimeout(r),r=null),l();i&&!r&&(r=setTimeout((()=>{n&&clearTimeout(n),r=null,l()}),i)),n=setTimeout((()=>{r&&clearTimeout(r),r=null,l()}),o)}}(t,n),e)}var Ml=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,Nl=Object.prototype.propertyIsEnumerable;function Fl(e,t,n={}){const r=n,{eventFilter:l=Ol}=r,o=((e,t)=>{var n={};for(var r in e)Pl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ml)for(var r of Ml(e))t.indexOf(r)<0&&Nl.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return Sn(e,jl(l,t),o)}var Vl=Object.defineProperty,Bl=Object.defineProperties,Dl=Object.getOwnPropertyDescriptors,Hl=Object.getOwnPropertySymbols,Wl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,Zl=(e,t,n)=>t in e?Vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Gl(e,t,n={}){const r=n,{eventFilter:l}=r,o=((e,t)=>{var n={};for(var r in e)Wl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Hl)for(var r of Hl(e))t.indexOf(r)<0&&ql.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:i,pause:s,resume:a,isActive:c}=function(e=Ol){const t=Tt(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(l),u=Fl(e,t,(p=((e,t)=>{for(var n in t||(t={}))Wl.call(t,n)&&Zl(e,n,t[n]);if(Hl)for(var n of Hl(t))ql.call(t,n)&&Zl(e,n,t[n]);return e})({},o),Bl(p,Dl({eventFilter:i}))));var p;return{stop:u,pause:s,resume:a,isActive:c}}const Jl=Ll?window:void 0,Kl=Ll?window.document:void 0;function Ql(...e){let t,n,r,l;if("string"==typeof e[0]?([n,r,l]=e,t=Jl):[t,n,r,l]=e,!t)return Tl;let o=Tl;const i=Sn((()=>function(e){var t;const n=Mt(e);return null!=(t=null==n?void 0:n.$el)?t:n}(t)),(e=>{o(),e&&(e.addEventListener(n,r,l),o=()=>{e.removeEventListener(n,r,l),o=Tl})}),{immediate:!0,flush:"post"}),s=()=>{i(),o()};return El(s),s}Ll&&window.navigator,Ll&&window.location;const Yl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Xl="__vueuse_ssr_handlers__";Yl[Xl]=Yl[Xl]||{};const eo=Yl[Xl];const to={boolean:{read:e=>"true"===e,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()}};function no(e,t,n,r={}){var l;const{flush:o="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,shallow:c,window:u=Jl,eventFilter:p,onError:d=(e=>{console.error(e)})}=r,h=(c?jt:Tt)(t);if(!n)try{n=function(e,t){return eo[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Jl)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return h;const f=Mt(t),g=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}(f),m=null!=(l=r.serializer)?l:to[g],{pause:v,resume:y}=Gl(h,(()=>function(t){try{null==t?n.removeItem(e):n.setItem(e,m.write(t))}catch(e){d(e)}}(h.value)),{flush:o,deep:i,eventFilter:p});return u&&s&&Ql(u,"storage",w),w(),h;function w(t){t&&t.key!==e||(h.value=function(t){if(!t||t.key===e){v();try{const r=t?t.newValue:n.getItem(e);return null==r?(a&&null!==f&&n.setItem(e,m.write(f)),f):"string"!=typeof r?r:m.read(r)}catch(e){d(e)}finally{y()}}}(t))}}var ro,lo,oo=Object.defineProperty,io=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,co=(e,t,n)=>t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function uo(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Tt(new Date),l=()=>r.value=new Date,o="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=Jl}=t,l=Tt(!1);let o=null;function i(){l.value&&r&&(e(),o=r.requestAnimationFrame(i))}function s(){!l.value&&r&&(l.value=!0,i())}function a(){l.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&s(),El(a),{isActive:l,pause:a,resume:s}}(l,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:l=!1}=n;let o=null;const i=Tt(!1);function s(){o&&(clearInterval(o),o=null)}function a(){i.value=!1,s()}function c(){Mt(t)<=0||(i.value=!0,l&&e(),s(),o=setInterval(e,Mt(t)))}r&&Ll&&c(),Lt(t)&&El(Sn(t,(()=>{r&&Ll&&c()})));return El(a),{isActive:i,pause:a,resume:c}}(l,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))so.call(t,n)&&co(e,n,t[n]);if(io)for(var n of io(t))ao.call(t,n)&&co(e,n,t[n]);return e})({now:r},o):r}(lo=ro||(ro={})).UP="UP",lo.RIGHT="RIGHT",lo.DOWN="DOWN",lo.LEFT="LEFT",lo.NONE="NONE";let po=0;const ho=e=>{try{e=decodeURI(e)}catch(e){}return e},fo=(e="")=>e.replace(/\/$/u,""),go=e=>/^(https?:)?\/\//.test(e),mo=e=>{const t=fo(e);return go(t)?t:`https://${t}`},vo=e=>Array.isArray(e)?e:!!e&&[0,e],yo=(e,t)=>"function"==typeof e?e:!1!==e&&t,wo="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",ko=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},bo=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),o=Math.floor(l/864e5);if(0===o){const e=l%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return o<0?n.now:o<8?`${o} ${n.days}`:(e=>{const t=ko(e.getDate(),2),n=ko(e.getMonth()+1,2);return`${ko(e.getFullYear(),2)}-${n}-${t}`})(r)},xo=e=>{const t=no("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const l={folder:e,...r};return n&&(t.value[e]=l),l}))},_o=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,$o=e=>{"AbortError"!==e.name&&console.error(e.message)},So={"Content-Type":"application/json"},Co=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},Io=({serverURL:e,lang:t,token:n,objectId:r,...l})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(l)}).then((e=>e.json())),zo=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>Co(e,"visit count"))).then((e=>Array.isArray(e)?e:[e])),Ro=({serverURL:e,lang:t,path:n})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:So,body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>Co(e,"visit count"))),Eo=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,Ao=e=>e.type.includes("image"),Lo=e=>{const t=Array.from(e).find(Ao);return t?t.getAsFile():null};function To(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let jo={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Oo=/[&<>"']/,Uo=/[&<>"']/g,Mo=/[<>"']|&(?!#?\w+;)/,Po=/[<>"']|&(?!#?\w+;)/g,No={"&":"&","<":"<",">":">",'"':""","'":"'"},Fo=e=>No[e];function Vo(e,t){if(t){if(Oo.test(e))return e.replace(Uo,Fo)}else if(Mo.test(e))return e.replace(Po,Fo);return e}const Bo=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Do(e){return e.replace(Bo,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Ho=/(^|[^\[])\^/g;function Wo(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(Ho,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const qo=/[^\w:]/g,Zo=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Go(e,t,n){if(e){let e;try{e=decodeURIComponent(Do(n)).replace(qo,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Zo.test(n)&&(n=function(e,t){Jo[" "+e]||(Ko.test(e)?Jo[" "+e]=e+"/":Jo[" "+e]=ni(e,"/",!0));const n=-1===(e=Jo[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Qo,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Yo,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Jo={},Ko=/^[^:]+:\/*[^/]*$/,Qo=/^([^:]+:)[\s\S]*$/,Yo=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Xo={exec:function(){}};function ei(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function ti(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function ni(e,t,n){const r=e.length;if(0===r)return"";let l=0;for(;l<r;){const o=e.charAt(r-l-1);if(o!==t||n){if(o===t||!n)break;l++}else l++}return e.slice(0,r-l)}function ri(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function li(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function oi(e,t,n,r){const l=t.href,o=t.title?Vo(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:l,title:o,text:i,tokens:r.inlineTokens(i,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:l,title:o,text:Vo(i)}}class ii{constructor(e){this.options=e||jo}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ni(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=ni(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,l,o,i,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c))&&!r.test(e);){if(c.search(/[^ ]/)>=o||!c.trim())d+="\n"+c.slice(o);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(l="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:l,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(i=0;i<y;i++){this.lexer.state.top=!1,m.items[i].tokens=this.lexer.blockTokens(m.items[i].text,[]);const e=m.items[i].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[i].loose=!0)}return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):Vo(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:ti(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,l,o,i=e.align.length;for(n=0;n<i;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(i=e.rows.length,n=0;n<i;n++)e.rows[n]=ti(e.rows[n],e.header.length).map((e=>({text:e})));for(i=e.header.length,r=0;r<i;r++)e.header[r].tokens=[],this.lexer.inline(e.header[r].text,e.header[r].tokens);for(i=e.rows.length,r=0;r<i;r++)for(o=e.rows[r],l=0;l<o.length;l++)o[l].tokens=[],this.lexer.inline(o[l].text,o[l].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Vo(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Vo(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=ni(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,l=0;for(;l<n;l++)if("\\"===e[l])l++;else if(e[l]===t[0])r++;else if(e[l]===t[1]&&(r--,r<0))return l;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),oi(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return oi(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const l=r[1]||r[2]||"";if(!l||l&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let l,o,i=n,s=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(o=l.length,r[3]||r[4]){i+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(i-=o,i>0)continue;if(o=Math.min(o,o+i+s),Math.min(n,o)%2){const t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Vo(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=Vo(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Vo(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=Vo(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=Vo(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Vo(n[0]):n[0]:Vo(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const si={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>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Xo,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};si.def=Wo(si.def).replace("label",si._label).replace("title",si._title).getRegex(),si.bullet=/(?:[*+-]|\d{1,9}[.)])/,si.listItemStart=Wo(/^( *)(bull) */).replace("bull",si.bullet).getRegex(),si.list=Wo(si.list).replace(/bull/g,si.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+si.def.source+")").getRegex(),si._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",si._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,si.html=Wo(si.html,"i").replace("comment",si._comment).replace("tag",si._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),si.paragraph=Wo(si._paragraph).replace("hr",si.hr).replace("heading"," {0,3}#{1,6} ").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",si._tag).getRegex(),si.blockquote=Wo(si.blockquote).replace("paragraph",si.paragraph).getRegex(),si.normal=ei({},si),si.gfm=ei({},si.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),si.gfm.table=Wo(si.gfm.table).replace("hr",si.hr).replace("heading"," {0,3}#{1,6} ").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",si._tag).getRegex(),si.gfm.paragraph=Wo(si._paragraph).replace("hr",si.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",si.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",si._tag).getRegex(),si.pedantic=ei({},si.normal,{html:Wo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",si._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:Xo,paragraph:Wo(si.normal._paragraph).replace("hr",si.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",si.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const ai={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Xo,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:Xo,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function ci(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function ui(e){let t,n,r="";const l=e.length;for(t=0;t<l;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}ai._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ai.punctuation=Wo(ai.punctuation).replace(/punctuation/g,ai._punctuation).getRegex(),ai.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ai.escapedEmSt=/\\\*|\\_/g,ai._comment=Wo(si._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ai.emStrong.lDelim=Wo(ai.emStrong.lDelim).replace(/punct/g,ai._punctuation).getRegex(),ai.emStrong.rDelimAst=Wo(ai.emStrong.rDelimAst,"g").replace(/punct/g,ai._punctuation).getRegex(),ai.emStrong.rDelimUnd=Wo(ai.emStrong.rDelimUnd,"g").replace(/punct/g,ai._punctuation).getRegex(),ai._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ai._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ai._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])?)+(?![-_])/,ai.autolink=Wo(ai.autolink).replace("scheme",ai._scheme).replace("email",ai._email).getRegex(),ai._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ai.tag=Wo(ai.tag).replace("comment",ai._comment).replace("attribute",ai._attribute).getRegex(),ai._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ai._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ai._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ai.link=Wo(ai.link).replace("label",ai._label).replace("href",ai._href).replace("title",ai._title).getRegex(),ai.reflink=Wo(ai.reflink).replace("label",ai._label).replace("ref",si._label).getRegex(),ai.nolink=Wo(ai.nolink).replace("ref",si._label).getRegex(),ai.reflinkSearch=Wo(ai.reflinkSearch,"g").replace("reflink",ai.reflink).replace("nolink",ai.nolink).getRegex(),ai.normal=ei({},ai),ai.pedantic=ei({},ai.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:Wo(/^!?\[(label)\]\((.*?)\)/).replace("label",ai._label).getRegex(),reflink:Wo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ai._label).getRegex()}),ai.gfm=ei({},ai.normal,{escape:Wo(ai.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ai.gfm.url=Wo(ai.gfm.url,"i").replace("email",ai.gfm._extended_email).getRegex(),ai.breaks=ei({},ai.gfm,{br:Wo(ai.br).replace("{2,}","*").getRegex(),text:Wo(ai.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class pi{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||jo,this.options.tokenizer=this.options.tokenizer||new ii,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 t={block:si.normal,inline:ai.normal};this.options.pedantic?(t.block=si.pedantic,t.inline=ai.pedantic):this.options.gfm&&(t.block=si.gfm,this.options.breaks?t.inline=ai.breaks:t.inline=ai.gfm),this.tokenizer.rules=t}static get rules(){return{block:si,inline:ai}}static lex(e,t){return new pi(t).lex(e)}static lexInline(e,t){return new pi(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,l,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(l=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(l)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=l.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,l,o,i,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+li("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+li("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(i||(s=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,ui))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,ui))){if(l=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(l,ci))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),i=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class di{constructor(e){this.options=e||jo}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+Vo(r,!0)+'">'+(n?e:Vo(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Vo(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=Go(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+Vo(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=Go(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class hi{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class fi{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class gi{constructor(e){this.options=e||jo,this.options.renderer=this.options.renderer||new di,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new hi,this.slugger=new fi}static parse(e,t){return new gi(t).parse(e)}static parseInline(e,t){return new gi(t).parseInline(e)}parse(e,t=!0){let n,r,l,o,i,s,a,c,u,p,d,h,f,g,m,v,y,w,k,b="";const x=e.length;for(n=0;n<x;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(k=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==k||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))b+=k||"";else switch(p.type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(p.tokens),p.depth,Do(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",o=p.header.length,r=0;r<o;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",o=p.rows.length,r=0;r<o;r++){for(s=p.rows[r],a="",i=s.length,l=0;l<i;l++)a+=this.renderer.tablecell(this.parseInline(s[l].tokens),{header:!1,align:p.align[l]});u+=this.renderer.tablerow(a)}b+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),b+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,o=p.items.length,u="",r=0;r<o;r++)m=p.items[r],v=m.checked,y=m.task,g="",m.task&&(w=this.renderer.checkbox(v),f?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=w+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=w+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:w}):g+=w),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,y,v);b+=this.renderer.list(u,d,h);continue;case"html":b+=this.renderer.html(p.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);b+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return b}parseInline(e,t){t=t||this.renderer;let n,r,l,o="";const i=e.length;for(n=0;n<i;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(l=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==l||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=l||"";else switch(r.type){case"escape":case"text":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}}function mi(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),ri(t=ei({},mi.defaults,t||{})),n){const r=t.highlight;let l;try{l=pi.lex(e,t)}catch(e){return n(e)}const o=function(e){let o;if(!e)try{t.walkTokens&&mi.walkTokens(l,t.walkTokens),o=gi.parse(l,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!l.length)return o();let i=0;return mi.walkTokens(l,(function(e){"code"===e.type&&(i++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&o()}))}),0))})),void(0===i&&o())}try{const n=pi.lex(e,t);return t.walkTokens&&mi.walkTokens(n,t.walkTokens),gi.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Vo(e.message+"",!0)+"</pre>";throw e}}mi.options=mi.setOptions=function(e){var t;return ei(mi.defaults,e),t=mi.defaults,jo=t,mi},mi.getDefaults=To,mi.defaults=jo,mi.use=function(...e){const t=ei({},...e),n=mi.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=mi.defaults.renderer||new di;for(const t in e.renderer){const r=n[t];n[t]=(...l)=>{let o=e.renderer[t].apply(n,l);return!1===o&&(o=r.apply(n,l)),o}}t.renderer=n}if(e.tokenizer){const n=mi.defaults.tokenizer||new ii;for(const t in e.tokenizer){const r=n[t];n[t]=(...l)=>{let o=e.tokenizer[t].apply(n,l);return!1===o&&(o=r.apply(n,l)),o}}t.tokenizer=n}if(e.walkTokens){const n=mi.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),mi.setOptions(t)}))},mi.walkTokens=function(e,t){for(const n of e)switch(t.call(mi,n),n.type){case"table":for(const e of n.header)mi.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)mi.walkTokens(n.tokens,t);break;case"list":mi.walkTokens(n.items,t);break;default:mi.defaults.extensions&&mi.defaults.extensions.childTokens&&mi.defaults.extensions.childTokens[n.type]?mi.defaults.extensions.childTokens[n.type].forEach((function(e){mi.walkTokens(n[e],t)})):n.tokens&&mi.walkTokens(n.tokens,t)}},mi.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");ri(t=ei({},mi.defaults,t||{}));try{const n=pi.lexInline(e,t);return t.walkTokens&&mi.walkTokens(n,t.walkTokens),gi.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Vo(e.message+"",!0)+"</pre>";throw e}},mi.Parser=gi,mi.parser=gi.parse,mi.Renderer=di,mi.TextRenderer=hi,mi.Lexer=pi,mi.lexer=pi.lex,mi.Tokenizer=ii,mi.Slugger=fi,mi.parse=mi;const vi=/\$.*?\$/,yi=/^\$(.*?)\$/,wi=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ki=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),bi=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(mi.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=wi.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(vi);return-1!==t?t:e.length},tokenizer(t){const n=yi.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);mi.use({extensions:e})}return mi.parse(ki(e,t))},xi=e=>e.dataset.path||e.getAttribute("id");let _i=null;const $i=()=>_i||(_i=no("USER_KEY",{}));let Si=null;const Ci=()=>Si||(Si=no("WALINE_LIKE",[])),Ii=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{const l=new AbortController,o=document.querySelectorAll(n),i=$i();return o.length&&(({serverURL:e,lang:t,paths:n,signal:r,token:l})=>{const o={};return l&&(o.Authorization=`Bearer ${l}`),fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:o}).then((e=>e.json())).then((e=>Co(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:mo(e),paths:Array.from(o).map((e=>ho(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:l.signal,token:i.value?.token}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch($o),l.abort.bind(l)};var zi,Ri,Ei="function"==typeof Map?new Map:(zi=[],Ri=[],{has:function(e){return zi.indexOf(e)>-1},get:function(e){return Ri[zi.indexOf(e)]},set:function(e,t){-1===zi.indexOf(e)&&(zi.push(e),Ri.push(t))},delete:function(e){var t=zi.indexOf(e);t>-1&&(zi.splice(t,1),Ri.splice(t,1))}}),Ai=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(zi){Ai=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Li(e){var t=Ei.get(e);t&&t.destroy()}function Ti(e){var t=Ei.get(e);t&&t.update()}var ji=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((ji=function(e){return e}).destroy=function(e){return e},ji.update=function(e){return e}):((ji=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Ei.has(e)){var t,n=null,r=null,l=null,o=function(){e.clientWidth!==r&&c()},i=function(t){window.removeEventListener("resize",o,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),Ei.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",o,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Ei.set(e,{destroy:i,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),l=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),l&&(document.documentElement.scrollTop=l)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),l!==r){l=r;var o=Ai("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Li),e},ji.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ti),e});var Oi=ji;const Ui=({size:e})=>Zr("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Zr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Zr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var Mi=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const Pi=zn({name:"ImageWall",components:{LoadingIcon:Ui},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emit:["insert"],setup(e){let t=null;const n=Tt(null),r=Tt({}),l=Tt([]),o=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},i=async t=>{if(t>=e.items.length)return;await rn();const r=Array.from(n.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));l.value[Number(r.dataset.index)].push(t),await i(t+1)},s=async(e=!1)=>{if(l.value.length===o()&&!e)return;var t;l.value=(t=o(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await i(0),window.scrollTo({top:n})};return Sn((()=>[e.items]),(()=>{r.value={},s(!0)})),Sn((()=>[e.columnWidth,e.gap]),(()=>s())),An((()=>{s(!0),t=new ResizeObserver((()=>s())),t.observe(n.value)})),Ln((()=>t.unobserve(n.value))),{columns:l,state:r,wall:n}}}),Ni=["data-index"],Fi=["src","title","onLoad","onClick"];const Vi=zn({name:"CommentBox",components:{CloseIcon:({size:e})=>Zr("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Zr("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"}),Zr("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"})]),EmojiIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Zr("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"})),ImageIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Zr("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"}),Zr("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"})]),ImageWall:Mi(Pi,[["render",function(e,t,n,r,l,o){const i=Un("LoadingIcon");return mr(),kr("div",{ref:"wall",class:"wl-gallery",style:b({gap:`${e.gap}px`})},[(mr(!0),kr(ur,null,Nn(e.columns,((t,n)=>(mr(),kr("div",{key:n,class:"wl-gallery-column","data-index":n,style:b({gap:`${e.gap}px`})},[(mr(!0),kr(ur,null,Nn(t,(t=>(mr(),kr(ur,{key:t},[e.state[e.items[t].src]?Ar("v-if",!0):(mr(),br(i,{key:0,size:36,style:{margin:"20px auto"}})),Ir("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert",``)},null,40,Fi)],64)))),128))],12,Ni)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>Zr("svg",{width:"16",height:"16",ariaHidden:"true"},Zr("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"})),PreviewIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Zr("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"}),Zr("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"})]),LoadingIcon:Ui,GifIcon:()=>Zr("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Zr("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"}),Zr("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"})])},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,{emit:t}){const n=xn("config"),r=no("WALINE_COMMENT_BOX_EDITOR",""),l=no("WALINE_USER_META",{nick:"",mail:"",link:""}),o=$i(),i=Tt({}),s=Tt(null),a=Tt(null),c=Tt(null),u=Tt(null),p=Tt(null),d=Tt(null),h=Tt(null),f=Tt({tabs:[],map:{}}),g=Tt(0),m=Tt(!1),v=Tt(!1),y=Tt(!1),w=Tt(""),k=Tt(0),b=wt({loading:!0,list:[]}),x=Tt(0),_=Tt(!1),$=Tt(""),S=Tt(!1),C=qr((()=>n.value.locale)),I=qr((()=>Boolean(o.value?.token))),z=qr((()=>!1!==n.value.imageUploader)),R=e=>{const t=s.value,n=t.selectionStart,l=t.selectionEnd||0,o=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(l,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=o},E=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return R(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n`)}))},A=()=>{const{serverURL:a,lang:c,login:u,wordLimit:p,requiredMeta:d}=n.value,h={comment:$.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,ua:navigator.userAgent,url:n.value.path};if(o.value?.token)h.nick=o.value.display_name,h.mail=o.value.email,h.link=o.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!h.nick)return i.value.nick?.focus(),alert(C.value.nickError);if(d.indexOf("mail")>-1&&!h.mail||h.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(h.mail))return i.value.mail?.focus(),alert(C.value.mailError);if(!h.comment)return void s.value?.focus();h.nick||(h.nick=C.value.anonymous)}if(!_.value)return alert(C.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",k.value.toString()));h.comment=ki(h.comment,f.value.map),e.replyId&&e.rootId&&(h.pid=e.replyId,h.rid=e.rootId,h.at=e.replyUser),S.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:a,lang:c,token:o.value?.token,comment:h}).then((n=>{if(S.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",w.value="",e.replyId&&t("cancel-reply")})).catch((e=>{S.value=!1,alert(e.message)}))},L=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(m.value=!1),p.value.contains(e.target)||d.value.contains(e.target)||(v.value=!1)},T=async e=>{const{scrollTop:t,clientHeight:r,scrollHeight:l}=e.target,o=(r+t)/l,i=n.value.search,s=h.value?.value||"";o<.9||b.loading||(b.loading=!0,b.list.push(...i.more?await i.more(s,b.list.length):await i.search(s)),b.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50))},j=Ul((e=>{b.list=[],T(e)}),300);return Sn([n,k],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(x.value=n[0],_.value=!1):t>n[1]?(x.value=n[1],_.value=!1):(x.value=n[1],_.value=!0):(x.value=0,_.value=!0)}),{immediate:!0}),Sn(v,(async e=>{if(!e)return;const t=n.value.search;h.value&&(h.value.value=""),b.loading=!0,b.list=t.default?await t.default():await t.search(""),b.loading=!1})),An((()=>{document.body.addEventListener("click",L),Sn((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;$.value=e,w.value=bi(e,{emojiMap:f.value.map,highlighter:t,texRenderer:r}),k.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?Oi(s.value):Oi.destroy(s.value)}),{immediate:!0}),Sn((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?xo(fo(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:l,prefix:o,type:i,items:s}=e;t.tabs.push({name:n,icon:_o(l,r,o,i),items:s.map((e=>{const n=`${o||""}${e}`;return t.map[n]=_o(e,r,o,i),n}))})})),t}))).then((e=>{f.value=e}));var t}),{immediate:!0})})),Tn((()=>{document.body.removeEventListener("click",L)})),{config:n,locale:C,insert:R,onChange:()=>{const e=a.value;e.files&&z.value&&E(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{if(e.dataTransfer?.items){const t=Lo(e.dataTransfer.items);t&&z.value&&(E(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&A()},onPaste:e=>{if(e.clipboardData){const t=Lo(e.clipboardData.items);t&&z.value&&E(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,l=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,s=window.open(`${r}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${l},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);s?.postMessage({type:"TOKEN",data:null},"*");const a=({data:e})=>{e&&"userInfo"===e.type&&e.data.token&&(s?.close(),o.value=e.data,(e.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,l=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2;window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${l},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:"TOKEN",data:o.value.token},"*");const s=({data:e})=>{e&&"profile"===e.type&&(o.value={...o.value,...e},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(o)))),window.removeEventListener("message",s))};window.addEventListener("message",s)},submitComment:A,onImageWallScroll:T,onGifSearch:j,isLogin:I,userInfo:o,isSubmitting:S,wordNumber:k,wordLimit:x,isWordNumberLegal:_,editor:r,userMeta:l,emoji:f,emojiTabIndex:g,showEmoji:m,gifData:b,showGif:v,canUploadImage:z,previewText:w,showPreview:y,inputRefs:i,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,gifButtonRef:p,gifPopupRef:d,imageUploadRef:a,gifSearchInputRef:h}}}),Bi={class:"wl-comment"},Di={key:0,class:"wl-login-info"},Hi={class:"wl-avatar"},Wi=["title"],qi=["src"],Zi=["textContent"],Gi={class:"wl-panel"},Ji=["for","textContent"],Ki=["id","name","type","onUpdate:modelValue"],Qi=["placeholder"],Yi={class:"wl-preview"},Xi=Ir("hr",null,null,-1),es=["innerHTML"],ts={class:"wl-footer"},ns={class:"wl-actions"},rs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},ls=["title"],os=["title"],is=["title"],ss=["title"],as={class:"wl-info"},cs={class:"wl-text-number"},us={key:0},ps=Er(" / "),ds=["textContent"],hs=["textContent"],fs=["disabled"],gs=["placeholder"],ms={key:0,class:"wl-loading"},vs={key:0,class:"wl-tab-wrapper"},ys=["title","onClick"],ws=["src","alt"],ks={key:0,class:"wl-tabs"},bs=["onClick"],xs=["src","alt","title"],_s=["title"];var $s=Mi(Vi,[["render",function(e,t,n,r,l,o){const i=Un("CloseIcon"),s=Un("MarkdownIcon"),a=Un("EmojiIcon"),c=Un("GifIcon"),u=Un("ImageIcon"),p=Un("PreviewIcon"),d=Un("LoadingIcon"),h=Un("ImageWall");return mr(),kr("div",Bi,["disable"!==e.config.login&&e.isLogin?(mr(),kr("div",Di,[Ir("div",Hi,[Ir("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[zr(i,{size:14})],8,Wi),Ir("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,qi)]),Ir("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:z(e.userInfo.display_name)},null,8,Zi)])):Ar("v-if",!0),Ir("div",Gi,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(mr(),kr("div",{key:0,class:S(["wl-header",`item${e.config.meta.length}`])},[(mr(!0),kr(ur,null,Nn(e.config.meta,(t=>(mr(),kr("div",{class:"wl-header-item",key:t},[Ir("label",{for:t,textContent:z(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,Ji),jn(Ir("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:`wl-${t}`,class:S(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,Ki),[[_l,e.userMeta[t]]])])))),128))],2)):Ar("v-if",!0),jn(Ir("textarea",{class:"wl-editor",ref:"editorRef",id:"wl-edit",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editor=t),onKeydown:t[3]||(t[3]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[4]||(t[4]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[5]||(t[5]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,Qi),[[gl,e.editor]]),jn(Ir("div",Yi,[Xi,Ir("h4",null,z(e.locale.preview)+":",1),Ir("div",{class:"wl-content",innerHTML:e.previewText},null,8,es)],512),[[Sl,e.showPreview]]),Ir("div",ts,[Ir("div",ns,[Ir("a",rs,[zr(s)]),jn(Ir("button",{ref:"emojiButtonRef",class:S(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[zr(a)],10,ls),[[Sl,e.emoji.tabs.length]]),e.config.search?(mr(),kr("button",{key:0,ref:"gifButtonRef",class:S(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[7]||(t[7]=t=>e.showGif=!e.showGif)},[zr(c)],10,os)):Ar("v-if",!0),Ir("input",{ref:"imageUploadRef",class:"upload",id:"wl-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[8]||(t[8]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(mr(),kr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[zr(u)],8,is)):Ar("v-if",!0),Ir("button",{class:S(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[9]||(t[9]=t=>e.showPreview=!e.showPreview)},[zr(p)],10,ss)]),Ir("div",as,[Ir("div",cs,[Er(z(e.wordNumber)+" ",1),e.config.wordLimit?(mr(),kr("span",us,[ps,Ir("span",{class:S({illegal:!e.isWordNumberLegal}),textContent:z(e.wordLimit)},null,10,ds)])):Ar("v-if",!0),Er(" "+z(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Ar("v-if",!0):(mr(),kr("button",{key:0,class:"wl-btn",onClick:t[10]||(t[10]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:z(e.locale.login)},null,8,hs)),"force"!==e.config.login||e.isLogin?(mr(),kr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[11]||(t[11]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(mr(),br(d,{key:0,size:16})):(mr(),kr(ur,{key:1},[Er(z(e.locale.submit),1)],64))],8,fs)):Ar("v-if",!0)]),Ir("div",{ref:"gifPopupRef",class:S(["wl-gif-popup",{display:e.showGif}])},[Ir("input",{type:"text",placeholder:e.locale.gifSearchPlaceholder,ref:"gifSearchInputRef",onInput:t[12]||(t[12]=(...t)=>e.onGifSearch&&e.onGifSearch(...t))},null,40,gs),zr(h,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[13]||(t[13]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(mr(),kr("div",ms,[zr(d,{size:30})])):Ar("v-if",!0)],2),Ir("div",{ref:"emojiPopupRef",class:S(["wl-emoji-popup",{display:e.showEmoji}])},[(mr(!0),kr(ur,null,Nn(e.emoji.tabs,((t,n)=>(mr(),kr(ur,{key:t.name},[n===e.emojiTabIndex?(mr(),kr("div",vs,[(mr(!0),kr(ur,null,Nn(t.items,(t=>(mr(),kr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(mr(),kr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ws)):Ar("v-if",!0)],8,ys)))),128))])):Ar("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(mr(),kr("div",ks,[(mr(!0),kr(ur,null,Nn(e.emoji.tabs,((t,n)=>(mr(),kr("button",{key:t.name,class:S(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Ir("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,xs)],10,bs)))),128))])):Ar("v-if",!0)],2)])]),e.replyId?(mr(),kr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[14]||(t[14]=t=>e.$emit("cancel-reply"))},[zr(i,{size:24})],8,_s)):Ar("v-if",!0)])}],["__file","CommentBox.vue"]]);const Ss=["approved","waiting","spam"],Cs=zn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:$s,DeleteIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Zr("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"})),LikeIcon:({active:e=!1})=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Zr("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"})]),ReplyIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Zr("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"})),VerifiedIcon:()=>Zr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Zr("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"}))},emits:["submit","reply","like","delete","status","sticky"],setup(e){const t=xn("config"),n=Ci(),r=$i(),l=qr((()=>t.value.locale)),o=qr((()=>{let{link:t}=e.comment;return t?go(t)?t:`https://${t}`:""})),i=qr((()=>n.value.includes(e.comment.objectId))),s=((e,t)=>{const n=uo();return qr((()=>bo(e,n.value,t)))})(e.comment.insertedAt,l.value),a=qr((()=>"administrator"===r.value.type)),c=qr((()=>e.comment.user_id&&r.value.objectId===e.comment.user_id)),u=qr((()=>e.comment.objectId===e.reply?.objectId));return{config:t,locale:l,isReplyingCurrent:u,link:o,like:i,time:s,isAdmin:a,isOwner:c,commentStatus:Ss}}}),Is=["id"],zs={class:"wl-user","aria-hidden":"true"},Rs=["src"],Es={class:"wl-card"},As={class:"wl-head"},Ls=["href"],Ts={key:1,class:"wl-nick"},js=["textContent"],Os=["textContent"],Us=["textContent"],Ms=["textContent"],Ps=["textContent"],Ns={class:"wl-comment-actions"},Fs=["title"],Vs=["textContent"],Bs=["title"],Ds={class:"wl-meta","aria-hidden":"true"},Hs=["textContent"],Ws=["textContent"],qs=["textContent"],Zs=["innerHTML"],Gs={key:0,class:"wl-admin-actions"},Js={class:"wl-comment-status"},Ks=["disabled","onClick","textContent"],Qs={key:1,class:"wl-reply-wrapper"},Ys={key:2,class:"wl-quote"};const Xs=zn({name:"WalineRoot",components:{CommentBox:$s,CommentCard:Mi(Cs,[["render",function(e,t,n,r,l,o){const i=Un("VerifiedIcon"),s=Un("DeleteIcon"),a=Un("LikeIcon"),c=Un("ReplyIcon"),u=Un("CommentBox"),p=Un("CommentCard",!0);return mr(),kr("div",{class:"wl-item",id:e.comment.objectId},[Ir("div",zs,[e.comment.avatar?(mr(),kr("img",{key:0,src:e.comment.avatar},null,8,Rs)):Ar("v-if",!0),e.comment.type?(mr(),br(i,{key:1})):Ar("v-if",!0)]),Ir("div",Es,[Ir("div",As,[e.link?(mr(),kr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},z(e.comment.nick),9,Ls)):(mr(),kr("span",Ts,z(e.comment.nick),1)),"administrator"===e.comment.type?(mr(),kr("span",{key:2,class:"wl-badge",textContent:z(e.locale.admin)},null,8,js)):Ar("v-if",!0),e.comment.label?(mr(),kr("span",{key:3,class:"wl-badge",textContent:z(e.comment.label)},null,8,Os)):Ar("v-if",!0),e.comment.sticky?(mr(),kr("span",{key:4,class:"wl-badge",textContent:z(e.locale.sticky)},null,8,Us)):Ar("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(mr(),kr("span",{key:5,class:S(`wl-badge level${e.comment.level}`),textContent:z(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Ms)):Ar("v-if",!0),Ir("span",{class:"wl-time",textContent:z(e.time)},null,8,Ps),Ir("div",Ns,[e.isAdmin||e.isOwner?(mr(),kr("button",{key:0,class:"wl-delete",onClick:t[0]||(t[0]=t=>e.$emit("delete",e.comment))},[zr(s)])):Ar("v-if",!0),Ir("button",{class:"wl-like",onClick:t[1]||(t[1]=t=>e.$emit("like",e.comment)),title:e.like?e.locale.cancelLike:e.locale.like},[zr(a,{active:e.like},null,8,["active"]),"like"in e.comment?(mr(),kr("span",{key:0,textContent:z(e.comment.like)},null,8,Vs)):Ar("v-if",!0)],8,Fs),Ir("button",{class:S(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[2]||(t[2]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[zr(c)],10,Bs)])]),Ir("div",Ds,[e.comment.addr?(mr(),kr("span",{key:0,textContent:z(e.comment.addr)},null,8,Hs)):Ar("v-if",!0),e.comment.browser?(mr(),kr("span",{key:1,textContent:z(e.comment.browser)},null,8,Ws)):Ar("v-if",!0),e.comment.os?(mr(),kr("span",{key:2,textContent:z(e.comment.os)},null,8,qs)):Ar("v-if",!0)]),Ir("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,Zs),e.isAdmin?(mr(),kr("div",Gs,[Ir("span",Js,[(mr(!0),kr(ur,null,Nn(e.commentStatus,(t=>(mr(),kr("button",{key:t,class:S(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:z(t)},null,10,Ks)))),128))]),e.isAdmin&&!e.comment.rid?(mr(),kr("button",{key:0,class:"wl-btn wl-sticky",onClick:t[3]||(t[3]=t=>e.$emit("sticky",e.comment))},z(e.comment.sticky?"unsticky":"sticky"),1)):Ar("v-if",!0)])):Ar("v-if",!0),e.isReplyingCurrent?(mr(),kr("div",Qs,[zr(u,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t)),onCancelReply:t[5]||(t[5]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):Ar("v-if",!0),e.comment.children?(mr(),kr("div",Ys,[(mr(!0),kr(ur,null,Nn(e.comment.children,(n=>(mr(),br(p,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[6]||(t[6]=t=>e.$emit("reply",t)),onSubmit:t[7]||(t[7]=t=>e.$emit("submit",t)),onLike:t[8]||(t[8]=t=>e.$emit("like",t)),onDelete:t[9]||(t[9]=t=>e.$emit("delete",t)),onStatus:t[10]||(t[10]=t=>e.$emit("status",t)),onSticky:t[11]||(t[11]=t=>e.$emit("sticky",t))},null,8,["comment","reply","rootId"])))),128))])):Ar("v-if",!0)])],8,Is)}],["__file","CommentCard.vue"]]),LoadingIcon:Ui},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","copyright"],setup(e){const o=qr((()=>(({serverURL:e,path:o=location.pathname,lang:i="zh-CN",locale:s,emoji:c=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:u=["nick","mail","link"],requiredMeta:p=[],dark:d=!1,pageSize:h=10,wordLimit:f,imageUploader:g,highlighter:m,texRenderer:y,copyright:w=!0,login:k="enable",search:b=l(),...x})=>({serverURL:mo(e),path:ho(o),locale:{...v[i]||v["zh-CN"],..."object"==typeof s?s:{}},wordLimit:vo(f),meta:t(u),requiredMeta:t(p),imageUploader:yo(g,n),highlighter:yo(m,a),texRenderer:yo(y,r),lang:i,dark:d,emoji:c,pageSize:h,login:k,copyright:w,search:b,...x}))(e))),i=$i(),s=Ci(),c=Tt("loading"),u=Tt(0),p=Tt(1),d=Tt(0),h=Tt([]),f=Tt(null),g=qr((()=>{return"string"==typeof(e=o.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${wo}}`:`${e}${wo}`:!0===e?`:root${wo}`:"";var e}));let m;!function(e,t={}){const n=Tt(!1),{document:r=Kl,immediate:l=!0,manual:o=!1,id:i="vueuse_styletag_"+ ++po}=t,s=Tt(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(i)||r.createElement("style");e.type="text/css",e.id=i,t.media&&(e.media=t.media),r.head.appendChild(e),n.value||(a=Sn(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(i)),n.value=!1)};l&&!o&&c(),o||El(u),kt(n)}(g);const y=e=>{const{serverURL:t,path:n,pageSize:r}=o.value,l=new AbortController;c.value="loading",m?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:l,signal:o,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}`,{signal:o,headers:s}).then((e=>e.json())).then((e=>Co(e,"comment list")))})({serverURL:t,lang:o.value.lang,path:n,pageSize:r,page:e,signal:l.signal,token:i.value?.token}).then((t=>{c.value="success",u.value=t.count,h.value.push(...t.data),p.value=e,d.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),c.value="error")})),m=l.abort.bind(l)},w=()=>{u.value=0,h.value=[],y(1)};return function(e,t){if(Pr){let n=Pr.provides;const r=Pr.parent&&Pr.parent.provides;r===n&&(n=Pr.provides=Object.create(r)),n[e]=t}}("config",o),Sn((()=>e.path),w),An((()=>w())),{config:o,darkmodeStyle:g,i18n:qr((()=>o.value.locale)),status:c,count:u,page:p,totalPages:d,data:h,reply:f,loadMore:()=>y(p.value+1),refresh:w,onReply:e=>{f.value=e},onSubmit:e=>{if(e.rid){const t=h.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else h.value.unshift(e)},onStatusChange:async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=o.value;await Io({serverURL:n,lang:r,token:i.value?.token,objectId:e.objectId,status:t}),e.status=t},onDelete:async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=o.value;await(({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>e.json())))({serverURL:t,lang:n,token:i.value?.token,objectId:e}),h.value.some(((t,n)=>t.objectId===e?(h.value=h.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,l)=>r.objectId===e&&(h.value[n].children=t.children.filter(((e,t)=>t!==l)),!0)))))},onSticky:async e=>{if(e.rid)return;const{serverURL:t,lang:n}=o.value;await Io({serverURL:t,lang:n,token:i.value?.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:t,lang:n}=o.value,{objectId:r}=e,l=s.value.includes(r);await(({serverURL:e,lang:t,objectId:n,like:r})=>fetch(`${e}/comment/${n}?lang=${t}`,{method:"PUT",headers:So,body:JSON.stringify({like:r})}).then((e=>e.json())))({serverURL:t,lang:n,objectId:r,like:!l}),l?s.value=s.value.filter((e=>e!==r)):(s.value=[...s.value,r],s.value.length>50&&(s.value=s.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},version:"2.6.0"}}}),ea={"data-waline":""},ta={class:"wl-count"},na=["textContent"],ra={class:"wl-cards"},la={key:1,class:"wl-operation"},oa=["textContent"],ia={key:0,class:"wl-loading"},sa=["textContent"],aa={class:"wl-operation"},ca=["textContent"],ua={key:3,class:"wl-power"},pa=Er(" Powered by "),da=Ir("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var ha=Mi(Xs,[["render",function(e,t,n,r,l,o){const i=Un("CommentBox"),s=Un("CommentCard"),a=Un("LoadingIcon");return mr(),kr("div",ea,[e.reply?Ar("v-if",!0):(mr(),br(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Ir("div",ta,[e.count?(mr(),kr("span",{key:0,class:"wl-num",textContent:z(e.count)},null,8,na)):Ar("v-if",!0),Er(" "+z(e.i18n.comment),1)]),Ir("div",ra,[(mr(!0),kr(ur,null,Nn(e.data,(t=>(mr(),br(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","onReply","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(mr(),kr("div",la,[Ir("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:z(e.i18n.refresh)},null,8,oa)])):(mr(),kr(ur,{key:2},["loading"===e.status?(mr(),kr("div",ia,[zr(a,{size:30})])):e.data.length?e.page<e.totalPages?(mr(),kr(ur,{key:2},[Ar(" Load more button "),Ir("div",aa,[Ir("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:z(e.i18n.more)},null,8,ca)])],2112)):Ar("v-if",!0):(mr(),kr("div",{key:1,class:"wl-empty",textContent:z(e.i18n.sofa)},null,8,sa))],64)),Ar(" Copyright Information "),e.config.copyright?(mr(),kr("div",ua,[pa,da,Er(" v"+z(e.version),1)])):Ar("v-if",!0)])}],["__file","Waline.vue"]]);const fa=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},ga=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:l="zh-CN"})=>{const o=new AbortController,i=Array.from(document.querySelectorAll(n)),s=e=>{const n=xi(e);return null!==n&&t!==n},a=n=>zo({serverURL:mo(e),paths:n.map((e=>xi(e)||t)),lang:l,signal:o.signal}).then((e=>fa(e,n))).catch($o);if(r){const n=i.filter((e=>!s(e))),r=i.filter(s);Ro({serverURL:e,path:t,lang:l}).then((e=>fa(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(i);return o.abort.bind(o)};exports.RecentComments=({el:e,serverURL:t,count:n,lang:r="zh-CN"})=>{const l=$i(),o=Eo(e),i=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:l})=>{const o={};return l&&(o.Authorization=`Bearer ${l}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:o}).then((e=>e.json())).then((e=>Co(e,"recent comment")))})({serverURL:t,count:n,lang:r,signal:i.signal,token:l.value?.token}).then((e=>o&&e.length?(o.innerHTML=`<ul class="wl-recent-list">${e.map((e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>:${e.comment}</li>`)).join("")}</ul>`,{comments:e,destroy:()=>{i.abort(),o.innerHTML=""}}):{comments:e,destroy:()=>i.abort()}))},exports.commentCount=Ii,exports.defaultLocales=v,exports.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{const o=e?Eo(e):null;if(e&&!o)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const i=wt({...l}),s=wt({comment:n,pageview:r,path:t}),a=o?Rl((()=>Zr(ha,{path:s.path,...i}))):null;a&&a.mount(o);const c=_n((()=>{s.comment&&Ii({serverURL:i.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})})),u=_n((()=>{s.pageview&&ga({serverURL:i.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})}));return{el:o,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{i[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}},exports.pageviewCount=ga,exports.version="2.6.0";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=e=>new Promise(((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),r=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',l=()=>{const e={next:""},t=({keyword:e,pos:t})=>{const n=new URLSearchParams("media_filter=minimal");return n.set("key","PAY5JLFIH6V6"),n.set("limit","20"),n.set("pos",t||""),n.set("q",e),fetch(`https://g.tenor.com/v1/search?${n.toString()}`,{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:t||"",results:[]})))};return{search:(n="")=>t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url})))))),more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},o=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),i=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],s={},a=e=>{let t=0;return e.replace(o,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"<";let l;s[n]?l=s[n]:(l=i[t],s[n]=l);const o=`<span style="color: #${l}">${n}</span>`;return t=++t%i.length,o}))},c=["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"],u=e=>Object.fromEntries(e.map(((e,t)=>[c[t],e])));var p=u(["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!\n Current word number: $2","Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF"]),d=u(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF"]),h=u(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包"]),f=u(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包"]),g=u(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF"]),m=u(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF"]);const v={zh:h,"zh-cn":h,"zh-CN":h,"zh-tw":f,"zh-TW":f,en:p,"en-US":p,"en-us":p,jp:d,"jp-jp":d,"jp-JP":d,"pt-br":g,"pt-BR":g,ru:m,"ru-ru":m,"ru-RU":m};function y(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const w=y("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function k(e){return!!e||""===e}function b(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=q(r)?$(r):b(r);if(l)for(const e in l)t[e]=l[e]}return t}return q(e)||G(e)?e:void 0}const x=/;(?![^(]*\))/g,_=/:(.+)/;function $(e){const t={};return e.split(x).forEach((e=>{if(e){const n=e.split(_);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function S(e){let t="";if(q(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=S(e[n]);r&&(t+=r+" ")}else if(G(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function C(e,t){if(e===t)return!0;let n=H(e),r=H(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=Z(e),r=Z(t),n||r)return e===t;if(n=V(e),r=V(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=C(e[r],t[r]);return n}(e,t);if(n=G(e),r=G(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(r&&!l||!r&&l||!C(e[n],t[n]))return!1}}return String(e)===String(t)}function I(e,t){return e.findIndex((e=>C(e,t)))}const z=e=>q(e)?e:null==e?"":V(e)||G(e)&&(e.toString===K||!W(e.toString))?JSON.stringify(e,R,2):String(e),R=(e,t)=>t&&t.__v_isRef?R(e,t.value):B(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()]}:!G(t)||V(t)||Y(t)?t:String(t),E={},A=[],L=()=>{},T=()=>!1,j=/^on[^a-z]/,O=e=>j.test(e),U=e=>e.startsWith("onUpdate:"),M=Object.assign,P=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},N=Object.prototype.hasOwnProperty,F=(e,t)=>N.call(e,t),V=Array.isArray,B=e=>"[object Map]"===Q(e),D=e=>"[object Set]"===Q(e),H=e=>"[object Date]"===Q(e),W=e=>"function"==typeof e,q=e=>"string"==typeof e,Z=e=>"symbol"==typeof e,G=e=>null!==e&&"object"==typeof e,J=e=>G(e)&&W(e.then)&&W(e.catch),K=Object.prototype.toString,Q=e=>K.call(e),Y=e=>"[object Object]"===Q(e),X=e=>q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ee=y(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),te=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ne=/-(\w)/g,re=te((e=>e.replace(ne,((e,t)=>t?t.toUpperCase():"")))),le=/\B([A-Z])/g,oe=te((e=>e.replace(le,"-$1").toLowerCase())),ie=te((e=>e.charAt(0).toUpperCase()+e.slice(1))),se=te((e=>e?`on${ie(e)}`:"")),ae=(e,t)=>!Object.is(e,t),ce=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ue=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},pe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let de;let he;class fe{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&he&&(this.parent=he,this.index=(he.scopes||(he.scopes=[])).push(this)-1)}run(e){if(this.active){const t=he;try{return he=this,e()}finally{he=t}}}on(){he=this}off(){he=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const ge=e=>{const t=new Set(e);return t.w=0,t.n=0,t},me=e=>(e.w&ke)>0,ve=e=>(e.n&ke)>0,ye=new WeakMap;let we=0,ke=1;let be;const xe=Symbol(""),_e=Symbol("");class $e{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=he){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=be,t=Ce;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=be,be=this,Ce=!0,ke=1<<++we,we<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ke})(this):Se(this),this.fn()}finally{we<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const l=t[r];me(l)&&!ve(l)?l.delete(e):t[n++]=l,l.w&=~ke,l.n&=~ke}t.length=n}})(this),ke=1<<--we,be=this.parent,Ce=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){be===this?this.deferStop=!0:this.active&&(Se(this),this.onStop&&this.onStop(),this.active=!1)}}function Se(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ce=!0;const Ie=[];function ze(){Ie.push(Ce),Ce=!1}function Re(){const e=Ie.pop();Ce=void 0===e||e}function Ee(e,t,n){if(Ce&&be){let t=ye.get(e);t||ye.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=ge()),Ae(r)}}function Ae(e,t){let n=!1;we<=30?ve(e)||(e.n|=ke,n=!me(e)):n=!e.has(be),n&&(e.add(be),be.deps.push(e))}function Le(e,t,n,r,l,o){const i=ye.get(e);if(!i)return;let s=[];if("clear"===t)s=[...i.values()];else if("length"===n&&V(e))i.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(i.get(n)),t){case"add":V(e)?X(n)&&s.push(i.get("length")):(s.push(i.get(xe)),B(e)&&s.push(i.get(_e)));break;case"delete":V(e)||(s.push(i.get(xe)),B(e)&&s.push(i.get(_e)));break;case"set":B(e)&&s.push(i.get(xe))}if(1===s.length)s[0]&&Te(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Te(ge(e))}}function Te(e,t){const n=V(e)?e:[...e];for(const e of n)e.computed&&je(e);for(const e of n)e.computed||je(e)}function je(e,t){(e!==be||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Oe=y("__proto__,__v_isRef,__isVue"),Ue=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(Z)),Me=Be(),Pe=Be(!1,!0),Ne=Be(!0),Fe=Ve();function Ve(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ct(this);for(let e=0,t=this.length;e<t;e++)Ee(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Ct)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ze();const n=Ct(this)[t].apply(this,e);return Re(),n}})),e}function Be(e=!1,t=!1){return function(n,r,l){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&l===(e?t?vt:mt:t?gt:ft).get(n))return n;const o=V(n);if(!e&&o&&F(Fe,r))return Reflect.get(Fe,r,l);const i=Reflect.get(n,r,l);return(Z(r)?Ue.has(r):Oe(r))?i:(e||Ee(n,0,r),t?i:Lt(i)?o&&X(r)?i:i.value:G(i)?e?kt(i):wt(i):i)}}function De(e=!1){return function(t,n,r,l){let o=t[n];if(_t(o)&&Lt(o)&&!Lt(r))return!1;if(!e&&!_t(r)&&($t(r)||(r=Ct(r),o=Ct(o)),!V(t)&&Lt(o)&&!Lt(r)))return o.value=r,!0;const i=V(t)&&X(n)?Number(n)<t.length:F(t,n),s=Reflect.set(t,n,r,l);return t===Ct(l)&&(i?ae(r,o)&&Le(t,"set",n,r):Le(t,"add",n,r)),s}}const He={get:Me,set:De(),deleteProperty:function(e,t){const n=F(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Le(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return Z(t)&&Ue.has(t)||Ee(e,0,t),n},ownKeys:function(e){return Ee(e,0,V(e)?"length":xe),Reflect.ownKeys(e)}},We={get:Ne,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},qe=M({},He,{get:Pe,set:De(!0)}),Ze=e=>e,Ge=e=>Reflect.getPrototypeOf(e);function Je(e,t,n=!1,r=!1){const l=Ct(e=e.__v_raw),o=Ct(t);n||(t!==o&&Ee(l,0,t),Ee(l,0,o));const{has:i}=Ge(l),s=r?Ze:n?Rt:zt;return i.call(l,t)?s(e.get(t)):i.call(l,o)?s(e.get(o)):void(e!==l&&e.get(t))}function Ke(e,t=!1){const n=this.__v_raw,r=Ct(n),l=Ct(e);return t||(e!==l&&Ee(r,0,e),Ee(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function Qe(e,t=!1){return e=e.__v_raw,!t&&Ee(Ct(e),0,xe),Reflect.get(e,"size",e)}function Ye(e){e=Ct(e);const t=Ct(this);return Ge(t).has.call(t,e)||(t.add(e),Le(t,"add",e,e)),this}function Xe(e,t){t=Ct(t);const n=Ct(this),{has:r,get:l}=Ge(n);let o=r.call(n,e);o||(e=Ct(e),o=r.call(n,e));const i=l.call(n,e);return n.set(e,t),o?ae(t,i)&&Le(n,"set",e,t):Le(n,"add",e,t),this}function et(e){const t=Ct(this),{has:n,get:r}=Ge(t);let l=n.call(t,e);l||(e=Ct(e),l=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return l&&Le(t,"delete",e,void 0),o}function tt(){const e=Ct(this),t=0!==e.size,n=e.clear();return t&&Le(e,"clear",void 0,void 0),n}function nt(e,t){return function(n,r){const l=this,o=l.__v_raw,i=Ct(o),s=t?Ze:e?Rt:zt;return!e&&Ee(i,0,xe),o.forEach(((e,t)=>n.call(r,s(e),s(t),l)))}}function rt(e,t,n){return function(...r){const l=this.__v_raw,o=Ct(l),i=B(o),s="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,c=l[e](...r),u=n?Ze:t?Rt:zt;return!t&&Ee(o,0,a?_e:xe),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function lt(e){return function(...t){return"delete"!==e&&this}}function ot(){const e={get(e){return Je(this,e)},get size(){return Qe(this)},has:Ke,add:Ye,set:Xe,delete:et,clear:tt,forEach:nt(!1,!1)},t={get(e){return Je(this,e,!1,!0)},get size(){return Qe(this)},has:Ke,add:Ye,set:Xe,delete:et,clear:tt,forEach:nt(!1,!0)},n={get(e){return Je(this,e,!0)},get size(){return Qe(this,!0)},has(e){return Ke.call(this,e,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:nt(!0,!1)},r={get(e){return Je(this,e,!0,!0)},get size(){return Qe(this,!0)},has(e){return Ke.call(this,e,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:nt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((l=>{e[l]=rt(l,!1,!1),n[l]=rt(l,!0,!1),t[l]=rt(l,!1,!0),r[l]=rt(l,!0,!0)})),[e,n,t,r]}const[it,st,at,ct]=ot();function ut(e,t){const n=t?e?ct:at:e?st:it;return(t,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(F(n,r)&&r in t?n:t,r,l)}const pt={get:ut(!1,!1)},dt={get:ut(!1,!0)},ht={get:ut(!0,!1)},ft=new WeakMap,gt=new WeakMap,mt=new WeakMap,vt=new WeakMap;function yt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>Q(e).slice(8,-1))(e))}function wt(e){return _t(e)?e:bt(e,!1,He,pt,ft)}function kt(e){return bt(e,!0,We,ht,mt)}function bt(e,t,n,r,l){if(!G(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=l.get(e);if(o)return o;const i=yt(e);if(0===i)return e;const s=new Proxy(e,2===i?r:n);return l.set(e,s),s}function xt(e){return _t(e)?xt(e.__v_raw):!(!e||!e.__v_isReactive)}function _t(e){return!(!e||!e.__v_isReadonly)}function $t(e){return!(!e||!e.__v_isShallow)}function St(e){return xt(e)||_t(e)}function Ct(e){const t=e&&e.__v_raw;return t?Ct(t):e}function It(e){return ue(e,"__v_skip",!0),e}const zt=e=>G(e)?wt(e):e,Rt=e=>G(e)?kt(e):e;function Et(e){Ce&&be&&Ae((e=Ct(e)).dep||(e.dep=ge()))}function At(e,t){(e=Ct(e)).dep&&Te(e.dep)}function Lt(e){return!(!e||!0!==e.__v_isRef)}function Tt(e){return Ot(e,!1)}function jt(e){return Ot(e,!0)}function Ot(e,t){return Lt(e)?e:new Ut(e,t)}class Ut{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ct(e),this._value=t?e:zt(e)}get value(){return Et(this),this._value}set value(e){e=this.__v_isShallow?e:Ct(e),ae(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:zt(e),At(this))}}function Mt(e){return Lt(e)?e.value:e}const Pt={get:(e,t,n)=>Mt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return Lt(l)&&!Lt(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function Nt(e){return xt(e)?e:new Proxy(e,Pt)}class Ft{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new $e(e,(()=>{this._dirty||(this._dirty=!0,At(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ct(this);return Et(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Vt(e,t,n,r){let l;try{l=r?e(...r):e()}catch(e){Dt(e,t,n)}return l}function Bt(e,t,n,r){if(W(e)){const l=Vt(e,t,n,r);return l&&J(l)&&l.catch((e=>{Dt(e,t,n)})),l}const l=[];for(let o=0;o<e.length;o++)l.push(Bt(e[o],t,n,r));return l}function Dt(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const l=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,l,o))return;r=r.parent}const i=t.appContext.config.errorHandler;if(i)return void Vt(i,null,10,[e,l,o])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Ht=!1,Wt=!1;const qt=[];let Zt=0;const Gt=[];let Jt=null,Kt=0;const Qt=[];let Yt=null,Xt=0;const en=Promise.resolve();let tn=null,nn=null;function rn(e){const t=tn||en;return e?t.then(this?e.bind(this):e):t}function ln(e){qt.length&&qt.includes(e,Ht&&e.allowRecurse?Zt+1:Zt)||e===nn||(null==e.id?qt.push(e):qt.splice(function(e){let t=Zt+1,n=qt.length;for(;t<n;){const r=t+n>>>1;un(qt[r])<e?t=r+1:n=r}return t}(e.id),0,e),on())}function on(){Ht||Wt||(Wt=!0,tn=en.then(pn))}function sn(e,t,n,r){V(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),on()}function an(e,t=null){if(Gt.length){for(nn=t,Jt=[...new Set(Gt)],Gt.length=0,Kt=0;Kt<Jt.length;Kt++)Jt[Kt]();Jt=null,Kt=0,nn=null,an(e,t)}}function cn(e){if(an(),Qt.length){const e=[...new Set(Qt)];if(Qt.length=0,Yt)return void Yt.push(...e);for(Yt=e,Yt.sort(((e,t)=>un(e)-un(t))),Xt=0;Xt<Yt.length;Xt++)Yt[Xt]();Yt=null,Xt=0}}const un=e=>null==e.id?1/0:e.id;function pn(e){Wt=!1,Ht=!0,an(e),qt.sort(((e,t)=>un(e)-un(t)));try{for(Zt=0;Zt<qt.length;Zt++){const e=qt[Zt];e&&!1!==e.active&&Vt(e,null,14)}}finally{Zt=0,qt.length=0,cn(),Ht=!1,tn=null,(qt.length||Gt.length||Qt.length)&&pn(e)}}function dn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||E;let l=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:o}=r[e]||E;o&&(l=n.map((e=>e.trim()))),t&&(l=n.map(pe))}let s,a=r[s=se(t)]||r[s=se(re(t))];!a&&o&&(a=r[s=se(oe(t))]),a&&Bt(a,e,6,l);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Bt(c,e,6,l)}}function hn(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(void 0!==l)return l;const o=e.emits;let i={};return o?(V(o)?o.forEach((e=>i[e]=null)):M(i,o),r.set(e,i),i):(r.set(e,null),null)}function fn(e,t){return!(!e||!O(t))&&(t=t.slice(2).replace(/Once$/,""),F(e,t[0].toLowerCase()+t.slice(1))||F(e,oe(t))||F(e,t))}let gn=null,mn=null;function vn(e){const t=gn;return gn=e,mn=e&&e.type.__scopeId||null,t}function yn(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:o,propsOptions:[i],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=vn(e);try{if(4&n.shapeFlag){const e=l||r;m=Lr(u.call(e,e,p,o,h,d,f)),v=a}else{const e=t;m=Lr(e.length>1?e(o,{attrs:a,slots:s,emit:c}):e(o,null)),v=t.props?a:wn(a)}}catch(t){fr.length=0,Dt(t,e,1),m=zr(dr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(U)&&(v=kn(v,i)),w=Rr(w,v))}return n.dirs&&(w=Rr(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,vn(y),m}const wn=e=>{let t;for(const n in e)("class"===n||"style"===n||O(n))&&((t||(t={}))[n]=e[n]);return t},kn=(e,t)=>{const n={};for(const r in e)U(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function bn(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 o=r[l];if(t[o]!==e[o]&&!fn(n,o))return!0}return!1}function xn(e,t,n=!1){const r=Pr||gn;if(r){const l=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&W(t)?t.call(r.proxy):t}}function _n(e,t){return Cn(e,null,t)}const $n={};function Sn(e,t,n){return Cn(e,t,n)}function Cn(e,t,{immediate:n,deep:r,flush:l,onTrack:o,onTrigger:i}=E){const s=Pr;let a,c,u=!1,p=!1;if(Lt(e)?(a=()=>e.value,u=$t(e)):xt(e)?(a=()=>e,r=!0):V(e)?(p=!0,u=e.some((e=>xt(e)||$t(e))),a=()=>e.map((e=>Lt(e)?e.value:xt(e)?In(e):W(e)?Vt(e,s,2):void 0))):a=W(e)?t?()=>Vt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Bt(e,s,3,[d])}:L,t&&r){const e=a;a=()=>In(e())}let d=e=>{c=m.onStop=()=>{Vt(e,s,4)}};if(Br)return d=L,t?n&&Bt(t,s,3,[a(),p?[]:void 0,d]):a(),L;let h=p?[]:$n;const f=()=>{if(m.active)if(t){const e=m.run();(r||u||(p?e.some(((e,t)=>ae(e,h[t]))):ae(e,h)))&&(c&&c(),Bt(t,s,3,[e,h===$n?void 0:h,d]),h=e)}else m.run()};let g;f.allowRecurse=!!t,g="sync"===l?f:"post"===l?()=>ir(f,s&&s.suspense):()=>function(e){sn(e,Jt,Gt,Kt)}(f);const m=new $e(a,g);return t?n?f():h=m.run():"post"===l?ir(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&P(s.scope.effects,m)}}function In(e,t){if(!G(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Lt(e))In(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)In(e[n],t);else if(D(e)||B(e))e.forEach((e=>{In(e,t)}));else if(Y(e))for(const n in e)In(e[n],t);return e}function zn(e){return W(e)?{setup:e,name:e.name}:e}const Rn=e=>!!e.type.__asyncLoader;const En=e=>(t,n=Pr)=>(!Br||"sp"===e)&&function(e,t,n=Pr,r=!1){if(n){const l=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ze(),Nr(n);const l=Bt(t,n,e,r);return Fr(),Re(),l});return r?l.unshift(o):l.push(o),o}}(e,t,n),An=En("m"),Ln=En("bum"),Tn=En("um");function jn(e,t){const n=gn;if(null===n)return e;const r=Wr(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,o,i,s=E]=t[e];W(n)&&(n={mounted:n,updated:n}),n.deep&&In(o),l.push({dir:n,instance:r,value:o,oldValue:void 0,arg:i,modifiers:s})}return e}function On(e,t,n,r){const l=e.dirs,o=t&&t.dirs;for(let i=0;i<l.length;i++){const s=l[i];o&&(s.oldValue=o[i].value);let a=s.dir[r];a&&(ze(),Bt(a,n,8,[e.el,s,e,t]),Re())}}function Un(e,t){return function(e,t,n=!0,r=!1){const l=gn||Pr;if(l){const n=l.type;if("components"===e){const e=function(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===re(t)||e===ie(re(t))))return n}const o=Pn(l[e]||n[e],t)||Pn(l.appContext[e],t);return!o&&r?n:o}}("components",e,!0,t)||e}const Mn=Symbol();function Pn(e,t){return e&&(e[t]||e[re(t)]||e[ie(re(t))])}function Nn(e,t,n,r){let l;const o=n&&n[r];if(V(e)||q(e)){l=new Array(e.length);for(let n=0,r=e.length;n<r;n++)l[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){l=new Array(e);for(let n=0;n<e;n++)l[n]=t(n+1,n,void 0,o&&o[n])}else if(G(e))if(e[Symbol.iterator])l=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);l=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];l[r]=t(e[i],i,r,o&&o[r])}}else l=[];return n&&(n[r]=l),l}const Fn=e=>e?Vr(e)?Wr(e)||e.proxy:Fn(e.parent):null,Vn=M(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=>Fn(e.parent),$root:e=>Fn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>ln(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>L}),Bn={get({_:e},t){const{ctx:n,setupState:r,data:l,props:o,accessCache:i,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=i[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return o[t]}else{if(r!==E&&F(r,t))return i[t]=1,r[t];if(l!==E&&F(l,t))return i[t]=2,l[t];if((c=e.propsOptions[0])&&F(c,t))return i[t]=3,o[t];if(n!==E&&F(n,t))return i[t]=4,n[t];i[t]=0}}const u=Vn[t];let p,d;return u?("$attrs"===t&&Ee(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==E&&F(n,t)?(i[t]=4,n[t]):(d=a.config.globalProperties,F(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:l,ctx:o}=e;return l!==E&&F(l,t)?(l[t]=n,!0):r!==E&&F(r,t)?(r[t]=n,!0):!F(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:o}},i){let s;return!!n[i]||e!==E&&F(e,i)||t!==E&&F(t,i)||(s=o[0])&&F(s,i)||F(r,i)||F(Vn,i)||F(l.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:F(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Dn(e,t,n,r=!1){const l={},o={};ue(o,$r,1),e.propsDefaults=Object.create(null),Hn(e,t,l,o);for(const t in e.propsOptions[0])t in l||(l[t]=void 0);n?e.props=r?l:bt(l,!1,qe,dt,gt):e.type.props?e.props=l:e.props=o,e.attrs=o}function Hn(e,t,n,r){const[l,o]=e.propsOptions;let i,s=!1;if(t)for(let a in t){if(ee(a))continue;const c=t[a];let u;l&&F(l,u=re(a))?o&&o.includes(u)?(i||(i={}))[u]=c:n[u]=c:fn(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(o){const t=Ct(n),r=i||E;for(let i=0;i<o.length;i++){const s=o[i];n[s]=Wn(l,t,s,r[s],e,!F(r,s))}}return s}function Wn(e,t,n,r,l,o){const i=e[n];if(null!=i){const e=F(i,"default");if(e&&void 0===r){const e=i.default;if(i.type!==Function&&W(e)){const{propsDefaults:o}=l;n in o?r=o[n]:(Nr(l),r=o[n]=e.call(null,t),Fr())}else r=e}i[0]&&(o&&!e?r=!1:!i[1]||""!==r&&r!==oe(n)||(r=!0))}return r}function qn(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const o=e.props,i={},s=[];if(!o)return r.set(e,A),A;if(V(o))for(let e=0;e<o.length;e++){const t=re(o[e]);Zn(t)&&(i[t]=E)}else if(o)for(const e in o){const t=re(e);if(Zn(t)){const n=o[e],r=i[t]=V(n)||W(n)?{type:n}:n;if(r){const e=Kn(Boolean,r.type),n=Kn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||F(r,"default"))&&s.push(t)}}}const a=[i,s];return r.set(e,a),a}function Zn(e){return"$"!==e[0]}function Gn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Jn(e,t){return Gn(e)===Gn(t)}function Kn(e,t){return V(t)?t.findIndex((t=>Jn(t,e))):W(t)&&Jn(t,e)?0:-1}const Qn=e=>"_"===e[0]||"$stable"===e,Yn=e=>V(e)?e.map(Lr):[Lr(e)],Xn=(e,t,n)=>{if(t._n)return t;const r=function(e,t=gn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&yr(-1);const l=vn(t),o=e(...n);return vn(l),r._d&&yr(1),o};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>Yn(t(...e))),n);return r._c=!1,r},er=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Qn(n))continue;const l=e[n];if(W(l))t[n]=Xn(0,l,r);else if(null!=l){const e=Yn(l);t[n]=()=>e}}},tr=(e,t)=>{const n=Yn(t);e.slots.default=()=>n};function nr(){return{app:null,config:{isNativeTag:T,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 rr=0;function lr(e,t){return function(n,r=null){W(n)||(n=Object.assign({},n)),null==r||G(r)||(r=null);const l=nr(),o=new Set;let i=!1;const s=l.app={_uid:rr++,_component:n,_props:r,_container:null,_context:l,_instance:null,version:Gr,get config(){return l.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&W(e.install)?(o.add(e),e.install(s,...t)):W(e)&&(o.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(l.components[e]=t,s):l.components[e],directive:(e,t)=>t?(l.directives[e]=t,s):l.directives[e],mount(o,a,c){if(!i){const u=zr(n,r);return u.appContext=l,a&&t?t(u,o):e(u,o,c),i=!0,s._container=o,o.__vue_app__=s,Wr(u.component)||u.component.proxy}},unmount(){i&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(l.provides[e]=t,s)};return s}}function or(e,t,n,r,l=!1){if(V(e))return void e.forEach(((e,o)=>or(e,t&&(V(t)?t[o]:t),n,r,l)));if(Rn(r)&&!l)return;const o=4&r.shapeFlag?Wr(r.component)||r.component.proxy:r.el,i=l?null:o,{i:s,r:a}=e,c=t&&t.r,u=s.refs===E?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(q(c)?(u[c]=null,F(p,c)&&(p[c]=null)):Lt(c)&&(c.value=null)),W(a))Vt(a,s,12,[i,u]);else{const t=q(a),r=Lt(a);if(t||r){const s=()=>{if(e.f){const n=t?u[a]:a.value;l?V(n)&&P(n,o):V(n)?n.includes(o)||n.push(o):t?(u[a]=[o],F(p,a)&&(p[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else t?(u[a]=i,F(p,a)&&(p[a]=i)):r&&(a.value=i,e.k&&(u[e.k]=i))};i?(s.id=-1,ir(s,n)):s()}}}const ir=function(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):sn(e,Yt,Qt,Xt)};function sr(e){return function(e,t){(de||(de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:r,patchProp:l,createElement:o,createText:i,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=L,cloneNode:h,insertStaticContent:f}=e,g=(e,t,n,r=null,l=null,o=null,i=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!_r(e,t)&&(r=G(e),D(e,l,o,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case pr:m(e,t,n,r);break;case dr:v(e,t,n,r);break;case hr:null==e&&y(t,n,r,i);break;case ur:z(e,t,n,r,l,o,i,s,a);break;default:1&p?b(e,t,n,r,l,o,i,s,a):6&p?R(e,t,n,r,l,o,i,s,a):(64&p||128&p)&&c.process(e,t,n,r,l,o,i,s,a,Q)}null!=u&&l&&or(u,e&&e.ref,o,t||e,!t)},m=(e,t,r,l)=>{if(null==e)n(t.el=i(t.children),r,l);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,r,l)=>{null==e?n(t.el=s(t.children||""),r,l):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=f(e.children,t,n,r,e.el,e.anchor)},w=({el:e,anchor:t},r,l)=>{let o;for(;e&&e!==t;)o=p(e),n(e,r,l),e=o;n(t,r,l)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)},b=(e,t,n,r,l,o,i,s,a)=>{i=i||"svg"===t.type,null==e?x(t,n,r,l,o,i,s,a):S(e,t,l,o,i,s,a)},x=(e,t,r,i,s,a,u,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:k}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=o(e.type,a,m&&m.is,m),8&v?c(d,e.children):16&v&&$(e.children,d,null,i,s,a&&"foreignObject"!==g,u,p),k&&On(e,null,i,"created"),m){for(const t in m)"value"===t||ee(t)||l(d,t,null,m[t],a,e.children,i,s,Z);"value"in m&&l(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Or(f,i,e)}_(d,e,e.scopeId,u,i)}k&&On(e,null,i,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;b&&y.beforeEnter(d),n(d,t,r),((f=m&&m.onVnodeMounted)||b||k)&&ir((()=>{f&&Or(f,i,e),b&&y.enter(d),k&&On(e,null,i,"mounted")}),s)},_=(e,t,n,r,l)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(l){if(t===l.subTree){const t=l.vnode;_(e,t,t.scopeId,t.slotScopeIds,l.parent)}}},$=(e,t,n,r,l,o,i,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?Tr(e[c]):Lr(e[c]);g(null,a,t,n,r,l,o,i,s)}},S=(e,t,n,r,o,i,s)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||E,f=t.props||E;let g;n&&ar(n,!1),(g=f.onVnodeBeforeUpdate)&&Or(g,n,t,e),d&&On(t,e,n,"beforeUpdate"),n&&ar(n,!0);const m=o&&"foreignObject"!==t.type;if(p?C(e.dynamicChildren,p,a,n,r,m,i):s||P(e,t,a,null,n,r,m,i,!1),u>0){if(16&u)I(a,t,h,f,n,r,o);else if(2&u&&h.class!==f.class&&l(a,"class",null,f.class,o),4&u&&l(a,"style",h.style,f.style,o),8&u){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const s=i[t],c=h[s],u=f[s];u===c&&"value"!==s||l(a,s,c,u,o,e.children,n,r,Z)}}1&u&&e.children!==t.children&&c(a,t.children)}else s||null!=p||I(a,t,h,f,n,r,o);((g=f.onVnodeUpdated)||d)&&ir((()=>{g&&Or(g,n,t,e),d&&On(t,e,n,"updated")}),r)},C=(e,t,n,r,l,o,i)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],p=a.el&&(a.type===ur||!_r(a,c)||70&a.shapeFlag)?u(a.el):n;g(a,c,p,null,r,l,o,i,!0)}},I=(e,t,n,r,o,i,s)=>{if(n!==r){for(const a in r){if(ee(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&l(e,a,u,c,s,t.children,o,i,Z)}if(n!==E)for(const a in n)ee(a)||a in r||l(e,a,n[a],null,s,t.children,o,i,Z);"value"in r&&l(e,"value",n.value,r.value)}},z=(e,t,r,l,o,s,a,c,u)=>{const p=t.el=e?e.el:i(""),d=t.anchor=e?e.anchor:i("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,r,l),n(d,r,l),$(t.children,r,d,o,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(C(e.dynamicChildren,f,r,o,s,a,c),(null!=t.key||o&&t===o.subTree)&&cr(e,t,!0)):P(e,t,r,d,o,s,a,c,u)},R=(e,t,n,r,l,o,i,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?l.ctx.activate(t,n,r,i,a):T(t,n,r,l,o,i,a):j(e,t,a)},T=(e,t,n,r,l,o,i)=>{const s=e.component=function(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Ur,o={uid:Mr++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new fe(!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:qn(r,l),emitsOptions:hn(r,l),emit:null,emitted:null,propsDefaults:E,inheritAttrs:r.inheritAttrs,ctx:E,data:E,props:E,attrs:E,slots:E,refs:E,setupState:E,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=dn.bind(null,o),e.ce&&e.ce(o);return o}(e,r,l);if(e.type.__isKeepAlive&&(s.ctx.renderer=Q),function(e,t=!1){Br=t;const{props:n,children:r}=e.vnode,l=Vr(e);Dn(e,n,l,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Ct(t),ue(t,"_",n)):er(t,e.slots={})}else e.slots={},t&&tr(e,t);ue(e.slots,$r,1)})(e,r);const o=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=It(new Proxy(e.ctx,Bn));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Ee(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Nr(e),ze();const l=Vt(r,e,0,[e.props,n]);if(Re(),Fr(),J(l)){if(l.then(Fr,Fr),t)return l.then((n=>{Dr(e,n,t)})).catch((t=>{Dt(t,e,0)}));e.asyncDep=l}else Dr(e,l,t)}else Hr(e,t)}(e,t):void 0;Br=!1}(s),s.asyncDep){if(l&&l.registerDep(s,O),!e.el){const e=s.subTree=zr(dr);v(null,e,t,n)}}else O(s,e,t,n,l,o,i)},j=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:l,component:o}=e,{props:i,children:s,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!l&&!s||s&&s.$stable)||r!==i&&(r?!i||bn(r,i,c):!!i);if(1024&a)return!0;if(16&a)return r?bn(r,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==r[n]&&!fn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void U(r,t,n);r.next=t,function(e){const t=qt.indexOf(e);t>Zt&&qt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},O=(e,t,n,r,l,o,i)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,p=n;ar(e,!1),n?(n.el=c.el,U(e,n,i)):n=c,r&&ce(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Or(t,a,n,c),ar(e,!0);const d=yn(e),h=e.subTree;e.subTree=d,g(h,d,u(h.el),G(h),e,l,o),n.el=d.el,null===p&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),s&&ir(s,l),(t=n.props&&n.props.onVnodeUpdated)&&ir((()=>Or(t,a,n,c)),l)}else{let i;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=Rn(t);if(ar(e,!1),c&&ce(c),!d&&(i=a&&a.onVnodeBeforeMount)&&Or(i,p,t),ar(e,!0),s&&X){const n=()=>{e.subTree=yn(e),X(s,e.subTree,e,l,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=yn(e);g(null,i,n,r,e,l,o),t.el=i.el}if(u&&ir(u,l),!d&&(i=a&&a.onVnodeMounted)){const e=t;ir((()=>Or(i,p,e)),l)}(256&t.shapeFlag||p&&Rn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&ir(e.a,l),e.isMounted=!0,t=n=r=null}},a=e.effect=new $e(s,(()=>ln(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,ar(e,!0),c()},U=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:l,attrs:o,vnode:{patchFlag:i}}=e,s=Ct(l),[a]=e.propsOptions;let c=!1;if(!(r||i>0)||16&i){let r;Hn(e,t,l,o)&&(c=!0);for(const o in s)t&&(F(t,o)||(r=oe(o))!==o&&F(t,r))||(a?!n||void 0===n[o]&&void 0===n[r]||(l[o]=Wn(a,s,o,void 0,e,!0)):delete l[o]);if(o!==s)for(const e in o)t&&F(t,e)||(delete o[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(fn(e.emitsOptions,i))continue;const u=t[i];if(a)if(F(o,i))u!==o[i]&&(o[i]=u,c=!0);else{const t=re(i);l[t]=Wn(a,s,t,u,e,!1)}else u!==o[i]&&(o[i]=u,c=!0)}}c&&Le(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:l}=e;let o=!0,i=E;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(M(l,t),n||1!==e||delete l._):(o=!t.$stable,er(t,l)),i=t}else t&&(tr(e,t),i={default:1});if(o)for(const e in l)Qn(e)||e in i||delete l[e]})(e,t.children,n),ze(),an(void 0,e.update),Re()},P=(e,t,n,r,l,o,i,s,a=!1)=>{const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void V(u,d,n,r,l,o,i,s,a);if(256&h)return void N(u,d,n,r,l,o,i,s,a)}8&f?(16&p&&Z(u,l,o),d!==u&&c(n,d)):16&p?16&f?V(u,d,n,r,l,o,i,s,a):Z(u,l,o,!0):(8&p&&c(n,""),16&f&&$(d,n,r,l,o,i,s,a))},N=(e,t,n,r,l,o,i,s,a)=>{t=t||A;const c=(e=e||A).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?Tr(t[d]):Lr(t[d]);g(e[d],r,n,null,l,o,i,s,a)}c>u?Z(e,l,o,!0,!1,p):$(t,n,r,l,o,i,s,a,p)},V=(e,t,n,r,l,o,i,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const r=e[c],u=t[c]=a?Tr(t[c]):Lr(t[c]);if(!_r(r,u))break;g(r,u,n,null,l,o,i,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?Tr(t[d]):Lr(t[d]);if(!_r(r,c))break;g(r,c,n,null,l,o,i,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)g(null,t[c]=a?Tr(t[c]):Lr(t[c]),n,p,l,o,i,s,a),c++}}else if(c>d)for(;c<=p;)D(e[c],l,o,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?Tr(t[c]):Lr(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=d-f+1;let k=!1,b=0;const x=new Array(w);for(c=0;c<w;c++)x[c]=0;for(c=h;c<=p;c++){const r=e[c];if(y>=w){D(r,l,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=f;v<=d;v++)if(0===x[v-f]&&_r(r,t[v])){u=v;break}void 0===u?D(r,l,o,!0):(x[u-f]=c+1,u>=b?b=u:k=!0,g(r,t[u],n,null,l,o,i,s,a),y++)}const _=k?function(e){const t=e.slice(),n=[0];let r,l,o,i,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(l=n[n.length-1],e[l]<a){t[r]=l,n.push(r);continue}for(o=0,i=n.length-1;o<i;)s=o+i>>1,e[n[s]]<a?o=s+1:i=s;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,i=n[o-1];for(;o-- >0;)n[o]=i,i=t[i];return n}(x):A;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:r;0===x[c]?g(null,p,n,d,l,o,i,s,a):k&&(v<0||c!==_[v]?B(p,n,d,2):v--)}}},B=(e,t,r,l,o=null)=>{const{el:i,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void B(e.component.subTree,t,r,l);if(128&u)return void e.suspense.move(t,r,l);if(64&u)return void s.move(e,t,r,Q);if(s===ur){n(i,t,r);for(let e=0;e<c.length;e++)B(c[e],t,r,l);return void n(e.anchor,t,r)}if(s===hr)return void w(e,t,r);if(2!==l&&1&u&&a)if(0===l)a.beforeEnter(i),n(i,t,r),ir((()=>a.enter(i)),o);else{const{leave:e,delayLeave:l,afterLeave:o}=a,s=()=>n(i,t,r),c=()=>{e(i,(()=>{s(),o&&o()}))};l?l(i,s,c):c()}else n(i,t,r)},D=(e,t,n,r=!1,l=!1)=>{const{type:o,props:i,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&or(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Rn(e);let g;if(f&&(g=i&&i.onVnodeBeforeUnmount)&&Or(g,t,e),6&u)q(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&On(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,l,Q,r):c&&(o!==ur||p>0&&64&p)?Z(c,t,n,!1,!0):(o===ur&&384&p||!l&&16&u)&&Z(a,t,n),r&&H(e)}(f&&(g=i&&i.onVnodeUnmounted)||h)&&ir((()=>{g&&Or(g,t,e),h&&On(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:l,transition:o}=e;if(t===ur)return void W(n,l);if(t===hr)return void k(e);const i=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,l=()=>t(n,i);r?r(e.el,i,l):l()}else i()},W=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},q=(e,t,n)=>{const{bum:r,scope:l,update:o,subTree:i,um:s}=e;r&&ce(r),l.stop(),o&&(o.active=!1,D(i,e,t,n)),s&&ir(s,t),ir((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=(e,t,n,r=!1,l=!1,o=0)=>{for(let i=o;i<e.length;i++)D(e[i],t,n,r,l)},G=e=>6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),K=(e,t,n)=>{null==e?t._vnode&&D(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),cn(),t._vnode=e},Q={p:g,um:D,m:B,r:H,mt:T,mc:$,pc:P,pbc:C,n:G,o:e};let Y,X;t&&([Y,X]=t(Q));return{render:K,hydrate:Y,createApp:lr(K,Y)}}(e)}function ar({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function cr(e,t,n=!1){const r=e.children,l=t.children;if(V(r)&&V(l))for(let e=0;e<r.length;e++){const t=r[e];let o=l[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=l[e]=Tr(l[e]),o.el=t.el),n||cr(t,o))}}const ur=Symbol(void 0),pr=Symbol(void 0),dr=Symbol(void 0),hr=Symbol(void 0),fr=[];let gr=null;function mr(e=!1){fr.push(gr=e?null:[])}let vr=1;function yr(e){vr+=e}function wr(e){return e.dynamicChildren=vr>0?gr||A:null,fr.pop(),gr=fr[fr.length-1]||null,vr>0&&gr&&gr.push(e),e}function kr(e,t,n,r,l,o){return wr(Ir(e,t,n,r,l,o,!0))}function br(e,t,n,r,l){return wr(zr(e,t,n,r,l,!0))}function xr(e){return!!e&&!0===e.__v_isVNode}function _r(e,t){return e.type===t.type&&e.key===t.key}const $r="__vInternal",Sr=({key:e})=>null!=e?e:null,Cr=({ref:e,ref_key:t,ref_for:n})=>null!=e?q(e)||Lt(e)||W(e)?{i:gn,r:e,k:t,f:!!n}:e:null;function Ir(e,t=null,n=null,r=0,l=null,o=(e===ur?0:1),i=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sr(t),ref:t&&Cr(t),scopeId:mn,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:o,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null};return s?(jr(a,n),128&o&&e.normalize(a)):n&&(a.shapeFlag|=q(n)?8:16),vr>0&&!i&&gr&&(a.patchFlag>0||6&o)&&32!==a.patchFlag&&gr.push(a),a}const zr=function(e,t=null,n=null,r=0,l=null,o=!1){e&&e!==Mn||(e=dr);if(xr(e)){const r=Rr(e,t,!0);return n&&jr(r,n),vr>0&&!o&&gr&&(6&r.shapeFlag?gr[gr.indexOf(e)]=r:gr.push(r)),r.patchFlag|=-2,r}i=e,W(i)&&"__vccOpts"in i&&(e=e.__vccOpts);var i;if(t){t=function(e){return e?St(e)||$r in e?M({},e):e:null}(t);let{class:e,style:n}=t;e&&!q(e)&&(t.class=S(e)),G(n)&&(St(n)&&!V(n)&&(n=M({},n)),t.style=b(n))}const s=q(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:G(e)?4:W(e)?2:0;return Ir(e,t,n,r,l,s,o,!0)};function Rr(e,t,n=!1){const{props:r,ref:l,patchFlag:o,children:i}=e,s=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=S([t.class,r.class]));else if("style"===e)t.style=b([t.style,r.style]);else if(O(e)){const n=t[e],l=r[e];!l||n===l||V(n)&&n.includes(l)||(t[e]=n?[].concat(n,l):l)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Sr(s),ref:t&&t.ref?n&&l?V(l)?l.concat(Cr(t)):[l,Cr(t)]:Cr(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ur?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rr(e.ssContent),ssFallback:e.ssFallback&&Rr(e.ssFallback),el:e.el,anchor:e.anchor}}function Er(e=" ",t=0){return zr(pr,null,e,t)}function Ar(e="",t=!1){return t?(mr(),br(dr,null,e)):zr(dr,null,e)}function Lr(e){return null==e||"boolean"==typeof e?zr(dr):V(e)?zr(ur,null,e.slice()):"object"==typeof e?Tr(e):zr(pr,null,String(e))}function Tr(e){return null===e.el||e.memo?e:Rr(e)}function jr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(V(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),jr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||$r in t?3===r&&gn&&(1===gn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=gn}}else W(t)?(t={default:t,_ctx:gn},n=32):(t=String(t),64&r?(n=16,t=[Er(t)]):n=8);e.children=t,e.shapeFlag|=n}function Or(e,t,n,r=null){Bt(e,t,7,[n,r])}const Ur=nr();let Mr=0;let Pr=null;const Nr=e=>{Pr=e,e.scope.on()},Fr=()=>{Pr&&Pr.scope.off(),Pr=null};function Vr(e){return 4&e.vnode.shapeFlag}let Br=!1;function Dr(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=Nt(t)),Hr(e,n)}function Hr(e,t,n){const r=e.type;e.render||(e.render=r.render||L)}function Wr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Nt(It(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Vn?Vn[n](e):void 0}))}const qr=(e,t)=>function(e,t,n=!1){let r,l;const o=W(e);return o?(r=e,l=L):(r=e.get,l=e.set),new Ft(r,l,o||!l,n)}(e,0,Br);function Zr(e,t,n){const r=arguments.length;return 2===r?G(t)&&!V(t)?xr(t)?zr(e,null,[t]):zr(e,t):zr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&xr(n)&&(n=[n]),zr(e,t,n))}const Gr="3.2.37",Jr="undefined"!=typeof document?document:null,Kr=Jr&&Jr.createElement("template"),Qr={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?Jr.createElementNS("http://www.w3.org/2000/svg",e):Jr.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>Jr.createTextNode(e),createComment:e=>Jr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,l,o){const i=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==o&&(l=l.nextSibling););else{Kr.innerHTML=r?`<svg>${e}</svg>`:e;const l=Kr.content;if(r){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Yr=/\s*!important$/;function Xr(e,t,n){if(V(n))n.forEach((n=>Xr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=tl[t];if(n)return n;let r=re(t);if("filter"!==r&&r in e)return tl[t]=r;r=ie(r);for(let n=0;n<el.length;n++){const l=el[n]+r;if(l in e)return tl[t]=l}return t}(e,t);Yr.test(n)?e.setProperty(oe(r),n.replace(Yr,""),"important"):e[r]=n}}const el=["Webkit","Moz","ms"],tl={};const nl="http://www.w3.org/1999/xlink";const[rl,ll]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let ol=0;const il=Promise.resolve(),sl=()=>{ol=0};function al(e,t,n,r){e.addEventListener(t,n,r)}function cl(e,t,n,r,l=null){const o=e._vei||(e._vei={}),i=o[t];if(r&&i)i.value=r;else{const[n,s]=function(e){let t;if(ul.test(e)){let n;for(t={};n=e.match(ul);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[oe(e.slice(2)),t]}(t);if(r){const i=o[t]=function(e,t){const n=e=>{const r=e.timeStamp||rl();(ll||r>=n.attached-1)&&Bt(function(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>ol||(il.then(sl),ol=rl()))(),n}(r,l);al(e,n,i,s)}else i&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,i,s),o[t]=void 0)}}const ul=/(?:Once|Passive|Capture)$/;const pl=/^on[a-z]/;const dl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?e=>ce(t,e):t};function hl(e){e.target.composing=!0}function fl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gl={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e._assign=dl(l);const o=r||l.props&&"number"===l.props.type;al(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),o&&(r=pe(r)),e._assign(r)})),n&&al(e,"change",(()=>{e.value=e.value.trim()})),t||(al(e,"compositionstart",hl),al(e,"compositionend",fl),al(e,"change",fl))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},o){if(e._assign=dl(o),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((l||"number"===e.type)&&pe(e.value)===t)return}const i=null==t?"":t;e.value!==i&&(e.value=i)}},ml={deep:!0,created(e,t,n){e._assign=dl(n),al(e,"change",(()=>{const t=e._modelValue,n=bl(e),r=e.checked,l=e._assign;if(V(t)){const e=I(t,n),o=-1!==e;if(r&&!o)l(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),l(n)}}else if(D(t)){const e=new Set(t);r?e.add(n):e.delete(n),l(e)}else l(xl(e,r))}))},mounted:vl,beforeUpdate(e,t,n){e._assign=dl(n),vl(e,t,n)}};function vl(e,{value:t,oldValue:n},r){e._modelValue=t,V(t)?e.checked=I(t,r.props.value)>-1:D(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=C(t,xl(e,!0)))}const yl={created(e,{value:t},n){e.checked=C(t,n.props.value),e._assign=dl(n),al(e,"change",(()=>{e._assign(bl(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=dl(r),t!==n&&(e.checked=C(t,r.props.value))}},wl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const l=D(t);al(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?pe(bl(e)):bl(e)));e._assign(e.multiple?l?new Set(t):t:t[0])})),e._assign=dl(r)},mounted(e,{value:t}){kl(e,t)},beforeUpdate(e,t,n){e._assign=dl(n)},updated(e,{value:t}){kl(e,t)}};function kl(e,t){const n=e.multiple;if(!n||V(t)||D(t)){for(let r=0,l=e.options.length;r<l;r++){const l=e.options[r],o=bl(l);if(n)V(t)?l.selected=I(t,o)>-1:l.selected=t.has(o);else if(C(bl(l),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function bl(e){return"_value"in e?e._value:e.value}function xl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const _l={created(e,t,n){$l(e,t,n,null,"created")},mounted(e,t,n){$l(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){$l(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){$l(e,t,n,r,"updated")}};function $l(e,t,n,r,l){const o=function(e,t){switch(e){case"SELECT":return wl;case"TEXTAREA":return gl;default:switch(t){case"checkbox":return ml;case"radio":return yl;default:return gl}}}(e.tagName,n.props&&n.props.type)[l];o&&o(e,t,n,r)}const Sl={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Cl(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),Cl(e,!0),r.enter(e)):r.leave(e,(()=>{Cl(e,!1)})):Cl(e,t))},beforeUnmount(e,{value:t}){Cl(e,t)}};function Cl(e,t){e.style.display=t?e._vod:"none"}const Il=M({patchProp:(e,t,n,r,l=!1,o,i,s,a)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,l):"style"===t?function(e,t,n){const r=e.style,l=q(n);if(n&&!l){for(const e in n)Xr(r,e,n[e]);if(t&&!q(t))for(const e in t)null==n[e]&&Xr(r,e,"")}else{const o=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}(e,n,r):O(t)?U(t)||cl(e,t,0,r,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&pl.test(t)&&W(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(pl.test(t)&&q(n))return!1;return t in e}(e,t,r,l))?function(e,t,n,r,l,o,i){if("innerHTML"===t||"textContent"===t)return r&&i(r,l,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=k(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,o,i,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,l){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(nl,t.slice(6,t.length)):e.setAttributeNS(nl,t,n);else{const r=w(t);null==n||r&&!k(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,l))}},Qr);let zl;const Rl=(...e)=>{const t=(zl||(zl=sr(Il))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(q(e)){return document.querySelector(e)}return e}(e);if(!r)return;const l=t._component;W(l)||l.render||l.template||(l.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function El(e){return!!he&&(function(e){he&&he.cleanups.push(e)}(e),!0)}var Al;const Ll="undefined"!=typeof window,Tl=()=>{};function jl(e,t){return function(...n){e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})}}Ll&&(null==(Al=null==window?void 0:window.navigator)?void 0:Al.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Ol=e=>e();function Ul(e,t=200,n={}){return jl(function(e,t={}){let n,r;return l=>{const o=Mt(e),i=Mt(t.maxWait);if(n&&clearTimeout(n),o<=0||void 0!==i&&i<=0)return r&&(clearTimeout(r),r=null),l();i&&!r&&(r=setTimeout((()=>{n&&clearTimeout(n),r=null,l()}),i)),n=setTimeout((()=>{r&&clearTimeout(r),r=null,l()}),o)}}(t,n),e)}var Ml=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,Nl=Object.prototype.propertyIsEnumerable;function Fl(e,t,n={}){const r=n,{eventFilter:l=Ol}=r,o=((e,t)=>{var n={};for(var r in e)Pl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ml)for(var r of Ml(e))t.indexOf(r)<0&&Nl.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return Sn(e,jl(l,t),o)}var Vl=Object.defineProperty,Bl=Object.defineProperties,Dl=Object.getOwnPropertyDescriptors,Hl=Object.getOwnPropertySymbols,Wl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,Zl=(e,t,n)=>t in e?Vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Gl(e,t,n={}){const r=n,{eventFilter:l}=r,o=((e,t)=>{var n={};for(var r in e)Wl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Hl)for(var r of Hl(e))t.indexOf(r)<0&&ql.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:i,pause:s,resume:a,isActive:c}=function(e=Ol){const t=Tt(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(l),u=Fl(e,t,(p=((e,t)=>{for(var n in t||(t={}))Wl.call(t,n)&&Zl(e,n,t[n]);if(Hl)for(var n of Hl(t))ql.call(t,n)&&Zl(e,n,t[n]);return e})({},o),Bl(p,Dl({eventFilter:i}))));var p;return{stop:u,pause:s,resume:a,isActive:c}}const Jl=Ll?window:void 0,Kl=Ll?window.document:void 0;function Ql(...e){let t,n,r,l;if("string"==typeof e[0]?([n,r,l]=e,t=Jl):[t,n,r,l]=e,!t)return Tl;let o=Tl;const i=Sn((()=>function(e){var t;const n=Mt(e);return null!=(t=null==n?void 0:n.$el)?t:n}(t)),(e=>{o(),e&&(e.addEventListener(n,r,l),o=()=>{e.removeEventListener(n,r,l),o=Tl})}),{immediate:!0,flush:"post"}),s=()=>{i(),o()};return El(s),s}Ll&&window.navigator,Ll&&window.location;const Yl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Xl="__vueuse_ssr_handlers__";Yl[Xl]=Yl[Xl]||{};const eo=Yl[Xl];const to={boolean:{read:e=>"true"===e,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()}};function no(e,t,n,r={}){var l;const{flush:o="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,shallow:c,window:u=Jl,eventFilter:p,onError:d=(e=>{console.error(e)})}=r,h=(c?jt:Tt)(t);if(!n)try{n=function(e,t){return eo[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Jl)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return h;const f=Mt(t),g=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}(f),m=null!=(l=r.serializer)?l:to[g],{pause:v,resume:y}=Gl(h,(()=>function(t){try{null==t?n.removeItem(e):n.setItem(e,m.write(t))}catch(e){d(e)}}(h.value)),{flush:o,deep:i,eventFilter:p});return u&&s&&Ql(u,"storage",w),w(),h;function w(t){t&&t.key!==e||(h.value=function(t){if(!t||t.key===e){v();try{const r=t?t.newValue:n.getItem(e);return null==r?(a&&null!==f&&n.setItem(e,m.write(f)),f):"string"!=typeof r?r:m.read(r)}catch(e){d(e)}finally{y()}}}(t))}}var ro,lo,oo=Object.defineProperty,io=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,co=(e,t,n)=>t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function uo(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Tt(new Date),l=()=>r.value=new Date,o="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=Jl}=t,l=Tt(!1);let o=null;function i(){l.value&&r&&(e(),o=r.requestAnimationFrame(i))}function s(){!l.value&&r&&(l.value=!0,i())}function a(){l.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&s(),El(a),{isActive:l,pause:a,resume:s}}(l,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:l=!1}=n;let o=null;const i=Tt(!1);function s(){o&&(clearInterval(o),o=null)}function a(){i.value=!1,s()}function c(){Mt(t)<=0||(i.value=!0,l&&e(),s(),o=setInterval(e,Mt(t)))}r&&Ll&&c(),Lt(t)&&El(Sn(t,(()=>{r&&Ll&&c()})));return El(a),{isActive:i,pause:a,resume:c}}(l,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))so.call(t,n)&&co(e,n,t[n]);if(io)for(var n of io(t))ao.call(t,n)&&co(e,n,t[n]);return e})({now:r},o):r}(lo=ro||(ro={})).UP="UP",lo.RIGHT="RIGHT",lo.DOWN="DOWN",lo.LEFT="LEFT",lo.NONE="NONE";let po=0;const ho=e=>{try{e=decodeURI(e)}catch(e){}return e},fo=(e="")=>e.replace(/\/$/u,""),go=e=>/^(https?:)?\/\//.test(e),mo=e=>{const t=fo(e);return go(t)?t:`https://${t}`},vo=e=>Array.isArray(e)?e:!!e&&[0,e],yo=(e,t)=>"function"==typeof e?e:!1!==e&&t,wo="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",ko=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},bo=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),o=Math.floor(l/864e5);if(0===o){const e=l%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return o<0?n.now:o<8?`${o} ${n.days}`:(e=>{const t=ko(e.getDate(),2),n=ko(e.getMonth()+1,2);return`${ko(e.getFullYear(),2)}-${n}-${t}`})(r)},xo=e=>{const t=no("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const l={folder:e,...r};return n&&(t.value[e]=l),l}))},_o=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,$o=e=>{"AbortError"!==e.name&&console.error(e.message)},So={"Content-Type":"application/json"},Co=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},Io=({serverURL:e,lang:t,token:n,objectId:r,...l})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(l)}).then((e=>e.json())),zo=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>Co(e,"visit count"))).then((e=>Array.isArray(e)?e:[e])),Ro=({serverURL:e,lang:t,path:n})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:So,body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>Co(e,"visit count"))),Eo=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,Ao=e=>e.type.includes("image"),Lo=e=>{const t=Array.from(e).find(Ao);return t?t.getAsFile():null};function To(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let jo={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Oo=/[&<>"']/,Uo=/[&<>"']/g,Mo=/[<>"']|&(?!#?\w+;)/,Po=/[<>"']|&(?!#?\w+;)/g,No={"&":"&","<":"<",">":">",'"':""","'":"'"},Fo=e=>No[e];function Vo(e,t){if(t){if(Oo.test(e))return e.replace(Uo,Fo)}else if(Mo.test(e))return e.replace(Po,Fo);return e}const Bo=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Do(e){return e.replace(Bo,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Ho=/(^|[^\[])\^/g;function Wo(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(Ho,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const qo=/[^\w:]/g,Zo=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Go(e,t,n){if(e){let e;try{e=decodeURIComponent(Do(n)).replace(qo,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Zo.test(n)&&(n=function(e,t){Jo[" "+e]||(Ko.test(e)?Jo[" "+e]=e+"/":Jo[" "+e]=ni(e,"/",!0));const n=-1===(e=Jo[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Qo,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Yo,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Jo={},Ko=/^[^:]+:\/*[^/]*$/,Qo=/^([^:]+:)[\s\S]*$/,Yo=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Xo={exec:function(){}};function ei(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function ti(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function ni(e,t,n){const r=e.length;if(0===r)return"";let l=0;for(;l<r;){const o=e.charAt(r-l-1);if(o!==t||n){if(o===t||!n)break;l++}else l++}return e.slice(0,r-l)}function ri(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function li(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function oi(e,t,n,r){const l=t.href,o=t.title?Vo(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:l,title:o,text:i,tokens:r.inlineTokens(i,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:l,title:o,text:Vo(i)}}class ii{constructor(e){this.options=e||jo}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ni(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=ni(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,l,o,i,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),l=new RegExp(`^( {0,${Math.min(3,o-1)}})(\`\`\`|~~~)`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!l.test(c))&&!this.rules.block.heading.test(c)&&!t.test(c)&&!r.test(e);){if(c.search(/[^ ]/)>=o||!c.trim())d+="\n"+c.slice(o);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(l="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:l,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(i=0;i<y;i++){this.lexer.state.top=!1,m.items[i].tokens=this.lexer.blockTokens(m.items[i].text,[]);const e=m.items[i].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[i].loose=!0)}return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):Vo(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:ti(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,l,o,i=e.align.length;for(n=0;n<i;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(i=e.rows.length,n=0;n<i;n++)e.rows[n]=ti(e.rows[n],e.header.length).map((e=>({text:e})));for(i=e.header.length,r=0;r<i;r++)e.header[r].tokens=[],this.lexer.inline(e.header[r].text,e.header[r].tokens);for(i=e.rows.length,r=0;r<i;r++)for(o=e.rows[r],l=0;l<o.length;l++)o[l].tokens=[],this.lexer.inline(o[l].text,o[l].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Vo(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Vo(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=ni(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,l=0;for(;l<n;l++)if("\\"===e[l])l++;else if(e[l]===t[0])r++;else if(e[l]===t[1]&&(r--,r<0))return l;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),oi(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return oi(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const l=r[1]||r[2]||"";if(!l||l&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let l,o,i=n,s=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(o=l.length,r[3]||r[4]){i+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(i-=o,i>0)continue;if(o=Math.min(o,o+i+s),Math.min(n,o)%2){const t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Vo(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=Vo(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Vo(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=Vo(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=Vo(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Vo(n[0]):n[0]:Vo(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const si={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>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Xo,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};si.def=Wo(si.def).replace("label",si._label).replace("title",si._title).getRegex(),si.bullet=/(?:[*+-]|\d{1,9}[.)])/,si.listItemStart=Wo(/^( *)(bull) */).replace("bull",si.bullet).getRegex(),si.list=Wo(si.list).replace(/bull/g,si.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+si.def.source+")").getRegex(),si._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",si._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,si.html=Wo(si.html,"i").replace("comment",si._comment).replace("tag",si._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),si.paragraph=Wo(si._paragraph).replace("hr",si.hr).replace("heading"," {0,3}#{1,6} ").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",si._tag).getRegex(),si.blockquote=Wo(si.blockquote).replace("paragraph",si.paragraph).getRegex(),si.normal=ei({},si),si.gfm=ei({},si.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),si.gfm.table=Wo(si.gfm.table).replace("hr",si.hr).replace("heading"," {0,3}#{1,6} ").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",si._tag).getRegex(),si.gfm.paragraph=Wo(si._paragraph).replace("hr",si.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",si.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",si._tag).getRegex(),si.pedantic=ei({},si.normal,{html:Wo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",si._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:Xo,paragraph:Wo(si.normal._paragraph).replace("hr",si.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",si.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const ai={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Xo,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:Xo,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function ci(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function ui(e){let t,n,r="";const l=e.length;for(t=0;t<l;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}ai._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ai.punctuation=Wo(ai.punctuation).replace(/punctuation/g,ai._punctuation).getRegex(),ai.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ai.escapedEmSt=/\\\*|\\_/g,ai._comment=Wo(si._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ai.emStrong.lDelim=Wo(ai.emStrong.lDelim).replace(/punct/g,ai._punctuation).getRegex(),ai.emStrong.rDelimAst=Wo(ai.emStrong.rDelimAst,"g").replace(/punct/g,ai._punctuation).getRegex(),ai.emStrong.rDelimUnd=Wo(ai.emStrong.rDelimUnd,"g").replace(/punct/g,ai._punctuation).getRegex(),ai._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ai._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ai._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])?)+(?![-_])/,ai.autolink=Wo(ai.autolink).replace("scheme",ai._scheme).replace("email",ai._email).getRegex(),ai._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ai.tag=Wo(ai.tag).replace("comment",ai._comment).replace("attribute",ai._attribute).getRegex(),ai._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ai._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ai._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ai.link=Wo(ai.link).replace("label",ai._label).replace("href",ai._href).replace("title",ai._title).getRegex(),ai.reflink=Wo(ai.reflink).replace("label",ai._label).replace("ref",si._label).getRegex(),ai.nolink=Wo(ai.nolink).replace("ref",si._label).getRegex(),ai.reflinkSearch=Wo(ai.reflinkSearch,"g").replace("reflink",ai.reflink).replace("nolink",ai.nolink).getRegex(),ai.normal=ei({},ai),ai.pedantic=ei({},ai.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:Wo(/^!?\[(label)\]\((.*?)\)/).replace("label",ai._label).getRegex(),reflink:Wo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ai._label).getRegex()}),ai.gfm=ei({},ai.normal,{escape:Wo(ai.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ai.gfm.url=Wo(ai.gfm.url,"i").replace("email",ai.gfm._extended_email).getRegex(),ai.breaks=ei({},ai.gfm,{br:Wo(ai.br).replace("{2,}","*").getRegex(),text:Wo(ai.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class pi{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||jo,this.options.tokenizer=this.options.tokenizer||new ii,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 t={block:si.normal,inline:ai.normal};this.options.pedantic?(t.block=si.pedantic,t.inline=ai.pedantic):this.options.gfm&&(t.block=si.gfm,this.options.breaks?t.inline=ai.breaks:t.inline=ai.gfm),this.tokenizer.rules=t}static get rules(){return{block:si,inline:ai}}static lex(e,t){return new pi(t).lex(e)}static lexInline(e,t){return new pi(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,l,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(l=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(l)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=l.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,l,o,i,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+li("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+li("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(i||(s=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,ui))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,ui))){if(l=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(l,ci))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),i=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class di{constructor(e){this.options=e||jo}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+Vo(r,!0)+'">'+(n?e:Vo(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Vo(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=Go(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+Vo(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=Go(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class hi{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class fi{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class gi{constructor(e){this.options=e||jo,this.options.renderer=this.options.renderer||new di,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new hi,this.slugger=new fi}static parse(e,t){return new gi(t).parse(e)}static parseInline(e,t){return new gi(t).parseInline(e)}parse(e,t=!0){let n,r,l,o,i,s,a,c,u,p,d,h,f,g,m,v,y,w,k,b="";const x=e.length;for(n=0;n<x;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(k=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==k||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))b+=k||"";else switch(p.type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(p.tokens),p.depth,Do(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",o=p.header.length,r=0;r<o;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",o=p.rows.length,r=0;r<o;r++){for(s=p.rows[r],a="",i=s.length,l=0;l<i;l++)a+=this.renderer.tablecell(this.parseInline(s[l].tokens),{header:!1,align:p.align[l]});u+=this.renderer.tablerow(a)}b+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),b+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,o=p.items.length,u="",r=0;r<o;r++)m=p.items[r],v=m.checked,y=m.task,g="",m.task&&(w=this.renderer.checkbox(v),f?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=w+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=w+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:w}):g+=w),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,y,v);b+=this.renderer.list(u,d,h);continue;case"html":b+=this.renderer.html(p.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);b+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return b}parseInline(e,t){t=t||this.renderer;let n,r,l,o="";const i=e.length;for(n=0;n<i;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(l=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==l||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=l||"";else switch(r.type){case"escape":case"text":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}}function mi(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),ri(t=ei({},mi.defaults,t||{})),n){const r=t.highlight;let l;try{l=pi.lex(e,t)}catch(e){return n(e)}const o=function(e){let o;if(!e)try{t.walkTokens&&mi.walkTokens(l,t.walkTokens),o=gi.parse(l,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!l.length)return o();let i=0;return mi.walkTokens(l,(function(e){"code"===e.type&&(i++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&o()}))}),0))})),void(0===i&&o())}try{const n=pi.lex(e,t);return t.walkTokens&&mi.walkTokens(n,t.walkTokens),gi.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Vo(e.message+"",!0)+"</pre>";throw e}}mi.options=mi.setOptions=function(e){var t;return ei(mi.defaults,e),t=mi.defaults,jo=t,mi},mi.getDefaults=To,mi.defaults=jo,mi.use=function(...e){const t=ei({},...e),n=mi.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=mi.defaults.renderer||new di;for(const t in e.renderer){const r=n[t];n[t]=(...l)=>{let o=e.renderer[t].apply(n,l);return!1===o&&(o=r.apply(n,l)),o}}t.renderer=n}if(e.tokenizer){const n=mi.defaults.tokenizer||new ii;for(const t in e.tokenizer){const r=n[t];n[t]=(...l)=>{let o=e.tokenizer[t].apply(n,l);return!1===o&&(o=r.apply(n,l)),o}}t.tokenizer=n}if(e.walkTokens){const n=mi.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),mi.setOptions(t)}))},mi.walkTokens=function(e,t){for(const n of e)switch(t.call(mi,n),n.type){case"table":for(const e of n.header)mi.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)mi.walkTokens(n.tokens,t);break;case"list":mi.walkTokens(n.items,t);break;default:mi.defaults.extensions&&mi.defaults.extensions.childTokens&&mi.defaults.extensions.childTokens[n.type]?mi.defaults.extensions.childTokens[n.type].forEach((function(e){mi.walkTokens(n[e],t)})):n.tokens&&mi.walkTokens(n.tokens,t)}},mi.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");ri(t=ei({},mi.defaults,t||{}));try{const n=pi.lexInline(e,t);return t.walkTokens&&mi.walkTokens(n,t.walkTokens),gi.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Vo(e.message+"",!0)+"</pre>";throw e}},mi.Parser=gi,mi.parser=gi.parse,mi.Renderer=di,mi.TextRenderer=hi,mi.Lexer=pi,mi.lexer=pi.lex,mi.Tokenizer=ii,mi.Slugger=fi,mi.parse=mi;const vi=/\$.*?\$/,yi=/^\$(.*?)\$/,wi=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ki=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),bi=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(mi.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=wi.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(vi);return-1!==t?t:e.length},tokenizer(t){const n=yi.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);mi.use({extensions:e})}return mi.parse(ki(e,t))},xi=e=>e.dataset.path||e.getAttribute("id");let _i=null;const $i=()=>_i||(_i=no("USER_KEY",{}));let Si=null;const Ci=()=>Si||(Si=no("WALINE_LIKE",[])),Ii=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{const l=new AbortController,o=document.querySelectorAll(n),i=$i();return o.length&&(({serverURL:e,lang:t,paths:n,signal:r,token:l})=>{const o={};return l&&(o.Authorization=`Bearer ${l}`),fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:o}).then((e=>e.json())).then((e=>Co(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:mo(e),paths:Array.from(o).map((e=>ho(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:l.signal,token:i.value?.token}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch($o),l.abort.bind(l)};var zi,Ri,Ei="function"==typeof Map?new Map:(zi=[],Ri=[],{has:function(e){return zi.indexOf(e)>-1},get:function(e){return Ri[zi.indexOf(e)]},set:function(e,t){-1===zi.indexOf(e)&&(zi.push(e),Ri.push(t))},delete:function(e){var t=zi.indexOf(e);t>-1&&(zi.splice(t,1),Ri.splice(t,1))}}),Ai=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(zi){Ai=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Li(e){var t=Ei.get(e);t&&t.destroy()}function Ti(e){var t=Ei.get(e);t&&t.update()}var ji=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((ji=function(e){return e}).destroy=function(e){return e},ji.update=function(e){return e}):((ji=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Ei.has(e)){var t,n=null,r=null,l=null,o=function(){e.clientWidth!==r&&c()},i=function(t){window.removeEventListener("resize",o,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),Ei.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",o,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Ei.set(e,{destroy:i,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),l=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),l&&(document.documentElement.scrollTop=l)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),l!==r){l=r;var o=Ai("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Li),e},ji.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ti),e});var Oi=ji;const Ui=({size:e})=>Zr("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Zr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Zr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var Mi=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const Pi=zn({name:"ImageWall",components:{LoadingIcon:Ui},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emit:["insert"],setup(e){let t=null;const n=Tt(null),r=Tt({}),l=Tt([]),o=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},i=async t=>{if(t>=e.items.length)return;await rn();const r=Array.from(n.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));l.value[Number(r.dataset.index)].push(t),await i(t+1)},s=async(e=!1)=>{if(l.value.length===o()&&!e)return;var t;l.value=(t=o(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await i(0),window.scrollTo({top:n})};return Sn((()=>[e.items]),(()=>{r.value={},s(!0)})),Sn((()=>[e.columnWidth,e.gap]),(()=>s())),An((()=>{s(!0),t=new ResizeObserver((()=>s())),t.observe(n.value)})),Ln((()=>t.unobserve(n.value))),{columns:l,state:r,wall:n}}}),Ni=["data-index"],Fi=["src","title","onLoad","onClick"];const Vi=zn({name:"CommentBox",components:{CloseIcon:({size:e})=>Zr("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Zr("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"}),Zr("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"})]),EmojiIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Zr("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"})),ImageIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Zr("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"}),Zr("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"})]),ImageWall:Mi(Pi,[["render",function(e,t,n,r,l,o){const i=Un("LoadingIcon");return mr(),kr("div",{ref:"wall",class:"wl-gallery",style:b({gap:`${e.gap}px`})},[(mr(!0),kr(ur,null,Nn(e.columns,((t,n)=>(mr(),kr("div",{key:n,class:"wl-gallery-column","data-index":n,style:b({gap:`${e.gap}px`})},[(mr(!0),kr(ur,null,Nn(t,(t=>(mr(),kr(ur,{key:t},[e.state[e.items[t].src]?Ar("v-if",!0):(mr(),br(i,{key:0,size:36,style:{margin:"20px auto"}})),Ir("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert",``)},null,40,Fi)],64)))),128))],12,Ni)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>Zr("svg",{width:"16",height:"16",ariaHidden:"true"},Zr("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"})),PreviewIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Zr("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"}),Zr("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"})]),LoadingIcon:Ui,GifIcon:()=>Zr("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Zr("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"}),Zr("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"})])},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,{emit:t}){const n=xn("config"),r=no("WALINE_COMMENT_BOX_EDITOR",""),l=no("WALINE_USER_META",{nick:"",mail:"",link:""}),o=$i(),i=Tt({}),s=Tt(null),a=Tt(null),c=Tt(null),u=Tt(null),p=Tt(null),d=Tt(null),h=Tt(null),f=Tt({tabs:[],map:{}}),g=Tt(0),m=Tt(!1),v=Tt(!1),y=Tt(!1),w=Tt(""),k=Tt(0),b=wt({loading:!0,list:[]}),x=Tt(0),_=Tt(!1),$=Tt(""),S=Tt(!1),C=qr((()=>n.value.locale)),I=qr((()=>Boolean(o.value?.token))),z=qr((()=>!1!==n.value.imageUploader)),R=e=>{const t=s.value,n=t.selectionStart,l=t.selectionEnd||0,o=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(l,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=o},E=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return R(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n`)}))},A=()=>{const{serverURL:a,lang:c,login:u,wordLimit:p,requiredMeta:d}=n.value,h={comment:$.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,ua:navigator.userAgent,url:n.value.path};if(o.value?.token)h.nick=o.value.display_name,h.mail=o.value.email,h.link=o.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!h.nick)return i.value.nick?.focus(),alert(C.value.nickError);if(d.indexOf("mail")>-1&&!h.mail||h.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(h.mail))return i.value.mail?.focus(),alert(C.value.mailError);if(!h.comment)return void s.value?.focus();h.nick||(h.nick=C.value.anonymous)}if(!_.value)return alert(C.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",k.value.toString()));h.comment=ki(h.comment,f.value.map),e.replyId&&e.rootId&&(h.pid=e.replyId,h.rid=e.rootId,h.at=e.replyUser),S.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:a,lang:c,token:o.value?.token,comment:h}).then((n=>{if(S.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",w.value="",e.replyId&&t("cancel-reply")})).catch((e=>{S.value=!1,alert(e.message)}))},L=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(m.value=!1),p.value.contains(e.target)||d.value.contains(e.target)||(v.value=!1)},T=async e=>{const{scrollTop:t,clientHeight:r,scrollHeight:l}=e.target,o=(r+t)/l,i=n.value.search,s=h.value?.value||"";o<.9||b.loading||(b.loading=!0,b.list.push(...i.more?await i.more(s,b.list.length):await i.search(s)),b.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50))},j=Ul((e=>{b.list=[],T(e)}),300);return Sn([n,k],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(x.value=n[0],_.value=!1):t>n[1]?(x.value=n[1],_.value=!1):(x.value=n[1],_.value=!0):(x.value=0,_.value=!0)}),{immediate:!0}),Sn(v,(async e=>{if(!e)return;const t=n.value.search;h.value&&(h.value.value=""),b.loading=!0,b.list=t.default?await t.default():await t.search(""),b.loading=!1})),An((()=>{document.body.addEventListener("click",L),Sn((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;$.value=e,w.value=bi(e,{emojiMap:f.value.map,highlighter:t,texRenderer:r}),k.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?Oi(s.value):Oi.destroy(s.value)}),{immediate:!0}),Sn((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?xo(fo(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:l,prefix:o,type:i,items:s}=e;t.tabs.push({name:n,icon:_o(l,r,o,i),items:s.map((e=>{const n=`${o||""}${e}`;return t.map[n]=_o(e,r,o,i),n}))})})),t}))).then((e=>{f.value=e}));var t}),{immediate:!0})})),Tn((()=>{document.body.removeEventListener("click",L)})),{config:n,locale:C,insert:R,onChange:()=>{const e=a.value;e.files&&z.value&&E(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{if(e.dataTransfer?.items){const t=Lo(e.dataTransfer.items);t&&z.value&&(E(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&A()},onPaste:e=>{if(e.clipboardData){const t=Lo(e.clipboardData.items);t&&z.value&&E(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,l=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,s=window.open(`${r}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${l},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);s?.postMessage({type:"TOKEN",data:null},"*");const a=({data:e})=>{e&&"userInfo"===e.type&&e.data.token&&(s?.close(),o.value=e.data,(e.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,l=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2;window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${l},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:"TOKEN",data:o.value.token},"*");const s=({data:e})=>{e&&"profile"===e.type&&(o.value={...o.value,...e},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(o)))),window.removeEventListener("message",s))};window.addEventListener("message",s)},submitComment:A,onImageWallScroll:T,onGifSearch:j,isLogin:I,userInfo:o,isSubmitting:S,wordNumber:k,wordLimit:x,isWordNumberLegal:_,editor:r,userMeta:l,emoji:f,emojiTabIndex:g,showEmoji:m,gifData:b,showGif:v,canUploadImage:z,previewText:w,showPreview:y,inputRefs:i,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,gifButtonRef:p,gifPopupRef:d,imageUploadRef:a,gifSearchInputRef:h}}}),Bi={class:"wl-comment"},Di={key:0,class:"wl-login-info"},Hi={class:"wl-avatar"},Wi=["title"],qi=["src"],Zi=["textContent"],Gi={class:"wl-panel"},Ji=["for","textContent"],Ki=["id","name","type","onUpdate:modelValue"],Qi=["placeholder"],Yi={class:"wl-preview"},Xi=Ir("hr",null,null,-1),es=["innerHTML"],ts={class:"wl-footer"},ns={class:"wl-actions"},rs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},ls=["title"],os=["title"],is=["title"],ss=["title"],as={class:"wl-info"},cs={class:"wl-text-number"},us={key:0},ps=Er(" / "),ds=["textContent"],hs=["textContent"],fs=["disabled"],gs=["placeholder"],ms={key:0,class:"wl-loading"},vs={key:0,class:"wl-tab-wrapper"},ys=["title","onClick"],ws=["src","alt"],ks={key:0,class:"wl-tabs"},bs=["onClick"],xs=["src","alt","title"],_s=["title"];var $s=Mi(Vi,[["render",function(e,t,n,r,l,o){const i=Un("CloseIcon"),s=Un("MarkdownIcon"),a=Un("EmojiIcon"),c=Un("GifIcon"),u=Un("ImageIcon"),p=Un("PreviewIcon"),d=Un("LoadingIcon"),h=Un("ImageWall");return mr(),kr("div",Bi,["disable"!==e.config.login&&e.isLogin?(mr(),kr("div",Di,[Ir("div",Hi,[Ir("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[zr(i,{size:14})],8,Wi),Ir("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,qi)]),Ir("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:z(e.userInfo.display_name)},null,8,Zi)])):Ar("v-if",!0),Ir("div",Gi,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(mr(),kr("div",{key:0,class:S(["wl-header",`item${e.config.meta.length}`])},[(mr(!0),kr(ur,null,Nn(e.config.meta,(t=>(mr(),kr("div",{class:"wl-header-item",key:t},[Ir("label",{for:t,textContent:z(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,Ji),jn(Ir("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:`wl-${t}`,class:S(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,Ki),[[_l,e.userMeta[t]]])])))),128))],2)):Ar("v-if",!0),jn(Ir("textarea",{class:"wl-editor",ref:"editorRef",id:"wl-edit",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editor=t),onKeydown:t[3]||(t[3]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[4]||(t[4]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[5]||(t[5]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,Qi),[[gl,e.editor]]),jn(Ir("div",Yi,[Xi,Ir("h4",null,z(e.locale.preview)+":",1),Ir("div",{class:"wl-content",innerHTML:e.previewText},null,8,es)],512),[[Sl,e.showPreview]]),Ir("div",ts,[Ir("div",ns,[Ir("a",rs,[zr(s)]),jn(Ir("button",{ref:"emojiButtonRef",class:S(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[zr(a)],10,ls),[[Sl,e.emoji.tabs.length]]),e.config.search?(mr(),kr("button",{key:0,ref:"gifButtonRef",class:S(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[7]||(t[7]=t=>e.showGif=!e.showGif)},[zr(c)],10,os)):Ar("v-if",!0),Ir("input",{ref:"imageUploadRef",class:"upload",id:"wl-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[8]||(t[8]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(mr(),kr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[zr(u)],8,is)):Ar("v-if",!0),Ir("button",{class:S(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[9]||(t[9]=t=>e.showPreview=!e.showPreview)},[zr(p)],10,ss)]),Ir("div",as,[Ir("div",cs,[Er(z(e.wordNumber)+" ",1),e.config.wordLimit?(mr(),kr("span",us,[ps,Ir("span",{class:S({illegal:!e.isWordNumberLegal}),textContent:z(e.wordLimit)},null,10,ds)])):Ar("v-if",!0),Er(" "+z(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Ar("v-if",!0):(mr(),kr("button",{key:0,class:"wl-btn",onClick:t[10]||(t[10]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:z(e.locale.login)},null,8,hs)),"force"!==e.config.login||e.isLogin?(mr(),kr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[11]||(t[11]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(mr(),br(d,{key:0,size:16})):(mr(),kr(ur,{key:1},[Er(z(e.locale.submit),1)],64))],8,fs)):Ar("v-if",!0)]),Ir("div",{ref:"gifPopupRef",class:S(["wl-gif-popup",{display:e.showGif}])},[Ir("input",{type:"text",placeholder:e.locale.gifSearchPlaceholder,ref:"gifSearchInputRef",onInput:t[12]||(t[12]=(...t)=>e.onGifSearch&&e.onGifSearch(...t))},null,40,gs),zr(h,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[13]||(t[13]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(mr(),kr("div",ms,[zr(d,{size:30})])):Ar("v-if",!0)],2),Ir("div",{ref:"emojiPopupRef",class:S(["wl-emoji-popup",{display:e.showEmoji}])},[(mr(!0),kr(ur,null,Nn(e.emoji.tabs,((t,n)=>(mr(),kr(ur,{key:t.name},[n===e.emojiTabIndex?(mr(),kr("div",vs,[(mr(!0),kr(ur,null,Nn(t.items,(t=>(mr(),kr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(mr(),kr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ws)):Ar("v-if",!0)],8,ys)))),128))])):Ar("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(mr(),kr("div",ks,[(mr(!0),kr(ur,null,Nn(e.emoji.tabs,((t,n)=>(mr(),kr("button",{key:t.name,class:S(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Ir("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,xs)],10,bs)))),128))])):Ar("v-if",!0)],2)])]),e.replyId?(mr(),kr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[14]||(t[14]=t=>e.$emit("cancel-reply"))},[zr(i,{size:24})],8,_s)):Ar("v-if",!0)])}],["__file","CommentBox.vue"]]);const Ss=["approved","waiting","spam"],Cs=zn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:$s,DeleteIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Zr("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"})),LikeIcon:({active:e=!1})=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Zr("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"})]),ReplyIcon:()=>Zr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Zr("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"})),VerifiedIcon:()=>Zr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Zr("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"}))},emits:["submit","reply","like","delete","status","sticky"],setup(e){const t=xn("config"),n=Ci(),r=$i(),l=qr((()=>t.value.locale)),o=qr((()=>{let{link:t}=e.comment;return t?go(t)?t:`https://${t}`:""})),i=qr((()=>n.value.includes(e.comment.objectId))),s=((e,t)=>{const n=uo();return qr((()=>bo(e,n.value,t)))})(e.comment.insertedAt,l.value),a=qr((()=>"administrator"===r.value.type)),c=qr((()=>e.comment.user_id&&r.value.objectId===e.comment.user_id)),u=qr((()=>e.comment.objectId===e.reply?.objectId));return{config:t,locale:l,isReplyingCurrent:u,link:o,like:i,time:s,isAdmin:a,isOwner:c,commentStatus:Ss}}}),Is=["id"],zs={class:"wl-user","aria-hidden":"true"},Rs=["src"],Es={class:"wl-card"},As={class:"wl-head"},Ls=["href"],Ts={key:1,class:"wl-nick"},js=["textContent"],Os=["textContent"],Us=["textContent"],Ms=["textContent"],Ps=["textContent"],Ns={class:"wl-comment-actions"},Fs=["title"],Vs=["textContent"],Bs=["title"],Ds={class:"wl-meta","aria-hidden":"true"},Hs=["textContent"],Ws=["textContent"],qs=["textContent"],Zs=["innerHTML"],Gs={key:0,class:"wl-admin-actions"},Js={class:"wl-comment-status"},Ks=["disabled","onClick","textContent"],Qs={key:1,class:"wl-reply-wrapper"},Ys={key:2,class:"wl-quote"};const Xs=zn({name:"WalineRoot",components:{CommentBox:$s,CommentCard:Mi(Cs,[["render",function(e,t,n,r,l,o){const i=Un("VerifiedIcon"),s=Un("DeleteIcon"),a=Un("LikeIcon"),c=Un("ReplyIcon"),u=Un("CommentBox"),p=Un("CommentCard",!0);return mr(),kr("div",{class:"wl-item",id:e.comment.objectId},[Ir("div",zs,[e.comment.avatar?(mr(),kr("img",{key:0,src:e.comment.avatar},null,8,Rs)):Ar("v-if",!0),e.comment.type?(mr(),br(i,{key:1})):Ar("v-if",!0)]),Ir("div",Es,[Ir("div",As,[e.link?(mr(),kr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},z(e.comment.nick),9,Ls)):(mr(),kr("span",Ts,z(e.comment.nick),1)),"administrator"===e.comment.type?(mr(),kr("span",{key:2,class:"wl-badge",textContent:z(e.locale.admin)},null,8,js)):Ar("v-if",!0),e.comment.label?(mr(),kr("span",{key:3,class:"wl-badge",textContent:z(e.comment.label)},null,8,Os)):Ar("v-if",!0),e.comment.sticky?(mr(),kr("span",{key:4,class:"wl-badge",textContent:z(e.locale.sticky)},null,8,Us)):Ar("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(mr(),kr("span",{key:5,class:S(`wl-badge level${e.comment.level}`),textContent:z(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Ms)):Ar("v-if",!0),Ir("span",{class:"wl-time",textContent:z(e.time)},null,8,Ps),Ir("div",Ns,[e.isAdmin||e.isOwner?(mr(),kr("button",{key:0,class:"wl-delete",onClick:t[0]||(t[0]=t=>e.$emit("delete",e.comment))},[zr(s)])):Ar("v-if",!0),Ir("button",{class:"wl-like",onClick:t[1]||(t[1]=t=>e.$emit("like",e.comment)),title:e.like?e.locale.cancelLike:e.locale.like},[zr(a,{active:e.like},null,8,["active"]),"like"in e.comment?(mr(),kr("span",{key:0,textContent:z(e.comment.like)},null,8,Vs)):Ar("v-if",!0)],8,Fs),Ir("button",{class:S(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[2]||(t[2]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[zr(c)],10,Bs)])]),Ir("div",Ds,[e.comment.addr?(mr(),kr("span",{key:0,textContent:z(e.comment.addr)},null,8,Hs)):Ar("v-if",!0),e.comment.browser?(mr(),kr("span",{key:1,textContent:z(e.comment.browser)},null,8,Ws)):Ar("v-if",!0),e.comment.os?(mr(),kr("span",{key:2,textContent:z(e.comment.os)},null,8,qs)):Ar("v-if",!0)]),Ir("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,Zs),e.isAdmin?(mr(),kr("div",Gs,[Ir("span",Js,[(mr(!0),kr(ur,null,Nn(e.commentStatus,(t=>(mr(),kr("button",{key:t,class:S(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:z(t)},null,10,Ks)))),128))]),e.isAdmin&&!e.comment.rid?(mr(),kr("button",{key:0,class:"wl-btn wl-sticky",onClick:t[3]||(t[3]=t=>e.$emit("sticky",e.comment))},z(e.comment.sticky?"unsticky":"sticky"),1)):Ar("v-if",!0)])):Ar("v-if",!0),e.isReplyingCurrent?(mr(),kr("div",Qs,[zr(u,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t)),onCancelReply:t[5]||(t[5]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):Ar("v-if",!0),e.comment.children?(mr(),kr("div",Ys,[(mr(!0),kr(ur,null,Nn(e.comment.children,(n=>(mr(),br(p,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[6]||(t[6]=t=>e.$emit("reply",t)),onSubmit:t[7]||(t[7]=t=>e.$emit("submit",t)),onLike:t[8]||(t[8]=t=>e.$emit("like",t)),onDelete:t[9]||(t[9]=t=>e.$emit("delete",t)),onStatus:t[10]||(t[10]=t=>e.$emit("status",t)),onSticky:t[11]||(t[11]=t=>e.$emit("sticky",t))},null,8,["comment","reply","rootId"])))),128))])):Ar("v-if",!0)])],8,Is)}],["__file","CommentCard.vue"]]),LoadingIcon:Ui},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","copyright"],setup(e){const o=qr((()=>(({serverURL:e,path:o=location.pathname,lang:i="zh-CN",locale:s,emoji:c=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:u=["nick","mail","link"],requiredMeta:p=[],dark:d=!1,pageSize:h=10,wordLimit:f,imageUploader:g,highlighter:m,texRenderer:y,copyright:w=!0,login:k="enable",search:b=l(),...x})=>({serverURL:mo(e),path:ho(o),locale:{...v[i]||v["zh-CN"],..."object"==typeof s?s:{}},wordLimit:vo(f),meta:t(u),requiredMeta:t(p),imageUploader:yo(g,n),highlighter:yo(m,a),texRenderer:yo(y,r),lang:i,dark:d,emoji:c,pageSize:h,login:k,copyright:w,search:b,...x}))(e))),i=$i(),s=Ci(),c=Tt("loading"),u=Tt(0),p=Tt(1),d=Tt(0),h=Tt([]),f=Tt(null),g=qr((()=>{return"string"==typeof(e=o.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${wo}}`:`${e}${wo}`:!0===e?`:root${wo}`:"";var e}));let m;!function(e,t={}){const n=Tt(!1),{document:r=Kl,immediate:l=!0,manual:o=!1,id:i="vueuse_styletag_"+ ++po}=t,s=Tt(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(i)||r.createElement("style");e.type="text/css",e.id=i,t.media&&(e.media=t.media),r.head.appendChild(e),n.value||(a=Sn(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(i)),n.value=!1)};l&&!o&&c(),o||El(u),kt(n)}(g);const y=e=>{const{serverURL:t,path:n,pageSize:r}=o.value,l=new AbortController;c.value="loading",m?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:l,signal:o,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}`,{signal:o,headers:s}).then((e=>e.json())).then((e=>Co(e,"comment list")))})({serverURL:t,lang:o.value.lang,path:n,pageSize:r,page:e,signal:l.signal,token:i.value?.token}).then((t=>{c.value="success",u.value=t.count,h.value.push(...t.data),p.value=e,d.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),c.value="error")})),m=l.abort.bind(l)},w=()=>{u.value=0,h.value=[],y(1)};return function(e,t){if(Pr){let n=Pr.provides;const r=Pr.parent&&Pr.parent.provides;r===n&&(n=Pr.provides=Object.create(r)),n[e]=t}}("config",o),Sn((()=>e.path),w),An((()=>w())),{config:o,darkmodeStyle:g,i18n:qr((()=>o.value.locale)),status:c,count:u,page:p,totalPages:d,data:h,reply:f,loadMore:()=>y(p.value+1),refresh:w,onReply:e=>{f.value=e},onSubmit:e=>{if(e.rid){const t=h.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else h.value.unshift(e)},onStatusChange:async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=o.value;await Io({serverURL:n,lang:r,token:i.value?.token,objectId:e.objectId,status:t}),e.status=t},onDelete:async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=o.value;await(({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>e.json())))({serverURL:t,lang:n,token:i.value?.token,objectId:e}),h.value.some(((t,n)=>t.objectId===e?(h.value=h.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,l)=>r.objectId===e&&(h.value[n].children=t.children.filter(((e,t)=>t!==l)),!0)))))},onSticky:async e=>{if(e.rid)return;const{serverURL:t,lang:n}=o.value;await Io({serverURL:t,lang:n,token:i.value?.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:t,lang:n}=o.value,{objectId:r}=e,l=s.value.includes(r);await(({serverURL:e,lang:t,objectId:n,like:r})=>fetch(`${e}/comment/${n}?lang=${t}`,{method:"PUT",headers:So,body:JSON.stringify({like:r})}).then((e=>e.json())))({serverURL:t,lang:n,objectId:r,like:!l}),l?s.value=s.value.filter((e=>e!==r)):(s.value=[...s.value,r],s.value.length>50&&(s.value=s.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},version:"2.6.1"}}}),ea={"data-waline":""},ta={class:"wl-count"},na=["textContent"],ra={class:"wl-cards"},la={key:1,class:"wl-operation"},oa=["textContent"],ia={key:0,class:"wl-loading"},sa=["textContent"],aa={class:"wl-operation"},ca=["textContent"],ua={key:3,class:"wl-power"},pa=Er(" Powered by "),da=Ir("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var ha=Mi(Xs,[["render",function(e,t,n,r,l,o){const i=Un("CommentBox"),s=Un("CommentCard"),a=Un("LoadingIcon");return mr(),kr("div",ea,[e.reply?Ar("v-if",!0):(mr(),br(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Ir("div",ta,[e.count?(mr(),kr("span",{key:0,class:"wl-num",textContent:z(e.count)},null,8,na)):Ar("v-if",!0),Er(" "+z(e.i18n.comment),1)]),Ir("div",ra,[(mr(!0),kr(ur,null,Nn(e.data,(t=>(mr(),br(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","onReply","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(mr(),kr("div",la,[Ir("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:z(e.i18n.refresh)},null,8,oa)])):(mr(),kr(ur,{key:2},["loading"===e.status?(mr(),kr("div",ia,[zr(a,{size:30})])):e.data.length?e.page<e.totalPages?(mr(),kr(ur,{key:2},[Ar(" Load more button "),Ir("div",aa,[Ir("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:z(e.i18n.more)},null,8,ca)])],2112)):Ar("v-if",!0):(mr(),kr("div",{key:1,class:"wl-empty",textContent:z(e.i18n.sofa)},null,8,sa))],64)),Ar(" Copyright Information "),e.config.copyright?(mr(),kr("div",ua,[pa,da,Er(" v"+z(e.version),1)])):Ar("v-if",!0)])}],["__file","Waline.vue"]]);const fa=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},ga=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:l="zh-CN"})=>{const o=new AbortController,i=Array.from(document.querySelectorAll(n)),s=e=>{const n=xi(e);return null!==n&&t!==n},a=n=>zo({serverURL:mo(e),paths:n.map((e=>xi(e)||t)),lang:l,signal:o.signal}).then((e=>fa(e,n))).catch($o);if(r){const n=i.filter((e=>!s(e))),r=i.filter(s);Ro({serverURL:mo(e),path:t,lang:l}).then((e=>fa(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(i);return o.abort.bind(o)};exports.RecentComments=({el:e,serverURL:t,count:n,lang:r="zh-CN"})=>{const l=$i(),o=Eo(e),i=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:l})=>{const o={};return l&&(o.Authorization=`Bearer ${l}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:o}).then((e=>e.json())).then((e=>Co(e,"recent comment")))})({serverURL:t,count:n,lang:r,signal:i.signal,token:l.value?.token}).then((e=>o&&e.length?(o.innerHTML=`<ul class="wl-recent-list">${e.map((e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>:${e.comment}</li>`)).join("")}</ul>`,{comments:e,destroy:()=>{i.abort(),o.innerHTML=""}}):{comments:e,destroy:()=>i.abort()}))},exports.commentCount=Ii,exports.defaultLocales=v,exports.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{const o=e?Eo(e):null;if(e&&!o)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const i=wt({...l}),s=wt({comment:n,pageview:r,path:t}),a=o?Rl((()=>Zr(ha,{path:s.path,...i}))):null;a&&a.mount(o);const c=_n((()=>{s.comment&&Ii({serverURL:i.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})})),u=_n((()=>{s.pageview&&ga({serverURL:i.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})}));return{el:o,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{i[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}},exports.pageviewCount=ga,exports.version="2.6.1";
|
|
2
2
|
//# sourceMappingURL=waline.cjs.js.map
|