@waline/client 2.11.2 → 2.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/comment.cjs +1 -1
- package/dist/comment.cjs.map +1 -1
- package/dist/comment.js +1 -1
- package/dist/comment.js.map +1 -1
- package/dist/comment.mjs +1 -1
- package/dist/comment.mjs.map +1 -1
- package/dist/component.mjs +1 -1
- package/dist/component.mjs.map +1 -1
- package/dist/legacy.umd.d.ts +57 -30
- package/dist/legacy.umd.js +1 -1
- package/dist/legacy.umd.js.map +1 -1
- package/dist/pageview.cjs +1 -1
- package/dist/pageview.cjs.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/pageview.mjs +1 -1
- package/dist/pageview.mjs.map +1 -1
- package/dist/shim.cjs +1 -1
- package/dist/shim.cjs.map +1 -1
- package/dist/shim.d.cts +58 -31
- package/dist/shim.d.mts +58 -31
- package/dist/shim.mjs +1 -1
- package/dist/shim.mjs.map +1 -1
- package/dist/waline.cjs +1 -1
- package/dist/waline.cjs.map +1 -1
- package/dist/waline.d.cts +58 -31
- package/dist/waline.d.mts +58 -31
- package/dist/waline.d.ts +58 -31
- package/dist/waline.js +1 -1
- package/dist/waline.js.map +1 -1
- package/dist/waline.mjs +1 -1
- package/dist/waline.mjs.map +1 -1
- package/package.json +1 -1
- package/src/compact/convert.ts +2 -2
- package/src/components/ArticleReaction.vue +36 -24
- package/src/components/CommentBox.vue +1 -1
- package/src/components/ImageWall.vue +1 -1
- package/src/composables/vote.ts +5 -2
- package/src/typings/base.ts +33 -7
- package/src/typings/locale.ts +37 -23
- package/src/utils/config.ts +8 -2
package/dist/legacy.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Waline=t()}(this,(function(){"use strict";const e=e=>console.warn(`%c ${e}`,"background:#ff0;color:red;font-size:36px;font-weight:bold;"),t=(e,t="")=>{const n={};for(const r in e)n[r]=/(?:https?:)?\/\//.test(e[r])?e[r]:`${t}${e[r]}`;return[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}]},n=["region","appId","appKey","notify","verify","avatar","avatarForce","enableQQ","recordIP","serverURLs","avatarCDN","mathTagSupport"],r=[["emojiCDN","emoji"],["emojiMaps","emoji"],["requiredFields","requiredMeta"],["visitor","pageview"],["langMode","locale"],["placeholder","locale.placeholder"],["highlight","highlighter"],["uploadImage","imageUploader"],["previewMath","texRenderer"],["anonymous","login"],["copyRight","copyright"]];function i(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 o=i("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function l(e){return!!e||""===e}function s(e){if(I(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=O(r)?u(r):s(r);if(i)for(const e in i)t[e]=i[e]}return t}return O(e)||z(e)?e:void 0}const a=/;(?![^(]*\))/g,c=/:(.+)/;function u(e){const t={};return e.split(a).forEach((e=>{if(e){const n=e.split(c);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(O(e))t=e;else if(I(e))for(let n=0;n<e.length;n++){const r=p(e[n]);r&&(t+=r+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function d(e,t){if(e===t)return!0;let n=A(e),r=A(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=j(e),r=j(t),n||r)return e===t;if(n=I(e),r=I(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=d(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),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!d(e[n],t[n]))return!1}}return String(e)===String(t)}function h(e,t){return e.findIndex((e=>d(e,t)))}const f=e=>O(e)?e:null==e?"":I(e)||z(e)&&(e.toString===P||!L(e.toString))?JSON.stringify(e,g,2):String(e),g=(e,t)=>t&&t.__v_isRef?g(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,t)=>{let[n,r]=t;return e[`${n} =>`]=r,e}),{})}:R(t)?{[`Set(${t.size})`]:[...t.values()]}:!z(t)||I(t)||M(t)?t:String(t),m={},v=[],y=()=>{},w=()=>!1,b=/^on[^a-z]/,k=e=>b.test(e),x=e=>e.startsWith("onUpdate:"),_=Object.assign,C=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},S=Object.prototype.hasOwnProperty,$=(e,t)=>S.call(e,t),I=Array.isArray,E=e=>"[object Map]"===U(e),R=e=>"[object Set]"===U(e),A=e=>"[object Date]"===U(e),L=e=>"function"==typeof e,O=e=>"string"==typeof e,j=e=>"symbol"==typeof e,z=e=>null!==e&&"object"==typeof e,T=e=>z(e)&&L(e.then)&&L(e.catch),P=Object.prototype.toString,U=e=>P.call(e),M=e=>"[object Object]"===U(e),N=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,F=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},V=/-(\w)/g,B=D((e=>e.replace(V,((e,t)=>t?t.toUpperCase():"")))),H=/\B([A-Z])/g,W=D((e=>e.replace(H,"-$1").toLowerCase())),q=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),Z=D((e=>e?`on${q(e)}`:"")),G=(e,t)=>!Object.is(e,t),K=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Q=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},J=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Y;let X;class ee{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.active=!0,this.effects=[],this.cleanups=[],!e&&X&&(this.parent=X,this.index=(X.scopes||(X.scopes=[])).push(this)-1)}run(e){if(this.active){const t=X;try{return X=this,e()}finally{X=t}}}on(){X=this}off(){X=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 te=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ne=e=>(e.w&le)>0,re=e=>(e.n&le)>0,ie=new WeakMap;let oe=0,le=1;let se;const ae=Symbol(""),ce=Symbol("");class ue{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=se,t=de;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=se,se=this,de=!0,le=1<<++oe,oe<=30?(e=>{let{deps:t}=e;if(t.length)for(let e=0;e<t.length;e++)t[e].w|=le})(this):pe(this),this.fn()}finally{oe<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];ne(i)&&!re(i)?i.delete(e):t[n++]=i,i.w&=~le,i.n&=~le}t.length=n}})(this),le=1<<--oe,se=this.parent,de=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){se===this?this.deferStop=!0:this.active&&(pe(this),this.onStop&&this.onStop(),this.active=!1)}}function pe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let de=!0;const he=[];function fe(){he.push(de),de=!1}function ge(){const e=he.pop();de=void 0===e||e}function me(e,t,n){if(de&&se){let t=ie.get(e);t||ie.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=te()),ve(r)}}function ve(e,t){let n=!1;oe<=30?re(e)||(e.n|=le,n=!ne(e)):n=!e.has(se),n&&(e.add(se),se.deps.push(e))}function ye(e,t,n,r,i,o){const l=ie.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&I(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":I(e)?N(n)&&s.push(l.get("length")):(s.push(l.get(ae)),E(e)&&s.push(l.get(ce)));break;case"delete":I(e)||(s.push(l.get(ae)),E(e)&&s.push(l.get(ce)));break;case"set":E(e)&&s.push(l.get(ae))}if(1===s.length)s[0]&&we(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);we(te(e))}}function we(e,t){const n=I(e)?e:[...e];for(const e of n)e.computed&&be(e);for(const e of n)e.computed||be(e)}function be(e,t){(e!==se||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ke=i("__proto__,__v_isRef,__isVue"),xe=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(j)),_e=Ee(),Ce=Ee(!1,!0),Se=Ee(!0),$e=Ie();function Ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=ht(this);for(let t=0,n=this.length;t<n;t++)me(e,0,t+"");for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const o=e[t](...r);return-1===o||!1===o?e[t](...r.map(ht)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(){fe();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=ht(this)[t].apply(this,n);return ge(),i}})),e}function Ee(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?rt:nt:t?tt:et).get(n))return n;const o=I(n);if(!e&&o&&$($e,r))return Reflect.get($e,r,i);const l=Reflect.get(n,r,i);return(j(r)?xe.has(r):ke(r))?l:(e||me(n,0,r),t?l:wt(l)?o&&N(r)?l:l.value:z(l)?e?st(l):ot(l):l)}}function Re(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,i){let o=t[n];if(ut(o)&&wt(o)&&!wt(r))return!1;if(!e&&(pt(r)||ut(r)||(o=ht(o),r=ht(r)),!I(t)&&wt(o)&&!wt(r)))return o.value=r,!0;const l=I(t)&&N(n)?Number(n)<t.length:$(t,n),s=Reflect.set(t,n,r,i);return t===ht(i)&&(l?G(r,o)&&ye(t,"set",n,r):ye(t,"add",n,r)),s}}const Ae={get:_e,set:Re(),deleteProperty:function(e,t){const n=$(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&ye(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return j(t)&&xe.has(t)||me(e,0,t),n},ownKeys:function(e){return me(e,0,I(e)?"length":ae),Reflect.ownKeys(e)}},Le={get:Se,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Oe=_({},Ae,{get:Ce,set:Re(!0)}),je=e=>e,ze=e=>Reflect.getPrototypeOf(e);function Te(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=ht(e=e.__v_raw),o=ht(t);n||(t!==o&&me(i,0,t),me(i,0,o));const{has:l}=ze(i),s=r?je:n?mt:gt;return l.call(i,t)?s(e.get(t)):l.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function Pe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,r=ht(n),i=ht(e);return t||(e!==i&&me(r,0,e),me(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function Ue(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&me(ht(e),0,ae),Reflect.get(e,"size",e)}function Me(e){e=ht(e);const t=ht(this);return ze(t).has.call(t,e)||(t.add(e),ye(t,"add",e,e)),this}function Ne(e,t){t=ht(t);const n=ht(this),{has:r,get:i}=ze(n);let o=r.call(n,e);o||(e=ht(e),o=r.call(n,e));const l=i.call(n,e);return n.set(e,t),o?G(t,l)&&ye(n,"set",e,t):ye(n,"add",e,t),this}function Fe(e){const t=ht(this),{has:n,get:r}=ze(t);let i=n.call(t,e);i||(e=ht(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&ye(t,"delete",e,void 0),o}function De(){const e=ht(this),t=0!==e.size,n=e.clear();return t&&ye(e,"clear",void 0,void 0),n}function Ve(e,t){return function(n,r){const i=this,o=i.__v_raw,l=ht(o),s=t?je:e?mt:gt;return!e&&me(l,0,ae),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function Be(e,t,n){return function(){const r=this.__v_raw,i=ht(r),o=E(i),l="entries"===e||e===Symbol.iterator&&o,s="keys"===e&&o,a=r[e](...arguments),c=n?je:t?mt:gt;return!t&&me(i,0,s?ce:ae),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function He(e){return function(){return"delete"!==e&&this}}function We(){const e={get(e){return Te(this,e)},get size(){return Ue(this)},has:Pe,add:Me,set:Ne,delete:Fe,clear:De,forEach:Ve(!1,!1)},t={get(e){return Te(this,e,!1,!0)},get size(){return Ue(this)},has:Pe,add:Me,set:Ne,delete:Fe,clear:De,forEach:Ve(!1,!0)},n={get(e){return Te(this,e,!0)},get size(){return Ue(this,!0)},has(e){return Pe.call(this,e,!0)},add:He("add"),set:He("set"),delete:He("delete"),clear:He("clear"),forEach:Ve(!0,!1)},r={get(e){return Te(this,e,!0,!0)},get size(){return Ue(this,!0)},has(e){return Pe.call(this,e,!0)},add:He("add"),set:He("set"),delete:He("delete"),clear:He("clear"),forEach:Ve(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Be(i,!1,!1),n[i]=Be(i,!0,!1),t[i]=Be(i,!1,!0),r[i]=Be(i,!0,!0)})),[e,n,t,r]}const[qe,Ze,Ge,Ke]=We();function Qe(e,t){const n=t?e?Ke:Ge:e?Ze:qe;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get($(n,r)&&r in t?n:t,r,i)}const Je={get:Qe(!1,!1)},Ye={get:Qe(!1,!0)},Xe={get:Qe(!0,!1)},et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap;function it(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=>U(e).slice(8,-1))(e))}function ot(e){return ut(e)?e:at(e,!1,Ae,Je,et)}function lt(e){return at(e,!1,Oe,Ye,tt)}function st(e){return at(e,!0,Le,Xe,nt)}function at(e,t,n,r,i){if(!z(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const l=it(e);if(0===l)return e;const s=new Proxy(e,2===l?r:n);return i.set(e,s),s}function ct(e){return ut(e)?ct(e.__v_raw):!(!e||!e.__v_isReactive)}function ut(e){return!(!e||!e.__v_isReadonly)}function pt(e){return!(!e||!e.__v_isShallow)}function dt(e){return ct(e)||ut(e)}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function ft(e){return Q(e,"__v_skip",!0),e}const gt=e=>z(e)?ot(e):e,mt=e=>z(e)?st(e):e;function vt(e){de&&se&&ve((e=ht(e)).dep||(e.dep=te()))}function yt(e,t){(e=ht(e)).dep&&we(e.dep)}function wt(e){return!(!e||!0!==e.__v_isRef)}function bt(e){return xt(e,!1)}function kt(e){return xt(e,!0)}function xt(e,t){return wt(e)?e:new _t(e,t)}class _t{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ht(e),this._value=t?e:gt(e)}get value(){return vt(this),this._value}set value(e){const t=this.__v_isShallow||pt(e)||ut(e);e=t?e:ht(e),G(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:gt(e),yt(this))}}function Ct(e){return wt(e)?e.value:e}const St={get:(e,t,n)=>Ct(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return wt(i)&&!wt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $t(e){return ct(e)?e:new Proxy(e,St)}var It;class Et{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[It]=!1,this._dirty=!0,this.effect=new ue(e,(()=>{this._dirty||(this._dirty=!0,yt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=ht(this);return vt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Rt(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){Lt(e,t,n)}return i}function At(e,t,n,r){if(L(e)){const i=Rt(e,t,n,r);return i&&T(i)&&i.catch((e=>{Lt(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(At(e[o],t,n,r));return i}function Lt(e,t,n){if(t){let r=t.parent;const i=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const l=t.appContext.config.errorHandler;if(l)return void Rt(l,null,10,[e,i,o])}!function(e,t,n){console.error(e)}(e)}It="__v_isReadonly";let Ot=!1,jt=!1;const zt=[];let Tt=0;const Pt=[];let Ut=null,Mt=0;const Nt=Promise.resolve();let Ft=null;function Dt(e){const t=Ft||Nt;return e?t.then(this?e.bind(this):e):t}function Vt(e){zt.length&&zt.includes(e,Ot&&e.allowRecurse?Tt+1:Tt)||(null==e.id?zt.push(e):zt.splice(function(e){let t=Tt+1,n=zt.length;for(;t<n;){const r=t+n>>>1;qt(zt[r])<e?t=r+1:n=r}return t}(e.id),0,e),Bt())}function Bt(){Ot||jt||(jt=!0,Ft=Nt.then(Gt))}function Ht(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot?Tt+1:0;for(;t<zt.length;t++){const e=zt[t];e&&e.pre&&(zt.splice(t,1),t--,e())}}function Wt(e){if(Pt.length){const e=[...new Set(Pt)];if(Pt.length=0,Ut)return void Ut.push(...e);for(Ut=e,Ut.sort(((e,t)=>qt(e)-qt(t))),Mt=0;Mt<Ut.length;Mt++)Ut[Mt]();Ut=null,Mt=0}}const qt=e=>null==e.id?1/0:e.id,Zt=(e,t)=>{const n=qt(e)-qt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gt(e){jt=!1,Ot=!0,zt.sort(Zt);try{for(Tt=0;Tt<zt.length;Tt++){const e=zt[Tt];e&&!1!==e.active&&Rt(e,null,14)}}finally{Tt=0,zt.length=0,Wt(),Ot=!1,Ft=null,(zt.length||Pt.length)&&Gt()}}function Kt(e,t){if(e.isUnmounted)return;const n=e.vnode.props||m;for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];let l=i;const s=t.startsWith("update:"),a=s&&t.slice(7);if(a&&a in n){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:r}=n[e]||m;r&&(l=i.map((e=>e.trim()))),t&&(l=i.map(J))}let c,u=n[c=Z(t)]||n[c=Z(B(t))];!u&&s&&(u=n[c=Z(W(t))]),u&&At(u,e,6,l);const p=n[c+"Once"];if(p){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,At(p,e,6,l)}}function Qt(e,t){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const i=e.emits;let o={};return i?(I(i)?i.forEach((e=>o[e]=null)):_(o,i),z(e)&&n.set(e,o),o):(z(e)&&n.set(e,null),null)}function Jt(e,t){return!(!e||!k(t))&&(t=t.slice(2).replace(/Once$/,""),$(e,t[0].toLowerCase()+t.slice(1))||$(e,W(t))||$(e,t))}let Yt=null,Xt=null;function en(e){const t=Yt;return Yt=e,Xt=e&&e.type.__scopeId||null,t}function tn(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=en(e);try{if(4&n.shapeFlag){const e=i||r;m=xr(u.call(e,e,p,o,h,d,f)),v=a}else{const e=t;m=xr(e.length>1?e(o,{attrs:a,slots:s,emit:c}):e(o,null)),v=t.props?a:nn(a)}}catch(t){rr.length=0,Lt(t,e,1),m=vr(tr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(x)&&(v=rn(v,l)),w=wr(w,v))}return n.dirs&&(w=wr(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,en(y),m}const nn=e=>{let t;for(const n in e)("class"===n||"style"===n||k(n))&&((t||(t={}))[n]=e[n]);return t},rn=(e,t)=>{const n={};for(const r in e)x(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function on(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Jt(n,o))return!0}return!1}const ln=e=>e.__isSuspense;function sn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Rr||Yt;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&L(t)?t.call(r.proxy):t}}function an(e,t){return pn(e,null,t)}const cn={};function un(e,t,n){return pn(e,t,n)}function pn(e,t){let{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;const s=Rr;let a,c,u=!1,p=!1;if(wt(e)?(a=()=>e.value,u=pt(e)):ct(e)?(a=()=>e,r=!0):I(e)?(p=!0,u=e.some((e=>ct(e)||pt(e))),a=()=>e.map((e=>wt(e)?e.value:ct(e)?dn(e):L(e)?Rt(e,s,2):void 0))):a=L(e)?t?()=>Rt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),At(e,s,3,[d])}:y,t&&r){const e=a;a=()=>dn(e())}let d=e=>{c=v.onStop=()=>{Rt(e,s,4)}};if(zr)return d=y,t?n&&At(t,s,3,[a(),p?[]:void 0,d]):a(),y;let h=p?[]:cn;const f=()=>{if(v.active)if(t){const e=v.run();(r||u||(p?e.some(((e,t)=>G(e,h[t]))):G(e,h)))&&(c&&c(),At(t,s,3,[e,h===cn?void 0:h,d]),h=e)}else v.run()};let g;f.allowRecurse=!!t,"sync"===i?g=f:"post"===i?g=()=>Gn(f,s&&s.suspense):(f.pre=!0,s&&(f.id=s.uid),g=()=>Vt(f));const v=new ue(a,g);return t?n?f():h=v.run():"post"===i?Gn(v.run.bind(v),s&&s.suspense):v.run(),()=>{v.stop(),s&&s.scope&&C(s.scope.effects,v)}}function dn(e,t){if(!z(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),wt(e))dn(e.value,t);else if(I(e))for(let n=0;n<e.length;n++)dn(e[n],t);else if(R(e)||E(e))e.forEach((e=>{dn(e,t)}));else if(M(e))for(const n in e)dn(e[n],t);return e}function hn(e){return L(e)?{setup:e,name:e.name}:e}const fn=e=>!!e.type.__asyncLoader;function gn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rr,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;fe(),Lr(n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];const l=At(t,n,e,i);return Or(),ge(),l});return r?i.unshift(o):i.push(o),o}}const mn=e=>function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rr;return(!zr||"sp"===e)&&gn(e,t,n)},vn=mn("m"),yn=mn("bum"),wn=mn("um");function bn(e,t){const n=Yt;if(null===n)return e;const r=Mr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,o,l,s=m]=t[e];L(n)&&(n={mounted:n,updated:n}),n.deep&&dn(o),i.push({dir:n,instance:r,value:o,oldValue:void 0,arg:l,modifiers:s})}return e}function kn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let l=0;l<i.length;l++){const s=i[l];o&&(s.oldValue=o[l].value);let a=s.dir[r];a&&(fe(),At(a,n,8,[e.el,s,e,t]),ge())}}const xn="components";function _n(e,t){return function(e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=Yt||Rr;if(r){const i=r.type;if(e===xn){const e=Nr(i,!1);if(e&&(e===t||e===B(t)||e===q(B(t))))return i}const o=Sn(r[e]||i[e],t)||Sn(r.appContext[e],t);return!o&&n?i:o}}(xn,e,!0,t)||e}const Cn=Symbol();function Sn(e,t){return e&&(e[t]||e[B(t)]||e[q(B(t))])}function $n(e,t,n,r){let i;const o=n&&n[r];if(I(e)||O(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(z(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,l=n.length;r<l;r++){const l=n[r];i[r]=t(e[l],l,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}const In=e=>e?jr(e)?Mr(e)||e.proxy:In(e.parent):null,En=_(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=>In(e.parent),$root:e=>In(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Vt(e.update)),$nextTick:e=>e.n||(e.n=Dt.bind(e.proxy)),$watch:e=>y}),Rn={get(e,t){let{_:n}=e;const{ctx:r,setupState:i,data:o,props:l,accessCache:s,type:a,appContext:c}=n;let u;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return i[t];case 2:return o[t];case 4:return r[t];case 3:return l[t]}else{if(i!==m&&$(i,t))return s[t]=1,i[t];if(o!==m&&$(o,t))return s[t]=2,o[t];if((u=n.propsOptions[0])&&$(u,t))return s[t]=3,l[t];if(r!==m&&$(r,t))return s[t]=4,r[t];s[t]=0}}const p=En[t];let d,h;return p?("$attrs"===t&&me(n,0,t),p(n)):(d=a.__cssModules)&&(d=d[t])?d:r!==m&&$(r,t)?(s[t]=4,r[t]):(h=c.config.globalProperties,$(h,t)?h[t]:void 0)},set(e,t,n){let{_:r}=e;const{data:i,setupState:o,ctx:l}=r;return o!==m&&$(o,t)?(o[t]=n,!0):i!==m&&$(i,t)?(i[t]=n,!0):!$(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(l[t]=n,!0))},has(e,t){let n,{_:{data:r,setupState:i,accessCache:o,ctx:l,appContext:s,propsOptions:a}}=e;return!!o[t]||r!==m&&$(r,t)||i!==m&&$(i,t)||(n=a[0])&&$(n,t)||$(l,t)||$(En,t)||$(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:$(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function An(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i={},o={};Q(o,hr,1),e.propsDefaults=Object.create(null),Ln(e,t,i,o);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:lt(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Ln(e,t,n,r){const[i,o]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(F(a))continue;const c=t[a];let u;i&&$(i,u=B(a))?o&&o.includes(u)?(l||(l={}))[u]=c:n[u]=c:Jt(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(o){const t=ht(n),r=l||m;for(let l=0;l<o.length;l++){const s=o[l];n[s]=On(i,t,s,r[s],e,!$(r,s))}}return s}function On(e,t,n,r,i,o){const l=e[n];if(null!=l){const e=$(l,"default");if(e&&void 0===r){const e=l.default;if(l.type!==Function&&L(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(Lr(i),r=o[n]=e.call(null,t),Or())}else r=e}l[0]&&(o&&!e?r=!1:!l[1]||""!==r&&r!==W(n)||(r=!0))}return r}function jn(e,t){const n=t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];if(!i)return z(e)&&n.set(e,v),v;if(I(i))for(let e=0;e<i.length;e++){const t=B(i[e]);zn(t)&&(o[t]=m)}else if(i)for(const e in i){const t=B(e);if(zn(t)){const n=i[e],r=o[t]=I(n)||L(n)?{type:n}:n;if(r){const e=Un(Boolean,r.type),n=Un(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||$(r,"default"))&&l.push(t)}}}const s=[o,l];return z(e)&&n.set(e,s),s}function zn(e){return"$"!==e[0]}function Tn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Pn(e,t){return Tn(e)===Tn(t)}function Un(e,t){return I(t)?t.findIndex((t=>Pn(t,e))):L(t)&&Pn(t,e)?0:-1}const Mn=e=>"_"===e[0]||"$stable"===e,Nn=e=>I(e)?e.map(xr):[xr(e)],Fn=(e,t,n)=>{if(t._n)return t;const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;if(!t)return e;if(e._n)return e;const n=function(){n._d&&sr(-1);const r=en(t),i=e(...arguments);return en(r),n._d&&sr(1),i};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return Nn(t(...arguments))}),n);return r._c=!1,r},Dn=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Mn(n))continue;const i=e[n];if(L(i))t[n]=Fn(0,i,r);else if(null!=i){const e=Nn(i);t[n]=()=>e}}},Vn=(e,t)=>{const n=Nn(t);e.slots.default=()=>n},Bn=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=ht(t),Q(t,"_",n)):Dn(t,e.slots={})}else e.slots={},t&&Vn(e,t);Q(e.slots,hr,1)};function Hn(){return{app:null,config:{isNativeTag:w,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 Wn=0;function qn(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;L(n)||(n=Object.assign({},n)),null==r||z(r)||(r=null);const i=Hn(),o=new Set;let l=!1;const s=i.app={_uid:Wn++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Br,get config(){return i.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o.has(e)||(e&&L(e.install)?(o.add(e),e.install(s,...n)):L(e)&&(o.add(e),e(s,...n))),s},mixin:e=>s,component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(o,a,c){if(!l){const u=vr(n,r);return u.appContext=i,a&&t?t(u,o):e(u,o,c),l=!0,s._container=o,o.__vue_app__=s,Mr(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s)};return s}}function Zn(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(I(e))return void e.forEach(((e,o)=>Zn(e,t&&(I(t)?t[o]:t),n,r,i)));if(fn(r)&&!i)return;const o=4&r.shapeFlag?Mr(r.component)||r.component.proxy:r.el,l=i?null:o,{i:s,r:a}=e,c=t&&t.r,u=s.refs===m?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(O(c)?(u[c]=null,$(p,c)&&(p[c]=null)):wt(c)&&(c.value=null)),L(a))Rt(a,s,12,[l,u]);else{const t=O(a),r=wt(a);if(t||r){const s=()=>{if(e.f){const n=t?u[a]:a.value;i?I(n)&&C(n,o):I(n)?n.includes(o)||n.push(o):t?(u[a]=[o],$(p,a)&&(p[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else t?(u[a]=l,$(p,a)&&(p[a]=l)):r&&(a.value=l,e.k&&(u[e.k]=l))};l?(s.id=-1,Gn(s,n)):s()}}}const Gn=function(e,t){var n;t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):(I(n=e)?Pt.push(...n):Ut&&Ut.includes(n,n.allowRecurse?Mt+1:Mt)||Pt.push(n),Bt())};function Kn(e){return function(e,t){(Y||(Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=y,cloneNode:h,insertStaticContent:f}=e,g=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e===t)return;e&&!dr(e,t)&&(r=X(e),q(e,i,o,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case er:w(e,t,n,r);break;case tr:b(e,t,n,r);break;case nr:null==e&&k(t,n,r,l);break;case Xn:j(e,t,n,r,i,o,l,s,a);break;default:1&p?S(e,t,n,r,i,o,l,s,a):6&p?z(e,t,n,r,i,o,l,s,a):(64&p||128&p)&&c.process(e,t,n,r,i,o,l,s,a,ne)}null!=u&&i&&Zn(u,e&&e.ref,o,t||e,!t)},w=(e,t,r,i)=>{if(null==e)n(t.el=l(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},b=(e,t,r,i)=>{null==e?n(t.el=s(t.children||""),r,i):t.el=e.el},k=(e,t,n,r)=>{[e.el,e.anchor]=f(e.children,t,n,r,e.el,e.anchor)},x=(e,t,r)=>{let i,{el:o,anchor:l}=e;for(;o&&o!==l;)i=p(o),n(o,t,r),o=i;n(l,t,r)},C=e=>{let t,{el:n,anchor:i}=e;for(;n&&n!==i;)t=p(n),r(n),n=t;r(i)},S=(e,t,n,r,i,o,l,s,a)=>{l=l||"svg"===t.type,null==e?I(t,n,r,i,o,l,s,a):A(e,t,i,o,l,s,a)},I=(e,t,r,l,s,a,u,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:b}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=o(e.type,a,m&&m.is,m),8&v?c(d,e.children):16&v&&R(e.children,d,null,l,s,a&&"foreignObject"!==g,u,p),b&&kn(e,null,l,"created"),m){for(const t in m)"value"===t||F(t)||i(d,t,null,m[t],a,e.children,l,s,J);"value"in m&&i(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&$r(f,l,e)}E(d,e,e.scopeId,u,l)}b&&kn(e,null,l,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;k&&y.beforeEnter(d),n(d,t,r),((f=m&&m.onVnodeMounted)||k||b)&&Gn((()=>{f&&$r(f,l,e),k&&y.enter(d),b&&kn(e,null,l,"mounted")}),s)},E=(e,t,n,r,i)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(i){if(t===i.subTree){const t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},R=function(e,t,n,r,i,o,l,s){for(let a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;a<e.length;a++){const c=e[a]=s?_r(e[a]):xr(e[a]);g(null,c,t,n,r,i,o,l,s)}},A=(e,t,n,r,o,l,s)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||m,f=t.props||m;let g;n&&Qn(n,!1),(g=f.onVnodeBeforeUpdate)&&$r(g,n,t,e),d&&kn(t,e,n,"beforeUpdate"),n&&Qn(n,!0);const v=o&&"foreignObject"!==t.type;if(p?L(e.dynamicChildren,p,a,n,r,v,l):s||N(e,t,a,null,n,r,v,l,!1),u>0){if(16&u)O(a,t,h,f,n,r,o);else if(2&u&&h.class!==f.class&&i(a,"class",null,f.class,o),4&u&&i(a,"style",h.style,f.style,o),8&u){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&u&&e.children!==t.children&&c(a,t.children)}else s||null!=p||O(a,t,h,f,n,r,o);((g=f.onVnodeUpdated)||d)&&Gn((()=>{g&&$r(g,n,t,e),d&&kn(t,e,n,"updated")}),r)},L=(e,t,n,r,i,o,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],p=a.el&&(a.type===Xn||!dr(a,c)||70&a.shapeFlag)?u(a.el):n;g(a,c,p,null,r,i,o,l,!0)}},O=(e,t,n,r,o,l,s)=>{if(n!==r){for(const a in r){if(F(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!==m)for(const a in n)F(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)}},j=(e,t,r,i,o,s,a,c,u)=>{const p=t.el=e?e.el:l(""),d=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,r,i),n(d,r,i),R(t.children,r,d,o,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(L(e.dynamicChildren,f,r,o,s,a,c),(null!=t.key||o&&t===o.subTree)&&Jn(e,t,!0)):N(e,t,r,d,o,s,a,c,u)},z=(e,t,n,r,i,o,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,l,a):T(t,n,r,i,o,l,a):P(e,t,a)},T=(e,t,n,r,i,o,l)=>{const s=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Ir,o={uid:Er++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ee(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:jn(r,i),emitsOptions:Qt(r,i),emit:null,emitted:null,propsDefaults:m,inheritAttrs:r.inheritAttrs,ctx:m,data:m,props:m,attrs:m,slots:m,refs:m,setupState:m,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=Kt.bind(null,o),e.ce&&e.ce(o);return o}(e,r,i);if(e.type.__isKeepAlive&&(s.ctx.renderer=ne),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];zr=t;const{props:n,children:r}=e.vnode,i=jr(e);An(e,n,i,t),Bn(e,r);const o=i?Tr(e,t):void 0;zr=!1}(s),s.asyncDep){if(i&&i.registerDep(s,U),!e.el){const e=s.subTree=vr(tr);b(null,e,t,n)}}else U(s,e,t,n,i,o,l)},P=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:l,children:s,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!i&&!s||s&&s.$stable)||r!==l&&(r?!l||on(r,l,c):!!l);if(1024&a)return!0;if(16&a)return r?on(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]&&!Jt(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=zt.indexOf(e);t>Tt&&zt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},U=(e,t,n,r,i,o,l)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,p=n;Qn(e,!1),n?(n.el=c.el,M(e,n,l)):n=c,r&&K(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$r(t,a,n,c),Qn(e,!0);const d=tn(e),h=e.subTree;e.subTree=d,g(h,d,u(h.el),X(h),e,i,o),n.el=d.el,null===p&&function(e,t){let{vnode:n,parent:r}=e;for(;r&&r.subTree===n;)(n=r.vnode).el=t,r=r.parent}(e,d.el),s&&Gn(s,i),(t=n.props&&n.props.onVnodeUpdated)&&Gn((()=>$r(t,a,n,c)),i)}else{let l;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=fn(t);if(Qn(e,!1),c&&K(c),!d&&(l=a&&a.onVnodeBeforeMount)&&$r(l,p,t),Qn(e,!0),s&&ie){const n=()=>{e.subTree=tn(e),ie(s,e.subTree,e,i,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=tn(e);g(null,l,n,r,e,i,o),t.el=l.el}if(u&&Gn(u,i),!d&&(l=a&&a.onVnodeMounted)){const e=t;Gn((()=>$r(l,p,e)),i)}(256&t.shapeFlag||p&&fn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Gn(e.a,i),e.isMounted=!0,t=n=r=null}},a=e.effect=new ue(s,(()=>Vt(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,Qn(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:i,attrs:o,vnode:{patchFlag:l}}=e,s=ht(i),[a]=e.propsOptions;let c=!1;if(!(r||l>0)||16&l){let r;Ln(e,t,i,o)&&(c=!0);for(const o in s)t&&($(t,o)||(r=W(o))!==o&&$(t,r))||(a?!n||void 0===n[o]&&void 0===n[r]||(i[o]=On(a,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&$(t,e)||(delete o[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(Jt(e.emitsOptions,l))continue;const u=t[l];if(a)if($(o,l))u!==o[l]&&(o[l]=u,c=!0);else{const t=B(l);i[t]=On(a,s,t,u,e,!1)}else u!==o[l]&&(o[l]=u,c=!0)}}c&&ye(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=m;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(_(i,t),n||1!==e||delete i._):(o=!t.$stable,Dn(t,i)),l=t}else t&&(Vn(e,t),l={default:1});if(o)for(const e in i)Mn(e)||e in l||delete i[e]})(e,t.children,n),fe(),Ht(),ge()},N=function(e,t,n,r,i,o,l,s){let a=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void V(u,d,n,r,i,o,l,s,a);if(256&h)return void D(u,d,n,r,i,o,l,s,a)}8&f?(16&p&&J(u,i,o),d!==u&&c(n,d)):16&p?16&f?V(u,d,n,r,i,o,l,s,a):J(u,i,o,!0):(8&p&&c(n,""),16&f&&R(d,n,r,i,o,l,s,a))},D=(e,t,n,r,i,o,l,s,a)=>{t=t||v;const c=(e=e||v).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?_r(t[d]):xr(t[d]);g(e[d],r,n,null,i,o,l,s,a)}c>u?J(e,i,o,!0,!1,p):R(t,n,r,i,o,l,s,a,p)},V=(e,t,n,r,i,o,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?_r(t[c]):xr(t[c]);if(!dr(r,u))break;g(r,u,n,null,i,o,l,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?_r(t[d]):xr(t[d]);if(!dr(r,c))break;g(r,c,n,null,i,o,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?_r(t[c]):xr(t[c]),n,p,i,o,l,s,a),c++}}else if(c>d)for(;c<=p;)q(e[c],i,o,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?_r(t[c]):xr(t[c]);null!=e.key&&m.set(e.key,c)}let y,w=0;const b=d-f+1;let k=!1,x=0;const _=new Array(b);for(c=0;c<b;c++)_[c]=0;for(c=h;c<=p;c++){const r=e[c];if(w>=b){q(r,i,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(y=f;y<=d;y++)if(0===_[y-f]&&dr(r,t[y])){u=y;break}void 0===u?q(r,i,o,!0):(_[u-f]=c+1,u>=x?x=u:k=!0,g(r,t[u],n,null,i,o,l,s,a),w++)}const C=k?function(e){const t=e.slice(),n=[0];let r,i,o,l,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(i=n[n.length-1],e[i]<a){t[r]=i,n.push(r);continue}for(o=0,l=n.length-1;o<l;)s=o+l>>1,e[n[s]]<a?o=s+1:l=s;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,l=n[o-1];for(;o-- >0;)n[o]=l,l=t[l];return n}(_):v;for(y=C.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,i,o,l,s,a):k&&(y<0||c!==C[y]?H(p,n,d,2):y--)}}},H=function(e,t,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void H(e.component.subTree,t,r,i);if(128&u)return void e.suspense.move(t,r,i);if(64&u)return void s.move(e,t,r,ne);if(s===Xn){n(l,t,r);for(let e=0;e<c.length;e++)H(c[e],t,r,i);return void n(e.anchor,t,r)}if(s===nr)return void x(e,t,r);if(2!==i&&1&u&&a)if(0===i)a.beforeEnter(l),n(l,t,r),Gn((()=>a.enter(l)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=a,s=()=>n(l,t,r),c=()=>{e(l,(()=>{s(),o&&o()}))};i?i(l,s,c):c()}else n(l,t,r)},q=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:o,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&Zn(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!fn(e);let g;if(f&&(g=l&&l.onVnodeBeforeUnmount)&&$r(g,t,e),6&u)Q(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&kn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,ne,r):c&&(o!==Xn||p>0&&64&p)?J(c,t,n,!1,!0):(o===Xn&&384&p||!i&&16&u)&&J(a,t,n),r&&Z(e)}(f&&(g=l&&l.onVnodeUnmounted)||h)&&Gn((()=>{g&&$r(g,t,e),h&&kn(e,null,t,"unmounted")}),n)},Z=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===Xn)return void G(n,i);if(t===nr)return void C(e);const l=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,l);r?r(e.el,l,i):i()}else l()},G=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},Q=(e,t,n)=>{const{bum:r,scope:i,update:o,subTree:l,um:s}=e;r&&K(r),i.stop(),o&&(o.active=!1,q(l,e,t,n)),s&&Gn(s,t),Gn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;o<e.length;o++)q(e[o],t,n,r,i)},X=e=>6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),te=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),Ht(),Wt(),t._vnode=e},ne={p:g,um:q,m:H,r:Z,mt:T,mc:R,pc:N,pbc:L,n:X,o:e};let re,ie;t&&([re,ie]=t(ne));return{render:te,hydrate:re,createApp:qn(te,re)}}(e)}function Qn(e,t){let{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}function Jn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.children,i=t.children;if(I(r)&&I(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=_r(i[e]),o.el=t.el),n||Jn(t,o))}}const Yn=e=>e.__isTeleport,Xn=Symbol(void 0),er=Symbol(void 0),tr=Symbol(void 0),nr=Symbol(void 0),rr=[];let ir=null;function or(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];rr.push(ir=e?null:[])}let lr=1;function sr(e){lr+=e}function ar(e){return e.dynamicChildren=lr>0?ir||v:null,rr.pop(),ir=rr[rr.length-1]||null,lr>0&&ir&&ir.push(e),e}function cr(e,t,n,r,i,o){return ar(mr(e,t,n,r,i,o,!0))}function ur(e,t,n,r,i){return ar(vr(e,t,n,r,i,!0))}function pr(e){return!!e&&!0===e.__v_isVNode}function dr(e,t){return e.type===t.type&&e.key===t.key}const hr="__vInternal",fr=e=>{let{key:t}=e;return null!=t?t:null},gr=e=>{let{ref:t,ref_key:n,ref_for:r}=e;return null!=t?O(t)||wt(t)||L(t)?{i:Yt,r:t,k:n,f:!!r}:t:null};function mr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===Xn?0:1,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fr(t),ref:t&&gr(t),scopeId:Xt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(Cr(a,n),128&o&&e.normalize(a)):n&&(a.shapeFlag|=O(n)?8:16),lr>0&&!l&&ir&&(a.patchFlag>0||6&o)&&32!==a.patchFlag&&ir.push(a),a}const vr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==Cn||(e=tr);if(pr(e)){const r=wr(e,t,!0);return n&&Cr(r,n),lr>0&&!o&&ir&&(6&r.shapeFlag?ir[ir.indexOf(e)]=r:ir.push(r)),r.patchFlag|=-2,r}Fr(e)&&(e=e.__vccOpts);if(t){t=yr(t);let{class:e,style:n}=t;e&&!O(e)&&(t.class=p(e)),z(n)&&(dt(n)&&!I(n)&&(n=_({},n)),t.style=s(n))}const l=O(e)?1:ln(e)?128:Yn(e)?64:z(e)?4:L(e)?2:0;return mr(e,t,n,r,i,l,o,!0)};function yr(e){return e?dt(e)||hr in e?_({},e):e:null}function wr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:r,ref:i,patchFlag:o,children:l}=e,s=t?Sr(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&fr(s),ref:t&&t.ref?n&&i?I(i)?i.concat(gr(t)):[i,gr(t)]:gr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Xn?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wr(e.ssContent),ssFallback:e.ssFallback&&wr(e.ssFallback),el:e.el,anchor:e.anchor};return a}function br(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return vr(er,null,e,t)}function kr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(or(),ur(tr,null,e)):vr(tr,null,e)}function xr(e){return null==e||"boolean"==typeof e?vr(tr):I(e)?vr(Xn,null,e.slice()):"object"==typeof e?_r(e):vr(er,null,String(e))}function _r(e){return null===e.el||e.memo?e:wr(e)}function Cr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(I(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Cr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||hr in t?3===r&&Yt&&(1===Yt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Yt}}else L(t)?(t={default:t,_ctx:Yt},n=32):(t=String(t),64&r?(n=16,t=[br(t)]):n=8);e.children=t,e.shapeFlag|=n}function Sr(){const e={};for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];for(const t in n)if("class"===t)e.class!==n.class&&(e.class=p([e.class,n.class]));else if("style"===t)e.style=s([e.style,n.style]);else if(k(t)){const r=e[t],i=n[t];!i||r===i||I(r)&&r.includes(i)||(e[t]=r?[].concat(r,i):i)}else""!==t&&(e[t]=n[t])}return e}function $r(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;At(e,t,7,[n,r])}const Ir=Hn();let Er=0;let Rr=null;const Ar=()=>Rr||Yt,Lr=e=>{Rr=e,e.scope.on()},Or=()=>{Rr&&Rr.scope.off(),Rr=null};function jr(e){return 4&e.vnode.shapeFlag}let zr=!1;function Tr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ft(new Proxy(e.ctx,Rn));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)=>(me(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Lr(e),fe();const i=Rt(r,e,0,[e.props,n]);if(ge(),Or(),T(i)){if(i.then(Or,Or),t)return i.then((n=>{Pr(e,n,t)})).catch((t=>{Lt(t,e,0)}));e.asyncDep=i}else Pr(e,i,t)}else Ur(e,t)}function Pr(e,t,n){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=$t(t)),Ur(e,n)}function Ur(e,t,n){const r=e.type;e.render||(e.render=r.render||y)}function Mr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($t(ft(e.exposed)),{get:(t,n)=>n in t?t[n]:n in En?En[n](e):void 0}))}function Nr(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return L(e)?e.displayName||e.name:e.name||t&&e.__name}function Fr(e){return L(e)&&"__vccOpts"in e}const Dr=(e,t)=>function(e,t){let n,r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=L(e);o?(n=e,r=y):(n=e.get,r=e.set);return new Et(n,r,o||!r,i)}(e,t,zr);function Vr(e,t,n){const r=arguments.length;return 2===r?z(t)&&!I(t)?pr(t)?vr(e,null,[t]):vr(e,t):vr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&pr(n)&&(n=[n]),vr(e,t,n))}const Br="3.2.39",Hr="undefined"!=typeof document?document:null,Wr=Hr&&Hr.createElement("template"),qr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Hr.createElementNS("http://www.w3.org/2000/svg",e):Hr.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>Hr.createTextNode(e),createComment:e=>Hr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Hr.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,i,o){const l=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{Wr.innerHTML=r?`<svg>${e}</svg>`:e;const i=Wr.content;if(r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Zr(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}function Gr(e,t,n){const r=e.style,i=O(n);if(n&&!i){for(const e in n)Qr(r,e,n[e]);if(t&&!O(t))for(const e in t)null==n[e]&&Qr(r,e,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Kr=/\s*!important$/;function Qr(e,t,n){if(I(n))n.forEach((n=>Qr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Yr[t];if(n)return n;let r=B(t);if("filter"!==r&&r in e)return Yr[t]=r;r=q(r);for(let n=0;n<Jr.length;n++){const i=Jr[n]+r;if(i in e)return Yr[t]=i}return t}(e,t);Kr.test(n)?e.setProperty(W(r),n.replace(Kr,""),"important"):e[r]=n}}const Jr=["Webkit","Moz","ms"],Yr={};const Xr="http://www.w3.org/1999/xlink";function ei(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Xr,t.slice(6,t.length)):e.setAttributeNS(Xr,t,n);else{const r=o(t);null==n||r&&!l(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function ti(e,t,n,r,i,o,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,i,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let a=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=l(n):null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch(e){}a&&e.removeAttribute(t)}const[ni,ri]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let ii=0;const oi=Promise.resolve(),li=()=>{ii=0};function si(e,t,n,r){e.addEventListener(t,n,r)}function ai(e,t,n,r){e.removeEventListener(t,n,r)}function ci(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const o=e._vei||(e._vei={}),l=o[t];if(r&&l)l.value=r;else{const[n,s]=pi(t);if(r){si(e,n,o[t]=di(r,i),s)}else l&&(ai(e,n,l,s),o[t]=void 0)}}const ui=/(?:Once|Passive|Capture)$/;function pi(e){let t;if(ui.test(e)){let n;for(t={};n=e.match(ui);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):W(e.slice(2)),t]}function di(e,t){const n=e=>{const r=e.timeStamp||ni();(ri||r>=n.attached-1)&&At(function(e,t){if(I(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=ii||(oi.then(li),ii=ni()),n}const hi=/^on[a-z]/;function fi(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&hi.test(t)&&L(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!hi.test(t)||!O(n))&&t in e))))}const gi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return I(t)?e=>K(t,e):t};function mi(e){e.target.composing=!0}function vi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const yi={created(e,t,n){let{modifiers:{lazy:r,trim:i,number:o}}=t;e._assign=gi(n);const l=o||n.props&&"number"===n.props.type;si(e,r?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;i&&(n=n.trim()),l&&(n=J(n)),e._assign(n)})),i&&si(e,"change",(()=>{e.value=e.value.trim()})),r||(si(e,"compositionstart",mi),si(e,"compositionend",vi),si(e,"change",vi))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:r,modifiers:{lazy:i,trim:o,number:l}}=t;if(e._assign=gi(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(i)return;if(o&&e.value.trim()===r)return;if((l||"number"===e.type)&&J(e.value)===r)return}const s=null==r?"":r;e.value!==s&&(e.value=s)}},wi={deep:!0,created(e,t,n){e._assign=gi(n),si(e,"change",(()=>{const t=e._modelValue,n=Ci(e),r=e.checked,i=e._assign;if(I(t)){const e=h(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(R(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Si(e,r))}))},mounted:bi,beforeUpdate(e,t,n){e._assign=gi(n),bi(e,t,n)}};function bi(e,t,n){let{value:r,oldValue:i}=t;e._modelValue=r,I(r)?e.checked=h(r,n.props.value)>-1:R(r)?e.checked=r.has(n.props.value):r!==i&&(e.checked=d(r,Si(e,!0)))}const ki={created(e,t,n){let{value:r}=t;e.checked=d(r,n.props.value),e._assign=gi(n),si(e,"change",(()=>{e._assign(Ci(e))}))},beforeUpdate(e,t,n){let{value:r,oldValue:i}=t;e._assign=gi(n),r!==i&&(e.checked=d(r,n.props.value))}},xi={deep:!0,created(e,t,n){let{value:r,modifiers:{number:i}}=t;const o=R(r);si(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>i?J(Ci(e)):Ci(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=gi(n)},mounted(e,t){let{value:n}=t;_i(e,n)},beforeUpdate(e,t,n){e._assign=gi(n)},updated(e,t){let{value:n}=t;_i(e,n)}};function _i(e,t){const n=e.multiple;if(!n||I(t)||R(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],o=Ci(i);if(n)I(t)?i.selected=h(t,o)>-1:i.selected=t.has(o);else if(d(Ci(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Ci(e){return"_value"in e?e._value:e.value}function Si(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const $i={created(e,t,n){Ii(e,t,n,null,"created")},mounted(e,t,n){Ii(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ii(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ii(e,t,n,r,"updated")}};function Ii(e,t,n,r,i){const o=function(e,t){switch(e){case"SELECT":return xi;case"TEXTAREA":return yi;default:switch(t){case"checkbox":return wi;case"radio":return ki;default:return yi}}}(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const Ei={beforeMount(e,t,n){let{value:r}=t,{transition:i}=n;e._vod="none"===e.style.display?"":e.style.display,i&&r?i.beforeEnter(e):Ri(e,r)},mounted(e,t,n){let{value:r}=t,{transition:i}=n;i&&r&&i.enter(e)},updated(e,t,n){let{value:r,oldValue:i}=t,{transition:o}=n;!r!=!i&&(o?r?(o.beforeEnter(e),Ri(e,!0),o.enter(e)):o.leave(e,(()=>{Ri(e,!1)})):Ri(e,r))},beforeUnmount(e,t){let{value:n}=t;Ri(e,n)}};function Ri(e,t){e.style.display=t?e._vod:"none"}const Ai=_({patchProp:function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,a=arguments.length>8?arguments[8]:void 0;"class"===t?Zr(e,r,i):"style"===t?Gr(e,n,r):k(t)?x(t)||ci(e,t,n,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):fi(e,t,r,i))?ti(e,t,r,o,l,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),ei(e,t,r,i))}},qr);let Li;function Oi(){return Li||(Li=Kn(Ai))}function ji(e){if(O(e)){return document.querySelector(e)}return e}var zi;const Ti="undefined"!=typeof window,Pi=e=>"function"==typeof e,Ui=e=>"string"==typeof e,Mi=()=>{};function Ni(e){return"function"==typeof e?e():Ct(e)}function Fi(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e((()=>t.apply(this,r)),{fn:t,thisArg:this,args:r})}}Ti&&(null==(zi=null==window?void 0:window.navigator)?void 0:zi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Di=e=>e();function Vi(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=i=>{const o=Ni(e),l=Ni(r.maxWait);if(t&&clearTimeout(t),o<=0||void 0!==l&&l<=0)return n&&(clearTimeout(n),n=null),i();l&&!n&&(n=setTimeout((()=>{t&&clearTimeout(t),n=null,i()}),l)),t=setTimeout((()=>{n&&clearTimeout(n),n=null,i()}),o)};return i}function Bi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Di;const t=bt(!0);function n(){t.value=!1}function r(){t.value=!0}const i=function(){t.value&&e(...arguments)};return{isActive:t,pause:n,resume:r,eventFilter:i}}function Hi(e){return!!X&&(function(e){X&&X.cleanups.push(e)}(e),!0)}function Wi(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Ar()?vn(e):t?e():Dt(e)}function qi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:r=!0,immediateCallback:i=!1}=n;let o=null;const l=bt(!1);function s(){o&&(clearInterval(o),o=null)}function a(){l.value=!1,s()}function c(){Ct(t)<=0||(l.value=!0,i&&e(),s(),o=setInterval(e,Ni(t)))}if(r&&Ti&&c(),wt(t)){Hi(un(t,(()=>{l.value&&Ti&&c()})))}return Hi(a),{isActive:l,pause:a,resume:c}}var Zi=Object.getOwnPropertySymbols,Gi=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,Qi=(e,t)=>{var n={};for(var r in e)Gi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Zi)for(var r of Zi(e))t.indexOf(r)<0&&Ki.call(e,r)&&(n[r]=e[r]);return n};function Ji(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n,{eventFilter:i=Di}=r,o=Qi(r,["eventFilter"]);return un(e,Fi(i,t),o)}var Yi=Object.defineProperty,Xi=Object.defineProperties,eo=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertySymbols,no=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,io=(e,t,n)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oo=(e,t)=>{for(var n in t||(t={}))no.call(t,n)&&io(e,n,t[n]);if(to)for(var n of to(t))ro.call(t,n)&&io(e,n,t[n]);return e},lo=(e,t)=>Xi(e,eo(t)),so=(e,t)=>{var n={};for(var r in e)no.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&to)for(var r of to(e))t.indexOf(r)<0&&ro.call(e,r)&&(n[r]=e[r]);return n};function ao(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n,{eventFilter:i}=r,o=so(r,["eventFilter"]),{eventFilter:l,pause:s,resume:a,isActive:c}=Bi(i),u=Ji(e,t,lo(oo({},o),{eventFilter:l}));return{stop:u,pause:s,resume:a,isActive:c}}function co(e){var t;const n=Ni(e);return null!=(t=null==n?void 0:n.$el)?t:n}const uo=Ti?window:void 0,po=Ti?window.document:void 0;function ho(){let e,t,n,r;for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];if(Ui(o[0])?([t,n,r]=o,e=uo):[e,t,n,r]=o,!e)return Mi;let s=Mi;const a=un((()=>co(e)),(e=>{s(),e&&(e.addEventListener(t,n,r),s=()=>{e.removeEventListener(t,n,r),s=Mi})}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return Hi(c),c}Ti&&window.navigator,Ti&&window.location;const fo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},go="__vueuse_ssr_handlers__";fo[go]=fo[go]||{};const mo=fo[go];function vo(e,t){return mo[e]||t}function yo(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"}var wo=Object.defineProperty,bo=Object.getOwnPropertySymbols,ko=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,_o=(e,t,n)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Co=(e,t)=>{for(var n in t||(t={}))ko.call(t,n)&&_o(e,n,t[n]);if(bo)for(var n of bo(t))xo.call(t,n)&&_o(e,n,t[n]);return e};const So={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 $o(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var i;const{flush:o="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=uo,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?kt:bt)(t);if(!n)try{n=vo("getDefaultStorage",(()=>{var e;return null==(e=uo)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=Ni(t),m=yo(g),v=null!=(i=r.serializer)?i:So[m],{pause:y,resume:w}=ao(f,(()=>b(f.value)),{flush:o,deep:l,eventFilter:d});return p&&s&&ho(p,"storage",x),x(),f;function b(t){try{null==t?n.removeItem(e):n.setItem(e,v.write(t))}catch(e){h(e)}}function k(t){if(!t||t.key===e){y();try{const r=t?t.newValue:n.getItem(e);if(null==r)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(r);return Pi(c)?c(e,g):"object"!==m||Array.isArray(e)?e:Co(Co({},g),e)}return"string"!=typeof r?r:v.read(r)}catch(e){h(e)}finally{w()}}}function x(t){t&&t.key!==e||(f.value=k(t))}}function Io(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:r=uo}=t,i=bt(!1);let o=null;function l(){i.value&&r&&(e(),o=r.requestAnimationFrame(l))}function s(){!i.value&&r&&(i.value=!0,l())}function a(){i.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&s(),Hi(a),{isActive:i,pause:a,resume:s}}var Eo,Ro,Ao=Object.defineProperty,Lo=Object.getOwnPropertySymbols,Oo=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable,zo=(e,t,n)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,To=(e,t)=>{for(var n in t||(t={}))Oo.call(t,n)&&zo(e,n,t[n]);if(Lo)for(var n of Lo(t))jo.call(t,n)&&zo(e,n,t[n]);return e};(Ro=Eo||(Eo={})).UP="UP",Ro.RIGHT="RIGHT",Ro.DOWN="DOWN",Ro.LEFT="LEFT",Ro.NONE="NONE";let Po=0;var Uo=Object.defineProperty,Mo=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,Do=(e,t,n)=>t in e?Uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))No.call(t,n)&&Do(e,n,t[n]);if(Mo)for(var n of Mo(t))Fo.call(t,n)&&Do(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Vo={"Content-Type":"application/json"},Bo=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},Ho=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then((e=>e.json())).then((e=>Bo(e,"article count"))),Wo=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:Vo,body:JSON.stringify({path:n,type:r,action:i})}).then((e=>e.json())).then((e=>Bo(e,"article count"))),qo=({serverURL:e,lang:t,token:n,objectId:r,...i})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{...Vo,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then((e=>e.json()));let Zo=null;const Go=()=>Zo||(Zo=$o("WALINE_LIKE",[]));var Ko="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Qo={},Jo={},Yo={},Xo=Ko&&Ko.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function l(e){try{a(r.next(e))}catch(e){o(e)}}function s(e){try{a(r.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,s)}a((r=r.apply(e,t||[])).next())}))},el=Ko&&Ko.__generator||function(e,t){var n,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,r=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!(i=l.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){l.label=o[1];break}if(6===o[0]&&l.label<i[1]){l.label=i[1],i=o;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(o);break}i[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.ReCaptchaInstance=void 0;var tl=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return Xo(this,void 0,void 0,(function(){return el(this,(function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:e}):this.recaptcha.execute(this.recaptchaID,{action:e})]}))}))},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();Yo.ReCaptchaInstance=tl,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.getInstance=Jo.load=void 0;var nl,rl=Yo;!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(nl||(nl={}));var il=function(){function e(){}return e.load=function(t,n){if(void 0===n&&(n={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===nl.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===nl.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(t,n){e.successfulLoadingConsumers.push((function(e){return t(e)})),e.errorLoadingRunnable.push((function(e){return n(e)}))}));e.instanceSiteKey=t,e.setLoadingState(nl.LOADING);var r=new e;return new Promise((function(i,o){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then((function(){e.setLoadingState(nl.LOADED);var o=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),l=new rl.ReCaptchaInstance(t,o,grecaptcha);e.successfulLoadingConsumers.forEach((function(e){return e(l)})),e.successfulLoadingConsumers=[],n.autoHideBadge&&l.hideBadge(),e.instance=l,i(l)})).catch((function(t){e.errorLoadingRunnable.forEach((function(e){return e(t)})),e.errorLoadingRunnable=[],o(t)}))}))},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?nl.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,o){var l=this;void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i={}),void 0===o&&(o="");var s=document.createElement("script");s.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(a=r?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),o&&(a=o),i.render&&(i.render=void 0);var c=this.buildQueryString(i);return s.src=a+"?render=explicit"+c,new Promise((function(t,n){s.addEventListener("load",l.waitForScriptToLoad((function(){t(s)}),r),!1),s.onerror=function(t){e.setLoadingState(nl.NOT_LOADED),n(t)},document.head.appendChild(s)}))},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?"":"&"+Object.keys(e).filter((function(t){return!!e[t]})).map((function(t){return t+"="+e[t]})).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){void 0===window.grecaptcha?setTimeout((function(){r.waitForScriptToLoad(t,n)}),e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready((function(){t()})):window.grecaptcha.ready((function(){t()}))}},e.prototype.doExplicitRender=function(e,t,n,r){var i={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?e.enterprise.render(n.container,i):e.render(n.container,i):r?e.enterprise.render(i):e.render(i)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Jo.load=il.load,Jo.getInstance=il.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Jo;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Yo;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Qo);const ol={},ll=["nick","mail","link"],sl=e=>e.filter((e=>ll.includes(e))),al=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),cl=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>',ul=()=>{const e={next:""},t=({keyword:e,pos:t})=>{const n=new URLSearchParams("media_filter=minimal");return n.set("key","PAY5JLFIH6V6"),n.set("limit","20"),n.set("pos",t||""),n.set("q",e),fetch(`https://g.tenor.com/v1/search?${n.toString()}`,{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:t||"",results:[]})))};return{search:(n="")=>t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url})))))),more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},pl=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],dl=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"),hl=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],fl={},gl=e=>{let t=0;return e.replace(dl,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"<";let i;fl[n]?i=fl[n]:(i=hl[t],fl[n]=i);const o=`<span style="color: #${i}">${n}</span>`;return t=++t%hl.length,o}))},ml=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],vl=e=>Object.fromEntries(e.map(((e,t)=>[ml[t],e])));var yl=vl(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),wl=vl(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),bl=vl(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),kl=vl(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]),xl=vl(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),_l=vl(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]);const Cl={zh:bl,"zh-cn":bl,"zh-CN":bl,"zh-tw":kl,"zh-TW":kl,en:yl,"en-US":yl,"en-us":yl,jp:wl,"jp-jp":wl,"jp-JP":wl,"pt-br":xl,"pt-BR":xl,ru:_l,"ru-ru":_l,"ru-RU":_l},Sl=e=>{try{e=decodeURI(e)}catch(e){}return e},$l=(e="")=>e.replace(/\/$/u,""),Il=e=>/^(https?:)?\/\//.test(e),El=e=>{const t=$l(e);return Il(t)?t:`https://${t}`},Rl=e=>Array.isArray(e)?e:!!e&&[0,e],Al=(e,t)=>"function"==typeof e?e:!1!==e&&t,Ll="{--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}",Ol=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},jl=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),o=Math.floor(i/864e5);if(0===o){const e=i%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return o<0?n.now:o<8?`${o} ${n.days}`:(e=>{const t=Ol(e.getDate(),2),n=Ol(e.getMonth()+1,2);return`${Ol(e.getFullYear(),2)}-${n}-${t}`})(r)},zl=e=>{const t=$o("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 i={folder:e,...r};return n&&(t.value[e]=i),i}))},Tl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Pl=e=>{"AbortError"!==e.name&&console.error(e.message)},Ul=e=>e.type.includes("image"),Ml=e=>{const t=Array.from(e).find(Ul);return t?t.getAsFile():null};function Nl(){return{async:!1,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 Fl={async:!1,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 Dl=/[&<>"']/,Vl=/[&<>"']/g,Bl=/[<>"']|&(?!#?\w+;)/,Hl=/[<>"']|&(?!#?\w+;)/g,Wl={"&":"&","<":"<",">":">",'"':""","'":"'"},ql=e=>Wl[e];function Zl(e,t){if(t){if(Dl.test(e))return e.replace(Vl,ql)}else if(Bl.test(e))return e.replace(Hl,ql);return e}const Gl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Kl(e){return e.replace(Gl,((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 Ql=/(^|[^\[])\^/g;function Jl(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(Ql,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const Yl=/[^\w:]/g,Xl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function es(e,t,n){if(e){let e;try{e=decodeURIComponent(Kl(n)).replace(Yl,"").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){ts[" "+e]||(ns.test(e)?ts[" "+e]=e+"/":ts[" "+e]=as(e,"/",!0));const n=-1===(e=ts[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(rs,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(is,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const ts={},ns=/^[^:]+:\/*[^/]*$/,rs=/^([^:]+:)[\s\S]*$/,is=/^([^:]+:\/*[^/]*)[\s\S]*$/;const os={exec:function(){}};function ls(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 ss(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)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 as(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,r-i)}function cs(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 us(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ps(e,t,n,r){const i=t.href,o=t.title?Zl(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:i,title:o,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:Zl(l)}}class ds{constructor(e){this.options=e||Fl}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:as(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=as(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){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,i,o,l,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),l=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!i.test(c))&&!l.test(c)&&!t.test(c)&&!r.test(e);){if(c.search(/[^ ]/)>=o||!c.trim())d+="\n"+c.slice(o);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(i="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:i,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]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):Zl(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return 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:ss(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,i,o,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]=ss(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.inline(e.header[r].text);for(l=e.rows.length,r=0;r<l;r++)for(o=e.rows[r],i=0;i<o.length;i++)o[i].tokens=this.lexer.inline(o[i].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Zl(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]):Zl(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=as(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,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;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)),ps(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 ps(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let i,o,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(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=i.length,r[3]||r[4]){l+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(l-=o,l>0)continue;if(o=Math.min(o,o+l+s),Math.min(n,o)%2){const t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t)}}const t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Zl(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=Zl(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Zl(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=Zl(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=Zl(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]):Zl(n[0]):n[0]:Zl(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const hs={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:os,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?'|\([^()]*\))/};hs.def=Jl(hs.def).replace("label",hs._label).replace("title",hs._title).getRegex(),hs.bullet=/(?:[*+-]|\d{1,9}[.)])/,hs.listItemStart=Jl(/^( *)(bull) */).replace("bull",hs.bullet).getRegex(),hs.list=Jl(hs.list).replace(/bull/g,hs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+hs.def.source+")").getRegex(),hs._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",hs._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,hs.html=Jl(hs.html,"i").replace("comment",hs._comment).replace("tag",hs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),hs.paragraph=Jl(hs._paragraph).replace("hr",hs.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",hs._tag).getRegex(),hs.blockquote=Jl(hs.blockquote).replace("paragraph",hs.paragraph).getRegex(),hs.normal=ls({},hs),hs.gfm=ls({},hs.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),hs.gfm.table=Jl(hs.gfm.table).replace("hr",hs.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",hs._tag).getRegex(),hs.gfm.paragraph=Jl(hs._paragraph).replace("hr",hs.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",hs.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",hs._tag).getRegex(),hs.pedantic=ls({},hs.normal,{html:Jl("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",hs._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:os,paragraph:Jl(hs.normal._paragraph).replace("hr",hs.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",hs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const fs={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:os,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:os,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function gs(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 ms(e){let t,n,r="";const i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}fs._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",fs.punctuation=Jl(fs.punctuation).replace(/punctuation/g,fs._punctuation).getRegex(),fs.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,fs.escapedEmSt=/\\\*|\\_/g,fs._comment=Jl(hs._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),fs.emStrong.lDelim=Jl(fs.emStrong.lDelim).replace(/punct/g,fs._punctuation).getRegex(),fs.emStrong.rDelimAst=Jl(fs.emStrong.rDelimAst,"g").replace(/punct/g,fs._punctuation).getRegex(),fs.emStrong.rDelimUnd=Jl(fs.emStrong.rDelimUnd,"g").replace(/punct/g,fs._punctuation).getRegex(),fs._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,fs._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,fs._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])?)+(?![-_])/,fs.autolink=Jl(fs.autolink).replace("scheme",fs._scheme).replace("email",fs._email).getRegex(),fs._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,fs.tag=Jl(fs.tag).replace("comment",fs._comment).replace("attribute",fs._attribute).getRegex(),fs._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,fs._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,fs._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,fs.link=Jl(fs.link).replace("label",fs._label).replace("href",fs._href).replace("title",fs._title).getRegex(),fs.reflink=Jl(fs.reflink).replace("label",fs._label).replace("ref",hs._label).getRegex(),fs.nolink=Jl(fs.nolink).replace("ref",hs._label).getRegex(),fs.reflinkSearch=Jl(fs.reflinkSearch,"g").replace("reflink",fs.reflink).replace("nolink",fs.nolink).getRegex(),fs.normal=ls({},fs),fs.pedantic=ls({},fs.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:Jl(/^!?\[(label)\]\((.*?)\)/).replace("label",fs._label).getRegex(),reflink:Jl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fs._label).getRegex()}),fs.gfm=ls({},fs.normal,{escape:Jl(fs.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),fs.gfm.url=Jl(fs.gfm.url,"i").replace("email",fs.gfm._extended_email).getRegex(),fs.breaks=ls({},fs.gfm,{br:Jl(fs.br).replace("{2,}","*").getRegex(),text:Jl(fs.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class vs{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Fl,this.options.tokenizer=this.options.tokenizer||new ds,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:hs.normal,inline:fs.normal};this.options.pedantic?(t.block=hs.pedantic,t.inline=fs.pedantic):this.options.gfm&&(t.block=hs.gfm,this.options.breaks?t.inline=fs.breaks:t.inline=fs.gfm),this.tokenizer.rules=t}static get rules(){return{block:hs,inline:fs}}static lex(e,t){return new vs(t).lex(e)}static lexInline(e,t){return new vs(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){let t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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((n=>!!(t=n.call({lexer:this},e,o))&&(e=e.substring(t.raw.length),o.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=o[o.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?o.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=o[o.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),o.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startBlock.forEach((function(e){i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=o[o.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):o.push(t),i=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=o[o.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):o.push(t);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,o}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,n,r,i,o,l,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],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)+"["+us("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)+"["+us("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(o||(l=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,s))&&(e=e.substring(t.raw.length),s.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.emStrong(e,a,l))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.autolink(e,ms))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,ms))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startInline.forEach((function(e){i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r,gs))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(l=t.raw.slice(-1)),o=!0,n=s[s.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);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(t.raw.length),s.push(t);return s}}class ys{constructor(e){this.options=e||Fl}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+Zl(r,!0)+'">'+(n?e:Zl(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Zl(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=es(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+Zl(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=es(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 ws{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 bs{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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class ks{constructor(e){this.options=e||Fl,this.options.renderer=this.options.renderer||new ys,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ws,this.slugger=new bs}static parse(e,t){return new ks(t).parse(e)}static parseInline(e,t){return new ks(t).parseInline(e)}parse(e){let t,n,r,i,o,l,s,a,c,u,p,d,h,f,g,m,v,y,w,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],k="";const x=e.length;for(t=0;t<x;t++)if(u=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(w=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))k+=w||"";else switch(u.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(u.tokens),u.depth,Kl(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(a="",s="",i=u.header.length,n=0;n<i;n++)s+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(a+=this.renderer.tablerow(s),c="",i=u.rows.length,n=0;n<i;n++){for(l=u.rows[n],s="",o=l.length,r=0;r<o;r++)s+=this.renderer.tablecell(this.parseInline(l[r].tokens),{header:!1,align:u.align[r]});c+=this.renderer.tablerow(s)}k+=this.renderer.table(a,c);continue;case"blockquote":c=this.parse(u.tokens),k+=this.renderer.blockquote(c);continue;case"list":for(p=u.ordered,d=u.start,h=u.loose,i=u.items.length,c="",n=0;n<i;n++)g=u.items[n],m=g.checked,v=g.task,f="",g.task&&(y=this.renderer.checkbox(m),h?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+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=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),c+=this.renderer.listitem(f,v,m);k+=this.renderer.list(c,p,d);continue;case"html":k+=this.renderer.html(u.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1<x&&"text"===e[t+1].type;)u=e[++t],c+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);k+=b?this.renderer.paragraph(c):c;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,i,o="";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]&&(i=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=i||"";else switch(r.type){case"escape":case"text":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}}function xs(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),cs(t=ls({},xs.defaults,t||{})),n){const r=t.highlight;let i;try{i=vs.lex(e,t)}catch(e){return n(e)}const o=function(e){let o;if(!e)try{t.walkTokens&&xs.walkTokens(i,t.walkTokens),o=ks.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!i.length)return o();let l=0;return xs.walkTokens(i,(function(e){"code"===e.type&&(l++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&o()}))}),0))})),void(0===l&&o())}function r(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Zl(e.message+"",!0)+"</pre>";throw e}try{const n=vs.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(xs.walkTokens(n,t.walkTokens)).then((()=>ks.parse(n,t))).catch(r);xs.walkTokens(n,t.walkTokens)}return ks.parse(n,t)}catch(e){r(e)}}xs.options=xs.setOptions=function(e){var t;return ls(xs.defaults,e),t=xs.defaults,Fl=t,xs},xs.getDefaults=Nl,xs.defaults=Fl,xs.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ls({},...t),i=xs.defaults.extensions||{renderers:{},childTokens:{}};let o;t.forEach((e=>{if(e.extensions&&(o=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=i.renderers?i.renderers[e.name]:null;i.renderers[e.name]=t?function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];let o=e.renderer.apply(this,r);return!1===o&&(o=t.apply(this,r)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");i[e.level]?i[e.level].unshift(e.tokenizer):i[e.level]=[e.tokenizer],e.start&&("block"===e.level?i.startBlock?i.startBlock.push(e.start):i.startBlock=[e.start]:"inline"===e.level&&(i.startInline?i.startInline.push(e.start):i.startInline=[e.start]))}e.childTokens&&(i.childTokens[e.name]=e.childTokens)}))),e.renderer){const t=xs.defaults.renderer||new ys;for(const n in e.renderer){const r=t[n];t[n]=function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];let s=e.renderer[n].apply(t,o);return!1===s&&(s=r.apply(t,o)),s}}r.renderer=t}if(e.tokenizer){const t=xs.defaults.tokenizer||new ds;for(const n in e.tokenizer){const r=t[n];t[n]=function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];let s=e.tokenizer[n].apply(t,o);return!1===s&&(s=r.apply(t,o)),s}}r.tokenizer=t}if(e.walkTokens){const t=xs.defaults.walkTokens;r.walkTokens=function(n){let r=[];return r.push(e.walkTokens.call(this,n)),t&&(r=r.concat(t.call(this,n))),r}}o&&(r.extensions=i),xs.setOptions(r)}))},xs.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(xs,r)),r.type){case"table":for(const e of r.header)n=n.concat(xs.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(xs.walkTokens(r.tokens,t));break;case"list":n=n.concat(xs.walkTokens(r.items,t));break;default:xs.defaults.extensions&&xs.defaults.extensions.childTokens&&xs.defaults.extensions.childTokens[r.type]?xs.defaults.extensions.childTokens[r.type].forEach((function(e){n=n.concat(xs.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(xs.walkTokens(r.tokens,t)))}return n},xs.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");cs(t=ls({},xs.defaults,t||{}));try{const n=vs.lexInline(e,t);return t.walkTokens&&xs.walkTokens(n,t.walkTokens),ks.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>"+Zl(e.message+"",!0)+"</pre>";throw e}},xs.Parser=ks,xs.parser=ks.parse,xs.Renderer=ys,xs.TextRenderer=ws,xs.Lexer=vs,xs.lexer=vs.lex,xs.Tokenizer=ds,xs.Slugger=bs,xs.parse=xs;const _s=/\$.*?\$/,Cs=/^\$(.*?)\$/,Ss=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,$s=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Is=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(xs.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Ss.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(_s);return-1!==t?t:e.length},tokenizer(t){const n=Cs.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);xs.use({extensions:e})}return xs.parse($s(e,t))},Es=e=>e.dataset.path||e.getAttribute("id"),Rs=(e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=bt(new Date),i=()=>r.value=new Date,o="requestAnimationFrame"===n?Io(i,{immediate:!0}):qi(i,n,{immediate:!0});return t?To({now:r},o):r}();return Dr((()=>jl(e,n.value,t)))};let As=null;const Ls=()=>As||(As=$o("WALINE_VOTE",[]));let Os=null;const js=()=>Os||(Os=$o("WALINE_USER",{}));var zs=hn({setup(){const e=bt([]),t=Ls(),n=sn("config"),r=Dr((()=>n.value.locale)),i=Dr((()=>{const{reaction:i,path:o}=n.value;return(Array.isArray(i)?i:[]).map(((n,i)=>({icon:n,vote:e.value[i]||0,desc:r.value[`reaction${i}`],active:Boolean(t.value.find((({u:e,i:t})=>e===o&&t===i)))})))})),o=new AbortController;return vn((()=>(async()=>{const{serverURL:t,lang:r,path:i,reaction:l}=n.value;if(!Array.isArray(l))return;const s=await Ho({serverURL:t,lang:r,paths:[i],type:l.map(((e,t)=>`reaction${t}`)),signal:o.signal});Array.isArray(s)||"number"==typeof s||(e.value=l.map(((e,t)=>s[`reaction${t}`])))})())),wn((()=>o.abort())),{reaction:i,locale:r,vote:async r=>{const{serverURL:i,lang:o,path:l}=n.value,s=t.value.find((({u:e})=>e===l));s&&s.i===r||(await Wo({serverURL:i,lang:o,path:l,type:`reaction${r}`}),e.value[r]=(e.value[r]||0)+1,s?(e.value[s.i]=Math.max(e.value[s.i]-1,0),Wo({serverURL:i,lang:o,path:l,type:`reaction${s.i}`,action:"desc"}),s.i=r,t.value=Array.from(t.value)):t.value=[...t.value,{u:l,i:r}],t.value.length>50&&(t.value=t.value.slice(-50)))}}}}),Ts=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const Ps={key:0,class:"wl-reaction"},Us=["textContent"],Ms=["onClick"],Ns={class:"wl-reaction-img"},Fs=["src","alt"],Ds={class:"wl-reaction-votes"},Vs={class:"wl-reaction-text"};var Bs,Hs,Ws=Ts(zs,[["render",function(e,t,n,r,i,o){return e.reaction&&e.reaction.length?(or(),cr("div",Ps,[mr("h4",{textContent:f(e.locale.reactionTitle)},null,8,Us),mr("ul",null,[(or(!0),cr(Xn,null,$n(e.reaction,((t,n)=>(or(),cr("li",{key:n,class:p({active:t.active}),onClick:t=>e.vote(n)},[mr("div",Ns,[mr("img",{src:t.icon,alt:t.desc},null,8,Fs),mr("div",Ds,f(t.vote),1)]),mr("div",Vs,f(t.desc),1)],10,Ms)))),128))])])):kr("v-if",!0)}],["__file","ArticleReaction.vue"]]),qs="function"==typeof Map?new Map:(Bs=[],Hs=[],{has:function(e){return Bs.indexOf(e)>-1},get:function(e){return Hs[Bs.indexOf(e)]},set:function(e,t){-1===Bs.indexOf(e)&&(Bs.push(e),Hs.push(t))},delete:function(e){var t=Bs.indexOf(e);t>-1&&(Bs.splice(t,1),Hs.splice(t,1))}}),Zs=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(Bs){Zs=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Gs(e){var t=qs.get(e);t&&t.destroy()}function Ks(e){var t=qs.get(e);t&&t.update()}var Qs=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Qs=function(e){return e}).destroy=function(e){return e},Qs.update=function(e){return e}):((Qs=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&&!qs.has(e)){var t,n=null,r=null,i=null,o=function(){e.clientWidth!==r&&c()},l=function(t){window.removeEventListener("resize",o,!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]})),qs.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",o,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",qs.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),i=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})),i&&(document.documentElement.scrollTop=i)}}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),i!==r){i=r;var o=Zs("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Gs),e},Qs.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ks),e});var Js=Qs;const Ys=({size:e})=>Vr("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Vr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Vr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var Xs=hn({name:"ImageWall",components:{LoadingIcon:Ys},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emits:["insert"],setup(e){let t=null;const n=bt(null),r=bt({}),i=bt([]),o=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},l=async t=>{if(t>=e.items.length)return;await Dt();const r=Array.from(n.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));i.value[Number(r.dataset.index)].push(t),await l(t+1)},s=async(e=!1)=>{if(i.value.length===o()&&!e)return;var t;i.value=(t=o(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await l(0),window.scrollTo({top:n})};return un((()=>[e.items]),(()=>{r.value={},s(!0)})),un((()=>[e.columnWidth,e.gap]),(()=>s())),vn((()=>{s(!0),t=new ResizeObserver((()=>s())),t.observe(n.value)})),yn((()=>t.unobserve(n.value))),{columns:i,state:r,wall:n}}});const ea=["data-index"],ta=["src","title","onLoad","onClick"];var na=hn({name:"CommentBox",components:{CloseIcon:({size:e})=>Vr("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Vr("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"}),Vr("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:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Vr("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:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Vr("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"}),Vr("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),ImageWall:Ts(Xs,[["render",function(e,t,n,r,i,o){const l=_n("LoadingIcon");return or(),cr("div",{ref:"wall",class:"wl-gallery",style:s({gap:`${e.gap}px`})},[(or(!0),cr(Xn,null,$n(e.columns,((t,n)=>(or(),cr("div",{key:n,class:"wl-gallery-column","data-index":n,style:s({gap:`${e.gap}px`})},[(or(!0),cr(Xn,null,$n(t,(t=>(or(),cr(Xn,{key:t},[e.state[e.items[t].src]?kr("v-if",!0):(or(),ur(l,{key:0,size:36,style:{margin:"20px auto"}})),mr("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert",``)},null,40,ta)],64)))),128))],12,ea)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>Vr("svg",{width:"16",height:"16",ariaHidden:"true"},Vr("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:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Vr("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"}),Vr("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:Ys,GifIcon:()=>Vr("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Vr("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),Vr("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})])},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""},edit:{type:Object,default:null}},emits:["submit","cancel-reply","cancel-edit"],setup(e,{emit:t}){const n=sn("config"),r=$o("WALINE_COMMENT_BOX_EDITOR",""),i=$o("WALINE_USER_META",{nick:"",mail:"",link:""}),o=js(),l=bt({}),s=bt(null),a=bt(null),c=bt(null),u=bt(null),p=bt(null),d=bt(null),h=bt(null),f=bt({tabs:[],map:{}}),g=bt(0),m=bt(!1),v=bt(!1),y=bt(!1),w=bt(""),b=bt(0),k=ot({loading:!0,list:[]}),x=bt(0),_=bt(!1),C=bt(""),S=bt(!1),$=Dr((()=>n.value.locale)),I=Dr((()=>Boolean(o.value?.token))),E=Dr((()=>!1!==n.value.imageUploader)),R=e=>{const t=s.value,n=t.selectionStart,i=t.selectionEnd||0,o=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(i,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=o},A=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return R(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n`)})).catch((e=>{alert(e.message),r.value=r.value.replace(t,"")}))},L=async()=>{const{serverURL:a,lang:c,login:u,wordLimit:p,requiredMeta:d}=n.value;let h="";n.value.recaptchaV3Key&&(h=await(e=>{const t=ol[e]??(ol[e]=Qo.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(n.value.recaptchaV3Key).execute("social"));const g={comment:C.value,nick:i.value.nick,mail:i.value.mail,link:i.value.link,ua:navigator.userAgent,url:n.value.path,recaptchaV3:h};if(o.value?.token)g.nick=o.value.display_name,g.mail=o.value.email,g.link=o.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!g.nick)return l.value.nick?.focus(),alert($.value.nickError);if(d.indexOf("mail")>-1&&!g.mail||g.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(g.mail))return l.value.mail?.focus(),alert($.value.mailError);if(!g.comment)return void s.value?.focus();g.nick||(g.nick=$.value.anonymous)}if(!_.value)return alert($.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",b.value.toString()));g.comment=$s(g.comment,f.value.map),e.replyId&&e.rootId?(g.pid=e.replyId,g.rid=e.rootId,g.at=e.replyUser):e.edit&&(g.eid=e.edit.objectId),S.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),r.eid?fetch(`${e}/comment/${r.eid}?lang=${t}`,{method:"PUT",headers:i,body:JSON.stringify(r)}).then((e=>e.json())):fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:a,lang:c,token:o.value?.token,comment:g}).then((n=>{if(S.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",w.value="",e.replyId&&t("cancel-reply"),e.edit?.objectId&&t("cancel-edit")})).catch((e=>{S.value=!1,alert(e.message)}))},O=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(m.value=!1),p.value.contains(e.target)||d.value.contains(e.target)||(v.value=!1)},j=async e=>{const{scrollTop:t,clientHeight:r,scrollHeight:i}=e.target,o=(r+t)/i,l=n.value.search,s=h.value?.value||"";o<.9||k.loading||(k.loading=!0,k.list.push(...l.more?await l.more(s,k.list.length):await l.search(s)),k.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50))},z=function(e){return Fi(Vi(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}((e=>{k.list=[],j(e)}),300);un([n,b],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(x.value=n[0],_.value=!1):t>n[1]?(x.value=n[1],_.value=!1):(x.value=n[1],_.value=!0):(x.value=0,_.value=!0)}),{immediate:!0}),un(v,(async e=>{if(!e)return;const t=n.value.search;h.value&&(h.value.value=""),k.loading=!0,k.list=t.default?await t.default():await t.search(""),k.loading=!1}));const T=({data:e})=>{e&&"profile"===e.type&&(o.value={...o.value,...e.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(o)))))};return vn((()=>{document.body.addEventListener("click",O),window.addEventListener("message",T),e.edit?.objectId&&(r.value=e.edit.orig),un((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;C.value=e,w.value=Is(e,{emojiMap:f.value.map,highlighter:t,texRenderer:r}),b.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?Js(s.value):Js.destroy(s.value)}),{immediate:!0}),un((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?zl($l(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:i,prefix:o,type:l,items:s}=e;t.tabs.push({name:n,icon:Tl(i,r,o,l),items:s.map((e=>{const n=`${o||""}${e}`;return t.map[n]=Tl(e,r,o,l),n}))})})),t}))).then((e=>{f.value=e}));var t}),{immediate:!0})})),wn((()=>{document.body.removeEventListener("click",O),window.removeEventListener("message",T)})),{config:n,locale:$,insert:R,onChange:()=>{const e=a.value;e.files&&E.value&&A(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{if(e.dataTransfer?.items){const t=Ml(e.dataTransfer.items);t&&E.value&&(A(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&L()},onPaste:e=>{if(e.clipboardData){const t=Ml(e.clipboardData.items);t&&E.value&&A(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value;(({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=window.open(`${t}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return i?.postMessage({type:"TOKEN",data:null},"*"),new Promise((e=>{const t=({data:n})=>{n&&"object"==typeof n&&"userInfo"===n.type&&n.data.token&&(i?.close(),window.removeEventListener("message",t),e(n.data))};window.addEventListener("message",t)}))})({serverURL:r,lang:t}).then((e=>{o.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e))}))},onLogout:()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,i=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2;window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${i},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:"TOKEN",data:o.value.token},"*")},submitComment:L,onImageWallScroll:j,onGifSearch:z,isLogin:I,userInfo:o,isSubmitting:S,wordNumber:b,wordLimit:x,isWordNumberLegal:_,editor:r,userMeta:i,emoji:f,emojiTabIndex:g,showEmoji:m,gifData:k,showGif:v,canUploadImage:E,previewText:w,showPreview:y,inputRefs:l,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,gifButtonRef:p,gifPopupRef:d,imageUploadRef:a,gifSearchInputRef:h}}});const ra={class:"wl-comment"},ia={key:0,class:"wl-login-info"},oa={class:"wl-avatar"},la=["title"],sa=["title"],aa=["src"],ca=["title","textContent"],ua={class:"wl-panel"},pa=["for","textContent"],da=["id","onUpdate:modelValue","name","type"],ha=["placeholder"],fa={class:"wl-preview"},ga=mr("hr",null,null,-1),ma=["innerHTML"],va={class:"wl-footer"},ya={class:"wl-actions"},wa={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},ba=["title"],ka=["title"],xa=["title"],_a=["title"],Ca={class:"wl-info"},Sa={class:"wl-text-number"},$a={key:0},Ia=br(" / "),Ea=["textContent"],Ra=["textContent"],Aa=["disabled"],La=["placeholder"],Oa={key:0,class:"wl-loading"},ja={key:0,class:"wl-tab-wrapper"},za=["title","onClick"],Ta=["src","alt"],Pa={key:0,class:"wl-tabs"},Ua=["onClick"],Ma=["src","alt","title"],Na=["title"];var Fa=Ts(na,[["render",function(e,t,n,r,i,o){const l=_n("CloseIcon"),s=_n("MarkdownIcon"),a=_n("EmojiIcon"),c=_n("GifIcon"),u=_n("ImageIcon"),d=_n("PreviewIcon"),h=_n("LoadingIcon"),g=_n("ImageWall");return or(),cr("div",ra,["disable"!==e.config.login&&e.isLogin&&!e.edit?.objectId?(or(),cr("div",ia,[mr("div",oa,[mr("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[vr(l,{size:14})],8,la),mr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t))},[mr("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,aa)],8,sa)]),mr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[2]||(t[2]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:f(e.userInfo.display_name)},null,8,ca)])):kr("v-if",!0),mr("div",ua,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(or(),cr("div",{key:0,class:p(["wl-header",`item${e.config.meta.length}`])},[(or(!0),cr(Xn,null,$n(e.config.meta,(t=>(or(),cr("div",{key:t,class:"wl-header-item"},[mr("label",{for:t,textContent:f(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,pa),bn(mr("input",{id:`wl-${t}`,ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},"onUpdate:modelValue":n=>e.userMeta[t]=n,class:p(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text"},null,10,da),[[$i,e.userMeta[t]]])])))),128))],2)):kr("v-if",!0),bn(mr("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[3]||(t[3]=t=>e.editor=t),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,onKeydown:t[4]||(t[4]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[5]||(t[5]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[6]||(t[6]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,ha),[[yi,e.editor]]),bn(mr("div",fa,[ga,mr("h4",null,f(e.locale.preview)+":",1),kr(" eslint-disable-next-line vue/no-v-html "),mr("div",{class:"wl-content",innerHTML:e.previewText},null,8,ma)],512),[[Ei,e.showPreview]]),mr("div",va,[mr("div",ya,[mr("a",wa,[vr(s)]),bn(mr("button",{ref:"emojiButtonRef",class:p(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[7]||(t[7]=t=>e.showEmoji=!e.showEmoji)},[vr(a)],10,ba),[[Ei,e.emoji.tabs.length]]),e.config.search?(or(),cr("button",{key:0,ref:"gifButtonRef",class:p(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[8]||(t[8]=t=>e.showGif=!e.showGif)},[vr(c)],10,ka)):kr("v-if",!0),mr("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[9]||(t[9]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(or(),cr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[vr(u)],8,xa)):kr("v-if",!0),mr("button",{class:p(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[10]||(t[10]=t=>e.showPreview=!e.showPreview)},[vr(d)],10,_a)]),mr("div",Ca,[mr("div",Sa,[br(f(e.wordNumber)+" ",1),e.config.wordLimit?(or(),cr("span",$a,[Ia,mr("span",{class:p({illegal:!e.isWordNumberLegal}),textContent:f(e.wordLimit)},null,10,Ea)])):kr("v-if",!0),br(" "+f(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?kr("v-if",!0):(or(),cr("button",{key:0,class:"wl-btn",onClick:t[11]||(t[11]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:f(e.locale.login)},null,8,Ra)),"force"!==e.config.login||e.isLogin?(or(),cr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[12]||(t[12]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(or(),ur(h,{key:0,size:16})):(or(),cr(Xn,{key:1},[br(f(e.locale.submit),1)],64))],8,Aa)):kr("v-if",!0)]),mr("div",{ref:"gifPopupRef",class:p(["wl-gif-popup",{display:e.showGif}])},[mr("input",{ref:"gifSearchInputRef",type:"text",placeholder:e.locale.gifSearchPlaceholder,onInput:t[13]||(t[13]=(...t)=>e.onGifSearch&&e.onGifSearch(...t))},null,40,La),vr(g,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[14]||(t[14]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(or(),cr("div",Oa,[vr(h,{size:30})])):kr("v-if",!0)],2),mr("div",{ref:"emojiPopupRef",class:p(["wl-emoji-popup",{display:e.showEmoji}])},[(or(!0),cr(Xn,null,$n(e.emoji.tabs,((t,n)=>(or(),cr(Xn,{key:t.name},[n===e.emojiTabIndex?(or(),cr("div",ja,[(or(!0),cr(Xn,null,$n(t.items,(t=>(or(),cr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(or(),cr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ta)):kr("v-if",!0)],8,za)))),128))])):kr("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(or(),cr("div",Pa,[(or(!0),cr(Xn,null,$n(e.emoji.tabs,((t,n)=>(or(),cr("button",{key:t.name,class:p(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[mr("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ma)],10,Ua)))),128))])):kr("v-if",!0)],2)])]),e.replyId||e.edit?.objectId?(or(),cr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[15]||(t[15]=t=>e.$emit(e.replyId?"cancel-reply":"cancel-edit"))},[vr(l,{size:24})],8,Na)):kr("v-if",!0)])}],["__file","CommentBox.vue"]]);const Da=["approved","waiting","spam"];var Va=hn({components:{CommentBox:Fa,DeleteIcon:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Vr("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})=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Vr("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:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Vr("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"})),EditIcon:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Vr("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),VerifiedIcon:()=>Vr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Vr("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"}))},props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object,default:null},edit:{type:Object,default:null}},emits:["submit","reply","like","delete","status","sticky","edit"],setup(e){const t=sn("config"),n=Go(),r=js(),i=Dr((()=>t.value.locale)),o=Dr((()=>{const{link:t}=e.comment;return t?Il(t)?t:`https://${t}`:""})),l=Dr((()=>n.value.includes(e.comment.objectId))),s=Rs(e.comment.insertedAt,i.value),a=Dr((()=>"administrator"===r.value.type)),c=Dr((()=>e.comment.user_id&&r.value.objectId===e.comment.user_id)),u=Dr((()=>e.comment.objectId===e.reply?.objectId)),p=Dr((()=>e.comment.objectId===e.edit?.objectId));return{config:t,locale:i,isReplyingCurrent:u,isEditingCurrent:p,link:o,like:l,time:s,isAdmin:a,isOwner:c,commentStatus:Da}}});const Ba=["id"],Ha={class:"wl-user","aria-hidden":"true"},Wa=["src"],qa={class:"wl-card"},Za={class:"wl-head"},Ga=["href"],Ka={key:1,class:"wl-nick"},Qa=["textContent"],Ja=["textContent"],Ya=["textContent"],Xa=["textContent"],ec=["textContent"],tc={class:"wl-comment-actions"},nc=["title"],rc=["textContent"],ic=["title"],oc={class:"wl-meta","aria-hidden":"true"},lc=["data-value","textContent"],sc=["data-value","textContent"],ac=["data-value","textContent"],cc=["innerHTML"],uc={key:1,class:"wl-admin-actions"},pc={class:"wl-comment-status"},dc=["disabled","onClick","textContent"],hc={key:3,class:"wl-quote"};const fc=[{key:"insertedAt_desc",name:"latest"},{key:"insertedAt_asc",name:"oldest"},{key:"like_desc",name:"hottest"}];var gc=hn({name:"WalineRoot",components:{Reaction:Ws,CommentBox:Fa,CommentCard:Ts(Va,[["render",function(e,t,n,r,i,o){const l=_n("VerifiedIcon"),s=_n("EditIcon"),a=_n("DeleteIcon"),c=_n("LikeIcon"),u=_n("ReplyIcon"),d=_n("CommentBox"),h=_n("CommentCard",!0);return or(),cr("div",{id:e.comment.objectId,class:"wl-item"},[mr("div",Ha,[e.comment.avatar?(or(),cr("img",{key:0,src:e.comment.avatar},null,8,Wa)):kr("v-if",!0),e.comment.type?(or(),ur(l,{key:1})):kr("v-if",!0)]),mr("div",qa,[mr("div",Za,[e.link?(or(),cr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},f(e.comment.nick),9,Ga)):(or(),cr("span",Ka,f(e.comment.nick),1)),"administrator"===e.comment.type?(or(),cr("span",{key:2,class:"wl-badge",textContent:f(e.locale.admin)},null,8,Qa)):kr("v-if",!0),e.comment.label?(or(),cr("span",{key:3,class:"wl-badge",textContent:f(e.comment.label)},null,8,Ja)):kr("v-if",!0),e.comment.sticky?(or(),cr("span",{key:4,class:"wl-badge",textContent:f(e.locale.sticky)},null,8,Ya)):kr("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(or(),cr("span",{key:5,class:p(`wl-badge level${e.comment.level}`),textContent:f(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Xa)):kr("v-if",!0),mr("span",{class:"wl-time",textContent:f(e.time)},null,8,ec),mr("div",tc,[e.isAdmin||e.isOwner?(or(),cr("button",{key:0,class:"wl-edit",onClick:t[0]||(t[0]=t=>e.$emit("edit",e.comment))},[vr(s)])):kr("v-if",!0),e.isAdmin||e.isOwner?(or(),cr("button",{key:1,class:"wl-delete",onClick:t[1]||(t[1]=t=>e.$emit("delete",e.comment))},[vr(a)])):kr("v-if",!0),mr("button",{class:"wl-like",title:e.like?e.locale.cancelLike:e.locale.like,onClick:t[2]||(t[2]=t=>e.$emit("like",e.comment))},[vr(c,{active:e.like},null,8,["active"]),"like"in e.comment?(or(),cr("span",{key:0,textContent:f(e.comment.like)},null,8,rc)):kr("v-if",!0)],8,nc),mr("button",{class:p(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[3]||(t[3]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[vr(u)],10,ic)])]),mr("div",oc,[e.comment.addr?(or(),cr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:f(e.comment.addr)},null,8,lc)):kr("v-if",!0),e.comment.browser?(or(),cr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:f(e.comment.browser)},null,8,sc)):kr("v-if",!0),e.comment.os?(or(),cr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:f(e.comment.os)},null,8,ac)):kr("v-if",!0)]),kr(" eslint-disable vue/no-v-html "),e.isEditingCurrent?kr("v-if",!0):(or(),cr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,cc)),kr(" eslint-enable vue/no-v-html "),e.isAdmin&&!e.isEditingCurrent?(or(),cr("div",uc,[mr("span",pc,[(or(!0),cr(Xn,null,$n(e.commentStatus,(t=>(or(),cr("button",{key:t,class:p(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:f(e.locale[t])},null,10,dc)))),128))]),e.isAdmin&&!e.comment.rid?(or(),cr("button",{key:0,class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=t=>e.$emit("sticky",e.comment))},f(e.comment.sticky?e.locale.unsticky:e.locale.sticky),1)):kr("v-if",!0)])):kr("v-if",!0),e.isReplyingCurrent||e.isEditingCurrent?(or(),cr("div",{key:2,class:p({"wl-reply-wrapper":e.isReplyingCurrent,"wl-edit-wrapper":e.isEditingCurrent})},[vr(d,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onSubmit:t[5]||(t[5]=t=>e.$emit("submit",t)),onCancelReply:t[6]||(t[6]=t=>e.$emit("reply",null)),onCancelEdit:t[7]||(t[7]=t=>e.$emit("edit",null))},null,8,["edit","reply-id","reply-user","root-id"])],2)):kr("v-if",!0),e.comment.children?(or(),cr("div",hc,[(or(!0),cr(Xn,null,$n(e.comment.children,(n=>(or(),ur(h,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onReply:t[8]||(t[8]=t=>e.$emit("reply",t)),onSubmit:t[9]||(t[9]=t=>e.$emit("submit",t)),onLike:t[10]||(t[10]=t=>e.$emit("like",t)),onEdit:t[11]||(t[11]=t=>e.$emit("edit",t)),onDelete:t[12]||(t[12]=t=>e.$emit("delete",t)),onStatus:t[13]||(t[13]=t=>e.$emit("status",t)),onSticky:t[14]||(t[14]=t=>e.$emit("sticky",t))},null,8,["comment","reply","edit","root-id"])))),128))])):kr("v-if",!0)])],8,Ba)}],["__file","CommentCard.vue"]]),LoadingIcon:Ys},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup(e){const t=Dr((()=>(({serverURL:e,path:t=location.pathname,lang:n="zh-CN",locale:r,emoji:i=["//unpkg.com/@waline/emojis@1.1.0/weibo"],meta:o=["nick","mail","link"],requiredMeta:l=[],dark:s=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:p,texRenderer:d,copyright:h=!0,login:f="enable",search:g=ul(),reaction:m,recaptchaV3Key:v="",...y})=>({serverURL:El(e),path:Sl(t),locale:{...Cl[n]||Cl["zh-CN"],..."object"==typeof r?r:{}},wordLimit:Rl(c),meta:sl(o),requiredMeta:sl(l),imageUploader:Al(u,al),highlighter:Al(p,gl),texRenderer:Al(d,cl),lang:n,dark:s,emoji:i,pageSize:a,login:f,copyright:h,search:g,recaptchaV3Key:v,reaction:!0===m?pl:m||!1,...y}))(e))),n=js(),r=Go(),i=bt("loading"),o=bt(0),l=bt(1),s=bt(0),a=bt(fc[0].key),c=bt([]),u=bt(null),p=bt(null),d=Dr((()=>{return"string"==typeof(e=t.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${Ll}}`:`${e}${Ll}`:!0===e?`:root${Ll}`:"";var e}));let h;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=bt(!1),{document:r=po,immediate:i=!0,manual:o=!1,id:l="vueuse_styletag_"+ ++Po}=t,s=bt(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=un(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};i&&!o&&Wi(c),o||Hi(u),st(n)}(d);const f=e=>{const{serverURL:r,path:u,pageSize:p}=t.value,d=new AbortController;i.value="loading",h?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:o,signal:l,token:s})=>{const a={};return s&&(a.Authorization=`Bearer ${s}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${o}`,{signal:l,headers:a}).then((e=>e.json())).then((e=>Bo(e,"comment data")))})({serverURL:r,lang:t.value.lang,path:u,pageSize:p,sortBy:a.value,page:e,signal:d.signal,token:n.value?.token}).then((t=>{i.value="success",o.value=t.count,c.value.push(...t.data),l.value=e,s.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),i.value="error")})),h=d.abort.bind(d)},g=()=>{o.value=0,c.value=[],f(1)};return function(e,t){if(Rr){let n=Rr.provides;const r=Rr.parent&&Rr.parent.provides;r===n&&(n=Rr.provides=Object.create(r)),n[e]=t}}("config",t),un((()=>e.path),g),vn((()=>g())),{config:t,darkmodeStyle:d,i18n:Dr((()=>t.value.locale)),status:i,count:o,page:l,totalPages:s,sortBy:a,sortByItems:fc,data:c,reply:u,edit:p,loadMore:()=>f(l.value+1),refresh:g,onSortByChange:e=>{a.value!==e&&(a.value=e,g())},onReply:e=>{u.value=e},onSubmit:e=>{if(p.value)p.value.comment=e.comment,p.value.orig=e.orig;else if(e.rid){const t=c.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else c.value.unshift(e)},onStatusChange:async({comment:e,status:r})=>{if(e.status===r)return;const{serverURL:i,lang:o}=t.value;await qo({serverURL:i,lang:o,token:n.value?.token,objectId:e.objectId,status:r}),e.status=r},onDelete:async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:r,lang:i}=t.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:r,lang:i,token:n.value?.token,objectId:e}),c.value.some(((t,n)=>t.objectId===e?(c.value=c.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,i)=>r.objectId===e&&(c.value[n].children=t.children.filter(((e,t)=>t!==i)),!0)))))},onSticky:async e=>{if(e.rid)return;const{serverURL:r,lang:i}=t.value;await qo({serverURL:r,lang:i,token:n.value?.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:n,lang:i}=t.value,{objectId:o}=e,l=r.value.includes(o);await(({serverURL:e,lang:t,objectId:n,like:r})=>fetch(`${e}/comment/${n}?lang=${t}`,{method:"PUT",headers:Vo,body:JSON.stringify({like:r})}).then((e=>e.json())))({serverURL:n,lang:i,objectId:o,like:!l}),l?r.value=r.value.filter((e=>e!==o)):(r.value=[...r.value,o],r.value.length>50&&(r.value=r.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},onEdit:e=>{p.value=e},version:"2.11.2"}}});const mc={"data-waline":""},vc={class:"wl-meta-head"},yc={class:"wl-count"},wc=["textContent"],bc={class:"wl-sort"},kc=["onClick"],xc={class:"wl-cards"},_c={key:1,class:"wl-operation"},Cc=["textContent"],Sc={key:0,class:"wl-loading"},$c=["textContent"],Ic={class:"wl-operation"},Ec=["textContent"],Rc={key:3,class:"wl-power"},Ac=br(" Powered by "),Lc=mr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var Oc=Ts(gc,[["render",function(e,t,n,r,i,o){const l=_n("Reaction"),s=_n("CommentBox"),a=_n("CommentCard"),c=_n("LoadingIcon");return or(),cr("div",mc,[vr(l),e.reply?kr("v-if",!0):(or(),ur(s,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),mr("div",vc,[mr("div",yc,[e.count?(or(),cr("span",{key:0,class:"wl-num",textContent:f(e.count)},null,8,wc)):kr("v-if",!0),br(" "+f(e.i18n.comment),1)]),mr("ul",bc,[(or(!0),cr(Xn,null,$n(e.sortByItems,(t=>(or(),cr("li",{key:t.key,class:p([t.key===e.sortBy?"active":""]),onClick:n=>e.onSortByChange(t.key)},f(e.i18n[t.name]),11,kc)))),128))])]),mr("div",xc,[(or(!0),cr(Xn,null,$n(e.data,(t=>(or(),ur(a,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,edit:e.edit,onReply:e.onReply,onEdit:e.onEdit,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","edit","onReply","onEdit","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(or(),cr("div",_c,[mr("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:f(e.i18n.refresh)},null,8,Cc)])):(or(),cr(Xn,{key:2},["loading"===e.status?(or(),cr("div",Sc,[vr(c,{size:30})])):e.data.length?e.page<e.totalPages?(or(),cr(Xn,{key:2},[kr(" Load more button "),mr("div",Ic,[mr("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:f(e.i18n.more)},null,8,Ec)])],2112)):kr("v-if",!0):(or(),cr("div",{key:1,class:"wl-empty",textContent:f(e.i18n.sofa)},null,8,$c))],64)),kr(" Copyright Information "),e.config.copyright?(or(),cr("div",Rc,[Ac,Lc,br(" v"+f(e.version),1)])):kr("v-if",!0)])}],["__file","Waline.vue"]]);const jc=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{const i=new AbortController,o=document.querySelectorAll(n);return o.length&&(({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:{}}).then((e=>e.json())).then((e=>Bo(e,"comment count"))).then((e=>Array.isArray(e)?e:[e])))({serverURL:El(e),paths:Array.from(o).map((e=>Sl(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:i.signal}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Pl),i.abort.bind(i)},zc=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Tc=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i="zh-CN"})=>{const o=new AbortController,l=Array.from(document.querySelectorAll(n)),s=e=>{const n=Es(e);return null!==n&&t!==n},a=n=>(({serverURL:e,lang:t,paths:n,signal:r})=>Ho({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then((e=>Array.isArray(e)?e:[e])))({serverURL:El(e),paths:n.map((e=>Es(e)||t)),lang:i,signal:o.signal}).then((e=>zc(e,n))).catch(Pl);if(r){const n=l.filter((e=>!s(e))),r=l.filter(s);(c={serverURL:El(e),path:t,lang:i},Wo({...c,type:"time"})).then((e=>zc(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(l);var c;return o.abort.bind(o)},Pc=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const o=e?(e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null)(e):null;if(e&&!o)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=ot({...i}),s=ot({comment:n,pageview:r,path:t}),a=o?function(){const e=Oi().createApp(...arguments),{mount:t}=e;return e.mount=n=>{const r=ji(n);if(!r)return;const i=e._component;L(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e}((()=>Vr(Oc,{path:s.path,...l}))):null;a&&a.mount(o);const c=an((()=>{s.comment&&jc({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})})),u=an((()=>{s.pageview&&Tc({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})}));return{el:o,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{l[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}};e(" This is a legacy package compatible with Valine and Waline@v1, please switch to Waline@v2 using https://<CDN.LINK>/@waline/client/dist/waline.js instead!");const Uc=document.createElement("link");return Uc.rel="stylesheet",Uc.href="//unpkg.com/@waline/client@v2/dist/waline.css",document.head.appendChild(Uc),function(i){return Pc((i=>{const{placeholder:o,langMode:l={},emojiCDN:s,emojiMaps:a,requiredFields:c=[],anonymous:u,previewMath:p,uploadImage:d,highlight:h,copyRight:f,visitor:g,pageview:m=(!0===g?".leancloud_visitors,.leancloud-visitors,.waline-visitor-count,.waline-pageview-count":g),locale:v=l,emoji:y,requiredMeta:w=c,highlighter:b=h,imageUploader:k=d,texRenderer:x=p,copyright:_=f,login:C=(!0===u?"disable":!1===u?"force":"enable"),...S}=i;return n.filter((e=>Object.keys(i).includes(e))).forEach((t=>e(`Option "${t}" is REMOVED and CAN NOT be polyfilled!`))),r.filter((([e])=>Object.keys(i).includes(e))).forEach((([t,n])=>e(`Deprecated option "${t}" is currently being polyfilled, Please switch to option "${n}" in v2!`))),o&&(v.placeholder=o),{locale:v,emoji:s&&"object"==typeof a?t(a,s):y,requiredMeta:w,imageUploader:k,highlighter:b,texRenderer:x,copyright:_,login:C,pageview:m,...S}})(i))}}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Waline=t()}(this,(function(){"use strict";const e=e=>console.warn(`%c ${e}`,"background:#ff0;color:red;font-size:36px;font-weight:bold;"),t=(e,t="")=>{const n={};for(const r in e)n[r]=/(?:https?:)?\/\//.test(e[r])?e[r]:`${t}${e[r]}`;return[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}]},n=["region","appId","appKey","notify","verify","avatar","avatarForce","enableQQ","recordIP","serverURLs","avatarCDN","mathTagSupport"],r=[["emojiCDN","emoji"],["emojiMaps","emoji"],["requiredFields","requiredMeta"],["visitor","pageview"],["langMode","locale"],["placeholder","locale.placeholder"],["highlight","highlighter"],["uploadImage","imageUploader"],["previewMath","texRenderer"],["anonymous","login"],["copyRight","copyright"]];function i(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 o=i("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function l(e){return!!e||""===e}function s(e){if(I(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=O(r)?u(r):s(r);if(i)for(const e in i)t[e]=i[e]}return t}return O(e)||z(e)?e:void 0}const a=/;(?![^(]*\))/g,c=/:(.+)/;function u(e){const t={};return e.split(a).forEach((e=>{if(e){const n=e.split(c);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(O(e))t=e;else if(I(e))for(let n=0;n<e.length;n++){const r=p(e[n]);r&&(t+=r+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function d(e,t){if(e===t)return!0;let n=A(e),r=A(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=j(e),r=j(t),n||r)return e===t;if(n=I(e),r=I(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=d(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),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!d(e[n],t[n]))return!1}}return String(e)===String(t)}function h(e,t){return e.findIndex((e=>d(e,t)))}const f=e=>O(e)?e:null==e?"":I(e)||z(e)&&(e.toString===P||!L(e.toString))?JSON.stringify(e,g,2):String(e),g=(e,t)=>t&&t.__v_isRef?g(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,t)=>{let[n,r]=t;return e[`${n} =>`]=r,e}),{})}:R(t)?{[`Set(${t.size})`]:[...t.values()]}:!z(t)||I(t)||M(t)?t:String(t),m={},v=[],y=()=>{},w=()=>!1,b=/^on[^a-z]/,k=e=>b.test(e),x=e=>e.startsWith("onUpdate:"),_=Object.assign,C=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},S=Object.prototype.hasOwnProperty,$=(e,t)=>S.call(e,t),I=Array.isArray,E=e=>"[object Map]"===U(e),R=e=>"[object Set]"===U(e),A=e=>"[object Date]"===U(e),L=e=>"function"==typeof e,O=e=>"string"==typeof e,j=e=>"symbol"==typeof e,z=e=>null!==e&&"object"==typeof e,T=e=>z(e)&&L(e.then)&&L(e.catch),P=Object.prototype.toString,U=e=>P.call(e),M=e=>"[object Object]"===U(e),N=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,F=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},V=/-(\w)/g,B=D((e=>e.replace(V,((e,t)=>t?t.toUpperCase():"")))),H=/\B([A-Z])/g,W=D((e=>e.replace(H,"-$1").toLowerCase())),q=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),Z=D((e=>e?`on${q(e)}`:"")),G=(e,t)=>!Object.is(e,t),K=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Q=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},J=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Y;let X;class ee{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.active=!0,this.effects=[],this.cleanups=[],!e&&X&&(this.parent=X,this.index=(X.scopes||(X.scopes=[])).push(this)-1)}run(e){if(this.active){const t=X;try{return X=this,e()}finally{X=t}}}on(){X=this}off(){X=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 te=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ne=e=>(e.w&le)>0,re=e=>(e.n&le)>0,ie=new WeakMap;let oe=0,le=1;let se;const ae=Symbol(""),ce=Symbol("");class ue{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=se,t=de;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=se,se=this,de=!0,le=1<<++oe,oe<=30?(e=>{let{deps:t}=e;if(t.length)for(let e=0;e<t.length;e++)t[e].w|=le})(this):pe(this),this.fn()}finally{oe<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];ne(i)&&!re(i)?i.delete(e):t[n++]=i,i.w&=~le,i.n&=~le}t.length=n}})(this),le=1<<--oe,se=this.parent,de=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){se===this?this.deferStop=!0:this.active&&(pe(this),this.onStop&&this.onStop(),this.active=!1)}}function pe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let de=!0;const he=[];function fe(){he.push(de),de=!1}function ge(){const e=he.pop();de=void 0===e||e}function me(e,t,n){if(de&&se){let t=ie.get(e);t||ie.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=te()),ve(r)}}function ve(e,t){let n=!1;oe<=30?re(e)||(e.n|=le,n=!ne(e)):n=!e.has(se),n&&(e.add(se),se.deps.push(e))}function ye(e,t,n,r,i,o){const l=ie.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&I(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":I(e)?N(n)&&s.push(l.get("length")):(s.push(l.get(ae)),E(e)&&s.push(l.get(ce)));break;case"delete":I(e)||(s.push(l.get(ae)),E(e)&&s.push(l.get(ce)));break;case"set":E(e)&&s.push(l.get(ae))}if(1===s.length)s[0]&&we(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);we(te(e))}}function we(e,t){const n=I(e)?e:[...e];for(const e of n)e.computed&&be(e);for(const e of n)e.computed||be(e)}function be(e,t){(e!==se||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ke=i("__proto__,__v_isRef,__isVue"),xe=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(j)),_e=Ee(),Ce=Ee(!1,!0),Se=Ee(!0),$e=Ie();function Ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=ht(this);for(let t=0,n=this.length;t<n;t++)me(e,0,t+"");for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const o=e[t](...r);return-1===o||!1===o?e[t](...r.map(ht)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(){fe();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=ht(this)[t].apply(this,n);return ge(),i}})),e}function Ee(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?rt:nt:t?tt:et).get(n))return n;const o=I(n);if(!e&&o&&$($e,r))return Reflect.get($e,r,i);const l=Reflect.get(n,r,i);return(j(r)?xe.has(r):ke(r))?l:(e||me(n,0,r),t?l:wt(l)?o&&N(r)?l:l.value:z(l)?e?st(l):ot(l):l)}}function Re(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,i){let o=t[n];if(ut(o)&&wt(o)&&!wt(r))return!1;if(!e&&(pt(r)||ut(r)||(o=ht(o),r=ht(r)),!I(t)&&wt(o)&&!wt(r)))return o.value=r,!0;const l=I(t)&&N(n)?Number(n)<t.length:$(t,n),s=Reflect.set(t,n,r,i);return t===ht(i)&&(l?G(r,o)&&ye(t,"set",n,r):ye(t,"add",n,r)),s}}const Ae={get:_e,set:Re(),deleteProperty:function(e,t){const n=$(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&ye(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return j(t)&&xe.has(t)||me(e,0,t),n},ownKeys:function(e){return me(e,0,I(e)?"length":ae),Reflect.ownKeys(e)}},Le={get:Se,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Oe=_({},Ae,{get:Ce,set:Re(!0)}),je=e=>e,ze=e=>Reflect.getPrototypeOf(e);function Te(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=ht(e=e.__v_raw),o=ht(t);n||(t!==o&&me(i,0,t),me(i,0,o));const{has:l}=ze(i),s=r?je:n?mt:gt;return l.call(i,t)?s(e.get(t)):l.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function Pe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,r=ht(n),i=ht(e);return t||(e!==i&&me(r,0,e),me(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function Ue(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&me(ht(e),0,ae),Reflect.get(e,"size",e)}function Me(e){e=ht(e);const t=ht(this);return ze(t).has.call(t,e)||(t.add(e),ye(t,"add",e,e)),this}function Ne(e,t){t=ht(t);const n=ht(this),{has:r,get:i}=ze(n);let o=r.call(n,e);o||(e=ht(e),o=r.call(n,e));const l=i.call(n,e);return n.set(e,t),o?G(t,l)&&ye(n,"set",e,t):ye(n,"add",e,t),this}function Fe(e){const t=ht(this),{has:n,get:r}=ze(t);let i=n.call(t,e);i||(e=ht(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&ye(t,"delete",e,void 0),o}function De(){const e=ht(this),t=0!==e.size,n=e.clear();return t&&ye(e,"clear",void 0,void 0),n}function Ve(e,t){return function(n,r){const i=this,o=i.__v_raw,l=ht(o),s=t?je:e?mt:gt;return!e&&me(l,0,ae),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function Be(e,t,n){return function(){const r=this.__v_raw,i=ht(r),o=E(i),l="entries"===e||e===Symbol.iterator&&o,s="keys"===e&&o,a=r[e](...arguments),c=n?je:t?mt:gt;return!t&&me(i,0,s?ce:ae),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function He(e){return function(){return"delete"!==e&&this}}function We(){const e={get(e){return Te(this,e)},get size(){return Ue(this)},has:Pe,add:Me,set:Ne,delete:Fe,clear:De,forEach:Ve(!1,!1)},t={get(e){return Te(this,e,!1,!0)},get size(){return Ue(this)},has:Pe,add:Me,set:Ne,delete:Fe,clear:De,forEach:Ve(!1,!0)},n={get(e){return Te(this,e,!0)},get size(){return Ue(this,!0)},has(e){return Pe.call(this,e,!0)},add:He("add"),set:He("set"),delete:He("delete"),clear:He("clear"),forEach:Ve(!0,!1)},r={get(e){return Te(this,e,!0,!0)},get size(){return Ue(this,!0)},has(e){return Pe.call(this,e,!0)},add:He("add"),set:He("set"),delete:He("delete"),clear:He("clear"),forEach:Ve(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Be(i,!1,!1),n[i]=Be(i,!0,!1),t[i]=Be(i,!1,!0),r[i]=Be(i,!0,!0)})),[e,n,t,r]}const[qe,Ze,Ge,Ke]=We();function Qe(e,t){const n=t?e?Ke:Ge:e?Ze:qe;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get($(n,r)&&r in t?n:t,r,i)}const Je={get:Qe(!1,!1)},Ye={get:Qe(!1,!0)},Xe={get:Qe(!0,!1)},et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap;function it(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=>U(e).slice(8,-1))(e))}function ot(e){return ut(e)?e:at(e,!1,Ae,Je,et)}function lt(e){return at(e,!1,Oe,Ye,tt)}function st(e){return at(e,!0,Le,Xe,nt)}function at(e,t,n,r,i){if(!z(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const l=it(e);if(0===l)return e;const s=new Proxy(e,2===l?r:n);return i.set(e,s),s}function ct(e){return ut(e)?ct(e.__v_raw):!(!e||!e.__v_isReactive)}function ut(e){return!(!e||!e.__v_isReadonly)}function pt(e){return!(!e||!e.__v_isShallow)}function dt(e){return ct(e)||ut(e)}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function ft(e){return Q(e,"__v_skip",!0),e}const gt=e=>z(e)?ot(e):e,mt=e=>z(e)?st(e):e;function vt(e){de&&se&&ve((e=ht(e)).dep||(e.dep=te()))}function yt(e,t){(e=ht(e)).dep&&we(e.dep)}function wt(e){return!(!e||!0!==e.__v_isRef)}function bt(e){return xt(e,!1)}function kt(e){return xt(e,!0)}function xt(e,t){return wt(e)?e:new _t(e,t)}class _t{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ht(e),this._value=t?e:gt(e)}get value(){return vt(this),this._value}set value(e){const t=this.__v_isShallow||pt(e)||ut(e);e=t?e:ht(e),G(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:gt(e),yt(this))}}function Ct(e){return wt(e)?e.value:e}const St={get:(e,t,n)=>Ct(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return wt(i)&&!wt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $t(e){return ct(e)?e:new Proxy(e,St)}var It;class Et{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[It]=!1,this._dirty=!0,this.effect=new ue(e,(()=>{this._dirty||(this._dirty=!0,yt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=ht(this);return vt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Rt(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){Lt(e,t,n)}return i}function At(e,t,n,r){if(L(e)){const i=Rt(e,t,n,r);return i&&T(i)&&i.catch((e=>{Lt(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(At(e[o],t,n,r));return i}function Lt(e,t,n){if(t){let r=t.parent;const i=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const l=t.appContext.config.errorHandler;if(l)return void Rt(l,null,10,[e,i,o])}!function(e,t,n){console.error(e)}(e)}It="__v_isReadonly";let Ot=!1,jt=!1;const zt=[];let Tt=0;const Pt=[];let Ut=null,Mt=0;const Nt=Promise.resolve();let Ft=null;function Dt(e){const t=Ft||Nt;return e?t.then(this?e.bind(this):e):t}function Vt(e){zt.length&&zt.includes(e,Ot&&e.allowRecurse?Tt+1:Tt)||(null==e.id?zt.push(e):zt.splice(function(e){let t=Tt+1,n=zt.length;for(;t<n;){const r=t+n>>>1;qt(zt[r])<e?t=r+1:n=r}return t}(e.id),0,e),Bt())}function Bt(){Ot||jt||(jt=!0,Ft=Nt.then(Gt))}function Ht(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot?Tt+1:0;for(;t<zt.length;t++){const e=zt[t];e&&e.pre&&(zt.splice(t,1),t--,e())}}function Wt(e){if(Pt.length){const e=[...new Set(Pt)];if(Pt.length=0,Ut)return void Ut.push(...e);for(Ut=e,Ut.sort(((e,t)=>qt(e)-qt(t))),Mt=0;Mt<Ut.length;Mt++)Ut[Mt]();Ut=null,Mt=0}}const qt=e=>null==e.id?1/0:e.id,Zt=(e,t)=>{const n=qt(e)-qt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gt(e){jt=!1,Ot=!0,zt.sort(Zt);try{for(Tt=0;Tt<zt.length;Tt++){const e=zt[Tt];e&&!1!==e.active&&Rt(e,null,14)}}finally{Tt=0,zt.length=0,Wt(),Ot=!1,Ft=null,(zt.length||Pt.length)&&Gt()}}function Kt(e,t){if(e.isUnmounted)return;const n=e.vnode.props||m;for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];let l=i;const s=t.startsWith("update:"),a=s&&t.slice(7);if(a&&a in n){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:r}=n[e]||m;r&&(l=i.map((e=>e.trim()))),t&&(l=i.map(J))}let c,u=n[c=Z(t)]||n[c=Z(B(t))];!u&&s&&(u=n[c=Z(W(t))]),u&&At(u,e,6,l);const p=n[c+"Once"];if(p){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,At(p,e,6,l)}}function Qt(e,t){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const i=e.emits;let o={};return i?(I(i)?i.forEach((e=>o[e]=null)):_(o,i),z(e)&&n.set(e,o),o):(z(e)&&n.set(e,null),null)}function Jt(e,t){return!(!e||!k(t))&&(t=t.slice(2).replace(/Once$/,""),$(e,t[0].toLowerCase()+t.slice(1))||$(e,W(t))||$(e,t))}let Yt=null,Xt=null;function en(e){const t=Yt;return Yt=e,Xt=e&&e.type.__scopeId||null,t}function tn(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=en(e);try{if(4&n.shapeFlag){const e=i||r;m=xr(u.call(e,e,p,o,h,d,f)),v=a}else{const e=t;m=xr(e.length>1?e(o,{attrs:a,slots:s,emit:c}):e(o,null)),v=t.props?a:nn(a)}}catch(t){rr.length=0,Lt(t,e,1),m=vr(tr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(x)&&(v=rn(v,l)),w=wr(w,v))}return n.dirs&&(w=wr(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,en(y),m}const nn=e=>{let t;for(const n in e)("class"===n||"style"===n||k(n))&&((t||(t={}))[n]=e[n]);return t},rn=(e,t)=>{const n={};for(const r in e)x(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function on(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Jt(n,o))return!0}return!1}const ln=e=>e.__isSuspense;function sn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Rr||Yt;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&L(t)?t.call(r.proxy):t}}function an(e,t){return pn(e,null,t)}const cn={};function un(e,t,n){return pn(e,t,n)}function pn(e,t){let{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;const s=Rr;let a,c,u=!1,p=!1;if(wt(e)?(a=()=>e.value,u=pt(e)):ct(e)?(a=()=>e,r=!0):I(e)?(p=!0,u=e.some((e=>ct(e)||pt(e))),a=()=>e.map((e=>wt(e)?e.value:ct(e)?dn(e):L(e)?Rt(e,s,2):void 0))):a=L(e)?t?()=>Rt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),At(e,s,3,[d])}:y,t&&r){const e=a;a=()=>dn(e())}let d=e=>{c=v.onStop=()=>{Rt(e,s,4)}};if(zr)return d=y,t?n&&At(t,s,3,[a(),p?[]:void 0,d]):a(),y;let h=p?[]:cn;const f=()=>{if(v.active)if(t){const e=v.run();(r||u||(p?e.some(((e,t)=>G(e,h[t]))):G(e,h)))&&(c&&c(),At(t,s,3,[e,h===cn?void 0:h,d]),h=e)}else v.run()};let g;f.allowRecurse=!!t,"sync"===i?g=f:"post"===i?g=()=>Gn(f,s&&s.suspense):(f.pre=!0,s&&(f.id=s.uid),g=()=>Vt(f));const v=new ue(a,g);return t?n?f():h=v.run():"post"===i?Gn(v.run.bind(v),s&&s.suspense):v.run(),()=>{v.stop(),s&&s.scope&&C(s.scope.effects,v)}}function dn(e,t){if(!z(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),wt(e))dn(e.value,t);else if(I(e))for(let n=0;n<e.length;n++)dn(e[n],t);else if(R(e)||E(e))e.forEach((e=>{dn(e,t)}));else if(M(e))for(const n in e)dn(e[n],t);return e}function hn(e){return L(e)?{setup:e,name:e.name}:e}const fn=e=>!!e.type.__asyncLoader;function gn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rr,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;fe(),Lr(n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];const l=At(t,n,e,i);return Or(),ge(),l});return r?i.unshift(o):i.push(o),o}}const mn=e=>function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rr;return(!zr||"sp"===e)&&gn(e,t,n)},vn=mn("m"),yn=mn("bum"),wn=mn("um");function bn(e,t){const n=Yt;if(null===n)return e;const r=Mr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,o,l,s=m]=t[e];L(n)&&(n={mounted:n,updated:n}),n.deep&&dn(o),i.push({dir:n,instance:r,value:o,oldValue:void 0,arg:l,modifiers:s})}return e}function kn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let l=0;l<i.length;l++){const s=i[l];o&&(s.oldValue=o[l].value);let a=s.dir[r];a&&(fe(),At(a,n,8,[e.el,s,e,t]),ge())}}const xn="components";function _n(e,t){return function(e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=Yt||Rr;if(r){const i=r.type;if(e===xn){const e=Nr(i,!1);if(e&&(e===t||e===B(t)||e===q(B(t))))return i}const o=Sn(r[e]||i[e],t)||Sn(r.appContext[e],t);return!o&&n?i:o}}(xn,e,!0,t)||e}const Cn=Symbol();function Sn(e,t){return e&&(e[t]||e[B(t)]||e[q(B(t))])}function $n(e,t,n,r){let i;const o=n&&n[r];if(I(e)||O(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(z(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,l=n.length;r<l;r++){const l=n[r];i[r]=t(e[l],l,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}const In=e=>e?jr(e)?Mr(e)||e.proxy:In(e.parent):null,En=_(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=>In(e.parent),$root:e=>In(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Vt(e.update)),$nextTick:e=>e.n||(e.n=Dt.bind(e.proxy)),$watch:e=>y}),Rn={get(e,t){let{_:n}=e;const{ctx:r,setupState:i,data:o,props:l,accessCache:s,type:a,appContext:c}=n;let u;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return i[t];case 2:return o[t];case 4:return r[t];case 3:return l[t]}else{if(i!==m&&$(i,t))return s[t]=1,i[t];if(o!==m&&$(o,t))return s[t]=2,o[t];if((u=n.propsOptions[0])&&$(u,t))return s[t]=3,l[t];if(r!==m&&$(r,t))return s[t]=4,r[t];s[t]=0}}const p=En[t];let d,h;return p?("$attrs"===t&&me(n,0,t),p(n)):(d=a.__cssModules)&&(d=d[t])?d:r!==m&&$(r,t)?(s[t]=4,r[t]):(h=c.config.globalProperties,$(h,t)?h[t]:void 0)},set(e,t,n){let{_:r}=e;const{data:i,setupState:o,ctx:l}=r;return o!==m&&$(o,t)?(o[t]=n,!0):i!==m&&$(i,t)?(i[t]=n,!0):!$(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(l[t]=n,!0))},has(e,t){let n,{_:{data:r,setupState:i,accessCache:o,ctx:l,appContext:s,propsOptions:a}}=e;return!!o[t]||r!==m&&$(r,t)||i!==m&&$(i,t)||(n=a[0])&&$(n,t)||$(l,t)||$(En,t)||$(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:$(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function An(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i={},o={};Q(o,hr,1),e.propsDefaults=Object.create(null),Ln(e,t,i,o);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:lt(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Ln(e,t,n,r){const[i,o]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(F(a))continue;const c=t[a];let u;i&&$(i,u=B(a))?o&&o.includes(u)?(l||(l={}))[u]=c:n[u]=c:Jt(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(o){const t=ht(n),r=l||m;for(let l=0;l<o.length;l++){const s=o[l];n[s]=On(i,t,s,r[s],e,!$(r,s))}}return s}function On(e,t,n,r,i,o){const l=e[n];if(null!=l){const e=$(l,"default");if(e&&void 0===r){const e=l.default;if(l.type!==Function&&L(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(Lr(i),r=o[n]=e.call(null,t),Or())}else r=e}l[0]&&(o&&!e?r=!1:!l[1]||""!==r&&r!==W(n)||(r=!0))}return r}function jn(e,t){const n=t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];if(!i)return z(e)&&n.set(e,v),v;if(I(i))for(let e=0;e<i.length;e++){const t=B(i[e]);zn(t)&&(o[t]=m)}else if(i)for(const e in i){const t=B(e);if(zn(t)){const n=i[e],r=o[t]=I(n)||L(n)?{type:n}:n;if(r){const e=Un(Boolean,r.type),n=Un(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||$(r,"default"))&&l.push(t)}}}const s=[o,l];return z(e)&&n.set(e,s),s}function zn(e){return"$"!==e[0]}function Tn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Pn(e,t){return Tn(e)===Tn(t)}function Un(e,t){return I(t)?t.findIndex((t=>Pn(t,e))):L(t)&&Pn(t,e)?0:-1}const Mn=e=>"_"===e[0]||"$stable"===e,Nn=e=>I(e)?e.map(xr):[xr(e)],Fn=(e,t,n)=>{if(t._n)return t;const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;if(!t)return e;if(e._n)return e;const n=function(){n._d&&sr(-1);const r=en(t),i=e(...arguments);return en(r),n._d&&sr(1),i};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return Nn(t(...arguments))}),n);return r._c=!1,r},Dn=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Mn(n))continue;const i=e[n];if(L(i))t[n]=Fn(0,i,r);else if(null!=i){const e=Nn(i);t[n]=()=>e}}},Vn=(e,t)=>{const n=Nn(t);e.slots.default=()=>n},Bn=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=ht(t),Q(t,"_",n)):Dn(t,e.slots={})}else e.slots={},t&&Vn(e,t);Q(e.slots,hr,1)};function Hn(){return{app:null,config:{isNativeTag:w,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 Wn=0;function qn(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;L(n)||(n=Object.assign({},n)),null==r||z(r)||(r=null);const i=Hn(),o=new Set;let l=!1;const s=i.app={_uid:Wn++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Br,get config(){return i.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o.has(e)||(e&&L(e.install)?(o.add(e),e.install(s,...n)):L(e)&&(o.add(e),e(s,...n))),s},mixin:e=>s,component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(o,a,c){if(!l){const u=vr(n,r);return u.appContext=i,a&&t?t(u,o):e(u,o,c),l=!0,s._container=o,o.__vue_app__=s,Mr(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s)};return s}}function Zn(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(I(e))return void e.forEach(((e,o)=>Zn(e,t&&(I(t)?t[o]:t),n,r,i)));if(fn(r)&&!i)return;const o=4&r.shapeFlag?Mr(r.component)||r.component.proxy:r.el,l=i?null:o,{i:s,r:a}=e,c=t&&t.r,u=s.refs===m?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(O(c)?(u[c]=null,$(p,c)&&(p[c]=null)):wt(c)&&(c.value=null)),L(a))Rt(a,s,12,[l,u]);else{const t=O(a),r=wt(a);if(t||r){const s=()=>{if(e.f){const n=t?u[a]:a.value;i?I(n)&&C(n,o):I(n)?n.includes(o)||n.push(o):t?(u[a]=[o],$(p,a)&&(p[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else t?(u[a]=l,$(p,a)&&(p[a]=l)):r&&(a.value=l,e.k&&(u[e.k]=l))};l?(s.id=-1,Gn(s,n)):s()}}}const Gn=function(e,t){var n;t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):(I(n=e)?Pt.push(...n):Ut&&Ut.includes(n,n.allowRecurse?Mt+1:Mt)||Pt.push(n),Bt())};function Kn(e){return function(e,t){(Y||(Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=y,cloneNode:h,insertStaticContent:f}=e,g=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e===t)return;e&&!dr(e,t)&&(r=X(e),q(e,i,o,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case er:w(e,t,n,r);break;case tr:b(e,t,n,r);break;case nr:null==e&&k(t,n,r,l);break;case Xn:j(e,t,n,r,i,o,l,s,a);break;default:1&p?S(e,t,n,r,i,o,l,s,a):6&p?z(e,t,n,r,i,o,l,s,a):(64&p||128&p)&&c.process(e,t,n,r,i,o,l,s,a,ne)}null!=u&&i&&Zn(u,e&&e.ref,o,t||e,!t)},w=(e,t,r,i)=>{if(null==e)n(t.el=l(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},b=(e,t,r,i)=>{null==e?n(t.el=s(t.children||""),r,i):t.el=e.el},k=(e,t,n,r)=>{[e.el,e.anchor]=f(e.children,t,n,r,e.el,e.anchor)},x=(e,t,r)=>{let i,{el:o,anchor:l}=e;for(;o&&o!==l;)i=p(o),n(o,t,r),o=i;n(l,t,r)},C=e=>{let t,{el:n,anchor:i}=e;for(;n&&n!==i;)t=p(n),r(n),n=t;r(i)},S=(e,t,n,r,i,o,l,s,a)=>{l=l||"svg"===t.type,null==e?I(t,n,r,i,o,l,s,a):A(e,t,i,o,l,s,a)},I=(e,t,r,l,s,a,u,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:b}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=o(e.type,a,m&&m.is,m),8&v?c(d,e.children):16&v&&R(e.children,d,null,l,s,a&&"foreignObject"!==g,u,p),b&&kn(e,null,l,"created"),m){for(const t in m)"value"===t||F(t)||i(d,t,null,m[t],a,e.children,l,s,J);"value"in m&&i(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&$r(f,l,e)}E(d,e,e.scopeId,u,l)}b&&kn(e,null,l,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;k&&y.beforeEnter(d),n(d,t,r),((f=m&&m.onVnodeMounted)||k||b)&&Gn((()=>{f&&$r(f,l,e),k&&y.enter(d),b&&kn(e,null,l,"mounted")}),s)},E=(e,t,n,r,i)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(i){if(t===i.subTree){const t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},R=function(e,t,n,r,i,o,l,s){for(let a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;a<e.length;a++){const c=e[a]=s?_r(e[a]):xr(e[a]);g(null,c,t,n,r,i,o,l,s)}},A=(e,t,n,r,o,l,s)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||m,f=t.props||m;let g;n&&Qn(n,!1),(g=f.onVnodeBeforeUpdate)&&$r(g,n,t,e),d&&kn(t,e,n,"beforeUpdate"),n&&Qn(n,!0);const v=o&&"foreignObject"!==t.type;if(p?L(e.dynamicChildren,p,a,n,r,v,l):s||N(e,t,a,null,n,r,v,l,!1),u>0){if(16&u)O(a,t,h,f,n,r,o);else if(2&u&&h.class!==f.class&&i(a,"class",null,f.class,o),4&u&&i(a,"style",h.style,f.style,o),8&u){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&u&&e.children!==t.children&&c(a,t.children)}else s||null!=p||O(a,t,h,f,n,r,o);((g=f.onVnodeUpdated)||d)&&Gn((()=>{g&&$r(g,n,t,e),d&&kn(t,e,n,"updated")}),r)},L=(e,t,n,r,i,o,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],p=a.el&&(a.type===Xn||!dr(a,c)||70&a.shapeFlag)?u(a.el):n;g(a,c,p,null,r,i,o,l,!0)}},O=(e,t,n,r,o,l,s)=>{if(n!==r){for(const a in r){if(F(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!==m)for(const a in n)F(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)}},j=(e,t,r,i,o,s,a,c,u)=>{const p=t.el=e?e.el:l(""),d=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,r,i),n(d,r,i),R(t.children,r,d,o,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(L(e.dynamicChildren,f,r,o,s,a,c),(null!=t.key||o&&t===o.subTree)&&Jn(e,t,!0)):N(e,t,r,d,o,s,a,c,u)},z=(e,t,n,r,i,o,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,l,a):T(t,n,r,i,o,l,a):P(e,t,a)},T=(e,t,n,r,i,o,l)=>{const s=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Ir,o={uid:Er++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ee(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:jn(r,i),emitsOptions:Qt(r,i),emit:null,emitted:null,propsDefaults:m,inheritAttrs:r.inheritAttrs,ctx:m,data:m,props:m,attrs:m,slots:m,refs:m,setupState:m,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=Kt.bind(null,o),e.ce&&e.ce(o);return o}(e,r,i);if(e.type.__isKeepAlive&&(s.ctx.renderer=ne),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];zr=t;const{props:n,children:r}=e.vnode,i=jr(e);An(e,n,i,t),Bn(e,r);const o=i?Tr(e,t):void 0;zr=!1}(s),s.asyncDep){if(i&&i.registerDep(s,U),!e.el){const e=s.subTree=vr(tr);b(null,e,t,n)}}else U(s,e,t,n,i,o,l)},P=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:l,children:s,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!i&&!s||s&&s.$stable)||r!==l&&(r?!l||on(r,l,c):!!l);if(1024&a)return!0;if(16&a)return r?on(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]&&!Jt(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=zt.indexOf(e);t>Tt&&zt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},U=(e,t,n,r,i,o,l)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,p=n;Qn(e,!1),n?(n.el=c.el,M(e,n,l)):n=c,r&&K(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$r(t,a,n,c),Qn(e,!0);const d=tn(e),h=e.subTree;e.subTree=d,g(h,d,u(h.el),X(h),e,i,o),n.el=d.el,null===p&&function(e,t){let{vnode:n,parent:r}=e;for(;r&&r.subTree===n;)(n=r.vnode).el=t,r=r.parent}(e,d.el),s&&Gn(s,i),(t=n.props&&n.props.onVnodeUpdated)&&Gn((()=>$r(t,a,n,c)),i)}else{let l;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=fn(t);if(Qn(e,!1),c&&K(c),!d&&(l=a&&a.onVnodeBeforeMount)&&$r(l,p,t),Qn(e,!0),s&&ie){const n=()=>{e.subTree=tn(e),ie(s,e.subTree,e,i,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=tn(e);g(null,l,n,r,e,i,o),t.el=l.el}if(u&&Gn(u,i),!d&&(l=a&&a.onVnodeMounted)){const e=t;Gn((()=>$r(l,p,e)),i)}(256&t.shapeFlag||p&&fn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Gn(e.a,i),e.isMounted=!0,t=n=r=null}},a=e.effect=new ue(s,(()=>Vt(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,Qn(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:i,attrs:o,vnode:{patchFlag:l}}=e,s=ht(i),[a]=e.propsOptions;let c=!1;if(!(r||l>0)||16&l){let r;Ln(e,t,i,o)&&(c=!0);for(const o in s)t&&($(t,o)||(r=W(o))!==o&&$(t,r))||(a?!n||void 0===n[o]&&void 0===n[r]||(i[o]=On(a,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&$(t,e)||(delete o[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(Jt(e.emitsOptions,l))continue;const u=t[l];if(a)if($(o,l))u!==o[l]&&(o[l]=u,c=!0);else{const t=B(l);i[t]=On(a,s,t,u,e,!1)}else u!==o[l]&&(o[l]=u,c=!0)}}c&&ye(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=m;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(_(i,t),n||1!==e||delete i._):(o=!t.$stable,Dn(t,i)),l=t}else t&&(Vn(e,t),l={default:1});if(o)for(const e in i)Mn(e)||e in l||delete i[e]})(e,t.children,n),fe(),Ht(),ge()},N=function(e,t,n,r,i,o,l,s){let a=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void V(u,d,n,r,i,o,l,s,a);if(256&h)return void D(u,d,n,r,i,o,l,s,a)}8&f?(16&p&&J(u,i,o),d!==u&&c(n,d)):16&p?16&f?V(u,d,n,r,i,o,l,s,a):J(u,i,o,!0):(8&p&&c(n,""),16&f&&R(d,n,r,i,o,l,s,a))},D=(e,t,n,r,i,o,l,s,a)=>{t=t||v;const c=(e=e||v).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?_r(t[d]):xr(t[d]);g(e[d],r,n,null,i,o,l,s,a)}c>u?J(e,i,o,!0,!1,p):R(t,n,r,i,o,l,s,a,p)},V=(e,t,n,r,i,o,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?_r(t[c]):xr(t[c]);if(!dr(r,u))break;g(r,u,n,null,i,o,l,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?_r(t[d]):xr(t[d]);if(!dr(r,c))break;g(r,c,n,null,i,o,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?_r(t[c]):xr(t[c]),n,p,i,o,l,s,a),c++}}else if(c>d)for(;c<=p;)q(e[c],i,o,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?_r(t[c]):xr(t[c]);null!=e.key&&m.set(e.key,c)}let y,w=0;const b=d-f+1;let k=!1,x=0;const _=new Array(b);for(c=0;c<b;c++)_[c]=0;for(c=h;c<=p;c++){const r=e[c];if(w>=b){q(r,i,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(y=f;y<=d;y++)if(0===_[y-f]&&dr(r,t[y])){u=y;break}void 0===u?q(r,i,o,!0):(_[u-f]=c+1,u>=x?x=u:k=!0,g(r,t[u],n,null,i,o,l,s,a),w++)}const C=k?function(e){const t=e.slice(),n=[0];let r,i,o,l,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(i=n[n.length-1],e[i]<a){t[r]=i,n.push(r);continue}for(o=0,l=n.length-1;o<l;)s=o+l>>1,e[n[s]]<a?o=s+1:l=s;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,l=n[o-1];for(;o-- >0;)n[o]=l,l=t[l];return n}(_):v;for(y=C.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,i,o,l,s,a):k&&(y<0||c!==C[y]?H(p,n,d,2):y--)}}},H=function(e,t,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void H(e.component.subTree,t,r,i);if(128&u)return void e.suspense.move(t,r,i);if(64&u)return void s.move(e,t,r,ne);if(s===Xn){n(l,t,r);for(let e=0;e<c.length;e++)H(c[e],t,r,i);return void n(e.anchor,t,r)}if(s===nr)return void x(e,t,r);if(2!==i&&1&u&&a)if(0===i)a.beforeEnter(l),n(l,t,r),Gn((()=>a.enter(l)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=a,s=()=>n(l,t,r),c=()=>{e(l,(()=>{s(),o&&o()}))};i?i(l,s,c):c()}else n(l,t,r)},q=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:o,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&Zn(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!fn(e);let g;if(f&&(g=l&&l.onVnodeBeforeUnmount)&&$r(g,t,e),6&u)Q(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&kn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,ne,r):c&&(o!==Xn||p>0&&64&p)?J(c,t,n,!1,!0):(o===Xn&&384&p||!i&&16&u)&&J(a,t,n),r&&Z(e)}(f&&(g=l&&l.onVnodeUnmounted)||h)&&Gn((()=>{g&&$r(g,t,e),h&&kn(e,null,t,"unmounted")}),n)},Z=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===Xn)return void G(n,i);if(t===nr)return void C(e);const l=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,l);r?r(e.el,l,i):i()}else l()},G=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},Q=(e,t,n)=>{const{bum:r,scope:i,update:o,subTree:l,um:s}=e;r&&K(r),i.stop(),o&&(o.active=!1,q(l,e,t,n)),s&&Gn(s,t),Gn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;o<e.length;o++)q(e[o],t,n,r,i)},X=e=>6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),te=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),Ht(),Wt(),t._vnode=e},ne={p:g,um:q,m:H,r:Z,mt:T,mc:R,pc:N,pbc:L,n:X,o:e};let re,ie;t&&([re,ie]=t(ne));return{render:te,hydrate:re,createApp:qn(te,re)}}(e)}function Qn(e,t){let{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}function Jn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.children,i=t.children;if(I(r)&&I(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=_r(i[e]),o.el=t.el),n||Jn(t,o))}}const Yn=e=>e.__isTeleport,Xn=Symbol(void 0),er=Symbol(void 0),tr=Symbol(void 0),nr=Symbol(void 0),rr=[];let ir=null;function or(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];rr.push(ir=e?null:[])}let lr=1;function sr(e){lr+=e}function ar(e){return e.dynamicChildren=lr>0?ir||v:null,rr.pop(),ir=rr[rr.length-1]||null,lr>0&&ir&&ir.push(e),e}function cr(e,t,n,r,i,o){return ar(mr(e,t,n,r,i,o,!0))}function ur(e,t,n,r,i){return ar(vr(e,t,n,r,i,!0))}function pr(e){return!!e&&!0===e.__v_isVNode}function dr(e,t){return e.type===t.type&&e.key===t.key}const hr="__vInternal",fr=e=>{let{key:t}=e;return null!=t?t:null},gr=e=>{let{ref:t,ref_key:n,ref_for:r}=e;return null!=t?O(t)||wt(t)||L(t)?{i:Yt,r:t,k:n,f:!!r}:t:null};function mr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===Xn?0:1,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fr(t),ref:t&&gr(t),scopeId:Xt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(Cr(a,n),128&o&&e.normalize(a)):n&&(a.shapeFlag|=O(n)?8:16),lr>0&&!l&&ir&&(a.patchFlag>0||6&o)&&32!==a.patchFlag&&ir.push(a),a}const vr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==Cn||(e=tr);if(pr(e)){const r=wr(e,t,!0);return n&&Cr(r,n),lr>0&&!o&&ir&&(6&r.shapeFlag?ir[ir.indexOf(e)]=r:ir.push(r)),r.patchFlag|=-2,r}Fr(e)&&(e=e.__vccOpts);if(t){t=yr(t);let{class:e,style:n}=t;e&&!O(e)&&(t.class=p(e)),z(n)&&(dt(n)&&!I(n)&&(n=_({},n)),t.style=s(n))}const l=O(e)?1:ln(e)?128:Yn(e)?64:z(e)?4:L(e)?2:0;return mr(e,t,n,r,i,l,o,!0)};function yr(e){return e?dt(e)||hr in e?_({},e):e:null}function wr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:r,ref:i,patchFlag:o,children:l}=e,s=t?Sr(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&fr(s),ref:t&&t.ref?n&&i?I(i)?i.concat(gr(t)):[i,gr(t)]:gr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Xn?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wr(e.ssContent),ssFallback:e.ssFallback&&wr(e.ssFallback),el:e.el,anchor:e.anchor};return a}function br(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return vr(er,null,e,t)}function kr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(or(),ur(tr,null,e)):vr(tr,null,e)}function xr(e){return null==e||"boolean"==typeof e?vr(tr):I(e)?vr(Xn,null,e.slice()):"object"==typeof e?_r(e):vr(er,null,String(e))}function _r(e){return null===e.el||e.memo?e:wr(e)}function Cr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(I(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Cr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||hr in t?3===r&&Yt&&(1===Yt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Yt}}else L(t)?(t={default:t,_ctx:Yt},n=32):(t=String(t),64&r?(n=16,t=[br(t)]):n=8);e.children=t,e.shapeFlag|=n}function Sr(){const e={};for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];for(const t in n)if("class"===t)e.class!==n.class&&(e.class=p([e.class,n.class]));else if("style"===t)e.style=s([e.style,n.style]);else if(k(t)){const r=e[t],i=n[t];!i||r===i||I(r)&&r.includes(i)||(e[t]=r?[].concat(r,i):i)}else""!==t&&(e[t]=n[t])}return e}function $r(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;At(e,t,7,[n,r])}const Ir=Hn();let Er=0;let Rr=null;const Ar=()=>Rr||Yt,Lr=e=>{Rr=e,e.scope.on()},Or=()=>{Rr&&Rr.scope.off(),Rr=null};function jr(e){return 4&e.vnode.shapeFlag}let zr=!1;function Tr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ft(new Proxy(e.ctx,Rn));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)=>(me(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Lr(e),fe();const i=Rt(r,e,0,[e.props,n]);if(ge(),Or(),T(i)){if(i.then(Or,Or),t)return i.then((n=>{Pr(e,n,t)})).catch((t=>{Lt(t,e,0)}));e.asyncDep=i}else Pr(e,i,t)}else Ur(e,t)}function Pr(e,t,n){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=$t(t)),Ur(e,n)}function Ur(e,t,n){const r=e.type;e.render||(e.render=r.render||y)}function Mr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($t(ft(e.exposed)),{get:(t,n)=>n in t?t[n]:n in En?En[n](e):void 0}))}function Nr(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return L(e)?e.displayName||e.name:e.name||t&&e.__name}function Fr(e){return L(e)&&"__vccOpts"in e}const Dr=(e,t)=>function(e,t){let n,r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=L(e);o?(n=e,r=y):(n=e.get,r=e.set);return new Et(n,r,o||!r,i)}(e,t,zr);function Vr(e,t,n){const r=arguments.length;return 2===r?z(t)&&!I(t)?pr(t)?vr(e,null,[t]):vr(e,t):vr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&pr(n)&&(n=[n]),vr(e,t,n))}const Br="3.2.39",Hr="undefined"!=typeof document?document:null,Wr=Hr&&Hr.createElement("template"),qr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Hr.createElementNS("http://www.w3.org/2000/svg",e):Hr.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>Hr.createTextNode(e),createComment:e=>Hr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Hr.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,i,o){const l=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{Wr.innerHTML=r?`<svg>${e}</svg>`:e;const i=Wr.content;if(r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Zr(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}function Gr(e,t,n){const r=e.style,i=O(n);if(n&&!i){for(const e in n)Qr(r,e,n[e]);if(t&&!O(t))for(const e in t)null==n[e]&&Qr(r,e,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Kr=/\s*!important$/;function Qr(e,t,n){if(I(n))n.forEach((n=>Qr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Yr[t];if(n)return n;let r=B(t);if("filter"!==r&&r in e)return Yr[t]=r;r=q(r);for(let n=0;n<Jr.length;n++){const i=Jr[n]+r;if(i in e)return Yr[t]=i}return t}(e,t);Kr.test(n)?e.setProperty(W(r),n.replace(Kr,""),"important"):e[r]=n}}const Jr=["Webkit","Moz","ms"],Yr={};const Xr="http://www.w3.org/1999/xlink";function ei(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Xr,t.slice(6,t.length)):e.setAttributeNS(Xr,t,n);else{const r=o(t);null==n||r&&!l(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function ti(e,t,n,r,i,o,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,i,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let a=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=l(n):null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch(e){}a&&e.removeAttribute(t)}const[ni,ri]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let ii=0;const oi=Promise.resolve(),li=()=>{ii=0};function si(e,t,n,r){e.addEventListener(t,n,r)}function ai(e,t,n,r){e.removeEventListener(t,n,r)}function ci(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const o=e._vei||(e._vei={}),l=o[t];if(r&&l)l.value=r;else{const[n,s]=pi(t);if(r){si(e,n,o[t]=di(r,i),s)}else l&&(ai(e,n,l,s),o[t]=void 0)}}const ui=/(?:Once|Passive|Capture)$/;function pi(e){let t;if(ui.test(e)){let n;for(t={};n=e.match(ui);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):W(e.slice(2)),t]}function di(e,t){const n=e=>{const r=e.timeStamp||ni();(ri||r>=n.attached-1)&&At(function(e,t){if(I(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=ii||(oi.then(li),ii=ni()),n}const hi=/^on[a-z]/;function fi(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&hi.test(t)&&L(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!hi.test(t)||!O(n))&&t in e))))}const gi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return I(t)?e=>K(t,e):t};function mi(e){e.target.composing=!0}function vi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const yi={created(e,t,n){let{modifiers:{lazy:r,trim:i,number:o}}=t;e._assign=gi(n);const l=o||n.props&&"number"===n.props.type;si(e,r?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;i&&(n=n.trim()),l&&(n=J(n)),e._assign(n)})),i&&si(e,"change",(()=>{e.value=e.value.trim()})),r||(si(e,"compositionstart",mi),si(e,"compositionend",vi),si(e,"change",vi))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:r,modifiers:{lazy:i,trim:o,number:l}}=t;if(e._assign=gi(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(i)return;if(o&&e.value.trim()===r)return;if((l||"number"===e.type)&&J(e.value)===r)return}const s=null==r?"":r;e.value!==s&&(e.value=s)}},wi={deep:!0,created(e,t,n){e._assign=gi(n),si(e,"change",(()=>{const t=e._modelValue,n=Ci(e),r=e.checked,i=e._assign;if(I(t)){const e=h(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(R(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Si(e,r))}))},mounted:bi,beforeUpdate(e,t,n){e._assign=gi(n),bi(e,t,n)}};function bi(e,t,n){let{value:r,oldValue:i}=t;e._modelValue=r,I(r)?e.checked=h(r,n.props.value)>-1:R(r)?e.checked=r.has(n.props.value):r!==i&&(e.checked=d(r,Si(e,!0)))}const ki={created(e,t,n){let{value:r}=t;e.checked=d(r,n.props.value),e._assign=gi(n),si(e,"change",(()=>{e._assign(Ci(e))}))},beforeUpdate(e,t,n){let{value:r,oldValue:i}=t;e._assign=gi(n),r!==i&&(e.checked=d(r,n.props.value))}},xi={deep:!0,created(e,t,n){let{value:r,modifiers:{number:i}}=t;const o=R(r);si(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>i?J(Ci(e)):Ci(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=gi(n)},mounted(e,t){let{value:n}=t;_i(e,n)},beforeUpdate(e,t,n){e._assign=gi(n)},updated(e,t){let{value:n}=t;_i(e,n)}};function _i(e,t){const n=e.multiple;if(!n||I(t)||R(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],o=Ci(i);if(n)I(t)?i.selected=h(t,o)>-1:i.selected=t.has(o);else if(d(Ci(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Ci(e){return"_value"in e?e._value:e.value}function Si(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const $i={created(e,t,n){Ii(e,t,n,null,"created")},mounted(e,t,n){Ii(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ii(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ii(e,t,n,r,"updated")}};function Ii(e,t,n,r,i){const o=function(e,t){switch(e){case"SELECT":return xi;case"TEXTAREA":return yi;default:switch(t){case"checkbox":return wi;case"radio":return ki;default:return yi}}}(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const Ei={beforeMount(e,t,n){let{value:r}=t,{transition:i}=n;e._vod="none"===e.style.display?"":e.style.display,i&&r?i.beforeEnter(e):Ri(e,r)},mounted(e,t,n){let{value:r}=t,{transition:i}=n;i&&r&&i.enter(e)},updated(e,t,n){let{value:r,oldValue:i}=t,{transition:o}=n;!r!=!i&&(o?r?(o.beforeEnter(e),Ri(e,!0),o.enter(e)):o.leave(e,(()=>{Ri(e,!1)})):Ri(e,r))},beforeUnmount(e,t){let{value:n}=t;Ri(e,n)}};function Ri(e,t){e.style.display=t?e._vod:"none"}const Ai=_({patchProp:function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,a=arguments.length>8?arguments[8]:void 0;"class"===t?Zr(e,r,i):"style"===t?Gr(e,n,r):k(t)?x(t)||ci(e,t,n,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):fi(e,t,r,i))?ti(e,t,r,o,l,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),ei(e,t,r,i))}},qr);let Li;function Oi(){return Li||(Li=Kn(Ai))}function ji(e){if(O(e)){return document.querySelector(e)}return e}var zi;const Ti="undefined"!=typeof window,Pi=e=>"function"==typeof e,Ui=e=>"string"==typeof e,Mi=()=>{};function Ni(e){return"function"==typeof e?e():Ct(e)}function Fi(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e((()=>t.apply(this,r)),{fn:t,thisArg:this,args:r})}}Ti&&(null==(zi=null==window?void 0:window.navigator)?void 0:zi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Di=e=>e();function Vi(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=i=>{const o=Ni(e),l=Ni(r.maxWait);if(t&&clearTimeout(t),o<=0||void 0!==l&&l<=0)return n&&(clearTimeout(n),n=null),i();l&&!n&&(n=setTimeout((()=>{t&&clearTimeout(t),n=null,i()}),l)),t=setTimeout((()=>{n&&clearTimeout(n),n=null,i()}),o)};return i}function Bi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Di;const t=bt(!0);function n(){t.value=!1}function r(){t.value=!0}const i=function(){t.value&&e(...arguments)};return{isActive:t,pause:n,resume:r,eventFilter:i}}function Hi(e){return!!X&&(function(e){X&&X.cleanups.push(e)}(e),!0)}function Wi(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Ar()?vn(e):t?e():Dt(e)}function qi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:r=!0,immediateCallback:i=!1}=n;let o=null;const l=bt(!1);function s(){o&&(clearInterval(o),o=null)}function a(){l.value=!1,s()}function c(){Ct(t)<=0||(l.value=!0,i&&e(),s(),o=setInterval(e,Ni(t)))}if(r&&Ti&&c(),wt(t)){Hi(un(t,(()=>{l.value&&Ti&&c()})))}return Hi(a),{isActive:l,pause:a,resume:c}}var Zi=Object.getOwnPropertySymbols,Gi=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,Qi=(e,t)=>{var n={};for(var r in e)Gi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Zi)for(var r of Zi(e))t.indexOf(r)<0&&Ki.call(e,r)&&(n[r]=e[r]);return n};function Ji(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n,{eventFilter:i=Di}=r,o=Qi(r,["eventFilter"]);return un(e,Fi(i,t),o)}var Yi=Object.defineProperty,Xi=Object.defineProperties,eo=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertySymbols,no=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,io=(e,t,n)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oo=(e,t)=>{for(var n in t||(t={}))no.call(t,n)&&io(e,n,t[n]);if(to)for(var n of to(t))ro.call(t,n)&&io(e,n,t[n]);return e},lo=(e,t)=>Xi(e,eo(t)),so=(e,t)=>{var n={};for(var r in e)no.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&to)for(var r of to(e))t.indexOf(r)<0&&ro.call(e,r)&&(n[r]=e[r]);return n};function ao(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n,{eventFilter:i}=r,o=so(r,["eventFilter"]),{eventFilter:l,pause:s,resume:a,isActive:c}=Bi(i),u=Ji(e,t,lo(oo({},o),{eventFilter:l}));return{stop:u,pause:s,resume:a,isActive:c}}function co(e){var t;const n=Ni(e);return null!=(t=null==n?void 0:n.$el)?t:n}const uo=Ti?window:void 0,po=Ti?window.document:void 0;function ho(){let e,t,n,r;for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];if(Ui(o[0])?([t,n,r]=o,e=uo):[e,t,n,r]=o,!e)return Mi;let s=Mi;const a=un((()=>co(e)),(e=>{s(),e&&(e.addEventListener(t,n,r),s=()=>{e.removeEventListener(t,n,r),s=Mi})}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return Hi(c),c}Ti&&window.navigator,Ti&&window.location;const fo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},go="__vueuse_ssr_handlers__";fo[go]=fo[go]||{};const mo=fo[go];function vo(e,t){return mo[e]||t}function yo(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"}var wo=Object.defineProperty,bo=Object.getOwnPropertySymbols,ko=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,_o=(e,t,n)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Co=(e,t)=>{for(var n in t||(t={}))ko.call(t,n)&&_o(e,n,t[n]);if(bo)for(var n of bo(t))xo.call(t,n)&&_o(e,n,t[n]);return e};const So={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 $o(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var i;const{flush:o="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=uo,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?kt:bt)(t);if(!n)try{n=vo("getDefaultStorage",(()=>{var e;return null==(e=uo)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=Ni(t),m=yo(g),v=null!=(i=r.serializer)?i:So[m],{pause:y,resume:w}=ao(f,(()=>b(f.value)),{flush:o,deep:l,eventFilter:d});return p&&s&&ho(p,"storage",x),x(),f;function b(t){try{null==t?n.removeItem(e):n.setItem(e,v.write(t))}catch(e){h(e)}}function k(t){if(!t||t.key===e){y();try{const r=t?t.newValue:n.getItem(e);if(null==r)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(r);return Pi(c)?c(e,g):"object"!==m||Array.isArray(e)?e:Co(Co({},g),e)}return"string"!=typeof r?r:v.read(r)}catch(e){h(e)}finally{w()}}}function x(t){t&&t.key!==e||(f.value=k(t))}}function Io(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:r=uo}=t,i=bt(!1);let o=null;function l(){i.value&&r&&(e(),o=r.requestAnimationFrame(l))}function s(){!i.value&&r&&(i.value=!0,l())}function a(){i.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&s(),Hi(a),{isActive:i,pause:a,resume:s}}var Eo,Ro,Ao=Object.defineProperty,Lo=Object.getOwnPropertySymbols,Oo=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable,zo=(e,t,n)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,To=(e,t)=>{for(var n in t||(t={}))Oo.call(t,n)&&zo(e,n,t[n]);if(Lo)for(var n of Lo(t))jo.call(t,n)&&zo(e,n,t[n]);return e};(Ro=Eo||(Eo={})).UP="UP",Ro.RIGHT="RIGHT",Ro.DOWN="DOWN",Ro.LEFT="LEFT",Ro.NONE="NONE";let Po=0;var Uo=Object.defineProperty,Mo=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,Do=(e,t,n)=>t in e?Uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))No.call(t,n)&&Do(e,n,t[n]);if(Mo)for(var n of Mo(t))Fo.call(t,n)&&Do(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Vo={"Content-Type":"application/json"},Bo=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},Ho=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then((e=>e.json())).then((e=>Bo(e,"article count"))),Wo=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:Vo,body:JSON.stringify({path:n,type:r,action:i})}).then((e=>e.json())).then((e=>Bo(e,"article count"))),qo=({serverURL:e,lang:t,token:n,objectId:r,...i})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{...Vo,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then((e=>e.json()));let Zo=null;const Go=()=>Zo||(Zo=$o("WALINE_LIKE",[]));var Ko="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Qo={},Jo={},Yo={},Xo=Ko&&Ko.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function l(e){try{a(r.next(e))}catch(e){o(e)}}function s(e){try{a(r.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,s)}a((r=r.apply(e,t||[])).next())}))},el=Ko&&Ko.__generator||function(e,t){var n,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,r=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!(i=l.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){l.label=o[1];break}if(6===o[0]&&l.label<i[1]){l.label=i[1],i=o;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(o);break}i[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.ReCaptchaInstance=void 0;var tl=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return Xo(this,void 0,void 0,(function(){return el(this,(function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:e}):this.recaptcha.execute(this.recaptchaID,{action:e})]}))}))},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();Yo.ReCaptchaInstance=tl,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.getInstance=Jo.load=void 0;var nl,rl=Yo;!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(nl||(nl={}));var il=function(){function e(){}return e.load=function(t,n){if(void 0===n&&(n={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===nl.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===nl.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(t,n){e.successfulLoadingConsumers.push((function(e){return t(e)})),e.errorLoadingRunnable.push((function(e){return n(e)}))}));e.instanceSiteKey=t,e.setLoadingState(nl.LOADING);var r=new e;return new Promise((function(i,o){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then((function(){e.setLoadingState(nl.LOADED);var o=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),l=new rl.ReCaptchaInstance(t,o,grecaptcha);e.successfulLoadingConsumers.forEach((function(e){return e(l)})),e.successfulLoadingConsumers=[],n.autoHideBadge&&l.hideBadge(),e.instance=l,i(l)})).catch((function(t){e.errorLoadingRunnable.forEach((function(e){return e(t)})),e.errorLoadingRunnable=[],o(t)}))}))},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?nl.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,o){var l=this;void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i={}),void 0===o&&(o="");var s=document.createElement("script");s.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(a=r?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),o&&(a=o),i.render&&(i.render=void 0);var c=this.buildQueryString(i);return s.src=a+"?render=explicit"+c,new Promise((function(t,n){s.addEventListener("load",l.waitForScriptToLoad((function(){t(s)}),r),!1),s.onerror=function(t){e.setLoadingState(nl.NOT_LOADED),n(t)},document.head.appendChild(s)}))},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?"":"&"+Object.keys(e).filter((function(t){return!!e[t]})).map((function(t){return t+"="+e[t]})).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){void 0===window.grecaptcha?setTimeout((function(){r.waitForScriptToLoad(t,n)}),e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready((function(){t()})):window.grecaptcha.ready((function(){t()}))}},e.prototype.doExplicitRender=function(e,t,n,r){var i={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?e.enterprise.render(n.container,i):e.render(n.container,i):r?e.enterprise.render(i):e.render(i)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Jo.load=il.load,Jo.getInstance=il.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Jo;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Yo;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Qo);const ol={},ll=["nick","mail","link"],sl=e=>e.filter((e=>ll.includes(e))),al=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),cl=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>',ul=()=>{const e={next:""},t=({keyword:e,pos:t})=>{const n=new URLSearchParams("media_filter=minimal");return n.set("key","PAY5JLFIH6V6"),n.set("limit","20"),n.set("pos",t||""),n.set("q",e),fetch(`https://g.tenor.com/v1/search?${n.toString()}`,{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:t||"",results:[]})))};return{search:(n="")=>t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url})))))),more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},pl=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],dl=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"),hl=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],fl={},gl=e=>{let t=0;return e.replace(dl,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"<";let i;fl[n]?i=fl[n]:(i=hl[t],fl[n]=i);const o=`<span style="color: #${i}">${n}</span>`;return t=++t%hl.length,o}))},ml=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],vl=e=>Object.fromEntries(e.map(((e,t)=>[ml[t],e])));var yl=vl(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),wl=vl(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),bl=vl(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),kl=vl(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]),xl=vl(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),_l=vl(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]);const Cl={zh:bl,"zh-cn":bl,"zh-CN":bl,"zh-tw":kl,"zh-TW":kl,en:yl,"en-US":yl,"en-us":yl,jp:wl,"jp-jp":wl,"jp-JP":wl,"pt-br":xl,"pt-BR":xl,ru:_l,"ru-ru":_l,"ru-RU":_l},Sl=e=>{try{e=decodeURI(e)}catch(e){}return e},$l=(e="")=>e.replace(/\/$/u,""),Il=e=>/^(https?:)?\/\//.test(e),El=e=>{const t=$l(e);return Il(t)?t:`https://${t}`},Rl=e=>Array.isArray(e)?e:!!e&&[0,e],Al=(e,t)=>"function"==typeof e?e:!1!==e&&t,Ll="{--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}",Ol=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},jl=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),o=Math.floor(i/864e5);if(0===o){const e=i%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return o<0?n.now:o<8?`${o} ${n.days}`:(e=>{const t=Ol(e.getDate(),2),n=Ol(e.getMonth()+1,2);return`${Ol(e.getFullYear(),2)}-${n}-${t}`})(r)},zl=e=>{const t=$o("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 i={folder:e,...r};return n&&(t.value[e]=i),i}))},Tl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Pl=e=>{"AbortError"!==e.name&&console.error(e.message)},Ul=e=>e.type.includes("image"),Ml=e=>{const t=Array.from(e).find(Ul);return t?t.getAsFile():null};function Nl(){return{async:!1,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 Fl={async:!1,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 Dl=/[&<>"']/,Vl=/[&<>"']/g,Bl=/[<>"']|&(?!#?\w+;)/,Hl=/[<>"']|&(?!#?\w+;)/g,Wl={"&":"&","<":"<",">":">",'"':""","'":"'"},ql=e=>Wl[e];function Zl(e,t){if(t){if(Dl.test(e))return e.replace(Vl,ql)}else if(Bl.test(e))return e.replace(Hl,ql);return e}const Gl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Kl(e){return e.replace(Gl,((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 Ql=/(^|[^\[])\^/g;function Jl(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(Ql,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const Yl=/[^\w:]/g,Xl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function es(e,t,n){if(e){let e;try{e=decodeURIComponent(Kl(n)).replace(Yl,"").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){ts[" "+e]||(ns.test(e)?ts[" "+e]=e+"/":ts[" "+e]=as(e,"/",!0));const n=-1===(e=ts[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(rs,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(is,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const ts={},ns=/^[^:]+:\/*[^/]*$/,rs=/^([^:]+:)[\s\S]*$/,is=/^([^:]+:\/*[^/]*)[\s\S]*$/;const os={exec:function(){}};function ls(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 ss(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)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 as(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,r-i)}function cs(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 us(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ps(e,t,n,r){const i=t.href,o=t.title?Zl(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:i,title:o,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:Zl(l)}}class ds{constructor(e){this.options=e||Fl}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:as(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=as(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){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,i,o,l,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),l=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!i.test(c))&&!l.test(c)&&!t.test(c)&&!r.test(e);){if(c.search(/[^ ]/)>=o||!c.trim())d+="\n"+c.slice(o);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(i="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:i,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]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):Zl(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return 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:ss(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,i,o,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]=ss(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.inline(e.header[r].text);for(l=e.rows.length,r=0;r<l;r++)for(o=e.rows[r],i=0;i<o.length;i++)o[i].tokens=this.lexer.inline(o[i].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Zl(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]):Zl(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=as(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,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;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)),ps(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 ps(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let i,o,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(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=i.length,r[3]||r[4]){l+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(l-=o,l>0)continue;if(o=Math.min(o,o+l+s),Math.min(n,o)%2){const t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t)}}const t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Zl(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=Zl(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Zl(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=Zl(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=Zl(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]):Zl(n[0]):n[0]:Zl(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const hs={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:os,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?'|\([^()]*\))/};hs.def=Jl(hs.def).replace("label",hs._label).replace("title",hs._title).getRegex(),hs.bullet=/(?:[*+-]|\d{1,9}[.)])/,hs.listItemStart=Jl(/^( *)(bull) */).replace("bull",hs.bullet).getRegex(),hs.list=Jl(hs.list).replace(/bull/g,hs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+hs.def.source+")").getRegex(),hs._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",hs._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,hs.html=Jl(hs.html,"i").replace("comment",hs._comment).replace("tag",hs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),hs.paragraph=Jl(hs._paragraph).replace("hr",hs.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",hs._tag).getRegex(),hs.blockquote=Jl(hs.blockquote).replace("paragraph",hs.paragraph).getRegex(),hs.normal=ls({},hs),hs.gfm=ls({},hs.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),hs.gfm.table=Jl(hs.gfm.table).replace("hr",hs.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",hs._tag).getRegex(),hs.gfm.paragraph=Jl(hs._paragraph).replace("hr",hs.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",hs.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",hs._tag).getRegex(),hs.pedantic=ls({},hs.normal,{html:Jl("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",hs._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:os,paragraph:Jl(hs.normal._paragraph).replace("hr",hs.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",hs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const fs={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:os,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:os,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function gs(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 ms(e){let t,n,r="";const i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}fs._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",fs.punctuation=Jl(fs.punctuation).replace(/punctuation/g,fs._punctuation).getRegex(),fs.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,fs.escapedEmSt=/\\\*|\\_/g,fs._comment=Jl(hs._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),fs.emStrong.lDelim=Jl(fs.emStrong.lDelim).replace(/punct/g,fs._punctuation).getRegex(),fs.emStrong.rDelimAst=Jl(fs.emStrong.rDelimAst,"g").replace(/punct/g,fs._punctuation).getRegex(),fs.emStrong.rDelimUnd=Jl(fs.emStrong.rDelimUnd,"g").replace(/punct/g,fs._punctuation).getRegex(),fs._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,fs._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,fs._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])?)+(?![-_])/,fs.autolink=Jl(fs.autolink).replace("scheme",fs._scheme).replace("email",fs._email).getRegex(),fs._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,fs.tag=Jl(fs.tag).replace("comment",fs._comment).replace("attribute",fs._attribute).getRegex(),fs._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,fs._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,fs._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,fs.link=Jl(fs.link).replace("label",fs._label).replace("href",fs._href).replace("title",fs._title).getRegex(),fs.reflink=Jl(fs.reflink).replace("label",fs._label).replace("ref",hs._label).getRegex(),fs.nolink=Jl(fs.nolink).replace("ref",hs._label).getRegex(),fs.reflinkSearch=Jl(fs.reflinkSearch,"g").replace("reflink",fs.reflink).replace("nolink",fs.nolink).getRegex(),fs.normal=ls({},fs),fs.pedantic=ls({},fs.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:Jl(/^!?\[(label)\]\((.*?)\)/).replace("label",fs._label).getRegex(),reflink:Jl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fs._label).getRegex()}),fs.gfm=ls({},fs.normal,{escape:Jl(fs.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),fs.gfm.url=Jl(fs.gfm.url,"i").replace("email",fs.gfm._extended_email).getRegex(),fs.breaks=ls({},fs.gfm,{br:Jl(fs.br).replace("{2,}","*").getRegex(),text:Jl(fs.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class vs{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Fl,this.options.tokenizer=this.options.tokenizer||new ds,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:hs.normal,inline:fs.normal};this.options.pedantic?(t.block=hs.pedantic,t.inline=fs.pedantic):this.options.gfm&&(t.block=hs.gfm,this.options.breaks?t.inline=fs.breaks:t.inline=fs.gfm),this.tokenizer.rules=t}static get rules(){return{block:hs,inline:fs}}static lex(e,t){return new vs(t).lex(e)}static lexInline(e,t){return new vs(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){let t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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((n=>!!(t=n.call({lexer:this},e,o))&&(e=e.substring(t.raw.length),o.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=o[o.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?o.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=o[o.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),o.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startBlock.forEach((function(e){i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=o[o.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):o.push(t),i=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=o[o.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):o.push(t);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,o}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,n,r,i,o,l,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],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)+"["+us("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)+"["+us("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(o||(l=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,s))&&(e=e.substring(t.raw.length),s.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.emStrong(e,a,l))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.autolink(e,ms))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,ms))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startInline.forEach((function(e){i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r,gs))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(l=t.raw.slice(-1)),o=!0,n=s[s.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);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(t.raw.length),s.push(t);return s}}class ys{constructor(e){this.options=e||Fl}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+Zl(r,!0)+'">'+(n?e:Zl(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Zl(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=es(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+Zl(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=es(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 ws{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 bs{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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class ks{constructor(e){this.options=e||Fl,this.options.renderer=this.options.renderer||new ys,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ws,this.slugger=new bs}static parse(e,t){return new ks(t).parse(e)}static parseInline(e,t){return new ks(t).parseInline(e)}parse(e){let t,n,r,i,o,l,s,a,c,u,p,d,h,f,g,m,v,y,w,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],k="";const x=e.length;for(t=0;t<x;t++)if(u=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(w=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))k+=w||"";else switch(u.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(u.tokens),u.depth,Kl(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(a="",s="",i=u.header.length,n=0;n<i;n++)s+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(a+=this.renderer.tablerow(s),c="",i=u.rows.length,n=0;n<i;n++){for(l=u.rows[n],s="",o=l.length,r=0;r<o;r++)s+=this.renderer.tablecell(this.parseInline(l[r].tokens),{header:!1,align:u.align[r]});c+=this.renderer.tablerow(s)}k+=this.renderer.table(a,c);continue;case"blockquote":c=this.parse(u.tokens),k+=this.renderer.blockquote(c);continue;case"list":for(p=u.ordered,d=u.start,h=u.loose,i=u.items.length,c="",n=0;n<i;n++)g=u.items[n],m=g.checked,v=g.task,f="",g.task&&(y=this.renderer.checkbox(m),h?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+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=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),c+=this.renderer.listitem(f,v,m);k+=this.renderer.list(c,p,d);continue;case"html":k+=this.renderer.html(u.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1<x&&"text"===e[t+1].type;)u=e[++t],c+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);k+=b?this.renderer.paragraph(c):c;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,i,o="";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]&&(i=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=i||"";else switch(r.type){case"escape":case"text":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}}function xs(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),cs(t=ls({},xs.defaults,t||{})),n){const r=t.highlight;let i;try{i=vs.lex(e,t)}catch(e){return n(e)}const o=function(e){let o;if(!e)try{t.walkTokens&&xs.walkTokens(i,t.walkTokens),o=ks.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!i.length)return o();let l=0;return xs.walkTokens(i,(function(e){"code"===e.type&&(l++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&o()}))}),0))})),void(0===l&&o())}function r(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Zl(e.message+"",!0)+"</pre>";throw e}try{const n=vs.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(xs.walkTokens(n,t.walkTokens)).then((()=>ks.parse(n,t))).catch(r);xs.walkTokens(n,t.walkTokens)}return ks.parse(n,t)}catch(e){r(e)}}xs.options=xs.setOptions=function(e){var t;return ls(xs.defaults,e),t=xs.defaults,Fl=t,xs},xs.getDefaults=Nl,xs.defaults=Fl,xs.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ls({},...t),i=xs.defaults.extensions||{renderers:{},childTokens:{}};let o;t.forEach((e=>{if(e.extensions&&(o=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=i.renderers?i.renderers[e.name]:null;i.renderers[e.name]=t?function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];let o=e.renderer.apply(this,r);return!1===o&&(o=t.apply(this,r)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");i[e.level]?i[e.level].unshift(e.tokenizer):i[e.level]=[e.tokenizer],e.start&&("block"===e.level?i.startBlock?i.startBlock.push(e.start):i.startBlock=[e.start]:"inline"===e.level&&(i.startInline?i.startInline.push(e.start):i.startInline=[e.start]))}e.childTokens&&(i.childTokens[e.name]=e.childTokens)}))),e.renderer){const t=xs.defaults.renderer||new ys;for(const n in e.renderer){const r=t[n];t[n]=function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];let s=e.renderer[n].apply(t,o);return!1===s&&(s=r.apply(t,o)),s}}r.renderer=t}if(e.tokenizer){const t=xs.defaults.tokenizer||new ds;for(const n in e.tokenizer){const r=t[n];t[n]=function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];let s=e.tokenizer[n].apply(t,o);return!1===s&&(s=r.apply(t,o)),s}}r.tokenizer=t}if(e.walkTokens){const t=xs.defaults.walkTokens;r.walkTokens=function(n){let r=[];return r.push(e.walkTokens.call(this,n)),t&&(r=r.concat(t.call(this,n))),r}}o&&(r.extensions=i),xs.setOptions(r)}))},xs.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(xs,r)),r.type){case"table":for(const e of r.header)n=n.concat(xs.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(xs.walkTokens(r.tokens,t));break;case"list":n=n.concat(xs.walkTokens(r.items,t));break;default:xs.defaults.extensions&&xs.defaults.extensions.childTokens&&xs.defaults.extensions.childTokens[r.type]?xs.defaults.extensions.childTokens[r.type].forEach((function(e){n=n.concat(xs.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(xs.walkTokens(r.tokens,t)))}return n},xs.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");cs(t=ls({},xs.defaults,t||{}));try{const n=vs.lexInline(e,t);return t.walkTokens&&xs.walkTokens(n,t.walkTokens),ks.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>"+Zl(e.message+"",!0)+"</pre>";throw e}},xs.Parser=ks,xs.parser=ks.parse,xs.Renderer=ys,xs.TextRenderer=ws,xs.Lexer=vs,xs.lexer=vs.lex,xs.Tokenizer=ds,xs.Slugger=bs,xs.parse=xs;const _s=/\$.*?\$/,Cs=/^\$(.*?)\$/,Ss=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,$s=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Is=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(xs.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Ss.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(_s);return-1!==t?t:e.length},tokenizer(t){const n=Cs.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);xs.use({extensions:e})}return xs.parse($s(e,t))},Es=e=>e.dataset.path||e.getAttribute("id"),Rs=(e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=bt(new Date),i=()=>r.value=new Date,o="requestAnimationFrame"===n?Io(i,{immediate:!0}):qi(i,n,{immediate:!0});return t?To({now:r},o):r}();return Dr((()=>jl(e,n.value,t)))},As="id",Ls="i";let Os=null;const js=()=>Os||(Os=$o("WALINE_VOTE",[]));let zs=null;const Ts=()=>zs||(zs=$o("WALINE_USER",{}));var Ps=hn({setup(){const e=bt([]),t=js(),n=sn("config"),r=Dr((()=>n.value.locale)),i=Dr((()=>{const{reaction:i,path:o}=n.value;return i.map(((n,i)=>({icon:n,vote:e.value[i]||0,desc:r.value[`reaction${i}`],active:Boolean(t.value.find((({[As]:e,[Ls]:t})=>e===o&&t===i)))})))}));let o;return vn((()=>(()=>{const{serverURL:t,lang:r,path:i,reaction:l}=n.value;if(l.length){const n=new AbortController;Ho({serverURL:t,lang:r,paths:[i],type:l.map(((e,t)=>`reaction${t}`)),signal:n.signal}).then((t=>{Array.isArray(t)||"number"==typeof t||(e.value=l.map(((e,n)=>t[`reaction${n}`])))})),o=n.abort.bind(n)}})())),wn((()=>o?.())),{reaction:i,locale:r,vote:async r=>{const{serverURL:i,lang:o,path:l}=n.value,s=t.value.find((({[As]:e})=>e===l));s&&s.i===r||(await Wo({serverURL:i,lang:o,path:l,type:`reaction${r}`}),e.value[r]=(e.value[r]||0)+1,s?(e.value[s.i]=Math.max(e.value[s.i]-1,0),Wo({serverURL:i,lang:o,path:l,type:`reaction${s.i}`,action:"desc"}),s.i=r,t.value=Array.from(t.value)):t.value=[...t.value,{[As]:l,[Ls]:r}],t.value.length>50&&(t.value=t.value.slice(-50)))}}}}),Us=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const Ms={key:0,class:"wl-reaction"},Ns=["textContent"],Fs=["onClick"],Ds={class:"wl-reaction-img"},Vs=["src","alt"],Bs={class:"wl-reaction-votes"},Hs={class:"wl-reaction-text"};var Ws,qs,Zs=Us(Ps,[["render",function(e,t,n,r,i,o){return e.reaction.length?(or(),cr("div",Ms,[mr("h4",{textContent:f(e.locale.reactionTitle)},null,8,Ns),mr("ul",null,[(or(!0),cr(Xn,null,$n(e.reaction,((t,n)=>(or(),cr("li",{key:n,class:p({active:t.active}),onClick:t=>e.vote(n)},[mr("div",Ds,[mr("img",{src:t.icon,alt:t.desc},null,8,Vs),mr("div",Bs,f(t.vote),1)]),mr("div",Hs,f(t.desc),1)],10,Fs)))),128))])])):kr("v-if",!0)}],["__file","ArticleReaction.vue"]]),Gs="function"==typeof Map?new Map:(Ws=[],qs=[],{has:function(e){return Ws.indexOf(e)>-1},get:function(e){return qs[Ws.indexOf(e)]},set:function(e,t){-1===Ws.indexOf(e)&&(Ws.push(e),qs.push(t))},delete:function(e){var t=Ws.indexOf(e);t>-1&&(Ws.splice(t,1),qs.splice(t,1))}}),Ks=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(Ws){Ks=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Qs(e){var t=Gs.get(e);t&&t.destroy()}function Js(e){var t=Gs.get(e);t&&t.update()}var Ys=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Ys=function(e){return e}).destroy=function(e){return e},Ys.update=function(e){return e}):((Ys=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&&!Gs.has(e)){var t,n=null,r=null,i=null,o=function(){e.clientWidth!==r&&c()},l=function(t){window.removeEventListener("resize",o,!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]})),Gs.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",o,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Gs.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),i=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})),i&&(document.documentElement.scrollTop=i)}}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),i!==r){i=r;var o=Ks("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qs),e},Ys.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Js),e});var Xs=Ys;const ea=({size:e})=>Vr("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Vr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Vr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var ta=hn({name:"ImageWall",components:{LoadingIcon:ea},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emits:["insert"],setup(e){let t=null;const n=bt(null),r=bt({}),i=bt([]),o=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},l=async t=>{if(t>=e.items.length)return;await Dt();const r=Array.from(n.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));i.value[Number(r.dataset.index)].push(t),await l(t+1)},s=async(e=!1)=>{if(i.value.length===o()&&!e)return;var t;i.value=(t=o(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await l(0),window.scrollTo({top:n})};return un((()=>[e.items]),(()=>{r.value={},s(!0)})),un((()=>[e.columnWidth,e.gap]),(()=>s())),vn((()=>{s(!0),t=new ResizeObserver((()=>s())),t.observe(n.value)})),yn((()=>t.unobserve(n.value))),{columns:i,state:r,wall:n}}});const na=["data-index"],ra=["src","title","onLoad","onClick"];var ia=hn({name:"CommentBox",components:{CloseIcon:({size:e})=>Vr("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Vr("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"}),Vr("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:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Vr("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:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Vr("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"}),Vr("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),ImageWall:Us(ta,[["render",function(e,t,n,r,i,o){const l=_n("LoadingIcon");return or(),cr("div",{ref:"wall",class:"wl-gallery",style:s({gap:`${e.gap}px`})},[(or(!0),cr(Xn,null,$n(e.columns,((t,n)=>(or(),cr("div",{key:n,class:"wl-gallery-column","data-index":n,style:s({gap:`${e.gap}px`})},[(or(!0),cr(Xn,null,$n(t,(t=>(or(),cr(Xn,{key:t},[e.state[e.items[t].src]?kr("v-if",!0):(or(),ur(l,{key:0,size:36,style:{margin:"20px auto"}})),mr("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert",``)},null,40,ra)],64)))),128))],12,na)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>Vr("svg",{width:"16",height:"16",ariaHidden:"true"},Vr("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:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Vr("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"}),Vr("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:ea,GifIcon:()=>Vr("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Vr("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),Vr("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})])},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""},edit:{type:Object,default:null}},emits:["submit","cancel-reply","cancel-edit"],setup(e,{emit:t}){const n=sn("config"),r=$o("WALINE_COMMENT_BOX_EDITOR",""),i=$o("WALINE_USER_META",{nick:"",mail:"",link:""}),o=Ts(),l=bt({}),s=bt(null),a=bt(null),c=bt(null),u=bt(null),p=bt(null),d=bt(null),h=bt(null),f=bt({tabs:[],map:{}}),g=bt(0),m=bt(!1),v=bt(!1),y=bt(!1),w=bt(""),b=bt(0),k=ot({loading:!0,list:[]}),x=bt(0),_=bt(!1),C=bt(""),S=bt(!1),$=Dr((()=>n.value.locale)),I=Dr((()=>Boolean(o.value?.token))),E=Dr((()=>!1!==n.value.imageUploader)),R=e=>{const t=s.value,n=t.selectionStart,i=t.selectionEnd||0,o=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(i,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=o},A=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return R(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n`)})).catch((e=>{alert(e.message),r.value=r.value.replace(t,"")}))},L=async()=>{const{serverURL:a,lang:c,login:u,wordLimit:p,requiredMeta:d}=n.value;let h="";n.value.recaptchaV3Key&&(h=await(e=>{const t=ol[e]??(ol[e]=Qo.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(n.value.recaptchaV3Key).execute("social"));const g={comment:C.value,nick:i.value.nick,mail:i.value.mail,link:i.value.link,ua:navigator.userAgent,url:n.value.path,recaptchaV3:h};if(o.value?.token)g.nick=o.value.display_name,g.mail=o.value.email,g.link=o.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!g.nick)return l.value.nick?.focus(),alert($.value.nickError);if(d.indexOf("mail")>-1&&!g.mail||g.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(g.mail))return l.value.mail?.focus(),alert($.value.mailError);if(!g.comment)return void s.value?.focus();g.nick||(g.nick=$.value.anonymous)}if(!_.value)return alert($.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",b.value.toString()));g.comment=$s(g.comment,f.value.map),e.replyId&&e.rootId?(g.pid=e.replyId,g.rid=e.rootId,g.at=e.replyUser):e.edit&&(g.eid=e.edit.objectId),S.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),r.eid?fetch(`${e}/comment/${r.eid}?lang=${t}`,{method:"PUT",headers:i,body:JSON.stringify(r)}).then((e=>e.json())):fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:a,lang:c,token:o.value?.token,comment:g}).then((n=>{if(S.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",w.value="",e.replyId&&t("cancel-reply"),e.edit?.objectId&&t("cancel-edit")})).catch((e=>{S.value=!1,alert(e.message)}))},O=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(m.value=!1),p.value.contains(e.target)||d.value.contains(e.target)||(v.value=!1)},j=async e=>{const{scrollTop:t,clientHeight:r,scrollHeight:i}=e.target,o=(r+t)/i,l=n.value.search,s=h.value?.value||"";o<.9||k.loading||(k.loading=!0,k.list.push(...l.more?await l.more(s,k.list.length):await l.search(s)),k.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50))},z=function(e){return Fi(Vi(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}((e=>{k.list=[],j(e)}),300);un([n,b],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(x.value=n[0],_.value=!1):t>n[1]?(x.value=n[1],_.value=!1):(x.value=n[1],_.value=!0):(x.value=0,_.value=!0)}),{immediate:!0}),un(v,(async e=>{if(!e)return;const t=n.value.search;h.value&&(h.value.value=""),k.loading=!0,k.list=t.default?await t.default():await t.search(""),k.loading=!1}));const T=({data:e})=>{e&&"profile"===e.type&&(o.value={...o.value,...e.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(o)))))};return vn((()=>{document.body.addEventListener("click",O),window.addEventListener("message",T),e.edit?.objectId&&(r.value=e.edit.orig),un((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;C.value=e,w.value=Is(e,{emojiMap:f.value.map,highlighter:t,texRenderer:r}),b.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?Xs(s.value):Xs.destroy(s.value)}),{immediate:!0}),un((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?zl($l(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:i,prefix:o,type:l,items:s}=e;t.tabs.push({name:n,icon:Tl(i,r,o,l),items:s.map((e=>{const n=`${o||""}${e}`;return t.map[n]=Tl(e,r,o,l),n}))})})),t}))).then((e=>{f.value=e}));var t}),{immediate:!0})})),wn((()=>{document.body.removeEventListener("click",O),window.removeEventListener("message",T)})),{config:n,locale:$,insert:R,onChange:()=>{const e=a.value;e.files&&E.value&&A(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{if(e.dataTransfer?.items){const t=Ml(e.dataTransfer.items);t&&E.value&&(A(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&L()},onPaste:e=>{if(e.clipboardData){const t=Ml(e.clipboardData.items);t&&E.value&&A(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value;(({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=window.open(`${t}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return i?.postMessage({type:"TOKEN",data:null},"*"),new Promise((e=>{const t=({data:n})=>{n&&"object"==typeof n&&"userInfo"===n.type&&n.data.token&&(i?.close(),window.removeEventListener("message",t),e(n.data))};window.addEventListener("message",t)}))})({serverURL:r,lang:t}).then((e=>{o.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e))}))},onLogout:()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,i=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2;window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${i},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:"TOKEN",data:o.value.token},"*")},submitComment:L,onImageWallScroll:j,onGifSearch:z,isLogin:I,userInfo:o,isSubmitting:S,wordNumber:b,wordLimit:x,isWordNumberLegal:_,editor:r,userMeta:i,emoji:f,emojiTabIndex:g,showEmoji:m,gifData:k,showGif:v,canUploadImage:E,previewText:w,showPreview:y,inputRefs:l,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,gifButtonRef:p,gifPopupRef:d,imageUploadRef:a,gifSearchInputRef:h}}});const oa={class:"wl-comment"},la={key:0,class:"wl-login-info"},sa={class:"wl-avatar"},aa=["title"],ca=["title"],ua=["src"],pa=["title","textContent"],da={class:"wl-panel"},ha=["for","textContent"],fa=["id","onUpdate:modelValue","name","type"],ga=["placeholder"],ma={class:"wl-preview"},va=mr("hr",null,null,-1),ya=["innerHTML"],wa={class:"wl-footer"},ba={class:"wl-actions"},ka={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},xa=["title"],_a=["title"],Ca=["title"],Sa=["title"],$a={class:"wl-info"},Ia={class:"wl-text-number"},Ea={key:0},Ra=br(" / "),Aa=["textContent"],La=["textContent"],Oa=["disabled"],ja=["placeholder"],za={key:0,class:"wl-loading"},Ta={key:0,class:"wl-tab-wrapper"},Pa=["title","onClick"],Ua=["src","alt"],Ma={key:0,class:"wl-tabs"},Na=["onClick"],Fa=["src","alt","title"],Da=["title"];var Va=Us(ia,[["render",function(e,t,n,r,i,o){const l=_n("CloseIcon"),s=_n("MarkdownIcon"),a=_n("EmojiIcon"),c=_n("GifIcon"),u=_n("ImageIcon"),d=_n("PreviewIcon"),h=_n("LoadingIcon"),g=_n("ImageWall");return or(),cr("div",oa,["disable"!==e.config.login&&e.isLogin&&!e.edit?.objectId?(or(),cr("div",la,[mr("div",sa,[mr("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[vr(l,{size:14})],8,aa),mr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t))},[mr("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,ua)],8,ca)]),mr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[2]||(t[2]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:f(e.userInfo.display_name)},null,8,pa)])):kr("v-if",!0),mr("div",da,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(or(),cr("div",{key:0,class:p(["wl-header",`item${e.config.meta.length}`])},[(or(!0),cr(Xn,null,$n(e.config.meta,(t=>(or(),cr("div",{key:t,class:"wl-header-item"},[mr("label",{for:t,textContent:f(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,ha),bn(mr("input",{id:`wl-${t}`,ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},"onUpdate:modelValue":n=>e.userMeta[t]=n,class:p(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text"},null,10,fa),[[$i,e.userMeta[t]]])])))),128))],2)):kr("v-if",!0),bn(mr("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[3]||(t[3]=t=>e.editor=t),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,onKeydown:t[4]||(t[4]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[5]||(t[5]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[6]||(t[6]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,ga),[[yi,e.editor]]),bn(mr("div",ma,[va,mr("h4",null,f(e.locale.preview)+":",1),kr(" eslint-disable-next-line vue/no-v-html "),mr("div",{class:"wl-content",innerHTML:e.previewText},null,8,ya)],512),[[Ei,e.showPreview]]),mr("div",wa,[mr("div",ba,[mr("a",ka,[vr(s)]),bn(mr("button",{ref:"emojiButtonRef",class:p(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[7]||(t[7]=t=>e.showEmoji=!e.showEmoji)},[vr(a)],10,xa),[[Ei,e.emoji.tabs.length]]),e.config.search?(or(),cr("button",{key:0,ref:"gifButtonRef",class:p(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[8]||(t[8]=t=>e.showGif=!e.showGif)},[vr(c)],10,_a)):kr("v-if",!0),mr("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[9]||(t[9]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(or(),cr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[vr(u)],8,Ca)):kr("v-if",!0),mr("button",{class:p(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[10]||(t[10]=t=>e.showPreview=!e.showPreview)},[vr(d)],10,Sa)]),mr("div",$a,[mr("div",Ia,[br(f(e.wordNumber)+" ",1),e.config.wordLimit?(or(),cr("span",Ea,[Ra,mr("span",{class:p({illegal:!e.isWordNumberLegal}),textContent:f(e.wordLimit)},null,10,Aa)])):kr("v-if",!0),br(" "+f(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?kr("v-if",!0):(or(),cr("button",{key:0,class:"wl-btn",onClick:t[11]||(t[11]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:f(e.locale.login)},null,8,La)),"force"!==e.config.login||e.isLogin?(or(),cr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[12]||(t[12]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(or(),ur(h,{key:0,size:16})):(or(),cr(Xn,{key:1},[br(f(e.locale.submit),1)],64))],8,Oa)):kr("v-if",!0)]),mr("div",{ref:"gifPopupRef",class:p(["wl-gif-popup",{display:e.showGif}])},[mr("input",{ref:"gifSearchInputRef",type:"text",placeholder:e.locale.gifSearchPlaceholder,onInput:t[13]||(t[13]=(...t)=>e.onGifSearch&&e.onGifSearch(...t))},null,40,ja),vr(g,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[14]||(t[14]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(or(),cr("div",za,[vr(h,{size:30})])):kr("v-if",!0)],2),mr("div",{ref:"emojiPopupRef",class:p(["wl-emoji-popup",{display:e.showEmoji}])},[(or(!0),cr(Xn,null,$n(e.emoji.tabs,((t,n)=>(or(),cr(Xn,{key:t.name},[n===e.emojiTabIndex?(or(),cr("div",Ta,[(or(!0),cr(Xn,null,$n(t.items,(t=>(or(),cr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(or(),cr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ua)):kr("v-if",!0)],8,Pa)))),128))])):kr("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(or(),cr("div",Ma,[(or(!0),cr(Xn,null,$n(e.emoji.tabs,((t,n)=>(or(),cr("button",{key:t.name,class:p(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[mr("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Fa)],10,Na)))),128))])):kr("v-if",!0)],2)])]),e.replyId||e.edit?.objectId?(or(),cr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[15]||(t[15]=t=>e.$emit(e.replyId?"cancel-reply":"cancel-edit"))},[vr(l,{size:24})],8,Da)):kr("v-if",!0)])}],["__file","CommentBox.vue"]]);const Ba=["approved","waiting","spam"];var Ha=hn({components:{CommentBox:Va,DeleteIcon:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Vr("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})=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Vr("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:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Vr("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"})),EditIcon:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Vr("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),VerifiedIcon:()=>Vr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Vr("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"}))},props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object,default:null},edit:{type:Object,default:null}},emits:["submit","reply","like","delete","status","sticky","edit"],setup(e){const t=sn("config"),n=Go(),r=Ts(),i=Dr((()=>t.value.locale)),o=Dr((()=>{const{link:t}=e.comment;return t?Il(t)?t:`https://${t}`:""})),l=Dr((()=>n.value.includes(e.comment.objectId))),s=Rs(e.comment.insertedAt,i.value),a=Dr((()=>"administrator"===r.value.type)),c=Dr((()=>e.comment.user_id&&r.value.objectId===e.comment.user_id)),u=Dr((()=>e.comment.objectId===e.reply?.objectId)),p=Dr((()=>e.comment.objectId===e.edit?.objectId));return{config:t,locale:i,isReplyingCurrent:u,isEditingCurrent:p,link:o,like:l,time:s,isAdmin:a,isOwner:c,commentStatus:Ba}}});const Wa=["id"],qa={class:"wl-user","aria-hidden":"true"},Za=["src"],Ga={class:"wl-card"},Ka={class:"wl-head"},Qa=["href"],Ja={key:1,class:"wl-nick"},Ya=["textContent"],Xa=["textContent"],ec=["textContent"],tc=["textContent"],nc=["textContent"],rc={class:"wl-comment-actions"},ic=["title"],oc=["textContent"],lc=["title"],sc={class:"wl-meta","aria-hidden":"true"},ac=["data-value","textContent"],cc=["data-value","textContent"],uc=["data-value","textContent"],pc=["innerHTML"],dc={key:1,class:"wl-admin-actions"},hc={class:"wl-comment-status"},fc=["disabled","onClick","textContent"],gc={key:3,class:"wl-quote"};const mc=[{key:"insertedAt_desc",name:"latest"},{key:"insertedAt_asc",name:"oldest"},{key:"like_desc",name:"hottest"}];var vc=hn({name:"WalineRoot",components:{Reaction:Zs,CommentBox:Va,CommentCard:Us(Ha,[["render",function(e,t,n,r,i,o){const l=_n("VerifiedIcon"),s=_n("EditIcon"),a=_n("DeleteIcon"),c=_n("LikeIcon"),u=_n("ReplyIcon"),d=_n("CommentBox"),h=_n("CommentCard",!0);return or(),cr("div",{id:e.comment.objectId,class:"wl-item"},[mr("div",qa,[e.comment.avatar?(or(),cr("img",{key:0,src:e.comment.avatar},null,8,Za)):kr("v-if",!0),e.comment.type?(or(),ur(l,{key:1})):kr("v-if",!0)]),mr("div",Ga,[mr("div",Ka,[e.link?(or(),cr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},f(e.comment.nick),9,Qa)):(or(),cr("span",Ja,f(e.comment.nick),1)),"administrator"===e.comment.type?(or(),cr("span",{key:2,class:"wl-badge",textContent:f(e.locale.admin)},null,8,Ya)):kr("v-if",!0),e.comment.label?(or(),cr("span",{key:3,class:"wl-badge",textContent:f(e.comment.label)},null,8,Xa)):kr("v-if",!0),e.comment.sticky?(or(),cr("span",{key:4,class:"wl-badge",textContent:f(e.locale.sticky)},null,8,ec)):kr("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(or(),cr("span",{key:5,class:p(`wl-badge level${e.comment.level}`),textContent:f(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,tc)):kr("v-if",!0),mr("span",{class:"wl-time",textContent:f(e.time)},null,8,nc),mr("div",rc,[e.isAdmin||e.isOwner?(or(),cr("button",{key:0,class:"wl-edit",onClick:t[0]||(t[0]=t=>e.$emit("edit",e.comment))},[vr(s)])):kr("v-if",!0),e.isAdmin||e.isOwner?(or(),cr("button",{key:1,class:"wl-delete",onClick:t[1]||(t[1]=t=>e.$emit("delete",e.comment))},[vr(a)])):kr("v-if",!0),mr("button",{class:"wl-like",title:e.like?e.locale.cancelLike:e.locale.like,onClick:t[2]||(t[2]=t=>e.$emit("like",e.comment))},[vr(c,{active:e.like},null,8,["active"]),"like"in e.comment?(or(),cr("span",{key:0,textContent:f(e.comment.like)},null,8,oc)):kr("v-if",!0)],8,ic),mr("button",{class:p(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[3]||(t[3]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[vr(u)],10,lc)])]),mr("div",sc,[e.comment.addr?(or(),cr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:f(e.comment.addr)},null,8,ac)):kr("v-if",!0),e.comment.browser?(or(),cr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:f(e.comment.browser)},null,8,cc)):kr("v-if",!0),e.comment.os?(or(),cr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:f(e.comment.os)},null,8,uc)):kr("v-if",!0)]),kr(" eslint-disable vue/no-v-html "),e.isEditingCurrent?kr("v-if",!0):(or(),cr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,pc)),kr(" eslint-enable vue/no-v-html "),e.isAdmin&&!e.isEditingCurrent?(or(),cr("div",dc,[mr("span",hc,[(or(!0),cr(Xn,null,$n(e.commentStatus,(t=>(or(),cr("button",{key:t,class:p(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:f(e.locale[t])},null,10,fc)))),128))]),e.isAdmin&&!e.comment.rid?(or(),cr("button",{key:0,class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=t=>e.$emit("sticky",e.comment))},f(e.comment.sticky?e.locale.unsticky:e.locale.sticky),1)):kr("v-if",!0)])):kr("v-if",!0),e.isReplyingCurrent||e.isEditingCurrent?(or(),cr("div",{key:2,class:p({"wl-reply-wrapper":e.isReplyingCurrent,"wl-edit-wrapper":e.isEditingCurrent})},[vr(d,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onSubmit:t[5]||(t[5]=t=>e.$emit("submit",t)),onCancelReply:t[6]||(t[6]=t=>e.$emit("reply",null)),onCancelEdit:t[7]||(t[7]=t=>e.$emit("edit",null))},null,8,["edit","reply-id","reply-user","root-id"])],2)):kr("v-if",!0),e.comment.children?(or(),cr("div",gc,[(or(!0),cr(Xn,null,$n(e.comment.children,(n=>(or(),ur(h,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onReply:t[8]||(t[8]=t=>e.$emit("reply",t)),onSubmit:t[9]||(t[9]=t=>e.$emit("submit",t)),onLike:t[10]||(t[10]=t=>e.$emit("like",t)),onEdit:t[11]||(t[11]=t=>e.$emit("edit",t)),onDelete:t[12]||(t[12]=t=>e.$emit("delete",t)),onStatus:t[13]||(t[13]=t=>e.$emit("status",t)),onSticky:t[14]||(t[14]=t=>e.$emit("sticky",t))},null,8,["comment","reply","edit","root-id"])))),128))])):kr("v-if",!0)])],8,Wa)}],["__file","CommentCard.vue"]]),LoadingIcon:ea},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup(e){const t=Dr((()=>(({serverURL:e,path:t=location.pathname,lang:n="zh-CN",locale:r,emoji:i=["//unpkg.com/@waline/emojis@1.1.0/weibo"],meta:o=["nick","mail","link"],requiredMeta:l=[],dark:s=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:p,texRenderer:d,copyright:h=!0,login:f="enable",search:g=ul(),reaction:m,recaptchaV3Key:v="",...y})=>({serverURL:El(e),path:Sl(t),locale:{...Cl[n]||Cl["zh-CN"],..."object"==typeof r?r:{}},wordLimit:Rl(c),meta:sl(o),requiredMeta:sl(l),imageUploader:Al(u,al),highlighter:Al(p,gl),texRenderer:Al(d,cl),lang:n,dark:s,emoji:i,pageSize:a,login:f,copyright:h,search:g,recaptchaV3Key:v,reaction:Array.isArray(m)?m:!0===m?pl:[],...y}))(e))),n=Ts(),r=Go(),i=bt("loading"),o=bt(0),l=bt(1),s=bt(0),a=bt(mc[0].key),c=bt([]),u=bt(null),p=bt(null),d=Dr((()=>{return"string"==typeof(e=t.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${Ll}}`:`${e}${Ll}`:!0===e?`:root${Ll}`:"";var e}));let h;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=bt(!1),{document:r=po,immediate:i=!0,manual:o=!1,id:l="vueuse_styletag_"+ ++Po}=t,s=bt(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=un(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};i&&!o&&Wi(c),o||Hi(u),st(n)}(d);const f=e=>{const{serverURL:r,path:u,pageSize:p}=t.value,d=new AbortController;i.value="loading",h?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:o,signal:l,token:s})=>{const a={};return s&&(a.Authorization=`Bearer ${s}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${o}`,{signal:l,headers:a}).then((e=>e.json())).then((e=>Bo(e,"comment data")))})({serverURL:r,lang:t.value.lang,path:u,pageSize:p,sortBy:a.value,page:e,signal:d.signal,token:n.value?.token}).then((t=>{i.value="success",o.value=t.count,c.value.push(...t.data),l.value=e,s.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),i.value="error")})),h=d.abort.bind(d)},g=()=>{o.value=0,c.value=[],f(1)};return function(e,t){if(Rr){let n=Rr.provides;const r=Rr.parent&&Rr.parent.provides;r===n&&(n=Rr.provides=Object.create(r)),n[e]=t}}("config",t),un((()=>e.path),g),vn((()=>g())),{config:t,darkmodeStyle:d,i18n:Dr((()=>t.value.locale)),status:i,count:o,page:l,totalPages:s,sortBy:a,sortByItems:mc,data:c,reply:u,edit:p,loadMore:()=>f(l.value+1),refresh:g,onSortByChange:e=>{a.value!==e&&(a.value=e,g())},onReply:e=>{u.value=e},onSubmit:e=>{if(p.value)p.value.comment=e.comment,p.value.orig=e.orig;else if(e.rid){const t=c.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else c.value.unshift(e)},onStatusChange:async({comment:e,status:r})=>{if(e.status===r)return;const{serverURL:i,lang:o}=t.value;await qo({serverURL:i,lang:o,token:n.value?.token,objectId:e.objectId,status:r}),e.status=r},onDelete:async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:r,lang:i}=t.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:r,lang:i,token:n.value?.token,objectId:e}),c.value.some(((t,n)=>t.objectId===e?(c.value=c.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,i)=>r.objectId===e&&(c.value[n].children=t.children.filter(((e,t)=>t!==i)),!0)))))},onSticky:async e=>{if(e.rid)return;const{serverURL:r,lang:i}=t.value;await qo({serverURL:r,lang:i,token:n.value?.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:n,lang:i}=t.value,{objectId:o}=e,l=r.value.includes(o);await(({serverURL:e,lang:t,objectId:n,like:r})=>fetch(`${e}/comment/${n}?lang=${t}`,{method:"PUT",headers:Vo,body:JSON.stringify({like:r})}).then((e=>e.json())))({serverURL:n,lang:i,objectId:o,like:!l}),l?r.value=r.value.filter((e=>e!==o)):(r.value=[...r.value,o],r.value.length>50&&(r.value=r.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},onEdit:e=>{p.value=e},version:"2.11.3"}}});const yc={"data-waline":""},wc={class:"wl-meta-head"},bc={class:"wl-count"},kc=["textContent"],xc={class:"wl-sort"},_c=["onClick"],Cc={class:"wl-cards"},Sc={key:1,class:"wl-operation"},$c=["textContent"],Ic={key:0,class:"wl-loading"},Ec=["textContent"],Rc={class:"wl-operation"},Ac=["textContent"],Lc={key:3,class:"wl-power"},Oc=br(" Powered by "),jc=mr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var zc=Us(vc,[["render",function(e,t,n,r,i,o){const l=_n("Reaction"),s=_n("CommentBox"),a=_n("CommentCard"),c=_n("LoadingIcon");return or(),cr("div",yc,[vr(l),e.reply?kr("v-if",!0):(or(),ur(s,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),mr("div",wc,[mr("div",bc,[e.count?(or(),cr("span",{key:0,class:"wl-num",textContent:f(e.count)},null,8,kc)):kr("v-if",!0),br(" "+f(e.i18n.comment),1)]),mr("ul",xc,[(or(!0),cr(Xn,null,$n(e.sortByItems,(t=>(or(),cr("li",{key:t.key,class:p([t.key===e.sortBy?"active":""]),onClick:n=>e.onSortByChange(t.key)},f(e.i18n[t.name]),11,_c)))),128))])]),mr("div",Cc,[(or(!0),cr(Xn,null,$n(e.data,(t=>(or(),ur(a,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,edit:e.edit,onReply:e.onReply,onEdit:e.onEdit,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","edit","onReply","onEdit","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(or(),cr("div",Sc,[mr("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:f(e.i18n.refresh)},null,8,$c)])):(or(),cr(Xn,{key:2},["loading"===e.status?(or(),cr("div",Ic,[vr(c,{size:30})])):e.data.length?e.page<e.totalPages?(or(),cr(Xn,{key:2},[kr(" Load more button "),mr("div",Rc,[mr("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:f(e.i18n.more)},null,8,Ac)])],2112)):kr("v-if",!0):(or(),cr("div",{key:1,class:"wl-empty",textContent:f(e.i18n.sofa)},null,8,Ec))],64)),kr(" Copyright Information "),e.config.copyright?(or(),cr("div",Lc,[Oc,jc,br(" v"+f(e.version),1)])):kr("v-if",!0)])}],["__file","Waline.vue"]]);const Tc=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{const i=new AbortController,o=document.querySelectorAll(n);return o.length&&(({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:{}}).then((e=>e.json())).then((e=>Bo(e,"comment count"))).then((e=>Array.isArray(e)?e:[e])))({serverURL:El(e),paths:Array.from(o).map((e=>Sl(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:i.signal}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Pl),i.abort.bind(i)},Pc=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Uc=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i="zh-CN"})=>{const o=new AbortController,l=Array.from(document.querySelectorAll(n)),s=e=>{const n=Es(e);return null!==n&&t!==n},a=n=>(({serverURL:e,lang:t,paths:n,signal:r})=>Ho({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then((e=>Array.isArray(e)?e:[e])))({serverURL:El(e),paths:n.map((e=>Es(e)||t)),lang:i,signal:o.signal}).then((e=>Pc(e,n))).catch(Pl);if(r){const n=l.filter((e=>!s(e))),r=l.filter(s);(c={serverURL:El(e),path:t,lang:i},Wo({...c,type:"time"})).then((e=>Pc(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(l);var c;return o.abort.bind(o)},Mc=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const o=e?(e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null)(e):null;if(e&&!o)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=ot({...i}),s=ot({comment:n,pageview:r,path:t}),a=o?function(){const e=Oi().createApp(...arguments),{mount:t}=e;return e.mount=n=>{const r=ji(n);if(!r)return;const i=e._component;L(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e}((()=>Vr(zc,{path:s.path,...l}))):null;a&&a.mount(o);const c=an((()=>{s.comment&&Tc({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})})),u=an((()=>{s.pageview&&Uc({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})}));return{el:o,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{l[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}};e(" This is a legacy package compatible with Valine and Waline@v1, please switch to Waline@v2 using https://<CDN.LINK>/@waline/client/dist/waline.js instead!");const Nc=document.createElement("link");return Nc.rel="stylesheet",Nc.href="//unpkg.com/@waline/client@v2/dist/waline.css",document.head.appendChild(Nc),function(i){return Mc((i=>{const{placeholder:o,langMode:l={},emojiCDN:s,emojiMaps:a,requiredFields:c=[],anonymous:u,previewMath:p,uploadImage:d,highlight:h,copyRight:f,visitor:g,pageview:m=(!0===g?".leancloud_visitors,.leancloud-visitors,.waline-visitor-count,.waline-pageview-count":g),locale:v=l,emoji:y,requiredMeta:w=c,highlighter:b=h,imageUploader:k=d,texRenderer:x=p,copyright:_=f,login:C=(!0===u?"disable":!1===u?"force":"enable"),...S}=i;return n.filter((e=>Object.keys(i).includes(e))).forEach((t=>e(`Option "${t}" is REMOVED and CAN NOT be polyfilled!`))),r.filter((([e])=>Object.keys(i).includes(e))).forEach((([t,n])=>e(`Deprecated option "${t}" is currently being polyfilled, Please switch to option "${n}" in v2!`))),o&&(v.placeholder=o),{locale:v,emoji:s&&"object"==typeof a?t(a,s):y,requiredMeta:w,imageUploader:k,highlighter:b,texRenderer:x,copyright:_,login:C,pageview:m,...S}})(i))}}));
|
|
2
2
|
//# sourceMappingURL=legacy.umd.js.map
|