@skaldapp/runtime 3.0.25 → 3.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{g as getAugmentedNamespace,a as getDefaultExportFromCjs}from"./ajv-EW6k27gv.js";import{i as isSpace}from"./markdown-I8FIHdDk.js";import{r as renderToString,P as ParseError}from"./katex-v7CqoiPP.js";const attr_name="[a-zA-Z_:@][a-zA-Z0-9:._-]*",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"),HTML_SELF_CLOSING_TAG_RE=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/>"),HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+attribute+"*\\s*>.*<\\/\\1\\s*>"),TAGS_BLOCK=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],TAGS_INLINE=["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],TAGS_VUE_RESERVED=["template","component","transition","transition-group","keep-alive","slot","teleport"],createHtmlSequences=({blockTags:e,inlineTags:t})=>{const r=[...e,...TAGS_BLOCK],n=[...t,...TAGS_INLINE.filter(e=>!TAGS_VUE_RESERVED.includes(e))];return[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp("^</?(?!("+n.join("|")+")(?![\\w-]))[A-Za-z][A-Za-z0-9\\-]*(?=(\\s|/?>|$))"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]]},createHtmlBlockRule=e=>{const t=createHtmlSequences(e);return(e,r,n,i)=>{let o,s,a,u=e.bMarks[r]+e.tShift[r],l=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(u))return!1;for(a=e.src.slice(u,l),o=0;o<t.length&&!t[o][0].test(a);o++);if(o===t.length)return!1;if(i)return t[o][2];if(6===o){const t=a.match(HTML_SELF_CLOSING_TAG_RE)??a.match(HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE);if(t){e.line=r+1;let n=e.push("html_inline","",0);return n.content=t[0],n.map=[r,e.line],n=e.push("inline","",0),n.content=a.slice(t[0].length),n.map=[r,e.line],n.children=[],!0}}if(s=r+1,!t[o][1].test(a))for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(u=e.bMarks[s]+e.tShift[s],l=e.eMarks[s],a=e.src.slice(u,l),t[o][1].test(a)){0!==a.length&&s++;break}e.line=s;const c=e.push("html_block","",0);return c.map=[r,s],c.content=e.getLines(r,s,e.blkIndent,!0),!0}},isLetter=e=>{const t=32|e;return t>=97&&t<=122},htmlInlineRule=(e,t)=>{const{pos:r}=e;if(!e.md.options.html)return!1;const n=e.posMax;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!isLetter(i))return!1;const o=e.src.slice(r).match(HTML_TAG_RE);if(!o)return!1;if(!t){e.push("html_inline","",0).content=e.src.slice(r,r+o[0].length)}return e.pos+=o[0].length,!0},componentPlugin=(e,{blockTags:t=[],inlineTags:r=[]}={})=>{const n=createHtmlBlockRule({blockTags:t,inlineTags:r});e.block.ruler.at("html_block",n,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",htmlInlineRule)},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var kindOf,hasRequiredKindOf,isExtendable,hasRequiredIsExtendable,extendShallow,hasRequiredExtendShallow,sectionMatter,hasRequiredSectionMatter;function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var e=Object.prototype.toString;function t(e){return"function"==typeof e.constructor?e.constructor.name:null}return kindOf=function(r){if(void 0===r)return"undefined";if(null===r)return"null";var n=typeof r;if("boolean"===n)return"boolean";if("string"===n)return"string";if("number"===n)return"number";if("symbol"===n)return"symbol";if("function"===n)return"GeneratorFunction"===t(r)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(r))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(r))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(r))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(r))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(r))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(r))return"regexp";switch(t(r)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(r))return"generator";switch(n=e.call(r)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}}function requireIsExtendable(){return hasRequiredIsExtendable?isExtendable:(hasRequiredIsExtendable=1,isExtendable=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)})}function requireExtendShallow(){if(hasRequiredExtendShallow)return extendShallow;hasRequiredExtendShallow=1;var e=requireIsExtendable();function t(e,t){for(var n in t)r(t,n)&&(e[n]=t[n])}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}return extendShallow=function(r){e(r)||(r={});for(var n=arguments.length,i=1;i<n;i++){var o=arguments[i];e(o)&&t(r,o)}return r},extendShallow}function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var e=requireKindOf(),t=requireExtendShallow();function r(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function n(e){return e}return sectionMatter=function(i,o){"function"==typeof o&&(o={parse:o});var s=function(t){"object"!==e(t)&&(t={content:t});if("string"!=typeof t.content&&!function(e){if(e&&e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(t.content))throw new TypeError("expected a buffer or string");return t.content=t.content.toString(),t.sections=[],t}(i),a=t({},{section_delimiter:"---",parse:n},o),u=a.section_delimiter,l=s.content.split(/\r?\n/),c=null,f={key:"",data:"",content:""},p=[],h=[];function d(e){s.content=e,c=[],p=[]}function g(e){h.length&&(f.key=function(e,t){return e?e.slice(t.length).trim():""}(h[0],u),f.content=e,a.parse(f,c),c.push(f),f={key:"",data:"",content:""},p=[],h=[])}for(var m=0;m<l.length;m++){var y=l[m],b=h.length,k=y.trim();if(r(k,u)){if(3===k.length&&0!==m){if(0===b||2===b){p.push(y);continue}h.push(k),f.data=p.join("\n"),p=[];continue}null===c&&d(p.join("\n")),2===b&&g(p.join("\n")),h.push(k)}else p.push(y)}return null===c?d(p.join("\n")):g(p.join("\n")),s.sections=c,s}}var engines={exports:{}},jsYaml$1={},loader={},common={},hasRequiredCommon,exception,hasRequiredException,mark,hasRequiredMark,type,hasRequiredType,schema,hasRequiredSchema,str,hasRequiredStr,seq,hasRequiredSeq,map,hasRequiredMap,failsafe,hasRequiredFailsafe,_null,hasRequired_null,bool,hasRequiredBool,int,hasRequiredInt,float,hasRequiredFloat,json,hasRequiredJson,core,hasRequiredCore,timestamp,hasRequiredTimestamp,merge,hasRequiredMerge,binary,hasRequiredBinary,omap,hasRequiredOmap,pairs,hasRequiredPairs,set,hasRequiredSet,default_safe,hasRequiredDefault_safe,_undefined,hasRequired_undefined,regexp,hasRequiredRegexp,_function,hasRequired_function,default_full,hasRequiredDefault_full,hasRequiredLoader;function requireCommon(){if(hasRequiredCommon)return common;function e(e){return null==e}return hasRequiredCommon=1,common.isNothing=e,common.isObject=function(e){return"object"==typeof e&&null!==e},common.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},common.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},common.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},common.extend=function(e,t){var r,n,i,o;if(t)for(r=0,n=(o=Object.keys(t)).length;r<n;r+=1)e[i=o[r]]=t[i];return e},common}function requireException(){if(hasRequiredException)return exception;function e(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return hasRequiredException=1,e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},exception=e}function requireMark(){if(hasRequiredMark)return mark;hasRequiredMark=1;var e=requireCommon();function t(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}return t.prototype.getSnippet=function(t,r){var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(s));)if((s+=1)-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),e.repeat(" ",t)+n+a+o+"\n"+e.repeat(" ",t+this.position-i+n.length)+"^"},t.prototype.toString=function(e){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(r+=":\n"+t),r},mark=t}function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var e=requireException(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];return type=function(n,i){var o,s;if(i=i||{},Object.keys(i).forEach(function(r){if(-1===t.indexOf(r))throw new e('Unknown option "'+r+'" is met in definition of "'+n+'" YAML type.')}),this.tag=n,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(e){return e},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.defaultStyle=i.defaultStyle||null,this.styleAliases=(o=i.styleAliases||null,s={},null!==o&&Object.keys(o).forEach(function(e){o[e].forEach(function(t){s[String(t)]=e})}),s),-1===r.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}}function requireSchema(){if(hasRequiredSchema)return schema;hasRequiredSchema=1;var e=requireCommon(),t=requireException(),r=requireType();function n(e,t,r){var i=[];return e.include.forEach(function(e){r=n(e,t,r)}),e[t].forEach(function(e){r.forEach(function(t,r){t.tag===e.tag&&t.kind===e.kind&&i.push(r)}),r.push(e)}),r.filter(function(e,t){return-1===i.indexOf(t)})}function i(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}return i.DEFAULT=null,i.create=function(){var n,o;switch(arguments.length){case 1:n=i.DEFAULT,o=arguments[0];break;case 2:n=arguments[0],o=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(n=e.toArray(n),o=e.toArray(o),!n.every(function(e){return e instanceof i}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!o.every(function(e){return e instanceof r}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new i({include:n,explicit:o})},schema=i}function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var e=requireType();return str=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function requireSeq(){if(hasRequiredSeq)return seq;hasRequiredSeq=1;var e=requireType();return seq=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function requireMap(){if(hasRequiredMap)return map;hasRequiredMap=1;var e=requireType();return map=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var e=requireSchema();return failsafe=new e({explicit:[requireStr(),requireSeq(),requireMap()]})}function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var e=requireType();return _null=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})}function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var e=requireType();return bool=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})}function requireInt(){if(hasRequiredInt)return int;hasRequiredInt=1;var e=requireCommon(),t=requireType();function r(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function n(e){return 48<=e&&e<=55}function i(e){return 48<=e&&e<=57}return int=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,o=e.length,s=0,a=!1;if(!o)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===o)return!0;if("b"===(t=e[++s])){for(s++;s<o;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;a=!0}return a&&"_"!==t}if("x"===t){for(s++;s<o;s++)if("_"!==(t=e[s])){if(!r(e.charCodeAt(s)))return!1;a=!0}return a&&"_"!==t}for(;s<o;s++)if("_"!==(t=e[s])){if(!n(e.charCodeAt(s)))return!1;a=!0}return a&&"_"!==t}if("_"===t)return!1;for(;s<o;s++)if("_"!==(t=e[s])){if(":"===t)break;if(!i(e.charCodeAt(s)))return!1;a=!0}return!(!a||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(s)))},construct:function(e){var t,r,n=e,i=1,o=[];return-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n?0:"0"===t?"b"===n[1]?i*parseInt(n.slice(2),2):"x"===n[1]?i*parseInt(n,16):i*parseInt(n,8):-1!==n.indexOf(":")?(n.split(":").forEach(function(e){o.unshift(parseInt(e,10))}),n=0,r=1,o.forEach(function(e){n+=e*r,r*=60}),i*n):i*parseInt(n,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1;var e=requireCommon(),t=requireType(),r=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var n=/^[-+]?[0-9]+e/;return float=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!r.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r,n,i;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),t=0,n=1,i.forEach(function(e){t+=e*n,n*=60}),r*t):r*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,r){var i;if(isNaN(t))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";return i=t.toString(10),n.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"})}function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var e=requireSchema();return json=new e({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]})}function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var e=requireSchema();return core=new e({include:[requireJson()]})}function requireTimestamp(){if(hasRequiredTimestamp)return timestamp;hasRequiredTimestamp=1;var e=requireType(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return timestamp=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==r.exec(e))},construct:function(e){var n,i,o,s,a,u,l,c,f=0,p=null;if(null===(n=t.exec(e))&&(n=r.exec(e)),null===n)throw new Error("Date resolve error");if(i=+n[1],o=+n[2]-1,s=+n[3],!n[4])return new Date(Date.UTC(i,o,s));if(a=+n[4],u=+n[5],l=+n[6],n[7]){for(f=n[7].slice(0,3);f.length<3;)f+="0";f=+f}return n[9]&&(p=6e4*(60*+n[10]+ +(n[11]||0)),"-"===n[9]&&(p=-p)),c=new Date(Date.UTC(i,o,s,a,u,l,f)),p&&c.setTime(c.getTime()-p),c},instanceOf:Date,represent:function(e){return e.toISOString()}})}function requireMerge(){if(hasRequiredMerge)return merge;hasRequiredMerge=1;var e=requireType();return merge=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function requireBinary(){if(hasRequiredBinary)return binary;var e;hasRequiredBinary=1;try{e=commonjsRequire("buffer").Buffer}catch(n){}var t=requireType(),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return binary=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,o=e.length,s=r;for(n=0;n<o;n++)if(!((t=s.indexOf(e.charAt(n)))>64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(t){var n,i,o=t.replace(/[\r\n=]/g,""),s=o.length,a=r,u=0,l=[];for(n=0;n<s;n++)n%4==0&&n&&(l.push(u>>16&255),l.push(u>>8&255),l.push(255&u)),u=u<<6|a.indexOf(o.charAt(n));return 0===(i=s%4*6)?(l.push(u>>16&255),l.push(u>>8&255),l.push(255&u)):18===i?(l.push(u>>10&255),l.push(u>>2&255)):12===i&&l.push(u>>4&255),e?e.from?e.from(l):new e(l):l},predicate:function(t){return e&&e.isBuffer(t)},represent:function(e){var t,n,i="",o=0,s=e.length,a=r;for(t=0;t<s;t++)t%3==0&&t&&(i+=a[o>>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]),o=(o<<8)+e[t];return 0===(n=s%3)?(i+=a[o>>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]):2===n?(i+=a[o>>10&63],i+=a[o>>4&63],i+=a[o<<2&63],i+=a[64]):1===n&&(i+=a[o>>2&63],i+=a[o<<4&63],i+=a[64],i+=a[64]),i}})}function requireOmap(){if(hasRequiredOmap)return omap;hasRequiredOmap=1;var e=requireType(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return omap=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var n,i,o,s,a,u=[],l=e;for(n=0,i=l.length;n<i;n+=1){if(o=l[n],a=!1,"[object Object]"!==r.call(o))return!1;for(s in o)if(t.call(o,s)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==u.indexOf(s))return!1;u.push(s)}return!0},construct:function(e){return null!==e?e:[]}})}function requirePairs(){if(hasRequiredPairs)return pairs;hasRequiredPairs=1;var e=requireType(),t=Object.prototype.toString;return pairs=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var r,n,i,o,s,a=e;for(s=new Array(a.length),r=0,n=a.length;r<n;r+=1){if(i=a[r],"[object Object]"!==t.call(i))return!1;if(1!==(o=Object.keys(i)).length)return!1;s[r]=[o[0],i[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}})}function requireSet(){if(hasRequiredSet)return set;hasRequiredSet=1;var e=requireType(),t=Object.prototype.hasOwnProperty;return set=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var r,n=e;for(r in n)if(t.call(n,r)&&null!==n[r])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function requireDefault_safe(){if(hasRequiredDefault_safe)return default_safe;hasRequiredDefault_safe=1;var e=requireSchema();return default_safe=new e({include:[requireCore()],implicit:[requireTimestamp(),requireMerge()],explicit:[requireBinary(),requireOmap(),requirePairs(),requireSet()]})}function require_undefined(){if(hasRequired_undefined)return _undefined;hasRequired_undefined=1;var e=requireType();return _undefined=new e("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})}function requireRegexp(){if(hasRequiredRegexp)return regexp;hasRequiredRegexp=1;var e=requireType();return regexp=new e("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if("/"===t[0]){if(r&&(n=r[1]),n.length>3)return!1;if("/"!==t[t.length-n.length-1])return!1}return!0},construct:function(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})}function require_function(){if(hasRequired_function)return _function;var e;hasRequired_function=1;try{e=commonjsRequire("esprima")}catch(r){"undefined"!=typeof window&&(e=window.esprima)}var t=requireType();return _function=new t("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(t){if(null===t)return!1;try{var r="("+t+")",n=e.parse(r,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(i){return!1}},construct:function(t){var r,n="("+t+")",i=e.parse(n,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){o.push(e.name)}),r=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,n.slice(r[0]+1,r[1]-1)):new Function(o,"return "+n.slice(r[0],r[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})}function requireDefault_full(){if(hasRequiredDefault_full)return default_full;hasRequiredDefault_full=1;var e=requireSchema();return default_full=e.DEFAULT=new e({include:[requireDefault_safe()],explicit:[require_undefined(),requireRegexp(),require_function()]})}function requireLoader(){if(hasRequiredLoader)return loader;hasRequiredLoader=1;var e=requireCommon(),t=requireException(),r=requireMark(),n=requireDefault_safe(),i=requireDefault_full(),o=Object.prototype.hasOwnProperty,s=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/[\x85\u2028\u2029]/,u=/[,\[\]\{\}]/,l=/^(?:!|!!|![a-z\-]+!)$/i,c=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function f(e){return Object.prototype.toString.call(e)}function p(e){return 10===e||13===e}function h(e){return 9===e||32===e}function d(e){return 9===e||32===e||10===e||13===e}function g(e){return 44===e||91===e||93===e||123===e||125===e}function m(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function y(e){return 120===e?2:117===e?4:85===e?8:0}function b(e){return 48<=e&&e<=57?e-48:-1}function k(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function A(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function w(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var E=new Array(256),_=new Array(256),q=0;q<256;q++)E[q]=k(q)?1:0,_[q]=k(q);function v(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function x(e,n){return new t(n,new r(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function C(e,t){throw x(e,t)}function $(e,t){e.onWarning&&e.onWarning.call(null,x(e,t))}var S={YAML:function(e,t,r){var n,i,o;null!==e.version&&C(e,"duplication of %YAML directive"),1!==r.length&&C(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&C(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&C(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&$(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;2!==r.length&&C(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],l.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),o.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),c.test(i)||C(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function R(e,t,r,n){var i,o,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,o=u.length;i<o;i+=1)9===(a=u.charCodeAt(i))||32<=a&&a<=1114111||C(e,"expected valid JSON character");else s.test(u)&&C(e,"the stream contains non-printable characters");e.result+=u}}function T(t,r,n,i){var s,a,u,l;for(e.isObject(n)||C(t,"cannot merge mappings; the provided source object is unacceptable"),u=0,l=(s=Object.keys(n)).length;u<l;u+=1)a=s[u],o.call(r,a)||(w(r,a,n[a]),i[a]=!0)}function I(e,t,r,n,i,s,a,u){var l,c;if(Array.isArray(i))for(l=0,c=(i=Array.prototype.slice.call(i)).length;l<c;l+=1)Array.isArray(i[l])&&C(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===f(i[l])&&(i[l]="[object Object]");if("object"==typeof i&&"[object Object]"===f(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)T(e,t,s[l],r);else T(e,t,s,r);else e.json||o.call(r,i)||!o.call(t,i)||(e.line=a||e.line,e.position=u||e.position,C(e,"duplicated mapping key")),w(t,i,s),delete r[i];return t}function B(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):C(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function M(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;h(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!p(i))break;for(B(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&$(e,"deficient indentation"),n}function O(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!d(t)))}function j(t,r){1===r?t.result+=" ":r>1&&(t.result+=e.repeat("\n",r-1))}function L(e,t){var r,n,i=e.tag,o=e.anchor,s=[],a=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);0!==n&&45===n&&d(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t)s.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,U(e,t,3,!1,!0),s.push(e.result),M(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)C(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=s,!0)}function F(e){var t,r,n,i,s=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&C(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(s=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,r="!!",i=e.input.charCodeAt(++e.position)):r="!",t=e.position,s){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(n=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):C(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!d(i);)33===i&&(a?C(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),l.test(r)||C(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),u.test(n)&&C(e,"tag suffix cannot contain flow indicator characters")}return n&&!c.test(n)&&C(e,"tag name cannot contain such characters: "+n),s?e.tag=n:o.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:C(e,'undeclared tag handle "'+r+'"'),!0}function N(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&C(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!d(r)&&!g(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function U(t,r,n,i,s){var a,u,l,c,f,k,w,q,v=1,x=!1,$=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=u=l=4===n||3===n,i&&M(t,!0,-1)&&(x=!0,t.lineIndent>r?v=1:t.lineIndent===r?v=0:t.lineIndent<r&&(v=-1)),1===v)for(;F(t)||N(t);)M(t,!0,-1)?(x=!0,l=a,t.lineIndent>r?v=1:t.lineIndent===r?v=0:t.lineIndent<r&&(v=-1)):l=!1;if(l&&(l=x||s),1!==v&&4!==n||(w=1===n||2===n?r:r+1,q=t.position-t.lineStart,1===v?l&&(L(t,q)||function(e,t,r){var n,i,o,s,a,u=e.tag,l=e.anchor,c={},f={},p=null,g=null,m=null,y=!1,b=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),a=e.input.charCodeAt(e.position);0!==a;){if(n=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,63!==a&&58!==a||!d(n)){if(!U(e,r,2,!1,!0))break;if(e.line===o){for(a=e.input.charCodeAt(e.position);h(a);)a=e.input.charCodeAt(++e.position);if(58===a)d(a=e.input.charCodeAt(++e.position))||C(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(I(e,c,f,p,g,null),p=g=m=null),b=!0,y=!1,i=!1,p=e.tag,g=e.result;else{if(!b)return e.tag=u,e.anchor=l,!0;C(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=l,!0;C(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===a?(y&&(I(e,c,f,p,g,null),p=g=m=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):C(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,a=n;if((e.line===o||e.lineIndent>t)&&(U(e,t,4,!0,i)&&(y?g=e.result:m=e.result),y||(I(e,c,f,p,g,m,o,s),p=g=m=null),M(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)C(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&I(e,c,f,p,g,null),b&&(e.tag=u,e.anchor=l,e.kind="mapping",e.result=c),b}(t,q,w))||function(e,t){var r,n,i,o,s,a,u,l,c,f,p=!0,h=e.tag,g=e.anchor,m={};if(91===(f=e.input.charCodeAt(e.position)))i=93,a=!1,n=[];else{if(123!==f)return!1;i=125,a=!0,n={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=n),f=e.input.charCodeAt(++e.position);0!==f;){if(M(e,!0,t),(f=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=h,e.anchor=g,e.kind=a?"mapping":"sequence",e.result=n,!0;p||C(e,"missed comma between flow collection entries"),c=null,o=s=!1,63===f&&d(e.input.charCodeAt(e.position+1))&&(o=s=!0,e.position++,M(e,!0,t)),r=e.line,U(e,t,1,!1,!0),l=e.tag,u=e.result,M(e,!0,t),f=e.input.charCodeAt(e.position),!s&&e.line!==r||58!==f||(o=!0,f=e.input.charCodeAt(++e.position),M(e,!0,t),U(e,t,1,!1,!0),c=e.result),a?I(e,n,m,l,u,c):o?n.push(I(e,null,m,l,u,c)):n.push(u),M(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(p=!0,f=e.input.charCodeAt(++e.position)):p=!1}C(e,"unexpected end of the stream within a flow collection")}(t,w)?$=!0:(u&&function(t,r){var n,i,o,s,a=1,u=!1,l=!1,c=r,f=0,d=!1;if(124===(s=t.input.charCodeAt(t.position)))i=!1;else{if(62!==s)return!1;i=!0}for(t.kind="scalar",t.result="";0!==s;)if(43===(s=t.input.charCodeAt(++t.position))||45===s)1===a?a=43===s?3:2:C(t,"repeat of a chomping mode identifier");else{if(!((o=b(s))>=0))break;0===o?C(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?C(t,"repeat of an indentation width identifier"):(c=r+o-1,l=!0)}if(h(s)){do{s=t.input.charCodeAt(++t.position)}while(h(s));if(35===s)do{s=t.input.charCodeAt(++t.position)}while(!p(s)&&0!==s)}for(;0!==s;){for(B(t),t.lineIndent=0,s=t.input.charCodeAt(t.position);(!l||t.lineIndent<c)&&32===s;)t.lineIndent++,s=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>c&&(c=t.lineIndent),p(s))f++;else{if(t.lineIndent<c){3===a?t.result+=e.repeat("\n",u?1+f:f):1===a&&u&&(t.result+="\n");break}for(i?h(s)?(d=!0,t.result+=e.repeat("\n",u?1+f:f)):d?(d=!1,t.result+=e.repeat("\n",f+1)):0===f?u&&(t.result+=" "):t.result+=e.repeat("\n",f):t.result+=e.repeat("\n",u?1+f:f),u=!0,l=!0,f=0,n=t.position;!p(s)&&0!==s;)s=t.input.charCodeAt(++t.position);R(t,n,t.position,!1)}}return!0}(t,w)||function(e,t){var r,n,i;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(R(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,i=e.position}else p(r)?(R(e,n,i,!0),j(e,M(e,!1,t)),n=i=e.position):e.position===e.lineStart&&O(e)?C(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);C(e,"unexpected end of the stream within a single quoted scalar")}(t,w)||function(e,t){var r,n,i,o,s,a;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return R(e,r,e.position,!0),e.position++,!0;if(92===a){if(R(e,r,e.position,!0),p(a=e.input.charCodeAt(++e.position)))M(e,!1,t);else if(a<256&&E[a])e.result+=_[a],e.position++;else if((s=y(a))>0){for(i=s,o=0;i>0;i--)(s=m(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:C(e,"expected hexadecimal character");e.result+=A(o),e.position++}else C(e,"unknown escape sequence");r=n=e.position}else p(a)?(R(e,r,n,!0),j(e,M(e,!1,t)),r=n=e.position):e.position===e.lineStart&&O(e)?C(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}C(e,"unexpected end of the stream within a double quoted scalar")}(t,w)?$=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!d(n)&&!g(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),o.call(e.anchorMap,r)||C(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],M(e,!0,-1),!0}(t)?function(e,t,r){var n,i,o,s,a,u,l,c,f=e.kind,m=e.result;if(d(c=e.input.charCodeAt(e.position))||g(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(d(n=e.input.charCodeAt(e.position+1))||r&&g(n)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;0!==c;){if(58===c){if(d(n=e.input.charCodeAt(e.position+1))||r&&g(n))break}else if(35===c){if(d(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&O(e)||r&&g(c))break;if(p(c)){if(a=e.line,u=e.lineStart,l=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){s=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=u,e.lineIndent=l;break}}s&&(R(e,i,o,!1),j(e,e.line-a),i=o=e.position,s=!1),h(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return R(e,i,o,!1),!!e.result||(e.kind=f,e.result=m,!1)}(t,w,1===n)&&($=!0,null===t.tag&&(t.tag="?")):($=!0,null===t.tag&&null===t.anchor||C(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===v&&($=l&&L(t,q))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&C(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,f=t.implicitTypes.length;c<f;c+=1)if((k=t.implicitTypes[c]).resolve(t.result)){t.result=k.construct(t.result),t.tag=k.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else o.call(t.typeMap[t.kind||"fallback"],t.tag)?(k=t.typeMap[t.kind||"fallback"][t.tag],null!==t.result&&k.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+k.kind+'", not "'+t.kind+'"'),k.resolve(t.result)?(t.result=k.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):C(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||$}function D(e){var t,r,n,i,s=e.position,u=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(M(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(u=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!d(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&C(e,"directive name must not be less than one character in length");0!==i;){for(;h(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!p(i));break}if(p(i))break;for(t=e.position;0!==i&&!d(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&B(e),o.call(S,r)?S[r](e,r,n):$(e,'unknown document directive "'+r+'"')}M(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,M(e,!0,-1)):u&&C(e,"directives end mark is expected"),U(e,e.lineIndent-1,4,!1,!0),M(e,!0,-1),e.checkLineBreaks&&a.test(e.input.slice(s,e.position))&&$(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&O(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,M(e,!0,-1)):e.position<e.length-1&&C(e,"end of the stream or a document separator is expected")}function P(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new v(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,C(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)D(r);return r.documents}function Y(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=P(e,r);if("function"!=typeof t)return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function G(e,r){var n=P(e,r);if(0!==n.length){if(1===n.length)return n[0];throw new t("expected a single document in the stream, but found more")}}return loader.loadAll=Y,loader.load=G,loader.safeLoadAll=function(t,r,i){return"object"==typeof r&&null!==r&&void 0===i&&(i=r,r=null),Y(t,r,e.extend({schema:n},i))},loader.safeLoad=function(t,r){return G(t,e.extend({schema:n},r))},loader}var dumper={},hasRequiredDumper,hasRequiredJsYaml$1,jsYaml,hasRequiredJsYaml,hasRequiredEngines;function requireDumper(){if(hasRequiredDumper)return dumper;hasRequiredDumper=1;var e=requireCommon(),t=requireException(),r=requireDefault_full(),n=requireDefault_safe(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},a=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function u(r){var n,i,o;if(n=r.toString(16).toUpperCase(),r<=255)i="x",o=2;else if(r<=65535)i="u",o=4;else{if(!(r<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");i="U",o=8}return"\\"+i+e.repeat("0",o-n.length)+n}function l(t){this.schema=t.schema||r,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){var r,n,i,s,a,u,l;if(null===t)return{};for(r={},i=0,s=(n=Object.keys(t)).length;i<s;i+=1)a=n[i],u=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&o.call(l.styleAliases,u)&&(u=l.styleAliases[u]),r[a]=u;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function c(t,r){for(var n,i=e.repeat(" ",r),o=0,s=-1,a="",u=t.length;o<u;)-1===(s=t.indexOf("\n",o))?(n=t.slice(o),o=u):(n=t.slice(o,s+1),o=s+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function f(t,r){return"\n"+e.repeat(" ",t.indent*r)}function p(e){return 32===e||9===e}function h(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function d(e,t){return h(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&function(e){return h(e)&&!p(e)&&65279!==e&&13!==e&&10!==e}(t))}function g(e){return/^\n* /.test(e)}function m(e,t,r,n,i){var o,s,a,u,l=!1,c=!1,f=-1!==n,m=-1,y=h(u=e.charCodeAt(0))&&65279!==u&&!p(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&!p(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!h(s=e.charCodeAt(o)))return 5;a=o>0?e.charCodeAt(o-1):null,y=y&&d(s,a)}else{for(o=0;o<e.length;o++){if(10===(s=e.charCodeAt(o)))l=!0,f&&(c=c||o-m-1>n&&" "!==e[m+1],m=o);else if(!h(s))return 5;a=o>0?e.charCodeAt(o-1):null,y=y&&d(s,a)}c=c||f&&o-m-1>n&&" "!==e[m+1]}return l||c?r>9&&g(e)?5:c?4:3:y&&!i(e)?1:2}function y(e,r,n,i){e.dump=function(){if(0===r.length)return"''";if(!e.noCompatMode&&-1!==a.indexOf(r))return"'"+r+"'";var o=e.indent*Math.max(1,n),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),f=i||e.flowLevel>-1&&n>=e.flowLevel;switch(m(r,f,e.indent,l,function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)})){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+b(r,e.indent)+k(c(r,o));case 4:return">"+b(r,e.indent)+k(c(function(e,t){var r,n,i=/(\n+)([^\n]*)/g,o=(a=e.indexOf("\n"),a=-1!==a?a:e.length,i.lastIndex=a,A(e.slice(0,a),t)),s="\n"===e[0]||" "===e[0];var a;for(;n=i.exec(e);){var u=n[1],l=n[2];r=" "===l[0],o+=u+(s||r||""===l?"":"\n")+A(l,t),s=r}return o}(r,l),o));case 5:return'"'+function(e){for(var t,r,n,i="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(r=e.charCodeAt(o+1))>=56320&&r<=57343?(i+=u(1024*(t-55296)+r-56320+65536),o++):i+=!(n=s[t])&&h(t)?e[o]:n||u(t);return i}(r)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function b(e,t){var r=g(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function k(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function A(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,u="";r=i.exec(e);)(a=r.index)-o>t&&(n=s>o?s:a,u+="\n"+e.slice(o,n),o=n+1),s=a;return u+="\n",e.length-o>t&&s>o?u+=e.slice(o,s)+"\n"+e.slice(s+1):u+=e.slice(o),u.slice(1)}function w(e,r,n){var s,a,u,l,c,f;for(u=0,l=(a=n?e.explicitTypes:e.implicitTypes).length;u<l;u+=1)if(((c=a[u]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof r&&r instanceof c.instanceOf)&&(!c.predicate||c.predicate(r))){if(e.tag=n?c.tag:"?",c.represent){if(f=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===i.call(c.represent))s=c.represent(r,f);else{if(!o.call(c.represent,f))throw new t("!<"+c.tag+'> tag resolver accepts not "'+f+'" style');s=c.represent[f](r,f)}e.dump=s}return!0}return!1}function E(e,r,n,o,s,a){e.tag=null,e.dump=n,w(e,n,!1)||w(e,n,!0);var u=i.call(e.dump);o&&(o=e.flowLevel<0||e.flowLevel>r);var l,c,p="[object Object]"===u||"[object Array]"===u;if(p&&(c=-1!==(l=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&r>0)&&(s=!1),c&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&c&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===u)o&&0!==Object.keys(e.dump).length?(!function(e,r,n,i){var o,s,a,u,l,c,p="",h=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(o=0,s=d.length;o<s;o+=1)c="",i&&0===o||(c+=f(e,r)),u=n[a=d[o]],E(e,r+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=f(e,r)),E(e,r+1,u,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",p+=c+=e.dump));e.tag=h,e.dump=p||"{}"}(e,r,e.dump,s),c&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,i,o,s,a,u="",l=e.tag,c=Object.keys(r);for(n=0,i=c.length;n<i;n+=1)a="",0!==n&&(a+=", "),e.condenseFlow&&(a+='"'),s=r[o=c[n]],E(e,t,o,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),E(e,t,s,!1,!1)&&(u+=a+=e.dump));e.tag=l,e.dump="{"+u+"}"}(e,r,e.dump),c&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===u){var h=e.noArrayIndent&&r>0?r-1:r;o&&0!==e.dump.length?(!function(e,t,r,n){var i,o,s="",a=e.tag;for(i=0,o=r.length;i<o;i+=1)E(e,t+1,r[i],!0,!0)&&(n&&0===i||(s+=f(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=a,e.dump=s||"[]"}(e,h,e.dump,s),c&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,i,o="",s=e.tag;for(n=0,i=r.length;n<i;n+=1)E(e,t,r[n],!1,!1)&&(0!==n&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}(e,h,e.dump),c&&(e.dump="&ref_"+l+" "+e.dump))}else{if("[object String]"!==u){if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+u)}"?"!==e.tag&&y(e,e.dump,r,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function _(e,t){var r,n,i=[],o=[];for(q(e,i,o),r=0,n=o.length;r<n;r+=1)t.duplicates.push(i[o[r]]);t.usedDuplicates=new Array(n)}function q(e,t,r){var n,i,o;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)q(e[i],t,r);else for(i=0,o=(n=Object.keys(e)).length;i<o;i+=1)q(e[n[i]],t,r)}function v(e,t){var r=new l(t=t||{});return r.noRefs||_(e,r),E(r,0,e,!0,!0)?r.dump+"\n":""}return dumper.dump=v,dumper.safeDump=function(t,r){return v(t,e.extend({schema:n},r))},dumper}function requireJsYaml$1(){if(hasRequiredJsYaml$1)return jsYaml$1;hasRequiredJsYaml$1=1;var e=requireLoader(),t=requireDumper();function r(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}return jsYaml$1.Type=requireType(),jsYaml$1.Schema=requireSchema(),jsYaml$1.FAILSAFE_SCHEMA=requireFailsafe(),jsYaml$1.JSON_SCHEMA=requireJson(),jsYaml$1.CORE_SCHEMA=requireCore(),jsYaml$1.DEFAULT_SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_FULL_SCHEMA=requireDefault_full(),jsYaml$1.load=e.load,jsYaml$1.loadAll=e.loadAll,jsYaml$1.safeLoad=e.safeLoad,jsYaml$1.safeLoadAll=e.safeLoadAll,jsYaml$1.dump=t.dump,jsYaml$1.safeDump=t.safeDump,jsYaml$1.YAMLException=requireException(),jsYaml$1.MINIMAL_SCHEMA=requireFailsafe(),jsYaml$1.SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_SCHEMA=requireDefault_full(),jsYaml$1.scan=r("scan"),jsYaml$1.parse=r("parse"),jsYaml$1.compose=r("compose"),jsYaml$1.addConstructor=r("addConstructor"),jsYaml$1}function requireJsYaml(){if(hasRequiredJsYaml)return jsYaml;hasRequiredJsYaml=1;var e=requireJsYaml$1();return jsYaml=e}function requireEngines(){return hasRequiredEngines||(hasRequiredEngines=1,function(module,exports$1){const yaml=requireJsYaml(),engines=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const r=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,r.replacer,r.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(err){if(!1!==wrap&&/(unexpected|identifier)/i.test(err.message))return parse(str,options,!1);throw new SyntaxError(err)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}}(engines)),engines.exports}var buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=function(e){var t=o(e),r=t[0],n=t[1];return 3*(r+n)/4-n},base64Js.toByteArray=function(e){var n,i,s=o(e),a=s[0],u=s[1],l=new r(function(e,t,r){return 3*(t+r)/4-r}(0,a,u)),c=0,f=u>0?a-4:a;for(i=0;i<f;i+=4)n=t[e.charCodeAt(i)]<<18|t[e.charCodeAt(i+1)]<<12|t[e.charCodeAt(i+2)]<<6|t[e.charCodeAt(i+3)],l[c++]=n>>16&255,l[c++]=n>>8&255,l[c++]=255&n;2===u&&(n=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,l[c++]=255&n);1===u&&(n=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,l[c++]=n>>8&255,l[c++]=255&n);return l},base64Js.fromByteArray=function(t){for(var r,n=t.length,i=n%3,o=[],s=16383,u=0,l=n-i;u<l;u+=s)o.push(a(t,u,u+s>l?l:u+s));1===i?(r=t[n-1],o.push(e[r>>2]+e[r<<4&63]+"==")):2===i&&(r=(t[n-2]<<8)+t[n-1],o.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"="));return o.join("")};for(var e=[],t=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function s(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function a(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(n));return i.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,base64Js}var ieee754={},hasRequiredIeee754,hasRequiredBuffer;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,l=u>>1,c=-7,f=r?i-1:0,p=r?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=l}return(h?-1:1)*s*Math.pow(2,o-n)},ieee754.write=function(e,t,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+h]=255&s,h+=d,s/=256,l-=8);e[r+h-d]|=128*g}),ieee754}function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(e){const t=requireBase64Js(),r=requireIeee754(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|h(e,t);let n=o(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);const i=function(e){if(s.isBuffer(e)){const t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Z(e.length)?o(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),o(e<0?0:0|p(e))}function c(e){const t=e.length<0?0:0|p(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,s.prototype),n}function p(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $(this,t,r);case"utf8":case"utf-8":return q(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(l(e,o)===l(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(l(e,o+n)!==l(t,n)){r=!1;break}if(r)return o}return-1}function b(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(Z(n))return s;e[r+s]=n}return s}function k(e,t,r,n){return z(G(t,e.length-r),e,r,n)}function A(e,t,r,n){return z(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return z(J(t),e,r,n)}function E(e,t,r,n){return z(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function _(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function q(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=v)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=v));return r}(n)}e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return a(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),H(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=s.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(H(t,Uint8Array))i+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?q(this,0,e):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const u=Math.min(o,a),l=this.slice(n,i),c=e.slice(t,r);for(let s=0;s<u;++s)if(l[s]!==c[s]){o=l[s],a=c[s];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return A(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const v=4096;function x(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function C(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function $(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=W[e[o]];return i}function S(e,t,r){const n=e.slice(t,r);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function I(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function B(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function M(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}s.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),s.prototype.readBigInt64BE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){T(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){T(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=K(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=K(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);T(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);T(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=K(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=K(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=s.isBuffer(e)?e:s.from(e,n),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const L={};function F(e,t,r){L[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function N(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,n,i,o){if(e>r||e<t){const r="bigint"==typeof t?"n":"";let n;throw n=0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`,new L.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){D(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||P(t,e.length-(r+1))}(n,i,o)}function D(e,t){if("number"!=typeof e)throw new L.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw D(e,r),new L.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new L.ERR_BUFFER_OUT_OF_BOUNDS;throw new L.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=N(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=N(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function J(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const W=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?V:e}function V(){throw new Error("BigInt not supported")}}(buffer)),buffer}var bufferExports=requireBuffer(),utils={},stripBomString,hasRequiredStripBomString,hasRequiredUtils,defaults,hasRequiredDefaults,engine,hasRequiredEngine,stringify,hasRequiredStringify,excerpt,hasRequiredExcerpt,toFile,hasRequiredToFile,parse,hasRequiredParse,grayMatter$1,hasRequiredGrayMatter;function requireStripBomString(){return hasRequiredStripBomString?stripBomString:(hasRequiredStripBomString=1,stripBomString=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e})}function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,function(e){const t=requireStripBomString(),r=requireKindOf();e.define=function(e,t,r){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:r})},e.isBuffer=function(e){return"buffer"===r(e)},e.isObject=function(e){return"object"===r(e)},e.toBuffer=function(e){return"string"==typeof e?bufferExports.Buffer.from(e):e},e.toString=function(r){if(e.isBuffer(r))return t(String(r));if("string"!=typeof r)throw new TypeError("expected input to be a string or buffer");return t(r)},e.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},e.startsWith=function(e,t,r){return"number"!=typeof r&&(r=t.length),e.slice(0,r)===t}}(utils)),utils}function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const e=requireEngines(),t=requireUtils();return defaults=function(r){const n=Object.assign({},r);return n.delimiters=t.arrayify(n.delims||n.delimiters||"---"),1===n.delimiters.length&&n.delimiters.push(n.delimiters[0]),n.language=(n.language||n.lang||"yaml").toLowerCase(),n.engines=Object.assign({},e,n.parsers,n.engines),n}}function requireEngine(){if(hasRequiredEngine)return engine;return hasRequiredEngine=1,engine=function(e,t){let r=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===r)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof r&&(r={parse:r}),r}}function requireStringify(){if(hasRequiredStringify)return stringify;hasRequiredStringify=1;const e=requireKindOf(),t=requireEngine(),r=requireDefaults();function n(e){return"\n"!==e.slice(-1)?e+"\n":e}return stringify=function(i,o,s){if(null==o&&null==s)switch(e(i)){case"object":o=i.data,s={};break;case"string":return i;default:throw new TypeError("expected file to be a string or object")}const a=i.content,u=r(s);if(null==o){if(!u.data)return i;o=u.data}const l=i.language||u.language,c=t(l,u);if("function"!=typeof c.stringify)throw new TypeError('expected "'+l+'.stringify" to be a function');o=Object.assign({},i.data,o);const f=u.delimiters[0],p=u.delimiters[1],h=c.stringify(o,s).trim();let d="";return"{}"!==h&&(d=n(f)+n(h)+n(p)),"string"==typeof i.excerpt&&""!==i.excerpt&&-1===a.indexOf(i.excerpt.trim())&&(d+=n(i.excerpt)+n(p)),d+n(a)}}function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const e=requireDefaults();return excerpt=function(t,r){const n=e(r);if(null==t.data&&(t.data={}),"function"==typeof n.excerpt)return n.excerpt(t,n);const i=t.data.excerpt_separator||n.excerpt_separator;if(null==i&&(!1===n.excerpt||null==n.excerpt))return t;const o="string"==typeof n.excerpt?n.excerpt:i||n.delimiters[0],s=t.content.indexOf(o);return-1!==s&&(t.excerpt=t.content.slice(0,s)),t}}function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const e=requireKindOf(),t=requireStringify(),r=requireUtils();return toFile=function(n){return"object"!==e(n)&&(n={content:n}),"object"!==e(n.data)&&(n.data={}),n.contents&&null==n.content&&(n.content=n.contents),r.define(n,"orig",r.toBuffer(n.content)),r.define(n,"language",n.language||""),r.define(n,"matter",n.matter||""),r.define(n,"stringify",function(e,r){return r&&r.language&&(n.language=r.language),t(n,e,r)}),n.content=r.toString(n.content),n.isEmpty=!1,n.excerpt="",n}}function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;const e=requireEngine(),t=requireDefaults();return parse=function(r,n,i){const o=t(i),s=e(r,o);if("function"!=typeof s.parse)throw new TypeError('expected "'+r+'.parse" to be a function');return s.parse(n,o)}}function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter$1;hasRequiredGrayMatter=1;const e=require$$0,t=requireSectionMatter(),r=requireDefaults(),n=requireStringify(),i=requireExcerpt(),o=requireEngines(),s=requireToFile(),a=requireParse(),u=requireUtils();function l(e,n){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let o=s(e);const c=l.cache[o.content];if(!n){if(c)return o=Object.assign({},c),o.orig=c.orig,o;l.cache[o.content]=o}return function(e,n){const o=r(n),s=o.delimiters[0],c="\n"+o.delimiters[1];let f=e.content;o.language&&(e.language=o.language);const p=s.length;if(!u.startsWith(f,s,p))return i(e,o),e;if(f.charAt(p)===s.slice(-1))return e;f=f.slice(p);const h=f.length,d=l.language(f,o);d.name&&(e.language=d.name,f=f.slice(d.raw.length));let g=f.indexOf(c);-1===g&&(g=h);e.matter=f.slice(0,g);const m=e.matter.replace(/^\s*#[^\n]+/gm,"").trim();""===m?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=a(e.language,e.matter,o);g===h?e.content="":(e.content=f.slice(g+c.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1)));i(e,o),(!0===o.sections||"function"==typeof o.section)&&t(e,o.section);return e}(o,n)}return l.engines=o,l.stringify=function(e,t,r){return"string"==typeof e&&(e=l(e,r)),n(e,t,r)},l.read=function(t,r){const n=l(e.readFileSync(t,"utf8"),r);return n.path=t,n},l.test=function(e,t){return u.startsWith(e,r(t).delimiters[0])},l.language=function(e,t){const n=r(t).delimiters[0];l.test(e)&&(e=e.slice(n.length));const i=e.slice(0,e.search(/\r?\n/));return{raw:i,name:i?i.trim():""}},l.cache={},l.clearCache=function(){l.cache={}},grayMatter$1=l}var grayMatterExports=requireGrayMatter();const grayMatter=getDefaultExportFromCjs(grayMatterExports),frontmatterPlugin=(e,{grayMatterOptions:t,renderExcerpt:r=!0}={})=>{const n=e.parse.bind(e);e.parse=(i,o={})=>{const{data:s,content:a,excerpt:u=""}=grayMatter(i,t);return o.content=a,o.frontmatter={...o.frontmatter,...s},o.excerpt=r&&u?e.render(u,{...o}):u,n(a,o)}},TAG_NAME_SCRIPT="script",TAG_NAME_STYLE="style",TAG_NAME_TEMPLATE="template",SCRIPT_SETUP_TAG_OPEN_REGEXP=/^<script\s+.*?\bsetup\b.*?>$/is,createSfcRegexp=({customBlocks:e})=>{const t=Array.from(new Set([TAG_NAME_SCRIPT,TAG_NAME_STYLE,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},sfcPlugin=(e,{customBlocks:t=[]}={})=>{const r=createSfcRegexp({customBlocks:t}),n=e.render.bind(e);e.render=(e,t={})=>{t.sfcBlocks={template:null,script:null,scriptSetup:null,scripts:[],styles:[],customBlocks:[]};const r=n(e,t);return t.sfcBlocks.template={type:TAG_NAME_TEMPLATE,content:`<${TAG_NAME_TEMPLATE}>${r}</${TAG_NAME_TEMPLATE}>`,contentStripped:r,tagOpen:`<${TAG_NAME_TEMPLATE}>`,tagClose:`</${TAG_NAME_TEMPLATE}>`},r};const i=e.renderer.rules.html_block;e.renderer.rules.html_block=(e,t,n,o,s)=>{if(!o.sfcBlocks)return i(e,t,n,o,s);const a=e[t].content.match(r);if(!a)return i(e,t,n,o,s);const u=a.groups;return u.type===TAG_NAME_SCRIPT?(o.sfcBlocks.scripts.push(u),SCRIPT_SETUP_TAG_OPEN_REGEXP.test(u.tagOpen)?o.sfcBlocks.scriptSetup=u:o.sfcBlocks.script=u):u.type===TAG_NAME_STYLE?o.sfcBlocks.styles.push(u):o.sfcBlocks.customBlocks.push(u),""}},htmlEscapeMap={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},htmlEscapeRegexp=/[&<>'"]/g,htmlEscape=e=>e.replace(htmlEscapeRegexp,e=>htmlEscapeMap[e]),resolveTitleFromToken=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{const n=e.children??[],i=["text","emoji","code_inline"];i.push("html_inline");return n.filter(e=>i.includes(e.type)&&!e.meta?.isPermalinkSymbol).reduce((e,t)=>"code_inline"===t.type||"text"===t.type?`${e}${htmlEscape(t.content)}`:`${e}${t.content}`,"").trim()},resolveHeadersFromTokens=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:i,slugify:o,format:s})=>{const a=[],u=[],l=e=>{for(;0!==u.length&&e.level<=u[0].level;)u.shift();0===u.length?(a.push(e),u.push(e)):(u[0].children.push(e),u.unshift(e))};for(let c=0;c<e.length;c+=1){const a=e[c];if("heading_open"!==a.type)continue;if(0!==a.level&&!n)continue;const u=Number.parseInt(a.tag.slice(1),10);if(!t.includes(u))continue;const f=e[c+1];if(!f)continue;const p=resolveTitleFromToken(f,{shouldAllowHtml:r,shouldEscapeText:i}),h=a.attrGet("id")??o(p);l({level:u,title:s?.(p)??p,slug:h,link:`#${h}`,children:[]})}return a},rControl=/[\u0000-\u001f]/g,rSpecial=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,rCombining=/[\u0300-\u036F]/g,slugify=e=>e.normalize("NFKD").replace(rCombining,"").replace(rControl,"").replace(rSpecial,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase(),createRenderHeaders=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:i})=>{const o=htmlEscape(e),s=t?` class="${htmlEscape(t)}"`:"",a=r?` class="${htmlEscape(r)}"`:"",u=htmlEscape(n),l=i?` class="${htmlEscape(i)}"`:"",c=e=>`<${o}${s}>${e.map(e=>{return`<li${a}><${u}${l}${t=e.link,"router-link"===n?` to="${t}"`:` href="${t}"`}>${e.title}</${u}>${e.children.length>0?c(e.children):""}</li>`;var t}).join("")}</${o}>`;return c},createTocBlockRule=({pattern:e,containerTag:t,containerClass:r})=>(n,i,o,s)=>{if(n.sCount[i]-n.blkIndent>=4)return!1;const a=n.bMarks[i]+n.tShift[i],u=n.eMarks[i],l=n.src.slice(a,u).split(" ")[0];if(!e.test(l))return!1;if(s)return!0;n.line=i+1;const c=n.push("toc_open",t,1);c.markup="",c.map=[i,n.line],r&&c.attrSet("class",r);const f=n.push("toc_body","",0);f.markup=l,f.map=[i,n.line],f.hidden=!0;return n.push("toc_close",t,-1).markup="",f.map=[i,n.line],!0},tocPlugin=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=slugify,format:n,level:i=[2,3],shouldAllowNested:o=!1,containerTag:s="nav",containerClass:a="table-of-contents",listTag:u="ul",listClass:l="",itemClass:c="",linkTag:f="a",linkClass:p=""}={})=>{e.block.ruler.before("heading","toc",createTocBlockRule({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});const h=createRenderHeaders({listTag:u,listClass:l,itemClass:c,linkTag:f,linkClass:p});e.renderer.rules.toc_body=e=>h(resolveHeadersFromTokens(e,{level:i,shouldAllowHtml:!0,shouldAllowNested:o,shouldEscapeText:!0,slugify:r,format:n}))},e$a=/\\(.)/g,t$c=(e,t,r,n)=>{let i=-1,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+2>=s||42!==e.src.charCodeAt(o++)||91!==e.src.charCodeAt(o++))return!1;let a=o;for(;o<s;){let t=e.src.charCodeAt(o);if(91===t)return!1;if(93===t){i=o;break}92===t&&o++,o++}if(i<0||58!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let u=e.src.slice(a,i).replaceAll(e$a,"$1");o=i+2;let l=e.skipSpaces(o),c=e.skipSpacesBack(s,l),f=e.src.slice(l,c);return 0!==u.length&&0!==f.length&&((e.env.abbreviations??={})[`_${u}`]??=f,e.line=t+1,!0)},n$a=e=>{let{arrayReplaceAt:t,escapeRE:r,lib:n}=e.utils,i=`${n.ucmicro.P.source}|${n.ucmicro.Z.source}|[${" \r\n$+<=>^`|~".split("").map(r).join("")}]`;e.block.ruler.before("reference","abbr_definition",t$c,{alt:["paragraph","reference"]}),e.core.ruler.after("linkify","abbr_replace",e=>{let n=e.tokens,o=e.env.abbreviations;if(!o)return;let s=Object.keys(o).map(e=>e.slice(1)).sort((e,t)=>t.length-e.length).map(r).join("|"),a=RegExp(`(?:${s})`),u=RegExp(`(^|${i})(${s})($|${i})`,"g"),l=n.length;for(let r=0;r<l;r++){let i=n[r];if("inline"!==i.type)continue;let s=i.children;for(let r=s.length-1;r>=0;r--){let n=s[r];if("text"!==n.type)continue;let l=n.content;if(u.lastIndex=0,!a.test(l))continue;let c,f=[],p=0;for(;c=u.exec(l);){let[,t,r,n]=c;if(c.index>0||t.length>0){let r=new e.Token("text","",0);r.content=l.slice(p,c.index+t.length),f.push(r)}let i=new e.Token("abbr_open","abbr",1);i.attrPush(["title",o[`_${r}`]]),f.push(i);let s=new e.Token("text","",0);s.content=r,f.push(s);let a=new e.Token("abbr_close","abbr",-1);f.push(a),u.lastIndex-=n.length,p=u.lastIndex}if(0!==f.length){if(p<l.length){let t=new e.Token("text","",0);t.content=l.slice(p),f.push(t)}i.children=s=t(s,r,f)}}}})},e$9=(e,t)=>{let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];if(r>=n)return-1;let i=e.src.charCodeAt(r++);if(126!==i&&58!==i)return-1;let o=e.skipSpaces(r);return r===o||o>=n?-1:r},t$b=(e,t)=>{let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)},n$9=(e,t,r,n)=>{if(n)return!(e.ddIndent<0)&&(e$9(e,t)>=0&&e.sCount[t]<e.blkIndent);let i=t+1;if(i>=r)return!1;let o=!1;if(e.isEmpty(i)&&(i++,o=!0,i>=r)||e.sCount[i]<e.blkIndent)return!1;let s=e$9(e,i);if(s<0)return!1;let a=e.tokens.length,u=[t,0];e.push("dl_open","dl",1).map=u;let l=t,c=i,f=!o;e:for(;;){let t=!1;e.push("dt_open","dt",1).map=[l,l];let n=e.push("inline","",0);for(n.map=[l,l],n.content=e.getLines(l,l+1,e.blkIndent,!1).trim(),n.children=[],e.push("dt_close","dt",-1);;){let n=[i,0];e.push("dd_open","dd",1).map=n;let o=s,a=e.eMarks[c],u=e.sCount[c]+s-(e.bMarks[c]+e.tShift[c]);for(;o<a;){let t=e.src.charCodeAt(o);if(9===t)u+=4-u%4;else{if(32!==t)break;u++}o++}s=o;let l=e.tight,p=e.ddIndent,h=e.blkIndent,d=e.tShift[c],g=e.sCount[c],m=e.parentType;if(e.blkIndent=e.ddIndent=e.sCount[c]+2,e.tShift[c]=s-e.bMarks[c],e.sCount[c]=u,e.tight=!0,e.parentType="dl",e.md.block.tokenize(e,c,r,!0),(!e.tight||t)&&(f=!1),t=e.line-c>1&&e.isEmpty(e.line-1),e.tShift[c]=d,e.sCount[c]=g,e.tight=l,e.parentType=m,e.blkIndent=h,e.ddIndent=p,e.push("dd_close","dd",-1),n[1]=i=e.line,i>=r||e.sCount[i]<e.blkIndent)break e;if(s=e$9(e,i),s<0)break;c=i}if(i>=r||(l=i,e.isEmpty(l)||e.sCount[l]<e.blkIndent)||(c=l+1,c>=r)||(e.isEmpty(c)&&c++,c>=r||e.sCount[c]<e.blkIndent)||(s=e$9(e,c),s<0))break}return e.push("dl_close","dl",-1),u[1]=i,e.line=i,f&&t$b(e,a),!0},r$7=e=>{e.block.ruler.before("paragraph","dl",n$9,{alt:["paragraph","reference","blockquote"]})},e$8=(e,t)=>{e.attrs=e.attrs?.filter(([e])=>e!==t)??null},t$a=e=>{let t=e.attrs?.find(([e])=>"title"===e)?.[1];return t?(e$8(e,"title"),t):e.content},n$8=(e,t={})=>{e.core.ruler.before("linkify","figure",r=>{for(let n=1,{length:i}=r.tokens;n<i-1;n++){let i=r.tokens[n];if("inline"!==i.type||!i.children||1!==i.children.length&&3!==i.children.length||1===i.children.length&&"image"!==i.children[0].type)continue;if(3===i.children.length){let[e,t,r]=i.children;if("link_open"!==e.type||"image"!==t.type||"link_close"!==r.type)continue}if("paragraph_open"!==r.tokens[n-1].type||"paragraph_close"!==r.tokens[n+1].type)continue;let o=r.tokens[n-1];o.type="figure_open",o.tag="figure",r.tokens[n+1].type="figure_close",r.tokens[n+1].tag="figure";let s=1===i.children.length?i.children[0]:i.children[1],a=t$a(s),[u]=e.parseInline(a,r.env);i.children.push(new r.Token("figcaption_open","figcaption",1)),i.children.push(...u.children??[]),i.children.push(new r.Token("figcaption_close","figcaption",-1)),!1!==t.focusable&&s.attrPush(["tabindex","0"])}})},e$7=(e,t)=>e[t].meta.subId>0?`:${e[t].meta.subId}`:"",t$9=(e,t,r,n)=>`${"string"==typeof n.docId?`-${n.docId}-`:""}${(e[t].meta.id+1).toString()}`,n$7=(e,t)=>`[${(e[t].meta.id+1).toString()}${e$7(e,t)}]`,r$6=(e,t,r,n,i)=>{let o=i.rules.footnote_anchorName(e,t,r,n,i);return`<sup class="footnote-ref"><a href="#footnote${o}">${i.rules.footnote_caption(e,t,r,n,i)}</a><a class="footnote-anchor" id="footnote-ref${o}${e$7(e,t)}"></a></sup>`},i$3=(e,t,r)=>`<hr class="footnotes-sep"${r.xhtmlOut?" /":""}>\n<section class="footnotes">\n<ol class="footnotes-list">\n`,a$3=()=>"</ol>\n</section>\n",o$4=(e,t,r,n,i)=>`<li id="footnote${i.rules.footnote_anchorName(e,t,r,n,i)}${e$7(e,t)}" class="footnote-item">`,s$1=()=>"</li>\n",c$1=(e,t,r,n,i)=>` <a href="#footnote-ref${i.rules.footnote_anchorName(e,t,r,n,i)}${e$7(e,t)}" class="footnote-backref">↩︎</a>`,l$2=(e,t,r,n)=>{let i,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+4>s||91!==e.src.charCodeAt(o)||94!==e.src.charCodeAt(o+1))return!1;let a=o+2;for(;a<s;){if(i=e.src.charCodeAt(a),32===i)return!1;if(93===i)break;a++}if(a===o+2||a+1>=s||58!==e.src.charCodeAt(++a))return!1;if(n)return!0;a++,(e.env.footnotes??={}).refs??={};let u=e.src.slice(o+2,a-2);e.env.footnotes.refs[`:${u}`]=-1;let l=e.push("footnote_reference_open","",1);l.meta={label:u},l.level=e.level++;let c=e.bMarks[t],f=e.tShift[t],p=e.sCount[t],h=e.parentType,d=a,g=e.sCount[t]+a-(e.bMarks[t]+e.tShift[t]),m=g;for(;a<s;){let t=e.src.charCodeAt(a);if(9===t)m+=4-m%4;else{if(32!==t)break;m++}a++}return e.tShift[t]=a-d,e.sCount[t]=m-g,e.bMarks[t]=d,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,r),e.parentType=h,e.blkIndent-=4,e.tShift[t]=f,e.sCount[t]=p,e.bMarks[t]=c,e.push("footnote_reference_close","",-1).level=--e.level,!0},u$2=(e,t)=>{let r=e.posMax,n=e.pos;if(n+2>=r||94!==e.src.charCodeAt(n)||91!==e.src.charCodeAt(n+1))return!1;let i=e.md.helpers.parseLinkLabel(e,n+1);if(i<0)return!1;let o=n+2;if(!t){let t=((e.env.footnotes??={}).list??=[]).length,r=[];e.md.inline.parse(e.src.slice(o,i),e.md,e.env,r),e.push("footnote_ref","",0).meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(o,i),tokens:r}}return e.pos=i+1,e.posMax=r,!0},d$1=(e,t)=>{let r,n=e.pos,i=e.posMax;if(n+3>i||!e.env.footnotes?.refs||91!==e.src.charCodeAt(n)||94!==e.src.charCodeAt(n+1))return!1;let o=n+2;for(;o<i;){if(r=e.src.charCodeAt(o),32===r||10===r)return!1;if(93===r)break;o++}if(o===n+2||o>=i)return!1;o++;let s=e.src.slice(n+2,o-1);if(void 0===e.env.footnotes.refs[`:${s}`])return!1;if(!t){let t,r=e.env.footnotes.list??=[],{refs:n}=e.env.footnotes;n[`:${s}`]<0?(t=r.length,r[t]={label:s,count:0},n[`:${s}`]=t):t=n[`:${s}`];let i=r[t].count;r[t].count+=1,e.push("footnote_ref","",0).meta={id:t,subId:i,label:s}}return e.pos=o,e.posMax=i,!0},f$1=e=>{let t,r,n={},i=!1;if(!e.env.footnotes?.list)return e.tokens=e.tokens.filter(e=>"footnote_reference_open"===e.type?(i=!0,!1):"footnote_reference_close"===e.type?(i=!1,!1):!i),!1;let{list:o}=e.env.footnotes;e.tokens=e.tokens.filter(e=>"footnote_reference_open"===e.type?(i=!0,t=[],r=e.meta.label,!1):"footnote_reference_close"===e.type?(i=!1,n[`:${r}`]=t,!1):(i&&t.push(e),!i));let s=new e.Token("footnote_block_open","",1);e.tokens.push(s);for(let a=0,{length:u}=o;a<u;a++){let t,r=new e.Token("footnote_open","",1);if(r.meta={id:a,label:o[a].label},e.tokens.push(r),o[a].tokens){let t=new e.Token("paragraph_open","p",1);t.block=!0;let r=new e.Token("inline","",0);r.children=o[a].tokens,r.content=o[a].content;let n=new e.Token("paragraph_close","p",-1);n.block=!0,e.tokens.push(t,r,n)}else if(o[a].label){let t=n[`:${o[a].label}`];t&&e.tokens.push(...t)}t="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop()??null:null;for(let n=0;n<(Number(o[a].count)>0?o[a].count:1);n++){let t=new e.Token("footnote_anchor","",0);t.meta={id:a,subId:n,label:o[a].label},e.tokens.push(t)}t&&e.tokens.push(t),e.tokens.push(new e.Token("footnote_close","",-1))}return e.tokens.push(new e.Token("footnote_block_close","",-1)),!0},p=e=>{e.renderer.rules.footnote_ref=r$6,e.renderer.rules.footnote_block_open=i$3,e.renderer.rules.footnote_block_close=a$3,e.renderer.rules.footnote_open=o$4,e.renderer.rules.footnote_close=s$1,e.renderer.rules.footnote_anchor=c$1,e.renderer.rules.footnote_caption=n$7,e.renderer.rules.footnote_anchorName=t$9,e.block.ruler.before("reference","footnoteDef",l$2,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnoteInline",u$2),e.inline.ruler.after("footnoteInline","footnote_ref",d$1),e.core.ruler.after("inline","footnoteTail",f$1)},e$6=e=>{let t=e.renderer.rules.image;e.renderer.rules.image=(e,r,n,i,o)=>(e[r].attrSet("loading","lazy"),t(e,r,n,i,o))},e$5=/#(.*?)$/,t$8=(e,{light:t=["light"],dark:r=["dark"]}={})=>{let n=e.renderer.rules.image,i=t.map(e=>`#${e}`),o=r.map(e=>`#${e}`);e.renderer.rules.image=(e,t,r,s,a)=>{let u=e[t],l=u.attrGet("src");return l&&(i.some(e=>l.endsWith(e))?(u.attrSet("data-mode","lightmode-only"),u.attrSet("src",l.replace(e$5,""))):o.some(e=>l.endsWith(e))&&(u.attrSet("data-mode","darkmode-only"),u.attrSet("src",l.replace(e$5,"")))),n(e,t,r,s,a)}},l$1=e=>e>=48&&e<=57,u$1=e=>{let t=e.length,r=e.lastIndexOf("=");if(-1===r||r+3>t||0!==r&&!isSpace(e.charCodeAt(r-1)))return null;let n=e.slice(0,r++).trimEnd(),i=null,o=null;if(l$1(e.charCodeAt(r))){let n=r;for(;r<t&&l$1(e.charCodeAt(r));)r++;if(i=e.slice(n,r),120!==e.charCodeAt(r++))return null}else if(120!==e.charCodeAt(r++))return null;if(r<t){let n=r;for(;r<t&&l$1(e.charCodeAt(r));)r++;r>n&&(o=e.slice(n,r))}for(;r<t;){if(!isSpace(e.charCodeAt(r)))return null;r++}return{label:n,width:i,height:o}},d=(e,t)=>{let r=e.env,n=e.pos,i=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let o=e.pos+2,s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(s<0)return!1;let a=u$1(e.src.slice(o,s));if(!a)return!1;let{label:u,width:l,height:c}=a,f=s+1,p="",h="";if(f<i&&40===e.src.charCodeAt(f)){for(f++;f<i&&isSpace(e.src.charCodeAt(f));)f++;if(f>=i)return!1;let t;t=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),t.ok&&(p=e.md.normalizeLink(t.str),e.md.validateLink(p)?f=t.pos:p="");let r=f;for(;f<i&&isSpace(e.src.charCodeAt(f));f++);if(t=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<i&&r!==f&&t.ok)for(h=t.str,f=t.pos;f<i&&isSpace(e.src.charCodeAt(f));f++);else h="";if(f>=i||41!==e.src.charCodeAt(f))return e.pos=n,!1;f++}else{let t="";if(void 0===r.references)return!1;for(;f<i&&isSpace(e.src.charCodeAt(f));f++);if(f<i&&91===e.src.charCodeAt(f)){let r=f+1;f=e.md.helpers.parseLinkLabel(e,f),f>=0?t=e.src.slice(r,f++):f=s+1}else f=s+1;t||=u;let o=r.references[e.md.utils.normalizeReference(t)];if(!o)return e.pos=n,!1;p=o.href,h=o.title??""}if(!t){let t=e.push("image","img",0),r=[["src",p],["alt",""]];h&&r.push(["title",h]),l&&r.push(["width",l]),c&&r.push(["height",c]);let n=[];e.md.inline.parse(u,e.md,e.env,n),t.attrs=r,t.children=n,t.content=u}return e.pos=f,e.posMax=i,!0},f=e=>{e.inline.ruler.before("image","img-size",d)},e$4=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||43!==n)return!1;let i=e.scanDelims(e.pos,!0),{length:o}=i;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:43,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},t$7=(e,t)=>{let r,n=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(43===i.marker&&-1!==i.end){let o=t[i.end];r=e.tokens[i.token],r.type="ins_open",r.tag="ins",r.nesting=1,r.markup="++",r.content="",r=e.tokens[o.token],r.type="ins_close",r.tag="ins",r.nesting=-1,r.markup="++",r.content="","text"===e.tokens[o.token-1].type&&"+"===e.tokens[o.token-1].content&&n.push(o.token-1)}}for(;n.length>0;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"ins_close"===e.tokens[i].type;)i++;i--,t!==i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}},n$6=e=>{e.inline.ruler.before("emphasis","ins",e$4),e.inline.ruler2.before("emphasis","ins",e=>{t$7(e,e.delimiters);let t=e.tokens_meta,r=t.length;if(0===r)return!0;for(let n=0;n<r;n++){let r=t[n];r?.delimiters.length&&t$7(e,r.delimiters)}return!0})},r$5=e=>e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;"),o$3=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/gu,t$6=String.raw`\[`,n$5=String.raw`\(`,r$4=(e,t,r=0)=>{let n=0,i=t-1;for(;i>=r&&92===e.charCodeAt(i);)n++,i--;return n},i$2=(e,t,r)=>{let n=e.src.charCodeAt(t-1),i=e.src.charCodeAt(t+1);return{canOpen:r||!isSpace(i),canClose:!(i>=48&&i<=57)&&(r||!isSpace(n))}},a$2=e=>(t,r)=>{if("$"!==t.src[t.pos])return!1;let n=i$2(t,t.pos,e);if(!n.canOpen)return r||(t.pending+="$"),t.pos++,!0;let i,o=t.pos+1,s=o,a=t.src.lastIndexOf("$");if(-1===a)return!1;for(;(s=t.src.indexOf("$",s))<=a;){for(i=s-1;92===t.src.charCodeAt(i);)i--;if((s-i)%2==1)break;s++}if(-1===s)return r||(t.pending+="$"),t.pos=o,!0;if(s-o===0)return r||(t.pending+="$$"),t.pos=o+1,!0;if(n=i$2(t,s,e),!n.canClose)return r||(t.pending+="$"),t.pos=o,!0;if(!r){let e=t.push("math_inline","math",0);e.markup="$",e.content=t.src.slice(o,s)}return t.pos=s+1,!0},o$2=()=>(e,t)=>{let r=e.pos;if(92!==e.src.charCodeAt(r)||40!==e.src.charCodeAt(r+1))return!1;let n=r+2,i=!1,o=e.src.length;for(;n<o-1;){if(92===e.src.charCodeAt(n)&&41===e.src.charCodeAt(n+1)){if(r$4(e.src,r)%2==1)return!1;if(r$4(e.src,n,r+2)%2==0){i=!0;break}}n++}if(!i)return!1;if(!t){let t=e.push("math_inline","math",0);t.markup=n$5,t.content=e.src.slice(r+2,n)}return e.pos=n+2,!0},s=(e,t,r,n)=>{let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||36!==e.src.charCodeAt(i)||36!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let s,a=e.skipSpacesBack(o,i),u=i+2,l=!1;a-u>=2&&36===e.src.charCodeAt(a-1)&&36===e.src.charCodeAt(a-2)?(s=e.src.slice(u,a-2),l=!0):s=e.src.slice(u,o);let c=t,f="";for(;!(l||(c++,c>=r||(u=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],u<o&&e.tShift[c]<e.blkIndent)));)a=e.skipSpacesBack(o,u),a-u>=2&&36===e.src.charCodeAt(a-1)&&36===e.src.charCodeAt(a-2)&&(f=e.src.slice(u,a-2),l=!0);e.line=l?c+1:c;let p=e.push("math_block","math",0);return p.block=!0,p.content=(s?`${s}\n`:"")+e.getLines(t+1,c,e.tShift[t],!0)+(f?`${f}\n`:""),p.map=[t,e.line],p.markup="$$",!0},c=()=>(e,t,r,n)=>{let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||92!==e.src.charCodeAt(i)||91!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let s,a=e.skipSpacesBack(o,i),u=i+2,l=!1;a-u>=2&&93===e.src.charCodeAt(a-1)&&92===e.src.charCodeAt(a-2)?(s=e.src.slice(u,a-2),l=!0):s=e.src.slice(u,o);let c=t,f="";for(;!(l||(c++,c>=r||(u=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],u<o&&e.tShift[c]<e.blkIndent)));)a=e.skipSpacesBack(o,u),a-u>=2&&93===e.src.charCodeAt(a-1)&&92===e.src.charCodeAt(a-2)&&(f=e.src.slice(u,a-2).trimEnd(),l=!0);if(!l)return!1;e.line=c+1;let p=e.push("math_block","math",0);return p.block=!0,p.content=(s?`${s}\n`:"")+e.getLines(t+1,c,e.tShift[t],!0)+(f?`${f}\n`:""),p.map=[t,e.line],p.markup=t$6,!0},l={alt:["paragraph","reference","blockquote","list"]},u=(e,t)=>{if("function"!=typeof t?.render)throw TypeError('[@mdit/plugin-tex]: "render" option should be a function');let{allowInlineWithSpace:r=!1,mathFence:n=!1,delimiters:i="dollars",render:o}=t;if(n){let t=e.renderer.rules.fence;e.renderer.rules.fence=(e,r,n,i,s)=>{let a=e[r];return"math"===a.info.trim()?o(a.content,!0,i):t(e,r,n,i,s)}}("dollars"===i||"all"===i)&&(e.inline.ruler.after("escape","math_inline_dollar",a$2(r)),e.block.ruler.after("blockquote","math_block_dollar",s,l)),("brackets"===i||"all"===i)&&(e.inline.ruler.before("escape","math_inline_bracket",o$2()),e.block.ruler.after("blockquote","math_block_bracket",c(),l)),e.renderer.rules.math_inline=(e,t,r,n)=>o(e[t].content,!1,n),e.renderer.rules.math_block=(e,t,r,n)=>o(e[t].content,!0,n)},i$1=(e,t,r)=>{let n;try{n=renderToString(e,t)}catch(i){if(!(i instanceof ParseError))throw i;console.error(i),n=`<span class='katex-error' title='${r$5(i.toString())}'>${r$5(e)}</span>`}return r?.(n,!1)??n},a$1=(e,t,r)=>{let n;try{n=`<p class='katex-block'>${renderToString(e,t)}</p>\n`}catch(i){if(!(i instanceof ParseError))throw i;console.error(i),n=`<p class='katex-block katex-error' title='${r$5(i.toString())}'>${r$5(e)}</p>\n`}return r?.(n,!0)??n},o$1=(e,{allowInlineWithSpace:t=!1,delimiters:r,mathFence:n,logger:i=e=>"newLineInDisplayMode"===e?"ignore":"warn",transformer:o,...s}={})=>{let a=Object.assign({macros:{},throwOnError:!1},s);e.use(u,{allowInlineWithSpace:t,delimiters:r,mathFence:n,render:(e,t,r)=>{let n=Object.assign({},a,{strict:(e,t,n)=>i(e,t,n,r)??"ignore",displayMode:t});return t?a$1(e,n,o):i$1(e,n,o)}})},e$3=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||61!==n)return!1;let i=e.scanDelims(e.pos,!0),o=i.length;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:61,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},t$5=(e,t)=>{let r,n=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(61===i.marker&&-1!==i.end){let o=t[i.end];r=e.tokens[i.token],r.type="mark_open",r.tag="mark",r.nesting=1,r.markup="==",r.content="",r=e.tokens[o.token],r.type="mark_close",r.tag="mark",r.nesting=-1,r.markup="==",r.content="","text"===e.tokens[o.token-1].type&&"="===e.tokens[o.token-1].content&&n.push(o.token-1)}}for(;n.length>0;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"mark_close"===e.tokens[i].type;)i++;i--,t!==i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}},n$4=e=>{e.inline.ruler.before("emphasis","mark",e$3),e.inline.ruler2.before("emphasis","mark",e=>{t$5(e,e.delimiters);let t=e.tokens_meta,r=t.length;if(0===r)return!0;for(let n=0;n<r;n++){let r=t[n];r?.delimiters.length&&t$5(e,r.delimiters)}return!0})},e$2=(e,t)=>{let r,n=e.pos,i=e.posMax;if(t||123!==e.src.charCodeAt(n)||n+4>=i)return!1;e.pos=n+1;let o=0,s=0;for(;e.pos<i;){if(o){if(125===e.src.charCodeAt(e.pos)&&92!==e.src.charCodeAt(e.pos-1)){s=e.pos;break}}else 58===e.src.charCodeAt(e.pos)&&92!==e.src.charCodeAt(e.pos-1)&&(o=e.pos);e.pos++}if(!s||n+1===e.pos)return e.pos=n,!1;e.posMax=e.pos,e.pos=n+1,e.push("ruby_open","ruby",1).markup="{";let a=e.src.slice(n+1,o),u=e.src.slice(o+1,s),l=a.split(""),c=u.split("|");return l.length===c.length?l.forEach((t,n)=>{e.md.inline.parse(t,e.md,e.env,r=[]),e.tokens.push(...r),e.push("rt_open","rt",1),e.md.inline.parse(c[n],e.md,e.env,r=[]),e.tokens.push(...r),e.push("rt_close","rt",-1)}):(e.md.inline.parse(a,e.md,e.env,r=[]),e.tokens.push(...r),e.push("rt_open","rt",1),e.md.inline.parse(u,e.md,e.env,r=[]),e.tokens.push(...r),e.push("rt_close","rt",-1)),e.push("ruby_close","ruby",-1).markup="}",e.pos=e.posMax+1,e.posMax=i,!0},t$4=e=>{e.inline.ruler.before("text","ruby",e$2)},e$1=[["class","spoiler"],["tabindex","-1"]],t$3=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||33!==n)return!1;let i=e.scanDelims(e.pos,!0),o=i.length;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:33,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},n$3=(e,t,r,n)=>{let i,o=[],s=t.length;for(let a=0;a<s;a++){let s=t[a];if(33===s.marker&&-1!==s.end){let a=t[s.end];i=e.tokens[s.token],i.type="spoiler_open",i.tag=r,i.nesting=1,i.markup="!!",i.attrs=n,i.content="",i=e.tokens[a.token],i.type="spoiler_close",i.tag=r,i.nesting=-1,i.markup="!!",i.content="","text"===e.tokens[a.token-1].type&&"!"===e.tokens[a.token-1].content&&o.push(a.token-1)}}for(;o.length>0;){let t=o.pop(),r=t+1;for(;r<e.tokens.length&&"spoiler_close"===e.tokens[r].type;)r++;r--,t!==r&&(i=e.tokens[r],e.tokens[r]=e.tokens[t],e.tokens[t]=i)}},r$3=(e,t)=>{let{tag:r="span",attrs:n=e$1}=t??{};e.inline.ruler.before("emphasis","spoiler",t$3),e.inline.ruler2.before("emphasis","spoiler",e=>{e.delimiters.length>0&&n$3(e,e.delimiters,r,n);let t=e.tokens_meta,i=t.length;if(0===i)return!0;for(let o=0;o<i;o++){let i=t[o];i?.delimiters.length&&n$3(e,i.delimiters,r,n)}return!0})},t$2=/(^|[^\\])(\\\\)*\s/u,n$2=(e,t)=>{let r=e.posMax,n=e.pos;if(126!==e.src.charCodeAt(n)||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(126===e.src.charCodeAt(e.pos)){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;let o=e.src.slice(n+1,e.pos);return t$2.test(o)?(e.pos=n,!1):(e.posMax=e.pos,e.pos=n+1,e.push("sub_open","sub",1).markup="~",e.push("text","",0).content=o.replace(o$3,"$1"),e.push("sub_close","sub",-1).markup="~",e.pos=e.posMax+1,e.posMax=r,!0)},r$2=e=>{e.inline.ruler.after("emphasis","sub",n$2)},t$1=/(^|[^\\])(\\\\)*\s/u,n$1=(e,t)=>{let r=e.posMax,n=e.pos;if(94!==e.src.charCodeAt(n)||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(94===e.src.charCodeAt(e.pos)){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;let o=e.src.slice(n+1,e.pos);return t$1.test(o)?(e.pos=n,!1):(e.posMax=e.pos,e.pos=n+1,e.push("sup_open","sup",1).markup="^",e.push("text","",0).content=o.replace(o$3,"$1"),e.push("sup_close","sup",-1).markup="^",e.pos=e.posMax+1,e.posMax=r,!0)},r$1=e=>{e.inline.ruler.after("emphasis","sup",n$1)},e=(e,t,r)=>{let n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):e.attrs[n]=i},t=(e,t)=>{let r=e[t].level-1;for(let n=t-1;n>=0;n--)if(e[n].level===r)return n;return-1},n=e=>"inline"===e.type,r=e=>"paragraph_open"===e.type,i=e=>"list_item_open"===e.type,a=e=>{let t=e.content;if(t.length<4||91!==t.charCodeAt(0)||93!==t.charCodeAt(2))return!1;let r=t.charCodeAt(3);if(32!==r&&160!==r)return!1;let n=t.charCodeAt(1);return 120===n||88===n?"checked":32===n||160===n},o=(o,{disabled:s=!0,label:u=!0,containerClass:l="task-list-container",itemClass:c="task-list-item",checkboxClass:f="task-list-item-checkbox",labelClass:p="task-list-item-label"}={})=>{o.core.ruler.after("inline","task_list",o=>{let h=o.tokens;o.env.tasklistId||=0;for(let d=2;d<h.length;d++){let g=h[d];if(!n(g)||!r(h[d-1])||!i(h[d-2]))continue;let m=a(g);if(!1===m)continue;g.children??=[],g.children[0].content=g.children[0].content.slice(3);let y="task-item-"+o.env.tasklistId++;if(u){let e=new o.Token("label_open","label",1);e.attrs=[["class",p],["for",y]],g.children.unshift(e),g.children.push(new o.Token("label_close","label",-1))}let b=new o.Token("checkbox_input","input",0);b.attrs=[["type","checkbox"],["class",f],["id",y]],"checked"===m&&b.attrs.push(["checked","checked"]),s&&b.attrs.push(["disabled","disabled"]),g.children.unshift(b),e(h[d-2],"class",c),e(h[t(h,d-2)],"class",l)}return!0})};export{n$8 as a,bufferExports as b,n$6 as c,n$4 as d,e$6 as e,f,t$4 as g,r$3 as h,r$2 as i,r$1 as j,o as k,frontmatterPlugin as l,tocPlugin as m,n$a as n,o$1 as o,p,componentPlugin as q,r$7 as r,sfcPlugin as s,t$8 as t};
1
+ import{g as getAugmentedNamespace,a as getDefaultExportFromCjs}from"./ajv-EW6k27gv.js";import{i as isSpace}from"./markdown-DylCGTps.js";import{r as renderToString,P as ParseError}from"./katex-v7CqoiPP.js";const attr_name="[a-zA-Z_:@][a-zA-Z0-9:._-]*",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"),HTML_SELF_CLOSING_TAG_RE=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/>"),HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+attribute+"*\\s*>.*<\\/\\1\\s*>"),TAGS_BLOCK=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],TAGS_INLINE=["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],TAGS_VUE_RESERVED=["template","component","transition","transition-group","keep-alive","slot","teleport"],createHtmlSequences=({blockTags:e,inlineTags:t})=>{const r=[...e,...TAGS_BLOCK],n=[...t,...TAGS_INLINE.filter(e=>!TAGS_VUE_RESERVED.includes(e))];return[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp("^</?(?!("+n.join("|")+")(?![\\w-]))[A-Za-z][A-Za-z0-9\\-]*(?=(\\s|/?>|$))"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]]},createHtmlBlockRule=e=>{const t=createHtmlSequences(e);return(e,r,n,i)=>{let o,s,a,u=e.bMarks[r]+e.tShift[r],c=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(u))return!1;for(a=e.src.slice(u,c),o=0;o<t.length&&!t[o][0].test(a);o++);if(o===t.length)return!1;if(i)return t[o][2];if(6===o){const t=a.match(HTML_SELF_CLOSING_TAG_RE)??a.match(HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE);if(t){e.line=r+1;let n=e.push("html_inline","",0);return n.content=t[0],n.map=[r,e.line],n=e.push("inline","",0),n.content=a.slice(t[0].length),n.map=[r,e.line],n.children=[],!0}}if(s=r+1,!t[o][1].test(a))for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(u=e.bMarks[s]+e.tShift[s],c=e.eMarks[s],a=e.src.slice(u,c),t[o][1].test(a)){0!==a.length&&s++;break}e.line=s;const l=e.push("html_block","",0);return l.map=[r,s],l.content=e.getLines(r,s,e.blkIndent,!0),!0}},isLetter=e=>{const t=32|e;return t>=97&&t<=122},htmlInlineRule=(e,t)=>{const{pos:r}=e;if(!e.md.options.html)return!1;const n=e.posMax;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!isLetter(i))return!1;const o=e.src.slice(r).match(HTML_TAG_RE);if(!o)return!1;if(!t){e.push("html_inline","",0).content=e.src.slice(r,r+o[0].length)}return e.pos+=o[0].length,!0},componentPlugin=(e,{blockTags:t=[],inlineTags:r=[]}={})=>{const n=createHtmlBlockRule({blockTags:t,inlineTags:r});e.block.ruler.at("html_block",n,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",htmlInlineRule)},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var kindOf,hasRequiredKindOf,isExtendable,hasRequiredIsExtendable,extendShallow,hasRequiredExtendShallow,sectionMatter,hasRequiredSectionMatter;function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var e=Object.prototype.toString;function t(e){return"function"==typeof e.constructor?e.constructor.name:null}return kindOf=function(r){if(void 0===r)return"undefined";if(null===r)return"null";var n=typeof r;if("boolean"===n)return"boolean";if("string"===n)return"string";if("number"===n)return"number";if("symbol"===n)return"symbol";if("function"===n)return"GeneratorFunction"===t(r)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(r))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(r))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(r))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(r))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(r))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(r))return"regexp";switch(t(r)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(r))return"generator";switch(n=e.call(r)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}}function requireIsExtendable(){return hasRequiredIsExtendable?isExtendable:(hasRequiredIsExtendable=1,isExtendable=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)})}function requireExtendShallow(){if(hasRequiredExtendShallow)return extendShallow;hasRequiredExtendShallow=1;var e=requireIsExtendable();function t(e,t){for(var n in t)r(t,n)&&(e[n]=t[n])}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}return extendShallow=function(r){e(r)||(r={});for(var n=arguments.length,i=1;i<n;i++){var o=arguments[i];e(o)&&t(r,o)}return r},extendShallow}function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var e=requireKindOf(),t=requireExtendShallow();function r(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function n(e){return e}return sectionMatter=function(i,o){"function"==typeof o&&(o={parse:o});var s=function(t){"object"!==e(t)&&(t={content:t});if("string"!=typeof t.content&&!function(e){if(e&&e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(t.content))throw new TypeError("expected a buffer or string");return t.content=t.content.toString(),t.sections=[],t}(i),a=t({},{section_delimiter:"---",parse:n},o),u=a.section_delimiter,c=s.content.split(/\r?\n/),l=null,f={key:"",data:"",content:""},p=[],h=[];function d(e){s.content=e,l=[],p=[]}function g(e){h.length&&(f.key=function(e,t){return e?e.slice(t.length).trim():""}(h[0],u),f.content=e,a.parse(f,l),l.push(f),f={key:"",data:"",content:""},p=[],h=[])}for(var m=0;m<c.length;m++){var y=c[m],b=h.length,w=y.trim();if(r(w,u)){if(3===w.length&&0!==m){if(0===b||2===b){p.push(y);continue}h.push(w),f.data=p.join("\n"),p=[];continue}null===l&&d(p.join("\n")),2===b&&g(p.join("\n")),h.push(w)}else p.push(y)}return null===l?d(p.join("\n")):g(p.join("\n")),s.sections=l,s}}var engines={exports:{}},jsYaml$1={},loader={},common={},hasRequiredCommon,exception,hasRequiredException,mark,hasRequiredMark,type,hasRequiredType,schema,hasRequiredSchema,str,hasRequiredStr,seq,hasRequiredSeq,map,hasRequiredMap,failsafe,hasRequiredFailsafe,_null,hasRequired_null,bool,hasRequiredBool,int,hasRequiredInt,float,hasRequiredFloat,json,hasRequiredJson,core,hasRequiredCore,timestamp,hasRequiredTimestamp,merge,hasRequiredMerge,binary,hasRequiredBinary,omap,hasRequiredOmap,pairs,hasRequiredPairs,set,hasRequiredSet,default_safe,hasRequiredDefault_safe,_undefined,hasRequired_undefined,regexp,hasRequiredRegexp,_function,hasRequired_function,default_full,hasRequiredDefault_full,hasRequiredLoader;function requireCommon(){if(hasRequiredCommon)return common;function e(e){return null==e}return hasRequiredCommon=1,common.isNothing=e,common.isObject=function(e){return"object"==typeof e&&null!==e},common.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},common.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},common.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},common.extend=function(e,t){var r,n,i,o;if(t)for(r=0,n=(o=Object.keys(t)).length;r<n;r+=1)e[i=o[r]]=t[i];return e},common}function requireException(){if(hasRequiredException)return exception;function e(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return hasRequiredException=1,e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},exception=e}function requireMark(){if(hasRequiredMark)return mark;hasRequiredMark=1;var e=requireCommon();function t(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}return t.prototype.getSnippet=function(t,r){var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(s));)if((s+=1)-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),e.repeat(" ",t)+n+a+o+"\n"+e.repeat(" ",t+this.position-i+n.length)+"^"},t.prototype.toString=function(e){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(r+=":\n"+t),r},mark=t}function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var e=requireException(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];return type=function(n,i){var o,s;if(i=i||{},Object.keys(i).forEach(function(r){if(-1===t.indexOf(r))throw new e('Unknown option "'+r+'" is met in definition of "'+n+'" YAML type.')}),this.tag=n,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(e){return e},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.defaultStyle=i.defaultStyle||null,this.styleAliases=(o=i.styleAliases||null,s={},null!==o&&Object.keys(o).forEach(function(e){o[e].forEach(function(t){s[String(t)]=e})}),s),-1===r.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}}function requireSchema(){if(hasRequiredSchema)return schema;hasRequiredSchema=1;var e=requireCommon(),t=requireException(),r=requireType();function n(e,t,r){var i=[];return e.include.forEach(function(e){r=n(e,t,r)}),e[t].forEach(function(e){r.forEach(function(t,r){t.tag===e.tag&&t.kind===e.kind&&i.push(r)}),r.push(e)}),r.filter(function(e,t){return-1===i.indexOf(t)})}function i(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}return i.DEFAULT=null,i.create=function(){var n,o;switch(arguments.length){case 1:n=i.DEFAULT,o=arguments[0];break;case 2:n=arguments[0],o=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(n=e.toArray(n),o=e.toArray(o),!n.every(function(e){return e instanceof i}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!o.every(function(e){return e instanceof r}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new i({include:n,explicit:o})},schema=i}function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var e=requireType();return str=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function requireSeq(){if(hasRequiredSeq)return seq;hasRequiredSeq=1;var e=requireType();return seq=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function requireMap(){if(hasRequiredMap)return map;hasRequiredMap=1;var e=requireType();return map=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var e=requireSchema();return failsafe=new e({explicit:[requireStr(),requireSeq(),requireMap()]})}function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var e=requireType();return _null=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})}function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var e=requireType();return bool=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})}function requireInt(){if(hasRequiredInt)return int;hasRequiredInt=1;var e=requireCommon(),t=requireType();function r(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function n(e){return 48<=e&&e<=55}function i(e){return 48<=e&&e<=57}return int=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,o=e.length,s=0,a=!1;if(!o)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===o)return!0;if("b"===(t=e[++s])){for(s++;s<o;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;a=!0}return a&&"_"!==t}if("x"===t){for(s++;s<o;s++)if("_"!==(t=e[s])){if(!r(e.charCodeAt(s)))return!1;a=!0}return a&&"_"!==t}for(;s<o;s++)if("_"!==(t=e[s])){if(!n(e.charCodeAt(s)))return!1;a=!0}return a&&"_"!==t}if("_"===t)return!1;for(;s<o;s++)if("_"!==(t=e[s])){if(":"===t)break;if(!i(e.charCodeAt(s)))return!1;a=!0}return!(!a||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(s)))},construct:function(e){var t,r,n=e,i=1,o=[];return-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n?0:"0"===t?"b"===n[1]?i*parseInt(n.slice(2),2):"x"===n[1]?i*parseInt(n,16):i*parseInt(n,8):-1!==n.indexOf(":")?(n.split(":").forEach(function(e){o.unshift(parseInt(e,10))}),n=0,r=1,o.forEach(function(e){n+=e*r,r*=60}),i*n):i*parseInt(n,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1;var e=requireCommon(),t=requireType(),r=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var n=/^[-+]?[0-9]+e/;return float=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!r.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r,n,i;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),t=0,n=1,i.forEach(function(e){t+=e*n,n*=60}),r*t):r*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,r){var i;if(isNaN(t))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";return i=t.toString(10),n.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"})}function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var e=requireSchema();return json=new e({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]})}function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var e=requireSchema();return core=new e({include:[requireJson()]})}function requireTimestamp(){if(hasRequiredTimestamp)return timestamp;hasRequiredTimestamp=1;var e=requireType(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return timestamp=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==r.exec(e))},construct:function(e){var n,i,o,s,a,u,c,l,f=0,p=null;if(null===(n=t.exec(e))&&(n=r.exec(e)),null===n)throw new Error("Date resolve error");if(i=+n[1],o=+n[2]-1,s=+n[3],!n[4])return new Date(Date.UTC(i,o,s));if(a=+n[4],u=+n[5],c=+n[6],n[7]){for(f=n[7].slice(0,3);f.length<3;)f+="0";f=+f}return n[9]&&(p=6e4*(60*+n[10]+ +(n[11]||0)),"-"===n[9]&&(p=-p)),l=new Date(Date.UTC(i,o,s,a,u,c,f)),p&&l.setTime(l.getTime()-p),l},instanceOf:Date,represent:function(e){return e.toISOString()}})}function requireMerge(){if(hasRequiredMerge)return merge;hasRequiredMerge=1;var e=requireType();return merge=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function requireBinary(){if(hasRequiredBinary)return binary;var e;hasRequiredBinary=1;try{e=commonjsRequire("buffer").Buffer}catch(n){}var t=requireType(),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return binary=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,o=e.length,s=r;for(n=0;n<o;n++)if(!((t=s.indexOf(e.charAt(n)))>64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(t){var n,i,o=t.replace(/[\r\n=]/g,""),s=o.length,a=r,u=0,c=[];for(n=0;n<s;n++)n%4==0&&n&&(c.push(u>>16&255),c.push(u>>8&255),c.push(255&u)),u=u<<6|a.indexOf(o.charAt(n));return 0===(i=s%4*6)?(c.push(u>>16&255),c.push(u>>8&255),c.push(255&u)):18===i?(c.push(u>>10&255),c.push(u>>2&255)):12===i&&c.push(u>>4&255),e?e.from?e.from(c):new e(c):c},predicate:function(t){return e&&e.isBuffer(t)},represent:function(e){var t,n,i="",o=0,s=e.length,a=r;for(t=0;t<s;t++)t%3==0&&t&&(i+=a[o>>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]),o=(o<<8)+e[t];return 0===(n=s%3)?(i+=a[o>>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]):2===n?(i+=a[o>>10&63],i+=a[o>>4&63],i+=a[o<<2&63],i+=a[64]):1===n&&(i+=a[o>>2&63],i+=a[o<<4&63],i+=a[64],i+=a[64]),i}})}function requireOmap(){if(hasRequiredOmap)return omap;hasRequiredOmap=1;var e=requireType(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return omap=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var n,i,o,s,a,u=[],c=e;for(n=0,i=c.length;n<i;n+=1){if(o=c[n],a=!1,"[object Object]"!==r.call(o))return!1;for(s in o)if(t.call(o,s)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==u.indexOf(s))return!1;u.push(s)}return!0},construct:function(e){return null!==e?e:[]}})}function requirePairs(){if(hasRequiredPairs)return pairs;hasRequiredPairs=1;var e=requireType(),t=Object.prototype.toString;return pairs=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var r,n,i,o,s,a=e;for(s=new Array(a.length),r=0,n=a.length;r<n;r+=1){if(i=a[r],"[object Object]"!==t.call(i))return!1;if(1!==(o=Object.keys(i)).length)return!1;s[r]=[o[0],i[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}})}function requireSet(){if(hasRequiredSet)return set;hasRequiredSet=1;var e=requireType(),t=Object.prototype.hasOwnProperty;return set=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var r,n=e;for(r in n)if(t.call(n,r)&&null!==n[r])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function requireDefault_safe(){if(hasRequiredDefault_safe)return default_safe;hasRequiredDefault_safe=1;var e=requireSchema();return default_safe=new e({include:[requireCore()],implicit:[requireTimestamp(),requireMerge()],explicit:[requireBinary(),requireOmap(),requirePairs(),requireSet()]})}function require_undefined(){if(hasRequired_undefined)return _undefined;hasRequired_undefined=1;var e=requireType();return _undefined=new e("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})}function requireRegexp(){if(hasRequiredRegexp)return regexp;hasRequiredRegexp=1;var e=requireType();return regexp=new e("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if("/"===t[0]){if(r&&(n=r[1]),n.length>3)return!1;if("/"!==t[t.length-n.length-1])return!1}return!0},construct:function(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})}function require_function(){if(hasRequired_function)return _function;var e;hasRequired_function=1;try{e=commonjsRequire("esprima")}catch(r){"undefined"!=typeof window&&(e=window.esprima)}var t=requireType();return _function=new t("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(t){if(null===t)return!1;try{var r="("+t+")",n=e.parse(r,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(i){return!1}},construct:function(t){var r,n="("+t+")",i=e.parse(n,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){o.push(e.name)}),r=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,n.slice(r[0]+1,r[1]-1)):new Function(o,"return "+n.slice(r[0],r[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})}function requireDefault_full(){if(hasRequiredDefault_full)return default_full;hasRequiredDefault_full=1;var e=requireSchema();return default_full=e.DEFAULT=new e({include:[requireDefault_safe()],explicit:[require_undefined(),requireRegexp(),require_function()]})}function requireLoader(){if(hasRequiredLoader)return loader;hasRequiredLoader=1;var e=requireCommon(),t=requireException(),r=requireMark(),n=requireDefault_safe(),i=requireDefault_full(),o=Object.prototype.hasOwnProperty,s=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/[\x85\u2028\u2029]/,u=/[,\[\]\{\}]/,c=/^(?:!|!!|![a-z\-]+!)$/i,l=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function f(e){return Object.prototype.toString.call(e)}function p(e){return 10===e||13===e}function h(e){return 9===e||32===e}function d(e){return 9===e||32===e||10===e||13===e}function g(e){return 44===e||91===e||93===e||123===e||125===e}function m(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function y(e){return 120===e?2:117===e?4:85===e?8:0}function b(e){return 48<=e&&e<=57?e-48:-1}function w(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function A(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function E(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var q=new Array(256),k=new Array(256),v=0;v<256;v++)q[v]=w(v)?1:0,k[v]=w(v);function x(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function _(e,n){return new t(n,new r(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function S(e,t){throw _(e,t)}function R(e,t){e.onWarning&&e.onWarning.call(null,_(e,t))}var C={YAML:function(e,t,r){var n,i,o;null!==e.version&&S(e,"duplication of %YAML directive"),1!==r.length&&S(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&S(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&S(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&R(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;2!==r.length&&S(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],c.test(n)||S(e,"ill-formed tag handle (first argument) of the TAG directive"),o.call(e.tagMap,n)&&S(e,'there is a previously declared suffix for "'+n+'" tag handle'),l.test(i)||S(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function T(e,t,r,n){var i,o,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,o=u.length;i<o;i+=1)9===(a=u.charCodeAt(i))||32<=a&&a<=1114111||S(e,"expected valid JSON character");else s.test(u)&&S(e,"the stream contains non-printable characters");e.result+=u}}function I(t,r,n,i){var s,a,u,c;for(e.isObject(n)||S(t,"cannot merge mappings; the provided source object is unacceptable"),u=0,c=(s=Object.keys(n)).length;u<c;u+=1)a=s[u],o.call(r,a)||(E(r,a,n[a]),i[a]=!0)}function B(e,t,r,n,i,s,a,u){var c,l;if(Array.isArray(i))for(c=0,l=(i=Array.prototype.slice.call(i)).length;c<l;c+=1)Array.isArray(i[c])&&S(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===f(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===f(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)I(e,t,s[c],r);else I(e,t,s,r);else e.json||o.call(r,i)||!o.call(t,i)||(e.line=a||e.line,e.position=u||e.position,S(e,"duplicated mapping key")),E(t,i,s),delete r[i];return t}function O(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):S(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function j(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;h(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!p(i))break;for(O(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&R(e,"deficient indentation"),n}function $(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!d(t)))}function M(t,r){1===r?t.result+=" ":r>1&&(t.result+=e.repeat("\n",r-1))}function L(e,t){var r,n,i=e.tag,o=e.anchor,s=[],a=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);0!==n&&45===n&&d(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,j(e,!0,-1)&&e.lineIndent<=t)s.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,U(e,t,3,!1,!0),s.push(e.result),j(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)S(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=s,!0)}function F(e){var t,r,n,i,s=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&S(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(s=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,r="!!",i=e.input.charCodeAt(++e.position)):r="!",t=e.position,s){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(n=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):S(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!d(i);)33===i&&(a?S(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),c.test(r)||S(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),u.test(n)&&S(e,"tag suffix cannot contain flow indicator characters")}return n&&!l.test(n)&&S(e,"tag name cannot contain such characters: "+n),s?e.tag=n:o.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:S(e,'undeclared tag handle "'+r+'"'),!0}function N(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&S(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!d(r)&&!g(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&S(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function U(t,r,n,i,s){var a,u,c,l,f,w,E,v,x=1,_=!1,R=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=u=c=4===n||3===n,i&&j(t,!0,-1)&&(_=!0,t.lineIndent>r?x=1:t.lineIndent===r?x=0:t.lineIndent<r&&(x=-1)),1===x)for(;F(t)||N(t);)j(t,!0,-1)?(_=!0,c=a,t.lineIndent>r?x=1:t.lineIndent===r?x=0:t.lineIndent<r&&(x=-1)):c=!1;if(c&&(c=_||s),1!==x&&4!==n||(E=1===n||2===n?r:r+1,v=t.position-t.lineStart,1===x?c&&(L(t,v)||function(e,t,r){var n,i,o,s,a,u=e.tag,c=e.anchor,l={},f={},p=null,g=null,m=null,y=!1,b=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=l),a=e.input.charCodeAt(e.position);0!==a;){if(n=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,63!==a&&58!==a||!d(n)){if(!U(e,r,2,!1,!0))break;if(e.line===o){for(a=e.input.charCodeAt(e.position);h(a);)a=e.input.charCodeAt(++e.position);if(58===a)d(a=e.input.charCodeAt(++e.position))||S(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(B(e,l,f,p,g,null),p=g=m=null),b=!0,y=!1,i=!1,p=e.tag,g=e.result;else{if(!b)return e.tag=u,e.anchor=c,!0;S(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=c,!0;S(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===a?(y&&(B(e,l,f,p,g,null),p=g=m=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):S(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,a=n;if((e.line===o||e.lineIndent>t)&&(U(e,t,4,!0,i)&&(y?g=e.result:m=e.result),y||(B(e,l,f,p,g,m,o,s),p=g=m=null),j(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)S(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&B(e,l,f,p,g,null),b&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),b}(t,v,E))||function(e,t){var r,n,i,o,s,a,u,c,l,f,p=!0,h=e.tag,g=e.anchor,m={};if(91===(f=e.input.charCodeAt(e.position)))i=93,a=!1,n=[];else{if(123!==f)return!1;i=125,a=!0,n={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=n),f=e.input.charCodeAt(++e.position);0!==f;){if(j(e,!0,t),(f=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=h,e.anchor=g,e.kind=a?"mapping":"sequence",e.result=n,!0;p||S(e,"missed comma between flow collection entries"),l=null,o=s=!1,63===f&&d(e.input.charCodeAt(e.position+1))&&(o=s=!0,e.position++,j(e,!0,t)),r=e.line,U(e,t,1,!1,!0),c=e.tag,u=e.result,j(e,!0,t),f=e.input.charCodeAt(e.position),!s&&e.line!==r||58!==f||(o=!0,f=e.input.charCodeAt(++e.position),j(e,!0,t),U(e,t,1,!1,!0),l=e.result),a?B(e,n,m,c,u,l):o?n.push(B(e,null,m,c,u,l)):n.push(u),j(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(p=!0,f=e.input.charCodeAt(++e.position)):p=!1}S(e,"unexpected end of the stream within a flow collection")}(t,E)?R=!0:(u&&function(t,r){var n,i,o,s,a=1,u=!1,c=!1,l=r,f=0,d=!1;if(124===(s=t.input.charCodeAt(t.position)))i=!1;else{if(62!==s)return!1;i=!0}for(t.kind="scalar",t.result="";0!==s;)if(43===(s=t.input.charCodeAt(++t.position))||45===s)1===a?a=43===s?3:2:S(t,"repeat of a chomping mode identifier");else{if(!((o=b(s))>=0))break;0===o?S(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?S(t,"repeat of an indentation width identifier"):(l=r+o-1,c=!0)}if(h(s)){do{s=t.input.charCodeAt(++t.position)}while(h(s));if(35===s)do{s=t.input.charCodeAt(++t.position)}while(!p(s)&&0!==s)}for(;0!==s;){for(O(t),t.lineIndent=0,s=t.input.charCodeAt(t.position);(!c||t.lineIndent<l)&&32===s;)t.lineIndent++,s=t.input.charCodeAt(++t.position);if(!c&&t.lineIndent>l&&(l=t.lineIndent),p(s))f++;else{if(t.lineIndent<l){3===a?t.result+=e.repeat("\n",u?1+f:f):1===a&&u&&(t.result+="\n");break}for(i?h(s)?(d=!0,t.result+=e.repeat("\n",u?1+f:f)):d?(d=!1,t.result+=e.repeat("\n",f+1)):0===f?u&&(t.result+=" "):t.result+=e.repeat("\n",f):t.result+=e.repeat("\n",u?1+f:f),u=!0,c=!0,f=0,n=t.position;!p(s)&&0!==s;)s=t.input.charCodeAt(++t.position);T(t,n,t.position,!1)}}return!0}(t,E)||function(e,t){var r,n,i;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(T(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,i=e.position}else p(r)?(T(e,n,i,!0),M(e,j(e,!1,t)),n=i=e.position):e.position===e.lineStart&&$(e)?S(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);S(e,"unexpected end of the stream within a single quoted scalar")}(t,E)||function(e,t){var r,n,i,o,s,a;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return T(e,r,e.position,!0),e.position++,!0;if(92===a){if(T(e,r,e.position,!0),p(a=e.input.charCodeAt(++e.position)))j(e,!1,t);else if(a<256&&q[a])e.result+=k[a],e.position++;else if((s=y(a))>0){for(i=s,o=0;i>0;i--)(s=m(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:S(e,"expected hexadecimal character");e.result+=A(o),e.position++}else S(e,"unknown escape sequence");r=n=e.position}else p(a)?(T(e,r,n,!0),M(e,j(e,!1,t)),r=n=e.position):e.position===e.lineStart&&$(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}S(e,"unexpected end of the stream within a double quoted scalar")}(t,E)?R=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!d(n)&&!g(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&S(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),o.call(e.anchorMap,r)||S(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],j(e,!0,-1),!0}(t)?function(e,t,r){var n,i,o,s,a,u,c,l,f=e.kind,m=e.result;if(d(l=e.input.charCodeAt(e.position))||g(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(d(n=e.input.charCodeAt(e.position+1))||r&&g(n)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;0!==l;){if(58===l){if(d(n=e.input.charCodeAt(e.position+1))||r&&g(n))break}else if(35===l){if(d(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&$(e)||r&&g(l))break;if(p(l)){if(a=e.line,u=e.lineStart,c=e.lineIndent,j(e,!1,-1),e.lineIndent>=t){s=!0,l=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=u,e.lineIndent=c;break}}s&&(T(e,i,o,!1),M(e,e.line-a),i=o=e.position,s=!1),h(l)||(o=e.position+1),l=e.input.charCodeAt(++e.position)}return T(e,i,o,!1),!!e.result||(e.kind=f,e.result=m,!1)}(t,E,1===n)&&(R=!0,null===t.tag&&(t.tag="?")):(R=!0,null===t.tag&&null===t.anchor||S(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===x&&(R=c&&L(t,v))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&S(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,f=t.implicitTypes.length;l<f;l+=1)if((w=t.implicitTypes[l]).resolve(t.result)){t.result=w.construct(t.result),t.tag=w.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else o.call(t.typeMap[t.kind||"fallback"],t.tag)?(w=t.typeMap[t.kind||"fallback"][t.tag],null!==t.result&&w.kind!==t.kind&&S(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+w.kind+'", not "'+t.kind+'"'),w.resolve(t.result)?(t.result=w.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):S(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):S(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||R}function D(e){var t,r,n,i,s=e.position,u=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(j(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(u=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!d(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&S(e,"directive name must not be less than one character in length");0!==i;){for(;h(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!p(i));break}if(p(i))break;for(t=e.position;0!==i&&!d(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&O(e),o.call(C,r)?C[r](e,r,n):R(e,'unknown document directive "'+r+'"')}j(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,j(e,!0,-1)):u&&S(e,"directives end mark is expected"),U(e,e.lineIndent-1,4,!1,!0),j(e,!0,-1),e.checkLineBreaks&&a.test(e.input.slice(s,e.position))&&R(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&$(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,j(e,!0,-1)):e.position<e.length-1&&S(e,"end of the stream or a document separator is expected")}function P(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new x(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,S(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)D(r);return r.documents}function Y(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=P(e,r);if("function"!=typeof t)return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function G(e,r){var n=P(e,r);if(0!==n.length){if(1===n.length)return n[0];throw new t("expected a single document in the stream, but found more")}}return loader.loadAll=Y,loader.load=G,loader.safeLoadAll=function(t,r,i){return"object"==typeof r&&null!==r&&void 0===i&&(i=r,r=null),Y(t,r,e.extend({schema:n},i))},loader.safeLoad=function(t,r){return G(t,e.extend({schema:n},r))},loader}var dumper={},hasRequiredDumper,hasRequiredJsYaml$1,jsYaml,hasRequiredJsYaml,hasRequiredEngines;function requireDumper(){if(hasRequiredDumper)return dumper;hasRequiredDumper=1;var e=requireCommon(),t=requireException(),r=requireDefault_full(),n=requireDefault_safe(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},a=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function u(r){var n,i,o;if(n=r.toString(16).toUpperCase(),r<=255)i="x",o=2;else if(r<=65535)i="u",o=4;else{if(!(r<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");i="U",o=8}return"\\"+i+e.repeat("0",o-n.length)+n}function c(t){this.schema=t.schema||r,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){var r,n,i,s,a,u,c;if(null===t)return{};for(r={},i=0,s=(n=Object.keys(t)).length;i<s;i+=1)a=n[i],u=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&o.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function l(t,r){for(var n,i=e.repeat(" ",r),o=0,s=-1,a="",u=t.length;o<u;)-1===(s=t.indexOf("\n",o))?(n=t.slice(o),o=u):(n=t.slice(o,s+1),o=s+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function f(t,r){return"\n"+e.repeat(" ",t.indent*r)}function p(e){return 32===e||9===e}function h(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function d(e,t){return h(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&function(e){return h(e)&&!p(e)&&65279!==e&&13!==e&&10!==e}(t))}function g(e){return/^\n* /.test(e)}function m(e,t,r,n,i){var o,s,a,u,c=!1,l=!1,f=-1!==n,m=-1,y=h(u=e.charCodeAt(0))&&65279!==u&&!p(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&!p(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!h(s=e.charCodeAt(o)))return 5;a=o>0?e.charCodeAt(o-1):null,y=y&&d(s,a)}else{for(o=0;o<e.length;o++){if(10===(s=e.charCodeAt(o)))c=!0,f&&(l=l||o-m-1>n&&" "!==e[m+1],m=o);else if(!h(s))return 5;a=o>0?e.charCodeAt(o-1):null,y=y&&d(s,a)}l=l||f&&o-m-1>n&&" "!==e[m+1]}return c||l?r>9&&g(e)?5:l?4:3:y&&!i(e)?1:2}function y(e,r,n,i){e.dump=function(){if(0===r.length)return"''";if(!e.noCompatMode&&-1!==a.indexOf(r))return"'"+r+"'";var o=e.indent*Math.max(1,n),c=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),f=i||e.flowLevel>-1&&n>=e.flowLevel;switch(m(r,f,e.indent,c,function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)})){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+b(r,e.indent)+w(l(r,o));case 4:return">"+b(r,e.indent)+w(l(function(e,t){var r,n,i=/(\n+)([^\n]*)/g,o=(a=e.indexOf("\n"),a=-1!==a?a:e.length,i.lastIndex=a,A(e.slice(0,a),t)),s="\n"===e[0]||" "===e[0];var a;for(;n=i.exec(e);){var u=n[1],c=n[2];r=" "===c[0],o+=u+(s||r||""===c?"":"\n")+A(c,t),s=r}return o}(r,c),o));case 5:return'"'+function(e){for(var t,r,n,i="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(r=e.charCodeAt(o+1))>=56320&&r<=57343?(i+=u(1024*(t-55296)+r-56320+65536),o++):i+=!(n=s[t])&&h(t)?e[o]:n||u(t);return i}(r)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function b(e,t){var r=g(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function w(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function A(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,u="";r=i.exec(e);)(a=r.index)-o>t&&(n=s>o?s:a,u+="\n"+e.slice(o,n),o=n+1),s=a;return u+="\n",e.length-o>t&&s>o?u+=e.slice(o,s)+"\n"+e.slice(s+1):u+=e.slice(o),u.slice(1)}function E(e,r,n){var s,a,u,c,l,f;for(u=0,c=(a=n?e.explicitTypes:e.implicitTypes).length;u<c;u+=1)if(((l=a[u]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof r&&r instanceof l.instanceOf)&&(!l.predicate||l.predicate(r))){if(e.tag=n?l.tag:"?",l.represent){if(f=e.styleMap[l.tag]||l.defaultStyle,"[object Function]"===i.call(l.represent))s=l.represent(r,f);else{if(!o.call(l.represent,f))throw new t("!<"+l.tag+'> tag resolver accepts not "'+f+'" style');s=l.represent[f](r,f)}e.dump=s}return!0}return!1}function q(e,r,n,o,s,a){e.tag=null,e.dump=n,E(e,n,!1)||E(e,n,!0);var u=i.call(e.dump);o&&(o=e.flowLevel<0||e.flowLevel>r);var c,l,p="[object Object]"===u||"[object Array]"===u;if(p&&(l=-1!==(c=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||l||2!==e.indent&&r>0)&&(s=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(p&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),"[object Object]"===u)o&&0!==Object.keys(e.dump).length?(!function(e,r,n,i){var o,s,a,u,c,l,p="",h=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(o=0,s=d.length;o<s;o+=1)l="",i&&0===o||(l+=f(e,r)),u=n[a=d[o]],q(e,r+1,a,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=f(e,r)),q(e,r+1,u,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?l+=":":l+=": ",p+=l+=e.dump));e.tag=h,e.dump=p||"{}"}(e,r,e.dump,s),l&&(e.dump="&ref_"+c+e.dump)):(!function(e,t,r){var n,i,o,s,a,u="",c=e.tag,l=Object.keys(r);for(n=0,i=l.length;n<i;n+=1)a="",0!==n&&(a+=", "),e.condenseFlow&&(a+='"'),s=r[o=l[n]],q(e,t,o,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),q(e,t,s,!1,!1)&&(u+=a+=e.dump));e.tag=c,e.dump="{"+u+"}"}(e,r,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if("[object Array]"===u){var h=e.noArrayIndent&&r>0?r-1:r;o&&0!==e.dump.length?(!function(e,t,r,n){var i,o,s="",a=e.tag;for(i=0,o=r.length;i<o;i+=1)q(e,t+1,r[i],!0,!0)&&(n&&0===i||(s+=f(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=a,e.dump=s||"[]"}(e,h,e.dump,s),l&&(e.dump="&ref_"+c+e.dump)):(!function(e,t,r){var n,i,o="",s=e.tag;for(n=0,i=r.length;n<i;n+=1)q(e,t,r[n],!1,!1)&&(0!==n&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}(e,h,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else{if("[object String]"!==u){if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+u)}"?"!==e.tag&&y(e,e.dump,r,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function k(e,t){var r,n,i=[],o=[];for(v(e,i,o),r=0,n=o.length;r<n;r+=1)t.duplicates.push(i[o[r]]);t.usedDuplicates=new Array(n)}function v(e,t,r){var n,i,o;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)v(e[i],t,r);else for(i=0,o=(n=Object.keys(e)).length;i<o;i+=1)v(e[n[i]],t,r)}function x(e,t){var r=new c(t=t||{});return r.noRefs||k(e,r),q(r,0,e,!0,!0)?r.dump+"\n":""}return dumper.dump=x,dumper.safeDump=function(t,r){return x(t,e.extend({schema:n},r))},dumper}function requireJsYaml$1(){if(hasRequiredJsYaml$1)return jsYaml$1;hasRequiredJsYaml$1=1;var e=requireLoader(),t=requireDumper();function r(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}return jsYaml$1.Type=requireType(),jsYaml$1.Schema=requireSchema(),jsYaml$1.FAILSAFE_SCHEMA=requireFailsafe(),jsYaml$1.JSON_SCHEMA=requireJson(),jsYaml$1.CORE_SCHEMA=requireCore(),jsYaml$1.DEFAULT_SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_FULL_SCHEMA=requireDefault_full(),jsYaml$1.load=e.load,jsYaml$1.loadAll=e.loadAll,jsYaml$1.safeLoad=e.safeLoad,jsYaml$1.safeLoadAll=e.safeLoadAll,jsYaml$1.dump=t.dump,jsYaml$1.safeDump=t.safeDump,jsYaml$1.YAMLException=requireException(),jsYaml$1.MINIMAL_SCHEMA=requireFailsafe(),jsYaml$1.SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_SCHEMA=requireDefault_full(),jsYaml$1.scan=r("scan"),jsYaml$1.parse=r("parse"),jsYaml$1.compose=r("compose"),jsYaml$1.addConstructor=r("addConstructor"),jsYaml$1}function requireJsYaml(){if(hasRequiredJsYaml)return jsYaml;hasRequiredJsYaml=1;var e=requireJsYaml$1();return jsYaml=e}function requireEngines(){return hasRequiredEngines||(hasRequiredEngines=1,function(module,exports$1){const yaml=requireJsYaml(),engines=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const r=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,r.replacer,r.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(err){if(!1!==wrap&&/(unexpected|identifier)/i.test(err.message))return parse(str,options,!1);throw new SyntaxError(err)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}}(engines)),engines.exports}var buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=function(e){var t=o(e),r=t[0],n=t[1];return 3*(r+n)/4-n},base64Js.toByteArray=function(e){var n,i,s=o(e),a=s[0],u=s[1],c=new r(function(e,t,r){return 3*(t+r)/4-r}(0,a,u)),l=0,f=u>0?a-4:a;for(i=0;i<f;i+=4)n=t[e.charCodeAt(i)]<<18|t[e.charCodeAt(i+1)]<<12|t[e.charCodeAt(i+2)]<<6|t[e.charCodeAt(i+3)],c[l++]=n>>16&255,c[l++]=n>>8&255,c[l++]=255&n;2===u&&(n=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,c[l++]=255&n);1===u&&(n=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,c[l++]=n>>8&255,c[l++]=255&n);return c},base64Js.fromByteArray=function(t){for(var r,n=t.length,i=n%3,o=[],s=16383,u=0,c=n-i;u<c;u+=s)o.push(a(t,u,u+s>c?c:u+s));1===i?(r=t[n-1],o.push(e[r>>2]+e[r<<4&63]+"==")):2===i&&(r=(t[n-2]<<8)+t[n-1],o.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"="));return o.join("")};for(var e=[],t=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function s(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function a(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(n));return i.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,base64Js}var ieee754={},hasRequiredIeee754,hasRequiredBuffer;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?i-1:0,p=r?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=c}return(h?-1:1)*s*Math.pow(2,o-n)},ieee754.write=function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+h]=255&s,h+=d,s/=256,c-=8);e[r+h-d]|=128*g}),ieee754}function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(e){const t=requireBase64Js(),r=requireIeee754(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|h(e,t);let n=o(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(z(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);const i=function(e){if(s.isBuffer(e)){const t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Z(e.length)?o(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|p(e))}function l(e){const t=e.length<0?0:0|p(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,s.prototype),n}function p(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return S(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return-1}function b(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(Z(n))return s;e[r+s]=n}return s}function w(e,t,r,n){return H(G(t,e.length-r),e,r,n)}function A(e,t,r,n){return H(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function E(e,t,r,n){return H(J(t),e,r,n)}function q(e,t,r,n){return H(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function k(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function v(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=x));return r}(n)}e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return a(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),z(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=s.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(z(t,Uint8Array))i+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?v(this,0,e):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const u=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r);for(let s=0;s<u;++s)if(c[s]!==l[s]){o=c[s],a=l[s];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return A(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function _(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function S(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function R(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=K[e[o]];return i}function C(e,t,r){const n=e.slice(t,r);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function B(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function O(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $(e,t,n,i,o){return t=+t,n>>>=0,o||j(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function M(e,t,n,i,o){return t=+t,n>>>=0,o||j(e,0,n,8),r.write(e,t,n,i,52,8),n+8}s.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=W(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=W(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=W(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),s.prototype.readBigInt64BE=W(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=W(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=W(function(e,t=0){return O(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=W(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=W(function(e,t=0){return O(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return $(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return $(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=s.isBuffer(e)?e:s.from(e,n),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const L={};function F(e,t,r){L[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function N(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,n,i,o){if(e>r||e<t){const r="bigint"==typeof t?"n":"";let n;throw n=0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`,new L.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){D(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||P(t,e.length-(r+1))}(n,i,o)}function D(e,t){if("number"!=typeof e)throw new L.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw D(e,r),new L.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new L.ERR_BUFFER_OUT_OF_BOUNDS;throw new L.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=N(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=N(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function J(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const K=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function W(e){return"undefined"==typeof BigInt?V:e}function V(){throw new Error("BigInt not supported")}}(buffer)),buffer}var bufferExports=requireBuffer(),utils={},stripBomString,hasRequiredStripBomString,hasRequiredUtils,defaults,hasRequiredDefaults,engine,hasRequiredEngine,stringify,hasRequiredStringify,excerpt,hasRequiredExcerpt,toFile,hasRequiredToFile,parse,hasRequiredParse,grayMatter$1,hasRequiredGrayMatter;function requireStripBomString(){return hasRequiredStripBomString?stripBomString:(hasRequiredStripBomString=1,stripBomString=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e})}function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,function(e){const t=requireStripBomString(),r=requireKindOf();e.define=function(e,t,r){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:r})},e.isBuffer=function(e){return"buffer"===r(e)},e.isObject=function(e){return"object"===r(e)},e.toBuffer=function(e){return"string"==typeof e?bufferExports.Buffer.from(e):e},e.toString=function(r){if(e.isBuffer(r))return t(String(r));if("string"!=typeof r)throw new TypeError("expected input to be a string or buffer");return t(r)},e.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},e.startsWith=function(e,t,r){return"number"!=typeof r&&(r=t.length),e.slice(0,r)===t}}(utils)),utils}function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const e=requireEngines(),t=requireUtils();return defaults=function(r){const n=Object.assign({},r);return n.delimiters=t.arrayify(n.delims||n.delimiters||"---"),1===n.delimiters.length&&n.delimiters.push(n.delimiters[0]),n.language=(n.language||n.lang||"yaml").toLowerCase(),n.engines=Object.assign({},e,n.parsers,n.engines),n}}function requireEngine(){if(hasRequiredEngine)return engine;return hasRequiredEngine=1,engine=function(e,t){let r=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===r)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof r&&(r={parse:r}),r}}function requireStringify(){if(hasRequiredStringify)return stringify;hasRequiredStringify=1;const e=requireKindOf(),t=requireEngine(),r=requireDefaults();function n(e){return"\n"!==e.slice(-1)?e+"\n":e}return stringify=function(i,o,s){if(null==o&&null==s)switch(e(i)){case"object":o=i.data,s={};break;case"string":return i;default:throw new TypeError("expected file to be a string or object")}const a=i.content,u=r(s);if(null==o){if(!u.data)return i;o=u.data}const c=i.language||u.language,l=t(c,u);if("function"!=typeof l.stringify)throw new TypeError('expected "'+c+'.stringify" to be a function');o=Object.assign({},i.data,o);const f=u.delimiters[0],p=u.delimiters[1],h=l.stringify(o,s).trim();let d="";return"{}"!==h&&(d=n(f)+n(h)+n(p)),"string"==typeof i.excerpt&&""!==i.excerpt&&-1===a.indexOf(i.excerpt.trim())&&(d+=n(i.excerpt)+n(p)),d+n(a)}}function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const e=requireDefaults();return excerpt=function(t,r){const n=e(r);if(null==t.data&&(t.data={}),"function"==typeof n.excerpt)return n.excerpt(t,n);const i=t.data.excerpt_separator||n.excerpt_separator;if(null==i&&(!1===n.excerpt||null==n.excerpt))return t;const o="string"==typeof n.excerpt?n.excerpt:i||n.delimiters[0],s=t.content.indexOf(o);return-1!==s&&(t.excerpt=t.content.slice(0,s)),t}}function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const e=requireKindOf(),t=requireStringify(),r=requireUtils();return toFile=function(n){return"object"!==e(n)&&(n={content:n}),"object"!==e(n.data)&&(n.data={}),n.contents&&null==n.content&&(n.content=n.contents),r.define(n,"orig",r.toBuffer(n.content)),r.define(n,"language",n.language||""),r.define(n,"matter",n.matter||""),r.define(n,"stringify",function(e,r){return r&&r.language&&(n.language=r.language),t(n,e,r)}),n.content=r.toString(n.content),n.isEmpty=!1,n.excerpt="",n}}function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;const e=requireEngine(),t=requireDefaults();return parse=function(r,n,i){const o=t(i),s=e(r,o);if("function"!=typeof s.parse)throw new TypeError('expected "'+r+'.parse" to be a function');return s.parse(n,o)}}function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter$1;hasRequiredGrayMatter=1;const e=require$$0,t=requireSectionMatter(),r=requireDefaults(),n=requireStringify(),i=requireExcerpt(),o=requireEngines(),s=requireToFile(),a=requireParse(),u=requireUtils();function c(e,n){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let o=s(e);const l=c.cache[o.content];if(!n){if(l)return o=Object.assign({},l),o.orig=l.orig,o;c.cache[o.content]=o}return function(e,n){const o=r(n),s=o.delimiters[0],l="\n"+o.delimiters[1];let f=e.content;o.language&&(e.language=o.language);const p=s.length;if(!u.startsWith(f,s,p))return i(e,o),e;if(f.charAt(p)===s.slice(-1))return e;f=f.slice(p);const h=f.length,d=c.language(f,o);d.name&&(e.language=d.name,f=f.slice(d.raw.length));let g=f.indexOf(l);-1===g&&(g=h);e.matter=f.slice(0,g);const m=e.matter.replace(/^\s*#[^\n]+/gm,"").trim();""===m?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=a(e.language,e.matter,o);g===h?e.content="":(e.content=f.slice(g+l.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1)));i(e,o),(!0===o.sections||"function"==typeof o.section)&&t(e,o.section);return e}(o,n)}return c.engines=o,c.stringify=function(e,t,r){return"string"==typeof e&&(e=c(e,r)),n(e,t,r)},c.read=function(t,r){const n=c(e.readFileSync(t,"utf8"),r);return n.path=t,n},c.test=function(e,t){return u.startsWith(e,r(t).delimiters[0])},c.language=function(e,t){const n=r(t).delimiters[0];c.test(e)&&(e=e.slice(n.length));const i=e.slice(0,e.search(/\r?\n/));return{raw:i,name:i?i.trim():""}},c.cache={},c.clearCache=function(){c.cache={}},grayMatter$1=c}var grayMatterExports=requireGrayMatter();const grayMatter=getDefaultExportFromCjs(grayMatterExports),frontmatterPlugin=(e,{grayMatterOptions:t,renderExcerpt:r=!0}={})=>{const n=e.parse.bind(e);e.parse=(i,o={})=>{const{data:s,content:a,excerpt:u=""}=grayMatter(i,t);return o.content=a,o.frontmatter={...o.frontmatter,...s},o.excerpt=r&&u?e.render(u,{...o}):u,n(a,o)}},TAG_NAME_SCRIPT="script",TAG_NAME_STYLE="style",TAG_NAME_TEMPLATE="template",SCRIPT_SETUP_TAG_OPEN_REGEXP=/^<script\s+.*?\bsetup\b.*?>$/is,createSfcRegexp=({customBlocks:e})=>{const t=Array.from(new Set([TAG_NAME_SCRIPT,TAG_NAME_STYLE,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},sfcPlugin=(e,{customBlocks:t=[]}={})=>{const r=createSfcRegexp({customBlocks:t}),n=e.render.bind(e);e.render=(e,t={})=>{t.sfcBlocks={template:null,script:null,scriptSetup:null,scripts:[],styles:[],customBlocks:[]};const r=n(e,t);return t.sfcBlocks.template={type:TAG_NAME_TEMPLATE,content:`<${TAG_NAME_TEMPLATE}>${r}</${TAG_NAME_TEMPLATE}>`,contentStripped:r,tagOpen:`<${TAG_NAME_TEMPLATE}>`,tagClose:`</${TAG_NAME_TEMPLATE}>`},r};const i=e.renderer.rules.html_block;e.renderer.rules.html_block=(e,t,n,o,s)=>{if(!o.sfcBlocks)return i(e,t,n,o,s);const a=e[t].content.match(r);if(!a)return i(e,t,n,o,s);const u=a.groups;return u.type===TAG_NAME_SCRIPT?(o.sfcBlocks.scripts.push(u),SCRIPT_SETUP_TAG_OPEN_REGEXP.test(u.tagOpen)?o.sfcBlocks.scriptSetup=u:o.sfcBlocks.script=u):u.type===TAG_NAME_STYLE?o.sfcBlocks.styles.push(u):o.sfcBlocks.customBlocks.push(u),""}},htmlEscapeMap={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},htmlEscapeRegexp=/[&<>'"]/g,htmlEscape=e=>e.replace(htmlEscapeRegexp,e=>htmlEscapeMap[e]),resolveTitleFromToken=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{const n=e.children??[],i=["text","emoji","code_inline"];i.push("html_inline");return n.filter(e=>i.includes(e.type)&&!e.meta?.isPermalinkSymbol).reduce((e,t)=>"code_inline"===t.type||"text"===t.type?`${e}${htmlEscape(t.content)}`:`${e}${t.content}`,"").trim()},resolveHeadersFromTokens=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:i,slugify:o,format:s})=>{const a=[],u=[],c=e=>{for(;0!==u.length&&e.level<=u[0].level;)u.shift();0===u.length?(a.push(e),u.push(e)):(u[0].children.push(e),u.unshift(e))};for(let l=0;l<e.length;l+=1){const a=e[l];if("heading_open"!==a.type)continue;if(0!==a.level&&!n)continue;const u=Number.parseInt(a.tag.slice(1),10);if(!t.includes(u))continue;const f=e[l+1];if(!f)continue;const p=resolveTitleFromToken(f,{shouldAllowHtml:r,shouldEscapeText:i}),h=a.attrGet("id")??o(p);c({level:u,title:s?.(p)??p,slug:h,link:`#${h}`,children:[]})}return a},rControl=/[\u0000-\u001f]/g,rSpecial=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,rCombining=/[\u0300-\u036F]/g,slugify=e=>e.normalize("NFKD").replace(rCombining,"").replace(rControl,"").replace(rSpecial,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase(),createRenderHeaders=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:i})=>{const o=htmlEscape(e),s=t?` class="${htmlEscape(t)}"`:"",a=r?` class="${htmlEscape(r)}"`:"",u=htmlEscape(n),c=i?` class="${htmlEscape(i)}"`:"",l=e=>`<${o}${s}>${e.map(e=>{return`<li${a}><${u}${c}${t=e.link,"router-link"===n?` to="${t}"`:` href="${t}"`}>${e.title}</${u}>${e.children.length>0?l(e.children):""}</li>`;var t}).join("")}</${o}>`;return l},createTocBlockRule=({pattern:e,containerTag:t,containerClass:r})=>(n,i,o,s)=>{if(n.sCount[i]-n.blkIndent>=4)return!1;const a=n.bMarks[i]+n.tShift[i],u=n.eMarks[i],c=n.src.slice(a,u).split(" ")[0];if(!e.test(c))return!1;if(s)return!0;n.line=i+1;const l=n.push("toc_open",t,1);l.markup="",l.map=[i,n.line],r&&l.attrSet("class",r);const f=n.push("toc_body","",0);f.markup=c,f.map=[i,n.line],f.hidden=!0;return n.push("toc_close",t,-1).markup="",f.map=[i,n.line],!0},tocPlugin=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=slugify,format:n,level:i=[2,3],shouldAllowNested:o=!1,containerTag:s="nav",containerClass:a="table-of-contents",listTag:u="ul",listClass:c="",itemClass:l="",linkTag:f="a",linkClass:p=""}={})=>{e.block.ruler.before("heading","toc",createTocBlockRule({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});const h=createRenderHeaders({listTag:u,listClass:c,itemClass:l,linkTag:f,linkClass:p});e.renderer.rules.toc_body=e=>h(resolveHeadersFromTokens(e,{level:i,shouldAllowHtml:!0,shouldAllowNested:o,shouldEscapeText:!0,slugify:r,format:n}))},r$3=e=>e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;"),t$2=String.raw`\[`,n$2=String.raw`\(`,r$2=(e,t,r=0)=>{let n=0,i=t-1;for(;i>=r&&92===e.charCodeAt(i);)n++,i--;return n},i$2=(e,t,r)=>{let n=e.src.charCodeAt(t-1),i=e.src.charCodeAt(t+1);return{canOpen:r||!isSpace(i),canClose:!(i>=48&&i<=57)&&(r||!isSpace(n))}},a$2=e=>(t,r)=>{if("$"!==t.src[t.pos])return!1;let n=i$2(t,t.pos,e);if(!n.canOpen)return r||(t.pending+="$"),t.pos++,!0;let i,o=t.pos+1,s=o,a=t.src.lastIndexOf("$");if(-1===a)return!1;for(;(s=t.src.indexOf("$",s))<=a;){for(i=s-1;92===t.src.charCodeAt(i);)i--;if((s-i)%2==1)break;s++}if(-1===s)return r||(t.pending+="$"),t.pos=o,!0;if(s-o===0)return r||(t.pending+="$$"),t.pos=o+1,!0;if(n=i$2(t,s,e),!n.canClose)return r||(t.pending+="$"),t.pos=o,!0;if(!r){let e=t.push("math_inline","math",0);e.markup="$",e.content=t.src.slice(o,s)}return t.pos=s+1,!0},o$2=()=>(e,t)=>{let r=e.pos;if(92!==e.src.charCodeAt(r)||40!==e.src.charCodeAt(r+1))return!1;let n=r+2,i=!1,o=e.src.length;for(;n<o-1;){if(92===e.src.charCodeAt(n)&&41===e.src.charCodeAt(n+1)){if(r$2(e.src,r)%2==1)return!1;if(r$2(e.src,n,r+2)%2==0){i=!0;break}}n++}if(!i)return!1;if(!t){let t=e.push("math_inline","math",0);t.markup=n$2,t.content=e.src.slice(r+2,n)}return e.pos=n+2,!0},s=(e,t,r,n)=>{let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||36!==e.src.charCodeAt(i)||36!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let s,a=e.skipSpacesBack(o,i),u=i+2,c=!1;a-u>=2&&36===e.src.charCodeAt(a-1)&&36===e.src.charCodeAt(a-2)?(s=e.src.slice(u,a-2),c=!0):s=e.src.slice(u,o);let l=t,f="";for(;!(c||(l++,l>=r||(u=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],u<o&&e.tShift[l]<e.blkIndent)));)a=e.skipSpacesBack(o,u),a-u>=2&&36===e.src.charCodeAt(a-1)&&36===e.src.charCodeAt(a-2)&&(f=e.src.slice(u,a-2),c=!0);e.line=c?l+1:l;let p=e.push("math_block","math",0);return p.block=!0,p.content=(s?`${s}\n`:"")+e.getLines(t+1,l,e.tShift[t],!0)+(f?`${f}\n`:""),p.map=[t,e.line],p.markup="$$",!0},c=()=>(e,t,r,n)=>{let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||92!==e.src.charCodeAt(i)||91!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let s,a=e.skipSpacesBack(o,i),u=i+2,c=!1;a-u>=2&&93===e.src.charCodeAt(a-1)&&92===e.src.charCodeAt(a-2)?(s=e.src.slice(u,a-2),c=!0):s=e.src.slice(u,o);let l=t,f="";for(;!(c||(l++,l>=r||(u=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],u<o&&e.tShift[l]<e.blkIndent)));)a=e.skipSpacesBack(o,u),a-u>=2&&93===e.src.charCodeAt(a-1)&&92===e.src.charCodeAt(a-2)&&(f=e.src.slice(u,a-2).trimEnd(),c=!0);if(!c)return!1;e.line=l+1;let p=e.push("math_block","math",0);return p.block=!0,p.content=(s?`${s}\n`:"")+e.getLines(t+1,l,e.tShift[t],!0)+(f?`${f}\n`:""),p.map=[t,e.line],p.markup=t$2,!0},l={alt:["paragraph","reference","blockquote","list"]},u=(e,t)=>{if("function"!=typeof t?.render)throw TypeError('[@mdit/plugin-tex]: "render" option should be a function');let{allowInlineWithSpace:r=!1,mathFence:n=!1,delimiters:i="dollars",render:o}=t;if(n){let t=e.renderer.rules.fence;e.renderer.rules.fence=(e,r,n,i,s)=>{let a=e[r];return"math"===a.info.trim()?o(a.content,!0,i):t(e,r,n,i,s)}}("dollars"===i||"all"===i)&&(e.inline.ruler.after("escape","math_inline_dollar",a$2(r)),e.block.ruler.after("blockquote","math_block_dollar",s,l)),("brackets"===i||"all"===i)&&(e.inline.ruler.before("escape","math_inline_bracket",o$2()),e.block.ruler.after("blockquote","math_block_bracket",c(),l)),e.renderer.rules.math_inline=(e,t,r,n)=>o(e[t].content,!1,n),e.renderer.rules.math_block=(e,t,r,n)=>o(e[t].content,!0,n)},i$1=(e,t,r)=>{let n;try{n=renderToString(e,t)}catch(i){if(!(i instanceof ParseError))throw i;console.error(i),n=`<span class='katex-error' title='${r$3(i.toString())}'>${r$3(e)}</span>`}return r?.(n,!1)??n},a$1=(e,t,r)=>{let n;try{n=`<p class='katex-block'>${renderToString(e,t)}</p>\n`}catch(i){if(!(i instanceof ParseError))throw i;console.error(i),n=`<p class='katex-block katex-error' title='${r$3(i.toString())}'>${r$3(e)}</p>\n`}return r?.(n,!0)??n},o$1=(e,{allowInlineWithSpace:t=!1,delimiters:r,mathFence:n,logger:i=e=>"newLineInDisplayMode"===e?"ignore":"warn",transformer:o,...s}={})=>{let a=Object.assign({macros:{},throwOnError:!1},s);e.use(u,{allowInlineWithSpace:t,delimiters:r,mathFence:n,render:(e,t,r)=>{let n=Object.assign({},a,{strict:(e,t,n)=>i(e,t,n,r)??"ignore",displayMode:t});return t?a$1(e,n,o):i$1(e,n,o)}})},e$1=[["class","spoiler"],["tabindex","-1"]],t$1=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||33!==n)return!1;let i=e.scanDelims(e.pos,!0),o=i.length;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:33,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},n$1=(e,t,r,n)=>{let i,o=[],s=t.length;for(let a=0;a<s;a++){let s=t[a];if(33===s.marker&&-1!==s.end){let a=t[s.end];i=e.tokens[s.token],i.type="spoiler_open",i.tag=r,i.nesting=1,i.markup="!!",i.attrs=n,i.content="",i=e.tokens[a.token],i.type="spoiler_close",i.tag=r,i.nesting=-1,i.markup="!!",i.content="","text"===e.tokens[a.token-1].type&&"!"===e.tokens[a.token-1].content&&o.push(a.token-1)}}for(;o.length>0;){let t=o.pop(),r=t+1;for(;r<e.tokens.length&&"spoiler_close"===e.tokens[r].type;)r++;r--,t!==r&&(i=e.tokens[r],e.tokens[r]=e.tokens[t],e.tokens[t]=i)}},r$1=(e,t)=>{let{tag:r="span",attrs:n=e$1}=t??{};e.inline.ruler.before("emphasis","spoiler",t$1),e.inline.ruler2.before("emphasis","spoiler",e=>{e.delimiters.length>0&&n$1(e,e.delimiters,r,n);let t=e.tokens_meta,i=t.length;if(0===i)return!0;for(let o=0;o<i;o++){let i=t[o];i?.delimiters.length&&n$1(e,i.delimiters,r,n)}return!0})},e=(e,t,r)=>{let n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):e.attrs[n]=i},t=(e,t)=>{let r=e[t].level-1;for(let n=t-1;n>=0;n--)if(e[n].level===r)return n;return-1},n=e=>"inline"===e.type,r=e=>"paragraph_open"===e.type,i=e=>"list_item_open"===e.type,a=e=>{let t=e.content;if(t.length<4||91!==t.charCodeAt(0)||93!==t.charCodeAt(2))return!1;let r=t.charCodeAt(3);if(32!==r&&160!==r)return!1;let n=t.charCodeAt(1);return 120===n||88===n?"checked":32===n||160===n},o=(o,{disabled:s=!0,label:u=!0,containerClass:c="task-list-container",itemClass:l="task-list-item",checkboxClass:f="task-list-item-checkbox",labelClass:p="task-list-item-label"}={})=>{o.core.ruler.after("inline","task_list",o=>{let h=o.tokens;o.env.tasklistId||=0;for(let d=2;d<h.length;d++){let g=h[d];if(!n(g)||!r(h[d-1])||!i(h[d-2]))continue;let m=a(g);if(!1===m)continue;g.children??=[],g.children[0].content=g.children[0].content.slice(3);let y="task-item-"+o.env.tasklistId++;if(u){let e=new o.Token("label_open","label",1);e.attrs=[["class",p],["for",y]],g.children.unshift(e),g.children.push(new o.Token("label_close","label",-1))}let b=new o.Token("checkbox_input","input",0);b.attrs=[["type","checkbox"],["class",f],["id",y]],"checked"===m&&b.attrs.push(["checked","checked"]),s&&b.attrs.push(["disabled","disabled"]),g.children.unshift(b),e(h[d-2],"class",l),e(h[t(h,d-2)],"class",c)}return!0})};export{o as a,bufferExports as b,componentPlugin as c,frontmatterPlugin as f,o$1 as o,r$1 as r,sfcPlugin as s,tocPlugin as t};