hugo-theme-next/static/js/3rd/waline/2.15.8/waline.min.js
2025-01-06 13:26:27 +08:00

11 lines
156 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!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(128e3<r.size)return t(new Error("File too large! File size limit 128KB"));const n=new FileReader;n.readAsDataURL(r),n.onload=()=>e(n.result?.toString()||""),n.onerror=t}),O=e=>!0===e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',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",...1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}}).toString()).then(e=>e.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<arguments.length&&void 0!==arguments[1]?arguments[1]:0).toString()})}}},c=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),u=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],h={},M=e=>{let l=0;return e.replace(c,(e,t,n)=>{if(n)return`<span style="color: slategray">${n}</span>`;if("<"===t)return"&lt;";let r;h[t]?r=h[t]:(r=u[l],h[t]=r);n=`<span style="color: #${r}">${t}</span>`;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<arguments.length&&void 0!==arguments[1]?arguments[1]:""} failed with ${e.errno}: `+e.errmsg);return e},x=e=>{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<arguments.length&&void 0!==arguments[0]?arguments[0]:"").replace(/\/$/u,"")},C=e=>/^(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<t;)n="0"+n;return n},ve=/^[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])?)*$/;function $(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}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);-1<t&&e.splice(t,1)},xe=Object.prototype.hasOwnProperty,W=(e,t)=>xe.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<t.length;e++)t[e](n)},He=(e,t,n)=>{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<t.length;e++){var n=t[e],r=(K(n)?function(e){const n={};return e.replace(Qe,"").split(Ke).forEach(e=>{if(e){const t=e.split(Ge);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n}:Ze)(n);if(r)for(const t in r)l[t]=r[t]}return l}return K(t)||G(t)?t:void 0}const Ke=/;(?![^(]*\))/g,Ge=/:([^]+)/,Qe=/\/\*[^]*?\*\//g;function Q(t){let n="";if(K(t))n=t;else if(q(t))for(let e=0;e<t.length;e++){var r=Q(t[e]);r&&(n+=r+" ")}else if(G(t))for(const e in t)t[e]&&(n+=e+" ");return n.trim()}const Je=$("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Xe(e){return!!e||""===e}function Ye(e,t){if(e===t)return!0;let n=Se(e),r=Se(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=$e(e),r=$e(t),n||r)return e===t;if(n=q(e),r=q(t),n||r)return!(!n||!r)&&function(t,n){if(t.length!==n.length)return!1;let r=!0;for(let e=0;r&&e<t.length;e++)r=Ye(t[e],n[e]);return r}(e,t);if(n=G(e),r=G(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(r&&!l||!r&&l||!Ye(e[n],t[n]))return!1}}return String(e)===String(t)}function et(e,t){return e.findIndex(e=>Ye(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<arguments.length&&void 0!==arguments[0]&&arguments[0];this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=y,!e&&y&&(this.index=(y.scopes||(y.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){var t=y;try{return y=this,e()}finally{y=t}}}on(){y=this}off(){y=this.parent}stop(n){if(this._active){let e,t;for(e=0,t=this.effects.length;e<t;e++)this.effects[e].stop();for(e=0,t=this.cleanups.length;e<t;e++)this.cleanups[e]();if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!n){const n=this.parent.scopes.pop();n&&n!==this&&((this.parent.scopes[this.index]=n).index=this.index)}this.parent=void 0,this._active=!1}}}const rt=e=>{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<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=2<arguments.length?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t){let n=1<arguments.length&&void 0!==t?t:y;n&&n.active&&n.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ut,t=gt;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ut,ut=this,gt=!0,at=1<<++st,(st<=ct?e=>{let t=e["deps"];if(t.length)for(let e=0;e<t.length;e++)t[e].w|=at}:ft)(this),this.fn()}finally{if(st<=ct){var n=this;const r=n["deps"];if(r.length){let t=0;for(let e=0;e<r.length;e++){const l=r[e];lt(l)&&!it(l)?l.delete(n):r[t++]=l,l.w&=~at,l.n&=~at}r.length=t}}at=1<<--st,ut=this.parent,gt=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ut===this?this.deferStop=!0:this.active&&(ft(this),this.onStop&&this.onStop(),this.active=!1)}}function ft(t){const n=t["deps"];if(n.length){for(let e=0;e<n.length;e++)n[e].delete(t);n.length=0}}let gt=!0;const vt=[];function mt(){vt.push(gt),gt=!1}function yt(){var e=vt.pop();gt=void 0===e||e}function X(n,e,r){if(gt&&ut){let e=ot.get(n),t=(e||ot.set(n,e=new Map),e.get(r));t||e.set(r,t=rt()),wt(t)}}function wt(e){let t=!1;st<=ct?it(e)||(e.n|=at,t=!lt(e)):t=!e.has(ut),t&&(e.add(ut),ut.deps.push(e))}function kt(r,e,t,l){const i=ot.get(r);if(i){let n=[];if("clear"===e)n=[...i.values()];else if("length"===t&&q(r)){const r=Number(l);i.forEach((e,t)=>{("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<t;e++)X(n,0,e+"");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var l=n[i](...t);return-1===l||!1===l?n[i](...t.map(Y)):l}}),["push","pop","shift","unshift","splice"].forEach(l=>{e[l]=function(){mt();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Y(this)[l].apply(this,t);return yt(),r}}),e}();function Et(e){const t=Y(this);return X(t,0,e),t.hasOwnProperty(e)}function zt(e,t){let l=0<arguments.length&&void 0!==e&&e,i=1<arguments.length&&void 0!==t&&t;return function(e,t,n){if("__v_isReactive"===t)return!l;if("__v_isReadonly"===t)return l;if("__v_isShallow"===t)return i;if("__v_raw"===t&&n===(l?i?ln:rn:i?nn:tn).get(e))return e;var r=q(e);if(!l){if(r&&W(Rt,t))return Reflect.get(Rt,t,n);if("hasOwnProperty"===t)return Et}n=Reflect.get(e,t,n);return($e(t)?Ct.has(t):_t(t))?n:(l||X(e,0,t),i?n:ee(n)?r&&Ie(t)?n:n.value:G(n)?(l?sn:on)(n):n)}}function Lt(e){let s=0<arguments.length&&void 0!==e&&e;return function(e,t,n,r){let l=e[t];if(un(l)&&ee(l)&&!ee(n))return!1;if(!s&&(pn(n)||un(n)||(l=Y(l),n=Y(n)),!q(e)&&ee(l)&&!ee(n)))return l.value=n,!0;var i=q(e)&&Ie(t)?Number(t)<e.length:W(e,t),o=Reflect.set(e,t,n,r);return e===Y(r)&&(i?Ne(n,l)&&kt(e,"set",t,n):kt(e,"add",t,n)),o}}const It={get:St,set:Lt(),deleteProperty:function(e,t){var n=W(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&kt(e,"delete",t,void 0),r},has:function(e,t){var n=Reflect.has(e,t);return $e(t)&&Ct.has(t)||X(e,0,t),n},ownKeys:function(e){return X(e,0,q(e)?"length":pt),Reflect.ownKeys(e)}},Tt={get:At,set:(e,t)=>!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=2<arguments.length&&void 0!==n&&n,i=3<arguments.length&&void 0!==r&&r,o=Y(e=e.__v_raw),s=Y(t);l||(t!==s&&X(o,0,t),X(o,0,s));const a=Ut(o)["has"],c=i?Ot:l?gn:fn;return a.call(o,t)?c(e.get(t)):a.call(o,s)?c(e.get(s)):void(e!==o&&e.get(t))}function Pt(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,r=Y(n),l=Y(e);return t||(e!==l&&X(r,0,e),X(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function Ft(e,t){return e=e.__v_raw,1<arguments.length&&void 0!==t&&t||X(Y(e),0,pt),Reflect.get(e,"size",e)}function Vt(e){e=Y(e);const t=Y(this);return Ut(t).has.call(t,e)||(t.add(e),kt(t,"add",e,e)),this}function Nt(e,t){t=Y(t);const n=Y(this),{has:r,get:l}=Ut(n);let i=r.call(n,e);i||(e=Y(e),i=r.call(n,e));var o=l.call(n,e);return n.set(e,t),i?Ne(t,o)&&kt(n,"set",e,t):kt(n,"add",e,t),this}function Dt(e){const t=Y(this),{has:n,get:r}=Ut(t);let l=n.call(t,e);l||(e=Y(e),l=n.call(t,e)),r&&r.call(t,e);var i=t.delete(e);return l&&kt(t,"delete",e,void 0),i}function Ht(){const e=Y(this),t=0!==e.size,n=e.clear();return t&&kt(e,"clear",void 0,void 0),n}function Bt(o,s){return function(n,r){const l=this,e=l.__v_raw,t=Y(e),i=s?Ot:o?gn:fn;return o||X(t,0,pt),e.forEach((e,t)=>n.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<t.length;e++)i.push(Sn(t[e],n,r,l));return i}function $n(t,n,r,e){if(n&&n.vnode,n){let e=n.parent;for(var l=n.proxy,i=r;e;){const n=e.ec;if(n)for(let e=0;e<n.length;e++)if(!1===n[e](t,l,i))return;e=e.parent}var o=n.appContext.config.errorHandler;if(o)return Cn(o,null,10,[t,l,i])}console.error(t)}let An=!1,Rn=!1;const re=[];let En=0;const zn=[];let Ln=null,In=0;const Tn=Promise.resolve();let jn=null;function On(e){const t=jn||Tn;return e?t.then(this?e.bind(this):e):t}function Un(e){re.length&&re.includes(e,An&&e.allowRecurse?En+1:En)||(null==e.id?re.push(e):re.splice(function(e){let t=En+1,n=re.length;for(;t<n;){var r=t+n>>>1;Vn(re[r])<e?t=1+r:n=r}return t}(e.id),0,e),Mn())}function Mn(){An||Rn||(Rn=!0,jn=Tn.then(Dn))}function Pn(e,t){let n=1<arguments.length&&void 0!==t?t:An?En+1:0;for(;n<re.length;n++){const e=re[n];e&&e.pre&&(re.splice(n,1),n--,e())}}function Fn(){if(zn.length){const e=[...new Set(zn)];if(zn.length=0,Ln)return Ln.push(...e);for((Ln=e).sort((e,t)=>Vn(e)-Vn(t)),In=0;In<Ln.length;In++)Ln[In]();Ln=null,In=0}}const Vn=e=>null==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<re.length;En++){const e=re[En];e&&!1!==e.active&&Cn(e,null,14)}}finally{En=0,re.length=0,Fn(),An=!1,jn=null,(re.length||zn.length)&&Dn()}}function Hn(e,t){return e&&we(t)&&(t=t.slice(2).replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,Pe(t))||W(e,t))}let Bn=null,Wn=null;function qn(e){var t=Bn;return Bn=e,Wn=e&&e.type.__scopeId||null,t}function Zn(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:i,propsOptions:[o],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let v,m;var y=qn(e);try{if(4&n.shapeFlag){const e=l||r;v=il(u.call(e,e,p,i,h,d,f)),m=a}else{const e=t;v=il(1<e.length?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),m=t.props?a:Kn(a)}}catch(t){qr.length=0,$n(t,e,1),v=ce(Br)}let w=v;if(m&&!1!==g){const e=Object.keys(m),t=w["shapeFlag"];e.length&&7&t&&(o&&e.some(ke)&&(m=Gn(m,o)),w=rl(w,m))}return n.dirs&&((w=rl(w)).dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),v=w,qn(y),v}const Kn=e=>{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;e<l.length;e++){var i=l[e];if(n[i]!==t[i]&&!Hn(r,i))return!0}return!1}function Jn(e,t){return er(e,null,t)}const Xn={};function Yn(e,t,n){return er(e,t,n)}function er(e,t,n){let{immediate:r,deep:l,flush:i}=2<arguments.length&&void 0!==n?n:H;const o=y===(null==(m=E)?void 0:m.scope)?E:null;let s,a,c=!1,u=!1;if(ee(e)?(s=()=>e.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<t.length;e++)tr(t[e],n);else if(Ce(t)||_e(t))t.forEach(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<i.length;l++){let[e,t,n,r=H]=i[l];e&&((e=Z(e)?{mounted:e,updated:e}:e).deep&&tr(t),s.push({dir:e,instance:o,value:t,oldValue:void 0,arg:n,modifiers:r}))}return e}function rr(t,n,r,l){var i=t.dirs,o=n&&n.dirs;for(let e=0;e<i.length;e++){const a=i[e];o&&(a.oldValue=o[e].value);var s=a.dir[l];s&&(mt(),Sn(s,r,8,[t.el,a,t,n]),yt())}}function lr(e,t){return Z(e)?B({name:e.name},t,{setup:e}):e}const ir=e=>!!e.type.__asyncLoader,or=t=>function(e){return(!wl||"sp"===t)&&function(l,i,e,t){let o=2<arguments.length&&void 0!==e?e:E,n=3<arguments.length&&void 0!==t&&t;if(o){const r=o[l]||(o[l]=[]),s=i.__weh||(i.__weh=function(){if(!o.isUnmounted){mt(),gl(o);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sn(i,o,l,t);return vl(),yt(),r}});return n?r.unshift(s):r.push(s),s}}(t,function(){return e(...arguments)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:E)},sr=or("m"),ar=or("bum"),cr=or("um"),ur="components",pr=Symbol.for("v-ndc");function dr(e,t){return e&&(e[t]||e[Ue(t)]||e[Fe(Ue(t))])}function hr(n,r,l,e){let i;const o=l&&l[e];if(q(n)||K(n)){i=new Array(n.length);for(let e=0,t=n.length;e<t;e++)i[e]=r(n[e],e,void 0,o&&o[e])}else if("number"==typeof n){i=new Array(n);for(let e=0;e<n;e++)i[e]=r(e+1,e,void 0,o&&o[e])}else if(G(n))if(n[Symbol.iterator])i=Array.from(n,(e,t)=>r(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;e<t;e++){var s=l[e];i[e]=r(n[s],s,e,o&&o[e])}}else i=[];return l&&(l[e]=i),i}const fr=e=>e?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=3<arguments.length&&void 0!==r&&r;const{mixins:i,extends:o}=e;o&&wr(t,o,n,!0),i&&i.forEach(e=>wr(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;e<t.length;e++)n[t[e]]=t[e];return n}return t}function l(e,t){return e?[...new Set([].concat(e,t))]:t}function _r(e,t){return e?B(Object.create(null),e,t):t}function Cr(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:B(Object.create(null),yr(e),yr(null!=t?t:{})):t}function Sr(){return{app:null,config:{isNativeTag:A,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let $r=0;let Ar=null;function Rr(e,t,n){var r,l=2<arguments.length&&void 0!==n&&n,i=E||Bn;if(i||Ar)return(r=i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Ar._context.provides)&&e in r?r[e]:1<arguments.length?l&&Z(t)?t.call(i&&i.proxy):t:void 0}function Er(t,n,r,l){const[i,o]=t.propsOptions;let s,a=!1;if(n)for(var c in n)if(!Te(c)){var u=n[c];let e;i&&W(i,e=Ue(c))?o&&o.includes(e)?(s=s||{})[e]=u:r[e]=u:Hn(t.emitsOptions,c)||c in l&&u===l[c]||(l[c]=u,a=!0)}if(o){const n=Y(r),l=s||H;for(let e=0;e<o.length;e++){const a=o[e];r[a]=zr(i,n,a,l[a],t,!W(l,a))}}return a}function zr(e,t,n,r,l,i){var o=e[n];if(null!=o){const e=W(o,"default");if(e&&void 0===r){const e=o.default;if(o.type!==Function&&!o.skipFactory&&Z(e)){const i=l["propsDefaults"];n in i?r=i[n]:(gl(l),r=i[n]=e.call(null,t),vl())}else r=e}o[0]&&(i&&!e?r=!1:!o[1]||""!==r&&r!==Pe(n)||(r=!0))}return r}function Lr(e){return"$"!==e[0]}function Ir(e){var t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Tr(e,t){return Ir(e)===Ir(t)}function jr(t,e){return q(e)?e.findIndex(e=>Tr(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<arguments.length&&void 0!==e?e:Bn;if(!r)return n;if(n._n)return n;const l=function(){l._d&&Gr(-1);var e=qn(r);let t;try{t=n(...arguments)}finally{qn(e),l._d&&Gr(1)}return t};return l._n=!0,l._c=!0,l._d=!0,l}(function(){return Ur(t(...arguments))},n);return r._c=!1,r},Pr=(e,t,n)=>{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=4<arguments.length&&void 0!==e&&e;if(q(t))t.forEach((e,t)=>Vr(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<arguments.length&&void 0!==arguments[3]?arguments[3]:null,l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null,i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,o=6<arguments.length&&void 0!==arguments[6]&&arguments[6],s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:null,a=8<arguments.length&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!Yr(e,t)&&(r=$(e),S(e,l,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Hr:h(e,t,n,r);break;case Br:g(e,t,n,r);break;case Wr:null==e&&m(t,n,r,o);break;case ie:R(e,t,n,r,l,i,o,s,a);break;default:1&p?y(e,t,n,r,l,i,o,s,a):6&p?E(e,t,n,r,l,i,o,s,a):(64&p||128&p)&&c.process(e,t,n,r,l,i,o,s,a,A)}null!=u&&l&&Vr(u,e&&e.ref,i,t||e,!t)}},h=(e,t,n,r)=>{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<e){if(16&e)F(y,d,w,k,h,f,g);else if(2&e&&w.class!==k.class&&T(y,"class",null,k.class,g),4&e&&T(y,"style",w.style,k.style,g),8&e){const v=d.dynamicProps;for(let t=0;t<v.length;t++){const m=v[t],O=w[m],e=k[m];e===O&&"value"!==m||T(y,m,O,e,g,p.children,h,f,N)}}1&e&&p.children!==d.children&&O(y,d.children)}else m||null!=t||F(y,d,w,k,h,f,g);void(((r=k.onVnodeUpdated)||n)&&le(()=>{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<r.length;e++)s(t,r[e]);if(l&&e===l.subTree){const e=l.vnode;U(t,e,e.scopeId,e.slotScopeIds,l.parent)}},M=function(t,n,r,l,i,o,s,a){for(let e=8<arguments.length&&void 0!==arguments[8]?arguments[8]:0;e<t.length;e++){var c=t[e]=(a?ol:il)(t[e]);_(null,c,n,r,l,i,o,s,a)}},P=(t,n,r,l,i,o,s)=>{for(let e=0;e<n.length;e++){var a=t[e],c=n[e],u=a.el&&(a.type===ie||!Yr(a,c)||70&a.shapeFlag)?v(a.el):r;_(a,c,u,null,l,i,o,s,!0)}},F=(e,t,n,r,l,i,o)=>{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<p&&64&p&&d&&e.dynamicChildren?(P(e.dynamicChildren,d,n,l,i,o,s),(null!=t.key||l&&t===l.subTree)&&function n(e,r){let l=2<arguments.length&&void 0!==arguments[2]&&arguments[2];const i=e.children,o=r.children;if(q(i)&&q(o))for(let t=0;t<i.length;t++){const r=i[t];let e=o[t];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&((e=o[t]=ol(o[t])).el=r.el),l||n(r,e)),e.type===Hr&&(e.el=r.el)}}(e,t,!0)):V(e,t,n,u,l,i,o,s,a)},E=(e,t,n,r,l,i,o,s,a)=>{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;e<t.length;e++){const n=t[e];if(i[n]!==r[n]&&!Hn(a,n))return 1}}}(s,e,c)?(e.el=s.el,u.vnode=e):u.asyncDep&&!u.asyncResolved?k(u,e,c):(u.next=e,s=u.update,(c=re.indexOf(s))>En&&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;e<l.length;e++){const t=Ue(l[e]);Lr(t)&&(i[t]=H)}else if(l)for(const e in l){const t=Ue(e);if(Lr(t)){const n=l[e],r=i[t]=q(n)||Z(n)?{type:n}:B({},n);if(r){const e=jr(Boolean,r.type),n=jr(String,r.type);r[0]=-1<e,r[1]=n<0||e<n,(-1<e||W(r,"default"))&&o.push(t)}}}return t=[i,o],G(e)&&n.set(e,t),t}(r,l),emitsOptions:function(e,t){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const l=e.emits;let i={};return l?(q(l)?l.forEach(e=>i[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(2<o?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];let e=s;var c=l.startsWith("update:"),u=c&&l.slice(7);if(u&&u in i){const r=`${"modelValue"===u?"model":u}Modifiers`,{number:l,trim:o}=i[r]||H;o&&(e=s.map(e=>K(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<arguments.length&&void 0!==t&&t,{props:l,children:i}=(wl=r,e.vnode),o=ml(e);(function(e,t,n,r){var l=3<arguments.length&&void 0!==r&&r;const i={},o={};He(o,el,1),e.propsDefaults=Object.create(null),Er(e,t,i,o);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=l?i:an(i,!1,jt,Yt,nn):e.type.props?e.props=i:e.props=o,e.attrs=o})(e,l,o,r),l=i,32&(i=e).vnode.shapeFlag?(n=l._)?(i.slots=Y(l),He(l,"_",n)):Pr(l,i.slots={}):(i.slots={},l&&Fr(i,l)),He(i.slots,el,1),o&&function(t,n){const e=t.type;t.accessCache=Object.create(null),t.proxy=hn(new Proxy(t.ctx,mr));var r,l=e["setup"];if(l){const e=t.setupContext=1<l.length?(r=t,{get attrs(){return(n=r).attrsProxy||(n.attrsProxy=new Proxy(n.attrs,{get:(e,t)=>(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<e)||16&e){let e;Er(o,s,d,h)&&(t=!0);for(const h in f)s&&(W(s,h)||(e=Pe(h))!==h&&W(s,e))||(g?!a||void 0===a[h]&&void 0===a[e]||(d[h]=zr(g,f,h,void 0,o,!0)):delete d[h]);if(h!==f)for(const o in h)s&&W(s,o)||(delete h[o],t=!0)}else if(8&e){const a=o.vnode.dynamicProps;for(let e=0;e<a.length;e++){var c=a[e];if(!Hn(o.emitsOptions,c)){var u=s[c];if(g)if(W(h,c))u!==h[c]&&(h[c]=u,t=!0);else{const s=Ue(c);d[s]=zr(g,f,s,u,o,!1)}else u!==h[c]&&(h[c]=u,t=!0)}}}t&&kt(o,"set","$attrs")}{var p=n;i=r.children,n=l;const{vnode:v,slots:m}=p;let e=!0,t=H;if(32&v.shapeFlag){const p=i._;p?n&&1===p?e=!1:(B(m,i),n||1!==p||delete m._):(e=!i.$stable,Pr(i,m)),t=i}else i&&(Fr(p,i),t={default:1});if(e)for(const p in m)Or(p)||p in t||delete m[p]}mt(),Pn(),yt()},V=function(e,t,n,r,l,i,o,s){var a=8<arguments.length&&void 0!==arguments[8]&&arguments[8],c=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:d,shapeFlag:h}=t;if(0<d){if(128&d)return void b(c,p,n,r,l,i,o,s,a);if(256&d)return void z(c,p,n,r,l,i,o,s,a)}8&h?(16&u&&N(c,l,i),p!==c&&O(n,p)):16&u?16&h?b(c,p,n,r,l,i,o,s,a):N(c,l,i,!0):(8&u&&O(n,""),16&h&&M(p,n,r,l,i,o,s,a))},z=(e,t,n,r,l,i,o,s,a)=>{t=t||me;var c=(e=e||me).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=(a?ol:il)(t[d]);_(e[d],r,n,null,l,i,o,s,a)}u<c?N(e,l,i,!0,!1,p):M(t,n,r,l,i,o,s,a,p)},b=(e,i,o,s,a,c,u,p,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=e<f?i[e].el:s;for(;h<=v;)_(null,i[h]=(d?ol:il)(i[h]),o,g,a,c,u,p,d),h++}}else if(h>v)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;h++)x[h]=0;for(h=w;h<=g;h++){const s=e[h];if(n>=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<a;r++){const a=e[r];if(0!==a)if(e[l=n[n.length-1]]<a)t[r]=l,n.push(r);else{for(i=0,o=n.length-1;i<o;)s=i+o>>1,e[n[s]]<a?i=1+s:o=s;a<e[n[i]]&&(0<i&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];0<i--;)n[i]=o,o=t[o];return n}(x):me;for(t=y.length-1,h=m-1;0<=h;h--){const e=k+h,g=i[e],v=e+1<f?i[e+1].el:s;0===x[h]?_(null,g,o,v,a,c,u,p,d):r&&(t<0||h!==y[t]?C(g,o,v,2):t--)}}},C=function(r,l,i,t){let e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null;const{el:n,type:o,transition:s,children:a,shapeFlag:c}=r;if(6&c)C(r.component.subTree,l,i,t);else if(128&c)r.suspense.move(l,i,t);else if(64&c)o.move(r,l,i,A);else if(o!==ie)if(o!==Wr)if(2!==t&&1&c&&s)if(0===t)s.beforeEnter(n),I(n,l,i),le(()=>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<a.length;e++)C(a[e],l,i,t);I(r.anchor,l,i)}},S=function(t,n,r){var l=3<arguments.length&&void 0!==arguments[3]&&arguments[3],i=4<arguments.length&&void 0!==arguments[4]&&arguments[4],{type:o,props:s,ref:e,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=t;if(null!=e&&Vr(e,null,r,t,!0),256&u)n.ctx.deactivate(t);else{const h=1&u&&d,f=!ir(t);let e;if(f&&(e=s&&s.onVnodeBeforeUnmount)&&al(e,n,t),6&u)D(t.component,r,l);else{if(128&u)return void t.suspense.unmount(r,l);h&&rr(t,null,n,"beforeUnmount"),64&u?t.type.remove(t,n,r,i,A,l):c&&(o!==ie||0<p&&64&p)?N(c,n,r,!1,!0):(o===ie&&384&p||!i&&16&u)&&N(a,n,r),l&&x(t)}(f&&(e=s&&s.onVnodeUnmounted)||h)&&le(()=>{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=3<arguments.length&&void 0!==arguments[3]&&arguments[3],i=4<arguments.length&&void 0!==arguments[4]&&arguments[4];for(let e=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;e<t.length;e++)S(t[e],n,r,l,i)},$=e=>6&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=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;Z(l)||(l=B({},l)),null==i||G(i)||(i=null);const o=Sr(),s=new Set;let a=!1;const c=o.app={_uid:$r++,_component:l,_props:i,_container:null,_context:o,_instance:null,version:Sl,get config(){return o.config},set config(e){},use:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return s.has(e)||(e&&Z(e.install)?(s.add(e),e.install(c,...n)):Z(e)&&(s.add(e),e(c,...n))),c},mixin:e=>c,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<arguments.length&&void 0!==e&&e;qr.push(Zr=t?null:[])}let Kr=1;function Gr(e){Kr+=e}function Qr(e){return e.dynamicChildren=0<Kr?Zr||me:null,qr.pop(),Zr=qr[qr.length-1]||null,0<Kr&&Zr&&Zr.push(e),e}function se(e,t,n,r,l,i){return Qr(ae(e,t,n,r,l,i,!0))}function Jr(e,t,n,r,l){return Qr(ce(e,t,n,r,l,!0))}function Xr(e){return e&&!0===e.__v_isVNode}function Yr(e,t){return e.type===t.type&&e.key===t.key}const el="__vInternal",tl=e=>{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=1<arguments.length&&void 0!==t?t:null,c=2<arguments.length&&void 0!==n?n:null,u=3<arguments.length&&void 0!==r?r:0,p=4<arguments.length&&void 0!==l?l:null,d=5<arguments.length&&void 0!==i?i:e===ie?0:1,h=6<arguments.length&&void 0!==o&&o,f=7<arguments.length&&void 0!==s&&s;const g={__v_isVNode:!0,__v_skip:!0,type:e,props:a,key:a&&tl(a),ref:a&&nl(a),scopeId:Wn,slotScopeIds:null,children:c,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:u,dynamicProps:p,dynamicChildren:null,appContext:null,ctx:Bn};return f?(sl(g,c),128&d&&e.normalize(g)):c&&(g.shapeFlag|=K(c)?8:16),0<Kr&&!h&&Zr&&(0<g.patchFlag||6&d)&&32!==g.patchFlag&&Zr.push(g),g}const ce=function(e){let n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null,i=5<arguments.length&&void 0!==arguments[5]&&arguments[5];if(Xr(e=e&&e!==pr?e:Br)){const r=rl(e,n,!0);return t&&sl(r,t),0<Kr&&!i&&Zr&&(6&r.shapeFlag?Zr[Zr.indexOf(e)]=r:Zr.push(r)),r.patchFlag|=-2,r}var o;if(Z(o=e)&&"__vccOpts"in o&&(e=e.__vccOpts),n){let{class:e,style:t}=n=(o=n)?dn(o)||el in o?B({},o):o:null;e&&!K(e)&&(n.class=Q(e)),G(t)&&(dn(t)&&!q(t)&&(t=B({},t)),n.style=Ze(t))}return ae(e,n,t,r,l,K(e)?1:e.__isSuspense?128:e.__isTeleport?64:G(e)?4:Z(e)?2:0,i,!0)};function rl(e,t,n){var r=2<arguments.length&&void 0!==n&&n;const{props:l,ref:i,patchFlag:o,children:s}=e,a=t?function(){const t={};for(let e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];for(const r in n)if("class"===r)t.class!==n.class&&(t.class=Q([t.class,n.class]));else if("style"===r)t.style=Ze([t.style,n.style]);else if(we(r)){const l=t[r],i=n[r];!i||l===i||q(l)&&l.includes(i)||(t[r]=l?[].concat(l,i):i)}else""!==r&&(t[r]=n[r])}return t}(l||{},t):l;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&tl(a),ref:t&&t.ref?r&&i?q(i)?i.concat(nl(t)):[i,nl(t)]:nl(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rl(e.ssContent),ssFallback:e.ssFallback&&rl(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ll(e,t){return ce(Hr,null,0<arguments.length&&void 0!==e?e:" ",1<arguments.length&&void 0!==t?t:0)}function ue(e,t){var n=0<arguments.length&&void 0!==e?e:"";return 1<arguments.length&&void 0!==t&&t?(oe(),Jr(Br,null,n)):ce(Br,null,n)}function il(e){return null==e||"boolean"==typeof e?ce(Br):q(e)?ce(ie,null,e.slice()):"object"==typeof e?ol(e):ce(Hr,null,String(e))}function ol(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:rl(e)}function sl(e,t){let n=0;const r=e["shapeFlag"];if(null==t)t=null;else if(q(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return n&&(n._c&&(n._d=!1),sl(e,n()),n._c&&(n._d=!0))}{n=32;const r=t._;r||el in t?3===r&&Bn&&(1===Bn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Bn}}else Z(t)?(t={default:t,_ctx:Bn},n=32):(t=String(t),64&r?(n=16,t=[ll(t)]):n=8);e.children=t,e.shapeFlag|=n}function al(e,t,n,r){Sn(e,t,7,[n,3<arguments.length&&void 0!==r?r:null])}const cl=Sr();let ul=0,E=null;const pl=()=>E||Bn;let dl,hl,fl="__VUE_INSTANCE_SETTERS__";(hl=(hl=qe()[fl])?hl:qe()[fl]=[]).push(e=>E=e),dl=t=>{1<hl.length?hl.forEach(e=>e(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=2<arguments.length&&void 0!==n&&n;var o=Z(e);return l=o?(r=e,ye):(r=e.get,e.set),new _n(r,l,o||!l,i)}(e,0,wl);function p(e,t,n){var r=arguments.length;return 2===r?G(t)&&!q(t)?Xr(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(3<r?n=Array.prototype.slice.call(arguments,2):3===r&&Xr(n)&&(n=[n]),ce(e,t,n))}const _l=Symbol.for("v-scx"),Cl=()=>Rr(_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?`<svg>${e}</svg>`: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<Ll.length;e++){var l=Ll[e]+r;if(l in t)return Il[n]=l}return n}(t,n),El.test(e)?t.setProperty(Pe(r),e.replace(El,""),"important"):t[r]=e))}const Ll=["Webkit","Moz","ms"],Il={},Tl="http://www.w3.org/1999/xlink";function jl(e,t,n,r){e.addEventListener(t,n,r)}const Ol=/(?:Once|Passive|Capture)$/;let Ul=0;const Ml=Promise.resolve(),Pl=/^on[a-z]/,Fl=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<et(r,n.props.value):Ce(r)?e.checked=r.has(n.props.value):r!==l&&(e.checked=Ye(r,Gl(e,!0)))}const Wl={created(e,t,n){t=t.value;e.checked=Ye(t,n.props.value),e._assign=Fl(n),jl(e,"change",()=>{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<t;e++){const i=n.options[e],o=Kl(i);if(l)q(r)?i.selected=-1<et(r,o):i.selected=r.has(o);else if(Ye(Kl(i),r))return n.selectedIndex!==e&&(n.selectedIndex=e)}l||-1===n.selectedIndex||(n.selectedIndex=-1)}}function Kl(e){return"_value"in e?e._value:e.value}function Gl(e,t){var n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ql={created(e,t,n){Jl(e,t,n,null,"created")},mounted(e,t,n){Jl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Jl(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Jl(e,t,n,r,"updated")}};function Jl(e,t,n,r,l){const i=function(e,t){switch(e){case"SELECT":return ql;case"TEXTAREA":return Dl;default:switch(t){case"checkbox":return Hl;case"radio":return Wl;default:return Dl}}}(e.tagName,n.props&&n.props.type)[l];i&&i(e,t,n,r)}const Xl={beforeMount(e,t,n){let r=t["value"],l=n["transition"];e._vod="none"===e.style.display?"":e.style.display,l&&r?l.beforeEnter(e):Yl(e,r)},mounted(e,t,n){let r=t["value"],l=n["transition"];l&&r&&l.enter(e)},updated(e,t,n){let{value:r,oldValue:l}=t,i=n["transition"];!r!=!l&&(i?r?(i.beforeEnter(e),Yl(e,!0),i.enter(e)):i.leave(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<arguments.length&&void 0!==arguments[4]&&arguments[4],s=5<arguments.length?arguments[5]:void 0,a=6<arguments.length?arguments[6]:void 0,c=7<arguments.length?arguments[7]:void 0,u=8<arguments.length?arguments[8]:void 0;if("class"===t)i=r,f=o,d=(l=e)._vtc,null==(i=d?(i?[i,...d]:[...d]).join(" "):i)?l.removeAttribute("class"):f?l.setAttribute("class",i):l.className=i;else if("style"===t){var p=e,d=n,h=r;const k=p.style,b=K(h);if(h&&!b){if(d&&!K(d))for(const p in d)null==h[p]&&zl(k,p,"");for(const p in h)zl(k,p,h[p])}else{var f=k.display;b?d!==h&&(k.cssText=h):d&&p.removeAttribute("style"),"_vod"in p&&(k.display=f)}}else if(we(t))ke(t)||function(e,t,n,r,l){var i,o=4<arguments.length&&void 0!==l?l:null;const s=e._vei||(e._vei={}),a=s[t];if(r&&a)a.value=r;else{const[n,c]=function(t){let n;if(Ol.test(t)){let e;for(n={};e=t.match(Ol);)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0}return[":"===t[2]?t.slice(3):Pe(t.slice(2)),n]}(t);if(r){const a=s[t]=function(t){const n=e=>{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<e;t++)n[t]=arguments[t];return new Promise((e,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<arguments.length&&void 0!==t)||t;pl()?sr(e):n?e():On(e)}const pi=li?window:void 0,di=li?window.document:void 0;function hi(){let e,l,i,t;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if("string"==typeof r[0]||Array.isArray(r[0])?([l,i,t]=r,e=pi):[e,l,i,t]=r,!e)return si;Array.isArray(l)||(l=[l]),Array.isArray(i)||(i=[i]);const s=[],a=()=>{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<arguments.length&&void 0!==t?t:{};const{flush:o="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:p,window:d=pi,eventFilter:h,onError:f=e=>{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<arguments.length&&void 0!==n?n:{},{eventFilter:i,pause:o,resume:s,isActive:a}=function(e){let t=0<arguments.length&&void 0!==e?e:ci;const n=te(!0);return{isActive:sn(n),pause:function(){n.value=!1},resume:function(){n.value=!0},eventFilter:function(){n.value&&t(...arguments)}}}(r),c=function(e,t,n){var r=2<arguments.length&&void 0!==n?n:{};const{eventFilter:l=ci,...i}=r;return Yn(e,ai(l,t),i)}(e,t,{...l,eventFilter:i});return{stop:c,pause:o,resume:s,isActive:a}}(g,()=>{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<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"";return(t?t+"/":"")+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:"")+e+(n?"."+n:"")}const xi=e=>{"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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},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(),0<n.length&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function Wi(e,t,n){var r=e.length;if(0===r)return"";let l=0;for(;l<r;){var i=e.charAt(r-l-1);if(i!==t||n){if(i===t||!n)break;l++}else l++}return e.slice(0,r-l)}function qi(e,t){if(t<1)return"";let n="";for(;1<t;)1&t&&(n+=e),t>>=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<e[0].length)return{type:"space",raw:e[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Wi(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){e=e.match(/^(\s+)(?:```)/);if(null===e)return t;const n=e[1];return t.split("\n").map(e=>{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<d.length,m={type:"list",raw:"",ordered:v,start:v?+d.slice(0,-1):"",loose:!1,items:[]},y=(d=v?"\\d{1,9}\\"+d.slice(-1):"\\"+d,this.options.pedantic&&(d=v?d:"[*+-]"),new RegExp(`^( {0,3}${d})((?:[ ][^\\n]*)?(?:\\n|$))`));for(;h&&(p=!1,f=y.exec(h))&&!this.rules.block.hr.test(h);){if(e=f[0],h=h.substring(e.length),s=f[2].split("\n",1)[0].replace(/^\t+/,e=>" ".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<g;l++)if(this.lexer.state.top=!1,m.items[l].tokens=this.lexer.blockTokens(m.items[l].text,[]),!m.loose){const h=m.items[l].tokens.filter(e=>"space"===e.type),f=0<h.length&&h.some(e=>/\n.*\n/.test(e.raw));m.loose=f}if(m.loose)for(l=0;l<g;l++)m.items[l].loose=!0;return m}}html(e){var t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(t=this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]),e.type="paragraph",e.text=t,e.tokens=this.lexer.inline(t)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$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<l;e++)/^ *-+: *$/.test(i.align[e])?i.align[e]="right":/^ *:-+: *$/.test(i.align[e])?i.align[e]="center":/^ *:-+ *$/.test(i.align[e])?i.align[e]="left":i.align[e]=null;for(l=i.rows.length,e=0;e<l;e++)i.rows[e]=Bi(i.rows[e],i.header.length).map(e=>({text:e}));for(l=i.header.length,t=0;t<l;t++)i.header[t].tokens=this.lexer.inline(i.header[t].text);for(l=i.rows.length,t=0;t<l;t++)for(r=i.rows[t],n=0;n<r.length;n++)r[n].tokens=this.lexer.inline(r[n].text);return i}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){e=this.rules.block.text.exec(e);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(e){e=this.rules.inline.escape.exec(e);if(e)return{type:"escape",raw:e[0],text:d(e[1])}}tag(e){e=this.rules.inline.tag.exec(e);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/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)){if(!/>$/.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<t;r++)if("\\"===e[r])r++;else if(e[r]==="()"[0])n++;else if(e[r]==="()"[1]&&--n<0)return r;return-1}(r[2]);var l;-1<n&&(l=(0===r[0].indexOf("!")?5:4)+r[1].length+n,r[2]=r[2].substring(0,n),r[0]=r[0].substring(0,l).trim(),r[3]="")}let e=r[2],t="";if(this.options.pedantic){const n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(e);n&&(e=n[1],t=n[3])}else t=r[3]?r[3].slice(1,-1):"";return e=e.trim(),/^</.test(e)&&(e=this.options.pedantic&&!/>$/.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<arguments.length&&void 0!==arguments[2]?arguments[2]:"",s=this.rules.inline.emStrong.lDelim.exec(l);if(s&&(!s[3]||!o.match(/[\p{L}\p{N}]/u))){var e=s[1]||s[2]||"";if(!e||""===o||this.rules.inline.punctuation.exec(o)){const o=s[0].length-1;let e,t,n=o,r=0;const c="*"===s[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,i=i.slice(-1*l.length+o);null!=(s=c.exec(i));)if(e=s[1]||s[2]||s[3]||s[4]||s[5]||s[6])if(t=e.length,s[3]||s[4])n+=t;else if((s[5]||s[6])&&o%3&&!((o+t)%3))r+=t;else if(!(0<(n-=t))){t=Math.min(t,t+n+r);const i=l.slice(0,o+s.index+(s[0].length-e.length)+t);if(Math.min(o,t)%2){const l=i.slice(1,-1);return{type:"em",raw:i,text:l,tokens:this.lexer.inlineTokens(l)}}var a=i.slice(2,-2);return{type:"strong",raw:i,text:a,tokens:this.lexer.inlineTokens(a)}}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let e=n[2].replace(/\n/g," ");var t=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return e=d(e=t&&r?e.substring(1,e.length-1):e,!0),{type:"codespan",raw:n[0],text:e}}}br(e){e=this.rules.inline.br.exec(e);if(e)return{type:"br",raw:e[0]}}del(e){e=this.rules.inline.del.exec(e);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n,r){n=this.rules.inline.autolink.exec(n);if(n){let e,t;return t="@"===n[2]?"mailto:"+(e=d(this.options.mangle?r(n[1]):n[1])):e=d(n[1]),{type:"link",raw:n[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}url(e,n){let r;if(r=this.rules.inline.url.exec(e)){let e,t;if("@"===r[2])e=d(this.options.mangle?n(r[0]):r[0]),t="mailto:"+e;else{for(var l;l=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0],l!==r[0];);e=d(r[0]),t="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){e=this.rules.inline.text.exec(e);if(e)return t=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):d(e[0]):e[0]:d(this.options.smartypants?t(e[0]):e[0]),{type:"text",raw:e[0],text:t}}}const i={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table: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=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,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","</?(?:tag)(?: +|\\n|/?>)|<(?: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","</?(?:tag)(?: +|\\n|/?>)|<(?: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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",i._tag).getRegex(),i.pedantic={...i.normal,html:r("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\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:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Hi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/});function Gi(e){return e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Qi(e){let t,n,r="";var l=e.length;for(t=0;t<l;t++)n=e.charCodeAt(t),.5<Math.random()&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}o._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",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]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},o.gfm.url=r(o.gfm.url,"i").replace("email",o.gfm._extended_email).getRegex(),o.breaks={...o.gfm,br:r(o.br).replace("{2,}","*").getRegex(),text:r(o.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class Ji{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||$i,this.options.tokenizer=this.options.tokenizer||new Ki,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,(this.tokenizer.lexer=this).inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:i.normal,inline:o.normal};this.options.pedantic?(t.block=i.pedantic,t.inline=o.pedantic):this.options.gfm&&(t.block=i.gfm,this.options.breaks?t.inline=o.breaks:t.inline=o.gfm),this.tokenizer.rules=t}static get rules(){return{block:i,inline:o}}static lex(e,t){return new Ji(t).lex(e)}static lexInline(e,t){return new Ji(t).inlineTokens(e)}lex(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(r){let t,l,e,n,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];for(r=this.options.pedantic?r.replace(/\t/g," ").replace(/^ +$/gm,""):r.replace(/^( *)(\t+)/gm,(e,t,n)=>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<i.length?i[i.length-1].raw+="\n":i.push(t);else if(t=this.tokenizer.code(r))r=r.substring(t.raw.length),!(l=i[i.length-1])||"paragraph"!==l.type&&"text"!==l.type?i.push(t):(l.raw+="\n"+t.raw,l.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text);else if(t=this.tokenizer.fences(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.heading(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.list(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.html(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.def(r))r=r.substring(t.raw.length),!(l=i[i.length-1])||"paragraph"!==l.type&&"text"!==l.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(l.raw+="\n"+t.raw,l.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text);else if(t=this.tokenizer.table(r))r=r.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.lheading(r))r=r.substring(t.raw.length),i.push(t);else{if(e=r,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const l=r.slice(1);let n;this.options.extensions.startBlock.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(this.state.top&&(t=this.tokenizer.paragraph(e)))l=i[i.length-1],n&&"paragraph"===l.type?(l.raw+="\n"+t.raw,l.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):i.push(t),n=e.length!==r.length,r=r.substring(t.raw.length);else if(t=this.tokenizer.text(r))r=r.substring(t.raw.length),(l=i[i.length-1])&&"text"===l.type?(l.raw+="\n"+t.raw,l.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):i.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)}}return this.state.top=!0,i}inline(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(r){let t,l,e,n,i,o,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],a=r;if(this.tokens.links){const r=Object.keys(this.tokens.links);if(0<r.length)for(;null!=(n=this.tokenizer.rules.inline.reflinkSearch.exec(a));)r.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,n.index)+"["+qi("a",n[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(n=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,n.index)+"["+qi("a",n[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(n=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,n.index+n[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;r;)if(i||(o=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(e=>!!(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?'<pre><code class="'+this.options.langPrefix+d(r)+'">'+(n?e:d(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:d(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e){return e}heading(e,t,n,r){return this.options.headerIds?`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>
`:`<h${t}>${e}</h${t}>
`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
`}table(e,t){return"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&`<tbody>${t}</tbody>`)+"</table>\n"}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,t){var n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=Pi(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"}image(e,t,n){if(null===(e=Pi(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">"}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<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class to{constructor(e){this.options=e||$i,this.options.renderer=this.options.renderer||new Xi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Yi,this.slugger=new eo}static parse(e,t){return new to(t).parse(e)}static parseInline(e,t){return new to(t).parseInline(e)}parse(e){let t,n,r,l,i,o,s,a,c,u,p,d,h,f,g,v,m,y,w,k=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],b="";var x=e.length;for(t=0;t<x;t++)if(u=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(!1!==(w=this.options.extensions.renderers[u.type].call({parser:this},u))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))b+=w||"";else switch(u.type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(u.tokens),u.depth,ji(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(a="",s="",l=u.header.length,n=0;n<l;n++)s+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(a+=this.renderer.tablerow(s),c="",l=u.rows.length,n=0;n<l;n++){for(o=u.rows[n],s="",i=o.length,r=0;r<i;r++)s+=this.renderer.tablecell(this.parseInline(o[r].tokens),{header:!1,align:u.align[r]});c+=this.renderer.tablerow(s)}b+=this.renderer.table(a,c);continue;case"blockquote":c=this.parse(u.tokens),b+=this.renderer.blockquote(c);continue;case"list":for(p=u.ordered,d=u.start,h=u.loose,l=u.items.length,c="",n=0;n<l;n++)v=(g=u.items[n]).checked,m=g.task,f="",g.task&&(y=this.renderer.checkbox(v),h?0<g.tokens.length&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&0<g.tokens[0].tokens.length&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),c+=this.renderer.listitem(f,m,v);b+=this.renderer.list(c,p,d);continue;case"html":b+=this.renderer.html(u.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1<x&&"text"===e[t+1].type;)u=e[++t],c+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);b+=k?this.renderer.paragraph(c):c;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return b}parseInline(e,t){t=t||this.renderer;let n,r,l,i="";var o=e.length;for(n=0;n<o;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(!1!==(l=this.options.extensions.renderers[r.type].call({parser:this},r))||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=l||"";else switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}class no{constructor(e){this.options=e||$i}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}function ro(u,p){return(t,l,i)=>{"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="<p>An error occurred:</p><pre>"+d(e.message+"",!0)+"</pre>";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<e;n++)t[n]=arguments[n];t.forEach(l=>{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<e;n++)t[n]=arguments[n];let r=l.renderer.apply(this,t);return r=!1===r?i.apply(this,t):r}:l.renderer}if(l.tokenizer){if(!l.level||"block"!==l.level&&"inline"!==l.level)throw new Error("extension level must be 'block' or 'inline'");c[l.level]?c[l.level].unshift(l.tokenizer):c[l.level]=[l.tokenizer],l.start&&("block"===l.level?c.startBlock?c.startBlock.push(l.start):c.startBlock=[l.start]:"inline"===l.level&&(c.startInline?c.startInline.push(l.start):c.startInline=[l.start]))}l.childTokens&&(c.childTokens[l.name]=l.childTokens)}),i.extensions=c),l.renderer){const c=de.defaults.renderer||new Xi;for(const i in l.renderer){const o=c[i];c[i]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=l.renderer[i].apply(c,t);return r=!1===r?o.apply(c,t):r}}i.renderer=c}if(l.tokenizer){const c=de.defaults.tokenizer||new Ki;for(const i in l.tokenizer){const s=c[i];c[i]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=l.tokenizer[i].apply(c,t);return r=!1===r?s.apply(c,t):r}}i.tokenizer=c}if(l.hooks){const c=de.defaults.hooks||new no;for(const i in l.hooks){const a=c[i];no.passThroughHooks.has(i)?c[i]=e=>{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;n<e;n++)t[n]=arguments[n];let r=l.hooks[i].apply(c,t);return r=!1===r?a.apply(c,t):r}}i.hooks=c}if(l.walkTokens){const c=de.defaults.walkTokens;i.walkTokens=function(e){let t=[];return t.push(l.walkTokens.call(this,e)),t=c?t.concat(c.call(this,e)):t}}de.setOptions(i)})},de.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(de,r)),r.type){case"table":for(const e of r.header)n=n.concat(de.walkTokens(e.tokens,t));for(const e of r.rows)for(const l of e)n=n.concat(de.walkTokens(l.tokens,t));break;case"list":n=n.concat(de.walkTokens(r.items,t));break;default:de.defaults.extensions&&de.defaults.extensions.childTokens&&de.defaults.extensions.childTokens[r.type]?de.defaults.extensions.childTokens[r.type].forEach(function(e){n=n.concat(de.walkTokens(r[e],t))}):r.tokens&&(n=n.concat(de.walkTokens(r.tokens,t)))}return n},de.parseInline=ro(Ji.lexInline,to.parseInline),de.Parser=to,de.parser=to.parse,de.Renderer=Xi,de.TextRenderer=Yi,de.Lexer=Ji,de.lexer=Ji.lex,de.Tokenizer=Ki,de.Slugger=eo,de.Hooks=no,de.parse=de;function lo(){let n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").replace(/:(.+?):/g,(e,t)=>n[t]?`<img class="wl-emoji" src="${n[t]}" alt="${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]<s[3])){a.label=t[1];break}if(6===t[0]&&a.label<s[1]){a.label=s[1],s=t;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(t);break}s[2]&&a.ops.pop(),a.trys.pop();continue}t=l.call(r,a)}catch(e){t=[6,e],o=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},m=(Object.defineProperty(v,"__esModule",{value:!0}),v.ReCaptchaInstance=void 0,Eo.prototype.execute=function(t){return Ao(this,void 0,void 0,function(){return Ro(this,function(e){return[2,(this.recaptcha.enterprise||this.recaptcha).execute(this.recaptchaID,{action:t})]})})},Eo.prototype.getSiteKey=function(){return this.siteKey},Eo.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},Eo.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},Eo);function Eo(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}v.ReCaptchaInstance=m,Object.defineProperty(k,"__esModule",{value:!0}),k.getInstance=k.load=void 0;var zo,Lo,Io,To=v,w=((t=zo=zo||{})[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED",a.load=function(r,l){if(void 0===l&&(l={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(a.getLoadingState()===zo.LOADED)return a.instance.getSiteKey()===r?Promise.resolve(a.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(a.getLoadingState()===zo.LOADING)return r!==a.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(t,n){a.successfulLoadingConsumers.push(function(e){return t(e)}),a.errorLoadingRunnable.push(function(e){return n(e)})});a.instanceSiteKey=r,a.setLoadingState(zo.LOADING);var i=new a;return new Promise(function(n,e){i.loadScript(r,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters||{},l.customUrl).then(function(){a.setLoadingState(zo.LOADED);var e=i.doExplicitRender(grecaptcha,r,l.explicitRenderParameters||{},l.useEnterprise||!1),t=new To.ReCaptchaInstance(r,e,grecaptcha);a.successfulLoadingConsumers.forEach(function(e){return e(t)}),a.successfulLoadingConsumers=[],l.autoHideBadge&&t.hideBadge(),n(a.instance=t)}).catch(function(t){a.errorLoadingRunnable.forEach(function(e){return e(t)}),a.errorLoadingRunnable=[],e(t)})})},a.getInstance=function(){return a.instance},a.setLoadingState=function(e){a.loadingState=e},a.getLoadingState=function(){return null===a.loadingState?zo.NOT_LOADED:a.loadingState},a.prototype.loadScript=function(e,t,n,r,l){var i=this,o=(void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r={}),void 0===l&&(l=""),document.createElement("script")),s=(o.setAttribute("recaptcha-v3-script",""),"https://www.google.com/recaptcha/api.js"),t=(t&&(s=n?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),n&&(s="https://www.google.com/recaptcha/enterprise.js"),l&&(s=l),r.render&&(r.render=void 0),this.buildQueryString(r));return o.src=s+"?render=explicit"+t,new Promise(function(e,t){o.addEventListener("load",i.waitForScriptToLoad(function(){e(o)},n),!1),o.onerror=function(e){a.setLoadingState(zo.NOT_LOADED),t(e)},document.head.appendChild(o)})},a.prototype.buildQueryString=function(t){return Object.keys(t).length<1?"":"&"+Object.keys(t).filter(function(e){return!!t[e]}).map(function(e){return e+"="+t[e]}).join("&")},a.prototype.waitForScriptToLoad=function(e,t){var n=this;return function(){void 0===window.grecaptcha?setTimeout(function(){n.waitForScriptToLoad(e,t)},a.SCRIPT_LOAD_DELAY):(t?window.grecaptcha.enterprise:window.grecaptcha).ready(function(){e()})}},a.prototype.doExplicitRender=function(e,t,n,r){t={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?(r?e.enterprise:e).render(n.container,t):(r?e.enterprise:e).render(t)},a.loadingState=null,a.instance=null,a.instanceSiteKey=null,a.successfulLoadingConsumers=[],a.errorLoadingRunnable=[],a.SCRIPT_LOAD_DELAY=25,a);function a(){}k.load=w.load,k.getInstance=w.getInstance,n=$o,Object.defineProperty(n,"__esModule",{value:!0}),n.ReCaptchaInstance=n.getInstance=n.load=void 0,Lo=k,Object.defineProperty(n,"load",{enumerable:!0,get:function(){return Lo.load}}),Object.defineProperty(n,"getInstance",{enumerable:!0,get:function(){return Lo.getInstance}}),Io=v,Object.defineProperty(n,"ReCaptchaInstance",{enumerable:!0,get:function(){return Io.ReCaptchaInstance}});const jo={};let Oo=null;const Uo=()=>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<o.value.reaction.length),l=pe(()=>{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<arguments.length&&void 0!==arguments[0]&&arguments[0];a.value.length===c()&&!e||(a.value=(e=c(),new Array(e).fill(null).map(()=>[])),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<e?e:1},u=async e=>{var t;e>=r.items.length||(await On(),t=Array.from(o.value?.children||[]).reduce((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e),a.value[Number(t.dataset.index)].push(e),await u(e+1))},p=e=>{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<r.indexOf("nick")&&!a.nick)return m.value.nick?.focus(),alert(E.value.nickError);if(-1<r.indexOf("mail")&&!a.mail||a.mail&&(c=a.mail,!ve.test(c)))return m.value.mail?.focus(),alert(E.value.mailError);a.nick||(a.nick=E.value.anonymous)}var c,u;if(a.comment){if(!S.value)return alert(E.value.wordHint.replace("$0",n[0].toString()).replace("$1",n[1].toString()).replace("$2",x.value.toString()));a.comment=lo(a.comment,w.value.map),d.replyId&&d.rootId&&(a.pid=d.replyId,a.rid=d.rootId,a.at=d.replyUser),A.value=!0;try{l&&(a.recaptchaV3=await(e=>{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<arguments.length&&void 0!==e?e:si,n=2<arguments.length&&void 0!==t?t:{};const{immediate:r=!0,manual:l=!1,type:a="text/javascript",async:c=!0,crossOrigin:u,referrerPolicy:p,noModule:d,defer:h,document:f=di,attrs:g={}}=n,v=te(null);let m=null;function i(){return m=m||(i=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],new Promise((t,r)=>{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<arguments.length&&void 0!==t?t:{},a=si;const c=e=>{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<arguments.length&&void 0!==t?t:200,2<arguments.length&&void 0!==n?n:{}),e)}(e=>{_.list=[],R.value=!1,U(e)},300),q=(Yn([h,x],e=>{var[e,t]=e,e=e["wordLimit"];e?t<e[0]&&0!==e[0]?(C.value=e[0],S.value=!1):t>e[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<w.value.tabs.length?(oe(),se("div",Is,[(oe(!0),se(ie,null,hr(w.value.tabs,(e,t)=>(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"}=0<arguments.length&&void 0!==e?e:{},r=te(new Date),l=()=>r.value=new Date,i="requestAnimationFrame"===n?function(t,e){var n=1<arguments.length&&void 0!==e?e:{};const{immediate:r=!0,window:l=pi}=n,i=te(!1);let o=0,s=null;function a(e){i.value&&l&&(t({delta:e-(o||e),timestamp:e}),o=e,s=l.requestAnimationFrame(a))}function c(){!i.value&&l&&(i.value=!0,s=l.requestAnimationFrame(a))}function u(){i.value=!1,null!=s&&l&&(l.cancelAnimationFrame(s),s=null)}return r&&c(),ni(u),{isActive:sn(i),pause:u,resume:c}}(l,{immediate:!0}):function(t,e,n){let r=1<arguments.length&&void 0!==e?e:1e3,l=2<arguments.length&&void 0!==n?n:{};const{immediate:i=!0,immediateCallback:o=!1}=l;let s=null;const a=te(!1);function c(){s&&(clearInterval(s),s=null)}function u(){a.value=!1,c()}function p(){var e=ri(r);e<=0||(a.value=!0,o&&t(),c(),s=setInterval(t,e))}return i&&li&&p(),!ee(r)&&"function"!=typeof r||ni(Yn(r,()=>{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=3<arguments.length&&void 0!==r&&r,i=Bn||E;if(i){var o=i.type;if(e===ur){const e=function(e,t){var n=!(1<arguments.length&&void 0!==t)||t;return Z(e)?e.displayName||e.name:e.name||n&&e.__name}(o,!1);if(e&&(e===t||e===Ue(t)||e===Fe(Ue(t))))return o}i=dr(i[e]||o[e],t)||dr(i.appContext[e],t);return!i&&l?o:i}}(ur,e,!0,!0)||e;var e;return oe(),se("div",{id:n.comment.objectId,class:"wl-card-item"},[ae("div",Ps,[n.comment.avatar?(oe(),se("img",{key:0,src:n.comment.avatar},null,8,Fs)):ue("v-if",!0),n.comment.type?(oe(),Jr(ne(ko),{key:1})):ue("v-if",!0)]),ae("div",Vs,[ae("div",Ns,[i.value?(oe(),se("a",{key:0,class:"wl-nick",href:i.value,target:"_blank",rel:"nofollow noopener noreferrer"},J(n.comment.nick),9,Ds)):(oe(),se("span",Hs,J(n.comment.nick),1)),"administrator"===n.comment.type?(oe(),se("span",{key:2,class:"wl-badge",textContent:J(c.value.admin)},null,8,Bs)):ue("v-if",!0),n.comment.label?(oe(),se("span",{key:3,class:"wl-badge",textContent:J(n.comment.label)},null,8,Ws)):ue("v-if",!0),n.comment.sticky?(oe(),se("span",{key:4,class:"wl-badge",textContent:J(c.value.sticky)},null,8,qs)):ue("v-if",!0),void 0!==n.comment.level&&0<=n.comment.level?(oe(),se("span",{key:5,class:Q("wl-badge level"+n.comment.level),textContent:J(c.value["level"+n.comment.level]||"Level "+n.comment.level)},null,10,Zs)):ue("v-if",!0),ae("span",{class:"wl-time",textContent:J(u.value)},null,8,Ks),ae("div",Gs,[p.value||d.value?(oe(),se("button",{key:0,type:"button",class:"wl-edit",onClick:t[0]||(t[0]=()=>n.$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<arguments.length&&void 0!==t?t:{};const r=te(!1),{document:l=di,immediate:i=!0,manual:o=!1,id:s="vueuse_styletag_"+ ++ki}=n,a=te(e);let c=()=>{};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<i.value.length&&(i.value=i.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)};t=v;if(E){let e=E.provides;var R=E.parent&&E.parent.provides;(e=R===e?E.provides=Object.create(R):e).config=t}return sr(()=>{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<s.value?(oe(),se("div",ka,[ae("button",{type:"button",class:"wl-btn",onClick:h,textContent:J(p.value.more)},null,8,ba)])):ue("v-if",!0):(oe(),se("div",{key:1,class:"wl-empty",textContent:J(p.value.sofa)},null,8,wa))],64)),v.value.copyright?(oe(),se("div",xa,[ll(" Powered by "),_a,ll(" v"+J(ne("2.15.8")),1)])):ue("v-if",!0)]))}}),[["__file","WalineComment.vue"]]);const Sa=(n,e)=>{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=`<ul class="wl-user-${r}">${e.map((e,t)=>[`<li class="wl-user-item" aria-label="${e.nick}">`,e.link&&`<a href="${e.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${e.avatar}" alt="${e.nick}">`,`<span class="wl-user-badge">${t+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',e.nick,e.level&&`<span class="wl-badge">${n?n["level"+e.level]:"Level "+e.level}</span>`,e.label&&`<span class="wl-badge">${e.label}</span>`,"</div>",e.link&&e.link,"</div>",e.link&&"</a>","</li>"].filter(e=>e).join("")).join("")}</ul>`,{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=`<ul class="wl-recent-list">${e.map(e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>${e.comment}</li>`).join("")}</ul>`,{comments:e,destroy:()=>{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<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Object.entries(r).forEach(e=>{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});