!function(e,t){"function"==typeof define&&define.amd?define("Waline",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.Waline=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.pageviewCount=e.init=e.defaultLocales=e.commentCount=e.UserList=e.RecentComments=void 0;const s=["nick","mail","link"],z=e=>e.filter(e=>s.includes(e)),L=["//unpkg.com/@waline/emojis@1.1.0/weibo"],I="en-US",T=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],j=r=>new Promise((e,t)=>{if(128e3e(n.result?.toString()||""),n.onerror=t}),O=e=>!0===e?'

TeX is not available in preview

':'TeX is not available in preview',U=t=>{async function n(e){return fetch(`https://api.giphy.com/v1/gifs/${e}?`+new URLSearchParams({lang:t,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...1e.json()).then(e=>{let t=e["data"];return t.map(e=>({title:e.title,src:e.images.downsized_medium.url}))})}return{search:e=>n("search",{q:e,offset:"0"}),default:()=>n("trending",{}),more:function(e){return n("search",{q:e,offset:(1{let l=0;return e.replace(c,(e,t,n)=>{if(n)return`${n}`;if("<"===t)return"<";let r;h[t]?r=h[t]:(r=u[l],h[t]=r);n=`${t}`;return l=++l%u.length,n})},f=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],g=e=>Object.fromEntries(e.map((e,t)=>[f[t],e]));var v=g(["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","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),m=g(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),t=g(["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","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),w=g(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),n=g(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),k=g(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字","留言字數應在 $0 到 $1 字之間!\n目前字數:$2","匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const P={zh:n,"zh-cn":n,"zh-CN":n,"zh-tw":k,"zh-TW":k,en:v,"en-US":v,"en-us":v,jp:m,ja:m,"jp-jp":m,"jp-JP":m,"pt-br":t,"pt-BR":t,ru:w,"ru-ru":w,"ru-RU":w},b={"Content-Type":"application/json"},F=function(e){if("object"==typeof e&&e.errno)throw new TypeError(`${1{let{serverURL:t,lang:n,paths:r,type:l,signal:i}=e;return fetch(`${t}/article?path=${encodeURIComponent(r.join(","))}&type=${encodeURIComponent(l.join(","))}&lang=`+n,{signal:i}).then(e=>e.json())},_=e=>{var{serverURL:e,lang:t,path:n,type:r,action:l}=e;return fetch(e+"/article?lang="+t,{method:"POST",headers:b,body:JSON.stringify({path:n,type:r,action:l})}).then(e=>e.json())},he=e=>{var{serverURL:e,lang:t,token:n,objectId:r,comment:l}=e;return fetch(e+`/comment/${r}?lang=`+t,{method:"PUT",headers:{...b,Authorization:"Bearer "+n},body:JSON.stringify(l)}).then(e=>e.json()).then(e=>F(e,"Update comment"))},V=e=>{try{e=decodeURI(e)}catch(e){}return e},fe=function(){return(0/^(https?:)?\/\//.test(e),N=e=>{e=fe(e);return C(e)?e:"https://"+e},D=(e,t)=>"function"==typeof e?e:!1!==e&&t,ge="{--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}",S=(e,t)=>{let n=e.toString();for(;n.length!!n[e.toLowerCase()]:e=>!!n[e]}e.defaultLocales=P;const H={},me=[],ye=()=>{},A=()=>!1,R=/^on[^a-z]/,we=e=>R.test(e),ke=e=>e.startsWith("onUpdate:"),B=Object.assign,be=(e,t)=>{t=e.indexOf(t);-1xe.call(e,t),q=Array.isArray,_e=e=>"[object Map]"===Ee(e),Ce=e=>"[object Set]"===Ee(e),Se=e=>"[object Date]"===Ee(e),Z=e=>"function"==typeof e,K=e=>"string"==typeof e,$e=e=>"symbol"==typeof e,G=e=>null!==e&&"object"==typeof e,Ae=e=>G(e)&&Z(e.then)&&Z(e.catch),Re=Object.prototype.toString,Ee=e=>Re.call(e),ze=e=>Ee(e).slice(8,-1),Le=e=>"[object Object]"===Ee(e),Ie=e=>K(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Te=$(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),je=t=>{const n=Object.create(null);return e=>n[e]||(n[e]=t(e))},Oe=/-(\w)/g,Ue=je(e=>e.replace(Oe,(e,t)=>t?t.toUpperCase():"")),Me=/\B([A-Z])/g,Pe=je(e=>e.replace(Me,"-$1").toLowerCase()),Fe=je(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ve=je(e=>e?"on"+Fe(e):""),Ne=(e,t)=>!Object.is(e,t),De=(t,n)=>{for(let e=0;e{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Be=e=>{var t=parseFloat(e);return isNaN(t)?e:t};let We;const qe=()=>We=We||("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function Ze(t){if(q(t)){const l={};for(let e=0;e{if(e){const t=e.split(Ge);1Ye(e,t))}const J=e=>K(e)?e:null==e?"":q(e)||G(e)&&(e.toString===Re||!Z(e.toString))?JSON.stringify(e,tt,2):String(e),tt=(e,t)=>t&&t.__v_isRef?tt(e,t.value):_e(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,t)=>{var[t,n]=t;return e[t+" =>"]=n,e},{})}:Ce(t)?{[`Set(${t.size})`]:[...t.values()]}:!G(t)||q(t)||Le(t)?t:String(t);let y;class nt{constructor(){var e=0{const t=new Set(e);return t.w=0,t.n=0,t},lt=e=>0<(e.w&at),it=e=>0<(e.n&at),ot=new WeakMap;let st=0,at=1;const ct=30;let ut;const pt=Symbol(""),dt=Symbol("");class ht{constructor(e){var t=1{let t=e["deps"];if(t.length)for(let e=0;e{("length"===t||t>=r)&&n.push(e)})}else switch(void 0!==t&&n.push(i.get(t)),e){case"add":q(r)?Ie(t)&&n.push(i.get("length")):(n.push(i.get(pt)),_e(r)&&n.push(i.get(dt)));break;case"delete":q(r)||(n.push(i.get(pt)),_e(r)&&n.push(i.get(dt)));break;case"set":_e(r)&&n.push(i.get(pt))}if(1===n.length)n[0]&&bt(n[0]);else{const r=[];for(const e of n)e&&r.push(...e);bt(rt(r))}}}function bt(e){var t=q(e)?e:[...e];for(const e of t)e.computed&&xt(e);for(const e of t)e.computed||xt(e)}function xt(e){e===ut&&!e.allowRecurse||(e.scheduler?e.scheduler():e.run())}const _t=$("__proto__,__v_isRef,__isVue"),Ct=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter($e)),St=zt(),$t=zt(!1,!0),At=zt(!0),Rt=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach(i=>{e[i]=function(){const n=Y(this);for(let e=0,t=this.length;e{e[l]=function(){mt();for(var e=arguments.length,t=new Array(e),n=0;n!0,deleteProperty:(e,t)=>!0},jt=B({},It,{get:$t,set:Lt(!0)}),Ot=e=>e,Ut=e=>Reflect.getPrototypeOf(e);function Mt(e,t,n,r){var l=2n.call(r,i(e),i(t),l))}}function Wt(s,a,c){return function(){const e=this.__v_raw,t=Y(e),n=_e(t),r="entries"===s||s===Symbol.iterator&&n,l="keys"===s&&n,i=e[s](...arguments),o=c?Ot:a?gn:fn;return a||X(t,0,l?dt:pt),{next(){var{value:e,done:t}=i.next();return t?{value:e,done:t}:{value:r?[o(e[0]),o(e[1])]:o(e),done:t}},[Symbol.iterator](){return this}}}}function qt(e){return function(){return"delete"!==e&&this}}const[Zt,Kt,Gt,Qt]=function(){const t={get(e){return Mt(this,e)},get size(){return Ft(this)},has:Pt,add:Vt,set:Nt,delete:Dt,clear:Ht,forEach:Bt(!1,!1)},n={get(e){return Mt(this,e,!1,!0)},get size(){return Ft(this)},has:Pt,add:Vt,set:Nt,delete:Dt,clear:Ht,forEach:Bt(!1,!0)},r={get(e){return Mt(this,e,!0)},get size(){return Ft(this,!0)},has(e){return Pt.call(this,e,!0)},add:qt("add"),set:qt("set"),delete:qt("delete"),clear:qt("clear"),forEach:Bt(!0,!1)},l={get(e){return Mt(this,e,!0,!0)},get size(){return Ft(this,!0)},has(e){return Pt.call(this,e,!0)},add:qt("add"),set:qt("set"),delete:qt("delete"),clear:qt("clear"),forEach:Bt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(e=>{t[e]=Wt(e,!1,!1),r[e]=Wt(e,!0,!1),n[e]=Wt(e,!1,!0),l[e]=Wt(e,!0,!0)}),[t,r,n,l]}();function Jt(r,e){const l=e?r?Qt:Gt:r?Kt:Zt;return(e,t,n)=>"__v_isReactive"===t?!r:"__v_isReadonly"===t?r:"__v_raw"===t?e:Reflect.get(W(l,t)&&t in e?l:e,t,n)}const Xt={get:Jt(!1,!1)},Yt={get:Jt(!1,!0)},en={get:Jt(!0,!1)},tn=new WeakMap,nn=new WeakMap,rn=new WeakMap,ln=new WeakMap;function on(e){return un(e)?e:an(e,!1,It,Xt,tn)}function sn(e){return an(e,!0,Tt,en,rn)}function an(e,t,n,r,l){if(!G(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;t=l.get(e);if(t)return t;var i,t=(i=e).__v_skip||!Object.isExtensible(i)?0:function(){switch(ze(i)){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}();if(0===t)return e;t=new Proxy(e,2===t?r:n);return l.set(e,t),t}function cn(e){return un(e)?cn(e.__v_raw):!(!e||!e.__v_isReactive)}function un(e){return!(!e||!e.__v_isReadonly)}function pn(e){return!(!e||!e.__v_isShallow)}function dn(e){return cn(e)||un(e)}function Y(e){var t=e&&e.__v_raw;return t?Y(t):e}function hn(e){return He(e,"__v_skip",!0),e}const fn=e=>G(e)?on(e):e,gn=e=>G(e)?sn(e):e;function vn(e){gt&&ut&&wt((e=Y(e)).dep||(e.dep=rt()))}function mn(e){e=(e=Y(e)).dep;e&&bt(e)}function ee(e){return!(!e||!0!==e.__v_isRef)}function te(e){return wn(e,!1)}function yn(e){return wn(e,!0)}function wn(e,t){return ee(e)?e:new kn(e,t)}class kn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Y(e),this._value=t?e:fn(e)}get value(){return vn(this),this._value}set value(e){var t=this.__v_isShallow||pn(e)||un(e);e=t?e:Y(e),Ne(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:fn(e),mn(this))}}function ne(e){return ee(e)?e.value:e}const bn={get:(e,t,n)=>ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return ee(l)&&!ee(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function xn(e){return cn(e)?e:new Proxy(e,bn)}class _n{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ht(e,()=>{this._dirty||(this._dirty=!0,mn(this))}),(this.effect.computed=this).effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Y(this);return vn(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Cn(e,t,n,r){let l;try{l=r?e(...r):e()}catch(e){$n(e,t,n)}return l}function Sn(t,n,r,l){if(Z(t)){const i=Cn(t,n,r,l);return i&&Ae(i)&&i.catch(e=>{$n(e,n,r)}),i}const i=[];for(let e=0;e>>1;Vn(re[r])Vn(e)-Vn(t)),In=0;Innull==e.id?1/0:e.id,Nn=(e,t)=>{var n=Vn(e)-Vn(t);if(0==n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dn(e){Rn=!1,An=!0,re.sort(Nn);try{for(En=0;En{let t;for(const n in e)"class"!==n&&"style"!==n&&!we(n)||((t=t||{})[n]=e[n]);return t},Gn=(e,t)=>{const n={};for(const r in e)ke(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Qn(t,n,r){var l=Object.keys(n);if(l.length!==Object.keys(t).length)return!0;for(let e=0;ee.value,c=pn(e)):cn(e)?(s=()=>e,l=!0):s=q(e)?(u=!0,c=e.some(e=>cn(e)||pn(e)),()=>e.map(e=>ee(e)?e.value:cn(e)?tr(e):Z(e)?Cn(e,o,2):void 0)):Z(e)?t?()=>Cn(e,o,2):()=>{if(!o||!o.isUnmounted)return a&&a(),Sn(e,o,3,[d])}:ye,t&&l){const e=s;s=()=>tr(e())}let p,d=e=>{a=v.onStop=()=>{Cn(e,o,4)}};if(wl){if(d=ye,t?r&&Sn(t,o,3,[s(),u?[]:void 0,d]):s(),"sync"!==i)return ye;{const e=Cl();p=e.__watcherHandles||(e.__watcherHandles=[])}}let h=u?new Array(e.length).fill(Xn):Xn;const f=()=>{if(v.active)if(t){const e=v.run();(l||c||(u?e.some((e,t)=>Ne(e,h[t])):Ne(e,h)))&&(a&&a(),Sn(t,o,3,[e,h===Xn?void 0:u&&h[0]===Xn?[]:h,d]),h=e)}else v.run()};let g;f.allowRecurse=!!t,g="sync"===i?f:"post"===i?()=>le(f,o&&o.suspense):(f.pre=!0,o&&(f.id=o.uid),()=>Un(f));const v=new ht(s,g);t?r?f():h=v.run():"post"===i?le(v.run.bind(v),o&&o.suspense):v.run();var m=()=>{v.stop(),o&&o.scope&&be(o.scope.effects,v)};return p&&p.push(m),m}function tr(t,n){if(!G(t)||t.__v_skip)return t;if((n=n||new Set).has(t))return t;if(n.add(t),ee(t))tr(t.value,n);else if(q(t))for(let e=0;e{tr(e,n)});else if(Le(t))for(const e in t)tr(t[e],n);return t}function nr(e,i){var t=Bn;if(null===t)return e;const o=xl(t)||t.proxy,s=e.dirs||(e.dirs=[]);for(let l=0;l!!e.type.__asyncLoader,or=t=>function(e){return(!wl||"sp"===t)&&function(l,i,e,t){let o=2r(e,t,void 0,o&&o[t]));else{const l=Object.keys(n);i=new Array(l.length);for(let e=0,t=l.length;ee?ml(e)?xl(e)||e.proxy:fr(e.parent):null,gr=B(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=>fr(e.parent),$root:e=>fr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Un(e.update)),$nextTick:e=>e.n||(e.n=On.bind(e.proxy)),$watch:e=>ye}),vr=(e,t)=>e!==H&&!e.__isScriptSetup&&W(e,t),mr={get(e,t){var n,r=e["_"];const{ctx:l,setupState:i,data:o,props:s,accessCache:a,type:c,appContext:u}=r;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return i[t];case 2:return o[t];case 4:return l[t];case 3:return s[t]}else{if(vr(i,t))return a[t]=1,i[t];if(o!==H&&W(o,t))return a[t]=2,o[t];if((n=r.propsOptions[0])&&W(n,t))return a[t]=3,s[t];if(l!==H&&W(l,t))return a[t]=4,l[t];a[t]=0}}const p=gr[t];let d,h;return p?("$attrs"===t&&X(r,0,t),p(r)):(d=c.__cssModules)&&(d=d[t])?d:l!==H&&W(l,t)?(a[t]=4,l[t]):(h=u.config.globalProperties,W(h,t)?h[t]:void 0)},set(e,t,n){e=e._;const{data:r,setupState:l,ctx:i}=e;return vr(l,t)?(l[t]=n,!0):r!==H&&W(r,t)?(r[t]=n,!0):!(W(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has(e,t){var{data:e,setupState:n,accessCache:r,ctx:l,appContext:i,propsOptions:o}=e["_"];return!!r[t]||e!==H&&W(e,t)||vr(n,t)||(r=o[0])&&W(r,t)||W(l,t)||W(gr,t)||W(i.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:W(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yr(e){return q(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function wr(t,e,n,r){let l=3wr(t,e,n,!0));for(const i in e)if(!l||"expose"!==i){const l=kr[i]||n&&n[i];t[i]=l?l(t[i],e[i]):e[i]}return t}const kr={data:br,props:Cr,emits:Cr,methods:_r,computed:_r,beforeCreate:l,created:l,beforeMount:l,mounted:l,beforeUpdate:l,updated:l,beforeDestroy:l,beforeUnmount:l,destroyed:l,unmounted:l,activated:l,deactivated:l,errorCaptured:l,serverPrefetch:l,components:_r,directives:_r,watch:function(e,t){if(!e)return t;if(!t)return e;const n=B(Object.create(null),e);for(const r in t)n[r]=l(e[r],t[r]);return n},provide:br,inject:function(e,t){return _r(xr(e),xr(t))}};function br(e,t){return t?e?function(){return B(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function xr(t){if(q(t)){const n={};for(let e=0;eTr(e,t)):Z(e)&&Tr(e,t)?0:-1}const Or=e=>"_"===e[0]||"$stable"===e,Ur=e=>q(e)?e.map(il):[il(e)],Mr=(e,t,n)=>{if(t._n)return t;const r=function(n,e){let r=1{var r=e._ctx;for(const n in e)if(!Or(n)){var l=e[n];if(Z(l))t[n]=Mr(0,l,r);else if(null!=l){const e=Ur(l);t[n]=()=>e}}},Fr=(e,t)=>{const n=Ur(t);e.slots.default=()=>n};function Vr(t,n,r,l,e){let i=4Vr(e,n&&(q(n)?n[t]:n),r,l,i));else if(!ir(l)||i){const o=4&l.shapeFlag?xl(l.component)||l.component.proxy:l.el,s=i?null:o,{i:a,r:c}=t,u=n&&n.r,p=a.refs===H?a.refs={}:a.refs,d=a.setupState;if(null!=u&&u!==c&&(K(u)?(p[u]=null,W(d,u)&&(d[u]=null)):ee(u)&&(u.value=null)),Z(c))Cn(c,a,12,[s,p]);else{const n=K(c),l=ee(c);if(n||l){const a=()=>{if(t.f){const e=n?(W(d,c)?d:p)[c]:c.value;i?q(e)&&be(e,o):q(e)?e.includes(o)||e.push(o):n?(p[c]=[o],W(d,c)&&(d[c]=p[c])):(c.value=[o],t.k&&(p[t.k]=c.value))}else n?(p[c]=s,W(d,c)&&(d[c]=s)):l&&(c.value=s,t.k&&(p[t.k]=s))};s?(a.id=-1,le(a,r)):a()}}}}const le=function(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):(q(t=e)?zn.push(...t):Ln&&Ln.includes(t,t.allowRecurse?In+1:In)||zn.push(t),Mn())};function Nr(e){{qe().__VUE__=!0;const{insert:I,remove:o,patchProp:T,createElement:j,createText:f,createComment:l,setText:i,setElementText:O,parentNode:v,nextSibling:d,setScopeId:s=ye,insertStaticContent:a}=e,_=function(e,t,n){let r=3{if(null==e)I(t.el=f(t.children),n,r);else{const I=t.el=e.el;t.children!==e.children&&i(I,t.children)}},g=(e,t,n,r)=>{null==e?I(t.el=l(t.children||""),n,r):t.el=e.el},m=(e,t,n,r)=>{[e.el,e.anchor]=a(e.children,t,n,r,e.el,e.anchor)},y=(l,i,n,r,o,s,a,c,u)=>{if(a=a||"svg"===i.type,null!=l){var p=l,d=i,h=o,f=s,g=a,v=c,m=u,y=d.el=p.el;let{patchFlag:e,dynamicChildren:t,dirs:n}=d;e|=16&p.patchFlag;var w=p.props||H,k=d.props||H;let r;h&&Dr(h,!1),(r=k.onVnodeBeforeUpdate)&&al(r,h,d,p),n&&rr(d,p,h,"beforeUpdate"),h&&Dr(h,!0);l=g&&"foreignObject"!==d.type;if(t?P(p.dynamicChildren,t,y,h,f,l,v):m||V(p,d,y,null,h,f,l,v,!1),0{r&&al(r,h,d,p),n&&rr(d,p,h,"updated")},f))}else{var b=i,x=n,l=r,_=o,C=s,S=a,v=c,m=u;let e,t;const{type:$,props:A,shapeFlag:R,transition:E,dirs:z}=b;if(e=b.el=j(b.type,S,A&&A.is,A),8&R?O(e,b.children):16&R&&M(b.children,e,null,_,C,S&&"foreignObject"!==$,v,m),z&&rr(b,null,_,"created"),U(e,b,b.scopeId,v,_),A){for(const x in A)"value"===x||Te(x)||T(e,x,null,A[x],S,b.children,_,C,N);"value"in A&&T(e,"value",null,A.value),(t=A.onVnodeBeforeMount)&&al(t,_,b)}z&&rr(b,null,_,"beforeMount");const L=(!C||!C.pendingBranch)&&E&&!E.persisted;L&&E.beforeEnter(e),I(e,x,l),((t=A&&A.onVnodeMounted)||L||z)&&le(()=>{t&&al(t,_,b),L&&E.enter(e),z&&rr(b,null,_,"mounted")},C)}},U=(t,e,n,r,l)=>{if(n&&s(t,n),r)for(let e=0;e{for(let e=0;e{if(n!==r){if(n!==H)for(const c in n)Te(c)||c in r||T(e,c,n[c],null,o,t.children,l,i,N);for(const u in r){var s,a;Te(u)||(s=r[u])!==(a=n[u])&&"value"!==u&&T(e,u,a,s,o,t.children,l,i,N)}"value"in r&&T(e,"value",n.value,r.value)}},R=(e,t,n,r,l,i,o,s,a)=>{var c=t.el=e?e.el:f(""),u=t.anchor=e?e.anchor:f(""),{patchFlag:p,dynamicChildren:d,slotScopeIds:h}=t;h&&(s=s?s.concat(h):h),null==e?(I(c,n,r),I(u,n,r),M(t.children,n,u,l,i,o,s,a)):0{if(t.slotScopeIds=s,null!=e){var s=e,e=t,c=a;const u=e.component=s.component;void(!function(t,e,n){var{props:r,children:t,component:l}=t,{props:i,children:o,patchFlag:s}=e,a=l.emitsOptions;if(e.dirs||e.transition)return 1;if(!(n&&0<=s))return!(!t&&!o||o&&o.$stable)||r!==i&&(r?!i||Qn(r,i,a):i);if(1024&s)return 1;if(16&s)return r?Qn(r,i,a):i;if(8&s){const t=e.dynamicProps;for(let e=0;eEn&&re.splice(c,1),u.update()))}else 512&t.shapeFlag?l.ctx.activate(t,n,r,o,a):w(t,n,r,l,i,o,a)},w=(e,t,n,r,l,i,o)=>{const s=e.component=function(e,t,n){const r=e.type,l=(t||e).appContext||cl,i={uid:ul++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new nt(!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:function(e,t){const n=t.propsCache,r=n.get(e);if(r)return r;const l=e.props,i={},o=[];if(!l)return G(e)&&n.set(e,me),me;if(q(l))for(let e=0;ei[e]=null):B(i,l),G(e)&&n.set(e,i),i):(G(e)&&n.set(e,null),null)}(r,l),emit:null,emitted:null,propsDefaults:H,inheritAttrs:r.inheritAttrs,ctx:H,data:H,props:H,attrs:H,slots:H,refs:H,setupState:H,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=function(r,l){if(!r.isUnmounted){for(var i=r.vnode.props||H,o=arguments.length,s=new Array(2K(e)?e.trim():e)),l&&(e=s.map(Be))}let t,n=i[t=Ve(l)]||i[t=Ve(Ue(l))];(n=!n&&c?i[t=Ve(Pe(l))]:n)&&Sn(n,r,6,e);u=i[t+"Once"];if(u){if(r.emitted){if(r.emitted[t])return}else r.emitted={};r.emitted[t]=!0,Sn(u,r,6,e)}}}.bind(null,i),e.ce&&e.ce(i),i}(e,r,l);if(e.type.__isKeepAlive&&(s.ctx.renderer=A),function(e,t){var n,r=1(X(n,0,"$attrs"),e[t])}));var n},slots:r.slots,emit:r.emit,expose:e=>{r.exposed=e||{}}}):null,i=(gl(t),mt(),Cn(l,t,0,[t.props,e]));if(yt(),vl(),Ae(i)){if(i.then(vl,vl),n)return i.then(e=>{kl(t,e,n)}).catch(e=>{$n(e,t,0)});t.asyncDep=i}else kl(t,i,n)}else bl(t,n)}(e,r),wl=!1}(s),s.asyncDep){if(l&&l.registerDep(s,c),!e.el){const e=s.subTree=ce(Br);g(null,e,t,n)}}else c(s,e,t,n,l,i,o)},c=(u,o,p,d,h,f,g)=>{const e=u.effect=new ht(()=>{if(u.isMounted){let e,{next:t,bu:n,u:r,parent:l,vnode:i}=u,o=t;Dr(u,!1),t?(t.el=i.el,k(u,t,g)):t=i,n&&De(n),(e=t.props&&t.props.onVnodeBeforeUpdate)&&al(e,l,t,i),Dr(u,!0);var s=Zn(u),a=u.subTree;if(u.subTree=s,_(a,s,v(a.el),$(a),u,h,f),t.el=s.el,null===o){var c=s.el;let{vnode:e,parent:t}=u;for(;t&&t.subTree===e;)(e=t.vnode).el=c,t=t.parent}r&&le(r,h),(e=t.props&&t.props.onVnodeUpdated)&&le(()=>al(e,l,t,i),h)}else{let e;const{el:t,props:n}=o,{bm:r,m:v,parent:l}=u,i=ir(o);Dr(u,!1),r&&De(r),!i&&(e=n&&n.onVnodeBeforeMount)&&al(e,l,o),Dr(u,!0),t;{const p=void 0}{const g=u.subTree=Zn(u);_(null,g,p,d,u,h,f),o.el=g.el}if(v&&le(v,h),!i&&(e=n&&n.onVnodeMounted)){const u=o;le(()=>al(e,l,u),h)}(256&o.shapeFlag||l&&ir(l.vnode)&&256&l.vnode.shapeFlag)&&u.a&&le(u.a,h),u.isMounted=!0,o=p=d=null}},()=>Un(t),u.scope),t=u.update=()=>e.run();t.id=u.uid,Dr(u,!0),t()},k=(n,r,l)=>{var i=(r.component=n).vnode.props;n.vnode=r,n.next=null;{var o=n,s=r.props,a=i;const{props:d,attrs:h,vnode:{patchFlag:e}}=o,f=Y(d),[g]=o.propsOptions;let t=!1;if(!(l||0{t=t||me;var c=(e=e||me).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d{let h=0;const f=i.length;let g=e.length-1,v=f-1;for(;h<=g&&h<=v;){const s=e[h],f=i[h]=(d?ol:il)(i[h]);if(!Yr(s,f))break;_(s,f,o,null,a,c,u,p,d),h++}for(;h<=g&&h<=v;){const s=e[g],h=i[v]=(d?ol:il)(i[v]);if(!Yr(s,h))break;_(s,h,o,null,a,c,u,p,d),g--,v--}if(h>g){if(h<=v){const e=v+1,g=ev)for(;h<=g;)S(e[h],a,c,!0),h++;else{const w=h,k=h,b=new Map;for(h=k;h<=v;h++){const e=i[h]=(d?ol:il)(i[h]);null!=e.key&&b.set(e.key,h)}let t,n=0;var m=v-k+1;let r=!1,l=0;const x=new Array(m);for(h=0;h=m)S(s,a,c,!0);else{let e;if(null!=s.key)e=b.get(s.key);else for(t=k;t<=v;t++)if(0===x[t-k]&&Yr(s,i[t])){e=t;break}void 0===e?S(s,a,c,!0):(x[e-k]=h+1,e>=l?l=e:r=!0,_(s,i[e],o,null,a,c,u,p,d),n++)}}var y=r?function(e){const t=e.slice(),n=[0];let r,l,i,o,s;const a=e.length;for(r=0;r>1,e[n[s]]s.enter(n),e);else{const{leave:r,delayLeave:t,afterLeave:e}=s,o=()=>I(n,l,i),a=()=>{r(n,()=>{o(),e&&e()})};t?t(n,o,a):a()}else I(n,l,i);else{var u=l;var p=i;let e,{el:t,anchor:n}=r;for(;t&&t!==n;)e=d(t),I(t,u,p),t=e;I(n,u,p);return}else{I(n,l,i);for(let e=0;e{e&&al(e,n,t),h&&rr(t,null,n,"unmounted")},r)}},x=r=>{const{type:e,el:t,anchor:n,transition:l}=r;if(e===ie)L(t,n);else if(e===Wr){let e,{el:t,anchor:n}=r;for(;t&&t!==n;)e=d(t),o(t),t=e;o(n)}else{const i=()=>{o(t),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&r.shapeFlag&&l&&!l.persisted){const{leave:e,delayLeave:o}=l,n=()=>e(t,i);o?o(r.el,i,n):n()}else i()}},L=(e,t)=>{for(var n;e!==t;)n=d(e),o(e),e=n;o(t)},D=(e,t,n)=>{const{bum:r,scope:l,update:i,subTree:o,um:s}=e;r&&De(r),l.stop(),i&&(i.active=!1,S(o,e,t,n)),s&&le(s,t),le(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},N=function(t,n,r){var l=36&e.shapeFlag?$(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),t=(e,t,n)=>{null==e?t._vnode&&S(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),Pn(),Fn(),t._vnode=e},A={p:_,um:S,m:C,r:x,mt:w,mc:M,pc:V,pbc:P,n:$,o:e};return{render:t,hydrate:void 0,createApp:(u=t,p=void 0,function(l){let i=1c,component:(e,t)=>t?(o.components[e]=t,c):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,c):o.directives[e],mount(e,t,n){if(!a){const r=ce(l,i);return r.appContext=o,t&&p?p(r,e):u(r,e,n),a=!0,(c._container=e).__vue_app__=c,xl(r.component)||r.component.proxy}},unmount(){a&&(u(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,c),runWithContext(e){Ar=c;try{return e()}finally{Ar=null}}};return c})};var u,p}}function Dr(e,t){let{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}const ie=Symbol.for("v-fgt"),Hr=Symbol.for("v-txt"),Br=Symbol.for("v-cmt"),Wr=Symbol.for("v-stc"),qr=[];let Zr=null;function oe(e){var t=0{e=e.key;return null!=e?e:null},nl=e=>{let{ref:t,ref_key:n,ref_for:r}=e;return null!=(t="number"==typeof t?""+t:t)?K(t)||ee(t)||Z(t)?{i:Bn,r:t,k:n,f:!!r}:t:null};function ae(e,t,n,r,l,i,o,s){var a=1E||Bn;let dl,hl,fl="__VUE_INSTANCE_SETTERS__";(hl=(hl=qe()[fl])?hl:qe()[fl]=[]).push(e=>E=e),dl=t=>{1e(t)):hl[0](t)};const gl=e=>{dl(e),e.scope.on()},vl=()=>{E&&E.scope.off(),dl(null)};function ml(e){return 4&e.vnode.shapeFlag}let yl,wl=!1;function kl(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=xn(t)),bl(e,n)}function bl(a,e){const t=a.type;if(!a.render){if(!e&&yl&&!t.render){const e=t.template||function(){const e=a.type,{mixins:t,extends:n}=e,{mixins:r,optionsCache:l,config:{optionMergeStrategies:i}}=a.appContext,o=l.get(e);let s;return o?s=o:r.length||t||n?(s={},r.length&&r.forEach(e=>wr(s,e,i,!0)),wr(s,e,i)):s=e,G(e)&&l.set(e,s),s}().template;if(e){const{isCustomElement:n,compilerOptions:r}=a.appContext.config,{delimiters:l,compilerOptions:i}=t,o=B(B({isCustomElement:n,delimiters:l},r),i);t.render=yl(e,o)}}a.render=t.render||ye}}function xl(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(xn(hn(n.exposed)),{get:(e,t)=>t in e?e[t]:t in gr?gr[t](n):void 0,has:(e,t)=>t in e||t in gr}))}const pe=(e,t)=>function(e,t,n){let r,l,i=2Rr(_l),Sl="3.3.4",$l="undefined"!=typeof document?document:null,Al=$l&&$l.createElement("template"),Rl={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?$l.createElementNS("http://www.w3.org/2000/svg",e):$l.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>$l.createTextNode(e),createComment:e=>$l.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$l.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,i){var o=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==i&&(l=l.nextSibling););else{Al.innerHTML=r?`${e}`:e;const l=Al.content;if(r){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},El=/\s*!important$/;function zl(t,n,e){var r;q(e)?e.forEach(e=>zl(t,n,e)):(null==e&&(e=""),n.startsWith("--")?t.setProperty(n,e):(r=function(t,n){var e=Il[n];if(e)return e;let r=Ue(n);if("filter"!==r&&r in t)return Il[n]=r;r=Fe(r);for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?e=>De(t,e):t};function Vl(e){e.target.composing=!0}function Nl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Dl={created(t,e,n){let{lazy:r,trim:l,number:i}=e["modifiers"];t._assign=Fl(n);const o=i||n.props&&"number"===n.props.type;jl(t,r?"change":"input",e=>{if(!e.target.composing){let e=t.value;l&&(e=e.trim()),o&&(e=Be(e)),t._assign(e)}}),l&&jl(t,"change",()=>{t.value=t.value.trim()}),r||(jl(t,"compositionstart",Vl),jl(t,"compositionend",Nl),jl(t,"change",Nl))},mounted(e,t){t=t.value;e.value=null==t?"":t},beforeUpdate(e,t,n){var{value:t,modifiers:{lazy:r,trim:l,number:i}}=t;if(e._assign=Fl(n),!e.composing){if(document.activeElement===e&&"range"!==e.type){if(r)return;if(l&&e.value.trim()===t)return;if((i||"number"===e.type)&&Be(e.value)===t)return}n=null==t?"":t;e.value!==n&&(e.value=n)}}},Hl={deep:!0,created(i,e,t){i._assign=Fl(t),jl(i,"change",()=>{const e=i._modelValue,t=Kl(i),n=i.checked,r=i._assign;if(q(e)){const i=et(e,t),l=-1!==i;if(n&&!l)r(e.concat(t));else if(!n&&l){const t=[...e];t.splice(i,1),r(t)}}else if(Ce(e)){const i=new Set(e);n?i.add(t):i.delete(t),r(i)}else r(Gl(i,n))})},mounted:Bl,beforeUpdate(e,t,n){e._assign=Fl(n),Bl(e,t,n)}};function Bl(e,t,n){let{value:r,oldValue:l}=t;e._modelValue=r,q(r)?e.checked=-1{e._assign(Kl(e))})},beforeUpdate(e,t,n){var{value:t,oldValue:r}=t;e._assign=Fl(n),t!==r&&(e.checked=Ye(t,n.props.value))}},ql={deep:!0,created(t,e,n){let{value:r,modifiers:{number:l}}=e;const i=Ce(r);jl(t,"change",()=>{var e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>l?Be(Kl(e)):Kl(e));t._assign(t.multiple?i?new Set(e):e:e[0])}),t._assign=Fl(n)},mounted(e,t){t=t.value;Zl(e,t)},beforeUpdate(e,t,n){e._assign=Fl(n)},updated(e,t){t=t.value;Zl(e,t)}};function Zl(n,r){var l=n.multiple;if(!l||q(r)||Ce(r)){for(let e=0,t=n.options.length;e{Yl(e,!1)}):Yl(e,r))},beforeUnmount(e,t){t=t.value;Yl(e,t)}};function Yl(e,t){e.style.display=t?e._vod:"none"}const ei=B({patchProp:function(e,t,n,r){var l,i,o=4{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Sn(function(e,t){if(q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(t=>e=>!e._stopped&&t&&t(e))}return t}(e,n.value),t,5,[e])};return n.value=r,n.attached=Ul||(Ml.then(()=>Ul=0),Ul=Date.now()),n}(o);jl(e,n,a,c)}else a&&(o=n,i=a,e.removeEventListener(o,i,c),s[t]=void 0)}}(e,t,0,r,a);else if("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):(l=e,i=t,p=r,o?"innerHTML"===i||"textContent"===i||i in l&&Pl.test(i)&&Z(p):!("spellcheck"===i||"draggable"===i||"translate"===i||"form"===i||"list"===i&&"INPUT"===l.tagName||"type"===i&&"TEXTAREA"===l.tagName||Pl.test(i)&&K(p)||!(i in l)))){var g=e,v=t,m=r,y=s;if("innerHTML"===v||"textContent"===v)y&&u(y,a,c),g[v]=null==m?"":m;else{const x=g.tagName;if("value"!==v||"PROGRESS"===x||x.includes("-")){let e=!1;if(""===m||null==m){const y=typeof g[v];"boolean"==y?m=Xe(m):null==m&&"string"==y?(m="",e=!0):"number"==y&&(m=0,e=!0)}try{g[v]=m}catch(g){}e&&g.removeAttribute(v)}else{const y=null==(g._value=m)?"":m;void(("OPTION"===x?g.getAttribute("value"):g.value)!==y&&(g.value=y),null==m&&g.removeAttribute(v))}}}else{"true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),s=e,u=t,y=r;var w=o;if(w&&u.startsWith("xlink:"))null==y?s.removeAttributeNS(Tl,u.slice(6,u.length)):s.setAttributeNS(Tl,u,y);else{const w=Je(u);null==y||w&&!Xe(y)?s.removeAttribute(u):s.setAttribute(u,w?"":y)}}}},Rl);let ti;function ni(e){y&&(e=e,y&&y.cleanups.push(e))}function ri(e){return"function"==typeof e?e():ne(e)}const li="undefined"!=typeof window&&"undefined"!=typeof document,ii=Object.prototype.toString,oi=e=>"[object Object]"===ii.call(e),si=()=>{};function ai(r,l){return function(){for(var e=arguments.length,n=new Array(e),t=0;t{Promise.resolve(r(()=>l.apply(this,n),{fn:l,thisArg:this,args:n})).then(e).catch(t)})}}const ci=e=>e();function ui(e,t){var n=!(1{s.forEach(e=>e()),s.length=0},c=Yn(()=>[function(e){var t,e=ri(e);return null!=(t=null==e?void 0:e.$el)?t:e}(e),ri(t)],e=>{let[n,t]=e;if(a(),n){const r=oi(t)?{...t}:t;s.push(...l.flatMap(t=>i.map(e=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(n,t,e,r))))}},{immediate:!0,flush:"post"}),u=()=>{c(),a()};ni(u)}const fi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},gi="__vueuse_ssr_handlers__",vi=(gi in fi||(fi[gi]=fi[gi]||{}),fi[gi]),mi={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()}},yi="vueuse-storage";function wi(r,e,l,t){var n,i=3{console.error(e)}}=i,g=(p?yn:te)(e);if(!l)try{l=(vi.getDefaultStorage||(()=>{var e;return null==(e=pi)?void 0:e.localStorage}))()}catch(r){f(r)}if(!l)return g;const v=ri(e),m=null==(n=v)?"any":n instanceof Set?"set":n instanceof Map?"map":n instanceof Date?"date":"boolean"==typeof n?"boolean":"string"==typeof n?"string":"object"==typeof n?"object":Number.isNaN(n)?"any":"number",y=null!=(n=i.serializer)?n:mi[m],{pause:w,resume:k}=function(e,t,n){const{eventFilter:r,...l}=2{var e,t,n=g.value;try{null==n?l.removeItem(r):(e=y.write(n),(t=l.getItem(r))!==e&&(l.setItem(r,e),d&&d.dispatchEvent(new CustomEvent(yi,{detail:{key:r,oldValue:t,newValue:e,storageArea:l}}))))}catch(e){f(e)}},{flush:o,deep:s,eventFilter:h});return d&&a&&(hi(d,"storage",b),hi(d,yi,function(e){b(e.detail)})),b(),g;function b(e){if(!e||e.storageArea===l)if(e&&null==e.key)g.value=v;else if(!e||e.key===r){w();try{(null==e?void 0:e.newValue)!==y.write(g.value)&&(g.value=function(e){var t=e?e.newValue:l.getItem(r);if(null==t)return c&&null!==v&&l.setItem(r,y.write(v)),v;if(e||!u)return"string"!=typeof t?t:y.read(t);{const r=y.read(t);return"function"==typeof u?u(r,v):"object"!=m||Array.isArray(r)?r:{...v,...r}}}(e))}catch(e){f(e)}finally{e?On(k):k()}}}}let ki=0;function bi(e){var t=1{"AbortError"!==e.name&&console.error(e.message)},_i=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,Ci=e=>e.type.includes("image"),Si=e=>{const t=Array.from(e).find(Ci);return t?t.getAsFile():null};let $i={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Ai=/[&<>"']/,Ri=new RegExp(Ai.source,"g"),Ei=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,zi=new RegExp(Ei.source,"g"),Li={"&":"&","<":"<",">":">",'"':""","'":"'"},Ii=e=>Li[e];function d(e,t){if(t){if(Ai.test(e))return e.replace(Ri,Ii)}else if(Ei.test(e))return e.replace(zi,Ii);return e}const Ti=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function ji(e){return e.replace(Ti,(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 Oi=/(^|[^\[])\^/g;function r(n,e){n="string"==typeof n?n:n.source,e=e||"";const r={replace:(e,t)=>(t=(t=t.source||t).replace(Oi,"$1"),n=n.replace(e,t),r),getRegex:()=>new RegExp(n,e)};return r}const Ui=/[^\w:]/g,Mi=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Pi(t,e,n){if(t){let e;try{e=decodeURIComponent(ji(n)).replace(Ui,"").toLowerCase()}catch(t){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}var r,l;e&&!Mi.test(n)&&(e=e,r=n,Fi[" "+e]||(Vi.test(e)?Fi[" "+e]=e+"/":Fi[" "+e]=Wi(e,"/",!0)),l=-1===(e=Fi[" "+e]).indexOf(":"),n="//"===r.substring(0,2)?l?r:e.replace(Ni,"$1")+r:"/"===r.charAt(0)?l?r:e.replace(Di,"$1")+r:e+r);try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n}const Fi={},Vi=/^[^:]+:\/*[^/]*$/,Ni=/^([^:]+:)[\s\S]*$/,Di=/^([^:]+:\/*[^/]*)[\s\S]*$/,Hi={exec:function(){}};function Bi(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,l=t;for(;0<=--l&&"\\"===n[l];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),0t)n.splice(t);else for(;n.length>=1,e+=e;return n+e}function Zi(e,t,n,r){var l=t.href,t=t.title?d(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"===e[0].charAt(0))return{type:"image",raw:n,href:l,title:t,text:d(i)};{r.state.inLink=!0;const e={type:"link",raw:n,href:l,title:t,text:i,tokens:r.inlineTokens(i)};return r.state.inLink=!1,e}}class Ki{constructor(e){this.options=e||$i}space(e){e=this.rules.block.newline.exec(e);if(e&&0{var t=e.match(/^\s+/);if(null===t)return e;var[t]=t;return t.length>=n.length?e.slice(n.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]&&t[2].trim().replace(this.rules.inline._escapes,"$1"),text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Wi(e,"#");!this.options.pedantic&&t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){e=this.rules.block.hr.exec(e);if(e)return{type:"hr",raw:e[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;var n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(h){let f=this.rules.block.list.exec(h);if(f){let e,t,n,r,l,i,o,s,a,c,u,p,d=f[1].trim();const v=1" ".repeat(3*e.length)),a=h.split("\n",1)[0],this.options.pedantic?(r=2,u=s.trimLeft()):(r=4<(r=f[2].search(/[^ ]/))?1:r,u=s.slice(r),r+=f[1].length),i=!1,!s&&/^ *$/.test(a)&&(e+=a+"\n",h=h.substring(a.length+1),p=!0),!p){const f=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),w=new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),k=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),b=new RegExp(`^ {0,${Math.min(3,r-1)}}#`);for(;h&&(c=h.split("\n",1)[0],a=c,this.options.pedantic&&(a=a.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!k.test(a))&&!b.test(a)&&!f.test(a)&&!w.test(h);){if(a.search(/[^ ]/)>=r||!a.trim())u+="\n"+a.slice(r);else{if(i)break;if(4<=s.search(/[^ ]/))break;if(k.test(s))break;if(b.test(s))break;if(w.test(s))break;u+="\n"+a}i||a.trim()||(i=!0),e+=c+"\n",h=h.substring(c.length+1),s=a.slice(r)}}m.loose||(o?m.loose=!0:/\n *\n *$/.test(e)&&(o=!0)),this.options.gfm&&((t=/^\[[ xX]\] /.exec(u))&&(n="[ ] "!==t[0],u=u.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:e,task:!!t,checked:n,loose:!1,text:u}),m.raw+=e}m.items[m.items.length-1].raw=e.trimRight(),m.items[m.items.length-1].text=u.trimRight(),m.raw=m.raw.trimRight();var g=m.items.length;for(l=0;l"space"===e.type),f=0/\n.*\n/.test(e.raw));m.loose=f}if(m.loose)for(l=0;l$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]&&t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1");return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(i){const o=this.rules.block.table.exec(i);if(o){const i={type:"table",header:Bi(o[1]).map(e=>({text:e})),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=o[0];let e,t,n,r,l=i.align.length;for(e=0;e({text:e}));for(l=i.header.length,t=0;t/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):d(e[0]):e[0]}}link(n){const r=this.rules.inline.link.exec(n);if(r){const n=r[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const r=Wi(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{const n=function(e){if(-1===e.indexOf("()"[1]))return-1;var t=e.length;let n=0,r=0;for(;r$/.test(n)?e.slice(1):e.slice(1,-1)),Zi(r,{href:e&&e.replace(this.rules.inline._escapes,"$1"),title:t&&t.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=n[e.toLowerCase()])return Zi(r,e,r[0],this.lexer);{const t=r[0].charAt(0);return{type:"text",raw:t,text:t}}}}emStrong(l,i){let o=2 ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Hi,lheading:/^((?:.|\n(?!\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?'|\([^()]*\))/},o=(i.def=r(i.def).replace("label",i._label).replace("title",i._title).getRegex(),i.bullet=/(?:[*+-]|\d{1,9}[.)])/,i.listItemStart=r(/^( *)(bull) */).replace("bull",i.bullet).getRegex(),i.list=r(i.list).replace(/bull/g,i.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+i.def.source+")").getRegex(),i._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",i._comment=/|$)/,i.html=r(i.html,"i").replace("comment",i._comment).replace("tag",i._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),i.paragraph=r(i._paragraph).replace("hr",i.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",i._tag).getRegex(),i.blockquote=r(i.blockquote).replace("paragraph",i.paragraph).getRegex(),i.normal={...i},i.gfm={...i.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},i.gfm.table=r(i.gfm.table).replace("hr",i.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",i._tag).getRegex(),i.gfm.paragraph=r(i._paragraph).replace("hr",i.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",i.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",i._tag).getRegex(),i.pedantic={...i.normal,html:r("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",i._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Hi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:r(i.normal._paragraph).replace("hr",i.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",i.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()},{escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Hi,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:Hi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",o.punctuation=r(o.punctuation).replace(/punctuation/g,o._punctuation).getRegex(),o.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,o.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,o._comment=r(i._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),o.emStrong.lDelim=r(o.emStrong.lDelim).replace(/punct/g,o._punctuation).getRegex(),o.emStrong.rDelimAst=r(o.emStrong.rDelimAst,"g").replace(/punct/g,o._punctuation).getRegex(),o.emStrong.rDelimUnd=r(o.emStrong.rDelimUnd,"g").replace(/punct/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._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])?)+(?![-_])/,o.autolink=r(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=r(o.tag).replace("comment",o._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,o._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=r(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=r(o.reflink).replace("label",o._label).replace("ref",i._label).getRegex(),o.nolink=r(o.nolink).replace("ref",i._label).getRegex(),o.reflinkSearch=r(o.reflinkSearch,"g").replace("reflink",o.reflink).replace("nolink",o.nolink).getRegex(),o.normal={...o},o.pedantic={...o.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:r(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:r(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()},o.gfm={...o.normal,escape:r(o.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]*?(?:(?=[\\t+" ".repeat(n.length));r;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(e=>!!(t=e.call({lexer:this},r,i))&&(r=r.substring(t.raw.length),i.push(t),!0))))if(t=this.tokenizer.space(r))r=r.substring(t.raw.length),1===t.raw.length&&0!!(t=e.call({lexer:this},r,s))&&(r=r.substring(t.raw.length),s.push(t),!0))))if(t=this.tokenizer.escape(r))r=r.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.tag(r))r=r.substring(t.raw.length),(l=s[s.length-1])&&"text"===t.type&&"text"===l.type?(l.raw+=t.raw,l.text+=t.text):s.push(t);else if(t=this.tokenizer.link(r))r=r.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.reflink(r,this.tokens.links))r=r.substring(t.raw.length),(l=s[s.length-1])&&"text"===t.type&&"text"===l.type?(l.raw+=t.raw,l.text+=t.text):s.push(t);else if(t=this.tokenizer.emStrong(r,a,o))r=r.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.codespan(r))r=r.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.br(r))r=r.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.del(r))r=r.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.autolink(r,Qi))r=r.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(r,Qi))){if(e=r,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const l=r.slice(1);let n;this.options.extensions.startInline.forEach(function(e){"number"==typeof(n=e.call({lexer:this},l))&&0<=n&&(t=Math.min(t,n))}),t<1/0&&0<=t&&(e=r.substring(0,t+1))}if(t=this.tokenizer.inlineText(e,Gi))r=r.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(o=t.raw.slice(-1)),i=!0,(l=s[s.length-1])&&"text"===l.type?(l.raw+=t.raw,l.text+=t.text):s.push(t);else if(r){const t="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else r=r.substring(t.raw.length),s.push(t);return s}}class Xi{constructor(e){this.options=e||$i}code(e,t,n){var 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?'
'+(n?e:d(e,!0))+"
\n":"
"+(n?e:d(e,!0))+"
\n"}blockquote(e){return`
${e}
`}html(e){return e}heading(e,t,n,r){return this.options.headerIds?`${e} `:`${e} `}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • `}checkbox(e){return" "}paragraph(e){return`

    ${e}

    `}table(e,t){return"\n\n"+e+"\n"+(t=t&&`${t}`)+"
    \n"}tablerow(e){return` ${e} `}tablecell(e,t){var n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+` `}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(null===(e=Pi(this.options.sanitize,this.options.baseUrl,e)))return n;let r='"}image(e,t,n){if(null===(e=Pi(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`${n}":">"}text(e){return e}}class Yi{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 eo{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))for(r=this.seen[e];r++,n=e+"-"+r,this.seen.hasOwnProperty(n););return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e){var t=1{"function"==typeof l&&(i=l,l=null);const o={...l},s=(n=(l={...de.defaults,...o}).silent,r=l.async,a=i,e=>{if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",n){const n="

    An error occurred:

    "+d(e.message+"",!0)+"
    ";return r?Promise.resolve(n):a?void a(null,n):n}if(r)return Promise.reject(e);if(!a)throw e;a(e)});var n,r,a,e;if(null==t)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if((e=l)&&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"),l.hooks&&(l.hooks.options=l),i){const o=l.highlight;let n;try{l.hooks&&(t=l.hooks.preprocess(t)),n=u(t,l)}catch(e){return s(e)}const c=function(t){let e;if(!t)try{l.walkTokens&&de.walkTokens(n,l.walkTokens),e=p(n,l),l.hooks&&(e=l.hooks.postprocess(e))}catch(e){t=e}return l.highlight=o,t?s(t):i(null,e)};if(!o||o.length<3)return c();if(delete l.highlight,!n.length)return c();let r=0;return de.walkTokens(n,function(n){"code"===n.type&&(r++,setTimeout(()=>{o(n.text,n.lang,function(e,t){if(e)return c(e);null!=t&&t!==n.text&&(n.text=t,n.escaped=!0),0===--r&&c()})},0))}),void(0===r&&c())}if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(t):t).then(e=>u(e,l)).then(e=>l.walkTokens?Promise.all(de.walkTokens(e,l.walkTokens)).then(()=>e):e).then(e=>p(e,l)).then(e=>l.hooks?l.hooks.postprocess(e):e).catch(s);try{l.hooks&&(t=l.hooks.preprocess(t));const i=u(t,l);l.walkTokens&&de.walkTokens(i,l.walkTokens);let e=p(i,l);return e=l.hooks?l.hooks.postprocess(e):e}catch(e){return s(e)}}}function de(e,t,n){return ro(Ji.lex,to.parse)(e,t,n)}de.options=de.setOptions=function(e){e=de.defaults={...de.defaults,...e};return $i=e,de},de.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},de.defaults=$i,de.use=function(){const c=de.defaults.extensions||{renderers:{},childTokens:{}};for(var e=arguments.length,t=new Array(e),n=0;n{const i={...l};if(i.async=de.defaults.async||i.async||!1,l.extensions&&(l.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if(l.renderer){const i=c.renderers[l.name];c.renderers[l.name]=i?function(){for(var e=arguments.length,t=new Array(e),n=0;n{if(de.defaults.async)return Promise.resolve(l.hooks[i].call(c,e)).then(e=>a.call(c,e));e=l.hooks[i].call(c,e);return a.call(c,e)}:c[i]=function(){for(var e=arguments.length,t=new Array(e),n=0;nn[t]?`${t}`:e)}const io=/\$.*?\$/,oo=/^\$(.*?)\$/,so=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ao=e=>e.dataset.path||e.getAttribute("id"),co=e=>{let{serverURL:l,path:i=window.location.pathname,selector:t=".waline-comment-count",lang:o=navigator.language}=e;const s=new AbortController,a=document.querySelectorAll(t);return a.length&&(()=>{let{serverURL:e,lang:t,paths:n,signal:r}={serverURL:N(l),paths:Array.from(a).map(e=>V(e.dataset.path||e.getAttribute("id")||i)),lang:o,signal:s.signal};return fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=`+t,{signal:r}).then(e=>e.json()).then(e=>Array.isArray(e)?e:[e])})().then(n=>{a.forEach((e,t)=>{e.innerText=n[t].toString()})}).catch(xi),s.abort.bind(s)},uo=e=>{e=e.size;return p("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[p("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"}),p("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"})])},po=()=>p("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},p("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"})),ho=()=>p("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},p("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"})),fo=()=>p("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[p("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"}),p("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"})]),go=e=>{var{active:e=!1}=e;return p("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[p("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"})])},vo=()=>p("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[p("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"}),p("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"})]),mo=()=>p("svg",{width:"16",height:"16",ariaHidden:"true"},p("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"})),yo=()=>p("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},p("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"})),wo=()=>p("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},p("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),ko=()=>p("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},p("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"})),bo=e=>{var{size:e=100}=e;return p("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},p("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},p("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},xo=()=>p("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[p("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"}),p("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"})]);e.commentCount=co;let _o=null;const Co=()=>_o=_o||wi("WALINE_LIKE",[]);let So=null;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},$o={},k={},v={},Ao=n&&n.__awaiter||function(e,o,s,a){return new(s=s||Promise)(function(n,t){function r(e){try{i(a.next(e))}catch(e){t(e)}}function l(e){try{i(a.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,l)}i((a=a.apply(e,o||[])).next())})},Ro=n&&n.__generator||function(r,l){var i,o,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&t[0]?o.return:t[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,t[1])).done)return s;switch(o=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,o=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!((s=0<(s=a.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){a=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]Oo=Oo??wi("WALINE_USER",{}),Mo={key:0,class:"wl-reaction"},Po=["textContent"],Fo={class:"wl-reaction-list"},Vo=["onClick"],No={class:"wl-reaction-img"},Do=["src","alt"],Ho=["textContent"],Bo=["textContent"];var m=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},Wo=m(lr({__name:"ArticleReaction",setup(e,t){let n=t["expose"];n();const i=So=So??wi("WALINE_REACTION",{}),o=Rr("config"),s=te(-1),a=te([]),r=pe(()=>o.value.locale),c=pe(()=>0{const{reaction:e,path:n}=o.value;return e.map((e,t)=>({icon:e,desc:r.value["reaction"+t],active:i.value[n]===t}))});let u;return sr(()=>{er(()=>[o.value.serverURL,o.value.path],()=>{(async()=>{if(c.value){const{serverURL:e,lang:t,path:n,reaction:r}=o.value,l=new AbortController,i=(u=l.abort.bind(l),await x({serverURL:e,lang:t,paths:[n],type:r.map((e,t)=>"reaction"+t),signal:l.signal}));Array.isArray(i)||"number"==typeof i||(a.value=r.map((e,t)=>i["reaction"+t]))}})()},{immediate:!0})}),cr(()=>u?.()),(e,t)=>l.value.length?(oe(),se("div",Mo,[ae("div",{class:"wl-reaction-title",textContent:J(r.value.reactionTitle)},null,8,Po),ae("ul",Fo,[(oe(!0),se(ie,null,hr(l.value,(e,t)=>{var{active:e,icon:n,desc:r}=e;return oe(),se("li",{key:t,class:Q(["wl-reaction-item",{active:e}]),onClick:e=>(async e=>{var t,n,r,l;-1===s.value&&({serverURL:t,lang:n,path:r}=o.value,l=i.value[r],s.value=e,void 0!==l&&(await _({serverURL:t,lang:n,path:r,type:"reaction"+l,action:"desc"}),a.value[l]=Math.max(a.value[l]-1,0)),l!==e&&(await _({serverURL:t,lang:n,path:r,type:"reaction"+e}),a.value[e]=(a.value[e]||0)+1),l===e?delete i.value[r]:i.value[r]=e,s.value=-1)})(t)},[ae("div",No,[ae("img",{src:n,alt:r},null,8,Do),s.value===t?(oe(),Jr(ne(bo),{key:0,class:"wl-reaction-loading"})):(oe(),se("div",{key:1,class:"wl-reaction-votes",textContent:J(a.value[t]||0)},null,8,Ho))]),ae("div",{class:"wl-reaction-text",textContent:J(r)},null,8,Bo)],10,Vo)}),128))])])):ue("v-if",!0)}}),[["__file","ArticleReaction.vue"]]),qo=new Map;function Zo(e){e=qo.get(e);e&&e.destroy()}function Ko(e){e=qo.get(e);e&&e.update()}var t=null,Go=("undefined"==typeof window?((t=function(e){return e}).destroy=function(e){return e},t.update=function(e){return e}):((t=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){function l(e){var t,n=e.restoreTextAlign,n=void 0===n?null:n,e=e.testForHeightReduction,e=void 0===e||e,r=s.overflowY;0===i.scrollHeight||("vertical"===s.resize?i.style.resize="none":"both"===s.resize&&(i.style.resize="horizontal"),e&&(t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],e=e[1];t.style.scrollBehavior="auto",t.scrollTop=e,t.style.scrollBehavior=null})}}(i),i.style.height=""),e="content-box"===s.boxSizing?i.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):i.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),"none"!==s.maxHeight&&e>parseFloat(s.maxHeight)?("hidden"===s.overflowY&&(i.style.overflow="scroll"),e=parseFloat(s.maxHeight)):"hidden"!==s.overflowY&&(i.style.overflow="hidden"),i.style.height=e+"px",n&&(i.style.textAlign=n),t&&t(),o!==e&&(i.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),o=e),r===s.overflow||n)||(t=s.textAlign,"hidden"===s.overflow&&(i.style.textAlign="start"===t?"end":"start"),l({restoreTextAlign:t,testForHeightReduction:!0}))}function n(){l({testForHeightReduction:!0,restoreTextAlign:null})}var i,t,o,s,r,a;(i=e)&&i.nodeName&&"TEXTAREA"===i.nodeName&&!qo.has(i)&&(o=null,s=window.getComputedStyle(i),t=i.value,r=function(){l({testForHeightReduction:""===t||!i.value.startsWith(t),restoreTextAlign:null}),t=i.value},a=function(t){i.removeEventListener("autosize:destroy",a),i.removeEventListener("autosize:update",n),i.removeEventListener("input",r),window.removeEventListener("resize",n),Object.keys(t).forEach(function(e){return i.style[e]=t[e]}),qo.delete(i)}.bind(i,{height:i.style.height,resize:i.style.resize,textAlign:i.style.textAlign,overflowY:i.style.overflowY,overflowX:i.style.overflowX,wordWrap:i.style.wordWrap}),i.addEventListener("autosize:destroy",a),i.addEventListener("autosize:update",n),i.addEventListener("input",r),window.addEventListener("resize",n),i.style.overflowX="hidden",i.style.wordWrap="break-word",qo.set(i,{destroy:a,update:n}),n())}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Zo),e},t.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ko),e}),t);const Qo=["data-index"],Jo=["src","title","onClick"];var Xo=m(lr({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,t){let n=t["expose"];const r=e;n();let l=null;async function i(){var e=0[])),e=window.scrollY,await u(0),window.scrollTo({top:e}))}const o=te(null),s=te({}),a=te([]),c=()=>{var e=Math.floor((o.value.getBoundingClientRect().width+r.gap)/(r.columnWidth+r.gap));return 0{var t;e>=r.items.length||(await On(),t=Array.from(o.value?.children||[]).reduce((e,t)=>t.getBoundingClientRect().height{s.value[e.target.src]=!0};return sr(()=>{i(!0),(l=new ResizeObserver(()=>{i()})).observe(o.value),Yn(()=>[r.items],()=>{s.value={},i(!0)}),Yn(()=>[r.columnWidth,r.gap],()=>{i()})}),ar(()=>l.unobserve(o.value)),(n,e)=>(oe(),se("div",{ref_key:"wall",ref:o,class:"wl-gallery",style:Ze({gap:n.gap+"px"})},[(oe(!0),se(ie,null,hr(a.value,(e,t)=>(oe(),se("div",{key:t,class:"wl-gallery-column","data-index":t,style:Ze({gap:n.gap+"px"})},[(oe(!0),se(ie,null,hr(e,t=>(oe(),se(ie,{key:t},[s.value[n.items[t].src]?ue("v-if",!0):(oe(),Jr(ne(bo),{key:0,size:36,style:{margin:"20px auto"}})),ae("img",{class:"wl-gallery-item",src:n.items[t].src,title:n.items[t].title,loading:"lazy",onLoad:p,onClick:e=>n.$emit("insert",`![](${n.items[t].src})`)},null,40,Jo)],64))),128))],12,Qo))),128))],4))}}),[["__file","ImageWall.vue"]]);const Yo={class:"wl-comment"},es={key:0,class:"wl-login-info"},ts={class:"wl-avatar"},ns=["title"],rs=["title"],ls=["src"],is=["title","textContent"],os={class:"wl-panel"},ss=["for","textContent"],as=["id","onUpdate:modelValue","name","type"],cs=["placeholder"],us={class:"wl-preview"},ps=ae("hr",null,null,-1),ds=["innerHTML"],hs={class:"wl-footer"},fs={class:"wl-actions"},gs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},vs=["title"],ms=["title"],ys=["title"],ws=["title"],ks={class:"wl-info"},bs=ae("div",{class:"wl-captcha-container"},null,-1),xs={class:"wl-text-number"},_s={key:0},Cs=["textContent"],Ss=["textContent"],$s=["disabled"],As=["placeholder"],Rs={key:1,class:"wl-loading"},Es={key:0,class:"wl-tab-wrapper"},zs=["title","onClick"],Ls=["src","alt"],Is={key:0,class:"wl-tabs"},Ts=["onClick"],js=["src","alt","title"],Os=["title"];var Us=m(lr({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(t,M){let{expose:P,emit:p}=M;const d=t,h=(P(),Rr("config")),f=wi("WALINE_COMMENT_BOX_EDITOR",""),g=wi("WALINE_USER_META",{nick:"",mail:"",link:""}),v=Uo(),m=te({}),y=te(null),n=te(null),r=te(null),l=te(null),i=te(null),o=te(null),s=te(null),w=te({tabs:[],map:{}}),a=te(0),c=te(!1),u=te(!1),k=te(!1),b=te(""),x=te(0),_=on({loading:!0,list:[]}),C=te(0),S=te(!1),$=te(""),A=te(!1),R=te(!1),E=pe(()=>h.value.locale),z=pe(()=>Boolean(v.value?.token)),L=pe(()=>!1!==h.value.imageUploader),I=e=>{const t=y.value,n=t.selectionStart,r=t.selectionEnd||0,l=t.scrollTop;f.value=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},F=e=>{var t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&j()},T=t=>{const n=`![${h.value.locale.uploading} ${t.name}]()`;return I(n),A.value=!0,Promise.resolve().then(()=>h.value.imageUploader(t)).then(e=>{f.value=f.value.replace(n,`\r ![${t.name}](${e})`)}).catch(e=>{alert(e.message),f.value=f.value.replace(n,"")}).then(()=>{A.value=!1})},V=e=>{var t;e.dataTransfer?.items&&(t=Si(e.dataTransfer.items))&&L.value&&(T(t),e.preventDefault())},N=e=>{e.clipboardData&&(e=Si(e.clipboardData.items))&&L.value&&T(e)},D=()=>{const e=n.value;e.files&&L.value&&T(e.files[0]).then(()=>{e.value=""})},j=async()=>{const{serverURL:e,lang:t,login:i,wordLimit:n,requiredMeta:r,recaptchaV3Key:l,turnstileKey:o}=h.value,s=await(async()=>{if(!navigator)return"";const e=navigator["userAgentData"];let t=navigator.userAgent;if(!e||"Windows"!==e.platform)return t;const n=(await e.getHighEntropyValues(["platformVersion"]))["platformVersion"];return t=n&&13<=parseInt(n.split(".")[0])?t.replace("Windows NT 10.0","Windows NT 11.0"):t})(),a={comment:$.value,nick:g.value.nick,mail:g.value.mail,link:g.value.link,url:h.value.path,ua:s};if(v.value?.token)a.nick=v.value.display_name,a.mail=v.value.email,a.link=v.value.url;else{if("force"===i)return;if(-1{const n=jo[e]??(jo[e]=$o.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:t=>n.then(e=>e.execute(t))}})(l).execute("social")),o&&(a.turnstile=(u=o,await(async t=>{const e=function(o,e,t){let s=1{const l=e=>(v.value=e,t(e),e);if(f){let e=!1,n=f.querySelector(`script[src="${ri(o)}"]`);n?n.hasAttribute("data-loaded")&&l(n):((n=f.createElement("script")).type=a,n.async=c,n.src=ri(o),h&&(n.defer=h),u&&(n.crossOrigin=u),d&&(n.noModule=d),p&&(n.referrerPolicy=p),Object.entries(g).forEach(e=>{var[e,t]=e;return null==n?void 0:n.setAttribute(e,t)}),e=!0),n.addEventListener("error",e=>r(e)),n.addEventListener("abort",e=>r(e)),n.addEventListener("load",()=>{n.setAttribute("data-loaded","true"),s(n),l(n)}),e&&(n=f.head.appendChild(n)),i||l(n)}else t(!1)}));var i}var y,w=()=>{var e;f&&(m=null,v.value&&(v.value=null),(e=f.querySelector(`script[src="${ri(o)}"]`))&&f.head.removeChild(e))};return r&&!l&&ui(i),l||(y=w,pl()&&cr(y)),{scriptTag:v,load:i,unload:w}}("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1})["load"],n=(await e(),window?.turnstile);return new Promise(e=>{n?.ready(()=>{n?.render(".wl-captcha-container",{sitekey:u,action:t,size:"compact",callback:e})})})})("social")));const i={serverURL:e,lang:t,token:v.value?.token,comment:a},h=await(d.edit?he({objectId:d.edit.objectId,...i}):(()=>{var{serverURL:e,lang:t,token:n,comment:r}=i;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())})());if(A.value=!1,h.errmsg)return alert(h.errmsg);p("submit",h.data),f.value="",b.value="",d.replyId&&p("cancelReply"),d.edit?.objectId&&p("cancelEdit")}catch(e){A.value=!1,alert(e.message)}}else y.value?.focus()},H=e=>{e.preventDefault();var{lang:i,serverURL:o}=h.value;(()=>{var{lang:e,serverURL:t}={serverURL:o,lang:i};const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,l=window.open(t+"/ui/login?lng="+encodeURIComponent(e),"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return l?.postMessage({type:"TOKEN",data:null},"*"),new Promise(t=>{const n=e=>{e=e.data;e&&"object"==typeof e&&"userInfo"===e.type&&e.data.token&&(l?.close(),window.removeEventListener("message",n),t(e.data))};window.addEventListener("message",n)})})().then(e=>{((v.value=e).remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e)),p("log")})},B=()=>{v.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),p("log")},O=e=>{e.preventDefault();const{lang:t,serverURL:n}=h.value,r=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2,i=new URLSearchParams({lng:t,token:v.value.token}),o=window.open(n+"/ui/profile?"+i.toString(),"_blank",`width=800,height=800,left=${r},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);o?.postMessage({type:"TOKEN",data:v.value.token},"*")},e=e=>{r.value?.contains(e.target)||l.value?.contains(e.target)||(c.value=!1),i.value?.contains(e.target)||o.value?.contains(e.target)||(u.value=!1)},U=async e=>{const{scrollTop:t,clientHeight:n,scrollHeight:r}=e.target,l=(n+t)/r,i=h.value.search,o=s.value?.value||"";l<.9||_.loading||R.value||(_.loading=!0,(i.more&&_.list.length?await i.more(o,_.list.length):await i.search(o)).length?_.list=[..._.list,...i.more&&_.list.length?await i.more(o,_.list.length):await i.search(o)]:R.value=!0,_.loading=!1,setTimeout(()=>{e.target.scrollTop=t},50))},W=function(e,t,n){return ai(function(e,t){let i,o,s=1{clearTimeout(e),a(),a=si};return n=>{const r=ri(e),l=ri(s.maxWait);return i&&c(i),r<=0||void 0!==l&&l<=0?(o&&(c(o),o=null),Promise.resolve(n())):new Promise((e,t)=>{a=s.rejectOnCancel?t:e,l&&!o&&(o=setTimeout(()=>{i&&c(i),o=null,e(n())},l)),i=setTimeout(()=>{o&&c(o),o=null,e(n())},r)})}}(1{_.list=[],R.value=!1,U(e)},300),q=(Yn([h,x],e=>{var[e,t]=e,e=e["wordLimit"];e?te[1]?(C.value=e[1],S.value=!1):(C.value=e[1],S.value=!0):(C.value=0,S.value=!0)},{immediate:!0}),e=>{e=e.data;e&&"profile"===e.type&&(v.value={...v.value,...e.data},[localStorage,sessionStorage].filter(e=>e.getItem("WALINE_USER")).forEach(e=>e.setItem("WALINE_USER",JSON.stringify(v))))});return sr(()=>{document.body.addEventListener("click",e),window.addEventListener("message",q),d.edit?.objectId&&(f.value=d.edit.orig),Yn(u,async e=>{if(e){const t=h.value.search;s.value&&(s.value.value=""),_.loading=!0,_.list=t.default?await t.default():await t.search(""),_.loading=!1}}),Yn(()=>f.value,e=>{var t,{highlighter:i,texRenderer:o}=h.value;$.value=e,b.value=(e=>{var t,{emojiMap:n,highlighter:r,texRenderer:l}={emojiMap:w.value.map,highlighter:i,texRenderer:o};if(de.setOptions({highlight:r||void 0,breaks:!0,smartLists:!0,smartypants:!0}),l){t=l;const e=[{name:"blockMath",level:"block",tokenizer(e){e=so.exec(e);if(null!==e)return{type:"html",raw:e[0],text:t(!0,e[1])}}},{name:"inlineMath",level:"inline",start(e){var t=e.search(io);return-1!==t?t:e.length},tokenizer(e){e=oo.exec(e);if(null!==e)return{type:"html",raw:e[0],text:t(!1,e[1])}}}];de.use({extensions:e})}return de.parse(lo(e,n))})(e),x.value=((t=e).match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu)?.reduce((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length),0)||0)+(t.match(/[\u4E00-\u9FD5]/gu)?.length||0),e?Go(y.value):Go.destroy(y.value)},{immediate:!0}),Yn(()=>h.value.emoji,e=>{return Promise.all(e.map(e=>{if("string"!=typeof e)return Promise.resolve(e);{var t=fe(e);const n=wi("WALINE_EMOJI",{}),r=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(t));if(r){const r=n.value[t];if(r)return Promise.resolve(r)}return fetch(t+"/info.json").then(e=>e.json()).then(e=>{e={folder:t,...e};return r&&(n.value[t]=e),e})}})).then(e=>{const s={tabs:[],map:{}};return e.forEach(e=>{const{name:t,folder:n,icon:r,prefix:l,type:i,items:o}=e;s.tabs.push({name:t,icon:bi(r,n,l,i),items:o.map(e=>{var t=""+(l||"")+e;return s.map[t]=bi(e,n,l,i),t})})}),s}).then(e=>{w.value=e})},{immediate:!0})}),cr(()=>{document.body.removeEventListener("click",e),window.removeEventListener("message",q)}),(t,e)=>(oe(),se("div",Yo,["disable"!==ne(h).login&&z.value&&!t.edit?.objectId?(oe(),se("div",es,[ae("div",ts,[ae("button",{type:"submit",class:"wl-logout-btn",title:E.value.logout,onClick:B},[ce(ne(uo),{size:14})],8,ns),ae("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:E.value.profile,onClick:O},[ae("img",{src:ne(v).avatar,alt:"avatar"},null,8,ls)],8,rs)]),ae("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:E.value.profile,onClick:O,textContent:J(ne(v).display_name)},null,8,is)])):ue("v-if",!0),ae("div",os,["force"!==ne(h).login&&ne(h).meta.length&&!z.value?(oe(),se("div",{key:0,class:Q(["wl-header","item"+ne(h).meta.length])},[(oe(!0),se(ie,null,hr(ne(h).meta,t=>(oe(),se("div",{key:t,class:"wl-header-item"},[ae("label",{for:"wl-"+t,textContent:J(E.value[t]+(ne(h).requiredMeta.includes(t)||!ne(h).requiredMeta.length?"":`(${E.value.optional})`))},null,8,ss),nr(ae("input",{id:"wl-"+t,ref_for:!0,ref:e=>{e&&(m.value[t]=e)},"onUpdate:modelValue":e=>ne(g)[t]=e,class:Q(["wl-input","wl-"+t]),name:t,type:"mail"===t?"email":"text"},null,10,as),[[Ql,ne(g)[t]]])]))),128))],2)):ue("v-if",!0),nr(ae("textarea",{id:"wl-edit",ref_key:"editorRef",ref:y,"onUpdate:modelValue":e[0]||(e[0]=e=>ee(f)?f.value=e:null),class:"wl-editor",placeholder:t.replyUser?"@"+t.replyUser:E.value.placeholder,onKeydown:F,onDrop:V,onPaste:N},null,40,cs),[[Dl,ne(f)]]),nr(ae("div",us,[ps,ae("h4",null,J(E.value.preview)+":",1),ae("div",{class:"wl-content",innerHTML:b.value},null,8,ds)],512),[[Xl,k.value]]),ae("div",hs,[ae("div",fs,[ae("a",gs,[ce(ne(mo))]),nr(ae("button",{ref_key:"emojiButtonRef",ref:r,type:"button",class:Q(["wl-action",{active:c.value}]),title:E.value.emoji,onClick:e[1]||(e[1]=e=>c.value=!c.value)},[ce(ne(ho))],10,vs),[[Xl,w.value.tabs.length]]),ne(h).search?(oe(),se("button",{key:0,ref_key:"gifButtonRef",ref:i,type:"button",class:Q(["wl-action",{active:u.value}]),title:E.value.gif,onClick:e[2]||(e[2]=e=>u.value=!u.value)},[ce(ne(xo))],10,ms)):ue("v-if",!0),ae("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:n,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:D},null,544),L.value?(oe(),se("label",{key:1,for:"wl-image-upload",class:"wl-action",title:E.value.uploadImage},[ce(ne(fo))],8,ys)):ue("v-if",!0),ae("button",{type:"button",class:Q(["wl-action",{active:k.value}]),title:E.value.preview,onClick:e[3]||(e[3]=e=>k.value=!k.value)},[ce(ne(vo))],10,ws)]),ae("div",ks,[bs,ae("div",xs,[ll(J(x.value)+" ",1),ne(h).wordLimit?(oe(),se("span",_s,[ll("  /  "),ae("span",{class:Q({illegal:!S.value}),textContent:J(C.value)},null,10,Cs)])):ue("v-if",!0),ll("  "+J(E.value.word),1)]),"disable"===ne(h).login||z.value?ue("v-if",!0):(oe(),se("button",{key:0,type:"button",class:"wl-btn",onClick:H,textContent:J(E.value.login)},null,8,Ss)),"force"!==ne(h).login||z.value?(oe(),se("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:A.value,onClick:j},[A.value?(oe(),Jr(ne(bo),{key:0,size:16})):(oe(),se(ie,{key:1},[ll(J(E.value.submit),1)],64))],8,$s)):ue("v-if",!0)]),ae("div",{ref_key:"gifPopupRef",ref:o,class:Q(["wl-gif-popup",{display:u.value}])},[ae("input",{ref_key:"gifSearchInputRef",ref:s,type:"text",placeholder:E.value.gifSearchPlaceholder,onInput:e[4]||(e[4]=function(){return ne(W)&&ne(W)(...arguments)})},null,40,As),_.list.length?(oe(),Jr(Xo,{key:0,items:_.list,"column-width":200,gap:6,onInsert:e[5]||(e[5]=e=>I(e)),onScroll:U},null,8,["items"])):ue("v-if",!0),_.loading?(oe(),se("div",Rs,[ce(ne(bo),{size:30})])):ue("v-if",!0)],2),ae("div",{ref_key:"emojiPopupRef",ref:l,class:Q(["wl-emoji-popup",{display:c.value}])},[(oe(!0),se(ie,null,hr(w.value.tabs,(e,t)=>(oe(),se(ie,{key:e.name},[t===a.value?(oe(),se("div",Es,[(oe(!0),se(ie,null,hr(e.items,t=>(oe(),se("button",{key:t,type:"button",title:t,onClick:e=>I(`:${t}:`)},[c.value?(oe(),se("img",{key:0,class:"wl-emoji",src:w.value.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ls)):ue("v-if",!0)],8,zs))),128))])):ue("v-if",!0)],64))),128)),1(oe(),se("button",{key:e.name,type:"button",class:Q(["wl-tab",{active:a.value===t}]),onClick:e=>a.value=t},[ae("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,js)],10,Ts))),128))])):ue("v-if",!0)],2)])]),t.replyId||t.edit?.objectId?(oe(),se("button",{key:1,type:"button",class:"wl-close",title:E.value.cancelReply,onClick:e[6]||(e[6]=e=>t.$emit(t.replyId?"cancelReply":"cancelEdit"))},[ce(ne(uo),{size:24})],8,Os)):ue("v-if",!0)]))}}),[["__file","CommentBox.vue"]]);const Ms=["id"],Ps={class:"wl-user","aria-hidden":"true"},Fs=["src"],Vs={class:"wl-card"},Ns={class:"wl-head"},Ds=["href"],Hs={key:1,class:"wl-nick"},Bs=["textContent"],Ws=["textContent"],qs=["textContent"],Zs=["textContent"],Ks=["textContent"],Gs={class:"wl-comment-actions"},Qs=["title"],Js=["textContent"],Xs=["title"],Ys={class:"wl-meta","aria-hidden":"true"},ea=["data-value","textContent"],ta=["data-value","textContent"],na=["data-value","textContent"],ra=["innerHTML"],la={key:1,class:"wl-admin-actions"},ia={class:"wl-comment-status"},oa=["disabled","onClick","textContent"],sa={key:3,class:"wl-quote"};var aa=m(lr({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e){const s=e,l=["approved","waiting","spam"],t=Rr("config"),n=Co(),a=function(e){const{controls:t=!1,interval:n="requestAnimationFrame"}=0r.value=new Date,i="requestAnimationFrame"===n?function(t,e){var n=1{a.value&&li&&p()})),ni(u),{isActive:a,pause:u,resume:p}}(l,n,{immediate:!0});return t?{now:r,...i}:r}(),r=Uo(),c=pe(()=>t.value.locale),i=pe(()=>{var e=s.comment["link"];return e?C(e)?e:"https://"+e:""}),o=pe(()=>n.value.includes(s.comment.objectId)),u=pe(()=>{{var e=s.comment.insertedAt,t=a.value,n=c.value,r;if(!e)return"";const l="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-l.getTime(),o=Math.floor(i/864e5);if(0!==o)return o<0?n.now:o<8?o+" "+n.days:(e=l,t=S(e.getDate(),2),r=S(e.getMonth()+1,2),S(e.getFullYear(),2)+`-${r}-`+t);{const e=i%864e5,t=Math.floor(e/36e5);if(0!==t)return t+" "+n.hours;{const t=e%36e5,l=Math.floor(t/6e4);if(0!==l)return l+" "+n.minutes;{const e=t%6e4;return Math.round(e/1e3)+" "+n.seconds}}}}}),p=pe(()=>"administrator"===r.value.type),d=pe(()=>s.comment.user_id&&r.value.objectId===s.comment.user_id),h=pe(()=>s.comment.objectId===s.reply?.objectId),f=pe(()=>s.comment.objectId===s.edit?.objectId);return(n,t)=>{e="CommentCard";const r=function(e,t,n,r){var l=3n.$emit("edit",n.comment))},[ce(ne(wo))])):ue("v-if",!0),p.value||d.value?(oe(),se("button",{key:1,type:"button",class:"wl-delete",onClick:t[1]||(t[1]=e=>n.$emit("delete",n.comment))},[ce(ne(po))])):ue("v-if",!0),ae("button",{type:"button",class:"wl-like",title:o.value?c.value.cancelLike:c.value.like,onClick:t[2]||(t[2]=e=>n.$emit("like",n.comment))},[ce(ne(go),{active:o.value},null,8,["active"]),"like"in n.comment?(oe(),se("span",{key:0,textContent:J(n.comment.like)},null,8,Js)):ue("v-if",!0)],8,Qs),ae("button",{type:"button",class:Q(["wl-reply",{active:h.value}]),title:h.value?c.value.cancelReply:c.value.reply,onClick:t[3]||(t[3]=e=>n.$emit("reply",h.value?null:n.comment))},[ce(ne(yo))],10,Xs)])]),ae("div",Ys,[n.comment.addr?(oe(),se("span",{key:0,class:"wl-addr","data-value":n.comment.addr,textContent:J(n.comment.addr)},null,8,ea)):ue("v-if",!0),n.comment.browser?(oe(),se("span",{key:1,class:"wl-browser","data-value":n.comment.browser,textContent:J(n.comment.browser)},null,8,ta)):ue("v-if",!0),n.comment.os?(oe(),se("span",{key:2,class:"wl-os","data-value":n.comment.os,textContent:J(n.comment.os)},null,8,na)):ue("v-if",!0)]),f.value?ue("v-if",!0):(oe(),se("div",{key:0,class:"wl-content",innerHTML:n.comment.comment},null,8,ra)),p.value&&!f.value?(oe(),se("div",la,[ae("span",ia,[(oe(),se(ie,null,hr(l,t=>ae("button",{key:t,type:"submit",class:Q("wl-btn wl-"+t),disabled:n.comment.status===t,onClick:e=>n.$emit("status",{status:t,comment:n.comment}),textContent:J(c.value[t])},null,10,oa)),64))]),p.value&&!n.comment.rid?(oe(),se("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=e=>n.$emit("sticky",n.comment))},J(n.comment.sticky?c.value.unsticky:c.value.sticky),1)):ue("v-if",!0)])):ue("v-if",!0),h.value||f.value?(oe(),se("div",{key:2,class:Q({"wl-reply-wrapper":h.value,"wl-edit-wrapper":f.value})},[ce(Us,{edit:n.edit,"reply-id":n.reply?.objectId,"reply-user":n.comment.nick,"root-id":n.rootId,onLog:t[5]||(t[5]=e=>n.$emit("log")),onCancelReply:t[6]||(t[6]=e=>n.$emit("reply",null)),onCancelEdit:t[7]||(t[7]=e=>n.$emit("edit",null)),onSubmit:t[8]||(t[8]=e=>n.$emit("submit",e))},null,8,["edit","reply-id","reply-user","root-id"])],2)):ue("v-if",!0),n.comment.children?(oe(),se("div",sa,[(oe(!0),se(ie,null,hr(n.comment.children,e=>(oe(),Jr(r,{key:e.objectId,comment:e,reply:n.reply,edit:n.edit,"root-id":n.rootId,onLog:t[9]||(t[9]=e=>n.$emit("log")),onDelete:t[10]||(t[10]=e=>n.$emit("delete",e)),onEdit:t[11]||(t[11]=e=>n.$emit("edit",e)),onLike:t[12]||(t[12]=e=>n.$emit("like",e)),onReply:t[13]||(t[13]=e=>n.$emit("reply",e)),onStatus:t[14]||(t[14]=e=>n.$emit("status",e)),onSticky:t[15]||(t[15]=e=>n.$emit("sticky",e)),onSubmit:t[16]||(t[16]=e=>n.$emit("submit",e))},null,8,["comment","reply","edit","root-id"]))),128))])):ue("v-if",!0)])],8,Ms)}}}),[["__file","CommentCard.vue"]]);const ca={"data-waline":""},ua={class:"wl-meta-head"},pa={class:"wl-count"},da=["textContent"],ha={class:"wl-sort"},fa=["onClick"],ga={class:"wl-cards"},va={key:1,class:"wl-operation"},ma=["textContent"],ya={key:0,class:"wl-loading"},wa=["textContent"],ka={key:2,class:"wl-operation"},ba=["textContent"],xa={key:3,class:"wl-power"},_a=ae("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);e.version="2.15.8";var Ca=m(lr({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(t){const x=t,f={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},n=Object.keys(f),g=Uo(),i=Co(),r=te("loading"),l=te(0),o=te(1),s=te(0),v=pe(()=>{{var b=x;let{serverURL:e,path:t=location.pathname,lang:n="undefined"==typeof navigator?"en-US":navigator.language,locale:r,emoji:l=L,meta:i=["nick","mail","link"],requiredMeta:o=[],dark:s=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:p,texRenderer:d,copyright:h=!0,login:f="enable",search:g,reaction:v,recaptchaV3Key:m="",turnstileKey:y="",commentSorting:w="latest",...k}=b;return{serverURL:N(e),path:V(t),locale:{...P[n]||P[I],..."object"==typeof r?r:{}},wordLimit:(b=c,Array.isArray(b)?b:!!b&&[0,b]),meta:z(i),requiredMeta:z(o),imageUploader:D(u,j),highlighter:D(p,M),texRenderer:D(d,O),lang:Object.keys(P).includes(n)?n:"en-US",dark:s,emoji:"boolean"==typeof l?l?L:[]:l,pageSize:a,login:f,copyright:h,search:!1!==g&&("object"==typeof g?g:U(n)),recaptchaV3Key:m,turnstileKey:y,reaction:Array.isArray(v)?v:!0===v?T:[],commentSorting:w,...k}}}),m=te(v.value.commentSorting),a=te([]),c=te(null),u=te(null),e=pe(()=>{return"string"==typeof(e=v.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${ge}}`:""+e+ge:!0===e?":root"+ge:"";var e}),p=pe(()=>v.value.locale);let y;!function(e,t){let n=1{};i&&!o&&ui(()=>{if(l){const t=l.getElementById(s)||l.createElement("style");t.isConnected||(t.id=s,n.media&&(t.media=n.media),l.head.appendChild(t)),r.value||(c=Yn(a,e=>{t.textContent=e},{immediate:!0}),r.value=!0)}}),o||ni(()=>{l&&r.value&&(c(),l.head.removeChild(l.getElementById(s)),r.value=!1)}),sn(r)}(e,{id:"waline-darkmode"});const d=c=>{const{serverURL:u,path:p,pageSize:d}=v.value,h=new AbortController;r.value="loading",y?.(),(()=>{var{serverURL:e,lang:t,path:n,page:r,pageSize:l,sortBy:i,signal:o,token:s}={serverURL:u,lang:v.value.lang,path:p,pageSize:d,sortBy:f[m.value],page:c,signal:h.signal,token:g.value?.token};const a={};return s&&(a.Authorization="Bearer "+s),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}&sortBy=`+i,{signal:o,headers:a}).then(e=>e.json()).then(e=>F(e,"Get comment data"))})().then(e=>{r.value="success",l.value=e.count,a.value.push(...e.data),o.value=c,s.value=e.totalPages}).catch(e=>{"AbortError"!==e.name&&(console.error(e.message),r.value="error")}),y=h.abort.bind(h)},h=()=>d(o.value+1),w=()=>{l.value=0,a.value=[],d(1)},k=e=>{c.value=e},b=e=>{u.value=e},_=t=>{if(u.value)u.value.comment=t.comment,u.value.orig=t.orig;else if(t.rid){const e=a.value.find(e=>{e=e.objectId;return e===t.rid});e&&(Array.isArray(e.children)||(e.children=[]),e.children.push(t))}else a.value.unshift(t),l.value+=1},C=async e=>{let{comment:t,status:n}=e;var r;t.status!==n&&({serverURL:e,lang:r}=v.value,await he({serverURL:e,lang:r,token:g.value?.token,objectId:t.objectId,comment:{status:n}}),t.status=n)},S=async e=>{var t,n;e.rid||({serverURL:t,lang:n}=v.value,await he({serverURL:t,lang:n,token:g.value?.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky)},$=async e=>{let l=e["objectId"];var i,o;confirm("Are you sure you want to delete this comment?")&&({serverURL:i,lang:o}=v.value,await(()=>{var{serverURL:e,lang:t,token:n,objectId:r}={serverURL:i,lang:o,token:g.value?.token,objectId:l};return fetch(e+`/comment/${r}?lang=`+t,{method:"DELETE",headers:{Authorization:"Bearer "+n}}).then(e=>e.json()).then(e=>F(e,"Delete comment"))})(),a.value.some((t,r)=>t.objectId===l?(a.value=a.value.filter((e,t)=>t!==r),!0):t.children.some((e,n)=>e.objectId===l&&(a.value[r].children=t.children.filter((e,t)=>t!==n),!0))))},A=async e=>{const{serverURL:t,lang:n}=v.value,r=e["objectId"],l=i.value.includes(r);await he({serverURL:t,lang:n,objectId:r,token:g.value?.token,comment:{like:!l}}),l?i.value=i.value.filter(e=>e!==r):(i.value=[...i.value,r],50{er(()=>[x.serverURL,x.path],()=>w(),{immediate:!0})}),cr(()=>y?.()),(e,t)=>(oe(),se("div",ca,[ce(Wo),c.value?ue("v-if",!0):(oe(),Jr(Us,{key:0,onLog:w,onSubmit:_})),ae("div",ua,[ae("div",pa,[l.value?(oe(),se("span",{key:0,class:"wl-num",textContent:J(l.value)},null,8,da)):ue("v-if",!0),ll(" "+J(p.value.comment),1)]),ae("ul",ha,[(oe(!0),se(ie,null,hr(ne(n),n=>(oe(),se("li",{key:n,class:Q([n===m.value?"active":""]),onClick:e=>{var t=n;m.value!==t&&(m.value=t,w())}},J(p.value[n]),11,fa))),128))])]),ae("div",ga,[(oe(!0),se(ie,null,hr(a.value,e=>(oe(),Jr(aa,{key:e.objectId,"root-id":e.objectId,comment:e,reply:c.value,edit:u.value,onLog:w,onReply:k,onEdit:b,onSubmit:_,onStatus:C,onDelete:$,onSticky:S,onLike:A},null,8,["root-id","comment","reply","edit"]))),128))]),"error"===r.value?(oe(),se("div",va,[ae("button",{type:"button",class:"wl-btn",onClick:w,textContent:J(p.value.refresh)},null,8,ma)])):(oe(),se(ie,{key:2},["loading"===r.value?(oe(),se("div",ya,[ce(ne(bo),{size:30})])):a.value.length?o.value{e.forEach((e,t)=>{e.innerText=n[t].toString()})},$a=t=>{let{serverURL:i,path:o=window.location.pathname,selector:e=".waline-pageview-count",update:n=!0,lang:s=navigator.language}=t;const a=new AbortController,r=Array.from(document.querySelectorAll(e)),l=e=>{e=ao(e);return null!==e&&o!==e},c=l=>(()=>{var{serverURL:e,lang:t,paths:n,signal:r}={serverURL:N(i),paths:l.map(e=>ao(e)||o),lang:s,signal:a.signal};return x({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then(e=>Array.isArray(e)?e:[e])})().then(e=>Sa(e,l)).catch(xi);if(n){const t=r.filter(e=>!l(e)),e=r.filter(l);u={serverURL:N(i),path:o,lang:s},_({...u,type:"time",action:"inc"}).then(e=>Sa(new Array(t.length).fill(e),t)),e.length&&c(e)}else c(r);var u;return a.abort.bind(a)};e.UserList=e=>{let{el:t,serverURL:l,count:i,locale:n,lang:o=navigator.language,mode:r="list"}=e;const s=_i(t),a=new AbortController;return(()=>{var{serverURL:e,signal:t,pageSize:n,lang:r}={serverURL:l,pageSize:i,lang:o,signal:a.signal};return fetch(e+`/user?pageSize=${n}&lang=`+r,{signal:t}).then(e=>e.json()).then(e=>F(e,"user list")).then(e=>e.data)})().then(e=>s&&e.length?(n={...P[o]||P[I],..."object"==typeof n?n:{}},s.innerHTML=`
    `,{users:e,destroy:()=>{a.abort(),s.innerHTML=""}}):{users:e,destroy:()=>a.abort()})},e.RecentComments=e=>{var{el:e,serverURL:o,count:s,lang:a=navigator.language}=e;const c=Uo(),t=_i(e),u=new AbortController;return(()=>{var{serverURL:e,lang:t,count:n,signal:r,token:l}={serverURL:o,count:s,lang:a,signal:u.signal,token:c.value?.token};const i={};return l&&(i.Authorization="Bearer "+l),fetch(e+`/comment?type=recent&count=${n}&lang=`+t,{signal:r,headers:i}).then(e=>e.json())})().then(e=>t&&e.length?(t.innerHTML=`
      ${e.map(e=>`
    • ${e.nick}:${e.comment}
    • `).join("")}
    `,{comments:e,destroy:()=>{u.abort(),t.innerHTML=""}}):{comments:e,destroy:()=>u.abort()})},e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:r=!1,pageview:l=!1,...i}=e;e=t?_i(t):null;if(t&&!e)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const o=on({...i}),s=on({comment:r,pageview:l,path:n}),a=e?function(){const r=(ti=ti||Nr(ei)).createApp(...arguments),l=r["mount"];return r.mount=e=>{e=e;const t=K(e)?document.querySelector(e):e;if(t){const n=r._component;Z(n)||n.render||n.template||(n.template=t.innerHTML),t.innerHTML="";e=l(t,!1,t instanceof SVGElement);return t instanceof Element&&(t.removeAttribute("v-cloak"),t.setAttribute("data-v-app","")),e}},r}(()=>p(Ca,{path:s.path,...o})):null,c=(a&&a.mount(e),Jn(()=>{s.comment&&co({serverURL:o.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})})),u=Jn(()=>{s.pageview&&$a({serverURL:o.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})});return{el:e,update:function(){let{comment:e,pageview:t,path:n=window.location.pathname,...r}=0{var[e,t]=e;o[e]=t}),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}},e.pageviewCount=$a});