@waline/client 2.3.1 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/component.esm.js +1 -1
  2. package/dist/component.esm.js.map +1 -1
  3. package/dist/component.js +1 -1
  4. package/dist/component.js.map +1 -1
  5. package/dist/legacy.d.ts +3 -8
  6. package/dist/legacy.js +1 -1
  7. package/dist/legacy.js.map +1 -1
  8. package/dist/pageview.cjs.d.ts +47 -0
  9. package/dist/pageview.cjs.js +1 -1
  10. package/dist/pageview.cjs.js.map +1 -1
  11. package/dist/pageview.esm.d.ts +47 -0
  12. package/dist/pageview.esm.js +1 -1
  13. package/dist/pageview.esm.js.map +1 -1
  14. package/dist/pageview.js +1 -1
  15. package/dist/pageview.js.map +1 -1
  16. package/dist/shim.d.ts +45 -10
  17. package/dist/shim.esm.d.ts +45 -10
  18. package/dist/shim.esm.js +1 -1
  19. package/dist/shim.esm.js.map +1 -1
  20. package/dist/shim.js +1 -1
  21. package/dist/shim.js.map +1 -1
  22. package/dist/waline.cjs.d.ts +45 -10
  23. package/dist/waline.cjs.js +1 -1
  24. package/dist/waline.cjs.js.map +1 -1
  25. package/dist/waline.css +1 -1
  26. package/dist/waline.css.map +1 -1
  27. package/dist/waline.d.ts +45 -10
  28. package/dist/waline.esm.d.ts +45 -10
  29. package/dist/waline.esm.js +1 -1
  30. package/dist/waline.esm.js.map +1 -1
  31. package/dist/waline.js +1 -1
  32. package/dist/waline.js.map +1 -1
  33. package/package.json +20 -5
  34. package/src/components/CommentBox.vue +1 -3
  35. package/src/components/CommentCard.vue +80 -14
  36. package/src/components/Icons.ts +28 -2
  37. package/src/components/Waline.vue +220 -98
  38. package/src/composables/index.ts +1 -0
  39. package/src/composables/like.ts +14 -0
  40. package/src/composables/userInfo.ts +9 -1
  41. package/src/config/i18n/en.ts +2 -0
  42. package/src/config/i18n/generate.ts +2 -0
  43. package/src/config/i18n/jp.ts +2 -0
  44. package/src/config/i18n/pt-BR.ts +2 -0
  45. package/src/config/i18n/ru.ts +2 -0
  46. package/src/config/i18n/vi-VN.ts +2 -0
  47. package/src/config/i18n/zh-CN.ts +2 -0
  48. package/src/config/i18n/zh-TW.ts +2 -0
  49. package/src/styles/card.scss +55 -27
  50. package/src/styles/nomalize.scss +0 -1
  51. package/src/styles/panel.scss +0 -1
  52. package/src/typings/comment.ts +56 -1
  53. package/src/typings/locale.ts +3 -8
  54. package/src/utils/config.ts +1 -1
  55. package/src/utils/fetch.ts +77 -4
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=e=>new Promise(((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var e;return t((null===(e=r.result)||void 0===e?void 0:e.toString())||"")},r.onerror=n})),r=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',o=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),i=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],l={},s=e=>{let t=0;return e.replace(o,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"&lt;";let o;l[n]?o=l[n]:(o=i[t],l[n]=o);const s=`<span style="color: #${o}">${n}</span>`;return t=++t%i.length,s}))},a=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","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"],c=e=>Object.fromEntries(e.map(((e,t)=>[a[t],e])));var u=c(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","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"]),p=c(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),d=c(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说"]),f=c(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說"]),h=c(["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","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"]),g=c(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный"]);const m={zh:d,"zh-cn":d,"zh-CN":d,"zh-tw":f,"zh-TW":f,en:u,"en-US":u,"en-us":u,jp:p,"jp-jp":p,"jp-JP":p,"pt-br":h,"pt-BR":h,ru:g,"ru-ru":g,"ru-RU":g};function v(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const y=v("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function b(e){return!!e||""===e}function w(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=W(r)?x(r):w(r);if(o)for(const e in o)t[e]=o[e]}return t}return W(e)||Z(e)?e:void 0}const _=/;(?![^(]*\))/g,k=/:(.+)/;function x(e){const t={};return e.split(_).forEach((e=>{if(e){const n=e.split(k);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function S(e){let t="";if(W(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=S(e[n]);r&&(t+=r+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function $(e,t){if(e===t)return!0;let n=B(e),r=B(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=V(e),r=V(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=$(e[r],t[r]);return n}(e,t);if(n=Z(e),r=Z(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),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!$(e[n],t[n]))return!1}}return String(e)===String(t)}function E(e,t){return e.findIndex((e=>$(e,t)))}const C=e=>W(e)?e:null==e?"":V(e)||Z(e)&&(e.toString===J||!q(e.toString))?JSON.stringify(e,O,2):String(e),O=(e,t)=>t&&t.__v_isRef?O(e,t.value):F(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()]}:!Z(t)||V(t)||Y(t)?t:String(t),R={},z=[],A=()=>{},I=()=>!1,T=/^on[^a-z]/,L=e=>T.test(e),j=e=>e.startsWith("onUpdate:"),P=Object.assign,U=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},M=Object.prototype.hasOwnProperty,N=(e,t)=>M.call(e,t),V=Array.isArray,F=e=>"[object Map]"===Q(e),D=e=>"[object Set]"===Q(e),B=e=>e instanceof Date,q=e=>"function"==typeof e,W=e=>"string"==typeof e,H=e=>"symbol"==typeof e,Z=e=>null!==e&&"object"==typeof e,K=e=>Z(e)&&q(e.then)&&q(e.catch),J=Object.prototype.toString,Q=e=>J.call(e),Y=e=>"[object Object]"===Q(e),X=e=>W(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,G=v(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ee=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},te=/-(\w)/g,ne=ee((e=>e.replace(te,((e,t)=>t?t.toUpperCase():"")))),re=/\B([A-Z])/g,oe=ee((e=>e.replace(re,"-$1").toLowerCase())),ie=ee((e=>e.charAt(0).toUpperCase()+e.slice(1))),le=ee((e=>e?`on${ie(e)}`:"")),se=(e,t)=>!Object.is(e,t),ae=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ce=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ue=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let pe;const de=()=>pe||(pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});let fe;class he{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&fe&&(this.parent=fe,this.index=(fe.scopes||(fe.scopes=[])).push(this)-1)}run(e){if(this.active){const t=fe;try{return fe=this,e()}finally{fe=t}}}on(){fe=this}off(){fe=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const ge=e=>{const t=new Set(e);return t.w=0,t.n=0,t},me=e=>(e.w&we)>0,ve=e=>(e.n&we)>0,ye=new WeakMap;let be=0,we=1;let _e;const ke=Symbol(""),xe=Symbol("");class Se{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=fe){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=_e,t=Ee;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=_e,_e=this,Ee=!0,we=1<<++be,be<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=we})(this):$e(this),this.fn()}finally{be<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];me(o)&&!ve(o)?o.delete(e):t[n++]=o,o.w&=~we,o.n&=~we}t.length=n}})(this),we=1<<--be,_e=this.parent,Ee=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){_e===this?this.deferStop=!0:this.active&&($e(this),this.onStop&&this.onStop(),this.active=!1)}}function $e(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ee=!0;const Ce=[];function Oe(){Ce.push(Ee),Ee=!1}function Re(){const e=Ce.pop();Ee=void 0===e||e}function ze(e,t,n){if(Ee&&_e){let t=ye.get(e);t||ye.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=ge()),Ae(r)}}function Ae(e,t){let n=!1;be<=30?ve(e)||(e.n|=we,n=!me(e)):n=!e.has(_e),n&&(e.add(_e),_e.deps.push(e))}function Ie(e,t,n,r,o,i){const l=ye.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&V(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(l.get(n)),t){case"add":V(e)?X(n)&&s.push(l.get("length")):(s.push(l.get(ke)),F(e)&&s.push(l.get(xe)));break;case"delete":V(e)||(s.push(l.get(ke)),F(e)&&s.push(l.get(xe)));break;case"set":F(e)&&s.push(l.get(ke))}if(1===s.length)s[0]&&Te(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Te(ge(e))}}function Te(e,t){for(const t of V(e)?e:[...e])(t!==_e||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Le=v("__proto__,__v_isRef,__isVue"),je=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(H)),Pe=Fe(),Ue=Fe(!1,!0),Me=Fe(!0),Ne=Ve();function Ve(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=$t(this);for(let e=0,t=this.length;e<t;e++)ze(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map($t)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Oe();const n=$t(this)[t].apply(this,e);return Re(),n}})),e}function Fe(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?mt:gt:t?ht:ft).get(n))return n;const i=V(n);if(!e&&i&&N(Ne,r))return Reflect.get(Ne,r,o);const l=Reflect.get(n,r,o);if(H(r)?je.has(r):Le(r))return l;if(e||ze(n,0,r),t)return l;if(At(l)){return!i||!X(r)?l.value:l}return Z(l)?e?bt(l):yt(l):l}}function De(e=!1){return function(t,n,r,o){let i=t[n];if(kt(i)&&At(i)&&!At(r))return!1;if(!e&&!kt(r)&&(xt(r)||(r=$t(r),i=$t(i)),!V(t)&&At(i)&&!At(r)))return i.value=r,!0;const l=V(t)&&X(n)?Number(n)<t.length:N(t,n),s=Reflect.set(t,n,r,o);return t===$t(o)&&(l?se(r,i)&&Ie(t,"set",n,r):Ie(t,"add",n,r)),s}}const Be={get:Pe,set:De(),deleteProperty:function(e,t){const n=N(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ie(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return H(t)&&je.has(t)||ze(e,0,t),n},ownKeys:function(e){return ze(e,0,V(e)?"length":ke),Reflect.ownKeys(e)}},qe={get:Me,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},We=P({},Be,{get:Ue,set:De(!0)}),He=e=>e,Ze=e=>Reflect.getPrototypeOf(e);function Ke(e,t,n=!1,r=!1){const o=$t(e=e.__v_raw),i=$t(t);t!==i&&!n&&ze(o,0,t),!n&&ze(o,0,i);const{has:l}=Ze(o),s=r?He:n?Ot:Ct;return l.call(o,t)?s(e.get(t)):l.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function Je(e,t=!1){const n=this.__v_raw,r=$t(n),o=$t(e);return e!==o&&!t&&ze(r,0,e),!t&&ze(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function Qe(e,t=!1){return e=e.__v_raw,!t&&ze($t(e),0,ke),Reflect.get(e,"size",e)}function Ye(e){e=$t(e);const t=$t(this);return Ze(t).has.call(t,e)||(t.add(e),Ie(t,"add",e,e)),this}function Xe(e,t){t=$t(t);const n=$t(this),{has:r,get:o}=Ze(n);let i=r.call(n,e);i||(e=$t(e),i=r.call(n,e));const l=o.call(n,e);return n.set(e,t),i?se(t,l)&&Ie(n,"set",e,t):Ie(n,"add",e,t),this}function Ge(e){const t=$t(this),{has:n,get:r}=Ze(t);let o=n.call(t,e);o||(e=$t(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ie(t,"delete",e,void 0),i}function et(){const e=$t(this),t=0!==e.size,n=e.clear();return t&&Ie(e,"clear",void 0,void 0),n}function tt(e,t){return function(n,r){const o=this,i=o.__v_raw,l=$t(i),s=t?He:e?Ot:Ct;return!e&&ze(l,0,ke),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function nt(e,t,n){return function(...r){const o=this.__v_raw,i=$t(o),l=F(i),s="entries"===e||e===Symbol.iterator&&l,a="keys"===e&&l,c=o[e](...r),u=n?He:t?Ot:Ct;return!t&&ze(i,0,a?xe:ke),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function rt(e){return function(...t){return"delete"!==e&&this}}function ot(){const e={get(e){return Ke(this,e)},get size(){return Qe(this)},has:Je,add:Ye,set:Xe,delete:Ge,clear:et,forEach:tt(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return Qe(this)},has:Je,add:Ye,set:Xe,delete:Ge,clear:et,forEach:tt(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return Qe(this,!0)},has(e){return Je.call(this,e,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:tt(!0,!1)},r={get(e){return Ke(this,e,!0,!0)},get size(){return Qe(this,!0)},has(e){return Je.call(this,e,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:tt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=nt(o,!1,!1),n[o]=nt(o,!0,!1),t[o]=nt(o,!1,!0),r[o]=nt(o,!0,!0)})),[e,n,t,r]}const[it,lt,st,at]=ot();function ct(e,t){const n=t?e?at:st:e?lt:it;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(N(n,r)&&r in t?n:t,r,o)}const ut={get:ct(!1,!1)},pt={get:ct(!1,!0)},dt={get:ct(!0,!1)},ft=new WeakMap,ht=new WeakMap,gt=new WeakMap,mt=new WeakMap;function vt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>Q(e).slice(8,-1))(e))}function yt(e){return kt(e)?e:wt(e,!1,Be,ut,ft)}function bt(e){return wt(e,!0,qe,dt,gt)}function wt(e,t,n,r,o){if(!Z(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=vt(e);if(0===l)return e;const s=new Proxy(e,2===l?r:n);return o.set(e,s),s}function _t(e){return kt(e)?_t(e.__v_raw):!(!e||!e.__v_isReactive)}function kt(e){return!(!e||!e.__v_isReadonly)}function xt(e){return!(!e||!e.__v_isShallow)}function St(e){return _t(e)||kt(e)}function $t(e){const t=e&&e.__v_raw;return t?$t(t):e}function Et(e){return ce(e,"__v_skip",!0),e}const Ct=e=>Z(e)?yt(e):e,Ot=e=>Z(e)?bt(e):e;function Rt(e){Ee&&_e&&Ae((e=$t(e)).dep||(e.dep=ge()))}function zt(e,t){(e=$t(e)).dep&&Te(e.dep)}function At(e){return!(!e||!0!==e.__v_isRef)}function It(e){return Lt(e,!1)}function Tt(e){return Lt(e,!0)}function Lt(e,t){return At(e)?e:new jt(e,t)}class jt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:$t(e),this._value=t?e:Ct(e)}get value(){return Rt(this),this._value}set value(e){e=this.__v_isShallow?e:$t(e),se(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ct(e),zt(this))}}function Pt(e){return At(e)?e.value:e}const Ut={get:(e,t,n)=>Pt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return At(o)&&!At(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Mt(e){return _t(e)?e:new Proxy(e,Ut)}class Nt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Se(e,(()=>{this._dirty||(this._dirty=!0,zt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=$t(this);return Rt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Vt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){Dt(e,t,n)}return o}function Ft(e,t,n,r){if(q(e)){const o=Vt(e,t,n,r);return o&&K(o)&&o.catch((e=>{Dt(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(Ft(e[i],t,n,r));return o}function Dt(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const o=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const l=t.appContext.config.errorHandler;if(l)return void Vt(l,null,10,[e,o,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Bt=!1,qt=!1;const Wt=[];let Ht=0;const Zt=[];let Kt=null,Jt=0;const Qt=[];let Yt=null,Xt=0;const Gt=Promise.resolve();let en=null,tn=null;function nn(e){const t=en||Gt;return e?t.then(this?e.bind(this):e):t}function rn(e){Wt.length&&Wt.includes(e,Bt&&e.allowRecurse?Ht+1:Ht)||e===tn||(null==e.id?Wt.push(e):Wt.splice(function(e){let t=Ht+1,n=Wt.length;for(;t<n;){const r=t+n>>>1;cn(Wt[r])<e?t=r+1:n=r}return t}(e.id),0,e),on())}function on(){Bt||qt||(qt=!0,en=Gt.then(un))}function ln(e,t,n,r){V(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),on()}function sn(e,t=null){if(Zt.length){for(tn=t,Kt=[...new Set(Zt)],Zt.length=0,Jt=0;Jt<Kt.length;Jt++)Kt[Jt]();Kt=null,Jt=0,tn=null,sn(e,t)}}function an(e){if(Qt.length){const e=[...new Set(Qt)];if(Qt.length=0,Yt)return void Yt.push(...e);for(Yt=e,Yt.sort(((e,t)=>cn(e)-cn(t))),Xt=0;Xt<Yt.length;Xt++)Yt[Xt]();Yt=null,Xt=0}}const cn=e=>null==e.id?1/0:e.id;function un(e){qt=!1,Bt=!0,sn(e),Wt.sort(((e,t)=>cn(e)-cn(t)));try{for(Ht=0;Ht<Wt.length;Ht++){const e=Wt[Ht];e&&!1!==e.active&&Vt(e,null,14)}}finally{Ht=0,Wt.length=0,an(),Bt=!1,en=null,(Wt.length||Zt.length||Qt.length)&&un(e)}}let pn,dn=[],fn=!1;function hn(e,...t){pn?pn.emit(e,...t):fn||dn.push({event:e,args:t})}function gn(e,t){var n,r;if(pn=e,pn)pn.enabled=!0,dn.forEach((({event:e,args:t})=>pn.emit(e,...t))),dn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{gn(e,t)})),setTimeout((()=>{pn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,fn=!0,dn=[])}),3e3)}else fn=!0,dn=[]}const mn=bn("component:added"),vn=bn("component:updated"),yn=bn("component:removed");function bn(e){return t=>{hn(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function wn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||R;let o=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in r){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:i}=r[e]||R;i?o=n.map((e=>e.trim())):t&&(o=n.map(ue))}let s;__VUE_PROD_DEVTOOLS__&&function(e,t,n){hn("component:emit",e.appContext.app,e,t,n)}(e,t,o);let a=r[s=le(t)]||r[s=le(ne(t))];!a&&i&&(a=r[s=le(oe(t))]),a&&Ft(a,e,6,o);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Ft(c,e,6,o)}}function _n(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let l={},s=!1;if(__VUE_OPTIONS_API__&&!q(e)){const r=e=>{const n=_n(e,t,!0);n&&(s=!0,P(l,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||s?(V(i)?i.forEach((e=>l[e]=null)):P(l,i),r.set(e,l),l):(r.set(e,null),null)}function kn(e,t){return!(!e||!L(t))&&(t=t.slice(2).replace(/Once$/,""),N(e,t[0].toLowerCase()+t.slice(1))||N(e,oe(t))||N(e,t))}let xn=null,Sn=null;function $n(e){const t=xn;return xn=e,Sn=e&&e.type.__scopeId||null,t}function En(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:f,ctx:h,inheritAttrs:g}=e;let m,v;const y=$n(e);try{if(4&n.shapeFlag){const e=o||r;m=co(u.call(e,e,p,i,f,d,h)),v=a}else{const e=t;m=co(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:Cn(a)}}catch(t){Wr.length=0,Dt(t,e,1),m=io(Br)}let b=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(j)&&(v=On(v,l)),b=lo(b,v))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,$n(y),m}const Cn=e=>{let t;for(const n in e)("class"===n||"style"===n||L(n))&&((t||(t={}))[n]=e[n]);return t},On=(e,t)=>{const n={};for(const r in e)j(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Rn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!kn(n,i))return!0}return!1}function zn(e,t){if(wo){let n=wo.provides;const r=wo.parent&&wo.parent.provides;r===n&&(n=wo.provides=Object.create(r)),n[e]=t}else;}function An(e,t,n=!1){const r=wo||xn;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&q(t)?t.call(r.proxy):t}}function In(e,t){return jn(e,null,t)}const Tn={};function Ln(e,t,n){return jn(e,t,n)}function jn(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=R){const s=wo;let a,c,u=!1,p=!1;if(At(e)?(a=()=>e.value,u=xt(e)):_t(e)?(a=()=>e,r=!0):V(e)?(p=!0,u=e.some(_t),a=()=>e.map((e=>At(e)?e.value:_t(e)?Mn(e):q(e)?Vt(e,s,2):void 0))):a=q(e)?t?()=>Vt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Ft(e,s,3,[d])}:A,t&&r){const e=a;a=()=>Mn(e())}let d=e=>{c=m.onStop=()=>{Vt(e,s,4)}};if(So)return d=A,t?n&&Ft(t,s,3,[a(),p?[]:void 0,d]):a(),A;let f=p?[]:Tn;const h=()=>{if(m.active)if(t){const e=m.run();(r||u||(p?e.some(((e,t)=>se(e,f[t]))):se(e,f)))&&(c&&c(),Ft(t,s,3,[e,f===Tn?void 0:f,d]),f=e)}else m.run()};let g;h.allowRecurse=!!t,g="sync"===o?h:"post"===o?()=>Lr(h,s&&s.suspense):()=>{!s||s.isMounted?function(e){ln(e,Kt,Zt,Jt)}(h):h()};const m=new Se(a,g);return t?n?h():f=m.run():"post"===o?Lr(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&U(s.scope.effects,m)}}function Pn(e,t,n){const r=this.proxy,o=W(e)?e.includes(".")?Un(r,e):()=>r[e]:e.bind(r,r);let i;q(t)?i=t:(i=t.handler,n=t);const l=wo;_o(this);const s=jn(o,i.bind(r),n);return l?_o(l):ko(),s}function Un(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Mn(e,t){if(!Z(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),At(e))Mn(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)Mn(e[n],t);else if(D(e)||F(e))e.forEach((e=>{Mn(e,t)}));else if(Y(e))for(const n in e)Mn(e[n],t);return e}function Nn(e){return q(e)?{setup:e,name:e.name}:e}const Vn=e=>!!e.type.__asyncLoader,Fn=e=>e.type.__isKeepAlive;function Dn(e,t){qn(e,"a",t)}function Bn(e,t){qn(e,"da",t)}function qn(e,t,n=wo){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Hn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Fn(e.parent.vnode)&&Wn(r,t,n,e),e=e.parent}}function Wn(e,t,n,r){const o=Hn(t,e,r,!0);Gn((()=>{U(r[t],o)}),n)}function Hn(e,t,n=wo,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Oe(),_o(n);const o=Ft(t,n,e,r);return ko(),Re(),o});return r?o.unshift(i):o.push(i),i}}const Zn=e=>(t,n=wo)=>(!So||"sp"===e)&&Hn(e,t,n),Kn=Zn("bm"),Jn=Zn("m"),Qn=Zn("bu"),Yn=Zn("u"),Xn=Zn("bum"),Gn=Zn("um"),er=Zn("sp"),tr=Zn("rtg"),nr=Zn("rtc");function rr(e,t=wo){Hn("ec",e,t)}let or=!0;function ir(e){const t=ar(e),n=e.proxy,r=e.ctx;or=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:l,watch:s,provide:a,inject:c,created:u,beforeMount:p,mounted:d,beforeUpdate:f,updated:h,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:w,render:_,renderTracked:k,renderTriggered:x,errorCaptured:S,serverPrefetch:$,expose:E,inheritAttrs:C,components:O,directives:R,filters:z}=t;if(c&&function(e,t,n=A,r=!1){V(e)&&(e=dr(e));for(const n in e){const o=e[n];let i;i=Z(o)?"default"in o?An(o.from||n,o.default,!0):An(o.from||n):An(o),At(i)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(c,r,null,e.appContext.config.unwrapInjectedRef),l)for(const e in l){const t=l[e];q(t)&&(r[e]=t.bind(n))}if(o){const t=o.call(n,n);Z(t)&&(e.data=yt(t))}if(or=!0,i)for(const e in i){const t=i[e],o=q(t)?t.bind(n,n):q(t.get)?t.get.bind(n,n):A,l=!q(t)&&q(t.set)?t.set.bind(n):A,s=Oo({get:o,set:l});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(const e in s)sr(s[e],r,n,e);if(a){const e=q(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{zn(t,e[t])}))}function I(e,t){V(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&lr(u,e,"c"),I(Kn,p),I(Jn,d),I(Qn,f),I(Yn,h),I(Dn,g),I(Bn,m),I(rr,S),I(nr,k),I(tr,x),I(Xn,y),I(Gn,w),I(er,$),V(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});_&&e.render===A&&(e.render=_),null!=C&&(e.inheritAttrs=C),O&&(e.components=O),R&&(e.directives=R)}function lr(e,t,n){Ft(V(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function sr(e,t,n,r){const o=r.includes(".")?Un(n,r):()=>n[r];if(W(e)){const n=t[e];q(n)&&Ln(o,n)}else if(q(e))Ln(o,e.bind(n));else if(Z(e))if(V(e))e.forEach((e=>sr(e,t,n,r)));else{const r=q(e.handler)?e.handler.bind(n):t[e.handler];q(r)&&Ln(o,r,e)}}function ar(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,s=i.get(t);let a;return s?a=s:o.length||n||r?(a={},o.length&&o.forEach((e=>cr(a,e,l,!0))),cr(a,t,l)):a=t,i.set(t,a),a}function cr(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&cr(e,i,n,!0),o&&o.forEach((t=>cr(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=ur[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const ur={data:pr,props:hr,emits:hr,methods:hr,computed:hr,beforeCreate:fr,created:fr,beforeMount:fr,mounted:fr,beforeUpdate:fr,updated:fr,beforeDestroy:fr,beforeUnmount:fr,destroyed:fr,unmounted:fr,activated:fr,deactivated:fr,errorCaptured:fr,serverPrefetch:fr,components:hr,directives:hr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=P(Object.create(null),e);for(const r in t)n[r]=fr(e[r],t[r]);return n},provide:pr,inject:function(e,t){return hr(dr(e),dr(t))}};function pr(e,t){return t?e?function(){return P(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function dr(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function fr(e,t){return e?[...new Set([].concat(e,t))]:t}function hr(e,t){return e?P(P(Object.create(null),e),t):t}function gr(e,t,n,r=!1){const o={},i={};ce(i,to,1),e.propsDefaults=Object.create(null),mr(e,t,o,i);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:wt(o,!1,We,pt,ht):e.type.props?e.props=o:e.props=i,e.attrs=i}function mr(e,t,n,r){const[o,i]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(G(a))continue;const c=t[a];let u;o&&N(o,u=ne(a))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:kn(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(i){const t=$t(n),r=l||R;for(let l=0;l<i.length;l++){const s=i[l];n[s]=vr(o,t,s,r[s],e,!N(r,s))}}return s}function vr(e,t,n,r,o,i){const l=e[n];if(null!=l){const e=N(l,"default");if(e&&void 0===r){const e=l.default;if(l.type!==Function&&q(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(_o(o),r=i[n]=e.call(null,t),ko())}else r=e}l[0]&&(i&&!e?r=!1:!l[1]||""!==r&&r!==oe(n)||(r=!0))}return r}function yr(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,l={},s=[];let a=!1;if(__VUE_OPTIONS_API__&&!q(e)){const r=e=>{a=!0;const[n,r]=yr(e,t,!0);P(l,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!i&&!a)return r.set(e,z),z;if(V(i))for(let e=0;e<i.length;e++){const t=ne(i[e]);br(t)&&(l[t]=R)}else if(i)for(const e in i){const t=ne(e);if(br(t)){const n=i[e],r=l[t]=V(n)||q(n)?{type:n}:n;if(r){const e=kr(Boolean,r.type),n=kr(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||N(r,"default"))&&s.push(t)}}}const c=[l,s];return r.set(e,c),c}function br(e){return"$"!==e[0]}function wr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function _r(e,t){return wr(e)===wr(t)}function kr(e,t){return V(t)?t.findIndex((t=>_r(t,e))):q(t)&&_r(t,e)?0:-1}const xr=e=>"_"===e[0]||"$stable"===e,Sr=e=>V(e)?e.map(co):[co(e)],$r=(e,t,n)=>{const r=function(e,t=xn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Jr(-1);const o=$n(t),i=e(...n);return $n(o),r._d&&Jr(1),__VUE_PROD_DEVTOOLS__&&vn(t),i};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>Sr(t(...e))),n);return r._c=!1,r},Er=(e,t,n)=>{const r=e._ctx;for(const n in e){if(xr(n))continue;const o=e[n];if(q(o))t[n]=$r(0,o,r);else if(null!=o){const e=Sr(o);t[n]=()=>e}}},Cr=(e,t)=>{const n=Sr(t);e.slots.default=()=>n};function Or(e,t){const n=xn;if(null===n)return e;const r=Co(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,i,l,s=R]=t[e];q(n)&&(n={mounted:n,updated:n}),n.deep&&Mn(i),o.push({dir:n,instance:r,value:i,oldValue:void 0,arg:l,modifiers:s})}return e}function Rr(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let l=0;l<o.length;l++){const s=o[l];i&&(s.oldValue=i[l].value);let a=s.dir[r];a&&(Oe(),Ft(a,n,8,[e.el,s,e,t]),Re())}}function zr(){return{app:null,config:{isNativeTag:I,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 Ar=0;function Ir(e,t){return function(n,r=null){q(n)||(n=Object.assign({},n)),null==r||Z(r)||(r=null);const o=zr(),i=new Set;let l=!1;const s=o.app={_uid:Ar++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:zo,get config(){return o.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&q(e.install)?(i.add(e),e.install(s,...t)):q(e)&&(i.add(e),e(s,...t))),s),mixin:e=>(__VUE_OPTIONS_API__&&(o.mixins.includes(e)||o.mixins.push(e)),s),component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(i,a,c){if(!l){const u=io(n,r);return u.appContext=o,a&&t?t(u,i):e(u,i,c),l=!0,s._container=i,i.__vue_app__=s,__VUE_PROD_DEVTOOLS__&&(s._instance=u.component,function(e,t){hn("app:init",e,t,{Fragment:Fr,Text:Dr,Comment:Br,Static:qr})}(s,zo)),Co(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(e){hn("app:unmount",e)}(s)),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s)};return s}}function Tr(e,t,n,r,o=!1){if(V(e))return void e.forEach(((e,i)=>Tr(e,t&&(V(t)?t[i]:t),n,r,o)));if(Vn(r)&&!o)return;const i=4&r.shapeFlag?Co(r.component)||r.component.proxy:r.el,l=o?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===R?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(W(c)?(u[c]=null,N(p,c)&&(p[c]=null)):At(c)&&(c.value=null)),q(a))Vt(a,s,12,[l,u]);else{const t=W(a),r=At(a);if(t||r){const r=()=>{if(e.f){const n=t?u[a]:a.value;o?V(n)&&U(n,i):V(n)?n.includes(i)||n.push(i):t?(u[a]=[i],N(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=l,N(p,a)&&(p[a]=l)):At(a)&&(a.value=l,e.k&&(u[e.k]=l))};l?(r.id=-1,Lr(r,n)):r()}}}const Lr=function(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):ln(e,Yt,Qt,Xt)};function jr(e){return function(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(de().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(de().__VUE_PROD_DEVTOOLS__=!1);const n=de();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&gn(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:i,createElement:l,createText:s,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:d,setScopeId:f=A,cloneNode:h,insertStaticContent:g}=e,m=(e,t,n,r=null,o=null,i=null,l=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!eo(e,t)&&(r=Q(e),q(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Dr:v(e,t,n,r);break;case Br:y(e,t,n,r);break;case qr:null==e&&b(t,n,r,l);break;case Fr:I(e,t,n,r,o,i,l,s,a);break;default:1&p?k(e,t,n,r,o,i,l,s,a):6&p?T(e,t,n,r,o,i,l,s,a):(64&p||128&p)&&c.process(e,t,n,r,o,i,l,s,a,X)}null!=u&&o&&Tr(u,e&&e.ref,i,t||e,!t)},v=(e,t,n,o)=>{if(null==e)r(t.el=s(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},y=(e,t,n,o)=>{null==e?r(t.el=a(t.children||""),n,o):t.el=e.el},b=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},w=({el:e,anchor:t},n,o)=>{let i;for(;e&&e!==t;)i=d(e),r(e,n,o),e=i;r(t,n,o)},_=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),o(e),e=n;o(t)},k=(e,t,n,r,o,i,l,s,a)=>{l=l||"svg"===t.type,null==e?x(t,n,r,o,i,l,s,a):E(e,t,o,i,l,s,a)},x=(e,t,n,o,s,a,c,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:b,dirs:w}=e;if(e.el&&void 0!==h&&-1===b)d=e.el=h(e.el);else{if(d=e.el=l(e.type,a,m&&m.is,m),8&v?u(d,e.children):16&v&&$(e.children,d,null,o,s,a&&"foreignObject"!==g,c,p),w&&Rr(e,null,o,"created"),m){for(const t in m)"value"===t||G(t)||i(d,t,null,m[t],a,e.children,o,s,J);"value"in m&&i(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&fo(f,o,e)}S(d,e,e.scopeId,c,o)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:o,enumerable:!1})),w&&Rr(e,null,o,"beforeMount");const _=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;_&&y.beforeEnter(d),r(d,t,n),((f=m&&m.onVnodeMounted)||_||w)&&Lr((()=>{f&&fo(f,o,e),_&&y.enter(d),w&&Rr(e,null,o,"mounted")}),s)},S=(e,t,n,r,o)=>{if(n&&f(e,n),r)for(let t=0;t<r.length;t++)f(e,r[t]);if(o){if(t===o.subTree){const t=o.vnode;S(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},$=(e,t,n,r,o,i,l,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?uo(e[c]):co(e[c]);m(null,a,t,n,r,o,i,l,s)}},E=(e,t,n,r,o,l,s)=>{const a=t.el=e.el;let{patchFlag:c,dynamicChildren:p,dirs:d}=t;c|=16&e.patchFlag;const f=e.props||R,h=t.props||R;let g;n&&Pr(n,!1),(g=h.onVnodeBeforeUpdate)&&fo(g,n,t,e),d&&Rr(t,e,n,"beforeUpdate"),n&&Pr(n,!0);const m=o&&"foreignObject"!==t.type;if(p?C(e.dynamicChildren,p,a,n,r,m,l):s||V(e,t,a,null,n,r,m,l,!1),c>0){if(16&c)O(a,t,f,h,n,r,o);else if(2&c&&f.class!==h.class&&i(a,"class",null,h.class,o),4&c&&i(a,"style",f.style,h.style,o),8&c){const l=t.dynamicProps;for(let t=0;t<l.length;t++){const s=l[t],c=f[s],u=h[s];u===c&&"value"!==s||i(a,s,c,u,o,e.children,n,r,J)}}1&c&&e.children!==t.children&&u(a,t.children)}else s||null!=p||O(a,t,f,h,n,r,o);((g=h.onVnodeUpdated)||d)&&Lr((()=>{g&&fo(g,n,t,e),d&&Rr(t,e,n,"updated")}),r)},C=(e,t,n,r,o,i,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],u=a.el&&(a.type===Fr||!eo(a,c)||70&a.shapeFlag)?p(a.el):n;m(a,c,u,null,r,o,i,l,!0)}},O=(e,t,n,r,o,l,s)=>{if(n!==r){for(const a in r){if(G(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,s,t.children,o,l,J)}if(n!==R)for(const a in n)G(a)||a in r||i(e,a,n[a],null,s,t.children,o,l,J);"value"in r&&i(e,"value",n.value,r.value)}},I=(e,t,n,o,i,l,a,c,u)=>{const p=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(r(p,n,o),r(d,n,o),$(t.children,n,d,i,l,a,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(C(e.dynamicChildren,h,n,i,l,a,c),(null!=t.key||i&&t===i.subTree)&&Ur(e,t,!0)):V(e,t,n,d,i,l,a,c,u)},T=(e,t,n,r,o,i,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,l,a):L(t,n,r,o,i,l,a):j(e,t,a)},L=(e,t,n,r,o,i,l)=>{const s=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||yo,i={uid:bo++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new he(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yr(r,o),emitsOptions:_n(r,o),emit:null,emitted:null,propsDefaults:R,inheritAttrs:r.inheritAttrs,ctx:R,data:R,props:R,attrs:R,slots:R,refs:R,setupState:R,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i},i.root=t?t.root:i,i.emit=wn.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o);if(Fn(e)&&(s.ctx.renderer=X),function(e,t=!1){So=t;const{props:n,children:r}=e.vnode,o=xo(e);gr(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=$t(t),ce(t,"_",n)):Er(t,e.slots={})}else e.slots={},t&&Cr(e,t);ce(e.slots,to,1)})(e,r);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Et(new Proxy(e.ctx,vo));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(ze(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;_o(e),Oe();const o=Vt(r,e,0,[e.props,n]);if(Re(),ko(),K(o)){if(o.then(ko,ko),t)return o.then((n=>{$o(e,n,t)})).catch((t=>{Dt(t,e,0)}));e.asyncDep=o}else $o(e,o,t)}else Eo(e,t)}(e,t):void 0;So=!1}(s),s.asyncDep){if(o&&o.registerDep(s,U),!e.el){const e=s.subTree=io(Br);y(null,e,t,n)}}else U(s,e,t,n,o,i,l)},j=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:l,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!s||s&&s.$stable)||r!==l&&(r?!l||Rn(r,l,c):!!l);if(1024&a)return!0;if(16&a)return r?Rn(r,l,c):!!l;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==r[n]&&!kn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void M(r,t,n);r.next=t,function(e){const t=Wt.indexOf(e);t>Ht&&Wt.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},U=(e,t,n,r,o,i,l)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,u=n;Pr(e,!1),n?(n.el=c.el,M(e,n,l)):n=c,r&&ae(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&fo(t,a,n,c),Pr(e,!0);const d=En(e),f=e.subTree;e.subTree=d,m(f,d,p(f.el),Q(f),e,o,i),n.el=d.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),s&&Lr(s,o),(t=n.props&&n.props.onVnodeUpdated)&&Lr((()=>fo(t,a,n,c)),o),__VUE_PROD_DEVTOOLS__&&vn(e)}else{let l;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=Vn(t);if(Pr(e,!1),c&&ae(c),!d&&(l=a&&a.onVnodeBeforeMount)&&fo(l,p,t),Pr(e,!0),s&&te){const n=()=>{e.subTree=En(e),te(s,e.subTree,e,o,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=En(e);m(null,l,n,r,e,o,i),t.el=l.el}if(u&&Lr(u,o),!d&&(l=a&&a.onVnodeMounted)){const e=t;Lr((()=>fo(l,p,e)),o)}256&t.shapeFlag&&e.a&&Lr(e.a,o),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&mn(e),t=n=r=null}},a=e.effect=new Se(s,(()=>rn(e.update)),e.scope),c=e.update=a.run.bind(a);c.id=e.uid,Pr(e,!0),c()},M=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,s=$t(o),[a]=e.propsOptions;let c=!1;if(!(r||l>0)||16&l){let r;mr(e,t,o,i)&&(c=!0);for(const i in s)t&&(N(t,i)||(r=oe(i))!==i&&N(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(o[i]=vr(a,s,i,void 0,e,!0)):delete o[i]);if(i!==s)for(const e in i)t&&N(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let l=n[r];if(kn(e.emitsOptions,l))continue;const u=t[l];if(a)if(N(i,l))u!==i[l]&&(i[l]=u,c=!0);else{const t=ne(l);o[t]=vr(a,s,t,u,e,!1)}else u!==i[l]&&(i[l]=u,c=!0)}}c&&Ie(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=R;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(P(o,t),n||1!==e||delete o._):(i=!t.$stable,Er(t,o)),l=t}else t&&(Cr(e,t),l={default:1});if(i)for(const e in o)xr(e)||e in l||delete o[e]})(e,t.children,n),Oe(),sn(void 0,e.update),Re()},V=(e,t,n,r,o,i,l,s,a=!1)=>{const c=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void D(c,d,n,r,o,i,l,s,a);if(256&f)return void F(c,d,n,r,o,i,l,s,a)}8&h?(16&p&&J(c,o,i),d!==c&&u(n,d)):16&p?16&h?D(c,d,n,r,o,i,l,s,a):J(c,o,i,!0):(8&p&&u(n,""),16&h&&$(d,n,r,o,i,l,s,a))},F=(e,t,n,r,o,i,l,s,a)=>{t=t||z;const c=(e=e||z).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?uo(t[d]):co(t[d]);m(e[d],r,n,null,o,i,l,s,a)}c>u?J(e,o,i,!0,!1,p):$(t,n,r,o,i,l,s,a,p)},D=(e,t,n,r,o,i,l,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const r=e[c],u=t[c]=a?uo(t[c]):co(t[c]);if(!eo(r,u))break;m(r,u,n,null,o,i,l,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?uo(t[d]):co(t[d]);if(!eo(r,c))break;m(r,c,n,null,o,i,l,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)m(null,t[c]=a?uo(t[c]):co(t[c]),n,p,o,i,l,s,a),c++}}else if(c>d)for(;c<=p;)q(e[c],o,i,!0),c++;else{const f=c,h=c,g=new Map;for(c=h;c<=d;c++){const e=t[c]=a?uo(t[c]):co(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const b=d-h+1;let w=!1,_=0;const k=new Array(b);for(c=0;c<b;c++)k[c]=0;for(c=f;c<=p;c++){const r=e[c];if(y>=b){q(r,o,i,!0);continue}let u;if(null!=r.key)u=g.get(r.key);else for(v=h;v<=d;v++)if(0===k[v-h]&&eo(r,t[v])){u=v;break}void 0===u?q(r,o,i,!0):(k[u-h]=c+1,u>=_?_=u:w=!0,m(r,t[u],n,null,o,i,l,s,a),y++)}const x=w?function(e){const t=e.slice(),n=[0];let r,o,i,l,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(o=n[n.length-1],e[o]<a){t[r]=o,n.push(r);continue}for(i=0,l=n.length-1;i<l;)s=i+l>>1,e[n[s]]<a?i=s+1:l=s;a<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,l=n[i-1];for(;i-- >0;)n[i]=l,l=t[l];return n}(k):z;for(v=x.length-1,c=b-1;c>=0;c--){const e=h+c,p=t[e],d=e+1<u?t[e+1].el:r;0===k[c]?m(null,p,n,d,o,i,l,s,a):w&&(v<0||c!==x[v]?B(p,n,d,2):v--)}}},B=(e,t,n,o,i=null)=>{const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void B(e.component.subTree,t,n,o);if(128&u)return void e.suspense.move(t,n,o);if(64&u)return void s.move(e,t,n,X);if(s===Fr){r(l,t,n);for(let e=0;e<c.length;e++)B(c[e],t,n,o);return void r(e.anchor,t,n)}if(s===qr)return void w(e,t,n);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(l),r(l,t,n),Lr((()=>a.enter(l)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=a,s=()=>r(l,t,n),c=()=>{e(l,(()=>{s(),i&&i()}))};o?o(l,s,c):c()}else r(l,t,n)},q=(e,t,n,r=!1,o=!1)=>{const{type:i,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&Tr(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,h=!Vn(e);let g;if(h&&(g=l&&l.onVnodeBeforeUnmount)&&fo(g,t,e),6&u)Z(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&Rr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,X,r):c&&(i!==Fr||p>0&&64&p)?J(c,t,n,!1,!0):(i===Fr&&384&p||!o&&16&u)&&J(a,t,n),r&&W(e)}(h&&(g=l&&l.onVnodeUnmounted)||f)&&Lr((()=>{g&&fo(g,t,e),f&&Rr(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Fr)return void H(n,r);if(t===qr)return void _(e);const l=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,l);r?r(e.el,l,o):o()}else l()},H=(e,t)=>{let n;for(;e!==t;)n=d(e),o(e),e=n;o(t)},Z=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:l,um:s}=e;r&&ae(r),o.stop(),i&&(i.active=!1,q(l,e,t,n)),s&&Lr(s,t),Lr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&yn(e)},J=(e,t,n,r=!1,o=!1,i=0)=>{for(let l=i;l<e.length;l++)q(e[l],t,n,r,o)},Q=e=>6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),an(),t._vnode=e},X={p:m,um:q,m:B,r:W,mt:L,mc:$,pc:V,pbc:C,n:Q,o:e};let ee,te;t&&([ee,te]=t(X));return{render:Y,hydrate:ee,createApp:Ir(Y,ee)}}(e)}function Pr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ur(e,t,n=!1){const r=e.children,o=t.children;if(V(r)&&V(o))for(let e=0;e<r.length;e++){const t=r[e];let i=o[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=o[e]=uo(o[e]),i.el=t.el),n||Ur(t,i))}}function Mr(e,t){return function(e,t,n=!0,r=!1){const o=xn||wo;if(o){const n=o.type;if("components"===e){const e=function(e){return q(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===ne(t)||e===ie(ne(t))))return n}const i=Vr(o[e]||n[e],t)||Vr(o.appContext[e],t);return!i&&r?n:i}}("components",e,!0,t)||e}const Nr=Symbol();function Vr(e,t){return e&&(e[t]||e[ne(t)]||e[ie(ne(t))])}const Fr=Symbol(void 0),Dr=Symbol(void 0),Br=Symbol(void 0),qr=Symbol(void 0),Wr=[];let Hr=null;function Zr(e=!1){Wr.push(Hr=e?null:[])}let Kr=1;function Jr(e){Kr+=e}function Qr(e){return e.dynamicChildren=Kr>0?Hr||z:null,Wr.pop(),Hr=Wr[Wr.length-1]||null,Kr>0&&Hr&&Hr.push(e),e}function Yr(e,t,n,r,o,i){return Qr(oo(e,t,n,r,o,i,!0))}function Xr(e,t,n,r,o){return Qr(io(e,t,n,r,o,!0))}function Gr(e){return!!e&&!0===e.__v_isVNode}function eo(e,t){return e.type===t.type&&e.key===t.key}const to="__vInternal",no=({key:e})=>null!=e?e:null,ro=({ref:e,ref_key:t,ref_for:n})=>null!=e?W(e)||At(e)||q(e)?{i:xn,r:e,k:t,f:!!n}:e:null;function oo(e,t=null,n=null,r=0,o=null,i=(e===Fr?0:1),l=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&ro(t),scopeId:Sn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return s?(po(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=W(n)?8:16),Kr>0&&!l&&Hr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Hr.push(a),a}const io=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==Nr||(e=Br);if(Gr(e)){const r=lo(e,t,!0);return n&&po(r,n),r}l=e,q(l)&&"__vccOpts"in l&&(e=e.__vccOpts);var l;if(t){t=function(e){return e?St(e)||to in e?P({},e):e:null}(t);let{class:e,style:n}=t;e&&!W(e)&&(t.class=S(e)),Z(n)&&(St(n)&&!V(n)&&(n=P({},n)),t.style=w(n))}const s=W(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Z(e)?4:q(e)?2:0;return oo(e,t,n,r,o,s,i,!0)};function lo(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,s=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=S([t.class,r.class]));else if("style"===e)t.style=w([t.style,r.style]);else if(L(e)){const n=t[e],o=r[e];!o||n===o||V(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&no(s),ref:t&&t.ref?n&&o?V(o)?o.concat(ro(t)):[o,ro(t)]:ro(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&lo(e.ssContent),ssFallback:e.ssFallback&&lo(e.ssFallback),el:e.el,anchor:e.anchor}}function so(e=" ",t=0){return io(Dr,null,e,t)}function ao(e="",t=!1){return t?(Zr(),Xr(Br,null,e)):io(Br,null,e)}function co(e){return null==e||"boolean"==typeof e?io(Br):V(e)?io(Fr,null,e.slice()):"object"==typeof e?uo(e):io(Dr,null,String(e))}function uo(e){return null===e.el||e.memo?e:lo(e)}function po(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(V(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),po(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||to in t?3===r&&xn&&(1===xn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=xn}}else q(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),64&r?(n=16,t=[so(t)]):n=8);e.children=t,e.shapeFlag|=n}function fo(e,t,n,r=null){Ft(e,t,7,[n,r])}function ho(e,t,n,r){let o;const i=n&&n[r];if(V(e)||W(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,i&&i[n])}else if(Z(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,l=n.length;r<l;r++){const l=n[r];o[r]=t(e[l],l,r,i&&i[r])}}else o=[];return n&&(n[r]=o),o}const go=e=>e?xo(e)?Co(e)||e.proxy:go(e.parent):null,mo=P(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=>go(e.parent),$root:e=>go(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?ar(e):e.type,$forceUpdate:e=>()=>rn(e.update),$nextTick:e=>nn.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?Pn.bind(e):A}),vo={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(r!==R&&N(r,t))return l[t]=1,r[t];if(o!==R&&N(o,t))return l[t]=2,o[t];if((c=e.propsOptions[0])&&N(c,t))return l[t]=3,i[t];if(n!==R&&N(n,t))return l[t]=4,n[t];__VUE_OPTIONS_API__&&!or||(l[t]=0)}}const u=mo[t];let p,d;return u?("$attrs"===t&&ze(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==R&&N(n,t)?(l[t]=4,n[t]):(d=a.config.globalProperties,N(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return o!==R&&N(o,t)?(o[t]=n,!0):r!==R&&N(r,t)?(r[t]=n,!0):!N(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},l){let s;return!!n[l]||e!==R&&N(e,l)||t!==R&&N(t,l)||(s=i[0])&&N(s,l)||N(r,l)||N(mo,l)||N(o.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:N(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},yo=zr();let bo=0;let wo=null;const _o=e=>{wo=e,e.scope.on()},ko=()=>{wo&&wo.scope.off(),wo=null};function xo(e){return 4&e.vnode.shapeFlag}let So=!1;function $o(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Mt(t)),Eo(e,n)}function Eo(e,t,n){const r=e.type;e.render||(e.render=r.render||A),__VUE_OPTIONS_API__&&(_o(e),Oe(),ir(e),Re(),ko())}function Co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Mt(Et(e.exposed)),{get:(t,n)=>n in t?t[n]:n in mo?mo[n](e):void 0}))}const Oo=(e,t)=>function(e,t,n=!1){let r,o;const i=q(e);return i?(r=e,o=A):(r=e.get,o=e.set),new Nt(r,o,i||!o,n)}(e,0,So);function Ro(e,t,n){const r=arguments.length;return 2===r?Z(t)&&!V(t)?Gr(t)?io(e,null,[t]):io(e,t):io(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Gr(n)&&(n=[n]),io(e,t,n))}const zo="3.2.33",Ao="undefined"!=typeof document?document:null,Io=Ao&&Ao.createElement("template"),To={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 o=t?Ao.createElementNS("http://www.w3.org/2000/svg",e):Ao.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Ao.createTextNode(e),createComment:e=>Ao.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ao.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,i){const l=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{Io.innerHTML=r?`<svg>${e}</svg>`:e;const o=Io.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Lo=/\s*!important$/;function jo(e,t,n){if(V(n))n.forEach((n=>jo(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Uo[t];if(n)return n;let r=ne(t);if("filter"!==r&&r in e)return Uo[t]=r;r=ie(r);for(let n=0;n<Po.length;n++){const o=Po[n]+r;if(o in e)return Uo[t]=o}return t}(e,t);Lo.test(n)?e.setProperty(oe(r),n.replace(Lo,""),"important"):e[r]=n}}const Po=["Webkit","Moz","ms"],Uo={};const Mo="http://www.w3.org/1999/xlink";const[No,Vo]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Fo=0;const Do=Promise.resolve(),Bo=()=>{Fo=0};function qo(e,t,n,r){e.addEventListener(t,n,r)}function Wo(e,t,n,r,o=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[n,s]=function(e){let t;if(Ho.test(e)){let n;for(t={};n=e.match(Ho);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[oe(e.slice(2)),t]}(t);if(r){const l=i[t]=function(e,t){const n=e=>{const r=e.timeStamp||No();(Vo||r>=n.attached-1)&&Ft(function(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Fo||(Do.then(Bo),Fo=No()))(),n}(r,o);qo(e,n,l,s)}else l&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,l,s),i[t]=void 0)}}const Ho=/(?:Once|Passive|Capture)$/;const Zo=/^on[a-z]/;const Ko=e=>{const t=e.props["onUpdate:modelValue"];return V(t)?e=>ae(t,e):t};function Jo(e){e.target.composing=!0}function Qo(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}(t,"input"))}const Yo={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Ko(o);const i=r||o.props&&"number"===o.props.type;qo(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():i&&(r=ue(r)),e._assign(r)})),n&&qo(e,"change",(()=>{e.value=e.value.trim()})),t||(qo(e,"compositionstart",Jo),qo(e,"compositionend",Qo),qo(e,"change",Qo))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=Ko(i),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&ue(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},Xo={deep:!0,created(e,t,n){e._assign=Ko(n),qo(e,"change",(()=>{const t=e._modelValue,n=ri(e),r=e.checked,o=e._assign;if(V(t)){const e=E(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),o(n)}}else if(D(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(oi(e,r))}))},mounted:Go,beforeUpdate(e,t,n){e._assign=Ko(n),Go(e,t,n)}};function Go(e,{value:t,oldValue:n},r){e._modelValue=t,V(t)?e.checked=E(t,r.props.value)>-1:D(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=$(t,oi(e,!0)))}const ei={created(e,{value:t},n){e.checked=$(t,n.props.value),e._assign=Ko(n),qo(e,"change",(()=>{e._assign(ri(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Ko(r),t!==n&&(e.checked=$(t,r.props.value))}},ti={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=D(t);qo(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ue(ri(e)):ri(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=Ko(r)},mounted(e,{value:t}){ni(e,t)},beforeUpdate(e,t,n){e._assign=Ko(n)},updated(e,{value:t}){ni(e,t)}};function ni(e,t){const n=e.multiple;if(!n||V(t)||D(t)){for(let r=0,o=e.options.length;r<o;r++){const o=e.options[r],i=ri(o);if(n)V(t)?o.selected=E(t,i)>-1:o.selected=t.has(i);else if($(ri(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ri(e){return"_value"in e?e._value:e.value}function oi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ii={created(e,t,n){li(e,t,n,null,"created")},mounted(e,t,n){li(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){li(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){li(e,t,n,r,"updated")}};function li(e,t,n,r,o){let i;switch(e.tagName){case"SELECT":i=ti;break;case"TEXTAREA":i=Yo;break;default:switch(n.props&&n.props.type){case"checkbox":i=Xo;break;case"radio":i=ei;break;default:i=Yo}}const l=i[o];l&&l(e,t,n,r)}const si={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ai(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ai(e,!0),r.enter(e)):r.leave(e,(()=>{ai(e,!1)})):ai(e,t))},beforeUnmount(e,{value:t}){ai(e,t)}};function ai(e,t){e.style.display=t?e._vod:"none"}const ci=P({patchProp:(e,t,n,r,o=!1,i,l,s,a)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,o):"style"===t?function(e,t,n){const r=e.style,o=W(n);if(n&&!o){for(const e in n)jo(r,e,n[e]);if(t&&!W(t))for(const e in t)null==n[e]&&jo(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,n,r):L(t)?j(t)||Wo(e,t,0,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Zo.test(t)&&q(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Zo.test(t)&&W(n))return!1;return t in e}(e,t,r,o))?function(e,t,n,r,o,i,l){if("innerHTML"===t||"textContent"===t)return r&&l(r,o,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=b(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,i,l,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Mo,t.slice(6,t.length)):e.setAttributeNS(Mo,t,n);else{const r=y(t);null==n||r&&!b(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,o))}},To);let ui;const pi=(...e)=>{const t=(ui||(ui=jr(ci))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(W(e)){return document.querySelector(e)}return e}(e);if(!r)return;const o=t._component;q(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function di(e){return!!fe&&(function(e){fe&&fe.cleanups.push(e)}(e),!0)}const fi="undefined"!=typeof window,hi=()=>{};const gi=e=>e();var mi=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,yi=Object.prototype.propertyIsEnumerable;function bi(e,t,n={}){const r=n,{eventFilter:o=gi}=r,i=((e,t)=>{var n={};for(var r in e)vi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mi)for(var r of mi(e))t.indexOf(r)<0&&yi.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return Ln(e,(l=o,s=t,function(...e){l((()=>s.apply(this,e)),{fn:s,thisArg:this,args:e})}),i);var l,s}var wi=Object.defineProperty,_i=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,xi=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,Ei=(e,t,n)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Ci(e,t,n={}){const r=n,{eventFilter:o}=r,i=((e,t)=>{var n={};for(var r in e)Si.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xi)for(var r of xi(e))t.indexOf(r)<0&&$i.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:l,pause:s,resume:a,isActive:c}=function(e=gi){const t=It(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(o),u=bi(e,t,(p=((e,t)=>{for(var n in t||(t={}))Si.call(t,n)&&Ei(e,n,t[n]);if(xi)for(var n of xi(t))$i.call(t,n)&&Ei(e,n,t[n]);return e})({},i),_i(p,ki({eventFilter:l}))));var p;return{stop:u,pause:s,resume:a,isActive:c}}const Oi=fi?window:void 0,Ri=fi?window.document:void 0;function zi(...e){let t,n,r,o;if("string"==typeof e[0]?([n,r,o]=e,t=Oi):[t,n,r,o]=e,!t)return hi;let i=hi;const l=Ln((()=>function(e){var t;const n=Pt(e);return null!=(t=null==n?void 0:n.$el)?t:n}(t)),(e=>{i(),e&&(e.addEventListener(n,r,o),i=()=>{e.removeEventListener(n,r,o),i=hi})}),{immediate:!0,flush:"post"}),s=()=>{l(),i()};return di(s),s}fi&&window.navigator,fi&&window.location;const Ai="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ii="__vueuse_ssr_handlers__";Ai[Ii]=Ai[Ii]||{};const Ti=Ai[Ii];const Li={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function ji(e,t,n,r={}){var o;const{flush:i="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,shallow:c,window:u=Oi,eventFilter:p,onError:d=(e=>{console.error(e)})}=r,f=(c?Tt:It)(t);if(!n)try{n=function(e,t){return Ti[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Oi)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return f;const h=Pt(t),g=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}(h),m=null!=(o=r.serializer)?o:Li[g],{pause:v,resume:y}=Ci(f,(()=>function(t){try{null==t?n.removeItem(e):n.setItem(e,m.write(t))}catch(e){d(e)}}(f.value)),{flush:i,deep:l,eventFilter:p});return u&&s&&zi(u,"storage",b),b(),f;function b(t){t&&t.key!==e||(f.value=function(t){if(!t||t.key===e){v();try{const r=t?t.newValue:n.getItem(e);return null==r?(a&&null!==h&&n.setItem(e,m.write(h)),h):"string"!=typeof r?r:m.read(r)}catch(e){d(e)}finally{y()}}}(t))}}var Pi,Ui,Mi=Object.defineProperty,Ni=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,Di=(e,t,n)=>t in e?Mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Bi(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=It(new Date),o=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=Oi}=t,o=It(!1);let i=null;function l(){o.value&&r&&(e(),i=r.requestAnimationFrame(l))}function s(){!o.value&&r&&(o.value=!0,l())}function a(){o.value=!1,null!=i&&r&&(r.cancelAnimationFrame(i),i=null)}return n&&s(),di(a),{isActive:o,pause:a,resume:s}}(o,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let i=null;const l=It(!1);function s(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,s()}function c(){t<=0||(l.value=!0,o&&e(),s(),i=setInterval(e,Pt(t)))}r&&fi&&c(),At(t)&&di(Ln(t,(()=>{r&&fi&&c()})));return di(a),{isActive:l,pause:a,resume:c}}(o,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Vi.call(t,n)&&Di(e,n,t[n]);if(Ni)for(var n of Ni(t))Fi.call(t,n)&&Di(e,n,t[n]);return e})({now:r},i):r}fi&&(null==window?void 0:window.navigator)&&(null==(Pi=null==window?void 0:window.navigator)?void 0:Pi.platform)&&/iP(ad|hone|od)/.test(null==(Ui=null==window?void 0:window.navigator)?void 0:Ui.platform);let qi=0;const Wi=e=>{try{e=decodeURI(e)}catch(e){}return e},Hi=(e="")=>e.replace(/\/$/u,""),Zi=e=>/^(https?:)?\/\//.test(e),Ki=e=>{const t=Hi(e);return Zi(t)?t:`https://${t}`},Ji=e=>Array.isArray(e)?e:!!e&&[0,e],Qi=(e,t)=>"function"==typeof e?e:!1!==e&&t,Yi="{--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}",Xi=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Gi=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,o=t.getTime()-r.getTime(),i=Math.floor(o/864e5);if(0===i){const e=o%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:(e=>{const t=Xi(e.getDate(),2),n=Xi(e.getMonth()+1,2);return`${Xi(e.getFullYear(),2)}-${n}-${t}`})(r)},el=e=>{const t=ji("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const o={folder:e,...r};return n&&(t.value[e]=o),o}))},tl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,nl=e=>{"AbortError"!==e.name&&console.error(e.message)},rl=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},ol=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>rl(e,"visit count"))).then((e=>Array.isArray(e)?e:[e])),il=({serverURL:e,lang:t,path:n})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>rl(e,"visit count"))),ll=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,sl=e=>e.type.includes("image"),al=e=>{const t=Array.from(e).find(sl);return t?t.getAsFile():null};function cl(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let ul={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const pl=/[&<>"']/,dl=/[&<>"']/g,fl=/[<>"']|&(?!#?\w+;)/,hl=/[<>"']|&(?!#?\w+;)/g,gl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ml=e=>gl[e];function vl(e,t){if(t){if(pl.test(e))return e.replace(dl,ml)}else if(fl.test(e))return e.replace(hl,ml);return e}const yl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function bl(e){return e.replace(yl,((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 wl=/(^|[^\[])\^/g;function _l(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(wl,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const kl=/[^\w:]/g,xl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Sl(e,t,n){if(e){let e;try{e=decodeURIComponent(bl(n)).replace(kl,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!xl.test(n)&&(n=function(e,t){$l[" "+e]||(El.test(e)?$l[" "+e]=e+"/":$l[" "+e]=Il(e,"/",!0));const n=-1===(e=$l[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Cl,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Ol,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const $l={},El=/^[^:]+:\/*[^/]*$/,Cl=/^([^:]+:)[\s\S]*$/,Ol=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Rl={exec:function(){}};function zl(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Al(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function Il(e,t,n){const r=e.length;if(0===r)return"";let o=0;for(;o<r;){const i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.slice(0,r-o)}function Tl(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Ll(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function jl(e,t,n,r){const o=t.href,i=t.title?vl(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:l,tokens:r.inlineTokens(l,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:vl(l)}}class Pl{constructor(e){this.options=e||ul}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Il(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Il(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,l,s,a,c,u,p,d,f,h=t[1].trim();const g=h.length>1,m={type:"list",raw:"",ordered:g,start:g?+h.slice(0,-1):"",loose:!1,items:[]};h=g?`\\d{1,9}\\${h.slice(-1)}`:`\\${h}`,this.options.pedantic&&(h=g?h:"[*+-]");const v=new RegExp(`^( {0,3}${h})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),f=!0),!f){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c))&&!r.test(e);){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(o="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(l=0;l<y;l++){this.lexer.state.top=!1,m.items[l].tokens=this.lexer.blockTokens(m.items[l].text,[]);const e=m.items[l].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[l].loose=!0)}return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):vl(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Al(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,o,i,l=e.align.length;for(n=0;n<l;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(l=e.rows.length,n=0;n<l;n++)e.rows[n]=Al(e.rows[n],e.header.length).map((e=>({text:e})));for(l=e.header.length,r=0;r<l;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(l=e.rows.length,r=0;r<l;r++)for(i=e.rows[r],o=0;o<i.length;o++)i[o].tokens=[],this.lexer.inlineTokens(i[o].text,i[o].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:vl(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):vl(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Il(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,o=0;for(;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),jl(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return jl(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,l=n,s=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){l+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(l-=i,l>0)continue;if(i=Math.min(i,i+l+s),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=vl(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=vl(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=vl(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=vl(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=vl(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):vl(n[0]):n[0]:vl(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Ul={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Rl,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ul.def=_l(Ul.def).replace("label",Ul._label).replace("title",Ul._title).getRegex(),Ul.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ul.listItemStart=_l(/^( *)(bull) */).replace("bull",Ul.bullet).getRegex(),Ul.list=_l(Ul.list).replace(/bull/g,Ul.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ul.def.source+")").getRegex(),Ul._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",Ul._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ul.html=_l(Ul.html,"i").replace("comment",Ul._comment).replace("tag",Ul._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ul.paragraph=_l(Ul._paragraph).replace("hr",Ul.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",Ul._tag).getRegex(),Ul.blockquote=_l(Ul.blockquote).replace("paragraph",Ul.paragraph).getRegex(),Ul.normal=zl({},Ul),Ul.gfm=zl({},Ul.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ul.gfm.table=_l(Ul.gfm.table).replace("hr",Ul.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",Ul._tag).getRegex(),Ul.gfm.paragraph=_l(Ul._paragraph).replace("hr",Ul.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ul.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",Ul._tag).getRegex(),Ul.pedantic=zl({},Ul.normal,{html:_l("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ul._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:Rl,paragraph:_l(Ul.normal._paragraph).replace("hr",Ul.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ul.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Ml={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Rl,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:Rl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Nl(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 Vl(e){let t,n,r="";const o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Ml._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ml.punctuation=_l(Ml.punctuation).replace(/punctuation/g,Ml._punctuation).getRegex(),Ml.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ml.escapedEmSt=/\\\*|\\_/g,Ml._comment=_l(Ul._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ml.emStrong.lDelim=_l(Ml.emStrong.lDelim).replace(/punct/g,Ml._punctuation).getRegex(),Ml.emStrong.rDelimAst=_l(Ml.emStrong.rDelimAst,"g").replace(/punct/g,Ml._punctuation).getRegex(),Ml.emStrong.rDelimUnd=_l(Ml.emStrong.rDelimUnd,"g").replace(/punct/g,Ml._punctuation).getRegex(),Ml._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ml._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ml._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])?)+(?![-_])/,Ml.autolink=_l(Ml.autolink).replace("scheme",Ml._scheme).replace("email",Ml._email).getRegex(),Ml._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ml.tag=_l(Ml.tag).replace("comment",Ml._comment).replace("attribute",Ml._attribute).getRegex(),Ml._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ml._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ml._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ml.link=_l(Ml.link).replace("label",Ml._label).replace("href",Ml._href).replace("title",Ml._title).getRegex(),Ml.reflink=_l(Ml.reflink).replace("label",Ml._label).replace("ref",Ul._label).getRegex(),Ml.nolink=_l(Ml.nolink).replace("ref",Ul._label).getRegex(),Ml.reflinkSearch=_l(Ml.reflinkSearch,"g").replace("reflink",Ml.reflink).replace("nolink",Ml.nolink).getRegex(),Ml.normal=zl({},Ml),Ml.pedantic=zl({},Ml.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:_l(/^!?\[(label)\]\((.*?)\)/).replace("label",Ml._label).getRegex(),reflink:_l(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ml._label).getRegex()}),Ml.gfm=zl({},Ml.normal,{escape:_l(Ml.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ml.gfm.url=_l(Ml.gfm.url,"i").replace("email",Ml.gfm._extended_email).getRegex(),Ml.breaks=zl({},Ml.gfm,{br:_l(Ml.br).replace("{2,}","*").getRegex(),text:_l(Ml.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Fl{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ul,this.options.tokenizer=this.options.tokenizer||new Pl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Ul.normal,inline:Ml.normal};this.options.pedantic?(t.block=Ul.pedantic,t.inline=Ml.pedantic):this.options.gfm&&(t.block=Ul.gfm,this.options.breaks?t.inline=Ml.breaks:t.inline=Ml.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ul,inline:Ml}}static lex(e,t){return new Fl(t).lex(e)}static lexInline(e,t){return new Fl(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,o,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,o,i,l,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+Ll("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,i.index)+"["+Ll("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(s=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Vl))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Vl))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,Nl))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),l=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class Dl{constructor(e){this.options=e||ul}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+vl(r,!0)+'">'+(n?e:vl(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:vl(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=Sl(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+vl(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=Sl(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class Bl{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 ql{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Wl{constructor(e){this.options=e||ul,this.options.renderer=this.options.renderer||new Dl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Bl,this.slugger=new ql}static parse(e,t){return new Wl(t).parse(e)}static parseInline(e,t){return new Wl(t).parseInline(e)}parse(e,t=!0){let n,r,o,i,l,s,a,c,u,p,d,f,h,g,m,v,y,b,w,_="";const k=e.length;for(n=0;n<k;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(w=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))_+=w||"";else switch(p.type){case"space":continue;case"hr":_+=this.renderer.hr();continue;case"heading":_+=this.renderer.heading(this.parseInline(p.tokens),p.depth,bl(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":_+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",i=p.header.length,r=0;r<i;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",i=p.rows.length,r=0;r<i;r++){for(s=p.rows[r],a="",l=s.length,o=0;o<l;o++)a+=this.renderer.tablecell(this.parseInline(s[o].tokens),{header:!1,align:p.align[o]});u+=this.renderer.tablerow(a)}_+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),_+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,f=p.start,h=p.loose,i=p.items.length,u="",r=0;r<i;r++)m=p.items[r],v=m.checked,y=m.task,g="",m.task&&(b=this.renderer.checkbox(v),h?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=b+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=b+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:b}):g+=b),g+=this.parse(m.tokens,h),u+=this.renderer.listitem(g,y,v);_+=this.renderer.list(u,d,f);continue;case"html":_+=this.renderer.html(p.text);continue;case"paragraph":_+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<k&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);_+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return _}parseInline(e,t){t=t||this.renderer;let n,r,o,i="";const l=e.length;for(n=0;n<l;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(o=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=o||"";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}}function Hl(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),Tl(t=zl({},Hl.defaults,t||{})),n){const r=t.highlight;let o;try{o=Fl.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&Hl.walkTokens(o,t.walkTokens),i=Wl.parse(o,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,i)};if(!r||r.length<3)return i();if(delete t.highlight,!o.length)return i();let l=0;return Hl.walkTokens(o,(function(e){"code"===e.type&&(l++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&i()}))}),0))})),void(0===l&&i())}try{const n=Fl.lex(e,t);return t.walkTokens&&Hl.walkTokens(n,t.walkTokens),Wl.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+vl(e.message+"",!0)+"</pre>";throw e}}Hl.options=Hl.setOptions=function(e){var t;return zl(Hl.defaults,e),t=Hl.defaults,ul=t,Hl},Hl.getDefaults=cl,Hl.defaults=ul,Hl.use=function(...e){const t=zl({},...e),n=Hl.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Hl.defaults.renderer||new Dl;for(const t in e.renderer){const r=n[t];n[t]=(...o)=>{let i=e.renderer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.renderer=n}if(e.tokenizer){const n=Hl.defaults.tokenizer||new Pl;for(const t in e.tokenizer){const r=n[t];n[t]=(...o)=>{let i=e.tokenizer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.tokenizer=n}if(e.walkTokens){const n=Hl.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),Hl.setOptions(t)}))},Hl.walkTokens=function(e,t){for(const n of e)switch(t.call(Hl,n),n.type){case"table":for(const e of n.header)Hl.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Hl.walkTokens(n.tokens,t);break;case"list":Hl.walkTokens(n.items,t);break;default:Hl.defaults.extensions&&Hl.defaults.extensions.childTokens&&Hl.defaults.extensions.childTokens[n.type]?Hl.defaults.extensions.childTokens[n.type].forEach((function(e){Hl.walkTokens(n[e],t)})):n.tokens&&Hl.walkTokens(n.tokens,t)}},Hl.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");Tl(t=zl({},Hl.defaults,t||{}));try{const n=Fl.lexInline(e,t);return t.walkTokens&&Hl.walkTokens(n,t.walkTokens),Wl.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+vl(e.message+"",!0)+"</pre>";throw e}},Hl.Parser=Wl,Hl.parser=Wl.parse,Hl.Renderer=Dl,Hl.TextRenderer=Bl,Hl.Lexer=Fl,Hl.lexer=Fl.lex,Hl.Tokenizer=Pl,Hl.Slugger=ql,Hl.parse=Hl;const Zl=/\$.*?\$/,Kl=/^\$(.*?)\$/,Jl=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Ql=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Yl=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(Hl.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Jl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(Zl);return-1!==t?t:e.length},tokenizer(t){const n=Kl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Hl.use({extensions:e})}return Hl.parse(Ql(e,t))},Xl=e=>e.dataset.path||e.getAttribute("id"),Gl=()=>ji("USER_KEY",{}),es=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{var o;const i=new AbortController,l=document.querySelectorAll(n),s=Gl();return l.length&&(({serverURL:e,lang:t,paths:n,signal:r,token:o})=>{const i={};return o&&(i.Authorization=`Bearer ${o}`),fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:i}).then((e=>e.json())).then((e=>rl(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:Array.from(l).map((e=>Wi(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:i.signal,token:null===(o=s.value)||void 0===o?void 0:o.token}).then((e=>{l.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(nl),i.abort.bind(i)};var ts,ns,rs="function"==typeof Map?new Map:(ts=[],ns=[],{has:function(e){return ts.indexOf(e)>-1},get:function(e){return ns[ts.indexOf(e)]},set:function(e,t){-1===ts.indexOf(e)&&(ts.push(e),ns.push(t))},delete:function(e){var t=ts.indexOf(e);t>-1&&(ts.splice(t,1),ns.splice(t,1))}}),os=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(ts){os=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function is(e){var t=rs.get(e);t&&t.destroy()}function ls(e){var t=rs.get(e);t&&t.update()}var ss=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((ss=function(e){return e}).destroy=function(e){return e},ss.update=function(e){return e}):((ss=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!rs.has(e)){var t,n=null,r=null,o=null,i=function(){e.clientWidth!==r&&c()},l=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),rs.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",rs.set(e,{destroy:l,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=os("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],is),e},ss.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ls),e});var as=ss;const cs=({size:e})=>Ro("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Ro("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Ro("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var us=Nn({name:"CommentBox",components:{CloseIcon:({size:e})=>Ro("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Ro("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"}),Ro("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),EmojiIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Ro("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),ImageIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Ro("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"}),Ro("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"})]),MarkdownIcon:()=>Ro("svg",{width:"16",height:"16",ariaHidden:"true"},Ro("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),PreviewIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Ro("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"}),Ro("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),LoadingIcon:cs},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,{emit:t}){const n=An("config"),r=ji("WALINE_COMMENT_BOX_EDITOR",""),o=ji("WALINE_USER_META",{nick:"",mail:"",link:""}),i=Gl(),l=It({}),s=It(null),a=It(null),c=It(null),u=It(null),p=It({tabs:[],map:{}}),d=It(0),f=It(!1),h=It(!1),g=It(""),m=It(0),v=It(0),y=It(!1),b=It(""),w=It(!1),_=Oo((()=>n.value.locale)),k=Oo((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),x=Oo((()=>!1!==n.value.imageUploader)),S=e=>{const t=s.value,n=t.selectionStart,o=t.selectionEnd||0,i=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},$=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return S(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n![${e.name}](${n})`)}))},E=()=>{var a,c,u,d,f;const{serverURL:h,lang:v,login:k,wordLimit:x,requiredMeta:S}=n.value,$={comment:b.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,ua:navigator.userAgent,url:n.value.path};if(null===(a=i.value)||void 0===a?void 0:a.token)$.nick=i.value.display_name,$.mail=i.value.email,$.link=i.value.url;else{if("force"===k)return;if(S.indexOf("nick")>-1&&!$.nick)return null===(c=l.value.nick)||void 0===c||c.focus(),alert(_.value.nickError);if(S.indexOf("mail")>-1&&!$.mail||$.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.){0,2}\w+$/.exec($.mail))return null===(u=l.value.mail)||void 0===u||u.focus(),alert(_.value.mailError);if(!$.comment)return void(null===(d=s.value)||void 0===d||d.focus());$.nick||($.nick=_.value.anonymous)}if(!y.value)return alert(_.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",m.value.toString()));$.comment=Ql($.comment,p.value.map),e.replyId&&e.rootId&&($.pid=e.replyId,$.rid=e.rootId,$.at=e.replyUser),w.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const o={"Content-Type":"application/json"};return n&&(o.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:o,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:h,lang:v,token:null===(f=i.value)||void 0===f?void 0:f.token,comment:$}).then((n=>{if(w.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",g.value="",e.replyId&&t("cancel-reply")})).catch((e=>{w.value=!1,alert(e.message)}))},C=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(f.value=!1)};return Ln([n,m],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(v.value=n[0],y.value=!1):t>n[1]?(v.value=n[1],y.value=!1):(v.value=n[1],y.value=!0):(v.value=0,y.value=!0)}),{immediate:!0}),Jn((()=>{document.body.addEventListener("click",C),Ln((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;b.value=e,g.value=Yl(e,{emojiMap:p.value.map,highlighter:t,texRenderer:r}),m.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?as(s.value):as.destroy(s.value)}),{immediate:!0}),Ln((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?el(Hi(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:o,prefix:i,type:l,items:s}=e;t.tabs.push({name:n,icon:tl(o,r,i,l),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=tl(e,r,i,l),n}))})})),t}))).then((e=>{p.value=e}));var t}),{immediate:!0})})),Gn((()=>{document.body.removeEventListener("click",C)})),{config:n,locale:_,insert:S,onChange:()=>{const e=a.value;e.files&&x.value&&$(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null===(t=e.dataTransfer)||void 0===t?void 0:t.items){const t=al(e.dataTransfer.items);t&&x.value&&($(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&E()},onPaste:e=>{if(e.clipboardData){const t=al(e.clipboardData.items);t&&x.value&&$(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-450)/2,l=(window.innerHeight-450)/2,s=window.open(`${r}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${o},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==s||s.postMessage({type:"TOKEN",data:null},"*");const a=({data:e})=>{e&&"userInfo"===e.type&&e.data.token&&(null==s||s.close(),i.value=e.data,(e.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{i.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2,s=window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${o},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==s||s.postMessage({type:"TOKEN",data:i.value.token},"*");const a=({data:e})=>{e&&"profile"===e.type&&(i.value={...i.value,...e},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))),window.removeEventListener("message",a))};window.addEventListener("message",a)},submitComment:E,isLogin:k,userInfo:i,isSubmitting:w,wordNumber:m,wordLimit:v,isWordNumberLegal:y,editor:r,userMeta:o,emoji:p,emojiTabIndex:d,showEmoji:f,canUploadImage:x,previewText:g,showPreview:h,inputRefs:l,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,imageUploadRef:a}}});const ps={class:"wl-comment"},ds={key:0,class:"wl-login-info"},fs={class:"wl-avatar"},hs=["title"],gs=["src"],ms=["textContent"],vs={class:"wl-panel"},ys=["for","textContent"],bs=["id","name","type","onUpdate:modelValue"],ws=["placeholder"],_s={class:"wl-preview"},ks=oo("hr",null,null,-1),xs=["innerHTML"],Ss={class:"wl-footer"},$s={class:"wl-actions"},Es={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},Cs=["title"],Os=["title"],Rs=["title"],zs={class:"wl-info"},As={class:"wl-text-number"},Is={key:0},Ts=so("  /  "),Ls=["textContent"],js=["textContent"],Ps=["disabled"],Us={key:0,class:"wl-tab-wrapper"},Ms=["title","onClick"],Ns=["src","alt"],Vs={key:0,class:"wl-tabs"},Fs=["onClick"],Ds=["src","alt","title"],Bs=["title"];us.render=function(e,t,n,r,o,i){const l=Mr("CloseIcon"),s=Mr("MarkdownIcon"),a=Mr("EmojiIcon"),c=Mr("ImageIcon"),u=Mr("PreviewIcon"),p=Mr("LoadingIcon");return Zr(),Yr("div",ps,["disable"!==e.config.login&&e.isLogin?(Zr(),Yr("div",ds,[oo("div",fs,[oo("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[io(l,{size:14})],8,hs),oo("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,gs)]),oo("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:C(e.userInfo.display_name)},null,8,ms)])):ao("v-if",!0),oo("div",vs,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Zr(),Yr("div",{key:0,class:S(["wl-header",`item${e.config.meta.length}`])},[(Zr(!0),Yr(Fr,null,ho(e.config.meta,(t=>(Zr(),Yr("div",{class:"wl-header-item",key:t},[oo("label",{for:t,textContent:C(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,ys),Or(oo("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:`wl-${t}`,class:S(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,bs),[[ii,e.userMeta[t]]])])))),128))],2)):ao("v-if",!0),Or(oo("textarea",{class:"wl-editor",ref:"editorRef",id:"wl-edit",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editor=t),onKeydown:t[3]||(t[3]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[4]||(t[4]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[5]||(t[5]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,ws),[[Yo,e.editor]]),Or(oo("div",_s,[ks,oo("h4",null,C(e.locale.preview)+":",1),oo("div",{class:"wl-content",innerHTML:e.previewText},null,8,xs)],512),[[si,e.showPreview]]),oo("div",Ss,[oo("div",$s,[oo("a",Es,[io(s)]),Or(oo("button",{ref:"emojiButtonRef",class:S(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[io(a)],10,Cs),[[si,e.emoji.tabs.length]]),oo("input",{ref:"imageUploadRef",class:"upload",id:"wl-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[7]||(t[7]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(Zr(),Yr("label",{key:0,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[io(c)],8,Os)):ao("v-if",!0),oo("button",{class:S(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[io(u)],10,Rs)]),oo("div",zs,[oo("div",As,[so(C(e.wordNumber)+" ",1),e.config.wordLimit?(Zr(),Yr("span",Is,[Ts,oo("span",{class:S({illegal:!e.isWordNumberLegal}),textContent:C(e.wordLimit)},null,10,Ls)])):ao("v-if",!0),so("  "+C(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?ao("v-if",!0):(Zr(),Yr("button",{key:0,class:"wl-btn",onClick:t[9]||(t[9]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:C(e.locale.login)},null,8,js)),"force"!==e.config.login||e.isLogin?(Zr(),Yr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[10]||(t[10]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(Zr(),Xr(p,{key:0,size:16})):(Zr(),Yr(Fr,{key:1},[so(C(e.locale.submit),1)],2112))],8,Ps)):ao("v-if",!0)]),oo("div",{ref:"emojiPopupRef",class:S(["wl-emoji-popup",{display:e.showEmoji}])},[(Zr(!0),Yr(Fr,null,ho(e.emoji.tabs,((t,n)=>(Zr(),Yr(Fr,{key:t.name},[n===e.emojiTabIndex?(Zr(),Yr("div",Us,[(Zr(!0),Yr(Fr,null,ho(t.items,(t=>(Zr(),Yr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(Zr(),Yr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ns)):ao("v-if",!0)],8,Ms)))),128))])):ao("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Zr(),Yr("div",Vs,[(Zr(!0),Yr(Fr,null,ho(e.emoji.tabs,((t,n)=>(Zr(),Yr("button",{key:t.name,class:S(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[oo("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ds)],10,Fs)))),128))])):ao("v-if",!0)],2)])]),e.replyId?(Zr(),Yr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[io(l,{size:24})],8,Bs)):ao("v-if",!0)])},us.__file="src/components/CommentBox.vue";var qs=Nn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:us,ReplyIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},Ro("path",{d:"M1019.2 720C1001.6 625.6 968 566.4 904 497.6c-89.6-89.6-214.4-150.4-347.2-176v-120c0-25.6-8-51.2-25.6-64-33.6-30.4-81.6-30.4-112-4.8L33.6 441.6C12.8 459.2 0 484.8 0 510.4c0 25.6 12.8 51.2 30.4 68.8l385.6 312c17.6 12.8 33.6 17.6 51.2 17.6 12.8 0 25.6-4.8 38.4-8C536 888 552 857.6 552 824v-99.2c124.8 20.8 248 86.4 339.2 140.8 25.6 17.6 59.2 17.6 89.6 0 25.6-17.6 43.2-46.4 43.2-76.8 0-33.6 0-56-4.8-68.8zm-500.8-89.6-46.4-4.8v193.6L86.4 510.4 472 201.6V400l38.4 4.8c128 12.8 248 68.8 334.4 153.6 51.2 56 76.8 102.4 94.4 179.2 0 4.8 4.8 20.8 4.8 51.2C835.2 720 672 640 518.4 630.4z",fill:"currentColor"})),VerifiedIcon:()=>Ro("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Ro("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"}))},emits:["submit","reply"],setup(e){const t=An("config"),n=Oo((()=>t.value.locale)),r=Oo((()=>{let{link:t}=e.comment;return t?Zi(t)?t:`https://${t}`:""})),o=((e,t)=>{const n=Bi();return Oo((()=>Gi(e,n.value,t)))})(e.comment.insertedAt,n.value),i=Oo((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:n,isReplyingCurrent:i,link:r,time:o}}});const Ws=["id"],Hs={class:"wl-user","aria-hidden":"true"},Zs=["src"],Ks={class:"wl-card"},Js={class:"wl-head"},Qs=["href"],Ys={key:1,class:"wl-nick"},Xs=["textContent"],Gs=["textContent"],ea=["textContent"],ta=["textContent"],na=["textContent"],ra=["title"],oa={class:"wl-meta","aria-hidden":"true"},ia=["textContent"],la=["textContent"],sa=["textContent"],aa=["innerHTML"],ca={key:0,class:"wl-reply-wrapper"},ua={key:1,class:"wl-quote"};qs.render=function(e,t,n,r,o,i){const l=Mr("VerifiedIcon"),s=Mr("ReplyIcon"),a=Mr("CommentBox"),c=Mr("CommentCard",!0);return Zr(),Yr("div",{class:"wl-item",id:e.comment.objectId},[oo("div",Hs,[e.comment.avatar?(Zr(),Yr("img",{key:0,src:e.comment.avatar},null,8,Zs)):ao("v-if",!0),e.comment.type?(Zr(),Xr(l,{key:1})):ao("v-if",!0)]),oo("div",Ks,[oo("div",Js,[e.link?(Zr(),Yr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},C(e.comment.nick),9,Qs)):(Zr(),Yr("span",Ys,C(e.comment.nick),1)),"administrator"===e.comment.type?(Zr(),Yr("span",{key:2,class:"wl-badge",textContent:C(e.locale.admin)},null,8,Xs)):ao("v-if",!0),e.comment.label?(Zr(),Yr("span",{key:3,class:"wl-badge",textContent:C(e.comment.label)},null,8,Gs)):ao("v-if",!0),e.comment.sticky?(Zr(),Yr("span",{key:4,class:"wl-badge",textContent:C(e.locale.sticky)},null,8,ea)):ao("v-if",!0),e.comment.level>=0?(Zr(),Yr("span",{key:5,class:S(`wl-badge level${e.comment.level}`),textContent:C(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,ta)):ao("v-if",!0),oo("span",{class:"wl-time",textContent:C(e.time)},null,8,na),oo("button",{class:S(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[0]||(t[0]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[io(s)],10,ra)]),oo("div",oa,[e.comment.addr?(Zr(),Yr("span",{key:0,textContent:C(e.comment.addr)},null,8,ia)):ao("v-if",!0),e.comment.browser?(Zr(),Yr("span",{key:1,textContent:C(e.comment.browser)},null,8,la)):ao("v-if",!0),e.comment.os?(Zr(),Yr("span",{key:2,textContent:C(e.comment.os)},null,8,sa)):ao("v-if",!0)]),oo("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,aa),e.isReplyingCurrent?(Zr(),Yr("div",ca,[io(a,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[1]||(t[1]=t=>e.$emit("submit",t)),onCancelReply:t[2]||(t[2]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):ao("v-if",!0),e.comment.children?(Zr(),Yr("div",ua,[(Zr(!0),Yr(Fr,null,ho(e.comment.children,(n=>(Zr(),Xr(c,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[3]||(t[3]=t=>e.$emit("reply",t)),onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t))},null,8,["comment","reply","rootId"])))),128))])):ao("v-if",!0)])],8,Ws)},qs.__file="src/components/CommentCard.vue";var pa=Nn({name:"WalineRoot",components:{CommentBox:us,CommentCard:qs,LoadingIcon:cs},props:{serverURL:{type:String,required:!0},path:{type:String,required:!0},meta:{type:Array},requiredMeta:{type:Array},dark:[String,Boolean],lang:{type:String},locale:Object,pageSize:Number,wordLimit:{type:[Number,Array]},emoji:{type:[Array,Boolean]},login:String,highlighter:Function,imageUploader:[Function,Boolean],texRenderer:[Function,Boolean],copyright:Boolean},setup(e){const o=Oo((()=>(({serverURL:e,path:o=location.pathname,lang:i="zh-CN",locale:l,emoji:a=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:c=["nick","mail","link"],requiredMeta:u=[],dark:p=!1,pageSize:d=10,wordLimit:f,imageUploader:h,highlighter:g,texRenderer:v,copyright:y=!0,login:b="enable",...w})=>({serverURL:Ki(e),path:Wi(o),locale:{...m[i]||m["zh-CN"],..."object"==typeof l?l:{}},wordLimit:Ji(f),meta:t(c),requiredMeta:t(u),imageUploader:Qi(h,n),highlighter:Qi(g,s),texRenderer:Qi(v,r),lang:i,dark:p,emoji:a,pageSize:d,login:b,copyright:y,...w}))(e))),i=Gl(),l=It("loading"),a=It(0),c=It(1),u=It(0),p=It([]),d=It(null),f=Oo((()=>{return"string"==typeof(e=o.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${Yi}}`:`${e}${Yi}`:!0===e?`:root${Yi}`:"";var e}));let h;!function(e,t={}){const n=It(!1),{document:r=Ri,immediate:o=!0,manual:i=!1,id:l="vueuse_styletag_"+ ++qi}=t,s=It(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(l)||r.createElement("style");e.type="text/css",e.id=l,t.media&&(e.media=t.media),r.head.appendChild(e),n.value||(a=Ln(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};o&&!i&&c(),i||di(u),bt(n)}(f);const g=e=>{var t;const{serverURL:n,path:r,pageSize:s}=o.value,d=new AbortController;l.value="loading",null==h||h(),(({serverURL:e,lang:t,path:n,page:r,pageSize:o,signal:i,token:l})=>{const s={};return l&&(s.Authorization=`Bearer ${l}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${o}&page=${r}&lang=${t}`,{signal:i,headers:s}).then((e=>e.json())).then((e=>rl(e,"comment list")))})({serverURL:n,lang:o.value.lang,path:r,pageSize:s,page:e,signal:d.signal,token:null===(t=i.value)||void 0===t?void 0:t.token}).then((t=>{l.value="success",a.value=t.count,p.value.push(...t.data),c.value=e,u.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),l.value="error")})),h=d.abort.bind(d)},v=()=>{a.value=0,p.value=[],g(1)};return zn("config",o),Ln((()=>e.path),v),Jn((()=>v())),{config:o,darkmodeStyle:f,i18n:Oo((()=>o.value.locale)),status:l,count:a,page:c,totalPages:u,data:p,reply:d,loadMore:()=>g(c.value+1),refresh:v,onReply:e=>{d.value=e},onSubmit:e=>{if(e.rid){const t=p.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else p.value.unshift(e)},version:"2.3.1"}}});const da={"data-waline":""},fa={class:"wl-count"},ha=["textContent"],ga={class:"wl-cards"},ma={key:1,class:"wl-operation"},va=["textContent"],ya={key:0,class:"wl-loading"},ba=["textContent"],wa={class:"wl-operation"},_a=["textContent"],ka={key:3,class:"wl-power"},xa=so(" Powered by "),Sa=oo("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);pa.render=function(e,t,n,r,o,i){const l=Mr("CommentBox"),s=Mr("CommentCard"),a=Mr("LoadingIcon");return Zr(),Yr("div",da,[e.reply?ao("v-if",!0):(Zr(),Xr(l,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),oo("div",fa,[e.count?(Zr(),Yr("span",{key:0,class:"wl-num",textContent:C(e.count)},null,8,ha)):ao("v-if",!0),so(" "+C(e.i18n.comment),1)]),oo("div",ga,[(Zr(!0),Yr(Fr,null,ho(e.data,(t=>(Zr(),Xr(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit},null,8,["root-id","comment","reply","onReply","onSubmit"])))),128))]),"error"===e.status?(Zr(),Yr("div",ma,[oo("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:C(e.i18n.refresh)},null,8,va)])):(Zr(),Yr(Fr,{key:2},["loading"===e.status?(Zr(),Yr("div",ya,[io(a,{size:30})])):e.data.length?e.page<e.totalPages?(Zr(),Yr(Fr,{key:2},[ao(" Load more button "),oo("div",wa,[oo("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:C(e.i18n.more)},null,8,_a)])],2112)):ao("v-if",!0):(Zr(),Yr("div",{key:1,class:"wl-empty",textContent:C(e.i18n.sofa)},null,8,ba))],2112)),ao(" Copyright Information "),e.config.copyright?(Zr(),Yr("div",ka,[xa,Sa,so(" v"+C(e.version),1)])):ao("v-if",!0)])},pa.__file="src/components/Waline.vue";const $a=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Ea=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:o="zh-CN"})=>{const i=new AbortController,l=Array.from(document.querySelectorAll(n)),s=e=>{const n=Xl(e);return null!==n&&t!==n},a=n=>ol({serverURL:e,paths:n.map((e=>Xl(e)||t)),lang:o,signal:i.signal}).then((e=>$a(e,n))).catch(nl);if(r){const n=l.filter((e=>!s(e))),r=l.filter(s);il({serverURL:e,path:t,lang:o}).then((e=>$a(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(l);return i.abort.bind(i)};exports.RecentComments=({el:e,serverURL:t,count:n,lang:r="zh-CN"})=>{var o;const i=Gl(),l=ll(e),s=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:o})=>{const i={};return o&&(i.Authorization=`Bearer ${o}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then((e=>e.json())).then((e=>rl(e,"recent comment")))})({serverURL:t,count:n,lang:r,signal:s.signal,token:null===(o=i.value)||void 0===o?void 0:o.token}).then((e=>l&&e.length?(l.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:()=>{s.abort(),l.innerHTML=""}}):{comments:e,destroy:()=>s.abort()}))},exports.commentCount=es,exports.defaultLocales=m,exports.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...o})=>{const i=e?ll(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!o.serverURL)throw new Error("Option 'serverURL' is missing!");const l=yt({...o}),s=yt({comment:n,pageview:r,path:t}),a=()=>{s.comment&&es({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})},c=()=>{s.pageview&&Ea({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})},u=i?pi((()=>Ro(pa,{path:s.path,...l}))):null;u&&u.mount(i),a(),c();const p=In(a),d=In(c);return{el:i,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{l[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{null==u||u.unmount(),p(),d()}}},exports.pageviewCount=Ea,exports.version="2.3.1";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=e=>new Promise(((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),r=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',o=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),i=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],l={},s=e=>{let t=0;return e.replace(o,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"&lt;";let o;l[n]?o=l[n]:(o=i[t],l[n]=o);const s=`<span style="color: #${o}">${n}</span>`;return t=++t%i.length,s}))},a=["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"],c=e=>Object.fromEntries(e.map(((e,t)=>[a[t],e])));var u=c(["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"]),p=c(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),d=c(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说"]),h=c(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說"]),f=c(["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"]),m=c(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный"]);const g={zh:d,"zh-cn":d,"zh-CN":d,"zh-tw":h,"zh-TW":h,en:u,"en-US":u,"en-us":u,jp:p,"jp-jp":p,"jp-JP":p,"pt-br":f,"pt-BR":f,ru:m,"ru-ru":m,"ru-RU":m};function v(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const y=v("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function b(e){return!!e||""===e}function w(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=q(r)?x(r):w(r);if(o)for(const e in o)t[e]=o[e]}return t}return q(e)||Z(e)?e:void 0}const k=/;(?![^(]*\))/g,_=/:(.+)/;function x(e){const t={};return e.split(k).forEach((e=>{if(e){const n=e.split(_);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function S(e){let t="";if(q(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){const r=S(e[n]);r&&(t+=r+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function $(e,t){if(e===t)return!0;let n=B(e),r=B(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=N(e),r=N(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=$(e[r],t[r]);return n}(e,t);if(n=Z(e),r=Z(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),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!$(e[n],t[n]))return!1}}return String(e)===String(t)}function C(e,t){return e.findIndex((e=>$(e,t)))}const E=e=>q(e)?e:null==e?"":N(e)||Z(e)&&(e.toString===J||!H(e.toString))?JSON.stringify(e,O,2):String(e),O=(e,t)=>t&&t.__v_isRef?O(e,t.value):D(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:F(t)?{[`Set(${t.size})`]:[...t.values()]}:!Z(t)||N(t)||Y(t)?t:String(t),R={},I=[],z=()=>{},L=()=>!1,A=/^on[^a-z]/,T=e=>A.test(e),j=e=>e.startsWith("onUpdate:"),U=Object.assign,P=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},M=Object.prototype.hasOwnProperty,V=(e,t)=>M.call(e,t),N=Array.isArray,D=e=>"[object Map]"===Q(e),F=e=>"[object Set]"===Q(e),B=e=>e instanceof Date,H=e=>"function"==typeof e,q=e=>"string"==typeof e,W=e=>"symbol"==typeof e,Z=e=>null!==e&&"object"==typeof e,K=e=>Z(e)&&H(e.then)&&H(e.catch),J=Object.prototype.toString,Q=e=>J.call(e),Y=e=>"[object Object]"===Q(e),X=e=>q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,G=v(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ee=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},te=/-(\w)/g,ne=ee((e=>e.replace(te,((e,t)=>t?t.toUpperCase():"")))),re=/\B([A-Z])/g,oe=ee((e=>e.replace(re,"-$1").toLowerCase())),ie=ee((e=>e.charAt(0).toUpperCase()+e.slice(1))),le=ee((e=>e?`on${ie(e)}`:"")),se=(e,t)=>!Object.is(e,t),ae=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ce=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ue=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let pe;const de=()=>pe||(pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});let he;class fe{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&he&&(this.parent=he,this.index=(he.scopes||(he.scopes=[])).push(this)-1)}run(e){if(this.active){const t=he;try{return he=this,e()}finally{he=t}}}on(){he=this}off(){he=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const me=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ge=e=>(e.w&we)>0,ve=e=>(e.n&we)>0,ye=new WeakMap;let be=0,we=1;let ke;const _e=Symbol(""),xe=Symbol("");class Se{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=he){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ke,t=Ce;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ke,ke=this,Ce=!0,we=1<<++be,be<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=we})(this):$e(this),this.fn()}finally{be<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];ge(o)&&!ve(o)?o.delete(e):t[n++]=o,o.w&=~we,o.n&=~we}t.length=n}})(this),we=1<<--be,ke=this.parent,Ce=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ke===this?this.deferStop=!0:this.active&&($e(this),this.onStop&&this.onStop(),this.active=!1)}}function $e(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ce=!0;const Ee=[];function Oe(){Ee.push(Ce),Ce=!1}function Re(){const e=Ee.pop();Ce=void 0===e||e}function Ie(e,t,n){if(Ce&&ke){let t=ye.get(e);t||ye.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=me()),ze(r)}}function ze(e,t){let n=!1;be<=30?ve(e)||(e.n|=we,n=!ge(e)):n=!e.has(ke),n&&(e.add(ke),ke.deps.push(e))}function Le(e,t,n,r,o,i){const l=ye.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&N(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(l.get(n)),t){case"add":N(e)?X(n)&&s.push(l.get("length")):(s.push(l.get(_e)),D(e)&&s.push(l.get(xe)));break;case"delete":N(e)||(s.push(l.get(_e)),D(e)&&s.push(l.get(xe)));break;case"set":D(e)&&s.push(l.get(_e))}if(1===s.length)s[0]&&Ae(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Ae(me(e))}}function Ae(e,t){for(const t of N(e)?e:[...e])(t!==ke||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Te=v("__proto__,__v_isRef,__isVue"),je=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(W)),Ue=De(),Pe=De(!1,!0),Me=De(!0),Ve=Ne();function Ne(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=$t(this);for(let e=0,t=this.length;e<t;e++)Ie(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map($t)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Oe();const n=$t(this)[t].apply(this,e);return Re(),n}})),e}function De(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?gt:mt:t?ft:ht).get(n))return n;const i=N(n);if(!e&&i&&V(Ve,r))return Reflect.get(Ve,r,o);const l=Reflect.get(n,r,o);if(W(r)?je.has(r):Te(r))return l;if(e||Ie(n,0,r),t)return l;if(zt(l)){return!i||!X(r)?l.value:l}return Z(l)?e?bt(l):yt(l):l}}function Fe(e=!1){return function(t,n,r,o){let i=t[n];if(_t(i)&&zt(i)&&!zt(r))return!1;if(!e&&!_t(r)&&(xt(r)||(r=$t(r),i=$t(i)),!N(t)&&zt(i)&&!zt(r)))return i.value=r,!0;const l=N(t)&&X(n)?Number(n)<t.length:V(t,n),s=Reflect.set(t,n,r,o);return t===$t(o)&&(l?se(r,i)&&Le(t,"set",n,r):Le(t,"add",n,r)),s}}const Be={get:Ue,set:Fe(),deleteProperty:function(e,t){const n=V(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Le(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return W(t)&&je.has(t)||Ie(e,0,t),n},ownKeys:function(e){return Ie(e,0,N(e)?"length":_e),Reflect.ownKeys(e)}},He={get:Me,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},qe=U({},Be,{get:Pe,set:Fe(!0)}),We=e=>e,Ze=e=>Reflect.getPrototypeOf(e);function Ke(e,t,n=!1,r=!1){const o=$t(e=e.__v_raw),i=$t(t);t!==i&&!n&&Ie(o,0,t),!n&&Ie(o,0,i);const{has:l}=Ze(o),s=r?We:n?Ot:Et;return l.call(o,t)?s(e.get(t)):l.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function Je(e,t=!1){const n=this.__v_raw,r=$t(n),o=$t(e);return e!==o&&!t&&Ie(r,0,e),!t&&Ie(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function Qe(e,t=!1){return e=e.__v_raw,!t&&Ie($t(e),0,_e),Reflect.get(e,"size",e)}function Ye(e){e=$t(e);const t=$t(this);return Ze(t).has.call(t,e)||(t.add(e),Le(t,"add",e,e)),this}function Xe(e,t){t=$t(t);const n=$t(this),{has:r,get:o}=Ze(n);let i=r.call(n,e);i||(e=$t(e),i=r.call(n,e));const l=o.call(n,e);return n.set(e,t),i?se(t,l)&&Le(n,"set",e,t):Le(n,"add",e,t),this}function Ge(e){const t=$t(this),{has:n,get:r}=Ze(t);let o=n.call(t,e);o||(e=$t(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Le(t,"delete",e,void 0),i}function et(){const e=$t(this),t=0!==e.size,n=e.clear();return t&&Le(e,"clear",void 0,void 0),n}function tt(e,t){return function(n,r){const o=this,i=o.__v_raw,l=$t(i),s=t?We:e?Ot:Et;return!e&&Ie(l,0,_e),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function nt(e,t,n){return function(...r){const o=this.__v_raw,i=$t(o),l=D(i),s="entries"===e||e===Symbol.iterator&&l,a="keys"===e&&l,c=o[e](...r),u=n?We:t?Ot:Et;return!t&&Ie(i,0,a?xe:_e),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function rt(e){return function(...t){return"delete"!==e&&this}}function ot(){const e={get(e){return Ke(this,e)},get size(){return Qe(this)},has:Je,add:Ye,set:Xe,delete:Ge,clear:et,forEach:tt(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return Qe(this)},has:Je,add:Ye,set:Xe,delete:Ge,clear:et,forEach:tt(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return Qe(this,!0)},has(e){return Je.call(this,e,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:tt(!0,!1)},r={get(e){return Ke(this,e,!0,!0)},get size(){return Qe(this,!0)},has(e){return Je.call(this,e,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:tt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=nt(o,!1,!1),n[o]=nt(o,!0,!1),t[o]=nt(o,!1,!0),r[o]=nt(o,!0,!0)})),[e,n,t,r]}const[it,lt,st,at]=ot();function ct(e,t){const n=t?e?at:st:e?lt:it;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(V(n,r)&&r in t?n:t,r,o)}const ut={get:ct(!1,!1)},pt={get:ct(!1,!0)},dt={get:ct(!0,!1)},ht=new WeakMap,ft=new WeakMap,mt=new WeakMap,gt=new WeakMap;function vt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>Q(e).slice(8,-1))(e))}function yt(e){return _t(e)?e:wt(e,!1,Be,ut,ht)}function bt(e){return wt(e,!0,He,dt,mt)}function wt(e,t,n,r,o){if(!Z(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=vt(e);if(0===l)return e;const s=new Proxy(e,2===l?r:n);return o.set(e,s),s}function kt(e){return _t(e)?kt(e.__v_raw):!(!e||!e.__v_isReactive)}function _t(e){return!(!e||!e.__v_isReadonly)}function xt(e){return!(!e||!e.__v_isShallow)}function St(e){return kt(e)||_t(e)}function $t(e){const t=e&&e.__v_raw;return t?$t(t):e}function Ct(e){return ce(e,"__v_skip",!0),e}const Et=e=>Z(e)?yt(e):e,Ot=e=>Z(e)?bt(e):e;function Rt(e){Ce&&ke&&ze((e=$t(e)).dep||(e.dep=me()))}function It(e,t){(e=$t(e)).dep&&Ae(e.dep)}function zt(e){return!(!e||!0!==e.__v_isRef)}function Lt(e){return Tt(e,!1)}function At(e){return Tt(e,!0)}function Tt(e,t){return zt(e)?e:new jt(e,t)}class jt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:$t(e),this._value=t?e:Et(e)}get value(){return Rt(this),this._value}set value(e){e=this.__v_isShallow?e:$t(e),se(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Et(e),It(this))}}function Ut(e){return zt(e)?e.value:e}const Pt={get:(e,t,n)=>Ut(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return zt(o)&&!zt(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Mt(e){return kt(e)?e:new Proxy(e,Pt)}class Vt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Se(e,(()=>{this._dirty||(this._dirty=!0,It(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=$t(this);return Rt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Nt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){Ft(e,t,n)}return o}function Dt(e,t,n,r){if(H(e)){const o=Nt(e,t,n,r);return o&&K(o)&&o.catch((e=>{Ft(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(Dt(e[i],t,n,r));return o}function Ft(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const o=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const l=t.appContext.config.errorHandler;if(l)return void Nt(l,null,10,[e,o,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Bt=!1,Ht=!1;const qt=[];let Wt=0;const Zt=[];let Kt=null,Jt=0;const Qt=[];let Yt=null,Xt=0;const Gt=Promise.resolve();let en=null,tn=null;function nn(e){const t=en||Gt;return e?t.then(this?e.bind(this):e):t}function rn(e){qt.length&&qt.includes(e,Bt&&e.allowRecurse?Wt+1:Wt)||e===tn||(null==e.id?qt.push(e):qt.splice(function(e){let t=Wt+1,n=qt.length;for(;t<n;){const r=t+n>>>1;cn(qt[r])<e?t=r+1:n=r}return t}(e.id),0,e),on())}function on(){Bt||Ht||(Ht=!0,en=Gt.then(un))}function ln(e,t,n,r){N(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),on()}function sn(e,t=null){if(Zt.length){for(tn=t,Kt=[...new Set(Zt)],Zt.length=0,Jt=0;Jt<Kt.length;Jt++)Kt[Jt]();Kt=null,Jt=0,tn=null,sn(e,t)}}function an(e){if(Qt.length){const e=[...new Set(Qt)];if(Qt.length=0,Yt)return void Yt.push(...e);for(Yt=e,Yt.sort(((e,t)=>cn(e)-cn(t))),Xt=0;Xt<Yt.length;Xt++)Yt[Xt]();Yt=null,Xt=0}}const cn=e=>null==e.id?1/0:e.id;function un(e){Ht=!1,Bt=!0,sn(e),qt.sort(((e,t)=>cn(e)-cn(t)));try{for(Wt=0;Wt<qt.length;Wt++){const e=qt[Wt];e&&!1!==e.active&&Nt(e,null,14)}}finally{Wt=0,qt.length=0,an(),Bt=!1,en=null,(qt.length||Zt.length||Qt.length)&&un(e)}}let pn,dn=[],hn=!1;function fn(e,...t){pn?pn.emit(e,...t):hn||dn.push({event:e,args:t})}function mn(e,t){var n,r;if(pn=e,pn)pn.enabled=!0,dn.forEach((({event:e,args:t})=>pn.emit(e,...t))),dn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{mn(e,t)})),setTimeout((()=>{pn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,hn=!0,dn=[])}),3e3)}else hn=!0,dn=[]}const gn=bn("component:added"),vn=bn("component:updated"),yn=bn("component:removed");function bn(e){return t=>{fn(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function wn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||R;let o=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in r){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:i}=r[e]||R;i?o=n.map((e=>e.trim())):t&&(o=n.map(ue))}let s;__VUE_PROD_DEVTOOLS__&&function(e,t,n){fn("component:emit",e.appContext.app,e,t,n)}(e,t,o);let a=r[s=le(t)]||r[s=le(ne(t))];!a&&i&&(a=r[s=le(oe(t))]),a&&Dt(a,e,6,o);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Dt(c,e,6,o)}}function kn(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let l={},s=!1;if(__VUE_OPTIONS_API__&&!H(e)){const r=e=>{const n=kn(e,t,!0);n&&(s=!0,U(l,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||s?(N(i)?i.forEach((e=>l[e]=null)):U(l,i),r.set(e,l),l):(r.set(e,null),null)}function _n(e,t){return!(!e||!T(t))&&(t=t.slice(2).replace(/Once$/,""),V(e,t[0].toLowerCase()+t.slice(1))||V(e,oe(t))||V(e,t))}let xn=null,Sn=null;function $n(e){const t=xn;return xn=e,Sn=e&&e.type.__scopeId||null,t}function Cn(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const y=$n(e);try{if(4&n.shapeFlag){const e=o||r;g=co(u.call(e,e,p,i,h,d,f)),v=a}else{const e=t;g=co(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:En(a)}}catch(t){qr.length=0,Ft(t,e,1),g=io(Br)}let b=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(j)&&(v=On(v,l)),b=lo(b,v))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,$n(y),g}const En=e=>{let t;for(const n in e)("class"===n||"style"===n||T(n))&&((t||(t={}))[n]=e[n]);return t},On=(e,t)=>{const n={};for(const r in e)j(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Rn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!_n(n,i))return!0}return!1}function In(e,t){if(wo){let n=wo.provides;const r=wo.parent&&wo.parent.provides;r===n&&(n=wo.provides=Object.create(r)),n[e]=t}else;}function zn(e,t,n=!1){const r=wo||xn;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&H(t)?t.call(r.proxy):t}}function Ln(e,t){return jn(e,null,t)}const An={};function Tn(e,t,n){return jn(e,t,n)}function jn(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=R){const s=wo;let a,c,u=!1,p=!1;if(zt(e)?(a=()=>e.value,u=xt(e)):kt(e)?(a=()=>e,r=!0):N(e)?(p=!0,u=e.some(kt),a=()=>e.map((e=>zt(e)?e.value:kt(e)?Mn(e):H(e)?Nt(e,s,2):void 0))):a=H(e)?t?()=>Nt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Dt(e,s,3,[d])}:z,t&&r){const e=a;a=()=>Mn(e())}let d=e=>{c=g.onStop=()=>{Nt(e,s,4)}};if(So)return d=z,t?n&&Dt(t,s,3,[a(),p?[]:void 0,d]):a(),z;let h=p?[]:An;const f=()=>{if(g.active)if(t){const e=g.run();(r||u||(p?e.some(((e,t)=>se(e,h[t]))):se(e,h)))&&(c&&c(),Dt(t,s,3,[e,h===An?void 0:h,d]),h=e)}else g.run()};let m;f.allowRecurse=!!t,m="sync"===o?f:"post"===o?()=>Tr(f,s&&s.suspense):()=>{!s||s.isMounted?function(e){ln(e,Kt,Zt,Jt)}(f):f()};const g=new Se(a,m);return t?n?f():h=g.run():"post"===o?Tr(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&P(s.scope.effects,g)}}function Un(e,t,n){const r=this.proxy,o=q(e)?e.includes(".")?Pn(r,e):()=>r[e]:e.bind(r,r);let i;H(t)?i=t:(i=t.handler,n=t);const l=wo;ko(this);const s=jn(o,i.bind(r),n);return l?ko(l):_o(),s}function Pn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Mn(e,t){if(!Z(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),zt(e))Mn(e.value,t);else if(N(e))for(let n=0;n<e.length;n++)Mn(e[n],t);else if(F(e)||D(e))e.forEach((e=>{Mn(e,t)}));else if(Y(e))for(const n in e)Mn(e[n],t);return e}function Vn(e){return H(e)?{setup:e,name:e.name}:e}const Nn=e=>!!e.type.__asyncLoader,Dn=e=>e.type.__isKeepAlive;function Fn(e,t){Hn(e,"a",t)}function Bn(e,t){Hn(e,"da",t)}function Hn(e,t,n=wo){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Wn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Dn(e.parent.vnode)&&qn(r,t,n,e),e=e.parent}}function qn(e,t,n,r){const o=Wn(t,e,r,!0);Gn((()=>{P(r[t],o)}),n)}function Wn(e,t,n=wo,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Oe(),ko(n);const o=Dt(t,n,e,r);return _o(),Re(),o});return r?o.unshift(i):o.push(i),i}}const Zn=e=>(t,n=wo)=>(!So||"sp"===e)&&Wn(e,t,n),Kn=Zn("bm"),Jn=Zn("m"),Qn=Zn("bu"),Yn=Zn("u"),Xn=Zn("bum"),Gn=Zn("um"),er=Zn("sp"),tr=Zn("rtg"),nr=Zn("rtc");function rr(e,t=wo){Wn("ec",e,t)}let or=!0;function ir(e){const t=ar(e),n=e.proxy,r=e.ctx;or=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:l,watch:s,provide:a,inject:c,created:u,beforeMount:p,mounted:d,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:w,render:k,renderTracked:_,renderTriggered:x,errorCaptured:S,serverPrefetch:$,expose:C,inheritAttrs:E,components:O,directives:R,filters:I}=t;if(c&&function(e,t,n=z,r=!1){N(e)&&(e=dr(e));for(const n in e){const o=e[n];let i;i=Z(o)?"default"in o?zn(o.from||n,o.default,!0):zn(o.from||n):zn(o),zt(i)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(c,r,null,e.appContext.config.unwrapInjectedRef),l)for(const e in l){const t=l[e];H(t)&&(r[e]=t.bind(n))}if(o){const t=o.call(n,n);Z(t)&&(e.data=yt(t))}if(or=!0,i)for(const e in i){const t=i[e],o=H(t)?t.bind(n,n):H(t.get)?t.get.bind(n,n):z,l=!H(t)&&H(t.set)?t.set.bind(n):z,s=Oo({get:o,set:l});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(const e in s)sr(s[e],r,n,e);if(a){const e=H(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{In(t,e[t])}))}function L(e,t){N(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&lr(u,e,"c"),L(Kn,p),L(Jn,d),L(Qn,h),L(Yn,f),L(Fn,m),L(Bn,g),L(rr,S),L(nr,_),L(tr,x),L(Xn,y),L(Gn,w),L(er,$),N(C))if(C.length){const t=e.exposed||(e.exposed={});C.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});k&&e.render===z&&(e.render=k),null!=E&&(e.inheritAttrs=E),O&&(e.components=O),R&&(e.directives=R)}function lr(e,t,n){Dt(N(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function sr(e,t,n,r){const o=r.includes(".")?Pn(n,r):()=>n[r];if(q(e)){const n=t[e];H(n)&&Tn(o,n)}else if(H(e))Tn(o,e.bind(n));else if(Z(e))if(N(e))e.forEach((e=>sr(e,t,n,r)));else{const r=H(e.handler)?e.handler.bind(n):t[e.handler];H(r)&&Tn(o,r,e)}}function ar(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,s=i.get(t);let a;return s?a=s:o.length||n||r?(a={},o.length&&o.forEach((e=>cr(a,e,l,!0))),cr(a,t,l)):a=t,i.set(t,a),a}function cr(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&cr(e,i,n,!0),o&&o.forEach((t=>cr(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=ur[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const ur={data:pr,props:fr,emits:fr,methods:fr,computed:fr,beforeCreate:hr,created:hr,beforeMount:hr,mounted:hr,beforeUpdate:hr,updated:hr,beforeDestroy:hr,beforeUnmount:hr,destroyed:hr,unmounted:hr,activated:hr,deactivated:hr,errorCaptured:hr,serverPrefetch:hr,components:fr,directives:fr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=U(Object.create(null),e);for(const r in t)n[r]=hr(e[r],t[r]);return n},provide:pr,inject:function(e,t){return fr(dr(e),dr(t))}};function pr(e,t){return t?e?function(){return U(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function dr(e){if(N(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function hr(e,t){return e?[...new Set([].concat(e,t))]:t}function fr(e,t){return e?U(U(Object.create(null),e),t):t}function mr(e,t,n,r=!1){const o={},i={};ce(i,to,1),e.propsDefaults=Object.create(null),gr(e,t,o,i);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:wt(o,!1,qe,pt,ft):e.type.props?e.props=o:e.props=i,e.attrs=i}function gr(e,t,n,r){const[o,i]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(G(a))continue;const c=t[a];let u;o&&V(o,u=ne(a))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:_n(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(i){const t=$t(n),r=l||R;for(let l=0;l<i.length;l++){const s=i[l];n[s]=vr(o,t,s,r[s],e,!V(r,s))}}return s}function vr(e,t,n,r,o,i){const l=e[n];if(null!=l){const e=V(l,"default");if(e&&void 0===r){const e=l.default;if(l.type!==Function&&H(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(ko(o),r=i[n]=e.call(null,t),_o())}else r=e}l[0]&&(i&&!e?r=!1:!l[1]||""!==r&&r!==oe(n)||(r=!0))}return r}function yr(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,l={},s=[];let a=!1;if(__VUE_OPTIONS_API__&&!H(e)){const r=e=>{a=!0;const[n,r]=yr(e,t,!0);U(l,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!i&&!a)return r.set(e,I),I;if(N(i))for(let e=0;e<i.length;e++){const t=ne(i[e]);br(t)&&(l[t]=R)}else if(i)for(const e in i){const t=ne(e);if(br(t)){const n=i[e],r=l[t]=N(n)||H(n)?{type:n}:n;if(r){const e=_r(Boolean,r.type),n=_r(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||V(r,"default"))&&s.push(t)}}}const c=[l,s];return r.set(e,c),c}function br(e){return"$"!==e[0]}function wr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function kr(e,t){return wr(e)===wr(t)}function _r(e,t){return N(t)?t.findIndex((t=>kr(t,e))):H(t)&&kr(t,e)?0:-1}const xr=e=>"_"===e[0]||"$stable"===e,Sr=e=>N(e)?e.map(co):[co(e)],$r=(e,t,n)=>{const r=function(e,t=xn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Jr(-1);const o=$n(t),i=e(...n);return $n(o),r._d&&Jr(1),__VUE_PROD_DEVTOOLS__&&vn(t),i};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>Sr(t(...e))),n);return r._c=!1,r},Cr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(xr(n))continue;const o=e[n];if(H(o))t[n]=$r(0,o,r);else if(null!=o){const e=Sr(o);t[n]=()=>e}}},Er=(e,t)=>{const n=Sr(t);e.slots.default=()=>n};function Or(e,t){const n=xn;if(null===n)return e;const r=Eo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,i,l,s=R]=t[e];H(n)&&(n={mounted:n,updated:n}),n.deep&&Mn(i),o.push({dir:n,instance:r,value:i,oldValue:void 0,arg:l,modifiers:s})}return e}function Rr(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let l=0;l<o.length;l++){const s=o[l];i&&(s.oldValue=i[l].value);let a=s.dir[r];a&&(Oe(),Dt(a,n,8,[e.el,s,e,t]),Re())}}function Ir(){return{app:null,config:{isNativeTag:L,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 zr=0;function Lr(e,t){return function(n,r=null){H(n)||(n=Object.assign({},n)),null==r||Z(r)||(r=null);const o=Ir(),i=new Set;let l=!1;const s=o.app={_uid:zr++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Io,get config(){return o.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&H(e.install)?(i.add(e),e.install(s,...t)):H(e)&&(i.add(e),e(s,...t))),s),mixin:e=>(__VUE_OPTIONS_API__&&(o.mixins.includes(e)||o.mixins.push(e)),s),component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(i,a,c){if(!l){const u=io(n,r);return u.appContext=o,a&&t?t(u,i):e(u,i,c),l=!0,s._container=i,i.__vue_app__=s,__VUE_PROD_DEVTOOLS__&&(s._instance=u.component,function(e,t){fn("app:init",e,t,{Fragment:Dr,Text:Fr,Comment:Br,Static:Hr})}(s,Io)),Eo(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(e){fn("app:unmount",e)}(s)),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s)};return s}}function Ar(e,t,n,r,o=!1){if(N(e))return void e.forEach(((e,i)=>Ar(e,t&&(N(t)?t[i]:t),n,r,o)));if(Nn(r)&&!o)return;const i=4&r.shapeFlag?Eo(r.component)||r.component.proxy:r.el,l=o?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===R?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(q(c)?(u[c]=null,V(p,c)&&(p[c]=null)):zt(c)&&(c.value=null)),H(a))Nt(a,s,12,[l,u]);else{const t=q(a),r=zt(a);if(t||r){const r=()=>{if(e.f){const n=t?u[a]:a.value;o?N(n)&&P(n,i):N(n)?n.includes(i)||n.push(i):t?(u[a]=[i],V(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=l,V(p,a)&&(p[a]=l)):zt(a)&&(a.value=l,e.k&&(u[e.k]=l))};l?(r.id=-1,Tr(r,n)):r()}}}const Tr=function(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):ln(e,Yt,Qt,Xt)};function jr(e){return function(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(de().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(de().__VUE_PROD_DEVTOOLS__=!1);const n=de();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&mn(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:i,createElement:l,createText:s,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:d,setScopeId:h=z,cloneNode:f,insertStaticContent:m}=e,g=(e,t,n,r=null,o=null,i=null,l=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!eo(e,t)&&(r=Q(e),H(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Fr:v(e,t,n,r);break;case Br:y(e,t,n,r);break;case Hr:null==e&&b(t,n,r,l);break;case Dr:L(e,t,n,r,o,i,l,s,a);break;default:1&p?_(e,t,n,r,o,i,l,s,a):6&p?A(e,t,n,r,o,i,l,s,a):(64&p||128&p)&&c.process(e,t,n,r,o,i,l,s,a,X)}null!=u&&o&&Ar(u,e&&e.ref,i,t||e,!t)},v=(e,t,n,o)=>{if(null==e)r(t.el=s(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},y=(e,t,n,o)=>{null==e?r(t.el=a(t.children||""),n,o):t.el=e.el},b=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},w=({el:e,anchor:t},n,o)=>{let i;for(;e&&e!==t;)i=d(e),r(e,n,o),e=i;r(t,n,o)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),o(e),e=n;o(t)},_=(e,t,n,r,o,i,l,s,a)=>{l=l||"svg"===t.type,null==e?x(t,n,r,o,i,l,s,a):C(e,t,o,i,l,s,a)},x=(e,t,n,o,s,a,c,p)=>{let d,h;const{type:m,props:g,shapeFlag:v,transition:y,patchFlag:b,dirs:w}=e;if(e.el&&void 0!==f&&-1===b)d=e.el=f(e.el);else{if(d=e.el=l(e.type,a,g&&g.is,g),8&v?u(d,e.children):16&v&&$(e.children,d,null,o,s,a&&"foreignObject"!==m,c,p),w&&Rr(e,null,o,"created"),g){for(const t in g)"value"===t||G(t)||i(d,t,null,g[t],a,e.children,o,s,J);"value"in g&&i(d,"value",null,g.value),(h=g.onVnodeBeforeMount)&&ho(h,o,e)}S(d,e,e.scopeId,c,o)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:o,enumerable:!1})),w&&Rr(e,null,o,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;k&&y.beforeEnter(d),r(d,t,n),((h=g&&g.onVnodeMounted)||k||w)&&Tr((()=>{h&&ho(h,o,e),k&&y.enter(d),w&&Rr(e,null,o,"mounted")}),s)},S=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let t=0;t<r.length;t++)h(e,r[t]);if(o){if(t===o.subTree){const t=o.vnode;S(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},$=(e,t,n,r,o,i,l,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?uo(e[c]):co(e[c]);g(null,a,t,n,r,o,i,l,s)}},C=(e,t,n,r,o,l,s)=>{const a=t.el=e.el;let{patchFlag:c,dynamicChildren:p,dirs:d}=t;c|=16&e.patchFlag;const h=e.props||R,f=t.props||R;let m;n&&Ur(n,!1),(m=f.onVnodeBeforeUpdate)&&ho(m,n,t,e),d&&Rr(t,e,n,"beforeUpdate"),n&&Ur(n,!0);const g=o&&"foreignObject"!==t.type;if(p?E(e.dynamicChildren,p,a,n,r,g,l):s||N(e,t,a,null,n,r,g,l,!1),c>0){if(16&c)O(a,t,h,f,n,r,o);else if(2&c&&h.class!==f.class&&i(a,"class",null,f.class,o),4&c&&i(a,"style",h.style,f.style,o),8&c){const l=t.dynamicProps;for(let t=0;t<l.length;t++){const s=l[t],c=h[s],u=f[s];u===c&&"value"!==s||i(a,s,c,u,o,e.children,n,r,J)}}1&c&&e.children!==t.children&&u(a,t.children)}else s||null!=p||O(a,t,h,f,n,r,o);((m=f.onVnodeUpdated)||d)&&Tr((()=>{m&&ho(m,n,t,e),d&&Rr(t,e,n,"updated")}),r)},E=(e,t,n,r,o,i,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],u=a.el&&(a.type===Dr||!eo(a,c)||70&a.shapeFlag)?p(a.el):n;g(a,c,u,null,r,o,i,l,!0)}},O=(e,t,n,r,o,l,s)=>{if(n!==r){for(const a in r){if(G(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,s,t.children,o,l,J)}if(n!==R)for(const a in n)G(a)||a in r||i(e,a,n[a],null,s,t.children,o,l,J);"value"in r&&i(e,"value",n.value,r.value)}},L=(e,t,n,o,i,l,a,c,u)=>{const p=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(r(p,n,o),r(d,n,o),$(t.children,n,d,i,l,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(E(e.dynamicChildren,f,n,i,l,a,c),(null!=t.key||i&&t===i.subTree)&&Pr(e,t,!0)):N(e,t,n,d,i,l,a,c,u)},A=(e,t,n,r,o,i,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,l,a):T(t,n,r,o,i,l,a):j(e,t,a)},T=(e,t,n,r,o,i,l)=>{const s=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||yo,i={uid:bo++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new fe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yr(r,o),emitsOptions:kn(r,o),emit:null,emitted:null,propsDefaults:R,inheritAttrs:r.inheritAttrs,ctx:R,data:R,props:R,attrs:R,slots:R,refs:R,setupState:R,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i},i.root=t?t.root:i,i.emit=wn.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o);if(Dn(e)&&(s.ctx.renderer=X),function(e,t=!1){So=t;const{props:n,children:r}=e.vnode,o=xo(e);mr(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=$t(t),ce(t,"_",n)):Cr(t,e.slots={})}else e.slots={},t&&Er(e,t);ce(e.slots,to,1)})(e,r);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ct(new Proxy(e.ctx,vo));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Ie(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;ko(e),Oe();const o=Nt(r,e,0,[e.props,n]);if(Re(),_o(),K(o)){if(o.then(_o,_o),t)return o.then((n=>{$o(e,n,t)})).catch((t=>{Ft(t,e,0)}));e.asyncDep=o}else $o(e,o,t)}else Co(e,t)}(e,t):void 0;So=!1}(s),s.asyncDep){if(o&&o.registerDep(s,P),!e.el){const e=s.subTree=io(Br);y(null,e,t,n)}}else P(s,e,t,n,o,i,l)},j=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:l,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!s||s&&s.$stable)||r!==l&&(r?!l||Rn(r,l,c):!!l);if(1024&a)return!0;if(16&a)return r?Rn(r,l,c):!!l;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==r[n]&&!_n(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void M(r,t,n);r.next=t,function(e){const t=qt.indexOf(e);t>Wt&&qt.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},P=(e,t,n,r,o,i,l)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,u=n;Ur(e,!1),n?(n.el=c.el,M(e,n,l)):n=c,r&&ae(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ho(t,a,n,c),Ur(e,!0);const d=Cn(e),h=e.subTree;e.subTree=d,g(h,d,p(h.el),Q(h),e,o,i),n.el=d.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),s&&Tr(s,o),(t=n.props&&n.props.onVnodeUpdated)&&Tr((()=>ho(t,a,n,c)),o),__VUE_PROD_DEVTOOLS__&&vn(e)}else{let l;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=Nn(t);if(Ur(e,!1),c&&ae(c),!d&&(l=a&&a.onVnodeBeforeMount)&&ho(l,p,t),Ur(e,!0),s&&te){const n=()=>{e.subTree=Cn(e),te(s,e.subTree,e,o,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=Cn(e);g(null,l,n,r,e,o,i),t.el=l.el}if(u&&Tr(u,o),!d&&(l=a&&a.onVnodeMounted)){const e=t;Tr((()=>ho(l,p,e)),o)}256&t.shapeFlag&&e.a&&Tr(e.a,o),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&gn(e),t=n=r=null}},a=e.effect=new Se(s,(()=>rn(e.update)),e.scope),c=e.update=a.run.bind(a);c.id=e.uid,Ur(e,!0),c()},M=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,s=$t(o),[a]=e.propsOptions;let c=!1;if(!(r||l>0)||16&l){let r;gr(e,t,o,i)&&(c=!0);for(const i in s)t&&(V(t,i)||(r=oe(i))!==i&&V(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(o[i]=vr(a,s,i,void 0,e,!0)):delete o[i]);if(i!==s)for(const e in i)t&&V(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let l=n[r];if(_n(e.emitsOptions,l))continue;const u=t[l];if(a)if(V(i,l))u!==i[l]&&(i[l]=u,c=!0);else{const t=ne(l);o[t]=vr(a,s,t,u,e,!1)}else u!==i[l]&&(i[l]=u,c=!0)}}c&&Le(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=R;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(U(o,t),n||1!==e||delete o._):(i=!t.$stable,Cr(t,o)),l=t}else t&&(Er(e,t),l={default:1});if(i)for(const e in o)xr(e)||e in l||delete o[e]})(e,t.children,n),Oe(),sn(void 0,e.update),Re()},N=(e,t,n,r,o,i,l,s,a=!1)=>{const c=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void F(c,d,n,r,o,i,l,s,a);if(256&h)return void D(c,d,n,r,o,i,l,s,a)}8&f?(16&p&&J(c,o,i),d!==c&&u(n,d)):16&p?16&f?F(c,d,n,r,o,i,l,s,a):J(c,o,i,!0):(8&p&&u(n,""),16&f&&$(d,n,r,o,i,l,s,a))},D=(e,t,n,r,o,i,l,s,a)=>{t=t||I;const c=(e=e||I).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?uo(t[d]):co(t[d]);g(e[d],r,n,null,o,i,l,s,a)}c>u?J(e,o,i,!0,!1,p):$(t,n,r,o,i,l,s,a,p)},F=(e,t,n,r,o,i,l,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const r=e[c],u=t[c]=a?uo(t[c]):co(t[c]);if(!eo(r,u))break;g(r,u,n,null,o,i,l,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?uo(t[d]):co(t[d]);if(!eo(r,c))break;g(r,c,n,null,o,i,l,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)g(null,t[c]=a?uo(t[c]):co(t[c]),n,p,o,i,l,s,a),c++}}else if(c>d)for(;c<=p;)H(e[c],o,i,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?uo(t[c]):co(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const b=d-f+1;let w=!1,k=0;const _=new Array(b);for(c=0;c<b;c++)_[c]=0;for(c=h;c<=p;c++){const r=e[c];if(y>=b){H(r,o,i,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=f;v<=d;v++)if(0===_[v-f]&&eo(r,t[v])){u=v;break}void 0===u?H(r,o,i,!0):(_[u-f]=c+1,u>=k?k=u:w=!0,g(r,t[u],n,null,o,i,l,s,a),y++)}const x=w?function(e){const t=e.slice(),n=[0];let r,o,i,l,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(o=n[n.length-1],e[o]<a){t[r]=o,n.push(r);continue}for(i=0,l=n.length-1;i<l;)s=i+l>>1,e[n[s]]<a?i=s+1:l=s;a<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,l=n[i-1];for(;i-- >0;)n[i]=l,l=t[l];return n}(_):I;for(v=x.length-1,c=b-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:r;0===_[c]?g(null,p,n,d,o,i,l,s,a):w&&(v<0||c!==x[v]?B(p,n,d,2):v--)}}},B=(e,t,n,o,i=null)=>{const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void B(e.component.subTree,t,n,o);if(128&u)return void e.suspense.move(t,n,o);if(64&u)return void s.move(e,t,n,X);if(s===Dr){r(l,t,n);for(let e=0;e<c.length;e++)B(c[e],t,n,o);return void r(e.anchor,t,n)}if(s===Hr)return void w(e,t,n);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(l),r(l,t,n),Tr((()=>a.enter(l)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=a,s=()=>r(l,t,n),c=()=>{e(l,(()=>{s(),i&&i()}))};o?o(l,s,c):c()}else r(l,t,n)},H=(e,t,n,r=!1,o=!1)=>{const{type:i,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&Ar(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Nn(e);let m;if(f&&(m=l&&l.onVnodeBeforeUnmount)&&ho(m,t,e),6&u)Z(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Rr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,X,r):c&&(i!==Dr||p>0&&64&p)?J(c,t,n,!1,!0):(i===Dr&&384&p||!o&&16&u)&&J(a,t,n),r&&q(e)}(f&&(m=l&&l.onVnodeUnmounted)||h)&&Tr((()=>{m&&ho(m,t,e),h&&Rr(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Dr)return void W(n,r);if(t===Hr)return void k(e);const l=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,l);r?r(e.el,l,o):o()}else l()},W=(e,t)=>{let n;for(;e!==t;)n=d(e),o(e),e=n;o(t)},Z=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:l,um:s}=e;r&&ae(r),o.stop(),i&&(i.active=!1,H(l,e,t,n)),s&&Tr(s,t),Tr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&yn(e)},J=(e,t,n,r=!1,o=!1,i=0)=>{for(let l=i;l<e.length;l++)H(e[l],t,n,r,o)},Q=e=>6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),Y=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),an(),t._vnode=e},X={p:g,um:H,m:B,r:q,mt:T,mc:$,pc:N,pbc:E,n:Q,o:e};let ee,te;t&&([ee,te]=t(X));return{render:Y,hydrate:ee,createApp:Lr(Y,ee)}}(e)}function Ur({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Pr(e,t,n=!1){const r=e.children,o=t.children;if(N(r)&&N(o))for(let e=0;e<r.length;e++){const t=r[e];let i=o[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=o[e]=uo(o[e]),i.el=t.el),n||Pr(t,i))}}function Mr(e,t){return function(e,t,n=!0,r=!1){const o=xn||wo;if(o){const n=o.type;if("components"===e){const e=function(e){return H(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===ne(t)||e===ie(ne(t))))return n}const i=Nr(o[e]||n[e],t)||Nr(o.appContext[e],t);return!i&&r?n:i}}("components",e,!0,t)||e}const Vr=Symbol();function Nr(e,t){return e&&(e[t]||e[ne(t)]||e[ie(ne(t))])}const Dr=Symbol(void 0),Fr=Symbol(void 0),Br=Symbol(void 0),Hr=Symbol(void 0),qr=[];let Wr=null;function Zr(e=!1){qr.push(Wr=e?null:[])}let Kr=1;function Jr(e){Kr+=e}function Qr(e){return e.dynamicChildren=Kr>0?Wr||I:null,qr.pop(),Wr=qr[qr.length-1]||null,Kr>0&&Wr&&Wr.push(e),e}function Yr(e,t,n,r,o,i){return Qr(oo(e,t,n,r,o,i,!0))}function Xr(e,t,n,r,o){return Qr(io(e,t,n,r,o,!0))}function Gr(e){return!!e&&!0===e.__v_isVNode}function eo(e,t){return e.type===t.type&&e.key===t.key}const to="__vInternal",no=({key:e})=>null!=e?e:null,ro=({ref:e,ref_key:t,ref_for:n})=>null!=e?q(e)||zt(e)||H(e)?{i:xn,r:e,k:t,f:!!n}:e:null;function oo(e,t=null,n=null,r=0,o=null,i=(e===Dr?0:1),l=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&ro(t),scopeId:Sn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return s?(po(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=q(n)?8:16),Kr>0&&!l&&Wr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Wr.push(a),a}const io=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==Vr||(e=Br);if(Gr(e)){const r=lo(e,t,!0);return n&&po(r,n),r}l=e,H(l)&&"__vccOpts"in l&&(e=e.__vccOpts);var l;if(t){t=function(e){return e?St(e)||to in e?U({},e):e:null}(t);let{class:e,style:n}=t;e&&!q(e)&&(t.class=S(e)),Z(n)&&(St(n)&&!N(n)&&(n=U({},n)),t.style=w(n))}const s=q(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Z(e)?4:H(e)?2:0;return oo(e,t,n,r,o,s,i,!0)};function lo(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,s=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=S([t.class,r.class]));else if("style"===e)t.style=w([t.style,r.style]);else if(T(e)){const n=t[e],o=r[e];!o||n===o||N(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&no(s),ref:t&&t.ref?n&&o?N(o)?o.concat(ro(t)):[o,ro(t)]:ro(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Dr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&lo(e.ssContent),ssFallback:e.ssFallback&&lo(e.ssFallback),el:e.el,anchor:e.anchor}}function so(e=" ",t=0){return io(Fr,null,e,t)}function ao(e="",t=!1){return t?(Zr(),Xr(Br,null,e)):io(Br,null,e)}function co(e){return null==e||"boolean"==typeof e?io(Br):N(e)?io(Dr,null,e.slice()):"object"==typeof e?uo(e):io(Fr,null,String(e))}function uo(e){return null===e.el||e.memo?e:lo(e)}function po(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(N(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),po(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||to in t?3===r&&xn&&(1===xn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=xn}}else H(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),64&r?(n=16,t=[so(t)]):n=8);e.children=t,e.shapeFlag|=n}function ho(e,t,n,r=null){Dt(e,t,7,[n,r])}function fo(e,t,n,r){let o;const i=n&&n[r];if(N(e)||q(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,i&&i[n])}else if(Z(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,l=n.length;r<l;r++){const l=n[r];o[r]=t(e[l],l,r,i&&i[r])}}else o=[];return n&&(n[r]=o),o}const mo=e=>e?xo(e)?Eo(e)||e.proxy:mo(e.parent):null,go=U(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=>mo(e.parent),$root:e=>mo(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?ar(e):e.type,$forceUpdate:e=>()=>rn(e.update),$nextTick:e=>nn.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?Un.bind(e):z}),vo={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(r!==R&&V(r,t))return l[t]=1,r[t];if(o!==R&&V(o,t))return l[t]=2,o[t];if((c=e.propsOptions[0])&&V(c,t))return l[t]=3,i[t];if(n!==R&&V(n,t))return l[t]=4,n[t];__VUE_OPTIONS_API__&&!or||(l[t]=0)}}const u=go[t];let p,d;return u?("$attrs"===t&&Ie(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==R&&V(n,t)?(l[t]=4,n[t]):(d=a.config.globalProperties,V(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return o!==R&&V(o,t)?(o[t]=n,!0):r!==R&&V(r,t)?(r[t]=n,!0):!V(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},l){let s;return!!n[l]||e!==R&&V(e,l)||t!==R&&V(t,l)||(s=i[0])&&V(s,l)||V(r,l)||V(go,l)||V(o.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:V(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},yo=Ir();let bo=0;let wo=null;const ko=e=>{wo=e,e.scope.on()},_o=()=>{wo&&wo.scope.off(),wo=null};function xo(e){return 4&e.vnode.shapeFlag}let So=!1;function $o(e,t,n){H(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Mt(t)),Co(e,n)}function Co(e,t,n){const r=e.type;e.render||(e.render=r.render||z),__VUE_OPTIONS_API__&&(ko(e),Oe(),ir(e),Re(),_o())}function Eo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Mt(Ct(e.exposed)),{get:(t,n)=>n in t?t[n]:n in go?go[n](e):void 0}))}const Oo=(e,t)=>function(e,t,n=!1){let r,o;const i=H(e);return i?(r=e,o=z):(r=e.get,o=e.set),new Vt(r,o,i||!o,n)}(e,0,So);function Ro(e,t,n){const r=arguments.length;return 2===r?Z(t)&&!N(t)?Gr(t)?io(e,null,[t]):io(e,t):io(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Gr(n)&&(n=[n]),io(e,t,n))}const Io="3.2.33",zo="undefined"!=typeof document?document:null,Lo=zo&&zo.createElement("template"),Ao={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 o=t?zo.createElementNS("http://www.w3.org/2000/svg",e):zo.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>zo.createTextNode(e),createComment:e=>zo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,i){const l=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{Lo.innerHTML=r?`<svg>${e}</svg>`:e;const o=Lo.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const To=/\s*!important$/;function jo(e,t,n){if(N(n))n.forEach((n=>jo(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Po[t];if(n)return n;let r=ne(t);if("filter"!==r&&r in e)return Po[t]=r;r=ie(r);for(let n=0;n<Uo.length;n++){const o=Uo[n]+r;if(o in e)return Po[t]=o}return t}(e,t);To.test(n)?e.setProperty(oe(r),n.replace(To,""),"important"):e[r]=n}}const Uo=["Webkit","Moz","ms"],Po={};const Mo="http://www.w3.org/1999/xlink";const[Vo,No]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Do=0;const Fo=Promise.resolve(),Bo=()=>{Do=0};function Ho(e,t,n,r){e.addEventListener(t,n,r)}function qo(e,t,n,r,o=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[n,s]=function(e){let t;if(Wo.test(e)){let n;for(t={};n=e.match(Wo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[oe(e.slice(2)),t]}(t);if(r){const l=i[t]=function(e,t){const n=e=>{const r=e.timeStamp||Vo();(No||r>=n.attached-1)&&Dt(function(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Do||(Fo.then(Bo),Do=Vo()))(),n}(r,o);Ho(e,n,l,s)}else l&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,l,s),i[t]=void 0)}}const Wo=/(?:Once|Passive|Capture)$/;const Zo=/^on[a-z]/;const Ko=e=>{const t=e.props["onUpdate:modelValue"];return N(t)?e=>ae(t,e):t};function Jo(e){e.target.composing=!0}function Qo(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}(t,"input"))}const Yo={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Ko(o);const i=r||o.props&&"number"===o.props.type;Ho(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():i&&(r=ue(r)),e._assign(r)})),n&&Ho(e,"change",(()=>{e.value=e.value.trim()})),t||(Ho(e,"compositionstart",Jo),Ho(e,"compositionend",Qo),Ho(e,"change",Qo))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=Ko(i),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&ue(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},Xo={deep:!0,created(e,t,n){e._assign=Ko(n),Ho(e,"change",(()=>{const t=e._modelValue,n=ri(e),r=e.checked,o=e._assign;if(N(t)){const e=C(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),o(n)}}else if(F(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(oi(e,r))}))},mounted:Go,beforeUpdate(e,t,n){e._assign=Ko(n),Go(e,t,n)}};function Go(e,{value:t,oldValue:n},r){e._modelValue=t,N(t)?e.checked=C(t,r.props.value)>-1:F(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=$(t,oi(e,!0)))}const ei={created(e,{value:t},n){e.checked=$(t,n.props.value),e._assign=Ko(n),Ho(e,"change",(()=>{e._assign(ri(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Ko(r),t!==n&&(e.checked=$(t,r.props.value))}},ti={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=F(t);Ho(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ue(ri(e)):ri(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=Ko(r)},mounted(e,{value:t}){ni(e,t)},beforeUpdate(e,t,n){e._assign=Ko(n)},updated(e,{value:t}){ni(e,t)}};function ni(e,t){const n=e.multiple;if(!n||N(t)||F(t)){for(let r=0,o=e.options.length;r<o;r++){const o=e.options[r],i=ri(o);if(n)N(t)?o.selected=C(t,i)>-1:o.selected=t.has(i);else if($(ri(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ri(e){return"_value"in e?e._value:e.value}function oi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ii={created(e,t,n){li(e,t,n,null,"created")},mounted(e,t,n){li(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){li(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){li(e,t,n,r,"updated")}};function li(e,t,n,r,o){let i;switch(e.tagName){case"SELECT":i=ti;break;case"TEXTAREA":i=Yo;break;default:switch(n.props&&n.props.type){case"checkbox":i=Xo;break;case"radio":i=ei;break;default:i=Yo}}const l=i[o];l&&l(e,t,n,r)}const si={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ai(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ai(e,!0),r.enter(e)):r.leave(e,(()=>{ai(e,!1)})):ai(e,t))},beforeUnmount(e,{value:t}){ai(e,t)}};function ai(e,t){e.style.display=t?e._vod:"none"}const ci=U({patchProp:(e,t,n,r,o=!1,i,l,s,a)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,o):"style"===t?function(e,t,n){const r=e.style,o=q(n);if(n&&!o){for(const e in n)jo(r,e,n[e]);if(t&&!q(t))for(const e in t)null==n[e]&&jo(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,n,r):T(t)?j(t)||qo(e,t,0,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Zo.test(t)&&H(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Zo.test(t)&&q(n))return!1;return t in e}(e,t,r,o))?function(e,t,n,r,o,i,l){if("innerHTML"===t||"textContent"===t)return r&&l(r,o,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=b(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,i,l,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Mo,t.slice(6,t.length)):e.setAttributeNS(Mo,t,n);else{const r=y(t);null==n||r&&!b(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,o))}},Ao);let ui;const pi=(...e)=>{const t=(ui||(ui=jr(ci))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(q(e)){return document.querySelector(e)}return e}(e);if(!r)return;const o=t._component;H(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function di(e){return!!he&&(function(e){he&&he.cleanups.push(e)}(e),!0)}const hi="undefined"!=typeof window,fi=()=>{};const mi=e=>e();var gi=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,yi=Object.prototype.propertyIsEnumerable;function bi(e,t,n={}){const r=n,{eventFilter:o=mi}=r,i=((e,t)=>{var n={};for(var r in e)vi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gi)for(var r of gi(e))t.indexOf(r)<0&&yi.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return Tn(e,(l=o,s=t,function(...e){l((()=>s.apply(this,e)),{fn:s,thisArg:this,args:e})}),i);var l,s}var wi=Object.defineProperty,ki=Object.defineProperties,_i=Object.getOwnPropertyDescriptors,xi=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,Ci=(e,t,n)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Ei(e,t,n={}){const r=n,{eventFilter:o}=r,i=((e,t)=>{var n={};for(var r in e)Si.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xi)for(var r of xi(e))t.indexOf(r)<0&&$i.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:l,pause:s,resume:a,isActive:c}=function(e=mi){const t=Lt(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(o),u=bi(e,t,(p=((e,t)=>{for(var n in t||(t={}))Si.call(t,n)&&Ci(e,n,t[n]);if(xi)for(var n of xi(t))$i.call(t,n)&&Ci(e,n,t[n]);return e})({},i),ki(p,_i({eventFilter:l}))));var p;return{stop:u,pause:s,resume:a,isActive:c}}const Oi=hi?window:void 0,Ri=hi?window.document:void 0;function Ii(...e){let t,n,r,o;if("string"==typeof e[0]?([n,r,o]=e,t=Oi):[t,n,r,o]=e,!t)return fi;let i=fi;const l=Tn((()=>function(e){var t;const n=Ut(e);return null!=(t=null==n?void 0:n.$el)?t:n}(t)),(e=>{i(),e&&(e.addEventListener(n,r,o),i=()=>{e.removeEventListener(n,r,o),i=fi})}),{immediate:!0,flush:"post"}),s=()=>{l(),i()};return di(s),s}hi&&window.navigator,hi&&window.location;const zi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Li="__vueuse_ssr_handlers__";zi[Li]=zi[Li]||{};const Ai=zi[Li];const Ti={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function ji(e,t,n,r={}){var o;const{flush:i="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,shallow:c,window:u=Oi,eventFilter:p,onError:d=(e=>{console.error(e)})}=r,h=(c?At:Lt)(t);if(!n)try{n=function(e,t){return Ai[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Oi)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return h;const f=Ut(t),m=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}(f),g=null!=(o=r.serializer)?o:Ti[m],{pause:v,resume:y}=Ei(h,(()=>function(t){try{null==t?n.removeItem(e):n.setItem(e,g.write(t))}catch(e){d(e)}}(h.value)),{flush:i,deep:l,eventFilter:p});return u&&s&&Ii(u,"storage",b),b(),h;function b(t){t&&t.key!==e||(h.value=function(t){if(!t||t.key===e){v();try{const r=t?t.newValue:n.getItem(e);return null==r?(a&&null!==f&&n.setItem(e,g.write(f)),f):"string"!=typeof r?r:g.read(r)}catch(e){d(e)}finally{y()}}}(t))}}var Ui,Pi,Mi=Object.defineProperty,Vi=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Fi=(e,t,n)=>t in e?Mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Bi(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Lt(new Date),o=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=Oi}=t,o=Lt(!1);let i=null;function l(){o.value&&r&&(e(),i=r.requestAnimationFrame(l))}function s(){!o.value&&r&&(o.value=!0,l())}function a(){o.value=!1,null!=i&&r&&(r.cancelAnimationFrame(i),i=null)}return n&&s(),di(a),{isActive:o,pause:a,resume:s}}(o,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let i=null;const l=Lt(!1);function s(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,s()}function c(){t<=0||(l.value=!0,o&&e(),s(),i=setInterval(e,Ut(t)))}r&&hi&&c(),zt(t)&&di(Tn(t,(()=>{r&&hi&&c()})));return di(a),{isActive:l,pause:a,resume:c}}(o,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Ni.call(t,n)&&Fi(e,n,t[n]);if(Vi)for(var n of Vi(t))Di.call(t,n)&&Fi(e,n,t[n]);return e})({now:r},i):r}hi&&(null==window?void 0:window.navigator)&&(null==(Ui=null==window?void 0:window.navigator)?void 0:Ui.platform)&&/iP(ad|hone|od)/.test(null==(Pi=null==window?void 0:window.navigator)?void 0:Pi.platform);let Hi=0;const qi=e=>{try{e=decodeURI(e)}catch(e){}return e},Wi=(e="")=>e.replace(/\/$/u,""),Zi=e=>/^(https?:)?\/\//.test(e),Ki=e=>{const t=Wi(e);return Zi(t)?t:`https://${t}`},Ji=e=>Array.isArray(e)?e:!!e&&[0,e],Qi=(e,t)=>"function"==typeof e?e:!1!==e&&t,Yi="{--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}",Xi=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Gi=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,o=t.getTime()-r.getTime(),i=Math.floor(o/864e5);if(0===i){const e=o%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:(e=>{const t=Xi(e.getDate(),2),n=Xi(e.getMonth()+1,2);return`${Xi(e.getFullYear(),2)}-${n}-${t}`})(r)},el=e=>{const t=ji("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const o={folder:e,...r};return n&&(t.value[e]=o),o}))},tl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,nl=e=>{"AbortError"!==e.name&&console.error(e.message)},rl={"Content-Type":"application/json"},ol=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},il=({serverURL:e,lang:t,token:n,objectId:r,...o})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(o)}).then((e=>e.json())),ll=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>ol(e,"visit count"))).then((e=>Array.isArray(e)?e:[e])),sl=({serverURL:e,lang:t,path:n})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:rl,body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>ol(e,"visit count"))),al=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,cl=e=>e.type.includes("image"),ul=e=>{const t=Array.from(e).find(cl);return t?t.getAsFile():null};function pl(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let dl={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const hl=/[&<>"']/,fl=/[&<>"']/g,ml=/[<>"']|&(?!#?\w+;)/,gl=/[<>"']|&(?!#?\w+;)/g,vl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yl=e=>vl[e];function bl(e,t){if(t){if(hl.test(e))return e.replace(fl,yl)}else if(ml.test(e))return e.replace(gl,yl);return e}const wl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function kl(e){return e.replace(wl,((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 _l=/(^|[^\[])\^/g;function xl(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(_l,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const Sl=/[^\w:]/g,$l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Cl(e,t,n){if(e){let e;try{e=decodeURIComponent(kl(n)).replace(Sl,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!$l.test(n)&&(n=function(e,t){El[" "+e]||(Ol.test(e)?El[" "+e]=e+"/":El[" "+e]=Tl(e,"/",!0));const n=-1===(e=El[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Rl,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Il,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const El={},Ol=/^[^:]+:\/*[^/]*$/,Rl=/^([^:]+:)[\s\S]*$/,Il=/^([^:]+:\/*[^/]*)[\s\S]*$/;const zl={exec:function(){}};function Ll(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Al(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function Tl(e,t,n){const r=e.length;if(0===r)return"";let o=0;for(;o<r;){const i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.slice(0,r-o)}function jl(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Ul(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Pl(e,t,n,r){const o=t.href,i=t.title?bl(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:l,tokens:r.inlineTokens(l,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:bl(l)}}class Ml{constructor(e){this.options=e||dl}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Tl(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Tl(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,l,s,a,c,u,p,d,h,f=t[1].trim();const m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c))&&!r.test(e);){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}g.loose||(a?g.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(o="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:d}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=d.trimRight(),g.raw=g.raw.trimRight();const y=g.items.length;for(l=0;l<y;l++){this.lexer.state.top=!1,g.items[l].tokens=this.lexer.blockTokens(g.items[l].text,[]);const e=g.items[l].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!g.loose&&e.length&&t&&(g.loose=!0,g.items[l].loose=!0)}return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):bl(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Al(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,o,i,l=e.align.length;for(n=0;n<l;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(l=e.rows.length,n=0;n<l;n++)e.rows[n]=Al(e.rows[n],e.header.length).map((e=>({text:e})));for(l=e.header.length,r=0;r<l;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(l=e.rows.length,r=0;r<l;r++)for(i=e.rows[r],o=0;o<i.length;o++)i[o].tokens=[],this.lexer.inlineTokens(i[o].text,i[o].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:bl(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):bl(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Tl(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,o=0;for(;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Pl(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Pl(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,l=n,s=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){l+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(l-=i,l>0)continue;if(i=Math.min(i,i+l+s),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=bl(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=bl(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=bl(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=bl(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=bl(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):bl(n[0]):n[0]:bl(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Vl={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:zl,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Vl.def=xl(Vl.def).replace("label",Vl._label).replace("title",Vl._title).getRegex(),Vl.bullet=/(?:[*+-]|\d{1,9}[.)])/,Vl.listItemStart=xl(/^( *)(bull) */).replace("bull",Vl.bullet).getRegex(),Vl.list=xl(Vl.list).replace(/bull/g,Vl.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Vl.def.source+")").getRegex(),Vl._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",Vl._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Vl.html=xl(Vl.html,"i").replace("comment",Vl._comment).replace("tag",Vl._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vl.paragraph=xl(Vl._paragraph).replace("hr",Vl.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",Vl._tag).getRegex(),Vl.blockquote=xl(Vl.blockquote).replace("paragraph",Vl.paragraph).getRegex(),Vl.normal=Ll({},Vl),Vl.gfm=Ll({},Vl.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Vl.gfm.table=xl(Vl.gfm.table).replace("hr",Vl.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",Vl._tag).getRegex(),Vl.gfm.paragraph=xl(Vl._paragraph).replace("hr",Vl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Vl.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",Vl._tag).getRegex(),Vl.pedantic=Ll({},Vl.normal,{html:xl("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Vl._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:zl,paragraph:xl(Vl.normal._paragraph).replace("hr",Vl.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Vl.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Nl={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:zl,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:zl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Dl(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 Fl(e){let t,n,r="";const o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Nl._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Nl.punctuation=xl(Nl.punctuation).replace(/punctuation/g,Nl._punctuation).getRegex(),Nl.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Nl.escapedEmSt=/\\\*|\\_/g,Nl._comment=xl(Vl._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Nl.emStrong.lDelim=xl(Nl.emStrong.lDelim).replace(/punct/g,Nl._punctuation).getRegex(),Nl.emStrong.rDelimAst=xl(Nl.emStrong.rDelimAst,"g").replace(/punct/g,Nl._punctuation).getRegex(),Nl.emStrong.rDelimUnd=xl(Nl.emStrong.rDelimUnd,"g").replace(/punct/g,Nl._punctuation).getRegex(),Nl._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Nl._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Nl._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])?)+(?![-_])/,Nl.autolink=xl(Nl.autolink).replace("scheme",Nl._scheme).replace("email",Nl._email).getRegex(),Nl._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Nl.tag=xl(Nl.tag).replace("comment",Nl._comment).replace("attribute",Nl._attribute).getRegex(),Nl._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Nl._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Nl._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Nl.link=xl(Nl.link).replace("label",Nl._label).replace("href",Nl._href).replace("title",Nl._title).getRegex(),Nl.reflink=xl(Nl.reflink).replace("label",Nl._label).replace("ref",Vl._label).getRegex(),Nl.nolink=xl(Nl.nolink).replace("ref",Vl._label).getRegex(),Nl.reflinkSearch=xl(Nl.reflinkSearch,"g").replace("reflink",Nl.reflink).replace("nolink",Nl.nolink).getRegex(),Nl.normal=Ll({},Nl),Nl.pedantic=Ll({},Nl.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:xl(/^!?\[(label)\]\((.*?)\)/).replace("label",Nl._label).getRegex(),reflink:xl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nl._label).getRegex()}),Nl.gfm=Ll({},Nl.normal,{escape:xl(Nl.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Nl.gfm.url=xl(Nl.gfm.url,"i").replace("email",Nl.gfm._extended_email).getRegex(),Nl.breaks=Ll({},Nl.gfm,{br:xl(Nl.br).replace("{2,}","*").getRegex(),text:xl(Nl.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Bl{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||dl,this.options.tokenizer=this.options.tokenizer||new Ml,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Vl.normal,inline:Nl.normal};this.options.pedantic?(t.block=Vl.pedantic,t.inline=Nl.pedantic):this.options.gfm&&(t.block=Vl.gfm,this.options.breaks?t.inline=Nl.breaks:t.inline=Nl.gfm),this.tokenizer.rules=t}static get rules(){return{block:Vl,inline:Nl}}static lex(e,t){return new Bl(t).lex(e)}static lexInline(e,t){return new Bl(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,o,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,o,i,l,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+Ul("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,i.index)+"["+Ul("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(s=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Fl))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Fl))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,Dl))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),l=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class Hl{constructor(e){this.options=e||dl}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+bl(r,!0)+'">'+(n?e:bl(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:bl(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=Cl(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+bl(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=Cl(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class ql{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 Wl{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Zl{constructor(e){this.options=e||dl,this.options.renderer=this.options.renderer||new Hl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ql,this.slugger=new Wl}static parse(e,t){return new Zl(t).parse(e)}static parseInline(e,t){return new Zl(t).parseInline(e)}parse(e,t=!0){let n,r,o,i,l,s,a,c,u,p,d,h,f,m,g,v,y,b,w,k="";const _=e.length;for(n=0;n<_;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(w=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))k+=w||"";else switch(p.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(p.tokens),p.depth,kl(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",i=p.header.length,r=0;r<i;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",i=p.rows.length,r=0;r<i;r++){for(s=p.rows[r],a="",l=s.length,o=0;o<l;o++)a+=this.renderer.tablecell(this.parseInline(s[o].tokens),{header:!1,align:p.align[o]});u+=this.renderer.tablerow(a)}k+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,i=p.items.length,u="",r=0;r<i;r++)g=p.items[r],v=g.checked,y=g.task,m="",g.task&&(b=this.renderer.checkbox(v),f?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,y,v);k+=this.renderer.list(u,d,h);continue;case"html":k+=this.renderer.html(p.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<_&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,o,i="";const l=e.length;for(n=0;n<l;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(o=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=o||"";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}}function Kl(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),jl(t=Ll({},Kl.defaults,t||{})),n){const r=t.highlight;let o;try{o=Bl.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&Kl.walkTokens(o,t.walkTokens),i=Zl.parse(o,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,i)};if(!r||r.length<3)return i();if(delete t.highlight,!o.length)return i();let l=0;return Kl.walkTokens(o,(function(e){"code"===e.type&&(l++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&i()}))}),0))})),void(0===l&&i())}try{const n=Bl.lex(e,t);return t.walkTokens&&Kl.walkTokens(n,t.walkTokens),Zl.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+bl(e.message+"",!0)+"</pre>";throw e}}Kl.options=Kl.setOptions=function(e){var t;return Ll(Kl.defaults,e),t=Kl.defaults,dl=t,Kl},Kl.getDefaults=pl,Kl.defaults=dl,Kl.use=function(...e){const t=Ll({},...e),n=Kl.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Kl.defaults.renderer||new Hl;for(const t in e.renderer){const r=n[t];n[t]=(...o)=>{let i=e.renderer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.renderer=n}if(e.tokenizer){const n=Kl.defaults.tokenizer||new Ml;for(const t in e.tokenizer){const r=n[t];n[t]=(...o)=>{let i=e.tokenizer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.tokenizer=n}if(e.walkTokens){const n=Kl.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),Kl.setOptions(t)}))},Kl.walkTokens=function(e,t){for(const n of e)switch(t.call(Kl,n),n.type){case"table":for(const e of n.header)Kl.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Kl.walkTokens(n.tokens,t);break;case"list":Kl.walkTokens(n.items,t);break;default:Kl.defaults.extensions&&Kl.defaults.extensions.childTokens&&Kl.defaults.extensions.childTokens[n.type]?Kl.defaults.extensions.childTokens[n.type].forEach((function(e){Kl.walkTokens(n[e],t)})):n.tokens&&Kl.walkTokens(n.tokens,t)}},Kl.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");jl(t=Ll({},Kl.defaults,t||{}));try{const n=Bl.lexInline(e,t);return t.walkTokens&&Kl.walkTokens(n,t.walkTokens),Zl.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+bl(e.message+"",!0)+"</pre>";throw e}},Kl.Parser=Zl,Kl.parser=Zl.parse,Kl.Renderer=Hl,Kl.TextRenderer=ql,Kl.Lexer=Bl,Kl.lexer=Bl.lex,Kl.Tokenizer=Ml,Kl.Slugger=Wl,Kl.parse=Kl;const Jl=/\$.*?\$/,Ql=/^\$(.*?)\$/,Yl=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Xl=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Gl=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(Kl.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Yl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(Jl);return-1!==t?t:e.length},tokenizer(t){const n=Ql.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Kl.use({extensions:e})}return Kl.parse(Xl(e,t))},es=e=>e.dataset.path||e.getAttribute("id");let ts=null;const ns=()=>ts||(ts=ji("USER_KEY",{}));let rs=null;const os=()=>rs||(rs=ji("WALIKE_LIKE",[])),is=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{const o=new AbortController,i=document.querySelectorAll(n),l=ns();return i.length&&(({serverURL:e,lang:t,paths:n,signal:r,token:o})=>{const i={};return o&&(i.Authorization=`Bearer ${o}`),fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:i}).then((e=>e.json())).then((e=>ol(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:Array.from(i).map((e=>qi(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:o.signal,token:l.value?.token}).then((e=>{i.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(nl),o.abort.bind(o)};var ls,ss,as="function"==typeof Map?new Map:(ls=[],ss=[],{has:function(e){return ls.indexOf(e)>-1},get:function(e){return ss[ls.indexOf(e)]},set:function(e,t){-1===ls.indexOf(e)&&(ls.push(e),ss.push(t))},delete:function(e){var t=ls.indexOf(e);t>-1&&(ls.splice(t,1),ss.splice(t,1))}}),cs=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(ls){cs=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function us(e){var t=as.get(e);t&&t.destroy()}function ps(e){var t=as.get(e);t&&t.update()}var ds=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((ds=function(e){return e}).destroy=function(e){return e},ds.update=function(e){return e}):((ds=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!as.has(e)){var t,n=null,r=null,o=null,i=function(){e.clientWidth!==r&&c()},l=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),as.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",as.set(e,{destroy:l,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=cs("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],us),e},ds.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ps),e});var hs=ds;const fs=({size:e})=>Ro("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Ro("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Ro("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var ms=Vn({name:"CommentBox",components:{CloseIcon:({size:e})=>Ro("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Ro("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"}),Ro("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),EmojiIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Ro("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),ImageIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Ro("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"}),Ro("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"})]),MarkdownIcon:()=>Ro("svg",{width:"16",height:"16",ariaHidden:"true"},Ro("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),PreviewIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Ro("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"}),Ro("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),LoadingIcon:fs},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,{emit:t}){const n=zn("config"),r=ji("WALINE_COMMENT_BOX_EDITOR",""),o=ji("WALINE_USER_META",{nick:"",mail:"",link:""}),i=ns(),l=Lt({}),s=Lt(null),a=Lt(null),c=Lt(null),u=Lt(null),p=Lt({tabs:[],map:{}}),d=Lt(0),h=Lt(!1),f=Lt(!1),m=Lt(""),g=Lt(0),v=Lt(0),y=Lt(!1),b=Lt(""),w=Lt(!1),k=Oo((()=>n.value.locale)),_=Oo((()=>Boolean(i.value?.token))),x=Oo((()=>!1!==n.value.imageUploader)),S=e=>{const t=s.value,n=t.selectionStart,o=t.selectionEnd||0,i=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},$=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return S(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n![${e.name}](${n})`)}))},C=()=>{const{serverURL:a,lang:c,login:u,wordLimit:d,requiredMeta:h}=n.value,f={comment:b.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,ua:navigator.userAgent,url:n.value.path};if(i.value?.token)f.nick=i.value.display_name,f.mail=i.value.email,f.link=i.value.url;else{if("force"===u)return;if(h.indexOf("nick")>-1&&!f.nick)return l.value.nick?.focus(),alert(k.value.nickError);if(h.indexOf("mail")>-1&&!f.mail||f.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(f.mail))return l.value.mail?.focus(),alert(k.value.mailError);if(!f.comment)return void s.value?.focus();f.nick||(f.nick=k.value.anonymous)}if(!y.value)return alert(k.value.wordHint.replace("$0",d[0].toString()).replace("$1",d[1].toString()).replace("$2",g.value.toString()));f.comment=Xl(f.comment,p.value.map),e.replyId&&e.rootId&&(f.pid=e.replyId,f.rid=e.rootId,f.at=e.replyUser),w.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const o={"Content-Type":"application/json"};return n&&(o.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:o,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:a,lang:c,token:i.value?.token,comment:f}).then((n=>{if(w.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",m.value="",e.replyId&&t("cancel-reply")})).catch((e=>{w.value=!1,alert(e.message)}))},E=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(h.value=!1)};return Tn([n,g],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(v.value=n[0],y.value=!1):t>n[1]?(v.value=n[1],y.value=!1):(v.value=n[1],y.value=!0):(v.value=0,y.value=!0)}),{immediate:!0}),Jn((()=>{document.body.addEventListener("click",E),Tn((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;b.value=e,m.value=Gl(e,{emojiMap:p.value.map,highlighter:t,texRenderer:r}),g.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?hs(s.value):hs.destroy(s.value)}),{immediate:!0}),Tn((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?el(Wi(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:o,prefix:i,type:l,items:s}=e;t.tabs.push({name:n,icon:tl(o,r,i,l),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=tl(e,r,i,l),n}))})})),t}))).then((e=>{p.value=e}));var t}),{immediate:!0})})),Gn((()=>{document.body.removeEventListener("click",E)})),{config:n,locale:k,insert:S,onChange:()=>{const e=a.value;e.files&&x.value&&$(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{if(e.dataTransfer?.items){const t=ul(e.dataTransfer.items);t&&x.value&&($(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&C()},onPaste:e=>{if(e.clipboardData){const t=ul(e.clipboardData.items);t&&x.value&&$(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-450)/2,l=(window.innerHeight-450)/2,s=window.open(`${r}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${o},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);s?.postMessage({type:"TOKEN",data:null},"*");const a=({data:e})=>{e&&"userInfo"===e.type&&e.data.token&&(s?.close(),i.value=e.data,(e.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{i.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2;window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${o},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:"TOKEN",data:i.value.token},"*");const s=({data:e})=>{e&&"profile"===e.type&&(i.value={...i.value,...e},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))),window.removeEventListener("message",s))};window.addEventListener("message",s)},submitComment:C,isLogin:_,userInfo:i,isSubmitting:w,wordNumber:g,wordLimit:v,isWordNumberLegal:y,editor:r,userMeta:o,emoji:p,emojiTabIndex:d,showEmoji:h,canUploadImage:x,previewText:m,showPreview:f,inputRefs:l,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,imageUploadRef:a}}});const gs={class:"wl-comment"},vs={key:0,class:"wl-login-info"},ys={class:"wl-avatar"},bs=["title"],ws=["src"],ks=["textContent"],_s={class:"wl-panel"},xs=["for","textContent"],Ss=["id","name","type","onUpdate:modelValue"],$s=["placeholder"],Cs={class:"wl-preview"},Es=oo("hr",null,null,-1),Os=["innerHTML"],Rs={class:"wl-footer"},Is={class:"wl-actions"},zs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},Ls=["title"],As=["title"],Ts=["title"],js={class:"wl-info"},Us={class:"wl-text-number"},Ps={key:0},Ms=so("  /  "),Vs=["textContent"],Ns=["textContent"],Ds=["disabled"],Fs={key:0,class:"wl-tab-wrapper"},Bs=["title","onClick"],Hs=["src","alt"],qs={key:0,class:"wl-tabs"},Ws=["onClick"],Zs=["src","alt","title"],Ks=["title"];ms.render=function(e,t,n,r,o,i){const l=Mr("CloseIcon"),s=Mr("MarkdownIcon"),a=Mr("EmojiIcon"),c=Mr("ImageIcon"),u=Mr("PreviewIcon"),p=Mr("LoadingIcon");return Zr(),Yr("div",gs,["disable"!==e.config.login&&e.isLogin?(Zr(),Yr("div",vs,[oo("div",ys,[oo("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[io(l,{size:14})],8,bs),oo("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,ws)]),oo("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:E(e.userInfo.display_name)},null,8,ks)])):ao("v-if",!0),oo("div",_s,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Zr(),Yr("div",{key:0,class:S(["wl-header",`item${e.config.meta.length}`])},[(Zr(!0),Yr(Dr,null,fo(e.config.meta,(t=>(Zr(),Yr("div",{class:"wl-header-item",key:t},[oo("label",{for:t,textContent:E(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,xs),Or(oo("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:`wl-${t}`,class:S(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,Ss),[[ii,e.userMeta[t]]])])))),128))],2)):ao("v-if",!0),Or(oo("textarea",{class:"wl-editor",ref:"editorRef",id:"wl-edit",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editor=t),onKeydown:t[3]||(t[3]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[4]||(t[4]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[5]||(t[5]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,$s),[[Yo,e.editor]]),Or(oo("div",Cs,[Es,oo("h4",null,E(e.locale.preview)+":",1),oo("div",{class:"wl-content",innerHTML:e.previewText},null,8,Os)],512),[[si,e.showPreview]]),oo("div",Rs,[oo("div",Is,[oo("a",zs,[io(s)]),Or(oo("button",{ref:"emojiButtonRef",class:S(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[io(a)],10,Ls),[[si,e.emoji.tabs.length]]),oo("input",{ref:"imageUploadRef",class:"upload",id:"wl-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[7]||(t[7]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(Zr(),Yr("label",{key:0,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[io(c)],8,As)):ao("v-if",!0),oo("button",{class:S(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[io(u)],10,Ts)]),oo("div",js,[oo("div",Us,[so(E(e.wordNumber)+" ",1),e.config.wordLimit?(Zr(),Yr("span",Ps,[Ms,oo("span",{class:S({illegal:!e.isWordNumberLegal}),textContent:E(e.wordLimit)},null,10,Vs)])):ao("v-if",!0),so("  "+E(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?ao("v-if",!0):(Zr(),Yr("button",{key:0,class:"wl-btn",onClick:t[9]||(t[9]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:E(e.locale.login)},null,8,Ns)),"force"!==e.config.login||e.isLogin?(Zr(),Yr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[10]||(t[10]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(Zr(),Xr(p,{key:0,size:16})):(Zr(),Yr(Dr,{key:1},[so(E(e.locale.submit),1)],2112))],8,Ds)):ao("v-if",!0)]),oo("div",{ref:"emojiPopupRef",class:S(["wl-emoji-popup",{display:e.showEmoji}])},[(Zr(!0),Yr(Dr,null,fo(e.emoji.tabs,((t,n)=>(Zr(),Yr(Dr,{key:t.name},[n===e.emojiTabIndex?(Zr(),Yr("div",Fs,[(Zr(!0),Yr(Dr,null,fo(t.items,(t=>(Zr(),Yr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(Zr(),Yr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Hs)):ao("v-if",!0)],8,Bs)))),128))])):ao("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Zr(),Yr("div",qs,[(Zr(!0),Yr(Dr,null,fo(e.emoji.tabs,((t,n)=>(Zr(),Yr("button",{key:t.name,class:S(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[oo("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Zs)],10,Ws)))),128))])):ao("v-if",!0)],2)])]),e.replyId?(Zr(),Yr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[io(l,{size:24})],8,Ks)):ao("v-if",!0)])},ms.__file="src/components/CommentBox.vue";const Js=["approved","waiting","spam"];var Qs=Vn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:ms,DeleteIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Ro("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),LikeIcon:({active:e=!1})=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Ro("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z"+(e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:e?"red":"currentColor"})]),ReplyIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Ro("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),VerifiedIcon:()=>Ro("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Ro("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"}))},emits:["submit","reply","like","delete","status","sticky"],setup(e){const t=zn("config"),n=os(),r=ns(),o=Oo((()=>t.value.locale)),i=Oo((()=>{let{link:t}=e.comment;return t?Zi(t)?t:`https://${t}`:""})),l=Oo((()=>n.value.includes(e.comment.objectId))),s=((e,t)=>{const n=Bi();return Oo((()=>Gi(e,n.value,t)))})(e.comment.insertedAt,o.value),a=Oo((()=>"administrator"===r.value.type)),c=Oo((()=>e.comment.user_id&&r.value.objectId===e.comment.user_id)),u=Oo((()=>e.comment.objectId===e.reply?.objectId));return{config:t,locale:o,isReplyingCurrent:u,link:i,like:l,time:s,isAdmin:a,isOwner:c,commentStatus:Js}}});const Ys=["id"],Xs={class:"wl-user","aria-hidden":"true"},Gs=["src"],ea={class:"wl-card"},ta={class:"wl-head"},na=["href"],ra={key:1,class:"wl-nick"},oa=["textContent"],ia=["textContent"],la=["textContent"],sa=["textContent"],aa=["textContent"],ca={class:"wl-comment-actions"},ua=["title"],pa=["textContent"],da=["title"],ha={class:"wl-meta","aria-hidden":"true"},fa=["textContent"],ma=["textContent"],ga=["textContent"],va=["innerHTML"],ya={key:0,class:"wl-admin-actions"},ba={class:"wl-comment-status"},wa=["disabled","onClick","textContent"],ka={key:1,class:"wl-reply-wrapper"},_a={key:2,class:"wl-quote"};Qs.render=function(e,t,n,r,o,i){const l=Mr("VerifiedIcon"),s=Mr("DeleteIcon"),a=Mr("LikeIcon"),c=Mr("ReplyIcon"),u=Mr("CommentBox"),p=Mr("CommentCard",!0);return Zr(),Yr("div",{class:"wl-item",id:e.comment.objectId},[oo("div",Xs,[e.comment.avatar?(Zr(),Yr("img",{key:0,src:e.comment.avatar},null,8,Gs)):ao("v-if",!0),e.comment.type?(Zr(),Xr(l,{key:1})):ao("v-if",!0)]),oo("div",ea,[oo("div",ta,[e.link?(Zr(),Yr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},E(e.comment.nick),9,na)):(Zr(),Yr("span",ra,E(e.comment.nick),1)),"administrator"===e.comment.type?(Zr(),Yr("span",{key:2,class:"wl-badge",textContent:E(e.locale.admin)},null,8,oa)):ao("v-if",!0),e.comment.label?(Zr(),Yr("span",{key:3,class:"wl-badge",textContent:E(e.comment.label)},null,8,ia)):ao("v-if",!0),e.comment.sticky?(Zr(),Yr("span",{key:4,class:"wl-badge",textContent:E(e.locale.sticky)},null,8,la)):ao("v-if",!0),e.comment.level&&e.comment.level>=0?(Zr(),Yr("span",{key:5,class:S(`wl-badge level${e.comment.level}`),textContent:E(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,sa)):ao("v-if",!0),oo("span",{class:"wl-time",textContent:E(e.time)},null,8,aa),oo("div",ca,[e.isAdmin||e.isOwner?(Zr(),Yr("button",{key:0,class:"wl-delete",onClick:t[0]||(t[0]=t=>e.$emit("delete",e.comment))},[io(s)])):ao("v-if",!0),oo("button",{class:"wl-like",onClick:t[1]||(t[1]=t=>e.$emit("like",e.comment)),title:e.like?e.locale.cancelLike:e.locale.like},[io(a,{active:e.like},null,8,["active"]),"like"in e.comment?(Zr(),Yr("span",{key:0,textContent:E(e.comment.like)},null,8,pa)):ao("v-if",!0)],8,ua),oo("button",{class:S(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[2]||(t[2]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[io(c)],10,da)])]),oo("div",ha,[e.comment.addr?(Zr(),Yr("span",{key:0,textContent:E(e.comment.addr)},null,8,fa)):ao("v-if",!0),e.comment.browser?(Zr(),Yr("span",{key:1,textContent:E(e.comment.browser)},null,8,ma)):ao("v-if",!0),e.comment.os?(Zr(),Yr("span",{key:2,textContent:E(e.comment.os)},null,8,ga)):ao("v-if",!0)]),oo("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,va),e.isAdmin?(Zr(),Yr("div",ya,[oo("span",ba,[(Zr(!0),Yr(Dr,null,fo(e.commentStatus,(t=>(Zr(),Yr("button",{key:t,class:S(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:E(t)},null,10,wa)))),128))]),e.isAdmin&&!e.comment.rid?(Zr(),Yr("button",{key:0,class:"wl-btn wl-sticky",onClick:t[3]||(t[3]=t=>e.$emit("sticky",e.comment))},E(e.comment.sticky?"unsticky":"sticky"),1)):ao("v-if",!0)])):ao("v-if",!0),e.isReplyingCurrent?(Zr(),Yr("div",ka,[io(u,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t)),onCancelReply:t[5]||(t[5]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):ao("v-if",!0),e.comment.children?(Zr(),Yr("div",_a,[(Zr(!0),Yr(Dr,null,fo(e.comment.children,(n=>(Zr(),Xr(p,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[6]||(t[6]=t=>e.$emit("reply",t)),onSubmit:t[7]||(t[7]=t=>e.$emit("submit",t)),onLike:t[8]||(t[8]=t=>e.$emit("like",t)),onDelete:t[9]||(t[9]=t=>e.$emit("delete",t)),onStatus:t[10]||(t[10]=t=>e.$emit("status",t)),onSticky:t[11]||(t[11]=t=>e.$emit("sticky",t))},null,8,["comment","reply","rootId"])))),128))])):ao("v-if",!0)])],8,Ys)},Qs.__file="src/components/CommentCard.vue";var xa=Vn({name:"WalineRoot",components:{CommentBox:ms,CommentCard:Qs,LoadingIcon:fs},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","copyright"],setup(e){const o=Oo((()=>(({serverURL:e,path:o=location.pathname,lang:i="zh-CN",locale:l,emoji:a=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:c=["nick","mail","link"],requiredMeta:u=[],dark:p=!1,pageSize:d=10,wordLimit:h,imageUploader:f,highlighter:m,texRenderer:v,copyright:y=!0,login:b="enable",...w})=>({serverURL:Ki(e),path:qi(o),locale:{...g[i]||g["zh-CN"],..."object"==typeof l?l:{}},wordLimit:Ji(h),meta:t(c),requiredMeta:t(u),imageUploader:Qi(f,n),highlighter:Qi(m,s),texRenderer:Qi(v,r),lang:i,dark:p,emoji:a,pageSize:d,login:b,copyright:y,...w}))(e))),i=ns(),l=os(),a=Lt("loading"),c=Lt(0),u=Lt(1),p=Lt(0),d=Lt([]),h=Lt(null),f=Oo((()=>{return"string"==typeof(e=o.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${Yi}}`:`${e}${Yi}`:!0===e?`:root${Yi}`:"";var e}));let m;!function(e,t={}){const n=Lt(!1),{document:r=Ri,immediate:o=!0,manual:i=!1,id:l="vueuse_styletag_"+ ++Hi}=t,s=Lt(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(l)||r.createElement("style");e.type="text/css",e.id=l,t.media&&(e.media=t.media),r.head.appendChild(e),n.value||(a=Tn(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};o&&!i&&c(),i||di(u),bt(n)}(f);const v=e=>{const{serverURL:t,path:n,pageSize:r}=o.value,l=new AbortController;a.value="loading",m?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:o,signal:i,token:l})=>{const s={};return l&&(s.Authorization=`Bearer ${l}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${o}&page=${r}&lang=${t}`,{signal:i,headers:s}).then((e=>e.json())).then((e=>ol(e,"comment list")))})({serverURL:t,lang:o.value.lang,path:n,pageSize:r,page:e,signal:l.signal,token:i.value?.token}).then((t=>{a.value="success",c.value=t.count,d.value.push(...t.data),u.value=e,p.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),a.value="error")})),m=l.abort.bind(l)},y=()=>{c.value=0,d.value=[],v(1)};return In("config",o),Tn((()=>e.path),y),Jn((()=>y())),{config:o,darkmodeStyle:f,i18n:Oo((()=>o.value.locale)),status:a,count:c,page:u,totalPages:p,data:d,reply:h,loadMore:()=>v(u.value+1),refresh:y,onReply:e=>{h.value=e},onSubmit:e=>{if(e.rid){const t=d.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else d.value.unshift(e)},onStatusChange:async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=o.value;await il({serverURL:n,lang:r,token:i.value?.token,objectId:e.objectId,status:t}),e.status=t},onDelete:async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=o.value;await(({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>e.json())))({serverURL:t,lang:n,token:i.value?.token,objectId:e}),d.value.some(((t,n)=>t.objectId===e?(d.value=d.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,o)=>r.objectId===e&&(d.value[n].children=t.children.filter(((e,t)=>t!==o)),!0)))))},onSticky:async e=>{if(e.rid)return;const{serverURL:t,lang:n}=o.value;await il({serverURL:t,lang:n,token:i.value?.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:t,lang:n}=o.value,{objectId:r}=e,i=l.value.includes(r);await(({serverURL:e,lang:t,objectId:n,like:r})=>fetch(`${e}/comment/${n}?lang=${t}`,{method:"PUT",headers:rl,body:JSON.stringify({like:r})}).then((e=>e.json())))({serverURL:t,lang:n,objectId:r,like:!i}),i?l.value=l.value.filter((e=>e!==r)):(l.value=[...l.value,r],l.value.length>50&&(l.value=l.value.slice(-50))),e.like=(e.like||0)+(i?-1:1)},version:"2.4.1"}}});const Sa={"data-waline":""},$a={class:"wl-count"},Ca=["textContent"],Ea={class:"wl-cards"},Oa={key:1,class:"wl-operation"},Ra=["textContent"],Ia={key:0,class:"wl-loading"},za=["textContent"],La={class:"wl-operation"},Aa=["textContent"],Ta={key:3,class:"wl-power"},ja=so(" Powered by "),Ua=oo("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);xa.render=function(e,t,n,r,o,i){const l=Mr("CommentBox"),s=Mr("CommentCard"),a=Mr("LoadingIcon");return Zr(),Yr("div",Sa,[e.reply?ao("v-if",!0):(Zr(),Xr(l,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),oo("div",$a,[e.count?(Zr(),Yr("span",{key:0,class:"wl-num",textContent:E(e.count)},null,8,Ca)):ao("v-if",!0),so(" "+E(e.i18n.comment),1)]),oo("div",Ea,[(Zr(!0),Yr(Dr,null,fo(e.data,(t=>(Zr(),Xr(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","onReply","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(Zr(),Yr("div",Oa,[oo("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:E(e.i18n.refresh)},null,8,Ra)])):(Zr(),Yr(Dr,{key:2},["loading"===e.status?(Zr(),Yr("div",Ia,[io(a,{size:30})])):e.data.length?e.page<e.totalPages?(Zr(),Yr(Dr,{key:2},[ao(" Load more button "),oo("div",La,[oo("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:E(e.i18n.more)},null,8,Aa)])],2112)):ao("v-if",!0):(Zr(),Yr("div",{key:1,class:"wl-empty",textContent:E(e.i18n.sofa)},null,8,za))],2112)),ao(" Copyright Information "),e.config.copyright?(Zr(),Yr("div",Ta,[ja,Ua,so(" v"+E(e.version),1)])):ao("v-if",!0)])},xa.__file="src/components/Waline.vue";const Pa=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Ma=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:o="zh-CN"})=>{const i=new AbortController,l=Array.from(document.querySelectorAll(n)),s=e=>{const n=es(e);return null!==n&&t!==n},a=n=>ll({serverURL:e,paths:n.map((e=>es(e)||t)),lang:o,signal:i.signal}).then((e=>Pa(e,n))).catch(nl);if(r){const n=l.filter((e=>!s(e))),r=l.filter(s);sl({serverURL:e,path:t,lang:o}).then((e=>Pa(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(l);return i.abort.bind(i)};exports.RecentComments=({el:e,serverURL:t,count:n,lang:r="zh-CN"})=>{const o=ns(),i=al(e),l=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:o})=>{const i={};return o&&(i.Authorization=`Bearer ${o}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then((e=>e.json())).then((e=>ol(e,"recent comment")))})({serverURL:t,count:n,lang:r,signal:l.signal,token:o.value?.token}).then((e=>i&&e.length?(i.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:()=>{l.abort(),i.innerHTML=""}}):{comments:e,destroy:()=>l.abort()}))},exports.commentCount=is,exports.defaultLocales=g,exports.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...o})=>{const i=e?al(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!o.serverURL)throw new Error("Option 'serverURL' is missing!");const l=yt({...o}),s=yt({comment:n,pageview:r,path:t}),a=()=>{s.comment&&is({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})},c=()=>{s.pageview&&Ma({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})},u=i?pi((()=>Ro(xa,{path:s.path,...l}))):null;u&&u.mount(i),a(),c();const p=Ln(a),d=Ln(c);return{el:i,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{l[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{u?.unmount(),p(),d()}}},exports.pageviewCount=Ma,exports.version="2.4.1";
2
2
  //# sourceMappingURL=waline.cjs.js.map