ars-tools/dist/assets/ReadmeMaker-65a8d9b6.js

38 lines
334 KiB
JavaScript
Raw Normal View History

2023-12-15 23:33:23 +08:00
var Qc=Object.defineProperty;var eu=(t,e,n)=>e in t?Qc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var re=(t,e,n)=>(eu(t,typeof e!="symbol"?e+"":e,n),n),Io=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var k=(t,e,n)=>(Io(t,e,"read from private field"),n?n.call(t):e.get(t)),ee=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},W=(t,e,n,r)=>(Io(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);var Cr=(t,e,n,r)=>({set _(o){W(t,e,o,n)},get _(){return k(t,e,r)}}),G=(t,e,n)=>(Io(t,e,"access private method"),n);import{i as Ps,j as Qa,g as ae,k as tu,l as el,m as be,n as co,q as qs,r as Pn,d as g,s as ye,F as pe,v as Fe,x as q,y as Ge,z as Q,t as Y,A as Z,B as De,C as oe,D as nu,p as K,b as Ft,u as de,I as ke,E as Vs,G as Ee,H as Wt,J as Os,K as Ke,L as uo,M as se,N as Pe,O as Zt,P as jt,Q as Zr,R as zs,T as ru,S as Tn,U as vt,V as tl,W as ze,X as nl,Y as Dn,Z as dn,$ as qn,a0 as Ci,a1 as ou,a2 as Ht,a3 as ge,a4 as fn,a5 as su,a6 as rl,a7 as Vn,a as hn,c as pn,a8 as mn,a9 as iu,aa as au,ab as lu,ac as Et,ad as us,ae as Lt,af as cu,ag as Rn,ah as ol,ai as Si,aj as sl,ak as Bs,al as uu,am as du,an as Ai,ao as fu,ap as hu,aq as pu,ar as il,as as al,at as mu,au as vu,h as Vr,av as gu,o as Kn,e as Po,w as me,aw as Ei,ax as Ti,f as kt}from"./index-46b44c7e.js";import{s as On,R as fo,o as nt,t as zn,v as pr,u as Fn,e as Bn,b as ho,h as po,k as Nn,w as yu,r as Kr,x as ll,y as mr,z as Ns,A as cl,B as $s,C as bu,D as ku,m as Ms,E as xu,F as ul,f as Us,G as wu,H as dl,I as Tt,a as mo,g as vo,p as er,J as Di,K as qo,L as Vo,M as Ri,N as Fi,O as _u,P as Cu,Q as Su,S as Au,T as Eu,n as Jt,q as Sr,l as Ar,V as Tu}from"./VResponsive-fde488f6.js";class ln{constructor(e){let{x:n,y:r,width:o,height:s}=e;this.x=n,this.y=r,this.width=o,this.height=s}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Li(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function fl(t){return Array.isArray(t)?new ln({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function js(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t),r=n.transform;if(r){let o,s,i,a,l;if(r.startsWith("matrix3d("))o=r.slice(9,-1).split(/, /),s=+o[0],i=+o[5],a=+o[12],l=+o[13];else if(r.startsWith("matrix("))o=r.slice(7,-1).split(/, /),s=+o[0],i=+o[3],a=+o[4],l=+o[5];else return new ln(e);const u=n.transformOrigin,c=e.x-a-(1-s)*parseFloat(u),d=e.y-l-(1-i)*parseFloat(u.slice(u.indexOf(" ")+1)),f=s?e.width/s:t.offsetWidth+1,p=i?e.height/i:t.offsetHeight+1;return new ln({x:c,y:d,width:f,height:p})}else return new ln(e)}function kn(t,e,n){if(typeof t.animate>"u")return{finished:Promise.resolve()};let r;try{r=t.animate(e,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(o=>{r.onfinish=()=>{o(r)}})),r}const Or=new WeakMap;function Du(t,e){Object.keys(e).forEach(n=>{if(Ps(n)){const r=Qa(n),o=Or.get(t);if(e[n]==null)o==null||o.forEach(s=>{const[i,a]=s;i===r&&(t.removeEventListener(r,a),o.delete(s))});else if(!o||![...o].some(s=>s[0]===r&&s[1]===e[n])){t.addEventListener(r,e[n]);const s=o||new Set;s.add([r,e[n]]),Or.has(t)||Or.set(t,s)}}else e[n]==null?t.removeAttribute(n):t.setAttribute(n,e[n])})}function Ru(t,e){Object.keys(e).forEach(n=>{if(Ps(n)){const r=Qa(n),o=Or.get(t);o==null||o.forEach(s=>{const[i,a]=s;i===r&&(t.removeEventListener(r,a),o.delete(s))})}else t.removeAttribute(n)})}function hl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ae()({name:n??tu(el(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...be()},setup(r,o){let{slots:s}=o;return()=>{var i;return co(r.tag,{class:[t,r.class],style:r.style},(i=s.default)==null?void 0:i.call(s))}}})}function pl(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?nu
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&Fd[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},zi=Symbol("internals");function Jn(t){return t&&String(t).trim().toLowerCase()}function Br(t){return t===!1||t==null?t:z.isArray(t)?t.map(Br):String(t)}function Id(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Pd=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function zo(t,e,n,r,o){if(z.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!z.isString(e)){if(z.isString(r))return e.indexOf(r)!==-1;if(z.isRegExp(r))return r.test(e)}}function qd(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Vd(t,e){const n=z.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,s,i){return this[r].call(this,e,o,s,i)},configurable:!0})})}class xo{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(a,l,u){const c=Jn(l);if(!c)throw new Error("header name must be a non-empty string");const d=z.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Br(a))}const i=(a,l)=>z.forEach(a,(u,c)=>s(u,c,l));return z.isPlainObject(e)||e instanceof this.constructor?i(e,n):z.isString(e)&&(e=e.trim())&&!Pd(e)?i(Ld(e),n):e!=null&&s(n,e,r),this}get(e,n){if(e=Jn(e),e){const r=z.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return Id(o);if(z.isFunction(n))return n.call(this,o,r);if(z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Jn(e),e){const r=z.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||zo(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(i){if(i=Jn(i),i){const a=z.findKey(r,i);a&&(!n||zo(r,r[a],a,n))&&(delete r[a],o=!0)}}return z.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||zo(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return z.forEach(this,(o,s)=>{const i=z.findKey(r,s);if(i){n[i]=Br(o),delete n[s];return}const a=e?qd(s):String(s).trim();a!==s&&delete n[s],n[a]=Br(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[zi]=this[zi]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Jn(i);r[a]||(Vd(o,i),r[a]=!0)}return z.isArray(e)?e.forEach(s):s(e),this}}xo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(xo.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});z.freezeMethods(xo);const Dt=xo;function Bo(t,e){const n=this||Ks,r=e||n,o=Dt.from(r.headers);let s=r.data;return z.forEach(t,function(a){s=a.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Ll(t){return!!(t&&t.__CANCEL__)}function gr(t,e,n){le.call(this,t??"canceled",le.ERR_CANCELED,e,n),this.name="CanceledError"}z.inherits(gr,le,{__CANCEL__:!0});function Od(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new le("Request failed with status code "+n.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const zd=ht.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const i=[t+"="+encodeURIComponent(e)];z.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),z.isString(r)&&i.push("path="+r),z.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Bd(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Nd(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Il(t,e){return t&&!Bd(e)?Nd(t,e):e}const $d=ht.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=z.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Md(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ud(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let d=s,f=0;for(;d!==o;)f+=n[d++],d=d%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i<e)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function Bi(t,e){let n=0;const r=Ud(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),u=s<=i;n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-s)/l:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}const jd=typeof XMLHttpRequest<"u",Hd=jd&&function(t){return new Promise(function(n,r){let o=t.data;const s=Dt.from(t.headers).normalize();let{responseType:i,withXSRFToken:a}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let c;if(z.isFormData(o)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[h,...v]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([h||"multipart/form-data",...v].join("; "))}}let d=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(h+":"+v))}const f=Il(t.baseURL,t.url);d.open(t.method.toUpperCase(),Tl(f,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function p(){if(!d)return;const h=Dt.from("getAllResponseHeaders"in d&&d.getAllResponseHea
`+s.map(Ni).join(`
`):" "+Ni(s[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:hs};function No(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new gr(null,t)}function $i(t){return No(t),t.headers=Dt.from(t.headers),t.data=Bo.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Pl.getAdapter(t.adapter||Ks.adapter)(t).then(function(r){return No(t),r.data=Bo.call(t,t.transformResponse,r),r.headers=Dt.from(r.headers),r},function(r){return Ll(r)||(No(t),r&&r.response&&(r.response.data=Bo.call(t,t.transformResponse,r.response),r.response.headers=Dt.from(r.response.headers))),Promise.reject(r)})}const Mi=t=>t instanceof Dt?t.toJSON():t;function Ln(t,e){e=e||{};const n={};function r(u,c,d){return z.isPlainObject(u)&&z.isPlainObject(c)?z.merge.call({caseless:d},u,c):z.isPlainObject(c)?z.merge({},c):z.isArray(c)?c.slice():c}function o(u,c,d){if(z.isUndefined(c)){if(!z.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function s(u,c){if(!z.isUndefined(c))return r(void 0,c)}function i(u,c){if(z.isUndefined(c)){if(!z.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in e)return r(u,c);if(d in t)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,c)=>o(Mi(u),Mi(c),!0)};return z.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||o,f=d(t[c],e[c],c);z.isUndefined(f)&&d!==a||(n[c]=f)}),n}const ql="1.6.2",Js={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Js[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Ui={};Js.transitional=function(e,n,r){function o(s,i){return"[Axios v"+ql+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(e===!1)throw new le(o(i," has been removed"+(n?" in "+n:"")),le.ERR_DEPRECATED);return n&&!Ui[i]&&(Ui[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,i,a):!0}};function Wd(t,e,n){if(typeof t!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],i=e[s];if(i){const a=t[s],l=a===void 0||i(a,s,t);if(l!==!0)throw new le("option "+s+" must be "+l,le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new le("Unknown option "+s,le.ERR_BAD_OPTION)}}const ps={assertOptions:Wd,validators:Js},Pt=ps.validators;class Qr{constructor(e){this.defaults=e,this.interceptors={request:new Oi,response:new Oi}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ln(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&ps.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),o!=null&&(z.isFunction(o)?n.paramsSerializer={serialize:o}:ps.assertOptions(o,{encode:Pt.function,serialize:Pt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&z.merge(s.common,s[n.method]);s&&z.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=Dt.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,f;if(!l){const m=[$i.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d<f;)c=c.then(m[d++],m[d++]);return c}f=a.length;let p=n;for(d=0;d<f;
`),n=['<span rn-wrapper aria-hidden="true">'];return e.forEach(()=>{n.push("<span></span>")}),n.push("</span>"),`<span class="code-block">${t}</span>${n.join("")}`},mf=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,cn=(t,e="")=>{const n=document.getElementById(t.id),r=t.onload;t.onload=null;const o=function(s){typeof r=="function"&&r.bind(this)(s),t.removeEventListener("load",o)};n?e!==""&&(n.addEventListener("load",o),Reflect.get(window,e)&&n.dispatchEvent(new Event("load"))):(t.addEventListener("load",o),document.head.appendChild(t))},vf=Qs((t,e,n)=>{const r=document.getElementById(t);r&&r.setAttribute(e,n)},10),gf=1024;let yf=0;class we{constructor(e={}){this.id=yf++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Rt.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}we.closedBy=new we({deserialize:t=>t.split(" ")});we.openedBy=new we({deserialize:t=>t.split(" ")});we.group=new we({deserialize:t=>t.split(" ")});we.contextHash=new we({perNode:!0});we.lookAhead=new we({perNode:!0});we.mounted=new we({perNode:!0});class eo{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r}static get(e){return e&&e.props&&e.props[we.mounted.id]}}const bf=Object.create(null);class Rt{constructor(e,n,r,o=0){this.name=e,this.props=n,this.id=r,this.flags=o}static define(e){let n=e.props&&e.props.length?Object.create(null):bf,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),o=new Rt(e.name||"",n,e.id,r);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(o)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return o}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(we.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let o of r.split(" "))n[o]=e[r];return r=>{for(let o=r.prop(we.group),s=-1;s<(o?o.length:0);s++){let i=n[s<0?r.name:o[s]];if(i)return i}}}}Rt.none=new Rt("",Object.create(null),0,8);const Er=new WeakMap,Zi=new WeakMap;var Le;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(Le||(Le={}));class yt{constructor(e,n,r,o,s){if(this.type=e,this.children=n,this.positions=r,this.length=o,this.props=null,s&&s.length){this.props=Object.create(null);for(let[i,a]of s)this.props[typeof i=="number"?i:i.id]=a}}toString(){let e=eo.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let r of this.children){let o=r.toString();o&&(n&&(n+=","),n+=o)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new gs(this.topNode,e)}cursorAt(e,n=0,r=0){let o=Er.get(this)||this.topNode,s=new gs(o);return s.moveTo(e,n),Er.set(this,s._tree),s}get topNode(){return new He(this,0,0,null)}resolve(e,n=0){let r=sr(Er.get(this)||this.topNode,e,n,!1);return Er.set(this,r),r}resolveInner(e,n=0){let r=sr(Zi.get(this)||this.topNode,e,n,!0);return Zi.set(this,r),r}resolveStack(e,n=0){return wf(this,e,n)}iterate(e){let{enter:n,leave:r,from:o=0,to:s=this.length}=e,i=e.mode||0,a=(i&Le.IncludeAnonymous)>0;for(let l=this.cursor(i|Le.IncludeAnonymous);;){let u=!1;if(l.from<=s&&l.to>=o&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=
Expects a CSS selector, a Node element, a NodeList or an array.
See: https://github.com/francoischalifour/medium-zoom`)}},Rf=function(e){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=e,n},Ff=function(e){var n=e.getBoundingClientRect(),r=n.top,o=n.left,s=n.width,i=n.height,a=e.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,u=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return a.removeAttribute("id"),a.style.position="absolute",a.style.top=r+l+"px",a.style.left=o+u+"px",a.style.width=s+"px",a.style.height=i+"px",a.style.transform="",a},yn=function(e,n){var r=Qt({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(e,r);var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,r.bubbles,r.cancelable,r.detail),o},Lf=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(A){function D(){}A(D,D)},o=function(A){var D=A.target;if(D===L){m();return}C.indexOf(D)!==-1&&h({target:D})},s=function(){if(!(E||!x.original)){var A=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(_-A)>y.scrollOffset&&setTimeout(m,150)}},i=function(A){var D=A.key||A.keyCode;(D==="Escape"||D==="Esc"||D===27)&&m()},a=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A;if(A.background&&(L.style.background=A.background),A.container&&A.container instanceof Object&&(D.container=Qt({},y.container,A.container)),A.template){var S=Mr(A.template)?A.template:document.querySelector(A.template);D.template=S}return y=Qt({},y,D),C.forEach(function(V){V.dispatchEvent(yn("medium-zoom:update",{detail:{zoom:F}}))}),F},l=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t(Qt({},y,A))},u=function(){for(var A=arguments.length,D=Array(A),S=0;S<A;S++)D[S]=arguments[S];var V=D.reduce(function(I,$){return[].concat(I,ea($))},[]);return V.filter(function(I){return C.indexOf(I)===-1}).forEach(function(I){C.push(I),I.classList.add("medium-zoom-image")}),R.forEach(function(I){var $=I.type,P=I.listener,O=I.options;V.forEach(function(B){B.addEventListener($,P,O)})}),F},c=function(){for(var A=arguments.length,D=Array(A),S=0;S<A;S++)D[S]=arguments[S];x.zoomed&&m();var V=D.length>0?D.reduce(function(I,$){return[].concat(I,ea($))},[]):C;return V.forEach(function(I){I.classList.remove("medium-zoom-image"),I.dispatchEvent(yn("medium-zoom:detach",{detail:{zoom:F}}))}),C=C.filter(function(I){return V.indexOf(I)===-1}),F},d=function(A,D){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return C.forEach(function(V){V.addEventListener("medium-zoom:"+A,D,S)}),R.push({type:"medium-zoom:"+A,listener:D,options:S}),F},f=function(A,D){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return C.forEach(function(V){V.removeEventListener("medium-zoom:"+A,D,S)}),R=R.filter(function(V){return!(V.type==="medium-zoom:"+A&&V.listener.toString()===D.toString())}),F},p=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A.target,S=function(){var I={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},$=void 0,P=void 0;if(y.container)if(y.container instanceof Object)I=Qt({},I,y.container),$=I.width-I.left-I.right-y.margin*2,P=I.height-I.top-I.bottom-y.margin*2;else{var O=Mr(y.container)?y.container:document.querySelector(y.container),B=O.getBoundingClientRect(),U=B.width,j=B.height,H=B.left,X=B.top;I=Qt({},I,{width:U,height:j,left:H,top:X})}$=$||I.width-y.margin*2,P=P||I.height-y.margin*2;var te=x.zoomedHd||x.original,M=Qi(te)?$:te.naturalWidth||$,ie=Qi(te)?P:te.naturalHeight||P,Oe=te.getBoundingClientRect(),Je=Oe.top,vn=Oe.left,It=Oe.width,Kt=Oe.height,Wn=Math.min(Math.max(It,M),$)/It,Zn=Math.min(Math.max(Kt,ie),P)/Kt,gn=Math.min(Wn,Zn),Yc=(-vn+($-It)/2+y.margin+I.left)/gn,Xc=(-Je+(P-Kt)/2+y.margin+I.top)/gn,_i="scale("+gn+") translate3d("+Yc+"px, "+Xc+"px, 0)";x.zoomed.style.transform=_i,x.zoomedHd&&(x.zoo
`,yF="∄",bF="∄",kF="𝔑",xF="𝔫",wF="≧̸",_F="≱",CF="≱",SF="≧̸",AF="⩾̸",EF="⩾̸",TF="⋙̸",DF="≵",RF="≫⃒",FF="≯",LF="≯",IF="≫̸",PF="↮",qF="⇎",VF="⫲",OF="∋",zF="⋼",BF="⋺",NF="∋",$F="Њ",MF="њ",UF="↚",jF="⇍",HF="‥",GF="≦̸",WF="≰",ZF="↚",KF="⇍",JF="↮",YF="⇎",XF="≰",QF="≦̸",eL="⩽̸",tL="⩽̸",nL="≮",rL="⋘̸",oL="≴",sL="≪⃒",iL="≮",aL="⋪",lL="⋬",cL="≪̸",uL="∤",dL="",fL=" ",hL="𝕟",pL="",mL="⫬",vL="¬",gL="≢",yL="≭",bL="∦",kL="∉",xL="≠",wL="≂̸",_L="∄",CL="≯",SL="≱",AL="≧̸",EL="≫̸",TL="≹",DL="⩾̸",RL="≵",FL="≎̸",LL="≏̸",IL="∉",PL="⋵̸",qL="⋹̸",VL="∉",OL="⋷",zL="⋶",BL="⧏̸",NL="⋪",$L="⋬",ML="≮",UL="≰",jL="≸",HL="≪̸",GL="⩽̸",WL="≴",ZL="⪢̸",KL="⪡̸",JL="∌",YL="∌",XL="⋾",QL="⋽",eI="⊀",tI="⪯̸",nI="⋠",rI="∌",oI="⧐̸",sI="⋫",iI="⋭",aI="⊏̸",lI="⋢",cI="⊐̸",uI="⋣",dI="⊂⃒",fI="⊈",hI="⊁",pI="⪰̸",mI="⋡",vI="≿̸",gI="⊃⃒",yI="⊉",bI="≁",kI="≄",xI="≇",wI="≉",_I="∤",CI="∦",SI="∦",AI="⫽⃥",EI="∂̸",TI="⨔",DI="⊀",RI="⋠",FI="⊀",LI="⪯̸",II="⪯̸",PI="⤳̸",qI="↛",VI="⇏",OI="↝̸",zI="↛",BI="⇏",NI="⋫",$I="⋭",MI="⊁",UI="⋡",jI="⪰̸",HI="𝒩",GI="𝓃",WI="∤",ZI="∦",KI="≁",JI="≄",YI="≄",XI="∤",QI="∦",eP="⋢",tP="⋣",nP="⊄",rP="⫅̸",oP="⊈",sP="⊂⃒",iP="⊈",aP="⫅̸",lP="⊁",cP="⪰̸",uP="⊅",dP="⫆̸",fP="⊉",hP="⊃⃒",pP="⊉",mP="⫆̸",vP="≹",gP="Ñ",yP="ñ",bP="≸",kP="⋪",xP="⋬",wP="⋫",_P="⋭",CP="Ν",SP="ν",AP="#",EP="№",TP="",DP="≍⃒",RP="⊬",FP="⊭",LP="⊮",IP="⊯",PP="≥⃒",qP=">⃒",VP="⤄",OP="⧞",zP="⤂",BP="≤⃒",NP="<⃒",$P="⊴⃒",MP="⤃",UP="⊵⃒",jP="∼⃒",HP="⤣",GP="↖",WP="⇖",ZP="↖",KP="⤧",JP="Ó",YP="ó",XP="⊛",QP="Ô",eq="ô",tq="⊚",nq="О",rq="о",oq="⊝",sq="Ő",iq="ő",aq="⨸",lq="⊙",cq="⦼",uq="Œ",dq="œ",fq="⦿",hq="𝔒",pq="𝔬",mq="˛",vq="Ò",gq="ò",yq="⧁",bq="⦵",kq="Ω",xq="∮",wq="↺",_q="⦾",Cq="⦻",Sq="‾",Aq="⧀",Eq="Ō",Tq="ō",Dq="Ω",Rq="ω",Fq="Ο",Lq="ο",Iq="⦶",Pq="⊖",qq="𝕆",Vq="𝕠",Oq="⦷",zq="“",Bq="",Nq="⦹",$q="⊕",Mq="↻",Uq="⩔",jq="",Hq="⩝",Gq="",Wq="",Zq="ª",Kq="º",Jq="⊶",Yq="⩖",Xq="⩗",Qq="⩛",eV="Ⓢ",tV="𝒪",nV="",rV="Ø",oV="ø",sV="⊘",iV="Õ",aV="õ",lV="⨶",cV="⨷",uV="⊗",dV="Ö",fV="ö",hV="⌽",pV="‾",mV="⏞",vV="⎴",gV="⏜",yV="¶",bV="∥",kV="∥",xV="⫳",wV="⫽",_V="∂",CV="∂",SV="П",AV="п",EV="%",TV=".",DV="‰",RV="⊥",FV="‱",LV="𝔓",IV="𝔭",PV="Φ",qV="φ",VV="ϕ",OV="",zV="☎",BV="Π",NV="π",$V="⋔",MV="ϖ",UV="ℏ",jV="",HV="ℏ",GV="⨣",WV="⊞",ZV="⨢",KV="+",JV="∔",YV="⨥",XV="⩲",QV="±",eO="±",tO="⨦",nO="⨧",rO="±",oO="",sO="⨕",iO="𝕡",aO="",lO="£",cO="⪷",uO="⪻",dO="≺",fO="≼",hO="⪷",pO="≺",mO="≼",vO="≺",gO="⪯",yO="≼",bO="≾",kO="⪯",xO="⪹",wO="⪵",_O="⋨",CO="⪯",SO="⪳",AO="≾",EO="",TO="″",DO="",RO="⪹",FO="⪵",LO="⋨",IO="∏",PO="∏",qO="⌮",VO="⌒",OO="⌓",zO="∝",BO="∝",NO="∷",$O="∝",MO="≾",UO="⊰",jO="𝒫",HO="𝓅",GO="Ψ",WO="ψ",ZO="",KO="𝔔",JO="𝔮",YO="⨌",XO="𝕢",QO="",ez="⁗",tz="𝒬",nz="𝓆",rz="",oz="⨖",sz="?",iz="≟",az='"',lz='"',cz="⇛",uz="∽̱",dz="Ŕ",fz="ŕ",hz="√",pz="⦳",mz="⟩",vz="⟫",gz="⦒",yz="⦥",bz="⟩",kz="»",xz="⥵",wz="⇥",_z="⤠",Cz="⤳",Sz="→",Az="↠",Ez="⇒",Tz="⤞",Dz="↪",Rz="↬",Fz="⥅",Lz="⥴",Iz="⤖",Pz="↣",qz="↝",Vz="⤚",Oz="⤜",zz="",Bz="",Nz="⤍",$z="⤏",Mz="⤐",Uz="",jz="}",Hz="]",Gz="⦌",Wz="⦎",Zz="⦐",Kz="Ř",Jz="ř",Yz="Ŗ",Xz="ŗ",Qz="⌉",eB="}",tB="Р",nB="р",rB="⤷",oB="⥩",sB="”",iB="”",aB="↳",lB="",cB="",uB="",dB="",fB="",hB="▭",pB="®",mB="®",vB="∋",gB="⇋",yB="⥯",bB="⥽",kB="⌋",xB="𝔯",wB="",_B="⥤",CB="⇁",SB="⇀",AB="⥬",EB="Ρ",TB="ρ",DB="ϱ",RB="⟩",FB="⇥",LB="→",IB="→
`," "],gG=["{","}","|","\\","^","`"].concat(vG),yG=["'"].concat(gG),oa=["%","/","?",";","#"].concat(yG),sa=["/","?","#"],bG=255,ia=/^[+a-z0-9A-Z_-]{0,63}$/,kG=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,aa={javascript:!0,"javascript:":!0},la={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function xG(t,e){if(t&&t instanceof no)return t;var n=new no;return n.parse(t,e),n}no.prototype.parse=function(t,e){var n,r,o,s,i,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var l=mG.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=hG.exec(a);if(u&&(u=u[0],o=u.toLowerCase(),this.protocol=u,a=a.substr(u.length)),(e||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(u&&aa[u])&&(a=a.substr(2),this.slashes=!0)),!aa[u]&&(i||u&&!la[u])){var c=-1;for(n=0;n<sa.length;n++)s=a.indexOf(sa[n]),s!==-1&&(c===-1||s<c)&&(c=s);var d,f;for(c===-1?f=a.lastIndexOf("@"):f=a.lastIndexOf("@",c),f!==-1&&(d=a.slice(0,f),a=a.slice(f+1),this.auth=d),c=-1,n=0;n<oa.length;n++)s=a.indexOf(oa[n]),s!==-1&&(c===-1||s<c)&&(c=s);c===-1&&(c=a.length),a[c-1]===":"&&c--;var p=a.slice(0,c);a=a.slice(c),this.parseHost(p),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){var h=this.hostname.split(/\./);for(n=0,r=h.length;n<r;n++){var v=h[n];if(v&&!v.match(ia)){for(var b="",w=0,C=v.length;w<C;w++)v.charCodeAt(w)>127?b+="x":b+=v[w];if(!b.match(ia)){var R=h.slice(0,n),E=h.slice(n+1),_=v.match(kG);_&&(R.push(_[1]),E.unshift(_[2])),E.length&&(a=E.join(".")+a),this.hostname=R.join(".");break}}}}this.hostname.length>bG&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var y=a.indexOf("#");y!==-1&&(this.hash=a.substr(y),a=a.slice(0,y));var x=a.indexOf("?");return x!==-1&&(this.search=a.substr(x),a=a.slice(0,x)),a&&(this.pathname=a),la[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};no.prototype.parseHost=function(t){var e=pG.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var wG=xG;Mn.encode=cG;Mn.decode=dG;Mn.format=fG;Mn.parse=wG;var Xt={},Mo,ca;function $l(){return ca||(ca=1,Mo=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Mo}var Uo,ua;function Ml(){return ua||(ua=1,Uo=/[\0-\x1F\x7F-\x9F]/),Uo}var jo,da;function _G(){return da||(da=1,jo=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),jo}var Ho,fa;function Ul(){return fa||(fa=1,Ho=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ho}var ha;function CG(){return ha||(ha=1,Xt.Any=$l(),Xt.Cc=Ml(),Xt.Cf=_G(),Xt.P=oi,Xt.Z=Ul()),Xt}(function(t){function e(S){return Object.prototype.toString.call(S)}function n(S){return e(S)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(S,V){return r.call(S,V)}function s(S){var V=Array.prototype.slice.call(arguments,1);return V.forEach(function(I){if(I){if(typeof I!="object")throw new TypeError(I+"must be object");Object.keys(I).forEach(function($){S[$]=I[$]})}}),S}function i(S,V,I){return[].concat(S.slice(0,V),I,S.slice(V+1))}function a(S){return!(S>=55296&&S<=57343||S>=64976&&S<=65007||(S&65535)===65535||(S&65535)===65534||S>=0&&S<=8||S===11||S>=14&&S<=31||S>=127&&S<=159||S>1114111)}function l(S){if(S>65535){S-=65536;var V=55296+(S>>10),I=56320+(S&1023);return String.fromCharCode(V,I)}return String.fromCharCode(S)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(u.source+"|"+c.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,p=Nl;function m(S,V){var I;return o(p,V)?p[V]:V.charCodeAt(0)===35&&f.test(V)&&(I=V[1].toLowerCase()==="x"?parseInt(V.slice(2),16):parseInt(V.slice(1),10),a(I))?l(I):S}function h(S){return S.indexOf("\\")<0?S:S.replace(u,"$1")}function v(S){return S.indexOf("\\")<0&&S.indexOf("&")<0?S:S.replace(d,func
`};wt.fence=function(t,e,n,r,o){var s=t[e],i=s.info?RG(s.info).trim():"",a="",l="",u,c,d,f,p;return i&&(d=i.split(/(\s+)/g),a=d[0],l=d.slice(2).join("")),n.highlight?u=n.highlight(s.content,a,l)||un(s.content):u=un(s.content),u.indexOf("<pre")===0?u+`
`:i?(c=s.attrIndex("class"),f=s.attrs?s.attrs.slice():[],c<0?f.push(["class",n.langPrefix+a]):(f[c]=f[c].slice(),f[c][1]+=" "+n.langPrefix+a),p={attrs:f},"<pre><code"+o.renderAttrs(p)+">"+u+`</code></pre>
`):"<pre><code"+o.renderAttrs(s)+">"+u+`</code></pre>
`};wt.image=function(t,e,n,r,o){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,r),o.renderToken(t,e,n)};wt.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
`:`<br>
`};wt.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`};wt.text=function(t,e){return un(t[e].content)};wt.html_block=function(t,e){return t[e].content};wt.html_inline=function(t,e){return t[e].content};function Un(){this.rules=DG({},wt)}Un.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+un(e.attrs[n][0])+'="'+un(e.attrs[n][1])+'"';return o};Un.prototype.renderToken=function(e,n,r){var o,s="",i=!1,a=e[n];return a.hidden?"":(a.block&&a.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
`),s+=(a.nesting===-1?"</":"<")+a.tag,s+=this.renderAttrs(a),a.nesting===0&&r.xhtmlOut&&(s+=" /"),a.block&&(i=!0,a.nesting===1&&n+1<e.length&&(o=e[n+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===a.tag)&&(i=!1))),s+=i?`>
`:">",s)};Un.prototype.renderInline=function(t,e,n){for(var r,o="",s=this.rules,i=0,a=t.length;i<a;i++)r=t[i].type,typeof s[r]<"u"?o+=s[r](t,i,e,n,this):o+=this.renderToken(t,i,e);return o};Un.prototype.renderInlineAsText=function(t,e,n){for(var r="",o=0,s=t.length;o<s;o++)t[o].type==="text"?r+=t[o].content:t[o].type==="image"?r+=this.renderInlineAsText(t[o].children,e,n):t[o].type==="softbreak"&&(r+=`
`);return r};Un.prototype.render=function(t,e,n){var r,o,s,i="",a=this.rules;for(r=0,o=t.length;r<o;r++)s=t[r].type,s==="inline"?i+=this.renderInline(t[r].children,e,n):typeof a[s]<"u"?i+=a[s](t,r,e,n,this):i+=this.renderToken(t,r,e,n);return i};var FG=Un;function rt(){this.__rules__=[],this.__cache__=null}rt.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};rt.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})};rt.prototype.at=function(t,e,n){var r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null};rt.prototype.before=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};rt.prototype.after=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};rt.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};rt.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n};rt.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};rt.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n};rt.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var si=rt,LG=/\r\n?|\n/g,IG=/\0/g,PG=function(e){var n;n=e.src.replace(LG,`
`),n=n.replace(IG,"<22>"),e.src=n},qG=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},VG=function(e){var n=e.tokens,r,o,s;for(o=0,s=n.length;o<s;o++)r=n[o],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},OG=ce.arrayReplaceAt;function zG(t){return/^<a[>\s]/i.test(t)}function BG(t){return/^<\/a\s*>/i.test(t)}var NG=function(e){var n,r,o,s,i,a,l,u,c,d,f,p,m,h,v,b,w=e.tokens,C;if(e.md.options.linkify){for(r=0,o=w.length;r<o;r++)if(!(w[r].type!=="inline"||!e.md.linkify.pretest(w[r].content)))for(s=w[r].children,m=0,n=s.length-1;n>=0;n--){if(a=s[n],a.type==="link_close"){for(n--;s[n].level!==a.level&&s[n].type!=="link_open";)n--;continue}if(a.type==="html_inline"&&(zG(a.content)&&m>0&&m--,BG(a.content)&&m++),!(m>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(c=a.content,C=e.md.linkify.match(c),l=[],p=a.level,f=0,C.length>0&&C[0].index===0&&n>0&&s[n-1].type==="text_special"&&(C=C.slice(1)),u=0;u<C.length;u++)h=C[u].url,v=e.md.normalizeLink(h),e.md.validateLink(v)&&(b=C[u].text,C[u].schema?C[u].schema==="mailto:"&&!/^mailto:/i.test(b)?b=e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):b=e.md.normalizeLinkText(b):b=e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),d=C[u].index,d>f&&(i=new e.Token("text","",0),i.content=c.slice(f,d),i.level=p,l.push(i)),i=new e.Token("link_open","a",1),i.attrs=[["href",v]],i.level=p++,i.markup="linkify",i.info="auto",l.push(i),i=new e.Token("text","",0),i.content=b,i.level=p,l.push(i),i=new e.Token("link_close","a",-1),i.level=--p,i.markup="linkify",i.info="auto",l.push(i),f=C[u].lastIndex);f<c.length&&(i=new e.Token("text","",0),i.content=c.slice(f),i.level=p,l.push(i)),w[r].children=s=OG(s,n,l)}}}},jl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,$G=/\((c|tm|r)\)/i,MG=/\((c|tm|r)\)/ig,UG={c:"©",r:"®",tm:"™"};function jG(t,e){return UG[e.toLowerCase()]}function HG(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(MG,jG)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function GG(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&jl.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var WG=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&($G.test(e.tokens[n].content)&&HG(e.tokens[n].children),jl.test(e.tokens[n].content)&&GG(e.tokens[n].children))},ma=ce.isWhiteSpace,va=ce.isPunctChar,ga=ce.isMdAsciiPunct,ZG=/['"]/,ya=/['"]/g,ba="";function Lr(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function KG(t,e){var n,r,o,s,i,a,l,u,c,d,f,p,m,h,v,b,w,C,R,E,_;for(R=[],n=0;n<t.length;n++){for(r=t[n],l=t[n].level,w=R.length-1;w>=0&&!(R[w].level<=l);w--);if(R.length=w+1,r.type==="text"){o=r.content,i=0,a=o.length;e:for(;i<a&&(ya.lastIndex=i,s=ya.exec(o),!!s);){if(v=b=!0,i=s.index+1,C=s[0]==="'",c=32,s.index-1>=0)c=o.charCodeAt(s.index-1);else for(w=n-1;w>=0&&!(t[w].type==="softbreak"||t[w].type==="hardbreak");w--)if(t[w].content){c=t[w].content.charCodeAt(t[w].content.length-1);break}if(d=32,i<a)d=o.charCodeAt(i);else for(w=n+1;w<t.length&&!(t[w].type==="softbreak"||t[w].type==="hardbreak");w++)if(t[w].content){d=t[w].content.charCodeAt(0);break}if(f=ga(c)||va(String.fromCharCode(c)),p=ga(d)||va(String.fromCharCode(d)),m=ma(c),h=ma(d),h?v=!1:p&&(m||f||(v=!1)),m?b=!1:f&&(h||p||(b=!1)),d===34&&s[0]==='"'&&c>=48&&c<=57&&(b=v=!1),v&&b&&(v=f,b=p),!v&&!b){C&&(r.content=Lr(r.content,s.index,ba));continue}if(b){for(w=R.length-1;w>=0&&(u=R[w],!(R[w].level<l));w--)if(u.single===C&&R[w].level===l){u=R[w],C?(E=e.md.options.quotes[2],_=e.md.options.quotes[3]):(E=e.md.options.quote
`,i.map=[n,e.line],!0},o6=function(e,n,r,o){var s,i,a,l,u,c,d,f=!1,p=e.bMarks[n]+e.tShift[n],m=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||p+3>m||(s=e.src.charCodeAt(p),s!==126&&s!==96)||(u=p,p=e.skipChars(p,s),i=p-u,i<3)||(d=e.src.slice(u,p),a=e.src.slice(p,m),s===96&&a.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(l=n;l++,!(l>=r||(p=u=e.bMarks[l]+e.tShift[l],m=e.eMarks[l],p<m&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(p)===s&&!(e.sCount[l]-e.blkIndent>=4)&&(p=e.skipChars(p,s),!(p-u<i)&&(p=e.skipSpaces(p),!(p<m)))){f=!0;break}return i=e.sCount[n],e.line=l+(f?1:0),c=e.push("fence","code",0),c.info=a,c.content=e.getLines(n+1,l,i,!0),c.markup=d,c.map=[n,e.line],!0},s6=ce.isSpace,i6=function(e,n,r,o){var s,i,a,l,u,c,d,f,p,m,h,v,b,w,C,R,E,_,y,x,L=e.lineMax,F=e.bMarks[n]+e.tShift[n],T=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(F)!==62)return!1;if(o)return!0;for(m=[],h=[],w=[],C=[],_=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",f=n;f<r&&(x=e.sCount[f]<e.blkIndent,F=e.bMarks[f]+e.tShift[f],T=e.eMarks[f],!(F>=T));f++){if(e.src.charCodeAt(F++)===62&&!x){for(l=e.sCount[f]+1,e.src.charCodeAt(F)===32?(F++,l++,s=!1,R=!0):e.src.charCodeAt(F)===9?(R=!0,(e.bsCount[f]+l)%4===3?(F++,l++,s=!1):s=!0):R=!1,p=l,m.push(e.bMarks[f]),e.bMarks[f]=F;F<T&&(i=e.src.charCodeAt(F),s6(i));){i===9?p+=4-(p+e.bsCount[f]+(s?1:0))%4:p++;F++}c=F>=T,h.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(R?1:0),w.push(e.sCount[f]),e.sCount[f]=p-l,C.push(e.tShift[f]),e.tShift[f]=F-e.bMarks[f];continue}if(c)break;for(E=!1,a=0,u=_.length;a<u;a++)if(_[a](e,f,r,!0)){E=!0;break}if(E){e.lineMax=f,e.blkIndent!==0&&(m.push(e.bMarks[f]),h.push(e.bsCount[f]),C.push(e.tShift[f]),w.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}m.push(e.bMarks[f]),h.push(e.bsCount[f]),C.push(e.tShift[f]),w.push(e.sCount[f]),e.sCount[f]=-1}for(v=e.blkIndent,e.blkIndent=0,y=e.push("blockquote_open","blockquote",1),y.markup=">",y.map=d=[n,0],e.md.block.tokenize(e,n,f),y=e.push("blockquote_close","blockquote",-1),y.markup=">",e.lineMax=L,e.parentType=b,d[1]=e.line,a=0;a<C.length;a++)e.bMarks[a+n]=m[a],e.tShift[a+n]=C[a],e.sCount[a+n]=w[a],e.bsCount[a+n]=h[a];return e.blkIndent=v,!0},a6=ce.isSpace,l6=function(e,n,r,o){var s,i,a,l,u=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(i=1;u<c;){if(a=e.src.charCodeAt(u++),a!==s&&!a6(a))return!1;a===s&&i++}return i<3?!1:(o||(e.line=n+1,l=e.push("hr","hr",0),l.map=[n,e.line],l.markup=Array(i+1).join(String.fromCharCode(s))),!0)},Gl=ce.isSpace;function xa(t,e){var n,r,o,s;return r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<o&&(s=t.src.charCodeAt(r),!Gl(s))?-1:r}function wa(t,e){var n,r=t.bMarks[e]+t.tShift[e],o=r,s=t.eMarks[e];if(o+1>=s||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=s)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return o<s&&(n=t.src.charCodeAt(o),!Gl(n))?-1:o}function c6(t,e){var n,r,o=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===o&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var u6=function(e,n,r,o){var s,i,a,l,u,c,d,f,p,m,h,v,b,w,C,R,E,_,y,x,L,F,T,A,D,S,V,I=n,$=!1,P=!0;if(e.sCount[I]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[I]-e.listIndent>=4&&e.sCount[I]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[I]>=e.blkIndent&&($=!0),(F=wa(e,I))>=0){if(d=!0,A=e.bMarks[I]+e.tShift[I],b=Number(e.src.slice(A,F-1)),$&&b!==1)return!1}else if((F=xa(e,I))>=0)d=!1;else return!1;if($&&e.skipSpaces(F)>=e.eMarks[I])return!1;if(o)return!0;for(v=e.src.charCodeAt(F-1),h=e.tokens.length,d?(V=e.push("ordered_list_open","ol",1),b!==1&&(V.attrs=[["start",b]])):V=e.push("bullet_list_open","ul",1),V.map=m=[I,0],V.markup=String.fromCharCode(v),T=!1,S=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";I<r;){for(L=F,w=e.eMarks[I],c=C=e.sCount[I]+F-(e.bMarks[I]+e.tShift[I]);L<w;){if(s=e.sr
`:"")+t.getLines(e+1,i,t.tShift[e],!0)+(s&&s.trim()?s:""),d.map=[e,t.line],d.markup="$$",!0},LW=(t,e)=>{const n=o=>{if(e.katexRef.value){const s=e.katexRef.value.renderToString(o,{throwOnError:!1});return`<span class="${ue}-katex-inline" data-processed>${s}</span>`}else return`<span class="${ue}-katex-inline">${o}</span>`},r=(o,s)=>{if(e.katexRef.value){const i=e.katexRef.value.renderToString(o,{throwOnError:!1,displayMode:!0});return`<p class="${ue}-katex-block" data-line=${s} data-processed>${i}</p>`}else return`<p class="${ue}-katex-block" data-line=${s}>${o}</p>`};t.inline.ruler.after("escape","math_inline",RW),t.block.ruler.after("blockquote","math_block",FW,{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules.math_inline=(o,s)=>n(o[s].content),t.renderer.rules.math_block=(o,s)=>r(o[s].content,o[s].map[0])+`
`},IW=LW,PW=(t,e)=>{e=e||{};const n=3,r=e.marker||"!",o=r.charCodeAt(0),s=r.length;let i="",a="";const l=(c,d,f,p,m)=>{const h=c[d];return h.type==="admonition_open"?(c[d].attrPush(["class",`${ue}-admonition ${ue}-admonition-${h.info}`]),c[d].attrSet("data-line",String(c[d].map[0]))):h.type==="admonition_title_open"&&c[d].attrPush(["class",`${ue}-admonition-title`]),m.renderToken(c,d,f)},u=c=>{const d=c.trim().split(" ",2);a="",i=d[0],d.length>1&&(a=c.substring(i.length+2)),(a===""||!a)&&(a=i)};t.block.ruler.before("code","admonition",(c,d,f,p)=>{let m,h,v,b=!1,w=c.bMarks[d]+c.tShift[d],C=c.eMarks[d];if(o!==c.src.charCodeAt(w))return!1;for(m=w+1;m<=C&&r[(m-w)%s]===c.src[m];m++);const R=Math.floor((m-w)/s);if(R!==n)return!1;m-=(m-w)%s;const E=c.src.slice(w,m),_=c.src.slice(m,C);if(u(_),p)return!0;for(h=d;h++,!(h>=f||(w=c.bMarks[h]+c.tShift[h],C=c.eMarks[h],w<C&&c.sCount[h]<c.blkIndent));)if(o===c.src.charCodeAt(w)&&!(c.sCount[h]-c.blkIndent>=4)){for(m=w+1;m<=C&&r[(m-w)%s]===c.src[m];m++);if(!(Math.floor((m-w)/s)<R)&&(m-=(m-w)%s,m=c.skipSpaces(m),!(m<C))){b=!0;break}}const y=c.parentType,x=c.lineMax;return c.parentType="root",c.lineMax=h,v=c.push("admonition_open","div",1),v.markup=E,v.block=!0,v.info=i,v.map=[d,h],v=c.push("admonition_title_open","p",1),v.markup=E+" "+i,v.map=[d,h],v=c.push("inline","",0),v.content=a,v.map=[d,c.line-1],v.children=[],v=c.push("admonition_title_close","p",-1),v.markup=E+" "+i,c.md.block.tokenize(c,d+1,h),v=c.push("admonition_close","div",-1),v.markup=c.src.slice(w,m),v.block=!0,c.parentType=y,c.lineMax=x,c.line=h+(b?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules.admonition_open=l,t.renderer.rules.admonition_title_open=l,t.renderer.rules.admonition_title_close=l,t.renderer.rules.admonition_close=l},qW=PW,VW=(t,e)=>{t.renderer.rules.heading_open=(n,r)=>{var o;const s=n[r],i=((o=n[r+1].children)==null?void 0:o.reduce((l,u)=>l+(u.content||""),""))||"",a=s.markup.length;return e.headsRef.value.push({text:i,level:a}),s.map&&s.level===0&&(s.attrSet("data-line",String(s.map[0])),s.attrSet("id",e.mdHeadingId(i,a,e.headsRef.value.length))),t.renderer.renderToken(n,r,e)},t.renderer.rules.heading_close=(n,r,o,s,i)=>i.renderToken(n,r,o)},OW=VW,zW=(t,e)=>{const n=t.renderer.rules.fence,r=t.utils.unescapeAll,o=/\[(\w*)(?::([\w ]*))?\]/;function s(u){return u.info?r(u.info).trim():""}function i(u){const c=s(u),[d=null,f=""]=(o.exec(c)||[]).slice(1);return[d,f]}function a(u){const c=s(u);return c?c.split(/(\s+)/g)[0]:""}const l=(u,c,d,f,p)=>{if(u[c].hidden)return"";const[m,h]=i(u[c]);if(m===null)return n(u,c,d,f,p);let v,b,w,C,R="",E="";for(let _=c;_<u.length&&(v=u[_],[b,w]=i(v),b===m);_++)v.info=v.info.replace(o,""),v.hidden=!0,C=_-c>0?"":" checked",R+=`<li><input type="radio" name="label-group-${e.editorId}-${c}"${C}><label for="group-${e.editorId}-${c}-tab-${_-c}" onclick="this.previousElementSibling.click()">${w||a(v)}</label></li>
`,E+=`<input type="radio" id="group-${e.editorId}-${c}-tab-${_-c}" name="group-${e.editorId}-${c}"${C}>
`+n(u,_,d,f,p);return`<div class="code-tabs">
<ul>
`+R+`</ul>
`+E+"</div>"};t.renderer.rules.fence=l},BW=zW,NW=t=>{["paragraph_open","table_open","ordered_list_open","bullet_list_open","blockquote_open","hr","html_block","fence"].forEach(e=>{const n=t.renderer.rules[e];n?t.renderer.rules[e]=(r,o,s,i,a)=>{let l;const u=n(r,o,s,i,a);return r[o].map&&r[o].level===0&&!/^<!--/.test(u)?(l=r[o].map[0],u.replace(/^(<[^>]*)/,`$1 data-line="${l}"`)):u}:t.renderer.rules[e]=(r,o,s,i,a)=>{let l;return r[o].map&&r[o].level===0&&(l=r[o].map[0],r[o].attrSet("data-line",String(l))),a.renderToken(r,o,s)}})},$W=(t,e)=>{const{editorConfig:n,markdownItConfig:r,markdownItPlugins:o}=gt,s=ye("editorId"),i=ye("showCodeRowNumber"),a=ye("theme"),l=Z([]),u=_W(t),c=EW(t),{reRenderRef:d,replaceMermaid:f}=SW(t),p=X8({html:!0,breaks:!0});r(p);const m=[{type:"katex",plugin:IW,options:{katexRef:c}},{type:"image",plugin:eW,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:qW,options:{}},{type:"taskList",plugin:hW,options:{}},{type:"heading",plugin:OW,options:{mdHeadingId:t.mdHeadingId,headsRef:l}},{type:"codeTabs",plugin:BW,options:{editorId:s}}];t.noMermaid||m.push({type:"mermaid",plugin:DW,options:{themeRef:a}}),o(m).forEach(R=>{p.use(R.plugin,R.options)});const h=p.options.highlight;p.set({highlight:(R,E,_)=>{if(h){const L=h(R,E,_);if(L)return L}let y;!t.noHighlight&&u.value?u.value.getLanguage(E)?y=u.value.highlight(R,{language:E,ignoreIllegals:!0}).value:y=u.value.highlightAuto(R).value:y=p.utils.escapeHtml(R);const x=i?pf(y.replace(/^\n+|\n+$/g,"")):`<span class="code-block">${y.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${E}" language=${E}>${x}</code></pre>`}}),NW(p);const v=Z(t.sanitize(p.render(t.modelValue))),b=()=>{tr.emit(s,ff,v.value),t.onHtmlChanged(v.value),t.onGetCatalog(l.value),tr.emit(s,Wi,l.value),f()};Ge(b);const w=Qs(async()=>{l.value=[],v.value=t.sanitize(p.render(t.modelValue)),b()},(n==null?void 0:n.renderDelay)!==void 0?n==null?void 0:n.renderDelay:e?0:500),C=q(()=>(t.noKatex||c.value)&&(t.noHighlight||u.value));return Q([Y(t,"modelValue"),C,d],w),Ge(()=>{tr.on(s,{name:hf,callback(){tr.emit(s,Wi,l.value)}})}),{html:v}},MW=$W,pc={modelValue:{type:String,default:""},setting:{type:Object,default:()=>({})},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:t=>t},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:t=>t},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean}};({...pc});const UW=qs({name:"ContentPreview",props:pc,setup(t){const e=ye("editorId"),n=ye("previewTheme"),r=ye("showCodeRowNumber"),{html:o}=MW(t,t.previewOnly);return xW(t,o),yW(t,o),()=>g(pe,null,[g("div",{id:`${e}-preview-wrapper`,class:`${ue}-preview-wrapper`,"data-show":t.setting.preview,key:"content-preview-wrapper"},[g("article",{id:`${e}-preview`,class:[`${ue}-preview`,`${n==null?void 0:n.value}-theme`,r&&`${ue}-scrn`],innerHTML:o.value},null)]),!t.previewOnly&&g("div",{id:`${e}-html-wrapper`,class:`${ue}-preview-wrapper`,"data-show":t.setting.htmlPreview,key:"html-preview-wrapper"},[g("div",{class:`${ue}-html`},[o.value])])])}}),jW=t=>{var e,n;const{editorId:r}=t,o=(n=(e=gt)==null?void 0:e.editorExtensions)==null?void 0:n.highlight;Fe("editorId",r),Fe("theme",q(()=>t.theme)),Fe("language",q(()=>t.language)),Fe("highlight",q(()=>{const i={...Gi,...o==null?void 0:o.css},a=t.codeStyleReverse&&t.codeStyleReverseList.includes(t.previewTheme)?"dark":t.theme;return{js:(o==null?void 0:o.js)||rf,css:i[t.codeTheme]?i[t.codeTheme][a]:Gi.atom[a]}})),Fe("showCodeRowNumber",t.showCodeRowNumber);const s=q(()=>{var i,a;const l={...ji,...(a=(i=gt)==null?void 0:i.editorConfig)==null?void 0:a.languageUserDefined};return l[t.language]?l[t.language]:ji["zh-CN"]});Fe("usedLanguageText",s),Fe("previewTheme",q(()=>t.previewTheme)),Fe("customIcon",q(()=>t.customIcon))},HW=t=>{Ge(()=>{var e,n;if(!t.noIconfont)if(gt.iconfontType==="svg"){const r=document.createElement("script");r.sr
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/var ZW=Object.prototype.toString,Hn=Array.isArray||function(e){return ZW.call(e)==="[object Array]"};function pi(t){return typeof t=="function"}function KW(t){return Hn(t)?"array":typeof t}function ns(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function $a(t,e){return t!=null&&typeof t=="object"&&e in t}function JW(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var YW=RegExp.prototype.test;function XW(t,e){return YW.call(t,e)}var QW=/\S/;function e7(t){return!XW(QW,t)}var t7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function n7(t){return String(t).replace(/[&<>"'`=\/]/g,function(n){return t7[n]})}var r7=/\s*/,o7=/\s+/,Ma=/\s*=/,s7=/\s*\}/,i7=/#|\^|\/|>|\{|&|=|!/;function a7(t,e){if(!t)return[];var n=!1,r=[],o=[],s=[],i=!1,a=!1,l="",u=0;function c(){if(i&&!a)for(;s.length;)delete o[s.pop()];else s=[];i=!1,a=!1}var d,f,p;function m(x){if(typeof x=="string"&&(x=x.split(o7,2)),!Hn(x)||x.length!==2)throw new Error("Invalid tags: "+x);d=new RegExp(ns(x[0])+"\\s*"),f=new RegExp("\\s*"+ns(x[1])),p=new RegExp("\\s*"+ns("}"+x[1]))}m(e||Ze.tags);for(var h=new kr(t),v,b,w,C,R,E;!h.eos();){if(v=h.pos,w=h.scanUntil(d),w)for(var _=0,y=w.length;_<y;++_)C=w.charAt(_),e7(C)?(s.push(o.length),l+=C):(a=!0,n=!0,l+=" "),o.push(["text",C,v,v+1]),v+=1,C===`
`&&(c(),l="",u=0,n=!1);if(!h.scan(d))break;if(i=!0,b=h.scan(i7)||"name",h.scan(r7),b==="="?(w=h.scanUntil(Ma),h.scan(Ma),h.scanUntil(f)):b==="{"?(w=h.scanUntil(p),h.scan(s7),h.scanUntil(f),b="&"):w=h.scanUntil(f),!h.scan(f))throw new Error("Unclosed tag at "+h.pos);if(b==">"?R=[b,w,v,h.pos,l,u,n]:R=[b,w,v,h.pos],u++,o.push(R),b==="#"||b==="^")r.push(R);else if(b==="/"){if(E=r.pop(),!E)throw new Error('Unopened section "'+w+'" at '+v);if(E[1]!==w)throw new Error('Unclosed section "'+E[1]+'" at '+v)}else b==="name"||b==="{"||b==="&"?a=!0:b==="="&&m(w)}if(c(),E=r.pop(),E)throw new Error('Unclosed section "'+E[1]+'" at '+h.pos);return c7(l7(o))}function l7(t){for(var e=[],n,r,o=0,s=t.length;o<s;++o)n=t[o],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(e.push(n),r=n));return e}function c7(t){for(var e=[],n=e,r=[],o,s,i=0,a=t.length;i<a;++i)switch(o=t[i],o[0]){case"#":case"^":n.push(o),r.push(o),n=o[4]=[];break;case"/":s=r.pop(),s[5]=o[2],n=r.length>0?r[r.length-1][4]:e;break;default:n.push(o)}return e}function kr(t){this.string=t,this.tail=t,this.pos=0}kr.prototype.eos=function(){return this.tail===""};kr.prototype.scan=function(e){var n=this.tail.match(e);if(!n||n.index!==0)return"";var r=n[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r};kr.prototype.scanUntil=function(e){var n=this.tail.search(e),r;switch(n){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=r.length,r};function In(t,e){this.view=t,this.cache={".":this.view},this.parent=e}In.prototype.push=function(e){return new In(e,this)};In.prototype.lookup=function(e){var n=this.cache,r;if(n.hasOwnProperty(e))r=n[e];else{for(var o=this,s,i,a,l=!1;o;){if(e.indexOf(".")>0)for(s=o.view,i=e.split("."),a=0;s!=null&&a<i.length;)a===i.length-1&&(l=$a(s,i[a])||JW(s,i[a])),s=s[i[a++]];else s=o.view[e],l=$a(o.view,e);if(l){r=s;break}o=o.parent}n[e]=r}return pi(r)&&(r=r.call(this.view)),r};function qe(){this.templateCache={_cache:{},set:function(e,n){this._cache[e]=n},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}qe.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};qe.prototype.parse=function(e,n){var r=this.templateCache,o=e+":"+(n||Ze.tags).join(":"),s=typeof r<"u",i=s?r.get(o):void 0;return i==null&&(i=a7(e,n),s&&r.set(o,i)),i};qe.prototype.render=function(e,n,r,o){var s=this.getConfigTags(o),i=this.parse(e,s),a=n instanceof In?n:new In(n,void 0);return this.renderTokens(i,a,r,e,o)};qe.prototype.renderTokens=function(e,n,r,o,s){for(var i="",a,l,u,c=0,d=e.length;c<d;++c)u=void 0,a=e[c],l=a[0],l==="#"?u=this.renderSection(a,n,r,o,s):l==="^"?u=this.renderInverted(a,n,r,o,s):l===">"?u=this.renderPartial(a,n,r,s):l==="&"?u=this.unescapedValue(a,n):l==="name"?u=this.escapedValue(a,n,s):l==="text"&&(u=this.rawValue(a)),u!==void 0&&(i+=u);return i};qe.prototype.renderSection=function(e,n,r,o,s){var i=this,a="",l=n.lookup(e[1]);function u(f){return i.render(f,n,r,s)}if(l){if(Hn(l))for(var c=0,d=l.length;c<d;++c)a+=this.renderTokens(e[4],n.push(l[c]),r,o,s);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")a+=this.renderTokens(e[4],n.push(l),r,o,s);else if(pi(l)){if(typeof o!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(n.view,o.slice(e[3],e[5]),u),l!=null&&(a+=l)}else a+=this.renderTokens(e[4],n,r,o,s);return a}};qe.prototype.renderInverted=function(e,n,r,o,s){var i=n.lookup(e[1]);if(!i||Hn(i)&&i.length===0)return this.renderTokens(e[4],n,r,o,s)};qe.prototype.indentPartial=function(e,n,r){for(var o=n.replace(/[^ \t]/g,""),s=e.split(`
`),i=0;i<s.length;i++)s[i].length&&(i>0||!r)&&(s[i]=o+s[i]);return s.join(`
`)};qe.prototype.renderPartial=function(e,n,r,o){if(r){var s=this.getConfigTags(o),i=pi(r)?r(e[1]):r[e[1]];if(i!=null){var a=e[6],l=e[5],u=e[4],c=i;l==0&&u&&(c=this.indentPartial(i,u,a));var d=this.parse(c,s);return this.renderTokens(d,n,r,c,o)}}};qe.prototype.unescapedValue=function(e,n){var r=n.lookup(e[1]);if(r!=null)return r};qe.prototype.escapedValue=function(e,n,r){var o=this.getConfigEscape(r)||Ze.escape,s=n.lookup(e[1]);if(s!=null)return typeof s=="number"&&o===Ze.escape?String(s):o(s)};qe.prototype.rawValue=function(e){return e[1]};qe.prototype.getConfigTags=function(e){return Hn(e)?e:e&&typeof e=="object"?e.tags:void 0};qe.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!Hn(e))return e.escape};var Ze={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){ar.templateCache=t},get templateCache(){return ar.templateCache}},ar=new qe;Ze.clearCache=function(){return ar.clearCache()};Ze.parse=function(e,n){return ar.parse(e,n)};Ze.render=function(e,n,r,o){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+KW(e)+'" was given as the first argument for mustache#render(template, view, partials)');return ar.render(e,n,r,o)};Ze.escape=n7;Ze.Scanner=kr;Ze.Context=In;Ze.Writer=qe;function u7(t,e){let n=new Blob([e]),r=document.createElement("a"),o=URL.createObjectURL(n);r.setAttribute("href",o),r.setAttribute("download",t),document.body.appendChild(r),r.click(),document.body.removeChild(r)}const d7=K({text:String,clickable:Boolean,...be(),...Ft()},"VLabel"),xr=ae()({name:"VLabel",props:d7(),setup(t,e){let{slots:n}=e;return de(()=>{var r;return g("label",{class:["v-label",{"v-label--clickable":t.clickable},t.class],style:t.style},[t.text,(r=n.default)==null?void 0:r.call(n)])}),{}}});const gc=Symbol.for("vuetify:selection-control-group"),mi=K({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:ke,trueIcon:ke,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Vs},...be(),...On(),...Ft()},"SelectionControlGroup"),f7=K({...mi({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),h7=ae()({name:"VSelectionControlGroup",props:f7(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=Ee(t,"modelValue"),o=Wt(),s=q(()=>t.id||`v-selection-control-group-${o}`),i=q(()=>t.name||s.value),a=new Set;return Fe(gc,{modelValue:r,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),Ke(()=>{a.delete(l)})}}),Os({[t.defaultsTarget]:{color:Y(t,"color"),disabled:Y(t,"disabled"),density:Y(t,"density"),error:Y(t,"error"),inline:Y(t,"inline"),modelValue:r,multiple:q(()=>!!t.multiple||t.multiple==null&&Array.isArray(r.value)),name:i,falseIcon:Y(t,"falseIcon"),trueIcon:Y(t,"trueIcon"),readonly:Y(t,"readonly"),ripple:Y(t,"ripple"),type:Y(t,"type"),valueComparator:Y(t,"valueComparator")}}),de(()=>{var l;return g("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}}),vi=K({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...be(),...mi()},"VSelectionControl");function p7(t){const e=ye(gc,void 0),{densityClasses:n}=zn(t),r=Ee(t,"modelValue"),o=q(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),s=q(()=>t.falseValue!==void 0?t.falseValue:!1),i=q(()=>!!t.multiple||t.multiple==null&&Array.isArray(r.value)),a=q({get(){const p=e?e.modelValue.value:r.value;return i.value?jt(p).some(m=>t.valueComparator(m,o.value)):t.valueComparator(p,o.value)},set(p){if(t.readonly)return;const m=p?o.value:s.value;let h=m;i.value&&(h=p?[...jt(r.value),m]:jt(r.value).filter(v=>!t.valueComparator(v,o.value))),e?e.modelValue.value=h:r.value=h}}),{textColorClasses:l,textColorStyles:u}=p