@waline/client 1.5.3 → 1.5.4

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.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Waline=t():e.Waline=t()}(this,(function(){return(()=>{var e={948:function(e){e.exports=function(){"use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(){return new RegExp("(?:"+t.line().source+")|(?:"+t.block().source+")","gm")};t.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},t.block=function(){return/\/\*([\S\s]*?)\*\//gm}})),t=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"];return function(n,o){void 0===o&&(o={});var r=o.colors;void 0===r&&(r=t);var i=0,l={},s=new RegExp("("+/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source+"|"+/</.source+")|("+e().source+")","gmi");return n.replace(s,(function(e,t,n){if(n)return function(e){return'<span style="color: slategray">'+e+"</span>"}(n);if("<"===t)return"&lt;";var o;l[t]?o=l[t]:(o=r[i],l[t]=o);var s='<span style="color: #'+o+'">'+t+"</span>";return i=++i%r.length,s}))}}()},407:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{"use strict";function e(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(o,{default:()=>Ns});const t=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function r(e){return!!e||""===e}function i(e){if(S(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=L(o)?a(o):i(o);if(r)for(const e in r)t[e]=r[e]}return t}return L(e)||T(e)?e:void 0}const l=/;(?![^(]*\))/g,s=/:(.+)/;function a(e){const t={};return e.split(l).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function c(e){let t="";if(L(e))t=e;else if(S(e))for(let n=0;n<e.length;n++){const o=c(e[n]);o&&(t+=o+" ")}else if(T(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function u(e,t){if(e===t)return!0;let n=z(e),o=z(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=S(e),o=S(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=u(e[o],t[o]);return n}(e,t);if(n=T(e),o=T(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!u(e[n],t[n]))return!1}}return String(e)===String(t)}function p(e,t){return e.findIndex((e=>u(e,t)))}const d=e=>null==e?"":S(e)||T(e)&&(e.toString===I||!A(e.toString))?JSON.stringify(e,h,2):String(e),h=(e,t)=>t&&t.__v_isRef?h(e,t.value):C(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:E(t)?{[`Set(${t.size})`]:[...t.values()]}:!T(t)||S(t)||j(t)?t:String(t),f={},m=[],g=()=>{},v=()=>!1,b=/^on[^a-z]/,y=e=>b.test(e),w=e=>e.startsWith("onUpdate:"),k=Object.assign,x=Object.prototype.hasOwnProperty,_=(e,t)=>x.call(e,t),S=Array.isArray,C=e=>"[object Map]"===$(e),E=e=>"[object Set]"===$(e),z=e=>e instanceof Date,A=e=>"function"==typeof e,L=e=>"string"==typeof e,R=e=>"symbol"==typeof e,T=e=>null!==e&&"object"==typeof e,O=e=>T(e)&&A(e.then)&&A(e.catch),I=Object.prototype.toString,$=e=>I.call(e),j=e=>"[object Object]"===$(e),M=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,U=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},F=/-(\w)/g,N=P((e=>e.replace(F,((e,t)=>t?t.toUpperCase():"")))),V=/\B([A-Z])/g,D=P((e=>e.replace(V,"-$1").toLowerCase())),B=P((e=>e.charAt(0).toUpperCase()+e.slice(1))),q=P((e=>e?`on${B(e)}`:"")),W=(e,t)=>!Object.is(e,t),H=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Z=(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 K;const Q=()=>K||(K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let Y;const X=[];class G{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&Y&&(this.parent=Y,this.index=(Y.scopes||(Y.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(X.push(this),Y=this)}off(){this.active&&(X.pop(),Y=X[X.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),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 ee=e=>{const t=new Set(e);return t.w=0,t.n=0,t},te=e=>(e.w&ie)>0,ne=e=>(e.n&ie)>0,oe=new WeakMap;let re=0,ie=1;const le=[];let se;const ae=Symbol(""),ce=Symbol("");class ue{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||Y)&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();if(!le.includes(this))try{return le.push(se=this),he.push(de),de=!0,ie=1<<++re,re<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ie})(this):pe(this),this.fn()}finally{re<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];te(r)&&!ne(r)?r.delete(e):t[n++]=r,r.w&=~ie,r.n&=~ie}t.length=n}})(this),ie=1<<--re,me(),le.pop();const e=le.length;se=e>0?le[e-1]:void 0}}stop(){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 me(){const e=he.pop();de=void 0===e||e}function ge(e,t,n){if(!ve())return;let o=oe.get(e);o||oe.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=ee()),be(r)}function ve(){return de&&void 0!==se}function be(e,t){let n=!1;re<=30?ne(e)||(e.n|=ie,n=!te(e)):n=!e.has(se),n&&(e.add(se),se.deps.push(e))}function ye(e,t,n,o,r,i){const l=oe.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&S(e))l.forEach(((e,t)=>{("length"===t||t>=o)&&s.push(e)}));else switch(void 0!==n&&s.push(l.get(n)),t){case"add":S(e)?M(n)&&s.push(l.get("length")):(s.push(l.get(ae)),C(e)&&s.push(l.get(ce)));break;case"delete":S(e)||(s.push(l.get(ae)),C(e)&&s.push(l.get(ce)));break;case"set":C(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(ee(e))}}function we(e,t){for(const t of S(e)?e:[...e])(t!==se||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const ke=e("__proto__,__v_isRef,__isVue"),xe=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(R)),_e=Ae(),Se=Ae(!1,!0),Ce=Ae(!0),Ee=ze();function ze(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ut(this);for(let e=0,t=this.length;e<t;e++)ge(n,0,e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(ut)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){fe();const n=ut(this)[t].apply(this,e);return me(),n}})),e}function Ae(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?ot:nt:t?tt:et).get(n))return n;const i=S(n);if(!e&&i&&_(Ee,o))return Reflect.get(Ee,o,r);const l=Reflect.get(n,o,r);return(R(o)?xe.has(o):ke(o))?l:(e||ge(n,0,o),t?l:gt(l)?i&&M(o)?l:l.value:T(l)?e?it(l):rt(l):l)}}function Le(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&!at(o)&&(o=ut(o),i=ut(i),!S(t)&&gt(i)&&!gt(o)))return i.value=o,!0;const l=S(t)&&M(n)?Number(n)<t.length:_(t,n),s=Reflect.set(t,n,o,r);return t===ut(r)&&(l?W(o,i)&&ye(t,"set",n,o):ye(t,"add",n,o)),s}}const Re={get:_e,set:Le(),deleteProperty:function(e,t){const n=_(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&ye(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return R(t)&&xe.has(t)||ge(e,0,t),n},ownKeys:function(e){return ge(e,0,S(e)?"length":ae),Reflect.ownKeys(e)}},Te={get:Ce,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Oe=k({},Re,{get:Se,set:Le(!0)}),Ie=e=>e,$e=e=>Reflect.getPrototypeOf(e);function je(e,t,n=!1,o=!1){const r=ut(e=e.__v_raw),i=ut(t);t!==i&&!n&&ge(r,0,t),!n&&ge(r,0,i);const{has:l}=$e(r),s=o?Ie:n?ht:dt;return l.call(r,t)?s(e.get(t)):l.call(r,i)?s(e.get(i)):void(e!==r&&e.get(t))}function Me(e,t=!1){const n=this.__v_raw,o=ut(n),r=ut(e);return e!==r&&!t&&ge(o,0,e),!t&&ge(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function Ue(e,t=!1){return e=e.__v_raw,!t&&ge(ut(e),0,ae),Reflect.get(e,"size",e)}function Pe(e){e=ut(e);const t=ut(this);return $e(t).has.call(t,e)||(t.add(e),ye(t,"add",e,e)),this}function Fe(e,t){t=ut(t);const n=ut(this),{has:o,get:r}=$e(n);let i=o.call(n,e);i||(e=ut(e),i=o.call(n,e));const l=r.call(n,e);return n.set(e,t),i?W(t,l)&&ye(n,"set",e,t):ye(n,"add",e,t),this}function Ne(e){const t=ut(this),{has:n,get:o}=$e(t);let r=n.call(t,e);r||(e=ut(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&ye(t,"delete",e,void 0),i}function Ve(){const e=ut(this),t=0!==e.size,n=e.clear();return t&&ye(e,"clear",void 0,void 0),n}function De(e,t){return function(n,o){const r=this,i=r.__v_raw,l=ut(i),s=t?Ie:e?ht:dt;return!e&&ge(l,0,ae),i.forEach(((e,t)=>n.call(o,s(e),s(t),r)))}}function Be(e,t,n){return function(...o){const r=this.__v_raw,i=ut(r),l=C(i),s="entries"===e||e===Symbol.iterator&&l,a="keys"===e&&l,c=r[e](...o),u=n?Ie:t?ht:dt;return!t&&ge(i,0,a?ce:ae),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function qe(e){return function(...t){return"delete"!==e&&this}}function We(){const e={get(e){return je(this,e)},get size(){return Ue(this)},has:Me,add:Pe,set:Fe,delete:Ne,clear:Ve,forEach:De(!1,!1)},t={get(e){return je(this,e,!1,!0)},get size(){return Ue(this)},has:Me,add:Pe,set:Fe,delete:Ne,clear:Ve,forEach:De(!1,!0)},n={get(e){return je(this,e,!0)},get size(){return Ue(this,!0)},has(e){return Me.call(this,e,!0)},add:qe("add"),set:qe("set"),delete:qe("delete"),clear:qe("clear"),forEach:De(!0,!1)},o={get(e){return je(this,e,!0,!0)},get size(){return Ue(this,!0)},has(e){return Me.call(this,e,!0)},add:qe("add"),set:qe("set"),delete:qe("delete"),clear:qe("clear"),forEach:De(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Be(r,!1,!1),n[r]=Be(r,!0,!1),t[r]=Be(r,!1,!0),o[r]=Be(r,!0,!0)})),[e,n,t,o]}const[He,Ze,Je,Ke]=We();function Qe(e,t){const n=t?e?Ke:Je:e?Ze:He;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(_(n,o)&&o in t?n:t,o,r)}const Ye={get:Qe(!1,!1)},Xe={get:Qe(!1,!0)},Ge={get:Qe(!0,!1)},et=new WeakMap,tt=new WeakMap,nt=new WeakMap,ot=new WeakMap;function rt(e){return e&&e.__v_isReadonly?e:lt(e,!1,Re,Ye,et)}function it(e){return lt(e,!0,Te,Ge,nt)}function lt(e,t,n,o,r){if(!T(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const l=(s=e).__v_skip||!Object.isExtensible(s)?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=>$(e).slice(8,-1))(s));var s;if(0===l)return e;const a=new Proxy(e,2===l?o:n);return r.set(e,a),a}function st(e){return at(e)?st(e.__v_raw):!(!e||!e.__v_isReactive)}function at(e){return!(!e||!e.__v_isReadonly)}function ct(e){return st(e)||at(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function pt(e){return Z(e,"__v_skip",!0),e}const dt=e=>T(e)?rt(e):e,ht=e=>T(e)?it(e):e;function ft(e){ve()&&((e=ut(e)).dep||(e.dep=ee()),be(e.dep))}function mt(e,t){(e=ut(e)).dep&&we(e.dep)}function gt(e){return Boolean(e&&!0===e.__v_isRef)}function vt(e){return n=!1,gt(t=e)?t:new bt(t,n);var t,n}class bt{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ut(e),this._value=t?e:dt(e)}get value(){return ft(this),this._value}set value(e){e=this._shallow?e:ut(e),W(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:dt(e),mt(this))}}const yt={get:(e,t,n)=>{return gt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return gt(r)&&!gt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function wt(e){return st(e)?e:new Proxy(e,yt)}class kt{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new ue(e,(()=>{this._dirty||(this._dirty=!0,mt(this))})),this.__v_isReadonly=n}get value(){const e=ut(this);return ft(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function xt(e,t){let n,o;const r=A(e);return r?(n=e,o=g):(n=e.get,o=e.set),new kt(n,o,r||!o)}Promise.resolve(),new Set,new Map;let _t,St=[],Ct=!1;function Et(e,...t){_t?_t.emit(e,...t):Ct||St.push({event:e,args:t})}function zt(e,t){var n,o;_t=e,_t?(_t.enabled=!0,St.forEach((({event:e,args:t})=>_t.emit(e,...t))),St=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(o=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===o?void 0:o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{zt(e,t)})),setTimeout((()=>{_t||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ct=!0,St=[])}),3e3)):(Ct=!0,St=[])}const At=Tt("component:added"),Lt=Tt("component:updated"),Rt=Tt("component:removed");function Tt(e){return t=>{Et(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Ot(e,t,...n){const o=e.vnode.props||f;let r=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in o){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:i}=o[e]||f;i?r=n.map((e=>e.trim())):t&&(r=n.map(J))}let s;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Et("component:emit",e.appContext.app,e,t,n)}(e,t,r);let a=o[s=q(t)]||o[s=q(N(t))];!a&&i&&(a=o[s=q(D(t))]),a&&yo(a,e,6,r);const c=o[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,yo(c,e,6,r)}}function It(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let l={};return i?(S(i)?i.forEach((e=>l[e]=null)):k(l,i),o.set(e,l),l):(o.set(e,null),null)}function $t(e,t){return!(!e||!y(t))&&(t=t.slice(2).replace(/Once$/,""),_(e,t[0].toLowerCase()+t.slice(1))||_(e,D(t))||_(e,t))}let jt=null,Mt=null;function Ut(e){const t=jt;return jt=e,Mt=e&&e.type.__scopeId||null,t}function Pt(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const b=Ut(e);try{if(4&n.shapeFlag){const e=r||o;g=Gn(u.call(e,e,p,i,h,d,f)),v=a}else{const e=t;g=Gn(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:Ft(a)}}catch(t){jn.length=0,wo(t,e,1),g=Kn(In)}let y=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=y;e.length&&7&t&&(l&&e.some(w)&&(v=Nt(v,l)),y=Qn(y,v))}return n.dirs&&(y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),g=y,Ut(b),g}const Ft=e=>{let t;for(const n in e)("class"===n||"style"===n||y(n))&&((t||(t={}))[n]=e[n]);return t},Nt=(e,t)=>{const n={};for(const o in e)w(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Vt(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!$t(n,i))return!0}return!1}function Dt(e,t,n=!1){const o=ao||jt;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&A(t)?t.call(o.proxy):t}}const Bt=[Function,Array],qt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Bt,onEnter:Bt,onAfterEnter:Bt,onEnterCancelled:Bt,onBeforeLeave:Bt,onLeave:Bt,onAfterLeave:Bt,onLeaveCancelled:Bt,onBeforeAppear:Bt,onAppear:Bt,onAfterAppear:Bt,onAppearCancelled:Bt},setup(e,{slots:t}){const n=co(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tn((()=>{e.isMounted=!0})),nn((()=>{e.isUnmounting=!0})),e}();let r;return()=>{const i=t.default&&Qt(t.default(),!0);if(!i||!i.length)return;const l=ut(e),{mode:s}=l,a=i[0];if(o.isLeaving)return Zt(a);const c=Jt(a);if(!c)return Zt(a);const u=Ht(c,l,o,n);Kt(c,u);const p=n.subTree,d=p&&Jt(p);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(d&&d.type!==In&&(!qn(c,d)||h)){const e=Ht(d,l,o,n);if(Kt(d,e),"out-in"===s)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},Zt(a);"in-out"===s&&c.type!==In&&(e.delayLeave=(e,t,n)=>{Wt(o,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return a}}};function Wt(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ht(e,t,n,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:s,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:d,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:b}=t,y=String(e.key),w=Wt(n,e),k=(e,t)=>{e&&yo(e,o,9,t)},x={mode:i,persisted:l,beforeEnter(t){let o=s;if(!n.isMounted){if(!r)return;o=m||s}t._leaveCb&&t._leaveCb(!0);const i=w[y];i&&qn(e,i)&&i.el._leaveCb&&i.el._leaveCb(),k(o,[t])},enter(e){let t=a,o=c,i=u;if(!n.isMounted){if(!r)return;t=g||a,o=v||c,i=b||u}let l=!1;const s=e._enterCb=t=>{l||(l=!0,k(t?i:o,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();k(p,[t]);let i=!1;const l=t._leaveCb=n=>{i||(i=!0,o(),k(n?f:h,[t]),t._leaveCb=void 0,w[r]===e&&delete w[r])};w[r]=e,d?(d(t,l),d.length<=1&&l()):l()},clone:e=>Ht(e,t,n,o)};return x}function Zt(e){if(Gt(e))return(e=Qn(e)).children=null,e}function Jt(e){return Gt(e)?e.children?e.children[0]:void 0:e}function Kt(e,t){6&e.shapeFlag&&e.component?Kt(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Qt(e,t=!1){let n=[],o=0;for(let r=0;r<e.length;r++){const i=e[r];i.type===Tn?(128&i.patchFlag&&o++,n=n.concat(Qt(i.children,t))):(t||i.type!==In)&&n.push(i)}if(o>1)for(let e=0;e<n.length;e++)n[e].patchFlag=-2;return n}function Yt(e){return A(e)?{setup:e,name:e.name}:e}const Xt=e=>!!e.type.__asyncLoader,Gt=e=>e.type.__isKeepAlive;RegExp,RegExp;const en=e=>(t,n=ao)=>(!fo||"sp"===e)&&function(e,t,n=ao,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;fe(),uo(n);const r=yo(t,n,e,o);return po(),me(),r});return o?r.unshift(i):r.push(i),i}}(e,t,n),tn=(en("bm"),en("m")),nn=(en("bu"),en("u"),en("bum")),on=en("um");function rn(e,t,n,o){const[r,i]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(U(a))continue;const c=t[a];let u;r&&_(r,u=N(a))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:$t(e.emitsOptions,a)||c!==o[a]&&(o[a]=c,s=!0)}if(i){const t=ut(n),o=l||f;for(let l=0;l<i.length;l++){const s=i[l];n[s]=ln(r,t,s,o[s],e,!_(o,s))}}return s}function ln(e,t,n,o,r,i){const l=e[n];if(null!=l){const e=_(l,"default");if(e&&void 0===o){const e=l.default;if(l.type!==Function&&A(e)){const{propsDefaults:i}=r;n in i?o=i[n]:(uo(r),o=i[n]=e.call(null,t),po())}else o=e}l[0]&&(i&&!e?o=!1:!l[1]||""!==o&&o!==D(n)||(o=!0))}return o}function sn(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,l={},s=[];if(!i)return o.set(e,m),m;if(S(i))for(let e=0;e<i.length;e++){const t=N(i[e]);an(t)&&(l[t]=f)}else if(i)for(const e in i){const t=N(e);if(an(t)){const n=i[e],o=l[t]=S(n)||A(n)?{type:n}:n;if(o){const e=pn(Boolean,o.type),n=pn(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||_(o,"default"))&&s.push(t)}}}const a=[l,s];return o.set(e,a),a}function an(e){return"$"!==e[0]}function cn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function un(e,t){return cn(e)===cn(t)}function pn(e,t){return S(t)?t.findIndex((t=>un(t,e))):A(t)&&un(t,e)?0:-1}en("sp"),en("rtg"),en("rtc");const dn=e=>"_"===e[0]||"$stable"===e,hn=e=>S(e)?e.map(Gn):[Gn(e)],fn=(e,t,n)=>{const o=function(e,t=jt,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Fn(-1);const r=Ut(t),i=e(...n);return Ut(r),o._d&&Fn(1),__VUE_PROD_DEVTOOLS__&&Lt(t),i};return o._n=!0,o._c=!0,o._d=!0,o}(((...e)=>hn(t(...e))),n);return o._c=!1,o},mn=(e,t,n)=>{const o=e._ctx;for(const n in e){if(dn(n))continue;const r=e[n];if(A(r))t[n]=fn(0,r,o);else if(null!=r){const e=hn(r);t[n]=()=>e}}},gn=(e,t)=>{const n=hn(t);e.slots.default=()=>n};function vn(e,t){if(null===jt)return e;const n=jt.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[r,i,l,s=f]=t[e];A(r)&&(r={mounted:r,updated:r}),r.deep&&qo(i),o.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:s})}return e}function bn(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let l=0;l<r.length;l++){const s=r[l];i&&(s.oldValue=i[l].value);let a=s.dir[o];a&&(fe(),yo(a,n,8,[e.el,s,e,t]),me())}}function yn(){return{app:null,config:{isNativeTag:v,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 kn(e,t){return function(n,o=null){null==o||T(o)||(o=null);const r=yn(),i=new Set;let l=!1;const s=r.app={_uid:wn++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:Ho,get config(){return r.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&A(e.install)?(i.add(e),e.install(s,...t)):A(e)&&(i.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(i,a,c){if(!l){const u=Kn(n,o);return u.appContext=r,a&&t?t(u,i):e(u,i,c),l=!0,s._container=i,i.__vue_app__=s,__VUE_PROD_DEVTOOLS__&&(s._instance=u.component,function(e,t){Et("app:init",e,t,{Fragment:Tn,Text:On,Comment:In,Static:$n})}(s,Ho)),vo(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(e){Et("app:unmount",e)}(s)),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s)};return s}}const xn=function(e,t){t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):Uo(e,Lo,Ao,Ro)};function _n(e,t){"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Q().__VUE_PROD_DEVTOOLS__=!1);const n=Q();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&zt(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:r,patchProp:i,createElement:l,createText:s,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:d,setScopeId:h=g,cloneNode:v,insertStaticContent:b}=e,y=(e,t,n,o=null,r=null,i=null,l=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!qn(e,t)&&(o=te(e),J(e,r,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case On:w(e,t,n,o);break;case In:x(e,t,n,o);break;case $n:null==e&&S(t,n,o,l);break;case Tn:I(e,t,n,o,r,i,l,s,a);break;default:1&p?C(e,t,n,o,r,i,l,s,a):6&p?$(e,t,n,o,r,i,l,s,a):(64&p||128&p)&&c.process(e,t,n,o,r,i,l,s,a,oe)}null!=u&&r&&Sn(u,e&&e.ref,i,t||e,!t)},w=(e,t,n,r)=>{if(null==e)o(t.el=s(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},x=(e,t,n,r)=>{null==e?o(t.el=a(t.children||""),n,r):t.el=e.el},S=(e,t,n,o)=>{[e.el,e.anchor]=b(e.children,t,n,o)},C=(e,t,n,o,r,i,l,s,a)=>{l=l||"svg"===t.type,null==e?E(t,n,o,r,i,l,s,a):L(e,t,r,i,l,s,a)},E=(e,t,n,r,s,a,c,p)=>{let d,h;const{type:f,props:m,shapeFlag:g,transition:b,patchFlag:y,dirs:w}=e;if(e.el&&void 0!==v&&-1===y)d=e.el=v(e.el);else{if(d=e.el=l(e.type,a,m&&m.is,m),8&g?u(d,e.children):16&g&&A(e.children,d,null,r,s,a&&"foreignObject"!==f,c,p),w&&bn(e,null,r,"created"),m){for(const t in m)"value"===t||U(t)||i(d,t,null,m[t],a,e.children,r,s,ee);"value"in m&&i(d,"value",null,m.value),(h=m.onVnodeBeforeMount)&&Cn(h,r,e)}z(d,e,e.scopeId,c,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1})),w&&bn(e,null,r,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&b&&!b.persisted;k&&b.beforeEnter(d),o(d,t,n),((h=m&&m.onVnodeMounted)||k||w)&&xn((()=>{h&&Cn(h,r,e),k&&b.enter(d),w&&bn(e,null,r,"mounted")}),s)},z=(e,t,n,o,r)=>{if(n&&h(e,n),o)for(let t=0;t<o.length;t++)h(e,o[t]);if(r&&t===r.subTree){const t=r.vnode;z(e,t,t.scopeId,t.slotScopeIds,r.parent)}},A=(e,t,n,o,r,i,l,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?eo(e[c]):Gn(e[c]);y(null,a,t,n,o,r,i,l,s)}},L=(e,t,n,o,r,l,s)=>{const a=t.el=e.el;let{patchFlag:c,dynamicChildren:p,dirs:d}=t;c|=16&e.patchFlag;const h=e.props||f,m=t.props||f;let g;(g=m.onVnodeBeforeUpdate)&&Cn(g,n,t,e),d&&bn(t,e,n,"beforeUpdate");const v=r&&"foreignObject"!==t.type;if(p?R(e.dynamicChildren,p,a,n,o,v,l):s||V(e,t,a,null,n,o,v,l,!1),c>0){if(16&c)T(a,t,h,m,n,o,r);else if(2&c&&h.class!==m.class&&i(a,"class",null,m.class,r),4&c&&i(a,"style",h.style,m.style,r),8&c){const l=t.dynamicProps;for(let t=0;t<l.length;t++){const s=l[t],c=h[s],u=m[s];u===c&&"value"!==s||i(a,s,c,u,r,e.children,n,o,ee)}}1&c&&e.children!==t.children&&u(a,t.children)}else s||null!=p||T(a,t,h,m,n,o,r);((g=m.onVnodeUpdated)||d)&&xn((()=>{g&&Cn(g,n,t,e),d&&bn(t,e,n,"updated")}),o)},R=(e,t,n,o,r,i,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],u=a.el&&(a.type===Tn||!qn(a,c)||70&a.shapeFlag)?p(a.el):n;y(a,c,u,null,o,r,i,l,!0)}},T=(e,t,n,o,r,l,s)=>{if(n!==o){for(const a in o){if(U(a))continue;const c=o[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,s,t.children,r,l,ee)}if(n!==f)for(const a in n)U(a)||a in o||i(e,a,n[a],null,s,t.children,r,l,ee);"value"in o&&i(e,"value",n.value,o.value)}},I=(e,t,n,r,i,l,a,c,u)=>{const p=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(o(p,n,r),o(d,n,r),A(t.children,n,d,i,l,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(R(e.dynamicChildren,f,n,i,l,a,c),(null!=t.key||i&&t===i.subTree)&&En(e,t,!0)):V(e,t,n,d,i,l,a,c,u)},$=(e,t,n,o,r,i,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,l,a):j(t,n,o,r,i,l,a):M(e,t,a)},j=(e,t,n,o,r,i,l)=>{const s=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||lo,i={uid:so++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,update:null,scope:new G(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sn(o,r),emitsOptions:It(o,r),emit:null,emitted:null,propsDefaults:f,inheritAttrs:o.inheritAttrs,ctx:f,data:f,props:f,attrs:f,slots:f,refs:f,setupState:f,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};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ot.bind(null,i),e.ce&&e.ce(i),i}(e,o,r);if(Gt(e)&&(s.ctx.renderer=oe),function(e,t=!1){fo=t;const{props:n,children:o}=e.vnode,r=ho(e);(function(e,t,n,o=!1){const r={},i={};Z(i,Wn,1),e.propsDefaults=Object.create(null),rn(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:lt(r,!1,Oe,Xe,tt):e.type.props?e.props=r:e.props=i,e.attrs=i})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=ut(t),Z(t,"_",n)):mn(t,e.slots={})}else e.slots={},t&&gn(e,t);Z(e.slots,Wn,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=pt(new Proxy(e.ctx,io));const{setup:o}=n;if(o){const n=e.setupContext=o.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)=>(ge(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;uo(e),fe();const r=bo(o,e,0,[e.props,n]);if(me(),po(),O(r)){if(r.then(po,po),t)return r.then((n=>{mo(e,n,t)})).catch((t=>{wo(t,e,0)}));e.asyncDep=r}else mo(e,r,t)}else go(e,t)}(e,t):void 0;fo=!1}(s),s.asyncDep){if(r&&r.registerDep(s,P),!e.el){const e=s.subTree=Kn(In);x(null,e,t,n)}}else P(s,e,t,n,r,i,l)},M=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:l,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!s||s&&s.$stable)||o!==l&&(o?!l||Vt(o,l,c):!!l);if(1024&a)return!0;if(16&a)return o?Vt(o,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]!==o[n]&&!$t(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void F(o,t,n);o.next=t,function(e){const t=_o.indexOf(e);t>So&&_o.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},P=(e,t,n,o,r,i,l)=>{const s=new ue((()=>{if(e.isMounted){let t,{next:n,bu:o,u:a,parent:c,vnode:u}=e,d=n;s.allowRecurse=!1,n?(n.el=u.el,F(e,n,l)):n=u,o&&H(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Cn(t,c,n,u),s.allowRecurse=!0;const h=Pt(e),f=e.subTree;e.subTree=h,y(f,h,p(f.el),te(f),e,r,i),n.el=h.el,null===d&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,h.el),a&&xn(a,r),(t=n.props&&n.props.onVnodeUpdated)&&xn((()=>Cn(t,c,n,u)),r),__VUE_PROD_DEVTOOLS__&&Lt(e)}else{let l;const{el:a,props:c}=t,{bm:u,m:p,parent:d}=e,h=Xt(t);if(s.allowRecurse=!1,u&&H(u),!h&&(l=c&&c.onVnodeBeforeMount)&&Cn(l,d,t),s.allowRecurse=!0,a&&ie){const n=()=>{e.subTree=Pt(e),ie(a,e.subTree,e,r,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=Pt(e);y(null,l,n,o,e,r,i),t.el=l.el}if(p&&xn(p,r),!h&&(l=c&&c.onVnodeMounted)){const e=t;xn((()=>Cn(l,d,e)),r)}256&t.shapeFlag&&e.a&&xn(e.a,r),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&At(e),t=n=o=null}}),(()=>jo(e.update)),e.scope),a=e.update=s.run.bind(s);a.id=e.uid,s.allowRecurse=a.allowRecurse=!0,a()},F=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,s=ut(r),[a]=e.propsOptions;let c=!1;if(!(o||l>0)||16&l){let o;rn(e,t,r,i)&&(c=!0);for(const i in s)t&&(_(t,i)||(o=D(i))!==i&&_(t,o))||(a?!n||void 0===n[i]&&void 0===n[o]||(r[i]=ln(a,s,i,void 0,e,!0)):delete r[i]);if(i!==s)for(const e in i)t&&_(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let l=n[o];const u=t[l];if(a)if(_(i,l))u!==i[l]&&(i[l]=u,c=!0);else{const t=N(l);r[t]=ln(a,s,t,u,e,!1)}else u!==i[l]&&(i[l]=u,c=!0)}}c&&ye(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,l=f;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(k(r,t),n||1!==e||delete r._):(i=!t.$stable,mn(t,r)),l=t}else t&&(gn(e,t),l={default:1});if(i)for(const e in r)dn(e)||e in l||delete r[e]})(e,t.children,n),fe(),Po(void 0,e.update),me()},V=(e,t,n,o,r,i,l,s,a=!1)=>{const c=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void q(c,d,n,o,r,i,l,s,a);if(256&h)return void B(c,d,n,o,r,i,l,s,a)}8&f?(16&p&&ee(c,r,i),d!==c&&u(n,d)):16&p?16&f?q(c,d,n,o,r,i,l,s,a):ee(c,r,i,!0):(8&p&&u(n,""),16&f&&A(d,n,o,r,i,l,s,a))},B=(e,t,n,o,r,i,l,s,a)=>{t=t||m;const c=(e=e||m).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const o=t[d]=a?eo(t[d]):Gn(t[d]);y(e[d],o,n,null,r,i,l,s,a)}c>u?ee(e,r,i,!0,!1,p):A(t,n,o,r,i,l,s,a,p)},q=(e,t,n,o,r,i,l,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const o=e[c],u=t[c]=a?eo(t[c]):Gn(t[c]);if(!qn(o,u))break;y(o,u,n,null,r,i,l,s,a),c++}for(;c<=p&&c<=d;){const o=e[p],c=t[d]=a?eo(t[d]):Gn(t[d]);if(!qn(o,c))break;y(o,c,n,null,r,i,l,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:o;for(;c<=d;)y(null,t[c]=a?eo(t[c]):Gn(t[c]),n,p,r,i,l,s,a),c++}}else if(c>d)for(;c<=p;)J(e[c],r,i,!0),c++;else{const h=c,f=c,g=new Map;for(c=f;c<=d;c++){const e=t[c]=a?eo(t[c]):Gn(t[c]);null!=e.key&&g.set(e.key,c)}let v,b=0;const w=d-f+1;let k=!1,x=0;const _=new Array(w);for(c=0;c<w;c++)_[c]=0;for(c=h;c<=p;c++){const o=e[c];if(b>=w){J(o,r,i,!0);continue}let u;if(null!=o.key)u=g.get(o.key);else for(v=f;v<=d;v++)if(0===_[v-f]&&qn(o,t[v])){u=v;break}void 0===u?J(o,r,i,!0):(_[u-f]=c+1,u>=x?x=u:k=!0,y(o,t[u],n,null,r,i,l,s,a),b++)}const S=k?function(e){const t=e.slice(),n=[0];let o,r,i,l,s;const a=e.length;for(o=0;o<a;o++){const a=e[o];if(0!==a){if(r=n[n.length-1],e[r]<a){t[o]=r,n.push(o);continue}for(i=0,l=n.length-1;i<l;)s=i+l>>1,e[n[s]]<a?i=s+1:l=s;a<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}(_):m;for(v=S.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:o;0===_[c]?y(null,p,n,d,r,i,l,s,a):k&&(v<0||c!==S[v]?W(p,n,d,2):v--)}}},W=(e,t,n,r,i=null)=>{const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)W(e.component.subTree,t,n,r);else if(128&u)e.suspense.move(t,n,r);else if(64&u)s.move(e,t,n,oe);else if(s!==Tn)if(s!==$n)if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(l),o(l,t,n),xn((()=>a.enter(l)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=a,s=()=>o(l,t,n),c=()=>{e(l,(()=>{s(),i&&i()}))};r?r(l,s,c):c()}else o(l,t,n);else(({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=d(e),o(e,n,r),e=i;o(t,n,r)})(e,t,n);else{o(l,t,n);for(let e=0;e<c.length;e++)W(c[e],t,n,r);o(e.anchor,t,n)}},J=(e,t,n,o=!1,r=!1)=>{const{type:i,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&Sn(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Xt(e);let m;if(f&&(m=l&&l.onVnodeBeforeUnmount)&&Cn(m,t,e),6&u)X(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&bn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,oe,o):c&&(i!==Tn||p>0&&64&p)?ee(c,t,n,!1,!0):(i===Tn&&384&p||!r&&16&u)&&ee(a,t,n),o&&K(e)}(f&&(m=l&&l.onVnodeUnmounted)||h)&&xn((()=>{m&&Cn(m,t,e),h&&bn(e,null,t,"unmounted")}),n)},K=e=>{const{type:t,el:n,anchor:o,transition:i}=e;if(t===Tn)return void Y(n,o);if(t===$n)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),r(e),e=n;r(t)})(e);const l=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,r=()=>t(n,l);o?o(e.el,l,r):r()}else l()},Y=(e,t)=>{let n;for(;e!==t;)n=d(e),r(e),e=n;r(t)},X=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:l,um:s}=e;o&&H(o),r.stop(),i&&(i.active=!1,J(l,e,t,n)),s&&xn(s,t),xn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Rt(e)},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let l=i;l<e.length;l++)J(e[l],t,n,o,r)},te=e=>6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Fo(),t._vnode=e},oe={p:y,um:J,m:W,r:K,mt:j,mc:A,pc:V,pbc:R,n:te,o:e};let re,ie;return t&&([re,ie]=t(oe)),{render:ne,hydrate:re,createApp:kn(ne,re)}}function Sn(e,t,n,o,r=!1){if(S(e))return void e.forEach(((e,i)=>Sn(e,t&&(S(t)?t[i]:t),n,o,r)));if(Xt(o)&&!r)return;const i=4&o.shapeFlag?vo(o.component)||o.component.proxy:o.el,l=r?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===f?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(L(c)?(u[c]=null,_(p,c)&&(p[c]=null)):gt(c)&&(c.value=null)),L(a)){const e=()=>{u[a]=l,_(p,a)&&(p[a]=l)};l?(e.id=-1,xn(e,n)):e()}else if(gt(a)){const e=()=>{a.value=l};l?(e.id=-1,xn(e,n)):e()}else A(a)&&bo(a,s,12,[l,u])}function Cn(e,t,n,o=null){yo(e,t,7,[n,o])}function En(e,t,n=!1){const o=e.children,r=t.children;if(S(o)&&S(r))for(let e=0;e<o.length;e++){const t=o[e];let i=r[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=r[e]=eo(r[e]),i.el=t.el),n||En(t,i))}}const zn="components";function An(e,t){return function(e,t,n=!0,o=!1){const r=jt||ao;if(r){const n=r.type;if(e===zn){const e=function(e){return A(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===N(t)||e===B(N(t))))return n}const i=Rn(r[e]||n[e],t)||Rn(r.appContext[e],t);return!i&&o?n:i}}(zn,e,!0,t)||e}const Ln=Symbol();function Rn(e,t){return e&&(e[t]||e[N(t)]||e[B(N(t))])}const Tn=Symbol(void 0),On=Symbol(void 0),In=Symbol(void 0),$n=Symbol(void 0),jn=[];let Mn=null;function Un(e=!1){jn.push(Mn=e?null:[])}let Pn=1;function Fn(e){Pn+=e}function Nn(e){return e.dynamicChildren=Pn>0?Mn||m:null,jn.pop(),Mn=jn[jn.length-1]||null,Pn>0&&Mn&&Mn.push(e),e}function Vn(e,t,n,o,r,i){return Nn(Jn(e,t,n,o,r,i,!0))}function Dn(e,t,n,o,r){return Nn(Kn(e,t,n,o,r,!0))}function Bn(e){return!!e&&!0===e.__v_isVNode}function qn(e,t){return e.type===t.type&&e.key===t.key}const Wn="__vInternal",Hn=({key:e})=>null!=e?e:null,Zn=({ref:e})=>null!=e?L(e)||gt(e)||A(e)?{i:jt,r:e}:e:null;function Jn(e,t=null,n=null,o=0,r=null,i=(e===Tn?0:1),l=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hn(t),ref:t&&Zn(t),scopeId:Mt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return s?(to(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=L(n)?8:16),Pn>0&&!l&&Mn&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Mn.push(a),a}const Kn=function(e,t=null,n=null,o=0,r=null,l=!1){if(e&&e!==Ln||(e=In),Bn(e)){const o=Qn(e,t,!0);return n&&to(o,n),o}if(s=e,A(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=function(e){return e?ct(e)||Wn in e?k({},e):e:null}(t);let{class:e,style:n}=t;e&&!L(e)&&(t.class=c(e)),T(n)&&(ct(n)&&!S(n)&&(n=k({},n)),t.style=i(n))}var s;return Jn(e,t,n,o,r,L(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:T(e)?4:A(e)?2:0,l,!0)};function Qn(e,t,n=!1){const{props:o,ref:r,patchFlag:l,children:s}=e,a=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=c([t.class,o.class]));else if("style"===e)t.style=i([t.style,o.style]);else if(y(e)){const n=t[e],r=o[e];n===r||S(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Hn(a),ref:t&&t.ref?n&&r?S(r)?r.concat(Zn(t)):[r,Zn(t)]:Zn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Tn?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qn(e.ssContent),ssFallback:e.ssFallback&&Qn(e.ssFallback),el:e.el,anchor:e.anchor}}function Yn(e=" ",t=0){return Kn(On,null,e,t)}function Xn(e="",t=!1){return t?(Un(),Dn(In,null,e)):Kn(In,null,e)}function Gn(e){return null==e||"boolean"==typeof e?Kn(In):S(e)?Kn(Tn,null,e.slice()):"object"==typeof e?eo(e):Kn(On,null,String(e))}function eo(e){return null===e.el||e.memo?e:Qn(e)}function to(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(S(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),to(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Wn in t?3===o&&jt&&(1===jt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=jt}}else A(t)?(t={default:t,_ctx:jt},n=32):(t=String(t),64&o?(n=16,t=[Yn(t)]):n=8);e.children=t,e.shapeFlag|=n}function no(e,t,n,o){let r;const i=n&&n[o];if(S(e)||L(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i&&i[n])}else if(T(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,l=n.length;o<l;o++){const l=n[o];r[o]=t(e[l],l,o,i&&i[o])}}else r=[];return n&&(n[o]=r),r}const oo=e=>e?ho(e)?vo(e)||e.proxy:oo(e.parent):null,ro=k(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=>oo(e.parent),$root:e=>oo(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>()=>jo(e.update),$nextTick:e=>$o.bind(e.proxy),$watch:e=>g}),io={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:l,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(o!==f&&_(o,t))return l[t]=1,o[t];if(r!==f&&_(r,t))return l[t]=2,r[t];if((c=e.propsOptions[0])&&_(c,t))return l[t]=3,i[t];if(n!==f&&_(n,t))return l[t]=4,n[t];l[t]=0}}const u=ro[t];let p,d;return u?("$attrs"===t&&ge(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==f&&_(n,t)?(l[t]=4,n[t]):(d=a.config.globalProperties,_(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==f&&_(r,t))r[t]=n;else if(o!==f&&_(o,t))o[t]=n;else if(_(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},l){let s;return!!n[l]||e!==f&&_(e,l)||t!==f&&_(t,l)||(s=i[0])&&_(s,l)||_(o,l)||_(ro,l)||_(r.config.globalProperties,l)}},lo=yn();let so=0;let ao=null;const co=()=>ao||jt,uo=e=>{ao=e,e.scope.on()},po=()=>{ao&&ao.scope.off(),ao=null};function ho(e){return 4&e.vnode.shapeFlag}let fo=!1;function mo(e,t,n){A(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:T(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=wt(t)),go(e,n)}function go(e,t,n){const o=e.type;e.render||(e.render=o.render||g)}function vo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(wt(pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ro?ro[n](e):void 0}))}function bo(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){wo(e,t,n)}return r}function yo(e,t,n,o){if(A(e)){const r=bo(e,t,n,o);return r&&O(r)&&r.catch((e=>{wo(e,t,n)})),r}const r=[];for(let i=0;i<e.length;i++)r.push(yo(e[i],t,n,o));return r}function wo(e,t,n,o=!0){if(t&&t.vnode,t){let o=t.parent;const r=t.proxy,i=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const l=t.appContext.config.errorHandler;if(l)return void bo(l,null,10,[e,r,i])}!function(e,t,n,o=!0){console.error(e)}(e,0,0,o)}let ko=!1,xo=!1;const _o=[];let So=0;const Co=[];let Eo=null,zo=0;const Ao=[];let Lo=null,Ro=0;const To=Promise.resolve();let Oo=null,Io=null;function $o(e){const t=Oo||To;return e?t.then(this?e.bind(this):e):t}function jo(e){_o.length&&_o.includes(e,ko&&e.allowRecurse?So+1:So)||e===Io||(null==e.id?_o.push(e):_o.splice(function(e){let t=So+1,n=_o.length;for(;t<n;){const o=t+n>>>1;No(_o[o])<e?t=o+1:n=o}return t}(e.id),0,e),Mo())}function Mo(){ko||xo||(xo=!0,Oo=To.then(Vo))}function Uo(e,t,n,o){S(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),Mo()}function Po(e,t=null){if(Co.length){for(Io=t,Eo=[...new Set(Co)],Co.length=0,zo=0;zo<Eo.length;zo++)Eo[zo]();Eo=null,zo=0,Io=null,Po(e,t)}}function Fo(e){if(Ao.length){const e=[...new Set(Ao)];if(Ao.length=0,Lo)return void Lo.push(...e);for(Lo=e,Lo.sort(((e,t)=>No(e)-No(t))),Ro=0;Ro<Lo.length;Ro++)Lo[Ro]();Lo=null,Ro=0}}const No=e=>null==e.id?1/0:e.id;function Vo(e){xo=!1,ko=!0,Po(e),_o.sort(((e,t)=>No(e)-No(t)));try{for(So=0;So<_o.length;So++){const e=_o[So];e&&!1!==e.active&&bo(e,null,14)}}finally{So=0,_o.length=0,Fo(),ko=!1,Oo=null,(_o.length||Co.length||Ao.length)&&Vo(e)}}const Do={};function Bo(e,t,n){return function(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:l}=f){const s=ao;let a,c,u=!1,p=!1;if(gt(e)?(a=()=>e.value,u=!!e._shallow):st(e)?(a=()=>e,o=!0):S(e)?(p=!0,u=e.some(st),a=()=>e.map((e=>gt(e)?e.value:st(e)?qo(e):A(e)?bo(e,s,2):void 0))):a=A(e)?t?()=>bo(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),yo(e,s,3,[d])}:g,t&&o){const e=a;a=()=>qo(e())}let d=e=>{c=b.onStop=()=>{bo(e,s,4)}};if(fo)return d=g,t?n&&yo(t,s,3,[a(),p?[]:void 0,d]):a(),g;let h=p?[]:Do;const m=()=>{if(b.active)if(t){const e=b.run();(o||u||(p?e.some(((e,t)=>W(e,h[t]))):W(e,h)))&&(c&&c(),yo(t,s,3,[e,h===Do?void 0:h,d]),h=e)}else b.run()};let v;m.allowRecurse=!!t,v="sync"===r?m:"post"===r?()=>xn(m,s&&s.suspense):()=>{!s||s.isMounted?function(e){Uo(e,Eo,Co,zo)}(m):m()};const b=new ue(a,v);return t?n?m():h=b.run():"post"===r?xn(b.run.bind(b),s&&s.suspense):b.run(),()=>{b.stop(),s&&s.scope&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(s.scope.effects,b)}}(e,t,n)}function qo(e,t){if(!T(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),gt(e))qo(e.value,t);else if(S(e))for(let n=0;n<e.length;n++)qo(e[n],t);else if(E(e)||C(e))e.forEach((e=>{qo(e,t)}));else if(j(e))for(const n in e)qo(e[n],t);return e}function Wo(e,t,n){const o=arguments.length;return 2===o?T(t)&&!S(t)?Bn(t)?Kn(e,null,[t]):Kn(e,t):Kn(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Bn(n)&&(n=[n]),Kn(e,t,n))}Symbol("");const Ho="3.2.23",Zo="undefined"!=typeof document?document:null,Jo=new Map,Ko={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Zo.createElementNS("http://www.w3.org/2000/svg",e):Zo.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Zo.createTextNode(e),createComment:e=>Zo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o){const r=n?n.previousSibling:t.lastChild;let i=Jo.get(e);if(!i){const t=Zo.createElement("template");if(t.innerHTML=o?`<svg>${e}</svg>`:e,i=t.content,o){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}Jo.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qo=/\s*!important$/;function Yo(e,t,n){if(S(n))n.forEach((n=>Yo(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Go[t];if(n)return n;let o=N(t);if("filter"!==o&&o in e)return Go[t]=o;o=B(o);for(let n=0;n<Xo.length;n++){const r=Xo[n]+o;if(r in e)return Go[t]=r}return t}(e,t);Qo.test(n)?e.setProperty(D(o),n.replace(Qo,""),"important"):e[o]=n}}const Xo=["Webkit","Moz","ms"],Go={},er="http://www.w3.org/1999/xlink";let tr=Date.now,nr=!1;if("undefined"!=typeof window){tr()>document.createEvent("Event").timeStamp&&(tr=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);nr=!!(e&&Number(e[1])<=53)}let or=0;const rr=Promise.resolve(),ir=()=>{or=0};function lr(e,t,n,o){e.addEventListener(t,n,o)}const sr=/(?:Once|Passive|Capture)$/,ar=/^on[a-z]/;"undefined"!=typeof HTMLElement&&HTMLElement;const cr="transition",ur="animation",pr=(e,{slots:t})=>Wo(qt,function(e){const t={};for(const n in e)n in dr||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=l,appearToClass:u=s,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(T(e))return[mr(e.enter),mr(e.leave)];{const t=mr(e);return[t,t]}}(r),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:w,onLeaveCancelled:x,onBeforeAppear:_=v,onAppear:S=b,onAppearCancelled:C=y}=t,E=(e,t,n)=>{vr(e,t?u:s),vr(e,t?c:l),n&&n()},z=(e,t)=>{vr(e,h),vr(e,d),t&&t()},A=e=>(t,n)=>{const r=e?S:b,l=()=>E(t,e,n);hr(r,[t,l]),br((()=>{vr(t,e?a:i),gr(t,e?u:s),fr(r)||wr(t,o,m,l)}))};return k(t,{onBeforeEnter(e){hr(v,[e]),gr(e,i),gr(e,l)},onBeforeAppear(e){hr(_,[e]),gr(e,a),gr(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const n=()=>z(e,t);gr(e,p),document.body.offsetHeight,gr(e,d),br((()=>{vr(e,p),gr(e,h),fr(w)||wr(e,o,g,n)})),hr(w,[e,n])},onEnterCancelled(e){E(e,!1),hr(y,[e])},onAppearCancelled(e){E(e,!0),hr(C,[e])},onLeaveCancelled(e){z(e),hr(x,[e])}})}(e),t);pr.displayName="Transition";const dr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hr=(pr.props=k({},qt.props,dr),(e,t=[])=>{S(e)?e.forEach((e=>e(...t))):e&&e(...t)}),fr=e=>!!e&&(S(e)?e.some((e=>e.length>1)):e.length>1);function mr(e){return J(e)}function gr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function vr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function br(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let yr=0;function wr(e,t,n,o){const r=e._endId=++yr,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:l,timeout:s,propCount:a}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),i=o("transitionDuration"),l=kr(r,i),s=o("animationDelay"),a=o("animationDuration"),c=kr(s,a);let u=null,p=0,d=0;return t===cr?l>0&&(u=cr,p=l,d=i.length):t===ur?c>0&&(u=ur,p=c,d=a.length):(p=Math.max(l,c),u=p>0?l>c?cr:ur:null,d=u?u===cr?i.length:a.length:0),{type:u,timeout:p,propCount:d,hasTransform:u===cr&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}(e,t);if(!l)return o();const c=l+"end";let u=0;const p=()=>{e.removeEventListener(c,d),i()},d=t=>{t.target===e&&++u>=a&&p()};setTimeout((()=>{u<a&&p()}),s+1),e.addEventListener(c,d)}function kr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>xr(t)+xr(e[n]))))}function xr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const _r=e=>{const t=e.props["onUpdate:modelValue"];return S(t)?e=>H(t,e):t};function Sr(e){e.target.composing=!0}function Cr(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const Er={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=_r(r);const i=o||r.props&&"number"===r.props.type;lr(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():i&&(o=J(o)),e._assign(o)})),n&&lr(e,"change",(()=>{e.value=e.value.trim()})),t||(lr(e,"compositionstart",Sr),lr(e,"compositionend",Cr),lr(e,"change",Cr))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=_r(i),e.composing)return;if(document.activeElement===e){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&J(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},zr={deep:!0,created(e,t,n){e._assign=_r(n),lr(e,"change",(()=>{const t=e._modelValue,n=Or(e),o=e.checked,r=e._assign;if(S(t)){const e=p(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(E(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(Ir(e,o))}))},mounted:Ar,beforeUpdate(e,t,n){e._assign=_r(n),Ar(e,t,n)}};function Ar(e,{value:t,oldValue:n},o){e._modelValue=t,S(t)?e.checked=p(t,o.props.value)>-1:E(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=u(t,Ir(e,!0)))}const Lr={created(e,{value:t},n){e.checked=u(t,n.props.value),e._assign=_r(n),lr(e,"change",(()=>{e._assign(Or(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=_r(o),t!==n&&(e.checked=u(t,o.props.value))}},Rr={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=E(t);lr(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?J(Or(e)):Or(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=_r(o)},mounted(e,{value:t}){Tr(e,t)},beforeUpdate(e,t,n){e._assign=_r(n)},updated(e,{value:t}){Tr(e,t)}};function Tr(e,t){const n=e.multiple;if(!n||S(t)||E(t)){for(let o=0,r=e.options.length;o<r;o++){const r=e.options[o],i=Or(r);if(n)S(t)?r.selected=p(t,i)>-1:r.selected=t.has(i);else if(u(Or(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Or(e){return"_value"in e?e._value:e.value}function Ir(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const $r={created(e,t,n){jr(e,t,n,null,"created")},mounted(e,t,n){jr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){jr(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){jr(e,t,n,o,"updated")}};function jr(e,t,n,o,r){let i;switch(e.tagName){case"SELECT":i=Rr;break;case"TEXTAREA":i=Er;break;default:switch(n.props&&n.props.type){case"checkbox":i=zr;break;case"radio":i=Lr;break;default:i=Er}}const l=i[r];l&&l(e,t,n,o)}const Mr=k({patchProp:(e,n,o,i,l=!1,s,a,c,u)=>{"class"===n?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,l):"style"===n?function(e,t,n){const o=e.style,r=L(n);if(n&&!r){for(const e in n)Yo(o,e,n[e]);if(t&&!L(t))for(const e in t)null==n[e]&&Yo(o,e,"")}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}(e,o,i):y(n)?w(n)||function(e,t,n,o,r=null){const i=e._vei||(e._vei={}),l=i[t];if(o&&l)l.value=o;else{const[n,s]=function(e){let t;if(sr.test(e)){let n;for(t={};n=e.match(sr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[D(e.slice(2)),t]}(t);if(o){const l=i[t]=function(e,t){const n=e=>{const o=e.timeStamp||tr();(nr||o>=n.attached-1)&&yo(function(e,t){if(S(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=or||(rr.then(ir),or=tr()),n}(o,r);lr(e,n,l,s)}else l&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,s),i[t]=void 0)}}(e,n,0,i,a):("."===n[0]?(n=n.slice(1),1):"^"===n[0]?(n=n.slice(1),0):function(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&ar.test(t)&&A(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!ar.test(t)||!L(n))&&t in e))))}(e,n,i,l))?function(e,t,n,o,i,l,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,i,l),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if("boolean"===o)return void(e[t]=r(n));if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,n,i,s,a,c,u):("true-value"===n?e._trueValue=i:"false-value"===n&&(e._falseValue=i),function(e,n,o,i,l){if(i&&n.startsWith("xlink:"))null==o?e.removeAttributeNS(er,n.slice(6,n.length)):e.setAttributeNS(er,n,o);else{const i=t(n);null==o||i&&!r(o)?e.removeAttribute(n):e.setAttribute(n,i?"":o)}}(e,n,i,l))}},Ko);let Ur;const Pr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("object"==typeof e&&e.errno)throw new TypeError("Fetch ".concat(t," failed with ").concat(e.errno,": ").concat(e.errmsg));return e},Fr=e=>{try{e=decodeURI(e)}catch(e){}return e},Nr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},Vr=e=>/^(https?:)?\/\//.test(e),Dr=["mp","identicon","monsterid","wavatar","robohash","retro",""],Br=["nick","mail","link"],qr=e=>e&&Dr.includes(e)?e:"mp",Wr=e=>e.filter((e=>Br.includes(e))),Hr="zh-CN",Zr=e=>new Promise(((t,n)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=()=>{var e;return t((null===(e=o.result)||void 0===e?void 0:e.toString())||"")},o.onerror=n})),Jr=e=>!0===e?'<p class="vtex">Tex is not available in preview</p>':'<span class="vtex">Tex is not available in preview</span>',Kr=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous"],Qr=e=>Object.fromEntries(e.map(((e,t)=>[Kr[t],e]))),Yr=Qr(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous"]),Xr=Qr(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),Gr=Qr(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名"]),ei=Qr(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名"]),ti=Qr(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo"]),ni={zh:Gr,"zh-cn":Gr,"zh-CN":Gr,"zh-tw":ei,"zh-TW":ei,en:Yr,"en-US":Yr,jp:Xr,"jp-jp":Xr,"jp-JP":Xr,"pt-br":ti,"pt-BR":ti},oi=e=>{let t={};const n=localStorage.getItem(e);if(n)try{t=JSON.parse(n)}catch(e){}return{get:e=>t[e]||null,set(n,o){try{t[n]=JSON.parse(JSON.stringify(o)),localStorage.setItem(e,JSON.stringify(t))}catch(e){}},update(n){t=JSON.parse(JSON.stringify(n)),localStorage.setItem(e,JSON.stringify(t))}}};let ri;const ii=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t,"/").concat(n).concat(e).concat(o?".".concat(o):"")};var li=n(948),si=n.n(li);const ai=e=>{const t=Nr(e);return Vr(t)?t:"https://".concat(t)},ci=(e,t)=>"function"==typeof e?e:!1!==e&&t,ui=e=>{let{el:t="#waline",serverURL:n,placeholder:o,langMode:r,emojiCDN:i,emojiMaps:l,requiredFields:s=[],anonymous:a,avatarCDN:c,avatar:u,avatarForce:p,previewMath:d,path:h=location.pathname,lang:f=Hr,locale:m=r,emoji:g=["https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/weibo"],meta:v=["nick","mail","link"],requiredMeta:b=s,pageSize:y=10,wordLimit:w,uploadImage:k,highlight:x,tex:_=d,copyright:S=!0,login:C=(!0===a?"disable":!1===a?"force":"enable"),...E}=e;const z=ni[f]||ni[Hr];o&&(z.placeholder=o);const A=i&&"object"==typeof l?Promise.resolve(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={};for(const o in e)n[o]=/(?:https?:)?\/\//.test(e[o])?e[o]:"".concat(t).concat(e[o]);return{tabs:[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}],map:n}}(l,i)):(L=g,Promise.all(L.map((e=>"string"==typeof e?(e=>{ri||(ri=oi("WALINE_EMOJI"));const t=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(t){const t=ri.get(e);if(t)return Promise.resolve(t)}return fetch("".concat(e,"/info.json")).then((e=>e.json())).then((n=>{const o={folder:e,...n};return t&&ri.set(e,o),o}))})(Nr(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:r,prefix:i,type:l,items:s}=e;t.tabs.push({name:n,icon:ii(r,o,i,l),items:s.map((e=>{const n="".concat(i||"").concat(e);return t.map[n]=ii(e,o,i,l),n}))})})),t})));var L;return{el:t,serverURL:ai(n),path:Fr(h),lang:f,locale:{...z,..."object"==typeof m?m:{}},emoji:A,wordLimit:Array.isArray(w)?w:!!w&&[0,w],meta:Wr(v),requiredMeta:Wr(b),pageSize:y,avatar:{cdn:c||"https://seccdn.libravatar.org/avatar/",param:"?d=".concat(qr(u)).concat(p?"&q=".concat(Math.random().toString(32).substring(2)):""),default:!u&&!c,hide:"hide"===u},uploadImage:ci(k,Zr),highlight:ci(x,si()),tex:ci(_,Jr),copyright:S,login:C,...E}},pi=e=>e.type.includes("image"),di=e=>{const t=Array.from(e).find(pi);return!!t&&t.getAsFile()},hi="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-text-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}",fi=(e,t)=>{if(!document.body.hasAttribute(t)){const n=document.createElement("style");n.appendChild(document.createTextNode(e)),document.head.appendChild(n),document.body.setAttribute(t,"")}},mi=()=>{fi('\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n/* See https://github.com/fred-wang/mathml.css */\n\n@namespace "http://www.w3.org/1998/Math/MathML";\nbody[waline-math] .v math{display:inline;font-size:0;font-family:Cambria Math,Latin Modern Math;text-indent:0}body[waline-math] .v math>*{font-size:14px}body[waline-math] .v math[display=block]{display:block;font-size:0;text-align:center}body[waline-math] .v math[display=block]>*{font-size:16px}body[waline-math] .v mfrac{display:inline-block !important;vertical-align:-50%;border-collapse:collapse;text-align:center}body[waline-math] .v mfrac>*{display:block !important}body[waline-math] .v mfrac>*+*{display:inline-block !important;vertical-align:top}body[waline-math] .v mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}body[waline-math] .v msub>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(2),body[waline-math] .v mmultiscripts>*:nth-child(2n+2),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+3){vertical-align:sub;font-size:.8em}body[waline-math] .v msup>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(3),body[waline-math] .v mmultiscripts>*:nth-child(2n+3),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+2){vertical-align:super;font-size:.8em}body[waline-math] .v mprescripts::after{content:";"}body[waline-math] .v munder,body[waline-math] .v mover,body[waline-math] .v munderover{display:inline-flex !important;flex-direction:column}body[waline-math] .v munder>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(2){order:1;font-size:.8em}body[waline-math] .v mover>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(3){order:-1;font-size:.8em}body[waline-math] .v munder{vertical-align:text-top}body[waline-math] .v mover{vertical-align:text-bottom}body[waline-math] .v munderover{vertical-align:middle}body[waline-math] .v msqrt,body[waline-math] .v mroot{display:inline-flex !important;vertical-align:middle;margin-left:.5em;border-top:solid thin}body[waline-math] .v msqrt::before,body[waline-math] .v mroot::before{content:"√";margin-left:-0.5em}body[waline-math] .v mroot>*:nth-child(2){order:-1;margin-right:.25em;margin-left:-0.75em;font-size:.8em}body[waline-math] .v menclose{display:inline-table !important;border-spacing:.4ex 0;border-collapse:separate}body[waline-math] .v menclose[notation*=top],body[waline-math] .v menclose[notation*=actuarial]{border-top:solid thin}body[waline-math] .v menclose[notation*=bottom],body[waline-math] .v menclose[notation*=madruwb]{border-bottom:solid thin}body[waline-math] .v menclose[notation*=right],body[waline-math] .v menclose[notation*=actuarial],body[waline-math] .v menclose[notation*=madruwb]{border-right:solid thin}body[waline-math] .v menclose[notation*=left]{border-left:solid thin}body[waline-math] .v menclose[notation*=box],body[waline-math] .v menclose[notation*=roundedbox],body[waline-math] .v menclose[notation*=circle]{border:solid thin}body[waline-math] .v menclose[notation*=roundedbox]{border-radius:15%}body[waline-math] .v menclose[notation*=circle]{border-radius:50%}body[waline-math] .v menclose[notation*=horizontalstrike]{text-decoration:line-through}body[waline-math] .v mtable{display:inline-table !important;vertical-align:middle;text-align:center}body[waline-math] .v mtr{display:table-row !important}body[waline-math] .v mtd{display:table-cell !important;padding:0 .5ex}body[waline-math] .v mspace{margin:.2em}body[waline-math] .v mi{font-style:italic}body[waline-math] .v mo{margin-right:.2em;margin-left:.2em}body[waline-math] .v ms::before,body[waline-math] .v ms::after{content:\'"\'}body[waline-math] .v ms[lquote]::before{content:attr(lquote)}body[waline-math] .v ms[lquote]::after{content:attr(rquote)}body[waline-math] .v [mathvariant=bold],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-weight:bold;font-style:normal}body[waline-math] .v [mathvariant=monospace]{font-style:normal;font-family:monospace}body[waline-math] .v [mathvariant=sans-serif],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:normal;font-family:sans-serif}body[waline-math] .v [mathvariant=italic],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:italic}body[waline-math] .v [mathvariant=normal]{font-style:normal}body[waline-math] .v mphantom{visibility:hidden}body[waline-math] .v merror{outline:solid thin red}body[waline-math] .v merror::before{content:"Error: "}body[waline-math] .v semantics>*:first-child{display:inline}body[waline-math] .v annotation,body[waline-math] .v annotation-xml{display:none !important;font-family:monospace}body[waline-math] .v math:active>semantics>*:first-child{display:none !important}body[waline-math] .v math:active annotation:first-of-type{display:inline !important}',"waline-math-style"),document.body.insertAdjacentHTML("afterbegin","<div style='border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;'><math xmlns='http://www.w3.org/1998/Math/MathML'><mspace height='23px' width='77px'></mspace></math></div>");const e=document.body.firstChild,t=e.firstChild.firstChild.getBoundingClientRect();document.body.removeChild(e),(Math.abs(t.height-23)>1||Math.abs(t.width-77)>1)&&document.body.setAttribute("waline-math","")},gi=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null;let vi={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 bi=/[&<>"']/,yi=/[&<>"']/g,wi=/[<>"']|&(?!#?\w+;)/,ki=/[<>"']|&(?!#?\w+;)/g,xi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_i=e=>xi[e];function Si(e,t){if(t){if(bi.test(e))return e.replace(yi,_i)}else if(wi.test(e))return e.replace(ki,_i);return e}const Ci=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Ei(e){return e.replace(Ci,((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 zi=/(^|[^\[])\^/g;function Ai(e,t){e=e.source||e,t=t||"";const n={replace:(t,o)=>(o=(o=o.source||o).replace(zi,"$1"),e=e.replace(t,o),n),getRegex:()=>new RegExp(e,t)};return n}const Li=/[^\w:]/g,Ri=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ti(e,t,n){if(e){let e;try{e=decodeURIComponent(Ei(n)).replace(Li,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ri.test(n)&&(n=function(e,t){Oi[" "+e]||(Ii.test(e)?Oi[" "+e]=e+"/":Oi[" "+e]=Fi(e,"/",!0));const n=-1===(e=Oi[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace($i,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(ji,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Oi={},Ii=/^[^:]+:\/*[^/]*$/,$i=/^([^:]+:)[\s\S]*$/,ji=/^([^:]+:\/*[^/]*)[\s\S]*$/,Mi={exec:function(){}};function Ui(e){let t,n,o=1;for(;o<arguments.length;o++)for(n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Pi(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let o=!1,r=t;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"})).split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function Fi(e,t,n){const o=e.length;if(0===o)return"";let r=0;for(;r<o;){const i=e.charAt(o-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,o-r)}function Ni(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 Vi(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Di(e,t,n,o){const r=t.href,i=t.title?Si(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){o.state.inLink=!0;const e={type:"link",raw:n,href:r,title:i,text:l,tokens:o.inlineTokens(l,[])};return o.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:i,text:Si(l)}}class Bi{constructor(e){this.options=e||vi}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}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:Fi(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 o=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=o.length?e.slice(o.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=Fi(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/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,o,r,i,l,s,a,c,u,p,d,h=t[1].trim();const f=h.length>1,m={type:"list",raw:"",ordered:f,start:f?+h.slice(0,-1):"",loose:!1,items:[]};h=f?`\\d{1,9}\\${h.slice(-1)}`:`\\${h}`,this.options.pedantic&&(h=f?h:"[*+-]");const g=new RegExp(`^( {0,3}${h})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(t=g.exec(e))&&!this.rules.block.hr.test(e);){n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),m.loose=!0);const l=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&!m.loose&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!l.test(c));){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(d),o&&(r="[ ] "!==o[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!o,checked:r,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 v=m.items.length;for(l=0;l<v;l++)this.lexer.state.top=!1,m.items[l].tokens=this.lexer.blockTokens(m.items[l].text,[]),!m.loose&&m.items[l].tokens.some((e=>"space"===e.type))&&(m.loose=!0,m.items[l].loose=!0);return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):Si(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{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:Pi(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,o,r,i,l=e.align.length;for(n=0;n<l;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(l=e.rows.length,n=0;n<l;n++)e.rows[n]=Pi(e.rows[n],e.header.length).map((e=>({text:e})));for(l=e.header.length,o=0;o<l;o++)e.header[o].tokens=[],this.lexer.inlineTokens(e.header[o].text,e.header[o].tokens);for(l=e.rows.length,o=0;o<l;o++)for(i=e.rows[o],r=0;r<i.length;r++)i[r].tokens=[],this.lexer.inlineTokens(i[r].text,i[r].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Si(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]):Si(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=Fi(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 o=0,r=0;for(;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&(o--,o<0))return r;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],o="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],o=e[3])}else o=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)),Di(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:o?o.replace(this.rules.inline._escapes,"$1"):o},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 Di(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o)return;if(o[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=o[1]||o[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){const n=o[0].length-1;let r,i,l=n,s=0;const a="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=a.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(i=r.length,o[3]||o[4]){l+=i;continue}if((o[5]||o[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(l-=i,l>0)continue;if(i=Math.min(i,i+l+s),Math.min(n,i)%2){const t=e.slice(1,n+o.index+i);return{type:"em",raw:e.slice(0,n+o.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+o.index+i-1);return{type:"strong",raw:e.slice(0,n+o.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),o=/^ /.test(e)&&/ $/.test(e);return n&&o&&(e=e.substring(1,e.length-1)),e=Si(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,o;return"@"===n[2]?(e=Si(this.options.mangle?t(n[1]):n[1]),o="mailto:"+e):(e=Si(n[1]),o=e),{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,o;if("@"===n[2])e=Si(this.options.mangle?t(n[0]):n[0]),o="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=Si(n[0]),o="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:o,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]):Si(n[0]):n[0]:Si(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const qi={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}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\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:Mi,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?'|\([^()]*\))/};qi.def=Ai(qi.def).replace("label",qi._label).replace("title",qi._title).getRegex(),qi.bullet=/(?:[*+-]|\d{1,9}[.)])/,qi.listItemStart=Ai(/^( *)(bull) */).replace("bull",qi.bullet).getRegex(),qi.list=Ai(qi.list).replace(/bull/g,qi.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+qi.def.source+")").getRegex(),qi._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",qi._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,qi.html=Ai(qi.html,"i").replace("comment",qi._comment).replace("tag",qi._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qi.paragraph=Ai(qi._paragraph).replace("hr",qi.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",qi._tag).getRegex(),qi.blockquote=Ai(qi.blockquote).replace("paragraph",qi.paragraph).getRegex(),qi.normal=Ui({},qi),qi.gfm=Ui({},qi.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),qi.gfm.table=Ai(qi.gfm.table).replace("hr",qi.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",qi._tag).getRegex(),qi.gfm.paragraph=Ai(qi._paragraph).replace("hr",qi.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",qi.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",qi._tag).getRegex(),qi.pedantic=Ui({},qi.normal,{html:Ai("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",qi._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:Mi,paragraph:Ai(qi.normal._paragraph).replace("hr",qi.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",qi.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Wi={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Mi,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)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,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:Mi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Hi(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 Zi(e){let t,n,o="";const r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}Wi._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Wi.punctuation=Ai(Wi.punctuation).replace(/punctuation/g,Wi._punctuation).getRegex(),Wi.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Wi.escapedEmSt=/\\\*|\\_/g,Wi._comment=Ai(qi._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Wi.emStrong.lDelim=Ai(Wi.emStrong.lDelim).replace(/punct/g,Wi._punctuation).getRegex(),Wi.emStrong.rDelimAst=Ai(Wi.emStrong.rDelimAst,"g").replace(/punct/g,Wi._punctuation).getRegex(),Wi.emStrong.rDelimUnd=Ai(Wi.emStrong.rDelimUnd,"g").replace(/punct/g,Wi._punctuation).getRegex(),Wi._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Wi._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Wi._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])?)+(?![-_])/,Wi.autolink=Ai(Wi.autolink).replace("scheme",Wi._scheme).replace("email",Wi._email).getRegex(),Wi._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Wi.tag=Ai(Wi.tag).replace("comment",Wi._comment).replace("attribute",Wi._attribute).getRegex(),Wi._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Wi._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Wi._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Wi.link=Ai(Wi.link).replace("label",Wi._label).replace("href",Wi._href).replace("title",Wi._title).getRegex(),Wi.reflink=Ai(Wi.reflink).replace("label",Wi._label).getRegex(),Wi.reflinkSearch=Ai(Wi.reflinkSearch,"g").replace("reflink",Wi.reflink).replace("nolink",Wi.nolink).getRegex(),Wi.normal=Ui({},Wi),Wi.pedantic=Ui({},Wi.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:Ai(/^!?\[(label)\]\((.*?)\)/).replace("label",Wi._label).getRegex(),reflink:Ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Wi._label).getRegex()}),Wi.gfm=Ui({},Wi.normal,{escape:Ai(Wi.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Wi.gfm.url=Ai(Wi.gfm.url,"i").replace("email",Wi.gfm._extended_email).getRegex(),Wi.breaks=Ui({},Wi.gfm,{br:Ai(Wi.br).replace("{2,}","*").getRegex(),text:Ai(Wi.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Ji{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||vi,this.options.tokenizer=this.options.tokenizer||new Bi,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:qi.normal,inline:Wi.normal};this.options.pedantic?(t.block=qi.pedantic,t.inline=Wi.pedantic):this.options.gfm&&(t.block=qi.gfm,this.options.breaks?t.inline=Wi.breaks:t.inline=Wi.gfm),this.tokenizer.rules=t}static get rules(){return{block:qi,inline:Wi}}static lex(e,t){return new Ji(t).lex(e)}static lexInline(e,t){return new Ji(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,o,r,i;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((o=>!!(n=o.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),o=t[t.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?t.push(n):(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),o=t[t.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(o.raw+="\n"+n.raw,o.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startBlock.forEach((function(e){o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r)))o=t[t.length-1],i&&"paragraph"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n),i=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,o,r,i,l,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+Vi("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)+"["+Vi("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(s=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((o=>!!(n=o.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Zi))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Zi))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startInline.forEach((function(e){o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r,Hi))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),l=!0,o=t[t.length-1],o&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class Ki{constructor(e){this.options=e||vi}code(e,t,n){const o=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,o);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",o?'<pre><code class="'+this.options.langPrefix+Si(o,!0)+'">'+(n?e:Si(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Si(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,o){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+o.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+o+">\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=Ti(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<a href="'+Si(e)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>",o}image(e,t,n){if(null===(e=Ti(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<img src="'+e+'" alt="'+n+'"';return t&&(o+=' title="'+t+'"'),o+=this.options.xhtml?"/>":">",o}text(e){return e}}class Qi{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 Yi{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,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do{o++,n=e+"-"+o}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=o,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Xi{constructor(e){this.options=e||vi,this.options.renderer=this.options.renderer||new Ki,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Qi,this.slugger=new Yi}static parse(e,t){return new Xi(t).parse(e)}static parseInline(e,t){return new Xi(t).parseInline(e)}parse(e,t=!0){let n,o,r,i,l,s,a,c,u,p,d,h,f,m,g,v,b,y,w,k="";const x=e.length;for(n=0;n<x;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(w=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))k+=w||"";else switch(p.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(p.tokens),p.depth,Ei(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",i=p.header.length,o=0;o<i;o++)a+=this.renderer.tablecell(this.parseInline(p.header[o].tokens),{header:!0,align:p.align[o]});for(c+=this.renderer.tablerow(a),u="",i=p.rows.length,o=0;o<i;o++){for(s=p.rows[o],a="",l=s.length,r=0;r<l;r++)a+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:p.align[r]});u+=this.renderer.tablerow(a)}k+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,i=p.items.length,u="",o=0;o<i;o++)g=p.items[o],v=g.checked,b=g.task,m="",g.task&&(y=this.renderer.checkbox(v),f?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}):m+=y),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,b,v);k+=this.renderer.list(u,d,h);continue;case"html":k+=this.renderer.html(p.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,o,r,i="";const l=e.length;for(n=0;n<l;n++)if(o=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]&&(r=this.options.extensions.renderers[o.type].call({parser:this},o),!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)))i+=r||"";else switch(o.type){case"escape":case"text":i+=t.text(o.text);break;case"html":i+=t.html(o.text);break;case"link":i+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break;case"image":i+=t.image(o.href,o.title,o.text);break;case"strong":i+=t.strong(this.parseInline(o.tokens,t));break;case"em":i+=t.em(this.parseInline(o.tokens,t));break;case"codespan":i+=t.codespan(o.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(o.tokens,t));break;default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}function Gi(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),Ni(t=Ui({},Gi.defaults,t||{})),n){const o=t.highlight;let r;try{r=Ji.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&Gi.walkTokens(r,t.walkTokens),i=Xi.parse(r,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,i)};if(!o||o.length<3)return i();if(delete t.highlight,!r.length)return i();let l=0;return Gi.walkTokens(r,(function(e){"code"===e.type&&(l++,setTimeout((()=>{o(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&i()}))}),0))})),void(0===l&&i())}try{const n=Ji.lex(e,t);return t.walkTokens&&Gi.walkTokens(n,t.walkTokens),Xi.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Si(e.message+"",!0)+"</pre>";throw e}}Gi.options=Gi.setOptions=function(e){var t;return Ui(Gi.defaults,e),t=Gi.defaults,vi=t,Gi},Gi.getDefaults=function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Gi.defaults=vi,Gi.use=function(...e){const t=Ui({},...e),n=Gi.defaults.extensions||{renderers:{},childTokens:{}};let o;e.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=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),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'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Gi.defaults.renderer||new Ki;for(const t in e.renderer){const o=n[t];n[t]=(...r)=>{let i=e.renderer[t].apply(n,r);return!1===i&&(i=o.apply(n,r)),i}}t.renderer=n}if(e.tokenizer){const n=Gi.defaults.tokenizer||new Bi;for(const t in e.tokenizer){const o=n[t];n[t]=(...r)=>{let i=e.tokenizer[t].apply(n,r);return!1===i&&(i=o.apply(n,r)),i}}t.tokenizer=n}if(e.walkTokens){const n=Gi.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}o&&(t.extensions=n),Gi.setOptions(t)}))},Gi.walkTokens=function(e,t){for(const n of e)switch(t.call(Gi,n),n.type){case"table":for(const e of n.header)Gi.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Gi.walkTokens(n.tokens,t);break;case"list":Gi.walkTokens(n.items,t);break;default:Gi.defaults.extensions&&Gi.defaults.extensions.childTokens&&Gi.defaults.extensions.childTokens[n.type]?Gi.defaults.extensions.childTokens[n.type].forEach((function(e){Gi.walkTokens(n[e],t)})):n.tokens&&Gi.walkTokens(n.tokens,t)}},Gi.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");Ni(t=Ui({},Gi.defaults,t||{}));try{const n=Ji.lexInline(e,t);return t.walkTokens&&Gi.walkTokens(n,t.walkTokens),Xi.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>"+Si(e.message+"",!0)+"</pre>";throw e}},Gi.Parser=Xi,Gi.parser=Xi.parse,Gi.Renderer=Ki,Gi.TextRenderer=Qi,Gi.Lexer=Ji,Gi.lexer=Ji.lex,Gi.Tokenizer=Bi,Gi.Slugger=Yi,Gi.parse=Gi,Gi.options,Gi.setOptions,Gi.use,Gi.walkTokens,Gi.parseInline,Xi.parse,Ji.lex;const el=/\$.*?\$/,tl=/^\$(.*?)\$/,nl=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ol=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?'<img class="vemoji" src="'.concat(t[n],'" alt="').concat(n,'">'):e))},rl=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},il=(e,t)=>{if(e)try{"string"==typeof e&&(e=new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e));const n=e.getTime(),o=(new Date).getTime()-n,r=Math.floor(o/864e5);if(0===r){const e=o%864e5,n=Math.floor(e/36e5);if(0===n){const n=e%36e5,o=Math.floor(n/6e4);if(0===o){const e=n%6e4,o=Math.round(e/1e3);return"".concat(o," ").concat(t.seconds)}return"".concat(o," ").concat(t.minutes)}return"".concat(n," ").concat(t.hours)}return r<0?t.now:r<8?"".concat(r," ").concat(t.days):(e=>{const t=rl(e.getDate(),2),n=rl(e.getMonth()+1,2),o=rl(e.getFullYear(),2);return"".concat(o,"-").concat(n,"-").concat(t)})(e)}catch(e){console.log(e)}return""},ll=(e,t)=>{t.forEach(((t,n)=>{(t.querySelector(".leancloud-visitors-count")||t).innerText=e[n].toString()}))};let sl,al;const cl=()=>(al||(sl=oi("WALINE_USER_CACHE"),al=rt({nick:sl.get("nick")||"",mail:sl.get("mail")||"",link:sl.get("link")||"",editor:""})),{inputs:al,store:sl}),ul="WALINE_USER",pl=vt({}),dl=()=>{if(!pl.value.token)try{pl.value=JSON.parse(localStorage.getItem(ul)||"")||JSON.parse(sessionStorage.getItem(ul)||"")||{}}catch(e){}return{userInfo:it(pl),setUserInfo:e=>{pl.value=e}}},hl={class:"v","data-class":"v"},fl={class:"vcount"},ml=["textContent"],gl={class:"vcards"},vl={key:1,class:"vloading"},bl=["textContent"],yl={key:2,class:"vloading"},wl=["textContent"],kl={key:4,class:"vmore"},xl=["textContent"],_l={key:5,class:"vpower"},Sl=Yn(" Powered by "),Cl=Jn("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1),El={class:"vcomment"},zl={key:0,class:"vlogin-info"},Al={class:"vavatar"},Ll=["title"],Rl=["src"],Tl=["textContent"],Ol={class:"vpanel"},Il=["for","textContent"],$l=["id","name","type","onUpdate:modelValue"],jl=["placeholder"],Ml=["innerHTML"],Ul={class:"vfooter"},Pl={class:"vactions"},Fl={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"vaction",target:"_blank",rel:"noreferrer"},Nl=["title"],Vl=["title"],Dl=["title"],Bl={class:"vinfo"},ql={class:"vtext-number"},Wl={key:0},Hl=Yn("  /  "),Zl=["textContent"],Jl=["textContent"],Kl=["disabled"],Ql={key:0,class:"vtab-wrapper"},Yl=["title","onClick"],Xl=["src","alt"],Gl={key:0,class:"vtabs"},es=["onClick"],ts=["src","alt","title"],ns=["title"];var os,rs,is="function"==typeof Map?new Map:(os=[],rs=[],{has:function(e){return os.indexOf(e)>-1},get:function(e){return rs[os.indexOf(e)]},set:function(e,t){-1===os.indexOf(e)&&(os.push(e),rs.push(t))},delete:function(e){var t=os.indexOf(e);t>-1&&(os.splice(t,1),rs.splice(t,1))}}),ls=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(os){ls=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function ss(e){var t=is.get(e);t&&t.destroy()}function as(e){var t=is.get(e);t&&t.update()}var cs=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((cs=function(e){return e}).destroy=function(e){return e},cs.update=function(e){return e}):((cs=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&&!is.has(e)){var t,n=null,o=null,r=null,i=function(){e.clientWidth!==o&&c()},l=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),is.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",is.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),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==o){r=o;var i=ls("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ss),e},cs.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],as),e});const us=cs,ps=e=>{let{size:t}=e;return Wo("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Wo("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Wo("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},ds=Yt({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return Wo("svg",{class:"vclose-icon",viewBox:"0 0 1024 1024",width:t,height:t},[Wo("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"}),Wo("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:()=>Wo("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Wo("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:()=>Wo("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Wo("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"}),Wo("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),MarkdownIcon:()=>Wo("svg",{width:"16",height:"16",ariaHidden:"true"},Wo("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:()=>Wo("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Wo("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"}),Wo("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:ps},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,t){let{emit:n}=t;const o=Dt("config"),{inputs:r,store:i}=cl(),{userInfo:l,setUserInfo:s}=dl(),a=vt({}),c=vt(null),u=vt(null),p=vt(null),d=vt(null),h=vt({tabs:[],map:{}}),f=vt(0),m=vt(!1),g=vt(!1),v=vt(""),b=vt(0),y=vt(0),w=vt(!1),k=vt(""),x=vt(!1),_=xt((()=>o.value.locale)),S=xt((()=>{var e;return Boolean(null===(e=l.value)||void 0===e?void 0:e.token)})),C=xt((()=>!1!==o.value.uploadImage)),E=e=>{const t=c.value,n=t.selectionStart,o=t.selectionEnd||0,i=t.scrollTop;r.editor=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},z=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return E(t),Promise.resolve().then((()=>o.value.uploadImage(e))).then((n=>{r.editor=r.editor.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},A=()=>{var t,s;const{serverURL:u,lang:p,login:d,wordLimit:f,requiredMeta:m}=o.value,g={comment:k.value,nick:r.nick,mail:r.mail,link:r.link,ua:navigator.userAgent,url:o.value.path};if(null!==(t=l.value)&&void 0!==t&&t.token)g.nick=l.value.display_name,g.mail=l.value.email,g.link=l.value.url;else{if("force"===d)return;var y,S,C;if((m.indexOf("nick")>-1||g.nick)&&!g.nick)return null===(y=a.value.nick)||void 0===y||y.focus(),alert(_.value.nickError);if(m.indexOf("mail")>-1&&!g.mail)return null===(S=a.value.mail)||void 0===S||S.focus(),alert(_.value.mailError);if(!g.comment)return void(null===(C=c.value)||void 0===C||C.focus());g.nick||(g.nick=_.value.anonymous)}if(!w.value)return alert(_.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",b.value.toString()));g.comment=ol(g.comment,h.value.map),e.replyId&&e.rootId&&(g.pid=e.replyId,g.rid=e.rootId,g.at=e.replyUser),x.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:r}=e;const i={"Content-Type":"application/json"};return o&&(i.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:i,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:u,lang:p,token:null===(s=l.value)||void 0===s?void 0:s.token,comment:g}).then((t=>{if(x.value=!1,i.update({nick:g.nick,link:g.link,mail:g.mail}),t.errmsg)return alert(t.errmsg);n("submit",t.data),r.editor="",v.value="",e.replyId&&n("cancel-reply")})).catch((e=>{x.value=!1,alert(e.message)}))},L=e=>{p.value.contains(e.target)||d.value.contains(e.target)||(m.value=!1)};return Bo((()=>r.editor),(e=>{const{highlight:t,tex:n}=o.value;k.value=e,v.value=((e,t,n,o)=>{if(Gi.setOptions({highlight:t||void 0,breaks:!0,smartLists:!0,smartypants:!0}),o){const e=(e=>{const t={name:"blockMath",level:"block",tokenizer(t){const n=nl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},n={name:"inlineMath",level:"inline",start(e){const t=e.search(el);return-1!==t?t:e.length},tokenizer(t){const n=tl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}};return[t,n]})(o);Gi.use({extensions:e})}return Gi.parse(ol(e,n))})(e,t,h.value.map,n),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),c.value&&(e?us(c.value):us.destroy(c.value))}),{immediate:!0}),Bo((()=>o.value.emoji),(e=>e.then((e=>{h.value=e}))),{immediate:!0}),Bo([o,b],(e=>{let[t,n]=e;const{wordLimit:o}=t;o?n<o[0]&&0!==o[0]?(y.value=o[0],w.value=!1):n>o[1]?(y.value=o[1],w.value=!1):(y.value=o[1],w.value=!0):(y.value=0,w.value=!0)}),{immediate:!0}),tn((()=>{document.body.addEventListener("click",L)})),on((()=>{document.body.removeEventListener("click",L)})),{config:o,locale:_,insert:E,onChange:()=>{const e=u.value;e.files&&C.value&&z(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=di(e.dataTransfer.items);t&&C.value&&(z(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&A()},onPaste:e=>{if(e.clipboardData){const t=di(e.clipboardData.items);t&&C.value&&z(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,l=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(r,",top=").concat(i,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==l||l.postMessage({type:"TOKEN",data:null},"*");const a=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==l||l.close(),s(t.data),(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{s({}),localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,a=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(r,",top=").concat(i,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==a||a.postMessage({type:"TOKEN",data:l.value.token},"*");const c=e=>{let{data:t}=e;t&&"profile"===t.type&&(s(Object.assign({},l.value,t)),[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(l)))),window.removeEventListener("message",c))};window.addEventListener("message",c)},submitComment:A,isLogin:S,userInfo:l,isSubmitting:x,wordNumber:b,wordLimit:y,isWordNumberLegal:w,inputs:r,emoji:h,emojiTabIndex:f,showEmoji:m,canUploadImage:C,previewText:v,showPreview:g,inputRefs:a,editorRef:c,emojiButtonRef:p,emojiPopupRef:d,imageUploadRef:u}}});var hs=n(407);const fs=(0,hs.Z)(ds,[["render",function(e,t,n,o,r,l){const s=An("CloseIcon"),a=An("MarkdownIcon"),u=An("EmojiIcon"),p=An("ImageIcon"),h=An("PreviewIcon"),f=An("LoadingIcon");return Un(),Vn("div",El,["disable"!==e.config.login&&e.isLogin?(Un(),Vn("div",zl,[Jn("div",Al,[Jn("button",{class:"vlogout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[Kn(s,{size:"14"})],8,Ll),Jn("img",{src:e.userInfo.avatar||"".concat(e.config.avatar.cdn).concat(e.userInfo.mailMd5).concat(e.config.avatar.param),alt:"avatar"},null,8,Rl)]),Jn("a",{href:"#",class:"vlogin-nick","aria-label":"Profile",onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:d(e.userInfo.display_name)},null,8,Tl)])):Xn("v-if",!0),Jn("div",Ol,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Un(),Vn("div",{key:0,class:c(["vheader","vheader-".concat(e.config.meta.length)])},[(Un(!0),Vn(Tn,null,no(e.config.meta,(t=>(Un(),Vn("div",{class:"vheader-item",key:t},[Jn("label",{for:t,textContent:d(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,Il),vn(Jn("input",{ref:n=>{n&&(e.inputRefs[t]=n)},id:"waline-".concat(t),class:c(["vinput","v".concat(t)]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.inputs[t]=n},null,10,$l),[[$r,e.inputs[t]]])])))),128))],2)):Xn("v-if",!0),vn(Jn("textarea",{class:"veditor",ref:"editorRef",id:"waline-edit",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputs.editor=t),onKeydown:t[3]||(t[3]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[4]||(t[4]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[5]||(t[5]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,jl),[[Er,e.inputs.editor]]),Jn("div",{class:"vpreview",style:i({display:e.showPreview?"block":"none"})},[Jn("h4",null,d(e.locale.preview)+":",1),Jn("div",{class:"vcontent",innerHTML:e.previewText},null,8,Ml)],4),Jn("div",Ul,[Jn("div",Pl,[Jn("a",Fl,[Kn(a)]),Jn("button",{ref:"emojiButtonRef",class:c(["vaction",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[Kn(u)],10,Nl),Jn("input",{ref:"imageUploadRef",class:"upload",id:"waline-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[7]||(t[7]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(Un(),Vn("label",{key:0,for:"waline-image-upload",class:"vaction",title:e.locale.uploadImage},[Kn(p)],8,Vl)):Xn("v-if",!0),Jn("button",{class:c(["vaction",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[Kn(h)],10,Dl)]),Jn("div",Bl,[Jn("div",ql,[Yn(d(e.wordNumber)+" ",1),e.config.wordLimit?(Un(),Vn("span",Wl,[Hl,Jn("span",{class:c({illegal:!e.isWordNumberLegal}),textContent:d(e.wordLimit)},null,10,Zl)])):Xn("v-if",!0),Yn("  "+d(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Xn("v-if",!0):(Un(),Vn("button",{key:0,class:"vbtn",onClick:t[9]||(t[9]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:d(e.locale.login)},null,8,Jl)),"force"!==e.config.login||e.isLogin?(Un(),Vn("button",{key:1,class:"vbtn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[10]||(t[10]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(Un(),Dn(f,{key:0,size:16})):(Un(),Vn(Tn,{key:1},[Yn(d(e.locale.submit),1)],2112))],8,Kl)):Xn("v-if",!0)]),Jn("div",{ref:"emojiPopupRef",class:c(["vemoji-popup",{display:e.showEmoji}])},[(Un(!0),Vn(Tn,null,no(e.emoji.tabs,((t,n)=>(Un(),Vn(Tn,{key:t.name},[n===e.emojiTabIndex?(Un(),Vn("div",Ql,[(Un(!0),Vn(Tn,null,no(t.items,(t=>(Un(),Vn("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(Un(),Vn("img",{key:0,class:"vemoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Xl)):Xn("v-if",!0)],8,Yl)))),128))])):Xn("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Un(),Vn("div",Gl,[(Un(!0),Vn(Tn,null,no(e.emoji.tabs,((t,n)=>(Un(),Vn("button",{key:t.name,class:c(["vtab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Jn("img",{class:"vemoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ts)],10,es)))),128))])):Xn("v-if",!0)],2)])]),e.replyId?(Un(),Vn("button",{key:1,class:"vclose",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[Kn(s,{size:"24"})],8,ns)):Xn("v-if",!0)])}]]),ms=fs,gs=["id"],vs=["src"],bs={class:"vcard"},ys={class:"vhead"},ws=["href"],ks={key:1,class:"vnick"},xs=["textContent"],_s=["textContent"],Ss=["textContent"],Cs=["title"],Es={class:"vmeta","aria-hidden":"true"},zs=["textContent"],As=["textContent"],Ls=["innerHTML"],Rs={key:0,class:"vreply-wrapper"},Ts={key:1,class:"vquote"},Os=Yt({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:ms,ReplyIcon:()=>Wo("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},Wo("path",{d:"M1019.2 720C1001.6 625.6 968 566.4 904 497.6c-89.6-89.6-214.4-150.4-347.2-176v-120c0-25.6-8-51.2-25.6-64-33.6-30.4-81.6-30.4-112-4.8L33.6 441.6C12.8 459.2 0 484.8 0 510.4c0 25.6 12.8 51.2 30.4 68.8l385.6 312c17.6 12.8 33.6 17.6 51.2 17.6 12.8 0 25.6-4.8 38.4-8C536 888 552 857.6 552 824v-99.2c124.8 20.8 248 86.4 339.2 140.8 25.6 17.6 59.2 17.6 89.6 0 25.6-17.6 43.2-46.4 43.2-76.8 0-33.6 0-56-4.8-68.8zm-500.8-89.6-46.4-4.8v193.6L86.4 510.4 472 201.6V400l38.4 4.8c128 12.8 248 68.8 334.4 153.6 51.2 56 76.8 102.4 94.4 179.2 0 4.8 4.8 20.8 4.8 51.2C835.2 720 672 640 518.4 630.4z",fill:"currentColor"})),VerifiedIcon:()=>Wo("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Wo("path",{d:"M512 44.608l388.352 109.696a38.016 38.016 0 0 1 27.648 36.608v337.984c-1.984 110.528-40.192 207.04-113.984 288-73.92 81.024-172.48 134.528-294.592 160.32l-8.192 1.728-8.192-2.048c-127.616-32.832-225.536-85.952-293.056-160-68.096-74.688-105.984-171.584-113.92-289.28L96 526.336V190.976c0-17.024 11.328-32 27.648-36.608L512 44.608z m0 74.816L168 216.64v307.328l0.128 1.856c7.232 99.712 38.4 179.52 93.44 240.704l1.664 1.92c55.488 60.8 137.728 106.304 247.488 136l2.048 0.512 1.408-0.32c102.272-23.232 183.552-67.968 244.736-134.144l1.92-2.112c62.592-68.672 94.08-149.376 95.168-243.584V216.64L512 119.36z m222.592 229.888a32 32 0 0 1 0.448 44.864l-0.384 0.384-244.8 246.016a32 32 0 0 1-44.992 0.384l-0.384-0.384-155.136-155.968a32 32 0 0 1 44.992-45.504L467.2 572.608 689.28 349.44a32 32 0 0 1 45.312-0.128z",fill:"#27ae60"}))},emits:["submit","reply"],setup(e){const t=Dt("config"),n=xt((()=>t.value.locale)),o=xt((()=>{let{link:t}=e.comment;return t?Vr(t)?t:"https://".concat(t):""})),r=xt((()=>{const n=e.comment,o=t.value.avatar;return!(!n||o.hide)&&(e.comment.avatar&&("type"in e.comment||o.default)?e.comment.avatar:"".concat(o.cdn).concat(e.comment.mail).concat(o.param))})),i=xt((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:n,avatar:r,isReplyingCurrent:i,link:o,timeAgo:il}}}),Is=Yt({name:"Waline-Root",components:{CommentBox:ms,CommentCard:(0,hs.Z)(Os,[["render",function(e,t,n,o,r,i){const l=An("VerifiedIcon"),s=An("ReplyIcon"),a=An("CommentBox"),u=An("CommentCard",!0);return Un(),Vn("div",{class:"vitem",id:e.comment.objectId},[e.avatar?(Un(),Vn("img",{key:0,class:"vuser","aria-hidden":"true",src:e.avatar},null,8,vs)):Xn("v-if",!0),Jn("div",bs,[Jn("div",ys,[e.link?(Un(),Vn("a",{key:0,class:"vnick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},[Yn(d(e.comment.nick),1),e.comment.type?(Un(),Dn(l,{key:0})):Xn("v-if",!0)],8,ws)):(Un(),Vn("span",ks,[Yn(d(e.comment.nick),1),e.comment.type?(Un(),Dn(l,{key:0})):Xn("v-if",!0)])),"administrator"===e.comment.type?(Un(),Vn("span",{key:2,class:"vbadge",textContent:d(e.locale.admin)},null,8,xs)):Xn("v-if",!0),e.comment.sticky?(Un(),Vn("span",{key:3,class:"vbadge",textContent:d(e.locale.sticky)},null,8,_s)):Xn("v-if",!0),Jn("span",{class:"vtime",textContent:d(e.timeAgo(e.comment.insertedAt,e.locale))},null,8,Ss),Jn("button",{class:c(["vreply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[0]||(t[0]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[Kn(s)],10,Cs)]),Jn("div",Es,[e.comment.browser?(Un(),Vn("span",{key:0,textContent:d(e.comment.browser)},null,8,zs)):Xn("v-if",!0),e.comment.os?(Un(),Vn("span",{key:1,textContent:d(e.comment.os)},null,8,As)):Xn("v-if",!0)]),Jn("div",{class:"vcontent",innerHTML:e.comment.comment},null,8,Ls),e.isReplyingCurrent?(Un(),Vn("div",Rs,[Kn(a,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[1]||(t[1]=t=>e.$emit("submit",t)),onCancelReply:t[2]||(t[2]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):Xn("v-if",!0),e.comment.children?(Un(),Vn("div",Ts,[(Un(!0),Vn(Tn,null,no(e.comment.children,(n=>(Un(),Dn(u,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[3]||(t[3]=t=>e.$emit("reply",t)),onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t))},null,8,["comment","reply","rootId"])))),128))])):Xn("v-if",!0)])],8,gs)}]]),LoadingIcon:ps},props:{signal:{type:Object,required:!0}},setup(e){const t=Dt("config"),n=Dt("event"),{userInfo:o}=dl(),r=vt(0),i=vt(1),l=vt(0),s=vt(!0),a=vt(!1),c=vt([]),u=vt(null);let p=e.signal;const d=xt((()=>t.value.locale)),h=e=>{var n;s.value=!0,a.value=!1,(e=>{let{serverURL:t,path:n,page:o,pageSize:r,signal:i,token:l}=e;const s={};return l&&(s.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(n),"&pageSize=").concat(r,"&page=").concat(o),{signal:i,headers:s}).then((e=>e.json())).then((e=>Pr(e,"comment list")))})(Object.assign({},t.value,{page:e,signal:p,token:null===(n=o.value)||void 0===n?void 0:n.token})).then((t=>{s.value=!1,r.value=t.count,c.value.push(...t.data),i.value=e,l.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),a.value=!0,s.value=!1)}))};return n.on("render",(e=>{p=e,r.value=0,c.value=[],h(1)})),tn((()=>h(1))),{config:t,locale:d,count:r,data:c,loading:s,inError:a,page:i,totalPages:l,reply:u,loadMore:()=>h(i.value+1),refresh:()=>{c.value=[],h(1)},onReply:e=>{u.value=e},onSubmit:e=>{if(e.rid){const t=c.value.find((t=>{let{objectId:n}=t;return n===e.rid}));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else c.value.unshift(e)},version:"1.5.3"}}}),$s=(0,hs.Z)(Is,[["render",function(e,t,n,o,r,i){const l=An("CommentBox"),s=An("CommentCard"),a=An("LoadingIcon");return Un(),Vn("div",hl,[e.reply?Xn("v-if",!0):(Un(),Dn(l,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Jn("div",fl,[e.count?(Un(),Vn("span",{key:0,class:"vnum",textContent:d(e.count)},null,8,ml)):Xn("v-if",!0),Yn(" "+d(e.locale.comment),1)]),Jn("div",gl,[(Un(!0),Vn(Tn,null,no(e.data,(t=>(Un(),Dn(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit},null,8,["root-id","comment","reply","onReply","onSubmit"])))),128))]),e.inError?(Un(),Vn("div",vl,[Jn("button",{type:"button",class:"vbtn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:d(e.locale.refresh)},null,8,bl)])):e.loading?(Un(),Vn("div",yl,[Kn(a,{size:30})])):e.data.length?Xn("v-if",!0):(Un(),Vn("div",{key:3,class:"vempty",textContent:d(e.locale.sofa)},null,8,wl)),e.page<e.totalPages&&!e.loading?(Un(),Vn("div",kl,[Jn("button",{type:"button",class:"vbtn",onClick:t[1]||(t[1]=function(){return e.loadMore&&e.loadMore(...arguments)}),textContent:d(e.locale.more)},null,8,xl)])):Xn("v-if",!0),e.config.copyright?(Un(),Vn("div",_l,[Sl,Cl,Yn(" v"+d(e.version),1)])):Xn("v-if",!0)])}]]),js=$s;class Ms{constructor(){var e,t;t=void 0,(e="controller")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t,this.controller=new AbortController}get signal(){return this.controller.signal}abort(){this.controller.abort()}new(){this.abort(),this.controller=new AbortController}}const Us=(e,t)=>{const{path:n,serverURL:o,visitor:r}=e;r&&(e=>{let{serverURL:t,path:n,signal:o}=e;const r=(e=>{let{serverURL:t,path:n}=e;return fetch("".concat(t,"/article"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>Pr(e,"visit count")))})({serverURL:t,path:n}),i=Array.from(document.querySelectorAll(".waline-visitor-count,.leancloud_visitors,.leancloud-visitors")).filter((e=>e.getAttribute("id"))),l=i.map((e=>Fr(e.getAttribute("id")||""))),s=l.filter((e=>e!==n));s.length?(s.length===l.length?Promise.resolve():r).then((()=>(e=>{let{serverURL:t,paths:n,signal:o}=e;return fetch("".concat(t,"/article?path=").concat(encodeURIComponent(n.join(","))),{signal:o}).then((e=>e.json())).then((e=>Pr(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:t,paths:l,signal:o}))).then((e=>ll(e,i))).catch((e=>{"AbortError"!==e.name&&console.error(e.message)})):r.then((e=>ll(new Array(i.length).fill(e),i)))})({serverURL:o,path:n,signal:t}),((e,t)=>{var n;const o=Array.from(document.querySelectorAll(".waline-comment-count")).filter((e=>e.getAttribute("data-xid")||e.getAttribute("id"))),{userInfo:r}=dl();o.length&&(e=>{let{serverURL:t,paths:n,signal:o,token:r}=e;const i={};return r&&(i.Authorization="Bearer ".concat(r)),fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(n.join(","))),{signal:o,headers:i}).then((e=>e.json())).then((e=>Pr(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:o.map((e=>Fr(e.getAttribute("data-xid")||e.getAttribute("id")))),signal:t,token:null===(n=r.value)||void 0===n?void 0:n.token}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch((e=>{"AbortError"!==e.name&&console.error(e.message)}))})(o,t)},Ps=e=>(console.warn(e),{errMsg:e});function Fs(e){const{el:t,serverURL:n}=e;if(!n)return Ps("Option 'serverURL' is missing!");var o;e.dark&&"string"==typeof(o=e.dark)&&fi("auto"===o?"@media(prefers-color-scheme:dark){body".concat(hi,"}"):"".concat(o).concat(hi),"waline-dark"),e.mathTagSupport&&window.addEventListener("load",mi);const r=new Ms,i=new Ms,l=function(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map((function(e){e(n)})),(o=e.get("*"))&&o.slice().map((function(e){e(t,n)}))}}}(),{config:s,update:a}=(e=>{let t=e;const n=vt(ui(e));return{config:it(n),update:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t={...t,...e},n.value=ui(t)}}})(e);Us(s.value,i.signal);const c=gi(t);if(t&&!c)return Ps("Option 'el' do not match any domElement!");let u;c&&(u=((...e)=>{const t=(Ur||(Ur=_n(Mr))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){return L(e)?document.querySelector(e):e}(e);if(!o)return;const r=t._component;A(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t})(js,{signal:r.signal}).provide("config",s).provide("event",l).provide("version","1.5.3"),u.mount(c));const p={options:e,path:s.value.path};return{el:c,update:e=>{a(e);const{path:t}=s.value;p.path!==t&&(r.new(),p.path=t,l.emit("render",r.signal)),i.new(),Us(s.value,i.signal)},destroy:()=>{t&&u.unmount()}}}Fs.Widget={RecentComments:e=>{var t;let{el:n,serverURL:o,count:r}=e;const i=gi(n),l=new AbortController,{userInfo:s}=dl();return(e=>{let{serverURL:t,count:n,signal:o,token:r}=e;const i={};return r&&(i.Authorization="Bearer ".concat(r)),fetch("".concat(t,"/comment?type=recent&count=").concat(n),{signal:o,headers:i}).then((e=>e.json())).then((e=>Pr(e,"recent comment")))})({serverURL:o,count:r,signal:l.signal,token:null===(t=s.value)||void 0===t?void 0:t.token}).then((e=>i&&e.length?(i.innerHTML='<ul class="waline-widget-list">'.concat(e.map((e=>'<li class="waline-widget-item"><a href="'.concat(e.url,'">').concat(e.nick,"</a>:").concat(e.comment,"</li>"))).join(""),"</ul>"),{comments:e,destroy:()=>{l.abort(),i.innerHTML=""}}):{comments:e,destroy:()=>l.abort()}))}},Fs.version="1.5.3";const Ns=Fs})(),o.default})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Waline=t():e.Waline=t()}(this,(function(){return(()=>{var e={948:function(e){e.exports=function(){"use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(){return new RegExp("(?:"+t.line().source+")|(?:"+t.block().source+")","gm")};t.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},t.block=function(){return/\/\*([\S\s]*?)\*\//gm}})),t=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"];return function(n,o){void 0===o&&(o={});var r=o.colors;void 0===r&&(r=t);var i=0,l={},s=new RegExp("("+/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source+"|"+/</.source+")|("+e().source+")","gmi");return n.replace(s,(function(e,t,n){if(n)return function(e){return'<span style="color: slategray">'+e+"</span>"}(n);if("<"===t)return"&lt;";var o;l[t]?o=l[t]:(o=r[i],l[t]=o);var s='<span style="color: #'+o+'">'+t+"</span>";return i=++i%r.length,s}))}}()},407:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{"use strict";function e(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(o,{default:()=>Ns});const t=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function r(e){return!!e||""===e}function i(e){if(S(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=L(o)?a(o):i(o);if(r)for(const e in r)t[e]=r[e]}return t}return L(e)||T(e)?e:void 0}const l=/;(?![^(]*\))/g,s=/:(.+)/;function a(e){const t={};return e.split(l).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function c(e){let t="";if(L(e))t=e;else if(S(e))for(let n=0;n<e.length;n++){const o=c(e[n]);o&&(t+=o+" ")}else if(T(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function u(e,t){if(e===t)return!0;let n=z(e),o=z(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=S(e),o=S(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=u(e[o],t[o]);return n}(e,t);if(n=T(e),o=T(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!u(e[n],t[n]))return!1}}return String(e)===String(t)}function p(e,t){return e.findIndex((e=>u(e,t)))}const d=e=>null==e?"":S(e)||T(e)&&(e.toString===I||!A(e.toString))?JSON.stringify(e,h,2):String(e),h=(e,t)=>t&&t.__v_isRef?h(e,t.value):C(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:E(t)?{[`Set(${t.size})`]:[...t.values()]}:!T(t)||S(t)||j(t)?t:String(t),f={},m=[],g=()=>{},v=()=>!1,b=/^on[^a-z]/,y=e=>b.test(e),w=e=>e.startsWith("onUpdate:"),k=Object.assign,x=Object.prototype.hasOwnProperty,_=(e,t)=>x.call(e,t),S=Array.isArray,C=e=>"[object Map]"===$(e),E=e=>"[object Set]"===$(e),z=e=>e instanceof Date,A=e=>"function"==typeof e,L=e=>"string"==typeof e,R=e=>"symbol"==typeof e,T=e=>null!==e&&"object"==typeof e,O=e=>T(e)&&A(e.then)&&A(e.catch),I=Object.prototype.toString,$=e=>I.call(e),j=e=>"[object Object]"===$(e),M=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,U=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},F=/-(\w)/g,N=P((e=>e.replace(F,((e,t)=>t?t.toUpperCase():"")))),V=/\B([A-Z])/g,D=P((e=>e.replace(V,"-$1").toLowerCase())),B=P((e=>e.charAt(0).toUpperCase()+e.slice(1))),q=P((e=>e?`on${B(e)}`:"")),W=(e,t)=>!Object.is(e,t),H=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Z=(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 K;const Q=()=>K||(K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let Y;const X=[];class G{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&Y&&(this.parent=Y,this.index=(Y.scopes||(Y.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(X.push(this),Y=this)}off(){this.active&&(X.pop(),Y=X[X.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),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 ee=e=>{const t=new Set(e);return t.w=0,t.n=0,t},te=e=>(e.w&ie)>0,ne=e=>(e.n&ie)>0,oe=new WeakMap;let re=0,ie=1;const le=[];let se;const ae=Symbol(""),ce=Symbol("");class ue{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||Y)&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();if(!le.includes(this))try{return le.push(se=this),he.push(de),de=!0,ie=1<<++re,re<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ie})(this):pe(this),this.fn()}finally{re<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];te(r)&&!ne(r)?r.delete(e):t[n++]=r,r.w&=~ie,r.n&=~ie}t.length=n}})(this),ie=1<<--re,me(),le.pop();const e=le.length;se=e>0?le[e-1]:void 0}}stop(){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 me(){const e=he.pop();de=void 0===e||e}function ge(e,t,n){if(!ve())return;let o=oe.get(e);o||oe.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=ee()),be(r)}function ve(){return de&&void 0!==se}function be(e,t){let n=!1;re<=30?ne(e)||(e.n|=ie,n=!te(e)):n=!e.has(se),n&&(e.add(se),se.deps.push(e))}function ye(e,t,n,o,r,i){const l=oe.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&S(e))l.forEach(((e,t)=>{("length"===t||t>=o)&&s.push(e)}));else switch(void 0!==n&&s.push(l.get(n)),t){case"add":S(e)?M(n)&&s.push(l.get("length")):(s.push(l.get(ae)),C(e)&&s.push(l.get(ce)));break;case"delete":S(e)||(s.push(l.get(ae)),C(e)&&s.push(l.get(ce)));break;case"set":C(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(ee(e))}}function we(e,t){for(const t of S(e)?e:[...e])(t!==se||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const ke=e("__proto__,__v_isRef,__isVue"),xe=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(R)),_e=Ae(),Se=Ae(!1,!0),Ce=Ae(!0),Ee=ze();function ze(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ut(this);for(let e=0,t=this.length;e<t;e++)ge(n,0,e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(ut)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){fe();const n=ut(this)[t].apply(this,e);return me(),n}})),e}function Ae(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?ot:nt:t?tt:et).get(n))return n;const i=S(n);if(!e&&i&&_(Ee,o))return Reflect.get(Ee,o,r);const l=Reflect.get(n,o,r);return(R(o)?xe.has(o):ke(o))?l:(e||ge(n,0,o),t?l:gt(l)?i&&M(o)?l:l.value:T(l)?e?it(l):rt(l):l)}}function Le(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&!at(o)&&(o=ut(o),i=ut(i),!S(t)&&gt(i)&&!gt(o)))return i.value=o,!0;const l=S(t)&&M(n)?Number(n)<t.length:_(t,n),s=Reflect.set(t,n,o,r);return t===ut(r)&&(l?W(o,i)&&ye(t,"set",n,o):ye(t,"add",n,o)),s}}const Re={get:_e,set:Le(),deleteProperty:function(e,t){const n=_(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&ye(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return R(t)&&xe.has(t)||ge(e,0,t),n},ownKeys:function(e){return ge(e,0,S(e)?"length":ae),Reflect.ownKeys(e)}},Te={get:Ce,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Oe=k({},Re,{get:Se,set:Le(!0)}),Ie=e=>e,$e=e=>Reflect.getPrototypeOf(e);function je(e,t,n=!1,o=!1){const r=ut(e=e.__v_raw),i=ut(t);t!==i&&!n&&ge(r,0,t),!n&&ge(r,0,i);const{has:l}=$e(r),s=o?Ie:n?ht:dt;return l.call(r,t)?s(e.get(t)):l.call(r,i)?s(e.get(i)):void(e!==r&&e.get(t))}function Me(e,t=!1){const n=this.__v_raw,o=ut(n),r=ut(e);return e!==r&&!t&&ge(o,0,e),!t&&ge(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function Ue(e,t=!1){return e=e.__v_raw,!t&&ge(ut(e),0,ae),Reflect.get(e,"size",e)}function Pe(e){e=ut(e);const t=ut(this);return $e(t).has.call(t,e)||(t.add(e),ye(t,"add",e,e)),this}function Fe(e,t){t=ut(t);const n=ut(this),{has:o,get:r}=$e(n);let i=o.call(n,e);i||(e=ut(e),i=o.call(n,e));const l=r.call(n,e);return n.set(e,t),i?W(t,l)&&ye(n,"set",e,t):ye(n,"add",e,t),this}function Ne(e){const t=ut(this),{has:n,get:o}=$e(t);let r=n.call(t,e);r||(e=ut(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&ye(t,"delete",e,void 0),i}function Ve(){const e=ut(this),t=0!==e.size,n=e.clear();return t&&ye(e,"clear",void 0,void 0),n}function De(e,t){return function(n,o){const r=this,i=r.__v_raw,l=ut(i),s=t?Ie:e?ht:dt;return!e&&ge(l,0,ae),i.forEach(((e,t)=>n.call(o,s(e),s(t),r)))}}function Be(e,t,n){return function(...o){const r=this.__v_raw,i=ut(r),l=C(i),s="entries"===e||e===Symbol.iterator&&l,a="keys"===e&&l,c=r[e](...o),u=n?Ie:t?ht:dt;return!t&&ge(i,0,a?ce:ae),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function qe(e){return function(...t){return"delete"!==e&&this}}function We(){const e={get(e){return je(this,e)},get size(){return Ue(this)},has:Me,add:Pe,set:Fe,delete:Ne,clear:Ve,forEach:De(!1,!1)},t={get(e){return je(this,e,!1,!0)},get size(){return Ue(this)},has:Me,add:Pe,set:Fe,delete:Ne,clear:Ve,forEach:De(!1,!0)},n={get(e){return je(this,e,!0)},get size(){return Ue(this,!0)},has(e){return Me.call(this,e,!0)},add:qe("add"),set:qe("set"),delete:qe("delete"),clear:qe("clear"),forEach:De(!0,!1)},o={get(e){return je(this,e,!0,!0)},get size(){return Ue(this,!0)},has(e){return Me.call(this,e,!0)},add:qe("add"),set:qe("set"),delete:qe("delete"),clear:qe("clear"),forEach:De(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Be(r,!1,!1),n[r]=Be(r,!0,!1),t[r]=Be(r,!1,!0),o[r]=Be(r,!0,!0)})),[e,n,t,o]}const[He,Ze,Je,Ke]=We();function Qe(e,t){const n=t?e?Ke:Je:e?Ze:He;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(_(n,o)&&o in t?n:t,o,r)}const Ye={get:Qe(!1,!1)},Xe={get:Qe(!1,!0)},Ge={get:Qe(!0,!1)},et=new WeakMap,tt=new WeakMap,nt=new WeakMap,ot=new WeakMap;function rt(e){return e&&e.__v_isReadonly?e:lt(e,!1,Re,Ye,et)}function it(e){return lt(e,!0,Te,Ge,nt)}function lt(e,t,n,o,r){if(!T(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const l=(s=e).__v_skip||!Object.isExtensible(s)?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=>$(e).slice(8,-1))(s));var s;if(0===l)return e;const a=new Proxy(e,2===l?o:n);return r.set(e,a),a}function st(e){return at(e)?st(e.__v_raw):!(!e||!e.__v_isReactive)}function at(e){return!(!e||!e.__v_isReadonly)}function ct(e){return st(e)||at(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function pt(e){return Z(e,"__v_skip",!0),e}const dt=e=>T(e)?rt(e):e,ht=e=>T(e)?it(e):e;function ft(e){ve()&&((e=ut(e)).dep||(e.dep=ee()),be(e.dep))}function mt(e,t){(e=ut(e)).dep&&we(e.dep)}function gt(e){return Boolean(e&&!0===e.__v_isRef)}function vt(e){return n=!1,gt(t=e)?t:new bt(t,n);var t,n}class bt{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ut(e),this._value=t?e:dt(e)}get value(){return ft(this),this._value}set value(e){e=this._shallow?e:ut(e),W(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:dt(e),mt(this))}}const yt={get:(e,t,n)=>{return gt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return gt(r)&&!gt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function wt(e){return st(e)?e:new Proxy(e,yt)}class kt{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new ue(e,(()=>{this._dirty||(this._dirty=!0,mt(this))})),this.__v_isReadonly=n}get value(){const e=ut(this);return ft(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function xt(e,t){let n,o;const r=A(e);return r?(n=e,o=g):(n=e.get,o=e.set),new kt(n,o,r||!o)}Promise.resolve(),new Set,new Map;let _t,St=[],Ct=!1;function Et(e,...t){_t?_t.emit(e,...t):Ct||St.push({event:e,args:t})}function zt(e,t){var n,o;_t=e,_t?(_t.enabled=!0,St.forEach((({event:e,args:t})=>_t.emit(e,...t))),St=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(o=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===o?void 0:o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{zt(e,t)})),setTimeout((()=>{_t||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ct=!0,St=[])}),3e3)):(Ct=!0,St=[])}const At=Tt("component:added"),Lt=Tt("component:updated"),Rt=Tt("component:removed");function Tt(e){return t=>{Et(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Ot(e,t,...n){const o=e.vnode.props||f;let r=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in o){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:i}=o[e]||f;i?r=n.map((e=>e.trim())):t&&(r=n.map(J))}let s;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Et("component:emit",e.appContext.app,e,t,n)}(e,t,r);let a=o[s=q(t)]||o[s=q(N(t))];!a&&i&&(a=o[s=q(D(t))]),a&&yo(a,e,6,r);const c=o[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,yo(c,e,6,r)}}function It(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let l={};return i?(S(i)?i.forEach((e=>l[e]=null)):k(l,i),o.set(e,l),l):(o.set(e,null),null)}function $t(e,t){return!(!e||!y(t))&&(t=t.slice(2).replace(/Once$/,""),_(e,t[0].toLowerCase()+t.slice(1))||_(e,D(t))||_(e,t))}let jt=null,Mt=null;function Ut(e){const t=jt;return jt=e,Mt=e&&e.type.__scopeId||null,t}function Pt(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const b=Ut(e);try{if(4&n.shapeFlag){const e=r||o;g=Gn(u.call(e,e,p,i,h,d,f)),v=a}else{const e=t;g=Gn(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:Ft(a)}}catch(t){jn.length=0,wo(t,e,1),g=Kn(In)}let y=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=y;e.length&&7&t&&(l&&e.some(w)&&(v=Nt(v,l)),y=Qn(y,v))}return n.dirs&&(y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),g=y,Ut(b),g}const Ft=e=>{let t;for(const n in e)("class"===n||"style"===n||y(n))&&((t||(t={}))[n]=e[n]);return t},Nt=(e,t)=>{const n={};for(const o in e)w(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Vt(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!$t(n,i))return!0}return!1}function Dt(e,t,n=!1){const o=ao||jt;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&A(t)?t.call(o.proxy):t}}const Bt=[Function,Array],qt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Bt,onEnter:Bt,onAfterEnter:Bt,onEnterCancelled:Bt,onBeforeLeave:Bt,onLeave:Bt,onAfterLeave:Bt,onLeaveCancelled:Bt,onBeforeAppear:Bt,onAppear:Bt,onAfterAppear:Bt,onAppearCancelled:Bt},setup(e,{slots:t}){const n=co(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tn((()=>{e.isMounted=!0})),nn((()=>{e.isUnmounting=!0})),e}();let r;return()=>{const i=t.default&&Qt(t.default(),!0);if(!i||!i.length)return;const l=ut(e),{mode:s}=l,a=i[0];if(o.isLeaving)return Zt(a);const c=Jt(a);if(!c)return Zt(a);const u=Ht(c,l,o,n);Kt(c,u);const p=n.subTree,d=p&&Jt(p);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(d&&d.type!==In&&(!qn(c,d)||h)){const e=Ht(d,l,o,n);if(Kt(d,e),"out-in"===s)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},Zt(a);"in-out"===s&&c.type!==In&&(e.delayLeave=(e,t,n)=>{Wt(o,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return a}}};function Wt(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ht(e,t,n,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:s,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:d,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:b}=t,y=String(e.key),w=Wt(n,e),k=(e,t)=>{e&&yo(e,o,9,t)},x={mode:i,persisted:l,beforeEnter(t){let o=s;if(!n.isMounted){if(!r)return;o=m||s}t._leaveCb&&t._leaveCb(!0);const i=w[y];i&&qn(e,i)&&i.el._leaveCb&&i.el._leaveCb(),k(o,[t])},enter(e){let t=a,o=c,i=u;if(!n.isMounted){if(!r)return;t=g||a,o=v||c,i=b||u}let l=!1;const s=e._enterCb=t=>{l||(l=!0,k(t?i:o,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();k(p,[t]);let i=!1;const l=t._leaveCb=n=>{i||(i=!0,o(),k(n?f:h,[t]),t._leaveCb=void 0,w[r]===e&&delete w[r])};w[r]=e,d?(d(t,l),d.length<=1&&l()):l()},clone:e=>Ht(e,t,n,o)};return x}function Zt(e){if(Gt(e))return(e=Qn(e)).children=null,e}function Jt(e){return Gt(e)?e.children?e.children[0]:void 0:e}function Kt(e,t){6&e.shapeFlag&&e.component?Kt(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Qt(e,t=!1){let n=[],o=0;for(let r=0;r<e.length;r++){const i=e[r];i.type===Tn?(128&i.patchFlag&&o++,n=n.concat(Qt(i.children,t))):(t||i.type!==In)&&n.push(i)}if(o>1)for(let e=0;e<n.length;e++)n[e].patchFlag=-2;return n}function Yt(e){return A(e)?{setup:e,name:e.name}:e}const Xt=e=>!!e.type.__asyncLoader,Gt=e=>e.type.__isKeepAlive;RegExp,RegExp;const en=e=>(t,n=ao)=>(!fo||"sp"===e)&&function(e,t,n=ao,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;fe(),uo(n);const r=yo(t,n,e,o);return po(),me(),r});return o?r.unshift(i):r.push(i),i}}(e,t,n),tn=(en("bm"),en("m")),nn=(en("bu"),en("u"),en("bum")),on=en("um");function rn(e,t,n,o){const[r,i]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(U(a))continue;const c=t[a];let u;r&&_(r,u=N(a))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:$t(e.emitsOptions,a)||c!==o[a]&&(o[a]=c,s=!0)}if(i){const t=ut(n),o=l||f;for(let l=0;l<i.length;l++){const s=i[l];n[s]=ln(r,t,s,o[s],e,!_(o,s))}}return s}function ln(e,t,n,o,r,i){const l=e[n];if(null!=l){const e=_(l,"default");if(e&&void 0===o){const e=l.default;if(l.type!==Function&&A(e)){const{propsDefaults:i}=r;n in i?o=i[n]:(uo(r),o=i[n]=e.call(null,t),po())}else o=e}l[0]&&(i&&!e?o=!1:!l[1]||""!==o&&o!==D(n)||(o=!0))}return o}function sn(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,l={},s=[];if(!i)return o.set(e,m),m;if(S(i))for(let e=0;e<i.length;e++){const t=N(i[e]);an(t)&&(l[t]=f)}else if(i)for(const e in i){const t=N(e);if(an(t)){const n=i[e],o=l[t]=S(n)||A(n)?{type:n}:n;if(o){const e=pn(Boolean,o.type),n=pn(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||_(o,"default"))&&s.push(t)}}}const a=[l,s];return o.set(e,a),a}function an(e){return"$"!==e[0]}function cn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function un(e,t){return cn(e)===cn(t)}function pn(e,t){return S(t)?t.findIndex((t=>un(t,e))):A(t)&&un(t,e)?0:-1}en("sp"),en("rtg"),en("rtc");const dn=e=>"_"===e[0]||"$stable"===e,hn=e=>S(e)?e.map(Gn):[Gn(e)],fn=(e,t,n)=>{const o=function(e,t=jt,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Fn(-1);const r=Ut(t),i=e(...n);return Ut(r),o._d&&Fn(1),__VUE_PROD_DEVTOOLS__&&Lt(t),i};return o._n=!0,o._c=!0,o._d=!0,o}(((...e)=>hn(t(...e))),n);return o._c=!1,o},mn=(e,t,n)=>{const o=e._ctx;for(const n in e){if(dn(n))continue;const r=e[n];if(A(r))t[n]=fn(0,r,o);else if(null!=r){const e=hn(r);t[n]=()=>e}}},gn=(e,t)=>{const n=hn(t);e.slots.default=()=>n};function vn(e,t){if(null===jt)return e;const n=jt.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[r,i,l,s=f]=t[e];A(r)&&(r={mounted:r,updated:r}),r.deep&&qo(i),o.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:s})}return e}function bn(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let l=0;l<r.length;l++){const s=r[l];i&&(s.oldValue=i[l].value);let a=s.dir[o];a&&(fe(),yo(a,n,8,[e.el,s,e,t]),me())}}function yn(){return{app:null,config:{isNativeTag:v,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 kn(e,t){return function(n,o=null){null==o||T(o)||(o=null);const r=yn(),i=new Set;let l=!1;const s=r.app={_uid:wn++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:Ho,get config(){return r.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&A(e.install)?(i.add(e),e.install(s,...t)):A(e)&&(i.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(i,a,c){if(!l){const u=Kn(n,o);return u.appContext=r,a&&t?t(u,i):e(u,i,c),l=!0,s._container=i,i.__vue_app__=s,__VUE_PROD_DEVTOOLS__&&(s._instance=u.component,function(e,t){Et("app:init",e,t,{Fragment:Tn,Text:On,Comment:In,Static:$n})}(s,Ho)),vo(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(e){Et("app:unmount",e)}(s)),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s)};return s}}const xn=function(e,t){t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):Uo(e,Lo,Ao,Ro)};function _n(e,t){"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Q().__VUE_PROD_DEVTOOLS__=!1);const n=Q();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&zt(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:r,patchProp:i,createElement:l,createText:s,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:d,setScopeId:h=g,cloneNode:v,insertStaticContent:b}=e,y=(e,t,n,o=null,r=null,i=null,l=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!qn(e,t)&&(o=te(e),J(e,r,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case On:w(e,t,n,o);break;case In:x(e,t,n,o);break;case $n:null==e&&S(t,n,o,l);break;case Tn:I(e,t,n,o,r,i,l,s,a);break;default:1&p?C(e,t,n,o,r,i,l,s,a):6&p?$(e,t,n,o,r,i,l,s,a):(64&p||128&p)&&c.process(e,t,n,o,r,i,l,s,a,oe)}null!=u&&r&&Sn(u,e&&e.ref,i,t||e,!t)},w=(e,t,n,r)=>{if(null==e)o(t.el=s(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},x=(e,t,n,r)=>{null==e?o(t.el=a(t.children||""),n,r):t.el=e.el},S=(e,t,n,o)=>{[e.el,e.anchor]=b(e.children,t,n,o)},C=(e,t,n,o,r,i,l,s,a)=>{l=l||"svg"===t.type,null==e?E(t,n,o,r,i,l,s,a):L(e,t,r,i,l,s,a)},E=(e,t,n,r,s,a,c,p)=>{let d,h;const{type:f,props:m,shapeFlag:g,transition:b,patchFlag:y,dirs:w}=e;if(e.el&&void 0!==v&&-1===y)d=e.el=v(e.el);else{if(d=e.el=l(e.type,a,m&&m.is,m),8&g?u(d,e.children):16&g&&A(e.children,d,null,r,s,a&&"foreignObject"!==f,c,p),w&&bn(e,null,r,"created"),m){for(const t in m)"value"===t||U(t)||i(d,t,null,m[t],a,e.children,r,s,ee);"value"in m&&i(d,"value",null,m.value),(h=m.onVnodeBeforeMount)&&Cn(h,r,e)}z(d,e,e.scopeId,c,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1})),w&&bn(e,null,r,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&b&&!b.persisted;k&&b.beforeEnter(d),o(d,t,n),((h=m&&m.onVnodeMounted)||k||w)&&xn((()=>{h&&Cn(h,r,e),k&&b.enter(d),w&&bn(e,null,r,"mounted")}),s)},z=(e,t,n,o,r)=>{if(n&&h(e,n),o)for(let t=0;t<o.length;t++)h(e,o[t]);if(r&&t===r.subTree){const t=r.vnode;z(e,t,t.scopeId,t.slotScopeIds,r.parent)}},A=(e,t,n,o,r,i,l,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?eo(e[c]):Gn(e[c]);y(null,a,t,n,o,r,i,l,s)}},L=(e,t,n,o,r,l,s)=>{const a=t.el=e.el;let{patchFlag:c,dynamicChildren:p,dirs:d}=t;c|=16&e.patchFlag;const h=e.props||f,m=t.props||f;let g;(g=m.onVnodeBeforeUpdate)&&Cn(g,n,t,e),d&&bn(t,e,n,"beforeUpdate");const v=r&&"foreignObject"!==t.type;if(p?R(e.dynamicChildren,p,a,n,o,v,l):s||V(e,t,a,null,n,o,v,l,!1),c>0){if(16&c)T(a,t,h,m,n,o,r);else if(2&c&&h.class!==m.class&&i(a,"class",null,m.class,r),4&c&&i(a,"style",h.style,m.style,r),8&c){const l=t.dynamicProps;for(let t=0;t<l.length;t++){const s=l[t],c=h[s],u=m[s];u===c&&"value"!==s||i(a,s,c,u,r,e.children,n,o,ee)}}1&c&&e.children!==t.children&&u(a,t.children)}else s||null!=p||T(a,t,h,m,n,o,r);((g=m.onVnodeUpdated)||d)&&xn((()=>{g&&Cn(g,n,t,e),d&&bn(t,e,n,"updated")}),o)},R=(e,t,n,o,r,i,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],u=a.el&&(a.type===Tn||!qn(a,c)||70&a.shapeFlag)?p(a.el):n;y(a,c,u,null,o,r,i,l,!0)}},T=(e,t,n,o,r,l,s)=>{if(n!==o){for(const a in o){if(U(a))continue;const c=o[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,s,t.children,r,l,ee)}if(n!==f)for(const a in n)U(a)||a in o||i(e,a,n[a],null,s,t.children,r,l,ee);"value"in o&&i(e,"value",n.value,o.value)}},I=(e,t,n,r,i,l,a,c,u)=>{const p=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(o(p,n,r),o(d,n,r),A(t.children,n,d,i,l,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(R(e.dynamicChildren,f,n,i,l,a,c),(null!=t.key||i&&t===i.subTree)&&En(e,t,!0)):V(e,t,n,d,i,l,a,c,u)},$=(e,t,n,o,r,i,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,l,a):j(t,n,o,r,i,l,a):M(e,t,a)},j=(e,t,n,o,r,i,l)=>{const s=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||lo,i={uid:so++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,update:null,scope:new G(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sn(o,r),emitsOptions:It(o,r),emit:null,emitted:null,propsDefaults:f,inheritAttrs:o.inheritAttrs,ctx:f,data:f,props:f,attrs:f,slots:f,refs:f,setupState:f,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};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ot.bind(null,i),e.ce&&e.ce(i),i}(e,o,r);if(Gt(e)&&(s.ctx.renderer=oe),function(e,t=!1){fo=t;const{props:n,children:o}=e.vnode,r=ho(e);(function(e,t,n,o=!1){const r={},i={};Z(i,Wn,1),e.propsDefaults=Object.create(null),rn(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:lt(r,!1,Oe,Xe,tt):e.type.props?e.props=r:e.props=i,e.attrs=i})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=ut(t),Z(t,"_",n)):mn(t,e.slots={})}else e.slots={},t&&gn(e,t);Z(e.slots,Wn,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=pt(new Proxy(e.ctx,io));const{setup:o}=n;if(o){const n=e.setupContext=o.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)=>(ge(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;uo(e),fe();const r=bo(o,e,0,[e.props,n]);if(me(),po(),O(r)){if(r.then(po,po),t)return r.then((n=>{mo(e,n,t)})).catch((t=>{wo(t,e,0)}));e.asyncDep=r}else mo(e,r,t)}else go(e,t)}(e,t):void 0;fo=!1}(s),s.asyncDep){if(r&&r.registerDep(s,P),!e.el){const e=s.subTree=Kn(In);x(null,e,t,n)}}else P(s,e,t,n,r,i,l)},M=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:l,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!s||s&&s.$stable)||o!==l&&(o?!l||Vt(o,l,c):!!l);if(1024&a)return!0;if(16&a)return o?Vt(o,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]!==o[n]&&!$t(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void F(o,t,n);o.next=t,function(e){const t=_o.indexOf(e);t>So&&_o.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},P=(e,t,n,o,r,i,l)=>{const s=new ue((()=>{if(e.isMounted){let t,{next:n,bu:o,u:a,parent:c,vnode:u}=e,d=n;s.allowRecurse=!1,n?(n.el=u.el,F(e,n,l)):n=u,o&&H(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Cn(t,c,n,u),s.allowRecurse=!0;const h=Pt(e),f=e.subTree;e.subTree=h,y(f,h,p(f.el),te(f),e,r,i),n.el=h.el,null===d&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,h.el),a&&xn(a,r),(t=n.props&&n.props.onVnodeUpdated)&&xn((()=>Cn(t,c,n,u)),r),__VUE_PROD_DEVTOOLS__&&Lt(e)}else{let l;const{el:a,props:c}=t,{bm:u,m:p,parent:d}=e,h=Xt(t);if(s.allowRecurse=!1,u&&H(u),!h&&(l=c&&c.onVnodeBeforeMount)&&Cn(l,d,t),s.allowRecurse=!0,a&&ie){const n=()=>{e.subTree=Pt(e),ie(a,e.subTree,e,r,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=Pt(e);y(null,l,n,o,e,r,i),t.el=l.el}if(p&&xn(p,r),!h&&(l=c&&c.onVnodeMounted)){const e=t;xn((()=>Cn(l,d,e)),r)}256&t.shapeFlag&&e.a&&xn(e.a,r),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&At(e),t=n=o=null}}),(()=>jo(e.update)),e.scope),a=e.update=s.run.bind(s);a.id=e.uid,s.allowRecurse=a.allowRecurse=!0,a()},F=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,s=ut(r),[a]=e.propsOptions;let c=!1;if(!(o||l>0)||16&l){let o;rn(e,t,r,i)&&(c=!0);for(const i in s)t&&(_(t,i)||(o=D(i))!==i&&_(t,o))||(a?!n||void 0===n[i]&&void 0===n[o]||(r[i]=ln(a,s,i,void 0,e,!0)):delete r[i]);if(i!==s)for(const e in i)t&&_(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let l=n[o];const u=t[l];if(a)if(_(i,l))u!==i[l]&&(i[l]=u,c=!0);else{const t=N(l);r[t]=ln(a,s,t,u,e,!1)}else u!==i[l]&&(i[l]=u,c=!0)}}c&&ye(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,l=f;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(k(r,t),n||1!==e||delete r._):(i=!t.$stable,mn(t,r)),l=t}else t&&(gn(e,t),l={default:1});if(i)for(const e in r)dn(e)||e in l||delete r[e]})(e,t.children,n),fe(),Po(void 0,e.update),me()},V=(e,t,n,o,r,i,l,s,a=!1)=>{const c=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void q(c,d,n,o,r,i,l,s,a);if(256&h)return void B(c,d,n,o,r,i,l,s,a)}8&f?(16&p&&ee(c,r,i),d!==c&&u(n,d)):16&p?16&f?q(c,d,n,o,r,i,l,s,a):ee(c,r,i,!0):(8&p&&u(n,""),16&f&&A(d,n,o,r,i,l,s,a))},B=(e,t,n,o,r,i,l,s,a)=>{t=t||m;const c=(e=e||m).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const o=t[d]=a?eo(t[d]):Gn(t[d]);y(e[d],o,n,null,r,i,l,s,a)}c>u?ee(e,r,i,!0,!1,p):A(t,n,o,r,i,l,s,a,p)},q=(e,t,n,o,r,i,l,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const o=e[c],u=t[c]=a?eo(t[c]):Gn(t[c]);if(!qn(o,u))break;y(o,u,n,null,r,i,l,s,a),c++}for(;c<=p&&c<=d;){const o=e[p],c=t[d]=a?eo(t[d]):Gn(t[d]);if(!qn(o,c))break;y(o,c,n,null,r,i,l,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:o;for(;c<=d;)y(null,t[c]=a?eo(t[c]):Gn(t[c]),n,p,r,i,l,s,a),c++}}else if(c>d)for(;c<=p;)J(e[c],r,i,!0),c++;else{const h=c,f=c,g=new Map;for(c=f;c<=d;c++){const e=t[c]=a?eo(t[c]):Gn(t[c]);null!=e.key&&g.set(e.key,c)}let v,b=0;const w=d-f+1;let k=!1,x=0;const _=new Array(w);for(c=0;c<w;c++)_[c]=0;for(c=h;c<=p;c++){const o=e[c];if(b>=w){J(o,r,i,!0);continue}let u;if(null!=o.key)u=g.get(o.key);else for(v=f;v<=d;v++)if(0===_[v-f]&&qn(o,t[v])){u=v;break}void 0===u?J(o,r,i,!0):(_[u-f]=c+1,u>=x?x=u:k=!0,y(o,t[u],n,null,r,i,l,s,a),b++)}const S=k?function(e){const t=e.slice(),n=[0];let o,r,i,l,s;const a=e.length;for(o=0;o<a;o++){const a=e[o];if(0!==a){if(r=n[n.length-1],e[r]<a){t[o]=r,n.push(o);continue}for(i=0,l=n.length-1;i<l;)s=i+l>>1,e[n[s]]<a?i=s+1:l=s;a<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}(_):m;for(v=S.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:o;0===_[c]?y(null,p,n,d,r,i,l,s,a):k&&(v<0||c!==S[v]?W(p,n,d,2):v--)}}},W=(e,t,n,r,i=null)=>{const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)W(e.component.subTree,t,n,r);else if(128&u)e.suspense.move(t,n,r);else if(64&u)s.move(e,t,n,oe);else if(s!==Tn)if(s!==$n)if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(l),o(l,t,n),xn((()=>a.enter(l)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=a,s=()=>o(l,t,n),c=()=>{e(l,(()=>{s(),i&&i()}))};r?r(l,s,c):c()}else o(l,t,n);else(({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=d(e),o(e,n,r),e=i;o(t,n,r)})(e,t,n);else{o(l,t,n);for(let e=0;e<c.length;e++)W(c[e],t,n,r);o(e.anchor,t,n)}},J=(e,t,n,o=!1,r=!1)=>{const{type:i,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&Sn(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Xt(e);let m;if(f&&(m=l&&l.onVnodeBeforeUnmount)&&Cn(m,t,e),6&u)X(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&bn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,oe,o):c&&(i!==Tn||p>0&&64&p)?ee(c,t,n,!1,!0):(i===Tn&&384&p||!r&&16&u)&&ee(a,t,n),o&&K(e)}(f&&(m=l&&l.onVnodeUnmounted)||h)&&xn((()=>{m&&Cn(m,t,e),h&&bn(e,null,t,"unmounted")}),n)},K=e=>{const{type:t,el:n,anchor:o,transition:i}=e;if(t===Tn)return void Y(n,o);if(t===$n)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),r(e),e=n;r(t)})(e);const l=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,r=()=>t(n,l);o?o(e.el,l,r):r()}else l()},Y=(e,t)=>{let n;for(;e!==t;)n=d(e),r(e),e=n;r(t)},X=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:l,um:s}=e;o&&H(o),r.stop(),i&&(i.active=!1,J(l,e,t,n)),s&&xn(s,t),xn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Rt(e)},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let l=i;l<e.length;l++)J(e[l],t,n,o,r)},te=e=>6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Fo(),t._vnode=e},oe={p:y,um:J,m:W,r:K,mt:j,mc:A,pc:V,pbc:R,n:te,o:e};let re,ie;return t&&([re,ie]=t(oe)),{render:ne,hydrate:re,createApp:kn(ne,re)}}function Sn(e,t,n,o,r=!1){if(S(e))return void e.forEach(((e,i)=>Sn(e,t&&(S(t)?t[i]:t),n,o,r)));if(Xt(o)&&!r)return;const i=4&o.shapeFlag?vo(o.component)||o.component.proxy:o.el,l=r?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===f?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(L(c)?(u[c]=null,_(p,c)&&(p[c]=null)):gt(c)&&(c.value=null)),L(a)){const e=()=>{u[a]=l,_(p,a)&&(p[a]=l)};l?(e.id=-1,xn(e,n)):e()}else if(gt(a)){const e=()=>{a.value=l};l?(e.id=-1,xn(e,n)):e()}else A(a)&&bo(a,s,12,[l,u])}function Cn(e,t,n,o=null){yo(e,t,7,[n,o])}function En(e,t,n=!1){const o=e.children,r=t.children;if(S(o)&&S(r))for(let e=0;e<o.length;e++){const t=o[e];let i=r[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=r[e]=eo(r[e]),i.el=t.el),n||En(t,i))}}const zn="components";function An(e,t){return function(e,t,n=!0,o=!1){const r=jt||ao;if(r){const n=r.type;if(e===zn){const e=function(e){return A(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===N(t)||e===B(N(t))))return n}const i=Rn(r[e]||n[e],t)||Rn(r.appContext[e],t);return!i&&o?n:i}}(zn,e,!0,t)||e}const Ln=Symbol();function Rn(e,t){return e&&(e[t]||e[N(t)]||e[B(N(t))])}const Tn=Symbol(void 0),On=Symbol(void 0),In=Symbol(void 0),$n=Symbol(void 0),jn=[];let Mn=null;function Un(e=!1){jn.push(Mn=e?null:[])}let Pn=1;function Fn(e){Pn+=e}function Nn(e){return e.dynamicChildren=Pn>0?Mn||m:null,jn.pop(),Mn=jn[jn.length-1]||null,Pn>0&&Mn&&Mn.push(e),e}function Vn(e,t,n,o,r,i){return Nn(Jn(e,t,n,o,r,i,!0))}function Dn(e,t,n,o,r){return Nn(Kn(e,t,n,o,r,!0))}function Bn(e){return!!e&&!0===e.__v_isVNode}function qn(e,t){return e.type===t.type&&e.key===t.key}const Wn="__vInternal",Hn=({key:e})=>null!=e?e:null,Zn=({ref:e})=>null!=e?L(e)||gt(e)||A(e)?{i:jt,r:e}:e:null;function Jn(e,t=null,n=null,o=0,r=null,i=(e===Tn?0:1),l=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hn(t),ref:t&&Zn(t),scopeId:Mt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return s?(to(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=L(n)?8:16),Pn>0&&!l&&Mn&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Mn.push(a),a}const Kn=function(e,t=null,n=null,o=0,r=null,l=!1){if(e&&e!==Ln||(e=In),Bn(e)){const o=Qn(e,t,!0);return n&&to(o,n),o}if(s=e,A(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=function(e){return e?ct(e)||Wn in e?k({},e):e:null}(t);let{class:e,style:n}=t;e&&!L(e)&&(t.class=c(e)),T(n)&&(ct(n)&&!S(n)&&(n=k({},n)),t.style=i(n))}var s;return Jn(e,t,n,o,r,L(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:T(e)?4:A(e)?2:0,l,!0)};function Qn(e,t,n=!1){const{props:o,ref:r,patchFlag:l,children:s}=e,a=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=c([t.class,o.class]));else if("style"===e)t.style=i([t.style,o.style]);else if(y(e)){const n=t[e],r=o[e];n===r||S(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Hn(a),ref:t&&t.ref?n&&r?S(r)?r.concat(Zn(t)):[r,Zn(t)]:Zn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Tn?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qn(e.ssContent),ssFallback:e.ssFallback&&Qn(e.ssFallback),el:e.el,anchor:e.anchor}}function Yn(e=" ",t=0){return Kn(On,null,e,t)}function Xn(e="",t=!1){return t?(Un(),Dn(In,null,e)):Kn(In,null,e)}function Gn(e){return null==e||"boolean"==typeof e?Kn(In):S(e)?Kn(Tn,null,e.slice()):"object"==typeof e?eo(e):Kn(On,null,String(e))}function eo(e){return null===e.el||e.memo?e:Qn(e)}function to(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(S(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),to(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Wn in t?3===o&&jt&&(1===jt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=jt}}else A(t)?(t={default:t,_ctx:jt},n=32):(t=String(t),64&o?(n=16,t=[Yn(t)]):n=8);e.children=t,e.shapeFlag|=n}function no(e,t,n,o){let r;const i=n&&n[o];if(S(e)||L(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i&&i[n])}else if(T(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,l=n.length;o<l;o++){const l=n[o];r[o]=t(e[l],l,o,i&&i[o])}}else r=[];return n&&(n[o]=r),r}const oo=e=>e?ho(e)?vo(e)||e.proxy:oo(e.parent):null,ro=k(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=>oo(e.parent),$root:e=>oo(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>()=>jo(e.update),$nextTick:e=>$o.bind(e.proxy),$watch:e=>g}),io={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:l,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(o!==f&&_(o,t))return l[t]=1,o[t];if(r!==f&&_(r,t))return l[t]=2,r[t];if((c=e.propsOptions[0])&&_(c,t))return l[t]=3,i[t];if(n!==f&&_(n,t))return l[t]=4,n[t];l[t]=0}}const u=ro[t];let p,d;return u?("$attrs"===t&&ge(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==f&&_(n,t)?(l[t]=4,n[t]):(d=a.config.globalProperties,_(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==f&&_(r,t))r[t]=n;else if(o!==f&&_(o,t))o[t]=n;else if(_(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},l){let s;return!!n[l]||e!==f&&_(e,l)||t!==f&&_(t,l)||(s=i[0])&&_(s,l)||_(o,l)||_(ro,l)||_(r.config.globalProperties,l)}},lo=yn();let so=0;let ao=null;const co=()=>ao||jt,uo=e=>{ao=e,e.scope.on()},po=()=>{ao&&ao.scope.off(),ao=null};function ho(e){return 4&e.vnode.shapeFlag}let fo=!1;function mo(e,t,n){A(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:T(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=wt(t)),go(e,n)}function go(e,t,n){const o=e.type;e.render||(e.render=o.render||g)}function vo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(wt(pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ro?ro[n](e):void 0}))}function bo(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){wo(e,t,n)}return r}function yo(e,t,n,o){if(A(e)){const r=bo(e,t,n,o);return r&&O(r)&&r.catch((e=>{wo(e,t,n)})),r}const r=[];for(let i=0;i<e.length;i++)r.push(yo(e[i],t,n,o));return r}function wo(e,t,n,o=!0){if(t&&t.vnode,t){let o=t.parent;const r=t.proxy,i=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const l=t.appContext.config.errorHandler;if(l)return void bo(l,null,10,[e,r,i])}!function(e,t,n,o=!0){console.error(e)}(e,0,0,o)}let ko=!1,xo=!1;const _o=[];let So=0;const Co=[];let Eo=null,zo=0;const Ao=[];let Lo=null,Ro=0;const To=Promise.resolve();let Oo=null,Io=null;function $o(e){const t=Oo||To;return e?t.then(this?e.bind(this):e):t}function jo(e){_o.length&&_o.includes(e,ko&&e.allowRecurse?So+1:So)||e===Io||(null==e.id?_o.push(e):_o.splice(function(e){let t=So+1,n=_o.length;for(;t<n;){const o=t+n>>>1;No(_o[o])<e?t=o+1:n=o}return t}(e.id),0,e),Mo())}function Mo(){ko||xo||(xo=!0,Oo=To.then(Vo))}function Uo(e,t,n,o){S(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),Mo()}function Po(e,t=null){if(Co.length){for(Io=t,Eo=[...new Set(Co)],Co.length=0,zo=0;zo<Eo.length;zo++)Eo[zo]();Eo=null,zo=0,Io=null,Po(e,t)}}function Fo(e){if(Ao.length){const e=[...new Set(Ao)];if(Ao.length=0,Lo)return void Lo.push(...e);for(Lo=e,Lo.sort(((e,t)=>No(e)-No(t))),Ro=0;Ro<Lo.length;Ro++)Lo[Ro]();Lo=null,Ro=0}}const No=e=>null==e.id?1/0:e.id;function Vo(e){xo=!1,ko=!0,Po(e),_o.sort(((e,t)=>No(e)-No(t)));try{for(So=0;So<_o.length;So++){const e=_o[So];e&&!1!==e.active&&bo(e,null,14)}}finally{So=0,_o.length=0,Fo(),ko=!1,Oo=null,(_o.length||Co.length||Ao.length)&&Vo(e)}}const Do={};function Bo(e,t,n){return function(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:l}=f){const s=ao;let a,c,u=!1,p=!1;if(gt(e)?(a=()=>e.value,u=!!e._shallow):st(e)?(a=()=>e,o=!0):S(e)?(p=!0,u=e.some(st),a=()=>e.map((e=>gt(e)?e.value:st(e)?qo(e):A(e)?bo(e,s,2):void 0))):a=A(e)?t?()=>bo(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),yo(e,s,3,[d])}:g,t&&o){const e=a;a=()=>qo(e())}let d=e=>{c=b.onStop=()=>{bo(e,s,4)}};if(fo)return d=g,t?n&&yo(t,s,3,[a(),p?[]:void 0,d]):a(),g;let h=p?[]:Do;const m=()=>{if(b.active)if(t){const e=b.run();(o||u||(p?e.some(((e,t)=>W(e,h[t]))):W(e,h)))&&(c&&c(),yo(t,s,3,[e,h===Do?void 0:h,d]),h=e)}else b.run()};let v;m.allowRecurse=!!t,v="sync"===r?m:"post"===r?()=>xn(m,s&&s.suspense):()=>{!s||s.isMounted?function(e){Uo(e,Eo,Co,zo)}(m):m()};const b=new ue(a,v);return t?n?m():h=b.run():"post"===r?xn(b.run.bind(b),s&&s.suspense):b.run(),()=>{b.stop(),s&&s.scope&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(s.scope.effects,b)}}(e,t,n)}function qo(e,t){if(!T(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),gt(e))qo(e.value,t);else if(S(e))for(let n=0;n<e.length;n++)qo(e[n],t);else if(E(e)||C(e))e.forEach((e=>{qo(e,t)}));else if(j(e))for(const n in e)qo(e[n],t);return e}function Wo(e,t,n){const o=arguments.length;return 2===o?T(t)&&!S(t)?Bn(t)?Kn(e,null,[t]):Kn(e,t):Kn(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Bn(n)&&(n=[n]),Kn(e,t,n))}Symbol("");const Ho="3.2.23",Zo="undefined"!=typeof document?document:null,Jo=new Map,Ko={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Zo.createElementNS("http://www.w3.org/2000/svg",e):Zo.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Zo.createTextNode(e),createComment:e=>Zo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o){const r=n?n.previousSibling:t.lastChild;let i=Jo.get(e);if(!i){const t=Zo.createElement("template");if(t.innerHTML=o?`<svg>${e}</svg>`:e,i=t.content,o){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}Jo.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qo=/\s*!important$/;function Yo(e,t,n){if(S(n))n.forEach((n=>Yo(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Go[t];if(n)return n;let o=N(t);if("filter"!==o&&o in e)return Go[t]=o;o=B(o);for(let n=0;n<Xo.length;n++){const r=Xo[n]+o;if(r in e)return Go[t]=r}return t}(e,t);Qo.test(n)?e.setProperty(D(o),n.replace(Qo,""),"important"):e[o]=n}}const Xo=["Webkit","Moz","ms"],Go={},er="http://www.w3.org/1999/xlink";let tr=Date.now,nr=!1;if("undefined"!=typeof window){tr()>document.createEvent("Event").timeStamp&&(tr=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);nr=!!(e&&Number(e[1])<=53)}let or=0;const rr=Promise.resolve(),ir=()=>{or=0};function lr(e,t,n,o){e.addEventListener(t,n,o)}const sr=/(?:Once|Passive|Capture)$/,ar=/^on[a-z]/;"undefined"!=typeof HTMLElement&&HTMLElement;const cr="transition",ur="animation",pr=(e,{slots:t})=>Wo(qt,function(e){const t={};for(const n in e)n in dr||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=l,appearToClass:u=s,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(T(e))return[mr(e.enter),mr(e.leave)];{const t=mr(e);return[t,t]}}(r),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:w,onLeaveCancelled:x,onBeforeAppear:_=v,onAppear:S=b,onAppearCancelled:C=y}=t,E=(e,t,n)=>{vr(e,t?u:s),vr(e,t?c:l),n&&n()},z=(e,t)=>{vr(e,h),vr(e,d),t&&t()},A=e=>(t,n)=>{const r=e?S:b,l=()=>E(t,e,n);hr(r,[t,l]),br((()=>{vr(t,e?a:i),gr(t,e?u:s),fr(r)||wr(t,o,m,l)}))};return k(t,{onBeforeEnter(e){hr(v,[e]),gr(e,i),gr(e,l)},onBeforeAppear(e){hr(_,[e]),gr(e,a),gr(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const n=()=>z(e,t);gr(e,p),document.body.offsetHeight,gr(e,d),br((()=>{vr(e,p),gr(e,h),fr(w)||wr(e,o,g,n)})),hr(w,[e,n])},onEnterCancelled(e){E(e,!1),hr(y,[e])},onAppearCancelled(e){E(e,!0),hr(C,[e])},onLeaveCancelled(e){z(e),hr(x,[e])}})}(e),t);pr.displayName="Transition";const dr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hr=(pr.props=k({},qt.props,dr),(e,t=[])=>{S(e)?e.forEach((e=>e(...t))):e&&e(...t)}),fr=e=>!!e&&(S(e)?e.some((e=>e.length>1)):e.length>1);function mr(e){return J(e)}function gr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function vr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function br(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let yr=0;function wr(e,t,n,o){const r=e._endId=++yr,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:l,timeout:s,propCount:a}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),i=o("transitionDuration"),l=kr(r,i),s=o("animationDelay"),a=o("animationDuration"),c=kr(s,a);let u=null,p=0,d=0;return t===cr?l>0&&(u=cr,p=l,d=i.length):t===ur?c>0&&(u=ur,p=c,d=a.length):(p=Math.max(l,c),u=p>0?l>c?cr:ur:null,d=u?u===cr?i.length:a.length:0),{type:u,timeout:p,propCount:d,hasTransform:u===cr&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}(e,t);if(!l)return o();const c=l+"end";let u=0;const p=()=>{e.removeEventListener(c,d),i()},d=t=>{t.target===e&&++u>=a&&p()};setTimeout((()=>{u<a&&p()}),s+1),e.addEventListener(c,d)}function kr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>xr(t)+xr(e[n]))))}function xr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const _r=e=>{const t=e.props["onUpdate:modelValue"];return S(t)?e=>H(t,e):t};function Sr(e){e.target.composing=!0}function Cr(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const Er={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=_r(r);const i=o||r.props&&"number"===r.props.type;lr(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():i&&(o=J(o)),e._assign(o)})),n&&lr(e,"change",(()=>{e.value=e.value.trim()})),t||(lr(e,"compositionstart",Sr),lr(e,"compositionend",Cr),lr(e,"change",Cr))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=_r(i),e.composing)return;if(document.activeElement===e){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&J(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},zr={deep:!0,created(e,t,n){e._assign=_r(n),lr(e,"change",(()=>{const t=e._modelValue,n=Or(e),o=e.checked,r=e._assign;if(S(t)){const e=p(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(E(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(Ir(e,o))}))},mounted:Ar,beforeUpdate(e,t,n){e._assign=_r(n),Ar(e,t,n)}};function Ar(e,{value:t,oldValue:n},o){e._modelValue=t,S(t)?e.checked=p(t,o.props.value)>-1:E(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=u(t,Ir(e,!0)))}const Lr={created(e,{value:t},n){e.checked=u(t,n.props.value),e._assign=_r(n),lr(e,"change",(()=>{e._assign(Or(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=_r(o),t!==n&&(e.checked=u(t,o.props.value))}},Rr={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=E(t);lr(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?J(Or(e)):Or(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=_r(o)},mounted(e,{value:t}){Tr(e,t)},beforeUpdate(e,t,n){e._assign=_r(n)},updated(e,{value:t}){Tr(e,t)}};function Tr(e,t){const n=e.multiple;if(!n||S(t)||E(t)){for(let o=0,r=e.options.length;o<r;o++){const r=e.options[o],i=Or(r);if(n)S(t)?r.selected=p(t,i)>-1:r.selected=t.has(i);else if(u(Or(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Or(e){return"_value"in e?e._value:e.value}function Ir(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const $r={created(e,t,n){jr(e,t,n,null,"created")},mounted(e,t,n){jr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){jr(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){jr(e,t,n,o,"updated")}};function jr(e,t,n,o,r){let i;switch(e.tagName){case"SELECT":i=Rr;break;case"TEXTAREA":i=Er;break;default:switch(n.props&&n.props.type){case"checkbox":i=zr;break;case"radio":i=Lr;break;default:i=Er}}const l=i[r];l&&l(e,t,n,o)}const Mr=k({patchProp:(e,n,o,i,l=!1,s,a,c,u)=>{"class"===n?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,l):"style"===n?function(e,t,n){const o=e.style,r=L(n);if(n&&!r){for(const e in n)Yo(o,e,n[e]);if(t&&!L(t))for(const e in t)null==n[e]&&Yo(o,e,"")}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}(e,o,i):y(n)?w(n)||function(e,t,n,o,r=null){const i=e._vei||(e._vei={}),l=i[t];if(o&&l)l.value=o;else{const[n,s]=function(e){let t;if(sr.test(e)){let n;for(t={};n=e.match(sr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[D(e.slice(2)),t]}(t);if(o){const l=i[t]=function(e,t){const n=e=>{const o=e.timeStamp||tr();(nr||o>=n.attached-1)&&yo(function(e,t){if(S(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=or||(rr.then(ir),or=tr()),n}(o,r);lr(e,n,l,s)}else l&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,s),i[t]=void 0)}}(e,n,0,i,a):("."===n[0]?(n=n.slice(1),1):"^"===n[0]?(n=n.slice(1),0):function(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&ar.test(t)&&A(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!ar.test(t)||!L(n))&&t in e))))}(e,n,i,l))?function(e,t,n,o,i,l,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,i,l),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if("boolean"===o)return void(e[t]=r(n));if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,n,i,s,a,c,u):("true-value"===n?e._trueValue=i:"false-value"===n&&(e._falseValue=i),function(e,n,o,i,l){if(i&&n.startsWith("xlink:"))null==o?e.removeAttributeNS(er,n.slice(6,n.length)):e.setAttributeNS(er,n,o);else{const i=t(n);null==o||i&&!r(o)?e.removeAttribute(n):e.setAttribute(n,i?"":o)}}(e,n,i,l))}},Ko);let Ur;const Pr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("object"==typeof e&&e.errno)throw new TypeError("Fetch ".concat(t," failed with ").concat(e.errno,": ").concat(e.errmsg));return e},Fr=e=>{try{e=decodeURI(e)}catch(e){}return e},Nr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},Vr=e=>/^(https?:)?\/\//.test(e),Dr=["mp","identicon","monsterid","wavatar","robohash","retro",""],Br=["nick","mail","link"],qr=e=>e&&Dr.includes(e)?e:"mp",Wr=e=>e.filter((e=>Br.includes(e))),Hr="zh-CN",Zr=e=>new Promise(((t,n)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=()=>{var e;return t((null===(e=o.result)||void 0===e?void 0:e.toString())||"")},o.onerror=n})),Jr=e=>!0===e?'<p class="vtex">Tex is not available in preview</p>':'<span class="vtex">Tex is not available in preview</span>',Kr=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous"],Qr=e=>Object.fromEntries(e.map(((e,t)=>[Kr[t],e]))),Yr=Qr(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous"]),Xr=Qr(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),Gr=Qr(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名"]),ei=Qr(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名"]),ti=Qr(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo"]),ni={zh:Gr,"zh-cn":Gr,"zh-CN":Gr,"zh-tw":ei,"zh-TW":ei,en:Yr,"en-US":Yr,jp:Xr,"jp-jp":Xr,"jp-JP":Xr,"pt-br":ti,"pt-BR":ti},oi=e=>{let t={};const n=localStorage.getItem(e);if(n)try{t=JSON.parse(n)}catch(e){}return{get:e=>t[e]||null,set(n,o){try{t[n]=JSON.parse(JSON.stringify(o)),localStorage.setItem(e,JSON.stringify(t))}catch(e){}},update(n){t=JSON.parse(JSON.stringify(n)),localStorage.setItem(e,JSON.stringify(t))}}};let ri;const ii=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t,"/").concat(n).concat(e).concat(o?".".concat(o):"")};var li=n(948),si=n.n(li);const ai=e=>{const t=Nr(e);return Vr(t)?t:"https://".concat(t)},ci=(e,t)=>"function"==typeof e?e:!1!==e&&t,ui=e=>{let{el:t="#waline",serverURL:n,placeholder:o,langMode:r,emojiCDN:i,emojiMaps:l,requiredFields:s=[],anonymous:a,avatarCDN:c,avatar:u,avatarForce:p,previewMath:d,path:h=location.pathname,lang:f=Hr,locale:m=r,emoji:g=["https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/weibo"],meta:v=["nick","mail","link"],requiredMeta:b=s,pageSize:y=10,wordLimit:w,uploadImage:k,highlight:x,tex:_=d,copyright:S=!0,login:C=(!0===a?"disable":!1===a?"force":"enable"),...E}=e;const z=ni[f]||ni[Hr];o&&(z.placeholder=o);const A=i&&"object"==typeof l?Promise.resolve(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={};for(const o in e)n[o]=/(?:https?:)?\/\//.test(e[o])?e[o]:"".concat(t).concat(e[o]);return{tabs:[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}],map:n}}(l,i)):(L=g,Promise.all(L.map((e=>"string"==typeof e?(e=>{ri||(ri=oi("WALINE_EMOJI"));const t=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(t){const t=ri.get(e);if(t)return Promise.resolve(t)}return fetch("".concat(e,"/info.json")).then((e=>e.json())).then((n=>{const o={folder:e,...n};return t&&ri.set(e,o),o}))})(Nr(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:r,prefix:i,type:l,items:s}=e;t.tabs.push({name:n,icon:ii(r,o,i,l),items:s.map((e=>{const n="".concat(i||"").concat(e);return t.map[n]=ii(e,o,i,l),n}))})})),t})));var L;return{el:t,serverURL:ai(n),path:Fr(h),lang:f,locale:{...z,..."object"==typeof m?m:{}},emoji:A,wordLimit:Array.isArray(w)?w:!!w&&[0,w],meta:Wr(v),requiredMeta:Wr(b),pageSize:y,avatar:{cdn:c||"https://seccdn.libravatar.org/avatar/",param:"?d=".concat(qr(u)).concat(p?"&q=".concat(Math.random().toString(32).substring(2)):""),default:!u&&!c,hide:"hide"===u},uploadImage:ci(k,Zr),highlight:ci(x,si()),tex:ci(_,Jr),copyright:S,login:C,...E}},pi=e=>e.type.includes("image"),di=e=>{const t=Array.from(e).find(pi);return!!t&&t.getAsFile()},hi="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-text-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}",fi=(e,t)=>{if(!document.body.hasAttribute(t)){const n=document.createElement("style");n.appendChild(document.createTextNode(e)),document.head.appendChild(n),document.body.setAttribute(t,"")}},mi=()=>{fi('\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n/* See https://github.com/fred-wang/mathml.css */\n\n@namespace "http://www.w3.org/1998/Math/MathML";\nbody[waline-math] .v math{display:inline;font-size:0;font-family:Cambria Math,Latin Modern Math;text-indent:0}body[waline-math] .v math>*{font-size:14px}body[waline-math] .v math[display=block]{display:block;font-size:0;text-align:center}body[waline-math] .v math[display=block]>*{font-size:16px}body[waline-math] .v mfrac{display:inline-block !important;vertical-align:-50%;border-collapse:collapse;text-align:center}body[waline-math] .v mfrac>*{display:block !important}body[waline-math] .v mfrac>*+*{display:inline-block !important;vertical-align:top}body[waline-math] .v mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}body[waline-math] .v msub>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(2),body[waline-math] .v mmultiscripts>*:nth-child(2n+2),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+3){vertical-align:sub;font-size:.8em}body[waline-math] .v msup>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(3),body[waline-math] .v mmultiscripts>*:nth-child(2n+3),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+2){vertical-align:super;font-size:.8em}body[waline-math] .v mprescripts::after{content:";"}body[waline-math] .v munder,body[waline-math] .v mover,body[waline-math] .v munderover{display:inline-flex !important;flex-direction:column}body[waline-math] .v munder>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(2){order:1;font-size:.8em}body[waline-math] .v mover>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(3){order:-1;font-size:.8em}body[waline-math] .v munder{vertical-align:text-top}body[waline-math] .v mover{vertical-align:text-bottom}body[waline-math] .v munderover{vertical-align:middle}body[waline-math] .v msqrt,body[waline-math] .v mroot{display:inline-flex !important;vertical-align:middle;margin-left:.5em;border-top:solid thin}body[waline-math] .v msqrt::before,body[waline-math] .v mroot::before{content:"√";margin-left:-0.5em}body[waline-math] .v mroot>*:nth-child(2){order:-1;margin-right:.25em;margin-left:-0.75em;font-size:.8em}body[waline-math] .v menclose{display:inline-table !important;border-spacing:.4ex 0;border-collapse:separate}body[waline-math] .v menclose[notation*=top],body[waline-math] .v menclose[notation*=actuarial]{border-top:solid thin}body[waline-math] .v menclose[notation*=bottom],body[waline-math] .v menclose[notation*=madruwb]{border-bottom:solid thin}body[waline-math] .v menclose[notation*=right],body[waline-math] .v menclose[notation*=actuarial],body[waline-math] .v menclose[notation*=madruwb]{border-right:solid thin}body[waline-math] .v menclose[notation*=left]{border-left:solid thin}body[waline-math] .v menclose[notation*=box],body[waline-math] .v menclose[notation*=roundedbox],body[waline-math] .v menclose[notation*=circle]{border:solid thin}body[waline-math] .v menclose[notation*=roundedbox]{border-radius:15%}body[waline-math] .v menclose[notation*=circle]{border-radius:50%}body[waline-math] .v menclose[notation*=horizontalstrike]{text-decoration:line-through}body[waline-math] .v mtable{display:inline-table !important;vertical-align:middle;text-align:center}body[waline-math] .v mtr{display:table-row !important}body[waline-math] .v mtd{display:table-cell !important;padding:0 .5ex}body[waline-math] .v mspace{margin:.2em}body[waline-math] .v mi{font-style:italic}body[waline-math] .v mo{margin-right:.2em;margin-left:.2em}body[waline-math] .v ms::before,body[waline-math] .v ms::after{content:\'"\'}body[waline-math] .v ms[lquote]::before{content:attr(lquote)}body[waline-math] .v ms[lquote]::after{content:attr(rquote)}body[waline-math] .v [mathvariant=bold],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-weight:bold;font-style:normal}body[waline-math] .v [mathvariant=monospace]{font-style:normal;font-family:monospace}body[waline-math] .v [mathvariant=sans-serif],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:normal;font-family:sans-serif}body[waline-math] .v [mathvariant=italic],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:italic}body[waline-math] .v [mathvariant=normal]{font-style:normal}body[waline-math] .v mphantom{visibility:hidden}body[waline-math] .v merror{outline:solid thin red}body[waline-math] .v merror::before{content:"Error: "}body[waline-math] .v semantics>*:first-child{display:inline}body[waline-math] .v annotation,body[waline-math] .v annotation-xml{display:none !important;font-family:monospace}body[waline-math] .v math:active>semantics>*:first-child{display:none !important}body[waline-math] .v math:active annotation:first-of-type{display:inline !important}',"waline-math-style"),document.body.insertAdjacentHTML("afterbegin","<div style='border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;'><math xmlns='http://www.w3.org/1998/Math/MathML'><mspace height='23px' width='77px'></mspace></math></div>");const e=document.body.firstChild,t=e.firstChild.firstChild.getBoundingClientRect();document.body.removeChild(e),(Math.abs(t.height-23)>1||Math.abs(t.width-77)>1)&&document.body.setAttribute("waline-math","")},gi=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null;let vi={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 bi=/[&<>"']/,yi=/[&<>"']/g,wi=/[<>"']|&(?!#?\w+;)/,ki=/[<>"']|&(?!#?\w+;)/g,xi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_i=e=>xi[e];function Si(e,t){if(t){if(bi.test(e))return e.replace(yi,_i)}else if(wi.test(e))return e.replace(ki,_i);return e}const Ci=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Ei(e){return e.replace(Ci,((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 zi=/(^|[^\[])\^/g;function Ai(e,t){e=e.source||e,t=t||"";const n={replace:(t,o)=>(o=(o=o.source||o).replace(zi,"$1"),e=e.replace(t,o),n),getRegex:()=>new RegExp(e,t)};return n}const Li=/[^\w:]/g,Ri=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ti(e,t,n){if(e){let e;try{e=decodeURIComponent(Ei(n)).replace(Li,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ri.test(n)&&(n=function(e,t){Oi[" "+e]||(Ii.test(e)?Oi[" "+e]=e+"/":Oi[" "+e]=Fi(e,"/",!0));const n=-1===(e=Oi[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace($i,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(ji,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Oi={},Ii=/^[^:]+:\/*[^/]*$/,$i=/^([^:]+:)[\s\S]*$/,ji=/^([^:]+:\/*[^/]*)[\s\S]*$/,Mi={exec:function(){}};function Ui(e){let t,n,o=1;for(;o<arguments.length;o++)for(n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Pi(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let o=!1,r=t;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"})).split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function Fi(e,t,n){const o=e.length;if(0===o)return"";let r=0;for(;r<o;){const i=e.charAt(o-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,o-r)}function Ni(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 Vi(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Di(e,t,n,o){const r=t.href,i=t.title?Si(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){o.state.inLink=!0;const e={type:"link",raw:n,href:r,title:i,text:l,tokens:o.inlineTokens(l,[])};return o.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:i,text:Si(l)}}class Bi{constructor(e){this.options=e||vi}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}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:Fi(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 o=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=o.length?e.slice(o.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=Fi(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/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,o,r,i,l,s,a,c,u,p,d,h=t[1].trim();const f=h.length>1,m={type:"list",raw:"",ordered:f,start:f?+h.slice(0,-1):"",loose:!1,items:[]};h=f?`\\d{1,9}\\${h.slice(-1)}`:`\\${h}`,this.options.pedantic&&(h=f?h:"[*+-]");const g=new RegExp(`^( {0,3}${h})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(t=g.exec(e))&&!this.rules.block.hr.test(e);){n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),m.loose=!0);const l=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&!m.loose&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!l.test(c));){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(d),o&&(r="[ ] "!==o[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!o,checked:r,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 v=m.items.length;for(l=0;l<v;l++)this.lexer.state.top=!1,m.items[l].tokens=this.lexer.blockTokens(m.items[l].text,[]),!m.loose&&m.items[l].tokens.some((e=>"space"===e.type))&&(m.loose=!0,m.items[l].loose=!0);return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):Si(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{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:Pi(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,o,r,i,l=e.align.length;for(n=0;n<l;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(l=e.rows.length,n=0;n<l;n++)e.rows[n]=Pi(e.rows[n],e.header.length).map((e=>({text:e})));for(l=e.header.length,o=0;o<l;o++)e.header[o].tokens=[],this.lexer.inlineTokens(e.header[o].text,e.header[o].tokens);for(l=e.rows.length,o=0;o<l;o++)for(i=e.rows[o],r=0;r<i.length;r++)i[r].tokens=[],this.lexer.inlineTokens(i[r].text,i[r].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Si(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]):Si(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=Fi(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 o=0,r=0;for(;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&(o--,o<0))return r;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],o="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],o=e[3])}else o=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)),Di(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:o?o.replace(this.rules.inline._escapes,"$1"):o},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 Di(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o)return;if(o[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=o[1]||o[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){const n=o[0].length-1;let r,i,l=n,s=0;const a="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=a.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(i=r.length,o[3]||o[4]){l+=i;continue}if((o[5]||o[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(l-=i,l>0)continue;if(i=Math.min(i,i+l+s),Math.min(n,i)%2){const t=e.slice(1,n+o.index+i);return{type:"em",raw:e.slice(0,n+o.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+o.index+i-1);return{type:"strong",raw:e.slice(0,n+o.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),o=/^ /.test(e)&&/ $/.test(e);return n&&o&&(e=e.substring(1,e.length-1)),e=Si(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,o;return"@"===n[2]?(e=Si(this.options.mangle?t(n[1]):n[1]),o="mailto:"+e):(e=Si(n[1]),o=e),{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,o;if("@"===n[2])e=Si(this.options.mangle?t(n[0]):n[0]),o="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=Si(n[0]),o="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:o,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]):Si(n[0]):n[0]:Si(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const qi={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}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\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:Mi,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?'|\([^()]*\))/};qi.def=Ai(qi.def).replace("label",qi._label).replace("title",qi._title).getRegex(),qi.bullet=/(?:[*+-]|\d{1,9}[.)])/,qi.listItemStart=Ai(/^( *)(bull) */).replace("bull",qi.bullet).getRegex(),qi.list=Ai(qi.list).replace(/bull/g,qi.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+qi.def.source+")").getRegex(),qi._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",qi._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,qi.html=Ai(qi.html,"i").replace("comment",qi._comment).replace("tag",qi._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qi.paragraph=Ai(qi._paragraph).replace("hr",qi.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",qi._tag).getRegex(),qi.blockquote=Ai(qi.blockquote).replace("paragraph",qi.paragraph).getRegex(),qi.normal=Ui({},qi),qi.gfm=Ui({},qi.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),qi.gfm.table=Ai(qi.gfm.table).replace("hr",qi.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",qi._tag).getRegex(),qi.gfm.paragraph=Ai(qi._paragraph).replace("hr",qi.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",qi.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",qi._tag).getRegex(),qi.pedantic=Ui({},qi.normal,{html:Ai("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",qi._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:Mi,paragraph:Ai(qi.normal._paragraph).replace("hr",qi.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",qi.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Wi={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Mi,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)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,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:Mi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Hi(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 Zi(e){let t,n,o="";const r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}Wi._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Wi.punctuation=Ai(Wi.punctuation).replace(/punctuation/g,Wi._punctuation).getRegex(),Wi.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Wi.escapedEmSt=/\\\*|\\_/g,Wi._comment=Ai(qi._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Wi.emStrong.lDelim=Ai(Wi.emStrong.lDelim).replace(/punct/g,Wi._punctuation).getRegex(),Wi.emStrong.rDelimAst=Ai(Wi.emStrong.rDelimAst,"g").replace(/punct/g,Wi._punctuation).getRegex(),Wi.emStrong.rDelimUnd=Ai(Wi.emStrong.rDelimUnd,"g").replace(/punct/g,Wi._punctuation).getRegex(),Wi._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Wi._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Wi._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])?)+(?![-_])/,Wi.autolink=Ai(Wi.autolink).replace("scheme",Wi._scheme).replace("email",Wi._email).getRegex(),Wi._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Wi.tag=Ai(Wi.tag).replace("comment",Wi._comment).replace("attribute",Wi._attribute).getRegex(),Wi._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Wi._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Wi._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Wi.link=Ai(Wi.link).replace("label",Wi._label).replace("href",Wi._href).replace("title",Wi._title).getRegex(),Wi.reflink=Ai(Wi.reflink).replace("label",Wi._label).getRegex(),Wi.reflinkSearch=Ai(Wi.reflinkSearch,"g").replace("reflink",Wi.reflink).replace("nolink",Wi.nolink).getRegex(),Wi.normal=Ui({},Wi),Wi.pedantic=Ui({},Wi.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:Ai(/^!?\[(label)\]\((.*?)\)/).replace("label",Wi._label).getRegex(),reflink:Ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Wi._label).getRegex()}),Wi.gfm=Ui({},Wi.normal,{escape:Ai(Wi.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Wi.gfm.url=Ai(Wi.gfm.url,"i").replace("email",Wi.gfm._extended_email).getRegex(),Wi.breaks=Ui({},Wi.gfm,{br:Ai(Wi.br).replace("{2,}","*").getRegex(),text:Ai(Wi.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Ji{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||vi,this.options.tokenizer=this.options.tokenizer||new Bi,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:qi.normal,inline:Wi.normal};this.options.pedantic?(t.block=qi.pedantic,t.inline=Wi.pedantic):this.options.gfm&&(t.block=qi.gfm,this.options.breaks?t.inline=Wi.breaks:t.inline=Wi.gfm),this.tokenizer.rules=t}static get rules(){return{block:qi,inline:Wi}}static lex(e,t){return new Ji(t).lex(e)}static lexInline(e,t){return new Ji(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,o,r,i;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((o=>!!(n=o.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),o=t[t.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?t.push(n):(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),o=t[t.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(o.raw+="\n"+n.raw,o.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startBlock.forEach((function(e){o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r)))o=t[t.length-1],i&&"paragraph"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n),i=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,o,r,i,l,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+Vi("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)+"["+Vi("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(s=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((o=>!!(n=o.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Zi))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Zi))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startInline.forEach((function(e){o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r,Hi))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),l=!0,o=t[t.length-1],o&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class Ki{constructor(e){this.options=e||vi}code(e,t,n){const o=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,o);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",o?'<pre><code class="'+this.options.langPrefix+Si(o,!0)+'">'+(n?e:Si(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Si(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,o){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+o.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+o+">\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=Ti(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<a href="'+Si(e)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>",o}image(e,t,n){if(null===(e=Ti(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<img src="'+e+'" alt="'+n+'"';return t&&(o+=' title="'+t+'"'),o+=this.options.xhtml?"/>":">",o}text(e){return e}}class Qi{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 Yi{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,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do{o++,n=e+"-"+o}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=o,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Xi{constructor(e){this.options=e||vi,this.options.renderer=this.options.renderer||new Ki,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Qi,this.slugger=new Yi}static parse(e,t){return new Xi(t).parse(e)}static parseInline(e,t){return new Xi(t).parseInline(e)}parse(e,t=!0){let n,o,r,i,l,s,a,c,u,p,d,h,f,m,g,v,b,y,w,k="";const x=e.length;for(n=0;n<x;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(w=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))k+=w||"";else switch(p.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(p.tokens),p.depth,Ei(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",i=p.header.length,o=0;o<i;o++)a+=this.renderer.tablecell(this.parseInline(p.header[o].tokens),{header:!0,align:p.align[o]});for(c+=this.renderer.tablerow(a),u="",i=p.rows.length,o=0;o<i;o++){for(s=p.rows[o],a="",l=s.length,r=0;r<l;r++)a+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:p.align[r]});u+=this.renderer.tablerow(a)}k+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,i=p.items.length,u="",o=0;o<i;o++)g=p.items[o],v=g.checked,b=g.task,m="",g.task&&(y=this.renderer.checkbox(v),f?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}):m+=y),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,b,v);k+=this.renderer.list(u,d,h);continue;case"html":k+=this.renderer.html(p.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,o,r,i="";const l=e.length;for(n=0;n<l;n++)if(o=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]&&(r=this.options.extensions.renderers[o.type].call({parser:this},o),!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)))i+=r||"";else switch(o.type){case"escape":case"text":i+=t.text(o.text);break;case"html":i+=t.html(o.text);break;case"link":i+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break;case"image":i+=t.image(o.href,o.title,o.text);break;case"strong":i+=t.strong(this.parseInline(o.tokens,t));break;case"em":i+=t.em(this.parseInline(o.tokens,t));break;case"codespan":i+=t.codespan(o.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(o.tokens,t));break;default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}function Gi(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),Ni(t=Ui({},Gi.defaults,t||{})),n){const o=t.highlight;let r;try{r=Ji.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&Gi.walkTokens(r,t.walkTokens),i=Xi.parse(r,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,i)};if(!o||o.length<3)return i();if(delete t.highlight,!r.length)return i();let l=0;return Gi.walkTokens(r,(function(e){"code"===e.type&&(l++,setTimeout((()=>{o(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&i()}))}),0))})),void(0===l&&i())}try{const n=Ji.lex(e,t);return t.walkTokens&&Gi.walkTokens(n,t.walkTokens),Xi.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Si(e.message+"",!0)+"</pre>";throw e}}Gi.options=Gi.setOptions=function(e){var t;return Ui(Gi.defaults,e),t=Gi.defaults,vi=t,Gi},Gi.getDefaults=function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Gi.defaults=vi,Gi.use=function(...e){const t=Ui({},...e),n=Gi.defaults.extensions||{renderers:{},childTokens:{}};let o;e.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=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),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'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Gi.defaults.renderer||new Ki;for(const t in e.renderer){const o=n[t];n[t]=(...r)=>{let i=e.renderer[t].apply(n,r);return!1===i&&(i=o.apply(n,r)),i}}t.renderer=n}if(e.tokenizer){const n=Gi.defaults.tokenizer||new Bi;for(const t in e.tokenizer){const o=n[t];n[t]=(...r)=>{let i=e.tokenizer[t].apply(n,r);return!1===i&&(i=o.apply(n,r)),i}}t.tokenizer=n}if(e.walkTokens){const n=Gi.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}o&&(t.extensions=n),Gi.setOptions(t)}))},Gi.walkTokens=function(e,t){for(const n of e)switch(t.call(Gi,n),n.type){case"table":for(const e of n.header)Gi.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Gi.walkTokens(n.tokens,t);break;case"list":Gi.walkTokens(n.items,t);break;default:Gi.defaults.extensions&&Gi.defaults.extensions.childTokens&&Gi.defaults.extensions.childTokens[n.type]?Gi.defaults.extensions.childTokens[n.type].forEach((function(e){Gi.walkTokens(n[e],t)})):n.tokens&&Gi.walkTokens(n.tokens,t)}},Gi.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");Ni(t=Ui({},Gi.defaults,t||{}));try{const n=Ji.lexInline(e,t);return t.walkTokens&&Gi.walkTokens(n,t.walkTokens),Xi.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>"+Si(e.message+"",!0)+"</pre>";throw e}},Gi.Parser=Xi,Gi.parser=Xi.parse,Gi.Renderer=Ki,Gi.TextRenderer=Qi,Gi.Lexer=Ji,Gi.lexer=Ji.lex,Gi.Tokenizer=Bi,Gi.Slugger=Yi,Gi.parse=Gi,Gi.options,Gi.setOptions,Gi.use,Gi.walkTokens,Gi.parseInline,Xi.parse,Ji.lex;const el=/\$.*?\$/,tl=/^\$(.*?)\$/,nl=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ol=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?'<img class="vemoji" src="'.concat(t[n],'" alt="').concat(n,'">'):e))},rl=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},il=(e,t)=>{if(e)try{"string"==typeof e&&(e=new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e));const n=e.getTime(),o=(new Date).getTime()-n,r=Math.floor(o/864e5);if(0===r){const e=o%864e5,n=Math.floor(e/36e5);if(0===n){const n=e%36e5,o=Math.floor(n/6e4);if(0===o){const e=n%6e4,o=Math.round(e/1e3);return"".concat(o," ").concat(t.seconds)}return"".concat(o," ").concat(t.minutes)}return"".concat(n," ").concat(t.hours)}return r<0?t.now:r<8?"".concat(r," ").concat(t.days):(e=>{const t=rl(e.getDate(),2),n=rl(e.getMonth()+1,2),o=rl(e.getFullYear(),2);return"".concat(o,"-").concat(n,"-").concat(t)})(e)}catch(e){console.log(e)}return""},ll=(e,t)=>{t.forEach(((t,n)=>{(t.querySelector(".leancloud-visitors-count")||t).innerText=e[n].toString()}))};let sl,al;const cl=()=>(al||(sl=oi("WALINE_USER_CACHE"),al=rt({nick:sl.get("nick")||"",mail:sl.get("mail")||"",link:sl.get("link")||"",editor:""})),{inputs:al,store:sl}),ul="WALINE_USER",pl=vt({}),dl=()=>{if(!pl.value.token)try{pl.value=JSON.parse(localStorage.getItem(ul)||"")||JSON.parse(sessionStorage.getItem(ul)||"")||{}}catch(e){}return{userInfo:it(pl),setUserInfo:e=>{pl.value=e}}},hl={class:"v","data-class":"v"},fl={class:"vcount"},ml=["textContent"],gl={class:"vcards"},vl={key:1,class:"vloading"},bl=["textContent"],yl={key:2,class:"vloading"},wl=["textContent"],kl={key:4,class:"vmore"},xl=["textContent"],_l={key:5,class:"vpower"},Sl=Yn(" Powered by "),Cl=Jn("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1),El={class:"vcomment"},zl={key:0,class:"vlogin-info"},Al={class:"vavatar"},Ll=["title"],Rl=["src"],Tl=["textContent"],Ol={class:"vpanel"},Il=["for","textContent"],$l=["id","name","type","onUpdate:modelValue"],jl=["placeholder"],Ml=["innerHTML"],Ul={class:"vfooter"},Pl={class:"vactions"},Fl={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"vaction",target:"_blank",rel:"noreferrer"},Nl=["title"],Vl=["title"],Dl=["title"],Bl={class:"vinfo"},ql={class:"vtext-number"},Wl={key:0},Hl=Yn("  /  "),Zl=["textContent"],Jl=["textContent"],Kl=["disabled"],Ql={key:0,class:"vtab-wrapper"},Yl=["title","onClick"],Xl=["src","alt"],Gl={key:0,class:"vtabs"},es=["onClick"],ts=["src","alt","title"],ns=["title"];var os,rs,is="function"==typeof Map?new Map:(os=[],rs=[],{has:function(e){return os.indexOf(e)>-1},get:function(e){return rs[os.indexOf(e)]},set:function(e,t){-1===os.indexOf(e)&&(os.push(e),rs.push(t))},delete:function(e){var t=os.indexOf(e);t>-1&&(os.splice(t,1),rs.splice(t,1))}}),ls=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(os){ls=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function ss(e){var t=is.get(e);t&&t.destroy()}function as(e){var t=is.get(e);t&&t.update()}var cs=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((cs=function(e){return e}).destroy=function(e){return e},cs.update=function(e){return e}):((cs=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&&!is.has(e)){var t,n=null,o=null,r=null,i=function(){e.clientWidth!==o&&c()},l=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),is.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",is.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),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==o){r=o;var i=ls("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ss),e},cs.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],as),e});const us=cs,ps=e=>{let{size:t}=e;return Wo("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Wo("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Wo("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},ds=Yt({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return Wo("svg",{class:"vclose-icon",viewBox:"0 0 1024 1024",width:t,height:t},[Wo("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"}),Wo("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:()=>Wo("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Wo("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:()=>Wo("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Wo("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"}),Wo("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),MarkdownIcon:()=>Wo("svg",{width:"16",height:"16",ariaHidden:"true"},Wo("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:()=>Wo("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Wo("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"}),Wo("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:ps},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,t){let{emit:n}=t;const o=Dt("config"),{inputs:r,store:i}=cl(),{userInfo:l,setUserInfo:s}=dl(),a=vt({}),c=vt(null),u=vt(null),p=vt(null),d=vt(null),h=vt({tabs:[],map:{}}),f=vt(0),m=vt(!1),g=vt(!1),v=vt(""),b=vt(0),y=vt(0),w=vt(!1),k=vt(""),x=vt(!1),_=xt((()=>o.value.locale)),S=xt((()=>{var e;return Boolean(null===(e=l.value)||void 0===e?void 0:e.token)})),C=xt((()=>!1!==o.value.uploadImage)),E=e=>{const t=c.value,n=t.selectionStart,o=t.selectionEnd||0,i=t.scrollTop;r.editor=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},z=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return E(t),Promise.resolve().then((()=>o.value.uploadImage(e))).then((n=>{r.editor=r.editor.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},A=()=>{var t,s;const{serverURL:u,lang:p,login:d,wordLimit:f,requiredMeta:m}=o.value,g={comment:k.value,nick:r.nick,mail:r.mail,link:r.link,ua:navigator.userAgent,url:o.value.path};if(null!==(t=l.value)&&void 0!==t&&t.token)g.nick=l.value.display_name,g.mail=l.value.email,g.link=l.value.url;else{if("force"===d)return;var y,S,C;if((m.indexOf("nick")>-1||g.nick)&&!g.nick)return null===(y=a.value.nick)||void 0===y||y.focus(),alert(_.value.nickError);if(m.indexOf("mail")>-1&&!g.mail)return null===(S=a.value.mail)||void 0===S||S.focus(),alert(_.value.mailError);if(!g.comment)return void(null===(C=c.value)||void 0===C||C.focus());g.nick||(g.nick=_.value.anonymous)}if(!w.value)return alert(_.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",b.value.toString()));g.comment=ol(g.comment,h.value.map),e.replyId&&e.rootId&&(g.pid=e.replyId,g.rid=e.rootId,g.at=e.replyUser),x.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:r}=e;const i={"Content-Type":"application/json"};return o&&(i.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:i,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:u,lang:p,token:null===(s=l.value)||void 0===s?void 0:s.token,comment:g}).then((t=>{if(x.value=!1,i.update({nick:g.nick,link:g.link,mail:g.mail}),t.errmsg)return alert(t.errmsg);n("submit",t.data),r.editor="",v.value="",e.replyId&&n("cancel-reply")})).catch((e=>{x.value=!1,alert(e.message)}))},L=e=>{p.value.contains(e.target)||d.value.contains(e.target)||(m.value=!1)};return Bo((()=>r.editor),(e=>{const{highlight:t,tex:n}=o.value;k.value=e,v.value=((e,t,n,o)=>{if(Gi.setOptions({highlight:t||void 0,breaks:!0,smartLists:!0,smartypants:!0}),o){const e=(e=>{const t={name:"blockMath",level:"block",tokenizer(t){const n=nl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},n={name:"inlineMath",level:"inline",start(e){const t=e.search(el);return-1!==t?t:e.length},tokenizer(t){const n=tl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}};return[t,n]})(o);Gi.use({extensions:e})}return Gi.parse(ol(e,n))})(e,t,h.value.map,n),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),c.value&&(e?us(c.value):us.destroy(c.value))}),{immediate:!0}),Bo((()=>o.value.emoji),(e=>e.then((e=>{h.value=e}))),{immediate:!0}),Bo([o,b],(e=>{let[t,n]=e;const{wordLimit:o}=t;o?n<o[0]&&0!==o[0]?(y.value=o[0],w.value=!1):n>o[1]?(y.value=o[1],w.value=!1):(y.value=o[1],w.value=!0):(y.value=0,w.value=!0)}),{immediate:!0}),tn((()=>{document.body.addEventListener("click",L)})),on((()=>{document.body.removeEventListener("click",L)})),{config:o,locale:_,insert:E,onChange:()=>{const e=u.value;e.files&&C.value&&z(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=di(e.dataTransfer.items);t&&C.value&&(z(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&A()},onPaste:e=>{if(e.clipboardData){const t=di(e.clipboardData.items);t&&C.value&&z(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,l=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(r,",top=").concat(i,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==l||l.postMessage({type:"TOKEN",data:null},"*");const a=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==l||l.close(),s(t.data),(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{s({}),localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,a=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(r,",top=").concat(i,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==a||a.postMessage({type:"TOKEN",data:l.value.token},"*");const c=e=>{let{data:t}=e;t&&"profile"===t.type&&(s(Object.assign({},l.value,t)),[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(l)))),window.removeEventListener("message",c))};window.addEventListener("message",c)},submitComment:A,isLogin:S,userInfo:l,isSubmitting:x,wordNumber:b,wordLimit:y,isWordNumberLegal:w,inputs:r,emoji:h,emojiTabIndex:f,showEmoji:m,canUploadImage:C,previewText:v,showPreview:g,inputRefs:a,editorRef:c,emojiButtonRef:p,emojiPopupRef:d,imageUploadRef:u}}});var hs=n(407);const fs=(0,hs.Z)(ds,[["render",function(e,t,n,o,r,l){const s=An("CloseIcon"),a=An("MarkdownIcon"),u=An("EmojiIcon"),p=An("ImageIcon"),h=An("PreviewIcon"),f=An("LoadingIcon");return Un(),Vn("div",El,["disable"!==e.config.login&&e.isLogin?(Un(),Vn("div",zl,[Jn("div",Al,[Jn("button",{class:"vlogout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[Kn(s,{size:"14"})],8,Ll),Jn("img",{src:e.userInfo.avatar||"".concat(e.config.avatar.cdn).concat(e.userInfo.mailMd5).concat(e.config.avatar.param),alt:"avatar"},null,8,Rl)]),Jn("a",{href:"#",class:"vlogin-nick","aria-label":"Profile",onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:d(e.userInfo.display_name)},null,8,Tl)])):Xn("v-if",!0),Jn("div",Ol,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Un(),Vn("div",{key:0,class:c(["vheader","vheader-".concat(e.config.meta.length)])},[(Un(!0),Vn(Tn,null,no(e.config.meta,(t=>(Un(),Vn("div",{class:"vheader-item",key:t},[Jn("label",{for:t,textContent:d(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,Il),vn(Jn("input",{ref:n=>{n&&(e.inputRefs[t]=n)},id:"waline-".concat(t),class:c(["vinput","v".concat(t)]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.inputs[t]=n},null,10,$l),[[$r,e.inputs[t]]])])))),128))],2)):Xn("v-if",!0),vn(Jn("textarea",{class:"veditor",ref:"editorRef",id:"waline-edit",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputs.editor=t),onKeydown:t[3]||(t[3]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[4]||(t[4]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[5]||(t[5]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,jl),[[Er,e.inputs.editor]]),Jn("div",{class:"vpreview",style:i({display:e.showPreview?"block":"none"})},[Jn("h4",null,d(e.locale.preview)+":",1),Jn("div",{class:"vcontent",innerHTML:e.previewText},null,8,Ml)],4),Jn("div",Ul,[Jn("div",Pl,[Jn("a",Fl,[Kn(a)]),Jn("button",{ref:"emojiButtonRef",class:c(["vaction",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[Kn(u)],10,Nl),Jn("input",{ref:"imageUploadRef",class:"upload",id:"waline-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[7]||(t[7]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(Un(),Vn("label",{key:0,for:"waline-image-upload",class:"vaction",title:e.locale.uploadImage},[Kn(p)],8,Vl)):Xn("v-if",!0),Jn("button",{class:c(["vaction",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[Kn(h)],10,Dl)]),Jn("div",Bl,[Jn("div",ql,[Yn(d(e.wordNumber)+" ",1),e.config.wordLimit?(Un(),Vn("span",Wl,[Hl,Jn("span",{class:c({illegal:!e.isWordNumberLegal}),textContent:d(e.wordLimit)},null,10,Zl)])):Xn("v-if",!0),Yn("  "+d(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Xn("v-if",!0):(Un(),Vn("button",{key:0,class:"vbtn",onClick:t[9]||(t[9]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:d(e.locale.login)},null,8,Jl)),"force"!==e.config.login||e.isLogin?(Un(),Vn("button",{key:1,class:"vbtn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[10]||(t[10]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(Un(),Dn(f,{key:0,size:16})):(Un(),Vn(Tn,{key:1},[Yn(d(e.locale.submit),1)],2112))],8,Kl)):Xn("v-if",!0)]),Jn("div",{ref:"emojiPopupRef",class:c(["vemoji-popup",{display:e.showEmoji}])},[(Un(!0),Vn(Tn,null,no(e.emoji.tabs,((t,n)=>(Un(),Vn(Tn,{key:t.name},[n===e.emojiTabIndex?(Un(),Vn("div",Ql,[(Un(!0),Vn(Tn,null,no(t.items,(t=>(Un(),Vn("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(Un(),Vn("img",{key:0,class:"vemoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Xl)):Xn("v-if",!0)],8,Yl)))),128))])):Xn("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Un(),Vn("div",Gl,[(Un(!0),Vn(Tn,null,no(e.emoji.tabs,((t,n)=>(Un(),Vn("button",{key:t.name,class:c(["vtab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Jn("img",{class:"vemoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ts)],10,es)))),128))])):Xn("v-if",!0)],2)])]),e.replyId?(Un(),Vn("button",{key:1,class:"vclose",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[Kn(s,{size:"24"})],8,ns)):Xn("v-if",!0)])}]]),ms=fs,gs=["id"],vs=["src"],bs={class:"vcard"},ys={class:"vhead"},ws=["href"],ks={key:1,class:"vnick"},xs=["textContent"],_s=["textContent"],Ss=["textContent"],Cs=["title"],Es={class:"vmeta","aria-hidden":"true"},zs=["textContent"],As=["textContent"],Ls=["innerHTML"],Rs={key:0,class:"vreply-wrapper"},Ts={key:1,class:"vquote"},Os=Yt({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:ms,ReplyIcon:()=>Wo("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},Wo("path",{d:"M1019.2 720C1001.6 625.6 968 566.4 904 497.6c-89.6-89.6-214.4-150.4-347.2-176v-120c0-25.6-8-51.2-25.6-64-33.6-30.4-81.6-30.4-112-4.8L33.6 441.6C12.8 459.2 0 484.8 0 510.4c0 25.6 12.8 51.2 30.4 68.8l385.6 312c17.6 12.8 33.6 17.6 51.2 17.6 12.8 0 25.6-4.8 38.4-8C536 888 552 857.6 552 824v-99.2c124.8 20.8 248 86.4 339.2 140.8 25.6 17.6 59.2 17.6 89.6 0 25.6-17.6 43.2-46.4 43.2-76.8 0-33.6 0-56-4.8-68.8zm-500.8-89.6-46.4-4.8v193.6L86.4 510.4 472 201.6V400l38.4 4.8c128 12.8 248 68.8 334.4 153.6 51.2 56 76.8 102.4 94.4 179.2 0 4.8 4.8 20.8 4.8 51.2C835.2 720 672 640 518.4 630.4z",fill:"currentColor"})),VerifiedIcon:()=>Wo("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Wo("path",{d:"M512 44.608l388.352 109.696a38.016 38.016 0 0 1 27.648 36.608v337.984c-1.984 110.528-40.192 207.04-113.984 288-73.92 81.024-172.48 134.528-294.592 160.32l-8.192 1.728-8.192-2.048c-127.616-32.832-225.536-85.952-293.056-160-68.096-74.688-105.984-171.584-113.92-289.28L96 526.336V190.976c0-17.024 11.328-32 27.648-36.608L512 44.608z m0 74.816L168 216.64v307.328l0.128 1.856c7.232 99.712 38.4 179.52 93.44 240.704l1.664 1.92c55.488 60.8 137.728 106.304 247.488 136l2.048 0.512 1.408-0.32c102.272-23.232 183.552-67.968 244.736-134.144l1.92-2.112c62.592-68.672 94.08-149.376 95.168-243.584V216.64L512 119.36z m222.592 229.888a32 32 0 0 1 0.448 44.864l-0.384 0.384-244.8 246.016a32 32 0 0 1-44.992 0.384l-0.384-0.384-155.136-155.968a32 32 0 0 1 44.992-45.504L467.2 572.608 689.28 349.44a32 32 0 0 1 45.312-0.128z",fill:"#27ae60"}))},emits:["submit","reply"],setup(e){const t=Dt("config"),n=xt((()=>t.value.locale)),o=xt((()=>{let{link:t}=e.comment;return t?Vr(t)?t:"https://".concat(t):""})),r=xt((()=>{const n=e.comment,o=t.value.avatar;return!(!n||o.hide)&&(e.comment.avatar||"".concat(o.cdn).concat(e.comment.mail).concat(o.param))})),i=xt((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:n,avatar:r,isReplyingCurrent:i,link:o,timeAgo:il}}}),Is=Yt({name:"Waline-Root",components:{CommentBox:ms,CommentCard:(0,hs.Z)(Os,[["render",function(e,t,n,o,r,i){const l=An("VerifiedIcon"),s=An("ReplyIcon"),a=An("CommentBox"),u=An("CommentCard",!0);return Un(),Vn("div",{class:"vitem",id:e.comment.objectId},[e.avatar?(Un(),Vn("img",{key:0,class:"vuser","aria-hidden":"true",src:e.avatar},null,8,vs)):Xn("v-if",!0),Jn("div",bs,[Jn("div",ys,[e.link?(Un(),Vn("a",{key:0,class:"vnick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},[Yn(d(e.comment.nick),1),e.comment.type?(Un(),Dn(l,{key:0})):Xn("v-if",!0)],8,ws)):(Un(),Vn("span",ks,[Yn(d(e.comment.nick),1),e.comment.type?(Un(),Dn(l,{key:0})):Xn("v-if",!0)])),"administrator"===e.comment.type?(Un(),Vn("span",{key:2,class:"vbadge",textContent:d(e.locale.admin)},null,8,xs)):Xn("v-if",!0),e.comment.sticky?(Un(),Vn("span",{key:3,class:"vbadge",textContent:d(e.locale.sticky)},null,8,_s)):Xn("v-if",!0),Jn("span",{class:"vtime",textContent:d(e.timeAgo(e.comment.insertedAt,e.locale))},null,8,Ss),Jn("button",{class:c(["vreply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[0]||(t[0]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[Kn(s)],10,Cs)]),Jn("div",Es,[e.comment.browser?(Un(),Vn("span",{key:0,textContent:d(e.comment.browser)},null,8,zs)):Xn("v-if",!0),e.comment.os?(Un(),Vn("span",{key:1,textContent:d(e.comment.os)},null,8,As)):Xn("v-if",!0)]),Jn("div",{class:"vcontent",innerHTML:e.comment.comment},null,8,Ls),e.isReplyingCurrent?(Un(),Vn("div",Rs,[Kn(a,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[1]||(t[1]=t=>e.$emit("submit",t)),onCancelReply:t[2]||(t[2]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):Xn("v-if",!0),e.comment.children?(Un(),Vn("div",Ts,[(Un(!0),Vn(Tn,null,no(e.comment.children,(n=>(Un(),Dn(u,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[3]||(t[3]=t=>e.$emit("reply",t)),onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t))},null,8,["comment","reply","rootId"])))),128))])):Xn("v-if",!0)])],8,gs)}]]),LoadingIcon:ps},props:{signal:{type:Object,required:!0}},setup(e){const t=Dt("config"),n=Dt("event"),{userInfo:o}=dl(),r=vt(0),i=vt(1),l=vt(0),s=vt(!0),a=vt(!1),c=vt([]),u=vt(null);let p=e.signal;const d=xt((()=>t.value.locale)),h=e=>{var n;s.value=!0,a.value=!1,(e=>{let{serverURL:t,path:n,page:o,pageSize:r,signal:i,token:l}=e;const s={};return l&&(s.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(n),"&pageSize=").concat(r,"&page=").concat(o),{signal:i,headers:s}).then((e=>e.json())).then((e=>Pr(e,"comment list")))})(Object.assign({},t.value,{page:e,signal:p,token:null===(n=o.value)||void 0===n?void 0:n.token})).then((t=>{s.value=!1,r.value=t.count,c.value.push(...t.data),i.value=e,l.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),a.value=!0,s.value=!1)}))};return n.on("render",(e=>{p=e,r.value=0,c.value=[],h(1)})),tn((()=>h(1))),{config:t,locale:d,count:r,data:c,loading:s,inError:a,page:i,totalPages:l,reply:u,loadMore:()=>h(i.value+1),refresh:()=>{c.value=[],h(1)},onReply:e=>{u.value=e},onSubmit:e=>{if(e.rid){const t=c.value.find((t=>{let{objectId:n}=t;return n===e.rid}));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else c.value.unshift(e)},version:"1.5.4"}}}),$s=(0,hs.Z)(Is,[["render",function(e,t,n,o,r,i){const l=An("CommentBox"),s=An("CommentCard"),a=An("LoadingIcon");return Un(),Vn("div",hl,[e.reply?Xn("v-if",!0):(Un(),Dn(l,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Jn("div",fl,[e.count?(Un(),Vn("span",{key:0,class:"vnum",textContent:d(e.count)},null,8,ml)):Xn("v-if",!0),Yn(" "+d(e.locale.comment),1)]),Jn("div",gl,[(Un(!0),Vn(Tn,null,no(e.data,(t=>(Un(),Dn(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit},null,8,["root-id","comment","reply","onReply","onSubmit"])))),128))]),e.inError?(Un(),Vn("div",vl,[Jn("button",{type:"button",class:"vbtn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:d(e.locale.refresh)},null,8,bl)])):e.loading?(Un(),Vn("div",yl,[Kn(a,{size:30})])):e.data.length?Xn("v-if",!0):(Un(),Vn("div",{key:3,class:"vempty",textContent:d(e.locale.sofa)},null,8,wl)),e.page<e.totalPages&&!e.loading?(Un(),Vn("div",kl,[Jn("button",{type:"button",class:"vbtn",onClick:t[1]||(t[1]=function(){return e.loadMore&&e.loadMore(...arguments)}),textContent:d(e.locale.more)},null,8,xl)])):Xn("v-if",!0),e.config.copyright?(Un(),Vn("div",_l,[Sl,Cl,Yn(" v"+d(e.version),1)])):Xn("v-if",!0)])}]]),js=$s;class Ms{constructor(){var e,t;t=void 0,(e="controller")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t,this.controller=new AbortController}get signal(){return this.controller.signal}abort(){this.controller.abort()}new(){this.abort(),this.controller=new AbortController}}const Us=(e,t)=>{const{path:n,serverURL:o,visitor:r}=e;r&&(e=>{let{serverURL:t,path:n,signal:o}=e;const r=(e=>{let{serverURL:t,path:n}=e;return fetch("".concat(t,"/article"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>Pr(e,"visit count")))})({serverURL:t,path:n}),i=Array.from(document.querySelectorAll(".waline-visitor-count,.leancloud_visitors,.leancloud-visitors")).filter((e=>e.getAttribute("id"))),l=i.map((e=>Fr(e.getAttribute("id")||""))),s=l.filter((e=>e!==n));s.length?(s.length===l.length?Promise.resolve():r).then((()=>(e=>{let{serverURL:t,paths:n,signal:o}=e;return fetch("".concat(t,"/article?path=").concat(encodeURIComponent(n.join(","))),{signal:o}).then((e=>e.json())).then((e=>Pr(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:t,paths:l,signal:o}))).then((e=>ll(e,i))).catch((e=>{"AbortError"!==e.name&&console.error(e.message)})):r.then((e=>ll(new Array(i.length).fill(e),i)))})({serverURL:o,path:n,signal:t}),((e,t)=>{var n;const o=Array.from(document.querySelectorAll(".waline-comment-count")).filter((e=>e.getAttribute("data-xid")||e.getAttribute("id"))),{userInfo:r}=dl();o.length&&(e=>{let{serverURL:t,paths:n,signal:o,token:r}=e;const i={};return r&&(i.Authorization="Bearer ".concat(r)),fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(n.join(","))),{signal:o,headers:i}).then((e=>e.json())).then((e=>Pr(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:o.map((e=>Fr(e.getAttribute("data-xid")||e.getAttribute("id")))),signal:t,token:null===(n=r.value)||void 0===n?void 0:n.token}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch((e=>{"AbortError"!==e.name&&console.error(e.message)}))})(o,t)},Ps=e=>(console.warn(e),{errMsg:e});function Fs(e){const{el:t,serverURL:n}=e;if(!n)return Ps("Option 'serverURL' is missing!");var o;e.dark&&"string"==typeof(o=e.dark)&&fi("auto"===o?"@media(prefers-color-scheme:dark){body".concat(hi,"}"):"".concat(o).concat(hi),"waline-dark"),e.mathTagSupport&&window.addEventListener("load",mi);const r=new Ms,i=new Ms,l=function(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map((function(e){e(n)})),(o=e.get("*"))&&o.slice().map((function(e){e(t,n)}))}}}(),{config:s,update:a}=(e=>{let t=e;const n=vt(ui(e));return{config:it(n),update:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t={...t,...e},n.value=ui(t)}}})(e);Us(s.value,i.signal);const c=gi(t);if(t&&!c)return Ps("Option 'el' do not match any domElement!");let u;c&&(u=((...e)=>{const t=(Ur||(Ur=_n(Mr))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){return L(e)?document.querySelector(e):e}(e);if(!o)return;const r=t._component;A(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t})(js,{signal:r.signal}).provide("config",s).provide("event",l).provide("version","1.5.4"),u.mount(c));const p={options:e,path:s.value.path};return{el:c,update:e=>{a(e);const{path:t}=s.value;p.path!==t&&(r.new(),p.path=t,l.emit("render",r.signal)),i.new(),Us(s.value,i.signal)},destroy:()=>{t&&u.unmount()}}}Fs.Widget={RecentComments:e=>{var t;let{el:n,serverURL:o,count:r}=e;const i=gi(n),l=new AbortController,{userInfo:s}=dl();return(e=>{let{serverURL:t,count:n,signal:o,token:r}=e;const i={};return r&&(i.Authorization="Bearer ".concat(r)),fetch("".concat(t,"/comment?type=recent&count=").concat(n),{signal:o,headers:i}).then((e=>e.json())).then((e=>Pr(e,"recent comment")))})({serverURL:o,count:r,signal:l.signal,token:null===(t=s.value)||void 0===t?void 0:t.token}).then((e=>i&&e.length?(i.innerHTML='<ul class="waline-widget-list">'.concat(e.map((e=>'<li class="waline-widget-item"><a href="'.concat(e.url,'">').concat(e.nick,"</a>:").concat(e.comment,"</li>"))).join(""),"</ul>"),{comments:e,destroy:()=>{l.abort(),i.innerHTML=""}}):{comments:e,destroy:()=>l.abort()}))}},Fs.version="1.5.4";const Ns=Fs})(),o.default})()}));
2
2
  //# sourceMappingURL=Waline.noStyle.js.map