You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
75 KiB

  1. var Zt=Object.defineProperty;var Wt=(r,e,n)=>e in r?Zt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var Me=(r,e,n)=>Wt(r,typeof e!="symbol"?e+"":e,n);import{_ as He}from"./i18n-D_ruByvS.js";var ee;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(ee||(ee={}));var Je=function(r){return r},Ve="beforeunload",Kt="popstate";function Wr(r){r===void 0&&(r={});var e=r,n=e.window,t=n===void 0?document.defaultView:n,s=t.history;function i(){var k=t.location,_=k.pathname,z=k.search,F=k.hash,U=s.state||{};return[U.idx,Je({pathname:_,search:z,hash:F,state:U.usr||null,key:U.key||"default"})]}var o=null;function a(){if(o)d.call(o),o=null;else{var k=ee.Pop,_=i(),z=_[0],F=_[1];if(d.length){if(z!=null){var U=c-z;U&&(o={action:k,location:F,retry:function(){A(U*-1)}},A(U))}}else E(k)}}t.addEventListener(Kt,a);var u=ee.Pop,f=i(),c=f[0],h=f[1],b=We(),d=We();c==null&&(c=0,s.replaceState(He({},s.state,{idx:c}),""));function p(k){return typeof k=="string"?k:Xt(k)}function w(k,_){return _===void 0&&(_=null),Je(He({pathname:h.pathname,hash:"",search:""},typeof k=="string"?Gt(k):k,{state:_,key:Qt()}))}function g(k,_){return[{usr:k.state,key:k.key,idx:_},p(k)]}function R(k,_,z){return!d.length||(d.call({action:k,location:_,retry:z}),!1)}function E(k){u=k;var _=i();c=_[0],h=_[1],b.call({action:u,location:h})}function T(k,_){var z=ee.Push,F=w(k,_);function U(){T(k,_)}if(R(z,F,U)){var j=g(F,c+1),H=j[0],q=j[1];try{s.pushState(H,"",q)}catch{t.location.assign(q)}E(z)}}function O(k,_){var z=ee.Replace,F=w(k,_);function U(){O(k,_)}if(R(z,F,U)){var j=g(F,c),H=j[0],q=j[1];s.replaceState(H,"",q),E(z)}}function A(k){s.go(k)}var C={get action(){return u},get location(){return h},createHref:p,push:T,replace:O,go:A,back:function(){A(-1)},forward:function(){A(1)},listen:function(_){return b.push(_)},block:function(_){var z=d.push(_);return d.length===1&&t.addEventListener(Ve,Ze),function(){z(),d.length||t.removeEventListener(Ve,Ze)}}};return C}function Ze(r){r.preventDefault(),r.returnValue=""}function We(){var r=[];return{get length(){return r.length},push:function(n){return r.push(n),function(){r=r.filter(function(t){return t!==n})}},call:function(n){r.forEach(function(t){return t&&t(n)})}}}function Qt(){return Math.random().toString(36).substr(2,8)}function Xt(r){var e=r.pathname,n=e===void 0?"/":e,t=r.search,s=t===void 0?"":t,i=r.hash,o=i===void 0?"":i;return s&&s!=="?"&&(n+=s.charAt(0)==="?"?s:"?"+s),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Gt(r){var e={};if(r){var n=r.indexOf("#");n>=0&&(e.hash=r.substr(n),r=r.substr(0,n));var t=r.indexOf("?");t>=0&&(e.search=r.substr(t),r=r.substr(0,t)),r&&(e.pathname=r)}return e}function bt(r,e){return function(){return r.apply(e,arguments)}}const{toString:Yt}=Object.prototype,{getPrototypeOf:Ne}=Object,{iterator:ke,toStringTag:wt}=Symbol,xe=(r=>e=>{const n=Yt.call(e);return r[n]||(r[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),M=r=>(r=r.toLowerCase(),e=>xe(e)===r),ye=r=>e=>typeof e===r,{isArray:ne}=Array,te=ye("undefined");function se(r){return r!==null&&!te(r)&&r.constructor!==null&&!te(r.constructor)&&B(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const kt=M("ArrayBuffer");function en(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&kt(r.buffer),e}const tn=ye("string"),B=ye("function"),xt=ye("number"),ie=r=>r!==null&&typeof r=="object",nn=r=>r===!0||r===!1,he=r=>{if(xe(r)!=="object")return!1;const e=Ne(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(wt in r)&&!(ke in r)},rn=r=>{if(!ie(r)||se(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},sn=M("Date"),on=M("File"),an=M("Blob"),ln=M("FileList"),cn=r=>ie(r)&&B(r.pipe),un=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||B(r.append)&&((e=xe(r))==="formdata"||e==="object"&&B(r.toString)&&r.toString()==="[object FormData]"))},fn=M("URLSearchParams"),[hn,pn,dn,gn]=["ReadableStream","Request","Response","Headers"].map(M),mn=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oe(r,e,{allOwnKeys:n=!1}={}){if(r===null||typeof r>"u")return;let t,s;if(typeof r!="object"&&(r=[r]),ne(r))for(t=0,s=r.length;t<s;t++)e.call(null,r[t],t,r);else{if(se(r))return;const i=n?Object.getOwnPropertyNames(r):Object.keys(r),o=i.length;let a;for(t=0;t<o;t++)a=i[t],e.call(null,r[a],a,r)}}function yt(r,e){if(se(r))return null;e=e.toLowerCase();const n=Object.keys(r);let t=n.length,s;for(;t-- >0;)if(s=n[t],e===s.toLowerCase())return s;return null}const K=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rt=r=>!te(r)&&r!==K;function $e(){const{caseless:r,skipUndefined:e}=Rt(this)&&this||{},n={},t=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=r&&yt(n,i)||i;he(n[o])&&he(s)?n[o]=$e(n[o],s):he(s)?n[o]=$e({},s):ne(s)?n[o]=s.slice():(!e||!te(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&oe(arguments[s],t);return n}const bn=(r,e,n,{allOwnKeys:t}={})=>(oe(e,(s,i)=>{n&&B(s)?Object.defineProperty(r,i,{value:bt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:t}),r),wn=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),kn=(r,e,n,t)=>{r.prototype=Object.create(e.prototype,t),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{value:e.prototype}),n&&Object.assign(r.prototype,n)},xn=(r,e,n,t)=>{let s,i,o;const a={};if(e=e||{},r==null)return e;do{for(s=Object.getOwnPropertyNames(r),i=s.length;i-- >0;)o=s[i],(!t||t(o,r,e))&&!a[o]&&(e[o]=r[o],a[o]=!0);r=n!==!1&&Ne(r)}while(r&&(!n||n(r,e))&&r!==Object.prototype);return e},yn=(r,e,n)=>{r=String(r),(n===void 0||n>r.length)&&(n=r.length),n-=e.length;const t=r.indexOf(e,n);return t!==-1&&t===n},Rn=r=>{if(!r)return null;if(ne(r))return r;let e=r.length;if(!xt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=r[e];return n},Sn=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&Ne(Uint8Array)),En=(r,e)=>{const t=(r&&r[ke]).call(r);let s;for(;(s=t.next())&&!s.done;){const i=s.value;e.call(r,i[0],i[1])}},_n=(r,e)=>{let n;const t=[];for(;(n=r.exec(e))!==null;)t.push(n);return t},Tn=M("HTMLFormElement"),An=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,t,s){return t.toUpperCase()+s}),Ke=(({hasOwnProperty:r})=>(e,n)=>r.call(e,n))(Object.prototype),On=M("RegExp"),St=(r,e)=>{const n=Object.getOwnPropertyDescriptors(r),t={};oe(n,(s,i)=>{let o;(o=e(s,i,r))!==!1&&(t[i]=o||s)}),Object.defineProperties(r,t)},$n=r=>{St(r,(e,n)=>{if(B(r)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const t=r[n];if(B(t)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Cn=(r,e)=>{const n={},t=s=>{s.forEach(i=>{n[i]=!0})};return ne(r)?t(r):t(String(r).split(e)),n},Pn=()=>{},zn=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function Nn(r){return!!(r&&B(r.append)&&r[wt]==="FormData"&&r[ke])}const Ln=r=>{const e=new Array(10),n=(t,s)=>{if(ie(t)){if(e.indexOf(t)>=0)return;if(se(t))return t;if(!("toJSON"in t)){e[s]=t;const i=ne(t)?[]:{};return oe(t,(o,a)=>{const u=n(o,s+1);!te(u)&&(i[a]=u)}),e[s]=void 0,i}}return t};return n(r,0)},Un=M("AsyncFunction"),Dn=r=>r&&(ie(r)||B(r))&&B(r.then)&&B(r.catch),Et=((r,e)=>r?setImmediate:e?((n,t)=>(K.addEventListener("message",({source:s,data:i})=>{s===K&&i===n&&t.length&&t.shift()()},!1),s=>{t.push(s),K.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",B(K.postMessage)),Bn=typeof queueMicrotask<"u"?queueMicrotask.bind(K):typeof process<"u"&&process.nextTick||Et,In=r=>r!=null&&B(r[ke]),l={isArray:ne,isArrayBuffer:kt,isBuffer:se,isFormData:un,isArrayBufferView:en,isString:tn,isNumber:xt,isBoolean:nn,isObject:ie,isPlainObject:he,isEmptyObject:rn,isReadableStream:hn,isRequest:pn,isResponse:dn,isHeaders:gn,isUndefined:te,isDate:sn,isFile:on,isBlob:an,isRegExp:On,isFunction:B,isStream:cn,isURLSearchParams:fn,isTypedArray:Sn,isFileList:ln,forEach:oe,merge:$e,extend:bn,trim:mn,stripBOM:wn,inherits:kn,toFlatObject:xn,kindOf:xe,kindOfTest:M,endsWith:yn,toArray:Rn,forEachEntry:En,matchAll:_n,isHTMLForm:Tn,hasOwnProperty:Ke,hasOwnProp:Ke,reduceDescriptors:St,freezeMethods:$n,toObjectSet:Cn,toCamelCase:An,noop:Pn,toFiniteNumber:zn,findKey:yt,global:K,isContextDefined:Rt,isSpecCompliantForm:Nn,toJSONObject:Ln,isAsyncFn:Un,isThenable:Dn,setImmediate:Et,asap:Bn,isIterable:In};let S=class _t extends Error{static from(e,n,t,s,i,o){const a=new _t(e.message,n||e.code,t,s,i);return a.cause=e,a.name=e.name,o&&Object.assign(a,o),a}constructor(e,n,t,s,i){super(e),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),t&&(this.config=t),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}};S.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";S.ERR_BAD_OPTION="ERR_BAD_OPTION";S.ECONNABORTED="ECONNABORTED";S.ETIMEDOUT="ETIMEDOUT";S.ERR_NETWORK="ERR_NETWORK";S.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";S.ERR_DEPRECATED="ERR_DEPRECATED";S.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";S.ERR_BAD_REQUEST="ERR_BAD_REQUEST";S.ERR_CANCELED="ERR_CANCELED";S.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";S.ERR_INVALID_URL="ERR_INVALID_URL";const Fn=null;function Ce(r){return l.isPlainObject(r)||l.isArray(r)}function Tt(r){return l.endsWith(r,"[]")?r.slice(0,-2):r}function Qe(r,e,n){return r?r.concat(e).map(function(s,i){return s=Tt(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function qn(r){return l.isArray(r)&&!r.some(Ce)}const vn=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function Re(r,e,n){if(!l.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,g){return!l.isUndefined(g[w])});const t=n.metaTokens,s=n.visitor||c,i=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(e);if(!l.isFunction(s))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(l.isDate(p))return p.toISOString();if(l.isBoolean(p))return p.toString();if(!u&&l.isBlob(p))throw new S("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(p)||l.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,w,g){let R=p;if(p&&!g&&typeof p=="object"){if(l.endsWith(w,"{}"))w=t?w:w.slice(0,-2),p=JSON.stringify(p);else if(l.isArray(p)&&qn(p)||(l.isFileList(p)||l.endsWith(w,"[]"))&&(R=l.toArray(p)))return w=Tt(w),R.forEach(function(T,O){!(l.isUndefined(T)||T===null)&&e.append(o===!0?Qe([w],O,i):o===null?w:w+"[]",f(T))}),!1}return Ce(p)?!0:(e.append(Qe(g,w,i),f(p)),!1)}const h=[],b=Object.assign(vn,{defaultVisitor:c,convertValue:f,isVisitable:Ce});function d(p,w){if(!l.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(p),l.forEach(p,function(R,E){(!(l.isUndefined(R)||R===null)&&s.call(e,R,l.isString(E)?E.trim():E,w,b))===!0&&d(R,w?w.concat(E):[E])}),h.pop()}}if(!l.isObject(r))throw new TypeError("data must be an object");return d(r),e}function Xe(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Le(r,e){this._pairs=[],r&&Re(r,this,e)}const At=Le.prototype;At.append=function(e,n){this._pairs.push([e,n])};At.toString=function(e){const n=e?function(t){return e.call(this,t,Xe)}:Xe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function jn(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ot(r,e,n){if(!e)return r;const t=n&&n.encode||jn,s=l.isFunction(n)?{serialize:n}:n,i=s&&s.serialize;let o;if(i?o=i(e,s):o=l.isURLSearchParams(e)?e.toString():new Le(e,s).toString(t),o){const a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+o}return r}class Ge{constructor(){this.handlers=[]}use(e,n,t){return this.handlers.push({fulfilled:e,rejected:n,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){l.forEach(this.handlers,function(t){t!==null&&e(t)})}}const Ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Mn=typeof URLSearchParams<"u"?URLSearchParams:Le,Hn=typeof FormData<"u"?FormData:null,Jn=typeof Blob<"u"?Blob:null,Vn={isBrowser:!0,classes:{URLSearchParams:Mn,FormData:Hn,Blob:Jn},protocols:["http","https","file","blob","url","data"]},De=typeof window<"u"&&typeof document<"u",Pe=typeof navigator=="object"&&navigator||void 0,Zn=De&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0),Wn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kn=De&&window.location.href||"http://localhost",Qn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:De,hasStandardBrowserEnv:Zn,hasStandardBrowserWebWorkerEnv:Wn,navigator:Pe,origin:Kn},Symbol.toStringTag,{value:"Module"})),L={...Qn,...Vn};function Xn(r,e){return Re(r,new L.classes.URLSearchParams,{visitor:function(n,t,s,i){return L.isNode&&l.isBuffer(n)?(this.append(t,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function Gn(r){return l.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Yn(r){const e={},n=Object.keys(r);let t;const s=n.length;let i;for(t=0;t<s;t++)i=n[t],e[i]=r[i];return e}function $t(r){function e(n,t,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=i>=n.length;return o=!o&&l.isArray(s)?s.length:o,u?(l.hasOwnProp(s,o)?s[o]=[s[o],t]:s[o]=t,!a):((!s[o]||!l.isObject(s[o]))&&(s[o]=[]),e(n,t,s[o],i)&&l.isArray(s[o])&&(s[o]=Yn(s[o])),!a)}if(l.isFormData(r)&&l.isFunction(r.entries)){const n={};return l.forEachEntry(r,(t,s)=>{e(Gn(t),s,n,0)}),n}return null}function er(r,e,n){if(l.isString(r))try{return(e||JSON.parse)(r),l.trim(r)}catch(t){if(t.name!=="SyntaxError")throw t}return(n||JSON.stringify)(r)}const ae={transitional:Ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const t=n.getContentType()||"",s=t.indexOf("application/json")>-1,i=l.isObject(e);if(i&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return s?JSON.stringify($t(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Xn(e,this.formSerializer).toString();if((a=l.isFileList(e))||t.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Re(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),er(e)):e}],transformResponse:[function(e){const n=this.transitional||ae.transitional,t=n&&n.forcedJSONParsing,s=this.responseType==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(t&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?S.from(a,S.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],r=>{ae.headers[r]={}});const tr=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nr=r=>{const e={};let n,t,s;return r&&r.split(`
  2. `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),t=o.substring(s+1).trim(),!(!n||e[n]&&tr[n])&&(n==="set-cookie"?e[n]?e[n].push(t):e[n]=[t]:e[n]=e[n]?e[n]+", "+t:t)}),e},Ye=Symbol("internals");function re(r){return r&&String(r).trim().toLowerCase()}function pe(r){return r===!1||r==null?r:l.isArray(r)?r.map(pe):String(r)}function rr(r){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=n.exec(r);)e[t[1]]=t[2];return e}const sr=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Te(r,e,n,t,s){if(l.isFunction(t))return t.call(this,e,n);if(s&&(e=n),!!l.isString(e)){if(l.isString(t))return e.indexOf(t)!==-1;if(l.isRegExp(t))return t.test(e)}}function ir(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,t)=>n.toUpperCase()+t)}function or(r,e){const n=l.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(r,t+n,{value:function(s,i,o){return this[t].call(this,e,s,i,o)},configurable:!0})})}let I=class{constructor(e){e&&this.set(e)}set(e,n,t){const s=this;function i(a,u,f){const c=re(u);if(!c)throw new Error("header name must be a non-empty string");const h=l.findKey(s,c);(!h||s[h]===void 0||f===!0||f===void 0&&s[h]!==!1)&&(s[h||u]=pe(a))}const o=(a,u)=>l.forEach(a,(f,c)=>i(f,c,u));if(l.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(l.isString(e)&&(e=e.trim())&&!sr(e))o(nr(e),n);else if(l.isObject(e)&&l.isIterable(e)){let a={},u,f;for(const c of e){if(!l.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[f=c[0]]=(u=a[f])?l.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}o(a,n)}else e!=null&&i(n,e,t);return this}get(e,n){if(e=re(e),e){const t=l.findKey(this,e);if(t){const s=this[t];if(!n)return s;if(n===!0)return rr(s);if(l.isFunction(n))return n.call(this,s,t);if(l.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=re(e),e){const t=l.findKey(this,e);return!!(t&&this[t]!==void 0&&(!n||Te(this,this[t],t,n)))}return!1}delete(e,n){const t=this;let s=!1;function i(o){if(o=re(o),o){const a=l.findKey(t,o);a&&(!n||Te(t,t[a],a,n))&&(delete t[a],s=!0)}}return l.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let t=n.length,s=!1;for(;t--;){const i=n[t];(!e||Te(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,t={};return l.forEach(this,(s,i)=>{const o=l.findKey(t,i);if(o){n[o]=pe(s),delete n[i];return}const a=e?ir(i):String(i).trim();a!==i&&delete n[i],n[a]=pe(s),t[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return l.forEach(this,(t,s)=>{t!=null&&t!==!1&&(n[s]=e&&l.isArray(t)?t.join(", "):t)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
  3. `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const t=new this(e);return n.forEach(s=>t.set(s)),t}static accessor(e){const t=(this[Ye]=this[Ye]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=re(o);t[a]||(or(s,o),t[a]=!0)}return l.isArray(e)?e.forEach(i):i(e),this}};I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.reduceDescriptors(I.prototype,({value:r},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(t){this[n]=t}}});l.freezeMethods(I);function Ae(r,e){const n=this||ae,t=e||n,s=I.from(t.headers);let i=t.data;return l.forEach(r,function(a){i=a.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function Ct(r){return!!(r&&r.__CANCEL__)}let le=class extends S{constructor(e,n,t){super(e??"canceled",S.ERR_CANCELED,n,t),this.name="CanceledError",this.__CANCEL__=!0}};function Pt(r,e,n){const t=n.config.validateStatus;!n.status||!t||t(n.status)?r(n):e(new S("Request failed with status code "+n.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ar(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function lr(r,e){r=r||10;const n=new Array(r),t=new Array(r);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(u){const f=Date.now(),c=t[i];o||(o=f),n[s]=u,t[s]=f;let h=i,b=0;for(;h!==s;)b+=n[h++],h=h%r;if(s=(s+1)%r,s===i&&(i=(i+1)%r),f-o<e)return;const d=c&&f-c;return d?Math.round(b*1e3/d):void 0}}function cr(r,e){let n=0,t=1e3/e,s,i;const o=(f,c=Date.now())=>{n=c,s=null,i&&(clearTimeout(i),i=null),r(...f)};return[(...f)=>{const c=Date.now(),h=c-n;h>=t?o(f,c):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},t-h)))},()=>s&&o(s)]}const me=(r,e,n=3)=>{let t=0;const s=lr(50,250);return cr(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,u=o-t,f=s(u),c=o<=a;t=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:f||void 0,estimated:f&&a&&c?(a-o)/f:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};r(h)},n)},et=(r,e)=>{const n=r!=null;return[t=>e[0]({lengthComputable:n,total:r,loaded:t}),e[1]]},tt=r=>(...e)=>l.asap(()=>r(...e)),ur=L.hasStandardBrowserEnv?((r,e)=>n=>(n=new URL(n,L.origin),r.protocol===n.protocol&&r.host===n.host&&(e||r.port===n.port)))(new URL(L.origin),L.navigator&&/(msie|trident)/i.test(L.navigator.userAgent)):()=>!0,fr=L.hasStandardBrowserEnv?{write(r,e,n,t,s,i,o){if(typeof document>"u")return;const a=[`${r}=${encodeURIComponent(e)}`];l.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),l.isString(t)&&a.push(`path=${t}`),l.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),l.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(r){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hr(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function pr(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function zt(r,e,n){let t=!hr(e);return r&&(t||n==!1)?pr(r,e):e}const nt=r=>r instanceof I?{...r}:r;function X(r,e){e=e||{};const n={};function t(f,c,h,b){return l.isPlainObject(f)&&l.isPlainObject(c)?l.merge.call({caseless:b},f,c):l.isPlainObject(c)?l.merge({},c):l.isArray(c)?c.slice():c}function s(f,c,h,b){if(l.isUndefined(c)){if(!l.isUndefined(f))return t(void 0,f,h,b)}else return t(f,c,h,b)}function i(f,c){if(!l.isUndefined(c))return t(void 0,c)}function o(f,c){if(l.isUndefined(c)){if(!l.isUndefined(f))return t(void 0,f)}else return t(void 0,c)}function a(f,c,h){if(h in e)return t(f,c);if(h in r)return t(void 0,f)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,c,h)=>s(nt(f),nt(c),h,!0)};return l.forEach(Object.keys({...r,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const h=l.hasOwnProp(u,c)?u[c]:s,b=h(r[c],e[c],c);l.isUndefined(b)&&h!==a||(n[c]=b)}),n}const Nt=r=>{const e=X({},r);let{data:n,withXSRFToken:t,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=e;if(e.headers=o=I.from(o),e.url=Ot(zt(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),l.isFormData(n)){if(L.hasStandardBrowserEnv||L.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(l.isFunction(n.getHeaders)){const u=n.getHeaders(),f=["content-type","content-length"];Object.entries(u).forEach(([c,h])=>{f.includes(c.toLowerCase())&&o.set(c,h)})}}if(L.hasStandardBrowserEnv&&(t&&l.isFunction(t)&&(t=t(e)),t||t!==!1&&ur(e.url))){const u=s&&i&&fr.read(i);u&&o.set(s,u)}return e},dr=typeof XMLHttpRequest<"u",gr=dr&&function(r){return new Promise(function(n,t){const s=Nt(r);let i=s.data;const o=I.from(s.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:f}=s,c,h,b,d,p;function w(){d&&d(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(c),s.signal&&s.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(s.method.toUpperCase(),s.url,!0),g.timeout=s.timeout;function R(){if(!g)return;const T=I.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),A={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:T,config:r,request:g};Pt(function(k){n(k),w()},function(k){t(k),w()},A),g=null}"onloadend"in g?g.onloadend=R:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(R)},g.onabort=function(){g&&(t(new S("Request aborted",S.ECONNABORTED,r,g)),g=null)},g.onerror=function(O){const A=O&&O.message?O.message:"Network Error",C=new S(A,S.ERR_NETWORK,r,g);C.event=O||null,t(C),g=null},g.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const A=s.transitional||Ue;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),t(new S(O,A.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,r,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&l.forEach(o.toJSON(),function(O,A){g.setRequestHeader(A,O)}),l.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),a&&a!=="json"&&(g.responseType=s.responseType),f&&([b,p]=me(f,!0),g.addEventListener("progress",b)),u&&g.upload&&([h,d]=me(u),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",d)),(s.cancelToken||s.signal)&&(c=T=>{g&&(t(!T||T.type?new le(null,r,g):T),g.abort(),g=null)},s.cancelToken&&s.cancelToken.subscribe(c),s.signal&&(s.signal.aborted?c():s.signal.addEventListener("abort",c)));const E=ar(s.url);if(E&&L.protocols.indexOf(E)===-1){t(new S("Unsupported protocol "+E+":",S.ERR_BAD_REQUEST,r));return}g.send(i||null)})},mr=(r,e)=>{const{length:n}=r=r?r.filter(Boolean):[];if(e||n){let t=new AbortController,s;const i=function(f){if(!s){s=!0,a();const c=f instanceof Error?f:this.reason;t.abort(c instanceof S?c:new le(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,i(new S(`timeout of ${e}ms exceeded`,S.ETIMEDOUT))},e);const a=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),r=null)};r.forEach(f=>f.addEventListener("abort",i));const{signal:u}=t;return u.unsubscribe=()=>l.asap(a),u}},br=function*(r,e){let n=r.byteLength;if(n<e){yield r;return}let t=0,s;for(;t<n;)s=t+e,yield r.slice(t,s),t=s},wr=async function*(r,e){for await(const n of kr(r))yield*br(n,e)},kr=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:n,value:t}=await e.read();if(n)break;yield t}}finally{await e.cancel()}},rt=(r,e,n,t)=>{const s=wr(r,e);let i=0,o,a=u=>{o||(o=!0,t&&t(u))};return new ReadableStream({async pull(u){try{const{done:f,value:c}=await s.next();if(f){a(),u.close();return}let h=c.byteLength;if(n){let b=i+=h;n(b)}u.enqueue(new Uint8Array(c))}catch(f){throw a(f),f}},cancel(u){return a(u),s.return()}},{highWaterMark:2})},st=64*1024,{isFunction:ue}=l,xr=(({Request:r,Response:e})=>({Request:r,Response:e}))(l.global),{ReadableStream:it,TextEncoder:ot}=l.global,at=(r,...e)=>{try{return!!r(...e)}catch{return!1}},yr=r=>{r=l.merge.call({skipUndefined:!0},xr,r);const{fetch:e,Request:n,Response:t}=r,s=e?ue(e):typeof fetch=="function",i=ue(n),o=ue(t);if(!s)return!1;const a=s&&ue(it),u=s&&(typeof ot=="function"?(p=>w=>p.encode(w))(new ot):async p=>new Uint8Array(await new n(p).arrayBuffer())),f=i&&a&&at(()=>{let p=!1;const w=new n(L.origin,{body:new it,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!w}),c=o&&a&&at(()=>l.isReadableStream(new t("").body)),h={stream:c&&(p=>p.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!h[p]&&(h[p]=(w,g)=>{let R=w&&w[p];if(R)return R.call(w);throw new S(`Response type '${p}' is not supported`,S.ERR_NOT_SUPPORT,g)})});const b=async p=>{if(p==null)return 0;if(l.isBlob(p))return p.size;if(l.isSpecCompliantForm(p))return(await new n(L.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(l.isArrayBufferView(p)||l.isArrayBuffer(p))return p.byteLength;if(l.isURLSearchParams(p)&&(p=p+""),l.isString(p))return(await u(p)).byteLength},d=async(p,w)=>{const g=l.toFiniteNumber(p.getContentLength());return g??b(w)};return async p=>{let{url:w,method:g,data:R,signal:E,cancelToken:T,timeout:O,onDownloadProgress:A,onUploadProgress:C,responseType:k,headers:_,withCredentials:z="same-origin",fetchOptions:F}=Nt(p),U=e||fetch;k=k?(k+"").toLowerCase():"text";let j=mr([E,T&&T.toAbortSignal()],O),H=null;const q=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let Ee;try{if(C&&f&&g!=="get"&&g!=="head"&&(Ee=await d(_,R))!==0){let V=new n(w,{method:"POST",body:R,duplex:"half"}),Y;if(l.isFormData(R)&&(Y=V.headers.get("content-type"))&&_.setContentType(Y),V.body){const[_e,ce]=et(Ee,me(tt(C)));R=rt(V.body,st,_e,ce)}}l.isString(z)||(z=z?"include":"omit");const D=i&&"credentials"in n.prototype,qe={...F,signal:j,method:g.toUpperCase(),headers:_.normalize().toJSON(),body:R,duplex:"half",credentials:D?z:void 0};H=i&&new n(w,qe);let J=await(i?U(H,F):U(w,qe));const ve=c&&(k==="stream"||k==="response");if(c&&(A||ve&&q)){const V={};["status","statusText","headers"].forEach(je=>{V[je]=J[je]});const Y=l.toFiniteNumber(J.headers.get("content-length")),[_e,ce]=A&&et(Y,me(tt(A),!0))||[];J=new t(rt(J.body,st,_e,()=>{ce&&ce(),q&&q()}),V)}k=k||"text";let Vt=await h[l.findKey(h,k)||"text"](J,p);return!ve&&q&&q(),await new Promise((V,Y)=>{Pt(V,Y,{data:Vt,headers:I.from(J.headers),status:J.status,statusText:J.statusText,config:p,request:H})})}catch(D){throw q&&q(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,p,H,D&&D.response),{cause:D.cause||D}):S.from(D,D&&D.code,p,H,D&&D.response)}}},Rr=new Map,Lt=r=>{let e=r&&r.env||{};const{fetch:n,Request:t,Response:s}=e,i=[t,s,n];let o=i.length,a=o,u,f,c=Rr;for(;a--;)u=i[a],f=c.get(u),f===void 0&&c.set(u,f=a?new Map:yr(e)),c=f;return f};Lt();const Be={http:Fn,xhr:gr,fetch:{get:Lt}};l.forEach(Be,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const lt=r=>`- ${r}`,Sr=r=>l.isFunction(r)||r===null||r===!1;function Er(r,e){r=l.isArray(r)?r:[r];const{length:n}=r;let t,s;const i={};for(let o=0;o<n;o++){t=r[o];let a;if(s=t,!Sr(t)&&(s=Be[(a=String(t)).toLowerCase()],s===void 0))throw new S(`Unknown adapter '${a}'`);if(s&&(l.isFunction(s)||(s=s.get(e))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
  4. `+o.map(lt).join(`
  5. `):" "+lt(o[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Ut={getAdapter:Er,adapters:Be};function Oe(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new le(null,r)}function ct(r){return Oe(r),r.headers=I.from(r.headers),r.data=Ae.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Ut.getAdapter(r.adapter||ae.adapter,r)(r).then(function(t){return Oe(r),t.data=Ae.call(r,r.transformResponse,t),t.headers=I.from(t.headers),t},function(t){return Ct(t)||(Oe(r),t&&t.response&&(t.response.data=Ae.call(r,r.transformResponse,t.response),t.response.headers=I.from(t.response.headers))),Promise.reject(t)})}const Dt="1.13.5",Se={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{Se[r]=function(t){return typeof t===r||"a"+(e<1?"n ":" ")+r}});const ut={};Se.transitional=function(e,n,t){function s(i,o){return"[Axios v"+Dt+"] Transitional option '"+i+"'"+o+(t?". "+t:"")}return(i,o,a)=>{if(e===!1)throw new S(s(o," has been removed"+(n?" in "+n:"")),S.ERR_DEPRECATED);return n&&!ut[o]&&(ut[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}};Se.spelling=function(e){return(n,t)=>(console.warn(`${t} is likely a misspelling of ${e}`),!0)};function _r(r,e,n){if(typeof r!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const t=Object.keys(r);let s=t.length;for(;s-- >0;){const i=t[s],o=e[i];if(o){const a=r[i],u=a===void 0||o(a,i,r);if(u!==!0)throw new S("option "+i+" must be "+u,S.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new S("Unknown option "+i,S.ERR_BAD_OPTION)}}const de={assertOptions:_r,validators:Se},v=de.validators;let Q=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ge,response:new Ge}}async request(e,n){try{return await this._request(e,n)}catch(t){if(t instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+=`
  6. `+i):t.stack=i}catch{}}throw t}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=X(this.defaults,n);const{transitional:t,paramsSerializer:s,headers:i}=n;t!==void 0&&de.assertOptions(t,{silentJSONParsing:v.transitional(v.boolean),forcedJSONParsing:v.transitional(v.boolean),clarifyTimeoutError:v.transitional(v.boolean),legacyInterceptorReqResOrdering:v.transitional(v.boolean)},!1),s!=null&&(l.isFunction(s)?n.paramsSerializer={serialize:s}:de.assertOptions(s,{encode:v.function,serialize:v.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),de.assertOptions(n,{baseUrl:v.spelling("baseURL"),withXsrfToken:v.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&l.merge(i.common,i[n.method]);i&&l.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=I.concat(o,i);const a=[];let u=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(n)===!1)return;u=u&&w.synchronous;const g=n.transitional||Ue;g&&g.legacyInterceptorReqResOrdering?a.unshift(w.fulfilled,w.rejected):a.push(w.fulfilled,w.rejected)});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let c,h=0,b;if(!u){const p=[ct.bind(this),void 0];for(p.unshift(...a),p.push(...f),b=p.length,c=Promise.resolve(n);h<b;)c=c.then(p[h++],p[h++]);return c}b=a.length;let d=n;for(;h<b;){const p=a[h++],w=a[h++];try{d=p(d)}catch(g){w.call(this,g);break}}try{c=ct.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,b=f.length;h<b;)c=c.then(f[h++],f[h++]);return c}getUri(e){e=X(this.defaults,e);const n=zt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ot(n,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){Q.prototype[e]=function(n,t){return this.request(X(t||{},{method:e,url:n,data:(t||{}).data}))}});l.forEach(["post","put","patch"],function(e){function n(t){return function(i,o,a){return this.request(X(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Q.prototype[e]=n(),Q.prototype[e+"Form"]=n(!0)});let Tr=class Bt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const t=this;this.promise.then(s=>{if(!t._listeners)return;let i=t._listeners.length;for(;i-- >0;)t._listeners[i](s);t._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{t.subscribe(a),i=a}).then(s);return o.cancel=function(){t.unsubscribe(i)},o},e(function(i,o,a){t.reason||(t.reason=new le(i,o,a),n(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=t=>{e.abort(t)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Bt(function(s){e=s}),cancel:e}}};function Ar(r){return function(n){return r.apply(null,n)}}function Or(r){return l.isObject(r)&&r.isAxiosError===!0}const ze={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ze).forEach(([r,e])=>{ze[e]=r});function It(r){const e=new Q(r),n=bt(Q.prototype.request,e);return l.extend(n,Q.prototype,e,{allOwnKeys:!0}),l.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return It(X(r,s))},n}const P=It(ae);P.Axios=Q;P.CanceledError=le;P.CancelToken=Tr;P.isCancel=Ct;P.VERSION=Dt;P.toFormData=Re;P.AxiosError=S;P.Cancel=P.CanceledError;P.all=function(e){return Promise.all(e)};P.spread=Ar;P.isAxiosError=Or;P.mergeConfig=X;P.AxiosHeaders=I;P.formToJSON=r=>$t(l.isHTMLForm(r)?new FormData(r):r);P.getAdapter=Ut.getAdapter;P.HttpStatusCode=ze;P.default=P;const{Axios:Gr,AxiosError:Yr,CanceledError:es,isCancel:ts,CancelToken:ns,VERSION:rs,all:ss,Cancel:is,isAxiosError:os,spread:as,toFormData:ls,AxiosHeaders:cs,HttpStatusCode:us,formToJSON:fs,getAdapter:hs,mergeConfig:ps}=P;function Ft(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let G=Ft();function $r(r){G=r}const qt=/[&<>"']/,Cr=new RegExp(qt.source,"g"),vt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Pr=new RegExp(vt.source,"g"),zr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ft=r=>zr[r];function N(r,e){if(e){if(qt.test(r))return r.replace(Cr,ft)}else if(vt.test(r))return r.replace(Pr,ft);return r}const Nr=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function jt(r){return r.replace(Nr,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Lr=/(^|[^\[])\^/g;function $(r,e){r=typeof r=="string"?r:r.source,e=e||"";const n={replace:(t,s)=>(s=s.source||s,s=s.replace(Lr,"$1"),r=r.replace(t,s),n),getRegex:()=>new RegExp(r,e)};return n}const Ur=/[^\w:]/g,Dr=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ht(r,e,n){if(r){let t;try{t=decodeURIComponent(jt(n)).replace(Ur,"").toLowerCase()}catch{return null}if(t.indexOf("javascript:")===0||t.indexOf("vbscript:")===0||t.indexOf("data:")===0)return null}e&&!Dr.test(n)&&(n=qr(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const fe={},Br=/^[^:]+:\/*[^/]*$/,Ir=/^([^:]+:)[\s\S]*$/,Fr=/^([^:]+:\/*[^/]*)[\s\S]*$/;function qr(r,e){fe[" "+r]||(Br.test(r)?fe[" "+r]=r+"/":fe[" "+r]=ge(r,"/",!0)),r=fe[" "+r];const n=r.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:r.replace(Ir,"$1")+e:e.charAt(0)==="/"?n?e:r.replace(Fr,"$1")+e:r+e}const be={exec:function(){}};function pt(r,e){const n=r.replace(/\|/g,(i,o,a)=>{let u=!1,f=o;for(;--f>=0&&a[f]==="\\";)u=!u;return u?"|":" |"}),t=n.split(/ \|/);let s=0;if(t[0].trim()||t.shift(),t.length>0&&!t[t.length-1].trim()&&t.pop(),t.length>e)t.splice(e);else for(;t.length<e;)t.push("");for(;s<t.length;s++)t[s]=t[s].trim().replace(/\\\|/g,"|");return t}function ge(r,e,n){const t=r.length;if(t===0)return"";let s=0;for(;s<t;){const i=r.charAt(t-s-1);if(i===e&&!n)s++;else if(i!==e&&n)s++;else break}return r.slice(0,t-s)}function vr(r,e){if(r.indexOf(e[1])===-1)return-1;const n=r.length;let t=0,s=0;for(;s<n;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])t++;else if(r[s]===e[1]&&(t--,t<0))return s;return-1}function jr(r){r&&r.sanitize&&!r.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 dt(r,e){if(e<1)return"";let n="";for(;e>1;)e&1&&(n+=r),e>>=1,r+=r;return n+r}function gt(r,e,n,t){const s=e.href,i=e.title?N(e.title):null,o=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){t.state.inLink=!0;const a={type:"link",raw:n,href:s,title:i,text:o,tokens:t.inlineTokens(o)};return t.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:i,text:N(o)}}function Mr(r,e){const n=r.match(/^(\s+)(?:```)/);if(n===null)return e;const t=n[1];return e.split(`
  7. `).map(s=>{const i=s.match(/^\s+/);if(i===null)return s;const[o]=i;return o.length>=t.length?s.slice(t.length):s}).join(`
  8. `)}class Ie{constructor(e){this.options=e||G}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const t=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?t:ge(t,`
  9. `)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const t=n[0],s=Mr(t,n[3]||"");return{type:"code",raw:t,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:s}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let t=n[2].trim();if(/#$/.test(t)){const s=ge(t,"#");(this.options.pedantic||!s||/ $/.test(s))&&(t=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const t=n[0].replace(/^ *>[ \t]?/gm,""),s=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(t);return this.lexer.state.top=s,{type:"blockquote",raw:n[0],tokens:i,text:t}}}list(e){let n=this.rules.block.list.exec(e);if(n){let t,s,i,o,a,u,f,c,h,b,d,p,w=n[1].trim();const g=w.length>1,R={type:"list",raw:"",ordered:g,start:g?+w.slice(0,-1):"",loose:!1,items:[]};w=g?`\\d{1,9}\\${w.slice(-1)}`:`\\${w}`,this.options.pedantic&&(w=g?w:"[*+-]");const E=new RegExp(`^( {0,3}${w})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,!(!(n=E.exec(e))||this.rules.block.hr.test(e)));){if(t=n[0],e=e.substring(t.length),c=n[2].split(`
  10. `,1)[0].replace(/^\t+/,O=>" ".repeat(3*O.length)),h=e.split(`
  11. `,1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=n[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=n[1].length),u=!1,!c&&/^ *$/.test(h)&&(t+=h+`
  12. `,e=e.substring(h.length+1),p=!0),!p){const O=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),A=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),C=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),k=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(b=e.split(`
  13. `,1)[0],h=b,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(C.test(h)||k.test(h)||O.test(h)||A.test(e)));){if(h.search(/[^ ]/)>=o||!h.trim())d+=`
  14. `+h.slice(o);else{if(u||c.search(/[^ ]/)>=4||C.test(c)||k.test(c)||A.test(c))break;d+=`
  15. `+h}!u&&!h.trim()&&(u=!0),t+=b+`
  16. `,e=e.substring(b.length+1),c=h.slice(o)}}R.loose||(f?R.loose=!0:/\n *\n *$/.test(t)&&(f=!0)),this.options.gfm&&(s=/^\[[ xX]\] /.exec(d),s&&(i=s[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),R.items.push({type:"list_item",raw:t,task:!!s,checked:i,loose:!1,text:d}),R.raw+=t}R.items[R.items.length-1].raw=t.trimRight(),R.items[R.items.length-1].text=d.trimRight(),R.raw=R.raw.trimRight();const T=R.items.length;for(a=0;a<T;a++)if(this.lexer.state.top=!1,R.items[a].tokens=this.lexer.blockTokens(R.items[a].text,[]),!R.loose){const O=R.items[a].tokens.filter(C=>C.type==="space"),A=O.length>0&&O.some(C=>/\n.*\n/.test(C.raw));R.loose=A}if(R.loose)for(a=0;a<T;a++)R.items[a].loose=!0;return R}}html(e){const n=this.rules.block.html.exec(e);if(n){const t={type:"html",raw:n[0],pre:!this.options.sanitizer&&(n[1]==="pre"||n[1]==="script"||n[1]==="style"),text:n[0]};if(this.options.sanitize){const s=this.options.sanitizer?this.options.sanitizer(n[0]):N(n[0]);t.type="paragraph",t.text=s,t.tokens=this.lexer.inline(s)}return t}}def(e){const n=this.rules.block.def.exec(e);if(n){const t=n[1].toLowerCase().replace(/\s+/g," "),s=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:t,raw:n[0],href:s,title:i}}}table(e){const n=this.rules.block.table.exec(e);if(n){const t={type:"table",header:pt(n[1]).map(s=>({text:s})),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
  17. `):[]};if(t.header.length===t.align.length){t.raw=n[0];let s=t.align.length,i,o,a,u;for(i=0;i<s;i++)/^ *-+: *$/.test(t.align[i])?t.align[i]="right":/^ *:-+: *$/.test(t.align[i])?t.align[i]="center":/^ *:-+ *$/.test(t.align[i])?t.align[i]="left":t.align[i]=null;for(s=t.rows.length,i=0;i<s;i++)t.rows[i]=pt(t.rows[i],t.header.length).map(f=>({text:f}));for(s=t.header.length,o=0;o<s;o++)t.header[o].tokens=this.lexer.inline(t.header[o].text);for(s=t.rows.length,o=0;o<s;o++)for(u=t.rows[o],a=0;a<u.length;a++)u[a].tokens=this.lexer.inline(u[a].text);return t}}}lheading(e){const n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){const n=this.rules.block.paragraph.exec(e);if(n){const t=n[1].charAt(n[1].length-1)===`
  18. `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:t,tokens:this.lexer.inline(t)}}}text(e){const n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){const n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:N(n[1])}}tag(e){const n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):N(n[0]):n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const t=n[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;const o=ge(t.slice(0,-1),"\\");if((t.length-o.length)%2===0)return}else{const o=vr(n[2],"()");if(o>-1){const u=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,u).trim(),n[3]=""}}let s=n[2],i="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);o&&(s=o[1],i=o[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(t)?s=s.slice(1):s=s.slice(1,-1)),gt(n,{href:s&&s.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(e,n){let t;if((t=this.rules.inline.reflink.exec(e))||(t=this.rules.inline.nolink.exec(e))){let s=(t[2]||t[1]).replace(/\s+/g," ");if(s=n[s.toLowerCase()],!s){const i=t[0].charAt(0);return{type:"text",raw:i,text:i}}return gt(t,s,t[0],this.lexer)}}emStrong(e,n,t=""){let s=this.rules.inline.emStrong.lDelim.exec(e);if(!s||s[3]&&t.match(/[\p{L}\p{N}]/u))return;const i=s[1]||s[2]||"";if(!i||i&&(t===""||this.rules.inline.punctuation.exec(t))){const o=s[0].length-1;let a,u,f=o,c=0;const h=s[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,n=n.slice(-1*e.length+o);(s=h.exec(n))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(u=a.length,s[3]||s[4]){f+=u;continue}else if((s[5]||s[6])&&o%3&&!((o+u)%3)){c+=u;continue}if(f-=u,f>0)continue;u=Math.min(u,u+f+c);const b=e.slice(0,o+s.index+(s[0].length-a.length)+u);if(Math.min(o,u)%2){const p=b.slice(1,-1);return{type:"em",raw:b,text:p,tokens:this.lexer.inlineTokens(p)}}const d=b.slice(2,-2);return{type:"strong",raw:b,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let t=n[2].replace(/\n/g," ");const s=/[^ ]/.test(t),i=/^ /.test(t)&&/ $/.test(t);return s&&i&&(t=t.substring(1,t.length-1)),t=N(t,!0),{type:"codespan",raw:n[0],text:t}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e,n){const t=this.rules.inline.autolink.exec(e);if(t){let s,i;return t[2]==="@"?(s=N(this.options.mangle?n(t[1]):t[1]),i="mailto:"+s):(s=N(t[1]),i=s),{type:"link",raw:t[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(e,n){let t;if(t=this.rules.inline.url.exec(e)){let s,i;if(t[2]==="@")s=N(this.options.mangle?n(t[0]):t[0]),i="mailto:"+s;else{let o;do o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])[0];while(o!==t[0]);s=N(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e,n){const t=this.rules.inline.text.exec(e);if(t){let s;return this.lexer.state.inRawBlock?s=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):N(t[0]):t[0]:s=N(this.options.smartypants?n(t[0]):t[0]),{type:"text",raw:t[0],text:s}}}}const x={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:be,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};x._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;x._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;x.def=$(x.def).replace("label",x._label).replace("title",x._title).getRegex();x.bullet=/(?:[*+-]|\d{1,9}[.)])/;x.listItemStart=$(/^( *)(bull) */).replace("bull",x.bullet).getRegex();x.list=$(x.list).replace(/bull/g,x.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+x.def.source+")").getRegex();x._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";x._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;x.html=$(x.html,"i").replace("comment",x._comment).replace("tag",x._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();x.paragraph=$(x._paragraph).replace("hr",x.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",x._tag).getRegex();x.blockquote=$(x.blockquote).replace("paragraph",x.paragraph).getRegex();x.normal={...x};x.gfm={...x.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};x.gfm.table=$(x.gfm.table).replace("hr",x.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",x._tag).getRegex();x.gfm.paragraph=$(x._paragraph).replace("hr",x.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",x.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",x._tag).getRegex();x.pedantic={...x.normal,html:$(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",x._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:be,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$(x.normal._paragraph).replace("hr",x.hr).replace("heading",` *#{1,6} *[^
  19. ]`).replace("lheading",x.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const m={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:be,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:be,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};m._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";m.punctuation=$(m.punctuation).replace(/punctuation/g,m._punctuation).getRegex();m.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;m.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;m._comment=$(x._comment).replace("(?:-->|$)","-->").getRegex();m.emStrong.lDelim=$(m.emStrong.lDelim).replace(/punct/g,m._punctuation).getRegex();m.emStrong.rDelimAst=$(m.emStrong.rDelimAst,"g").replace(/punct/g,m._punctuation).getRegex();m.emStrong.rDelimUnd=$(m.emStrong.rDelimUnd,"g").replace(/punct/g,m._punctuation).getRegex();m._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;m._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;m._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])?)+(?![-_])/;m.autolink=$(m.autolink).replace("scheme",m._scheme).replace("email",m._email).getRegex();m._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;m.tag=$(m.tag).replace("comment",m._comment).replace("attribute",m._attribute).getRegex();m._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;m._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;m._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;m.link=$(m.link).replace("label",m._label).replace("href",m._href).replace("title",m._title).getRegex();m.reflink=$(m.reflink).replace("label",m._label).replace("ref",x._label).getRegex();m.nolink=$(m.nolink).replace("ref",x._label).getRegex();m.reflinkSearch=$(m.reflinkSearch,"g").replace("reflink",m.reflink).replace("nolink",m.nolink).getRegex();m.normal={...m};m.pedantic={...m.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:$(/^!?\[(label)\]\((.*?)\)/).replace("label",m._label).getRegex(),reflink:$(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",m._label).getRegex()};m.gfm={...m.normal,escape:$(m.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.!#$%&'*+\/=?_`{\|}~-]+@)))/};m.gfm.url=$(m.gfm.url,"i").replace("email",m.gfm._extended_email).getRegex();m.breaks={...m.gfm,br:$(m.br).replace("{2,}","*").getRegex(),text:$(m.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function Hr(r){return r.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function mt(r){let e="",n,t;const s=r.length;for(n=0;n<s;n++)t=r.charCodeAt(n),Math.random()>.5&&(t="x"+t.toString(16)),e+="&#"+t+";";return e}class Z{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||G,this.options.tokenizer=this.options.tokenizer||new Ie,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 n={block:x.normal,inline:m.normal};this.options.pedantic?(n.block=x.pedantic,n.inline=m.pedantic):this.options.gfm&&(n.block=x.gfm,this.options.breaks?n.inline=m.breaks:n.inline=m.gfm),this.tokenizer.rules=n}static get rules(){return{block:x,inline:m}}static lex(e,n){return new Z(n).lex(e)}static lexInline(e,n){return new Z(n).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
  20. `),this.blockTokens(e,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(e,n=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(a,u,f)=>u+" ".repeat(f.length));let t,s,i,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(t=a.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))){if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length),t.raw.length===1&&n.length>0?n[n.length-1].raw+=`
  21. `:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
  22. `+t.raw,s.text+=`
  23. `+t.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
  24. `+t.raw,s.text+=`
  25. `+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title});continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const u=e.slice(1);let f;this.options.extensions.startBlock.forEach(function(c){f=c.call({lexer:this},u),typeof f=="number"&&f>=0&&(a=Math.min(a,f))}),a<1/0&&a>=0&&(i=e.substring(0,a+1))}if(this.state.top&&(t=this.tokenizer.paragraph(i))){s=n[n.length-1],o&&s.type==="paragraph"?(s.raw+=`
  26. `+t.raw,s.text+=`
  27. `+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(t),o=i.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
  28. `+t.raw,s.text+=`
  29. `+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(t);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let t,s,i,o=e,a,u,f;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+dt("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+dt("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(o))!=null;)o=o.slice(0,a.index+a[0].length-2)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(u||(f=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(t=c.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))){if(t=this.tokenizer.escape(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.tag(e)){e=e.substring(t.raw.length),s=n[n.length-1],s&&t.type==="text"&&s.type==="text"?(s.raw+=t.raw,s.text+=t.text):n.push(t);continue}if(t=this.tokenizer.link(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length),s=n[n.length-1],s&&t.type==="text"&&s.type==="text"?(s.raw+=t.raw,s.text+=t.text):n.push(t);continue}if(t=this.tokenizer.emStrong(e,o,f)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.codespan(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.br(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.del(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.autolink(e,mt)){e=e.substring(t.raw.length),n.push(t);continue}if(!this.state.inLink&&(t=this.tokenizer.url(e,mt))){e=e.substring(t.raw.length),n.push(t);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const h=e.slice(1);let b;this.options.extensions.startInline.forEach(function(d){b=d.call({lexer:this},h),typeof b=="number"&&b>=0&&(c=Math.min(c,b))}),c<1/0&&c>=0&&(i=e.substring(0,c+1))}if(t=this.tokenizer.inlineText(i,Hr)){e=e.substring(t.raw.length),t.raw.slice(-1)!=="_"&&(f=t.raw.slice(-1)),u=!0,s=n[n.length-1],s&&s.type==="text"?(s.raw+=t.raw,s.text+=t.text):n.push(t);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class Fe{constructor(e){this.options=e||G}code(e,n,t){const s=(n||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(e,s);i!=null&&i!==e&&(t=!0,e=i)}return e=e.replace(/\n$/,"")+`
  30. `,s?'<pre><code class="'+this.options.langPrefix+N(s)+'">'+(t?e:N(e,!0))+`</code></pre>
  31. `:"<pre><code>"+(t?e:N(e,!0))+`</code></pre>
  32. `}blockquote(e){return`<blockquote>
  33. ${e}</blockquote>
  34. `}html(e){return e}heading(e,n,t,s){if(this.options.headerIds){const i=this.options.headerPrefix+s.slug(t);return`<h${n} id="${i}">${e}</h${n}>
  35. `}return`<h${n}>${e}</h${n}>
  36. `}hr(){return this.options.xhtml?`<hr/>
  37. `:`<hr>
  38. `}list(e,n,t){const s=n?"ol":"ul",i=n&&t!==1?' start="'+t+'"':"";return"<"+s+i+`>
  39. `+e+"</"+s+`>
  40. `}listitem(e){return`<li>${e}</li>
  41. `}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
  42. `}table(e,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
  43. <thead>
  44. `+e+`</thead>
  45. `+n+`</table>
  46. `}tablerow(e){return`<tr>
  47. ${e}</tr>
  48. `}tablecell(e,n){const t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+`</${t}>
  49. `}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,n,t){if(e=ht(this.options.sanitize,this.options.baseUrl,e),e===null)return t;let s='<a href="'+e+'"';return n&&(s+=' title="'+n+'"'),s+=">"+t+"</a>",s}image(e,n,t){if(e=ht(this.options.sanitize,this.options.baseUrl,e),e===null)return t;let s=`<img src="${e}" alt="${t}"`;return n&&(s+=` title="${n}"`),s+=this.options.xhtml?"/>":">",s}text(e){return e}}class Mt{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,n,t){return""+t}image(e,n,t){return""+t}br(){return""}}class Ht{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,n){let t=e,s=0;if(this.seen.hasOwnProperty(t)){s=this.seen[e];do s++,t=e+"-"+s;while(this.seen.hasOwnProperty(t))}return n||(this.seen[e]=s,this.seen[t]=0),t}slug(e,n={}){const t=this.serialize(e);return this.getNextSafeSlug(t,n.dryrun)}}class W{constructor(e){this.options=e||G,this.options.renderer=this.options.renderer||new Fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Mt,this.slugger=new Ht}static parse(e,n){return new W(n).parse(e)}static parseInline(e,n){return new W(n).parseInline(e)}parse(e,n=!0){let t="",s,i,o,a,u,f,c,h,b,d,p,w,g,R,E,T,O,A,C;const k=e.length;for(s=0;s<k;s++){if(d=e[s],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(C=this.options.extensions.renderers[d.type].call({parser:this},d),C!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type))){t+=C||"";continue}switch(d.type){case"space":continue;case"hr":{t+=this.renderer.hr();continue}case"heading":{t+=this.renderer.heading(this.parseInline(d.tokens),d.depth,jt(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue}case"code":{t+=this.renderer.code(d.text,d.lang,d.escaped);continue}case"table":{for(h="",c="",a=d.header.length,i=0;i<a;i++)c+=this.renderer.tablecell(this.parseInline(d.header[i].tokens),{header:!0,align:d.align[i]});for(h+=this.renderer.tablerow(c),b="",a=d.rows.length,i=0;i<a;i++){for(f=d.rows[i],c="",u=f.length,o=0;o<u;o++)c+=this.renderer.tablecell(this.parseInline(f[o].tokens),{header:!1,align:d.align[o]});b+=this.renderer.tablerow(c)}t+=this.renderer.table(h,b);continue}case"blockquote":{b=this.parse(d.tokens),t+=this.renderer.blockquote(b);continue}case"list":{for(p=d.ordered,w=d.start,g=d.loose,a=d.items.length,b="",i=0;i<a;i++)E=d.items[i],T=E.checked,O=E.task,R="",E.task&&(A=this.renderer.checkbox(T),g?E.tokens.length>0&&E.tokens[0].type==="paragraph"?(E.tokens[0].text=A+" "+E.tokens[0].text,E.tokens[0].tokens&&E.tokens[0].tokens.length>0&&E.tokens[0].tokens[0].type==="text"&&(E.tokens[0].tokens[0].text=A+" "+E.tokens[0].tokens[0].text)):E.tokens.unshift({type:"text",text:A}):R+=A),R+=this.parse(E.tokens,g),b+=this.renderer.listitem(R,O,T);t+=this.renderer.list(b,p,w);continue}case"html":{t+=this.renderer.html(d.text);continue}case"paragraph":{t+=this.renderer.paragraph(this.parseInline(d.tokens));continue}case"text":{for(b=d.tokens?this.parseInline(d.tokens):d.text;s+1<k&&e[s+1].type==="text";)d=e[++s],b+=`
  50. `+(d.tokens?this.parseInline(d.tokens):d.text);t+=n?this.renderer.paragraph(b):b;continue}default:{const _='Token with "'+d.type+'" type was not found.';if(this.options.silent){console.error(_);return}else throw new Error(_)}}}return t}parseInline(e,n){n=n||this.renderer;let t="",s,i,o;const a=e.length;for(s=0;s<a;s++){if(i=e[s],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(o=this.options.extensions.renderers[i.type].call({parser:this},i),o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){t+=o||"";continue}switch(i.type){case"escape":{t+=n.text(i.text);break}case"html":{t+=n.html(i.text);break}case"link":{t+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break}case"image":{t+=n.image(i.href,i.title,i.text);break}case"strong":{t+=n.strong(this.parseInline(i.tokens,n));break}case"em":{t+=n.em(this.parseInline(i.tokens,n));break}case"codespan":{t+=n.codespan(i.text);break}case"br":{t+=n.br();break}case"del":{t+=n.del(this.parseInline(i.tokens,n));break}case"text":{t+=n.text(i.text);break}default:{const u='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(u);return}else throw new Error(u)}}}return t}}class we{constructor(e){this.options=e||G}preprocess(e){return e}postprocess(e){return e}}Me(we,"passThroughHooks",new Set(["preprocess","postprocess"]));function Jr(r,e,n){return t=>{if(t.message+=`
  51. Please report this to https://github.com/markedjs/marked.`,r){const s="<p>An error occurred:</p><pre>"+N(t.message+"",!0)+"</pre>";if(e)return Promise.resolve(s);if(n){n(null,s);return}return s}if(e)return Promise.reject(t);if(n){n(t);return}throw t}}function Jt(r,e){return(n,t,s)=>{typeof t=="function"&&(s=t,t=null);const i={...t};t={...y.defaults,...i};const o=Jr(t.silent,t.async,s);if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(jr(t),t.hooks&&(t.hooks.options=t),s){const a=t.highlight;let u;try{t.hooks&&(n=t.hooks.preprocess(n)),u=r(n,t)}catch(h){return o(h)}const f=function(h){let b;if(!h)try{t.walkTokens&&y.walkTokens(u,t.walkTokens),b=e(u,t),t.hooks&&(b=t.hooks.postprocess(b))}catch(d){h=d}return t.highlight=a,h?o(h):s(null,b)};if(!a||a.length<3||(delete t.highlight,!u.length))return f();let c=0;y.walkTokens(u,function(h){h.type==="code"&&(c++,setTimeout(()=>{a(h.text,h.lang,function(b,d){if(b)return f(b);d!=null&&d!==h.text&&(h.text=d,h.escaped=!0),c--,c===0&&f()})},0))}),c===0&&f();return}if(t.async)return Promise.resolve(t.hooks?t.hooks.preprocess(n):n).then(a=>r(a,t)).then(a=>t.walkTokens?Promise.all(y.walkTokens(a,t.walkTokens)).then(()=>a):a).then(a=>e(a,t)).then(a=>t.hooks?t.hooks.postprocess(a):a).catch(o);try{t.hooks&&(n=t.hooks.preprocess(n));const a=r(n,t);t.walkTokens&&y.walkTokens(a,t.walkTokens);let u=e(a,t);return t.hooks&&(u=t.hooks.postprocess(u)),u}catch(a){return o(a)}}}function y(r,e,n){return Jt(Z.lex,W.parse)(r,e,n)}y.options=y.setOptions=function(r){return y.defaults={...y.defaults,...r},$r(y.defaults),y};y.getDefaults=Ft;y.defaults=G;y.use=function(...r){const e=y.defaults.extensions||{renderers:{},childTokens:{}};r.forEach(n=>{const t={...n};if(t.async=y.defaults.async||t.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const i=e.renderers[s.name];i?e.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=i.apply(this,o)),a}:e.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[s.level]?e[s.level].unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),t.extensions=e),n.renderer){const s=y.defaults.renderer||new Fe;for(const i in n.renderer){const o=s[i];s[i]=(...a)=>{let u=n.renderer[i].apply(s,a);return u===!1&&(u=o.apply(s,a)),u}}t.renderer=s}if(n.tokenizer){const s=y.defaults.tokenizer||new Ie;for(const i in n.tokenizer){const o=s[i];s[i]=(...a)=>{let u=n.tokenizer[i].apply(s,a);return u===!1&&(u=o.apply(s,a)),u}}t.tokenizer=s}if(n.hooks){const s=y.defaults.hooks||new we;for(const i in n.hooks){const o=s[i];we.passThroughHooks.has(i)?s[i]=a=>{if(y.defaults.async)return Promise.resolve(n.hooks[i].call(s,a)).then(f=>o.call(s,f));const u=n.hooks[i].call(s,a);return o.call(s,u)}:s[i]=(...a)=>{let u=n.hooks[i].apply(s,a);return u===!1&&(u=o.apply(s,a)),u}}t.hooks=s}if(n.walkTokens){const s=y.defaults.walkTokens;t.walkTokens=function(i){let o=[];return o.push(n.walkTokens.call(this,i)),s&&(o=o.concat(s.call(this,i))),o}}y.setOptions(t)})};y.walkTokens=function(r,e){let n=[];for(const t of r)switch(n=n.concat(e.call(y,t)),t.type){case"table":{for(const s of t.header)n=n.concat(y.walkTokens(s.tokens,e));for(const s of t.rows)for(const i of s)n=n.concat(y.walkTokens(i.tokens,e));break}case"list":{n=n.concat(y.walkTokens(t.items,e));break}default:y.defaults.extensions&&y.defaults.extensions.childTokens&&y.defaults.extensions.childTokens[t.type]?y.defaults.extensions.childTokens[t.type].forEach(function(s){n=n.concat(y.walkTokens(t[s],e))}):t.tokens&&(n=n.concat(y.walkTokens(t.tokens,e)))}return n};y.parseInline=Jt(Z.lexInline,W.parseInline);y.Parser=W;y.parser=W.parse;y.Renderer=Fe;y.TextRenderer=Mt;y.Lexer=Z;y.lexer=Z.lex;y.Tokenizer=Ie;y.Slugger=Ht;y.Hooks=we;y.parse=y;y.options;y.setOptions;y.use;y.walkTokens;y.parseInline;W.parse;Z.lex;export{P as a,Wr as c,y as m};