@podlite/markdown 0.0.39 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs CHANGED
@@ -1,17 +1,17 @@
1
- var ig=Object.create;var Ro=Object.defineProperty;var sg=Object.getOwnPropertyDescriptor;var og=Object.getOwnPropertyNames;var ag=Object.getPrototypeOf,lg=Object.prototype.hasOwnProperty;var be=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),uc=(t,r)=>{for(var e in r)Ro(t,e,{get:r[e],enumerable:!0})},fc=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of og(r))!lg.call(t,s)&&s!==e&&Ro(t,s,{get:()=>r[s],enumerable:!(n=sg(r,s))||n.enumerable});return t};var Sr=(t,r,e)=>(e=t!=null?ig(ag(t)):{},fc(r||!t||!t.__esModule?Ro(e,"default",{value:t,enumerable:!0}):e,t)),ug=t=>fc(Ro({},"__esModule",{value:!0}),t);var sl=be(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.getRules=Yi.isJSONType=void 0;var fg=["string","number","integer","boolean","null","object","array"],cg=new Set(fg);function pg(t){return typeof t=="string"&&cg.has(t)}Yi.isJSONType=pg;function dg(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Yi.getRules=dg});var ol=be(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.shouldUseRule=Qn.shouldUseGroup=Qn.schemaHasRulesForType=void 0;function mg({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&cc(t,n)}Qn.schemaHasRulesForType=mg;function cc(t,r){return r.rules.some(e=>pc(t,e))}Qn.shouldUseGroup=cc;function pc(t,r){var e;return t[r.keyword]!==void 0||((e=r.definition.implements)===null||e===void 0?void 0:e.some(n=>t[n]!==void 0))}Qn.shouldUseRule=pc});var No=be(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.getProperty=dt.safeStringify=dt.stringify=dt.strConcat=dt.addCodeArg=dt.str=dt._=dt.nil=dt._Code=dt.Name=dt.IDENTIFIER=dt._CodeOrName=void 0;var Ns=class{};dt._CodeOrName=Ns;dt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var yi=class extends Ns{constructor(r){if(super(),!dt.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};dt.Name=yi;var kn=class extends Ns{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((e,n)=>`${e}${n}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((e,n)=>(n instanceof yi&&(e[n.str]=(e[n.str]||0)+1),e),{})}};dt._Code=kn;dt.nil=new kn("");function dc(t,...r){let e=[t[0]],n=0;for(;n<r.length;)ll(e,r[n]),e.push(t[++n]);return new kn(e)}dt._=dc;var al=new kn("+");function mc(t,...r){let e=[Ds(t[0])],n=0;for(;n<r.length;)e.push(al),ll(e,r[n]),e.push(al,Ds(t[++n]));return hg(e),new kn(e)}dt.str=mc;function ll(t,r){r instanceof kn?t.push(...r._items):r instanceof yi?t.push(r):t.push(bg(r))}dt.addCodeArg=ll;function hg(t){let r=1;for(;r<t.length-1;){if(t[r]===al){let e=gg(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function gg(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof yi||t[t.length-1]!=='"'?void 0:typeof r!="string"?`${t.slice(0,-1)}${r}"`:r[0]==='"'?t.slice(0,-1)+r.slice(1):void 0;if(typeof r=="string"&&r[0]==='"'&&!(t instanceof yi))return`"${t}${r.slice(1)}`}function yg(t,r){return r.emptyStr()?t:t.emptyStr()?r:mc`${t}${r}`}dt.strConcat=yg;function bg(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Ds(Array.isArray(t)?t.join(","):t)}function $g(t){return new kn(Ds(t))}dt.stringify=$g;function Ds(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}dt.safeStringify=Ds;function wg(t){return typeof t=="string"&&dt.IDENTIFIER.test(t)?new kn(`.${t}`):dc`[${t}]`}dt.getProperty=wg});var pl=be(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.ValueScope=gr.ValueScopeName=gr.Scope=gr.varKinds=gr.UsedValueState=void 0;var Pr=No(),ul=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},fl;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(fl=gr.UsedValueState||(gr.UsedValueState={}));gr.varKinds={const:new Pr.Name("const"),let:new Pr.Name("let"),var:new Pr.Name("var")};var Do=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof Pr.Name?r:this.name(r)}name(r){return new Pr.Name(this._newName(r))}_newName(r){let e=this._names[r]||this._nameGroup(r);return`${r}${e.index++}`}_nameGroup(r){var e,n;if(((n=(e=this._parent)===null||e===void 0?void 0:e._prefixes)===null||n===void 0?void 0:n.has(r))||this._prefixes&&!this._prefixes.has(r))throw new Error(`CodeGen: prefix "${r}" is not allowed in this scope`);return this._names[r]={prefix:r,index:0}}};gr.Scope=Do;var qo=class extends Pr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=Pr._`.${new Pr.Name(e)}[${n}]`}};gr.ValueScopeName=qo;var kg=Pr._`\n`,cl=class extends Do{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?kg:Pr.nil}}get(){return this._scope}name(r){return new qo(r,this._newName(r))}value(r,e){var n;if(e.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let s=this.toName(r),{prefix:o}=s,l=(n=e.key)!==null&&n!==void 0?n:e.ref,f=this._values[o];if(f){let h=f.get(l);if(h)return h}else f=this._values[o]=new Map;f.set(l,s);let c=this._scope[o]||(this._scope[o]=[]),g=c.length;return c[g]=e.ref,s.setValue(e,{property:o,itemIndex:g}),s}getValue(r,e){let n=this._values[r];if(!!n)return n.get(e)}scopeRefs(r,e=this._values){return this._reduceValues(e,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return Pr._`${r}${n.scopePath}`})}scopeCode(r=this._values,e,n){return this._reduceValues(r,s=>{if(s.value===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return s.value.code},e,n)}_reduceValues(r,e,n={},s){let o=Pr.nil;for(let l in r){let f=r[l];if(!f)continue;let c=n[l]=n[l]||new Map;f.forEach(g=>{if(c.has(g))return;c.set(g,fl.Started);let h=e(g);if(h){let $=this.opts.es5?gr.varKinds.var:gr.varKinds.const;o=Pr._`${o}${$} ${g} = ${h};${this.opts._n}`}else if(h=s==null?void 0:s(g))o=Pr._`${o}${h}${this.opts._n}`;else throw new ul(g);c.set(g,fl.Completed)})}return o}};gr.ValueScope=cl});var ze=be(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.or=He.and=He.not=He.CodeGen=He.operators=He.varKinds=He.ValueScopeName=He.ValueScope=He.Scope=He.Name=He.stringify=He.getProperty=He.nil=He.strConcat=He.str=He._=void 0;var Ze=No(),on=pl(),wi=No();Object.defineProperty(He,"_",{enumerable:!0,get:function(){return wi._}});Object.defineProperty(He,"str",{enumerable:!0,get:function(){return wi.str}});Object.defineProperty(He,"strConcat",{enumerable:!0,get:function(){return wi.strConcat}});Object.defineProperty(He,"nil",{enumerable:!0,get:function(){return wi.nil}});Object.defineProperty(He,"getProperty",{enumerable:!0,get:function(){return wi.getProperty}});Object.defineProperty(He,"stringify",{enumerable:!0,get:function(){return wi.stringify}});Object.defineProperty(He,"Name",{enumerable:!0,get:function(){return wi.Name}});var Mo=pl();Object.defineProperty(He,"Scope",{enumerable:!0,get:function(){return Mo.Scope}});Object.defineProperty(He,"ValueScope",{enumerable:!0,get:function(){return Mo.ValueScope}});Object.defineProperty(He,"ValueScopeName",{enumerable:!0,get:function(){return Mo.ValueScopeName}});Object.defineProperty(He,"varKinds",{enumerable:!0,get:function(){return Mo.varKinds}});He.operators={GT:new Ze._Code(">"),GTE:new Ze._Code(">="),LT:new Ze._Code("<"),LTE:new Ze._Code("<="),EQ:new Ze._Code("==="),NEQ:new Ze._Code("!=="),NOT:new Ze._Code("!"),OR:new Ze._Code("||"),AND:new Ze._Code("&&"),ADD:new Ze._Code("+")};var Mn=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},dl=class extends Mn{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?on.varKinds.var:this.varKind,s=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${s};`+e}optimizeNames(r,e){if(!!r[this.name.str])return this.rhs&&(this.rhs=ts(this.rhs,r,e)),this}get names(){return this.rhs instanceof Ze._CodeOrName?this.rhs.names:{}}},Lo=class extends Mn{constructor(r,e,n){super(),this.lhs=r,this.rhs=e,this.sideEffects=n}render({_n:r}){return`${this.lhs} = ${this.rhs};`+r}optimizeNames(r,e){if(!(this.lhs instanceof Ze.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=ts(this.rhs,r,e),this}get names(){let r=this.lhs instanceof Ze.Name?{}:{...this.lhs.names};return Bo(r,this.rhs)}},ml=class extends Lo{constructor(r,e,n,s){super(r,n,s),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},hl=class extends Mn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},gl=class extends Mn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},yl=class extends Mn{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},bl=class extends Mn{constructor(r){super(),this.code=r}render({_n:r}){return`${this.code};`+r}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(r,e){return this.code=ts(this.code,r,e),this}get names(){return this.code instanceof Ze._CodeOrName?this.code.names:{}}},qs=class extends Mn{constructor(r=[]){super(),this.nodes=r}render(r){return this.nodes.reduce((e,n)=>e+n.render(r),"")}optimizeNodes(){let{nodes:r}=this,e=r.length;for(;e--;){let n=r[e].optimizeNodes();Array.isArray(n)?r.splice(e,1,...n):n?r[e]=n:r.splice(e,1)}return r.length>0?this:void 0}optimizeNames(r,e){let{nodes:n}=this,s=n.length;for(;s--;){let o=n[s];o.optimizeNames(r,e)||(vg(r,o.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>$i(r,e.names),{})}},zn=class extends qs{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},$l=class extends qs{},es=class extends zn{};es.kind="else";var an=class extends zn{constructor(r,e){super(e),this.condition=r}render(r){let e=`if(${this.condition})`+super.render(r);return this.else&&(e+="else "+this.else.render(r)),e}optimizeNodes(){super.optimizeNodes();let r=this.condition;if(r===!0)return this.nodes;let e=this.else;if(e){let n=e.optimizeNodes();e=this.else=Array.isArray(n)?new es(n):n}if(e)return r===!1?e instanceof an?e:e.nodes:this.nodes.length?this:new an(hc(r),e instanceof an?[e]:e.nodes);if(!(r===!1||!this.nodes.length))return this}optimizeNames(r,e){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(r,e),!!(super.optimizeNames(r,e)||this.else))return this.condition=ts(this.condition,r,e),this}get names(){let r=super.names;return Bo(r,this.condition),this.else&&$i(r,this.else.names),r}};an.kind="if";var bi=class extends zn{};bi.kind="for";var wl=class extends bi{constructor(r){super(),this.iteration=r}render(r){return`for(${this.iteration})`+super.render(r)}optimizeNames(r,e){if(!!super.optimizeNames(r,e))return this.iteration=ts(this.iteration,r,e),this}get names(){return $i(super.names,this.iteration.names)}},kl=class extends bi{constructor(r,e,n,s){super(),this.varKind=r,this.name=e,this.from=n,this.to=s}render(r){let e=r.es5?on.varKinds.var:this.varKind,{name:n,from:s,to:o}=this;return`for(${e} ${n}=${s}; ${n}<${o}; ${n}++)`+super.render(r)}get names(){let r=Bo(super.names,this.from);return Bo(r,this.to)}},jo=class extends bi{constructor(r,e,n,s){super(),this.loop=r,this.varKind=e,this.name=n,this.iterable=s}render(r){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(r)}optimizeNames(r,e){if(!!super.optimizeNames(r,e))return this.iterable=ts(this.iterable,r,e),this}get names(){return $i(super.names,this.iterable.names)}},Ls=class extends zn{constructor(r,e,n){super(),this.name=r,this.args=e,this.async=n}render(r){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(r)}};Ls.kind="func";var js=class extends qs{render(r){return"return "+super.render(r)}};js.kind="return";var vl=class extends zn{render(r){let e="try"+super.render(r);return this.catch&&(e+=this.catch.render(r)),this.finally&&(e+=this.finally.render(r)),e}optimizeNodes(){var r,e;return super.optimizeNodes(),(r=this.catch)===null||r===void 0||r.optimizeNodes(),(e=this.finally)===null||e===void 0||e.optimizeNodes(),this}optimizeNames(r,e){var n,s;return super.optimizeNames(r,e),(n=this.catch)===null||n===void 0||n.optimizeNames(r,e),(s=this.finally)===null||s===void 0||s.optimizeNames(r,e),this}get names(){let r=super.names;return this.catch&&$i(r,this.catch.names),this.finally&&$i(r,this.finally.names),r}},Bs=class extends zn{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};Bs.kind="catch";var Ms=class extends zn{render(r){return"finally"+super.render(r)}};Ms.kind="finally";var xl=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
2
- `:""},this._extScope=r,this._scope=new on.Scope({parent:r}),this._nodes=[new $l]}toString(){return this._root.render(this.opts)}name(r){return this._scope.name(r)}scopeName(r){return this._extScope.name(r)}scopeValue(r,e){let n=this._extScope.value(r,e);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(r,e){return this._extScope.getValue(r,e)}scopeRefs(r){return this._extScope.scopeRefs(r,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(r,e,n,s){let o=this._scope.toName(e);return n!==void 0&&s&&(this._constants[o.str]=n),this._leafNode(new dl(r,o,n)),o}const(r,e,n){return this._def(on.varKinds.const,r,e,n)}let(r,e,n){return this._def(on.varKinds.let,r,e,n)}var(r,e,n){return this._def(on.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new Lo(r,e,n))}add(r,e){return this._leafNode(new ml(r,He.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==Ze.nil&&this._leafNode(new bl(r)),this}object(...r){let e=["{"];for(let[n,s]of r)e.length>1&&e.push(","),e.push(n),(n!==s||this.opts.es5)&&(e.push(":"),Ze.addCodeArg(e,s));return e.push("}"),new Ze._Code(e)}if(r,e,n){if(this._blockNode(new an(r)),e&&n)this.code(e).else().code(n).endIf();else if(e)this.code(e).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(r){return this._elseNode(new an(r))}else(){return this._elseNode(new es)}endIf(){return this._endBlockNode(an,es)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new wl(r),e)}forRange(r,e,n,s,o=this.opts.es5?on.varKinds.var:on.varKinds.let){let l=this._scope.toName(r);return this._for(new kl(o,l,e,n),()=>s(l))}forOf(r,e,n,s=on.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let l=e instanceof Ze.Name?e:this.var("_arr",e);return this.forRange("_i",0,Ze._`${l}.length`,f=>{this.var(o,Ze._`${l}[${f}]`),n(o)})}return this._for(new jo("of",s,o,e),()=>n(o))}forIn(r,e,n,s=this.opts.es5?on.varKinds.var:on.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,Ze._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new jo("in",s,o,e),()=>n(o))}endFor(){return this._endBlockNode(bi)}label(r){return this._leafNode(new hl(r))}break(r){return this._leafNode(new gl(r))}return(r){let e=new js;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(js)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let s=new vl;if(this._blockNode(s),this.code(r),e){let o=this.name("e");this._currNode=s.catch=new Bs(o),e(o)}return n&&(this._currNode=s.finally=new Ms,this.code(n)),this._endBlockNode(Bs,Ms)}throw(r){return this._leafNode(new yl(r))}block(r,e){return this._blockStarts.push(this._nodes.length),r&&this.code(r).endBlock(e),this}endBlock(r){let e=this._blockStarts.pop();if(e===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-e;if(n<0||r!==void 0&&n!==r)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${r} expected`);return this._nodes.length=e,this}func(r,e=Ze.nil,n,s){return this._blockNode(new Ls(r,e,n)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(Ls)}optimize(r=1){for(;r-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(r){return this._currNode.nodes.push(r),this}_blockNode(r){this._currNode.nodes.push(r),this._nodes.push(r)}_endBlockNode(r,e){let n=this._currNode;if(n instanceof r||e&&n instanceof e)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${e?`${r.kind}/${e.kind}`:r.kind}"`)}_elseNode(r){let e=this._currNode;if(!(e instanceof an))throw new Error('CodeGen: "else" without "if"');return this._currNode=e.else=r,this}get _root(){return this._nodes[0]}get _currNode(){let r=this._nodes;return r[r.length-1]}set _currNode(r){let e=this._nodes;e[e.length-1]=r}};He.CodeGen=xl;function $i(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function Bo(t,r){return r instanceof Ze._CodeOrName?$i(t,r.names):t}function ts(t,r,e){if(t instanceof Ze.Name)return n(t);if(!s(t))return t;return new Ze._Code(t._items.reduce((o,l)=>(l instanceof Ze.Name&&(l=n(l)),l instanceof Ze._Code?o.push(...l._items):o.push(l),o),[]));function n(o){let l=e[o.str];return l===void 0||r[o.str]!==1?o:(delete r[o.str],l)}function s(o){return o instanceof Ze._Code&&o._items.some(l=>l instanceof Ze.Name&&r[l.str]===1&&e[l.str]!==void 0)}}function vg(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function hc(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:Ze._`!${Cl(t)}`}He.not=hc;var xg=gc(He.operators.AND);function Cg(...t){return t.reduce(xg)}He.and=Cg;var Ag=gc(He.operators.OR);function Eg(...t){return t.reduce(Ag)}He.or=Eg;function gc(t){return(r,e)=>r===Ze.nil?e:e===Ze.nil?r:Ze._`${Cl(r)} ${t} ${Cl(e)}`}function Cl(t){return t instanceof Ze.Name?t:Ze._`(${t})`}});var ln=be(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var ir=ze(),_g={data:new ir.Name("data"),valCxt:new ir.Name("valCxt"),dataPath:new ir.Name("dataPath"),parentData:new ir.Name("parentData"),parentDataProperty:new ir.Name("parentDataProperty"),rootData:new ir.Name("rootData"),dynamicAnchors:new ir.Name("dynamicAnchors"),vErrors:new ir.Name("vErrors"),errors:new ir.Name("errors"),this:new ir.Name("this"),self:new ir.Name("self"),scope:new ir.Name("scope"),json:new ir.Name("json"),jsonPos:new ir.Name("jsonPos"),jsonLen:new ir.Name("jsonLen"),jsonPart:new ir.Name("jsonPart")};Al.default=_g});var zs=be(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.extendErrors=sr.resetErrorsCount=sr.reportExtraError=sr.reportError=sr.keyword$DataError=sr.keywordError=void 0;var Je=ze(),or=ln();sr.keywordError={message:({keyword:t})=>Je.str`should pass "${t}" keyword validation`};sr.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Je.str`"${t}" keyword must be ${r} ($data)`:Je.str`"${t}" keyword is invalid ($data)`};function Sg(t,r=sr.keywordError,e){let{it:n}=t,{gen:s,compositeRule:o,allErrors:l}=n,f=$c(t,r);e??(o||l)?yc(s,f):bc(n,Je._`[${f}]`)}sr.reportError=Sg;function Pg(t,r=sr.keywordError){let{it:e}=t,{gen:n,compositeRule:s,allErrors:o}=e,l=$c(t,r);yc(n,l),s||o||bc(e,or.default.vErrors)}sr.reportExtraError=Pg;function Tg(t,r){t.assign(or.default.errors,r),t.if(Je._`${or.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Je._`${or.default.vErrors}.length`,r),()=>t.assign(or.default.vErrors,null)))}sr.resetErrorsCount=Tg;function Fg({gen:t,keyword:r,schemaValue:e,data:n,errsCount:s,it:o}){if(s===void 0)throw new Error("ajv implementation error");let l=t.name("err");t.forRange("i",s,or.default.errors,f=>{t.const(l,Je._`${or.default.vErrors}[${f}]`),t.if(Je._`${l}.dataPath === undefined`,()=>t.assign(Je._`${l}.dataPath`,Je.strConcat(or.default.dataPath,o.errorPath))),t.assign(Je._`${l}.schemaPath`,Je.str`${o.errSchemaPath}/${r}`),o.opts.verbose&&(t.assign(Je._`${l}.schema`,e),t.assign(Je._`${l}.data`,n))})}sr.extendErrors=Fg;function yc(t,r){let e=t.const("err",r);t.if(Je._`${or.default.vErrors} === null`,()=>t.assign(or.default.vErrors,Je._`[${e}]`),Je._`${or.default.vErrors}.push(${e})`),t.code(Je._`${or.default.errors}++`)}function bc(t,r){let{gen:e,validateName:n,schemaEnv:s}=t;s.$async?e.throw(Je._`new ${t.ValidationError}(${r})`):(e.assign(Je._`${n}.errors`,r),e.return(!1))}var vn={keyword:new Je.Name("keyword"),schemaPath:new Je.Name("schemaPath"),params:new Je.Name("params"),propertyName:new Je.Name("propertyName"),message:new Je.Name("message"),schema:new Je.Name("schema"),parentSchema:new Je.Name("parentSchema"),instancePath:new Je.Name("instancePath")};function $c(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Je._`{}`:(n.jtd&&!n.ajvErrors?Ig:Og)(t,r)}function Ig(t,{message:r}){let{gen:e,keyword:n,it:s}=t,{errorPath:o,errSchemaPath:l,opts:f}=s,c=[[vn.instancePath,Je.strConcat(or.default.dataPath,o)],[vn.schemaPath,Je.str`${l}/${n}`]];return f.messages&&c.push([vn.message,typeof r=="function"?r(t):r]),e.object(...c)}function Og(t,r){let{gen:e,keyword:n,data:s,schemaValue:o,it:l}=t,{topSchemaRef:f,schemaPath:c,errorPath:g,errSchemaPath:h,propertyName:$,opts:k}=l,{params:x,message:C}=r,I=[[vn.keyword,n],[or.default.dataPath,Je.strConcat(or.default.dataPath,g)],[vn.schemaPath,Je.str`${h}/${n}`],[vn.params,typeof x=="function"?x(t):x||Je._`{}`]];return $&&I.push([vn.propertyName,$]),k.messages&&I.push([vn.message,typeof C=="function"?C(t):C]),k.verbose&&I.push([vn.schema,o],[vn.parentSchema,Je._`${f}${c}`],[or.default.data,s]),e.object(...I)}});var kc=be(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.boolOrEmptySchema=rs.topBoolOrEmptySchema=void 0;var Rg=zs(),Ng=ze(),Dg=ln(),qg={message:"boolean schema is false"};function Lg(t){let{gen:r,schema:e,validateName:n}=t;e===!1?wc(t,!1):typeof e=="object"&&e.$async===!0?r.return(Dg.default.data):(r.assign(Ng._`${n}.errors`,null),r.return(!0))}rs.topBoolOrEmptySchema=Lg;function jg(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),wc(t)):e.var(r,!0)}rs.boolOrEmptySchema=jg;function wc(t,r){let{gen:e,data:n}=t,s={gen:e,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};Rg.reportError(s,qg,r)}});var xc=be(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.assignDefaults=void 0;var ns=ze(),Bg=Br();function Mg(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let s in e)vc(t,s,e[s].default);else r==="array"&&Array.isArray(n)&&n.forEach((s,o)=>vc(t,o,s.default))}zo.assignDefaults=Mg;function vc(t,r,e){let{gen:n,compositeRule:s,data:o,opts:l}=t;if(e===void 0)return;let f=ns._`${o}${ns.getProperty(r)}`;if(s){Bg.checkStrictMode(t,`default is ignored for: ${f}`);return}let c=ns._`${f} === undefined`;l.useDefaults==="empty"&&(c=ns._`${c} || ${f} === null || ${f} === ""`),n.if(c,ns._`${f} = ${ns.stringify(e)}`)}});var vi=be(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.applySubschema=ki.Type=void 0;var zg=Br(),Cc=_t(),ar=ze(),Ac;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Ac=ki.Type||(ki.Type={}));function Vg(t,r,e){let n=Hg(t,r);Ug(n,t,r),Gg(n,r);let s={...t,...n,items:void 0,props:void 0};return zg.subschemaCode(s,e),s}ki.applySubschema=Vg;function Hg(t,{keyword:r,schemaProp:e,schema:n,schemaPath:s,errSchemaPath:o,topSchemaRef:l}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let f=t.schema[r];return e===void 0?{schema:f,schemaPath:ar._`${t.schemaPath}${ar.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:f[e],schemaPath:ar._`${t.schemaPath}${ar.getProperty(r)}${ar.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${Cc.escapeFragment(e)}`}}if(n!==void 0){if(s===void 0||o===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:s,topSchemaRef:l,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function Ug(t,r,{dataProp:e,dataPropType:n,data:s,dataTypes:o,propertyName:l}){if(s!==void 0&&e!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:f}=r;if(e!==void 0){let{errorPath:g,dataPathArr:h,opts:$}=r,k=f.let("data",ar._`${r.data}${ar.getProperty(e)}`,!0);c(k),t.errorPath=ar.str`${g}${Kg(e,n,$.jsPropertySyntax)}`,t.parentDataProperty=ar._`${e}`,t.dataPathArr=[...h,t.parentDataProperty]}if(s!==void 0){let g=s instanceof ar.Name?s:f.let("data",s,!0);c(g),l!==void 0&&(t.propertyName=l)}o&&(t.dataTypes=o);function c(g){t.data=g,t.dataLevel=r.dataLevel+1,t.dataTypes=[],r.definedProperties=new Set,t.parentData=r.data,t.dataNames=[...r.dataNames,g]}}function Gg(t,{jtdDiscriminator:r,jtdMetadata:e,compositeRule:n,createErrors:s,allErrors:o}){n!==void 0&&(t.compositeRule=n),s!==void 0&&(t.createErrors=s),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=r,t.jtdMetadata=e}function Kg(t,r,e){if(t instanceof ar.Name){let n=r===Ac.Num;return e?n?ar._`"[" + ${t} + "]"`:ar._`"['" + ${t} + "']"`:n?ar._`"/" + ${t}`:ar._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?ar.getProperty(t).toString():"/"+Cc.escapeJsonPointer(t)}});var un=be(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.validateUnion=mt.validateArray=mt.usePattern=mt.callValidateCode=mt.schemaProperties=mt.allSchemaProperties=mt.noPropertyInData=mt.propertyInData=mt.isOwnProperty=mt.hasPropFunc=mt.reportMissingProp=mt.checkMissingProp=mt.checkReportMissingProp=void 0;var xt=ze(),Ec=_t(),Wg=vi(),Xn=ln();function Zg(t,r){let{gen:e,data:n,it:s}=t;e.if(_l(e,n,r,s.opts.ownProperties),()=>{t.setParams({missingProperty:xt._`${r}`},!0),t.error()})}mt.checkReportMissingProp=Zg;function Jg({gen:t,data:r,it:{opts:e}},n,s){return xt.or(...n.map(o=>xt.and(_l(t,r,o,e.ownProperties),xt._`${s} = ${o}`)))}mt.checkMissingProp=Jg;function Qg(t,r){t.setParams({missingProperty:r},!0),t.error()}mt.reportMissingProp=Qg;function _c(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:xt._`Object.prototype.hasOwnProperty`})}mt.hasPropFunc=_c;function El(t,r,e){return xt._`${_c(t)}.call(${r}, ${e})`}mt.isOwnProperty=El;function Xg(t,r,e,n){let s=xt._`${r}${xt.getProperty(e)} !== undefined`;return n?xt._`${s} && ${El(t,r,e)}`:s}mt.propertyInData=Xg;function _l(t,r,e,n){let s=xt._`${r}${xt.getProperty(e)} === undefined`;return n?xt.or(s,xt.not(El(t,r,e))):s}mt.noPropertyInData=_l;function Sc(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}mt.allSchemaProperties=Sc;function Yg(t,r){return Sc(r).filter(e=>!Ec.alwaysValidSchema(t,r[e]))}mt.schemaProperties=Yg;function ey({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:s,errorPath:o},it:l},f,c,g){let h=g?xt._`${t}, ${r}, ${n}${s}`:r,$=[[Xn.default.dataPath,xt.strConcat(Xn.default.dataPath,o)],[Xn.default.parentData,l.parentData],[Xn.default.parentDataProperty,l.parentDataProperty],[Xn.default.rootData,Xn.default.rootData]];l.opts.dynamicRef&&$.push([Xn.default.dynamicAnchors,Xn.default.dynamicAnchors]);let k=xt._`${h}, ${e.object(...$)}`;return c!==xt.nil?xt._`${f}.call(${c}, ${k})`:xt._`${f}(${k})`}mt.callValidateCode=ey;function ty(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:xt._`new RegExp(${r}, "u")`})}mt.usePattern=ty;function ry(t){let{gen:r,data:e,keyword:n,it:s}=t,o=r.name("valid");if(s.allErrors){let f=r.let("valid",!0);return l(()=>r.assign(f,!1)),f}return r.var(o,!0),l(()=>r.break()),o;function l(f){let c=r.const("len",xt._`${e}.length`);r.forRange("i",0,c,g=>{t.subschema({keyword:n,dataProp:g,dataPropType:Wg.Type.Num},o),r.if(xt.not(o),f)})}}mt.validateArray=ry;function ny(t){let{gen:r,schema:e,keyword:n,it:s}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(c=>Ec.alwaysValidSchema(s,c))&&!s.opts.unevaluated)return;let l=r.let("valid",!1),f=r.name("_valid");r.block(()=>e.forEach((c,g)=>{let h=t.subschema({keyword:n,schemaProp:g,compositeRule:!0},f);r.assign(l,xt._`${l} || ${f}`),t.mergeValidEvaluated(h,f)||r.if(xt.not(l))})),t.result(l,()=>t.reset(),()=>t.error(!0))}mt.validateUnion=ny});var Ic=be(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.keywordCode=void 0;var iy=Vs(),sy=zs(),oy=un(),yr=ze(),xi=ln();function ay(t,r,e,n){let s=new iy.default(t,e,r);"code"in e?e.code(s,n):s.$data&&e.validate?Pc(s,e):"macro"in e?ly(s,e):(e.compile||e.validate)&&Pc(s,e)}Vo.keywordCode=ay;function ly(t,r){let{gen:e,keyword:n,schema:s,parentSchema:o,it:l}=t,f=r.macro.call(l.self,s,o,l),c=Fc(e,n,f);l.opts.validateSchema!==!1&&l.self.validateSchema(f,!0);let g=e.name("valid");t.subschema({schema:f,schemaPath:yr.nil,errSchemaPath:`${l.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},g),t.pass(g,()=>t.error(!0))}function Pc(t,r){var e;let{gen:n,keyword:s,schema:o,parentSchema:l,$data:f,it:c}=t;fy(c,r);let g=!f&&r.compile?r.compile.call(c.self,o,l,c):r.validate,h=Fc(n,s,g),$=n.let("valid");t.block$data($,k),t.ok((e=r.valid)!==null&&e!==void 0?e:$);function k(){if(r.errors===!1)I(),r.modifying&&Tc(t),N(()=>t.error());else{let B=r.async?x():C();r.modifying&&Tc(t),N(()=>uy(t,B))}}function x(){let B=n.let("ruleErrs",null);return n.try(()=>I(yr._`await `),X=>n.assign($,!1).if(yr._`${X} instanceof ${c.ValidationError}`,()=>n.assign(B,yr._`${X}.errors`),()=>n.throw(X))),B}function C(){let B=yr._`${h}.errors`;return n.assign(B,null),I(yr.nil),B}function I(B=r.async?yr._`await `:yr.nil){let X=c.opts.passContext?xi.default.this:xi.default.self,le=!("compile"in r&&!f||r.schema===!1);n.assign($,yr._`${B}${oy.callValidateCode(t,h,X,le)}`,r.modifying)}function N(B){var X;n.if(yr.not((X=r.valid)!==null&&X!==void 0?X:$),B)}}function Tc(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,yr._`${n.parentData}[${n.parentDataProperty}]`))}function uy(t,r){let{gen:e}=t;e.if(yr._`Array.isArray(${r})`,()=>{e.assign(xi.default.vErrors,yr._`${xi.default.vErrors} === null ? ${r} : ${xi.default.vErrors}.concat(${r})`).assign(xi.default.errors,yr._`${xi.default.vErrors}.length`),sy.extendErrors(t)},()=>t.error())}function fy({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function Fc(t,r,e){if(e===void 0)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword",typeof e=="function"?{ref:e}:{ref:e,code:yr.stringify(e)})}});var qc=be(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.schemaKeywords=void 0;var Sl=ol(),Oc=is(),cy=xc(),Dc=Ic(),py=_t(),dy=Br(),my=ze(),hy=ln();function gy(t,r,e,n){let{gen:s,schema:o,data:l,allErrors:f,opts:c,self:g}=t,{RULES:h}=g;if(o.$ref&&(c.ignoreKeywordsWithRef||!py.schemaHasRulesButRef(o,h))){s.block(()=>Dc.keywordCode(t,"$ref",h.all.$ref.definition));return}c.jtd||yy(t,r),s.block(()=>{for(let k of h.rules)$(k);$(h.post)});function $(k){!Sl.shouldUseGroup(o,k)||(k.type?(s.if(Oc.checkDataType(k.type,l,c.strict)),Rc(t,k),r.length===1&&r[0]===k.type&&e&&(s.else(),Oc.reportTypeError(t)),s.endIf()):Rc(t,k),f||s.if(my._`${hy.default.errors} === ${n||0}`))}}Ho.schemaKeywords=gy;function Rc(t,r){let{gen:e,schema:n,opts:{useDefaults:s}}=t;s&&cy.assignDefaults(t,r.type),e.block(()=>{for(let o of r.rules)Sl.shouldUseRule(n,o)&&Dc.keywordCode(t,o.keyword,o.definition,r.type)})}function yy(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(by(t,r),t.opts.allowUnionTypes||$y(t,r),wy(t,t.dataTypes))}function by(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{Nc(t.dataTypes,e)||Pl(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>Nc(r,e))}}function $y(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&Pl(t,"use allowUnionTypes to allow union type keyword")}function wy(t,r){let e=t.self.RULES.all;for(let n in e){let s=e[n];if(typeof s=="object"&&Sl.shouldUseRule(t.schema,s)){let{type:o}=s.definition;o.length&&!o.some(l=>ky(r,l))&&Pl(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function ky(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function Nc(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function Pl(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,dy.checkStrictMode(t,r,t.opts.strictTypes)}});var Hs=be((H1,Lc)=>{"use strict";Lc.exports=function t(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var n,s,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(s=n;s--!==0;)if(!t(r[s],e[s]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();if(o=Object.keys(r),n=o.length,n!==Object.keys(e).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[s]))return!1;for(s=n;s--!==0;){var l=o[s];if(!t(r[l],e[l]))return!1}return!0}return r!==r&&e!==e}});var Bc=be((U1,jc)=>{"use strict";var Yn=jc.exports=function(t,r,e){typeof r=="function"&&(e=r,r={}),e=r.cb||e;var n=typeof e=="function"?e:e.pre||function(){},s=e.post||function(){};Uo(r,n,s,t,"",t)};Yn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Yn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Yn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Yn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Uo(t,r,e,n,s,o,l,f,c,g){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,s,o,l,f,c,g);for(var h in n){var $=n[h];if(Array.isArray($)){if(h in Yn.arrayKeywords)for(var k=0;k<$.length;k++)Uo(t,r,e,$[k],s+"/"+h+"/"+k,o,s,h,n,k)}else if(h in Yn.propsKeywords){if($&&typeof $=="object")for(var x in $)Uo(t,r,e,$[x],s+"/"+h+"/"+vy(x),o,s,h,n,x)}else(h in Yn.keywords||t.allKeys&&!(h in Yn.skipKeywords))&&Uo(t,r,e,$,s+"/"+h,o,s,h,n)}e(n,s,o,l,f,c,g)}}function vy(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Tl=be((Go,Mc)=>{(function(t,r){typeof Go=="object"&&typeof Mc<"u"?r(Go):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(Go,function(t){"use strict";function r(){for(var V=arguments.length,R=Array(V),J=0;J<V;J++)R[J]=arguments[J];if(R.length>1){R[0]=R[0].slice(0,-1);for(var re=R.length-1,se=1;se<re;++se)R[se]=R[se].slice(1,-1);return R[re]=R[re].slice(1),R.join("")}else return R[0]}function e(V){return"(?:"+V+")"}function n(V){return V===void 0?"undefined":V===null?"null":Object.prototype.toString.call(V).split(" ").pop().split("]").shift().toLowerCase()}function s(V){return V.toUpperCase()}function o(V){return V!=null?V instanceof Array?V:typeof V.length!="number"||V.split||V.setInterval||V.call?[V]:Array.prototype.slice.call(V):[]}function l(V,R){var J=V;if(R)for(var re in R)J[re]=R[re];return J}function f(V){var R="[A-Za-z]",J="[\\x0D]",re="[0-9]",se="[\\x22]",we=r(re,"[A-Fa-f]"),Se="[\\x0A]",je="[\\x20]",We=e(e("%[EFef]"+we+"%"+we+we+"%"+we+we)+"|"+e("%[89A-Fa-f]"+we+"%"+we+we)+"|"+e("%"+we+we)),bt="[\\:\\/\\?\\#\\[\\]\\@]",De="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",at=r(bt,De),ft=V?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",lt=V?"[\\uE000-\\uF8FF]":"[]",Ge=r(R,re,"[\\-\\.\\_\\~]",ft),ct=e(R+r(R,re,"[\\+\\-\\.]")+"*"),et=e(e(We+"|"+r(Ge,De,"[\\:]"))+"*"),Mr=e(e("25[0-5]")+"|"+e("2[0-4]"+re)+"|"+e("1"+re+re)+"|"+e("[1-9]"+re)+"|"+re),Bt=e(e("25[0-5]")+"|"+e("2[0-4]"+re)+"|"+e("1"+re+re)+"|"+e("0?[1-9]"+re)+"|0?0?"+re),rr=e(Bt+"\\."+Bt+"\\."+Bt+"\\."+Bt),st=e(we+"{1,4}"),Ht=e(e(st+"\\:"+st)+"|"+rr),Zt=e(e(st+"\\:")+"{6}"+Ht),Cr=e("\\:\\:"+e(st+"\\:")+"{5}"+Ht),Yr=e(e(st)+"?\\:\\:"+e(st+"\\:")+"{4}"+Ht),Ar=e(e(e(st+"\\:")+"{0,1}"+st)+"?\\:\\:"+e(st+"\\:")+"{3}"+Ht),hn=e(e(e(st+"\\:")+"{0,2}"+st)+"?\\:\\:"+e(st+"\\:")+"{2}"+Ht),On=e(e(e(st+"\\:")+"{0,3}"+st)+"?\\:\\:"+st+"\\:"+Ht),Rn=e(e(e(st+"\\:")+"{0,4}"+st)+"?\\:\\:"+Ht),en=e(e(e(st+"\\:")+"{0,5}"+st)+"?\\:\\:"+st),tn=e(e(e(st+"\\:")+"{0,6}"+st)+"?\\:\\:"),Mt=e([Zt,Cr,Yr,Ar,hn,On,Rn,en,tn].join("|")),Er=e(e(Ge+"|"+We)+"+"),gn=e(Mt+"\\%25"+Er),zr=e(Mt+e("\\%25|\\%(?!"+we+"{2})")+Er),Mi=e("[vV]"+we+"+\\."+r(Ge,De,"[\\:]")+"+"),li=e("\\["+e(zr+"|"+Mt+"|"+Mi)+"\\]"),i=e(e(We+"|"+r(Ge,De))+"*"),ue=e(li+"|"+rr+"(?!"+i+")|"+i),Vr=e(re+"*"),Jt=e(e(et+"@")+"?"+ue+e("\\:"+Vr)+"?"),rn=e(We+"|"+r(Ge,De,"[\\:\\@]")),v=e(rn+"*"),yn=e(rn+"+"),Nn=e(e(We+"|"+r(Ge,De,"[\\@]"))+"+"),Hr=e(e("\\/"+v)+"*"),Dn=e("\\/"+e(yn+Hr)+"?"),zi=e(Nn+Hr),Me=e(yn+Hr),Ut="(?!"+rn+")",vs=e(Hr+"|"+Dn+"|"+zi+"|"+Me+"|"+Ut),nn=e(e(rn+"|"+r("[\\/\\?]",lt))+"*"),bn=e(e(rn+"|[\\/\\?]")+"*"),ui=e(e("\\/\\/"+Jt+Hr)+"|"+Dn+"|"+Me+"|"+Ut),qn=e(ct+"\\:"+ui+e("\\?"+nn)+"?"+e("\\#"+bn)+"?"),W=e(e("\\/\\/"+Jt+Hr)+"|"+Dn+"|"+zi+"|"+Ut),xs=e(W+e("\\?"+nn)+"?"+e("\\#"+bn)+"?"),Vi=e(qn+"|"+xs),Cs=e(ct+"\\:"+ui+e("\\?"+nn)+"?"),fi="^("+ct+")\\:"+e(e("\\/\\/("+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?)")+"?("+Hr+"|"+Dn+"|"+Me+"|"+Ut+")")+e("\\?("+nn+")")+"?"+e("\\#("+bn+")")+"?$",bo="^(){0}"+e(e("\\/\\/("+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?)")+"?("+Hr+"|"+Dn+"|"+zi+"|"+Ut+")")+e("\\?("+nn+")")+"?"+e("\\#("+bn+")")+"?$",ja="^("+ct+")\\:"+e(e("\\/\\/("+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?)")+"?("+Hr+"|"+Dn+"|"+Me+"|"+Ut+")")+e("\\?("+nn+")")+"?$",Hi="^"+e("\\#("+bn+")")+"?$",sn="^"+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",R,re,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",Ge,De),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",Ge,De),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",Ge,De),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",Ge,De),"g"),NOT_QUERY:new RegExp(r("[^\\%]",Ge,De,"[\\:\\@\\/\\?]",lt),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",Ge,De,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",Ge,De),"g"),UNRESERVED:new RegExp(Ge,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",Ge,at),"g"),PCT_ENCODED:new RegExp(We,"g"),IPV4ADDRESS:new RegExp("^("+rr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Mt+")"+e(e("\\%25|\\%(?!"+we+"{2})")+"("+Er+")")+"?\\]?$")}}var c=f(!1),g=f(!0),h=function(){function V(R,J){var re=[],se=!0,we=!1,Se=void 0;try{for(var je=R[Symbol.iterator](),We;!(se=(We=je.next()).done)&&(re.push(We.value),!(J&&re.length===J));se=!0);}catch(bt){we=!0,Se=bt}finally{try{!se&&je.return&&je.return()}finally{if(we)throw Se}}return re}return function(R,J){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return V(R,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),$=function(V){if(Array.isArray(V)){for(var R=0,J=Array(V.length);R<V.length;R++)J[R]=V[R];return J}else return Array.from(V)},k=2147483647,x=36,C=1,I=26,N=38,B=700,X=72,le=128,$e="-",he=/^xn--/,Y=/[^\0-\x7E]/,pe=/[\x2E\u3002\uFF0E\uFF61]/g,ve={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=x-C,Le=Math.floor,Te=String.fromCharCode;function Fe(V){throw new RangeError(ve[V])}function ge(V,R){for(var J=[],re=V.length;re--;)J[re]=R(V[re]);return J}function Pe(V,R){var J=V.split("@"),re="";J.length>1&&(re=J[0]+"@",V=J[1]),V=V.replace(pe,".");var se=V.split("."),we=ge(se,R).join(".");return re+we}function Qe(V){for(var R=[],J=0,re=V.length;J<re;){var se=V.charCodeAt(J++);if(se>=55296&&se<=56319&&J<re){var we=V.charCodeAt(J++);(we&64512)==56320?R.push(((se&1023)<<10)+(we&1023)+65536):(R.push(se),J--)}else R.push(se)}return R}var ne=function(R){return String.fromCodePoint.apply(String,$(R))},$t=function(R){return R-48<10?R-22:R-65<26?R-65:R-97<26?R-97:x},Xe=function(R,J){return R+22+75*(R<26)-((J!=0)<<5)},wt=function(R,J,re){var se=0;for(R=re?Le(R/B):R>>1,R+=Le(R/J);R>ke*I>>1;se+=x)R=Le(R/ke);return Le(se+(ke+1)*R/(R+N))},nt=function(R){var J=[],re=R.length,se=0,we=le,Se=X,je=R.lastIndexOf($e);je<0&&(je=0);for(var We=0;We<je;++We)R.charCodeAt(We)>=128&&Fe("not-basic"),J.push(R.charCodeAt(We));for(var bt=je>0?je+1:0;bt<re;){for(var De=se,at=1,ft=x;;ft+=x){bt>=re&&Fe("invalid-input");var lt=$t(R.charCodeAt(bt++));(lt>=x||lt>Le((k-se)/at))&&Fe("overflow"),se+=lt*at;var Ge=ft<=Se?C:ft>=Se+I?I:ft-Se;if(lt<Ge)break;var ct=x-Ge;at>Le(k/ct)&&Fe("overflow"),at*=ct}var et=J.length+1;Se=wt(se-De,et,De==0),Le(se/et)>k-we&&Fe("overflow"),we+=Le(se/et),se%=et,J.splice(se++,0,we)}return String.fromCodePoint.apply(String,J)},z=function(R){var J=[];R=Qe(R);var re=R.length,se=le,we=0,Se=X,je=!0,We=!1,bt=void 0;try{for(var De=R[Symbol.iterator](),at;!(je=(at=De.next()).done);je=!0){var ft=at.value;ft<128&&J.push(Te(ft))}}catch(zr){We=!0,bt=zr}finally{try{!je&&De.return&&De.return()}finally{if(We)throw bt}}var lt=J.length,Ge=lt;for(lt&&J.push($e);Ge<re;){var ct=k,et=!0,Mr=!1,Bt=void 0;try{for(var rr=R[Symbol.iterator](),st;!(et=(st=rr.next()).done);et=!0){var Ht=st.value;Ht>=se&&Ht<ct&&(ct=Ht)}}catch(zr){Mr=!0,Bt=zr}finally{try{!et&&rr.return&&rr.return()}finally{if(Mr)throw Bt}}var Zt=Ge+1;ct-se>Le((k-we)/Zt)&&Fe("overflow"),we+=(ct-se)*Zt,se=ct;var Cr=!0,Yr=!1,Ar=void 0;try{for(var hn=R[Symbol.iterator](),On;!(Cr=(On=hn.next()).done);Cr=!0){var Rn=On.value;if(Rn<se&&++we>k&&Fe("overflow"),Rn==se){for(var en=we,tn=x;;tn+=x){var Mt=tn<=Se?C:tn>=Se+I?I:tn-Se;if(en<Mt)break;var Er=en-Mt,gn=x-Mt;J.push(Te(Xe(Mt+Er%gn,0))),en=Le(Er/gn)}J.push(Te(Xe(en,0))),Se=wt(we,Zt,Ge==lt),we=0,++Ge}}}catch(zr){Yr=!0,Ar=zr}finally{try{!Cr&&hn.return&&hn.return()}finally{if(Yr)throw Ar}}++we,++se}return J.join("")},H=function(R){return Pe(R,function(J){return he.test(J)?nt(J.slice(4).toLowerCase()):J})},dr=function(R){return Pe(R,function(J){return Y.test(J)?"xn--"+z(J):J})},Lt={version:"2.1.0",ucs2:{decode:Qe,encode:ne},decode:nt,encode:z,toASCII:dr,toUnicode:H},kt={};function Tt(V){var R=V.charCodeAt(0),J=void 0;return R<16?J="%0"+R.toString(16).toUpperCase():R<128?J="%"+R.toString(16).toUpperCase():R<2048?J="%"+(R>>6|192).toString(16).toUpperCase()+"%"+(R&63|128).toString(16).toUpperCase():J="%"+(R>>12|224).toString(16).toUpperCase()+"%"+(R>>6&63|128).toString(16).toUpperCase()+"%"+(R&63|128).toString(16).toUpperCase(),J}function Ft(V){for(var R="",J=0,re=V.length;J<re;){var se=parseInt(V.substr(J+1,2),16);if(se<128)R+=String.fromCharCode(se),J+=3;else if(se>=194&&se<224){if(re-J>=6){var we=parseInt(V.substr(J+4,2),16);R+=String.fromCharCode((se&31)<<6|we&63)}else R+=V.substr(J,6);J+=6}else if(se>=224){if(re-J>=9){var Se=parseInt(V.substr(J+4,2),16),je=parseInt(V.substr(J+7,2),16);R+=String.fromCharCode((se&15)<<12|(Se&63)<<6|je&63)}else R+=V.substr(J,9);J+=9}else R+=V.substr(J,3),J+=3}return R}function ut(V,R){function J(re){var se=Ft(re);return se.match(R.UNRESERVED)?se:re}return V.scheme&&(V.scheme=String(V.scheme).replace(R.PCT_ENCODED,J).toLowerCase().replace(R.NOT_SCHEME,"")),V.userinfo!==void 0&&(V.userinfo=String(V.userinfo).replace(R.PCT_ENCODED,J).replace(R.NOT_USERINFO,Tt).replace(R.PCT_ENCODED,s)),V.host!==void 0&&(V.host=String(V.host).replace(R.PCT_ENCODED,J).toLowerCase().replace(R.NOT_HOST,Tt).replace(R.PCT_ENCODED,s)),V.path!==void 0&&(V.path=String(V.path).replace(R.PCT_ENCODED,J).replace(V.scheme?R.NOT_PATH:R.NOT_PATH_NOSCHEME,Tt).replace(R.PCT_ENCODED,s)),V.query!==void 0&&(V.query=String(V.query).replace(R.PCT_ENCODED,J).replace(R.NOT_QUERY,Tt).replace(R.PCT_ENCODED,s)),V.fragment!==void 0&&(V.fragment=String(V.fragment).replace(R.PCT_ENCODED,J).replace(R.NOT_FRAGMENT,Tt).replace(R.PCT_ENCODED,s)),V}function tr(V){return V.replace(/^0*(.*)/,"$1")||"0"}function Vt(V,R){var J=V.match(R.IPV4ADDRESS)||[],re=h(J,2),se=re[1];return se?se.split(".").map(tr).join("."):V}function vr(V,R){var J=V.match(R.IPV6ADDRESS)||[],re=h(J,3),se=re[1],we=re[2];if(se){for(var Se=se.toLowerCase().split("::").reverse(),je=h(Se,2),We=je[0],bt=je[1],De=bt?bt.split(":").map(tr):[],at=We.split(":").map(tr),ft=R.IPV4ADDRESS.test(at[at.length-1]),lt=ft?7:8,Ge=at.length-lt,ct=Array(lt),et=0;et<lt;++et)ct[et]=De[et]||at[Ge+et]||"";ft&&(ct[lt-1]=Vt(ct[lt-1],R));var Mr=ct.reduce(function(Zt,Cr,Yr){if(!Cr||Cr==="0"){var Ar=Zt[Zt.length-1];Ar&&Ar.index+Ar.length===Yr?Ar.length++:Zt.push({index:Yr,length:1})}return Zt},[]),Bt=Mr.sort(function(Zt,Cr){return Cr.length-Zt.length})[0],rr=void 0;if(Bt&&Bt.length>1){var st=ct.slice(0,Bt.index),Ht=ct.slice(Bt.index+Bt.length);rr=st.join(":")+"::"+Ht.join(":")}else rr=ct.join(":");return we&&(rr+="%"+we),rr}else return V}var Rr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,xr="".match(/(){0}/)[1]===void 0;function jt(V){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J={},re=R.iri!==!1?g:c;R.reference==="suffix"&&(V=(R.scheme?R.scheme+":":"")+"//"+V);var se=V.match(Rr);if(se){xr?(J.scheme=se[1],J.userinfo=se[3],J.host=se[4],J.port=parseInt(se[5],10),J.path=se[6]||"",J.query=se[7],J.fragment=se[8],isNaN(J.port)&&(J.port=se[5])):(J.scheme=se[1]||void 0,J.userinfo=V.indexOf("@")!==-1?se[3]:void 0,J.host=V.indexOf("//")!==-1?se[4]:void 0,J.port=parseInt(se[5],10),J.path=se[6]||"",J.query=V.indexOf("?")!==-1?se[7]:void 0,J.fragment=V.indexOf("#")!==-1?se[8]:void 0,isNaN(J.port)&&(J.port=V.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?se[4]:void 0)),J.host&&(J.host=vr(Vt(J.host,re),re)),J.scheme===void 0&&J.userinfo===void 0&&J.host===void 0&&J.port===void 0&&!J.path&&J.query===void 0?J.reference="same-document":J.scheme===void 0?J.reference="relative":J.fragment===void 0?J.reference="absolute":J.reference="uri",R.reference&&R.reference!=="suffix"&&R.reference!==J.reference&&(J.error=J.error||"URI is not a "+R.reference+" reference.");var we=kt[(R.scheme||J.scheme||"").toLowerCase()];if(!R.unicodeSupport&&(!we||!we.unicodeSupport)){if(J.host&&(R.domainHost||we&&we.domainHost))try{J.host=Lt.toASCII(J.host.replace(re.PCT_ENCODED,Ft).toLowerCase())}catch(Se){J.error=J.error||"Host's domain name can not be converted to ASCII via punycode: "+Se}ut(J,c)}else ut(J,re);we&&we.parse&&we.parse(J,R)}else J.error=J.error||"URI can not be parsed.";return J}function Sn(V,R){var J=R.iri!==!1?g:c,re=[];return V.userinfo!==void 0&&(re.push(V.userinfo),re.push("@")),V.host!==void 0&&re.push(vr(Vt(String(V.host),J),J).replace(J.IPV6ADDRESS,function(se,we,Se){return"["+we+(Se?"%25"+Se:"")+"]"})),(typeof V.port=="number"||typeof V.port=="string")&&(re.push(":"),re.push(String(V.port))),re.length?re.join(""):void 0}var Pn=/^\.\.?\//,Tn=/^\/\.(\/|$)/,Ce=/^\/\.\.(\/|$)/,Hn=/^\/?(?:.|\n)*?(?=\/|$)/;function Nr(V){for(var R=[];V.length;)if(V.match(Pn))V=V.replace(Pn,"");else if(V.match(Tn))V=V.replace(Tn,"/");else if(V.match(Ce))V=V.replace(Ce,"/"),R.pop();else if(V==="."||V==="..")V="";else{var J=V.match(Hn);if(J){var re=J[0];V=V.slice(re.length),R.push(re)}else throw new Error("Unexpected dot segment condition")}return R.join("")}function Ee(V){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=R.iri?g:c,re=[],se=kt[(R.scheme||V.scheme||"").toLowerCase()];if(se&&se.serialize&&se.serialize(V,R),V.host&&!J.IPV6ADDRESS.test(V.host)){if(R.domainHost||se&&se.domainHost)try{V.host=R.iri?Lt.toUnicode(V.host):Lt.toASCII(V.host.replace(J.PCT_ENCODED,Ft).toLowerCase())}catch(je){V.error=V.error||"Host's domain name can not be converted to "+(R.iri?"Unicode":"ASCII")+" via punycode: "+je}}ut(V,J),R.reference!=="suffix"&&V.scheme&&(re.push(V.scheme),re.push(":"));var we=Sn(V,R);if(we!==void 0&&(R.reference!=="suffix"&&re.push("//"),re.push(we),V.path&&V.path.charAt(0)!=="/"&&re.push("/")),V.path!==void 0){var Se=V.path;!R.absolutePath&&(!se||!se.absolutePath)&&(Se=Nr(Se)),we===void 0&&(Se=Se.replace(/^\/\//,"/%2F")),re.push(Se)}return V.query!==void 0&&(re.push("?"),re.push(V.query)),V.fragment!==void 0&&(re.push("#"),re.push(V.fragment)),re.join("")}function Re(V,R){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=arguments[3],se={};return re||(V=jt(Ee(V,J),J),R=jt(Ee(R,J),J)),J=J||{},!J.tolerant&&R.scheme?(se.scheme=R.scheme,se.userinfo=R.userinfo,se.host=R.host,se.port=R.port,se.path=Nr(R.path||""),se.query=R.query):(R.userinfo!==void 0||R.host!==void 0||R.port!==void 0?(se.userinfo=R.userinfo,se.host=R.host,se.port=R.port,se.path=Nr(R.path||""),se.query=R.query):(R.path?(R.path.charAt(0)==="/"?se.path=Nr(R.path):((V.userinfo!==void 0||V.host!==void 0||V.port!==void 0)&&!V.path?se.path="/"+R.path:V.path?se.path=V.path.slice(0,V.path.lastIndexOf("/")+1)+R.path:se.path=R.path,se.path=Nr(se.path)),se.query=R.query):(se.path=V.path,R.query!==void 0?se.query=R.query:se.query=V.query),se.userinfo=V.userinfo,se.host=V.host,se.port=V.port),se.scheme=V.scheme),se.fragment=R.fragment,se}function At(V,R,J){var re=l({scheme:"null"},J);return Ee(Re(jt(V,re),jt(R,re),re,!0),re)}function ht(V,R){return typeof V=="string"?V=Ee(jt(V,R),R):n(V)==="object"&&(V=jt(Ee(V,R),R)),V}function mr(V,R,J){return typeof V=="string"?V=Ee(jt(V,J),J):n(V)==="object"&&(V=Ee(V,J)),typeof R=="string"?R=Ee(jt(R,J),J):n(R)==="object"&&(R=Ee(R,J)),V===R}function Ne(V,R){return V&&V.toString().replace(!R||!R.iri?c.ESCAPE:g.ESCAPE,Tt)}function _e(V,R){return V&&V.toString().replace(!R||!R.iri?c.PCT_ENCODED:g.PCT_ENCODED,Ft)}var te={scheme:"http",domainHost:!0,parse:function(R,J){return R.host||(R.error=R.error||"HTTP URIs must have a host."),R},serialize:function(R,J){var re=String(R.scheme).toLowerCase()==="https";return(R.port===(re?443:80)||R.port==="")&&(R.port=void 0),R.path||(R.path="/"),R}},ce={scheme:"https",domainHost:te.domainHost,parse:te.parse,serialize:te.serialize};function Ae(V){return typeof V.secure=="boolean"?V.secure:String(V.scheme).toLowerCase()==="wss"}var Be={scheme:"ws",domainHost:!0,parse:function(R,J){var re=R;return re.secure=Ae(re),re.resourceName=(re.path||"/")+(re.query?"?"+re.query:""),re.path=void 0,re.query=void 0,re},serialize:function(R,J){if((R.port===(Ae(R)?443:80)||R.port==="")&&(R.port=void 0),typeof R.secure=="boolean"&&(R.scheme=R.secure?"wss":"ws",R.secure=void 0),R.resourceName){var re=R.resourceName.split("?"),se=h(re,2),we=se[0],Se=se[1];R.path=we&&we!=="/"?we:void 0,R.query=Se,R.resourceName=void 0}return R.fragment=void 0,R}},Ye={scheme:"wss",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},Pt={},it=!0,vt="[A-Za-z0-9\\-\\.\\_\\~"+(it?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",It="[0-9A-Fa-f]",Xr=e(e("%[EFef]"+It+"%"+It+It+"%"+It+It)+"|"+e("%[89A-Fa-f]"+It+"%"+It+It)+"|"+e("%"+It+It)),gt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Fn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",hr=r(Fn,'[\\"\\\\]'),si="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",oi=new RegExp(vt,"g"),Dr=new RegExp(Xr,"g"),mn=new RegExp(r("[^]",gt,"[\\.]",'[\\"]',hr),"g"),Un=new RegExp(r("[^]",vt,si),"g"),ks=Un;function Gn(V){var R=Ft(V);return R.match(oi)?R:V}var ai={scheme:"mailto",parse:function(R,J){var re=R,se=re.to=re.path?re.path.split(","):[];if(re.path=void 0,re.query){for(var we=!1,Se={},je=re.query.split("&"),We=0,bt=je.length;We<bt;++We){var De=je[We].split("=");switch(De[0]){case"to":for(var at=De[1].split(","),ft=0,lt=at.length;ft<lt;++ft)se.push(at[ft]);break;case"subject":re.subject=_e(De[1],J);break;case"body":re.body=_e(De[1],J);break;default:we=!0,Se[_e(De[0],J)]=_e(De[1],J);break}}we&&(re.headers=Se)}re.query=void 0;for(var Ge=0,ct=se.length;Ge<ct;++Ge){var et=se[Ge].split("@");if(et[0]=_e(et[0]),J.unicodeSupport)et[1]=_e(et[1],J).toLowerCase();else try{et[1]=Lt.toASCII(_e(et[1],J).toLowerCase())}catch(Mr){re.error=re.error||"Email address's domain name can not be converted to ASCII via punycode: "+Mr}se[Ge]=et.join("@")}return re},serialize:function(R,J){var re=R,se=o(R.to);if(se){for(var we=0,Se=se.length;we<Se;++we){var je=String(se[we]),We=je.lastIndexOf("@"),bt=je.slice(0,We).replace(Dr,Gn).replace(Dr,s).replace(mn,Tt),De=je.slice(We+1);try{De=J.iri?Lt.toUnicode(De):Lt.toASCII(_e(De,J).toLowerCase())}catch(Ge){re.error=re.error||"Email address's domain name can not be converted to "+(J.iri?"Unicode":"ASCII")+" via punycode: "+Ge}se[we]=bt+"@"+De}re.path=se.join(",")}var at=R.headers=R.headers||{};R.subject&&(at.subject=R.subject),R.body&&(at.body=R.body);var ft=[];for(var lt in at)at[lt]!==Pt[lt]&&ft.push(lt.replace(Dr,Gn).replace(Dr,s).replace(Un,Tt)+"="+at[lt].replace(Dr,Gn).replace(Dr,s).replace(ks,Tt));return ft.length&&(re.query=ft.join("&")),re}},ji=/^([^\:]+)\:(.*)/,In={scheme:"urn",parse:function(R,J){var re=R.path&&R.path.match(ji),se=R;if(re){var we=J.scheme||se.scheme||"urn",Se=re[1].toLowerCase(),je=re[2],We=we+":"+(J.nid||Se),bt=kt[We];se.nid=Se,se.nss=je,se.path=void 0,bt&&(se=bt.parse(se,J))}else se.error=se.error||"URN can not be parsed.";return se},serialize:function(R,J){var re=J.scheme||R.scheme||"urn",se=R.nid,we=re+":"+(J.nid||se),Se=kt[we];Se&&(R=Se.serialize(R,J));var je=R,We=R.nss;return je.path=(se||J.nid)+":"+We,je}},Kn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Bi={scheme:"urn:uuid",parse:function(R,J){var re=R;return re.uuid=re.nss,re.nss=void 0,!J.tolerant&&(!re.uuid||!re.uuid.match(Kn))&&(re.error=re.error||"UUID is not valid."),re},serialize:function(R,J){var re=R;return re.nss=(R.uuid||"").toLowerCase(),re}};kt[te.scheme]=te,kt[ce.scheme]=ce,kt[Be.scheme]=Be,kt[Ye.scheme]=Ye,kt[ai.scheme]=ai,kt[In.scheme]=In,kt[Bi.scheme]=Bi,t.SCHEMES=kt,t.pctEncChar=Tt,t.pctDecChars=Ft,t.parse=jt,t.removeDotSegments=Nr,t.serialize=Ee,t.resolveComponents=Re,t.resolve=At,t.normalize=ht,t.equal=mr,t.escapeComponent=Ne,t.unescapeComponent=_e,Object.defineProperty(t,"__esModule",{value:!0})})});var Us=be(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.getSchemaRefs=Tr.resolveUrl=Tr.normalizeId=Tr._getFullPath=Tr.getFullPath=Tr.inlineRef=void 0;var xy=_t(),Cy=Hs(),Ay=Bc(),Ko=Tl(),Ey=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function _y(t,r=!0){return typeof t=="boolean"?!0:r===!0?!Fl(t):r?zc(t)<=r:!1}Tr.inlineRef=_y;var Sy=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Fl(t){for(let r in t){if(Sy.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(Fl)||typeof e=="object"&&Fl(e))return!0}return!1}function zc(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!Ey.has(e)&&(typeof t[e]=="object"&&xy.eachItem(t[e],n=>r+=zc(n)),r===1/0))return 1/0}return r}function Vc(t="",r){r!==!1&&(t=ss(t));let e=Ko.parse(t);return Hc(e)}Tr.getFullPath=Vc;function Hc(t){return Ko.serialize(t).split("#")[0]+"#"}Tr._getFullPath=Hc;var Py=/#\/?$/;function ss(t){return t?t.replace(Py,""):""}Tr.normalizeId=ss;function Ty(t,r){return r=ss(r),Ko.resolve(t,r)}Tr.resolveUrl=Ty;var Fy=/^[a-z_][-a-z0-9._]*$/i;function Iy(t){if(typeof t=="boolean")return{};let r=ss(t.$id),e={"":r},n=Vc(r,!1),s={},o=new Set;return Ay(t,{allKeys:!0},(c,g,h,$)=>{if($===void 0)return;let k=n+g,x=e[$];typeof c.$id=="string"&&(x=C.call(this,c.$id)),I.call(this,c.$anchor),I.call(this,c.$dynamicAnchor),e[g]=x;function C(N){if(N=ss(x?Ko.resolve(x,N):N),o.has(N))throw f(N);o.add(N);let B=this.refs[N];return typeof B=="string"&&(B=this.refs[B]),typeof B=="object"?l(c,B.schema,N):N!==ss(k)&&(N[0]==="#"?(l(c,s[N],N),s[N]=c):this.refs[N]=k),N}function I(N){if(typeof N=="string"){if(!Fy.test(N))throw new Error(`invalid anchor "${N}"`);C.call(this,`#${N}`)}}}),s;function l(c,g,h){if(g!==void 0&&!Cy(c,g))throw f(h)}function f(c){return new Error(`reference "${c}" resolves to more than one schema`)}}Tr.getSchemaRefs=Iy});var Br=be(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.checkStrictMode=xn.schemaCxtHasRules=xn.subschemaCode=xn.validateFunctionCode=void 0;var Wc=kc(),Uc=is(),Gc=qc(),Ke=ze(),Ie=ln(),Oy=Us(),Zc=_t();function Ry(t){if(Qc(t)&&(Xc(t),Il(t))){qy(t);return}Jc(t,()=>Wc.topBoolOrEmptySchema(t))}xn.validateFunctionCode=Ry;function Jc({gen:t,validateName:r,schema:e,schemaEnv:n,opts:s},o){s.code.es5?t.func(r,Ke._`${Ie.default.data}, ${Ie.default.valCxt}`,n.$async,()=>{t.code(Ke._`"use strict"; ${Kc(e,s)}`),Dy(t,s),t.code(o)}):t.func(r,Ke._`${Ie.default.data}, ${Ny(s)}`,n.$async,()=>t.code(Kc(e,s)).code(o))}function Ny(t){return Ke._`{${Ie.default.dataPath}="", ${Ie.default.parentData}, ${Ie.default.parentDataProperty}, ${Ie.default.rootData}=${Ie.default.data}${t.dynamicRef?Ke._`, ${Ie.default.dynamicAnchors}={}`:Ke.nil}}={}`}function Dy(t,r){t.if(Ie.default.valCxt,()=>{t.var(Ie.default.dataPath,Ke._`${Ie.default.valCxt}.${Ie.default.dataPath}`),t.var(Ie.default.parentData,Ke._`${Ie.default.valCxt}.${Ie.default.parentData}`),t.var(Ie.default.parentDataProperty,Ke._`${Ie.default.valCxt}.${Ie.default.parentDataProperty}`),t.var(Ie.default.rootData,Ke._`${Ie.default.valCxt}.${Ie.default.rootData}`),r.dynamicRef&&t.var(Ie.default.dynamicAnchors,Ke._`${Ie.default.valCxt}.${Ie.default.dynamicAnchors}`)},()=>{t.var(Ie.default.dataPath,Ke._`""`),t.var(Ie.default.parentData,Ke._`undefined`),t.var(Ie.default.parentDataProperty,Ke._`undefined`),t.var(Ie.default.rootData,Ie.default.data),r.dynamicRef&&t.var(Ie.default.dynamicAnchors,Ke._`{}`)})}function qy(t){let{schema:r,opts:e,gen:n}=t;Jc(t,()=>{e.$comment&&r.$comment&&ep(t),zy(t),n.let(Ie.default.vErrors,null),n.let(Ie.default.errors,0),e.unevaluated&&Ly(t),Yc(t),Uy(t)})}function Ly(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Ke._`${e}.evaluated`),r.if(Ke._`${t.evaluated}.dynamicProps`,()=>r.assign(Ke._`${t.evaluated}.props`,Ke._`undefined`)),r.if(Ke._`${t.evaluated}.dynamicItems`,()=>r.assign(Ke._`${t.evaluated}.items`,Ke._`undefined`))}function Kc(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Ke._`/*# sourceURL=${t.$id} */`:Ke.nil}function jy(t,r){if(Qc(t)&&(Xc(t),Il(t))){By(t,r);return}Wc.boolOrEmptySchema(t,r)}xn.subschemaCode=jy;function Il({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}xn.schemaCxtHasRules=Il;function Qc(t){return typeof t.schema!="boolean"}function By(t,r){let{schema:e,gen:n,opts:s}=t;s.$comment&&e.$comment&&ep(t),Vy(t),Hy(t);let o=n.const("_errs",Ie.default.errors);Yc(t,o),n.var(r,Ke._`${o} === ${Ie.default.errors}`)}function Xc(t){Zc.checkUnknownRules(t),My(t)}function Yc(t,r){if(t.opts.jtd)return Gc.schemaKeywords(t,[],!1,r);let e=Uc.getSchemaTypes(t.schema),n=Uc.coerceAndCheckDataType(t,e);Gc.schemaKeywords(t,e,!n,r)}function My(t){let{schema:r,errSchemaPath:e,opts:n,self:s}=t;r.$ref&&n.ignoreKeywordsWithRef&&Zc.schemaHasRulesButRef(r,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function zy(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&tp(t,"default is ignored in the schema root")}function Vy(t){t.schema.$id&&(t.baseId=Oy.resolveUrl(t.baseId,t.schema.$id))}function Hy(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function ep({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:s}){let o=e.$comment;if(s.$comment===!0)t.code(Ke._`${Ie.default.self}.logger.log(${o})`);else if(typeof s.$comment=="function"){let l=Ke.str`${n}/$comment`,f=t.scopeValue("root",{ref:r.root});t.code(Ke._`${Ie.default.self}.opts.$comment(${o}, ${l}, ${f}.schema)`)}}function Uy(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:s,opts:o}=t;e.$async?r.if(Ke._`${Ie.default.errors} === 0`,()=>r.return(Ie.default.data),()=>r.throw(Ke._`new ${s}(${Ie.default.vErrors})`)):(r.assign(Ke._`${n}.errors`,Ie.default.vErrors),o.unevaluated&&Gy(t),r.return(Ke._`${Ie.default.errors} === 0`))}function Gy({gen:t,evaluated:r,props:e,items:n}){e instanceof Ke.Name&&t.assign(Ke._`${r}.props`,e),n instanceof Ke.Name&&t.assign(Ke._`${r}.items`,n)}function tp(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}xn.checkStrictMode=tp});var _t=be(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.func=tt.setEvaluated=tt.evaluatedPropsToName=tt.mergeEvaluated=tt.eachItem=tt.unescapeJsonPointer=tt.escapeJsonPointer=tt.escapeFragment=tt.unescapeFragment=tt.schemaRefOrVal=tt.schemaHasRulesButRef=tt.schemaHasRules=tt.checkUnknownRules=tt.alwaysValidSchema=tt.toHash=void 0;var Ot=ze(),Ky=Br();function Wy(t){let r={};for(let e of t)r[e]=!0;return r}tt.toHash=Wy;function Zy(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(np(t,r),!ip(r,t.self.RULES.all))}tt.alwaysValidSchema=Zy;function np(t,r=t.schema){let{opts:e,self:n}=t;if(!e.strict||typeof r=="boolean")return;let s=n.RULES.keywords;for(let o in r)s[o]||Ky.checkStrictMode(t,`unknown keyword: "${o}"`)}tt.checkUnknownRules=np;function ip(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}tt.schemaHasRules=ip;function Jy(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(e!=="$ref"&&r.all[e])return!0;return!1}tt.schemaHasRulesButRef=Jy;function Qy({topSchemaRef:t,schemaPath:r},e,n,s){if(!s){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return Ot._`${e}`}return Ot._`${t}${r}${Ot.getProperty(n)}`}tt.schemaRefOrVal=Qy;function Xy(t){return op(decodeURIComponent(t))}tt.unescapeFragment=Xy;function Yy(t){return encodeURIComponent(sp(t))}tt.escapeFragment=Yy;function sp(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}tt.escapeJsonPointer=sp;function op(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}tt.unescapeJsonPointer=op;function eb(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}tt.eachItem=eb;function rp({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(s,o,l,f)=>{let c=l===void 0?o:l instanceof Ot.Name?(o instanceof Ot.Name?t(s,o,l):r(s,o,l),l):o instanceof Ot.Name?(r(s,l,o),o):e(o,l);return f===Ot.Name&&!(c instanceof Ot.Name)?n(s,c):c}}tt.mergeEvaluated={props:rp({mergeNames:(t,r,e)=>t.if(Ot._`${e} !== true && ${r} !== undefined`,()=>{t.if(Ot._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,Ot._`${e} || {}`).code(Ot._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(Ot._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,Ot._`${e} || {}`),Ol(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:ap}),items:rp({mergeNames:(t,r,e)=>t.if(Ot._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,Ot._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(Ot._`${e} !== true`,()=>t.assign(e,r===!0?!0:Ot._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function ap(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",Ot._`{}`);return r!==void 0&&Ol(t,e,r),e}tt.evaluatedPropsToName=ap;function Ol(t,r,e){Object.keys(e).forEach(n=>t.assign(Ot._`${r}${Ot.getProperty(n)}`,!0))}tt.setEvaluated=Ol;function tb(t,r){return t.scopeValue("func",{ref:r,code:r.code})}tt.func=tb});var is=be(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.reportTypeError=Xt.checkDataTypes=Xt.checkDataType=Xt.coerceAndCheckDataType=Xt.getJSONTypes=Xt.getSchemaTypes=Xt.DataType=void 0;var rb=sl(),nb=ol(),ib=zs(),Oe=ze(),lp=_t(),Gs;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Gs=Xt.DataType||(Xt.DataType={}));function sb(t){let r=up(t.type);if(r.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&r.push("null")}return r}Xt.getSchemaTypes=sb;function up(t){let r=Array.isArray(t)?t:t?[t]:[];if(r.every(rb.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}Xt.getJSONTypes=up;function ob(t,r){let{gen:e,data:n,opts:s}=t,o=ab(r,s.coerceTypes),l=r.length>0&&!(o.length===0&&r.length===1&&nb.schemaHasRulesForType(t,r[0]));if(l){let f=Nl(r,n,s.strict,Gs.Wrong);e.if(f,()=>{o.length?lb(t,r,o):Dl(t)})}return l}Xt.coerceAndCheckDataType=ob;var fp=new Set(["string","number","integer","boolean","null"]);function ab(t,r){return r?t.filter(e=>fp.has(e)||r==="array"&&e==="array"):[]}function lb(t,r,e){let{gen:n,data:s,opts:o}=t,l=n.let("dataType",Oe._`typeof ${s}`),f=n.let("coerced",Oe._`undefined`);o.coerceTypes==="array"&&n.if(Oe._`${l} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,Oe._`${s}[0]`).assign(l,Oe._`typeof ${s}`).if(Nl(r,s,o.strict),()=>n.assign(f,s))),n.if(Oe._`${f} !== undefined`);for(let g of e)(fp.has(g)||g==="array"&&o.coerceTypes==="array")&&c(g);n.else(),Dl(t),n.endIf(),n.if(Oe._`${f} !== undefined`,()=>{n.assign(s,f),ub(t,f)});function c(g){switch(g){case"string":n.elseIf(Oe._`${l} == "number" || ${l} == "boolean"`).assign(f,Oe._`"" + ${s}`).elseIf(Oe._`${s} === null`).assign(f,Oe._`""`);return;case"number":n.elseIf(Oe._`${l} == "boolean" || ${s} === null
1
+ var rg=Object.create;var No=Object.defineProperty;var ng=Object.getOwnPropertyDescriptor;var ig=Object.getOwnPropertyNames;var sg=Object.getPrototypeOf,og=Object.prototype.hasOwnProperty;var we=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),fc=(t,r)=>{for(var e in r)No(t,e,{get:r[e],enumerable:!0})},cc=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of ig(r))!og.call(t,s)&&s!==e&&No(t,s,{get:()=>r[s],enumerable:!(n=ng(r,s))||n.enumerable});return t};var Sr=(t,r,e)=>(e=t!=null?rg(sg(t)):{},cc(r||!t||!t.__esModule?No(e,"default",{value:t,enumerable:!0}):e,t)),ag=t=>cc(No({},"__esModule",{value:!0}),t);var sl=we(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.getRules=Yi.isJSONType=void 0;var lg=["string","number","integer","boolean","null","object","array"],ug=new Set(lg);function fg(t){return typeof t=="string"&&ug.has(t)}Yi.isJSONType=fg;function cg(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Yi.getRules=cg});var ol=we(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.shouldUseRule=Qn.shouldUseGroup=Qn.schemaHasRulesForType=void 0;function pg({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&pc(t,n)}Qn.schemaHasRulesForType=pg;function pc(t,r){return r.rules.some(e=>dc(t,e))}Qn.shouldUseGroup=pc;function dc(t,r){var e;return t[r.keyword]!==void 0||((e=r.definition.implements)===null||e===void 0?void 0:e.some(n=>t[n]!==void 0))}Qn.shouldUseRule=dc});var Ro=we(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.getProperty=dt.safeStringify=dt.stringify=dt.strConcat=dt.addCodeArg=dt.str=dt._=dt.nil=dt._Code=dt.Name=dt.IDENTIFIER=dt._CodeOrName=void 0;var Rs=class{};dt._CodeOrName=Rs;dt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var yi=class extends Rs{constructor(r){if(super(),!dt.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};dt.Name=yi;var kn=class extends Rs{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((e,n)=>`${e}${n}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((e,n)=>(n instanceof yi&&(e[n.str]=(e[n.str]||0)+1),e),{})}};dt._Code=kn;dt.nil=new kn("");function mc(t,...r){let e=[t[0]],n=0;for(;n<r.length;)ll(e,r[n]),e.push(t[++n]);return new kn(e)}dt._=mc;var al=new kn("+");function hc(t,...r){let e=[Ds(t[0])],n=0;for(;n<r.length;)e.push(al),ll(e,r[n]),e.push(al,Ds(t[++n]));return dg(e),new kn(e)}dt.str=hc;function ll(t,r){r instanceof kn?t.push(...r._items):r instanceof yi?t.push(r):t.push(gg(r))}dt.addCodeArg=ll;function dg(t){let r=1;for(;r<t.length-1;){if(t[r]===al){let e=mg(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function mg(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof yi||t[t.length-1]!=='"'?void 0:typeof r!="string"?`${t.slice(0,-1)}${r}"`:r[0]==='"'?t.slice(0,-1)+r.slice(1):void 0;if(typeof r=="string"&&r[0]==='"'&&!(t instanceof yi))return`"${t}${r.slice(1)}`}function hg(t,r){return r.emptyStr()?t:t.emptyStr()?r:hc`${t}${r}`}dt.strConcat=hg;function gg(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Ds(Array.isArray(t)?t.join(","):t)}function yg(t){return new kn(Ds(t))}dt.stringify=yg;function Ds(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}dt.safeStringify=Ds;function bg(t){return typeof t=="string"&&dt.IDENTIFIER.test(t)?new kn(`.${t}`):mc`[${t}]`}dt.getProperty=bg});var pl=we(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.ValueScope=gr.ValueScopeName=gr.Scope=gr.varKinds=gr.UsedValueState=void 0;var Pr=Ro(),ul=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},fl;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(fl=gr.UsedValueState||(gr.UsedValueState={}));gr.varKinds={const:new Pr.Name("const"),let:new Pr.Name("let"),var:new Pr.Name("var")};var Do=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof Pr.Name?r:this.name(r)}name(r){return new Pr.Name(this._newName(r))}_newName(r){let e=this._names[r]||this._nameGroup(r);return`${r}${e.index++}`}_nameGroup(r){var e,n;if(((n=(e=this._parent)===null||e===void 0?void 0:e._prefixes)===null||n===void 0?void 0:n.has(r))||this._prefixes&&!this._prefixes.has(r))throw new Error(`CodeGen: prefix "${r}" is not allowed in this scope`);return this._names[r]={prefix:r,index:0}}};gr.Scope=Do;var qo=class extends Pr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=Pr._`.${new Pr.Name(e)}[${n}]`}};gr.ValueScopeName=qo;var $g=Pr._`\n`,cl=class extends Do{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?$g:Pr.nil}}get(){return this._scope}name(r){return new qo(r,this._newName(r))}value(r,e){var n;if(e.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let s=this.toName(r),{prefix:o}=s,l=(n=e.key)!==null&&n!==void 0?n:e.ref,f=this._values[o];if(f){let h=f.get(l);if(h)return h}else f=this._values[o]=new Map;f.set(l,s);let c=this._scope[o]||(this._scope[o]=[]),g=c.length;return c[g]=e.ref,s.setValue(e,{property:o,itemIndex:g}),s}getValue(r,e){let n=this._values[r];if(!!n)return n.get(e)}scopeRefs(r,e=this._values){return this._reduceValues(e,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return Pr._`${r}${n.scopePath}`})}scopeCode(r=this._values,e,n){return this._reduceValues(r,s=>{if(s.value===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return s.value.code},e,n)}_reduceValues(r,e,n={},s){let o=Pr.nil;for(let l in r){let f=r[l];if(!f)continue;let c=n[l]=n[l]||new Map;f.forEach(g=>{if(c.has(g))return;c.set(g,fl.Started);let h=e(g);if(h){let $=this.opts.es5?gr.varKinds.var:gr.varKinds.const;o=Pr._`${o}${$} ${g} = ${h};${this.opts._n}`}else if(h=s==null?void 0:s(g))o=Pr._`${o}${h}${this.opts._n}`;else throw new ul(g);c.set(g,fl.Completed)})}return o}};gr.ValueScope=cl});var ze=we(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.or=He.and=He.not=He.CodeGen=He.operators=He.varKinds=He.ValueScopeName=He.ValueScope=He.Scope=He.Name=He.stringify=He.getProperty=He.nil=He.strConcat=He.str=He._=void 0;var Ze=Ro(),on=pl(),wi=Ro();Object.defineProperty(He,"_",{enumerable:!0,get:function(){return wi._}});Object.defineProperty(He,"str",{enumerable:!0,get:function(){return wi.str}});Object.defineProperty(He,"strConcat",{enumerable:!0,get:function(){return wi.strConcat}});Object.defineProperty(He,"nil",{enumerable:!0,get:function(){return wi.nil}});Object.defineProperty(He,"getProperty",{enumerable:!0,get:function(){return wi.getProperty}});Object.defineProperty(He,"stringify",{enumerable:!0,get:function(){return wi.stringify}});Object.defineProperty(He,"Name",{enumerable:!0,get:function(){return wi.Name}});var Mo=pl();Object.defineProperty(He,"Scope",{enumerable:!0,get:function(){return Mo.Scope}});Object.defineProperty(He,"ValueScope",{enumerable:!0,get:function(){return Mo.ValueScope}});Object.defineProperty(He,"ValueScopeName",{enumerable:!0,get:function(){return Mo.ValueScopeName}});Object.defineProperty(He,"varKinds",{enumerable:!0,get:function(){return Mo.varKinds}});He.operators={GT:new Ze._Code(">"),GTE:new Ze._Code(">="),LT:new Ze._Code("<"),LTE:new Ze._Code("<="),EQ:new Ze._Code("==="),NEQ:new Ze._Code("!=="),NOT:new Ze._Code("!"),OR:new Ze._Code("||"),AND:new Ze._Code("&&"),ADD:new Ze._Code("+")};var Mn=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},dl=class extends Mn{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?on.varKinds.var:this.varKind,s=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${s};`+e}optimizeNames(r,e){if(!!r[this.name.str])return this.rhs&&(this.rhs=ts(this.rhs,r,e)),this}get names(){return this.rhs instanceof Ze._CodeOrName?this.rhs.names:{}}},Lo=class extends Mn{constructor(r,e,n){super(),this.lhs=r,this.rhs=e,this.sideEffects=n}render({_n:r}){return`${this.lhs} = ${this.rhs};`+r}optimizeNames(r,e){if(!(this.lhs instanceof Ze.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=ts(this.rhs,r,e),this}get names(){let r=this.lhs instanceof Ze.Name?{}:{...this.lhs.names};return Bo(r,this.rhs)}},ml=class extends Lo{constructor(r,e,n,s){super(r,n,s),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},hl=class extends Mn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},gl=class extends Mn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},yl=class extends Mn{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},bl=class extends Mn{constructor(r){super(),this.code=r}render({_n:r}){return`${this.code};`+r}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(r,e){return this.code=ts(this.code,r,e),this}get names(){return this.code instanceof Ze._CodeOrName?this.code.names:{}}},qs=class extends Mn{constructor(r=[]){super(),this.nodes=r}render(r){return this.nodes.reduce((e,n)=>e+n.render(r),"")}optimizeNodes(){let{nodes:r}=this,e=r.length;for(;e--;){let n=r[e].optimizeNodes();Array.isArray(n)?r.splice(e,1,...n):n?r[e]=n:r.splice(e,1)}return r.length>0?this:void 0}optimizeNames(r,e){let{nodes:n}=this,s=n.length;for(;s--;){let o=n[s];o.optimizeNames(r,e)||(wg(r,o.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>$i(r,e.names),{})}},zn=class extends qs{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},$l=class extends qs{},es=class extends zn{};es.kind="else";var an=class extends zn{constructor(r,e){super(e),this.condition=r}render(r){let e=`if(${this.condition})`+super.render(r);return this.else&&(e+="else "+this.else.render(r)),e}optimizeNodes(){super.optimizeNodes();let r=this.condition;if(r===!0)return this.nodes;let e=this.else;if(e){let n=e.optimizeNodes();e=this.else=Array.isArray(n)?new es(n):n}if(e)return r===!1?e instanceof an?e:e.nodes:this.nodes.length?this:new an(gc(r),e instanceof an?[e]:e.nodes);if(!(r===!1||!this.nodes.length))return this}optimizeNames(r,e){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(r,e),!!(super.optimizeNames(r,e)||this.else))return this.condition=ts(this.condition,r,e),this}get names(){let r=super.names;return Bo(r,this.condition),this.else&&$i(r,this.else.names),r}};an.kind="if";var bi=class extends zn{};bi.kind="for";var wl=class extends bi{constructor(r){super(),this.iteration=r}render(r){return`for(${this.iteration})`+super.render(r)}optimizeNames(r,e){if(!!super.optimizeNames(r,e))return this.iteration=ts(this.iteration,r,e),this}get names(){return $i(super.names,this.iteration.names)}},kl=class extends bi{constructor(r,e,n,s){super(),this.varKind=r,this.name=e,this.from=n,this.to=s}render(r){let e=r.es5?on.varKinds.var:this.varKind,{name:n,from:s,to:o}=this;return`for(${e} ${n}=${s}; ${n}<${o}; ${n}++)`+super.render(r)}get names(){let r=Bo(super.names,this.from);return Bo(r,this.to)}},jo=class extends bi{constructor(r,e,n,s){super(),this.loop=r,this.varKind=e,this.name=n,this.iterable=s}render(r){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(r)}optimizeNames(r,e){if(!!super.optimizeNames(r,e))return this.iterable=ts(this.iterable,r,e),this}get names(){return $i(super.names,this.iterable.names)}},Ls=class extends zn{constructor(r,e,n){super(),this.name=r,this.args=e,this.async=n}render(r){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(r)}};Ls.kind="func";var js=class extends qs{render(r){return"return "+super.render(r)}};js.kind="return";var vl=class extends zn{render(r){let e="try"+super.render(r);return this.catch&&(e+=this.catch.render(r)),this.finally&&(e+=this.finally.render(r)),e}optimizeNodes(){var r,e;return super.optimizeNodes(),(r=this.catch)===null||r===void 0||r.optimizeNodes(),(e=this.finally)===null||e===void 0||e.optimizeNodes(),this}optimizeNames(r,e){var n,s;return super.optimizeNames(r,e),(n=this.catch)===null||n===void 0||n.optimizeNames(r,e),(s=this.finally)===null||s===void 0||s.optimizeNames(r,e),this}get names(){let r=super.names;return this.catch&&$i(r,this.catch.names),this.finally&&$i(r,this.finally.names),r}},Bs=class extends zn{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};Bs.kind="catch";var Ms=class extends zn{render(r){return"finally"+super.render(r)}};Ms.kind="finally";var xl=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
2
+ `:""},this._extScope=r,this._scope=new on.Scope({parent:r}),this._nodes=[new $l]}toString(){return this._root.render(this.opts)}name(r){return this._scope.name(r)}scopeName(r){return this._extScope.name(r)}scopeValue(r,e){let n=this._extScope.value(r,e);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(r,e){return this._extScope.getValue(r,e)}scopeRefs(r){return this._extScope.scopeRefs(r,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(r,e,n,s){let o=this._scope.toName(e);return n!==void 0&&s&&(this._constants[o.str]=n),this._leafNode(new dl(r,o,n)),o}const(r,e,n){return this._def(on.varKinds.const,r,e,n)}let(r,e,n){return this._def(on.varKinds.let,r,e,n)}var(r,e,n){return this._def(on.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new Lo(r,e,n))}add(r,e){return this._leafNode(new ml(r,He.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==Ze.nil&&this._leafNode(new bl(r)),this}object(...r){let e=["{"];for(let[n,s]of r)e.length>1&&e.push(","),e.push(n),(n!==s||this.opts.es5)&&(e.push(":"),Ze.addCodeArg(e,s));return e.push("}"),new Ze._Code(e)}if(r,e,n){if(this._blockNode(new an(r)),e&&n)this.code(e).else().code(n).endIf();else if(e)this.code(e).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(r){return this._elseNode(new an(r))}else(){return this._elseNode(new es)}endIf(){return this._endBlockNode(an,es)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new wl(r),e)}forRange(r,e,n,s,o=this.opts.es5?on.varKinds.var:on.varKinds.let){let l=this._scope.toName(r);return this._for(new kl(o,l,e,n),()=>s(l))}forOf(r,e,n,s=on.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let l=e instanceof Ze.Name?e:this.var("_arr",e);return this.forRange("_i",0,Ze._`${l}.length`,f=>{this.var(o,Ze._`${l}[${f}]`),n(o)})}return this._for(new jo("of",s,o,e),()=>n(o))}forIn(r,e,n,s=this.opts.es5?on.varKinds.var:on.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,Ze._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new jo("in",s,o,e),()=>n(o))}endFor(){return this._endBlockNode(bi)}label(r){return this._leafNode(new hl(r))}break(r){return this._leafNode(new gl(r))}return(r){let e=new js;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(js)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let s=new vl;if(this._blockNode(s),this.code(r),e){let o=this.name("e");this._currNode=s.catch=new Bs(o),e(o)}return n&&(this._currNode=s.finally=new Ms,this.code(n)),this._endBlockNode(Bs,Ms)}throw(r){return this._leafNode(new yl(r))}block(r,e){return this._blockStarts.push(this._nodes.length),r&&this.code(r).endBlock(e),this}endBlock(r){let e=this._blockStarts.pop();if(e===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-e;if(n<0||r!==void 0&&n!==r)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${r} expected`);return this._nodes.length=e,this}func(r,e=Ze.nil,n,s){return this._blockNode(new Ls(r,e,n)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(Ls)}optimize(r=1){for(;r-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(r){return this._currNode.nodes.push(r),this}_blockNode(r){this._currNode.nodes.push(r),this._nodes.push(r)}_endBlockNode(r,e){let n=this._currNode;if(n instanceof r||e&&n instanceof e)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${e?`${r.kind}/${e.kind}`:r.kind}"`)}_elseNode(r){let e=this._currNode;if(!(e instanceof an))throw new Error('CodeGen: "else" without "if"');return this._currNode=e.else=r,this}get _root(){return this._nodes[0]}get _currNode(){let r=this._nodes;return r[r.length-1]}set _currNode(r){let e=this._nodes;e[e.length-1]=r}};He.CodeGen=xl;function $i(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function Bo(t,r){return r instanceof Ze._CodeOrName?$i(t,r.names):t}function ts(t,r,e){if(t instanceof Ze.Name)return n(t);if(!s(t))return t;return new Ze._Code(t._items.reduce((o,l)=>(l instanceof Ze.Name&&(l=n(l)),l instanceof Ze._Code?o.push(...l._items):o.push(l),o),[]));function n(o){let l=e[o.str];return l===void 0||r[o.str]!==1?o:(delete r[o.str],l)}function s(o){return o instanceof Ze._Code&&o._items.some(l=>l instanceof Ze.Name&&r[l.str]===1&&e[l.str]!==void 0)}}function wg(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function gc(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:Ze._`!${Cl(t)}`}He.not=gc;var kg=yc(He.operators.AND);function vg(...t){return t.reduce(kg)}He.and=vg;var xg=yc(He.operators.OR);function Cg(...t){return t.reduce(xg)}He.or=Cg;function yc(t){return(r,e)=>r===Ze.nil?e:e===Ze.nil?r:Ze._`${Cl(r)} ${t} ${Cl(e)}`}function Cl(t){return t instanceof Ze.Name?t:Ze._`(${t})`}});var ln=we(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var ir=ze(),Ag={data:new ir.Name("data"),valCxt:new ir.Name("valCxt"),dataPath:new ir.Name("dataPath"),parentData:new ir.Name("parentData"),parentDataProperty:new ir.Name("parentDataProperty"),rootData:new ir.Name("rootData"),dynamicAnchors:new ir.Name("dynamicAnchors"),vErrors:new ir.Name("vErrors"),errors:new ir.Name("errors"),this:new ir.Name("this"),self:new ir.Name("self"),scope:new ir.Name("scope"),json:new ir.Name("json"),jsonPos:new ir.Name("jsonPos"),jsonLen:new ir.Name("jsonLen"),jsonPart:new ir.Name("jsonPart")};Al.default=Ag});var zs=we(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.extendErrors=sr.resetErrorsCount=sr.reportExtraError=sr.reportError=sr.keyword$DataError=sr.keywordError=void 0;var Je=ze(),or=ln();sr.keywordError={message:({keyword:t})=>Je.str`should pass "${t}" keyword validation`};sr.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Je.str`"${t}" keyword must be ${r} ($data)`:Je.str`"${t}" keyword is invalid ($data)`};function Eg(t,r=sr.keywordError,e){let{it:n}=t,{gen:s,compositeRule:o,allErrors:l}=n,f=wc(t,r);e??(o||l)?bc(s,f):$c(n,Je._`[${f}]`)}sr.reportError=Eg;function _g(t,r=sr.keywordError){let{it:e}=t,{gen:n,compositeRule:s,allErrors:o}=e,l=wc(t,r);bc(n,l),s||o||$c(e,or.default.vErrors)}sr.reportExtraError=_g;function Sg(t,r){t.assign(or.default.errors,r),t.if(Je._`${or.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Je._`${or.default.vErrors}.length`,r),()=>t.assign(or.default.vErrors,null)))}sr.resetErrorsCount=Sg;function Pg({gen:t,keyword:r,schemaValue:e,data:n,errsCount:s,it:o}){if(s===void 0)throw new Error("ajv implementation error");let l=t.name("err");t.forRange("i",s,or.default.errors,f=>{t.const(l,Je._`${or.default.vErrors}[${f}]`),t.if(Je._`${l}.dataPath === undefined`,()=>t.assign(Je._`${l}.dataPath`,Je.strConcat(or.default.dataPath,o.errorPath))),t.assign(Je._`${l}.schemaPath`,Je.str`${o.errSchemaPath}/${r}`),o.opts.verbose&&(t.assign(Je._`${l}.schema`,e),t.assign(Je._`${l}.data`,n))})}sr.extendErrors=Pg;function bc(t,r){let e=t.const("err",r);t.if(Je._`${or.default.vErrors} === null`,()=>t.assign(or.default.vErrors,Je._`[${e}]`),Je._`${or.default.vErrors}.push(${e})`),t.code(Je._`${or.default.errors}++`)}function $c(t,r){let{gen:e,validateName:n,schemaEnv:s}=t;s.$async?e.throw(Je._`new ${t.ValidationError}(${r})`):(e.assign(Je._`${n}.errors`,r),e.return(!1))}var vn={keyword:new Je.Name("keyword"),schemaPath:new Je.Name("schemaPath"),params:new Je.Name("params"),propertyName:new Je.Name("propertyName"),message:new Je.Name("message"),schema:new Je.Name("schema"),parentSchema:new Je.Name("parentSchema"),instancePath:new Je.Name("instancePath")};function wc(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Je._`{}`:(n.jtd&&!n.ajvErrors?Tg:Fg)(t,r)}function Tg(t,{message:r}){let{gen:e,keyword:n,it:s}=t,{errorPath:o,errSchemaPath:l,opts:f}=s,c=[[vn.instancePath,Je.strConcat(or.default.dataPath,o)],[vn.schemaPath,Je.str`${l}/${n}`]];return f.messages&&c.push([vn.message,typeof r=="function"?r(t):r]),e.object(...c)}function Fg(t,r){let{gen:e,keyword:n,data:s,schemaValue:o,it:l}=t,{topSchemaRef:f,schemaPath:c,errorPath:g,errSchemaPath:h,propertyName:$,opts:k}=l,{params:x,message:C}=r,I=[[vn.keyword,n],[or.default.dataPath,Je.strConcat(or.default.dataPath,g)],[vn.schemaPath,Je.str`${h}/${n}`],[vn.params,typeof x=="function"?x(t):x||Je._`{}`]];return $&&I.push([vn.propertyName,$]),k.messages&&I.push([vn.message,typeof C=="function"?C(t):C]),k.verbose&&I.push([vn.schema,o],[vn.parentSchema,Je._`${f}${c}`],[or.default.data,s]),e.object(...I)}});var vc=we(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.boolOrEmptySchema=rs.topBoolOrEmptySchema=void 0;var Ig=zs(),Og=ze(),Ng=ln(),Rg={message:"boolean schema is false"};function Dg(t){let{gen:r,schema:e,validateName:n}=t;e===!1?kc(t,!1):typeof e=="object"&&e.$async===!0?r.return(Ng.default.data):(r.assign(Og._`${n}.errors`,null),r.return(!0))}rs.topBoolOrEmptySchema=Dg;function qg(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),kc(t)):e.var(r,!0)}rs.boolOrEmptySchema=qg;function kc(t,r){let{gen:e,data:n}=t,s={gen:e,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};Ig.reportError(s,Rg,r)}});var Cc=we(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.assignDefaults=void 0;var ns=ze(),Lg=Br();function jg(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let s in e)xc(t,s,e[s].default);else r==="array"&&Array.isArray(n)&&n.forEach((s,o)=>xc(t,o,s.default))}zo.assignDefaults=jg;function xc(t,r,e){let{gen:n,compositeRule:s,data:o,opts:l}=t;if(e===void 0)return;let f=ns._`${o}${ns.getProperty(r)}`;if(s){Lg.checkStrictMode(t,`default is ignored for: ${f}`);return}let c=ns._`${f} === undefined`;l.useDefaults==="empty"&&(c=ns._`${c} || ${f} === null || ${f} === ""`),n.if(c,ns._`${f} = ${ns.stringify(e)}`)}});var vi=we(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.applySubschema=ki.Type=void 0;var Bg=Br(),Ac=_t(),ar=ze(),Ec;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Ec=ki.Type||(ki.Type={}));function Mg(t,r,e){let n=zg(t,r);Vg(n,t,r),Hg(n,r);let s={...t,...n,items:void 0,props:void 0};return Bg.subschemaCode(s,e),s}ki.applySubschema=Mg;function zg(t,{keyword:r,schemaProp:e,schema:n,schemaPath:s,errSchemaPath:o,topSchemaRef:l}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let f=t.schema[r];return e===void 0?{schema:f,schemaPath:ar._`${t.schemaPath}${ar.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:f[e],schemaPath:ar._`${t.schemaPath}${ar.getProperty(r)}${ar.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${Ac.escapeFragment(e)}`}}if(n!==void 0){if(s===void 0||o===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:s,topSchemaRef:l,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function Vg(t,r,{dataProp:e,dataPropType:n,data:s,dataTypes:o,propertyName:l}){if(s!==void 0&&e!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:f}=r;if(e!==void 0){let{errorPath:g,dataPathArr:h,opts:$}=r,k=f.let("data",ar._`${r.data}${ar.getProperty(e)}`,!0);c(k),t.errorPath=ar.str`${g}${Ug(e,n,$.jsPropertySyntax)}`,t.parentDataProperty=ar._`${e}`,t.dataPathArr=[...h,t.parentDataProperty]}if(s!==void 0){let g=s instanceof ar.Name?s:f.let("data",s,!0);c(g),l!==void 0&&(t.propertyName=l)}o&&(t.dataTypes=o);function c(g){t.data=g,t.dataLevel=r.dataLevel+1,t.dataTypes=[],r.definedProperties=new Set,t.parentData=r.data,t.dataNames=[...r.dataNames,g]}}function Hg(t,{jtdDiscriminator:r,jtdMetadata:e,compositeRule:n,createErrors:s,allErrors:o}){n!==void 0&&(t.compositeRule=n),s!==void 0&&(t.createErrors=s),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=r,t.jtdMetadata=e}function Ug(t,r,e){if(t instanceof ar.Name){let n=r===Ec.Num;return e?n?ar._`"[" + ${t} + "]"`:ar._`"['" + ${t} + "']"`:n?ar._`"/" + ${t}`:ar._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?ar.getProperty(t).toString():"/"+Ac.escapeJsonPointer(t)}});var un=we(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.validateUnion=mt.validateArray=mt.usePattern=mt.callValidateCode=mt.schemaProperties=mt.allSchemaProperties=mt.noPropertyInData=mt.propertyInData=mt.isOwnProperty=mt.hasPropFunc=mt.reportMissingProp=mt.checkMissingProp=mt.checkReportMissingProp=void 0;var xt=ze(),_c=_t(),Gg=vi(),Xn=ln();function Kg(t,r){let{gen:e,data:n,it:s}=t;e.if(_l(e,n,r,s.opts.ownProperties),()=>{t.setParams({missingProperty:xt._`${r}`},!0),t.error()})}mt.checkReportMissingProp=Kg;function Wg({gen:t,data:r,it:{opts:e}},n,s){return xt.or(...n.map(o=>xt.and(_l(t,r,o,e.ownProperties),xt._`${s} = ${o}`)))}mt.checkMissingProp=Wg;function Zg(t,r){t.setParams({missingProperty:r},!0),t.error()}mt.reportMissingProp=Zg;function Sc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:xt._`Object.prototype.hasOwnProperty`})}mt.hasPropFunc=Sc;function El(t,r,e){return xt._`${Sc(t)}.call(${r}, ${e})`}mt.isOwnProperty=El;function Jg(t,r,e,n){let s=xt._`${r}${xt.getProperty(e)} !== undefined`;return n?xt._`${s} && ${El(t,r,e)}`:s}mt.propertyInData=Jg;function _l(t,r,e,n){let s=xt._`${r}${xt.getProperty(e)} === undefined`;return n?xt.or(s,xt.not(El(t,r,e))):s}mt.noPropertyInData=_l;function Pc(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}mt.allSchemaProperties=Pc;function Qg(t,r){return Pc(r).filter(e=>!_c.alwaysValidSchema(t,r[e]))}mt.schemaProperties=Qg;function Xg({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:s,errorPath:o},it:l},f,c,g){let h=g?xt._`${t}, ${r}, ${n}${s}`:r,$=[[Xn.default.dataPath,xt.strConcat(Xn.default.dataPath,o)],[Xn.default.parentData,l.parentData],[Xn.default.parentDataProperty,l.parentDataProperty],[Xn.default.rootData,Xn.default.rootData]];l.opts.dynamicRef&&$.push([Xn.default.dynamicAnchors,Xn.default.dynamicAnchors]);let k=xt._`${h}, ${e.object(...$)}`;return c!==xt.nil?xt._`${f}.call(${c}, ${k})`:xt._`${f}(${k})`}mt.callValidateCode=Xg;function Yg(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:xt._`new RegExp(${r}, "u")`})}mt.usePattern=Yg;function ey(t){let{gen:r,data:e,keyword:n,it:s}=t,o=r.name("valid");if(s.allErrors){let f=r.let("valid",!0);return l(()=>r.assign(f,!1)),f}return r.var(o,!0),l(()=>r.break()),o;function l(f){let c=r.const("len",xt._`${e}.length`);r.forRange("i",0,c,g=>{t.subschema({keyword:n,dataProp:g,dataPropType:Gg.Type.Num},o),r.if(xt.not(o),f)})}}mt.validateArray=ey;function ty(t){let{gen:r,schema:e,keyword:n,it:s}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(c=>_c.alwaysValidSchema(s,c))&&!s.opts.unevaluated)return;let l=r.let("valid",!1),f=r.name("_valid");r.block(()=>e.forEach((c,g)=>{let h=t.subschema({keyword:n,schemaProp:g,compositeRule:!0},f);r.assign(l,xt._`${l} || ${f}`),t.mergeValidEvaluated(h,f)||r.if(xt.not(l))})),t.result(l,()=>t.reset(),()=>t.error(!0))}mt.validateUnion=ty});var Oc=we(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.keywordCode=void 0;var ry=Vs(),ny=zs(),iy=un(),yr=ze(),xi=ln();function sy(t,r,e,n){let s=new ry.default(t,e,r);"code"in e?e.code(s,n):s.$data&&e.validate?Tc(s,e):"macro"in e?oy(s,e):(e.compile||e.validate)&&Tc(s,e)}Vo.keywordCode=sy;function oy(t,r){let{gen:e,keyword:n,schema:s,parentSchema:o,it:l}=t,f=r.macro.call(l.self,s,o,l),c=Ic(e,n,f);l.opts.validateSchema!==!1&&l.self.validateSchema(f,!0);let g=e.name("valid");t.subschema({schema:f,schemaPath:yr.nil,errSchemaPath:`${l.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},g),t.pass(g,()=>t.error(!0))}function Tc(t,r){var e;let{gen:n,keyword:s,schema:o,parentSchema:l,$data:f,it:c}=t;ly(c,r);let g=!f&&r.compile?r.compile.call(c.self,o,l,c):r.validate,h=Ic(n,s,g),$=n.let("valid");t.block$data($,k),t.ok((e=r.valid)!==null&&e!==void 0?e:$);function k(){if(r.errors===!1)I(),r.modifying&&Fc(t),R(()=>t.error());else{let B=r.async?x():C();r.modifying&&Fc(t),R(()=>ay(t,B))}}function x(){let B=n.let("ruleErrs",null);return n.try(()=>I(yr._`await `),X=>n.assign($,!1).if(yr._`${X} instanceof ${c.ValidationError}`,()=>n.assign(B,yr._`${X}.errors`),()=>n.throw(X))),B}function C(){let B=yr._`${h}.errors`;return n.assign(B,null),I(yr.nil),B}function I(B=r.async?yr._`await `:yr.nil){let X=c.opts.passContext?xi.default.this:xi.default.self,le=!("compile"in r&&!f||r.schema===!1);n.assign($,yr._`${B}${iy.callValidateCode(t,h,X,le)}`,r.modifying)}function R(B){var X;n.if(yr.not((X=r.valid)!==null&&X!==void 0?X:$),B)}}function Fc(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,yr._`${n.parentData}[${n.parentDataProperty}]`))}function ay(t,r){let{gen:e}=t;e.if(yr._`Array.isArray(${r})`,()=>{e.assign(xi.default.vErrors,yr._`${xi.default.vErrors} === null ? ${r} : ${xi.default.vErrors}.concat(${r})`).assign(xi.default.errors,yr._`${xi.default.vErrors}.length`),ny.extendErrors(t)},()=>t.error())}function ly({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function Ic(t,r,e){if(e===void 0)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword",typeof e=="function"?{ref:e}:{ref:e,code:yr.stringify(e)})}});var Lc=we(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.schemaKeywords=void 0;var Sl=ol(),Nc=is(),uy=Cc(),qc=Oc(),fy=_t(),cy=Br(),py=ze(),dy=ln();function my(t,r,e,n){let{gen:s,schema:o,data:l,allErrors:f,opts:c,self:g}=t,{RULES:h}=g;if(o.$ref&&(c.ignoreKeywordsWithRef||!fy.schemaHasRulesButRef(o,h))){s.block(()=>qc.keywordCode(t,"$ref",h.all.$ref.definition));return}c.jtd||hy(t,r),s.block(()=>{for(let k of h.rules)$(k);$(h.post)});function $(k){!Sl.shouldUseGroup(o,k)||(k.type?(s.if(Nc.checkDataType(k.type,l,c.strict)),Rc(t,k),r.length===1&&r[0]===k.type&&e&&(s.else(),Nc.reportTypeError(t)),s.endIf()):Rc(t,k),f||s.if(py._`${dy.default.errors} === ${n||0}`))}}Ho.schemaKeywords=my;function Rc(t,r){let{gen:e,schema:n,opts:{useDefaults:s}}=t;s&&uy.assignDefaults(t,r.type),e.block(()=>{for(let o of r.rules)Sl.shouldUseRule(n,o)&&qc.keywordCode(t,o.keyword,o.definition,r.type)})}function hy(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(gy(t,r),t.opts.allowUnionTypes||yy(t,r),by(t,t.dataTypes))}function gy(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{Dc(t.dataTypes,e)||Pl(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>Dc(r,e))}}function yy(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&Pl(t,"use allowUnionTypes to allow union type keyword")}function by(t,r){let e=t.self.RULES.all;for(let n in e){let s=e[n];if(typeof s=="object"&&Sl.shouldUseRule(t.schema,s)){let{type:o}=s.definition;o.length&&!o.some(l=>$y(r,l))&&Pl(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function $y(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function Dc(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function Pl(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,cy.checkStrictMode(t,r,t.opts.strictTypes)}});var Hs=we((z1,jc)=>{"use strict";jc.exports=function t(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var n,s,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(s=n;s--!==0;)if(!t(r[s],e[s]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();if(o=Object.keys(r),n=o.length,n!==Object.keys(e).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[s]))return!1;for(s=n;s--!==0;){var l=o[s];if(!t(r[l],e[l]))return!1}return!0}return r!==r&&e!==e}});var Mc=we((V1,Bc)=>{"use strict";var Yn=Bc.exports=function(t,r,e){typeof r=="function"&&(e=r,r={}),e=r.cb||e;var n=typeof e=="function"?e:e.pre||function(){},s=e.post||function(){};Uo(r,n,s,t,"",t)};Yn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Yn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Yn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Yn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Uo(t,r,e,n,s,o,l,f,c,g){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,s,o,l,f,c,g);for(var h in n){var $=n[h];if(Array.isArray($)){if(h in Yn.arrayKeywords)for(var k=0;k<$.length;k++)Uo(t,r,e,$[k],s+"/"+h+"/"+k,o,s,h,n,k)}else if(h in Yn.propsKeywords){if($&&typeof $=="object")for(var x in $)Uo(t,r,e,$[x],s+"/"+h+"/"+wy(x),o,s,h,n,x)}else(h in Yn.keywords||t.allKeys&&!(h in Yn.skipKeywords))&&Uo(t,r,e,$,s+"/"+h,o,s,h,n)}e(n,s,o,l,f,c,g)}}function wy(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Tl=we((Go,zc)=>{(function(t,r){typeof Go=="object"&&typeof zc<"u"?r(Go):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(Go,function(t){"use strict";function r(){for(var V=arguments.length,N=Array(V),J=0;J<V;J++)N[J]=arguments[J];if(N.length>1){N[0]=N[0].slice(0,-1);for(var re=N.length-1,se=1;se<re;++se)N[se]=N[se].slice(1,-1);return N[re]=N[re].slice(1),N.join("")}else return N[0]}function e(V){return"(?:"+V+")"}function n(V){return V===void 0?"undefined":V===null?"null":Object.prototype.toString.call(V).split(" ").pop().split("]").shift().toLowerCase()}function s(V){return V.toUpperCase()}function o(V){return V!=null?V instanceof Array?V:typeof V.length!="number"||V.split||V.setInterval||V.call?[V]:Array.prototype.slice.call(V):[]}function l(V,N){var J=V;if(N)for(var re in N)J[re]=N[re];return J}function f(V){var N="[A-Za-z]",J="[\\x0D]",re="[0-9]",se="[\\x22]",$e=r(re,"[A-Fa-f]"),Se="[\\x0A]",je="[\\x20]",We=e(e("%[EFef]"+$e+"%"+$e+$e+"%"+$e+$e)+"|"+e("%[89A-Fa-f]"+$e+"%"+$e+$e)+"|"+e("%"+$e+$e)),bt="[\\:\\/\\?\\#\\[\\]\\@]",De="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",at=r(bt,De),ft=V?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",lt=V?"[\\uE000-\\uF8FF]":"[]",Ge=r(N,re,"[\\-\\.\\_\\~]",ft),ct=e(N+r(N,re,"[\\+\\-\\.]")+"*"),et=e(e(We+"|"+r(Ge,De,"[\\:]"))+"*"),Mr=e(e("25[0-5]")+"|"+e("2[0-4]"+re)+"|"+e("1"+re+re)+"|"+e("[1-9]"+re)+"|"+re),Bt=e(e("25[0-5]")+"|"+e("2[0-4]"+re)+"|"+e("1"+re+re)+"|"+e("0?[1-9]"+re)+"|0?0?"+re),rr=e(Bt+"\\."+Bt+"\\."+Bt+"\\."+Bt),st=e($e+"{1,4}"),Ht=e(e(st+"\\:"+st)+"|"+rr),Zt=e(e(st+"\\:")+"{6}"+Ht),Cr=e("\\:\\:"+e(st+"\\:")+"{5}"+Ht),Yr=e(e(st)+"?\\:\\:"+e(st+"\\:")+"{4}"+Ht),Ar=e(e(e(st+"\\:")+"{0,1}"+st)+"?\\:\\:"+e(st+"\\:")+"{3}"+Ht),hn=e(e(e(st+"\\:")+"{0,2}"+st)+"?\\:\\:"+e(st+"\\:")+"{2}"+Ht),On=e(e(e(st+"\\:")+"{0,3}"+st)+"?\\:\\:"+st+"\\:"+Ht),Nn=e(e(e(st+"\\:")+"{0,4}"+st)+"?\\:\\:"+Ht),en=e(e(e(st+"\\:")+"{0,5}"+st)+"?\\:\\:"+st),tn=e(e(e(st+"\\:")+"{0,6}"+st)+"?\\:\\:"),Mt=e([Zt,Cr,Yr,Ar,hn,On,Nn,en,tn].join("|")),Er=e(e(Ge+"|"+We)+"+"),gn=e(Mt+"\\%25"+Er),zr=e(Mt+e("\\%25|\\%(?!"+$e+"{2})")+Er),Mi=e("[vV]"+$e+"+\\."+r(Ge,De,"[\\:]")+"+"),li=e("\\["+e(zr+"|"+Mt+"|"+Mi)+"\\]"),i=e(e(We+"|"+r(Ge,De))+"*"),ue=e(li+"|"+rr+"(?!"+i+")|"+i),Vr=e(re+"*"),Jt=e(e(et+"@")+"?"+ue+e("\\:"+Vr)+"?"),rn=e(We+"|"+r(Ge,De,"[\\:\\@]")),v=e(rn+"*"),yn=e(rn+"+"),Rn=e(e(We+"|"+r(Ge,De,"[\\@]"))+"+"),Hr=e(e("\\/"+v)+"*"),Dn=e("\\/"+e(yn+Hr)+"?"),zi=e(Rn+Hr),Me=e(yn+Hr),Ut="(?!"+rn+")",vs=e(Hr+"|"+Dn+"|"+zi+"|"+Me+"|"+Ut),nn=e(e(rn+"|"+r("[\\/\\?]",lt))+"*"),bn=e(e(rn+"|[\\/\\?]")+"*"),ui=e(e("\\/\\/"+Jt+Hr)+"|"+Dn+"|"+Me+"|"+Ut),qn=e(ct+"\\:"+ui+e("\\?"+nn)+"?"+e("\\#"+bn)+"?"),W=e(e("\\/\\/"+Jt+Hr)+"|"+Dn+"|"+zi+"|"+Ut),xs=e(W+e("\\?"+nn)+"?"+e("\\#"+bn)+"?"),Vi=e(qn+"|"+xs),Cs=e(ct+"\\:"+ui+e("\\?"+nn)+"?"),fi="^("+ct+")\\:"+e(e("\\/\\/("+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?)")+"?("+Hr+"|"+Dn+"|"+Me+"|"+Ut+")")+e("\\?("+nn+")")+"?"+e("\\#("+bn+")")+"?$",bo="^(){0}"+e(e("\\/\\/("+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?)")+"?("+Hr+"|"+Dn+"|"+zi+"|"+Ut+")")+e("\\?("+nn+")")+"?"+e("\\#("+bn+")")+"?$",ja="^("+ct+")\\:"+e(e("\\/\\/("+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?)")+"?("+Hr+"|"+Dn+"|"+Me+"|"+Ut+")")+e("\\?("+nn+")")+"?$",Hi="^"+e("\\#("+bn+")")+"?$",sn="^"+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",N,re,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",Ge,De),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",Ge,De),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",Ge,De),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",Ge,De),"g"),NOT_QUERY:new RegExp(r("[^\\%]",Ge,De,"[\\:\\@\\/\\?]",lt),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",Ge,De,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",Ge,De),"g"),UNRESERVED:new RegExp(Ge,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",Ge,at),"g"),PCT_ENCODED:new RegExp(We,"g"),IPV4ADDRESS:new RegExp("^("+rr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Mt+")"+e(e("\\%25|\\%(?!"+$e+"{2})")+"("+Er+")")+"?\\]?$")}}var c=f(!1),g=f(!0),h=function(){function V(N,J){var re=[],se=!0,$e=!1,Se=void 0;try{for(var je=N[Symbol.iterator](),We;!(se=(We=je.next()).done)&&(re.push(We.value),!(J&&re.length===J));se=!0);}catch(bt){$e=!0,Se=bt}finally{try{!se&&je.return&&je.return()}finally{if($e)throw Se}}return re}return function(N,J){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return V(N,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),$=function(V){if(Array.isArray(V)){for(var N=0,J=Array(V.length);N<V.length;N++)J[N]=V[N];return J}else return Array.from(V)},k=2147483647,x=36,C=1,I=26,R=38,B=700,X=72,le=128,be="-",he=/^xn--/,Y=/[^\0-\x7E]/,pe=/[\x2E\u3002\uFF0E\uFF61]/g,ve={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=x-C,Le=Math.floor,Te=String.fromCharCode;function Fe(V){throw new RangeError(ve[V])}function ge(V,N){for(var J=[],re=V.length;re--;)J[re]=N(V[re]);return J}function Pe(V,N){var J=V.split("@"),re="";J.length>1&&(re=J[0]+"@",V=J[1]),V=V.replace(pe,".");var se=V.split("."),$e=ge(se,N).join(".");return re+$e}function Qe(V){for(var N=[],J=0,re=V.length;J<re;){var se=V.charCodeAt(J++);if(se>=55296&&se<=56319&&J<re){var $e=V.charCodeAt(J++);($e&64512)==56320?N.push(((se&1023)<<10)+($e&1023)+65536):(N.push(se),J--)}else N.push(se)}return N}var ne=function(N){return String.fromCodePoint.apply(String,$(N))},$t=function(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:x},Xe=function(N,J){return N+22+75*(N<26)-((J!=0)<<5)},wt=function(N,J,re){var se=0;for(N=re?Le(N/B):N>>1,N+=Le(N/J);N>ke*I>>1;se+=x)N=Le(N/ke);return Le(se+(ke+1)*N/(N+R))},nt=function(N){var J=[],re=N.length,se=0,$e=le,Se=X,je=N.lastIndexOf(be);je<0&&(je=0);for(var We=0;We<je;++We)N.charCodeAt(We)>=128&&Fe("not-basic"),J.push(N.charCodeAt(We));for(var bt=je>0?je+1:0;bt<re;){for(var De=se,at=1,ft=x;;ft+=x){bt>=re&&Fe("invalid-input");var lt=$t(N.charCodeAt(bt++));(lt>=x||lt>Le((k-se)/at))&&Fe("overflow"),se+=lt*at;var Ge=ft<=Se?C:ft>=Se+I?I:ft-Se;if(lt<Ge)break;var ct=x-Ge;at>Le(k/ct)&&Fe("overflow"),at*=ct}var et=J.length+1;Se=wt(se-De,et,De==0),Le(se/et)>k-$e&&Fe("overflow"),$e+=Le(se/et),se%=et,J.splice(se++,0,$e)}return String.fromCodePoint.apply(String,J)},z=function(N){var J=[];N=Qe(N);var re=N.length,se=le,$e=0,Se=X,je=!0,We=!1,bt=void 0;try{for(var De=N[Symbol.iterator](),at;!(je=(at=De.next()).done);je=!0){var ft=at.value;ft<128&&J.push(Te(ft))}}catch(zr){We=!0,bt=zr}finally{try{!je&&De.return&&De.return()}finally{if(We)throw bt}}var lt=J.length,Ge=lt;for(lt&&J.push(be);Ge<re;){var ct=k,et=!0,Mr=!1,Bt=void 0;try{for(var rr=N[Symbol.iterator](),st;!(et=(st=rr.next()).done);et=!0){var Ht=st.value;Ht>=se&&Ht<ct&&(ct=Ht)}}catch(zr){Mr=!0,Bt=zr}finally{try{!et&&rr.return&&rr.return()}finally{if(Mr)throw Bt}}var Zt=Ge+1;ct-se>Le((k-$e)/Zt)&&Fe("overflow"),$e+=(ct-se)*Zt,se=ct;var Cr=!0,Yr=!1,Ar=void 0;try{for(var hn=N[Symbol.iterator](),On;!(Cr=(On=hn.next()).done);Cr=!0){var Nn=On.value;if(Nn<se&&++$e>k&&Fe("overflow"),Nn==se){for(var en=$e,tn=x;;tn+=x){var Mt=tn<=Se?C:tn>=Se+I?I:tn-Se;if(en<Mt)break;var Er=en-Mt,gn=x-Mt;J.push(Te(Xe(Mt+Er%gn,0))),en=Le(Er/gn)}J.push(Te(Xe(en,0))),Se=wt($e,Zt,Ge==lt),$e=0,++Ge}}}catch(zr){Yr=!0,Ar=zr}finally{try{!Cr&&hn.return&&hn.return()}finally{if(Yr)throw Ar}}++$e,++se}return J.join("")},H=function(N){return Pe(N,function(J){return he.test(J)?nt(J.slice(4).toLowerCase()):J})},dr=function(N){return Pe(N,function(J){return Y.test(J)?"xn--"+z(J):J})},Lt={version:"2.1.0",ucs2:{decode:Qe,encode:ne},decode:nt,encode:z,toASCII:dr,toUnicode:H},kt={};function Tt(V){var N=V.charCodeAt(0),J=void 0;return N<16?J="%0"+N.toString(16).toUpperCase():N<128?J="%"+N.toString(16).toUpperCase():N<2048?J="%"+(N>>6|192).toString(16).toUpperCase()+"%"+(N&63|128).toString(16).toUpperCase():J="%"+(N>>12|224).toString(16).toUpperCase()+"%"+(N>>6&63|128).toString(16).toUpperCase()+"%"+(N&63|128).toString(16).toUpperCase(),J}function Ft(V){for(var N="",J=0,re=V.length;J<re;){var se=parseInt(V.substr(J+1,2),16);if(se<128)N+=String.fromCharCode(se),J+=3;else if(se>=194&&se<224){if(re-J>=6){var $e=parseInt(V.substr(J+4,2),16);N+=String.fromCharCode((se&31)<<6|$e&63)}else N+=V.substr(J,6);J+=6}else if(se>=224){if(re-J>=9){var Se=parseInt(V.substr(J+4,2),16),je=parseInt(V.substr(J+7,2),16);N+=String.fromCharCode((se&15)<<12|(Se&63)<<6|je&63)}else N+=V.substr(J,9);J+=9}else N+=V.substr(J,3),J+=3}return N}function ut(V,N){function J(re){var se=Ft(re);return se.match(N.UNRESERVED)?se:re}return V.scheme&&(V.scheme=String(V.scheme).replace(N.PCT_ENCODED,J).toLowerCase().replace(N.NOT_SCHEME,"")),V.userinfo!==void 0&&(V.userinfo=String(V.userinfo).replace(N.PCT_ENCODED,J).replace(N.NOT_USERINFO,Tt).replace(N.PCT_ENCODED,s)),V.host!==void 0&&(V.host=String(V.host).replace(N.PCT_ENCODED,J).toLowerCase().replace(N.NOT_HOST,Tt).replace(N.PCT_ENCODED,s)),V.path!==void 0&&(V.path=String(V.path).replace(N.PCT_ENCODED,J).replace(V.scheme?N.NOT_PATH:N.NOT_PATH_NOSCHEME,Tt).replace(N.PCT_ENCODED,s)),V.query!==void 0&&(V.query=String(V.query).replace(N.PCT_ENCODED,J).replace(N.NOT_QUERY,Tt).replace(N.PCT_ENCODED,s)),V.fragment!==void 0&&(V.fragment=String(V.fragment).replace(N.PCT_ENCODED,J).replace(N.NOT_FRAGMENT,Tt).replace(N.PCT_ENCODED,s)),V}function tr(V){return V.replace(/^0*(.*)/,"$1")||"0"}function Vt(V,N){var J=V.match(N.IPV4ADDRESS)||[],re=h(J,2),se=re[1];return se?se.split(".").map(tr).join("."):V}function vr(V,N){var J=V.match(N.IPV6ADDRESS)||[],re=h(J,3),se=re[1],$e=re[2];if(se){for(var Se=se.toLowerCase().split("::").reverse(),je=h(Se,2),We=je[0],bt=je[1],De=bt?bt.split(":").map(tr):[],at=We.split(":").map(tr),ft=N.IPV4ADDRESS.test(at[at.length-1]),lt=ft?7:8,Ge=at.length-lt,ct=Array(lt),et=0;et<lt;++et)ct[et]=De[et]||at[Ge+et]||"";ft&&(ct[lt-1]=Vt(ct[lt-1],N));var Mr=ct.reduce(function(Zt,Cr,Yr){if(!Cr||Cr==="0"){var Ar=Zt[Zt.length-1];Ar&&Ar.index+Ar.length===Yr?Ar.length++:Zt.push({index:Yr,length:1})}return Zt},[]),Bt=Mr.sort(function(Zt,Cr){return Cr.length-Zt.length})[0],rr=void 0;if(Bt&&Bt.length>1){var st=ct.slice(0,Bt.index),Ht=ct.slice(Bt.index+Bt.length);rr=st.join(":")+"::"+Ht.join(":")}else rr=ct.join(":");return $e&&(rr+="%"+$e),rr}else return V}var Nr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,xr="".match(/(){0}/)[1]===void 0;function jt(V){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J={},re=N.iri!==!1?g:c;N.reference==="suffix"&&(V=(N.scheme?N.scheme+":":"")+"//"+V);var se=V.match(Nr);if(se){xr?(J.scheme=se[1],J.userinfo=se[3],J.host=se[4],J.port=parseInt(se[5],10),J.path=se[6]||"",J.query=se[7],J.fragment=se[8],isNaN(J.port)&&(J.port=se[5])):(J.scheme=se[1]||void 0,J.userinfo=V.indexOf("@")!==-1?se[3]:void 0,J.host=V.indexOf("//")!==-1?se[4]:void 0,J.port=parseInt(se[5],10),J.path=se[6]||"",J.query=V.indexOf("?")!==-1?se[7]:void 0,J.fragment=V.indexOf("#")!==-1?se[8]:void 0,isNaN(J.port)&&(J.port=V.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?se[4]:void 0)),J.host&&(J.host=vr(Vt(J.host,re),re)),J.scheme===void 0&&J.userinfo===void 0&&J.host===void 0&&J.port===void 0&&!J.path&&J.query===void 0?J.reference="same-document":J.scheme===void 0?J.reference="relative":J.fragment===void 0?J.reference="absolute":J.reference="uri",N.reference&&N.reference!=="suffix"&&N.reference!==J.reference&&(J.error=J.error||"URI is not a "+N.reference+" reference.");var $e=kt[(N.scheme||J.scheme||"").toLowerCase()];if(!N.unicodeSupport&&(!$e||!$e.unicodeSupport)){if(J.host&&(N.domainHost||$e&&$e.domainHost))try{J.host=Lt.toASCII(J.host.replace(re.PCT_ENCODED,Ft).toLowerCase())}catch(Se){J.error=J.error||"Host's domain name can not be converted to ASCII via punycode: "+Se}ut(J,c)}else ut(J,re);$e&&$e.parse&&$e.parse(J,N)}else J.error=J.error||"URI can not be parsed.";return J}function Sn(V,N){var J=N.iri!==!1?g:c,re=[];return V.userinfo!==void 0&&(re.push(V.userinfo),re.push("@")),V.host!==void 0&&re.push(vr(Vt(String(V.host),J),J).replace(J.IPV6ADDRESS,function(se,$e,Se){return"["+$e+(Se?"%25"+Se:"")+"]"})),(typeof V.port=="number"||typeof V.port=="string")&&(re.push(":"),re.push(String(V.port))),re.length?re.join(""):void 0}var Pn=/^\.\.?\//,Tn=/^\/\.(\/|$)/,Ce=/^\/\.\.(\/|$)/,Hn=/^\/?(?:.|\n)*?(?=\/|$)/;function Rr(V){for(var N=[];V.length;)if(V.match(Pn))V=V.replace(Pn,"");else if(V.match(Tn))V=V.replace(Tn,"/");else if(V.match(Ce))V=V.replace(Ce,"/"),N.pop();else if(V==="."||V==="..")V="";else{var J=V.match(Hn);if(J){var re=J[0];V=V.slice(re.length),N.push(re)}else throw new Error("Unexpected dot segment condition")}return N.join("")}function Ee(V){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=N.iri?g:c,re=[],se=kt[(N.scheme||V.scheme||"").toLowerCase()];if(se&&se.serialize&&se.serialize(V,N),V.host&&!J.IPV6ADDRESS.test(V.host)){if(N.domainHost||se&&se.domainHost)try{V.host=N.iri?Lt.toUnicode(V.host):Lt.toASCII(V.host.replace(J.PCT_ENCODED,Ft).toLowerCase())}catch(je){V.error=V.error||"Host's domain name can not be converted to "+(N.iri?"Unicode":"ASCII")+" via punycode: "+je}}ut(V,J),N.reference!=="suffix"&&V.scheme&&(re.push(V.scheme),re.push(":"));var $e=Sn(V,N);if($e!==void 0&&(N.reference!=="suffix"&&re.push("//"),re.push($e),V.path&&V.path.charAt(0)!=="/"&&re.push("/")),V.path!==void 0){var Se=V.path;!N.absolutePath&&(!se||!se.absolutePath)&&(Se=Rr(Se)),$e===void 0&&(Se=Se.replace(/^\/\//,"/%2F")),re.push(Se)}return V.query!==void 0&&(re.push("?"),re.push(V.query)),V.fragment!==void 0&&(re.push("#"),re.push(V.fragment)),re.join("")}function Ne(V,N){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=arguments[3],se={};return re||(V=jt(Ee(V,J),J),N=jt(Ee(N,J),J)),J=J||{},!J.tolerant&&N.scheme?(se.scheme=N.scheme,se.userinfo=N.userinfo,se.host=N.host,se.port=N.port,se.path=Rr(N.path||""),se.query=N.query):(N.userinfo!==void 0||N.host!==void 0||N.port!==void 0?(se.userinfo=N.userinfo,se.host=N.host,se.port=N.port,se.path=Rr(N.path||""),se.query=N.query):(N.path?(N.path.charAt(0)==="/"?se.path=Rr(N.path):((V.userinfo!==void 0||V.host!==void 0||V.port!==void 0)&&!V.path?se.path="/"+N.path:V.path?se.path=V.path.slice(0,V.path.lastIndexOf("/")+1)+N.path:se.path=N.path,se.path=Rr(se.path)),se.query=N.query):(se.path=V.path,N.query!==void 0?se.query=N.query:se.query=V.query),se.userinfo=V.userinfo,se.host=V.host,se.port=V.port),se.scheme=V.scheme),se.fragment=N.fragment,se}function At(V,N,J){var re=l({scheme:"null"},J);return Ee(Ne(jt(V,re),jt(N,re),re,!0),re)}function ht(V,N){return typeof V=="string"?V=Ee(jt(V,N),N):n(V)==="object"&&(V=jt(Ee(V,N),N)),V}function mr(V,N,J){return typeof V=="string"?V=Ee(jt(V,J),J):n(V)==="object"&&(V=Ee(V,J)),typeof N=="string"?N=Ee(jt(N,J),J):n(N)==="object"&&(N=Ee(N,J)),V===N}function Re(V,N){return V&&V.toString().replace(!N||!N.iri?c.ESCAPE:g.ESCAPE,Tt)}function _e(V,N){return V&&V.toString().replace(!N||!N.iri?c.PCT_ENCODED:g.PCT_ENCODED,Ft)}var te={scheme:"http",domainHost:!0,parse:function(N,J){return N.host||(N.error=N.error||"HTTP URIs must have a host."),N},serialize:function(N,J){var re=String(N.scheme).toLowerCase()==="https";return(N.port===(re?443:80)||N.port==="")&&(N.port=void 0),N.path||(N.path="/"),N}},ce={scheme:"https",domainHost:te.domainHost,parse:te.parse,serialize:te.serialize};function Ae(V){return typeof V.secure=="boolean"?V.secure:String(V.scheme).toLowerCase()==="wss"}var Be={scheme:"ws",domainHost:!0,parse:function(N,J){var re=N;return re.secure=Ae(re),re.resourceName=(re.path||"/")+(re.query?"?"+re.query:""),re.path=void 0,re.query=void 0,re},serialize:function(N,J){if((N.port===(Ae(N)?443:80)||N.port==="")&&(N.port=void 0),typeof N.secure=="boolean"&&(N.scheme=N.secure?"wss":"ws",N.secure=void 0),N.resourceName){var re=N.resourceName.split("?"),se=h(re,2),$e=se[0],Se=se[1];N.path=$e&&$e!=="/"?$e:void 0,N.query=Se,N.resourceName=void 0}return N.fragment=void 0,N}},Ye={scheme:"wss",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},Pt={},it=!0,vt="[A-Za-z0-9\\-\\.\\_\\~"+(it?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",It="[0-9A-Fa-f]",Xr=e(e("%[EFef]"+It+"%"+It+It+"%"+It+It)+"|"+e("%[89A-Fa-f]"+It+"%"+It+It)+"|"+e("%"+It+It)),gt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Fn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",hr=r(Fn,'[\\"\\\\]'),si="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",oi=new RegExp(vt,"g"),Dr=new RegExp(Xr,"g"),mn=new RegExp(r("[^]",gt,"[\\.]",'[\\"]',hr),"g"),Un=new RegExp(r("[^]",vt,si),"g"),ks=Un;function Gn(V){var N=Ft(V);return N.match(oi)?N:V}var ai={scheme:"mailto",parse:function(N,J){var re=N,se=re.to=re.path?re.path.split(","):[];if(re.path=void 0,re.query){for(var $e=!1,Se={},je=re.query.split("&"),We=0,bt=je.length;We<bt;++We){var De=je[We].split("=");switch(De[0]){case"to":for(var at=De[1].split(","),ft=0,lt=at.length;ft<lt;++ft)se.push(at[ft]);break;case"subject":re.subject=_e(De[1],J);break;case"body":re.body=_e(De[1],J);break;default:$e=!0,Se[_e(De[0],J)]=_e(De[1],J);break}}$e&&(re.headers=Se)}re.query=void 0;for(var Ge=0,ct=se.length;Ge<ct;++Ge){var et=se[Ge].split("@");if(et[0]=_e(et[0]),J.unicodeSupport)et[1]=_e(et[1],J).toLowerCase();else try{et[1]=Lt.toASCII(_e(et[1],J).toLowerCase())}catch(Mr){re.error=re.error||"Email address's domain name can not be converted to ASCII via punycode: "+Mr}se[Ge]=et.join("@")}return re},serialize:function(N,J){var re=N,se=o(N.to);if(se){for(var $e=0,Se=se.length;$e<Se;++$e){var je=String(se[$e]),We=je.lastIndexOf("@"),bt=je.slice(0,We).replace(Dr,Gn).replace(Dr,s).replace(mn,Tt),De=je.slice(We+1);try{De=J.iri?Lt.toUnicode(De):Lt.toASCII(_e(De,J).toLowerCase())}catch(Ge){re.error=re.error||"Email address's domain name can not be converted to "+(J.iri?"Unicode":"ASCII")+" via punycode: "+Ge}se[$e]=bt+"@"+De}re.path=se.join(",")}var at=N.headers=N.headers||{};N.subject&&(at.subject=N.subject),N.body&&(at.body=N.body);var ft=[];for(var lt in at)at[lt]!==Pt[lt]&&ft.push(lt.replace(Dr,Gn).replace(Dr,s).replace(Un,Tt)+"="+at[lt].replace(Dr,Gn).replace(Dr,s).replace(ks,Tt));return ft.length&&(re.query=ft.join("&")),re}},ji=/^([^\:]+)\:(.*)/,In={scheme:"urn",parse:function(N,J){var re=N.path&&N.path.match(ji),se=N;if(re){var $e=J.scheme||se.scheme||"urn",Se=re[1].toLowerCase(),je=re[2],We=$e+":"+(J.nid||Se),bt=kt[We];se.nid=Se,se.nss=je,se.path=void 0,bt&&(se=bt.parse(se,J))}else se.error=se.error||"URN can not be parsed.";return se},serialize:function(N,J){var re=J.scheme||N.scheme||"urn",se=N.nid,$e=re+":"+(J.nid||se),Se=kt[$e];Se&&(N=Se.serialize(N,J));var je=N,We=N.nss;return je.path=(se||J.nid)+":"+We,je}},Kn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Bi={scheme:"urn:uuid",parse:function(N,J){var re=N;return re.uuid=re.nss,re.nss=void 0,!J.tolerant&&(!re.uuid||!re.uuid.match(Kn))&&(re.error=re.error||"UUID is not valid."),re},serialize:function(N,J){var re=N;return re.nss=(N.uuid||"").toLowerCase(),re}};kt[te.scheme]=te,kt[ce.scheme]=ce,kt[Be.scheme]=Be,kt[Ye.scheme]=Ye,kt[ai.scheme]=ai,kt[In.scheme]=In,kt[Bi.scheme]=Bi,t.SCHEMES=kt,t.pctEncChar=Tt,t.pctDecChars=Ft,t.parse=jt,t.removeDotSegments=Rr,t.serialize=Ee,t.resolveComponents=Ne,t.resolve=At,t.normalize=ht,t.equal=mr,t.escapeComponent=Re,t.unescapeComponent=_e,Object.defineProperty(t,"__esModule",{value:!0})})});var Us=we(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.getSchemaRefs=Tr.resolveUrl=Tr.normalizeId=Tr._getFullPath=Tr.getFullPath=Tr.inlineRef=void 0;var ky=_t(),vy=Hs(),xy=Mc(),Ko=Tl(),Cy=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Ay(t,r=!0){return typeof t=="boolean"?!0:r===!0?!Fl(t):r?Vc(t)<=r:!1}Tr.inlineRef=Ay;var Ey=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Fl(t){for(let r in t){if(Ey.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(Fl)||typeof e=="object"&&Fl(e))return!0}return!1}function Vc(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!Cy.has(e)&&(typeof t[e]=="object"&&ky.eachItem(t[e],n=>r+=Vc(n)),r===1/0))return 1/0}return r}function Hc(t="",r){r!==!1&&(t=ss(t));let e=Ko.parse(t);return Uc(e)}Tr.getFullPath=Hc;function Uc(t){return Ko.serialize(t).split("#")[0]+"#"}Tr._getFullPath=Uc;var _y=/#\/?$/;function ss(t){return t?t.replace(_y,""):""}Tr.normalizeId=ss;function Sy(t,r){return r=ss(r),Ko.resolve(t,r)}Tr.resolveUrl=Sy;var Py=/^[a-z_][-a-z0-9._]*$/i;function Ty(t){if(typeof t=="boolean")return{};let r=ss(t.$id),e={"":r},n=Hc(r,!1),s={},o=new Set;return xy(t,{allKeys:!0},(c,g,h,$)=>{if($===void 0)return;let k=n+g,x=e[$];typeof c.$id=="string"&&(x=C.call(this,c.$id)),I.call(this,c.$anchor),I.call(this,c.$dynamicAnchor),e[g]=x;function C(R){if(R=ss(x?Ko.resolve(x,R):R),o.has(R))throw f(R);o.add(R);let B=this.refs[R];return typeof B=="string"&&(B=this.refs[B]),typeof B=="object"?l(c,B.schema,R):R!==ss(k)&&(R[0]==="#"?(l(c,s[R],R),s[R]=c):this.refs[R]=k),R}function I(R){if(typeof R=="string"){if(!Py.test(R))throw new Error(`invalid anchor "${R}"`);C.call(this,`#${R}`)}}}),s;function l(c,g,h){if(g!==void 0&&!vy(c,g))throw f(h)}function f(c){return new Error(`reference "${c}" resolves to more than one schema`)}}Tr.getSchemaRefs=Ty});var Br=we(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.checkStrictMode=xn.schemaCxtHasRules=xn.subschemaCode=xn.validateFunctionCode=void 0;var Zc=vc(),Gc=is(),Kc=Lc(),Ke=ze(),Ie=ln(),Fy=Us(),Jc=_t();function Iy(t){if(Xc(t)&&(Yc(t),Il(t))){Ry(t);return}Qc(t,()=>Zc.topBoolOrEmptySchema(t))}xn.validateFunctionCode=Iy;function Qc({gen:t,validateName:r,schema:e,schemaEnv:n,opts:s},o){s.code.es5?t.func(r,Ke._`${Ie.default.data}, ${Ie.default.valCxt}`,n.$async,()=>{t.code(Ke._`"use strict"; ${Wc(e,s)}`),Ny(t,s),t.code(o)}):t.func(r,Ke._`${Ie.default.data}, ${Oy(s)}`,n.$async,()=>t.code(Wc(e,s)).code(o))}function Oy(t){return Ke._`{${Ie.default.dataPath}="", ${Ie.default.parentData}, ${Ie.default.parentDataProperty}, ${Ie.default.rootData}=${Ie.default.data}${t.dynamicRef?Ke._`, ${Ie.default.dynamicAnchors}={}`:Ke.nil}}={}`}function Ny(t,r){t.if(Ie.default.valCxt,()=>{t.var(Ie.default.dataPath,Ke._`${Ie.default.valCxt}.${Ie.default.dataPath}`),t.var(Ie.default.parentData,Ke._`${Ie.default.valCxt}.${Ie.default.parentData}`),t.var(Ie.default.parentDataProperty,Ke._`${Ie.default.valCxt}.${Ie.default.parentDataProperty}`),t.var(Ie.default.rootData,Ke._`${Ie.default.valCxt}.${Ie.default.rootData}`),r.dynamicRef&&t.var(Ie.default.dynamicAnchors,Ke._`${Ie.default.valCxt}.${Ie.default.dynamicAnchors}`)},()=>{t.var(Ie.default.dataPath,Ke._`""`),t.var(Ie.default.parentData,Ke._`undefined`),t.var(Ie.default.parentDataProperty,Ke._`undefined`),t.var(Ie.default.rootData,Ie.default.data),r.dynamicRef&&t.var(Ie.default.dynamicAnchors,Ke._`{}`)})}function Ry(t){let{schema:r,opts:e,gen:n}=t;Qc(t,()=>{e.$comment&&r.$comment&&tp(t),By(t),n.let(Ie.default.vErrors,null),n.let(Ie.default.errors,0),e.unevaluated&&Dy(t),ep(t),Vy(t)})}function Dy(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Ke._`${e}.evaluated`),r.if(Ke._`${t.evaluated}.dynamicProps`,()=>r.assign(Ke._`${t.evaluated}.props`,Ke._`undefined`)),r.if(Ke._`${t.evaluated}.dynamicItems`,()=>r.assign(Ke._`${t.evaluated}.items`,Ke._`undefined`))}function Wc(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Ke._`/*# sourceURL=${t.$id} */`:Ke.nil}function qy(t,r){if(Xc(t)&&(Yc(t),Il(t))){Ly(t,r);return}Zc.boolOrEmptySchema(t,r)}xn.subschemaCode=qy;function Il({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}xn.schemaCxtHasRules=Il;function Xc(t){return typeof t.schema!="boolean"}function Ly(t,r){let{schema:e,gen:n,opts:s}=t;s.$comment&&e.$comment&&tp(t),My(t),zy(t);let o=n.const("_errs",Ie.default.errors);ep(t,o),n.var(r,Ke._`${o} === ${Ie.default.errors}`)}function Yc(t){Jc.checkUnknownRules(t),jy(t)}function ep(t,r){if(t.opts.jtd)return Kc.schemaKeywords(t,[],!1,r);let e=Gc.getSchemaTypes(t.schema),n=Gc.coerceAndCheckDataType(t,e);Kc.schemaKeywords(t,e,!n,r)}function jy(t){let{schema:r,errSchemaPath:e,opts:n,self:s}=t;r.$ref&&n.ignoreKeywordsWithRef&&Jc.schemaHasRulesButRef(r,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function By(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&rp(t,"default is ignored in the schema root")}function My(t){t.schema.$id&&(t.baseId=Fy.resolveUrl(t.baseId,t.schema.$id))}function zy(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function tp({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:s}){let o=e.$comment;if(s.$comment===!0)t.code(Ke._`${Ie.default.self}.logger.log(${o})`);else if(typeof s.$comment=="function"){let l=Ke.str`${n}/$comment`,f=t.scopeValue("root",{ref:r.root});t.code(Ke._`${Ie.default.self}.opts.$comment(${o}, ${l}, ${f}.schema)`)}}function Vy(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:s,opts:o}=t;e.$async?r.if(Ke._`${Ie.default.errors} === 0`,()=>r.return(Ie.default.data),()=>r.throw(Ke._`new ${s}(${Ie.default.vErrors})`)):(r.assign(Ke._`${n}.errors`,Ie.default.vErrors),o.unevaluated&&Hy(t),r.return(Ke._`${Ie.default.errors} === 0`))}function Hy({gen:t,evaluated:r,props:e,items:n}){e instanceof Ke.Name&&t.assign(Ke._`${r}.props`,e),n instanceof Ke.Name&&t.assign(Ke._`${r}.items`,n)}function rp(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}xn.checkStrictMode=rp});var _t=we(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.func=tt.setEvaluated=tt.evaluatedPropsToName=tt.mergeEvaluated=tt.eachItem=tt.unescapeJsonPointer=tt.escapeJsonPointer=tt.escapeFragment=tt.unescapeFragment=tt.schemaRefOrVal=tt.schemaHasRulesButRef=tt.schemaHasRules=tt.checkUnknownRules=tt.alwaysValidSchema=tt.toHash=void 0;var Ot=ze(),Uy=Br();function Gy(t){let r={};for(let e of t)r[e]=!0;return r}tt.toHash=Gy;function Ky(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(ip(t,r),!sp(r,t.self.RULES.all))}tt.alwaysValidSchema=Ky;function ip(t,r=t.schema){let{opts:e,self:n}=t;if(!e.strict||typeof r=="boolean")return;let s=n.RULES.keywords;for(let o in r)s[o]||Uy.checkStrictMode(t,`unknown keyword: "${o}"`)}tt.checkUnknownRules=ip;function sp(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}tt.schemaHasRules=sp;function Wy(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(e!=="$ref"&&r.all[e])return!0;return!1}tt.schemaHasRulesButRef=Wy;function Zy({topSchemaRef:t,schemaPath:r},e,n,s){if(!s){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return Ot._`${e}`}return Ot._`${t}${r}${Ot.getProperty(n)}`}tt.schemaRefOrVal=Zy;function Jy(t){return ap(decodeURIComponent(t))}tt.unescapeFragment=Jy;function Qy(t){return encodeURIComponent(op(t))}tt.escapeFragment=Qy;function op(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}tt.escapeJsonPointer=op;function ap(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}tt.unescapeJsonPointer=ap;function Xy(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}tt.eachItem=Xy;function np({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(s,o,l,f)=>{let c=l===void 0?o:l instanceof Ot.Name?(o instanceof Ot.Name?t(s,o,l):r(s,o,l),l):o instanceof Ot.Name?(r(s,l,o),o):e(o,l);return f===Ot.Name&&!(c instanceof Ot.Name)?n(s,c):c}}tt.mergeEvaluated={props:np({mergeNames:(t,r,e)=>t.if(Ot._`${e} !== true && ${r} !== undefined`,()=>{t.if(Ot._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,Ot._`${e} || {}`).code(Ot._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(Ot._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,Ot._`${e} || {}`),Ol(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:lp}),items:np({mergeNames:(t,r,e)=>t.if(Ot._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,Ot._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(Ot._`${e} !== true`,()=>t.assign(e,r===!0?!0:Ot._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function lp(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",Ot._`{}`);return r!==void 0&&Ol(t,e,r),e}tt.evaluatedPropsToName=lp;function Ol(t,r,e){Object.keys(e).forEach(n=>t.assign(Ot._`${r}${Ot.getProperty(n)}`,!0))}tt.setEvaluated=Ol;function Yy(t,r){return t.scopeValue("func",{ref:r,code:r.code})}tt.func=Yy});var is=we(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.reportTypeError=Xt.checkDataTypes=Xt.checkDataType=Xt.coerceAndCheckDataType=Xt.getJSONTypes=Xt.getSchemaTypes=Xt.DataType=void 0;var eb=sl(),tb=ol(),rb=zs(),Oe=ze(),up=_t(),Gs;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Gs=Xt.DataType||(Xt.DataType={}));function nb(t){let r=fp(t.type);if(r.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&r.push("null")}return r}Xt.getSchemaTypes=nb;function fp(t){let r=Array.isArray(t)?t:t?[t]:[];if(r.every(eb.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}Xt.getJSONTypes=fp;function ib(t,r){let{gen:e,data:n,opts:s}=t,o=sb(r,s.coerceTypes),l=r.length>0&&!(o.length===0&&r.length===1&&tb.schemaHasRulesForType(t,r[0]));if(l){let f=Rl(r,n,s.strict,Gs.Wrong);e.if(f,()=>{o.length?ob(t,r,o):Dl(t)})}return l}Xt.coerceAndCheckDataType=ib;var cp=new Set(["string","number","integer","boolean","null"]);function sb(t,r){return r?t.filter(e=>cp.has(e)||r==="array"&&e==="array"):[]}function ob(t,r,e){let{gen:n,data:s,opts:o}=t,l=n.let("dataType",Oe._`typeof ${s}`),f=n.let("coerced",Oe._`undefined`);o.coerceTypes==="array"&&n.if(Oe._`${l} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,Oe._`${s}[0]`).assign(l,Oe._`typeof ${s}`).if(Rl(r,s,o.strict),()=>n.assign(f,s))),n.if(Oe._`${f} !== undefined`);for(let g of e)(cp.has(g)||g==="array"&&o.coerceTypes==="array")&&c(g);n.else(),Dl(t),n.endIf(),n.if(Oe._`${f} !== undefined`,()=>{n.assign(s,f),ab(t,f)});function c(g){switch(g){case"string":n.elseIf(Oe._`${l} == "number" || ${l} == "boolean"`).assign(f,Oe._`"" + ${s}`).elseIf(Oe._`${s} === null`).assign(f,Oe._`""`);return;case"number":n.elseIf(Oe._`${l} == "boolean" || ${s} === null
3
3
  || (${l} == "string" && ${s} && ${s} == +${s})`).assign(f,Oe._`+${s}`);return;case"integer":n.elseIf(Oe._`${l} === "boolean" || ${s} === null
4
4
  || (${l} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(f,Oe._`+${s}`);return;case"boolean":n.elseIf(Oe._`${s} === "false" || ${s} === 0 || ${s} === null`).assign(f,!1).elseIf(Oe._`${s} === "true" || ${s} === 1`).assign(f,!0);return;case"null":n.elseIf(Oe._`${s} === "" || ${s} === 0 || ${s} === false`),n.assign(f,null);return;case"array":n.elseIf(Oe._`${l} === "string" || ${l} === "number"
5
- || ${l} === "boolean" || ${s} === null`).assign(f,Oe._`[${s}]`)}}}function ub({gen:t,parentData:r,parentDataProperty:e},n){t.if(Oe._`${r} !== undefined`,()=>t.assign(Oe._`${r}[${e}]`,n))}function Rl(t,r,e,n=Gs.Correct){let s=n===Gs.Correct?Oe.operators.EQ:Oe.operators.NEQ,o;switch(t){case"null":return Oe._`${r} ${s} null`;case"array":o=Oe._`Array.isArray(${r})`;break;case"object":o=Oe._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":o=l(Oe._`!(${r} % 1) && !isNaN(${r})`);break;case"number":o=l();break;default:return Oe._`typeof ${r} ${s} ${t}`}return n===Gs.Correct?o:Oe.not(o);function l(f=Oe.nil){return Oe.and(Oe._`typeof ${r} == "number"`,f,e?Oe._`isFinite(${r})`:Oe.nil)}}Xt.checkDataType=Rl;function Nl(t,r,e,n){if(t.length===1)return Rl(t[0],r,e,n);let s,o=lp.toHash(t);if(o.array&&o.object){let l=Oe._`typeof ${r} != "object"`;s=o.null?l:Oe._`!${r} || ${l}`,delete o.null,delete o.array,delete o.object}else s=Oe.nil;o.number&&delete o.integer;for(let l in o)s=Oe.and(s,Rl(l,r,e,n));return s}Xt.checkDataTypes=Nl;var fb={message:({schema:t})=>Oe.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?Oe._`{type: ${t}}`:Oe._`{type: ${r}}`};function Dl(t){let r=cb(t);ib.reportError(r,fb)}Xt.reportTypeError=Dl;function cb(t){let{gen:r,data:e,schema:n}=t,s=lp.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:t}}});var Vs=be(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.getData=void 0;var cp=is(),Wo=_t(),Ks=zs(),Dt=ze(),ql=ln(),pb=vi(),Ll=class{constructor(r,e,n){if(mb(r,e,n),this.gen=r.gen,this.allErrors=r.allErrors,this.keyword=n,this.data=r.data,this.schema=r.schema[n],this.$data=e.$data&&r.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=Wo.schemaRefOrVal(r,this.schema,n,this.$data),this.schemaType=e.schemaType,this.parentSchema=r.schema,this.params={},this.it=r,this.def=e,this.$data)this.schemaCode=r.gen.const("vSchema",pp(this.$data,r));else if(this.schemaCode=this.schemaValue,!db(this.schema,e.schemaType,e.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(e.schemaType)}`);("code"in e?e.trackErrors:e.errors!==!1)&&(this.errsCount=r.gen.const("_errs",ql.default.errors))}result(r,e,n){this.gen.if(Dt.not(r)),n?n():this.error(),e?(this.gen.else(),e(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(r,e){this.result(r,void 0,e)}fail(r){if(r===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(r),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(r){if(!this.$data)return this.fail(r);let{schemaCode:e}=this;this.fail(Dt._`${e} !== undefined && (${Dt.or(this.invalid$data(),r)})`)}error(r){(r?Ks.reportExtraError:Ks.reportError)(this,this.def.error)}$dataError(){Ks.reportError(this,this.def.$dataError||Ks.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Ks.resetErrorsCount(this.gen,this.errsCount)}ok(r){this.allErrors||this.gen.if(r)}setParams(r,e){e?Object.assign(this.params,r):this.params=r}block$data(r,e,n=Dt.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=Dt.nil,e=Dt.nil){if(!this.$data)return;let{gen:n,schemaCode:s,schemaType:o,def:l}=this;n.if(Dt.or(Dt._`${s} === undefined`,e)),r!==Dt.nil&&n.assign(r,!0),(o.length||l.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==Dt.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:s,it:o}=this;return Dt.or(l(),f());function l(){if(n.length){if(!(e instanceof Dt.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return Dt._`${cp.checkDataTypes(c,e,o.opts.strict,cp.DataType.Wrong)}`}return Dt.nil}function f(){if(s.validateSchema){let c=r.scopeValue("validate$data",{ref:s.validateSchema});return Dt._`!${c}(${e})`}return Dt.nil}}subschema(r,e){return pb.applySubschema(this.it,r,e)}mergeEvaluated(r,e){let{it:n,gen:s}=this;!n.opts.unevaluated||(n.props!==!0&&r.props!==void 0&&(n.props=Wo.mergeEvaluated.props(s,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=Wo.mergeEvaluated.items(s,r.items,n.items,e)))}mergeValidEvaluated(r,e){let{it:n,gen:s}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return s.if(e,()=>this.mergeEvaluated(r,Dt.Name)),!0}};Ws.default=Ll;function db(t,r,e=!1){return!r.length||r.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||e&&typeof t>"u")}function mb({schema:t,opts:r,self:e},n,s){if(Array.isArray(n.keyword)?!n.keyword.includes(s):n.keyword!==s)throw new Error("ajv implementation error");let o=n.dependencies;if(o!=null&&o.some(l=>!Object.prototype.hasOwnProperty.call(t,l)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[s])){let f="keyword value is invalid: "+e.errorsText(n.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(f);else throw new Error(f)}}var hb=/^\/(?:[^~]|~0|~1)*$/,gb=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function pp(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let s,o;if(t==="")return ql.default.rootData;if(t[0]==="/"){if(!hb.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);s=t,o=ql.default.rootData}else{let g=gb.exec(t);if(!g)throw new Error(`Invalid JSON-pointer: ${t}`);let h=+g[1];if(s=g[2],s==="#"){if(h>=r)throw new Error(c("property/index",h));return n[r-h]}if(h>r)throw new Error(c("data",h));if(o=e[r-h],!s)return o}let l=o,f=s.split("/");for(let g of f)g&&(o=Dt._`${o}${Dt.getProperty(Wo.unescapeJsonPointer(g))}`,l=Dt._`${l} && ${o}`);return l;function c(g,h){return`Cannot access ${g} ${h} levels up, current level is ${r}`}}Ws.getData=pp});var Qo=be((os,dp)=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.MissingRefError=os.ValidationError=void 0;var jl=Us(),Zo=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};os.ValidationError=Zo;var Jo=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=jl.resolveUrl(r,e),this.missingSchema=jl.normalizeId(jl.getFullPath(this.missingRef))}};os.MissingRefError=Jo;dp.exports={ValidationError:Zo,MissingRefError:Jo}});var zl=be(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.resolveSchema=Zr.getCompilingSchema=Zr.resolveRef=Zr.compileSchema=Zr.SchemaEnv=void 0;var fn=ze(),yb=Qo(),Ci=ln(),cn=Us(),mp=_t(),bb=Br(),$b=Tl(),as=class{constructor(r){var e;this.refs={},this.dynamicAnchors={};let n;typeof r.schema=="object"&&(n=r.schema),this.schema=r.schema,this.root=r.root||this,this.baseId=(e=r.baseId)!==null&&e!==void 0?e:cn.normalizeId(n==null?void 0:n.$id),this.localRefs=r.localRefs,this.meta=r.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};Zr.SchemaEnv=as;function Ml(t){let r=hp.call(this,t);if(r)return r;let e=cn.getFullPath(t.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:o}=this.opts,l=new fn.CodeGen(this.scope,{es5:n,lines:s,ownProperties:o}),f;t.$async&&(f=l.scopeValue("Error",{ref:yb.ValidationError,code:fn._`require("ajv/dist/compile/error_classes").ValidationError`}));let c=l.scopeName("validate");t.validateName=c;let g={gen:l,allErrors:this.opts.allErrors,data:Ci.default.data,parentData:Ci.default.parentData,parentDataProperty:Ci.default.parentDataProperty,dataNames:[Ci.default.data],dataPathArr:[fn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:fn.stringify(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:f,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:fn.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:fn._`""`,opts:this.opts,self:this},h;try{this._compilations.add(t),bb.validateFunctionCode(g),l.optimize(this.opts.code.optimize);let $=l.toString();h=`${l.scopeRefs(Ci.default.scope)}return ${$}`,this.opts.code.process&&(h=this.opts.code.process(h,t));let x=new Function(`${Ci.default.self}`,`${Ci.default.scope}`,h)(this,this.scope.get());if(this.scope.value(c,{ref:x}),x.errors=null,x.schema=t.schema,x.schemaEnv=t,t.$async&&(x.$async=!0),this.opts.code.source===!0&&(x.source={validateName:c,validateCode:$,scopeValues:l._values}),this.opts.unevaluated){let{props:C,items:I}=g;x.evaluated={props:C instanceof fn.Name?void 0:C,items:I instanceof fn.Name?void 0:I,dynamicProps:C instanceof fn.Name,dynamicItems:I instanceof fn.Name},x.source&&(x.source.evaluated=fn.stringify(x.evaluated))}return t.validate=x,t}catch($){throw delete t.validate,delete t.validateName,h&&this.logger.error("Error compiling schema, function code:",h),$}finally{this._compilations.delete(t)}}Zr.compileSchema=Ml;function wb(t,r,e){var n;e=cn.resolveUrl(r,e);let s=t.refs[e];if(s)return s;let o=xb.call(this,t,e);if(o===void 0){let l=(n=t.localRefs)===null||n===void 0?void 0:n[e];l&&(o=new as({schema:l,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=kb.call(this,o)}Zr.resolveRef=wb;function kb(t){return cn.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Ml.call(this,t)}function hp(t){for(let r of this._compilations)if(vb(r,t))return r}Zr.getCompilingSchema=hp;function vb(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function xb(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||Xo.call(this,t,r)}function Xo(t,r){let e=$b.parse(r),n=cn._getFullPath(e),s=cn.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===s)return Bl.call(this,e,t);let o=cn.normalizeId(n),l=this.refs[o]||this.schemas[o];if(typeof l=="string"){let f=Xo.call(this,t,l);return typeof(f==null?void 0:f.schema)!="object"?void 0:Bl.call(this,e,f)}if(typeof(l==null?void 0:l.schema)=="object"){if(l.validate||Ml.call(this,l),o===cn.normalizeId(r)){let{schema:f}=l;return f.$id&&(s=cn.resolveUrl(s,f.$id)),new as({schema:f,root:t,baseId:s})}return Bl.call(this,e,l)}}Zr.resolveSchema=Xo;var Cb=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Bl(t,{baseId:r,schema:e,root:n}){var s;if(((s=t.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(let l of t.fragment.slice(1).split("/")){if(typeof e=="boolean"||(e=e[mp.unescapeFragment(l)],e===void 0))return;!Cb.has(l)&&typeof e=="object"&&e.$id&&(r=cn.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!mp.schemaHasRulesButRef(e,this.RULES)){let l=cn.resolveUrl(r,e.$ref);o=Xo.call(this,n,l)}if(o=o||new as({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var gp=be((X1,Ab)=>{Ab.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var kp=be(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.CodeGen=Yt.Name=Yt.nil=Yt.stringify=Yt.str=Yt._=Yt.KeywordCxt=void 0;var Eb=Vs();Yt.KeywordCxt=Eb.default;var ls=ze();Object.defineProperty(Yt,"_",{enumerable:!0,get:function(){return ls._}});Object.defineProperty(Yt,"str",{enumerable:!0,get:function(){return ls.str}});Object.defineProperty(Yt,"stringify",{enumerable:!0,get:function(){return ls.stringify}});Object.defineProperty(Yt,"nil",{enumerable:!0,get:function(){return ls.nil}});Object.defineProperty(Yt,"Name",{enumerable:!0,get:function(){return ls.Name}});Object.defineProperty(Yt,"CodeGen",{enumerable:!0,get:function(){return ls.CodeGen}});var Ul=Qo(),_b=sl(),Zs=zl(),Sb=ze(),Yo=Us(),ea=is(),Hl=_t(),yp=gp(),Pb=["removeAdditional","useDefaults","coerceTypes"],Tb=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Fb={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",schemaId:"JSON Schema draft-04 is not supported in Ajv v7.",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",strictNumbers:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key."},Ib={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function Ob(t){var r,e,n,s,o,l,f,c,g,h,$,k;let x=(r=t.strict)!==null&&r!==void 0?r:!0,C=x?"log":!1,I=(e=t.code)===null||e===void 0?void 0:e.optimize,N=I===!0||I===void 0?1:I||0;return{strict:x,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:C,strictTuples:(s=t.strictTuples)!==null&&s!==void 0?s:C,code:t.code?{...t.code,optimize:N}:{optimize:N},loopRequired:(o=t.loopRequired)!==null&&o!==void 0?o:1/0,loopEnum:(l=t.loopEnum)!==null&&l!==void 0?l:1/0,meta:(f=t.meta)!==null&&f!==void 0?f:!0,messages:(c=t.messages)!==null&&c!==void 0?c:!0,inlineRefs:(g=t.inlineRefs)!==null&&g!==void 0?g:!0,addUsedSchema:(h=t.addUsedSchema)!==null&&h!==void 0?h:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(k=t.validateFormats)!==null&&k!==void 0?k:!0}}var Js=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...Ob(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new Sb.ValueScope({scope:{},prefixes:Tb,es5:e,lines:n}),this.logger=jb(r.logger);let s=r.validateFormats;r.validateFormats=!1,this.RULES=_b.getRules(),bp.call(this,Fb,r,"NOT SUPPORTED"),bp.call(this,Ib,r,"DEPRECATED","warn"),this._metaOpts=qb.call(this),r.formats&&Nb.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&Db.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),Rb.call(this),r.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(yp,yp.$id,!1)}defaultMeta(){let{meta:r}=this.opts;return this.opts.defaultMeta=typeof r=="object"?r.$id||r:void 0}validate(r,e){let n;if(typeof r=="string"){if(n=this.getSchema(r),!n)throw new Error(`no schema with key or ref "${r}"`)}else n=this.compile(r);let s=n(e);return"$async"in n||(this.errors=n.errors),s}compile(r,e){let n=this._addSchema(r,e);return n.validate||this._compileSchemaEnv(n)}compileAsync(r,e){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return s.call(this,r,e);async function s(h,$){await o.call(this,h.$schema);let k=this._addSchema(h,$);return k.validate||l.call(this,k)}async function o(h){h&&!this.getSchema(h)&&await s.call(this,{$ref:h},!0)}async function l(h){try{return this._compileSchemaEnv(h)}catch($){if(!($ instanceof Ul.MissingRefError))throw $;return f.call(this,$),await c.call(this,$.missingSchema),l.call(this,h)}}function f({missingSchema:h,missingRef:$}){if(this.refs[h])throw new Error(`AnySchema ${h} is loaded but ${$} cannot be resolved`)}async function c(h){let $=await g.call(this,h);this.refs[h]||await o.call(this,$.$schema),this.refs[h]||this.addSchema($,h,e)}async function g(h){let $=this._loading[h];if($)return $;try{return await(this._loading[h]=n(h))}finally{delete this._loading[h]}}}addSchema(r,e,n,s=this.opts.validateSchema){if(Array.isArray(r)){for(let l of r)this.addSchema(l,void 0,n,s);return this}let o;if(typeof r=="object"&&(o=r.$id,o!==void 0&&typeof o!="string"))throw new Error("schema id must be string");return e=Yo.normalizeId(e||o),this._checkUnique(e),this.schemas[e]=this._addSchema(r,n,s,!0),this}addMetaSchema(r,e,n=this.opts.validateSchema){return this.addSchema(r,e,!0,n),this}validateSchema(r,e){if(typeof r=="boolean")return!0;let n;if(n=r.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let s=this.validate(n,r);if(!s&&e){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return s}getSchema(r){let e;for(;typeof(e=$p.call(this,r))=="string";)r=e;if(e===void 0){let n=new Zs.SchemaEnv({schema:{}});if(e=Zs.resolveSchema.call(this,n,r),!e)return;this.refs[r]=e}return e.validate||this._compileSchemaEnv(e)}removeSchema(r){if(r instanceof RegExp)return this._removeAllSchemas(this.schemas,r),this._removeAllSchemas(this.refs,r),this;switch(typeof r){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let e=$p.call(this,r);return typeof e=="object"&&this._cache.delete(e.schema),delete this.schemas[r],delete this.refs[r],this}case"object":{let e=r;this._cache.delete(e);let n=r.$id;return n&&(n=Yo.normalizeId(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(r){for(let e of r)this.addKeyword(e);return this}addKeyword(r,e){let n;if(typeof r=="string")n=r,typeof e=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),e.keyword=n);else if(typeof r=="object"&&e===void 0){if(e=r,n=e.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Mb.call(this,n,e),!e)return Hl.eachItem(n,o=>Vl.call(this,o)),this;Vb.call(this,e);let s={...e,type:ea.getJSONTypes(e.type),schemaType:ea.getJSONTypes(e.schemaType)};return Hl.eachItem(n,s.type.length===0?o=>Vl.call(this,o,s):o=>s.type.forEach(l=>Vl.call(this,o,s,l))),this}getKeyword(r){let e=this.RULES.all[r];return typeof e=="object"?e.definition:!!e}removeKeyword(r){let{RULES:e}=this;delete e.keywords[r],delete e.all[r];for(let n of e.rules){let s=n.rules.findIndex(o=>o.keyword===r);s>=0&&n.rules.splice(s,1)}return this}addFormat(r,e){return typeof e=="string"&&(e=new RegExp(e)),this.formats[r]=e,this}errorsText(r=this.errors,{separator:e=", ",dataVar:n="data"}={}){return!r||r.length===0?"No errors":r.map(s=>`${n}${s.dataPath} ${s.message}`).reduce((s,o)=>s+e+o)}$dataMetaSchema(r,e){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let s of e){let o=s.split("/").slice(1),l=r;for(let f of o)l=l[f];for(let f in n){let c=n[f];if(typeof c!="object")continue;let{$data:g}=c.definition,h=l[f];g&&h&&(l[f]=wp(h))}}return r}_removeAllSchemas(r,e){for(let n in r){let s=r[n];(!e||e.test(n))&&(typeof s=="string"?delete r[n]:s&&!s.meta&&(this._cache.delete(s.schema),delete r[n]))}}_addSchema(r,e,n=this.opts.validateSchema,s=this.opts.addUsedSchema){if(typeof r!="object"){if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let o=this._cache.get(r);if(o!==void 0)return o;let l=Yo.getSchemaRefs.call(this,r);o=new Zs.SchemaEnv({schema:r,meta:e,localRefs:l}),this._cache.set(o.schema,o);let f=o.baseId;return s&&!f.startsWith("#")&&(f&&this._checkUnique(f),this.refs[f]=o),n&&this.validateSchema(r,!0),o}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):Zs.compileSchema.call(this,r),!r.validate)throw new Error("ajv implementation error");return r.validate}_compileMetaSchema(r){let e=this.opts;this.opts=this._metaOpts;try{Zs.compileSchema.call(this,r)}finally{this.opts=e}}};Yt.default=Js;Js.ValidationError=Ul.ValidationError;Js.MissingRefError=Ul.MissingRefError;function bp(t,r,e,n="error"){for(let s in t){let o=s;o in r&&this.logger[n](`${e}: option ${s}. ${t[o]}`)}}function $p(t){return t=Yo.normalizeId(t),this.schemas[t]||this.refs[t]}function Rb(){let t=this.opts.schemas;if(!!t)if(Array.isArray(t))this.addSchema(t);else for(let r in t)this.addSchema(t[r],r)}function Nb(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function Db(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in t){let e=t[r];e.keyword||(e.keyword=r),this.addKeyword(e)}}function qb(){let t={...this.opts};for(let r of Pb)delete t[r];return t}var Lb={log(){},warn(){},error(){}};function jb(t){if(t===!1)return Lb;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Bb=/^[a-z_$][a-z0-9_$:-]*$/i;function Mb(t,r){let{RULES:e}=this;if(Hl.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Bb.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!r&&r.$data&&!("code"in r||"validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function Vl(t,r,e){var n;let s=r==null?void 0:r.post;if(e&&s)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,l=s?o.post:o.rules.find(({type:c})=>c===e);if(l||(l={type:e,rules:[]},o.rules.push(l)),o.keywords[t]=!0,!r)return;let f={keyword:t,definition:{...r,type:ea.getJSONTypes(r.type),schemaType:ea.getJSONTypes(r.schemaType)}};r.before?zb.call(this,l,f,r.before):l.rules.push(f),o.all[t]=f,(n=r.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function zb(t,r,e){let n=t.rules.findIndex(s=>s.keyword===e);n>=0?t.rules.splice(n,0,r):(t.rules.push(r),this.logger.warn(`rule ${e} is not defined`))}function Vb(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=wp(r)),t.validateSchema=this.compile(r,!0))}var Hb={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function wp(t){return{anyOf:[t,Hb]}}});var vp=be(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var Ub={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Gl.default=Ub});var Ep=be(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.callRef=Ai.getValidate=void 0;var Gb=Qo(),xp=un(),Fr=ze(),us=ln(),Cp=zl(),ta=_t(),Kb={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:s,schemaEnv:o,validateName:l,opts:f,self:c}=n;if(e==="#"||e==="#/")return h();let g=Cp.resolveRef.call(c,o.root,s,e);if(g===void 0)throw new Gb.MissingRefError(s,e);if(g instanceof Cp.SchemaEnv)return $(g);return k(g);function h(){if(o===o.root)return ra(t,l,o,o.$async);let x=r.scopeValue("root",{ref:o.root});return ra(t,Fr._`${x}.validate`,o.root,o.root.$async)}function $(x){let C=Ap(t,x);ra(t,C,x,x.$async)}function k(x){let C=r.scopeValue("schema",f.code.source===!0?{ref:x,code:Fr.stringify(x)}:{ref:x}),I=r.name("valid"),N=t.subschema({schema:x,dataTypes:[],schemaPath:Fr.nil,topSchemaRef:C,errSchemaPath:e},I);t.mergeEvaluated(N),t.ok(I)}}};function Ap(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):Fr._`${e.scopeValue("wrapper",{ref:r})}.validate`}Ai.getValidate=Ap;function ra(t,r,e,n){let{gen:s,it:o}=t,{allErrors:l,schemaEnv:f,opts:c}=o,g=c.passContext?us.default.this:Fr.nil;n?h():$();function h(){if(!f.$async)throw new Error("async schema referenced by sync schema");let C=s.let("valid");s.try(()=>{s.code(Fr._`await ${xp.callValidateCode(t,r,g)}`),x(r),l||s.assign(C,!0)},I=>{s.if(Fr._`!(${I} instanceof ${o.ValidationError})`,()=>s.throw(I)),k(I),l||s.assign(C,!1)}),t.ok(C)}function $(){t.result(xp.callValidateCode(t,r,g),()=>x(r),()=>k(r))}function k(C){let I=Fr._`${C}.errors`;s.assign(us.default.vErrors,Fr._`${us.default.vErrors} === null ? ${I} : ${us.default.vErrors}.concat(${I})`),s.assign(us.default.errors,Fr._`${us.default.vErrors}.length`)}function x(C){var I;if(!o.opts.unevaluated)return;let N=(I=e==null?void 0:e.validate)===null||I===void 0?void 0:I.evaluated;if(o.props!==!0)if(N&&!N.dynamicProps)N.props!==void 0&&(o.props=ta.mergeEvaluated.props(s,N.props,o.props));else{let B=s.var("props",Fr._`${C}.evaluated.props`);o.props=ta.mergeEvaluated.props(s,B,o.props,Fr.Name)}if(o.items!==!0)if(N&&!N.dynamicItems)N.items!==void 0&&(o.items=ta.mergeEvaluated.items(s,N.items,o.items));else{let B=s.var("items",Fr._`${C}.evaluated.items`);o.items=ta.mergeEvaluated.items(s,B,o.items,Fr.Name)}}}Ai.callRef=ra;Ai.default=Kb});var _p=be(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var Wb=vp(),Zb=Ep(),Jb=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Wb.default,Zb.default];Kl.default=Jb});var Sp=be(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var na=ze(),ei=na.operators,ia={maximum:{okStr:"<=",ok:ei.LTE,fail:ei.GT},minimum:{okStr:">=",ok:ei.GTE,fail:ei.LT},exclusiveMaximum:{okStr:"<",ok:ei.LT,fail:ei.GTE},exclusiveMinimum:{okStr:">",ok:ei.GT,fail:ei.LTE}},Qb={message:({keyword:t,schemaCode:r})=>na.str`should be ${ia[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>na._`{comparison: ${ia[t].okStr}, limit: ${r}}`},Xb={keyword:Object.keys(ia),type:"number",schemaType:"number",$data:!0,error:Qb,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(na._`${e} ${ia[r].fail} ${n} || isNaN(${e})`)}};Wl.default=Xb});var Pp=be(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var Qs=ze(),Yb={message:({schemaCode:t})=>Qs.str`should be multiple of ${t}`,params:({schemaCode:t})=>Qs._`{multipleOf: ${t}}`},e$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Yb,code(t){let{gen:r,data:e,schemaCode:n,it:s}=t,o=s.opts.multipleOfPrecision,l=r.let("res"),f=o?Qs._`Math.abs(Math.round(${l}) - ${l}) > 1e-${o}`:Qs._`${l} !== parseInt(${l})`;t.fail$data(Qs._`(${n} === 0 || (${l} = ${e}/${n}, ${f}))`)}};Zl.default=e$});var Tp=be(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});function t$(t){let r=t.length,e=0,n=0,s;for(;n<r;)e++,s=t.charCodeAt(n++),s>=55296&&s<=56319&&n<r&&(s=t.charCodeAt(n),(s&64512)===56320&&n++);return e}Jl.default=t$});var Fp=be(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var ti=ze(),r$=Tp(),n$={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return ti.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>ti._`{limit: ${t}}`},i$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:n$,code(t){let{keyword:r,data:e,schemaCode:n,it:s}=t,o=r==="maxLength"?ti.operators.GT:ti.operators.LT,l;if(s.opts.unicode===!1)l=ti._`${e}.length`;else{let f=t.gen.scopeValue("func",{ref:r$.default,code:ti._`require("ajv/dist/compile/ucs2length").default`});l=ti._`${f}(${e})`}t.fail$data(ti._`${l} ${o} ${n}`)}};Ql.default=i$});var Ip=be(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var s$=un(),sa=ze(),o$={message:({schemaCode:t})=>sa.str`should match pattern "${t}"`,params:({schemaCode:t})=>sa._`{pattern: ${t}}`},a$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:o$,code(t){let{gen:r,data:e,$data:n,schema:s,schemaCode:o}=t,l=n?sa._`(new RegExp(${o}, "u"))`:s$.usePattern(r,s);t.fail$data(sa._`!${l}.test(${e})`)}};Xl.default=a$});var Op=be(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var Xs=ze(),l$={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Xs.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Xs._`{limit: ${t}}`},u$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:l$,code(t){let{keyword:r,data:e,schemaCode:n}=t,s=r==="maxProperties"?Xs.operators.GT:Xs.operators.LT;t.fail$data(Xs._`Object.keys(${e}).length ${s} ${n}`)}};Yl.default=u$});var Rp=be(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var Ys=un(),eo=ze(),f$=Br(),c$={message:({params:{missingProperty:t}})=>eo.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>eo._`{missingProperty: ${t}}`},p$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:c$,code(t){let{gen:r,schema:e,schemaCode:n,data:s,$data:o,it:l}=t,{opts:f}=l;if(!o&&e.length===0)return;let c=e.length>=f.loopRequired;if(l.allErrors?g():h(),f.strictRequired){let x=t.parentSchema.properties,{definedProperties:C}=t.it;for(let I of e)if((x==null?void 0:x[I])===void 0&&!C.has(I)){let N=l.schemaEnv.baseId+l.errSchemaPath,B=`required property "${I}" is not defined at "${N}" (strictRequired)`;f$.checkStrictMode(l,B,l.opts.strictRequired)}}function g(){if(c||o)t.block$data(eo.nil,$);else for(let x of e)Ys.checkReportMissingProp(t,x)}function h(){let x=r.let("missing");if(c||o){let C=r.let("valid",!0);t.block$data(C,()=>k(x,C)),t.ok(C)}else r.if(Ys.checkMissingProp(t,e,x)),Ys.reportMissingProp(t,x),r.else()}function $(){r.forOf("prop",n,x=>{t.setParams({missingProperty:x}),r.if(Ys.noPropertyInData(r,s,x,f.ownProperties),()=>t.error())})}function k(x,C){t.setParams({missingProperty:x}),r.forOf(x,n,()=>{r.assign(C,Ys.propertyInData(r,s,x,f.ownProperties)),r.if(eo.not(C),()=>{t.error(),r.break()})},eo.nil)}}};eu.default=p$});var Np=be(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var to=ze(),d$={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return to.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>to._`{limit: ${t}}`},m$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:d$,code(t){let{keyword:r,data:e,schemaCode:n}=t,s=r==="maxItems"?to.operators.GT:to.operators.LT;t.fail$data(to._`${e}.length ${s} ${n}`)}};tu.default=m$});var Dp=be(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var ru=is(),Kt=ze(),h$=Hs(),g$={message:({params:{i:t,j:r}})=>Kt.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Kt._`{i: ${t}, j: ${r}}`},y$={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:g$,code(t){let{gen:r,data:e,$data:n,schema:s,parentSchema:o,schemaCode:l,it:f}=t;if(!n&&!s)return;let c=r.let("valid"),g=o.items?ru.getSchemaTypes(o.items):[];t.block$data(c,h,Kt._`${l} === false`),t.ok(c);function h(){let C=r.let("i",Kt._`${e}.length`),I=r.let("j");t.setParams({i:C,j:I}),r.assign(c,!0),r.if(Kt._`${C} > 1`,()=>($()?k:x)(C,I))}function $(){return g.length>0&&!g.some(C=>C==="object"||C==="array")}function k(C,I){let N=r.name("item"),B=ru.checkDataTypes(g,N,f.opts.strict,ru.DataType.Wrong),X=r.const("indices",Kt._`{}`);r.for(Kt._`;${C}--;`,()=>{r.let(N,Kt._`${e}[${C}]`),r.if(B,Kt._`continue`),g.length>1&&r.if(Kt._`typeof ${N} == "string"`,Kt._`${N} += "_"`),r.if(Kt._`typeof ${X}[${N}] == "number"`,()=>{r.assign(I,Kt._`${X}[${N}]`),t.error(),r.assign(c,!1).break()}).code(Kt._`${X}[${N}] = ${C}`)})}function x(C,I){let N=t.gen.scopeValue("func",{ref:h$,code:Kt._`require("ajv/dist/compile/equal")`}),B=r.name("outer");r.label(B).for(Kt._`;${C}--;`,()=>r.for(Kt._`${I} = ${C}; ${I}--;`,()=>r.if(Kt._`${N}(${e}[${C}], ${e}[${I}])`,()=>{t.error(),r.assign(c,!1).break(B)})))}}};nu.default=y$});var qp=be(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var iu=ze(),b$=Hs(),$$={message:"should be equal to constant",params:({schemaCode:t})=>iu._`{allowedValue: ${t}}`},w$={keyword:"const",$data:!0,error:$$,code(t){let r=t.gen.scopeValue("func",{ref:b$,code:iu._`require("ajv/dist/compile/equal")`});t.fail$data(iu._`!${r}(${t.data}, ${t.schemaCode})`)}};su.default=w$});var Lp=be(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var fs=ze(),k$=Hs(),v$={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>fs._`{allowedValues: ${t}}`},x$={keyword:"enum",schemaType:"array",$data:!0,error:v$,code(t){let{gen:r,data:e,$data:n,schema:s,schemaCode:o,it:l}=t;if(!n&&s.length===0)throw new Error("enum must have non-empty array");let f=s.length>=l.opts.loopEnum,c=t.gen.scopeValue("func",{ref:k$,code:fs._`require("ajv/dist/compile/equal")`}),g;if(f||n)g=r.let("valid"),t.block$data(g,h);else{if(!Array.isArray(s))throw new Error("ajv implementation error");let k=r.const("vSchema",o);g=fs.or(...s.map((x,C)=>$(k,C)))}t.pass(g);function h(){r.assign(g,!1),r.forOf("v",o,k=>r.if(fs._`${c}(${e}, ${k})`,()=>r.assign(g,!0).break()))}function $(k,x){let C=s[x];return C&&typeof C=="object"?fs._`${c}(${e}, ${k}[${x}])`:fs._`${e} === ${C}`}}};ou.default=x$});var jp=be(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var C$=Sp(),A$=Pp(),E$=Fp(),_$=Ip(),S$=Op(),P$=Rp(),T$=Np(),F$=Dp(),I$=qp(),O$=Lp(),R$=[C$.default,A$.default,E$.default,_$.default,S$.default,P$.default,T$.default,F$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},I$.default,O$.default];au.default=R$});var Bp=be(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var Ei=ze(),N$=vi(),D$=_t(),q$=Br(),L$={message:({params:{len:t}})=>Ei.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>Ei._`{limit: ${t}}`},j$={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:L$,code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:o}=t,{items:l}=n;if(!Array.isArray(l)){q$.checkStrictMode(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}o.items=!0;let f=r.const("len",Ei._`${s}.length`);if(e===!1)t.setParams({len:l.length}),t.pass(Ei._`${f} <= ${l.length}`);else if(typeof e=="object"&&!D$.alwaysValidSchema(o,e)){let g=r.var("valid",Ei._`${f} <= ${l.length}`);r.if(Ei.not(g),()=>c(g)),t.ok(g)}function c(g){r.forRange("i",l.length,f,h=>{t.subschema({keyword:"additionalItems",dataProp:h,dataPropType:N$.Type.Num},g),o.allErrors||r.if(Ei.not(g),()=>r.break())})}}};lu.default=j$});var zp=be(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var Mp=ze(),uu=_t(),B$=Br(),M$=un(),z$={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{gen:r,schema:e,it:n}=t;if(Array.isArray(e))n.opts.unevaluated&&e.length&&n.items!==!0&&(n.items=uu.mergeEvaluated.items(r,e.length,n.items)),s(e);else{if(n.items=!0,uu.alwaysValidSchema(n,e))return;t.ok(M$.validateArray(t))}function s(o){let{parentSchema:l,data:f}=t;if(n.opts.strictTuples&&!V$(o.length,l)){let h=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;B$.checkStrictMode(n,h,n.opts.strictTuples)}let c=r.name("valid"),g=r.const("len",Mp._`${f}.length`);o.forEach((h,$)=>{uu.alwaysValidSchema(n,h)||(r.if(Mp._`${g} > ${$}`,()=>t.subschema({keyword:"items",schemaProp:$,dataProp:$},c)),t.ok(c))})}}};function V$(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}fu.default=z$});var Hp=be(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var pn=ze(),H$=vi(),U$=_t(),Vp=Br(),G$={message:({params:{min:t,max:r}})=>r===void 0?pn.str`should contain at least ${t} valid item(s)`:pn.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?pn._`{minContains: ${t}}`:pn._`{minContains: ${t}, maxContains: ${r}}`},K$={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:G$,code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:o}=t,l,f,{minContains:c,maxContains:g}=n;o.opts.next?(l=c===void 0?1:c,f=g):l=1;let h=r.const("len",pn._`${s}.length`);if(t.setParams({min:l,max:f}),f===void 0&&l===0){Vp.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&l>f){Vp.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(U$.alwaysValidSchema(o,e)){let C=pn._`${h} >= ${l}`;f!==void 0&&(C=pn._`${C} && ${h} <= ${f}`),t.pass(C);return}o.items=!0;let $=r.name("valid");if(f===void 0&&l===1)k($,()=>r.if($,()=>r.break()));else{r.let($,!1);let C=r.name("_valid"),I=r.let("count",0);k(C,()=>r.if(C,()=>x(I)))}t.result($,()=>t.reset());function k(C,I){r.forRange("i",0,h,N=>{t.subschema({keyword:"contains",dataProp:N,dataPropType:H$.Type.Num,compositeRule:!0},C),I()})}function x(C){r.code(pn._`${C}++`),f===void 0?r.if(pn._`${C} >= ${l}`,()=>r.assign($,!0).break()):(r.if(pn._`${C} > ${f}`,()=>r.assign($,!1).break()),l===1?r.assign($,!0):r.if(pn._`${C} >= ${l}`,()=>r.assign($,!0)))}}};cu.default=K$});var Kp=be(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.validateSchemaDeps=Cn.validatePropertyDeps=Cn.error=void 0;var pu=ze(),W$=_t(),ro=un();Cn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return pu.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>pu._`{property: ${t},
5
+ || ${l} === "boolean" || ${s} === null`).assign(f,Oe._`[${s}]`)}}}function ab({gen:t,parentData:r,parentDataProperty:e},n){t.if(Oe._`${r} !== undefined`,()=>t.assign(Oe._`${r}[${e}]`,n))}function Nl(t,r,e,n=Gs.Correct){let s=n===Gs.Correct?Oe.operators.EQ:Oe.operators.NEQ,o;switch(t){case"null":return Oe._`${r} ${s} null`;case"array":o=Oe._`Array.isArray(${r})`;break;case"object":o=Oe._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":o=l(Oe._`!(${r} % 1) && !isNaN(${r})`);break;case"number":o=l();break;default:return Oe._`typeof ${r} ${s} ${t}`}return n===Gs.Correct?o:Oe.not(o);function l(f=Oe.nil){return Oe.and(Oe._`typeof ${r} == "number"`,f,e?Oe._`isFinite(${r})`:Oe.nil)}}Xt.checkDataType=Nl;function Rl(t,r,e,n){if(t.length===1)return Nl(t[0],r,e,n);let s,o=up.toHash(t);if(o.array&&o.object){let l=Oe._`typeof ${r} != "object"`;s=o.null?l:Oe._`!${r} || ${l}`,delete o.null,delete o.array,delete o.object}else s=Oe.nil;o.number&&delete o.integer;for(let l in o)s=Oe.and(s,Nl(l,r,e,n));return s}Xt.checkDataTypes=Rl;var lb={message:({schema:t})=>Oe.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?Oe._`{type: ${t}}`:Oe._`{type: ${r}}`};function Dl(t){let r=ub(t);rb.reportError(r,lb)}Xt.reportTypeError=Dl;function ub(t){let{gen:r,data:e,schema:n}=t,s=up.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:t}}});var Vs=we(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.getData=void 0;var pp=is(),Wo=_t(),Ks=zs(),Dt=ze(),ql=ln(),fb=vi(),Ll=class{constructor(r,e,n){if(pb(r,e,n),this.gen=r.gen,this.allErrors=r.allErrors,this.keyword=n,this.data=r.data,this.schema=r.schema[n],this.$data=e.$data&&r.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=Wo.schemaRefOrVal(r,this.schema,n,this.$data),this.schemaType=e.schemaType,this.parentSchema=r.schema,this.params={},this.it=r,this.def=e,this.$data)this.schemaCode=r.gen.const("vSchema",dp(this.$data,r));else if(this.schemaCode=this.schemaValue,!cb(this.schema,e.schemaType,e.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(e.schemaType)}`);("code"in e?e.trackErrors:e.errors!==!1)&&(this.errsCount=r.gen.const("_errs",ql.default.errors))}result(r,e,n){this.gen.if(Dt.not(r)),n?n():this.error(),e?(this.gen.else(),e(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(r,e){this.result(r,void 0,e)}fail(r){if(r===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(r),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(r){if(!this.$data)return this.fail(r);let{schemaCode:e}=this;this.fail(Dt._`${e} !== undefined && (${Dt.or(this.invalid$data(),r)})`)}error(r){(r?Ks.reportExtraError:Ks.reportError)(this,this.def.error)}$dataError(){Ks.reportError(this,this.def.$dataError||Ks.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Ks.resetErrorsCount(this.gen,this.errsCount)}ok(r){this.allErrors||this.gen.if(r)}setParams(r,e){e?Object.assign(this.params,r):this.params=r}block$data(r,e,n=Dt.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=Dt.nil,e=Dt.nil){if(!this.$data)return;let{gen:n,schemaCode:s,schemaType:o,def:l}=this;n.if(Dt.or(Dt._`${s} === undefined`,e)),r!==Dt.nil&&n.assign(r,!0),(o.length||l.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==Dt.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:s,it:o}=this;return Dt.or(l(),f());function l(){if(n.length){if(!(e instanceof Dt.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return Dt._`${pp.checkDataTypes(c,e,o.opts.strict,pp.DataType.Wrong)}`}return Dt.nil}function f(){if(s.validateSchema){let c=r.scopeValue("validate$data",{ref:s.validateSchema});return Dt._`!${c}(${e})`}return Dt.nil}}subschema(r,e){return fb.applySubschema(this.it,r,e)}mergeEvaluated(r,e){let{it:n,gen:s}=this;!n.opts.unevaluated||(n.props!==!0&&r.props!==void 0&&(n.props=Wo.mergeEvaluated.props(s,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=Wo.mergeEvaluated.items(s,r.items,n.items,e)))}mergeValidEvaluated(r,e){let{it:n,gen:s}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return s.if(e,()=>this.mergeEvaluated(r,Dt.Name)),!0}};Ws.default=Ll;function cb(t,r,e=!1){return!r.length||r.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||e&&typeof t>"u")}function pb({schema:t,opts:r,self:e},n,s){if(Array.isArray(n.keyword)?!n.keyword.includes(s):n.keyword!==s)throw new Error("ajv implementation error");let o=n.dependencies;if(o!=null&&o.some(l=>!Object.prototype.hasOwnProperty.call(t,l)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[s])){let f="keyword value is invalid: "+e.errorsText(n.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(f);else throw new Error(f)}}var db=/^\/(?:[^~]|~0|~1)*$/,mb=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function dp(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let s,o;if(t==="")return ql.default.rootData;if(t[0]==="/"){if(!db.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);s=t,o=ql.default.rootData}else{let g=mb.exec(t);if(!g)throw new Error(`Invalid JSON-pointer: ${t}`);let h=+g[1];if(s=g[2],s==="#"){if(h>=r)throw new Error(c("property/index",h));return n[r-h]}if(h>r)throw new Error(c("data",h));if(o=e[r-h],!s)return o}let l=o,f=s.split("/");for(let g of f)g&&(o=Dt._`${o}${Dt.getProperty(Wo.unescapeJsonPointer(g))}`,l=Dt._`${l} && ${o}`);return l;function c(g,h){return`Cannot access ${g} ${h} levels up, current level is ${r}`}}Ws.getData=dp});var Qo=we((os,mp)=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.MissingRefError=os.ValidationError=void 0;var jl=Us(),Zo=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};os.ValidationError=Zo;var Jo=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=jl.resolveUrl(r,e),this.missingSchema=jl.normalizeId(jl.getFullPath(this.missingRef))}};os.MissingRefError=Jo;mp.exports={ValidationError:Zo,MissingRefError:Jo}});var zl=we(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.resolveSchema=Zr.getCompilingSchema=Zr.resolveRef=Zr.compileSchema=Zr.SchemaEnv=void 0;var fn=ze(),hb=Qo(),Ci=ln(),cn=Us(),hp=_t(),gb=Br(),yb=Tl(),as=class{constructor(r){var e;this.refs={},this.dynamicAnchors={};let n;typeof r.schema=="object"&&(n=r.schema),this.schema=r.schema,this.root=r.root||this,this.baseId=(e=r.baseId)!==null&&e!==void 0?e:cn.normalizeId(n==null?void 0:n.$id),this.localRefs=r.localRefs,this.meta=r.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};Zr.SchemaEnv=as;function Ml(t){let r=gp.call(this,t);if(r)return r;let e=cn.getFullPath(t.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:o}=this.opts,l=new fn.CodeGen(this.scope,{es5:n,lines:s,ownProperties:o}),f;t.$async&&(f=l.scopeValue("Error",{ref:hb.ValidationError,code:fn._`require("ajv/dist/compile/error_classes").ValidationError`}));let c=l.scopeName("validate");t.validateName=c;let g={gen:l,allErrors:this.opts.allErrors,data:Ci.default.data,parentData:Ci.default.parentData,parentDataProperty:Ci.default.parentDataProperty,dataNames:[Ci.default.data],dataPathArr:[fn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:fn.stringify(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:f,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:fn.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:fn._`""`,opts:this.opts,self:this},h;try{this._compilations.add(t),gb.validateFunctionCode(g),l.optimize(this.opts.code.optimize);let $=l.toString();h=`${l.scopeRefs(Ci.default.scope)}return ${$}`,this.opts.code.process&&(h=this.opts.code.process(h,t));let x=new Function(`${Ci.default.self}`,`${Ci.default.scope}`,h)(this,this.scope.get());if(this.scope.value(c,{ref:x}),x.errors=null,x.schema=t.schema,x.schemaEnv=t,t.$async&&(x.$async=!0),this.opts.code.source===!0&&(x.source={validateName:c,validateCode:$,scopeValues:l._values}),this.opts.unevaluated){let{props:C,items:I}=g;x.evaluated={props:C instanceof fn.Name?void 0:C,items:I instanceof fn.Name?void 0:I,dynamicProps:C instanceof fn.Name,dynamicItems:I instanceof fn.Name},x.source&&(x.source.evaluated=fn.stringify(x.evaluated))}return t.validate=x,t}catch($){throw delete t.validate,delete t.validateName,h&&this.logger.error("Error compiling schema, function code:",h),$}finally{this._compilations.delete(t)}}Zr.compileSchema=Ml;function bb(t,r,e){var n;e=cn.resolveUrl(r,e);let s=t.refs[e];if(s)return s;let o=kb.call(this,t,e);if(o===void 0){let l=(n=t.localRefs)===null||n===void 0?void 0:n[e];l&&(o=new as({schema:l,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=$b.call(this,o)}Zr.resolveRef=bb;function $b(t){return cn.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Ml.call(this,t)}function gp(t){for(let r of this._compilations)if(wb(r,t))return r}Zr.getCompilingSchema=gp;function wb(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function kb(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||Xo.call(this,t,r)}function Xo(t,r){let e=yb.parse(r),n=cn._getFullPath(e),s=cn.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===s)return Bl.call(this,e,t);let o=cn.normalizeId(n),l=this.refs[o]||this.schemas[o];if(typeof l=="string"){let f=Xo.call(this,t,l);return typeof(f==null?void 0:f.schema)!="object"?void 0:Bl.call(this,e,f)}if(typeof(l==null?void 0:l.schema)=="object"){if(l.validate||Ml.call(this,l),o===cn.normalizeId(r)){let{schema:f}=l;return f.$id&&(s=cn.resolveUrl(s,f.$id)),new as({schema:f,root:t,baseId:s})}return Bl.call(this,e,l)}}Zr.resolveSchema=Xo;var vb=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Bl(t,{baseId:r,schema:e,root:n}){var s;if(((s=t.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(let l of t.fragment.slice(1).split("/")){if(typeof e=="boolean"||(e=e[hp.unescapeFragment(l)],e===void 0))return;!vb.has(l)&&typeof e=="object"&&e.$id&&(r=cn.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!hp.schemaHasRulesButRef(e,this.RULES)){let l=cn.resolveUrl(r,e.$ref);o=Xo.call(this,n,l)}if(o=o||new as({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var yp=we((J1,xb)=>{xb.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var vp=we(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.CodeGen=Yt.Name=Yt.nil=Yt.stringify=Yt.str=Yt._=Yt.KeywordCxt=void 0;var Cb=Vs();Yt.KeywordCxt=Cb.default;var ls=ze();Object.defineProperty(Yt,"_",{enumerable:!0,get:function(){return ls._}});Object.defineProperty(Yt,"str",{enumerable:!0,get:function(){return ls.str}});Object.defineProperty(Yt,"stringify",{enumerable:!0,get:function(){return ls.stringify}});Object.defineProperty(Yt,"nil",{enumerable:!0,get:function(){return ls.nil}});Object.defineProperty(Yt,"Name",{enumerable:!0,get:function(){return ls.Name}});Object.defineProperty(Yt,"CodeGen",{enumerable:!0,get:function(){return ls.CodeGen}});var Ul=Qo(),Ab=sl(),Zs=zl(),Eb=ze(),Yo=Us(),ea=is(),Hl=_t(),bp=yp(),_b=["removeAdditional","useDefaults","coerceTypes"],Sb=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Pb={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",schemaId:"JSON Schema draft-04 is not supported in Ajv v7.",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",strictNumbers:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key."},Tb={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function Fb(t){var r,e,n,s,o,l,f,c,g,h,$,k;let x=(r=t.strict)!==null&&r!==void 0?r:!0,C=x?"log":!1,I=(e=t.code)===null||e===void 0?void 0:e.optimize,R=I===!0||I===void 0?1:I||0;return{strict:x,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:C,strictTuples:(s=t.strictTuples)!==null&&s!==void 0?s:C,code:t.code?{...t.code,optimize:R}:{optimize:R},loopRequired:(o=t.loopRequired)!==null&&o!==void 0?o:1/0,loopEnum:(l=t.loopEnum)!==null&&l!==void 0?l:1/0,meta:(f=t.meta)!==null&&f!==void 0?f:!0,messages:(c=t.messages)!==null&&c!==void 0?c:!0,inlineRefs:(g=t.inlineRefs)!==null&&g!==void 0?g:!0,addUsedSchema:(h=t.addUsedSchema)!==null&&h!==void 0?h:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(k=t.validateFormats)!==null&&k!==void 0?k:!0}}var Js=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...Fb(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new Eb.ValueScope({scope:{},prefixes:Sb,es5:e,lines:n}),this.logger=qb(r.logger);let s=r.validateFormats;r.validateFormats=!1,this.RULES=Ab.getRules(),$p.call(this,Pb,r,"NOT SUPPORTED"),$p.call(this,Tb,r,"DEPRECATED","warn"),this._metaOpts=Rb.call(this),r.formats&&Ob.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&Nb.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),Ib.call(this),r.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(bp,bp.$id,!1)}defaultMeta(){let{meta:r}=this.opts;return this.opts.defaultMeta=typeof r=="object"?r.$id||r:void 0}validate(r,e){let n;if(typeof r=="string"){if(n=this.getSchema(r),!n)throw new Error(`no schema with key or ref "${r}"`)}else n=this.compile(r);let s=n(e);return"$async"in n||(this.errors=n.errors),s}compile(r,e){let n=this._addSchema(r,e);return n.validate||this._compileSchemaEnv(n)}compileAsync(r,e){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return s.call(this,r,e);async function s(h,$){await o.call(this,h.$schema);let k=this._addSchema(h,$);return k.validate||l.call(this,k)}async function o(h){h&&!this.getSchema(h)&&await s.call(this,{$ref:h},!0)}async function l(h){try{return this._compileSchemaEnv(h)}catch($){if(!($ instanceof Ul.MissingRefError))throw $;return f.call(this,$),await c.call(this,$.missingSchema),l.call(this,h)}}function f({missingSchema:h,missingRef:$}){if(this.refs[h])throw new Error(`AnySchema ${h} is loaded but ${$} cannot be resolved`)}async function c(h){let $=await g.call(this,h);this.refs[h]||await o.call(this,$.$schema),this.refs[h]||this.addSchema($,h,e)}async function g(h){let $=this._loading[h];if($)return $;try{return await(this._loading[h]=n(h))}finally{delete this._loading[h]}}}addSchema(r,e,n,s=this.opts.validateSchema){if(Array.isArray(r)){for(let l of r)this.addSchema(l,void 0,n,s);return this}let o;if(typeof r=="object"&&(o=r.$id,o!==void 0&&typeof o!="string"))throw new Error("schema id must be string");return e=Yo.normalizeId(e||o),this._checkUnique(e),this.schemas[e]=this._addSchema(r,n,s,!0),this}addMetaSchema(r,e,n=this.opts.validateSchema){return this.addSchema(r,e,!0,n),this}validateSchema(r,e){if(typeof r=="boolean")return!0;let n;if(n=r.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let s=this.validate(n,r);if(!s&&e){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return s}getSchema(r){let e;for(;typeof(e=wp.call(this,r))=="string";)r=e;if(e===void 0){let n=new Zs.SchemaEnv({schema:{}});if(e=Zs.resolveSchema.call(this,n,r),!e)return;this.refs[r]=e}return e.validate||this._compileSchemaEnv(e)}removeSchema(r){if(r instanceof RegExp)return this._removeAllSchemas(this.schemas,r),this._removeAllSchemas(this.refs,r),this;switch(typeof r){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let e=wp.call(this,r);return typeof e=="object"&&this._cache.delete(e.schema),delete this.schemas[r],delete this.refs[r],this}case"object":{let e=r;this._cache.delete(e);let n=r.$id;return n&&(n=Yo.normalizeId(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(r){for(let e of r)this.addKeyword(e);return this}addKeyword(r,e){let n;if(typeof r=="string")n=r,typeof e=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),e.keyword=n);else if(typeof r=="object"&&e===void 0){if(e=r,n=e.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(jb.call(this,n,e),!e)return Hl.eachItem(n,o=>Vl.call(this,o)),this;Mb.call(this,e);let s={...e,type:ea.getJSONTypes(e.type),schemaType:ea.getJSONTypes(e.schemaType)};return Hl.eachItem(n,s.type.length===0?o=>Vl.call(this,o,s):o=>s.type.forEach(l=>Vl.call(this,o,s,l))),this}getKeyword(r){let e=this.RULES.all[r];return typeof e=="object"?e.definition:!!e}removeKeyword(r){let{RULES:e}=this;delete e.keywords[r],delete e.all[r];for(let n of e.rules){let s=n.rules.findIndex(o=>o.keyword===r);s>=0&&n.rules.splice(s,1)}return this}addFormat(r,e){return typeof e=="string"&&(e=new RegExp(e)),this.formats[r]=e,this}errorsText(r=this.errors,{separator:e=", ",dataVar:n="data"}={}){return!r||r.length===0?"No errors":r.map(s=>`${n}${s.dataPath} ${s.message}`).reduce((s,o)=>s+e+o)}$dataMetaSchema(r,e){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let s of e){let o=s.split("/").slice(1),l=r;for(let f of o)l=l[f];for(let f in n){let c=n[f];if(typeof c!="object")continue;let{$data:g}=c.definition,h=l[f];g&&h&&(l[f]=kp(h))}}return r}_removeAllSchemas(r,e){for(let n in r){let s=r[n];(!e||e.test(n))&&(typeof s=="string"?delete r[n]:s&&!s.meta&&(this._cache.delete(s.schema),delete r[n]))}}_addSchema(r,e,n=this.opts.validateSchema,s=this.opts.addUsedSchema){if(typeof r!="object"){if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let o=this._cache.get(r);if(o!==void 0)return o;let l=Yo.getSchemaRefs.call(this,r);o=new Zs.SchemaEnv({schema:r,meta:e,localRefs:l}),this._cache.set(o.schema,o);let f=o.baseId;return s&&!f.startsWith("#")&&(f&&this._checkUnique(f),this.refs[f]=o),n&&this.validateSchema(r,!0),o}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):Zs.compileSchema.call(this,r),!r.validate)throw new Error("ajv implementation error");return r.validate}_compileMetaSchema(r){let e=this.opts;this.opts=this._metaOpts;try{Zs.compileSchema.call(this,r)}finally{this.opts=e}}};Yt.default=Js;Js.ValidationError=Ul.ValidationError;Js.MissingRefError=Ul.MissingRefError;function $p(t,r,e,n="error"){for(let s in t){let o=s;o in r&&this.logger[n](`${e}: option ${s}. ${t[o]}`)}}function wp(t){return t=Yo.normalizeId(t),this.schemas[t]||this.refs[t]}function Ib(){let t=this.opts.schemas;if(!!t)if(Array.isArray(t))this.addSchema(t);else for(let r in t)this.addSchema(t[r],r)}function Ob(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function Nb(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in t){let e=t[r];e.keyword||(e.keyword=r),this.addKeyword(e)}}function Rb(){let t={...this.opts};for(let r of _b)delete t[r];return t}var Db={log(){},warn(){},error(){}};function qb(t){if(t===!1)return Db;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Lb=/^[a-z_$][a-z0-9_$:-]*$/i;function jb(t,r){let{RULES:e}=this;if(Hl.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Lb.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!r&&r.$data&&!("code"in r||"validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function Vl(t,r,e){var n;let s=r==null?void 0:r.post;if(e&&s)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,l=s?o.post:o.rules.find(({type:c})=>c===e);if(l||(l={type:e,rules:[]},o.rules.push(l)),o.keywords[t]=!0,!r)return;let f={keyword:t,definition:{...r,type:ea.getJSONTypes(r.type),schemaType:ea.getJSONTypes(r.schemaType)}};r.before?Bb.call(this,l,f,r.before):l.rules.push(f),o.all[t]=f,(n=r.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function Bb(t,r,e){let n=t.rules.findIndex(s=>s.keyword===e);n>=0?t.rules.splice(n,0,r):(t.rules.push(r),this.logger.warn(`rule ${e} is not defined`))}function Mb(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=kp(r)),t.validateSchema=this.compile(r,!0))}var zb={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function kp(t){return{anyOf:[t,zb]}}});var xp=we(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var Vb={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Gl.default=Vb});var _p=we(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.callRef=Ai.getValidate=void 0;var Hb=Qo(),Cp=un(),Fr=ze(),us=ln(),Ap=zl(),ta=_t(),Ub={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:s,schemaEnv:o,validateName:l,opts:f,self:c}=n;if(e==="#"||e==="#/")return h();let g=Ap.resolveRef.call(c,o.root,s,e);if(g===void 0)throw new Hb.MissingRefError(s,e);if(g instanceof Ap.SchemaEnv)return $(g);return k(g);function h(){if(o===o.root)return ra(t,l,o,o.$async);let x=r.scopeValue("root",{ref:o.root});return ra(t,Fr._`${x}.validate`,o.root,o.root.$async)}function $(x){let C=Ep(t,x);ra(t,C,x,x.$async)}function k(x){let C=r.scopeValue("schema",f.code.source===!0?{ref:x,code:Fr.stringify(x)}:{ref:x}),I=r.name("valid"),R=t.subschema({schema:x,dataTypes:[],schemaPath:Fr.nil,topSchemaRef:C,errSchemaPath:e},I);t.mergeEvaluated(R),t.ok(I)}}};function Ep(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):Fr._`${e.scopeValue("wrapper",{ref:r})}.validate`}Ai.getValidate=Ep;function ra(t,r,e,n){let{gen:s,it:o}=t,{allErrors:l,schemaEnv:f,opts:c}=o,g=c.passContext?us.default.this:Fr.nil;n?h():$();function h(){if(!f.$async)throw new Error("async schema referenced by sync schema");let C=s.let("valid");s.try(()=>{s.code(Fr._`await ${Cp.callValidateCode(t,r,g)}`),x(r),l||s.assign(C,!0)},I=>{s.if(Fr._`!(${I} instanceof ${o.ValidationError})`,()=>s.throw(I)),k(I),l||s.assign(C,!1)}),t.ok(C)}function $(){t.result(Cp.callValidateCode(t,r,g),()=>x(r),()=>k(r))}function k(C){let I=Fr._`${C}.errors`;s.assign(us.default.vErrors,Fr._`${us.default.vErrors} === null ? ${I} : ${us.default.vErrors}.concat(${I})`),s.assign(us.default.errors,Fr._`${us.default.vErrors}.length`)}function x(C){var I;if(!o.opts.unevaluated)return;let R=(I=e==null?void 0:e.validate)===null||I===void 0?void 0:I.evaluated;if(o.props!==!0)if(R&&!R.dynamicProps)R.props!==void 0&&(o.props=ta.mergeEvaluated.props(s,R.props,o.props));else{let B=s.var("props",Fr._`${C}.evaluated.props`);o.props=ta.mergeEvaluated.props(s,B,o.props,Fr.Name)}if(o.items!==!0)if(R&&!R.dynamicItems)R.items!==void 0&&(o.items=ta.mergeEvaluated.items(s,R.items,o.items));else{let B=s.var("items",Fr._`${C}.evaluated.items`);o.items=ta.mergeEvaluated.items(s,B,o.items,Fr.Name)}}}Ai.callRef=ra;Ai.default=Ub});var Sp=we(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var Gb=xp(),Kb=_p(),Wb=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Gb.default,Kb.default];Kl.default=Wb});var Pp=we(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var na=ze(),ei=na.operators,ia={maximum:{okStr:"<=",ok:ei.LTE,fail:ei.GT},minimum:{okStr:">=",ok:ei.GTE,fail:ei.LT},exclusiveMaximum:{okStr:"<",ok:ei.LT,fail:ei.GTE},exclusiveMinimum:{okStr:">",ok:ei.GT,fail:ei.LTE}},Zb={message:({keyword:t,schemaCode:r})=>na.str`should be ${ia[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>na._`{comparison: ${ia[t].okStr}, limit: ${r}}`},Jb={keyword:Object.keys(ia),type:"number",schemaType:"number",$data:!0,error:Zb,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(na._`${e} ${ia[r].fail} ${n} || isNaN(${e})`)}};Wl.default=Jb});var Tp=we(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var Qs=ze(),Qb={message:({schemaCode:t})=>Qs.str`should be multiple of ${t}`,params:({schemaCode:t})=>Qs._`{multipleOf: ${t}}`},Xb={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Qb,code(t){let{gen:r,data:e,schemaCode:n,it:s}=t,o=s.opts.multipleOfPrecision,l=r.let("res"),f=o?Qs._`Math.abs(Math.round(${l}) - ${l}) > 1e-${o}`:Qs._`${l} !== parseInt(${l})`;t.fail$data(Qs._`(${n} === 0 || (${l} = ${e}/${n}, ${f}))`)}};Zl.default=Xb});var Fp=we(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});function Yb(t){let r=t.length,e=0,n=0,s;for(;n<r;)e++,s=t.charCodeAt(n++),s>=55296&&s<=56319&&n<r&&(s=t.charCodeAt(n),(s&64512)===56320&&n++);return e}Jl.default=Yb});var Ip=we(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var ti=ze(),e$=Fp(),t$={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return ti.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>ti._`{limit: ${t}}`},r$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:t$,code(t){let{keyword:r,data:e,schemaCode:n,it:s}=t,o=r==="maxLength"?ti.operators.GT:ti.operators.LT,l;if(s.opts.unicode===!1)l=ti._`${e}.length`;else{let f=t.gen.scopeValue("func",{ref:e$.default,code:ti._`require("ajv/dist/compile/ucs2length").default`});l=ti._`${f}(${e})`}t.fail$data(ti._`${l} ${o} ${n}`)}};Ql.default=r$});var Op=we(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var n$=un(),sa=ze(),i$={message:({schemaCode:t})=>sa.str`should match pattern "${t}"`,params:({schemaCode:t})=>sa._`{pattern: ${t}}`},s$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:i$,code(t){let{gen:r,data:e,$data:n,schema:s,schemaCode:o}=t,l=n?sa._`(new RegExp(${o}, "u"))`:n$.usePattern(r,s);t.fail$data(sa._`!${l}.test(${e})`)}};Xl.default=s$});var Np=we(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var Xs=ze(),o$={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Xs.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Xs._`{limit: ${t}}`},a$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:o$,code(t){let{keyword:r,data:e,schemaCode:n}=t,s=r==="maxProperties"?Xs.operators.GT:Xs.operators.LT;t.fail$data(Xs._`Object.keys(${e}).length ${s} ${n}`)}};Yl.default=a$});var Rp=we(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var Ys=un(),eo=ze(),l$=Br(),u$={message:({params:{missingProperty:t}})=>eo.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>eo._`{missingProperty: ${t}}`},f$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:u$,code(t){let{gen:r,schema:e,schemaCode:n,data:s,$data:o,it:l}=t,{opts:f}=l;if(!o&&e.length===0)return;let c=e.length>=f.loopRequired;if(l.allErrors?g():h(),f.strictRequired){let x=t.parentSchema.properties,{definedProperties:C}=t.it;for(let I of e)if((x==null?void 0:x[I])===void 0&&!C.has(I)){let R=l.schemaEnv.baseId+l.errSchemaPath,B=`required property "${I}" is not defined at "${R}" (strictRequired)`;l$.checkStrictMode(l,B,l.opts.strictRequired)}}function g(){if(c||o)t.block$data(eo.nil,$);else for(let x of e)Ys.checkReportMissingProp(t,x)}function h(){let x=r.let("missing");if(c||o){let C=r.let("valid",!0);t.block$data(C,()=>k(x,C)),t.ok(C)}else r.if(Ys.checkMissingProp(t,e,x)),Ys.reportMissingProp(t,x),r.else()}function $(){r.forOf("prop",n,x=>{t.setParams({missingProperty:x}),r.if(Ys.noPropertyInData(r,s,x,f.ownProperties),()=>t.error())})}function k(x,C){t.setParams({missingProperty:x}),r.forOf(x,n,()=>{r.assign(C,Ys.propertyInData(r,s,x,f.ownProperties)),r.if(eo.not(C),()=>{t.error(),r.break()})},eo.nil)}}};eu.default=f$});var Dp=we(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var to=ze(),c$={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return to.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>to._`{limit: ${t}}`},p$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:c$,code(t){let{keyword:r,data:e,schemaCode:n}=t,s=r==="maxItems"?to.operators.GT:to.operators.LT;t.fail$data(to._`${e}.length ${s} ${n}`)}};tu.default=p$});var qp=we(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var ru=is(),Kt=ze(),d$=Hs(),m$={message:({params:{i:t,j:r}})=>Kt.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Kt._`{i: ${t}, j: ${r}}`},h$={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:m$,code(t){let{gen:r,data:e,$data:n,schema:s,parentSchema:o,schemaCode:l,it:f}=t;if(!n&&!s)return;let c=r.let("valid"),g=o.items?ru.getSchemaTypes(o.items):[];t.block$data(c,h,Kt._`${l} === false`),t.ok(c);function h(){let C=r.let("i",Kt._`${e}.length`),I=r.let("j");t.setParams({i:C,j:I}),r.assign(c,!0),r.if(Kt._`${C} > 1`,()=>($()?k:x)(C,I))}function $(){return g.length>0&&!g.some(C=>C==="object"||C==="array")}function k(C,I){let R=r.name("item"),B=ru.checkDataTypes(g,R,f.opts.strict,ru.DataType.Wrong),X=r.const("indices",Kt._`{}`);r.for(Kt._`;${C}--;`,()=>{r.let(R,Kt._`${e}[${C}]`),r.if(B,Kt._`continue`),g.length>1&&r.if(Kt._`typeof ${R} == "string"`,Kt._`${R} += "_"`),r.if(Kt._`typeof ${X}[${R}] == "number"`,()=>{r.assign(I,Kt._`${X}[${R}]`),t.error(),r.assign(c,!1).break()}).code(Kt._`${X}[${R}] = ${C}`)})}function x(C,I){let R=t.gen.scopeValue("func",{ref:d$,code:Kt._`require("ajv/dist/compile/equal")`}),B=r.name("outer");r.label(B).for(Kt._`;${C}--;`,()=>r.for(Kt._`${I} = ${C}; ${I}--;`,()=>r.if(Kt._`${R}(${e}[${C}], ${e}[${I}])`,()=>{t.error(),r.assign(c,!1).break(B)})))}}};nu.default=h$});var Lp=we(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var iu=ze(),g$=Hs(),y$={message:"should be equal to constant",params:({schemaCode:t})=>iu._`{allowedValue: ${t}}`},b$={keyword:"const",$data:!0,error:y$,code(t){let r=t.gen.scopeValue("func",{ref:g$,code:iu._`require("ajv/dist/compile/equal")`});t.fail$data(iu._`!${r}(${t.data}, ${t.schemaCode})`)}};su.default=b$});var jp=we(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var fs=ze(),$$=Hs(),w$={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>fs._`{allowedValues: ${t}}`},k$={keyword:"enum",schemaType:"array",$data:!0,error:w$,code(t){let{gen:r,data:e,$data:n,schema:s,schemaCode:o,it:l}=t;if(!n&&s.length===0)throw new Error("enum must have non-empty array");let f=s.length>=l.opts.loopEnum,c=t.gen.scopeValue("func",{ref:$$,code:fs._`require("ajv/dist/compile/equal")`}),g;if(f||n)g=r.let("valid"),t.block$data(g,h);else{if(!Array.isArray(s))throw new Error("ajv implementation error");let k=r.const("vSchema",o);g=fs.or(...s.map((x,C)=>$(k,C)))}t.pass(g);function h(){r.assign(g,!1),r.forOf("v",o,k=>r.if(fs._`${c}(${e}, ${k})`,()=>r.assign(g,!0).break()))}function $(k,x){let C=s[x];return C&&typeof C=="object"?fs._`${c}(${e}, ${k}[${x}])`:fs._`${e} === ${C}`}}};ou.default=k$});var Bp=we(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var v$=Pp(),x$=Tp(),C$=Ip(),A$=Op(),E$=Np(),_$=Rp(),S$=Dp(),P$=qp(),T$=Lp(),F$=jp(),I$=[v$.default,x$.default,C$.default,A$.default,E$.default,_$.default,S$.default,P$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},T$.default,F$.default];au.default=I$});var Mp=we(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var Ei=ze(),O$=vi(),N$=_t(),R$=Br(),D$={message:({params:{len:t}})=>Ei.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>Ei._`{limit: ${t}}`},q$={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:D$,code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:o}=t,{items:l}=n;if(!Array.isArray(l)){R$.checkStrictMode(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}o.items=!0;let f=r.const("len",Ei._`${s}.length`);if(e===!1)t.setParams({len:l.length}),t.pass(Ei._`${f} <= ${l.length}`);else if(typeof e=="object"&&!N$.alwaysValidSchema(o,e)){let g=r.var("valid",Ei._`${f} <= ${l.length}`);r.if(Ei.not(g),()=>c(g)),t.ok(g)}function c(g){r.forRange("i",l.length,f,h=>{t.subschema({keyword:"additionalItems",dataProp:h,dataPropType:O$.Type.Num},g),o.allErrors||r.if(Ei.not(g),()=>r.break())})}}};lu.default=q$});var Vp=we(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var zp=ze(),uu=_t(),L$=Br(),j$=un(),B$={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{gen:r,schema:e,it:n}=t;if(Array.isArray(e))n.opts.unevaluated&&e.length&&n.items!==!0&&(n.items=uu.mergeEvaluated.items(r,e.length,n.items)),s(e);else{if(n.items=!0,uu.alwaysValidSchema(n,e))return;t.ok(j$.validateArray(t))}function s(o){let{parentSchema:l,data:f}=t;if(n.opts.strictTuples&&!M$(o.length,l)){let h=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;L$.checkStrictMode(n,h,n.opts.strictTuples)}let c=r.name("valid"),g=r.const("len",zp._`${f}.length`);o.forEach((h,$)=>{uu.alwaysValidSchema(n,h)||(r.if(zp._`${g} > ${$}`,()=>t.subschema({keyword:"items",schemaProp:$,dataProp:$},c)),t.ok(c))})}}};function M$(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}fu.default=B$});var Up=we(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var pn=ze(),z$=vi(),V$=_t(),Hp=Br(),H$={message:({params:{min:t,max:r}})=>r===void 0?pn.str`should contain at least ${t} valid item(s)`:pn.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?pn._`{minContains: ${t}}`:pn._`{minContains: ${t}, maxContains: ${r}}`},U$={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:H$,code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:o}=t,l,f,{minContains:c,maxContains:g}=n;o.opts.next?(l=c===void 0?1:c,f=g):l=1;let h=r.const("len",pn._`${s}.length`);if(t.setParams({min:l,max:f}),f===void 0&&l===0){Hp.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&l>f){Hp.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(V$.alwaysValidSchema(o,e)){let C=pn._`${h} >= ${l}`;f!==void 0&&(C=pn._`${C} && ${h} <= ${f}`),t.pass(C);return}o.items=!0;let $=r.name("valid");if(f===void 0&&l===1)k($,()=>r.if($,()=>r.break()));else{r.let($,!1);let C=r.name("_valid"),I=r.let("count",0);k(C,()=>r.if(C,()=>x(I)))}t.result($,()=>t.reset());function k(C,I){r.forRange("i",0,h,R=>{t.subschema({keyword:"contains",dataProp:R,dataPropType:z$.Type.Num,compositeRule:!0},C),I()})}function x(C){r.code(pn._`${C}++`),f===void 0?r.if(pn._`${C} >= ${l}`,()=>r.assign($,!0).break()):(r.if(pn._`${C} > ${f}`,()=>r.assign($,!1).break()),l===1?r.assign($,!0):r.if(pn._`${C} >= ${l}`,()=>r.assign($,!0)))}}};cu.default=U$});var Wp=we(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.validateSchemaDeps=Cn.validatePropertyDeps=Cn.error=void 0;var pu=ze(),G$=_t(),ro=un();Cn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return pu.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>pu._`{property: ${t},
6
6
  missingProperty: ${n},
7
7
  depsCount: ${r},
8
- deps: ${e}}`};var Z$={keyword:"dependencies",type:"object",schemaType:"object",error:Cn.error,code(t){let[r,e]=J$(t);Up(t,r),Gp(t,e)}};function J$({schema:t}){let r={},e={};for(let n in t){if(n==="__proto__")continue;let s=Array.isArray(t[n])?r:e;s[n]=t[n]}return[r,e]}function Up(t,r=t.schema){let{gen:e,data:n,it:s}=t;if(Object.keys(r).length===0)return;let o=e.let("missing");for(let l in r){let f=r[l];if(f.length===0)continue;let c=ro.propertyInData(e,n,l,s.opts.ownProperties);t.setParams({property:l,depsCount:f.length,deps:f.join(", ")}),s.allErrors?e.if(c,()=>{for(let g of f)ro.checkReportMissingProp(t,g)}):(e.if(pu._`${c} && (${ro.checkMissingProp(t,f,o)})`),ro.reportMissingProp(t,o),e.else())}}Cn.validatePropertyDeps=Up;function Gp(t,r=t.schema){let{gen:e,data:n,keyword:s,it:o}=t,l=e.name("valid");for(let f in r)W$.alwaysValidSchema(o,r[f])||(e.if(ro.propertyInData(e,n,f,o.opts.ownProperties),()=>{let c=t.subschema({keyword:s,schemaProp:f},l);t.mergeValidEvaluated(c,l)},()=>e.var(l,!0)),t.ok(l))}Cn.validateSchemaDeps=Gp;Cn.default=Z$});var Wp=be(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var du=ze(),Q$=_t(),X$={message:({params:t})=>du.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>du._`{propertyName: ${t.propertyName}}`},Y$={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:X$,code(t){let{gen:r,schema:e,data:n,it:s}=t;if(Q$.alwaysValidSchema(s,e))return;let o=r.name("valid");r.forIn("key",n,l=>{t.setParams({propertyName:l}),t.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},o),r.if(du.not(o),()=>{t.error(!0),s.allErrors||r.break()})}),t.ok(o)}};mu.default=Y$});var yu=be(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var oa=un(),dn=ze(),ew=ln(),tw=vi(),hu=_t(),rw={message:"should NOT have additional properties",params:({params:t})=>dn._`{additionalProperty: ${t.additionalProperty}}`},nw={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:rw,code(t){let{gen:r,schema:e,parentSchema:n,data:s,errsCount:o,it:l}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:f,opts:c}=l;if(l.props=!0,c.removeAdditional!=="all"&&hu.alwaysValidSchema(l,e))return;let g=oa.allSchemaProperties(n.properties),h=oa.allSchemaProperties(n.patternProperties);$(),t.ok(dn._`${o} === ${ew.default.errors}`);function $(){r.forIn("key",s,N=>{!g.length&&!h.length?C(N):r.if(k(N),()=>C(N))})}function k(N){let B;if(g.length>8){let X=hu.schemaRefOrVal(l,n.properties,"properties");B=oa.isOwnProperty(r,X,N)}else g.length?B=dn.or(...g.map(X=>dn._`${N} === ${X}`)):B=dn.nil;return h.length&&(B=dn.or(B,...h.map(X=>dn._`${oa.usePattern(r,X)}.test(${N})`))),dn.not(B)}function x(N){r.code(dn._`delete ${s}[${N}]`)}function C(N){if(c.removeAdditional==="all"||c.removeAdditional&&e===!1){x(N);return}if(e===!1){t.setParams({additionalProperty:N}),t.error(),f||r.break();return}if(typeof e=="object"&&!hu.alwaysValidSchema(l,e)){let B=r.name("valid");c.removeAdditional==="failing"?(I(N,B,!1),r.if(dn.not(B),()=>{t.reset(),x(N)})):(I(N,B),f||r.if(dn.not(B),()=>r.break()))}}function I(N,B,X){let le={keyword:"additionalProperties",dataProp:N,dataPropType:tw.Type.Str};X===!1&&Object.assign(le,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(le,B)}}};gu.default=nw});var Qp=be($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});var iw=Vs(),Zp=un(),bu=_t(),Jp=yu(),sw={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Jp.default.code(new iw.default(o,Jp.default,"additionalProperties"));let l=Zp.allSchemaProperties(e);for(let $ of l)o.definedProperties.add($);o.opts.unevaluated&&l.length&&o.props!==!0&&(o.props=bu.mergeEvaluated.props(r,bu.toHash(l),o.props));let f=l.filter($=>!bu.alwaysValidSchema(o,e[$]));if(f.length===0)return;let c=r.name("valid");for(let $ of f)g($)?h($):(r.if(Zp.propertyInData(r,s,$,o.opts.ownProperties)),h($),o.allErrors||r.else().var(c,!0),r.endIf()),t.it.definedProperties.add($),t.ok(c);function g($){return o.opts.useDefaults&&!o.compositeRule&&e[$].default!==void 0}function h($){t.subschema({keyword:"properties",schemaProp:$,dataProp:$},c)}}};$u.default=sw});var Yp=be(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var Xp=un(),aa=ze(),ow=vi(),aw=Br(),lw=_t(),uw={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:s,it:o}=t,{opts:l}=o,f=Xp.schemaProperties(o,e);if(f.length===0)return;let c=l.strict&&!l.allowMatchingProperties&&s.properties,g=r.name("valid");o.props!==!0&&!(o.props instanceof aa.Name)&&(o.props=lw.evaluatedPropsToName(r,o.props));let{props:h}=o;$();function $(){for(let C of f)c&&k(C),o.allErrors?x(C):(r.var(g,!0),x(C),r.if(g))}function k(C){for(let I in c)new RegExp(C).test(I)&&aw.checkStrictMode(o,`property ${I} matches pattern ${C} (use allowMatchingProperties)`)}function x(C){r.forIn("key",n,I=>{r.if(aa._`${Xp.usePattern(r,C)}.test(${I})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:C,dataProp:I,dataPropType:ow.Type.Str},g),o.opts.unevaluated&&h!==!0?r.assign(aa._`${h}[${I}]`,!0):o.allErrors||r.if(aa.not(g),()=>r.break())})})}}};wu.default=uw});var ed=be(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var fw=_t(),cw={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(fw.alwaysValidSchema(n,e)){t.fail();return}let s=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.result(s,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};ku.default=cw});var td=be(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var pw=un(),dw={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:pw.validateUnion,error:{message:"should match some schema in anyOf"}};vu.default=dw});var rd=be(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});var la=ze(),mw=_t(),hw={message:"should match exactly one schema in oneOf",params:({params:t})=>la._`{passingSchemas: ${t.passing}}`},gw={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:hw,code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=e,o=r.let("valid",!1),l=r.let("passing",null),f=r.name("_valid");t.setParams({passing:l}),r.block(c),t.result(o,()=>t.reset(),()=>t.error(!0));function c(){s.forEach((g,h)=>{let $;mw.alwaysValidSchema(n,g)?r.var(f,!0):$=t.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},f),h>0&&r.if(la._`${f} && ${o}`).assign(o,!1).assign(l,la._`[${l}, ${h}]`).else(),r.if(f,()=>{r.assign(o,!0),r.assign(l,h),$&&t.mergeEvaluated($,la.Name)})})}}};xu.default=gw});var nd=be(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var yw=_t(),bw={keyword:"allOf",schemaType:"array",code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=r.name("valid");e.forEach((o,l)=>{if(yw.alwaysValidSchema(n,o))return;let f=t.subschema({keyword:"allOf",schemaProp:l},s);t.ok(s),t.mergeEvaluated(f)})}};Cu.default=bw});var sd=be(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});var ua=ze(),$w=_t(),ww=Br(),kw={message:({params:t})=>ua.str`should match "${t.ifClause}" schema`,params:({params:t})=>ua._`{failingKeyword: ${t.ifClause}}`},vw={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:kw,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&ww.checkStrictMode(n,'"if" without "then" and "else" is ignored');let s=id(n,"then"),o=id(n,"else");if(!s&&!o)return;let l=r.let("valid",!0),f=r.name("_valid");if(c(),t.reset(),s&&o){let h=r.let("ifClause");t.setParams({ifClause:h}),r.if(f,g("then",h),g("else",h))}else s?r.if(f,g("then")):r.if(ua.not(f),g("else"));t.pass(l,()=>t.error(!0));function c(){let h=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);t.mergeEvaluated(h)}function g(h,$){return()=>{let k=t.subschema({keyword:h},f);r.assign(l,f),t.mergeValidEvaluated(k,l),$?r.assign($,ua._`${h}`):t.setParams({ifClause:h})}}}};function id(t,r){let e=t.schema[r];return e!==void 0&&!$w.alwaysValidSchema(t,e)}Au.default=vw});var od=be(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});var xw=Br(),Cw={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&xw.checkStrictMode(e,`"${t}" without "if" is ignored`)}};Eu.default=Cw});var ad=be(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var Aw=Bp(),Ew=zp(),_w=Hp(),Sw=Kp(),Pw=Wp(),Tw=yu(),Fw=Qp(),Iw=Yp(),Ow=ed(),Rw=td(),Nw=rd(),Dw=nd(),qw=sd(),Lw=od(),jw=[Ow.default,Rw.default,Nw.default,Dw.default,qw.default,Lw.default,Aw.default,Ew.default,_w.default,Pw.default,Tw.default,Sw.default,Fw.default,Iw.default];_u.default=jw});var ld=be(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var qt=ze(),Bw={message:({schemaCode:t})=>qt.str`should match format "${t}"`,params:({schemaCode:t})=>qt._`{format: ${t}}`},Mw={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Bw,code(t,r){let{gen:e,data:n,$data:s,schema:o,schemaCode:l,it:f}=t,{opts:c,errSchemaPath:g,schemaEnv:h,self:$}=f;if(!c.validateFormats)return;s?k():x();function k(){let C=e.scopeValue("formats",{ref:$.formats,code:c.code.formats}),I=e.const("fDef",qt._`${C}[${l}]`),N=e.let("fType"),B=e.let("format");e.if(qt._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>e.assign(N,qt._`${I}.type || "string"`).assign(B,qt._`${I}.validate`),()=>e.assign(N,qt._`"string"`).assign(B,I)),t.fail$data(qt.or(X(),le()));function X(){return c.strict===!1?qt.nil:qt._`${l} && !${B}`}function le(){let $e=h.$async?qt._`(${I}.async ? await ${B}(${n}) : ${B}(${n}))`:qt._`${B}(${n})`,he=qt._`(typeof ${B} == "function" ? ${$e} : ${B}.test(${n}))`;return qt._`${B} && ${B} !== true && ${N} === ${r} && !${he}`}}function x(){let C=$.formats[o];if(!C){X();return}if(C===!0)return;let[I,N,B]=le(C);I===r&&t.pass($e());function X(){if(c.strict===!1){$.logger.warn(he());return}throw new Error(he());function he(){return`unknown format "${o}" ignored in schema at path "${g}"`}}function le(he){let Y=e.scopeValue("formats",{key:o,ref:he,code:c.code.formats?qt._`${c.code.formats}${qt.getProperty(o)}`:void 0});return typeof he=="object"&&!(he instanceof RegExp)?[he.type||"string",he.validate,qt._`${Y}.validate`]:["string",he,Y]}function $e(){if(typeof C=="object"&&!(C instanceof RegExp)&&C.async){if(!h.$async)throw new Error("async format in sync schema");return qt._`await ${B}(${n})`}return typeof N=="function"?qt._`${B}(${n})`:qt._`${B}.test(${n})`}}}};Su.default=Mw});var ud=be(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var zw=ld(),Vw=[zw.default];Pu.default=Vw});var fd=be(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.contentVocabulary=cs.metadataVocabulary=void 0;cs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];cs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var pd=be(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var Hw=_p(),Uw=jp(),Gw=ad(),Kw=ud(),cd=fd(),Ww=[Hw.default,Uw.default,Gw.default,Kw.default,cd.metadataVocabulary,cd.contentVocabulary];Tu.default=Ww});var dd=be((Rx,Zw)=>{Zw.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var hd=be(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.CodeGen=er.Name=er.nil=er.stringify=er.str=er._=er.KeywordCxt=void 0;var Jw=Vs();er.KeywordCxt=Jw.default;var ps=ze();Object.defineProperty(er,"_",{enumerable:!0,get:function(){return ps._}});Object.defineProperty(er,"str",{enumerable:!0,get:function(){return ps.str}});Object.defineProperty(er,"stringify",{enumerable:!0,get:function(){return ps.stringify}});Object.defineProperty(er,"nil",{enumerable:!0,get:function(){return ps.nil}});Object.defineProperty(er,"Name",{enumerable:!0,get:function(){return ps.Name}});Object.defineProperty(er,"CodeGen",{enumerable:!0,get:function(){return ps.CodeGen}});var Qw=kp(),Xw=pd(),md=dd(),Yw=["/properties"],fa="http://json-schema.org/draft-07/schema",Fu=class extends Qw.default{_addVocabularies(){super._addVocabularies(),Xw.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(md,Yw):md;this.addMetaSchema(r,fa,!1),this.refs["http://json-schema.org/schema"]=fa}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(fa)?fa:void 0)}};er.default=Fu});var yd=be((Dx,gd)=>{var ek=Object.prototype.hasOwnProperty,tk=Object.prototype.toString;gd.exports=function(r,e,n){if(tk.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var s=r.length;if(s===+s)for(var o=0;o<s;o++)e.call(n,r[o],o,r);else for(var l in r)ek.call(r,l)&&e.call(n,r[l],l,r)}});var $d=be((qx,bd)=>{"use strict";var rk=yd();bd.exports=yt;function yt(t,r,e){if(arguments.length===3)return yt.set(t,r,e);if(arguments.length===2)return yt.get(t,r);var n=yt.bind(yt,t);for(var s in yt)yt.hasOwnProperty(s)&&(n[s]=yt[s].bind(n,t));return n}yt.get=function(r,e){for(var n=Array.isArray(e)?e:yt.parse(e),s=0;s<n.length;++s){var o=n[s];if(!(typeof r=="object"&&o in r))throw new Error("Invalid reference token: "+o);r=r[o]}return r};yt.set=function(r,e,n){var s=Array.isArray(e)?e:yt.parse(e),o=s[0];if(s.length===0)throw Error("Can not set the root object");for(var l=0;l<s.length-1;++l){var f=s[l];f==="__proto__"||f==="constructor"||f==="prototype"||(f==="-"&&Array.isArray(r)&&(f=r.length),o=s[l+1],f in r||(o.match(/^(\d+|-)$/)?r[f]=[]:r[f]={}),r=r[f])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=n,this};yt.remove=function(t,r){var e=Array.isArray(r)?r:yt.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var s=yt.get(t,e.slice(0,-1));if(Array.isArray(s)){var o=+n;if(n===""&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(s,o,1)}else delete s[n]};yt.dict=function(r,e){var n={};return yt.walk(r,function(s,o){n[o]=s},e),n};yt.walk=function(r,e,n){var s=[];n=n||function(o){var l=Object.prototype.toString.call(o);return l==="[object Object]"||l==="[object Array]"},function o(l){rk(l,function(f,c){s.push(String(c)),n(f)?o(f):e(f,yt.compile(s)),s.pop()})}(r)};yt.has=function(r,e){try{yt.get(r,e)}catch{return!1}return!0};yt.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};yt.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};yt.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(yt.unescape)};yt.compile=function(r){return r.length===0?"":"/"+r.map(yt.escape).join("/")}});var wd=be((Lx,nk)=>{nk.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var kd=be((jx,ik)=>{ik.exports={$ref:"#/definitions/AstTree",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},folded:{type:"boolean"},foldedLevels:{type:"object",additionalProperties:!1,patternProperties:{"^[0-9]+$":{type:"boolean"}}},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var vd=be((Bx,sk)=>{sk.exports={$ref:"#/definitions/RootBlock",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},folded:{type:"boolean"},foldedLevels:{type:"object",additionalProperties:!1,patternProperties:{"^[0-9]+$":{type:"boolean"}}},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var xd=be(ca=>{ca.Test=wd();ca.AstTree=kd();ca.PodliteDocument=vd()});var Bu=be((gC,Nd)=>{"use strict";function pk(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Pi(t,r,e,n){this.message=t,this.expected=r,this.found=e,this.location=n,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Pi)}pk(Pi,Error);Pi.buildMessage=function(t,r){var e={literal:function(g){return'"'+s(g.text)+'"'},class:function(g){var h="",$;for($=0;$<g.parts.length;$++)h+=g.parts[$]instanceof Array?o(g.parts[$][0])+"-"+o(g.parts[$][1]):o(g.parts[$]);return"["+(g.inverted?"^":"")+h+"]"},any:function(g){return"any character"},end:function(g){return"end of input"},other:function(g){return g.description}};function n(g){return g.charCodeAt(0).toString(16).toUpperCase()}function s(g){return g.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function o(g){return g.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function l(g){return e[g.type](g)}function f(g){var h=new Array(g.length),$,k;for($=0;$<g.length;$++)h[$]=l(g[$]);if(h.sort(),h.length>0){for($=1,k=1;$<h.length;$++)h[$-1]!==h[$]&&(h[k]=h[$],k++);h.length=k}switch(h.length){case 1:return h[0];case 2:return h[0]+" or "+h[1];default:return h.slice(0,-1).join(", ")+", or "+h[h.length-1]}}function c(g){return g?'"'+s(g)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function dk(t,r){r=r!==void 0?r:{};var e={},n={Document:ec,attributesOnly:Uh},s=ec,o=function(u){return u},l=function(u){return u},f=function(){return!!r.podMode},c=function(u){return u},g=ee(),h=function(){return{text:O(),type:"ambient",location:L()}},$=/^[ \xA0\u2001\t\f\u2008]/,k=P([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),x=/^[ \t\f]/,C=P([" "," ","\f"],!1,!1),I=/^[\n\r]/,N=P([`
8
+ deps: ${e}}`};var K$={keyword:"dependencies",type:"object",schemaType:"object",error:Cn.error,code(t){let[r,e]=W$(t);Gp(t,r),Kp(t,e)}};function W$({schema:t}){let r={},e={};for(let n in t){if(n==="__proto__")continue;let s=Array.isArray(t[n])?r:e;s[n]=t[n]}return[r,e]}function Gp(t,r=t.schema){let{gen:e,data:n,it:s}=t;if(Object.keys(r).length===0)return;let o=e.let("missing");for(let l in r){let f=r[l];if(f.length===0)continue;let c=ro.propertyInData(e,n,l,s.opts.ownProperties);t.setParams({property:l,depsCount:f.length,deps:f.join(", ")}),s.allErrors?e.if(c,()=>{for(let g of f)ro.checkReportMissingProp(t,g)}):(e.if(pu._`${c} && (${ro.checkMissingProp(t,f,o)})`),ro.reportMissingProp(t,o),e.else())}}Cn.validatePropertyDeps=Gp;function Kp(t,r=t.schema){let{gen:e,data:n,keyword:s,it:o}=t,l=e.name("valid");for(let f in r)G$.alwaysValidSchema(o,r[f])||(e.if(ro.propertyInData(e,n,f,o.opts.ownProperties),()=>{let c=t.subschema({keyword:s,schemaProp:f},l);t.mergeValidEvaluated(c,l)},()=>e.var(l,!0)),t.ok(l))}Cn.validateSchemaDeps=Kp;Cn.default=K$});var Zp=we(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var du=ze(),Z$=_t(),J$={message:({params:t})=>du.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>du._`{propertyName: ${t.propertyName}}`},Q$={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:J$,code(t){let{gen:r,schema:e,data:n,it:s}=t;if(Z$.alwaysValidSchema(s,e))return;let o=r.name("valid");r.forIn("key",n,l=>{t.setParams({propertyName:l}),t.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},o),r.if(du.not(o),()=>{t.error(!0),s.allErrors||r.break()})}),t.ok(o)}};mu.default=Q$});var yu=we(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var oa=un(),dn=ze(),X$=ln(),Y$=vi(),hu=_t(),ew={message:"should NOT have additional properties",params:({params:t})=>dn._`{additionalProperty: ${t.additionalProperty}}`},tw={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ew,code(t){let{gen:r,schema:e,parentSchema:n,data:s,errsCount:o,it:l}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:f,opts:c}=l;if(l.props=!0,c.removeAdditional!=="all"&&hu.alwaysValidSchema(l,e))return;let g=oa.allSchemaProperties(n.properties),h=oa.allSchemaProperties(n.patternProperties);$(),t.ok(dn._`${o} === ${X$.default.errors}`);function $(){r.forIn("key",s,R=>{!g.length&&!h.length?C(R):r.if(k(R),()=>C(R))})}function k(R){let B;if(g.length>8){let X=hu.schemaRefOrVal(l,n.properties,"properties");B=oa.isOwnProperty(r,X,R)}else g.length?B=dn.or(...g.map(X=>dn._`${R} === ${X}`)):B=dn.nil;return h.length&&(B=dn.or(B,...h.map(X=>dn._`${oa.usePattern(r,X)}.test(${R})`))),dn.not(B)}function x(R){r.code(dn._`delete ${s}[${R}]`)}function C(R){if(c.removeAdditional==="all"||c.removeAdditional&&e===!1){x(R);return}if(e===!1){t.setParams({additionalProperty:R}),t.error(),f||r.break();return}if(typeof e=="object"&&!hu.alwaysValidSchema(l,e)){let B=r.name("valid");c.removeAdditional==="failing"?(I(R,B,!1),r.if(dn.not(B),()=>{t.reset(),x(R)})):(I(R,B),f||r.if(dn.not(B),()=>r.break()))}}function I(R,B,X){let le={keyword:"additionalProperties",dataProp:R,dataPropType:Y$.Type.Str};X===!1&&Object.assign(le,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(le,B)}}};gu.default=tw});var Xp=we($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});var rw=Vs(),Jp=un(),bu=_t(),Qp=yu(),nw={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Qp.default.code(new rw.default(o,Qp.default,"additionalProperties"));let l=Jp.allSchemaProperties(e);for(let $ of l)o.definedProperties.add($);o.opts.unevaluated&&l.length&&o.props!==!0&&(o.props=bu.mergeEvaluated.props(r,bu.toHash(l),o.props));let f=l.filter($=>!bu.alwaysValidSchema(o,e[$]));if(f.length===0)return;let c=r.name("valid");for(let $ of f)g($)?h($):(r.if(Jp.propertyInData(r,s,$,o.opts.ownProperties)),h($),o.allErrors||r.else().var(c,!0),r.endIf()),t.it.definedProperties.add($),t.ok(c);function g($){return o.opts.useDefaults&&!o.compositeRule&&e[$].default!==void 0}function h($){t.subschema({keyword:"properties",schemaProp:$,dataProp:$},c)}}};$u.default=nw});var ed=we(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var Yp=un(),aa=ze(),iw=vi(),sw=Br(),ow=_t(),aw={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:s,it:o}=t,{opts:l}=o,f=Yp.schemaProperties(o,e);if(f.length===0)return;let c=l.strict&&!l.allowMatchingProperties&&s.properties,g=r.name("valid");o.props!==!0&&!(o.props instanceof aa.Name)&&(o.props=ow.evaluatedPropsToName(r,o.props));let{props:h}=o;$();function $(){for(let C of f)c&&k(C),o.allErrors?x(C):(r.var(g,!0),x(C),r.if(g))}function k(C){for(let I in c)new RegExp(C).test(I)&&sw.checkStrictMode(o,`property ${I} matches pattern ${C} (use allowMatchingProperties)`)}function x(C){r.forIn("key",n,I=>{r.if(aa._`${Yp.usePattern(r,C)}.test(${I})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:C,dataProp:I,dataPropType:iw.Type.Str},g),o.opts.unevaluated&&h!==!0?r.assign(aa._`${h}[${I}]`,!0):o.allErrors||r.if(aa.not(g),()=>r.break())})})}}};wu.default=aw});var td=we(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var lw=_t(),uw={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(lw.alwaysValidSchema(n,e)){t.fail();return}let s=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.result(s,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};ku.default=uw});var rd=we(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var fw=un(),cw={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fw.validateUnion,error:{message:"should match some schema in anyOf"}};vu.default=cw});var nd=we(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});var la=ze(),pw=_t(),dw={message:"should match exactly one schema in oneOf",params:({params:t})=>la._`{passingSchemas: ${t.passing}}`},mw={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:dw,code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=e,o=r.let("valid",!1),l=r.let("passing",null),f=r.name("_valid");t.setParams({passing:l}),r.block(c),t.result(o,()=>t.reset(),()=>t.error(!0));function c(){s.forEach((g,h)=>{let $;pw.alwaysValidSchema(n,g)?r.var(f,!0):$=t.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},f),h>0&&r.if(la._`${f} && ${o}`).assign(o,!1).assign(l,la._`[${l}, ${h}]`).else(),r.if(f,()=>{r.assign(o,!0),r.assign(l,h),$&&t.mergeEvaluated($,la.Name)})})}}};xu.default=mw});var id=we(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var hw=_t(),gw={keyword:"allOf",schemaType:"array",code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=r.name("valid");e.forEach((o,l)=>{if(hw.alwaysValidSchema(n,o))return;let f=t.subschema({keyword:"allOf",schemaProp:l},s);t.ok(s),t.mergeEvaluated(f)})}};Cu.default=gw});var od=we(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});var ua=ze(),yw=_t(),bw=Br(),$w={message:({params:t})=>ua.str`should match "${t.ifClause}" schema`,params:({params:t})=>ua._`{failingKeyword: ${t.ifClause}}`},ww={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:$w,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&bw.checkStrictMode(n,'"if" without "then" and "else" is ignored');let s=sd(n,"then"),o=sd(n,"else");if(!s&&!o)return;let l=r.let("valid",!0),f=r.name("_valid");if(c(),t.reset(),s&&o){let h=r.let("ifClause");t.setParams({ifClause:h}),r.if(f,g("then",h),g("else",h))}else s?r.if(f,g("then")):r.if(ua.not(f),g("else"));t.pass(l,()=>t.error(!0));function c(){let h=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);t.mergeEvaluated(h)}function g(h,$){return()=>{let k=t.subschema({keyword:h},f);r.assign(l,f),t.mergeValidEvaluated(k,l),$?r.assign($,ua._`${h}`):t.setParams({ifClause:h})}}}};function sd(t,r){let e=t.schema[r];return e!==void 0&&!yw.alwaysValidSchema(t,e)}Au.default=ww});var ad=we(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});var kw=Br(),vw={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&kw.checkStrictMode(e,`"${t}" without "if" is ignored`)}};Eu.default=vw});var ld=we(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var xw=Mp(),Cw=Vp(),Aw=Up(),Ew=Wp(),_w=Zp(),Sw=yu(),Pw=Xp(),Tw=ed(),Fw=td(),Iw=rd(),Ow=nd(),Nw=id(),Rw=od(),Dw=ad(),qw=[Fw.default,Iw.default,Ow.default,Nw.default,Rw.default,Dw.default,xw.default,Cw.default,Aw.default,_w.default,Sw.default,Ew.default,Pw.default,Tw.default];_u.default=qw});var ud=we(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var qt=ze(),Lw={message:({schemaCode:t})=>qt.str`should match format "${t}"`,params:({schemaCode:t})=>qt._`{format: ${t}}`},jw={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Lw,code(t,r){let{gen:e,data:n,$data:s,schema:o,schemaCode:l,it:f}=t,{opts:c,errSchemaPath:g,schemaEnv:h,self:$}=f;if(!c.validateFormats)return;s?k():x();function k(){let C=e.scopeValue("formats",{ref:$.formats,code:c.code.formats}),I=e.const("fDef",qt._`${C}[${l}]`),R=e.let("fType"),B=e.let("format");e.if(qt._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>e.assign(R,qt._`${I}.type || "string"`).assign(B,qt._`${I}.validate`),()=>e.assign(R,qt._`"string"`).assign(B,I)),t.fail$data(qt.or(X(),le()));function X(){return c.strict===!1?qt.nil:qt._`${l} && !${B}`}function le(){let be=h.$async?qt._`(${I}.async ? await ${B}(${n}) : ${B}(${n}))`:qt._`${B}(${n})`,he=qt._`(typeof ${B} == "function" ? ${be} : ${B}.test(${n}))`;return qt._`${B} && ${B} !== true && ${R} === ${r} && !${he}`}}function x(){let C=$.formats[o];if(!C){X();return}if(C===!0)return;let[I,R,B]=le(C);I===r&&t.pass(be());function X(){if(c.strict===!1){$.logger.warn(he());return}throw new Error(he());function he(){return`unknown format "${o}" ignored in schema at path "${g}"`}}function le(he){let Y=e.scopeValue("formats",{key:o,ref:he,code:c.code.formats?qt._`${c.code.formats}${qt.getProperty(o)}`:void 0});return typeof he=="object"&&!(he instanceof RegExp)?[he.type||"string",he.validate,qt._`${Y}.validate`]:["string",he,Y]}function be(){if(typeof C=="object"&&!(C instanceof RegExp)&&C.async){if(!h.$async)throw new Error("async format in sync schema");return qt._`await ${B}(${n})`}return typeof R=="function"?qt._`${B}(${n})`:qt._`${B}.test(${n})`}}}};Su.default=jw});var fd=we(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var Bw=ud(),Mw=[Bw.default];Pu.default=Mw});var cd=we(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.contentVocabulary=cs.metadataVocabulary=void 0;cs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];cs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var dd=we(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var zw=Sp(),Vw=Bp(),Hw=ld(),Uw=fd(),pd=cd(),Gw=[zw.default,Vw.default,Hw.default,Uw.default,pd.metadataVocabulary,pd.contentVocabulary];Tu.default=Gw});var md=we((Ix,Kw)=>{Kw.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var gd=we(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.CodeGen=er.Name=er.nil=er.stringify=er.str=er._=er.KeywordCxt=void 0;var Ww=Vs();er.KeywordCxt=Ww.default;var ps=ze();Object.defineProperty(er,"_",{enumerable:!0,get:function(){return ps._}});Object.defineProperty(er,"str",{enumerable:!0,get:function(){return ps.str}});Object.defineProperty(er,"stringify",{enumerable:!0,get:function(){return ps.stringify}});Object.defineProperty(er,"nil",{enumerable:!0,get:function(){return ps.nil}});Object.defineProperty(er,"Name",{enumerable:!0,get:function(){return ps.Name}});Object.defineProperty(er,"CodeGen",{enumerable:!0,get:function(){return ps.CodeGen}});var Zw=vp(),Jw=dd(),hd=md(),Qw=["/properties"],fa="http://json-schema.org/draft-07/schema",Fu=class extends Zw.default{_addVocabularies(){super._addVocabularies(),Jw.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(hd,Qw):hd;this.addMetaSchema(r,fa,!1),this.refs["http://json-schema.org/schema"]=fa}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(fa)?fa:void 0)}};er.default=Fu});var bd=we((Nx,yd)=>{var Xw=Object.prototype.hasOwnProperty,Yw=Object.prototype.toString;yd.exports=function(r,e,n){if(Yw.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var s=r.length;if(s===+s)for(var o=0;o<s;o++)e.call(n,r[o],o,r);else for(var l in r)Xw.call(r,l)&&e.call(n,r[l],l,r)}});var wd=we((Rx,$d)=>{"use strict";var ek=bd();$d.exports=yt;function yt(t,r,e){if(arguments.length===3)return yt.set(t,r,e);if(arguments.length===2)return yt.get(t,r);var n=yt.bind(yt,t);for(var s in yt)yt.hasOwnProperty(s)&&(n[s]=yt[s].bind(n,t));return n}yt.get=function(r,e){for(var n=Array.isArray(e)?e:yt.parse(e),s=0;s<n.length;++s){var o=n[s];if(!(typeof r=="object"&&o in r))throw new Error("Invalid reference token: "+o);r=r[o]}return r};yt.set=function(r,e,n){var s=Array.isArray(e)?e:yt.parse(e),o=s[0];if(s.length===0)throw Error("Can not set the root object");for(var l=0;l<s.length-1;++l){var f=s[l];f==="__proto__"||f==="constructor"||f==="prototype"||(f==="-"&&Array.isArray(r)&&(f=r.length),o=s[l+1],f in r||(o.match(/^(\d+|-)$/)?r[f]=[]:r[f]={}),r=r[f])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=n,this};yt.remove=function(t,r){var e=Array.isArray(r)?r:yt.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var s=yt.get(t,e.slice(0,-1));if(Array.isArray(s)){var o=+n;if(n===""&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(s,o,1)}else delete s[n]};yt.dict=function(r,e){var n={};return yt.walk(r,function(s,o){n[o]=s},e),n};yt.walk=function(r,e,n){var s=[];n=n||function(o){var l=Object.prototype.toString.call(o);return l==="[object Object]"||l==="[object Array]"},function o(l){ek(l,function(f,c){s.push(String(c)),n(f)?o(f):e(f,yt.compile(s)),s.pop()})}(r)};yt.has=function(r,e){try{yt.get(r,e)}catch{return!1}return!0};yt.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};yt.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};yt.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(yt.unescape)};yt.compile=function(r){return r.length===0?"":"/"+r.map(yt.escape).join("/")}});var kd=we((Dx,tk)=>{tk.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var vd=we((qx,rk)=>{rk.exports={$ref:"#/definitions/AstTree",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},folded:{type:"boolean"},foldedLevels:{type:"object",additionalProperties:!1,patternProperties:{"^[0-9]+$":{type:"boolean"}}},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var xd=we((Lx,nk)=>{nk.exports={$ref:"#/definitions/RootBlock",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},folded:{type:"boolean"},foldedLevels:{type:"object",additionalProperties:!1,patternProperties:{"^[0-9]+$":{type:"boolean"}}},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var Cd=we(ca=>{ca.Test=kd();ca.AstTree=vd();ca.PodliteDocument=xd()});var Bu=we((mC,Dd)=>{"use strict";function fk(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Pi(t,r,e,n){this.message=t,this.expected=r,this.found=e,this.location=n,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Pi)}fk(Pi,Error);Pi.buildMessage=function(t,r){var e={literal:function(g){return'"'+s(g.text)+'"'},class:function(g){var h="",$;for($=0;$<g.parts.length;$++)h+=g.parts[$]instanceof Array?o(g.parts[$][0])+"-"+o(g.parts[$][1]):o(g.parts[$]);return"["+(g.inverted?"^":"")+h+"]"},any:function(g){return"any character"},end:function(g){return"end of input"},other:function(g){return g.description}};function n(g){return g.charCodeAt(0).toString(16).toUpperCase()}function s(g){return g.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function o(g){return g.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function l(g){return e[g.type](g)}function f(g){var h=new Array(g.length),$,k;for($=0;$<g.length;$++)h[$]=l(g[$]);if(h.sort(),h.length>0){for($=1,k=1;$<h.length;$++)h[$-1]!==h[$]&&(h[k]=h[$],k++);h.length=k}switch(h.length){case 1:return h[0];case 2:return h[0]+" or "+h[1];default:return h.slice(0,-1).join(", ")+", or "+h[h.length-1]}}function c(g){return g?'"'+s(g)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function ck(t,r){r=r!==void 0?r:{};var e={},n={Document:tc,attributesOnly:Vh},s=tc,o=function(u){return u},l=function(u){return u},f=function(){return!!r.podMode},c=function(u){return u},g=ee(),h=function(){return{text:O(),type:"ambient",location:L()}},$=/^[ \xA0\u2001\t\f\u2008]/,k=P([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),x=/^[ \t\f]/,C=P([" "," ","\f"],!1,!1),I=/^[\n\r]/,R=P([`
9
9
  `,"\r"],!1,!1),B=function(u){return u},X=/^[^\n\r]/,le=P([`
10
- `,"\r"],!0,!1),$e=`
10
+ `,"\r"],!0,!1),be=`
11
11
  `,he=K(`
12
- `,!1),Y="\r",pe=K("\r",!1),ve=function(){return{type:"blankline"}},ke="=begin ",Le=K("=begin ",!1),Te="=end ",Fe=K("=end ",!1),ge="=for ",Pe=K("=for ",!1),Qe="=config",ne=K("=config",!1),$t="=alias",Xe=K("=alias",!1),wt=function(u){return rg(u)},nt=function(u){return u},z="=",H=K("=",!1),dr=M("text"),Lt=function(){return O()},kt=function(){return{type:"para",value:O(),error:!0,location:L()}},Tt=function(u,p){return Xi([u,p])},Ft=function(u){return[u]},ut=",",tr=K(",",!1),Vt=function(u,p){return Xi([u,p])},vr=/^[a-zA-Z0-9]/,Rr=P([["a","z"],["A","Z"],["0","9"]],!1,!1),xr=/^[a-zA-Z0-9_\-]/,jt=P([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Sn="=>",Pn=K("=>",!1),Tn=function(u,p){return{[u]:p}},Ce=function(u,p){return{...u,...p}},Hn=function(u){return u},Nr=":",Ee=K(":",!1),Re="allow",At=K("allow",!1),ht="<",mr=K("<",!1),Ne=">",_e=K(">",!1),te=function(u,p){return{value:p,type:"array"}},ce=function(u,p){return{name:"allow",...p}},Ae=function(u){return u},Be=function(u){return u},Ye=function(u){return[u]},Pt=function(){return[]},it=/^[!]/,vt=P(["!"],!1,!1),It="{",Xr=K("{",!1),gt="}",Fn=K("}",!1),hr=function(u,p,y){return{value:y,type:"map"}},si="[",oi=K("[",!1),Dr=function(u,p,y){return y},mn="]",Un=K("]",!1),ks=function(u,p){return[O()]},Gn=function(u,p,y){return{value:y,type:"array"}},ai=function(u,p,y){return{value:y,type:"array"}},ji=function(u,p,y){return{value:y,type:"string"}},In="(",Kn=K("(",!1),Bi=function(u,p,y){return y.length>1?{type:"array",value:y}:{type:"value",value:y[0]}},V=")",R=K(")",!1),J=function(u,p){return{value:O()}},re=function(u,p,y){return{type:"value",...y}},se=function(u,p){return{value:!u,type:"boolean"}},we=function(u,p,y){return{name:p,...y}},Se=function(u,p){return p},je=function(u,p){return Xi([...u,...p])},We=/^[^'"]/,bt=P(["'",'"'],!0,!1),De=function(u){return u},at=/^[0-9]/,ft=P([["0","9"]],!1,!1),lt=/^[\-+]/,Ge=P(["-","+"],!1,!1),ct="True",et=K("True",!1),Mr=function(){return!0},Bt="False",rr=K("False",!1),st=function(){return!1},Ht=".",Zt=K(".",!1),Cr=/^[eE]/,Yr=P(["e","E"],!1,!1),Ar=/^["]/,hn=P(['"'],!1,!1),On=/^[^"]/,Rn=P(['"'],!0,!1),en=/^[']/,tn=P(["'"],!1,!1),Mt=/^[^']/,Er=P(["'"],!0,!1),gn=function(u){return parseFloat(u)},zr=function(u){return parseInt(u,10)},Mi=function(u,p,y){return p.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||Oo(p)},li=function(u,p,y,w,_){return u.length===w.length&&p===_},i=function(u,p,y,w,_){return ng(u,`${w}${_}`)},ue=function(u,p,y,w,_,E){return p===E},Vr=function(u,p,y,w,_,E){return{type:"block",content:w===""?[]:[{type:"verbatim",value:w.join("")}],name:p,margin:u}},Jt=function(u,p,y,w,_,E){return!0},rn=function(u,p,y,w,_,E){return{...E,text:O(),config:y,location:L()}},v=/^[\-+=_|]/,yn=P(["-","+","=","_","|"],!1,!1),Nn=function(){return{type:"separator",text:O()}},Hr=function(){return r.isDelimited},Dn=function(){return{type:"separator",text:O()}},zi=function(u){return{name:"row",type:"text",value:u}},Me=function(){return r.separators=[],!0},Ut=function(u,p){return r.separators.push(p.text),p},vs=function(u,p,y,w){return r.separators.push(w.text),w},nn=function(u,p,y,w){return[{name:"row",type:"text",value:y},w]},bn=function(u,p,y){return[y]},ui=function(u,p,y){return r.separators.length>1?!r.separators.every(w=>w===r.separators[0]):!0},qn=function(u,p,y){return[{name:"head",type:"text",value:u},p,...Xi(y)]},W=function(u,p){return[{name:"row",type:"text",value:u},p]},xs=function(u){return[...Xi(u)]},Vi=function(u,p,y){return p==="table"},Cs=function(u,p,y){return r.isDelimited=!0,!0},fi=function(u,p,y,w){return w},bo=function(u,p,y,w){return w.some(_=>_&&(_.name==="row"||_.name==="cell"))},ja=function(u,p,y,w,_,E){return{type:"block",content:w,name:p,margin:u}},Hi=function(u,p,y,w,_,E){return{...E,text:O(),config:y,location:L()}},sn=function(u,p,y){return r.isDelimited=!0,!0},$o=function(u,p,y,w){return w},wo=function(u,p,y,w,_,E){return{type:"block",content:w,name:p,margin:u}},Ba=function(u,p,y,w,_,E){return{...E,text:O(),config:y,location:L()}},ko=function(u,p,y,w){return w},vo=function(u,p,y,w,_){let E=p.match(/pod|nested|item|code|defn/)&&w.length-u.length>0?"code":"para";return{text:_,margin:w,type:E,content:[{type:E==="code"?"verbatim":"text",value:_}],location:L()}},Ma=function(u,p,y,w,_,E){return{type:"block",content:w,name:p,margin:u}},za=function(u,p,y,w,_,E){return{...E,config:y,location:L()}},xo=function(){return{text:O(),type:"para",margin:"",content:[{type:"text",value:O()}],location:L()}},Ln=function(){return{empty:1}},zt=/^[s]/,Wn=P(["s"],!1,!1),ci=function(u){return{text:O(),type:"ambient1"}},qr=function(u,p){return p.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||Oo(p)},Va=function(u,p,y){return{margin:u,type:"block",content:y===""?[]:[{type:"verbatim",value:y}],name:p,config:[],location:L()}},Co=function(u,p){return p==="table"},$n=function(u,p){return r.isDelimited=!1,!0},pi=function(u,p,y){return{margin:u,type:"block",content:y===""?[]:y,name:p,config:[],location:L()}},Ui=function(u,p,y,w){let _=(y===`
13
- `?"":y)+w;return{margin:u,type:"block",content:_===""?[]:[{type:"para",text:_,margin:"",content:[{type:"text",value:_}],location:L()}],name:p,location:L()}},Gi="= ",Ao=K("= ",!1),Ha=function(u,p,y,w){return{name:y,type:"alias",replacement:w,margin:u}},Ua=/^[A-Z]/,Ga=P([["A","Z"]],!1,!1),Eo="<>",_o=K("<>",!1),So=function(u,p,y,w){return{name:y,type:"config",config:w,margin:u}},Po="=boundary",As=K("=boundary",!1),Et=function(u,p,y){return{name:"boundary",type:"block",content:[],config:y,margin:u,location:L()}},qe=function(u,p,y,w){return y.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||Oo(y)},Ki=function(u,p,y,w,_){return{type:"block",content:_===""?[]:[{type:"verbatim",value:_}],name:y,margin:u,config:w,location:L()}},Xf=function(u,p,y,w){return y==="table"},nr=function(u,p,y,w){return r.isDelimited=!1,!0},wn=function(u,p,y,w,_){return{type:"block",content:_===""?[]:_,name:y,margin:u,config:w,location:L()}},pt=function(u,p,y,w,_){return{type:"block",content:_===""?[]:[{type:"para",content:[{type:"text",value:_}],margin:u,text:_,location:L()}],name:y,margin:u,config:w,location:L()}},Ka=/^[a-zA-Z]/,Wa=P([["a","z"],["A","Z"]],!1,!1),Za=M("whitespace"),Wi=/^[\r\n \t\f]/,Zi=P(["\r",`
14
- `," "," ","\f"],!1,!1),Ja=M("space characters"),a=0,oe=0,d=[{line:1,column:1}],b=0,S=[],m=0,A;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=n[r.startRule]}function O(){return t.substring(oe,a)}function L(){return Es(oe,a)}function T(u,p){throw p=p!==void 0?p:Es(oe,a),Yf([M(u)],t.substring(oe,a),p)}function q(u,p){throw p=p!==void 0?p:Es(oe,a),Hh(u,p)}function K(u,p){return{type:"literal",text:u,ignoreCase:p}}function P(u,p,y){return{type:"class",parts:u,inverted:p,ignoreCase:y}}function ee(){return{type:"any"}}function U(){return{type:"end"}}function M(u){return{type:"other",description:u}}function Z(u){var p=d[u],y;if(p)return p;for(y=u-1;!d[y];)y--;for(p=d[y],p={line:p.line,column:p.column};y<u;)t.charCodeAt(y)===10?(p.line++,p.column=1):p.column++,y++;return d[u]=p,p}function Es(u,p){var y=Z(u),w=Z(p);return{start:{offset:u,line:y.line,column:y.column},end:{offset:p,line:w.line,column:w.column}}}function ae(u){a<b||(a>b&&(b=a,S=[]),S.push(u))}function Hh(u,p){return new Pi(u,null,null,p)}function Yf(u,p,y){return new Pi(Pi.buildMessage(u,p),u,p,y)}function ec(){var u,p,y;for(u=a,p=[],y=tc();y!==e;)p.push(y),y=tc();return p!==e&&(oe=u,p=o(p)),u=p,u}function Uh(){var u,p,y,w;if(u=a,p=ye(),p!==e){for(y=[],w=Jn();w!==e;)y.push(w),w=Jn();y!==e?(w=ye(),w!==e?(oe=u,p=l(y),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u}function tc(){var u,p,y,w,_,E,G,Q;if(u=Ps(),u===e&&(u=Xh(),u===e&&(u=Xa(),u===e&&(u=Ts(),u===e&&(u=Os(),u===e&&(u=nl(),u===e&&(u=Rs(),u===e&&(u=el(),u===e&&(u=tl(),u===e&&(u=rl(),u===e&&(u=Fs(),u===e&&(u=Ya(),u===e&&(u=Is(),u===e&&(u=a,oe=a,p=f(),p?p=void 0:p=e,p!==e?(y=Yh(),y===e&&(y=Ur(),y===e&&(y=Kh())),y!==e?(oe=u,p=c(y),u=p):(a=u,u=e)):(a=u,u=e),u===e)))))))))))))){if(u=a,p=a,y=[],w=a,_=a,m++,E=a,G=jn(),G!==e?(Q=Gt(),Q!==e?(G=[G,Q],E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=gi()),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e),w!==e)for(;w!==e;)y.push(w),w=a,_=a,m++,E=a,G=jn(),G!==e?(Q=Gt(),Q!==e?(G=[G,Q],E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=gi()),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e);else y=e;y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=h()),u=p}return u}function Nt(){var u;return $.test(t.charAt(a))?(u=t.charAt(a),a++):(u=e,m===0&&ae(k)),u}function ye(){var u,p;for(u=[],x.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(C));p!==e;)u.push(p),x.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(C));return u}function Zn(){var u,p,y,w;for(u=a,p=a,y=[],w=Nt();w!==e;)y.push(w),w=Nt();return y!==e?(I.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(N)),w!==e?(y=[y,w],p=y):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p,u}function C1(){var u,p,y,w;if(u=a,p=a,y=[],w=_s(),w!==e)for(;w!==e;)y.push(w),w=_s();else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e?(y=mi(),y!==e?(oe=u,p=B(p),u=p):(a=u,u=e)):(a=u,u=e),u}function _s(){var u;return X.test(t.charAt(a))?(u=t.charAt(a),a++):(u=e,m===0&&ae(le)),u}function di(){var u,p,y;return t.charCodeAt(a)===10?(u=$e,a++):(u=e,m===0&&ae(he)),u===e&&(u=a,t.charCodeAt(a)===13?(p=Y,a++):(p=e,m===0&&ae(pe)),p!==e?(t.charCodeAt(a)===10?(y=$e,a++):(y=e,m===0&&ae(he)),y===e&&(y=null),y!==e?(p=[p,y],u=p):(a=u,u=e)):(a=u,u=e)),u}function mi(){var u,p;return u=di(),u===e&&(u=a,m++,t.length>a?(p=t.charAt(a),a++):(p=e,m===0&&ae(g)),m--,p===e?u=void 0:(a=u,u=e)),u}function Lr(){var u,p,y,w;for(u=a,p=a,y=[],w=Nt();w!==e;)y.push(w),w=Nt();return y!==e?(I.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(N)),w!==e?(y=[y,w],p=y):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p,u}function Ur(){var u,p,y,w,_;for(u=a,p=a,y=a,w=[],_=Nt();_!==e;)w.push(_),_=Nt();return w!==e?(I.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(N)),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e),y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=ve()),u=p,u}function Ss(){var u;return t.substr(a,7)===ke?(u=ke,a+=7):(u=e,m===0&&ae(Le)),u}function hi(){var u;return t.substr(a,5)===Te?(u=Te,a+=5):(u=e,m===0&&ae(Fe)),u}function To(){var u;return t.substr(a,5)===ge?(u=ge,a+=5):(u=e,m===0&&ae(Pe)),u}function rc(){var u;return t.substr(a,7)===Qe?(u=Qe,a+=7):(u=e,m===0&&ae(ne)),u}function nc(){var u;return t.substr(a,6)===$t?(u=$t,a+=6):(u=e,m===0&&ae(Xe)),u}function Gt(){var u,p,y;return u=a,p=il(),p!==e?(oe=a,y=wt(p),y?y=void 0:y=e,y!==e?(oe=u,p=nt(p),u=p):(a=u,u=e)):(a=u,u=e),u}function gi(){var u,p,y;return u=a,t.charCodeAt(a)===61?(p=z,a++):(p=e,m===0&&ae(H)),p!==e?(y=Gt(),y!==e?(oe=u,p=nt(y),u=p):(a=u,u=e)):(a=u,u=e),u}function jn(){var u;return u=Ss(),u===e&&(u=hi(),u===e&&(u=To(),u===e&&(u=rc(),u===e&&(u=nc())))),u}function Gr(){var u,p,y;if(m++,u=a,p=[],y=_s(),y!==e)for(;y!==e;)p.push(y),y=_s();else p=e;return p!==e?u=t.substring(u,a):u=p,m--,u===e&&(p=e,m===0&&ae(dr)),u}function Qt(){var u,p,y,w,_,E,G;if(u=a,p=a,m++,y=a,w=ye(),w!==e?(_=rc(),_===e&&(_=nc(),_===e&&(_=a,E=jn(),E!==e?(G=Gt(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_===e&&(_=gi()))),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e),y===e&&(y=Ur()),m--,y===e?p=void 0:(a=p,p=e),p!==e){if(y=a,w=[],_=Gr(),_!==e)for(;_!==e;)w.push(_),_=Gr();else w=e;w!==e?y=t.substring(y,a):y=w,y!==e?(w=mi(),w!==e?(oe=u,p=Lt(),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u}function Gh(){var u,p,y,w;if(u=a,p=a,y=[],w=Gr(),w!==e)for(;w!==e;)y.push(w),w=Gr();else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e?(y=mi(),y!==e?(oe=u,p=Lt(),u=p):(a=u,u=e)):(a=u,u=e),u}function Kh(){var u,p,y,w,_,E;if(u=a,p=a,y=[],w=a,_=a,m++,E=mi(),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e),w!==e)for(;w!==e;)y.push(w),w=a,_=a,m++,E=mi(),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e);else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e?(y=mi(),y!==e?(oe=u,p=kt(),u=p):(a=u,u=e)):(a=u,u=e),u}function ic(){var u,p,y,w;if(u=a,p=sc(),p!==e){if(y=[],w=Nt(),w!==e)for(;w!==e;)y.push(w),w=Nt();else y=e;y!==e?(w=ic(),w!==e?(oe=u,p=Tt(p,w),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u===e&&(u=a,p=sc(),p!==e&&(oe=u,p=Ft(p)),u=p),u}function sc(){var u,p;return u=a,p=_s(),p!==e?u=t.substring(u,a):u=p,u}function Fo(){var u,p,y,w,_,E;if(u=a,p=Ji(),p!==e){if(y=[],w=Nt(),w!==e)for(;w!==e;)y.push(w),w=Nt();else y=e;y===e&&(y=a,w=ye(),w!==e?(t.charCodeAt(a)===44?(_=ut,a++):(_=e,m===0&&ae(tr)),_!==e?(E=ye(),E!==e?(w=[w,_,E],y=w):(a=y,y=e)):(a=y,y=e)):(a=y,y=e)),y!==e?(w=Fo(),w!==e?(oe=u,p=Vt(p,w),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u===e&&(u=a,p=Ji(),p!==e&&(oe=u,p=Ft(p)),u=p),u}function Wh(){var u,p,y,w,_;if(u=a,p=a,y=[],vr.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Rr)),w!==e)for(;w!==e;)y.push(w),vr.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Rr));else y=e;if(y!==e){for(w=[],xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));_!==e;)w.push(_),xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));w!==e?(y=[y,w],p=y):(a=p,p=e)}else a=p,p=e;return p!==e?u=t.substring(u,a):u=p,u}function oc(){var u,p,y,w,_,E;return u=a,p=Wh(),p!==e?(y=ye(),y!==e?(t.charCodeAt(a)===44?(w=ut,a++):(w=e,m===0&&ae(tr)),w===e&&(t.substr(a,2)===Sn?(w=Sn,a+=2):(w=e,m===0&&ae(Pn))),w!==e?(_=ye(),_!==e?(E=Ji(),E!==e?(oe=u,p=Tn(p,E),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function ac(){var u,p,y,w,_,E;return u=a,p=oc(),p!==e?(y=ye(),y!==e?(t.charCodeAt(a)===44?(w=ut,a++):(w=e,m===0&&ae(tr)),w!==e?(_=ye(),_!==e?(E=ac(),E!==e?(oe=u,p=Ce(p,E),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u===e&&(u=a,p=oc(),p!==e&&(oe=u,p=Hn(p)),u=p),u}function Zh(){var u,p,y,w,_,E,G,Q,F,D;return u=a,p=ye(),p!==e?(t.charCodeAt(a)===58?(y=Nr,a++):(y=e,m===0&&ae(Ee)),y!==e?(t.substr(a,5)===Re?(w=Re,a+=5):(w=e,m===0&&ae(At)),w!==e?(_=a,t.charCodeAt(a)===60?(E=ht,a++):(E=e,m===0&&ae(mr)),E!==e?(G=ye(),G!==e?(Q=ic(),Q!==e?(F=ye(),F!==e?(t.charCodeAt(a)===62?(D=Ne,a++):(D=e,m===0&&ae(_e)),D!==e?(oe=_,E=te(w,Q),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)):(a=_,_=e),_!==e?(E=ye(),E!==e?(oe=u,p=ce(w,_),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function A1(){var u,p,y,w,_,E;for(u=a,p=[],y=a,w=ye(),w!==e?(_=Ji(),_!==e?(E=ye(),E!==e?(oe=y,w=Ae(_),y=w):(a=y,y=e)):(a=y,y=e)):(a=y,y=e);y!==e;)p.push(y),y=a,w=ye(),w!==e?(_=Ji(),_!==e?(E=ye(),E!==e?(oe=y,w=Ae(_),y=w):(a=y,y=e)):(a=y,y=e)):(a=y,y=e);return p!==e&&(oe=u,p=Be(p)),u=p,u===e&&(u=a,p=Ji(),p!==e&&(oe=u,p=Ye(p)),u=p,u===e&&(u=a,p=ye(),p!==e&&(oe=u,p=Pt()),u=p)),u}function Jn(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me;if(u=Zh(),u===e)if(u=a,p=ye(),p!==e)if(t.charCodeAt(a)===58?(y=Nr,a++):(y=e,m===0&&ae(Ee)),y!==e)if(it.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(vt)),w===e&&(w=null),w!==e)if(_=il(),_!==e){if(E=a,t.charCodeAt(a)===123?(G=It,a++):(G=e,m===0&&ae(Xr)),G!==e?(Q=ye(),Q!==e?(F=ac(),F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===125?(j=gt,a++):(j=e,m===0&&ae(Fn)),j!==e?(oe=E,G=hr(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e),E===e){if(E=a,t.charCodeAt(a)===91?(G=si,a++):(G=e,m===0&&ae(oi)),G!==e)if(Q=ye(),Q!==e){if(F=a,D=Fo(),D!==e&&(oe=F,D=Dr(w,_,D)),F=D,F===e){if(F=a,D=a,j=[],ie=a,fe=a,m++,t.charCodeAt(a)===93?(me=mn,a++):(me=e,m===0&&ae(Un)),me===e&&(t.charCodeAt(a)===91?(me=si,a++):(me=e,m===0&&ae(oi))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e),ie!==e)for(;ie!==e;)j.push(ie),ie=a,fe=a,m++,t.charCodeAt(a)===93?(me=mn,a++):(me=e,m===0&&ae(Un)),me===e&&(t.charCodeAt(a)===91?(me=si,a++):(me=e,m===0&&ae(oi))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e);else j=e;j!==e?D=t.substring(D,a):D=j,D!==e&&(oe=F,D=ks(w,_)),F=D}F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===93?(j=mn,a++):(j=e,m===0&&ae(Un)),j!==e?(oe=E,G=Gn(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)}else a=E,E=e;else a=E,E=e;if(E===e&&(E=a,t.charCodeAt(a)===60?(G=ht,a++):(G=e,m===0&&ae(mr)),G!==e?(Q=ye(),Q!==e?(F=Fo(),F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===62?(j=Ne,a++):(j=e,m===0&&ae(_e)),j!==e?(oe=E,G=ai(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e),E===e)){if(E=a,t.charCodeAt(a)===60?(G=ht,a++):(G=e,m===0&&ae(mr)),G!==e)if(Q=ye(),Q!==e){if(F=a,D=[],j=a,ie=a,m++,t.charCodeAt(a)===60?(fe=ht,a++):(fe=e,m===0&&ae(mr)),fe===e&&(t.charCodeAt(a)===62?(fe=Ne,a++):(fe=e,m===0&&ae(_e))),m--,fe===e?ie=void 0:(a=ie,ie=e),ie!==e?(t.length>a?(fe=t.charAt(a),a++):(fe=e,m===0&&ae(g)),fe!==e?(ie=[ie,fe],j=ie):(a=j,j=e)):(a=j,j=e),j!==e)for(;j!==e;)D.push(j),j=a,ie=a,m++,t.charCodeAt(a)===60?(fe=ht,a++):(fe=e,m===0&&ae(mr)),fe===e&&(t.charCodeAt(a)===62?(fe=Ne,a++):(fe=e,m===0&&ae(_e))),m--,fe===e?ie=void 0:(a=ie,ie=e),ie!==e?(t.length>a?(fe=t.charAt(a),a++):(fe=e,m===0&&ae(g)),fe!==e?(ie=[ie,fe],j=ie):(a=j,j=e)):(a=j,j=e);else D=e;D!==e?F=t.substring(F,a):F=D,F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===62?(j=Ne,a++):(j=e,m===0&&ae(_e)),j!==e?(oe=E,G=ji(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)}else a=E,E=e;else a=E,E=e;if(E===e){if(E=a,t.charCodeAt(a)===40?(G=In,a++):(G=e,m===0&&ae(Kn)),G!==e)if(Q=ye(),Q!==e){if(F=a,D=Fo(),D!==e&&(oe=F,D=Bi(w,_,D)),F=D,F===e){if(F=a,D=a,j=[],ie=a,fe=a,m++,t.charCodeAt(a)===41?(me=V,a++):(me=e,m===0&&ae(R)),me===e&&(t.charCodeAt(a)===40?(me=In,a++):(me=e,m===0&&ae(Kn))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e),ie!==e)for(;ie!==e;)j.push(ie),ie=a,fe=a,m++,t.charCodeAt(a)===41?(me=V,a++):(me=e,m===0&&ae(R)),me===e&&(t.charCodeAt(a)===40?(me=In,a++):(me=e,m===0&&ae(Kn))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e);else j=e;j!==e?D=t.substring(D,a):D=j,D!==e&&(oe=F,D=J(w,_)),F=D}F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===41?(j=V,a++):(j=e,m===0&&ae(R)),j!==e?(oe=E,G=re(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)}else a=E,E=e;else a=E,E=e;E===e&&(E=a,G=ye(),G!==e&&(oe=E,G=se(w,_)),E=G)}}}E!==e?(G=ye(),G!==e?(oe=u,p=we(w,_,E),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Bn(){var u,p,y,w,_,E,G,Q,F,D;for(u=a,p=[],y=Jn();y!==e;)p.push(y),y=Jn();if(p!==e)if(y=di(),y!==e){if(w=[],_=a,t.charCodeAt(a)===61?(E=z,a++):(E=e,m===0&&ae(H)),E!==e)if(G=ye(),G!==e){if(Q=[],F=Jn(),F!==e)for(;F!==e;)Q.push(F),F=Jn();else Q=e;Q!==e?(F=ye(),F!==e?(D=di(),D!==e?(oe=_,E=Se(p,Q),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;for(;_!==e;)if(w.push(_),_=a,t.charCodeAt(a)===61?(E=z,a++):(E=e,m===0&&ae(H)),E!==e)if(G=ye(),G!==e){if(Q=[],F=Jn(),F!==e)for(;F!==e;)Q.push(F),F=Jn();else Q=e;Q!==e?(F=ye(),F!==e?(D=di(),D!==e?(oe=_,E=Se(p,Q),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;w!==e?(oe=u,p=je(p,w),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;return u}function E1(){var u,p,y,w;if(u=a,p=a,y=[],We.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(bt)),w!==e)for(;w!==e;)y.push(w),We.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(bt));else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=De(p)),u=p,u}function lc(){var u,p,y;if(u=a,p=[],at.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(ft)),y!==e)for(;y!==e;)p.push(y),at.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(ft));else p=e;return p!==e?u=t.substring(u,a):u=p,u}function Io(){var u,p,y,w,_;if(u=a,p=a,lt.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(Ge)),y===e&&(y=null),y!==e){if(w=[],at.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(ft)),_!==e)for(;_!==e;)w.push(_),at.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(ft));else w=e;w!==e?(y=[y,w],p=y):(a=p,p=e)}else a=p,p=e;return p!==e?u=t.substring(u,a):u=p,u}function Jh(){var u,p;return u=a,t.substr(a,4)===ct?(p=ct,a+=4):(p=e,m===0&&ae(et)),p!==e&&(oe=u,p=Mr()),u=p,u===e&&(u=a,t.substr(a,5)===Bt?(p=Bt,a+=5):(p=e,m===0&&ae(rr)),p!==e&&(oe=u,p=st()),u=p),u}function Qh(){var u,p,y,w,_,E;return u=a,p=a,y=Io(),y!==e?(w=a,t.charCodeAt(a)===46?(_=Ht,a++):(_=e,m===0&&ae(Zt)),_!==e?(E=lc(),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e),w===e&&(w=null),w!==e?(Cr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Yr)),_!==e?(E=Io(),E!==e?(y=[y,w,_,E],p=y):(a=p,p=e)):(a=p,p=e)):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p,u===e&&(u=a,p=a,y=Io(),y!==e?(t.charCodeAt(a)===46?(w=Ht,a++):(w=e,m===0&&ae(Zt)),w!==e?(_=lc(),_!==e?(y=[y,w,_],p=y):(a=p,p=e)):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p),u}function Ji(){var u,p,y,w,_;if(u=a,Ar.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(hn)),p!==e){for(y=a,w=[],On.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Rn));_!==e;)w.push(_),On.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Rn));w!==e?y=t.substring(y,a):y=w,y!==e?(Ar.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(hn)),w!==e?(oe=u,p=De(y),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;if(u===e){if(u=a,en.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(tn)),p!==e){for(y=a,w=[],Mt.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Er));_!==e;)w.push(_),Mt.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Er));w!==e?y=t.substring(y,a):y=w,y!==e?(en.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(tn)),w!==e?(oe=u,p=De(y),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;u===e&&(u=Jh(),u===e&&(u=a,p=Qh(),p!==e&&(oe=u,p=gn(p)),u=p,u===e&&(u=a,p=Io(),p!==e&&(oe=u,p=zr(p)),u=p)))}return u}function Ps(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me,ot,jr,Wr;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=Mi(p,w,E),G?G=void 0:G=e,G!==e){if(Q=[],F=a,D=a,j=ye(),j!==e?D=t.substring(D,a):D=j,D!==e?(j=a,ie=Zn(),ie===e&&(ie=a,fe=a,m++,me=jn(),m--,me===e?fe=void 0:(a=fe,fe=e),fe===e&&(fe=a,m++,me=a,ot=hi(),ot!==e?(jr=Gt(),jr!==e?(oe=a,Wr=li(p,w,E,D,jr),Wr?Wr=void 0:Wr=e,Wr!==e?(ot=[ot,jr,Wr],me=ot):(a=me,me=e)):(a=me,me=e)):(a=me,me=e),m--,me===e?fe=void 0:(a=fe,fe=e)),fe!==e?(me=Gr(),me!==e?(ot=Zn(),ot===e&&(ot=null),ot!==e?(fe=[fe,me,ot],ie=fe):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e)),ie!==e?j=t.substring(j,a):j=ie,j!==e?(oe=F,D=i(p,w,E,D,j),F=D):(a=F,F=e)):(a=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=a,D=a,j=ye(),j!==e?D=t.substring(D,a):D=j,D!==e?(j=a,ie=Zn(),ie===e&&(ie=a,fe=a,m++,me=jn(),m--,me===e?fe=void 0:(a=fe,fe=e),fe===e&&(fe=a,m++,me=a,ot=hi(),ot!==e?(jr=Gt(),jr!==e?(oe=a,Wr=li(p,w,E,D,jr),Wr?Wr=void 0:Wr=e,Wr!==e?(ot=[ot,jr,Wr],me=ot):(a=me,me=e)):(a=me,me=e)):(a=me,me=e),m--,me===e?fe=void 0:(a=fe,fe=e)),fe!==e?(me=Gr(),me!==e?(ot=Zn(),ot===e&&(ot=null),ot!==e?(fe=[fe,me,ot],ie=fe):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e)),ie!==e?j=t.substring(j,a):j=ie,j!==e?(oe=F,D=i(p,w,E,D,j),F=D):(a=F,F=e)):(a=F,F=e);else Q=e;Q!==e?(F=a,D=ye(),D!==e?F=t.substring(F,a):F=D,F!==e?(D=a,j=hi(),j!==e?(ie=Gt(),ie!==e?(oe=a,fe=ue(p,w,E,Q,F,ie),fe?fe=void 0:fe=e,fe!==e?(me=Zn(),me===e&&(me=null),me!==e?(oe=D,j=Vr(p,w,E,Q,F,ie),D=j):(a=D,D=e)):(a=D,D=e)):(a=D,D=e)):(a=D,D=e),D!==e?(oe=a,j=Jt(p,w,E,Q,F,D),j?j=void 0:j=e,j!==e?(oe=u,p=rn(p,w,E,Q,F,D),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Qi(){var u,p,y,w,_,E,G,Q,F;if(u=a,p=a,m++,y=a,w=ye(),w!==e?(_=jn(),_===e&&(_=gi()),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e),y===e&&(y=Ur()),m--,y===e?p=void 0:(a=p,p=e),p!==e){for(y=[],w=Nt();w!==e;)y.push(w),w=Nt();if(y!==e){if(w=a,_=[],E=a,v.test(t.charAt(a))?(G=t.charAt(a),a++):(G=e,m===0&&ae(yn)),G!==e){for(Q=[],F=Nt();F!==e;)Q.push(F),F=Nt();Q!==e?(G=[G,Q],E=G):(a=E,E=e)}else a=E,E=e;if(E!==e)for(;E!==e;)if(_.push(E),E=a,v.test(t.charAt(a))?(G=t.charAt(a),a++):(G=e,m===0&&ae(yn)),G!==e){for(Q=[],F=Nt();F!==e;)Q.push(F),F=Nt();Q!==e?(G=[G,Q],E=G):(a=E,E=e)}else a=E,E=e;else _=e;_!==e?w=t.substring(w,a):w=_,w!==e?(_=mi(),_!==e?(oe=u,p=Nn(),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e}else a=u,u=e;return u}function _r(){var u,p,y,w,_;return u=a,p=a,y=Qi(),y===e&&(y=a,oe=a,w=Hr(),w?w=void 0:w=e,w!==e?(_=Ur(),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e)),y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=Dn()),u=p,u}function Kr(){var u,p;return u=a,p=Qt(),p!==e&&(oe=u,p=zi(p)),u=p,u}function Qa(){var u,p,y,w,_,E,G,Q,F,D,j;if(u=a,oe=a,p=Me(),p?p=void 0:p=e,p!==e){if(y=a,w=[],_=a,E=a,m++,G=Qi(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_!==e)for(;_!==e;)w.push(_),_=a,E=a,m++,G=Qi(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e);else w=e;if(w!==e?y=t.substring(y,a):y=w,y!==e)if(w=a,_=Qi(),_!==e&&(oe=w,_=Ut(y,_)),w=_,w!==e){if(_=[],E=a,G=a,Q=[],F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);else Q=e;if(Q!==e?G=t.substring(G,a):G=Q,G!==e?(Q=a,F=_r(),F!==e&&(oe=Q,F=vs(y,w,G,F)),Q=F,Q!==e?(oe=E,G=nn(y,w,G,Q),E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=a,G=a,m++,Q=Qi(),m--,Q===e?G=void 0:(a=G,G=e),G!==e?(Q=a,m++,F=_r(),m--,F===e?Q=void 0:(a=Q,Q=e),Q!==e?(F=Kr(),F!==e?(oe=E,G=bn(y,w,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)),E!==e)for(;E!==e;){if(_.push(E),E=a,G=a,Q=[],F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);else Q=e;Q!==e?G=t.substring(G,a):G=Q,G!==e?(Q=a,F=_r(),F!==e&&(oe=Q,F=vs(y,w,G,F)),Q=F,Q!==e?(oe=E,G=nn(y,w,G,Q),E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=a,G=a,m++,Q=Qi(),m--,Q===e?G=void 0:(a=G,G=e),G!==e?(Q=a,m++,F=_r(),m--,F===e?Q=void 0:(a=Q,Q=e),Q!==e?(F=Kr(),F!==e?(oe=E,G=bn(y,w,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e))}else _=e;_!==e?(oe=a,E=ui(y,w,_),E?E=void 0:E=e,E!==e?(oe=u,p=qn(y,w,_),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e}else a=u,u=e;if(u===e){if(u=a,p=[],y=a,w=a,_=a,E=a,m++,G=_r(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_!==e?w=t.substring(w,a):w=_,w!==e){for(_=[],E=_r();E!==e;)_.push(E),E=_r();_!==e?(oe=y,w=W(w,_),y=w):(a=y,y=e)}else a=y,y=e;if(y!==e)for(;y!==e;)if(p.push(y),y=a,w=a,_=a,E=a,m++,G=_r(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_!==e?w=t.substring(w,a):w=_,w!==e){for(_=[],E=_r();E!==e;)_.push(E),E=_r();_!==e?(oe=y,w=W(w,_),y=w):(a=y,y=e)}else a=y,y=e;else p=e;if(p!==e&&(oe=u,p=xs(p)),u=p,u===e)if(u=[],p=Kr(),p!==e)for(;p!==e;)u.push(p),p=Kr();else u=e}return u}function Xh(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me,ot,jr;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=Vi(p,w,E),G?G=void 0:G=e,G!==e)if(oe=a,Q=Cs(p,w,E),Q?Q=void 0:Q=e,Q!==e){for(F=a,D=[],j=Ur(),j===e&&(j=Ps(),j===e&&(j=Ts(),j===e&&(j=Os(),j===e&&(j=Rs(),j===e&&(j=Fs(),j===e&&(j=Is()))))));j!==e;)D.push(j),j=Ur(),j===e&&(j=Ps(),j===e&&(j=Ts(),j===e&&(j=Os(),j===e&&(j=Rs(),j===e&&(j=Fs(),j===e&&(j=Is()))))));D!==e&&(oe=F,D=fi(p,w,E,D)),F=D,F!==e?(oe=a,D=bo(p,w,E,F),D?D=void 0:D=e,D!==e?(j=a,ie=ye(),ie!==e?j=t.substring(j,a):j=ie,j!==e?(ie=a,fe=hi(),fe!==e?(me=Gt(),me!==e?(oe=a,ot=ue(p,w,E,F,j,me),ot?ot=void 0:ot=e,ot!==e?(jr=Zn(),jr===e&&(jr=null),jr!==e?(oe=ie,fe=ja(p,w,E,F,j,me),ie=fe):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e),ie!==e?(oe=u,p=Hi(p,w,E,F,j,ie),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Xa(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me,ot;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=Vi(p,w,E),G?G=void 0:G=e,G!==e)if(oe=a,Q=sn(p,w,E),Q?Q=void 0:Q=e,Q!==e){for(F=a,D=[],j=Ur();j!==e;)D.push(j),j=Ur();if(D!==e)if(j=Qa(),j!==e){for(ie=[],fe=Ur();fe!==e;)ie.push(fe),fe=Ur();ie!==e?(oe=F,D=$o(p,w,E,j),F=D):(a=F,F=e)}else a=F,F=e;else a=F,F=e;F!==e?(D=a,j=ye(),j!==e?D=t.substring(D,a):D=j,D!==e?(j=a,ie=hi(),ie!==e?(fe=Gt(),fe!==e?(oe=a,me=ue(p,w,E,F,D,fe),me?me=void 0:me=e,me!==e?(ot=Zn(),ot===e&&(ot=null),ot!==e?(oe=j,ie=wo(p,w,E,F,D,fe),j=ie):(a=j,j=e)):(a=j,j=e)):(a=j,j=e)):(a=j,j=e),j!==e?(oe=a,ie=Jt(p,w,E,F,D,j),ie?ie=void 0:ie=e,ie!==e?(oe=u,p=Ba(p,w,E,F,D,j),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Ts(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e){if(G=[],Q=a,F=Ur(),F===e&&(F=Ps(),F===e&&(F=Xa(),F===e&&(F=Ts(),F===e&&(F=Os(),F===e&&(F=nl(),F===e&&(F=Rs(),F===e&&(F=el(),F===e&&(F=tl(),F===e&&(F=rl(),F===e&&(F=Fs(),F===e&&(F=Ya(),F===e&&(F=Is())))))))))))),F!==e&&(oe=Q,F=ko(p,w,E,F)),Q=F,Q===e){for(Q=a,F=a,D=[],j=Nt();j!==e;)D.push(j),j=Nt();if(D!==e?F=t.substring(F,a):F=D,F!==e){if(D=a,j=[],ie=Qt(),ie!==e)for(;ie!==e;)j.push(ie),ie=Qt();else j=e;j!==e?D=t.substring(D,a):D=j,D!==e?(oe=Q,F=vo(p,w,E,F,D),Q=F):(a=Q,Q=e)}else a=Q,Q=e}for(;Q!==e;)if(G.push(Q),Q=a,F=Ur(),F===e&&(F=Ps(),F===e&&(F=Xa(),F===e&&(F=Ts(),F===e&&(F=Os(),F===e&&(F=nl(),F===e&&(F=Rs(),F===e&&(F=el(),F===e&&(F=tl(),F===e&&(F=rl(),F===e&&(F=Fs(),F===e&&(F=Ya(),F===e&&(F=Is())))))))))))),F!==e&&(oe=Q,F=ko(p,w,E,F)),Q=F,Q===e){for(Q=a,F=a,D=[],j=Nt();j!==e;)D.push(j),j=Nt();if(D!==e?F=t.substring(F,a):F=D,F!==e){if(D=a,j=[],ie=Qt(),ie!==e)for(;ie!==e;)j.push(ie),ie=Qt();else j=e;j!==e?D=t.substring(D,a):D=j,D!==e?(oe=Q,F=vo(p,w,E,F,D),Q=F):(a=Q,Q=e)}else a=Q,Q=e}G!==e?(Q=a,F=ye(),F!==e?Q=t.substring(Q,a):Q=F,Q!==e?(F=a,D=hi(),D!==e?(j=Gt(),j!==e?(oe=a,ie=ue(p,w,E,G,Q,j),ie?ie=void 0:ie=e,ie!==e?(fe=Zn(),fe===e&&(fe=null),fe!==e?(oe=F,D=Ma(p,w,E,G,Q,j),F=D):(a=F,F=e)):(a=F,F=e)):(a=F,F=e)):(a=F,F=e),F!==e?(oe=a,D=Jt(p,w,E,G,Q,F),D?D=void 0:D=e,D!==e?(oe=u,p=za(p,w,E,G,Q,F),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Yh(){var u,p,y;if(u=a,p=[],y=Qt(),y!==e)for(;y!==e;)p.push(y),y=Qt();else p=e;return p!==e&&(oe=u,p=xo()),u=p,u}function _1(){var u,p,y,w;if(u=a,p=[],y=a,w=Lr(),w!==e&&(oe=y,w=Ln()),y=w,y===e){if(y=[],zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn)),w!==e)for(;w!==e;)y.push(w),zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn));else y=e;y===e&&(y=Qt())}if(y!==e){for(;y!==e;)if(p.push(y),y=a,w=Lr(),w!==e&&(oe=y,w=Ln()),y=w,y===e){if(y=[],zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn)),w!==e)for(;w!==e;)y.push(w),zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn));else y=e;y===e&&(y=Qt())}}else p=e;return p!==e&&(oe=u,p=ci(p)),u=p,u}function Fs(){var u,p,y,w,_,E,G,Q,F,D,j,ie;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=a,m++,w=jn(),m--,w===e?y=void 0:(a=y,y=e),y!==e)if(w=gi(),w!==e)if(_=ye(),_!==e)if(E=Lr(),E===e&&(E=null),E!==e)if(oe=a,G=qr(p,w),G?G=void 0:G=e,G!==e){for(Q=a,F=[],D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);D!==e;)F.push(D),D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);F!==e?Q=t.substring(Q,a):Q=F,Q!==e?(oe=u,p=Va(p,w,Q),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Ya(){var u,p,y,w,_,E,G,Q,F;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(y=a,m++,w=jn(),m--,w===e?y=void 0:(a=y,y=e),y!==e?(w=gi(),w!==e?(_=ye(),_!==e?(E=Lr(),E===e&&(E=null),E!==e?(oe=a,G=Co(p,w),G?G=void 0:G=e,G!==e?(oe=a,Q=$n(p,w),Q?Q=void 0:Q=e,Q!==e?(F=Qa(),F!==e?(oe=u,p=pi(p,w,F),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function Is(){var u,p,y,w,_,E,G,Q,F,D,j;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=a,m++,w=jn(),m--,w===e?y=void 0:(a=y,y=e),y!==e)if(w=gi(),w!==e)if(_=ye(),_!==e)if(E=Lr(),E===e&&(E=Gh()),E!==e){for(G=a,Q=[],F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);F!==e;)Q.push(F),F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);Q!==e?G=t.substring(G,a):G=Q,G!==e?(oe=u,p=Ui(p,w,E,G),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function eg(){var u,p,y,w,_,E,G,Q,F,D,j;for(u=a,p=[],y=Gr();y!==e;)p.push(y),y=Gr();if(p!==e)if(y=di(),y!==e){if(w=[],_=a,E=ye(),E!==e)if(t.substr(a,2)===Gi?(G=Gi,a+=2):(G=e,m===0&&ae(Ao)),G!==e)if(Q=ye(),Q!==e){if(F=[],D=Gr(),D!==e)for(;D!==e;)F.push(D),D=Gr();else F=e;F!==e?(D=ye(),D!==e?(j=di(),j!==e?(oe=_,E=Se(p,F),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;else a=_,_=e;for(;_!==e;)if(w.push(_),_=a,E=ye(),E!==e)if(t.substr(a,2)===Gi?(G=Gi,a+=2):(G=e,m===0&&ae(Ao)),G!==e)if(Q=ye(),Q!==e){if(F=[],D=Gr(),D!==e)for(;D!==e;)F.push(D),D=Gr();else F=e;F!==e?(D=ye(),D!==e?(j=di(),j!==e?(oe=_,E=Se(p,F),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;else a=_,_=e;w!==e?(oe=u,p=je(p,w),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;return u}function el(){var u,p,y,w,_,E,G;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(t.substr(a,6)===$t?(y=$t,a+=6):(y=e,m===0&&ae(Xe)),y!==e?(w=ye(),w!==e?(_=a,E=il(),E!==e?_=t.substring(_,a):_=E,_!==e?(E=ye(),E!==e?(G=eg(),G!==e?(oe=u,p=Ha(p,y,_,G),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function tl(){var u,p,y,w,_,E,G,Q;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(t.substr(a,7)===Qe?(y=Qe,a+=7):(y=e,m===0&&ae(ne)),y!==e?(w=ye(),w!==e?(_=a,E=a,Ua.test(t.charAt(a))?(G=t.charAt(a),a++):(G=e,m===0&&ae(Ga)),G!==e?(t.substr(a,2)===Eo?(Q=Eo,a+=2):(Q=e,m===0&&ae(_o)),Q!==e?(G=[G,Q],E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=Gt()),E!==e?_=t.substring(_,a):_=E,_!==e?(E=ye(),E!==e?(G=Bn(),G!==e?(oe=u,p=So(p,y,_,G),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function rl(){var u,p,y,w,_;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(t.substr(a,9)===Po?(y=Po,a+=9):(y=e,m===0&&ae(As)),y!==e?(w=ye(),w!==e?(_=Bn(),_!==e?(oe=u,p=Et(p,y,_),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function Os(){var u,p,y,w,_,E,G,Q,F,D,j,ie;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=To(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=qe(p,y,w,E),G?G=void 0:G=e,G!==e){for(Q=a,F=[],D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);D!==e;)F.push(D),D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);F!==e?Q=t.substring(Q,a):Q=F,Q!==e?(oe=u,p=Ki(p,y,w,E,Q),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function nl(){var u,p,y,w,_,E,G,Q,F;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(y=To(),y!==e?(w=Gt(),w!==e?(_=ye(),_!==e?(E=Bn(),E!==e?(oe=a,G=Xf(p,y,w,E),G?G=void 0:G=e,G!==e?(oe=a,Q=nr(p,y,w,E),Q?Q=void 0:Q=e,Q!==e?(F=Qa(),F!==e?(oe=u,p=wn(p,y,w,E,F),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function Rs(){var u,p,y,w,_,E,G,Q,F,D,j;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=To(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e){for(G=a,Q=[],F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);F!==e;)Q.push(F),F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);Q!==e?G=t.substring(G,a):G=Q,G!==e?(oe=u,p=pt(p,y,w,E,G),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function il(){var u,p,y,w,_;if(u=a,p=a,Ka.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(Wa)),y!==e){for(w=[],xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));_!==e;)w.push(_),xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));w!==e?(y=[y,w],p=y):(a=p,p=e)}else a=p,p=e;return p!==e?u=t.substring(u,a):u=p,u}function S1(){var u,p;for(m++,u=[],Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));p!==e;)u.push(p),Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));return m--,u===e&&(p=e,m===0&&ae(Za)),u}function P1(){var u,p;for(m++,u=[],Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));p!==e;)u.push(p),Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));return m--,u===e&&(p=e,m===0&&ae(Ja)),u}function Oo(u){return u!==u.toLowerCase()&&u!==u.toUpperCase()}function tg(u){return u===u.toUpperCase()}function Xi(u){return u.reduce((p,y)=>Array.isArray(y)?p.concat(Xi(y)):p.concat(y),[])}function rg(u){return["boundary","code","comment","data","data-table","defn","formula","head","include","input","item","markdown","nested","output","para","picture","pod","row","cell","table","toc"].includes(u)||tg(u)||u.match(/^(head|item)\d+$/)||Oo(u)}function ng(u,p){return u.length==0?p:p.indexOf(u)==0?p.replace(u,""):p.replace(/^\s+/,"")}if(A=s(),A!==e&&a===t.length)return A;throw A!==e&&a<t.length&&ae(U()),Yf(S,b<t.length?t.charAt(b):null,b<t.length?Es(b,b+1):Es(b,b))}Nd.exports={SyntaxError:Pi,parse:dk}});var Ld=be((zu,Vu)=>{(function(t,r,e){typeof zu=="object"?(Vu.exports=e(),Vu.exports.default=e()):typeof define=="function"&&define.amd?define(e):r[t]=e()})("slugify",zu,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),r=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function e(n,s){if(typeof n!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var o=r[s.locale]||{},l=s.replacement===void 0?"-":s.replacement,f=s.trim===void 0?!0:s.trim,c=n.normalize().split("").reduce(function(g,h){var $=o[h];return $===void 0&&($=t[h]),$===void 0&&($=h),$===l&&($=" "),g+$.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),f&&(c=c.trim()),c=c.replace(/\s+/g,l),s.lower&&(c=c.toLowerCase()),c}return e.extend=function(n){Object.assign(t,n)},e})});var zd=be((tA,Md)=>{"use strict";function xk(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Ti(t,r,e,n){this.message=t,this.expected=r,this.found=e,this.location=n,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ti)}xk(Ti,Error);Ti.buildMessage=function(t,r){var e={literal:function(g){return'"'+s(g.text)+'"'},class:function(g){var h="",$;for($=0;$<g.parts.length;$++)h+=g.parts[$]instanceof Array?o(g.parts[$][0])+"-"+o(g.parts[$][1]):o(g.parts[$]);return"["+(g.inverted?"^":"")+h+"]"},any:function(g){return"any character"},end:function(g){return"end of input"},other:function(g){return g.description}};function n(g){return g.charCodeAt(0).toString(16).toUpperCase()}function s(g){return g.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function o(g){return g.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function l(g){return e[g.type](g)}function f(g){var h=new Array(g.length),$,k;for($=0;$<g.length;$++)h[$]=l(g[$]);if(h.sort(),h.length>0){for($=1,k=1;$<h.length;$++)h[$-1]!==h[$]&&(h[k]=h[$],k++);h.length=k}switch(h.length){case 1:return h[0];case 2:return h[0]+" or "+h[1];default:return h.slice(0,-1).join(", ")+", or "+h[h.length-1]}}function c(g){return g?'"'+s(g)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function Ck(t,r){r=r!==void 0?r:{};var e={},n={Expression:Cs},s=Cs,o="A",l=Me("A",!1),f="V",c=Me("V",!1),g="R",h=Me("R",!1),$="B",k=Me("B",!1),x="I",C=Me("I",!1),I="C",N=Me("C",!1),B="D",X=Me("D",!1),le="E",$e=Me("E",!1),he="F",Y=Me("F",!1),pe="G",ve=Me("G",!1),ke="H",Le=Me("H",!1),Te="J",Fe=Me("J",!1),ge="K",Pe=Me("K",!1),Qe="L",ne=Me("L",!1),$t="O",Xe=Me("O",!1),wt="S",nt=Me("S",!1),z="T",H=Me("T",!1),dr="U",Lt=Me("U",!1),kt="Z",Tt=Me("Z",!1),Ft="N",ut=Me("N",!1),tr="X",Vt=Me("X",!1),vr=/^[a-zA-Z]/,Rr=Ut([["a","z"],["A","Z"]],!1,!1),xr=/^[a-zA-Z0-9_\-]/,jt=Ut([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Sn=/^[ \t\f]/,Pn=Ut([" "," ","\f"],!1,!1),Tn=function(d){return!(r.allowed||[]).length||(r.allowed||[]).includes(d)},Ce=vs(),Hn=function(d){return{content:d.content,type:"fcode",name:d.name,synonyms:d.items}},Nr=function(d){return{content:d.content,type:"fcode",name:d.name,entry:d.items}},Ee="<",Re=Me("<",!1),At=">",ht=Me(">",!1),mr=function(){return Nn()},Ne="\xAB",_e=Me("\xAB",!1),te="\xBB",ce=Me("\xBB",!1),Ae=function(d){return d},Be=function(d){return d.code==="C"},Ye=function(d,b){return b===d.end_tag},Pt=function(d,b){return b},it=function(d,b,S){return S===d.end_tag},vt=function(d,b,S){return{content:b,type:"fcode",name:d.code}},It="|",Xr=Me("|",!1),gt=function(d){return d},Fn=function(d){return d.code==="L"},hr=function(d,b,S){return S},si=function(d,b,S,m){return m===d.end_tag},oi=function(d,b,S,m){return{content:b,type:"fcode",name:d.code,meta:S}},Dr=";",mn=Me(";",!1),Un=/^[ \xA0\u2001\t\f\u2008]/,ks=Ut([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),Gn=function(d,b){return a([d,b])},ai=function(d){return[d]},ji=/^[0-9]/,In=Ut([["0","9"]],!1,!1),Kn="0d",Bi=Me("0d",!1),V=function(d){return parseInt(d,10)},R="0o",J=Me("0o",!1),re=function(d){return parseInt(d,8)},se="0b",we=Me("0b",!1),Se=function(d){return parseInt(d,2)},je="0x",We=Me("0x",!1),bt=/^[0-9A-Fa-f]/,De=Ut([["0","9"],["A","F"],["a","f"]],!1,!1),at=function(){return parseInt(Nn())},ft=/^[A-Z ]/,lt=Ut([["A","Z"]," "],!1,!1),Ge=function(){return Nn()===Nn().toUpperCase()},ct=/^[a-z]/,et=Ut([["a","z"]],!1,!1),Mr=/^[a-z0-9]/,Bt=Ut([["a","z"],["0","9"]],!1,!1),rr=function(d){return Nn()},st=function(d){return{type:"number",value:parseInt(d,10)}},Ht=function(d){return{type:"unicode_name",value:d}},Zt=function(d){return{type:"html_named",value:d}},Cr=function(d){return d==="E"},Yr=function(d,b){return a(b)},Ar=function(d,b){return{content:b||[],type:"fcode",name:d}},hn=function(d){return d},On=function(d,b){return{code:d,begin_tag:b,end_tag:oe(b)}},Rn=function(d){return d.code!=="C"},en=function(d,b,S){return S===d.end_tag},tn=function(d,b,S){return{content:b,type:"fcode",name:d.code}},Mt=function(d){return!(r.allowed||[]).length||(r.allowed||[]).includes(d)},Er=function(d,b,S,m){return m===oe(b)},gn=function(d,b,S,m){return{content:S,type:"fcode",name:d}},zr=function(d,b,S,m){return a(m)},Mi=function(d,b,S,m,A){return A===oe(b)},li=function(d,b,S,m,A){return{name:d,content:S,items:m}},i=0,ue=0,Vr=[{line:1,column:1}],Jt=0,rn=[],v=0,yn;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=n[r.startRule]}function Nn(){return t.substring(ue,i)}function Hr(){return qn(ue,i)}function Dn(d,b){throw b=b!==void 0?b:qn(ue,i),Vi([bn(d)],t.substring(ue,i),b)}function zi(d,b){throw b=b!==void 0?b:qn(ue,i),xs(d,b)}function Me(d,b){return{type:"literal",text:d,ignoreCase:b}}function Ut(d,b,S){return{type:"class",parts:d,inverted:b,ignoreCase:S}}function vs(){return{type:"any"}}function nn(){return{type:"end"}}function bn(d){return{type:"other",description:d}}function ui(d){var b=Vr[d],S;if(b)return b;for(S=d-1;!Vr[S];)S--;for(b=Vr[S],b={line:b.line,column:b.column};S<d;)t.charCodeAt(S)===10?(b.line++,b.column=1):b.column++,S++;return Vr[d]=b,b}function qn(d,b){var S=ui(d),m=ui(b);return{start:{offset:d,line:S.line,column:S.column},end:{offset:b,line:m.line,column:m.column}}}function W(d){i<Jt||(i>Jt&&(Jt=i,rn=[]),rn.push(d))}function xs(d,b){return new Ti(d,null,null,b)}function Vi(d,b,S){return new Ti(Ti.buildMessage(d,b),d,b,S)}function Cs(){var d,b;for(d=[],b=fi(),b===e&&(b=Ki(),b===e&&(b=nr(),b===e&&(b=$o())));b!==e;)d.push(b),b=fi(),b===e&&(b=Ki(),b===e&&(b=nr(),b===e&&(b=$o())));return d}function fi(){var d;return d=Ka(),d===e&&(d=Za(),d===e&&(d=Wn(),d===e&&(d=Ma(),d===e&&(d=Po(),d===e&&(d=Wa(),d===e&&(d=Va(),d===e&&(d=za(),d===e&&(d=Wi())))))))),d}function bo(){var d;return t.charCodeAt(i)===65?(d=o,i++):(d=e,v===0&&W(l)),d===e&&(t.charCodeAt(i)===86?(d=f,i++):(d=e,v===0&&W(c)),d===e&&(t.charCodeAt(i)===82?(d=g,i++):(d=e,v===0&&W(h)),d===e&&(t.charCodeAt(i)===66?(d=$,i++):(d=e,v===0&&W(k)),d===e&&(t.charCodeAt(i)===73?(d=x,i++):(d=e,v===0&&W(C)),d===e&&(t.charCodeAt(i)===67?(d=I,i++):(d=e,v===0&&W(N)),d===e&&(t.charCodeAt(i)===68?(d=B,i++):(d=e,v===0&&W(X)),d===e&&(t.charCodeAt(i)===69?(d=le,i++):(d=e,v===0&&W($e)),d===e&&(t.charCodeAt(i)===70?(d=he,i++):(d=e,v===0&&W(Y)),d===e&&(t.charCodeAt(i)===71?(d=pe,i++):(d=e,v===0&&W(ve)),d===e&&(t.charCodeAt(i)===72?(d=ke,i++):(d=e,v===0&&W(Le)),d===e&&(t.charCodeAt(i)===74?(d=Te,i++):(d=e,v===0&&W(Fe)),d===e&&(t.charCodeAt(i)===75?(d=ge,i++):(d=e,v===0&&W(Pe)),d===e&&(t.charCodeAt(i)===76?(d=Qe,i++):(d=e,v===0&&W(ne)),d===e&&(t.charCodeAt(i)===79?(d=$t,i++):(d=e,v===0&&W(Xe)),d===e&&(t.charCodeAt(i)===83?(d=wt,i++):(d=e,v===0&&W(nt)),d===e&&(t.charCodeAt(i)===84?(d=z,i++):(d=e,v===0&&W(H)),d===e&&(t.charCodeAt(i)===85?(d=dr,i++):(d=e,v===0&&W(Lt)),d===e&&(t.charCodeAt(i)===90?(d=kt,i++):(d=e,v===0&&W(Tt)),d===e&&(t.charCodeAt(i)===78?(d=Ft,i++):(d=e,v===0&&W(ut)),d===e&&(t.charCodeAt(i)===88?(d=tr,i++):(d=e,v===0&&W(Vt)))))))))))))))))))))),d}function ja(){var d,b,S,m,A;if(d=i,b=i,vr.test(t.charAt(i))?(S=t.charAt(i),i++):(S=e,v===0&&W(Rr)),S!==e){for(m=[],xr.test(t.charAt(i))?(A=t.charAt(i),i++):(A=e,v===0&&W(jt));A!==e;)m.push(A),xr.test(t.charAt(i))?(A=t.charAt(i),i++):(A=e,v===0&&W(jt));m!==e?(S=[S,m],b=S):(i=b,b=e)}else i=b,b=e;return b!==e?d=t.substring(d,i):d=b,d}function Hi(){var d,b;for(d=[],Sn.test(t.charAt(i))?(b=t.charAt(i),i++):(b=e,v===0&&W(Pn));b!==e;)d.push(b),Sn.test(t.charAt(i))?(b=t.charAt(i),i++):(b=e,v===0&&W(Pn));return d}function sn(){var d,b,S;return d=i,b=bo(),b!==e?(ue=i,S=Tn(b),S?S=void 0:S=e,S!==e?(b=[b,S],d=b):(i=d,d=e)):(i=d,d=e),d}function $o(){var d,b;return d=i,t.length>i?(b=t.charAt(i),i++):(b=e,v===0&&W(Ce)),b!==e?d=t.substring(d,i):d=b,d}function wo(){var d,b,S,m,A;for(d=i,b=[],S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);S!==e;)b.push(S),S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);return b!==e?d=t.substring(d,i):d=b,d}function Ba(){var d,b,S;if(d=i,b=[],S=zt(),S!==e)for(;S!==e;)b.push(S),S=zt();else b=e;return b!==e?d=t.substring(d,i):d=b,d}function ko(){var d,b;if(d=[],b=qr(),b!==e)for(;b!==e;)d.push(b),b=qr();else d=e;return d}function vo(){var d,b;for(d=[],b=qr();b!==e;)d.push(b),b=qr();return d}function Ma(){var d,b;return d=i,b=Zi(),b!==e&&(ue=d,b=Hn(b)),d=b,d}function za(){var d,b;return d=i,b=Ja(),b!==e&&(ue=d,b=Nr(b)),d=b,d}function xo(){var d;return t.charCodeAt(i)===66?(d=$,i++):(d=e,v===0&&W(k)),d}function Ln(){var d,b,S,m,A;return d=i,b=i,S=i,v++,m=xo(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===60?(S=Ee,i++):(S=e,v===0&&W(Re)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===62?(A=At,i++):(A=e,v===0&&W(ht)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=i,S=i,v++,m=xo(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===171?(S=Ne,i++):(S=e,v===0&&W(_e)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===187?(A=te,i++):(A=e,v===0&&W(ce)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)),d}function zt(){var d,b,S,m,A,O,L,T;if(d=i,b=i,S=[],m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Re)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Re)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Ne,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===171?(O=Ne,i++):(O=e,v===0&&W(_e)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=Ln(),m===e&&(m=wn()))),m!==e)for(;m!==e;)S.push(m),m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Re)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Re)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Ne,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===171?(O=Ne,i++):(O=e,v===0&&W(_e)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=Ln(),m===e&&(m=wn())));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=Ae(b)),d=b,d}function Wn(){var d,b,S,m,A,O,L,T,q,K,P,ee,U,M,Z;if(d=i,b=Et(),b!==e)if(ue=i,S=Be(b),S?S=void 0:S=e,S!==e){if(m=[],A=i,O=i,L=[],T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Re)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Re)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Ne,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Ne,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Re)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Re)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Ne,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Ne,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;if(L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O,A!==e)for(;A!==e;){if(m.push(A),A=i,O=i,L=[],T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Re)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Re)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Ne,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Ne,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Re)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Re)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Ne,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Ne,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O}else m=e;m!==e?(A=qe(),A!==e?(ue=i,O=it(b,m,A),O?O=void 0:O=e,O!==e?(ue=d,b=vt(b,m,A),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;return d}function ci(){var d;return t.charCodeAt(i)===124?(d=It,i++):(d=e,v===0&&W(Xr)),d}function qr(){var d,b,S,m,A,O,L,T,q;if(d=i,b=i,S=[],m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Re)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Re)),O!==e?(L=qr(),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Ne,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===171?(O=Ne,i++):(O=e,v===0&&W(_e)),O!==e?(L=qr(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,v++,O=ci(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=qe(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=As(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(T=i,v++,q=pt(),v--,q===e?T=void 0:(i=T,T=e),T!==e?(t.length>i?(q=t.charAt(i),i++):(q=e,v===0&&W(Ce)),q!==e?(A=[A,O,L,T,q],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e))),m!==e)for(;m!==e;)S.push(m),m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Re)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Re)),O!==e?(L=qr(),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Ne,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===171?(O=Ne,i++):(O=e,v===0&&W(_e)),O!==e?(L=qr(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,v++,O=ci(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=qe(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=As(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(T=i,v++,q=pt(),v--,q===e?T=void 0:(i=T,T=e),T!==e?(t.length>i?(q=t.charAt(i),i++):(q=e,v===0&&W(Ce)),q!==e?(A=[A,O,L,T,q],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=gt(b)),d=b,d}function Va(){var d,b,S,m,A,O,L,T,q,K,P;if(d=i,b=Et(),b!==e)if(ue=i,S=Fn(b),S?S=void 0:S=e,S!==e){if(m=[],A=Wn(),A===e&&(A=qr()),A!==e)for(;A!==e;)m.push(A),A=Wn(),A===e&&(A=qr());else m=e;if(m!==e){if(A=i,O=ci(),O!==e){for(L=i,T=[],q=i,K=i,v++,P=qe(),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e);q!==e;)T.push(q),q=i,K=i,v++,P=qe(),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e);T!==e?L=t.substring(L,i):L=T,L!==e?(ue=A,O=hr(b,m,L),A=O):(i=A,A=e)}else i=A,A=e;A===e&&(A=null),A!==e?(O=qe(),O!==e?(ue=i,L=si(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=oi(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e}else i=d,d=e;else i=d,d=e;return d}function Co(){var d,b,S,m,A,O;if(d=i,b=[],S=i,m=i,v++,t.charCodeAt(i)===59?(A=Dr,i++):(A=e,v===0&&W(mn)),v--,A===e?m=void 0:(i=m,m=e),m!==e?(A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(t.length>i?(O=t.charAt(i),i++):(O=e,v===0&&W(Ce)),O!==e?(m=[m,A,O],S=m):(i=S,S=e)):(i=S,S=e)):(i=S,S=e),S!==e)for(;S!==e;)b.push(S),S=i,m=i,v++,t.charCodeAt(i)===59?(A=Dr,i++):(A=e,v===0&&W(mn)),v--,A===e?m=void 0:(i=m,m=e),m!==e?(A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(t.length>i?(O=t.charAt(i),i++):(O=e,v===0&&W(Ce)),O!==e?(m=[m,A,O],S=m):(i=S,S=e)):(i=S,S=e)):(i=S,S=e);else b=e;return b!==e?d=t.substring(d,i):d=b,d}function $n(){var d;return Un.test(t.charAt(i))?(d=t.charAt(i),i++):(d=e,v===0&&W(ks)),d}function pi(){var d,b,S,m,A,O;if(d=i,b=Co(),b!==e){for(S=[],m=$n();m!==e;)S.push(m),m=$n();if(S!==e)if(t.charCodeAt(i)===59?(m=Dr,i++):(m=e,v===0&&W(mn)),m!==e){for(A=[],O=$n();O!==e;)A.push(O),O=$n();A!==e?(O=pi(),O!==e?(ue=d,b=Gn(b,O),d=b):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e}else i=d,d=e;return d===e&&(d=i,b=Co(),b!==e&&(ue=d,b=ai(b)),d=b),d}function Ui(){var d,b,S;if(d=i,b=[],ji.test(t.charAt(i))?(S=t.charAt(i),i++):(S=e,v===0&&W(In)),S!==e)for(;S!==e;)b.push(S),ji.test(t.charAt(i))?(S=t.charAt(i),i++):(S=e,v===0&&W(In));else b=e;return b!==e?d=t.substring(d,i):d=b,d}function Gi(){var d,b,S;return d=i,t.substr(i,2)===Kn?(b=Kn,i+=2):(b=e,v===0&&W(Bi)),b!==e?(S=Ui(),S!==e?(ue=d,b=V(S),d=b):(i=d,d=e)):(i=d,d=e),d}function Ao(){var d,b,S;return d=i,t.substr(i,2)===R?(b=R,i+=2):(b=e,v===0&&W(J)),b!==e?(S=Ui(),S!==e?(ue=d,b=re(S),d=b):(i=d,d=e)):(i=d,d=e),d}function Ha(){var d,b,S;return d=i,t.substr(i,2)===se?(b=se,i+=2):(b=e,v===0&&W(we)),b!==e?(S=Ui(),S!==e?(ue=d,b=Se(S),d=b):(i=d,d=e)):(i=d,d=e),d}function Ua(){var d,b,S,m,A,O;if(d=i,b=i,S=i,t.substr(i,2)===je?(m=je,i+=2):(m=e,v===0&&W(We)),m!==e){if(A=[],bt.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(De)),O!==e)for(;O!==e;)A.push(O),bt.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(De));else A=e;A!==e?(m=[m,A],S=m):(i=S,S=e)}else i=S,S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=at()),d=b,d}function Ga(){var d,b,S,m;if(d=i,b=i,S=[],ft.test(t.charAt(i))?(m=t.charAt(i),i++):(m=e,v===0&&W(lt)),m!==e)for(;m!==e;)S.push(m),ft.test(t.charAt(i))?(m=t.charAt(i),i++):(m=e,v===0&&W(lt));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Ge(),S?S=void 0:S=e,S!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e),d}function Eo(){var d,b,S,m,A,O;if(d=i,b=i,S=i,ct.test(t.charAt(i))?(m=t.charAt(i),i++):(m=e,v===0&&W(et)),m!==e){if(A=[],Mr.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(Bt)),O!==e)for(;O!==e;)A.push(O),Mr.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(Bt));else A=e;A!==e?(m=[m,A],S=m):(i=S,S=e)}else i=S,S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=rr(b)),d=b,d}function _o(){var d,b,S;return d=i,b=Hi(),b!==e?(S=Ao(),S===e&&(S=Gi(),S===e&&(S=Ha(),S===e&&(S=Ua(),S===e&&(S=Ui())))),S!==e?(ue=d,b=st(S),d=b):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=Hi(),b!==e?(S=Ga(),S!==e?(ue=d,b=Ht(S),d=b):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=Hi(),b!==e?(S=Eo(),S!==e?(ue=d,b=Zt(S),d=b):(i=d,d=e)):(i=d,d=e))),d}function So(){var d,b,S,m,A,O;if(d=i,b=_o(),b!==e){for(S=[],m=$n();m!==e;)S.push(m),m=$n();if(S!==e)if(t.charCodeAt(i)===59?(m=Dr,i++):(m=e,v===0&&W(mn)),m!==e){for(A=[],O=$n();O!==e;)A.push(O),O=$n();A!==e?(O=So(),O!==e?(ue=d,b=Gn(b,O),d=b):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e}else i=d,d=e;return d===e&&(d=i,b=_o(),b!==e&&(ue=d,b=ai(b)),d=b),d}function Po(){var d,b,S,m,A;return d=i,b=As(),b!==e?(ue=i,S=Cr(b),S?S=void 0:S=e,S!==e?(m=i,A=So(),A!==e&&(ue=m,A=Yr(b,A)),m=A,m===e&&(m=null),m!==e?(A=qe(),A!==e?(ue=d,b=Ar(b,m),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function As(){var d,b,S;return d=i,b=i,S=sn(),S!==e?b=t.substring(b,i):b=S,b!==e?(t.charCodeAt(i)===60?(S=Ee,i++):(S=e,v===0&&W(Re)),S!==e?(ue=d,b=hn(b),d=b):(i=d,d=e)):(i=d,d=e),d}function Et(){var d,b,S,m;return d=i,b=i,S=sn(),S!==e?b=t.substring(b,i):b=S,b!==e?(S=i,t.charCodeAt(i)===60?(m=Ee,i++):(m=e,v===0&&W(Re)),m===e&&(t.charCodeAt(i)===171?(m=Ne,i++):(m=e,v===0&&W(_e))),m!==e?S=t.substring(S,i):S=m,S!==e?(ue=d,b=On(b,S),d=b):(i=d,d=e)):(i=d,d=e),d}function qe(){var d;return t.charCodeAt(i)===62?(d=At,i++):(d=e,v===0&&W(ht)),d===e&&(t.charCodeAt(i)===187?(d=te,i++):(d=e,v===0&&W(ce))),d}function Ki(){var d,b,S,m,A,O,L,T,q,K,P,ee,U,M,Z;if(d=i,b=Et(),b!==e)if(ue=i,S=Rn(b),S?S=void 0:S=e,S!==e){if(m=[],A=fi(),A===e&&(A=Ki(),A===e)){if(A=i,O=i,L=[],T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Re)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Ne,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Re)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Ne,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O}for(;A!==e;)if(m.push(A),A=fi(),A===e&&(A=Ki(),A===e)){if(A=i,O=i,L=[],T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Re)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Ne,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Re)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Ne,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O}m!==e?(A=qe(),A!==e?(ue=i,O=en(b,m,A),O?O=void 0:O=e,O!==e?(ue=d,b=tn(b,m,A),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;return d}function Xf(){var d,b,S,m,A;for(d=i,b=[],S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);S!==e;)b.push(S),S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);return b!==e?d=t.substring(d,i):d=b,d}function nr(){var d,b,S,m,A,O,L;if(d=i,b=i,S=[],m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Re)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===62?(L=At,i++):(L=e,v===0&&W(ht)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,t.charCodeAt(i)===171?(A=Ne,i++):(A=e,v===0&&W(_e)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,v===0&&W(ce)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=pt(),m===e&&(m=wn()))),m!==e)for(;m!==e;)S.push(m),m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Re)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===62?(L=At,i++):(L=e,v===0&&W(ht)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,t.charCodeAt(i)===171?(A=Ne,i++):(A=e,v===0&&W(_e)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,v===0&&W(ce)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=pt(),m===e&&(m=wn())));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=Ae(b)),d=b,d}function wn(){var d,b,S,m,A,O,L,T;if(d=i,b=i,S=[],m=i,A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=Et(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=pt(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m!==e)for(;m!==e;)S.push(m),m=i,A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=Et(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=pt(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e);else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=Ae(b)),d=b,d}function pt(){var d,b,S,m,A;return d=i,b=i,S=i,v++,m=sn(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===60?(S=Ee,i++):(S=e,v===0&&W(Re)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===62?(A=At,i++):(A=e,v===0&&W(ht)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=i,S=i,v++,m=sn(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===171?(S=Ne,i++):(S=e,v===0&&W(_e)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===187?(A=te,i++):(A=e,v===0&&W(ce)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)),d}function Ka(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===65?(S=o,i++):(S=e,v===0&&W(l)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Re)),A===e&&(t.charCodeAt(i)===171?(A=Ne,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=qr(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Wa(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===86?(S=f,i++):(S=e,v===0&&W(c)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Re)),A===e&&(t.charCodeAt(i)===171?(A=Ne,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=Ba(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Za(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===83?(S=wt,i++):(S=e,v===0&&W(nt)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Re)),A===e&&(t.charCodeAt(i)===171?(A=Ne,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=wo(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Wi(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===90?(S=kt,i++):(S=e,v===0&&W(Tt)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Re)),A===e&&(t.charCodeAt(i)===171?(A=Ne,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=wo(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Zi(){var d,b,S,m,A,O,L,T,q;if(d=i,b=i,t.charCodeAt(i)===68?(S=B,i++):(S=e,v===0&&W(X)),S!==e?b=t.substring(b,i):b=S,b!==e)if(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e)if(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Re)),A===e&&(t.charCodeAt(i)===171?(A=Ne,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e)if(A=ko(),A!==e){if(O=i,L=ci(),L!==e){for(T=[],q=pi();q!==e;)T.push(q),q=pi();T!==e?(ue=O,L=zr(b,m,A,T),O=L):(i=O,O=e)}else i=O,O=e;O===e&&(O=null),O!==e?(L=qe(),L!==e?(ue=i,T=Mi(b,m,A,O,L),T?T=void 0:T=e,T!==e?(ue=d,b=li(b,m,A,O,L),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;else i=d,d=e;else i=d,d=e;return d}function Ja(){var d,b,S,m,A,O,L,T,q;if(d=i,b=i,t.charCodeAt(i)===88?(S=tr,i++):(S=e,v===0&&W(Vt)),S!==e?b=t.substring(b,i):b=S,b!==e)if(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e)if(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Re)),A===e&&(t.charCodeAt(i)===171?(A=Ne,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e)if(A=vo(),A!==e){if(O=i,L=ci(),L!==e){for(T=[],q=pi();q!==e;)T.push(q),q=pi();T!==e?(ue=O,L=zr(b,m,A,T),O=L):(i=O,O=e)}else i=O,O=e;O===e&&(O=null),O!==e?(L=qe(),L!==e?(ue=i,T=Mi(b,m,A,O,L),T?T=void 0:T=e,T!==e?(ue=d,b=li(b,m,A,O,L),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;else i=d,d=e;else i=d,d=e;return d}function a(d){return d.reduce((b,S)=>Array.isArray(S)?b.concat(a(S)):b.concat(S),[])}function oe(d){return{"<":">","\xAB":"\xBB",">":"<","\xBB":"\xAB"}[d]}if(yn=s(),yn!==e&&i===t.length)return yn;throw yn!==e&&i<t.length&&W(nn()),Vi(rn,Jt<t.length?t.charAt(Jt):null,Jt<t.length?qn(Jt,Jt+1):qn(Jt,Jt))}Md.exports={SyntaxError:Ti,parse:Ck}});var sm=be((qA,Lk)=>{Lk.exports={name:"@podlite/schema",version:"0.0.46",description:"AST tools and schema for Podlite markup language \u2014 validate, traverse, and transform document trees",main:"./src/index.ts",homepage:"https://podlite.org",bugs:{url:"https://github.com/podlite/podlite/issues"},repository:{type:"git",url:"https://github.com/podlite/podlite.git",directory:"packages/podlite-schema"},license:"MIT",funding:{type:"opencollective",url:"https://opencollective.com/podlite"},files:["lib/**/*.js","lib/**/*.d.ts","esm","schema/*","README.md","CHANGELOG.md"],engines:{node:">=14"},engineStrict:!0,publishConfig:{access:"public",main:"lib/index.js",types:"./lib/index.d.ts",module:"./esm/index.js"},scripts:{clean:"rm -rf lib esm *.tsbuildinfo",build:"run-s build:pegjs build_lib build:ast ",build_lib:"yarn g:build","build:ast":"ts-node scripts/make-ast-scheme.ts","build:pegjs":"pegmill --allowed-start-rules Document,attributesOnly -o src/grammar.js src/grammar.pegjs && pegmill -o src/grammarfc.js src/grammarfc.pegjs",watch:"npx nodemon -e js,ts --exec 'yarn' build","watch:pegjs":"npx nodemon -e pegmill --exec 'yarn' build:pegjs",test:"yarn g:jest --passWithNoTests"},keywords:["podlite","schema","ast","syntax-tree","markup-language","transform","visitor","parser","markdown","tree"],dependencies:{ajv:"^7.2.3",events:"^3.1.0","json-pointer":"^0.6.1",nanoid:"3.1.30",slugify:"^1.6.6"},devDependencies:{"@types/node":"^17.0.7",glob:"^7.2.0","npm-run-all":"^4.1.5",pegmill:"0.1.2","ts-node":"^9.1.1",typescript:"4.5.5","typescript-json-schema":"0.53.0"}}});var um=be((CE,lm)=>{lm.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var bm=be((AE,ym)=>{"use strict";var $a=Object.prototype.hasOwnProperty,gm=Object.prototype.toString,fm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,pm=function(r){return typeof Array.isArray=="function"?Array.isArray(r):gm.call(r)==="[object Array]"},dm=function(r){if(!r||gm.call(r)!=="[object Object]")return!1;var e=$a.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&$a.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!n)return!1;var s;for(s in r);return typeof s>"u"||$a.call(r,s)},mm=function(r,e){fm&&e.name==="__proto__"?fm(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},hm=function(r,e){if(e==="__proto__")if($a.call(r,e)){if(cm)return cm(r,e).value}else return;return r[e]};ym.exports=function t(){var r,e,n,s,o,l,f=arguments[0],c=1,g=arguments.length,h=!1;for(typeof f=="boolean"&&(h=f,f=arguments[1]||{},c=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});c<g;++c)if(r=arguments[c],r!=null)for(e in r)n=hm(f,e),s=hm(r,e),f!==s&&(h&&s&&(dm(s)||(o=pm(s)))?(o?(o=!1,l=n&&pm(n)?n:[]):l=n&&dm(n)?n:{},mm(f,{name:e,newValue:t(h,l,s)})):typeof s<"u"&&mm(f,{name:e,newValue:s}));return f}});var km=be((SE,wm)=>{wm.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var x1={};uc(x1,{PluginRegister:()=>k1,default:()=>v1,parseMd:()=>qa,plugin:()=>La});module.exports=ug(x1);var om=Sr(hd()),Bk=Sr($d());var HA=Sr(xd());var ok=function(t){if(t==="*:*"||t==="*")return{};if(t==="<>")return{type:"fcode"};let[r,e]=t.split(":");if(r&&e)return{name:r,type:e};if(!r)return{type:e};if(!e){let n=r.match(/(.+)\<\>/);return n?{type:"fcode",name:n[1]}:{name:r,type:"block"}}return{name:r,type:e}},_i=t=>{let r=ok(t),{name:e,type:n}=r;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};function ak(t,r){function e(s){for(var o in s)if(s.hasOwnProperty(o))return!1;return!0}if(e(t))return!0;for(var n in t)if(t===void 0&&console.warn("[podlite] undefined key!!!"),t.hasOwnProperty(n))if(r===void 0&&console.warn("[podlite] undefined node!!!"),r&&r.hasOwnProperty(n)){if(t[n]!==r[n])return!1}else return!1;return!0}var An=(t,r)=>{return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(s){return typeof s=="string"?!1:ak(t,s)}},Iu=(t,r)=>{if(t instanceof Array)return t.reduce((n,s)=>(n.push(...Iu(s)),n),[]);if(t instanceof Object){let n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(An(_i(e),t[e]));return n}return[An(_i(t),r)]};var Ou=Sr(require("crypto"),1);var Cd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var lk=128,Si,ds,uk=t=>{!Si||Si.length<t?(Si=Buffer.allocUnsafe(t*lk),Ou.default.randomFillSync(Si),ds=0):ds+t>Si.length&&(Ou.default.randomFillSync(Si),ds=0),ds+=t};var Ad=(t=21)=>{uk(t);let r="";for(let e=ds-t;e<ds;e++)r+=Cd[Si[e]&63];return r};var ms=t=>({...t}),Ru=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},br=(t,r)=>{let e="block",n=t.name,s={id:Ad(),margin:"",...t};var o=ms({type:e,...s,content:Ru(r)});return o};var pa=(t,r)=>ms({type:"fcode",...t,content:r}),Nu=(t,r)=>ms({...t,type:"fcode",name:"L",content:Ru(r)}),Ed=t=>ms({type:"fcode",name:"O",content:Ru(t)});var _d=t=>ms({type:"fcode",name:"F",content:[{type:"text",value:t}]}),no=t=>ms({type:"verbatim",value:t});var Sd=t=>({type:"block",name:"caption",content:t}),Pd=(t,r)=>({type:"image",src:t,alt:r}),Du=({margin:t=""},r)=>br({name:"root",margin:t},r);var Td=({value:t,location:r})=>br({name:"formula",location:r},[no(t)]);var qu=(t,r={})=>{let e=t.config instanceof Array?t.config:[],n=[];r.config&&r.config.hasOwnProperty(t.name)&&(n=r.config[t.name]);let s={};[...e,...n].map(l=>{s.hasOwnProperty(l.name)||(s[l.name]=[]),l.type==="array"?s[l.name].push(...l.value):s[l.name].push(l.value)});let o=function(){};return o.exists=l=>s.hasOwnProperty(l),o.getAllValues=l=>o.exists(l)?s[l]:[],o.getFirstValue=l=>o.exists(l)?o.getAllValues(l)[0]:void 0,o.getMapValue=l=>{let f=o.getFirstValue(l);return f&&typeof f=="object"&&!Array.isArray(f)?f:void 0},o.asHash=()=>s,o},Ct=qu;var Lu=(t,r)=>{let e=Ct(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};function Fd(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(Fd(e)):r.concat(e),[]):t}function fk(t){function r(e,n){if(e==null)return e;if(e instanceof Array)return Fd(e.map(l=>r(l,n))).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},n);let s=t.slice();s.reverse();let o=s.findIndex(l=>l.isFor(e));if(o!==-1){let l=s.slice(o+1),f=l.findIndex(g=>g.isFor(e)),c=(g=e,h=n,$=r)=>{if(f!==-1)return l[f].fn(g,h,$,()=>{})};return typeof s[o].fn!="function"&&console.warn("[podlite] bad fn for "+JSON.stringify(e,null,2)),s[o].fn(e,n,r,c)}else{let l={...e};if(l.hasOwnProperty("content"))return r(l.content,n)}}return r.rules=t,r}var ma=fk;var Ve=(t,r)=>(e,n)=>(s,o,l)=>{e.writeRaw(t),s.content&&l(s.content,o),e.writeRaw(r)},St=()=>()=>()=>{},ck="\u2588",Jr=t=>t.replace(/\S/g,ck),hs=t=>{if(typeof t=="string")return t;if(!Array.isArray(t)){if(t&&typeof t=="object"){let r=t;return r.type==="text"||r.type==="verbatim"?r.value||"":hs(r.content)}return""}return t.map(hs).join("")},$r=(t,r)=>(e,n,s)=>{if(e.content)return s(e.content,n)},Ir=t=>(r,e)=>(n,s,o)=>t(n,s)(r,e)(n,s,o);var ha=(t,r)=>{let e=Iu(t).reverse();return(n,s)=>{let o=e.map(c=>An(c.rule,c.fn(n,s))).reverse(),l=r(n,s),f;return(c,g,h)=>(f||(f=ma([...h.rules,...o])),l(c,g,f))}},Or=(t,r)=>(e,n)=>{let s=t(e,n);return(o,l,f)=>{let c=Ct(o,l).getFirstValue("nested")||r;c!==void 0&&e.addLevel(c),s(o,l,f),c!==void 0&&e.removeLevel(c)}};function io(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function Id(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Id(e)):r.concat(e),[])}var da=t=>{let r=[];function e(s,o){if(s instanceof Array&&console.warn(`[podlite] Unsupported param for ${s}`),s instanceof Object){for(var l in s)s.hasOwnProperty(l)&&e(l,s[l]);return[]}r.push(An(_i(s),o))}function n(s,o={}){if(s==null)return s;if(s instanceof Array)return Id(s.map(c=>n(c,o)));if(typeof s=="string")return s;let l=r.slice();l.reverse();let f=l.findIndex(c=>c.isFor(s));if(f!==-1)return l[f].fn(s,o,n);{let c={...s};return c.hasOwnProperty("content")&&(c.content=n(c.content,o)),c}}return e(t),n.rules=r,n},lr=da;var Od=Sr(require("events")),ju=class extends Od.EventEmitter{INDEXTERMS;FOOTNOTES;output;errors;out;ons;constructor(r){super(),this.INDEXTERMS=[],this.FOOTNOTES=[],this.output=r,this.ons=[],this.emit("ready")}escape(r){return r}write(r){return this.writeRaw(this.escape(r))}writeRaw(r){typeof this.output=="function"?this.output(r):console.log(r)}getStr(){return{errors:this.errors,toString:()=>this.out,valueOf:()=>this.out}}startWrite(r){(this.ons||[]).map(e=>super.on(...e)),this.emit("start",r),this.addListener("errors",e=>{this.errors=this.errors||[],this.errors.push(e)})}on(...r){return this.ons=this.ons||[],this.ons.unshift([...r]),this}endWrite=()=>{this.emit("end")};_add_nesting(r){}_remove_nesting(r){}addLevel(r){this._add_nesting(r)}removeLevel(r){this._remove_nesting(r)}},so=ju;var gs=(t={},r=[])=>{let e=r,n=t.processor||Rd,s=t.writer;return o.use=l,o.run=f,o.getPlugins=()=>e,o;function o(c){}function l(c,g){if(c instanceof Array)return gs(t,[...e,...g]);if(c instanceof Object){for(var h in c)c.hasOwnProperty(h)&&l(h,c[h]);return o}return e.push(An(_i(c),g)),o}function f(c,g){let h="",$=g||s||new so(X=>{h=h+X}),k=typeof $=="function"?new $(X=>{h=h+X}):$,x=typeof c=="string"?n(c):c,C=e.slice();C.reverse();let I=ma(C.map(X=>An(X.rule,X.fn(k,n,x))).reverse()),N={...t.context||{}};k.startWrite(x);let B=I(x,N);return k.endWrite(),{errors:k.errors,toString:()=>h,valueOf:()=>h,indexingTerms:k.INDEXTERMS,annotations:k.FOOTNOTES,defenitions:k.DEFINITIONS,interator:B}}};var Dd=Sr(Bu());function Mu(t){if(!t||!t.trim())return[];try{return Dd.parse(t,{startRule:"attributesOnly"})}catch{return[]}}var qd=()=>t=>lr({"*":(e,n,s)=>(e.content&&(e.content=s(e.content,n,s)),delete e.location,e)})(t,{}),ga=qd;var TC={":text":(t,r)=>(e,n,s)=>{e.value?t.write(n!=null&&n.maskMode?Jr(e.value):e.value):s(e.content,n)},"A<>":(t,r)=>(e,n,s)=>{if(!(n.alias&&n.alias.hasOwnProperty(e.content)))t.writeRaw(`A<${e.content}>`);else{let o=n.alias[e.content].join(`
12
+ `,!1),Y="\r",pe=K("\r",!1),ve=function(){return{type:"blankline"}},ke="=begin ",Le=K("=begin ",!1),Te="=end ",Fe=K("=end ",!1),ge="=for ",Pe=K("=for ",!1),Qe="=config",ne=K("=config",!1),$t="=alias",Xe=K("=alias",!1),wt=function(u){return eg(u)},nt=function(u){return u},z="=",H=K("=",!1),dr=M("text"),Lt=function(){return O()},kt=function(){return{type:"para",value:O(),error:!0,location:L()}},Tt=function(u,p){return Xi([u,p])},Ft=function(u){return[u]},ut=",",tr=K(",",!1),Vt=function(u,p){return Xi([u,p])},vr=/^[a-zA-Z0-9]/,Nr=P([["a","z"],["A","Z"],["0","9"]],!1,!1),xr=/^[a-zA-Z0-9_\-]/,jt=P([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Sn="=>",Pn=K("=>",!1),Tn=function(u,p){return{[u]:p}},Ce=function(u,p){return{...u,...p}},Hn=function(u){return u},Rr=":",Ee=K(":",!1),Ne="allow",At=K("allow",!1),ht="<",mr=K("<",!1),Re=">",_e=K(">",!1),te=function(u,p){return{value:p,type:"array"}},ce=function(u,p){return{name:"allow",...p}},Ae=function(u){return u},Be=function(u){return u},Ye=function(u){return[u]},Pt=function(){return[]},it=/^[!]/,vt=P(["!"],!1,!1),It="{",Xr=K("{",!1),gt="}",Fn=K("}",!1),hr=function(u,p,y){return{value:y,type:"map"}},si="[",oi=K("[",!1),Dr=function(u,p,y){return y},mn="]",Un=K("]",!1),ks=function(u,p){return[O()]},Gn=function(u,p,y){return{value:y,type:"array"}},ai=function(u,p,y){return{value:y,type:"array"}},ji=function(u,p,y){return{value:y,type:"string"}},In="(",Kn=K("(",!1),Bi=function(u,p,y){return y.length>1?{type:"array",value:y}:{type:"value",value:y[0]}},V=")",N=K(")",!1),J=function(u,p){return{value:O()}},re=function(u,p,y){return{type:"value",...y}},se=function(u,p){return{value:!u,type:"boolean"}},$e=function(u,p,y){return{name:p,...y}},Se=function(u,p){return p},je=function(u,p){return Xi([...u,...p])},We=/^[^'"]/,bt=P(["'",'"'],!0,!1),De=function(u){return u},at=/^[0-9]/,ft=P([["0","9"]],!1,!1),lt=/^[\-+]/,Ge=P(["-","+"],!1,!1),ct="True",et=K("True",!1),Mr=function(){return!0},Bt="False",rr=K("False",!1),st=function(){return!1},Ht=".",Zt=K(".",!1),Cr=/^[eE]/,Yr=P(["e","E"],!1,!1),Ar=/^["]/,hn=P(['"'],!1,!1),On=/^[^"]/,Nn=P(['"'],!0,!1),en=/^[']/,tn=P(["'"],!1,!1),Mt=/^[^']/,Er=P(["'"],!0,!1),gn=function(u){return parseFloat(u)},zr=function(u){return parseInt(u,10)},Mi=function(u,p,y){return p.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||Oo(p)},li=function(u,p,y,w,_){return u.length===w.length&&p===_},i=function(u,p,y,w,_){return tg(u,`${w}${_}`)},ue=function(u,p,y,w,_,E){return p===E},Vr=function(u,p,y,w,_,E){return{type:"block",content:w===""?[]:[{type:"verbatim",value:w.join("")}],name:p,margin:u}},Jt=function(u,p,y,w,_,E){return!0},rn=function(u,p,y,w,_,E){return{...E,text:O(),config:y,location:L()}},v=/^[\-+=_|]/,yn=P(["-","+","=","_","|"],!1,!1),Rn=function(){return{type:"separator",text:O()}},Hr=function(){return r.isDelimited},Dn=function(){return{type:"separator",text:O()}},zi=function(u){return{name:"row",type:"text",value:u}},Me=function(){return r.separators=[],!0},Ut=function(u,p){return r.separators.push(p.text),p},vs=function(u,p,y,w){return r.separators.push(w.text),w},nn=function(u,p,y,w){return[{name:"row",type:"text",value:y},w]},bn=function(u,p,y){return[y]},ui=function(u,p,y){return r.separators.length>1?!r.separators.every(w=>w===r.separators[0]):!0},qn=function(u,p,y){return[{name:"head",type:"text",value:u},p,...Xi(y)]},W=function(u,p){return[{name:"row",type:"text",value:u},p]},xs=function(u){return[...Xi(u)]},Vi=function(u,p,y){return p==="table"},Cs=function(u,p,y){return r.isDelimited=!0,!0},fi=function(u,p,y,w){return w},bo=function(u,p,y,w){return w.some(_=>_&&(_.name==="row"||_.name==="cell"))},ja=function(u,p,y,w,_,E){return{type:"block",content:w,name:p,margin:u}},Hi=function(u,p,y,w,_,E){return{...E,text:O(),config:y,location:L()}},sn=function(u,p,y){return r.isDelimited=!0,!0},$o=function(u,p,y,w){return w},wo=function(u,p,y,w,_,E){return{type:"block",content:w,name:p,margin:u}},Ba=function(u,p,y,w,_,E){return{...E,text:O(),config:y,location:L()}},ko=function(u,p,y,w){return w},vo=function(u,p,y,w,_){let E=p.match(/pod|nested|item|code|defn/)&&w.length-u.length>0?"code":"para";return{text:_,margin:w,type:E,content:[{type:E==="code"?"verbatim":"text",value:_}],location:L()}},Ma=function(u,p,y,w,_,E){return{type:"block",content:w,name:p,margin:u}},za=function(u,p,y,w,_,E){return{...E,config:y,location:L()}},xo=function(){return{text:O(),type:"para",margin:"",content:[{type:"text",value:O()}],location:L()}},Ln=function(){return{empty:1}},zt=/^[s]/,Wn=P(["s"],!1,!1),ci=function(u){return{text:O(),type:"ambient1"}},qr=function(u,p){return p.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||Oo(p)},Va=function(u,p,y){return{margin:u,type:"block",content:y===""?[]:[{type:"verbatim",value:y}],name:p,config:[],location:L()}},Co=function(u,p){return p==="table"},$n=function(u,p){return r.isDelimited=!1,!0},pi=function(u,p,y){return{margin:u,type:"block",content:y===""?[]:y,name:p,config:[],location:L()}},Ui=function(u,p,y,w){let _=(y===`
13
+ `?"":y)+w;return{margin:u,type:"block",content:_===""?[]:[{type:"para",text:_,margin:"",content:[{type:"text",value:_}],location:L()}],name:p,location:L()}},Gi="= ",Ao=K("= ",!1),Ha=function(u,p,y,w){return{name:y,type:"alias",replacement:w,margin:u}},Ua=/^[A-Z]/,Ga=P([["A","Z"]],!1,!1),Eo="<>",_o=K("<>",!1),So=function(u,p,y,w){return{name:y,type:"config",config:w,margin:u}},Po="=boundary",As=K("=boundary",!1),Et=function(u,p,y){return{name:"boundary",type:"block",content:[],config:y,margin:u,location:L()}},qe=function(u,p,y,w){return y.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||Oo(y)},Ki=function(u,p,y,w,_){return{type:"block",content:_===""?[]:[{type:"verbatim",value:_}],name:y,margin:u,config:w,location:L()}},Yf=function(u,p,y,w){return y==="table"},nr=function(u,p,y,w){return r.isDelimited=!1,!0},wn=function(u,p,y,w,_){return{type:"block",content:_===""?[]:_,name:y,margin:u,config:w,location:L()}},pt=function(u,p,y,w,_){return{type:"block",content:_===""?[]:[{type:"para",content:[{type:"text",value:_}],margin:u,text:_,location:L()}],name:y,margin:u,config:w,location:L()}},Ka=/^[a-zA-Z]/,Wa=P([["a","z"],["A","Z"]],!1,!1),Za=M("whitespace"),Wi=/^[\r\n \t\f]/,Zi=P(["\r",`
14
+ `," "," ","\f"],!1,!1),Ja=M("space characters"),a=0,oe=0,d=[{line:1,column:1}],b=0,S=[],m=0,A;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=n[r.startRule]}function O(){return t.substring(oe,a)}function L(){return Es(oe,a)}function T(u,p){throw p=p!==void 0?p:Es(oe,a),ec([M(u)],t.substring(oe,a),p)}function q(u,p){throw p=p!==void 0?p:Es(oe,a),zh(u,p)}function K(u,p){return{type:"literal",text:u,ignoreCase:p}}function P(u,p,y){return{type:"class",parts:u,inverted:p,ignoreCase:y}}function ee(){return{type:"any"}}function U(){return{type:"end"}}function M(u){return{type:"other",description:u}}function Z(u){var p=d[u],y;if(p)return p;for(y=u-1;!d[y];)y--;for(p=d[y],p={line:p.line,column:p.column};y<u;)t.charCodeAt(y)===10?(p.line++,p.column=1):p.column++,y++;return d[u]=p,p}function Es(u,p){var y=Z(u),w=Z(p);return{start:{offset:u,line:y.line,column:y.column},end:{offset:p,line:w.line,column:w.column}}}function ae(u){a<b||(a>b&&(b=a,S=[]),S.push(u))}function zh(u,p){return new Pi(u,null,null,p)}function ec(u,p,y){return new Pi(Pi.buildMessage(u,p),u,p,y)}function tc(){var u,p,y;for(u=a,p=[],y=rc();y!==e;)p.push(y),y=rc();return p!==e&&(oe=u,p=o(p)),u=p,u}function Vh(){var u,p,y,w;if(u=a,p=ye(),p!==e){for(y=[],w=Jn();w!==e;)y.push(w),w=Jn();y!==e?(w=ye(),w!==e?(oe=u,p=l(y),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u}function rc(){var u,p,y,w,_,E,G,Q;if(u=Ps(),u===e&&(u=Jh(),u===e&&(u=Xa(),u===e&&(u=Ts(),u===e&&(u=Os(),u===e&&(u=nl(),u===e&&(u=Ns(),u===e&&(u=el(),u===e&&(u=tl(),u===e&&(u=rl(),u===e&&(u=Fs(),u===e&&(u=Ya(),u===e&&(u=Is(),u===e&&(u=a,oe=a,p=f(),p?p=void 0:p=e,p!==e?(y=Qh(),y===e&&(y=Ur(),y===e&&(y=Uh())),y!==e?(oe=u,p=c(y),u=p):(a=u,u=e)):(a=u,u=e),u===e)))))))))))))){if(u=a,p=a,y=[],w=a,_=a,m++,E=a,G=jn(),G!==e?(Q=Gt(),Q!==e?(G=[G,Q],E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=gi()),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e),w!==e)for(;w!==e;)y.push(w),w=a,_=a,m++,E=a,G=jn(),G!==e?(Q=Gt(),Q!==e?(G=[G,Q],E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=gi()),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e);else y=e;y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=h()),u=p}return u}function Rt(){var u;return $.test(t.charAt(a))?(u=t.charAt(a),a++):(u=e,m===0&&ae(k)),u}function ye(){var u,p;for(u=[],x.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(C));p!==e;)u.push(p),x.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(C));return u}function Zn(){var u,p,y,w;for(u=a,p=a,y=[],w=Rt();w!==e;)y.push(w),w=Rt();return y!==e?(I.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(R)),w!==e?(y=[y,w],p=y):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p,u}function v1(){var u,p,y,w;if(u=a,p=a,y=[],w=_s(),w!==e)for(;w!==e;)y.push(w),w=_s();else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e?(y=mi(),y!==e?(oe=u,p=B(p),u=p):(a=u,u=e)):(a=u,u=e),u}function _s(){var u;return X.test(t.charAt(a))?(u=t.charAt(a),a++):(u=e,m===0&&ae(le)),u}function di(){var u,p,y;return t.charCodeAt(a)===10?(u=be,a++):(u=e,m===0&&ae(he)),u===e&&(u=a,t.charCodeAt(a)===13?(p=Y,a++):(p=e,m===0&&ae(pe)),p!==e?(t.charCodeAt(a)===10?(y=be,a++):(y=e,m===0&&ae(he)),y===e&&(y=null),y!==e?(p=[p,y],u=p):(a=u,u=e)):(a=u,u=e)),u}function mi(){var u,p;return u=di(),u===e&&(u=a,m++,t.length>a?(p=t.charAt(a),a++):(p=e,m===0&&ae(g)),m--,p===e?u=void 0:(a=u,u=e)),u}function Lr(){var u,p,y,w;for(u=a,p=a,y=[],w=Rt();w!==e;)y.push(w),w=Rt();return y!==e?(I.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(R)),w!==e?(y=[y,w],p=y):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p,u}function Ur(){var u,p,y,w,_;for(u=a,p=a,y=a,w=[],_=Rt();_!==e;)w.push(_),_=Rt();return w!==e?(I.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(R)),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e),y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=ve()),u=p,u}function Ss(){var u;return t.substr(a,7)===ke?(u=ke,a+=7):(u=e,m===0&&ae(Le)),u}function hi(){var u;return t.substr(a,5)===Te?(u=Te,a+=5):(u=e,m===0&&ae(Fe)),u}function To(){var u;return t.substr(a,5)===ge?(u=ge,a+=5):(u=e,m===0&&ae(Pe)),u}function nc(){var u;return t.substr(a,7)===Qe?(u=Qe,a+=7):(u=e,m===0&&ae(ne)),u}function ic(){var u;return t.substr(a,6)===$t?(u=$t,a+=6):(u=e,m===0&&ae(Xe)),u}function Gt(){var u,p,y;return u=a,p=il(),p!==e?(oe=a,y=wt(p),y?y=void 0:y=e,y!==e?(oe=u,p=nt(p),u=p):(a=u,u=e)):(a=u,u=e),u}function gi(){var u,p,y;return u=a,t.charCodeAt(a)===61?(p=z,a++):(p=e,m===0&&ae(H)),p!==e?(y=Gt(),y!==e?(oe=u,p=nt(y),u=p):(a=u,u=e)):(a=u,u=e),u}function jn(){var u;return u=Ss(),u===e&&(u=hi(),u===e&&(u=To(),u===e&&(u=nc(),u===e&&(u=ic())))),u}function Gr(){var u,p,y;if(m++,u=a,p=[],y=_s(),y!==e)for(;y!==e;)p.push(y),y=_s();else p=e;return p!==e?u=t.substring(u,a):u=p,m--,u===e&&(p=e,m===0&&ae(dr)),u}function Qt(){var u,p,y,w,_,E,G;if(u=a,p=a,m++,y=a,w=ye(),w!==e?(_=nc(),_===e&&(_=ic(),_===e&&(_=a,E=jn(),E!==e?(G=Gt(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_===e&&(_=gi()))),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e),y===e&&(y=Ur()),m--,y===e?p=void 0:(a=p,p=e),p!==e){if(y=a,w=[],_=Gr(),_!==e)for(;_!==e;)w.push(_),_=Gr();else w=e;w!==e?y=t.substring(y,a):y=w,y!==e?(w=mi(),w!==e?(oe=u,p=Lt(),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u}function Hh(){var u,p,y,w;if(u=a,p=a,y=[],w=Gr(),w!==e)for(;w!==e;)y.push(w),w=Gr();else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e?(y=mi(),y!==e?(oe=u,p=Lt(),u=p):(a=u,u=e)):(a=u,u=e),u}function Uh(){var u,p,y,w,_,E;if(u=a,p=a,y=[],w=a,_=a,m++,E=mi(),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e),w!==e)for(;w!==e;)y.push(w),w=a,_=a,m++,E=mi(),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e);else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e?(y=mi(),y!==e?(oe=u,p=kt(),u=p):(a=u,u=e)):(a=u,u=e),u}function sc(){var u,p,y,w;if(u=a,p=oc(),p!==e){if(y=[],w=Rt(),w!==e)for(;w!==e;)y.push(w),w=Rt();else y=e;y!==e?(w=sc(),w!==e?(oe=u,p=Tt(p,w),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u===e&&(u=a,p=oc(),p!==e&&(oe=u,p=Ft(p)),u=p),u}function oc(){var u,p;return u=a,p=_s(),p!==e?u=t.substring(u,a):u=p,u}function Fo(){var u,p,y,w,_,E;if(u=a,p=Ji(),p!==e){if(y=[],w=Rt(),w!==e)for(;w!==e;)y.push(w),w=Rt();else y=e;y===e&&(y=a,w=ye(),w!==e?(t.charCodeAt(a)===44?(_=ut,a++):(_=e,m===0&&ae(tr)),_!==e?(E=ye(),E!==e?(w=[w,_,E],y=w):(a=y,y=e)):(a=y,y=e)):(a=y,y=e)),y!==e?(w=Fo(),w!==e?(oe=u,p=Vt(p,w),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u===e&&(u=a,p=Ji(),p!==e&&(oe=u,p=Ft(p)),u=p),u}function Gh(){var u,p,y,w,_;if(u=a,p=a,y=[],vr.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Nr)),w!==e)for(;w!==e;)y.push(w),vr.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Nr));else y=e;if(y!==e){for(w=[],xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));_!==e;)w.push(_),xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));w!==e?(y=[y,w],p=y):(a=p,p=e)}else a=p,p=e;return p!==e?u=t.substring(u,a):u=p,u}function ac(){var u,p,y,w,_,E;return u=a,p=Gh(),p!==e?(y=ye(),y!==e?(t.charCodeAt(a)===44?(w=ut,a++):(w=e,m===0&&ae(tr)),w===e&&(t.substr(a,2)===Sn?(w=Sn,a+=2):(w=e,m===0&&ae(Pn))),w!==e?(_=ye(),_!==e?(E=Ji(),E!==e?(oe=u,p=Tn(p,E),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function lc(){var u,p,y,w,_,E;return u=a,p=ac(),p!==e?(y=ye(),y!==e?(t.charCodeAt(a)===44?(w=ut,a++):(w=e,m===0&&ae(tr)),w!==e?(_=ye(),_!==e?(E=lc(),E!==e?(oe=u,p=Ce(p,E),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u===e&&(u=a,p=ac(),p!==e&&(oe=u,p=Hn(p)),u=p),u}function Kh(){var u,p,y,w,_,E,G,Q,F,D;return u=a,p=ye(),p!==e?(t.charCodeAt(a)===58?(y=Rr,a++):(y=e,m===0&&ae(Ee)),y!==e?(t.substr(a,5)===Ne?(w=Ne,a+=5):(w=e,m===0&&ae(At)),w!==e?(_=a,t.charCodeAt(a)===60?(E=ht,a++):(E=e,m===0&&ae(mr)),E!==e?(G=ye(),G!==e?(Q=sc(),Q!==e?(F=ye(),F!==e?(t.charCodeAt(a)===62?(D=Re,a++):(D=e,m===0&&ae(_e)),D!==e?(oe=_,E=te(w,Q),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)):(a=_,_=e),_!==e?(E=ye(),E!==e?(oe=u,p=ce(w,_),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function x1(){var u,p,y,w,_,E;for(u=a,p=[],y=a,w=ye(),w!==e?(_=Ji(),_!==e?(E=ye(),E!==e?(oe=y,w=Ae(_),y=w):(a=y,y=e)):(a=y,y=e)):(a=y,y=e);y!==e;)p.push(y),y=a,w=ye(),w!==e?(_=Ji(),_!==e?(E=ye(),E!==e?(oe=y,w=Ae(_),y=w):(a=y,y=e)):(a=y,y=e)):(a=y,y=e);return p!==e&&(oe=u,p=Be(p)),u=p,u===e&&(u=a,p=Ji(),p!==e&&(oe=u,p=Ye(p)),u=p,u===e&&(u=a,p=ye(),p!==e&&(oe=u,p=Pt()),u=p)),u}function Jn(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me;if(u=Kh(),u===e)if(u=a,p=ye(),p!==e)if(t.charCodeAt(a)===58?(y=Rr,a++):(y=e,m===0&&ae(Ee)),y!==e)if(it.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(vt)),w===e&&(w=null),w!==e)if(_=il(),_!==e){if(E=a,t.charCodeAt(a)===123?(G=It,a++):(G=e,m===0&&ae(Xr)),G!==e?(Q=ye(),Q!==e?(F=lc(),F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===125?(j=gt,a++):(j=e,m===0&&ae(Fn)),j!==e?(oe=E,G=hr(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e),E===e){if(E=a,t.charCodeAt(a)===91?(G=si,a++):(G=e,m===0&&ae(oi)),G!==e)if(Q=ye(),Q!==e){if(F=a,D=Fo(),D!==e&&(oe=F,D=Dr(w,_,D)),F=D,F===e){if(F=a,D=a,j=[],ie=a,fe=a,m++,t.charCodeAt(a)===93?(me=mn,a++):(me=e,m===0&&ae(Un)),me===e&&(t.charCodeAt(a)===91?(me=si,a++):(me=e,m===0&&ae(oi))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e),ie!==e)for(;ie!==e;)j.push(ie),ie=a,fe=a,m++,t.charCodeAt(a)===93?(me=mn,a++):(me=e,m===0&&ae(Un)),me===e&&(t.charCodeAt(a)===91?(me=si,a++):(me=e,m===0&&ae(oi))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e);else j=e;j!==e?D=t.substring(D,a):D=j,D!==e&&(oe=F,D=ks(w,_)),F=D}F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===93?(j=mn,a++):(j=e,m===0&&ae(Un)),j!==e?(oe=E,G=Gn(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)}else a=E,E=e;else a=E,E=e;if(E===e&&(E=a,t.charCodeAt(a)===60?(G=ht,a++):(G=e,m===0&&ae(mr)),G!==e?(Q=ye(),Q!==e?(F=Fo(),F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===62?(j=Re,a++):(j=e,m===0&&ae(_e)),j!==e?(oe=E,G=ai(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e),E===e)){if(E=a,t.charCodeAt(a)===60?(G=ht,a++):(G=e,m===0&&ae(mr)),G!==e)if(Q=ye(),Q!==e){if(F=a,D=[],j=a,ie=a,m++,t.charCodeAt(a)===60?(fe=ht,a++):(fe=e,m===0&&ae(mr)),fe===e&&(t.charCodeAt(a)===62?(fe=Re,a++):(fe=e,m===0&&ae(_e))),m--,fe===e?ie=void 0:(a=ie,ie=e),ie!==e?(t.length>a?(fe=t.charAt(a),a++):(fe=e,m===0&&ae(g)),fe!==e?(ie=[ie,fe],j=ie):(a=j,j=e)):(a=j,j=e),j!==e)for(;j!==e;)D.push(j),j=a,ie=a,m++,t.charCodeAt(a)===60?(fe=ht,a++):(fe=e,m===0&&ae(mr)),fe===e&&(t.charCodeAt(a)===62?(fe=Re,a++):(fe=e,m===0&&ae(_e))),m--,fe===e?ie=void 0:(a=ie,ie=e),ie!==e?(t.length>a?(fe=t.charAt(a),a++):(fe=e,m===0&&ae(g)),fe!==e?(ie=[ie,fe],j=ie):(a=j,j=e)):(a=j,j=e);else D=e;D!==e?F=t.substring(F,a):F=D,F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===62?(j=Re,a++):(j=e,m===0&&ae(_e)),j!==e?(oe=E,G=ji(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)}else a=E,E=e;else a=E,E=e;if(E===e){if(E=a,t.charCodeAt(a)===40?(G=In,a++):(G=e,m===0&&ae(Kn)),G!==e)if(Q=ye(),Q!==e){if(F=a,D=Fo(),D!==e&&(oe=F,D=Bi(w,_,D)),F=D,F===e){if(F=a,D=a,j=[],ie=a,fe=a,m++,t.charCodeAt(a)===41?(me=V,a++):(me=e,m===0&&ae(N)),me===e&&(t.charCodeAt(a)===40?(me=In,a++):(me=e,m===0&&ae(Kn))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e),ie!==e)for(;ie!==e;)j.push(ie),ie=a,fe=a,m++,t.charCodeAt(a)===41?(me=V,a++):(me=e,m===0&&ae(N)),me===e&&(t.charCodeAt(a)===40?(me=In,a++):(me=e,m===0&&ae(Kn))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e);else j=e;j!==e?D=t.substring(D,a):D=j,D!==e&&(oe=F,D=J(w,_)),F=D}F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===41?(j=V,a++):(j=e,m===0&&ae(N)),j!==e?(oe=E,G=re(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)}else a=E,E=e;else a=E,E=e;E===e&&(E=a,G=ye(),G!==e&&(oe=E,G=se(w,_)),E=G)}}}E!==e?(G=ye(),G!==e?(oe=u,p=$e(w,_,E),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Bn(){var u,p,y,w,_,E,G,Q,F,D;for(u=a,p=[],y=Jn();y!==e;)p.push(y),y=Jn();if(p!==e)if(y=di(),y!==e){if(w=[],_=a,t.charCodeAt(a)===61?(E=z,a++):(E=e,m===0&&ae(H)),E!==e)if(G=ye(),G!==e){if(Q=[],F=Jn(),F!==e)for(;F!==e;)Q.push(F),F=Jn();else Q=e;Q!==e?(F=ye(),F!==e?(D=di(),D!==e?(oe=_,E=Se(p,Q),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;for(;_!==e;)if(w.push(_),_=a,t.charCodeAt(a)===61?(E=z,a++):(E=e,m===0&&ae(H)),E!==e)if(G=ye(),G!==e){if(Q=[],F=Jn(),F!==e)for(;F!==e;)Q.push(F),F=Jn();else Q=e;Q!==e?(F=ye(),F!==e?(D=di(),D!==e?(oe=_,E=Se(p,Q),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;w!==e?(oe=u,p=je(p,w),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;return u}function C1(){var u,p,y,w;if(u=a,p=a,y=[],We.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(bt)),w!==e)for(;w!==e;)y.push(w),We.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(bt));else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=De(p)),u=p,u}function uc(){var u,p,y;if(u=a,p=[],at.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(ft)),y!==e)for(;y!==e;)p.push(y),at.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(ft));else p=e;return p!==e?u=t.substring(u,a):u=p,u}function Io(){var u,p,y,w,_;if(u=a,p=a,lt.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(Ge)),y===e&&(y=null),y!==e){if(w=[],at.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(ft)),_!==e)for(;_!==e;)w.push(_),at.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(ft));else w=e;w!==e?(y=[y,w],p=y):(a=p,p=e)}else a=p,p=e;return p!==e?u=t.substring(u,a):u=p,u}function Wh(){var u,p;return u=a,t.substr(a,4)===ct?(p=ct,a+=4):(p=e,m===0&&ae(et)),p!==e&&(oe=u,p=Mr()),u=p,u===e&&(u=a,t.substr(a,5)===Bt?(p=Bt,a+=5):(p=e,m===0&&ae(rr)),p!==e&&(oe=u,p=st()),u=p),u}function Zh(){var u,p,y,w,_,E;return u=a,p=a,y=Io(),y!==e?(w=a,t.charCodeAt(a)===46?(_=Ht,a++):(_=e,m===0&&ae(Zt)),_!==e?(E=uc(),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e),w===e&&(w=null),w!==e?(Cr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Yr)),_!==e?(E=Io(),E!==e?(y=[y,w,_,E],p=y):(a=p,p=e)):(a=p,p=e)):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p,u===e&&(u=a,p=a,y=Io(),y!==e?(t.charCodeAt(a)===46?(w=Ht,a++):(w=e,m===0&&ae(Zt)),w!==e?(_=uc(),_!==e?(y=[y,w,_],p=y):(a=p,p=e)):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p),u}function Ji(){var u,p,y,w,_;if(u=a,Ar.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(hn)),p!==e){for(y=a,w=[],On.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Nn));_!==e;)w.push(_),On.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Nn));w!==e?y=t.substring(y,a):y=w,y!==e?(Ar.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(hn)),w!==e?(oe=u,p=De(y),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;if(u===e){if(u=a,en.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(tn)),p!==e){for(y=a,w=[],Mt.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Er));_!==e;)w.push(_),Mt.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Er));w!==e?y=t.substring(y,a):y=w,y!==e?(en.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(tn)),w!==e?(oe=u,p=De(y),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;u===e&&(u=Wh(),u===e&&(u=a,p=Zh(),p!==e&&(oe=u,p=gn(p)),u=p,u===e&&(u=a,p=Io(),p!==e&&(oe=u,p=zr(p)),u=p)))}return u}function Ps(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me,ot,jr,Wr;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=Mi(p,w,E),G?G=void 0:G=e,G!==e){if(Q=[],F=a,D=a,j=ye(),j!==e?D=t.substring(D,a):D=j,D!==e?(j=a,ie=Zn(),ie===e&&(ie=a,fe=a,m++,me=jn(),m--,me===e?fe=void 0:(a=fe,fe=e),fe===e&&(fe=a,m++,me=a,ot=hi(),ot!==e?(jr=Gt(),jr!==e?(oe=a,Wr=li(p,w,E,D,jr),Wr?Wr=void 0:Wr=e,Wr!==e?(ot=[ot,jr,Wr],me=ot):(a=me,me=e)):(a=me,me=e)):(a=me,me=e),m--,me===e?fe=void 0:(a=fe,fe=e)),fe!==e?(me=Gr(),me!==e?(ot=Zn(),ot===e&&(ot=null),ot!==e?(fe=[fe,me,ot],ie=fe):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e)),ie!==e?j=t.substring(j,a):j=ie,j!==e?(oe=F,D=i(p,w,E,D,j),F=D):(a=F,F=e)):(a=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=a,D=a,j=ye(),j!==e?D=t.substring(D,a):D=j,D!==e?(j=a,ie=Zn(),ie===e&&(ie=a,fe=a,m++,me=jn(),m--,me===e?fe=void 0:(a=fe,fe=e),fe===e&&(fe=a,m++,me=a,ot=hi(),ot!==e?(jr=Gt(),jr!==e?(oe=a,Wr=li(p,w,E,D,jr),Wr?Wr=void 0:Wr=e,Wr!==e?(ot=[ot,jr,Wr],me=ot):(a=me,me=e)):(a=me,me=e)):(a=me,me=e),m--,me===e?fe=void 0:(a=fe,fe=e)),fe!==e?(me=Gr(),me!==e?(ot=Zn(),ot===e&&(ot=null),ot!==e?(fe=[fe,me,ot],ie=fe):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e)),ie!==e?j=t.substring(j,a):j=ie,j!==e?(oe=F,D=i(p,w,E,D,j),F=D):(a=F,F=e)):(a=F,F=e);else Q=e;Q!==e?(F=a,D=ye(),D!==e?F=t.substring(F,a):F=D,F!==e?(D=a,j=hi(),j!==e?(ie=Gt(),ie!==e?(oe=a,fe=ue(p,w,E,Q,F,ie),fe?fe=void 0:fe=e,fe!==e?(me=Zn(),me===e&&(me=null),me!==e?(oe=D,j=Vr(p,w,E,Q,F,ie),D=j):(a=D,D=e)):(a=D,D=e)):(a=D,D=e)):(a=D,D=e),D!==e?(oe=a,j=Jt(p,w,E,Q,F,D),j?j=void 0:j=e,j!==e?(oe=u,p=rn(p,w,E,Q,F,D),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Qi(){var u,p,y,w,_,E,G,Q,F;if(u=a,p=a,m++,y=a,w=ye(),w!==e?(_=jn(),_===e&&(_=gi()),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e),y===e&&(y=Ur()),m--,y===e?p=void 0:(a=p,p=e),p!==e){for(y=[],w=Rt();w!==e;)y.push(w),w=Rt();if(y!==e){if(w=a,_=[],E=a,v.test(t.charAt(a))?(G=t.charAt(a),a++):(G=e,m===0&&ae(yn)),G!==e){for(Q=[],F=Rt();F!==e;)Q.push(F),F=Rt();Q!==e?(G=[G,Q],E=G):(a=E,E=e)}else a=E,E=e;if(E!==e)for(;E!==e;)if(_.push(E),E=a,v.test(t.charAt(a))?(G=t.charAt(a),a++):(G=e,m===0&&ae(yn)),G!==e){for(Q=[],F=Rt();F!==e;)Q.push(F),F=Rt();Q!==e?(G=[G,Q],E=G):(a=E,E=e)}else a=E,E=e;else _=e;_!==e?w=t.substring(w,a):w=_,w!==e?(_=mi(),_!==e?(oe=u,p=Rn(),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e}else a=u,u=e;return u}function _r(){var u,p,y,w,_;return u=a,p=a,y=Qi(),y===e&&(y=a,oe=a,w=Hr(),w?w=void 0:w=e,w!==e?(_=Ur(),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e)),y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=Dn()),u=p,u}function Kr(){var u,p;return u=a,p=Qt(),p!==e&&(oe=u,p=zi(p)),u=p,u}function Qa(){var u,p,y,w,_,E,G,Q,F,D,j;if(u=a,oe=a,p=Me(),p?p=void 0:p=e,p!==e){if(y=a,w=[],_=a,E=a,m++,G=Qi(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_!==e)for(;_!==e;)w.push(_),_=a,E=a,m++,G=Qi(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e);else w=e;if(w!==e?y=t.substring(y,a):y=w,y!==e)if(w=a,_=Qi(),_!==e&&(oe=w,_=Ut(y,_)),w=_,w!==e){if(_=[],E=a,G=a,Q=[],F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);else Q=e;if(Q!==e?G=t.substring(G,a):G=Q,G!==e?(Q=a,F=_r(),F!==e&&(oe=Q,F=vs(y,w,G,F)),Q=F,Q!==e?(oe=E,G=nn(y,w,G,Q),E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=a,G=a,m++,Q=Qi(),m--,Q===e?G=void 0:(a=G,G=e),G!==e?(Q=a,m++,F=_r(),m--,F===e?Q=void 0:(a=Q,Q=e),Q!==e?(F=Kr(),F!==e?(oe=E,G=bn(y,w,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)),E!==e)for(;E!==e;){if(_.push(E),E=a,G=a,Q=[],F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);else Q=e;Q!==e?G=t.substring(G,a):G=Q,G!==e?(Q=a,F=_r(),F!==e&&(oe=Q,F=vs(y,w,G,F)),Q=F,Q!==e?(oe=E,G=nn(y,w,G,Q),E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=a,G=a,m++,Q=Qi(),m--,Q===e?G=void 0:(a=G,G=e),G!==e?(Q=a,m++,F=_r(),m--,F===e?Q=void 0:(a=Q,Q=e),Q!==e?(F=Kr(),F!==e?(oe=E,G=bn(y,w,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e))}else _=e;_!==e?(oe=a,E=ui(y,w,_),E?E=void 0:E=e,E!==e?(oe=u,p=qn(y,w,_),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e}else a=u,u=e;if(u===e){if(u=a,p=[],y=a,w=a,_=a,E=a,m++,G=_r(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_!==e?w=t.substring(w,a):w=_,w!==e){for(_=[],E=_r();E!==e;)_.push(E),E=_r();_!==e?(oe=y,w=W(w,_),y=w):(a=y,y=e)}else a=y,y=e;if(y!==e)for(;y!==e;)if(p.push(y),y=a,w=a,_=a,E=a,m++,G=_r(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_!==e?w=t.substring(w,a):w=_,w!==e){for(_=[],E=_r();E!==e;)_.push(E),E=_r();_!==e?(oe=y,w=W(w,_),y=w):(a=y,y=e)}else a=y,y=e;else p=e;if(p!==e&&(oe=u,p=xs(p)),u=p,u===e)if(u=[],p=Kr(),p!==e)for(;p!==e;)u.push(p),p=Kr();else u=e}return u}function Jh(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me,ot,jr;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=Vi(p,w,E),G?G=void 0:G=e,G!==e)if(oe=a,Q=Cs(p,w,E),Q?Q=void 0:Q=e,Q!==e){for(F=a,D=[],j=Ur(),j===e&&(j=Ps(),j===e&&(j=Ts(),j===e&&(j=Os(),j===e&&(j=Ns(),j===e&&(j=Fs(),j===e&&(j=Is()))))));j!==e;)D.push(j),j=Ur(),j===e&&(j=Ps(),j===e&&(j=Ts(),j===e&&(j=Os(),j===e&&(j=Ns(),j===e&&(j=Fs(),j===e&&(j=Is()))))));D!==e&&(oe=F,D=fi(p,w,E,D)),F=D,F!==e?(oe=a,D=bo(p,w,E,F),D?D=void 0:D=e,D!==e?(j=a,ie=ye(),ie!==e?j=t.substring(j,a):j=ie,j!==e?(ie=a,fe=hi(),fe!==e?(me=Gt(),me!==e?(oe=a,ot=ue(p,w,E,F,j,me),ot?ot=void 0:ot=e,ot!==e?(jr=Zn(),jr===e&&(jr=null),jr!==e?(oe=ie,fe=ja(p,w,E,F,j,me),ie=fe):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e),ie!==e?(oe=u,p=Hi(p,w,E,F,j,ie),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Xa(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me,ot;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=Vi(p,w,E),G?G=void 0:G=e,G!==e)if(oe=a,Q=sn(p,w,E),Q?Q=void 0:Q=e,Q!==e){for(F=a,D=[],j=Ur();j!==e;)D.push(j),j=Ur();if(D!==e)if(j=Qa(),j!==e){for(ie=[],fe=Ur();fe!==e;)ie.push(fe),fe=Ur();ie!==e?(oe=F,D=$o(p,w,E,j),F=D):(a=F,F=e)}else a=F,F=e;else a=F,F=e;F!==e?(D=a,j=ye(),j!==e?D=t.substring(D,a):D=j,D!==e?(j=a,ie=hi(),ie!==e?(fe=Gt(),fe!==e?(oe=a,me=ue(p,w,E,F,D,fe),me?me=void 0:me=e,me!==e?(ot=Zn(),ot===e&&(ot=null),ot!==e?(oe=j,ie=wo(p,w,E,F,D,fe),j=ie):(a=j,j=e)):(a=j,j=e)):(a=j,j=e)):(a=j,j=e),j!==e?(oe=a,ie=Jt(p,w,E,F,D,j),ie?ie=void 0:ie=e,ie!==e?(oe=u,p=Ba(p,w,E,F,D,j),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Ts(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e){if(G=[],Q=a,F=Ur(),F===e&&(F=Ps(),F===e&&(F=Xa(),F===e&&(F=Ts(),F===e&&(F=Os(),F===e&&(F=nl(),F===e&&(F=Ns(),F===e&&(F=el(),F===e&&(F=tl(),F===e&&(F=rl(),F===e&&(F=Fs(),F===e&&(F=Ya(),F===e&&(F=Is())))))))))))),F!==e&&(oe=Q,F=ko(p,w,E,F)),Q=F,Q===e){for(Q=a,F=a,D=[],j=Rt();j!==e;)D.push(j),j=Rt();if(D!==e?F=t.substring(F,a):F=D,F!==e){if(D=a,j=[],ie=Qt(),ie!==e)for(;ie!==e;)j.push(ie),ie=Qt();else j=e;j!==e?D=t.substring(D,a):D=j,D!==e?(oe=Q,F=vo(p,w,E,F,D),Q=F):(a=Q,Q=e)}else a=Q,Q=e}for(;Q!==e;)if(G.push(Q),Q=a,F=Ur(),F===e&&(F=Ps(),F===e&&(F=Xa(),F===e&&(F=Ts(),F===e&&(F=Os(),F===e&&(F=nl(),F===e&&(F=Ns(),F===e&&(F=el(),F===e&&(F=tl(),F===e&&(F=rl(),F===e&&(F=Fs(),F===e&&(F=Ya(),F===e&&(F=Is())))))))))))),F!==e&&(oe=Q,F=ko(p,w,E,F)),Q=F,Q===e){for(Q=a,F=a,D=[],j=Rt();j!==e;)D.push(j),j=Rt();if(D!==e?F=t.substring(F,a):F=D,F!==e){if(D=a,j=[],ie=Qt(),ie!==e)for(;ie!==e;)j.push(ie),ie=Qt();else j=e;j!==e?D=t.substring(D,a):D=j,D!==e?(oe=Q,F=vo(p,w,E,F,D),Q=F):(a=Q,Q=e)}else a=Q,Q=e}G!==e?(Q=a,F=ye(),F!==e?Q=t.substring(Q,a):Q=F,Q!==e?(F=a,D=hi(),D!==e?(j=Gt(),j!==e?(oe=a,ie=ue(p,w,E,G,Q,j),ie?ie=void 0:ie=e,ie!==e?(fe=Zn(),fe===e&&(fe=null),fe!==e?(oe=F,D=Ma(p,w,E,G,Q,j),F=D):(a=F,F=e)):(a=F,F=e)):(a=F,F=e)):(a=F,F=e),F!==e?(oe=a,D=Jt(p,w,E,G,Q,F),D?D=void 0:D=e,D!==e?(oe=u,p=za(p,w,E,G,Q,F),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Qh(){var u,p,y;if(u=a,p=[],y=Qt(),y!==e)for(;y!==e;)p.push(y),y=Qt();else p=e;return p!==e&&(oe=u,p=xo()),u=p,u}function A1(){var u,p,y,w;if(u=a,p=[],y=a,w=Lr(),w!==e&&(oe=y,w=Ln()),y=w,y===e){if(y=[],zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn)),w!==e)for(;w!==e;)y.push(w),zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn));else y=e;y===e&&(y=Qt())}if(y!==e){for(;y!==e;)if(p.push(y),y=a,w=Lr(),w!==e&&(oe=y,w=Ln()),y=w,y===e){if(y=[],zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn)),w!==e)for(;w!==e;)y.push(w),zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn));else y=e;y===e&&(y=Qt())}}else p=e;return p!==e&&(oe=u,p=ci(p)),u=p,u}function Fs(){var u,p,y,w,_,E,G,Q,F,D,j,ie;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=a,m++,w=jn(),m--,w===e?y=void 0:(a=y,y=e),y!==e)if(w=gi(),w!==e)if(_=ye(),_!==e)if(E=Lr(),E===e&&(E=null),E!==e)if(oe=a,G=qr(p,w),G?G=void 0:G=e,G!==e){for(Q=a,F=[],D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);D!==e;)F.push(D),D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);F!==e?Q=t.substring(Q,a):Q=F,Q!==e?(oe=u,p=Va(p,w,Q),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Ya(){var u,p,y,w,_,E,G,Q,F;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(y=a,m++,w=jn(),m--,w===e?y=void 0:(a=y,y=e),y!==e?(w=gi(),w!==e?(_=ye(),_!==e?(E=Lr(),E===e&&(E=null),E!==e?(oe=a,G=Co(p,w),G?G=void 0:G=e,G!==e?(oe=a,Q=$n(p,w),Q?Q=void 0:Q=e,Q!==e?(F=Qa(),F!==e?(oe=u,p=pi(p,w,F),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function Is(){var u,p,y,w,_,E,G,Q,F,D,j;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=a,m++,w=jn(),m--,w===e?y=void 0:(a=y,y=e),y!==e)if(w=gi(),w!==e)if(_=ye(),_!==e)if(E=Lr(),E===e&&(E=Hh()),E!==e){for(G=a,Q=[],F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);F!==e;)Q.push(F),F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);Q!==e?G=t.substring(G,a):G=Q,G!==e?(oe=u,p=Ui(p,w,E,G),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Xh(){var u,p,y,w,_,E,G,Q,F,D,j;for(u=a,p=[],y=Gr();y!==e;)p.push(y),y=Gr();if(p!==e)if(y=di(),y!==e){if(w=[],_=a,E=ye(),E!==e)if(t.substr(a,2)===Gi?(G=Gi,a+=2):(G=e,m===0&&ae(Ao)),G!==e)if(Q=ye(),Q!==e){if(F=[],D=Gr(),D!==e)for(;D!==e;)F.push(D),D=Gr();else F=e;F!==e?(D=ye(),D!==e?(j=di(),j!==e?(oe=_,E=Se(p,F),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;else a=_,_=e;for(;_!==e;)if(w.push(_),_=a,E=ye(),E!==e)if(t.substr(a,2)===Gi?(G=Gi,a+=2):(G=e,m===0&&ae(Ao)),G!==e)if(Q=ye(),Q!==e){if(F=[],D=Gr(),D!==e)for(;D!==e;)F.push(D),D=Gr();else F=e;F!==e?(D=ye(),D!==e?(j=di(),j!==e?(oe=_,E=Se(p,F),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;else a=_,_=e;w!==e?(oe=u,p=je(p,w),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;return u}function el(){var u,p,y,w,_,E,G;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(t.substr(a,6)===$t?(y=$t,a+=6):(y=e,m===0&&ae(Xe)),y!==e?(w=ye(),w!==e?(_=a,E=il(),E!==e?_=t.substring(_,a):_=E,_!==e?(E=ye(),E!==e?(G=Xh(),G!==e?(oe=u,p=Ha(p,y,_,G),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function tl(){var u,p,y,w,_,E,G,Q;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(t.substr(a,7)===Qe?(y=Qe,a+=7):(y=e,m===0&&ae(ne)),y!==e?(w=ye(),w!==e?(_=a,E=a,Ua.test(t.charAt(a))?(G=t.charAt(a),a++):(G=e,m===0&&ae(Ga)),G!==e?(t.substr(a,2)===Eo?(Q=Eo,a+=2):(Q=e,m===0&&ae(_o)),Q!==e?(G=[G,Q],E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=Gt()),E!==e?_=t.substring(_,a):_=E,_!==e?(E=ye(),E!==e?(G=Bn(),G!==e?(oe=u,p=So(p,y,_,G),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function rl(){var u,p,y,w,_;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(t.substr(a,9)===Po?(y=Po,a+=9):(y=e,m===0&&ae(As)),y!==e?(w=ye(),w!==e?(_=Bn(),_!==e?(oe=u,p=Et(p,y,_),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function Os(){var u,p,y,w,_,E,G,Q,F,D,j,ie;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=To(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=qe(p,y,w,E),G?G=void 0:G=e,G!==e){for(Q=a,F=[],D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);D!==e;)F.push(D),D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);F!==e?Q=t.substring(Q,a):Q=F,Q!==e?(oe=u,p=Ki(p,y,w,E,Q),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function nl(){var u,p,y,w,_,E,G,Q,F;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(y=To(),y!==e?(w=Gt(),w!==e?(_=ye(),_!==e?(E=Bn(),E!==e?(oe=a,G=Yf(p,y,w,E),G?G=void 0:G=e,G!==e?(oe=a,Q=nr(p,y,w,E),Q?Q=void 0:Q=e,Q!==e?(F=Qa(),F!==e?(oe=u,p=wn(p,y,w,E,F),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function Ns(){var u,p,y,w,_,E,G,Q,F,D,j;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=To(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e){for(G=a,Q=[],F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);F!==e;)Q.push(F),F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);Q!==e?G=t.substring(G,a):G=Q,G!==e?(oe=u,p=pt(p,y,w,E,G),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function il(){var u,p,y,w,_;if(u=a,p=a,Ka.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(Wa)),y!==e){for(w=[],xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));_!==e;)w.push(_),xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));w!==e?(y=[y,w],p=y):(a=p,p=e)}else a=p,p=e;return p!==e?u=t.substring(u,a):u=p,u}function E1(){var u,p;for(m++,u=[],Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));p!==e;)u.push(p),Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));return m--,u===e&&(p=e,m===0&&ae(Za)),u}function _1(){var u,p;for(m++,u=[],Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));p!==e;)u.push(p),Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));return m--,u===e&&(p=e,m===0&&ae(Ja)),u}function Oo(u){return u!==u.toLowerCase()&&u!==u.toUpperCase()}function Yh(u){return u===u.toUpperCase()}function Xi(u){return u.reduce((p,y)=>Array.isArray(y)?p.concat(Xi(y)):p.concat(y),[])}function eg(u){return["boundary","code","comment","data","data-table","defn","formula","head","include","input","item","markdown","nested","output","para","picture","pod","row","cell","table","toc"].includes(u)||Yh(u)||u.match(/^(head|item)\d+$/)||Oo(u)}function tg(u,p){return u.length==0?p:p.indexOf(u)==0?p.replace(u,""):p.replace(/^\s+/,"")}if(A=s(),A!==e&&a===t.length)return A;throw A!==e&&a<t.length&&ae(U()),ec(S,b<t.length?t.charAt(b):null,b<t.length?Es(b,b+1):Es(b,b))}Dd.exports={SyntaxError:Pi,parse:ck}});var jd=we((zu,Vu)=>{(function(t,r,e){typeof zu=="object"?(Vu.exports=e(),Vu.exports.default=e()):typeof define=="function"&&define.amd?define(e):r[t]=e()})("slugify",zu,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),r=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function e(n,s){if(typeof n!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var o=r[s.locale]||{},l=s.replacement===void 0?"-":s.replacement,f=s.trim===void 0?!0:s.trim,c=n.normalize().split("").reduce(function(g,h){var $=o[h];return $===void 0&&($=t[h]),$===void 0&&($=h),$===l&&($=" "),g+$.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),f&&(c=c.trim()),c=c.replace(/\s+/g,l),s.lower&&(c=c.toLowerCase()),c}return e.extend=function(n){Object.assign(t,n)},e})});var Vd=we((rA,zd)=>{"use strict";function kk(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Ti(t,r,e,n){this.message=t,this.expected=r,this.found=e,this.location=n,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ti)}kk(Ti,Error);Ti.buildMessage=function(t,r){var e={literal:function(g){return'"'+s(g.text)+'"'},class:function(g){var h="",$;for($=0;$<g.parts.length;$++)h+=g.parts[$]instanceof Array?o(g.parts[$][0])+"-"+o(g.parts[$][1]):o(g.parts[$]);return"["+(g.inverted?"^":"")+h+"]"},any:function(g){return"any character"},end:function(g){return"end of input"},other:function(g){return g.description}};function n(g){return g.charCodeAt(0).toString(16).toUpperCase()}function s(g){return g.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function o(g){return g.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function l(g){return e[g.type](g)}function f(g){var h=new Array(g.length),$,k;for($=0;$<g.length;$++)h[$]=l(g[$]);if(h.sort(),h.length>0){for($=1,k=1;$<h.length;$++)h[$-1]!==h[$]&&(h[k]=h[$],k++);h.length=k}switch(h.length){case 1:return h[0];case 2:return h[0]+" or "+h[1];default:return h.slice(0,-1).join(", ")+", or "+h[h.length-1]}}function c(g){return g?'"'+s(g)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function vk(t,r){r=r!==void 0?r:{};var e={},n={Expression:Cs},s=Cs,o="A",l=Me("A",!1),f="V",c=Me("V",!1),g="R",h=Me("R",!1),$="B",k=Me("B",!1),x="I",C=Me("I",!1),I="C",R=Me("C",!1),B="D",X=Me("D",!1),le="E",be=Me("E",!1),he="F",Y=Me("F",!1),pe="G",ve=Me("G",!1),ke="H",Le=Me("H",!1),Te="J",Fe=Me("J",!1),ge="K",Pe=Me("K",!1),Qe="L",ne=Me("L",!1),$t="O",Xe=Me("O",!1),wt="S",nt=Me("S",!1),z="T",H=Me("T",!1),dr="U",Lt=Me("U",!1),kt="Z",Tt=Me("Z",!1),Ft="N",ut=Me("N",!1),tr="X",Vt=Me("X",!1),vr=/^[a-zA-Z]/,Nr=Ut([["a","z"],["A","Z"]],!1,!1),xr=/^[a-zA-Z0-9_\-]/,jt=Ut([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Sn=/^[ \t\f]/,Pn=Ut([" "," ","\f"],!1,!1),Tn=function(d){return!(r.allowed||[]).length||(r.allowed||[]).includes(d)},Ce=vs(),Hn=function(d){return{content:d.content,type:"fcode",name:d.name,synonyms:d.items}},Rr=function(d){return{content:d.content,type:"fcode",name:d.name,entry:d.items}},Ee="<",Ne=Me("<",!1),At=">",ht=Me(">",!1),mr=function(){return Rn()},Re="\xAB",_e=Me("\xAB",!1),te="\xBB",ce=Me("\xBB",!1),Ae=function(d){return d},Be=function(d){return d.code==="C"},Ye=function(d,b){return b===d.end_tag},Pt=function(d,b){return b},it=function(d,b,S){return S===d.end_tag},vt=function(d,b,S){return{content:b,type:"fcode",name:d.code}},It="|",Xr=Me("|",!1),gt=function(d){return d},Fn=function(d){return d.code==="L"},hr=function(d,b,S){return S},si=function(d,b,S,m){return m===d.end_tag},oi=function(d,b,S,m){return{content:b,type:"fcode",name:d.code,meta:S}},Dr=";",mn=Me(";",!1),Un=/^[ \xA0\u2001\t\f\u2008]/,ks=Ut([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),Gn=function(d,b){return a([d,b])},ai=function(d){return[d]},ji=/^[0-9]/,In=Ut([["0","9"]],!1,!1),Kn="0d",Bi=Me("0d",!1),V=function(d){return parseInt(d,10)},N="0o",J=Me("0o",!1),re=function(d){return parseInt(d,8)},se="0b",$e=Me("0b",!1),Se=function(d){return parseInt(d,2)},je="0x",We=Me("0x",!1),bt=/^[0-9A-Fa-f]/,De=Ut([["0","9"],["A","F"],["a","f"]],!1,!1),at=function(){return parseInt(Rn())},ft=/^[A-Z ]/,lt=Ut([["A","Z"]," "],!1,!1),Ge=function(){return Rn()===Rn().toUpperCase()},ct=/^[a-z]/,et=Ut([["a","z"]],!1,!1),Mr=/^[a-z0-9]/,Bt=Ut([["a","z"],["0","9"]],!1,!1),rr=function(d){return Rn()},st=function(d){return{type:"number",value:parseInt(d,10)}},Ht=function(d){return{type:"unicode_name",value:d}},Zt=function(d){return{type:"html_named",value:d}},Cr=function(d){return d==="E"},Yr=function(d,b){return a(b)},Ar=function(d,b){return{content:b||[],type:"fcode",name:d}},hn=function(d){return d},On=function(d,b){return{code:d,begin_tag:b,end_tag:oe(b)}},Nn=function(d){return d.code!=="C"},en=function(d,b,S){return S===d.end_tag},tn=function(d,b,S){return{content:b,type:"fcode",name:d.code}},Mt=function(d){return!(r.allowed||[]).length||(r.allowed||[]).includes(d)},Er=function(d,b,S,m){return m===oe(b)},gn=function(d,b,S,m){return{content:S,type:"fcode",name:d}},zr=function(d,b,S,m){return a(m)},Mi=function(d,b,S,m,A){return A===oe(b)},li=function(d,b,S,m,A){return{name:d,content:S,items:m}},i=0,ue=0,Vr=[{line:1,column:1}],Jt=0,rn=[],v=0,yn;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=n[r.startRule]}function Rn(){return t.substring(ue,i)}function Hr(){return qn(ue,i)}function Dn(d,b){throw b=b!==void 0?b:qn(ue,i),Vi([bn(d)],t.substring(ue,i),b)}function zi(d,b){throw b=b!==void 0?b:qn(ue,i),xs(d,b)}function Me(d,b){return{type:"literal",text:d,ignoreCase:b}}function Ut(d,b,S){return{type:"class",parts:d,inverted:b,ignoreCase:S}}function vs(){return{type:"any"}}function nn(){return{type:"end"}}function bn(d){return{type:"other",description:d}}function ui(d){var b=Vr[d],S;if(b)return b;for(S=d-1;!Vr[S];)S--;for(b=Vr[S],b={line:b.line,column:b.column};S<d;)t.charCodeAt(S)===10?(b.line++,b.column=1):b.column++,S++;return Vr[d]=b,b}function qn(d,b){var S=ui(d),m=ui(b);return{start:{offset:d,line:S.line,column:S.column},end:{offset:b,line:m.line,column:m.column}}}function W(d){i<Jt||(i>Jt&&(Jt=i,rn=[]),rn.push(d))}function xs(d,b){return new Ti(d,null,null,b)}function Vi(d,b,S){return new Ti(Ti.buildMessage(d,b),d,b,S)}function Cs(){var d,b;for(d=[],b=fi(),b===e&&(b=Ki(),b===e&&(b=nr(),b===e&&(b=$o())));b!==e;)d.push(b),b=fi(),b===e&&(b=Ki(),b===e&&(b=nr(),b===e&&(b=$o())));return d}function fi(){var d;return d=Ka(),d===e&&(d=Za(),d===e&&(d=Wn(),d===e&&(d=Ma(),d===e&&(d=Po(),d===e&&(d=Wa(),d===e&&(d=Va(),d===e&&(d=za(),d===e&&(d=Wi())))))))),d}function bo(){var d;return t.charCodeAt(i)===65?(d=o,i++):(d=e,v===0&&W(l)),d===e&&(t.charCodeAt(i)===86?(d=f,i++):(d=e,v===0&&W(c)),d===e&&(t.charCodeAt(i)===82?(d=g,i++):(d=e,v===0&&W(h)),d===e&&(t.charCodeAt(i)===66?(d=$,i++):(d=e,v===0&&W(k)),d===e&&(t.charCodeAt(i)===73?(d=x,i++):(d=e,v===0&&W(C)),d===e&&(t.charCodeAt(i)===67?(d=I,i++):(d=e,v===0&&W(R)),d===e&&(t.charCodeAt(i)===68?(d=B,i++):(d=e,v===0&&W(X)),d===e&&(t.charCodeAt(i)===69?(d=le,i++):(d=e,v===0&&W(be)),d===e&&(t.charCodeAt(i)===70?(d=he,i++):(d=e,v===0&&W(Y)),d===e&&(t.charCodeAt(i)===71?(d=pe,i++):(d=e,v===0&&W(ve)),d===e&&(t.charCodeAt(i)===72?(d=ke,i++):(d=e,v===0&&W(Le)),d===e&&(t.charCodeAt(i)===74?(d=Te,i++):(d=e,v===0&&W(Fe)),d===e&&(t.charCodeAt(i)===75?(d=ge,i++):(d=e,v===0&&W(Pe)),d===e&&(t.charCodeAt(i)===76?(d=Qe,i++):(d=e,v===0&&W(ne)),d===e&&(t.charCodeAt(i)===79?(d=$t,i++):(d=e,v===0&&W(Xe)),d===e&&(t.charCodeAt(i)===83?(d=wt,i++):(d=e,v===0&&W(nt)),d===e&&(t.charCodeAt(i)===84?(d=z,i++):(d=e,v===0&&W(H)),d===e&&(t.charCodeAt(i)===85?(d=dr,i++):(d=e,v===0&&W(Lt)),d===e&&(t.charCodeAt(i)===90?(d=kt,i++):(d=e,v===0&&W(Tt)),d===e&&(t.charCodeAt(i)===78?(d=Ft,i++):(d=e,v===0&&W(ut)),d===e&&(t.charCodeAt(i)===88?(d=tr,i++):(d=e,v===0&&W(Vt)))))))))))))))))))))),d}function ja(){var d,b,S,m,A;if(d=i,b=i,vr.test(t.charAt(i))?(S=t.charAt(i),i++):(S=e,v===0&&W(Nr)),S!==e){for(m=[],xr.test(t.charAt(i))?(A=t.charAt(i),i++):(A=e,v===0&&W(jt));A!==e;)m.push(A),xr.test(t.charAt(i))?(A=t.charAt(i),i++):(A=e,v===0&&W(jt));m!==e?(S=[S,m],b=S):(i=b,b=e)}else i=b,b=e;return b!==e?d=t.substring(d,i):d=b,d}function Hi(){var d,b;for(d=[],Sn.test(t.charAt(i))?(b=t.charAt(i),i++):(b=e,v===0&&W(Pn));b!==e;)d.push(b),Sn.test(t.charAt(i))?(b=t.charAt(i),i++):(b=e,v===0&&W(Pn));return d}function sn(){var d,b,S;return d=i,b=bo(),b!==e?(ue=i,S=Tn(b),S?S=void 0:S=e,S!==e?(b=[b,S],d=b):(i=d,d=e)):(i=d,d=e),d}function $o(){var d,b;return d=i,t.length>i?(b=t.charAt(i),i++):(b=e,v===0&&W(Ce)),b!==e?d=t.substring(d,i):d=b,d}function wo(){var d,b,S,m,A;for(d=i,b=[],S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);S!==e;)b.push(S),S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);return b!==e?d=t.substring(d,i):d=b,d}function Ba(){var d,b,S;if(d=i,b=[],S=zt(),S!==e)for(;S!==e;)b.push(S),S=zt();else b=e;return b!==e?d=t.substring(d,i):d=b,d}function ko(){var d,b;if(d=[],b=qr(),b!==e)for(;b!==e;)d.push(b),b=qr();else d=e;return d}function vo(){var d,b;for(d=[],b=qr();b!==e;)d.push(b),b=qr();return d}function Ma(){var d,b;return d=i,b=Zi(),b!==e&&(ue=d,b=Hn(b)),d=b,d}function za(){var d,b;return d=i,b=Ja(),b!==e&&(ue=d,b=Rr(b)),d=b,d}function xo(){var d;return t.charCodeAt(i)===66?(d=$,i++):(d=e,v===0&&W(k)),d}function Ln(){var d,b,S,m,A;return d=i,b=i,S=i,v++,m=xo(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===60?(S=Ee,i++):(S=e,v===0&&W(Ne)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===62?(A=At,i++):(A=e,v===0&&W(ht)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=i,S=i,v++,m=xo(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===171?(S=Re,i++):(S=e,v===0&&W(_e)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===187?(A=te,i++):(A=e,v===0&&W(ce)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)),d}function zt(){var d,b,S,m,A,O,L,T;if(d=i,b=i,S=[],m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Ne)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Ne)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Re,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===171?(O=Re,i++):(O=e,v===0&&W(_e)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=Ln(),m===e&&(m=wn()))),m!==e)for(;m!==e;)S.push(m),m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Ne)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Ne)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Re,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===171?(O=Re,i++):(O=e,v===0&&W(_e)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=Ln(),m===e&&(m=wn())));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=Ae(b)),d=b,d}function Wn(){var d,b,S,m,A,O,L,T,q,K,P,ee,U,M,Z;if(d=i,b=Et(),b!==e)if(ue=i,S=Be(b),S?S=void 0:S=e,S!==e){if(m=[],A=i,O=i,L=[],T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Ne)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Ne)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Re,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Re,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Ne)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Ne)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Re,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Re,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;if(L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O,A!==e)for(;A!==e;){if(m.push(A),A=i,O=i,L=[],T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Ne)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Ne)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Re,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Re,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Ne)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Ne)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Re,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Re,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O}else m=e;m!==e?(A=qe(),A!==e?(ue=i,O=it(b,m,A),O?O=void 0:O=e,O!==e?(ue=d,b=vt(b,m,A),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;return d}function ci(){var d;return t.charCodeAt(i)===124?(d=It,i++):(d=e,v===0&&W(Xr)),d}function qr(){var d,b,S,m,A,O,L,T,q;if(d=i,b=i,S=[],m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Ne)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Ne)),O!==e?(L=qr(),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Re,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===171?(O=Re,i++):(O=e,v===0&&W(_e)),O!==e?(L=qr(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,v++,O=ci(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=qe(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=As(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(T=i,v++,q=pt(),v--,q===e?T=void 0:(i=T,T=e),T!==e?(t.length>i?(q=t.charAt(i),i++):(q=e,v===0&&W(Ce)),q!==e?(A=[A,O,L,T,q],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e))),m!==e)for(;m!==e;)S.push(m),m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Ne)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Ne)),O!==e?(L=qr(),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Re,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===171?(O=Re,i++):(O=e,v===0&&W(_e)),O!==e?(L=qr(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,v++,O=ci(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=qe(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=As(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(T=i,v++,q=pt(),v--,q===e?T=void 0:(i=T,T=e),T!==e?(t.length>i?(q=t.charAt(i),i++):(q=e,v===0&&W(Ce)),q!==e?(A=[A,O,L,T,q],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=gt(b)),d=b,d}function Va(){var d,b,S,m,A,O,L,T,q,K,P;if(d=i,b=Et(),b!==e)if(ue=i,S=Fn(b),S?S=void 0:S=e,S!==e){if(m=[],A=Wn(),A===e&&(A=qr()),A!==e)for(;A!==e;)m.push(A),A=Wn(),A===e&&(A=qr());else m=e;if(m!==e){if(A=i,O=ci(),O!==e){for(L=i,T=[],q=i,K=i,v++,P=qe(),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e);q!==e;)T.push(q),q=i,K=i,v++,P=qe(),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e);T!==e?L=t.substring(L,i):L=T,L!==e?(ue=A,O=hr(b,m,L),A=O):(i=A,A=e)}else i=A,A=e;A===e&&(A=null),A!==e?(O=qe(),O!==e?(ue=i,L=si(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=oi(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e}else i=d,d=e;else i=d,d=e;return d}function Co(){var d,b,S,m,A,O;if(d=i,b=[],S=i,m=i,v++,t.charCodeAt(i)===59?(A=Dr,i++):(A=e,v===0&&W(mn)),v--,A===e?m=void 0:(i=m,m=e),m!==e?(A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(t.length>i?(O=t.charAt(i),i++):(O=e,v===0&&W(Ce)),O!==e?(m=[m,A,O],S=m):(i=S,S=e)):(i=S,S=e)):(i=S,S=e),S!==e)for(;S!==e;)b.push(S),S=i,m=i,v++,t.charCodeAt(i)===59?(A=Dr,i++):(A=e,v===0&&W(mn)),v--,A===e?m=void 0:(i=m,m=e),m!==e?(A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(t.length>i?(O=t.charAt(i),i++):(O=e,v===0&&W(Ce)),O!==e?(m=[m,A,O],S=m):(i=S,S=e)):(i=S,S=e)):(i=S,S=e);else b=e;return b!==e?d=t.substring(d,i):d=b,d}function $n(){var d;return Un.test(t.charAt(i))?(d=t.charAt(i),i++):(d=e,v===0&&W(ks)),d}function pi(){var d,b,S,m,A,O;if(d=i,b=Co(),b!==e){for(S=[],m=$n();m!==e;)S.push(m),m=$n();if(S!==e)if(t.charCodeAt(i)===59?(m=Dr,i++):(m=e,v===0&&W(mn)),m!==e){for(A=[],O=$n();O!==e;)A.push(O),O=$n();A!==e?(O=pi(),O!==e?(ue=d,b=Gn(b,O),d=b):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e}else i=d,d=e;return d===e&&(d=i,b=Co(),b!==e&&(ue=d,b=ai(b)),d=b),d}function Ui(){var d,b,S;if(d=i,b=[],ji.test(t.charAt(i))?(S=t.charAt(i),i++):(S=e,v===0&&W(In)),S!==e)for(;S!==e;)b.push(S),ji.test(t.charAt(i))?(S=t.charAt(i),i++):(S=e,v===0&&W(In));else b=e;return b!==e?d=t.substring(d,i):d=b,d}function Gi(){var d,b,S;return d=i,t.substr(i,2)===Kn?(b=Kn,i+=2):(b=e,v===0&&W(Bi)),b!==e?(S=Ui(),S!==e?(ue=d,b=V(S),d=b):(i=d,d=e)):(i=d,d=e),d}function Ao(){var d,b,S;return d=i,t.substr(i,2)===N?(b=N,i+=2):(b=e,v===0&&W(J)),b!==e?(S=Ui(),S!==e?(ue=d,b=re(S),d=b):(i=d,d=e)):(i=d,d=e),d}function Ha(){var d,b,S;return d=i,t.substr(i,2)===se?(b=se,i+=2):(b=e,v===0&&W($e)),b!==e?(S=Ui(),S!==e?(ue=d,b=Se(S),d=b):(i=d,d=e)):(i=d,d=e),d}function Ua(){var d,b,S,m,A,O;if(d=i,b=i,S=i,t.substr(i,2)===je?(m=je,i+=2):(m=e,v===0&&W(We)),m!==e){if(A=[],bt.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(De)),O!==e)for(;O!==e;)A.push(O),bt.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(De));else A=e;A!==e?(m=[m,A],S=m):(i=S,S=e)}else i=S,S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=at()),d=b,d}function Ga(){var d,b,S,m;if(d=i,b=i,S=[],ft.test(t.charAt(i))?(m=t.charAt(i),i++):(m=e,v===0&&W(lt)),m!==e)for(;m!==e;)S.push(m),ft.test(t.charAt(i))?(m=t.charAt(i),i++):(m=e,v===0&&W(lt));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Ge(),S?S=void 0:S=e,S!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e),d}function Eo(){var d,b,S,m,A,O;if(d=i,b=i,S=i,ct.test(t.charAt(i))?(m=t.charAt(i),i++):(m=e,v===0&&W(et)),m!==e){if(A=[],Mr.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(Bt)),O!==e)for(;O!==e;)A.push(O),Mr.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(Bt));else A=e;A!==e?(m=[m,A],S=m):(i=S,S=e)}else i=S,S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=rr(b)),d=b,d}function _o(){var d,b,S;return d=i,b=Hi(),b!==e?(S=Ao(),S===e&&(S=Gi(),S===e&&(S=Ha(),S===e&&(S=Ua(),S===e&&(S=Ui())))),S!==e?(ue=d,b=st(S),d=b):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=Hi(),b!==e?(S=Ga(),S!==e?(ue=d,b=Ht(S),d=b):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=Hi(),b!==e?(S=Eo(),S!==e?(ue=d,b=Zt(S),d=b):(i=d,d=e)):(i=d,d=e))),d}function So(){var d,b,S,m,A,O;if(d=i,b=_o(),b!==e){for(S=[],m=$n();m!==e;)S.push(m),m=$n();if(S!==e)if(t.charCodeAt(i)===59?(m=Dr,i++):(m=e,v===0&&W(mn)),m!==e){for(A=[],O=$n();O!==e;)A.push(O),O=$n();A!==e?(O=So(),O!==e?(ue=d,b=Gn(b,O),d=b):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e}else i=d,d=e;return d===e&&(d=i,b=_o(),b!==e&&(ue=d,b=ai(b)),d=b),d}function Po(){var d,b,S,m,A;return d=i,b=As(),b!==e?(ue=i,S=Cr(b),S?S=void 0:S=e,S!==e?(m=i,A=So(),A!==e&&(ue=m,A=Yr(b,A)),m=A,m===e&&(m=null),m!==e?(A=qe(),A!==e?(ue=d,b=Ar(b,m),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function As(){var d,b,S;return d=i,b=i,S=sn(),S!==e?b=t.substring(b,i):b=S,b!==e?(t.charCodeAt(i)===60?(S=Ee,i++):(S=e,v===0&&W(Ne)),S!==e?(ue=d,b=hn(b),d=b):(i=d,d=e)):(i=d,d=e),d}function Et(){var d,b,S,m;return d=i,b=i,S=sn(),S!==e?b=t.substring(b,i):b=S,b!==e?(S=i,t.charCodeAt(i)===60?(m=Ee,i++):(m=e,v===0&&W(Ne)),m===e&&(t.charCodeAt(i)===171?(m=Re,i++):(m=e,v===0&&W(_e))),m!==e?S=t.substring(S,i):S=m,S!==e?(ue=d,b=On(b,S),d=b):(i=d,d=e)):(i=d,d=e),d}function qe(){var d;return t.charCodeAt(i)===62?(d=At,i++):(d=e,v===0&&W(ht)),d===e&&(t.charCodeAt(i)===187?(d=te,i++):(d=e,v===0&&W(ce))),d}function Ki(){var d,b,S,m,A,O,L,T,q,K,P,ee,U,M,Z;if(d=i,b=Et(),b!==e)if(ue=i,S=Nn(b),S?S=void 0:S=e,S!==e){if(m=[],A=fi(),A===e&&(A=Ki(),A===e)){if(A=i,O=i,L=[],T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Ne)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Re,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Ne)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Re,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O}for(;A!==e;)if(m.push(A),A=fi(),A===e&&(A=Ki(),A===e)){if(A=i,O=i,L=[],T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Ne)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Re,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Ne)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Re,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O}m!==e?(A=qe(),A!==e?(ue=i,O=en(b,m,A),O?O=void 0:O=e,O!==e?(ue=d,b=tn(b,m,A),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;return d}function Yf(){var d,b,S,m,A;for(d=i,b=[],S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);S!==e;)b.push(S),S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);return b!==e?d=t.substring(d,i):d=b,d}function nr(){var d,b,S,m,A,O,L;if(d=i,b=i,S=[],m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===62?(L=At,i++):(L=e,v===0&&W(ht)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,v===0&&W(ce)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=pt(),m===e&&(m=wn()))),m!==e)for(;m!==e;)S.push(m),m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===62?(L=At,i++):(L=e,v===0&&W(ht)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,v===0&&W(ce)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=pt(),m===e&&(m=wn())));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=Ae(b)),d=b,d}function wn(){var d,b,S,m,A,O,L,T;if(d=i,b=i,S=[],m=i,A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=Et(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=pt(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m!==e)for(;m!==e;)S.push(m),m=i,A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=Et(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=pt(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e);else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=Ae(b)),d=b,d}function pt(){var d,b,S,m,A;return d=i,b=i,S=i,v++,m=sn(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===60?(S=Ee,i++):(S=e,v===0&&W(Ne)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===62?(A=At,i++):(A=e,v===0&&W(ht)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=i,S=i,v++,m=sn(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===171?(S=Re,i++):(S=e,v===0&&W(_e)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===187?(A=te,i++):(A=e,v===0&&W(ce)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)),d}function Ka(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===65?(S=o,i++):(S=e,v===0&&W(l)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=qr(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Wa(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===86?(S=f,i++):(S=e,v===0&&W(c)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=Ba(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Za(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===83?(S=wt,i++):(S=e,v===0&&W(nt)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=wo(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Wi(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===90?(S=kt,i++):(S=e,v===0&&W(Tt)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=wo(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Zi(){var d,b,S,m,A,O,L,T,q;if(d=i,b=i,t.charCodeAt(i)===68?(S=B,i++):(S=e,v===0&&W(X)),S!==e?b=t.substring(b,i):b=S,b!==e)if(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e)if(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e)if(A=ko(),A!==e){if(O=i,L=ci(),L!==e){for(T=[],q=pi();q!==e;)T.push(q),q=pi();T!==e?(ue=O,L=zr(b,m,A,T),O=L):(i=O,O=e)}else i=O,O=e;O===e&&(O=null),O!==e?(L=qe(),L!==e?(ue=i,T=Mi(b,m,A,O,L),T?T=void 0:T=e,T!==e?(ue=d,b=li(b,m,A,O,L),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;else i=d,d=e;else i=d,d=e;return d}function Ja(){var d,b,S,m,A,O,L,T,q;if(d=i,b=i,t.charCodeAt(i)===88?(S=tr,i++):(S=e,v===0&&W(Vt)),S!==e?b=t.substring(b,i):b=S,b!==e)if(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e)if(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e)if(A=vo(),A!==e){if(O=i,L=ci(),L!==e){for(T=[],q=pi();q!==e;)T.push(q),q=pi();T!==e?(ue=O,L=zr(b,m,A,T),O=L):(i=O,O=e)}else i=O,O=e;O===e&&(O=null),O!==e?(L=qe(),L!==e?(ue=i,T=Mi(b,m,A,O,L),T?T=void 0:T=e,T!==e?(ue=d,b=li(b,m,A,O,L),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;else i=d,d=e;else i=d,d=e;return d}function a(d){return d.reduce((b,S)=>Array.isArray(S)?b.concat(a(S)):b.concat(S),[])}function oe(d){return{"<":">","\xAB":"\xBB",">":"<","\xBB":"\xAB"}[d]}if(yn=s(),yn!==e&&i===t.length)return yn;throw yn!==e&&i<t.length&&W(nn()),Vi(rn,Jt<t.length?t.charAt(Jt):null,Jt<t.length?qn(Jt,Jt+1):qn(Jt,Jt))}zd.exports={SyntaxError:Ti,parse:vk}});var om=we((LA,Dk)=>{Dk.exports={name:"@podlite/schema",version:"0.0.47",description:"AST tools and schema for Podlite markup language \u2014 validate, traverse, and transform document trees",main:"./src/index.ts",homepage:"https://podlite.org",bugs:{url:"https://github.com/podlite/podlite/issues"},repository:{type:"git",url:"https://github.com/podlite/podlite.git",directory:"packages/podlite-schema"},license:"MIT",funding:{type:"opencollective",url:"https://opencollective.com/podlite"},files:["lib/**/*.js","lib/**/*.d.ts","esm","schema/*","README.md","CHANGELOG.md"],engines:{node:">=14"},engineStrict:!0,publishConfig:{access:"public",main:"lib/index.js",types:"./lib/index.d.ts",module:"./esm/index.js"},scripts:{clean:"rm -rf lib esm *.tsbuildinfo",build:"run-s build:pegjs build_lib build:ast ",build_lib:"yarn g:build","build:ast":"ts-node scripts/make-ast-scheme.ts","build:pegjs":"pegmill --allowed-start-rules Document,attributesOnly -o src/grammar.js src/grammar.pegjs && pegmill -o src/grammarfc.js src/grammarfc.pegjs",watch:"npx nodemon -e js,ts --exec 'yarn' build","watch:pegjs":"npx nodemon -e pegmill --exec 'yarn' build:pegjs",test:"yarn g:jest --passWithNoTests"},keywords:["podlite","schema","ast","syntax-tree","markup-language","transform","visitor","parser","markdown","tree"],dependencies:{ajv:"^7.2.3",events:"^3.1.0","json-pointer":"^0.6.1",nanoid:"3.1.30",slugify:"^1.6.6"},devDependencies:{"@types/node":"^17.0.7",glob:"^7.2.0","npm-run-all":"^4.1.5",pegmill:"0.1.2","ts-node":"^9.1.1",typescript:"4.5.5","typescript-json-schema":"0.53.0"}}});var Qu=we((AE,um)=>{um.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var bm=we((EE,ym)=>{"use strict";var $a=Object.prototype.hasOwnProperty,gm=Object.prototype.toString,fm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,pm=function(r){return typeof Array.isArray=="function"?Array.isArray(r):gm.call(r)==="[object Array]"},dm=function(r){if(!r||gm.call(r)!=="[object Object]")return!1;var e=$a.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&$a.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!n)return!1;var s;for(s in r);return typeof s>"u"||$a.call(r,s)},mm=function(r,e){fm&&e.name==="__proto__"?fm(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},hm=function(r,e){if(e==="__proto__")if($a.call(r,e)){if(cm)return cm(r,e).value}else return;return r[e]};ym.exports=function t(){var r,e,n,s,o,l,f=arguments[0],c=1,g=arguments.length,h=!1;for(typeof f=="boolean"&&(h=f,f=arguments[1]||{},c=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});c<g;++c)if(r=arguments[c],r!=null)for(e in r)n=hm(f,e),s=hm(r,e),f!==s&&(h&&s&&(dm(s)||(o=pm(s)))?(o?(o=!1,l=n&&pm(n)?n:[]):l=n&&dm(n)?n:{},mm(f,{name:e,newValue:t(h,l,s)})):typeof s<"u"&&mm(f,{name:e,newValue:s}));return f}});var k1={};fc(k1,{PluginRegister:()=>$1,default:()=>w1,parseMd:()=>qa,plugin:()=>La});module.exports=ag(k1);var am=Sr(gd()),Lk=Sr(wd());var UA=Sr(Cd());var ik=function(t){if(t==="*:*"||t==="*")return{};if(t==="<>")return{type:"fcode"};let[r,e]=t.split(":");if(r&&e)return{name:r,type:e};if(!r)return{type:e};if(!e){let n=r.match(/(.+)\<\>/);return n?{type:"fcode",name:n[1]}:{name:r,type:"block"}}return{name:r,type:e}},_i=t=>{let r=ik(t),{name:e,type:n}=r;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};function sk(t,r){function e(s){for(var o in s)if(s.hasOwnProperty(o))return!1;return!0}if(e(t))return!0;for(var n in t)if(t===void 0&&console.warn("[podlite] undefined key!!!"),t.hasOwnProperty(n))if(r===void 0&&console.warn("[podlite] undefined node!!!"),r&&r.hasOwnProperty(n)){if(t[n]!==r[n])return!1}else return!1;return!0}var An=(t,r)=>{return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(s){return typeof s=="string"?!1:sk(t,s)}},Iu=(t,r)=>{if(t instanceof Array)return t.reduce((n,s)=>(n.push(...Iu(s)),n),[]);if(t instanceof Object){let n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(An(_i(e),t[e]));return n}return[An(_i(t),r)]};var Ou=Sr(require("crypto"),1);var Ad="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var ok=128,Si,ds,ak=t=>{!Si||Si.length<t?(Si=Buffer.allocUnsafe(t*ok),Ou.default.randomFillSync(Si),ds=0):ds+t>Si.length&&(Ou.default.randomFillSync(Si),ds=0),ds+=t};var Ed=(t=21)=>{ak(t);let r="";for(let e=ds-t;e<ds;e++)r+=Ad[Si[e]&63];return r};var ms=t=>({...t}),Nu=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},br=(t,r)=>{let e="block",n=t.name,s={id:Ed(),margin:"",...t};var o=ms({type:e,...s,content:Nu(r)});return o};var pa=(t,r)=>ms({type:"fcode",...t,content:r}),Ru=(t,r)=>ms({...t,type:"fcode",name:"L",content:Nu(r)}),_d=t=>ms({type:"fcode",name:"O",content:Nu(t)});var Sd=t=>ms({type:"fcode",name:"F",content:[{type:"text",value:t}]}),no=t=>ms({type:"verbatim",value:t});var Pd=t=>({type:"block",name:"caption",content:t}),Td=(t,r)=>({type:"image",src:t,alt:r}),Du=({margin:t=""},r)=>br({name:"root",margin:t},r);var Fd=({value:t,location:r})=>br({name:"formula",location:r},[no(t)]);var qu=(t,r={})=>{let e=t.config instanceof Array?t.config:[],n=[];r.config&&r.config.hasOwnProperty(t.name)&&(n=r.config[t.name]);let s={};[...e,...n].map(l=>{s.hasOwnProperty(l.name)||(s[l.name]=[]),l.type==="array"?s[l.name].push(...l.value):s[l.name].push(l.value)});let o=function(){};return o.exists=l=>s.hasOwnProperty(l),o.getAllValues=l=>o.exists(l)?s[l]:[],o.getFirstValue=l=>o.exists(l)?o.getAllValues(l)[0]:void 0,o.getMapValue=l=>{let f=o.getFirstValue(l);return f&&typeof f=="object"&&!Array.isArray(f)?f:void 0},o.asHash=()=>s,o},Ct=qu;var Lu=(t,r)=>{let e=Ct(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};function Id(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(Id(e)):r.concat(e),[]):t}function lk(t){function r(e,n){if(e==null)return e;if(e instanceof Array)return Id(e.map(l=>r(l,n))).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},n);let s=t.slice();s.reverse();let o=s.findIndex(l=>l.isFor(e));if(o!==-1){let l=s.slice(o+1),f=l.findIndex(g=>g.isFor(e)),c=(g=e,h=n,$=r)=>{if(f!==-1)return l[f].fn(g,h,$,()=>{})};return typeof s[o].fn!="function"&&console.warn("[podlite] bad fn for "+JSON.stringify(e,null,2)),s[o].fn(e,n,r,c)}else{let l={...e};if(l.hasOwnProperty("content"))return r(l.content,n)}}return r.rules=t,r}var ma=lk;var Ve=(t,r)=>(e,n)=>(s,o,l)=>{e.writeRaw(t),s.content&&l(s.content,o),e.writeRaw(r)},St=()=>()=>()=>{},uk="\u2588",Jr=t=>t.replace(/\S/g,uk),hs=t=>{if(typeof t=="string")return t;if(!Array.isArray(t)){if(t&&typeof t=="object"){let r=t;return r.type==="text"||r.type==="verbatim"?r.value||"":hs(r.content)}return""}return t.map(hs).join("")},$r=(t,r)=>(e,n,s)=>{if(e.content)return s(e.content,n)},Ir=t=>(r,e)=>(n,s,o)=>t(n,s)(r,e)(n,s,o);var ha=(t,r)=>{let e=Iu(t).reverse();return(n,s)=>{let o=e.map(c=>An(c.rule,c.fn(n,s))).reverse(),l=r(n,s),f;return(c,g,h)=>(f||(f=ma([...h.rules,...o])),l(c,g,f))}},Or=(t,r)=>(e,n)=>{let s=t(e,n);return(o,l,f)=>{let c=Ct(o,l).getFirstValue("nested")||r;c!==void 0&&e.addLevel(c),s(o,l,f),c!==void 0&&e.removeLevel(c)}};function io(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function Od(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Od(e)):r.concat(e),[])}var da=t=>{let r=[];function e(s,o){if(s instanceof Array&&console.warn(`[podlite] Unsupported param for ${s}`),s instanceof Object){for(var l in s)s.hasOwnProperty(l)&&e(l,s[l]);return[]}r.push(An(_i(s),o))}function n(s,o={}){if(s==null)return s;if(s instanceof Array)return Od(s.map(c=>n(c,o)));if(typeof s=="string")return s;let l=r.slice();l.reverse();let f=l.findIndex(c=>c.isFor(s));if(f!==-1)return l[f].fn(s,o,n);{let c={...s};return c.hasOwnProperty("content")&&(c.content=n(c.content,o)),c}}return e(t),n.rules=r,n},lr=da;var Nd=Sr(require("events")),ju=class extends Nd.EventEmitter{INDEXTERMS;FOOTNOTES;output;errors;out;ons;constructor(r){super(),this.INDEXTERMS=[],this.FOOTNOTES=[],this.output=r,this.ons=[],this.emit("ready")}escape(r){return r}write(r){return this.writeRaw(this.escape(r))}writeRaw(r){typeof this.output=="function"?this.output(r):console.log(r)}getStr(){return{errors:this.errors,toString:()=>this.out,valueOf:()=>this.out}}startWrite(r){(this.ons||[]).map(e=>super.on(...e)),this.emit("start",r),this.addListener("errors",e=>{this.errors=this.errors||[],this.errors.push(e)})}on(...r){return this.ons=this.ons||[],this.ons.unshift([...r]),this}endWrite=()=>{this.emit("end")};_add_nesting(r){}_remove_nesting(r){}addLevel(r){this._add_nesting(r)}removeLevel(r){this._remove_nesting(r)}},so=ju;var gs=(t={},r=[])=>{let e=r,n=t.processor||Rd,s=t.writer;return o.use=l,o.run=f,o.getPlugins=()=>e,o;function o(c){}function l(c,g){if(c instanceof Array)return gs(t,[...e,...g]);if(c instanceof Object){for(var h in c)c.hasOwnProperty(h)&&l(h,c[h]);return o}return e.push(An(_i(c),g)),o}function f(c,g){let h="",$=g||s||new so(X=>{h=h+X}),k=typeof $=="function"?new $(X=>{h=h+X}):$,x=typeof c=="string"?n(c):c,C=e.slice();C.reverse();let I=ma(C.map(X=>An(X.rule,X.fn(k,n,x))).reverse()),R={...t.context||{}};k.startWrite(x);let B=I(x,R);return k.endWrite(),{errors:k.errors,toString:()=>h,valueOf:()=>h,indexingTerms:k.INDEXTERMS,annotations:k.FOOTNOTES,defenitions:k.DEFINITIONS,interator:B}}};var qd=Sr(Bu());function Mu(t){if(!t||!t.trim())return[];try{return qd.parse(t,{startRule:"attributesOnly"})}catch{return[]}}var Ld=()=>t=>lr({"*":(e,n,s)=>(e.content&&(e.content=s(e.content,n,s)),delete e.location,e)})(t,{}),ga=Ld;var SC={":text":(t,r)=>(e,n,s)=>{e.value?t.write(n!=null&&n.maskMode?Jr(e.value):e.value):s(e.content,n)},"A<>":(t,r)=>(e,n,s)=>{if(!(n.alias&&n.alias.hasOwnProperty(e.content)))t.writeRaw(`A<${e.content}>`);else{let o=n.alias[e.content].join(`
15
15
  `),l=r(o),f=ga()(l);f[0].type==="para"?s(f[0].content,n):s(f,n)}},"C<>":Ve("`","`"),"D<>":(t,r)=>(e,n,s)=>{t.hasOwnProperty("DEFINITIONS")||(t.DEFINITIONS=[]),t.DEFINITIONS.push({definition:[e.content[0]]}),t.writeRaw("**"),s(e.content,n),t.writeRaw("**")},"B<>":Ve("**","**"),"I<>":Ve("*","*"),"R<>":Ve("*","*"),"K<>":Ve("`","`"),"O<>":Ve("~~","~~"),"G<>":(t,r)=>(e,n,s)=>{if(n.renderMode==="draft"){s(e.content,n);return}t.write(Jr(hs(e.content)))},"H<>":Ve("<sup>","</sup>"),"J<>":Ve("<sub>","</sub>"),"L<>":Ir((t,r)=>{let{meta:e}=t;return e===null&&(e=t.content),Ve("[",`](${e})`)}),"N<>":(t,r)=>(t.addListener("end",()=>{if(!t.hasOwnProperty("FOOTNOTES"))return;let e=t.FOOTNOTES;e.length<1||(t.writeRaw(`
16
16
 
17
17
  ---
@@ -28,21 +28,21 @@ var ig=Object.create;var Ro=Object.defineProperty;var sg=Object.getOwnPropertyDe
28
28
  `)},"term:para":(t,r)=>(e,n,s)=>{t.writeRaw("**"),e.content&&s(e.content,n),t.writeRaw(":** ")},nested:Or($r,1),output:Or((t,r)=>(e,n,s)=>{t.writeRaw("```\n"),e.content&&s(e.content,n),t.writeRaw("```\n")},1),input:Or((t,r)=>(e,n,s)=>{t.writeRaw("```\n"),e.content&&s(e.content,n),t.writeRaw("```\n")},1),"table:block":Or((t,r)=>(e,n,s)=>{let o=Ct(e,n);o.exists("caption")&&(t.writeRaw("**"),t.write(o.getFirstValue("caption")),t.writeRaw(`**
29
29
 
30
30
  `));let l=(e.content||[]).filter($=>$.name==="row");if(l.length===0)return;let f=$=>Array.isArray($.config)&&$.config.some(k=>k.name==="header"&&k.value!==!1),c=($,k)=>{if(!Array.isArray($.config))return 0;let x=$.config.find(I=>I.name===k);if(!x)return 0;let C=Number(x.value);return Number.isFinite(C)&&C>1?C:0},g=l.some($=>($.content||[]).some(k=>k.name==="cell"&&(c(k,"colspan")||c(k,"rowspan")))),h=f(l[0]);if(g){t.writeRaw(`<table>
31
- `),l.forEach($=>{let k=f($)?"th":"td";t.writeRaw("<tr>"),($.content||[]).filter(C=>C.name==="cell").forEach(C=>{let I=c(C,"colspan"),N=c(C,"rowspan"),B="";I&&(B+=` colspan="${I}"`),N&&(B+=` rowspan="${N}"`),t.writeRaw(`<${k}${B}>`),C.content&&C.content.forEach(X=>{typeof X=="string"?t.write(X.trim()):s([X],n)}),t.writeRaw(`</${k}>`)}),t.writeRaw(`</tr>
31
+ `),l.forEach($=>{let k=f($)?"th":"td";t.writeRaw("<tr>"),($.content||[]).filter(C=>C.name==="cell").forEach(C=>{let I=c(C,"colspan"),R=c(C,"rowspan"),B="";I&&(B+=` colspan="${I}"`),R&&(B+=` rowspan="${R}"`),t.writeRaw(`<${k}${B}>`),C.content&&C.content.forEach(X=>{typeof X=="string"?t.write(X.trim()):s([X],n)}),t.writeRaw(`</${k}>`)}),t.writeRaw(`</tr>
32
32
  `)}),t.writeRaw(`</table>
33
33
  `);return}l.forEach(($,k)=>{let x=($.content||[]).filter(C=>C.name==="cell");t.writeRaw("|"),x.forEach(C=>{t.writeRaw(" "),C.content&&C.content.forEach(I=>{typeof I=="string"?t.write(I.trim()):s([I],n)}),t.writeRaw(" |")}),t.writeRaw(`
34
34
  `),k===0&&h&&(t.writeRaw("|"),x.forEach(()=>{t.writeRaw(" --- |")}),t.writeRaw(`
35
35
  `)),k===0&&!h&&(t.writeRaw("|"),x.forEach(()=>{t.writeRaw(" --- |")}),t.writeRaw(`
36
36
  `))}),t.writeRaw(`
37
- `)}),":separator":St,row:St,cell:St,":toc":St,":toc-list":St,":toc-item":St,":image":(t,r)=>(e,n,s)=>{t.writeRaw(`![${e.alt||""}](${e.src})`)}};var hk=Sr(Ld());var am=Sr(Bu());var vk=()=>t=>{let r=(n,s={})=>{if((n.type=="code"||n.type=="text")&&(n.margin&&s.margin&&s.margin.length>0&&s.margin.length==n.margin.length&&(n.type="para"),n.type==="code")){var o=new RegExp(`^[ ]{0,${n.margin.length}}`,"gm");n.text=n.text.replace(o,"")}if(n.type==="block"){s.margin=typeof n.margin!="string"?"":n.margin;let l={...s};l.nest=(l.nest||0)+1,n.content.map(f=>{r(f,s)})}};var e={};return t.forEach(n=>r(n,e)),t},Bd=vk;var oo=Sr(zd());var Ak=()=>t=>{let r=lr({":para":(e,n,s)=>lr({":text":(o,l)=>oo.parse(o.value),":verbatim":(o,l)=>oo.parse(o.value)})(e,{...n}),":block":(e,n,s)=>{if("name"in e&&e.name==="pod")return{...e,content:s(e.content,n,s)};let o=Ct(e,n),l="name"in e?e.name:"",f=["code","data","markdown","picture","formula"].includes(l),c=o.getAllValues("allow");if(io(l)||f&&c.length===0)return e;let g=c.sort(),h=lr({":verbatim":($,k)=>oo.parse($.value,{allowed:g}),":text":($,k)=>oo.parse($.value,{allowed:g}),":block":($,k)=>r($,{...k})});return{...e,content:h(e.content,{...n})}}});return r(t,{})},Vd=Ak;var Hd=()=>t=>{let r=e=>{if(Array.isArray(e))e.forEach(n=>{r(n)});else if(e&&e.type==="block"){let n=/^item(\d+)?/.exec(e.name);if(n){e.name="item",e.level=n[1]||1;let s=(e.config||[]).find(o=>o.name==="checked");if(s&&(e.checked=s.value!==!1&&s.value!==0&&s.value!=="0"),e.content[0]){let o=e.content[0];if(o.text){if(!s){let c=/^\[( |x)\]\s*/,g=c.exec(o.text);g&&(e.checked=g[1]==="x",o.text=o.text.replace(c,""),o.type==="para"&&(o.content=[o.text]),e.config=e.config||[],e.config.push({name:"checked",value:e.checked,type:"boolean"}))}let l=/^(\s*#\s*)/;l.exec(o.text)&&(o.text=o.text.replace(l,""),o.type==="para"&&(o.content=[o.text]),e.config=e.config||[],e.config.push({name:"numbered",value:!0,type:"boolean"}))}}}r(e.content)}};return r(t),t};var Ud=()=>t=>{let r=e=>{if(Array.isArray(e))e.forEach(n=>{r(n)});else if(e&&e.type==="block"){let n=/^head(\d+)?/.exec(e.name);if(n&&(e.name="head",e.level=n[1]||1,e.content[0])){let s=e.content[0];if(s.text){let o=/(\s*#\s*)/;o.exec(s.text)&&(s.text=s.text.replace(o,""),e.config={...e.config,numbered:!0})}}r(e.content)}};return r(t),t};var Gd=()=>t=>{let r=(o,l)=>(o.name==="item"||o.name==="defn")&&l.name===o.name&&o.level===l.level&&e(o)===e(l),e=o=>Boolean(o.config&&o.config.numbered),n=o=>{let l={};return o.reduce((c,g)=>(g.name==="defn"?r(l,g)?c[c.length-1].push(g):c.push([g]):c.push(g),l=g,c),[]).map(c=>c instanceof Array?c[0].name!=="defn"?c:{type:"list",list:c[0].name==="defn"?"variable":e(c[0])?"ordered":"itemized",level:1,content:[...c]}:(c.content&&c.type!=="fcode"&&(c.content=n(c.content)),c))};return t=(o=>Array.isArray(o)?n(o):(o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var Kd=()=>t=>{let r=(l,f)=>(l.name==="item"||l.name==="defn")&&f.name===l.name&&l.level===f.level&&e(l)===e(f)&&n(l)===n(f),e=l=>Boolean(Ct(l,{}).exists("numbered")),n=l=>l.checked!==void 0,s=(l,f=1)=>{let c=x=>x.length>0&&x[x.length-1].type==="list",g=x=>{if(c(x))return x[x.length-1]},h=(x,C)=>C.name&&C.name==="item"&&C.type&&C.type==="block"||C.type==="blankline",$={};return l.reduce((x,C)=>C.name==="item"&&C.type==="block"&&C.level<f?[...x,C]:(C.name==="item"&&C.type==="block"&&(!c(x)||Number(C.level)===f&&g(x).list!==(e(C)?"ordered":n(C)?"task":"itemized"))&&x.push({type:"list",level:C.level,content:[],list:e(C)?"ordered":n(C)?"task":"itemized"}),c(x)&&h(g(x),C)?g(x).content.push(C):x.push(C),x),[]).map(x=>(x.content&&x.type!=="fcode"&&(x.content=s(x.content,Number(x.level||0)+1)),x))};return t=(l=>(Array.isArray(l)?l=s(l):l.type==="block"&&l.name!=="table"&&(l.content=s(l.content)),l))(t),t};var Wd=()=>t=>lr({defn:e=>{let n=e.content,s=n.length,o=[],l=!1;for(let f=0;f<s;f++){let c=n[f];if(c.type==="para"&&!l){let g=c.content[0],$=g.value.split(`
37
+ `)}),":separator":St,row:St,cell:St,":toc":St,":toc-list":St,":toc-item":St,":image":(t,r)=>(e,n,s)=>{t.writeRaw(`![${e.alt||""}](${e.src})`)}};var dk=Sr(jd());var lm=Sr(Bu());var wk=()=>t=>{let r=(n,s={})=>{if((n.type=="code"||n.type=="text")&&(n.margin&&s.margin&&s.margin.length>0&&s.margin.length==n.margin.length&&(n.type="para"),n.type==="code")){var o=new RegExp(`^[ ]{0,${n.margin.length}}`,"gm");n.text=n.text.replace(o,"")}if(n.type==="block"){s.margin=typeof n.margin!="string"?"":n.margin;let l={...s};l.nest=(l.nest||0)+1,n.content.map(f=>{r(f,s)})}};var e={};return t.forEach(n=>r(n,e)),t},Md=wk;var oo=Sr(Vd());var xk=()=>t=>{let r=lr({":para":(e,n,s)=>lr({":text":(o,l)=>oo.parse(o.value),":verbatim":(o,l)=>oo.parse(o.value)})(e,{...n}),":block":(e,n,s)=>{if("name"in e&&e.name==="pod")return{...e,content:s(e.content,n,s)};let o=Ct(e,n),l="name"in e?e.name:"",f=["code","data","markdown","picture","formula"].includes(l),c=o.getAllValues("allow");if(io(l)||f&&c.length===0)return e;let g=c.sort(),h=lr({":verbatim":($,k)=>oo.parse($.value,{allowed:g}),":text":($,k)=>oo.parse($.value,{allowed:g}),":block":($,k)=>r($,{...k})});return{...e,content:h(e.content,{...n})}}});return r(t,{})},Hd=xk;var Ud=()=>t=>{let r=e=>{if(Array.isArray(e))e.forEach(n=>{r(n)});else if(e&&e.type==="block"){let n=/^item(\d+)?/.exec(e.name);if(n){e.name="item",e.level=n[1]||1;let s=(e.config||[]).find(o=>o.name==="checked");if(s&&(e.checked=s.value!==!1&&s.value!==0&&s.value!=="0"),e.content[0]){let o=e.content[0];if(o.text){if(!s){let c=/^\[( |x)\]\s*/,g=c.exec(o.text);g&&(e.checked=g[1]==="x",o.text=o.text.replace(c,""),o.type==="para"&&(o.content=[o.text]),e.config=e.config||[],e.config.push({name:"checked",value:e.checked,type:"boolean"}))}let l=/^(\s*#\s*)/;l.exec(o.text)&&(o.text=o.text.replace(l,""),o.type==="para"&&(o.content=[o.text]),e.config=e.config||[],e.config.push({name:"numbered",value:!0,type:"boolean"}))}}}r(e.content)}};return r(t),t};var Gd=()=>t=>{let r=e=>{if(Array.isArray(e))e.forEach(n=>{r(n)});else if(e&&e.type==="block"){let n=/^head(\d+)?/.exec(e.name);if(n&&(e.name="head",e.level=n[1]||1,e.content[0])){let s=e.content[0];if(s.text){let o=/(\s*#\s*)/;o.exec(s.text)&&(s.text=s.text.replace(o,""),e.config={...e.config,numbered:!0})}}r(e.content)}};return r(t),t};var Kd=()=>t=>{let r=(o,l)=>(o.name==="item"||o.name==="defn")&&l.name===o.name&&o.level===l.level&&e(o)===e(l),e=o=>Boolean(o.config&&o.config.numbered),n=o=>{let l={};return o.reduce((c,g)=>(g.name==="defn"?r(l,g)?c[c.length-1].push(g):c.push([g]):c.push(g),l=g,c),[]).map(c=>c instanceof Array?c[0].name!=="defn"?c:{type:"list",list:c[0].name==="defn"?"variable":e(c[0])?"ordered":"itemized",level:1,content:[...c]}:(c.content&&c.type!=="fcode"&&(c.content=n(c.content)),c))};return t=(o=>Array.isArray(o)?n(o):(o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var Wd=()=>t=>{let r=(l,f)=>(l.name==="item"||l.name==="defn")&&f.name===l.name&&l.level===f.level&&e(l)===e(f)&&n(l)===n(f),e=l=>Boolean(Ct(l,{}).exists("numbered")),n=l=>l.checked!==void 0,s=(l,f=1)=>{let c=x=>x.length>0&&x[x.length-1].type==="list",g=x=>{if(c(x))return x[x.length-1]},h=(x,C)=>C.name&&C.name==="item"&&C.type&&C.type==="block"||C.type==="blankline",$={};return l.reduce((x,C)=>C.name==="item"&&C.type==="block"&&C.level<f?[...x,C]:(C.name==="item"&&C.type==="block"&&(!c(x)||Number(C.level)===f&&g(x).list!==(e(C)?"ordered":n(C)?"task":"itemized"))&&x.push({type:"list",level:C.level,content:[],list:e(C)?"ordered":n(C)?"task":"itemized"}),c(x)&&h(g(x),C)?g(x).content.push(C):x.push(C),x),[]).map(x=>(x.content&&x.type!=="fcode"&&(x.content=s(x.content,Number(x.level||0)+1)),x))};return t=(l=>(Array.isArray(l)?l=s(l):l.type==="block"&&l.name!=="table"&&(l.content=s(l.content)),l))(t),t};var Zd=()=>t=>lr({defn:e=>{let n=e.content,s=n.length,o=[],l=!1;for(let f=0;f<s;f++){let c=n[f];if(c.type==="para"&&!l){let g=c.content[0],$=g.value.split(`
38
38
  `),k=$.shift(),x={type:"para",name:"term",text:k,content:[{type:"text",value:k}]};o.push(x),$.length==1&&$[0]===""||(g.value=$.join(`
39
39
  `),c.text=g.value,o.push(c)),l=!0}else o.push(c)}return e.content=o,e}})(t,{});function ao(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(ao(e)):r.concat(e),[])}function Uu(t){let r=[],e="",n=[],s=!1,o=0;for(;o<t.length;){let l=t[o];if(s){if(l==='"'&&t[o+1]==='"'){e+='"',o+=2;continue}if(l==='"'){s=!1,o++;continue}e+=l,o++;continue}if(l==='"'&&e===""){s=!0,o++;continue}if(l===","){n.push(e),e="",o++;continue}if(l==="\r"){o++;continue}if(l===`
40
- `){n.push(e),r.push(n),n=[],e="",o++;continue}e+=l,o++}return(e!==""||n.length>0)&&(n.push(e),r.push(n)),r.filter(l=>!(l.length===1&&l[0].trim()===""))}function Gu(t){return t.split(/\r?\n/).map(n=>n.split(" ")).filter(n=>!(n.length===1&&n[0].trim()===""))}function ya(t){if(!t||typeof t!="string")return{type:"",params:{}};let r=t.split(";").map(s=>s.trim()),e=(r.shift()||"").toLowerCase(),n={};for(let s of r){if(!s)continue;let o=s.indexOf("=");if(o<0)continue;let l=s.slice(0,o).trim().toLowerCase(),f=s.slice(o+1).trim();(f.startsWith('"')&&f.endsWith('"')||f.startsWith("'")&&f.endsWith("'"))&&(f=f.slice(1,-1)),l&&(n[l]=f)}return{type:e,params:n}}function Ku(t,r){let e=null,n=s=>{if(!e){if(Array.isArray(s)){s.forEach(n);return}if(!(!s||typeof s!="object")){if(s.type==="block"&&s.name==="data"&&Ct(s,{}).getFirstValue("key")===r){e=s;return}Array.isArray(s.content)&&s.content.forEach(n)}}};return n(t),e}function ba(t){if(!t||!Array.isArray(t.content))return"";let r=t.content.find(e=>e&&e.type==="verbatim");return r&&typeof r.value=="string"?r.value:""}function Ek(t){let r=[];lr({"row:text":l=>(r.push(l.value),l),"head:text":l=>(r.push(l.value),l)})(t,{});let s=r.join(`
41
- `).trim().split(/\r?\n/).map(l=>l.trim()).filter(l=>l.length>0);if(s.length!==1)return null;let o=s[0].match(/^(data|file):(\S+)$/);return o?{scheme:o[1],target:o[2]}:null}function Jd(t){return{name:"cell",type:"block",margin:"",content:[{type:"text",value:t}]}}function _k(t,r){let e={name:"row",type:"block",margin:"",content:t};return r&&(e.config=[{name:"header",value:!0,type:"boolean"}]),e}function Wu(t,r=!1){return t.map((e,n)=>{let s=e.map(o=>Jd(o.trim()));return _k(s,r&&n===0)})}function lo(t,r="table"){if(!t||!Array.isArray(t.content))return t;let e=t.content.filter($=>$&&$.type==="block"&&$.name==="row");if(e.length===0)return t;let n=$=>Array.isArray($.content)?$.content.filter(k=>k&&k.name==="cell"):[],s=$=>Array.isArray($.config)&&$.config.some(k=>k.name==="header"&&k.value===!0),o=$=>Array.isArray($.config)&&$.config.some(k=>k.name==="colspan"||k.name==="rowspan"),l=$=>n($).some(o);if(e.some(l))return t;let f=e.find(s),c=f?n(f).length:Math.max(...e.map($=>n($).length));if(c===0)return t;let g=!1,h=t.content.map($=>{if(!$||$.type!=="block"||$.name!=="row")return $;let k=n($);if(k.length===c)return $;if(k.length<c){let N=[];for(let B=k.length;B<c;B++)N.push(Jd(""));return console.warn(`[${r}] row has ${k.length} cells, expected ${c} \u2014 padded with ${N.length} empty`),g=!0,{...$,content:[...$.content,...N]}}let x=k.length-c;console.warn(`[${r}] row has ${k.length} cells, expected ${c} \u2014 truncated ${x}`),g=!0;let C=c,I=[];for(let N of $.content||[])N&&N.type==="block"&&N.name==="cell"?C>0&&(I.push(N),C--):I.push(N);return{...$,content:I}});return g?{...t,content:h}:t}function Sk(t){let r=new Set;for(let e of t)if(!(!e||typeof e!="string")&&(/\s\|\s/.test(e)?r.add("pipe"):/\s\+\s/.test(e)?r.add("plus"):e.trim().length>0&&r.add("whitespace"),r.size>1))break;r.size>1&&console.warn(`[table] mixed separator types detected: ${Array.from(r).join(", ")} \u2014 recommend a single style`)}function Pk(t,r){return{type:"block",name:"code",margin:t.margin||"",content:Array.isArray(r.content)?r.content:[],config:Array.isArray(t.config)?t.config:[]}}var Hu=(t,r,e)=>{let n=[];for(let s=0;t.length>s;s++)n.push(e(parseInt(t[s],10),parseInt(r[s],10)));return n.join("")},Tk=(t,r)=>{let e=Math.max(...[...t,...r].map(o=>o.length));return t.map(o=>{let l=o+" ".repeat(e-o.length),f=[],c=/\s+[+|\s]\s/g,g;for(;(g=c.exec(l))!=null;){let h="1".repeat(g.index)+"0".repeat(g[0].length);f.push(h+"1".repeat(e-h.length))}return f.reduce((h,$)=>Hu(h,$,(k,x)=>k&x),"1".repeat(e))}).map(o=>Hu(o,"",l=>l==0?1:0)).reduce((o,l)=>Hu(o,l,(f,c)=>f&c),"1".repeat(e))},Zd=(t,r)=>{let n=ao(t.split(/\n/).filter(o=>o.length>0)).map(o=>{let l=/((1+|0+))/g,f=[],c;for(;(c=l.exec(r))!=null;)c[0][0]!="1"&&f.push(o.substring(c.index,c.index+c[0].length));return f}),s=[];return n.reduce((o,l)=>{for(let f=0;f<l.length;f++)o[f]=(o[f]===void 0?"":o[f])+" "+l[f];return o},s),s},Zu=t=>/(?:^|\s)\|(?:\s|$)/.test(t)?"pipe":/(?:^|\s)\+(?:\s|$)/.test(t)?"plus":"whitespace",Qd=t=>{let r=0,e=t.length;return t[r]===""&&r++,e>r&&t[e-1]===""&&e--,t.slice(r,e)},Xd=t=>Qd(t.split(/\s*\|\s*/).map(r=>r.trim())),Yd=t=>Qd(t.split(/\s*\+\s*/).map(r=>r.trim())),em=t=>t.trim().split(/\s{2,}/).filter(r=>r!==""),tm=t=>{if(t.trim()==="")return[];let e=Zu(t);return e==="pipe"?Xd(t):e==="plus"?Yd(t):em(t)},Fk=t=>{let r=t.split(/\r?\n/).filter(f=>f.trim()!=="");if(r.length===0)return[];if(r.length===1)return tm(r[0]);let e=Zu(r[0]),n=e==="pipe"?Xd:e==="plus"?Yd:em,s=r.map(n),o=Math.max(...s.map(f=>f.length)),l=[];for(let f=0;f<o;f++){let c=s.map(g=>g[f]??"").filter(g=>g!=="");l.push(c.join(" "))}return l},Ik=t=>{if(!Array.isArray(t.content)||t.content.length===0||!t.content.some(n=>n&&n.type==="block"&&n.name!=="cell"&&n.name!=="blankline"))return t;let e=t.content.map(n=>!n||n.type!=="block"||n.name==="cell"||n.name==="blankline"?n:{type:"block",name:"cell",content:[n],margin:n.margin||""});return{...t,content:e}},Ok=t=>Array.isArray(t.content)&&t.content.some(r=>r&&r.type==="block"&&(r.name==="row"||r.name==="cell")),rm=()=>t=>lr({table:e=>{let n=Ek(e);if(n&&n.scheme==="data"){let Y=Ku(t,n.target);if(!Y)return console.warn(`[table] no =data block found for data:${n.target} \u2014 rendered as empty`),{...e,content:[]};let pe=Ct(Y,{}).getFirstValue("mime-type"),{type:ve,params:ke}=ya(pe),Le=ve==="text/csv";if(Le||ve==="text/tab-separated-values"){let Fe=ba(Y),ge=Le?Uu(Fe):Gu(Fe);if(ge.length===0)return console.warn(`[table] ${Le?"CSV":"TSV"} parse produced no rows for data:${n.target} \u2014 rendered as empty`),{...e,content:[]};let Pe=ke.header==="present",Qe={...e,content:Wu(ge,Pe)};return lo(Qe,`table data:${n.target}`)}return console.warn(`[table] =data :key<${n.target}> has non-tabular mime-type ${pe||"(none)"} \u2014 rendered as =code`),Pk(e,Y)}if(Ok(e)){let Y=(e.content||[]).map(pe=>pe&&pe.name==="row"?Ik(pe):pe);return lo({...e,content:Y},"table")}let s=[],o=Y=>{s.push(Y.value)},l=[];if(lr({"row:text":o,"head:text":o,":separator":Y=>{l.push(Y.text)}})(e),!s.length)return e;let f=Y=>Y.split(/\n/).filter(pe=>pe.length>0),c=ao(s.map(f)),g=ao(l.map(f));Sk(c);let h=[];lr({"row:text":Y=>{h.push(Y.value)}})(e);let $=(Y,pe,ve={})=>({...ve,name:Y,type:"block",content:Array.isArray(pe)?pe:[pe]}),k=Y=>$("row",Y),x=Y=>$("row",Y,{config:[{name:"header",value:!0,type:"boolean"}]}),C=Y=>$("cell",{type:"text",value:Y}),I=Tk(c,g),N=new Set(c.map(Zu)),B=N.has("pipe")||N.has("plus"),X=N.has("whitespace"),le=B&&X,$e=Y=>le&&Y.split(/\r?\n/).filter(ve=>ve.trim()!=="").length<=1?Fk(Y):Zd(Y,I),he=lr({"row:text":Y=>{if(h.length==1){let pe=ao([Y.value].map(f));return le?pe.map(ve=>k(tm(ve).map(C))):pe.map(ve=>k(Zd(ve,I).map(C)))}return k($e(Y.value).map(C))},"head:text":Y=>x($e(Y.value).map(C))})(e);return lo(he,"table")}})(t,{});function Rk(t){return!Array.isArray(t)||t.length===0?[]:t.length===1&&typeof t[0]=="string"&&t[0].includes(",")?t[0].split(",").map(r=>r.trim()).filter(r=>r.length>0):t.map(r=>String(r).trim()).filter(r=>r.length>0)}function nm(t,r,e){let n=t.trim();if(/^\d+$/.test(n)){let o=parseInt(n,10),l=o-1;if(l<0||l>=e)throw new Error(`column index ${o} out of range (1..${e})`);return l}if(!r)throw new Error(`column name "${t}" requires header=present`);let s=r.indexOf(t);if(s===-1)throw new Error(`column name "${t}" not found in header`);return s}function Nk(t,r,e){if(t.length===0)return t;let n=t[0].length,s=e?t[0]:null,o=r.map(l=>nm(l,s,n));return t.map(l=>o.map(f=>l[f]??""))}function Dk(t,r,e){if(!e||t.length===0)return t;let n=[...t[0]];for(let[s,o]of Object.entries(r)){let l=nm(s,n,n.length);n[l]=String(o)}return[n,...t.slice(1)]}function qk(t,r){let e=Ct(t,{}),n=e.getFirstValue("src"),s=e.getFirstValue("mime-type"),o=e.getMapValue("rename"),l=e.exists("columns"),f=l?Rk(e.getAllValues("columns")):null,c=ba(t),g=c.trim().length>0;if(n&&g)throw new Error(":src and inline body are mutually exclusive");if(l&&(!f||f.length===0))throw new Error(":columns must have at least one entry; omit the attribute to render all columns");let h,$,k;if(n){let B=String(n),X=B.match(/^(file|data|http|https|doc):(.+)$/),le=X?X[1]:"file",$e=X?X[2]:B;if(le==="data"){let he=Ku(r,$e);if(!he)return console.warn(`[data-table] no =data block found for data:${$e} \u2014 rendered as empty`),{...t,name:"table",content:[]};if(s)throw new Error(`:mime-type cannot be declared with :src<data:${$e}> (inherited from referenced block)`);let Y=Ct(he,{}).getFirstValue("mime-type");if(!Y)return console.warn(`[data-table] =data block ${$e} has no :mime-type \u2014 rendered as empty`),{...t,name:"table",content:[]};let pe=ya(Y);$=pe.type,k=pe.params.header==="present",h=ba(he)}else return t}else{if(!s)throw new Error("inline body requires :mime-type");let B=ya(s);$=B.type,k=B.params.header==="present",h=c}let x=$==="text/csv";if(!x&&!($==="text/tab-separated-values"))return console.warn(`[data-table] unsupported mime-type ${$} \u2014 rendered as empty`),{...t,name:"table",content:[]};let I=x?Uu(h):Gu(h);if(I.length===0)return console.warn(`[data-table] ${x?"CSV":"TSV"} parse produced no rows \u2014 rendered as empty`),{...t,name:"table",content:[]};f&&(I=Nk(I,f,k)),o&&(I=Dk(I,o,k));let N={...t,name:"table",content:Wu(I,k)};return lo(N,"data-table")}var im=()=>t=>lr({"data-table":e=>{try{return qk(e,t)}catch(n){return console.warn(`[data-table] ${n.message}`),{...e,name:"table",content:[]}}}})(t);var TA={":text":(t,r)=>(e,n,s)=>{e.value?t.write(n!=null&&n.maskMode?Jr(e.value):e.value):s(e.content,n)},"A<>":(t,r)=>(e,n,s)=>{if(!(n.alias&&n.alias.hasOwnProperty(e.content)))t.write(`A<${e.content}>`);else{let o=n.alias[e.content].join(`
42
- `),l=r(o),f=ga()(l);f[0].type==="para"?s(f[0].content,n):s(f,n)}},"C<>":Ve("<code>","</code>"),"D<>":(t,r)=>(e,n,s)=>{let o={node:e},l=[e.content[0]];o&&(l=o),t.hasOwnProperty("DEFINITIONS")||(t.DEFINITIONS=[]),t.DEFINITIONS.push({definition:l}),t.writeRaw("<dfn>"),s(e.content,n),t.writeRaw("</dfn>")},"B<>":Ve("<strong>","</strong>"),"I<>":Ve("<em>","</em>"),"R<>":Ve("<var>","</var>"),"K<>":Ve("<kbd>","</kbd>"),"O<>":Ve("<del>","</del>"),"G<>":(t,r)=>(e,n,s)=>{if(n.renderMode==="draft"){t.writeRaw('<span class="masked-draft">'),s(e.content,n),t.writeRaw("</span>");return}t.writeRaw('<span class="masked">'),t.write(Jr(hs(e.content))),t.writeRaw("</span>")},"H<>":Ve("<sup>","</sup>"),"J<>":Ve("<sub>","</sub>"),"L<>":Ir((t,r)=>{let{meta:e}=t;return e===null&&(e=t.content),Ve(`<a href="${e}">`,"</a>")}),"N<>":(t,r)=>(t.addListener("end",()=>{if(!t.hasOwnProperty("FOOTNOTES"))return;let e=t.FOOTNOTES;e.length<1||(t.writeRaw('<div class="footnotes">'),e.map(n=>{t.writeRaw(`<p><sup id="${n.fnId}" class="footnote"><a href="#${n.fnRefId}">[${n.gid}]</a></sup> `),n.make(),t.writeRaw("</p>")}),t.writeRaw("</div>"))}),(e,n,s)=>{if(e.content.length<1)return;t.hasOwnProperty("gid")||(t.gid=1);let o=t.gid++,l=`fnref:${o}`,f=`fn:${o}`;t.writeRaw(`<sup id="${l}" class="footnote"><a href="#${f}">[${o}]</a></sup>`),t.hasOwnProperty("FOOTNOTES")||(t.FOOTNOTES=[]),t.FOOTNOTES.push({gid:o,fnRefId:l,fnId:f,make:()=>{s(e.content,n)}})}),"S<>":(t,r)=>(e,n,s)=>{let f=(e.content||"").replace(/ /g,"&nbsp;").replace(/\n/g,"</br>");t.writeRaw(f)},"T<>":Ve("<samp>","</samp>"),"U<>":Ve("<u>","</u>"),"V<>":$r,"X<>":(t,r)=>(e,n,s)=>{s(e.content,n);let{entry:o}=e;if(o===null&&e.content.length>0)o=[e.content[0]];else return;t.hasOwnProperty("INDEXTERMS")||(t.INDEXTERMS=[]),t.INDEXTERMS.push({entry:o})},"Z<>":St,pod:$r,":code":Ve("<pre><code>","</code></pre>"),code:Or(Ve("<pre><code>","</code></pre>")),data:St,":verbatim":(t,r)=>(e,n,s)=>{if(e.error&&t.emit("errors",e.location),n!=null&&n.maskMode){t.write(Jr(e.value));return}s(e.value,n)},":blankline":St,":ambient":St,":config":Ir((t,r)=>(r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,St)),":alias":Ir((t,r)=>(r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,St)),para:Or($r),":para":Ve("<p>","</p>"),"head:block":ha({":para":$r},Ir((t,r)=>{let{level:e}=t,n=Lu(t,r),s=`<h${e}${n?` id="${n}"`:""}>${t.numberPrefix?`<span class="head-number">${t.numberPrefix}</span> `:""}`;return Ve(s,`</h${e}>`)})),":list":Ir((t,r)=>t.list==="ordered"?Ve("<ol>","</ol>"):t.list==="variable"?Ve("<dl>","</dl>"):t.list==="task"?Ve('<ul class="task-list">',"</ul>"):Ve("<ul>","</ul>")),"item:block":(t,r)=>(e,n,s)=>{e.content instanceof Array||console.error("[pod6] item:block : Error in content of "+JSON.stringify(e)),e.checked!==void 0?(t.writeRaw('<li class="task-list-item">'),t.writeRaw(e.checked?'<input type="checkbox" disabled checked> ':'<input type="checkbox" disabled> ')):t.writeRaw("<li>"),s(e.content,n),t.writeRaw("</li>")},"comment:block":St,"boundary:block":(t,r)=>(e,n)=>{let s=Ct(e,n);s.exists("caption")?(t.writeRaw('<hr title="'),t.write(s.getFirstValue("caption")),t.writeRaw('">')):t.writeRaw("<hr>")},defn:Ve("","</dd>"),"term:para":Ve("<dt>","</dt><dd>"),nested:Or($r,1),output:Or(Ve("<pre><samp>","</samp></pre>"),1),input:Or(Ve("<pre><kbd>","</kbd></pre>"),1),"table:block":Or((t,r)=>(e,n,s)=>{let o=Ct(e,n);t.writeRaw("<table>"),o.exists("caption")&&(t.writeRaw("<caption>"),t.write(o.getFirstValue("caption")),t.writeRaw("</caption>"));let l={...n,...e.align&&{"table.align":e.align}},f=e.content||[],c=I=>I&&I.name==="row"&&Array.isArray(I.config)&&I.config.some(N=>N.name==="header"&&N.value!==!1);if(!f.some(c)){s(f,l),t.writeRaw("</table>");return}let h=f.filter(I=>I&&I.name==="row"),$=f.filter(I=>!I||I.name!=="row"),k=0;for(;k<h.length&&c(h[k]);)k++;let x=h.slice(0,k),C=h.slice(k);s($,l),t.writeRaw("<thead>"),s(x,l),t.writeRaw("</thead>"),C.length>0&&(t.writeRaw("<tbody>"),s(C,l),t.writeRaw("</tbody>")),t.writeRaw("</table>")}),":separator":St,row:(t,r)=>(e,n,s)=>{let o=Ct(e,n),l=o.exists("header")&&o.getFirstValue("header")!==!1;t.writeRaw("<tr>"),s(e.content,{...n,__row_header:l,cellinRow:0}),t.writeRaw("</tr>")},cell:(t,r)=>(e,n,s)=>{let o=n.__row_header?"th":"td",l=Ct(e,n),f=l.exists("colspan")?l.getFirstValue("colspan"):null,c=l.exists("rowspan")?l.getFirstValue("rowspan"):null,g=($=>{if(!Array.isArray($))return null;let k=n.cellinRow++;return $[k]||null})(n["table.align"]),h="";f!==null&&Number(f)>1&&(h+=` colspan="${f}"`),c!==null&&Number(c)>1&&(h+=` rowspan="${c}"`),g&&["left","right","center","justify"].includes(g)&&(h+=` style="text-align:${g}"`),t.writeRaw(`<${o}${h}>`),s(e.content,n),t.writeRaw(`</${o}>`)},":toc":(t,r)=>(e,n,s)=>{t.writeRaw('<div className="toc">');let o=Ct(e,n);if(o.exists("title")){let l=o.getFirstValue("title");t.writeRaw('<div className="toctitle">'),t.write(l),t.writeRaw("</div>")}s(e.content,n),t.writeRaw("</div>")},":toc-list":Ir((t,r)=>Ve(`<ul class="toc-list listlevel${t.level}">`,"</ul>")),":toc-item":Ir((t,r)=>Ve('<li class="toc-item">',"</li>")),":image":(t,r)=>(e,n,s)=>{t.writeRaw(`<img src="${e.src}" alt="${e.alt}"/>`)}};var tE=new om.default({strict:!0,allowUnionTypes:!0});function jd(){var t=[];return r.use=e,r.parse=n,r.use(Bd),r.use(Hd),r.use(Ud),r.use(Wd),r.use(rm),r.use(im),r.use(Vd),r.use(Kd),r.use(Gd),r;function r(){}function e(s){if(!["function"].includes(typeof s))throw s;return t.push(s),r}function n(s,o={skipChain:0,podMode:1}){let{skipChain:l=0,podMode:f=1}=o,c=am.parse(s,{podMode:f});if(!l)for(let g=0;g<t.length;g++){let h=t[g];c=h(o)(c)}return c}}var Rd=jd().parse;var{version:rE}=sm();function Ju(t){if(t)throw t}var Pm=Sr(um(),1),af=Sr(bm(),1);function uo(t){if(typeof t!="object"||t===null)return!1;let r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function $m(){let t=[],r={run:e,use:n};return r;function e(...s){let o=-1,l=s.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);f(null,...s);function f(c,...g){let h=t[++o],$=-1;if(c){l(c);return}for(;++$<s.length;)(g[$]===null||g[$]===void 0)&&(g[$]=s[$]);s=g,h?Mk(h,f)(...g):l(null,...g)}}function n(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function Mk(t,r){let e;return n;function n(...l){let f=t.length>l.length,c;f&&l.push(s);try{c=t.apply(this,l)}catch(g){let h=g;if(f&&e)throw h;return s(h)}f||(c instanceof Promise?c.then(o,s):c instanceof Error?s(c):o(c))}function s(l,...f){e||(e=!0,r(l,...f))}function o(l){s(null,l)}}var Am=Sr(km(),1);function Fi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?vm(t.position):"start"in t||"end"in t?vm(t):"line"in t||"column"in t?Qu(t):""}function Qu(t){return xm(t&&t.line)+":"+xm(t&&t.column)}function vm(t){return Qu(t&&t.start)+"-"+Qu(t&&t.end)}function xm(t){return t&&typeof t=="number"?t:1}var wr=class extends Error{constructor(r,e,n){let s=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(n=e,e=void 0),typeof n=="string"){let l=n.indexOf(":");l===-1?s[1]=n:(s[0]=n.slice(0,l),s[1]=n.slice(l+1))}e&&("type"in e||"position"in e?e.position&&(o=e.position):"start"in e||"end"in e?o=e:("line"in e||"column"in e)&&(o.start=e)),this.name=Fi(e)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.source=s[0],this.ruleId=s[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}};wr.prototype.file="";wr.prototype.name="";wr.prototype.reason="";wr.prototype.message="";wr.prototype.stack="";wr.prototype.fatal=null;wr.prototype.column=null;wr.prototype.line=null;wr.prototype.source=null;wr.prototype.ruleId=null;wr.prototype.position=null;var Qr=Sr(require("path"),1);var Xu=Sr(require("process"),1);var Yu=require("url");function wa(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}var ef=["history","path","basename","stem","extname","dirname"],fo=class{constructor(r){let e;r?typeof r=="string"||(0,Am.default)(r)?e={value:r}:wa(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=Xu.default.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<ef.length;){let o=ef[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let s;for(s in e)ef.includes(s)||(this[s]=e[s])}get path(){return this.history[this.history.length-1]}set path(r){wa(r)&&(r=(0,Yu.fileURLToPath)(r)),rf(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Qr.default.dirname(this.path):void 0}set dirname(r){Cm(this.basename,"dirname"),this.path=Qr.default.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Qr.default.basename(this.path):void 0}set basename(r){rf(r,"basename"),tf(r,"basename"),this.path=Qr.default.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Qr.default.extname(this.path):void 0}set extname(r){if(tf(r,"extname"),Cm(this.dirname,"extname"),r){if(r.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qr.default.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Qr.default.basename(this.path,this.extname):void 0}set stem(r){rf(r,"stem"),tf(r,"stem"),this.path=Qr.default.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let s=new wr(r,e,n);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}info(r,e,n){let s=this.message(r,e,n);return s.fatal=null,s}fail(r,e,n){let s=this.message(r,e,n);throw s.fatal=!0,s}};function tf(t,r){if(t&&t.includes(Qr.default.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Qr.default.sep+"`")}function rf(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Cm(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var lf=Fm().freeze(),Tm={}.hasOwnProperty;function Fm(){let t=$m(),r=[],e={},n,s=-1;return o.data=l,o.Parser=void 0,o.Compiler=void 0,o.freeze=f,o.attachers=r,o.use=c,o.parse=g,o.stringify=h,o.run=$,o.runSync=k,o.process=x,o.processSync=C,o;function o(){let I=Fm(),N=-1;for(;++N<r.length;)I.use(...r[N]);return I.data((0,af.default)(!0,{},e)),I}function l(I,N){return typeof I=="string"?arguments.length===2?(of("data",n),e[I]=N,o):Tm.call(e,I)&&e[I]||null:I?(of("data",n),e=I,o):e}function f(){if(n)return o;for(;++s<r.length;){let[I,...N]=r[s];if(N[0]===!1)continue;N[0]===!0&&(N[0]=void 0);let B=I.call(o,...N);typeof B=="function"&&t.use(B)}return n=!0,s=Number.POSITIVE_INFINITY,o}function c(I,...N){let B;if(of("use",n),I!=null)if(typeof I=="function")he(I,...N);else if(typeof I=="object")Array.isArray(I)?$e(I):le(I);else throw new TypeError("Expected usable value, not `"+I+"`");return B&&(e.settings=Object.assign(e.settings||{},B)),o;function X(Y){if(typeof Y=="function")he(Y);else if(typeof Y=="object")if(Array.isArray(Y)){let[pe,...ve]=Y;he(pe,...ve)}else le(Y);else throw new TypeError("Expected usable value, not `"+Y+"`")}function le(Y){$e(Y.plugins),Y.settings&&(B=Object.assign(B||{},Y.settings))}function $e(Y){let pe=-1;if(Y!=null)if(Array.isArray(Y))for(;++pe<Y.length;){let ve=Y[pe];X(ve)}else throw new TypeError("Expected a list of plugins, not `"+Y+"`")}function he(Y,pe){let ve=-1,ke;for(;++ve<r.length;)if(r[ve][0]===Y){ke=r[ve];break}ke?(uo(ke[1])&&uo(pe)&&(pe=(0,af.default)(!0,ke[1],pe)),ke[1]=pe):r.push([...arguments])}}function g(I){o.freeze();let N=co(I),B=o.Parser;return nf("parse",B),Em(B,"parse")?new B(String(N),N).parse():B(String(N),N)}function h(I,N){o.freeze();let B=co(N),X=o.Compiler;return sf("stringify",X),_m(I),Em(X,"compile")?new X(I,B).compile():X(I,B)}function $(I,N,B){if(_m(I),o.freeze(),!B&&typeof N=="function"&&(B=N,N=void 0),!B)return new Promise(X);X(null,B);function X(le,$e){t.run(I,co(N),he);function he(Y,pe,ve){pe=pe||I,Y?$e(Y):le?le(pe):B(null,pe,ve)}}}function k(I,N){let B,X;return o.run(I,N,le),Sm("runSync","run",X),B;function le($e,he){Ju($e),B=he,X=!0}}function x(I,N){if(o.freeze(),nf("process",o.Parser),sf("process",o.Compiler),!N)return new Promise(B);B(null,N);function B(X,le){let $e=co(I);o.run(o.parse($e),$e,(Y,pe,ve)=>{if(Y||!pe||!ve)he(Y);else{let ke=o.stringify(pe,ve);ke==null||(Hk(ke)?ve.value=ke:ve.result=ke),he(Y,ve)}});function he(Y,pe){Y||!pe?le(Y):X?X(pe):N(null,pe)}}}function C(I){let N;o.freeze(),nf("processSync",o.Parser),sf("processSync",o.Compiler);let B=co(I);return o.process(B,X),Sm("processSync","process",N),B;function X(le){N=!0,Ju(le)}}}function Em(t,r){return typeof t=="function"&&t.prototype&&(zk(t.prototype)||r in t.prototype)}function zk(t){let r;for(r in t)if(Tm.call(t,r))return!0;return!1}function nf(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function sf(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function of(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _m(t){if(!uo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Sm(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function co(t){return Vk(t)?t:new fo(t)}function Vk(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Hk(t){return typeof t=="string"||(0,Pm.default)(t)}function Om(t,r){var{includeImageAlt:e=!0}=r||{};return Rm(t,e)}function Rm(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&Im(t.children,r)||Array.isArray(t)&&Im(t,r))||""}function Im(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=Rm(t[n],r);return e.join("")}function Rt(t,r,e,n){let s=t.length,o=0,l;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,e=e>0?e:0,n.length<1e4)l=Array.from(n),l.unshift(r,e),[].splice.apply(t,l);else for(e&&[].splice.apply(t,[r,e]);o<n.length;)l=n.slice(o,o+1e4),l.unshift(r,0),[].splice.apply(t,l),o+=1e4,r+=1e4}function kr(t,r){return t.length>0?(Rt(t,t.length,0,r),t):r}var Nm={}.hasOwnProperty;function ka(t){let r={},e=-1;for(;++e<t.length;)Uk(r,t[e]);return r}function Uk(t,r){let e;for(e in r){let s=(Nm.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],l;for(l in o){Nm.call(s,l)||(s[l]=[]);let f=o[l];Gk(s[l],Array.isArray(f)?f:f?[f]:[])}}}function Gk(t,r){let e=-1,n=[];for(;++e<r.length;)(r[e].add==="after"?t:n).push(r[e]);Rt(t,0,0,n)}var Dm=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;var ur=ni(/[A-Za-z]/),Ii=ni(/\d/),qm=ni(/[\dA-Fa-f]/),Wt=ni(/[\dA-Za-z]/),Lm=ni(/[!-/:-@[-`{-~]/),uf=ni(/[#-'*+\--9=?A-Z^-~]/);function ri(t){return t!==null&&(t<32||t===127)}function rt(t){return t!==null&&(t<0||t===32)}function de(t){return t!==null&&t<-2}function Ue(t){return t===-2||t===-1||t===32}var Oi=ni(/\s/),Ri=ni(Dm);function ni(t){return r;function r(e){return e!==null&&t.test(String.fromCharCode(e))}}function xe(t,r,e,n){let s=n?n-1:Number.POSITIVE_INFINITY,o=0;return l;function l(c){return Ue(c)?(t.enter(e),f(c)):r(c)}function f(c){return Ue(c)&&o++<s?(t.consume(c),f):(t.exit(e),r(c))}}var jm={tokenize:Kk};function Kk(t){let r=t.attempt(this.parser.constructs.contentInitial,n,s),e;return r;function n(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),xe(t,r,"linePrefix")}function s(f){return t.enter("paragraph"),o(f)}function o(f){let c=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=c),e=c,l(f)}function l(f){if(f===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(f);return}return de(f)?(t.consume(f),t.exit("chunkText"),o):(t.consume(f),l)}}var Mm={tokenize:Wk},Bm={tokenize:Zk};function Wk(t){let r=this,e=[],n=0,s,o,l;return f;function f(le){if(n<e.length){let $e=e[n];return r.containerState=$e[1],t.attempt($e[0].continuation,c,g)(le)}return g(le)}function c(le){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&X();let $e=r.events.length,he=$e,Y;for(;he--;)if(r.events[he][0]==="exit"&&r.events[he][1].type==="chunkFlow"){Y=r.events[he][1].end;break}B(n);let pe=$e;for(;pe<r.events.length;)r.events[pe][1].end=Object.assign({},Y),pe++;return Rt(r.events,he+1,0,r.events.slice($e)),r.events.length=pe,g(le)}return f(le)}function g(le){if(n===e.length){if(!s)return k(le);if(s.currentConstruct&&s.currentConstruct.concrete)return C(le);r.interrupt=Boolean(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(Bm,h,$)(le)}function h(le){return s&&X(),B(n),k(le)}function $(le){return r.parser.lazy[r.now().line]=n!==e.length,l=r.now().offset,C(le)}function k(le){return r.containerState={},t.attempt(Bm,x,C)(le)}function x(le){return n++,e.push([r.currentConstruct,r.containerState]),k(le)}function C(le){if(le===null){s&&X(),B(0),t.consume(le);return}return s=s||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:s}),I(le)}function I(le){if(le===null){N(t.exit("chunkFlow"),!0),B(0),t.consume(le);return}return de(le)?(t.consume(le),N(t.exit("chunkFlow")),n=0,r.interrupt=void 0,f):(t.consume(le),I)}function N(le,$e){let he=r.sliceStream(le);if($e&&he.push(null),le.previous=o,o&&(o.next=le),o=le,s.defineSkip(le.start),s.write(he),r.parser.lazy[le.start.line]){let Y=s.events.length;for(;Y--;)if(s.events[Y][1].start.offset<l&&(!s.events[Y][1].end||s.events[Y][1].end.offset>l))return;let pe=r.events.length,ve=pe,ke,Le;for(;ve--;)if(r.events[ve][0]==="exit"&&r.events[ve][1].type==="chunkFlow"){if(ke){Le=r.events[ve][1].end;break}ke=!0}for(B(n),Y=pe;Y<r.events.length;)r.events[Y][1].end=Object.assign({},Le),Y++;Rt(r.events,ve+1,0,r.events.slice(pe)),r.events.length=Y}}function B(le){let $e=e.length;for(;$e-- >le;){let he=e[$e];r.containerState=he[1],he[0].exit.call(r,t)}e.length=le}function X(){s.write([null]),o=void 0,s=void 0,r.containerState._closeFlow=void 0}}function Zk(t,r,e){return xe(t,t.attempt(this.parser.constructs.document,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ys(t){if(t===null||rt(t)||Oi(t))return 1;if(Ri(t))return 2}function ii(t,r,e){let n=[],s=-1;for(;++s<t.length;){let o=t[s].resolveAll;o&&!n.includes(o)&&(r=o(r,e),n.push(o))}return r}var po={name:"attention",tokenize:Qk,resolveAll:Jk};function Jk(t,r){let e=-1,n,s,o,l,f,c,g,h;for(;++e<t.length;)if(t[e][0]==="enter"&&t[e][1].type==="attentionSequence"&&t[e][1]._close){for(n=e;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&r.sliceSerialize(t[n][1]).charCodeAt(0)===r.sliceSerialize(t[e][1]).charCodeAt(0)){if((t[n][1]._close||t[e][1]._open)&&(t[e][1].end.offset-t[e][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[e][1].end.offset-t[e][1].start.offset)%3))continue;c=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let $=Object.assign({},t[n][1].end),k=Object.assign({},t[e][1].start);zm($,-c),zm(k,c),l={type:c>1?"strongSequence":"emphasisSequence",start:$,end:Object.assign({},t[n][1].end)},f={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:k},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},s={type:c>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},f.end)},t[n][1].end=Object.assign({},l.start),t[e][1].start=Object.assign({},f.end),g=[],t[n][1].end.offset-t[n][1].start.offset&&(g=kr(g,[["enter",t[n][1],r],["exit",t[n][1],r]])),g=kr(g,[["enter",s,r],["enter",l,r],["exit",l,r],["enter",o,r]]),g=kr(g,ii(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),g=kr(g,[["exit",o,r],["enter",f,r],["exit",f,r],["exit",s,r]]),t[e][1].end.offset-t[e][1].start.offset?(h=2,g=kr(g,[["enter",t[e][1],r],["exit",t[e][1],r]])):h=0,Rt(t,n-1,e-n+3,g),e=n+g.length-h-2;break}}for(e=-1;++e<t.length;)t[e][1].type==="attentionSequence"&&(t[e][1].type="data");return t}function Qk(t,r){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,s=ys(n),o;return l;function l(c){return t.enter("attentionSequence"),o=c,f(c)}function f(c){if(c===o)return t.consume(c),f;let g=t.exit("attentionSequence"),h=ys(c),$=!h||h===2&&s||e.includes(c),k=!s||s===2&&h||e.includes(n);return g._open=Boolean(o===42?$:$&&(s||!k)),g._close=Boolean(o===42?k:k&&(h||!$)),r(c)}}function zm(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var ff={name:"autolink",tokenize:Xk};function Xk(t,r,e){let n=1;return s;function s(C){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(C){return ur(C)?(t.consume(C),l):uf(C)?g(C):e(C)}function l(C){return C===43||C===45||C===46||Wt(C)?f(C):g(C)}function f(C){return C===58?(t.consume(C),c):(C===43||C===45||C===46||Wt(C))&&n++<32?(t.consume(C),f):g(C)}function c(C){return C===62?(t.exit("autolinkProtocol"),x(C)):C===null||C===32||C===60||ri(C)?e(C):(t.consume(C),c)}function g(C){return C===64?(t.consume(C),n=0,h):uf(C)?(t.consume(C),g):e(C)}function h(C){return Wt(C)?$(C):e(C)}function $(C){return C===46?(t.consume(C),n=0,h):C===62?(t.exit("autolinkProtocol").type="autolinkEmail",x(C)):k(C)}function k(C){return(C===45||Wt(C))&&n++<63?(t.consume(C),C===45?k:$):e(C)}function x(C){return t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),r}}var En={tokenize:Yk,partial:!0};function Yk(t,r,e){return xe(t,n,"linePrefix");function n(s){return s===null||de(s)?r(s):e(s)}}var va={name:"blockQuote",tokenize:ev,continuation:{tokenize:tv},exit:rv};function ev(t,r,e){let n=this;return s;function s(l){if(l===62){let f=n.containerState;return f.open||(t.enter("blockQuote",{_container:!0}),f.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(l),t.exit("blockQuoteMarker"),o}return e(l)}function o(l){return Ue(l)?(t.enter("blockQuotePrefixWhitespace"),t.consume(l),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(l))}}function tv(t,r,e){return xe(t,t.attempt(va,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rv(t){t.exit("blockQuote")}var xa={name:"characterEscape",tokenize:nv};function nv(t,r,e){return n;function n(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),s}function s(o){return Lm(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var cf={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
43
- `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var iv={}.hasOwnProperty;function bs(t){return iv.call(cf,t)?cf[t]:!1}var Ca={name:"characterReference",tokenize:sv};function sv(t,r,e){let n=this,s=0,o,l;return f;function f($){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume($),t.exit("characterReferenceMarker"),c}function c($){return $===35?(t.enter("characterReferenceMarkerNumeric"),t.consume($),t.exit("characterReferenceMarkerNumeric"),g):(t.enter("characterReferenceValue"),o=31,l=Wt,h($))}function g($){return $===88||$===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume($),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,l=qm,h):(t.enter("characterReferenceValue"),o=7,l=Ii,h($))}function h($){let k;return $===59&&s?(k=t.exit("characterReferenceValue"),l===Wt&&!bs(n.sliceSerialize(k))?e($):(t.enter("characterReferenceMarker"),t.consume($),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):l($)&&s++<o?(t.consume($),h):e($)}}var Aa={name:"codeFenced",tokenize:ov,concrete:!0};function ov(t,r,e){let n=this,s={tokenize:he,partial:!0},o={tokenize:$e,partial:!0},l=this.events[this.events.length-1],f=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0,g;return h;function h(Y){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g=Y,$(Y)}function $(Y){return Y===g?(t.consume(Y),c++,$):(t.exit("codeFencedFenceSequence"),c<3?e(Y):xe(t,k,"whitespace")(Y))}function k(Y){return Y===null||de(Y)?N(Y):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(Y))}function x(Y){return Y===null||rt(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),xe(t,C,"whitespace")(Y)):Y===96&&Y===g?e(Y):(t.consume(Y),x)}function C(Y){return Y===null||de(Y)?N(Y):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),I(Y))}function I(Y){return Y===null||de(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),N(Y)):Y===96&&Y===g?e(Y):(t.consume(Y),I)}function N(Y){return t.exit("codeFencedFence"),n.interrupt?r(Y):B(Y)}function B(Y){return Y===null?le(Y):de(Y)?t.attempt(o,t.attempt(s,le,f?xe(t,B,"linePrefix",f+1):B),le)(Y):(t.enter("codeFlowValue"),X(Y))}function X(Y){return Y===null||de(Y)?(t.exit("codeFlowValue"),B(Y)):(t.consume(Y),X)}function le(Y){return t.exit("codeFenced"),r(Y)}function $e(Y,pe,ve){let ke=this;return Le;function Le(Fe){return Y.enter("lineEnding"),Y.consume(Fe),Y.exit("lineEnding"),Te}function Te(Fe){return ke.parser.lazy[ke.now().line]?ve(Fe):pe(Fe)}}function he(Y,pe,ve){let ke=0;return xe(Y,Le,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Le(ge){return Y.enter("codeFencedFence"),Y.enter("codeFencedFenceSequence"),Te(ge)}function Te(ge){return ge===g?(Y.consume(ge),ke++,Te):ke<c?ve(ge):(Y.exit("codeFencedFenceSequence"),xe(Y,Fe,"whitespace")(ge))}function Fe(ge){return ge===null||de(ge)?(Y.exit("codeFencedFence"),pe(ge)):ve(ge)}}}var mo={name:"codeIndented",tokenize:lv},av={tokenize:uv,partial:!0};function lv(t,r,e){let n=this;return s;function s(g){return t.enter("codeIndented"),xe(t,o,"linePrefix",4+1)(g)}function o(g){let h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?l(g):e(g)}function l(g){return g===null?c(g):de(g)?t.attempt(av,l,c)(g):(t.enter("codeFlowValue"),f(g))}function f(g){return g===null||de(g)?(t.exit("codeFlowValue"),l(g)):(t.consume(g),f)}function c(g){return t.exit("codeIndented"),r(g)}}function uv(t,r,e){let n=this;return s;function s(l){return n.parser.lazy[n.now().line]?e(l):de(l)?(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),s):xe(t,o,"linePrefix",4+1)(l)}function o(l){let f=n.events[n.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(l):de(l)?s(l):e(l)}}var pf={name:"codeText",tokenize:pv,resolve:fv,previous:cv};function fv(t){let r=t.length-4,e=3,n,s;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(n=e;++n<r;)if(t[n][1].type==="codeTextData"){t[e][1].type="codeTextPadding",t[r][1].type="codeTextPadding",e+=2,r-=2;break}}for(n=e-1,r++;++n<=r;)s===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(s=n):(n===r||t[n][1].type==="lineEnding")&&(t[s][1].type="codeTextData",n!==s+2&&(t[s][1].end=t[n-1][1].end,t.splice(s+2,n-s-2),r-=n-s-2,n=s+2),s=void 0);return t}function cv(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pv(t,r,e){let n=this,s=0,o,l;return f;function f(k){return t.enter("codeText"),t.enter("codeTextSequence"),c(k)}function c(k){return k===96?(t.consume(k),s++,c):(t.exit("codeTextSequence"),g(k))}function g(k){return k===null?e(k):k===96?(l=t.enter("codeTextSequence"),o=0,$(k)):k===32?(t.enter("space"),t.consume(k),t.exit("space"),g):de(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),g):(t.enter("codeTextData"),h(k))}function h(k){return k===null||k===32||k===96||de(k)?(t.exit("codeTextData"),g(k)):(t.consume(k),h)}function $(k){return k===96?(t.consume(k),o++,$):o===s?(t.exit("codeTextSequence"),t.exit("codeText"),r(k)):(l.type="codeTextData",h(k))}}function Ea(t){let r={},e=-1,n,s,o,l,f,c,g;for(;++e<t.length;){for(;e in r;)e=r[e];if(n=t[e],e&&n[1].type==="chunkFlow"&&t[e-1][1].type==="listItemPrefix"&&(c=n[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,dv(t,e)),e=r[e],g=!0);else if(n[1]._container){for(o=e,s=void 0;o--&&(l=t[o],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(s&&(t[s][1].type="lineEndingBlank"),l[1].type="lineEnding",s=o);s&&(n[1].end=Object.assign({},t[s][1].start),f=t.slice(s,e),f.unshift(n),Rt(t,s,e-s+1,f))}}return!g}function dv(t,r){let e=t[r][1],n=t[r][2],s=r-1,o=[],l=e._tokenizer||n.parser[e.contentType](e.start),f=l.events,c=[],g={},h,$,k=-1,x=e,C=0,I=0,N=[I];for(;x;){for(;t[++s][1]!==x;);o.push(s),x._tokenizer||(h=n.sliceStream(x),x.next||h.push(null),$&&l.defineSkip(x.start),x._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(h),x._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),$=x,x=x.next}for(x=e;++k<f.length;)f[k][0]==="exit"&&f[k-1][0]==="enter"&&f[k][1].type===f[k-1][1].type&&f[k][1].start.line!==f[k][1].end.line&&(I=k+1,N.push(I),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(l.events=[],x?(x._tokenizer=void 0,x.previous=void 0):N.pop(),k=N.length;k--;){let B=f.slice(N[k],N[k+1]),X=o.pop();c.unshift([X,X+B.length-1]),Rt(t,X,2,B)}for(k=-1;++k<c.length;)g[C+c[k][0]]=C+c[k][1],C+=c[k][1]-c[k][0]-1;return g}var df={tokenize:gv,resolve:hv},mv={tokenize:yv,partial:!0};function hv(t){return Ea(t),t}function gv(t,r){let e;return n;function n(f){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?o(f):de(f)?t.check(mv,l,o)(f):(t.consume(f),s)}function o(f){return t.exit("chunkContent"),t.exit("content"),r(f)}function l(f){return t.consume(f),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,s}}function yv(t,r,e){let n=this;return s;function s(l){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),xe(t,o,"linePrefix")}function o(l){if(l===null||de(l))return e(l);let f=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(l):t.interrupt(n.parser.constructs.flow,e,r)(l)}}function _a(t,r,e,n,s,o,l,f,c){let g=c||Number.POSITIVE_INFINITY,h=0;return $;function $(B){return B===60?(t.enter(n),t.enter(s),t.enter(o),t.consume(B),t.exit(o),k):B===null||B===41||ri(B)?e(B):(t.enter(n),t.enter(l),t.enter(f),t.enter("chunkString",{contentType:"string"}),I(B))}function k(B){return B===62?(t.enter(o),t.consume(B),t.exit(o),t.exit(s),t.exit(n),r):(t.enter(f),t.enter("chunkString",{contentType:"string"}),x(B))}function x(B){return B===62?(t.exit("chunkString"),t.exit(f),k(B)):B===null||B===60||de(B)?e(B):(t.consume(B),B===92?C:x)}function C(B){return B===60||B===62||B===92?(t.consume(B),x):x(B)}function I(B){return B===40?++h>g?e(B):(t.consume(B),I):B===41?h--?(t.consume(B),I):(t.exit("chunkString"),t.exit(f),t.exit(l),t.exit(n),r(B)):B===null||rt(B)?h?e(B):(t.exit("chunkString"),t.exit(f),t.exit(l),t.exit(n),r(B)):ri(B)?e(B):(t.consume(B),B===92?N:I)}function N(B){return B===40||B===41||B===92?(t.consume(B),I):I(B)}}function Sa(t,r,e,n,s,o){let l=this,f=0,c;return g;function g(x){return t.enter(n),t.enter(s),t.consume(x),t.exit(s),t.enter(o),h}function h(x){return x===null||x===91||x===93&&!c||x===94&&!f&&"_hiddenFootnoteSupport"in l.parser.constructs||f>999?e(x):x===93?(t.exit(o),t.enter(s),t.consume(x),t.exit(s),t.exit(n),r):de(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),h):(t.enter("chunkString",{contentType:"string"}),$(x))}function $(x){return x===null||x===91||x===93||de(x)||f++>999?(t.exit("chunkString"),h(x)):(t.consume(x),c=c||!Ue(x),x===92?k:$)}function k(x){return x===91||x===92||x===93?(t.consume(x),f++,$):$(x)}}function Pa(t,r,e,n,s,o){let l;return f;function f(k){return t.enter(n),t.enter(s),t.consume(k),t.exit(s),l=k===40?41:k,c}function c(k){return k===l?(t.enter(s),t.consume(k),t.exit(s),t.exit(n),r):(t.enter(o),g(k))}function g(k){return k===l?(t.exit(o),c(l)):k===null?e(k):de(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),xe(t,g,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===l||k===null||de(k)?(t.exit("chunkString"),g(k)):(t.consume(k),k===92?$:h)}function $(k){return k===l||k===92?(t.consume(k),h):h(k)}}function Ni(t,r){let e;return n;function n(s){return de(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e=!0,n):Ue(s)?xe(t,n,e?"linePrefix":"lineSuffix")(s):r(s)}}function fr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var mf={name:"definition",tokenize:$v},bv={tokenize:wv,partial:!0};function $v(t,r,e){let n=this,s;return o;function o(c){return t.enter("definition"),Sa.call(n,t,l,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function l(c){return s=fr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),c===58?(t.enter("definitionMarker"),t.consume(c),t.exit("definitionMarker"),Ni(t,_a(t,t.attempt(bv,xe(t,f,"whitespace"),xe(t,f,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(c)}function f(c){return c===null||de(c)?(t.exit("definition"),n.parser.defined.includes(s)||n.parser.defined.push(s),r(c)):e(c)}}function wv(t,r,e){return n;function n(l){return rt(l)?Ni(t,s)(l):e(l)}function s(l){return l===34||l===39||l===40?Pa(t,xe(t,o,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(l):e(l)}function o(l){return l===null||de(l)?r(l):e(l)}}var hf={name:"hardBreakEscape",tokenize:kv};function kv(t,r,e){return n;function n(o){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(o),s}function s(o){return de(o)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),r(o)):e(o)}}var gf={name:"headingAtx",tokenize:xv,resolve:vv};function vv(t,r){let e=t.length-2,n=3,s,o;return t[n][1].type==="whitespace"&&(n+=2),e-2>n&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(n===e-1||e-4>n&&t[e-2][1].type==="whitespace")&&(e-=n+1===e?2:4),e>n&&(s={type:"atxHeadingText",start:t[n][1].start,end:t[e][1].end},o={type:"chunkText",start:t[n][1].start,end:t[e][1].end,contentType:"text"},Rt(t,n,e-n+1,[["enter",s,r],["enter",o,r],["exit",o,r],["exit",s,r]])),t}function xv(t,r,e){let n=this,s=0;return o;function o(h){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),l(h)}function l(h){return h===35&&s++<6?(t.consume(h),l):h===null||rt(h)?(t.exit("atxHeadingSequence"),n.interrupt?r(h):f(h)):e(h)}function f(h){return h===35?(t.enter("atxHeadingSequence"),c(h)):h===null||de(h)?(t.exit("atxHeading"),r(h)):Ue(h)?xe(t,f,"whitespace")(h):(t.enter("atxHeadingText"),g(h))}function c(h){return h===35?(t.consume(h),c):(t.exit("atxHeadingSequence"),f(h))}function g(h){return h===null||h===35||rt(h)?(t.exit("atxHeadingText"),f(h)):(t.consume(h),g)}}var Vm=["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","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],yf=["pre","script","style","textarea"];var bf={name:"htmlFlow",tokenize:Ev,resolveTo:Av,concrete:!0},Cv={tokenize:_v,partial:!0};function Av(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function Ev(t,r,e){let n=this,s,o,l,f,c;return g;function g(H){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(H),h}function h(H){return H===33?(t.consume(H),$):H===47?(t.consume(H),C):H===63?(t.consume(H),s=3,n.interrupt?r:wt):ur(H)?(t.consume(H),l=String.fromCharCode(H),o=!0,I):e(H)}function $(H){return H===45?(t.consume(H),s=2,k):H===91?(t.consume(H),s=5,l="CDATA[",f=0,x):ur(H)?(t.consume(H),s=4,n.interrupt?r:wt):e(H)}function k(H){return H===45?(t.consume(H),n.interrupt?r:wt):e(H)}function x(H){return H===l.charCodeAt(f++)?(t.consume(H),f===l.length?n.interrupt?r:Te:x):e(H)}function C(H){return ur(H)?(t.consume(H),l=String.fromCharCode(H),I):e(H)}function I(H){return H===null||H===47||H===62||rt(H)?H!==47&&o&&yf.includes(l.toLowerCase())?(s=1,n.interrupt?r(H):Te(H)):Vm.includes(l.toLowerCase())?(s=6,H===47?(t.consume(H),N):n.interrupt?r(H):Te(H)):(s=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(H):o?X(H):B(H)):H===45||Wt(H)?(t.consume(H),l+=String.fromCharCode(H),I):e(H)}function N(H){return H===62?(t.consume(H),n.interrupt?r:Te):e(H)}function B(H){return Ue(H)?(t.consume(H),B):ke(H)}function X(H){return H===47?(t.consume(H),ke):H===58||H===95||ur(H)?(t.consume(H),le):Ue(H)?(t.consume(H),X):ke(H)}function le(H){return H===45||H===46||H===58||H===95||Wt(H)?(t.consume(H),le):$e(H)}function $e(H){return H===61?(t.consume(H),he):Ue(H)?(t.consume(H),$e):X(H)}function he(H){return H===null||H===60||H===61||H===62||H===96?e(H):H===34||H===39?(t.consume(H),c=H,Y):Ue(H)?(t.consume(H),he):(c=null,pe(H))}function Y(H){return H===null||de(H)?e(H):H===c?(t.consume(H),ve):(t.consume(H),Y)}function pe(H){return H===null||H===34||H===39||H===60||H===61||H===62||H===96||rt(H)?$e(H):(t.consume(H),pe)}function ve(H){return H===47||H===62||Ue(H)?X(H):e(H)}function ke(H){return H===62?(t.consume(H),Le):e(H)}function Le(H){return Ue(H)?(t.consume(H),Le):H===null||de(H)?Te(H):e(H)}function Te(H){return H===45&&s===2?(t.consume(H),Qe):H===60&&s===1?(t.consume(H),ne):H===62&&s===4?(t.consume(H),nt):H===63&&s===3?(t.consume(H),wt):H===93&&s===5?(t.consume(H),Xe):de(H)&&(s===6||s===7)?t.check(Cv,nt,Fe)(H):H===null||de(H)?Fe(H):(t.consume(H),Te)}function Fe(H){return t.exit("htmlFlowData"),ge(H)}function ge(H){return H===null?z(H):de(H)?t.attempt({tokenize:Pe,partial:!0},ge,z)(H):(t.enter("htmlFlowData"),Te(H))}function Pe(H,dr,Lt){return kt;function kt(Ft){return H.enter("lineEnding"),H.consume(Ft),H.exit("lineEnding"),Tt}function Tt(Ft){return n.parser.lazy[n.now().line]?Lt(Ft):dr(Ft)}}function Qe(H){return H===45?(t.consume(H),wt):Te(H)}function ne(H){return H===47?(t.consume(H),l="",$t):Te(H)}function $t(H){return H===62&&yf.includes(l.toLowerCase())?(t.consume(H),nt):ur(H)&&l.length<8?(t.consume(H),l+=String.fromCharCode(H),$t):Te(H)}function Xe(H){return H===93?(t.consume(H),wt):Te(H)}function wt(H){return H===62?(t.consume(H),nt):H===45&&s===2?(t.consume(H),wt):Te(H)}function nt(H){return H===null||de(H)?(t.exit("htmlFlowData"),z(H)):(t.consume(H),nt)}function z(H){return t.exit("htmlFlow"),r(H)}}function _v(t,r,e){return n;function n(s){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),t.attempt(En,r,e)}}var $f={name:"htmlText",tokenize:Sv};function Sv(t,r,e){let n=this,s,o,l,f;return c;function c(z){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(z),g}function g(z){return z===33?(t.consume(z),h):z===47?(t.consume(z),pe):z===63?(t.consume(z),he):ur(z)?(t.consume(z),Le):e(z)}function h(z){return z===45?(t.consume(z),$):z===91?(t.consume(z),o="CDATA[",l=0,N):ur(z)?(t.consume(z),$e):e(z)}function $(z){return z===45?(t.consume(z),k):e(z)}function k(z){return z===null||z===62?e(z):z===45?(t.consume(z),x):C(z)}function x(z){return z===null||z===62?e(z):C(z)}function C(z){return z===null?e(z):z===45?(t.consume(z),I):de(z)?(f=C,Xe(z)):(t.consume(z),C)}function I(z){return z===45?(t.consume(z),nt):C(z)}function N(z){return z===o.charCodeAt(l++)?(t.consume(z),l===o.length?B:N):e(z)}function B(z){return z===null?e(z):z===93?(t.consume(z),X):de(z)?(f=B,Xe(z)):(t.consume(z),B)}function X(z){return z===93?(t.consume(z),le):B(z)}function le(z){return z===62?nt(z):z===93?(t.consume(z),le):B(z)}function $e(z){return z===null||z===62?nt(z):de(z)?(f=$e,Xe(z)):(t.consume(z),$e)}function he(z){return z===null?e(z):z===63?(t.consume(z),Y):de(z)?(f=he,Xe(z)):(t.consume(z),he)}function Y(z){return z===62?nt(z):he(z)}function pe(z){return ur(z)?(t.consume(z),ve):e(z)}function ve(z){return z===45||Wt(z)?(t.consume(z),ve):ke(z)}function ke(z){return de(z)?(f=ke,Xe(z)):Ue(z)?(t.consume(z),ke):nt(z)}function Le(z){return z===45||Wt(z)?(t.consume(z),Le):z===47||z===62||rt(z)?Te(z):e(z)}function Te(z){return z===47?(t.consume(z),nt):z===58||z===95||ur(z)?(t.consume(z),Fe):de(z)?(f=Te,Xe(z)):Ue(z)?(t.consume(z),Te):nt(z)}function Fe(z){return z===45||z===46||z===58||z===95||Wt(z)?(t.consume(z),Fe):ge(z)}function ge(z){return z===61?(t.consume(z),Pe):de(z)?(f=ge,Xe(z)):Ue(z)?(t.consume(z),ge):Te(z)}function Pe(z){return z===null||z===60||z===61||z===62||z===96?e(z):z===34||z===39?(t.consume(z),s=z,Qe):de(z)?(f=Pe,Xe(z)):Ue(z)?(t.consume(z),Pe):(t.consume(z),s=void 0,$t)}function Qe(z){return z===s?(t.consume(z),ne):z===null?e(z):de(z)?(f=Qe,Xe(z)):(t.consume(z),Qe)}function ne(z){return z===62||z===47||rt(z)?Te(z):e(z)}function $t(z){return z===null||z===34||z===39||z===60||z===61||z===96?e(z):z===62||rt(z)?Te(z):(t.consume(z),$t)}function Xe(z){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(z),t.exit("lineEnding"),xe(t,wt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wt(z){return t.enter("htmlTextData"),f(z)}function nt(z){return z===62?(t.consume(z),t.exit("htmlTextData"),t.exit("htmlText"),r):e(z)}}var Di={name:"labelEnd",tokenize:Rv,resolveTo:Ov,resolveAll:Iv},Pv={tokenize:Nv},Tv={tokenize:Dv},Fv={tokenize:qv};function Iv(t){let r=-1,e;for(;++r<t.length;)e=t[r][1],(e.type==="labelImage"||e.type==="labelLink"||e.type==="labelEnd")&&(t.splice(r+1,e.type==="labelImage"?4:2),e.type="data",r++);return t}function Ov(t,r){let e=t.length,n=0,s,o,l,f;for(;e--;)if(s=t[e][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[e][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(l){if(t[e][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=e,s.type!=="labelLink")){n=2;break}}else s.type==="labelEnd"&&(l=e);let c={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},g={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[l][1].end)},h={type:"labelText",start:Object.assign({},t[o+n+2][1].end),end:Object.assign({},t[l-2][1].start)};return f=[["enter",c,r],["enter",g,r]],f=kr(f,t.slice(o+1,o+n+3)),f=kr(f,[["enter",h,r]]),f=kr(f,ii(r.parser.constructs.insideSpan.null,t.slice(o+n+4,l-3),r)),f=kr(f,[["exit",h,r],t[l-2],t[l-1],["exit",g,r]]),f=kr(f,t.slice(l+1)),f=kr(f,[["exit",c,r]]),Rt(t,o,t.length,f),t}function Rv(t,r,e){let n=this,s=n.events.length,o,l;for(;s--;)if((n.events[s][1].type==="labelImage"||n.events[s][1].type==="labelLink")&&!n.events[s][1]._balanced){o=n.events[s][1];break}return f;function f(h){return o?o._inactive?g(h):(l=n.parser.defined.includes(fr(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),c):e(h)}function c(h){return h===40?t.attempt(Pv,r,l?r:g)(h):h===91?t.attempt(Tv,r,l?t.attempt(Fv,r,g):g)(h):l?r(h):g(h)}function g(h){return o._balanced=!0,e(h)}}function Nv(t,r,e){return n;function n(c){return t.enter("resource"),t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),Ni(t,s)}function s(c){return c===41?f(c):_a(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return rt(c)?Ni(t,l)(c):f(c)}function l(c){return c===34||c===39||c===40?Pa(t,Ni(t,f),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function f(c){return c===41?(t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),t.exit("resource"),r):e(c)}}function Dv(t,r,e){let n=this;return s;function s(l){return Sa.call(n,t,o,e,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(fr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?r(l):e(l)}}function qv(t,r,e){return n;function n(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),s}function s(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),r):e(o)}}var wf={name:"labelStartImage",tokenize:Lv,resolveAll:Di.resolveAll};function Lv(t,r,e){let n=this;return s;function s(f){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(f),t.exit("labelImageMarker"),o}function o(f){return f===91?(t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelImage"),l):e(f)}function l(f){return f===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(f):r(f)}}var kf={name:"labelStartLink",tokenize:jv,resolveAll:Di.resolveAll};function jv(t,r,e){let n=this;return s;function s(l){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(l):r(l)}}var ho={name:"lineEnding",tokenize:Bv};function Bv(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),xe(t,r,"linePrefix")}}var qi={name:"thematicBreak",tokenize:Mv};function Mv(t,r,e){let n=0,s;return o;function o(c){return t.enter("thematicBreak"),s=c,l(c)}function l(c){return c===s?(t.enter("thematicBreakSequence"),f(c)):Ue(c)?xe(t,l,"whitespace")(c):n<3||c!==null&&!de(c)?e(c):(t.exit("thematicBreak"),r(c))}function f(c){return c===s?(t.consume(c),n++,f):(t.exit("thematicBreakSequence"),l(c))}}var cr={name:"list",tokenize:Hv,continuation:{tokenize:Uv},exit:Kv},zv={tokenize:Wv,partial:!0},Vv={tokenize:Gv,partial:!0};function Hv(t,r,e){let n=this,s=n.events[n.events.length-1],o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,l=0;return f;function f(x){let C=n.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!n.containerState.marker||x===n.containerState.marker:Ii(x)){if(n.containerState.type||(n.containerState.type=C,t.enter(C,{_container:!0})),C==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(qi,e,g)(x):g(x);if(!n.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(x)}return e(x)}function c(x){return Ii(x)&&++l<10?(t.consume(x),c):(!n.interrupt||l<2)&&(n.containerState.marker?x===n.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),g(x)):e(x)}function g(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||x,t.check(En,n.interrupt?e:h,t.attempt(zv,k,$))}function h(x){return n.containerState.initialBlankLine=!0,o++,k(x)}function $(x){return Ue(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),k):e(x)}function k(x){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(x)}}function Uv(t,r,e){let n=this;return n.containerState._closeFlow=void 0,t.check(En,s,o);function s(f){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,xe(t,r,"listItemIndent",n.containerState.size+1)(f)}function o(f){return n.containerState.furtherBlankLines||!Ue(f)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l(f)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Vv,r,l)(f))}function l(f){return n.containerState._closeFlow=!0,n.interrupt=void 0,xe(t,t.attempt(cr,r,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function Gv(t,r,e){let n=this;return xe(t,s,"listItemIndent",n.containerState.size+1);function s(o){let l=n.events[n.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===n.containerState.size?r(o):e(o)}}function Kv(t){t.exit(this.containerState.type)}function Wv(t,r,e){let n=this;return xe(t,s,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function s(o){let l=n.events[n.events.length-1];return!Ue(o)&&l&&l[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var Ta={name:"setextUnderline",tokenize:Jv,resolveTo:Zv};function Zv(t,r){let e=t.length,n,s,o;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){n=e;break}t[e][1].type==="paragraph"&&(s=e)}else t[e][1].type==="content"&&t.splice(e,1),!o&&t[e][1].type==="definition"&&(o=e);let l={type:"setextHeading",start:Object.assign({},t[s][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[s][1].type="setextHeadingText",o?(t.splice(s,0,["enter",l,r]),t.splice(o+1,0,["exit",t[n][1],r]),t[n][1].end=Object.assign({},t[o][1].end)):t[n][1]=l,t.push(["exit",l,r]),t}function Jv(t,r,e){let n=this,s=n.events.length,o,l;for(;s--;)if(n.events[s][1].type!=="lineEnding"&&n.events[s][1].type!=="linePrefix"&&n.events[s][1].type!=="content"){l=n.events[s][1].type==="paragraph";break}return f;function f(h){return!n.parser.lazy[n.now().line]&&(n.interrupt||l)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),o=h,c(h)):e(h)}function c(h){return h===o?(t.consume(h),c):(t.exit("setextHeadingLineSequence"),xe(t,g,"lineSuffix")(h))}function g(h){return h===null||de(h)?(t.exit("setextHeadingLine"),r(h)):e(h)}}var Hm={tokenize:Qv};function Qv(t){let r=this,e=t.attempt(En,n,t.attempt(this.parser.constructs.flowInitial,s,xe(t,t.attempt(this.parser.constructs.flow,s,t.attempt(df,s)),"linePrefix")));return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),r.currentConstruct=void 0,e}function s(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r.currentConstruct=void 0,e}}var Um={resolveAll:Zm()},Gm=Wm("string"),Km=Wm("text");function Wm(t){return{tokenize:r,resolveAll:Zm(t==="text"?Xv:void 0)};function r(e){let n=this,s=this.parser.constructs[t],o=e.attempt(s,l,f);return l;function l(h){return g(h)?o(h):f(h)}function f(h){if(h===null){e.consume(h);return}return e.enter("data"),e.consume(h),c}function c(h){return g(h)?(e.exit("data"),o(h)):(e.consume(h),c)}function g(h){if(h===null)return!0;let $=s[h],k=-1;if($)for(;++k<$.length;){let x=$[k];if(!x.previous||x.previous.call(n,n.previous))return!0}return!1}}}function Zm(t){return r;function r(e,n){let s=-1,o;for(;++s<=e.length;)o===void 0?e[s]&&e[s][1].type==="data"&&(o=s,s++):(!e[s]||e[s][1].type!=="data")&&(s!==o+2&&(e[o][1].end=e[s-1][1].end,e.splice(o+2,s-o-2),s=o+2),o=void 0);return t?t(e,n):e}}function Xv(t,r){let e=0;for(;++e<=t.length;)if((e===t.length||t[e][1].type==="lineEnding")&&t[e-1][1].type==="data"){let n=t[e-1][1],s=r.sliceStream(n),o=s.length,l=-1,f=0,c;for(;o--;){let g=s[o];if(typeof g=="string"){for(l=g.length;g.charCodeAt(l-1)===32;)f++,l--;if(l)break;l=-1}else if(g===-2)c=!0,f++;else if(g!==-1){o++;break}}if(f){let g={type:e===t.length||c||f<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-f,offset:n.end.offset-f,_index:n.start._index+o,_bufferIndex:o?l:n.start._bufferIndex+l},end:Object.assign({},n.end)};n.end=Object.assign({},g.start),n.start.offset===n.end.offset?Object.assign(n,g):(t.splice(e,0,["enter",g,r],["exit",g,r]),e+=2)}e++}return t}function Jm(t,r,e){let n=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),s={},o=[],l=[],f=[],c=!0,g={consume:$e,enter:he,exit:Y,attempt:ke(pe),check:ke(ve),interrupt:ke(ve,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:I,sliceSerialize:C,now:N,defineSkip:B,write:x},$=r.tokenize.call(h,g),k;return r.resolveAll&&o.push(r),h;function x(ge){return l=kr(l,ge),X(),l[l.length-1]!==null?[]:(Le(r,0),h.events=ii(o,h.events,h),h.events)}function C(ge,Pe){return e0(I(ge),Pe)}function I(ge){return Yv(l,ge)}function N(){return Object.assign({},n)}function B(ge){s[ge.line]=ge.column,Fe()}function X(){let ge;for(;n._index<l.length;){let Pe=l[n._index];if(typeof Pe=="string")for(ge=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===ge&&n._bufferIndex<Pe.length;)le(Pe.charCodeAt(n._bufferIndex));else le(Pe)}}function le(ge){c=void 0,k=ge,$=$(ge)}function $e(ge){de(ge)?(n.line++,n.column=1,n.offset+=ge===-3?2:1,Fe()):ge!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===l[n._index].length&&(n._bufferIndex=-1,n._index++)),h.previous=ge,c=!0}function he(ge,Pe){let Qe=Pe||{};return Qe.type=ge,Qe.start=N(),h.events.push(["enter",Qe,h]),f.push(Qe),Qe}function Y(ge){let Pe=f.pop();return Pe.end=N(),h.events.push(["exit",Pe,h]),Pe}function pe(ge,Pe){Le(ge,Pe.from)}function ve(ge,Pe){Pe.restore()}function ke(ge,Pe){return Qe;function Qe(ne,$t,Xe){let wt,nt,z,H;return Array.isArray(ne)?Lt(ne):"tokenize"in ne?Lt([ne]):dr(ne);function dr(ut){return tr;function tr(Vt){let vr=Vt!==null&&ut[Vt],Rr=Vt!==null&&ut.null,xr=[...Array.isArray(vr)?vr:vr?[vr]:[],...Array.isArray(Rr)?Rr:Rr?[Rr]:[]];return Lt(xr)(Vt)}}function Lt(ut){return wt=ut,nt=0,ut.length===0?Xe:kt(ut[nt])}function kt(ut){return tr;function tr(Vt){return H=Te(),z=ut,ut.partial||(h.currentConstruct=ut),ut.name&&h.parser.constructs.disable.null.includes(ut.name)?Ft(Vt):ut.tokenize.call(Pe?Object.assign(Object.create(h),Pe):h,g,Tt,Ft)(Vt)}}function Tt(ut){return c=!0,ge(z,H),$t}function Ft(ut){return c=!0,H.restore(),++nt<wt.length?kt(wt[nt]):Xe}}}function Le(ge,Pe){ge.resolveAll&&!o.includes(ge)&&o.push(ge),ge.resolve&&Rt(h.events,Pe,h.events.length-Pe,ge.resolve(h.events.slice(Pe),h)),ge.resolveTo&&(h.events=ge.resolveTo(h.events,h))}function Te(){let ge=N(),Pe=h.previous,Qe=h.currentConstruct,ne=h.events.length,$t=Array.from(f);return{restore:Xe,from:ne};function Xe(){n=ge,h.previous=Pe,h.currentConstruct=Qe,h.events.length=ne,f=$t,Fe()}}function Fe(){n.line in s&&n.column<2&&(n.column=s[n.line],n.offset+=s[n.line]-1)}}function Yv(t,r){let e=r.start._index,n=r.start._bufferIndex,s=r.end._index,o=r.end._bufferIndex,l;return e===s?l=[t[e].slice(n,o)]:(l=t.slice(e,s),n>-1&&(l[0]=l[0].slice(n)),o>0&&l.push(t[s].slice(0,o))),l}function e0(t,r){let e=-1,n=[],s;for(;++e<t.length;){let o=t[e],l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
40
+ `){n.push(e),r.push(n),n=[],e="",o++;continue}e+=l,o++}return(e!==""||n.length>0)&&(n.push(e),r.push(n)),r.filter(l=>!(l.length===1&&l[0].trim()===""))}function Gu(t){return t.split(/\r?\n/).map(n=>n.split(" ")).filter(n=>!(n.length===1&&n[0].trim()===""))}function ya(t){if(!t||typeof t!="string")return{type:"",params:{}};let r=t.split(";").map(s=>s.trim()),e=(r.shift()||"").toLowerCase(),n={};for(let s of r){if(!s)continue;let o=s.indexOf("=");if(o<0)continue;let l=s.slice(0,o).trim().toLowerCase(),f=s.slice(o+1).trim();(f.startsWith('"')&&f.endsWith('"')||f.startsWith("'")&&f.endsWith("'"))&&(f=f.slice(1,-1)),l&&(n[l]=f)}return{type:e,params:n}}function Ku(t,r){let e=null,n=s=>{if(!e){if(Array.isArray(s)){s.forEach(n);return}if(!(!s||typeof s!="object")){if(s.type==="block"&&s.name==="data"&&Ct(s,{}).getFirstValue("key")===r){e=s;return}Array.isArray(s.content)&&s.content.forEach(n)}}};return n(t),e}function ba(t){if(!t||!Array.isArray(t.content))return"";let r=t.content.find(e=>e&&e.type==="verbatim");return r&&typeof r.value=="string"?r.value:""}function Ck(t){let r=[];lr({"row:text":l=>(r.push(l.value),l),"head:text":l=>(r.push(l.value),l)})(t,{});let s=r.join(`
41
+ `).trim().split(/\r?\n/).map(l=>l.trim()).filter(l=>l.length>0);if(s.length!==1)return null;let o=s[0].match(/^(data|file):(\S+)$/);return o?{scheme:o[1],target:o[2]}:null}function Qd(t){return{name:"cell",type:"block",margin:"",content:[{type:"text",value:t}]}}function Ak(t,r){let e={name:"row",type:"block",margin:"",content:t};return r&&(e.config=[{name:"header",value:!0,type:"boolean"}]),e}function Wu(t,r=!1){return t.map((e,n)=>{let s=e.map(o=>Qd(o.trim()));return Ak(s,r&&n===0)})}function lo(t,r="table"){if(!t||!Array.isArray(t.content))return t;let e=t.content.filter($=>$&&$.type==="block"&&$.name==="row");if(e.length===0)return t;let n=$=>Array.isArray($.content)?$.content.filter(k=>k&&k.name==="cell"):[],s=$=>Array.isArray($.config)&&$.config.some(k=>k.name==="header"&&k.value===!0),o=$=>Array.isArray($.config)&&$.config.some(k=>k.name==="colspan"||k.name==="rowspan"),l=$=>n($).some(o);if(e.some(l))return t;let f=e.find(s),c=f?n(f).length:Math.max(...e.map($=>n($).length));if(c===0)return t;let g=!1,h=t.content.map($=>{if(!$||$.type!=="block"||$.name!=="row")return $;let k=n($);if(k.length===c)return $;if(k.length<c){let R=[];for(let B=k.length;B<c;B++)R.push(Qd(""));return console.warn(`[${r}] row has ${k.length} cells, expected ${c} \u2014 padded with ${R.length} empty`),g=!0,{...$,content:[...$.content,...R]}}let x=k.length-c;console.warn(`[${r}] row has ${k.length} cells, expected ${c} \u2014 truncated ${x}`),g=!0;let C=c,I=[];for(let R of $.content||[])R&&R.type==="block"&&R.name==="cell"?C>0&&(I.push(R),C--):I.push(R);return{...$,content:I}});return g?{...t,content:h}:t}function Ek(t){let r=new Set;for(let e of t)if(!(!e||typeof e!="string")&&(/\s\|\s/.test(e)?r.add("pipe"):/\s\+\s/.test(e)?r.add("plus"):e.trim().length>0&&r.add("whitespace"),r.size>1))break;r.size>1&&console.warn(`[table] mixed separator types detected: ${Array.from(r).join(", ")} \u2014 recommend a single style`)}function _k(t,r){return{type:"block",name:"code",margin:t.margin||"",content:Array.isArray(r.content)?r.content:[],config:Array.isArray(t.config)?t.config:[]}}var Hu=(t,r,e)=>{let n=[];for(let s=0;t.length>s;s++)n.push(e(parseInt(t[s],10),parseInt(r[s],10)));return n.join("")},Sk=(t,r)=>{let e=Math.max(...[...t,...r].map(o=>o.length));return t.map(o=>{let l=o+" ".repeat(e-o.length),f=[],c=/\s+[+|\s]\s/g,g;for(;(g=c.exec(l))!=null;){let h="1".repeat(g.index)+"0".repeat(g[0].length);f.push(h+"1".repeat(e-h.length))}return f.reduce((h,$)=>Hu(h,$,(k,x)=>k&x),"1".repeat(e))}).map(o=>Hu(o,"",l=>l==0?1:0)).reduce((o,l)=>Hu(o,l,(f,c)=>f&c),"1".repeat(e))},Jd=(t,r)=>{let n=ao(t.split(/\n/).filter(o=>o.length>0)).map(o=>{let l=/((1+|0+))/g,f=[],c;for(;(c=l.exec(r))!=null;)c[0][0]!="1"&&f.push(o.substring(c.index,c.index+c[0].length));return f}),s=[];return n.reduce((o,l)=>{for(let f=0;f<l.length;f++)o[f]=(o[f]===void 0?"":o[f])+" "+l[f];return o},s),s},Zu=t=>/(?:^|\s)\|(?:\s|$)/.test(t)?"pipe":/(?:^|\s)\+(?:\s|$)/.test(t)?"plus":"whitespace",Xd=t=>{let r=0,e=t.length;return t[r]===""&&r++,e>r&&t[e-1]===""&&e--,t.slice(r,e)},Yd=t=>Xd(t.split(/\s*\|\s*/).map(r=>r.trim())),em=t=>Xd(t.split(/\s*\+\s*/).map(r=>r.trim())),tm=t=>t.trim().split(/\s{2,}/).filter(r=>r!==""),rm=t=>{if(t.trim()==="")return[];let e=Zu(t);return e==="pipe"?Yd(t):e==="plus"?em(t):tm(t)},Pk=t=>{let r=t.split(/\r?\n/).filter(f=>f.trim()!=="");if(r.length===0)return[];if(r.length===1)return rm(r[0]);let e=Zu(r[0]),n=e==="pipe"?Yd:e==="plus"?em:tm,s=r.map(n),o=Math.max(...s.map(f=>f.length)),l=[];for(let f=0;f<o;f++){let c=s.map(g=>g[f]??"").filter(g=>g!=="");l.push(c.join(" "))}return l},Tk=t=>{if(!Array.isArray(t.content)||t.content.length===0||!t.content.some(n=>n&&n.type==="block"&&n.name!=="cell"&&n.name!=="blankline"))return t;let e=t.content.map(n=>!n||n.type!=="block"||n.name==="cell"||n.name==="blankline"?n:{type:"block",name:"cell",content:[n],margin:n.margin||""});return{...t,content:e}},Fk=t=>Array.isArray(t.content)&&t.content.some(r=>r&&r.type==="block"&&(r.name==="row"||r.name==="cell")),nm=()=>t=>lr({table:e=>{let n=Ck(e);if(n&&n.scheme==="data"){let Y=Ku(t,n.target);if(!Y)return console.warn(`[table] no =data block found for data:${n.target} \u2014 rendered as empty`),{...e,content:[]};let pe=Ct(Y,{}).getFirstValue("mime-type"),{type:ve,params:ke}=ya(pe),Le=ve==="text/csv";if(Le||ve==="text/tab-separated-values"){let Fe=ba(Y),ge=Le?Uu(Fe):Gu(Fe);if(ge.length===0)return console.warn(`[table] ${Le?"CSV":"TSV"} parse produced no rows for data:${n.target} \u2014 rendered as empty`),{...e,content:[]};let Pe=ke.header==="present",Qe={...e,content:Wu(ge,Pe)};return lo(Qe,`table data:${n.target}`)}return console.warn(`[table] =data :key<${n.target}> has non-tabular mime-type ${pe||"(none)"} \u2014 rendered as =code`),_k(e,Y)}if(Fk(e)){let Y=(e.content||[]).map(pe=>pe&&pe.name==="row"?Tk(pe):pe);return lo({...e,content:Y},"table")}let s=[],o=Y=>{s.push(Y.value)},l=[];if(lr({"row:text":o,"head:text":o,":separator":Y=>{l.push(Y.text)}})(e),!s.length)return e;let f=Y=>Y.split(/\n/).filter(pe=>pe.length>0),c=ao(s.map(f)),g=ao(l.map(f));Ek(c);let h=[];lr({"row:text":Y=>{h.push(Y.value)}})(e);let $=(Y,pe,ve={})=>({...ve,name:Y,type:"block",content:Array.isArray(pe)?pe:[pe]}),k=Y=>$("row",Y),x=Y=>$("row",Y,{config:[{name:"header",value:!0,type:"boolean"}]}),C=Y=>$("cell",{type:"text",value:Y}),I=Sk(c,g),R=new Set(c.map(Zu)),B=R.has("pipe")||R.has("plus"),X=R.has("whitespace"),le=B&&X,be=Y=>le&&Y.split(/\r?\n/).filter(ve=>ve.trim()!=="").length<=1?Pk(Y):Jd(Y,I),he=lr({"row:text":Y=>{if(h.length==1){let pe=ao([Y.value].map(f));return le?pe.map(ve=>k(rm(ve).map(C))):pe.map(ve=>k(Jd(ve,I).map(C)))}return k(be(Y.value).map(C))},"head:text":Y=>x(be(Y.value).map(C))})(e);return lo(he,"table")}})(t,{});function Ik(t){return!Array.isArray(t)||t.length===0?[]:t.length===1&&typeof t[0]=="string"&&t[0].includes(",")?t[0].split(",").map(r=>r.trim()).filter(r=>r.length>0):t.map(r=>String(r).trim()).filter(r=>r.length>0)}function im(t,r,e){let n=t.trim();if(/^\d+$/.test(n)){let o=parseInt(n,10),l=o-1;if(l<0||l>=e)throw new Error(`column index ${o} out of range (1..${e})`);return l}if(!r)throw new Error(`column name "${t}" requires header=present`);let s=r.indexOf(t);if(s===-1)throw new Error(`column name "${t}" not found in header`);return s}function Ok(t,r,e){if(t.length===0)return t;let n=t[0].length,s=e?t[0]:null,o=r.map(l=>im(l,s,n));return t.map(l=>o.map(f=>l[f]??""))}function Nk(t,r,e){if(!e||t.length===0)return t;let n=[...t[0]];for(let[s,o]of Object.entries(r)){let l=im(s,n,n.length);n[l]=String(o)}return[n,...t.slice(1)]}function Rk(t,r){let e=Ct(t,{}),n=e.getFirstValue("src"),s=e.getFirstValue("mime-type"),o=e.getMapValue("rename"),l=e.exists("columns"),f=l?Ik(e.getAllValues("columns")):null,c=ba(t),g=c.trim().length>0;if(n&&g)throw new Error(":src and inline body are mutually exclusive");if(l&&(!f||f.length===0))throw new Error(":columns must have at least one entry; omit the attribute to render all columns");let h,$,k;if(n){let B=String(n),X=B.match(/^(file|data|http|https|doc):(.+)$/),le=X?X[1]:"file",be=X?X[2]:B;if(le==="data"){let he=Ku(r,be);if(!he)return console.warn(`[data-table] no =data block found for data:${be} \u2014 rendered as empty`),{...t,name:"table",content:[]};if(s)throw new Error(`:mime-type cannot be declared with :src<data:${be}> (inherited from referenced block)`);let Y=Ct(he,{}).getFirstValue("mime-type");if(!Y)return console.warn(`[data-table] =data block ${be} has no :mime-type \u2014 rendered as empty`),{...t,name:"table",content:[]};let pe=ya(Y);$=pe.type,k=pe.params.header==="present",h=ba(he)}else return t}else{if(!s)throw new Error("inline body requires :mime-type");let B=ya(s);$=B.type,k=B.params.header==="present",h=c}let x=$==="text/csv";if(!x&&!($==="text/tab-separated-values"))return console.warn(`[data-table] unsupported mime-type ${$} \u2014 rendered as empty`),{...t,name:"table",content:[]};let I=x?Uu(h):Gu(h);if(I.length===0)return console.warn(`[data-table] ${x?"CSV":"TSV"} parse produced no rows \u2014 rendered as empty`),{...t,name:"table",content:[]};f&&(I=Ok(I,f,k)),o&&(I=Nk(I,o,k));let R={...t,name:"table",content:Wu(I,k)};return lo(R,"data-table")}var sm=()=>t=>lr({"data-table":e=>{try{return Rk(e,t)}catch(n){return console.warn(`[data-table] ${n.message}`),{...e,name:"table",content:[]}}}})(t);var FA={":text":(t,r)=>(e,n,s)=>{e.value?t.write(n!=null&&n.maskMode?Jr(e.value):e.value):s(e.content,n)},"A<>":(t,r)=>(e,n,s)=>{if(!(n.alias&&n.alias.hasOwnProperty(e.content)))t.write(`A<${e.content}>`);else{let o=n.alias[e.content].join(`
42
+ `),l=r(o),f=ga()(l);f[0].type==="para"?s(f[0].content,n):s(f,n)}},"C<>":Ve("<code>","</code>"),"D<>":(t,r)=>(e,n,s)=>{let o={node:e},l=[e.content[0]];o&&(l=o),t.hasOwnProperty("DEFINITIONS")||(t.DEFINITIONS=[]),t.DEFINITIONS.push({definition:l}),t.writeRaw("<dfn>"),s(e.content,n),t.writeRaw("</dfn>")},"B<>":Ve("<strong>","</strong>"),"I<>":Ve("<em>","</em>"),"R<>":Ve("<var>","</var>"),"K<>":Ve("<kbd>","</kbd>"),"O<>":Ve("<del>","</del>"),"G<>":(t,r)=>(e,n,s)=>{if(n.renderMode==="draft"){t.writeRaw('<span class="masked-draft">'),s(e.content,n),t.writeRaw("</span>");return}t.writeRaw('<span class="masked">'),t.write(Jr(hs(e.content))),t.writeRaw("</span>")},"H<>":Ve("<sup>","</sup>"),"J<>":Ve("<sub>","</sub>"),"L<>":Ir((t,r)=>{let{meta:e}=t;return e===null&&(e=t.content),Ve(`<a href="${e}">`,"</a>")}),"N<>":(t,r)=>(t.addListener("end",()=>{if(!t.hasOwnProperty("FOOTNOTES"))return;let e=t.FOOTNOTES;e.length<1||(t.writeRaw('<div class="footnotes">'),e.map(n=>{t.writeRaw(`<p><sup id="${n.fnId}" class="footnote"><a href="#${n.fnRefId}">[${n.gid}]</a></sup> `),n.make(),t.writeRaw("</p>")}),t.writeRaw("</div>"))}),(e,n,s)=>{if(e.content.length<1)return;t.hasOwnProperty("gid")||(t.gid=1);let o=t.gid++,l=`fnref:${o}`,f=`fn:${o}`;t.writeRaw(`<sup id="${l}" class="footnote"><a href="#${f}">[${o}]</a></sup>`),t.hasOwnProperty("FOOTNOTES")||(t.FOOTNOTES=[]),t.FOOTNOTES.push({gid:o,fnRefId:l,fnId:f,make:()=>{s(e.content,n)}})}),"S<>":(t,r)=>(e,n,s)=>{let f=(e.content||"").replace(/ /g,"&nbsp;").replace(/\n/g,"</br>");t.writeRaw(f)},"T<>":Ve("<samp>","</samp>"),"U<>":Ve("<u>","</u>"),"V<>":$r,"X<>":(t,r)=>(e,n,s)=>{s(e.content,n);let{entry:o}=e;if(o===null&&e.content.length>0)o=[e.content[0]];else return;t.hasOwnProperty("INDEXTERMS")||(t.INDEXTERMS=[]),t.INDEXTERMS.push({entry:o})},"Z<>":St,pod:$r,":code":Ve("<pre><code>","</code></pre>"),code:Or(Ve("<pre><code>","</code></pre>")),data:St,":verbatim":(t,r)=>(e,n,s)=>{if(e.error&&t.emit("errors",e.location),n!=null&&n.maskMode){t.write(Jr(e.value));return}s(e.value,n)},":blankline":St,":ambient":St,":config":Ir((t,r)=>(r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,St)),":alias":Ir((t,r)=>(r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,St)),para:Or($r),":para":Ve("<p>","</p>"),"head:block":ha({":para":$r},Ir((t,r)=>{let{level:e}=t,n=Lu(t,r),s=`<h${e}${n?` id="${n}"`:""}>${t.numberPrefix?`<span class="head-number">${t.numberPrefix}</span> `:""}`;return Ve(s,`</h${e}>`)})),":list":Ir((t,r)=>t.list==="ordered"?Ve("<ol>","</ol>"):t.list==="variable"?Ve("<dl>","</dl>"):t.list==="task"?Ve('<ul class="task-list">',"</ul>"):Ve("<ul>","</ul>")),"item:block":(t,r)=>(e,n,s)=>{e.content instanceof Array||console.error("[pod6] item:block : Error in content of "+JSON.stringify(e)),e.checked!==void 0?(t.writeRaw('<li class="task-list-item">'),t.writeRaw(e.checked?'<input type="checkbox" disabled checked> ':'<input type="checkbox" disabled> ')):t.writeRaw("<li>"),s(e.content,n),t.writeRaw("</li>")},"comment:block":St,"boundary:block":(t,r)=>(e,n)=>{let s=Ct(e,n);s.exists("caption")?(t.writeRaw('<hr title="'),t.write(s.getFirstValue("caption")),t.writeRaw('">')):t.writeRaw("<hr>")},defn:Ve("","</dd>"),"term:para":Ve("<dt>","</dt><dd>"),nested:Or($r,1),output:Or(Ve("<pre><samp>","</samp></pre>"),1),input:Or(Ve("<pre><kbd>","</kbd></pre>"),1),"table:block":Or((t,r)=>(e,n,s)=>{let o=Ct(e,n);t.writeRaw("<table>"),o.exists("caption")&&(t.writeRaw("<caption>"),t.write(o.getFirstValue("caption")),t.writeRaw("</caption>"));let l={...n,...e.align&&{"table.align":e.align}},f=e.content||[],c=I=>I&&I.name==="row"&&Array.isArray(I.config)&&I.config.some(R=>R.name==="header"&&R.value!==!1);if(!f.some(c)){s(f,l),t.writeRaw("</table>");return}let h=f.filter(I=>I&&I.name==="row"),$=f.filter(I=>!I||I.name!=="row"),k=0;for(;k<h.length&&c(h[k]);)k++;let x=h.slice(0,k),C=h.slice(k);s($,l),t.writeRaw("<thead>"),s(x,l),t.writeRaw("</thead>"),C.length>0&&(t.writeRaw("<tbody>"),s(C,l),t.writeRaw("</tbody>")),t.writeRaw("</table>")}),":separator":St,row:(t,r)=>(e,n,s)=>{let o=Ct(e,n),l=o.exists("header")&&o.getFirstValue("header")!==!1;t.writeRaw("<tr>"),s(e.content,{...n,__row_header:l,cellinRow:0}),t.writeRaw("</tr>")},cell:(t,r)=>(e,n,s)=>{let o=n.__row_header?"th":"td",l=Ct(e,n),f=l.exists("colspan")?l.getFirstValue("colspan"):null,c=l.exists("rowspan")?l.getFirstValue("rowspan"):null,g=($=>{if(!Array.isArray($))return null;let k=n.cellinRow++;return $[k]||null})(n["table.align"]),h="";f!==null&&Number(f)>1&&(h+=` colspan="${f}"`),c!==null&&Number(c)>1&&(h+=` rowspan="${c}"`),g&&["left","right","center","justify"].includes(g)&&(h+=` style="text-align:${g}"`),t.writeRaw(`<${o}${h}>`),s(e.content,n),t.writeRaw(`</${o}>`)},":toc":(t,r)=>(e,n,s)=>{t.writeRaw('<div className="toc">');let o=Ct(e,n);if(o.exists("title")){let l=o.getFirstValue("title");t.writeRaw('<div className="toctitle">'),t.write(l),t.writeRaw("</div>")}s(e.content,n),t.writeRaw("</div>")},":toc-list":Ir((t,r)=>Ve(`<ul class="toc-list listlevel${t.level}">`,"</ul>")),":toc-item":Ir((t,r)=>Ve('<li class="toc-item">',"</li>")),":image":(t,r)=>(e,n,s)=>{t.writeRaw(`<img src="${e.src}" alt="${e.alt}"/>`)}};var rE=new am.default({strict:!0,allowUnionTypes:!0});function Bd(){var t=[];return r.use=e,r.parse=n,r.use(Md),r.use(Ud),r.use(Gd),r.use(Zd),r.use(nm),r.use(sm),r.use(Hd),r.use(Wd),r.use(Kd),r;function r(){}function e(s){if(!["function"].includes(typeof s))throw s;return t.push(s),r}function n(s,o={skipChain:0,podMode:1}){let{skipChain:l=0,podMode:f=1}=o,c=lm.parse(s,{podMode:f});if(!l)for(let g=0;g<t.length;g++){let h=t[g];c=h(o)(c)}return c}}var Rd=Bd().parse;var{version:nE}=om();function Ju(t){if(t)throw t}var _m=Sr(Qu(),1),lf=Sr(bm(),1);function uo(t){if(typeof t!="object"||t===null)return!1;let r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function $m(){let t=[],r={run:e,use:n};return r;function e(...s){let o=-1,l=s.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);f(null,...s);function f(c,...g){let h=t[++o],$=-1;if(c){l(c);return}for(;++$<s.length;)(g[$]===null||g[$]===void 0)&&(g[$]=s[$]);s=g,h?jk(h,f)(...g):l(null,...g)}}function n(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function jk(t,r){let e;return n;function n(...l){let f=t.length>l.length,c;f&&l.push(s);try{c=t.apply(this,l)}catch(g){let h=g;if(f&&e)throw h;return s(h)}f||(c instanceof Promise?c.then(o,s):c instanceof Error?s(c):o(c))}function s(l,...f){e||(e=!0,r(l,...f))}function o(l){s(null,l)}}var xm=Sr(Qu(),1);function Fi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?wm(t.position):"start"in t||"end"in t?wm(t):"line"in t||"column"in t?Xu(t):""}function Xu(t){return km(t&&t.line)+":"+km(t&&t.column)}function wm(t){return Xu(t&&t.start)+"-"+Xu(t&&t.end)}function km(t){return t&&typeof t=="number"?t:1}var wr=class extends Error{constructor(r,e,n){let s=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(n=e,e=void 0),typeof n=="string"){let l=n.indexOf(":");l===-1?s[1]=n:(s[0]=n.slice(0,l),s[1]=n.slice(l+1))}e&&("type"in e||"position"in e?e.position&&(o=e.position):"start"in e||"end"in e?o=e:("line"in e||"column"in e)&&(o.start=e)),this.name=Fi(e)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.source=s[0],this.ruleId=s[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}};wr.prototype.file="";wr.prototype.name="";wr.prototype.reason="";wr.prototype.message="";wr.prototype.stack="";wr.prototype.fatal=null;wr.prototype.column=null;wr.prototype.line=null;wr.prototype.source=null;wr.prototype.ruleId=null;wr.prototype.position=null;var Qr=Sr(require("path"),1);var Yu=Sr(require("process"),1);var ef=require("url");function wa(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}var tf=["history","path","basename","stem","extname","dirname"],fo=class{constructor(r){let e;r?typeof r=="string"||(0,xm.default)(r)?e={value:r}:wa(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=Yu.default.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<tf.length;){let o=tf[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let s;for(s in e)tf.includes(s)||(this[s]=e[s])}get path(){return this.history[this.history.length-1]}set path(r){wa(r)&&(r=(0,ef.fileURLToPath)(r)),nf(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Qr.default.dirname(this.path):void 0}set dirname(r){vm(this.basename,"dirname"),this.path=Qr.default.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Qr.default.basename(this.path):void 0}set basename(r){nf(r,"basename"),rf(r,"basename"),this.path=Qr.default.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Qr.default.extname(this.path):void 0}set extname(r){if(rf(r,"extname"),vm(this.dirname,"extname"),r){if(r.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qr.default.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Qr.default.basename(this.path,this.extname):void 0}set stem(r){nf(r,"stem"),rf(r,"stem"),this.path=Qr.default.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let s=new wr(r,e,n);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}info(r,e,n){let s=this.message(r,e,n);return s.fatal=null,s}fail(r,e,n){let s=this.message(r,e,n);throw s.fatal=!0,s}};function rf(t,r){if(t&&t.includes(Qr.default.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Qr.default.sep+"`")}function nf(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function vm(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var uf=Pm().freeze(),Sm={}.hasOwnProperty;function Pm(){let t=$m(),r=[],e={},n,s=-1;return o.data=l,o.Parser=void 0,o.Compiler=void 0,o.freeze=f,o.attachers=r,o.use=c,o.parse=g,o.stringify=h,o.run=$,o.runSync=k,o.process=x,o.processSync=C,o;function o(){let I=Pm(),R=-1;for(;++R<r.length;)I.use(...r[R]);return I.data((0,lf.default)(!0,{},e)),I}function l(I,R){return typeof I=="string"?arguments.length===2?(af("data",n),e[I]=R,o):Sm.call(e,I)&&e[I]||null:I?(af("data",n),e=I,o):e}function f(){if(n)return o;for(;++s<r.length;){let[I,...R]=r[s];if(R[0]===!1)continue;R[0]===!0&&(R[0]=void 0);let B=I.call(o,...R);typeof B=="function"&&t.use(B)}return n=!0,s=Number.POSITIVE_INFINITY,o}function c(I,...R){let B;if(af("use",n),I!=null)if(typeof I=="function")he(I,...R);else if(typeof I=="object")Array.isArray(I)?be(I):le(I);else throw new TypeError("Expected usable value, not `"+I+"`");return B&&(e.settings=Object.assign(e.settings||{},B)),o;function X(Y){if(typeof Y=="function")he(Y);else if(typeof Y=="object")if(Array.isArray(Y)){let[pe,...ve]=Y;he(pe,...ve)}else le(Y);else throw new TypeError("Expected usable value, not `"+Y+"`")}function le(Y){be(Y.plugins),Y.settings&&(B=Object.assign(B||{},Y.settings))}function be(Y){let pe=-1;if(Y!=null)if(Array.isArray(Y))for(;++pe<Y.length;){let ve=Y[pe];X(ve)}else throw new TypeError("Expected a list of plugins, not `"+Y+"`")}function he(Y,pe){let ve=-1,ke;for(;++ve<r.length;)if(r[ve][0]===Y){ke=r[ve];break}ke?(uo(ke[1])&&uo(pe)&&(pe=(0,lf.default)(!0,ke[1],pe)),ke[1]=pe):r.push([...arguments])}}function g(I){o.freeze();let R=co(I),B=o.Parser;return sf("parse",B),Cm(B,"parse")?new B(String(R),R).parse():B(String(R),R)}function h(I,R){o.freeze();let B=co(R),X=o.Compiler;return of("stringify",X),Am(I),Cm(X,"compile")?new X(I,B).compile():X(I,B)}function $(I,R,B){if(Am(I),o.freeze(),!B&&typeof R=="function"&&(B=R,R=void 0),!B)return new Promise(X);X(null,B);function X(le,be){t.run(I,co(R),he);function he(Y,pe,ve){pe=pe||I,Y?be(Y):le?le(pe):B(null,pe,ve)}}}function k(I,R){let B,X;return o.run(I,R,le),Em("runSync","run",X),B;function le(be,he){Ju(be),B=he,X=!0}}function x(I,R){if(o.freeze(),sf("process",o.Parser),of("process",o.Compiler),!R)return new Promise(B);B(null,R);function B(X,le){let be=co(I);o.run(o.parse(be),be,(Y,pe,ve)=>{if(Y||!pe||!ve)he(Y);else{let ke=o.stringify(pe,ve);ke==null||(zk(ke)?ve.value=ke:ve.result=ke),he(Y,ve)}});function he(Y,pe){Y||!pe?le(Y):X?X(pe):R(null,pe)}}}function C(I){let R;o.freeze(),sf("processSync",o.Parser),of("processSync",o.Compiler);let B=co(I);return o.process(B,X),Em("processSync","process",R),B;function X(le){R=!0,Ju(le)}}}function Cm(t,r){return typeof t=="function"&&t.prototype&&(Bk(t.prototype)||r in t.prototype)}function Bk(t){let r;for(r in t)if(Sm.call(t,r))return!0;return!1}function sf(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function of(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function af(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Am(t){if(!uo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Em(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function co(t){return Mk(t)?t:new fo(t)}function Mk(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function zk(t){return typeof t=="string"||(0,_m.default)(t)}function Fm(t,r){var{includeImageAlt:e=!0}=r||{};return Im(t,e)}function Im(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&Tm(t.children,r)||Array.isArray(t)&&Tm(t,r))||""}function Tm(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=Im(t[n],r);return e.join("")}function Nt(t,r,e,n){let s=t.length,o=0,l;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,e=e>0?e:0,n.length<1e4)l=Array.from(n),l.unshift(r,e),[].splice.apply(t,l);else for(e&&[].splice.apply(t,[r,e]);o<n.length;)l=n.slice(o,o+1e4),l.unshift(r,0),[].splice.apply(t,l),o+=1e4,r+=1e4}function kr(t,r){return t.length>0?(Nt(t,t.length,0,r),t):r}var Om={}.hasOwnProperty;function ka(t){let r={},e=-1;for(;++e<t.length;)Vk(r,t[e]);return r}function Vk(t,r){let e;for(e in r){let s=(Om.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],l;for(l in o){Om.call(s,l)||(s[l]=[]);let f=o[l];Hk(s[l],Array.isArray(f)?f:f?[f]:[])}}}function Hk(t,r){let e=-1,n=[];for(;++e<r.length;)(r[e].add==="after"?t:n).push(r[e]);Nt(t,0,0,n)}var Nm=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;var ur=ni(/[A-Za-z]/),Ii=ni(/\d/),Rm=ni(/[\dA-Fa-f]/),Wt=ni(/[\dA-Za-z]/),Dm=ni(/[!-/:-@[-`{-~]/),ff=ni(/[#-'*+\--9=?A-Z^-~]/);function ri(t){return t!==null&&(t<32||t===127)}function rt(t){return t!==null&&(t<0||t===32)}function de(t){return t!==null&&t<-2}function Ue(t){return t===-2||t===-1||t===32}var Oi=ni(/\s/),Ni=ni(Nm);function ni(t){return r;function r(e){return e!==null&&t.test(String.fromCharCode(e))}}function xe(t,r,e,n){let s=n?n-1:Number.POSITIVE_INFINITY,o=0;return l;function l(c){return Ue(c)?(t.enter(e),f(c)):r(c)}function f(c){return Ue(c)&&o++<s?(t.consume(c),f):(t.exit(e),r(c))}}var qm={tokenize:Uk};function Uk(t){let r=t.attempt(this.parser.constructs.contentInitial,n,s),e;return r;function n(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),xe(t,r,"linePrefix")}function s(f){return t.enter("paragraph"),o(f)}function o(f){let c=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=c),e=c,l(f)}function l(f){if(f===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(f);return}return de(f)?(t.consume(f),t.exit("chunkText"),o):(t.consume(f),l)}}var jm={tokenize:Gk},Lm={tokenize:Kk};function Gk(t){let r=this,e=[],n=0,s,o,l;return f;function f(le){if(n<e.length){let be=e[n];return r.containerState=be[1],t.attempt(be[0].continuation,c,g)(le)}return g(le)}function c(le){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&X();let be=r.events.length,he=be,Y;for(;he--;)if(r.events[he][0]==="exit"&&r.events[he][1].type==="chunkFlow"){Y=r.events[he][1].end;break}B(n);let pe=be;for(;pe<r.events.length;)r.events[pe][1].end=Object.assign({},Y),pe++;return Nt(r.events,he+1,0,r.events.slice(be)),r.events.length=pe,g(le)}return f(le)}function g(le){if(n===e.length){if(!s)return k(le);if(s.currentConstruct&&s.currentConstruct.concrete)return C(le);r.interrupt=Boolean(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(Lm,h,$)(le)}function h(le){return s&&X(),B(n),k(le)}function $(le){return r.parser.lazy[r.now().line]=n!==e.length,l=r.now().offset,C(le)}function k(le){return r.containerState={},t.attempt(Lm,x,C)(le)}function x(le){return n++,e.push([r.currentConstruct,r.containerState]),k(le)}function C(le){if(le===null){s&&X(),B(0),t.consume(le);return}return s=s||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:s}),I(le)}function I(le){if(le===null){R(t.exit("chunkFlow"),!0),B(0),t.consume(le);return}return de(le)?(t.consume(le),R(t.exit("chunkFlow")),n=0,r.interrupt=void 0,f):(t.consume(le),I)}function R(le,be){let he=r.sliceStream(le);if(be&&he.push(null),le.previous=o,o&&(o.next=le),o=le,s.defineSkip(le.start),s.write(he),r.parser.lazy[le.start.line]){let Y=s.events.length;for(;Y--;)if(s.events[Y][1].start.offset<l&&(!s.events[Y][1].end||s.events[Y][1].end.offset>l))return;let pe=r.events.length,ve=pe,ke,Le;for(;ve--;)if(r.events[ve][0]==="exit"&&r.events[ve][1].type==="chunkFlow"){if(ke){Le=r.events[ve][1].end;break}ke=!0}for(B(n),Y=pe;Y<r.events.length;)r.events[Y][1].end=Object.assign({},Le),Y++;Nt(r.events,ve+1,0,r.events.slice(pe)),r.events.length=Y}}function B(le){let be=e.length;for(;be-- >le;){let he=e[be];r.containerState=he[1],he[0].exit.call(r,t)}e.length=le}function X(){s.write([null]),o=void 0,s=void 0,r.containerState._closeFlow=void 0}}function Kk(t,r,e){return xe(t,t.attempt(this.parser.constructs.document,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ys(t){if(t===null||rt(t)||Oi(t))return 1;if(Ni(t))return 2}function ii(t,r,e){let n=[],s=-1;for(;++s<t.length;){let o=t[s].resolveAll;o&&!n.includes(o)&&(r=o(r,e),n.push(o))}return r}var po={name:"attention",tokenize:Zk,resolveAll:Wk};function Wk(t,r){let e=-1,n,s,o,l,f,c,g,h;for(;++e<t.length;)if(t[e][0]==="enter"&&t[e][1].type==="attentionSequence"&&t[e][1]._close){for(n=e;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&r.sliceSerialize(t[n][1]).charCodeAt(0)===r.sliceSerialize(t[e][1]).charCodeAt(0)){if((t[n][1]._close||t[e][1]._open)&&(t[e][1].end.offset-t[e][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[e][1].end.offset-t[e][1].start.offset)%3))continue;c=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let $=Object.assign({},t[n][1].end),k=Object.assign({},t[e][1].start);Bm($,-c),Bm(k,c),l={type:c>1?"strongSequence":"emphasisSequence",start:$,end:Object.assign({},t[n][1].end)},f={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:k},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},s={type:c>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},f.end)},t[n][1].end=Object.assign({},l.start),t[e][1].start=Object.assign({},f.end),g=[],t[n][1].end.offset-t[n][1].start.offset&&(g=kr(g,[["enter",t[n][1],r],["exit",t[n][1],r]])),g=kr(g,[["enter",s,r],["enter",l,r],["exit",l,r],["enter",o,r]]),g=kr(g,ii(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),g=kr(g,[["exit",o,r],["enter",f,r],["exit",f,r],["exit",s,r]]),t[e][1].end.offset-t[e][1].start.offset?(h=2,g=kr(g,[["enter",t[e][1],r],["exit",t[e][1],r]])):h=0,Nt(t,n-1,e-n+3,g),e=n+g.length-h-2;break}}for(e=-1;++e<t.length;)t[e][1].type==="attentionSequence"&&(t[e][1].type="data");return t}function Zk(t,r){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,s=ys(n),o;return l;function l(c){return t.enter("attentionSequence"),o=c,f(c)}function f(c){if(c===o)return t.consume(c),f;let g=t.exit("attentionSequence"),h=ys(c),$=!h||h===2&&s||e.includes(c),k=!s||s===2&&h||e.includes(n);return g._open=Boolean(o===42?$:$&&(s||!k)),g._close=Boolean(o===42?k:k&&(h||!$)),r(c)}}function Bm(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var cf={name:"autolink",tokenize:Jk};function Jk(t,r,e){let n=1;return s;function s(C){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(C){return ur(C)?(t.consume(C),l):ff(C)?g(C):e(C)}function l(C){return C===43||C===45||C===46||Wt(C)?f(C):g(C)}function f(C){return C===58?(t.consume(C),c):(C===43||C===45||C===46||Wt(C))&&n++<32?(t.consume(C),f):g(C)}function c(C){return C===62?(t.exit("autolinkProtocol"),x(C)):C===null||C===32||C===60||ri(C)?e(C):(t.consume(C),c)}function g(C){return C===64?(t.consume(C),n=0,h):ff(C)?(t.consume(C),g):e(C)}function h(C){return Wt(C)?$(C):e(C)}function $(C){return C===46?(t.consume(C),n=0,h):C===62?(t.exit("autolinkProtocol").type="autolinkEmail",x(C)):k(C)}function k(C){return(C===45||Wt(C))&&n++<63?(t.consume(C),C===45?k:$):e(C)}function x(C){return t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),r}}var En={tokenize:Qk,partial:!0};function Qk(t,r,e){return xe(t,n,"linePrefix");function n(s){return s===null||de(s)?r(s):e(s)}}var va={name:"blockQuote",tokenize:Xk,continuation:{tokenize:Yk},exit:ev};function Xk(t,r,e){let n=this;return s;function s(l){if(l===62){let f=n.containerState;return f.open||(t.enter("blockQuote",{_container:!0}),f.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(l),t.exit("blockQuoteMarker"),o}return e(l)}function o(l){return Ue(l)?(t.enter("blockQuotePrefixWhitespace"),t.consume(l),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(l))}}function Yk(t,r,e){return xe(t,t.attempt(va,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ev(t){t.exit("blockQuote")}var xa={name:"characterEscape",tokenize:tv};function tv(t,r,e){return n;function n(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),s}function s(o){return Dm(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var pf={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
43
+ `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var rv={}.hasOwnProperty;function bs(t){return rv.call(pf,t)?pf[t]:!1}var Ca={name:"characterReference",tokenize:nv};function nv(t,r,e){let n=this,s=0,o,l;return f;function f($){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume($),t.exit("characterReferenceMarker"),c}function c($){return $===35?(t.enter("characterReferenceMarkerNumeric"),t.consume($),t.exit("characterReferenceMarkerNumeric"),g):(t.enter("characterReferenceValue"),o=31,l=Wt,h($))}function g($){return $===88||$===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume($),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,l=Rm,h):(t.enter("characterReferenceValue"),o=7,l=Ii,h($))}function h($){let k;return $===59&&s?(k=t.exit("characterReferenceValue"),l===Wt&&!bs(n.sliceSerialize(k))?e($):(t.enter("characterReferenceMarker"),t.consume($),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):l($)&&s++<o?(t.consume($),h):e($)}}var Aa={name:"codeFenced",tokenize:iv,concrete:!0};function iv(t,r,e){let n=this,s={tokenize:he,partial:!0},o={tokenize:be,partial:!0},l=this.events[this.events.length-1],f=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0,g;return h;function h(Y){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g=Y,$(Y)}function $(Y){return Y===g?(t.consume(Y),c++,$):(t.exit("codeFencedFenceSequence"),c<3?e(Y):xe(t,k,"whitespace")(Y))}function k(Y){return Y===null||de(Y)?R(Y):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(Y))}function x(Y){return Y===null||rt(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),xe(t,C,"whitespace")(Y)):Y===96&&Y===g?e(Y):(t.consume(Y),x)}function C(Y){return Y===null||de(Y)?R(Y):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),I(Y))}function I(Y){return Y===null||de(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),R(Y)):Y===96&&Y===g?e(Y):(t.consume(Y),I)}function R(Y){return t.exit("codeFencedFence"),n.interrupt?r(Y):B(Y)}function B(Y){return Y===null?le(Y):de(Y)?t.attempt(o,t.attempt(s,le,f?xe(t,B,"linePrefix",f+1):B),le)(Y):(t.enter("codeFlowValue"),X(Y))}function X(Y){return Y===null||de(Y)?(t.exit("codeFlowValue"),B(Y)):(t.consume(Y),X)}function le(Y){return t.exit("codeFenced"),r(Y)}function be(Y,pe,ve){let ke=this;return Le;function Le(Fe){return Y.enter("lineEnding"),Y.consume(Fe),Y.exit("lineEnding"),Te}function Te(Fe){return ke.parser.lazy[ke.now().line]?ve(Fe):pe(Fe)}}function he(Y,pe,ve){let ke=0;return xe(Y,Le,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Le(ge){return Y.enter("codeFencedFence"),Y.enter("codeFencedFenceSequence"),Te(ge)}function Te(ge){return ge===g?(Y.consume(ge),ke++,Te):ke<c?ve(ge):(Y.exit("codeFencedFenceSequence"),xe(Y,Fe,"whitespace")(ge))}function Fe(ge){return ge===null||de(ge)?(Y.exit("codeFencedFence"),pe(ge)):ve(ge)}}}var mo={name:"codeIndented",tokenize:ov},sv={tokenize:av,partial:!0};function ov(t,r,e){let n=this;return s;function s(g){return t.enter("codeIndented"),xe(t,o,"linePrefix",4+1)(g)}function o(g){let h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?l(g):e(g)}function l(g){return g===null?c(g):de(g)?t.attempt(sv,l,c)(g):(t.enter("codeFlowValue"),f(g))}function f(g){return g===null||de(g)?(t.exit("codeFlowValue"),l(g)):(t.consume(g),f)}function c(g){return t.exit("codeIndented"),r(g)}}function av(t,r,e){let n=this;return s;function s(l){return n.parser.lazy[n.now().line]?e(l):de(l)?(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),s):xe(t,o,"linePrefix",4+1)(l)}function o(l){let f=n.events[n.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(l):de(l)?s(l):e(l)}}var df={name:"codeText",tokenize:fv,resolve:lv,previous:uv};function lv(t){let r=t.length-4,e=3,n,s;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(n=e;++n<r;)if(t[n][1].type==="codeTextData"){t[e][1].type="codeTextPadding",t[r][1].type="codeTextPadding",e+=2,r-=2;break}}for(n=e-1,r++;++n<=r;)s===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(s=n):(n===r||t[n][1].type==="lineEnding")&&(t[s][1].type="codeTextData",n!==s+2&&(t[s][1].end=t[n-1][1].end,t.splice(s+2,n-s-2),r-=n-s-2,n=s+2),s=void 0);return t}function uv(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fv(t,r,e){let n=this,s=0,o,l;return f;function f(k){return t.enter("codeText"),t.enter("codeTextSequence"),c(k)}function c(k){return k===96?(t.consume(k),s++,c):(t.exit("codeTextSequence"),g(k))}function g(k){return k===null?e(k):k===96?(l=t.enter("codeTextSequence"),o=0,$(k)):k===32?(t.enter("space"),t.consume(k),t.exit("space"),g):de(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),g):(t.enter("codeTextData"),h(k))}function h(k){return k===null||k===32||k===96||de(k)?(t.exit("codeTextData"),g(k)):(t.consume(k),h)}function $(k){return k===96?(t.consume(k),o++,$):o===s?(t.exit("codeTextSequence"),t.exit("codeText"),r(k)):(l.type="codeTextData",h(k))}}function Ea(t){let r={},e=-1,n,s,o,l,f,c,g;for(;++e<t.length;){for(;e in r;)e=r[e];if(n=t[e],e&&n[1].type==="chunkFlow"&&t[e-1][1].type==="listItemPrefix"&&(c=n[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,cv(t,e)),e=r[e],g=!0);else if(n[1]._container){for(o=e,s=void 0;o--&&(l=t[o],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(s&&(t[s][1].type="lineEndingBlank"),l[1].type="lineEnding",s=o);s&&(n[1].end=Object.assign({},t[s][1].start),f=t.slice(s,e),f.unshift(n),Nt(t,s,e-s+1,f))}}return!g}function cv(t,r){let e=t[r][1],n=t[r][2],s=r-1,o=[],l=e._tokenizer||n.parser[e.contentType](e.start),f=l.events,c=[],g={},h,$,k=-1,x=e,C=0,I=0,R=[I];for(;x;){for(;t[++s][1]!==x;);o.push(s),x._tokenizer||(h=n.sliceStream(x),x.next||h.push(null),$&&l.defineSkip(x.start),x._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(h),x._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),$=x,x=x.next}for(x=e;++k<f.length;)f[k][0]==="exit"&&f[k-1][0]==="enter"&&f[k][1].type===f[k-1][1].type&&f[k][1].start.line!==f[k][1].end.line&&(I=k+1,R.push(I),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(l.events=[],x?(x._tokenizer=void 0,x.previous=void 0):R.pop(),k=R.length;k--;){let B=f.slice(R[k],R[k+1]),X=o.pop();c.unshift([X,X+B.length-1]),Nt(t,X,2,B)}for(k=-1;++k<c.length;)g[C+c[k][0]]=C+c[k][1],C+=c[k][1]-c[k][0]-1;return g}var mf={tokenize:mv,resolve:dv},pv={tokenize:hv,partial:!0};function dv(t){return Ea(t),t}function mv(t,r){let e;return n;function n(f){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?o(f):de(f)?t.check(pv,l,o)(f):(t.consume(f),s)}function o(f){return t.exit("chunkContent"),t.exit("content"),r(f)}function l(f){return t.consume(f),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,s}}function hv(t,r,e){let n=this;return s;function s(l){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),xe(t,o,"linePrefix")}function o(l){if(l===null||de(l))return e(l);let f=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(l):t.interrupt(n.parser.constructs.flow,e,r)(l)}}function _a(t,r,e,n,s,o,l,f,c){let g=c||Number.POSITIVE_INFINITY,h=0;return $;function $(B){return B===60?(t.enter(n),t.enter(s),t.enter(o),t.consume(B),t.exit(o),k):B===null||B===41||ri(B)?e(B):(t.enter(n),t.enter(l),t.enter(f),t.enter("chunkString",{contentType:"string"}),I(B))}function k(B){return B===62?(t.enter(o),t.consume(B),t.exit(o),t.exit(s),t.exit(n),r):(t.enter(f),t.enter("chunkString",{contentType:"string"}),x(B))}function x(B){return B===62?(t.exit("chunkString"),t.exit(f),k(B)):B===null||B===60||de(B)?e(B):(t.consume(B),B===92?C:x)}function C(B){return B===60||B===62||B===92?(t.consume(B),x):x(B)}function I(B){return B===40?++h>g?e(B):(t.consume(B),I):B===41?h--?(t.consume(B),I):(t.exit("chunkString"),t.exit(f),t.exit(l),t.exit(n),r(B)):B===null||rt(B)?h?e(B):(t.exit("chunkString"),t.exit(f),t.exit(l),t.exit(n),r(B)):ri(B)?e(B):(t.consume(B),B===92?R:I)}function R(B){return B===40||B===41||B===92?(t.consume(B),I):I(B)}}function Sa(t,r,e,n,s,o){let l=this,f=0,c;return g;function g(x){return t.enter(n),t.enter(s),t.consume(x),t.exit(s),t.enter(o),h}function h(x){return x===null||x===91||x===93&&!c||x===94&&!f&&"_hiddenFootnoteSupport"in l.parser.constructs||f>999?e(x):x===93?(t.exit(o),t.enter(s),t.consume(x),t.exit(s),t.exit(n),r):de(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),h):(t.enter("chunkString",{contentType:"string"}),$(x))}function $(x){return x===null||x===91||x===93||de(x)||f++>999?(t.exit("chunkString"),h(x)):(t.consume(x),c=c||!Ue(x),x===92?k:$)}function k(x){return x===91||x===92||x===93?(t.consume(x),f++,$):$(x)}}function Pa(t,r,e,n,s,o){let l;return f;function f(k){return t.enter(n),t.enter(s),t.consume(k),t.exit(s),l=k===40?41:k,c}function c(k){return k===l?(t.enter(s),t.consume(k),t.exit(s),t.exit(n),r):(t.enter(o),g(k))}function g(k){return k===l?(t.exit(o),c(l)):k===null?e(k):de(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),xe(t,g,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===l||k===null||de(k)?(t.exit("chunkString"),g(k)):(t.consume(k),k===92?$:h)}function $(k){return k===l||k===92?(t.consume(k),h):h(k)}}function Ri(t,r){let e;return n;function n(s){return de(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e=!0,n):Ue(s)?xe(t,n,e?"linePrefix":"lineSuffix")(s):r(s)}}function fr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var hf={name:"definition",tokenize:yv},gv={tokenize:bv,partial:!0};function yv(t,r,e){let n=this,s;return o;function o(c){return t.enter("definition"),Sa.call(n,t,l,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function l(c){return s=fr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),c===58?(t.enter("definitionMarker"),t.consume(c),t.exit("definitionMarker"),Ri(t,_a(t,t.attempt(gv,xe(t,f,"whitespace"),xe(t,f,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(c)}function f(c){return c===null||de(c)?(t.exit("definition"),n.parser.defined.includes(s)||n.parser.defined.push(s),r(c)):e(c)}}function bv(t,r,e){return n;function n(l){return rt(l)?Ri(t,s)(l):e(l)}function s(l){return l===34||l===39||l===40?Pa(t,xe(t,o,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(l):e(l)}function o(l){return l===null||de(l)?r(l):e(l)}}var gf={name:"hardBreakEscape",tokenize:$v};function $v(t,r,e){return n;function n(o){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(o),s}function s(o){return de(o)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),r(o)):e(o)}}var yf={name:"headingAtx",tokenize:kv,resolve:wv};function wv(t,r){let e=t.length-2,n=3,s,o;return t[n][1].type==="whitespace"&&(n+=2),e-2>n&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(n===e-1||e-4>n&&t[e-2][1].type==="whitespace")&&(e-=n+1===e?2:4),e>n&&(s={type:"atxHeadingText",start:t[n][1].start,end:t[e][1].end},o={type:"chunkText",start:t[n][1].start,end:t[e][1].end,contentType:"text"},Nt(t,n,e-n+1,[["enter",s,r],["enter",o,r],["exit",o,r],["exit",s,r]])),t}function kv(t,r,e){let n=this,s=0;return o;function o(h){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),l(h)}function l(h){return h===35&&s++<6?(t.consume(h),l):h===null||rt(h)?(t.exit("atxHeadingSequence"),n.interrupt?r(h):f(h)):e(h)}function f(h){return h===35?(t.enter("atxHeadingSequence"),c(h)):h===null||de(h)?(t.exit("atxHeading"),r(h)):Ue(h)?xe(t,f,"whitespace")(h):(t.enter("atxHeadingText"),g(h))}function c(h){return h===35?(t.consume(h),c):(t.exit("atxHeadingSequence"),f(h))}function g(h){return h===null||h===35||rt(h)?(t.exit("atxHeadingText"),f(h)):(t.consume(h),g)}}var Mm=["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","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bf=["pre","script","style","textarea"];var $f={name:"htmlFlow",tokenize:Cv,resolveTo:xv,concrete:!0},vv={tokenize:Av,partial:!0};function xv(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function Cv(t,r,e){let n=this,s,o,l,f,c;return g;function g(H){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(H),h}function h(H){return H===33?(t.consume(H),$):H===47?(t.consume(H),C):H===63?(t.consume(H),s=3,n.interrupt?r:wt):ur(H)?(t.consume(H),l=String.fromCharCode(H),o=!0,I):e(H)}function $(H){return H===45?(t.consume(H),s=2,k):H===91?(t.consume(H),s=5,l="CDATA[",f=0,x):ur(H)?(t.consume(H),s=4,n.interrupt?r:wt):e(H)}function k(H){return H===45?(t.consume(H),n.interrupt?r:wt):e(H)}function x(H){return H===l.charCodeAt(f++)?(t.consume(H),f===l.length?n.interrupt?r:Te:x):e(H)}function C(H){return ur(H)?(t.consume(H),l=String.fromCharCode(H),I):e(H)}function I(H){return H===null||H===47||H===62||rt(H)?H!==47&&o&&bf.includes(l.toLowerCase())?(s=1,n.interrupt?r(H):Te(H)):Mm.includes(l.toLowerCase())?(s=6,H===47?(t.consume(H),R):n.interrupt?r(H):Te(H)):(s=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(H):o?X(H):B(H)):H===45||Wt(H)?(t.consume(H),l+=String.fromCharCode(H),I):e(H)}function R(H){return H===62?(t.consume(H),n.interrupt?r:Te):e(H)}function B(H){return Ue(H)?(t.consume(H),B):ke(H)}function X(H){return H===47?(t.consume(H),ke):H===58||H===95||ur(H)?(t.consume(H),le):Ue(H)?(t.consume(H),X):ke(H)}function le(H){return H===45||H===46||H===58||H===95||Wt(H)?(t.consume(H),le):be(H)}function be(H){return H===61?(t.consume(H),he):Ue(H)?(t.consume(H),be):X(H)}function he(H){return H===null||H===60||H===61||H===62||H===96?e(H):H===34||H===39?(t.consume(H),c=H,Y):Ue(H)?(t.consume(H),he):(c=null,pe(H))}function Y(H){return H===null||de(H)?e(H):H===c?(t.consume(H),ve):(t.consume(H),Y)}function pe(H){return H===null||H===34||H===39||H===60||H===61||H===62||H===96||rt(H)?be(H):(t.consume(H),pe)}function ve(H){return H===47||H===62||Ue(H)?X(H):e(H)}function ke(H){return H===62?(t.consume(H),Le):e(H)}function Le(H){return Ue(H)?(t.consume(H),Le):H===null||de(H)?Te(H):e(H)}function Te(H){return H===45&&s===2?(t.consume(H),Qe):H===60&&s===1?(t.consume(H),ne):H===62&&s===4?(t.consume(H),nt):H===63&&s===3?(t.consume(H),wt):H===93&&s===5?(t.consume(H),Xe):de(H)&&(s===6||s===7)?t.check(vv,nt,Fe)(H):H===null||de(H)?Fe(H):(t.consume(H),Te)}function Fe(H){return t.exit("htmlFlowData"),ge(H)}function ge(H){return H===null?z(H):de(H)?t.attempt({tokenize:Pe,partial:!0},ge,z)(H):(t.enter("htmlFlowData"),Te(H))}function Pe(H,dr,Lt){return kt;function kt(Ft){return H.enter("lineEnding"),H.consume(Ft),H.exit("lineEnding"),Tt}function Tt(Ft){return n.parser.lazy[n.now().line]?Lt(Ft):dr(Ft)}}function Qe(H){return H===45?(t.consume(H),wt):Te(H)}function ne(H){return H===47?(t.consume(H),l="",$t):Te(H)}function $t(H){return H===62&&bf.includes(l.toLowerCase())?(t.consume(H),nt):ur(H)&&l.length<8?(t.consume(H),l+=String.fromCharCode(H),$t):Te(H)}function Xe(H){return H===93?(t.consume(H),wt):Te(H)}function wt(H){return H===62?(t.consume(H),nt):H===45&&s===2?(t.consume(H),wt):Te(H)}function nt(H){return H===null||de(H)?(t.exit("htmlFlowData"),z(H)):(t.consume(H),nt)}function z(H){return t.exit("htmlFlow"),r(H)}}function Av(t,r,e){return n;function n(s){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),t.attempt(En,r,e)}}var wf={name:"htmlText",tokenize:Ev};function Ev(t,r,e){let n=this,s,o,l,f;return c;function c(z){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(z),g}function g(z){return z===33?(t.consume(z),h):z===47?(t.consume(z),pe):z===63?(t.consume(z),he):ur(z)?(t.consume(z),Le):e(z)}function h(z){return z===45?(t.consume(z),$):z===91?(t.consume(z),o="CDATA[",l=0,R):ur(z)?(t.consume(z),be):e(z)}function $(z){return z===45?(t.consume(z),k):e(z)}function k(z){return z===null||z===62?e(z):z===45?(t.consume(z),x):C(z)}function x(z){return z===null||z===62?e(z):C(z)}function C(z){return z===null?e(z):z===45?(t.consume(z),I):de(z)?(f=C,Xe(z)):(t.consume(z),C)}function I(z){return z===45?(t.consume(z),nt):C(z)}function R(z){return z===o.charCodeAt(l++)?(t.consume(z),l===o.length?B:R):e(z)}function B(z){return z===null?e(z):z===93?(t.consume(z),X):de(z)?(f=B,Xe(z)):(t.consume(z),B)}function X(z){return z===93?(t.consume(z),le):B(z)}function le(z){return z===62?nt(z):z===93?(t.consume(z),le):B(z)}function be(z){return z===null||z===62?nt(z):de(z)?(f=be,Xe(z)):(t.consume(z),be)}function he(z){return z===null?e(z):z===63?(t.consume(z),Y):de(z)?(f=he,Xe(z)):(t.consume(z),he)}function Y(z){return z===62?nt(z):he(z)}function pe(z){return ur(z)?(t.consume(z),ve):e(z)}function ve(z){return z===45||Wt(z)?(t.consume(z),ve):ke(z)}function ke(z){return de(z)?(f=ke,Xe(z)):Ue(z)?(t.consume(z),ke):nt(z)}function Le(z){return z===45||Wt(z)?(t.consume(z),Le):z===47||z===62||rt(z)?Te(z):e(z)}function Te(z){return z===47?(t.consume(z),nt):z===58||z===95||ur(z)?(t.consume(z),Fe):de(z)?(f=Te,Xe(z)):Ue(z)?(t.consume(z),Te):nt(z)}function Fe(z){return z===45||z===46||z===58||z===95||Wt(z)?(t.consume(z),Fe):ge(z)}function ge(z){return z===61?(t.consume(z),Pe):de(z)?(f=ge,Xe(z)):Ue(z)?(t.consume(z),ge):Te(z)}function Pe(z){return z===null||z===60||z===61||z===62||z===96?e(z):z===34||z===39?(t.consume(z),s=z,Qe):de(z)?(f=Pe,Xe(z)):Ue(z)?(t.consume(z),Pe):(t.consume(z),s=void 0,$t)}function Qe(z){return z===s?(t.consume(z),ne):z===null?e(z):de(z)?(f=Qe,Xe(z)):(t.consume(z),Qe)}function ne(z){return z===62||z===47||rt(z)?Te(z):e(z)}function $t(z){return z===null||z===34||z===39||z===60||z===61||z===96?e(z):z===62||rt(z)?Te(z):(t.consume(z),$t)}function Xe(z){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(z),t.exit("lineEnding"),xe(t,wt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wt(z){return t.enter("htmlTextData"),f(z)}function nt(z){return z===62?(t.consume(z),t.exit("htmlTextData"),t.exit("htmlText"),r):e(z)}}var Di={name:"labelEnd",tokenize:Iv,resolveTo:Fv,resolveAll:Tv},_v={tokenize:Ov},Sv={tokenize:Nv},Pv={tokenize:Rv};function Tv(t){let r=-1,e;for(;++r<t.length;)e=t[r][1],(e.type==="labelImage"||e.type==="labelLink"||e.type==="labelEnd")&&(t.splice(r+1,e.type==="labelImage"?4:2),e.type="data",r++);return t}function Fv(t,r){let e=t.length,n=0,s,o,l,f;for(;e--;)if(s=t[e][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[e][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(l){if(t[e][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=e,s.type!=="labelLink")){n=2;break}}else s.type==="labelEnd"&&(l=e);let c={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},g={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[l][1].end)},h={type:"labelText",start:Object.assign({},t[o+n+2][1].end),end:Object.assign({},t[l-2][1].start)};return f=[["enter",c,r],["enter",g,r]],f=kr(f,t.slice(o+1,o+n+3)),f=kr(f,[["enter",h,r]]),f=kr(f,ii(r.parser.constructs.insideSpan.null,t.slice(o+n+4,l-3),r)),f=kr(f,[["exit",h,r],t[l-2],t[l-1],["exit",g,r]]),f=kr(f,t.slice(l+1)),f=kr(f,[["exit",c,r]]),Nt(t,o,t.length,f),t}function Iv(t,r,e){let n=this,s=n.events.length,o,l;for(;s--;)if((n.events[s][1].type==="labelImage"||n.events[s][1].type==="labelLink")&&!n.events[s][1]._balanced){o=n.events[s][1];break}return f;function f(h){return o?o._inactive?g(h):(l=n.parser.defined.includes(fr(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),c):e(h)}function c(h){return h===40?t.attempt(_v,r,l?r:g)(h):h===91?t.attempt(Sv,r,l?t.attempt(Pv,r,g):g)(h):l?r(h):g(h)}function g(h){return o._balanced=!0,e(h)}}function Ov(t,r,e){return n;function n(c){return t.enter("resource"),t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),Ri(t,s)}function s(c){return c===41?f(c):_a(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return rt(c)?Ri(t,l)(c):f(c)}function l(c){return c===34||c===39||c===40?Pa(t,Ri(t,f),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function f(c){return c===41?(t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),t.exit("resource"),r):e(c)}}function Nv(t,r,e){let n=this;return s;function s(l){return Sa.call(n,t,o,e,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(fr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?r(l):e(l)}}function Rv(t,r,e){return n;function n(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),s}function s(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),r):e(o)}}var kf={name:"labelStartImage",tokenize:Dv,resolveAll:Di.resolveAll};function Dv(t,r,e){let n=this;return s;function s(f){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(f),t.exit("labelImageMarker"),o}function o(f){return f===91?(t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelImage"),l):e(f)}function l(f){return f===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(f):r(f)}}var vf={name:"labelStartLink",tokenize:qv,resolveAll:Di.resolveAll};function qv(t,r,e){let n=this;return s;function s(l){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(l):r(l)}}var ho={name:"lineEnding",tokenize:Lv};function Lv(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),xe(t,r,"linePrefix")}}var qi={name:"thematicBreak",tokenize:jv};function jv(t,r,e){let n=0,s;return o;function o(c){return t.enter("thematicBreak"),s=c,l(c)}function l(c){return c===s?(t.enter("thematicBreakSequence"),f(c)):Ue(c)?xe(t,l,"whitespace")(c):n<3||c!==null&&!de(c)?e(c):(t.exit("thematicBreak"),r(c))}function f(c){return c===s?(t.consume(c),n++,f):(t.exit("thematicBreakSequence"),l(c))}}var cr={name:"list",tokenize:zv,continuation:{tokenize:Vv},exit:Uv},Bv={tokenize:Gv,partial:!0},Mv={tokenize:Hv,partial:!0};function zv(t,r,e){let n=this,s=n.events[n.events.length-1],o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,l=0;return f;function f(x){let C=n.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!n.containerState.marker||x===n.containerState.marker:Ii(x)){if(n.containerState.type||(n.containerState.type=C,t.enter(C,{_container:!0})),C==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(qi,e,g)(x):g(x);if(!n.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(x)}return e(x)}function c(x){return Ii(x)&&++l<10?(t.consume(x),c):(!n.interrupt||l<2)&&(n.containerState.marker?x===n.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),g(x)):e(x)}function g(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||x,t.check(En,n.interrupt?e:h,t.attempt(Bv,k,$))}function h(x){return n.containerState.initialBlankLine=!0,o++,k(x)}function $(x){return Ue(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),k):e(x)}function k(x){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(x)}}function Vv(t,r,e){let n=this;return n.containerState._closeFlow=void 0,t.check(En,s,o);function s(f){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,xe(t,r,"listItemIndent",n.containerState.size+1)(f)}function o(f){return n.containerState.furtherBlankLines||!Ue(f)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l(f)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Mv,r,l)(f))}function l(f){return n.containerState._closeFlow=!0,n.interrupt=void 0,xe(t,t.attempt(cr,r,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function Hv(t,r,e){let n=this;return xe(t,s,"listItemIndent",n.containerState.size+1);function s(o){let l=n.events[n.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===n.containerState.size?r(o):e(o)}}function Uv(t){t.exit(this.containerState.type)}function Gv(t,r,e){let n=this;return xe(t,s,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function s(o){let l=n.events[n.events.length-1];return!Ue(o)&&l&&l[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var Ta={name:"setextUnderline",tokenize:Wv,resolveTo:Kv};function Kv(t,r){let e=t.length,n,s,o;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){n=e;break}t[e][1].type==="paragraph"&&(s=e)}else t[e][1].type==="content"&&t.splice(e,1),!o&&t[e][1].type==="definition"&&(o=e);let l={type:"setextHeading",start:Object.assign({},t[s][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[s][1].type="setextHeadingText",o?(t.splice(s,0,["enter",l,r]),t.splice(o+1,0,["exit",t[n][1],r]),t[n][1].end=Object.assign({},t[o][1].end)):t[n][1]=l,t.push(["exit",l,r]),t}function Wv(t,r,e){let n=this,s=n.events.length,o,l;for(;s--;)if(n.events[s][1].type!=="lineEnding"&&n.events[s][1].type!=="linePrefix"&&n.events[s][1].type!=="content"){l=n.events[s][1].type==="paragraph";break}return f;function f(h){return!n.parser.lazy[n.now().line]&&(n.interrupt||l)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),o=h,c(h)):e(h)}function c(h){return h===o?(t.consume(h),c):(t.exit("setextHeadingLineSequence"),xe(t,g,"lineSuffix")(h))}function g(h){return h===null||de(h)?(t.exit("setextHeadingLine"),r(h)):e(h)}}var zm={tokenize:Zv};function Zv(t){let r=this,e=t.attempt(En,n,t.attempt(this.parser.constructs.flowInitial,s,xe(t,t.attempt(this.parser.constructs.flow,s,t.attempt(mf,s)),"linePrefix")));return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),r.currentConstruct=void 0,e}function s(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r.currentConstruct=void 0,e}}var Vm={resolveAll:Km()},Hm=Gm("string"),Um=Gm("text");function Gm(t){return{tokenize:r,resolveAll:Km(t==="text"?Jv:void 0)};function r(e){let n=this,s=this.parser.constructs[t],o=e.attempt(s,l,f);return l;function l(h){return g(h)?o(h):f(h)}function f(h){if(h===null){e.consume(h);return}return e.enter("data"),e.consume(h),c}function c(h){return g(h)?(e.exit("data"),o(h)):(e.consume(h),c)}function g(h){if(h===null)return!0;let $=s[h],k=-1;if($)for(;++k<$.length;){let x=$[k];if(!x.previous||x.previous.call(n,n.previous))return!0}return!1}}}function Km(t){return r;function r(e,n){let s=-1,o;for(;++s<=e.length;)o===void 0?e[s]&&e[s][1].type==="data"&&(o=s,s++):(!e[s]||e[s][1].type!=="data")&&(s!==o+2&&(e[o][1].end=e[s-1][1].end,e.splice(o+2,s-o-2),s=o+2),o=void 0);return t?t(e,n):e}}function Jv(t,r){let e=0;for(;++e<=t.length;)if((e===t.length||t[e][1].type==="lineEnding")&&t[e-1][1].type==="data"){let n=t[e-1][1],s=r.sliceStream(n),o=s.length,l=-1,f=0,c;for(;o--;){let g=s[o];if(typeof g=="string"){for(l=g.length;g.charCodeAt(l-1)===32;)f++,l--;if(l)break;l=-1}else if(g===-2)c=!0,f++;else if(g!==-1){o++;break}}if(f){let g={type:e===t.length||c||f<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-f,offset:n.end.offset-f,_index:n.start._index+o,_bufferIndex:o?l:n.start._bufferIndex+l},end:Object.assign({},n.end)};n.end=Object.assign({},g.start),n.start.offset===n.end.offset?Object.assign(n,g):(t.splice(e,0,["enter",g,r],["exit",g,r]),e+=2)}e++}return t}function Wm(t,r,e){let n=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),s={},o=[],l=[],f=[],c=!0,g={consume:be,enter:he,exit:Y,attempt:ke(pe),check:ke(ve),interrupt:ke(ve,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:I,sliceSerialize:C,now:R,defineSkip:B,write:x},$=r.tokenize.call(h,g),k;return r.resolveAll&&o.push(r),h;function x(ge){return l=kr(l,ge),X(),l[l.length-1]!==null?[]:(Le(r,0),h.events=ii(o,h.events,h),h.events)}function C(ge,Pe){return Xv(I(ge),Pe)}function I(ge){return Qv(l,ge)}function R(){return Object.assign({},n)}function B(ge){s[ge.line]=ge.column,Fe()}function X(){let ge;for(;n._index<l.length;){let Pe=l[n._index];if(typeof Pe=="string")for(ge=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===ge&&n._bufferIndex<Pe.length;)le(Pe.charCodeAt(n._bufferIndex));else le(Pe)}}function le(ge){c=void 0,k=ge,$=$(ge)}function be(ge){de(ge)?(n.line++,n.column=1,n.offset+=ge===-3?2:1,Fe()):ge!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===l[n._index].length&&(n._bufferIndex=-1,n._index++)),h.previous=ge,c=!0}function he(ge,Pe){let Qe=Pe||{};return Qe.type=ge,Qe.start=R(),h.events.push(["enter",Qe,h]),f.push(Qe),Qe}function Y(ge){let Pe=f.pop();return Pe.end=R(),h.events.push(["exit",Pe,h]),Pe}function pe(ge,Pe){Le(ge,Pe.from)}function ve(ge,Pe){Pe.restore()}function ke(ge,Pe){return Qe;function Qe(ne,$t,Xe){let wt,nt,z,H;return Array.isArray(ne)?Lt(ne):"tokenize"in ne?Lt([ne]):dr(ne);function dr(ut){return tr;function tr(Vt){let vr=Vt!==null&&ut[Vt],Nr=Vt!==null&&ut.null,xr=[...Array.isArray(vr)?vr:vr?[vr]:[],...Array.isArray(Nr)?Nr:Nr?[Nr]:[]];return Lt(xr)(Vt)}}function Lt(ut){return wt=ut,nt=0,ut.length===0?Xe:kt(ut[nt])}function kt(ut){return tr;function tr(Vt){return H=Te(),z=ut,ut.partial||(h.currentConstruct=ut),ut.name&&h.parser.constructs.disable.null.includes(ut.name)?Ft(Vt):ut.tokenize.call(Pe?Object.assign(Object.create(h),Pe):h,g,Tt,Ft)(Vt)}}function Tt(ut){return c=!0,ge(z,H),$t}function Ft(ut){return c=!0,H.restore(),++nt<wt.length?kt(wt[nt]):Xe}}}function Le(ge,Pe){ge.resolveAll&&!o.includes(ge)&&o.push(ge),ge.resolve&&Nt(h.events,Pe,h.events.length-Pe,ge.resolve(h.events.slice(Pe),h)),ge.resolveTo&&(h.events=ge.resolveTo(h.events,h))}function Te(){let ge=R(),Pe=h.previous,Qe=h.currentConstruct,ne=h.events.length,$t=Array.from(f);return{restore:Xe,from:ne};function Xe(){n=ge,h.previous=Pe,h.currentConstruct=Qe,h.events.length=ne,f=$t,Fe()}}function Fe(){n.line in s&&n.column<2&&(n.column=s[n.line],n.offset+=s[n.line]-1)}}function Qv(t,r){let e=r.start._index,n=r.start._bufferIndex,s=r.end._index,o=r.end._bufferIndex,l;return e===s?l=[t[e].slice(n,o)]:(l=t.slice(e,s),n>-1&&(l[0]=l[0].slice(n)),o>0&&l.push(t[s].slice(0,o))),l}function Xv(t,r){let e=-1,n=[],s;for(;++e<t.length;){let o=t[e],l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
44
44
  `;break}case-3:{l=`\r
45
- `;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&s)continue;l=" ";break}default:l=String.fromCharCode(o)}s=o===-2,n.push(l)}return n.join("")}var vf={};uc(vf,{attentionMarkers:()=>l0,contentInitial:()=>r0,disable:()=>u0,document:()=>t0,flow:()=>i0,flowInitial:()=>n0,insideSpan:()=>a0,string:()=>s0,text:()=>o0});var t0={[42]:cr,[43]:cr,[45]:cr,[48]:cr,[49]:cr,[50]:cr,[51]:cr,[52]:cr,[53]:cr,[54]:cr,[55]:cr,[56]:cr,[57]:cr,[62]:va},r0={[91]:mf},n0={[-2]:mo,[-1]:mo,[32]:mo},i0={[35]:gf,[42]:qi,[45]:[Ta,qi],[60]:bf,[61]:Ta,[95]:qi,[96]:Aa,[126]:Aa},s0={[38]:Ca,[92]:xa},o0={[-5]:ho,[-4]:ho,[-3]:ho,[33]:wf,[38]:Ca,[42]:po,[60]:[ff,$f],[91]:kf,[92]:[hf,xa],[93]:Di,[95]:po,[96]:pf},a0={null:[po,Um]},l0={null:[42,95]},u0={null:[]};function Qm(t={}){let r=ka([vf].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(jm),document:n(Mm),flow:n(Hm),string:n(Gm),text:n(Km)};return e;function n(s){return o;function o(l){return Jm(e,s,l)}}}var Xm=/[\0\t\n\r]/g;function Ym(){let t=1,r="",e=!0,n;return s;function s(o,l,f){let c=[],g,h,$,k,x;for(o=r+o.toString(l),$=0,r="",e&&(o.charCodeAt(0)===65279&&$++,e=void 0);$<o.length;){if(Xm.lastIndex=$,g=Xm.exec(o),k=g&&g.index!==void 0?g.index:o.length,x=o.charCodeAt(k),!g){r=o.slice($);break}if(x===10&&$===k&&n)c.push(-3),n=void 0;else switch(n&&(c.push(-5),n=void 0),$<k&&(c.push(o.slice($,k)),t+=k-$),x){case 0:{c.push(65533),t++;break}case 9:{for(h=Math.ceil(t/4)*4,c.push(-2);t++<h;)c.push(-1);break}case 10:{c.push(-4),t=1;break}default:n=!0,t=1}$=k+1}return f&&(n&&c.push(-5),r&&c.push(r),c.push(null)),c}}function eh(t){for(;!Ea(t););return t}function Fa(t,r){let e=Number.parseInt(t,r);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"\uFFFD":String.fromCharCode(e)}var f0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ia(t){return t.replace(f0,c0)}function c0(t,r,e){if(r)return r;if(e.charCodeAt(0)===35){let s=e.charCodeAt(1),o=s===120||s===88;return Fa(e.slice(o?2:1),o?16:10)}return bs(e)||t}var xf={}.hasOwnProperty,Cf=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),p0(e)(eh(Qm(e).document().write(Ym()(t,r,!0))))};function p0(t={}){let r=rh({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Ee),autolinkProtocol:Fe,autolinkEmail:Fe,atxHeading:c(Tn),blockQuote:c(Rr),characterEscape:Fe,characterReference:Fe,codeFenced:c(xr),codeFencedFenceInfo:g,codeFencedFenceMeta:g,codeIndented:c(xr,g),codeText:c(jt,g),codeTextData:Fe,data:Fe,codeFlowValue:Fe,definition:c(Sn),definitionDestinationString:g,definitionLabelString:g,definitionTitleString:g,emphasis:c(Pn),hardBreakEscape:c(Ce),hardBreakTrailing:c(Ce),htmlFlow:c(Hn,g),htmlFlowData:Fe,htmlText:c(Hn,g),htmlTextData:Fe,image:c(Nr),label:g,link:c(Ee),listItem:c(At),listItemValue:I,listOrdered:c(Re,C),listUnordered:c(Re),paragraph:c(ht),reference:Tt,referenceString:g,resourceDestinationString:g,resourceTitleString:g,setextHeading:c(Tn),strong:c(mr),thematicBreak:c(_e)},exit:{atxHeading:$(),atxHeadingSequence:ve,autolink:$(),autolinkEmail:vr,autolinkProtocol:Vt,blockQuote:$(),characterEscapeValue:ge,characterReferenceMarkerHexadecimal:ut,characterReferenceMarkerNumeric:ut,characterReferenceValue:tr,codeFenced:$(le),codeFencedFence:X,codeFencedFenceInfo:N,codeFencedFenceMeta:B,codeFlowValue:ge,codeIndented:$($e),codeText:$(Xe),codeTextData:ge,data:ge,definition:$(),definitionDestinationString:pe,definitionLabelString:he,definitionTitleString:Y,emphasis:$(),hardBreakEscape:$(Qe),hardBreakTrailing:$(Qe),htmlFlow:$(ne),htmlFlowData:ge,htmlText:$($t),htmlTextData:ge,image:$(nt),label:H,labelText:z,lineEnding:Pe,link:$(wt),listItem:$(),listOrdered:$(),listUnordered:$(),paragraph:$(),referenceString:Ft,resourceDestinationString:dr,resourceTitleString:Lt,resource:kt,setextHeading:$(Te),setextHeadingLineSequence:Le,setextHeadingText:ke,strong:$(),thematicBreak:$()}},t.mdastExtensions||[]),e={};return n;function n(te){let ce={type:"root",children:[]},Ae=[ce],Be=[],Ye=[],Pt={stack:Ae,tokenStack:Be,config:r,enter:h,exit:k,buffer:g,resume:x,setData:o,getData:l},it=-1;for(;++it<te.length;)if(te[it][1].type==="listOrdered"||te[it][1].type==="listUnordered")if(te[it][0]==="enter")Ye.push(it);else{let vt=Ye.pop();it=s(te,vt,it)}for(it=-1;++it<te.length;){let vt=r[te[it][0]];xf.call(vt,te[it][1].type)&&vt[te[it][1].type].call(Object.assign({sliceSerialize:te[it][2].sliceSerialize},Pt),te[it][1])}if(Be.length>0){let vt=Be[Be.length-1];(vt[1]||th).call(Pt,void 0,vt[0])}for(ce.position={start:f(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:f(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<r.transforms.length;)ce=r.transforms[it](ce)||ce;return ce}function s(te,ce,Ae){let Be=ce-1,Ye=-1,Pt=!1,it,vt,It,Xr;for(;++Be<=Ae;){let gt=te[Be];if(gt[1].type==="listUnordered"||gt[1].type==="listOrdered"||gt[1].type==="blockQuote"?(gt[0]==="enter"?Ye++:Ye--,Xr=void 0):gt[1].type==="lineEndingBlank"?gt[0]==="enter"&&(it&&!Xr&&!Ye&&!It&&(It=Be),Xr=void 0):gt[1].type==="linePrefix"||gt[1].type==="listItemValue"||gt[1].type==="listItemMarker"||gt[1].type==="listItemPrefix"||gt[1].type==="listItemPrefixWhitespace"||(Xr=void 0),!Ye&&gt[0]==="enter"&&gt[1].type==="listItemPrefix"||Ye===-1&&gt[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(it){let Fn=Be;for(vt=void 0;Fn--;){let hr=te[Fn];if(hr[1].type==="lineEnding"||hr[1].type==="lineEndingBlank"){if(hr[0]==="exit")continue;vt&&(te[vt][1].type="lineEndingBlank",Pt=!0),hr[1].type="lineEnding",vt=Fn}else if(!(hr[1].type==="linePrefix"||hr[1].type==="blockQuotePrefix"||hr[1].type==="blockQuotePrefixWhitespace"||hr[1].type==="blockQuoteMarker"||hr[1].type==="listItemIndent"))break}It&&(!vt||It<vt)&&(it._spread=!0),it.end=Object.assign({},vt?te[vt][1].start:gt[1].end),te.splice(vt||Be,0,["exit",it,gt[2]]),Be++,Ae++}gt[1].type==="listItemPrefix"&&(it={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start)},te.splice(Be,0,["enter",it,gt[2]]),Be++,Ae++,It=void 0,Xr=!0)}}return te[ce][1]._spread=Pt,Ae}function o(te,ce){e[te]=ce}function l(te){return e[te]}function f(te){return{line:te.line,column:te.column,offset:te.offset}}function c(te,ce){return Ae;function Ae(Be){h.call(this,te(Be),Be),ce&&ce.call(this,Be)}}function g(){this.stack.push({type:"fragment",children:[]})}function h(te,ce,Ae){return this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([ce,Ae]),te.position={start:f(ce.start)},te}function $(te){return ce;function ce(Ae){te&&te.call(this,Ae),k.call(this,Ae)}}function k(te,ce){let Ae=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==te.type&&(ce?ce.call(this,te,Be[0]):(Be[1]||th).call(this,te,Be[0]));else throw new Error("Cannot close `"+te.type+"` ("+Fi({start:te.start,end:te.end})+"): it\u2019s not open");return Ae.position.end=f(te.end),Ae}function x(){return Om(this.stack.pop())}function C(){o("expectingFirstListItemValue",!0)}function I(te){if(l("expectingFirstListItemValue")){let ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(te),10),o("expectingFirstListItemValue")}}function N(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=te}function B(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=te}function X(){l("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function le(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function $e(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te.replace(/(\r?\n|\r)$/g,"")}function he(te){let ce=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ce,Ae.identifier=fr(this.sliceSerialize(te)).toLowerCase()}function Y(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.title=te}function pe(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.url=te}function ve(te){let ce=this.stack[this.stack.length-1];if(!ce.depth){let Ae=this.sliceSerialize(te).length;ce.depth=Ae}}function ke(){o("setextHeadingSlurpLineEnding",!0)}function Le(te){let ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(te).charCodeAt(0)===61?1:2}function Te(){o("setextHeadingSlurpLineEnding")}function Fe(te){let ce=this.stack[this.stack.length-1],Ae=ce.children[ce.children.length-1];(!Ae||Ae.type!=="text")&&(Ae=Ne(),Ae.position={start:f(te.start)},ce.children.push(Ae)),this.stack.push(Ae)}function ge(te){let ce=this.stack.pop();ce.value+=this.sliceSerialize(te),ce.position.end=f(te.end)}function Pe(te){let ce=this.stack[this.stack.length-1];if(l("atHardBreak")){let Ae=ce.children[ce.children.length-1];Ae.position.end=f(te.end),o("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(ce.type)&&(Fe.call(this,te),ge.call(this,te))}function Qe(){o("atHardBreak",!0)}function ne(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function $t(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function Xe(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function wt(){let te=this.stack[this.stack.length-1];l("inReference")?(te.type+="Reference",te.referenceType=l("referenceType")||"shortcut",delete te.url,delete te.title):(delete te.identifier,delete te.label),o("referenceType")}function nt(){let te=this.stack[this.stack.length-1];l("inReference")?(te.type+="Reference",te.referenceType=l("referenceType")||"shortcut",delete te.url,delete te.title):(delete te.identifier,delete te.label),o("referenceType")}function z(te){let ce=this.stack[this.stack.length-2],Ae=this.sliceSerialize(te);ce.label=Ia(Ae),ce.identifier=fr(Ae).toLowerCase()}function H(){let te=this.stack[this.stack.length-1],ce=this.resume(),Ae=this.stack[this.stack.length-1];o("inReference",!0),Ae.type==="link"?Ae.children=te.children:Ae.alt=ce}function dr(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.url=te}function Lt(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.title=te}function kt(){o("inReference")}function Tt(){o("referenceType","collapsed")}function Ft(te){let ce=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ce,Ae.identifier=fr(this.sliceSerialize(te)).toLowerCase(),o("referenceType","full")}function ut(te){o("characterReferenceType",te.type)}function tr(te){let ce=this.sliceSerialize(te),Ae=l("characterReferenceType"),Be;Ae?(Be=Fa(ce,Ae==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Be=bs(ce);let Ye=this.stack.pop();Ye.value+=Be,Ye.position.end=f(te.end)}function Vt(te){ge.call(this,te);let ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(te)}function vr(te){ge.call(this,te);let ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(te)}function Rr(){return{type:"blockquote",children:[]}}function xr(){return{type:"code",lang:null,meta:null,value:""}}function jt(){return{type:"inlineCode",value:""}}function Sn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pn(){return{type:"emphasis",children:[]}}function Tn(){return{type:"heading",depth:void 0,children:[]}}function Ce(){return{type:"break"}}function Hn(){return{type:"html",value:""}}function Nr(){return{type:"image",title:null,url:"",alt:null}}function Ee(){return{type:"link",title:null,url:"",children:[]}}function Re(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function At(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function ht(){return{type:"paragraph",children:[]}}function mr(){return{type:"strong",children:[]}}function Ne(){return{type:"text",value:""}}function _e(){return{type:"thematicBreak"}}}function rh(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?rh(t,n):d0(t,n)}return t}function d0(t,r){let e;for(e in r)if(xf.call(r,e)){let n=e==="canContainEols"||e==="transforms",o=(xf.call(t,e)?t[e]:void 0)||(t[e]=n?[]:{}),l=r[e];l&&(n?t[e]=[...o,...l]:Object.assign(o,l))}}function th(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+Fi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+Fi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Fi({start:r.start,end:r.end})+") is still open")}function Af(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return Cf(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var nh=Af;var m0={tokenize:b0,partial:!0},sh={tokenize:$0,partial:!0},oh={tokenize:w0,partial:!0},$s={tokenize:v0,partial:!0},ah={tokenize:k0,partial:!0},lh={tokenize:g0,previous:ch},uh={tokenize:y0,previous:Sf},Vn={tokenize:h0,previous:ph},_n={},Ef={text:_n},Li=48;for(;Li<123;)_n[Li]=Vn,Li++,Li===58?Li=65:Li===91&&(Li=97);_n[43]=Vn;_n[45]=Vn;_n[46]=Vn;_n[95]=Vn;_n[72]=[Vn,uh];_n[104]=[Vn,uh];_n[87]=[Vn,lh];_n[119]=[Vn,lh];function h0(t,r,e){let n=this,s,o;return l;function l(x){return!ih(x)||!ph(n.previous)||Pf(n.events)?e(x):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),f(x))}function f(x){return ih(x)?(t.consume(x),f):x===64?(t.consume(x),c):e(x)}function c(x){return x===46?t.check($s,k,g)(x):x===45||x===95?t.check($s,e,h)(x):Wt(x)?(!o&&Ii(x)&&(o=!0),t.consume(x),c):k(x)}function g(x){return t.consume(x),s=!0,o=void 0,c}function h(x){return t.consume(x),$}function $(x){return x===46?t.check($s,e,g)(x):c(x)}function k(x){return s&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(x)):e(x)}}function g0(t,r,e){let n=this;return s;function s(l){return l!==87&&l!==119||!ch(n.previous)||Pf(n.events)?e(l):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(m0,t.attempt(sh,t.attempt(oh,o),e),e)(l))}function o(l){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(l)}}function y0(t,r,e){let n=this;return s;function s(C){return C!==72&&C!==104||!Sf(n.previous)||Pf(n.events)?e(C):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(C),o)}function o(C){return C===84||C===116?(t.consume(C),l):e(C)}function l(C){return C===84||C===116?(t.consume(C),f):e(C)}function f(C){return C===80||C===112?(t.consume(C),c):e(C)}function c(C){return C===83||C===115?(t.consume(C),g):g(C)}function g(C){return C===58?(t.consume(C),h):e(C)}function h(C){return C===47?(t.consume(C),$):e(C)}function $(C){return C===47?(t.consume(C),k):e(C)}function k(C){return C===null||ri(C)||Oi(C)||Ri(C)?e(C):t.attempt(sh,t.attempt(oh,x),e)(C)}function x(C){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(C)}}function b0(t,r,e){return n;function n(c){return t.consume(c),s}function s(c){return c===87||c===119?(t.consume(c),o):e(c)}function o(c){return c===87||c===119?(t.consume(c),l):e(c)}function l(c){return c===46?(t.consume(c),f):e(c)}function f(c){return c===null||de(c)?e(c):r(c)}}function $0(t,r,e){let n,s;return o;function o(c){return c===38?t.check(ah,f,l)(c):c===46||c===95?t.check($s,f,l)(c):c===null||ri(c)||Oi(c)||c!==45&&Ri(c)?f(c):(t.consume(c),o)}function l(c){return c===46?(s=n,n=void 0,t.consume(c),o):(c===95&&(n=!0),t.consume(c),o)}function f(c){return!s&&!n?r(c):e(c)}}function w0(t,r){let e=0;return n;function n(l){return l===38?t.check(ah,r,s)(l):(l===40&&e++,l===41?t.check($s,o,s)(l):_f(l)?r(l):fh(l)?t.check($s,r,s)(l):(t.consume(l),n))}function s(l){return t.consume(l),n}function o(l){return e--,e<0?r(l):s(l)}}function k0(t,r,e){return n;function n(l){return t.consume(l),s}function s(l){return ur(l)?(t.consume(l),s):l===59?(t.consume(l),o):e(l)}function o(l){return _f(l)?r(l):e(l)}}function v0(t,r,e){return n;function n(o){return t.consume(o),s}function s(o){return fh(o)?(t.consume(o),s):_f(o)?r(o):e(o)}}function fh(t){return t===33||t===34||t===39||t===41||t===42||t===44||t===46||t===58||t===59||t===60||t===63||t===95||t===126}function _f(t){return t===null||t===60||rt(t)}function ih(t){return t===43||t===45||t===46||t===95||Wt(t)}function ch(t){return t===null||t===40||t===42||t===95||t===126||rt(t)}function Sf(t){return t===null||!ur(t)}function ph(t){return t!==47&&Sf(t)}function Pf(t){let r=t.length,e=!1;for(;r--;){let n=t[r][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){e=!0;break}if(n._gfmAutolinkLiteralWalkedInto){e=!1;break}}return t.length>0&&!e&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}var x0={tokenize:T0,partial:!0};function Tf(){return{document:{[91]:{tokenize:_0,continuation:{tokenize:S0},exit:P0}},text:{[91]:{tokenize:E0},[93]:{add:"after",tokenize:C0,resolveTo:A0}}}}function C0(t,r,e){let n=this,s=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),l;for(;s--;){let c=n.events[s][1];if(c.type==="labelImage"){l=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return f;function f(c){if(!l||!l._balanced)return e(c);let g=fr(n.sliceSerialize({start:l.end,end:n.now()}));return g.charCodeAt(0)!==94||!o.includes(g.slice(1))?e(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),r(c))}}function A0(t,r){let e=t.length,n;for(;e--;)if(t[e][1].type==="labelImage"&&t[e][0]==="enter"){n=t[e][1];break}t[e+1][1].type="data",t[e+3][1].type="gfmFootnoteCallLabelMarker";let s={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},c=[t[e+1],t[e+2],["enter",s,r],t[e+3],t[e+4],["enter",o,r],["exit",o,r],["enter",l,r],["enter",f,r],["exit",f,r],["exit",l,r],t[t.length-2],t[t.length-1],["exit",s,r]];return t.splice(e,t.length-e+1,...c),t}function E0(t,r,e){let n=this,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,l;return f;function f(k){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(k),t.exit("gfmFootnoteCallLabelMarker"),c}function c(k){return k!==94?e(k):(t.enter("gfmFootnoteCallMarker"),t.consume(k),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(k){let x;return k===null||k===91||o++>999?e(k):k===93?l?(t.exit("chunkString"),x=t.exit("gfmFootnoteCallString"),s.includes(fr(n.sliceSerialize(x)))?$(k):e(k)):e(k):(t.consume(k),rt(k)||(l=!0),k===92?h:g)}function h(k){return k===91||k===92||k===93?(t.consume(k),o++,g):g(k)}function $(k){return t.enter("gfmFootnoteCallLabelMarker"),t.consume(k),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function _0(t,r,e){let n=this,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,l=0,f;return c;function c(I){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(I){return I===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),h):e(I)}function h(I){let N;return I===null||I===91||l>999?e(I):I===93?f?(N=t.exit("gfmFootnoteDefinitionLabelString"),o=fr(n.sliceSerialize(N)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),x):e(I):de(I)?(t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),l++,h):(t.enter("chunkString").contentType="string",$(I))}function $(I){return I===null||de(I)||I===91||I===93||l>999?(t.exit("chunkString"),h(I)):(rt(I)||(f=!0),l++,t.consume(I),I===92?k:$)}function k(I){return I===91||I===92||I===93?(t.consume(I),l++,$):$(I)}function x(I){return I===58?(t.enter("definitionMarker"),t.consume(I),t.exit("definitionMarker"),xe(t,C,"gfmFootnoteDefinitionWhitespace")):e(I)}function C(I){return s.includes(o)||s.push(o),r(I)}}function S0(t,r,e){return t.check(En,r,t.attempt(x0,r,e))}function P0(t){t.exit("gfmFootnoteDefinition")}function T0(t,r,e){let n=this;return xe(t,s,"gfmFootnoteDefinitionIndent",4+1);function s(o){let l=n.events[n.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?r(o):e(o)}}function Ff(t={}){let r=t.singleTilde,e={tokenize:s,resolveAll:n};return r==null&&(r=!0),{text:{[126]:e},insideSpan:{null:[e]},attentionMarkers:{null:[126]}};function n(o,l){let f=-1;for(;++f<o.length;)if(o[f][0]==="enter"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._close){let c=f;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[f][1].end.offset-o[f][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[f][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";let g={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[f][1].end)},h={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[f][1].start)},$=[["enter",g,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",h,l]];Rt($,$.length,0,ii(l.parser.constructs.insideSpan.null,o.slice(c+1,f),l)),Rt($,$.length,0,[["exit",h,l],["enter",o[f][1],l],["exit",o[f][1],l],["exit",g,l]]),Rt(o,c-1,f-c+3,$),f=c+$.length-2;break}}for(f=-1;++f<o.length;)o[f][1].type==="strikethroughSequenceTemporary"&&(o[f][1].type="data");return o}function s(o,l,f){let c=this.previous,g=this.events,h=0;return $;function $(x){return c===126&&g[g.length-1][1].type!=="characterEscape"?f(x):(o.enter("strikethroughSequenceTemporary"),k(x))}function k(x){let C=ys(c);if(x===126)return h>1?f(x):(o.consume(x),h++,k);if(h<2&&!r)return f(x);let I=o.exit("strikethroughSequenceTemporary"),N=ys(x);return I._open=!N||N===2&&Boolean(C),I._close=!C||C===2&&Boolean(N),l(x)}}}var If={flow:{null:{tokenize:I0,resolve:F0}}},dh={tokenize:O0,partial:!0};function F0(t,r){let e=-1,n,s,o,l,f,c,g;for(;++e<t.length;){let h=t[e][1];if(o&&(h.type==="temporaryTableCellContent"&&(l=l||e,f=e),(h.type==="tableCellDivider"||h.type==="tableRow")&&f)){let $={type:"tableContent",start:t[l][1].start,end:t[f][1].end},k={type:"chunkText",start:$.start,end:$.end,contentType:"text"};t.splice(l,f-l+1,["enter",$,r],["enter",k,r],["exit",k,r],["exit",$,r]),e-=f-l-3,l=void 0,f=void 0}if(t[e][0]==="exit"&&c!==void 0&&c+(g?0:1)<e&&(h.type==="tableCellDivider"||h.type==="tableRow"&&(c+3<e||t[c][1].type!=="whitespace"))){let $={type:s?"tableDelimiter":n?"tableHeader":"tableData",start:t[c][1].start,end:t[e][1].end};t.splice(e+(h.type==="tableCellDivider"?1:0),0,["exit",$,r]),t.splice(c,0,["enter",$,r]),e+=2,c=e+1,g=!0}h.type==="tableRow"&&(o=t[e][0]==="enter",o&&(c=e+1,g=!1)),h.type==="tableDelimiterRow"&&(s=t[e][0]==="enter",s&&(c=e+1,g=!1)),h.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function I0(t,r,e){let n=this,s=[],o=0,l,f;return c;function c(ne){return t.enter("table")._align=s,t.enter("tableHead"),t.enter("tableRow"),ne===124?g(ne):(o++,t.enter("temporaryTableCellContent"),k(ne))}function g(ne){return t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),l=!0,h}function h(ne){return ne===null||de(ne)?C(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),$):(l&&(l=void 0,o++),ne===124?g(ne):(t.enter("temporaryTableCellContent"),k(ne)))}function $(ne){return Ue(ne)?(t.consume(ne),$):(t.exit("whitespace"),h(ne))}function k(ne){return ne===null||ne===124||rt(ne)?(t.exit("temporaryTableCellContent"),h(ne)):(t.consume(ne),ne===92?x:k)}function x(ne){return ne===92||ne===124?(t.consume(ne),k):k(ne)}function C(ne){if(ne===null)return e(ne);t.exit("tableRow"),t.exit("tableHead");let $t=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:Qe,partial:!0},function(Xe){return n.interrupt=$t,t.enter("tableDelimiterRow"),I(Xe)},function(Xe){return n.interrupt=$t,e(Xe)})(ne)}function I(ne){return ne===null||de(ne)?$e(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),N):ne===45?(t.enter("tableDelimiterFiller"),t.consume(ne),f=!0,s.push("none"),B):ne===58?(t.enter("tableDelimiterAlignment"),t.consume(ne),t.exit("tableDelimiterAlignment"),s.push("left"),X):ne===124?(t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),I):e(ne)}function N(ne){return Ue(ne)?(t.consume(ne),N):(t.exit("whitespace"),I(ne))}function B(ne){return ne===45?(t.consume(ne),B):(t.exit("tableDelimiterFiller"),ne===58?(t.enter("tableDelimiterAlignment"),t.consume(ne),t.exit("tableDelimiterAlignment"),s[s.length-1]=s[s.length-1]==="left"?"center":"right",le):I(ne))}function X(ne){return ne===45?(t.enter("tableDelimiterFiller"),t.consume(ne),f=!0,B):e(ne)}function le(ne){return ne===null||de(ne)?$e(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),N):ne===124?(t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),I):e(ne)}function $e(ne){return t.exit("tableDelimiterRow"),!f||o!==s.length?e(ne):ne===null?he(ne):t.check(dh,he,t.attempt({tokenize:Qe,partial:!0},xe(t,Y,"linePrefix",4),he))(ne)}function he(ne){return t.exit("table"),r(ne)}function Y(ne){return t.enter("tableBody"),pe(ne)}function pe(ne){return t.enter("tableRow"),ne===124?ve(ne):(t.enter("temporaryTableCellContent"),Te(ne))}function ve(ne){return t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),ke}function ke(ne){return ne===null||de(ne)?ge(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),Le):ne===124?ve(ne):(t.enter("temporaryTableCellContent"),Te(ne))}function Le(ne){return Ue(ne)?(t.consume(ne),Le):(t.exit("whitespace"),ke(ne))}function Te(ne){return ne===null||ne===124||rt(ne)?(t.exit("temporaryTableCellContent"),ke(ne)):(t.consume(ne),ne===92?Fe:Te)}function Fe(ne){return ne===92||ne===124?(t.consume(ne),Te):Te(ne)}function ge(ne){return t.exit("tableRow"),ne===null?Pe(ne):t.check(dh,Pe,t.attempt({tokenize:Qe,partial:!0},xe(t,pe,"linePrefix",4),Pe))(ne)}function Pe(ne){return t.exit("tableBody"),he(ne)}function Qe(ne,$t,Xe){return wt;function wt(z){return ne.enter("lineEnding"),ne.consume(z),ne.exit("lineEnding"),xe(ne,nt,"linePrefix")}function nt(z){if(n.parser.lazy[n.now().line]||z===null||de(z))return Xe(z);let H=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&H&&H[1].type==="linePrefix"&&H[2].sliceSerialize(H[1],!0).length>=4?Xe(z):(n._gfmTableDynamicInterruptHack=!0,ne.check(n.parser.constructs.flow,function(dr){return n._gfmTableDynamicInterruptHack=!1,Xe(dr)},function(dr){return n._gfmTableDynamicInterruptHack=!1,$t(dr)})(z))}}}function O0(t,r,e){let n=0;return s;function s(l){return t.enter("check"),t.consume(l),o}function o(l){return l===-1||l===32?(t.consume(l),n++,n===4?r:o):l===null||rt(l)?r(l):e(l)}}var R0={tokenize:N0},Of={text:{[91]:R0}};function N0(t,r,e){let n=this;return s;function s(f){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(f):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(f),t.exit("taskListCheckMarker"),o)}function o(f){return rt(f)?(t.enter("taskListCheckValueUnchecked"),t.consume(f),t.exit("taskListCheckValueUnchecked"),l):f===88||f===120?(t.enter("taskListCheckValueChecked"),t.consume(f),t.exit("taskListCheckValueChecked"),l):e(f)}function l(f){return f===93?(t.enter("taskListCheckMarker"),t.consume(f),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:D0},r,e)):e(f)}}function D0(t,r,e){let n=this;return xe(t,s,"whitespace");function s(o){let l=n.events[n.events.length-1];return(l&&l[1].type==="whitespace"||de(o))&&o!==null?r(o):e(o)}}function mh(t){return ka([Ef,Tf(),Ff(t),If,Of])}function Rf(t,r){let e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,s=e.indexOf(r);for(;s!==-1;)n++,s=e.indexOf(r,s+r.length);return n}function Nf(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var go=function(t){if(t==null)return B0;if(typeof t=="string")return j0(t);if(typeof t=="object")return Array.isArray(t)?q0(t):L0(t);if(typeof t=="function")return Oa(t);throw new Error("Expected function, string, or object as test")};function q0(t){let r=[],e=-1;for(;++e<t.length;)r[e]=go(t[e]);return Oa(n);function n(...s){let o=-1;for(;++o<r.length;)if(r[o].call(this,...s))return!0;return!1}}function L0(t){return Oa(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function j0(t){return Oa(r);function r(e){return e&&e.type===t}}function Oa(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function B0(){return!0}function hh(t){return"\x1B[33m"+t+"\x1B[39m"}var M0=!0,z0="skip",gh=!1,yh=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let s=go(r),o=n?-1:1;l(t,null,[])();function l(f,c,g){let h=typeof f=="object"&&f!==null?f:{},$;return typeof h.type=="string"&&($=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0,Object.defineProperty(k,"name",{value:"node ("+hh(h.type+($?"<"+$+">":""))+")"})),k;function k(){let x=[],C,I,N;if((!r||s(f,c,g[g.length-1]||null))&&(x=V0(e(f,g)),x[0]===gh))return x;if(f.children&&x[0]!==z0)for(I=(n?f.children.length:-1)+o,N=g.concat(f);I>-1&&I<f.children.length;){if(C=l(f.children[I],I,N)(),C[0]===gh)return C;I=typeof C[1]=="number"?C[1]:I+o}return x}}};function V0(t){return Array.isArray(t)?t:typeof t=="number"?[M0,t]:[t]}var H0={}.hasOwnProperty,Df=function(t,r,e,n){let s,o;typeof r=="string"||r instanceof RegExp?(o=[[r,e]],s=n):(o=r,s=e),s||(s={});let l=go(s.ignore||[]),f=U0(o),c=-1;for(;++c<f.length;)yh(t,"text",g);return t;function g($,k){let x=-1,C;for(;++x<k.length;){let I=k[x];if(l(I,C?C.children.indexOf(I):void 0,C))return;C=I}if(C)return h($,k)}function h($,k){let x=k[k.length-1],C=f[c][0],I=f[c][1],N=0,B=x.children.indexOf($),X=!1,le=[],$e;C.lastIndex=0;let he=C.exec($.value);for(;he;){$e=he.index;let Y={index:he.index,input:he.input,stack:[...k,$]},pe=I(...he,Y);if(typeof pe=="string"&&(pe=pe.length>0?{type:"text",value:pe}:void 0),pe!==!1&&(N!==$e&&le.push({type:"text",value:$.value.slice(N,$e)}),Array.isArray(pe)?le.push(...pe):pe&&le.push(pe),N=$e+he[0].length,X=!0),!C.global)break;he=C.exec($.value)}return X?(N<$.value.length&&le.push({type:"text",value:$.value.slice(N)}),x.children.splice(B,1,...le)):le=[$],B+le.length}};function U0(t){let r=[];if(typeof t!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(t)){let e=-1;for(;++e<t.length;)r.push([bh(t[e][0]),$h(t[e][1])])}else{let e;for(e in t)H0.call(t,e)&&r.push([bh(e),$h(t[e])])}return r}function bh(t){return typeof t=="string"?new RegExp(Nf(t),"g"):t}function $h(t){return typeof t=="function"?t:()=>t}var qf="phrasing",Lf=["autolink","link","image","label"],wh={transforms:[Q0],enter:{literalAutolink:G0,literalAutolinkEmail:jf,literalAutolinkHttp:jf,literalAutolinkWww:jf},exit:{literalAutolink:J0,literalAutolinkEmail:Z0,literalAutolinkHttp:K0,literalAutolinkWww:W0}},kh={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qf,notInConstruct:Lf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qf,notInConstruct:Lf},{character:":",before:"[ps]",after:"\\/",inConstruct:qf,notInConstruct:Lf}]};function G0(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function jf(t){this.config.enter.autolinkProtocol.call(this,t)}function K0(t){this.config.exit.autolinkProtocol.call(this,t)}function W0(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function Z0(t){this.config.exit.autolinkEmail.call(this,t)}function J0(t){this.exit(t)}function Q0(t){Df(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,X0],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Y0]],{ignore:["link","linkReference"]})}function X0(t,r,e,n,s){let o="";if(!vh(s)||(/^w/i.test(r)&&(e=r+e,r="",o="http://"),!e1(e)))return!1;let l=t1(e+n);if(!l[0])return!1;let f={type:"link",title:null,url:o+r+l[0],children:[{type:"text",value:r+l[0]}]};return l[1]?[f,{type:"text",value:l[1]}]:f}function Y0(t,r,e,n){return!vh(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function e1(t){let r=t.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function t1(t){let r=/[!"&'),.:;<>?\]}]+$/.exec(t),e,n,s,o;if(r)for(t=t.slice(0,r.index),o=r[0],e=o.indexOf(")"),n=Rf(t,"("),s=Rf(t,")");e!==-1&&n>s;)t+=o.slice(0,e+1),o=o.slice(e+1),e=o.indexOf(")"),s++;return[t,o]}function vh(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||Oi(e)||Ri(e))&&(!r||e!==47)}function Bf(t){return t.label||!t.identifier?t.label||"":Ia(t.identifier)}function pr(t){let r=t||{},e=r.now||{},n=r.lineShift||0,s=e.line||1,o=e.column||1;return{move:c,current:l,shift:f};function l(){return{now:{line:s,column:o},lineShift:n}}function f(g){n+=g}function c(g=""){let h=g.split(/\r?\n|\r/g),$=h[h.length-1];return s+=h.length-1,o=h.length===1?o+$.length:1+$.length+n,g}}function Ra(t,r,e){let n=r.indexStack,s=t.children||[],o=pr(e),l=[],f=-1;for(n.push(-1);++f<s.length;){let g=s[f];n[n.length-1]=f,l.push(o.move(r.handle(g,t,r,{before:`
45
+ `;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&s)continue;l=" ";break}default:l=String.fromCharCode(o)}s=o===-2,n.push(l)}return n.join("")}var xf={};fc(xf,{attentionMarkers:()=>o0,contentInitial:()=>e0,disable:()=>a0,document:()=>Yv,flow:()=>r0,flowInitial:()=>t0,insideSpan:()=>s0,string:()=>n0,text:()=>i0});var Yv={[42]:cr,[43]:cr,[45]:cr,[48]:cr,[49]:cr,[50]:cr,[51]:cr,[52]:cr,[53]:cr,[54]:cr,[55]:cr,[56]:cr,[57]:cr,[62]:va},e0={[91]:hf},t0={[-2]:mo,[-1]:mo,[32]:mo},r0={[35]:yf,[42]:qi,[45]:[Ta,qi],[60]:$f,[61]:Ta,[95]:qi,[96]:Aa,[126]:Aa},n0={[38]:Ca,[92]:xa},i0={[-5]:ho,[-4]:ho,[-3]:ho,[33]:kf,[38]:Ca,[42]:po,[60]:[cf,wf],[91]:vf,[92]:[gf,xa],[93]:Di,[95]:po,[96]:df},s0={null:[po,Vm]},o0={null:[42,95]},a0={null:[]};function Zm(t={}){let r=ka([xf].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(qm),document:n(jm),flow:n(zm),string:n(Hm),text:n(Um)};return e;function n(s){return o;function o(l){return Wm(e,s,l)}}}var Jm=/[\0\t\n\r]/g;function Qm(){let t=1,r="",e=!0,n;return s;function s(o,l,f){let c=[],g,h,$,k,x;for(o=r+o.toString(l),$=0,r="",e&&(o.charCodeAt(0)===65279&&$++,e=void 0);$<o.length;){if(Jm.lastIndex=$,g=Jm.exec(o),k=g&&g.index!==void 0?g.index:o.length,x=o.charCodeAt(k),!g){r=o.slice($);break}if(x===10&&$===k&&n)c.push(-3),n=void 0;else switch(n&&(c.push(-5),n=void 0),$<k&&(c.push(o.slice($,k)),t+=k-$),x){case 0:{c.push(65533),t++;break}case 9:{for(h=Math.ceil(t/4)*4,c.push(-2);t++<h;)c.push(-1);break}case 10:{c.push(-4),t=1;break}default:n=!0,t=1}$=k+1}return f&&(n&&c.push(-5),r&&c.push(r),c.push(null)),c}}function Xm(t){for(;!Ea(t););return t}function Fa(t,r){let e=Number.parseInt(t,r);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"\uFFFD":String.fromCharCode(e)}var l0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ia(t){return t.replace(l0,u0)}function u0(t,r,e){if(r)return r;if(e.charCodeAt(0)===35){let s=e.charCodeAt(1),o=s===120||s===88;return Fa(e.slice(o?2:1),o?16:10)}return bs(e)||t}var Cf={}.hasOwnProperty,Af=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),f0(e)(Xm(Zm(e).document().write(Qm()(t,r,!0))))};function f0(t={}){let r=eh({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Ee),autolinkProtocol:Fe,autolinkEmail:Fe,atxHeading:c(Tn),blockQuote:c(Nr),characterEscape:Fe,characterReference:Fe,codeFenced:c(xr),codeFencedFenceInfo:g,codeFencedFenceMeta:g,codeIndented:c(xr,g),codeText:c(jt,g),codeTextData:Fe,data:Fe,codeFlowValue:Fe,definition:c(Sn),definitionDestinationString:g,definitionLabelString:g,definitionTitleString:g,emphasis:c(Pn),hardBreakEscape:c(Ce),hardBreakTrailing:c(Ce),htmlFlow:c(Hn,g),htmlFlowData:Fe,htmlText:c(Hn,g),htmlTextData:Fe,image:c(Rr),label:g,link:c(Ee),listItem:c(At),listItemValue:I,listOrdered:c(Ne,C),listUnordered:c(Ne),paragraph:c(ht),reference:Tt,referenceString:g,resourceDestinationString:g,resourceTitleString:g,setextHeading:c(Tn),strong:c(mr),thematicBreak:c(_e)},exit:{atxHeading:$(),atxHeadingSequence:ve,autolink:$(),autolinkEmail:vr,autolinkProtocol:Vt,blockQuote:$(),characterEscapeValue:ge,characterReferenceMarkerHexadecimal:ut,characterReferenceMarkerNumeric:ut,characterReferenceValue:tr,codeFenced:$(le),codeFencedFence:X,codeFencedFenceInfo:R,codeFencedFenceMeta:B,codeFlowValue:ge,codeIndented:$(be),codeText:$(Xe),codeTextData:ge,data:ge,definition:$(),definitionDestinationString:pe,definitionLabelString:he,definitionTitleString:Y,emphasis:$(),hardBreakEscape:$(Qe),hardBreakTrailing:$(Qe),htmlFlow:$(ne),htmlFlowData:ge,htmlText:$($t),htmlTextData:ge,image:$(nt),label:H,labelText:z,lineEnding:Pe,link:$(wt),listItem:$(),listOrdered:$(),listUnordered:$(),paragraph:$(),referenceString:Ft,resourceDestinationString:dr,resourceTitleString:Lt,resource:kt,setextHeading:$(Te),setextHeadingLineSequence:Le,setextHeadingText:ke,strong:$(),thematicBreak:$()}},t.mdastExtensions||[]),e={};return n;function n(te){let ce={type:"root",children:[]},Ae=[ce],Be=[],Ye=[],Pt={stack:Ae,tokenStack:Be,config:r,enter:h,exit:k,buffer:g,resume:x,setData:o,getData:l},it=-1;for(;++it<te.length;)if(te[it][1].type==="listOrdered"||te[it][1].type==="listUnordered")if(te[it][0]==="enter")Ye.push(it);else{let vt=Ye.pop();it=s(te,vt,it)}for(it=-1;++it<te.length;){let vt=r[te[it][0]];Cf.call(vt,te[it][1].type)&&vt[te[it][1].type].call(Object.assign({sliceSerialize:te[it][2].sliceSerialize},Pt),te[it][1])}if(Be.length>0){let vt=Be[Be.length-1];(vt[1]||Ym).call(Pt,void 0,vt[0])}for(ce.position={start:f(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:f(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<r.transforms.length;)ce=r.transforms[it](ce)||ce;return ce}function s(te,ce,Ae){let Be=ce-1,Ye=-1,Pt=!1,it,vt,It,Xr;for(;++Be<=Ae;){let gt=te[Be];if(gt[1].type==="listUnordered"||gt[1].type==="listOrdered"||gt[1].type==="blockQuote"?(gt[0]==="enter"?Ye++:Ye--,Xr=void 0):gt[1].type==="lineEndingBlank"?gt[0]==="enter"&&(it&&!Xr&&!Ye&&!It&&(It=Be),Xr=void 0):gt[1].type==="linePrefix"||gt[1].type==="listItemValue"||gt[1].type==="listItemMarker"||gt[1].type==="listItemPrefix"||gt[1].type==="listItemPrefixWhitespace"||(Xr=void 0),!Ye&&gt[0]==="enter"&&gt[1].type==="listItemPrefix"||Ye===-1&&gt[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(it){let Fn=Be;for(vt=void 0;Fn--;){let hr=te[Fn];if(hr[1].type==="lineEnding"||hr[1].type==="lineEndingBlank"){if(hr[0]==="exit")continue;vt&&(te[vt][1].type="lineEndingBlank",Pt=!0),hr[1].type="lineEnding",vt=Fn}else if(!(hr[1].type==="linePrefix"||hr[1].type==="blockQuotePrefix"||hr[1].type==="blockQuotePrefixWhitespace"||hr[1].type==="blockQuoteMarker"||hr[1].type==="listItemIndent"))break}It&&(!vt||It<vt)&&(it._spread=!0),it.end=Object.assign({},vt?te[vt][1].start:gt[1].end),te.splice(vt||Be,0,["exit",it,gt[2]]),Be++,Ae++}gt[1].type==="listItemPrefix"&&(it={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start)},te.splice(Be,0,["enter",it,gt[2]]),Be++,Ae++,It=void 0,Xr=!0)}}return te[ce][1]._spread=Pt,Ae}function o(te,ce){e[te]=ce}function l(te){return e[te]}function f(te){return{line:te.line,column:te.column,offset:te.offset}}function c(te,ce){return Ae;function Ae(Be){h.call(this,te(Be),Be),ce&&ce.call(this,Be)}}function g(){this.stack.push({type:"fragment",children:[]})}function h(te,ce,Ae){return this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([ce,Ae]),te.position={start:f(ce.start)},te}function $(te){return ce;function ce(Ae){te&&te.call(this,Ae),k.call(this,Ae)}}function k(te,ce){let Ae=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==te.type&&(ce?ce.call(this,te,Be[0]):(Be[1]||Ym).call(this,te,Be[0]));else throw new Error("Cannot close `"+te.type+"` ("+Fi({start:te.start,end:te.end})+"): it\u2019s not open");return Ae.position.end=f(te.end),Ae}function x(){return Fm(this.stack.pop())}function C(){o("expectingFirstListItemValue",!0)}function I(te){if(l("expectingFirstListItemValue")){let ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(te),10),o("expectingFirstListItemValue")}}function R(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=te}function B(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=te}function X(){l("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function le(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function be(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te.replace(/(\r?\n|\r)$/g,"")}function he(te){let ce=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ce,Ae.identifier=fr(this.sliceSerialize(te)).toLowerCase()}function Y(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.title=te}function pe(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.url=te}function ve(te){let ce=this.stack[this.stack.length-1];if(!ce.depth){let Ae=this.sliceSerialize(te).length;ce.depth=Ae}}function ke(){o("setextHeadingSlurpLineEnding",!0)}function Le(te){let ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(te).charCodeAt(0)===61?1:2}function Te(){o("setextHeadingSlurpLineEnding")}function Fe(te){let ce=this.stack[this.stack.length-1],Ae=ce.children[ce.children.length-1];(!Ae||Ae.type!=="text")&&(Ae=Re(),Ae.position={start:f(te.start)},ce.children.push(Ae)),this.stack.push(Ae)}function ge(te){let ce=this.stack.pop();ce.value+=this.sliceSerialize(te),ce.position.end=f(te.end)}function Pe(te){let ce=this.stack[this.stack.length-1];if(l("atHardBreak")){let Ae=ce.children[ce.children.length-1];Ae.position.end=f(te.end),o("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(ce.type)&&(Fe.call(this,te),ge.call(this,te))}function Qe(){o("atHardBreak",!0)}function ne(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function $t(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function Xe(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function wt(){let te=this.stack[this.stack.length-1];l("inReference")?(te.type+="Reference",te.referenceType=l("referenceType")||"shortcut",delete te.url,delete te.title):(delete te.identifier,delete te.label),o("referenceType")}function nt(){let te=this.stack[this.stack.length-1];l("inReference")?(te.type+="Reference",te.referenceType=l("referenceType")||"shortcut",delete te.url,delete te.title):(delete te.identifier,delete te.label),o("referenceType")}function z(te){let ce=this.stack[this.stack.length-2],Ae=this.sliceSerialize(te);ce.label=Ia(Ae),ce.identifier=fr(Ae).toLowerCase()}function H(){let te=this.stack[this.stack.length-1],ce=this.resume(),Ae=this.stack[this.stack.length-1];o("inReference",!0),Ae.type==="link"?Ae.children=te.children:Ae.alt=ce}function dr(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.url=te}function Lt(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.title=te}function kt(){o("inReference")}function Tt(){o("referenceType","collapsed")}function Ft(te){let ce=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ce,Ae.identifier=fr(this.sliceSerialize(te)).toLowerCase(),o("referenceType","full")}function ut(te){o("characterReferenceType",te.type)}function tr(te){let ce=this.sliceSerialize(te),Ae=l("characterReferenceType"),Be;Ae?(Be=Fa(ce,Ae==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Be=bs(ce);let Ye=this.stack.pop();Ye.value+=Be,Ye.position.end=f(te.end)}function Vt(te){ge.call(this,te);let ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(te)}function vr(te){ge.call(this,te);let ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(te)}function Nr(){return{type:"blockquote",children:[]}}function xr(){return{type:"code",lang:null,meta:null,value:""}}function jt(){return{type:"inlineCode",value:""}}function Sn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pn(){return{type:"emphasis",children:[]}}function Tn(){return{type:"heading",depth:void 0,children:[]}}function Ce(){return{type:"break"}}function Hn(){return{type:"html",value:""}}function Rr(){return{type:"image",title:null,url:"",alt:null}}function Ee(){return{type:"link",title:null,url:"",children:[]}}function Ne(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function At(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function ht(){return{type:"paragraph",children:[]}}function mr(){return{type:"strong",children:[]}}function Re(){return{type:"text",value:""}}function _e(){return{type:"thematicBreak"}}}function eh(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?eh(t,n):c0(t,n)}return t}function c0(t,r){let e;for(e in r)if(Cf.call(r,e)){let n=e==="canContainEols"||e==="transforms",o=(Cf.call(t,e)?t[e]:void 0)||(t[e]=n?[]:{}),l=r[e];l&&(n?t[e]=[...o,...l]:Object.assign(o,l))}}function Ym(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+Fi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+Fi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Fi({start:r.start,end:r.end})+") is still open")}function Ef(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return Af(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var th=Ef;var p0={tokenize:g0,partial:!0},nh={tokenize:y0,partial:!0},ih={tokenize:b0,partial:!0},$s={tokenize:w0,partial:!0},sh={tokenize:$0,partial:!0},oh={tokenize:m0,previous:uh},ah={tokenize:h0,previous:Pf},Vn={tokenize:d0,previous:fh},_n={},_f={text:_n},Li=48;for(;Li<123;)_n[Li]=Vn,Li++,Li===58?Li=65:Li===91&&(Li=97);_n[43]=Vn;_n[45]=Vn;_n[46]=Vn;_n[95]=Vn;_n[72]=[Vn,ah];_n[104]=[Vn,ah];_n[87]=[Vn,oh];_n[119]=[Vn,oh];function d0(t,r,e){let n=this,s,o;return l;function l(x){return!rh(x)||!fh(n.previous)||Tf(n.events)?e(x):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),f(x))}function f(x){return rh(x)?(t.consume(x),f):x===64?(t.consume(x),c):e(x)}function c(x){return x===46?t.check($s,k,g)(x):x===45||x===95?t.check($s,e,h)(x):Wt(x)?(!o&&Ii(x)&&(o=!0),t.consume(x),c):k(x)}function g(x){return t.consume(x),s=!0,o=void 0,c}function h(x){return t.consume(x),$}function $(x){return x===46?t.check($s,e,g)(x):c(x)}function k(x){return s&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(x)):e(x)}}function m0(t,r,e){let n=this;return s;function s(l){return l!==87&&l!==119||!uh(n.previous)||Tf(n.events)?e(l):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(p0,t.attempt(nh,t.attempt(ih,o),e),e)(l))}function o(l){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(l)}}function h0(t,r,e){let n=this;return s;function s(C){return C!==72&&C!==104||!Pf(n.previous)||Tf(n.events)?e(C):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(C),o)}function o(C){return C===84||C===116?(t.consume(C),l):e(C)}function l(C){return C===84||C===116?(t.consume(C),f):e(C)}function f(C){return C===80||C===112?(t.consume(C),c):e(C)}function c(C){return C===83||C===115?(t.consume(C),g):g(C)}function g(C){return C===58?(t.consume(C),h):e(C)}function h(C){return C===47?(t.consume(C),$):e(C)}function $(C){return C===47?(t.consume(C),k):e(C)}function k(C){return C===null||ri(C)||Oi(C)||Ni(C)?e(C):t.attempt(nh,t.attempt(ih,x),e)(C)}function x(C){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(C)}}function g0(t,r,e){return n;function n(c){return t.consume(c),s}function s(c){return c===87||c===119?(t.consume(c),o):e(c)}function o(c){return c===87||c===119?(t.consume(c),l):e(c)}function l(c){return c===46?(t.consume(c),f):e(c)}function f(c){return c===null||de(c)?e(c):r(c)}}function y0(t,r,e){let n,s;return o;function o(c){return c===38?t.check(sh,f,l)(c):c===46||c===95?t.check($s,f,l)(c):c===null||ri(c)||Oi(c)||c!==45&&Ni(c)?f(c):(t.consume(c),o)}function l(c){return c===46?(s=n,n=void 0,t.consume(c),o):(c===95&&(n=!0),t.consume(c),o)}function f(c){return!s&&!n?r(c):e(c)}}function b0(t,r){let e=0;return n;function n(l){return l===38?t.check(sh,r,s)(l):(l===40&&e++,l===41?t.check($s,o,s)(l):Sf(l)?r(l):lh(l)?t.check($s,r,s)(l):(t.consume(l),n))}function s(l){return t.consume(l),n}function o(l){return e--,e<0?r(l):s(l)}}function $0(t,r,e){return n;function n(l){return t.consume(l),s}function s(l){return ur(l)?(t.consume(l),s):l===59?(t.consume(l),o):e(l)}function o(l){return Sf(l)?r(l):e(l)}}function w0(t,r,e){return n;function n(o){return t.consume(o),s}function s(o){return lh(o)?(t.consume(o),s):Sf(o)?r(o):e(o)}}function lh(t){return t===33||t===34||t===39||t===41||t===42||t===44||t===46||t===58||t===59||t===60||t===63||t===95||t===126}function Sf(t){return t===null||t===60||rt(t)}function rh(t){return t===43||t===45||t===46||t===95||Wt(t)}function uh(t){return t===null||t===40||t===42||t===95||t===126||rt(t)}function Pf(t){return t===null||!ur(t)}function fh(t){return t!==47&&Pf(t)}function Tf(t){let r=t.length,e=!1;for(;r--;){let n=t[r][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){e=!0;break}if(n._gfmAutolinkLiteralWalkedInto){e=!1;break}}return t.length>0&&!e&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}var k0={tokenize:S0,partial:!0};function Ff(){return{document:{[91]:{tokenize:A0,continuation:{tokenize:E0},exit:_0}},text:{[91]:{tokenize:C0},[93]:{add:"after",tokenize:v0,resolveTo:x0}}}}function v0(t,r,e){let n=this,s=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),l;for(;s--;){let c=n.events[s][1];if(c.type==="labelImage"){l=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return f;function f(c){if(!l||!l._balanced)return e(c);let g=fr(n.sliceSerialize({start:l.end,end:n.now()}));return g.charCodeAt(0)!==94||!o.includes(g.slice(1))?e(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),r(c))}}function x0(t,r){let e=t.length,n;for(;e--;)if(t[e][1].type==="labelImage"&&t[e][0]==="enter"){n=t[e][1];break}t[e+1][1].type="data",t[e+3][1].type="gfmFootnoteCallLabelMarker";let s={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},c=[t[e+1],t[e+2],["enter",s,r],t[e+3],t[e+4],["enter",o,r],["exit",o,r],["enter",l,r],["enter",f,r],["exit",f,r],["exit",l,r],t[t.length-2],t[t.length-1],["exit",s,r]];return t.splice(e,t.length-e+1,...c),t}function C0(t,r,e){let n=this,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,l;return f;function f(k){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(k),t.exit("gfmFootnoteCallLabelMarker"),c}function c(k){return k!==94?e(k):(t.enter("gfmFootnoteCallMarker"),t.consume(k),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(k){let x;return k===null||k===91||o++>999?e(k):k===93?l?(t.exit("chunkString"),x=t.exit("gfmFootnoteCallString"),s.includes(fr(n.sliceSerialize(x)))?$(k):e(k)):e(k):(t.consume(k),rt(k)||(l=!0),k===92?h:g)}function h(k){return k===91||k===92||k===93?(t.consume(k),o++,g):g(k)}function $(k){return t.enter("gfmFootnoteCallLabelMarker"),t.consume(k),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function A0(t,r,e){let n=this,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,l=0,f;return c;function c(I){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(I){return I===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),h):e(I)}function h(I){let R;return I===null||I===91||l>999?e(I):I===93?f?(R=t.exit("gfmFootnoteDefinitionLabelString"),o=fr(n.sliceSerialize(R)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),x):e(I):de(I)?(t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),l++,h):(t.enter("chunkString").contentType="string",$(I))}function $(I){return I===null||de(I)||I===91||I===93||l>999?(t.exit("chunkString"),h(I)):(rt(I)||(f=!0),l++,t.consume(I),I===92?k:$)}function k(I){return I===91||I===92||I===93?(t.consume(I),l++,$):$(I)}function x(I){return I===58?(t.enter("definitionMarker"),t.consume(I),t.exit("definitionMarker"),xe(t,C,"gfmFootnoteDefinitionWhitespace")):e(I)}function C(I){return s.includes(o)||s.push(o),r(I)}}function E0(t,r,e){return t.check(En,r,t.attempt(k0,r,e))}function _0(t){t.exit("gfmFootnoteDefinition")}function S0(t,r,e){let n=this;return xe(t,s,"gfmFootnoteDefinitionIndent",4+1);function s(o){let l=n.events[n.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?r(o):e(o)}}function If(t={}){let r=t.singleTilde,e={tokenize:s,resolveAll:n};return r==null&&(r=!0),{text:{[126]:e},insideSpan:{null:[e]},attentionMarkers:{null:[126]}};function n(o,l){let f=-1;for(;++f<o.length;)if(o[f][0]==="enter"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._close){let c=f;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[f][1].end.offset-o[f][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[f][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";let g={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[f][1].end)},h={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[f][1].start)},$=[["enter",g,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",h,l]];Nt($,$.length,0,ii(l.parser.constructs.insideSpan.null,o.slice(c+1,f),l)),Nt($,$.length,0,[["exit",h,l],["enter",o[f][1],l],["exit",o[f][1],l],["exit",g,l]]),Nt(o,c-1,f-c+3,$),f=c+$.length-2;break}}for(f=-1;++f<o.length;)o[f][1].type==="strikethroughSequenceTemporary"&&(o[f][1].type="data");return o}function s(o,l,f){let c=this.previous,g=this.events,h=0;return $;function $(x){return c===126&&g[g.length-1][1].type!=="characterEscape"?f(x):(o.enter("strikethroughSequenceTemporary"),k(x))}function k(x){let C=ys(c);if(x===126)return h>1?f(x):(o.consume(x),h++,k);if(h<2&&!r)return f(x);let I=o.exit("strikethroughSequenceTemporary"),R=ys(x);return I._open=!R||R===2&&Boolean(C),I._close=!C||C===2&&Boolean(R),l(x)}}}var Of={flow:{null:{tokenize:T0,resolve:P0}}},ch={tokenize:F0,partial:!0};function P0(t,r){let e=-1,n,s,o,l,f,c,g;for(;++e<t.length;){let h=t[e][1];if(o&&(h.type==="temporaryTableCellContent"&&(l=l||e,f=e),(h.type==="tableCellDivider"||h.type==="tableRow")&&f)){let $={type:"tableContent",start:t[l][1].start,end:t[f][1].end},k={type:"chunkText",start:$.start,end:$.end,contentType:"text"};t.splice(l,f-l+1,["enter",$,r],["enter",k,r],["exit",k,r],["exit",$,r]),e-=f-l-3,l=void 0,f=void 0}if(t[e][0]==="exit"&&c!==void 0&&c+(g?0:1)<e&&(h.type==="tableCellDivider"||h.type==="tableRow"&&(c+3<e||t[c][1].type!=="whitespace"))){let $={type:s?"tableDelimiter":n?"tableHeader":"tableData",start:t[c][1].start,end:t[e][1].end};t.splice(e+(h.type==="tableCellDivider"?1:0),0,["exit",$,r]),t.splice(c,0,["enter",$,r]),e+=2,c=e+1,g=!0}h.type==="tableRow"&&(o=t[e][0]==="enter",o&&(c=e+1,g=!1)),h.type==="tableDelimiterRow"&&(s=t[e][0]==="enter",s&&(c=e+1,g=!1)),h.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function T0(t,r,e){let n=this,s=[],o=0,l,f;return c;function c(ne){return t.enter("table")._align=s,t.enter("tableHead"),t.enter("tableRow"),ne===124?g(ne):(o++,t.enter("temporaryTableCellContent"),k(ne))}function g(ne){return t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),l=!0,h}function h(ne){return ne===null||de(ne)?C(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),$):(l&&(l=void 0,o++),ne===124?g(ne):(t.enter("temporaryTableCellContent"),k(ne)))}function $(ne){return Ue(ne)?(t.consume(ne),$):(t.exit("whitespace"),h(ne))}function k(ne){return ne===null||ne===124||rt(ne)?(t.exit("temporaryTableCellContent"),h(ne)):(t.consume(ne),ne===92?x:k)}function x(ne){return ne===92||ne===124?(t.consume(ne),k):k(ne)}function C(ne){if(ne===null)return e(ne);t.exit("tableRow"),t.exit("tableHead");let $t=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:Qe,partial:!0},function(Xe){return n.interrupt=$t,t.enter("tableDelimiterRow"),I(Xe)},function(Xe){return n.interrupt=$t,e(Xe)})(ne)}function I(ne){return ne===null||de(ne)?be(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),R):ne===45?(t.enter("tableDelimiterFiller"),t.consume(ne),f=!0,s.push("none"),B):ne===58?(t.enter("tableDelimiterAlignment"),t.consume(ne),t.exit("tableDelimiterAlignment"),s.push("left"),X):ne===124?(t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),I):e(ne)}function R(ne){return Ue(ne)?(t.consume(ne),R):(t.exit("whitespace"),I(ne))}function B(ne){return ne===45?(t.consume(ne),B):(t.exit("tableDelimiterFiller"),ne===58?(t.enter("tableDelimiterAlignment"),t.consume(ne),t.exit("tableDelimiterAlignment"),s[s.length-1]=s[s.length-1]==="left"?"center":"right",le):I(ne))}function X(ne){return ne===45?(t.enter("tableDelimiterFiller"),t.consume(ne),f=!0,B):e(ne)}function le(ne){return ne===null||de(ne)?be(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),R):ne===124?(t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),I):e(ne)}function be(ne){return t.exit("tableDelimiterRow"),!f||o!==s.length?e(ne):ne===null?he(ne):t.check(ch,he,t.attempt({tokenize:Qe,partial:!0},xe(t,Y,"linePrefix",4),he))(ne)}function he(ne){return t.exit("table"),r(ne)}function Y(ne){return t.enter("tableBody"),pe(ne)}function pe(ne){return t.enter("tableRow"),ne===124?ve(ne):(t.enter("temporaryTableCellContent"),Te(ne))}function ve(ne){return t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),ke}function ke(ne){return ne===null||de(ne)?ge(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),Le):ne===124?ve(ne):(t.enter("temporaryTableCellContent"),Te(ne))}function Le(ne){return Ue(ne)?(t.consume(ne),Le):(t.exit("whitespace"),ke(ne))}function Te(ne){return ne===null||ne===124||rt(ne)?(t.exit("temporaryTableCellContent"),ke(ne)):(t.consume(ne),ne===92?Fe:Te)}function Fe(ne){return ne===92||ne===124?(t.consume(ne),Te):Te(ne)}function ge(ne){return t.exit("tableRow"),ne===null?Pe(ne):t.check(ch,Pe,t.attempt({tokenize:Qe,partial:!0},xe(t,pe,"linePrefix",4),Pe))(ne)}function Pe(ne){return t.exit("tableBody"),he(ne)}function Qe(ne,$t,Xe){return wt;function wt(z){return ne.enter("lineEnding"),ne.consume(z),ne.exit("lineEnding"),xe(ne,nt,"linePrefix")}function nt(z){if(n.parser.lazy[n.now().line]||z===null||de(z))return Xe(z);let H=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&H&&H[1].type==="linePrefix"&&H[2].sliceSerialize(H[1],!0).length>=4?Xe(z):(n._gfmTableDynamicInterruptHack=!0,ne.check(n.parser.constructs.flow,function(dr){return n._gfmTableDynamicInterruptHack=!1,Xe(dr)},function(dr){return n._gfmTableDynamicInterruptHack=!1,$t(dr)})(z))}}}function F0(t,r,e){let n=0;return s;function s(l){return t.enter("check"),t.consume(l),o}function o(l){return l===-1||l===32?(t.consume(l),n++,n===4?r:o):l===null||rt(l)?r(l):e(l)}}var I0={tokenize:O0},Nf={text:{[91]:I0}};function O0(t,r,e){let n=this;return s;function s(f){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(f):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(f),t.exit("taskListCheckMarker"),o)}function o(f){return rt(f)?(t.enter("taskListCheckValueUnchecked"),t.consume(f),t.exit("taskListCheckValueUnchecked"),l):f===88||f===120?(t.enter("taskListCheckValueChecked"),t.consume(f),t.exit("taskListCheckValueChecked"),l):e(f)}function l(f){return f===93?(t.enter("taskListCheckMarker"),t.consume(f),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:N0},r,e)):e(f)}}function N0(t,r,e){let n=this;return xe(t,s,"whitespace");function s(o){let l=n.events[n.events.length-1];return(l&&l[1].type==="whitespace"||de(o))&&o!==null?r(o):e(o)}}function ph(t){return ka([_f,Ff(),If(t),Of,Nf])}function Rf(t,r){let e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,s=e.indexOf(r);for(;s!==-1;)n++,s=e.indexOf(r,s+r.length);return n}function Df(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var go=function(t){if(t==null)return L0;if(typeof t=="string")return q0(t);if(typeof t=="object")return Array.isArray(t)?R0(t):D0(t);if(typeof t=="function")return Oa(t);throw new Error("Expected function, string, or object as test")};function R0(t){let r=[],e=-1;for(;++e<t.length;)r[e]=go(t[e]);return Oa(n);function n(...s){let o=-1;for(;++o<r.length;)if(r[o].call(this,...s))return!0;return!1}}function D0(t){return Oa(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function q0(t){return Oa(r);function r(e){return e&&e.type===t}}function Oa(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function L0(){return!0}function dh(t){return"\x1B[33m"+t+"\x1B[39m"}var j0=!0,B0="skip",mh=!1,hh=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let s=go(r),o=n?-1:1;l(t,null,[])();function l(f,c,g){let h=typeof f=="object"&&f!==null?f:{},$;return typeof h.type=="string"&&($=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0,Object.defineProperty(k,"name",{value:"node ("+dh(h.type+($?"<"+$+">":""))+")"})),k;function k(){let x=[],C,I,R;if((!r||s(f,c,g[g.length-1]||null))&&(x=M0(e(f,g)),x[0]===mh))return x;if(f.children&&x[0]!==B0)for(I=(n?f.children.length:-1)+o,R=g.concat(f);I>-1&&I<f.children.length;){if(C=l(f.children[I],I,R)(),C[0]===mh)return C;I=typeof C[1]=="number"?C[1]:I+o}return x}}};function M0(t){return Array.isArray(t)?t:typeof t=="number"?[j0,t]:[t]}var z0={}.hasOwnProperty,qf=function(t,r,e,n){let s,o;typeof r=="string"||r instanceof RegExp?(o=[[r,e]],s=n):(o=r,s=e),s||(s={});let l=go(s.ignore||[]),f=V0(o),c=-1;for(;++c<f.length;)hh(t,"text",g);return t;function g($,k){let x=-1,C;for(;++x<k.length;){let I=k[x];if(l(I,C?C.children.indexOf(I):void 0,C))return;C=I}if(C)return h($,k)}function h($,k){let x=k[k.length-1],C=f[c][0],I=f[c][1],R=0,B=x.children.indexOf($),X=!1,le=[],be;C.lastIndex=0;let he=C.exec($.value);for(;he;){be=he.index;let Y={index:he.index,input:he.input,stack:[...k,$]},pe=I(...he,Y);if(typeof pe=="string"&&(pe=pe.length>0?{type:"text",value:pe}:void 0),pe!==!1&&(R!==be&&le.push({type:"text",value:$.value.slice(R,be)}),Array.isArray(pe)?le.push(...pe):pe&&le.push(pe),R=be+he[0].length,X=!0),!C.global)break;he=C.exec($.value)}return X?(R<$.value.length&&le.push({type:"text",value:$.value.slice(R)}),x.children.splice(B,1,...le)):le=[$],B+le.length}};function V0(t){let r=[];if(typeof t!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(t)){let e=-1;for(;++e<t.length;)r.push([gh(t[e][0]),yh(t[e][1])])}else{let e;for(e in t)z0.call(t,e)&&r.push([gh(e),yh(t[e])])}return r}function gh(t){return typeof t=="string"?new RegExp(Df(t),"g"):t}function yh(t){return typeof t=="function"?t:()=>t}var Lf="phrasing",jf=["autolink","link","image","label"],bh={transforms:[Z0],enter:{literalAutolink:H0,literalAutolinkEmail:Bf,literalAutolinkHttp:Bf,literalAutolinkWww:Bf},exit:{literalAutolink:W0,literalAutolinkEmail:K0,literalAutolinkHttp:U0,literalAutolinkWww:G0}},$h={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lf,notInConstruct:jf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lf,notInConstruct:jf},{character:":",before:"[ps]",after:"\\/",inConstruct:Lf,notInConstruct:jf}]};function H0(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Bf(t){this.config.enter.autolinkProtocol.call(this,t)}function U0(t){this.config.exit.autolinkProtocol.call(this,t)}function G0(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function K0(t){this.config.exit.autolinkEmail.call(this,t)}function W0(t){this.exit(t)}function Z0(t){qf(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,J0],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Q0]],{ignore:["link","linkReference"]})}function J0(t,r,e,n,s){let o="";if(!wh(s)||(/^w/i.test(r)&&(e=r+e,r="",o="http://"),!X0(e)))return!1;let l=Y0(e+n);if(!l[0])return!1;let f={type:"link",title:null,url:o+r+l[0],children:[{type:"text",value:r+l[0]}]};return l[1]?[f,{type:"text",value:l[1]}]:f}function Q0(t,r,e,n){return!wh(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function X0(t){let r=t.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function Y0(t){let r=/[!"&'),.:;<>?\]}]+$/.exec(t),e,n,s,o;if(r)for(t=t.slice(0,r.index),o=r[0],e=o.indexOf(")"),n=Rf(t,"("),s=Rf(t,")");e!==-1&&n>s;)t+=o.slice(0,e+1),o=o.slice(e+1),e=o.indexOf(")"),s++;return[t,o]}function wh(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||Oi(e)||Ni(e))&&(!r||e!==47)}function Mf(t){return t.label||!t.identifier?t.label||"":Ia(t.identifier)}function pr(t){let r=t||{},e=r.now||{},n=r.lineShift||0,s=e.line||1,o=e.column||1;return{move:c,current:l,shift:f};function l(){return{now:{line:s,column:o},lineShift:n}}function f(g){n+=g}function c(g=""){let h=g.split(/\r?\n|\r/g),$=h[h.length-1];return s+=h.length-1,o=h.length===1?o+$.length:1+$.length+n,g}}function Na(t,r,e){let n=r.indexStack,s=t.children||[],o=pr(e),l=[],f=-1;for(n.push(-1);++f<s.length;){let g=s[f];n[n.length-1]=f,l.push(o.move(r.handle(g,t,r,{before:`
46
46
  `,after:`
47
47
  `,...o.current()}))),g.type!=="list"&&(r.bulletLastUsed=void 0),f<s.length-1&&l.push(o.move(c(g,s[f+1])))}return n.pop(),l.join("");function c(g,h){let $=r.join.length;for(;$--;){let k=r.join[$](g,h,t,r);if(k===!0||k===1)break;if(typeof k=="number")return`
48
48
  `.repeat(1+k);if(k===!1)return`
@@ -51,15 +51,15 @@ var ig=Object.create;var Ro=Object.defineProperty;var sg=Object.getOwnPropertyDe
51
51
 
52
52
  `}return`
53
53
 
54
- `}}var r1=/\r?\n|\r/g;function Na(t,r){let e=[],n=0,s=0,o;for(;o=r1.exec(t);)l(t.slice(n,o.index)),e.push(o[0]),n=o.index+o[0].length,s++;return l(t.slice(n)),e.join("");function l(f){e.push(r(f,s,!f))}}function ws(t){if(!t._compiled){let r=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((r?"("+r+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function Ch(t,r){return xh(t,r.inConstruct,!0)&&!xh(t,r.notInConstruct,!1)}function xh(t,r,e){if(!r)return e;typeof r=="string"&&(r=[r]);let n=-1;for(;++n<r.length;)if(t.includes(r[n]))return!0;return!1}function yo(t,r,e){let n=(e.before||"")+(r||"")+(e.after||""),s=[],o=[],l={},f=-1;for(;++f<t.unsafe.length;){let h=t.unsafe[f];if(!Ch(t.stack,h))continue;let $=ws(h),k;for(;k=$.exec(n);){let x="before"in h||Boolean(h.atBreak),C="after"in h,I=k.index+(x?k[1].length:0);s.includes(I)?(l[I].before&&!x&&(l[I].before=!1),l[I].after&&!C&&(l[I].after=!1)):(s.push(I),l[I]={before:x,after:C})}}s.sort(n1);let c=e.before?e.before.length:0,g=n.length-(e.after?e.after.length:0);for(f=-1;++f<s.length;){let h=s[f];h<c||h>=g||h+1<g&&s[f+1]===h+1&&l[h].after&&!l[h+1].before&&!l[h+1].after||s[f-1]===h-1&&l[h].before&&!l[h-1].before&&!l[h-1].after||(c!==h&&o.push(Ah(n.slice(c,h),"\\")),c=h,/[!-/:-@[-`{-~]/.test(n.charAt(h))&&(!e.encode||!e.encode.includes(n.charAt(h)))?o.push("\\"):(o.push("&#x"+n.charCodeAt(h).toString(16).toUpperCase()+";"),c++))}return o.push(Ah(n.slice(c,g),e.after)),o.join("")}function n1(t,r){return t-r}function Ah(t,r){let e=/\\(?=[!-/:-@[-`{-~])/g,n=[],s=[],o=t+r,l=-1,f=0,c;for(;c=e.exec(o);)n.push(c.index);for(;++l<n.length;)f!==n[l]&&s.push(t.slice(f,n[l])),s.push("\\"),f=n[l];return s.push(t.slice(f)),s.join("")}function Eh(){return{enter:{gfmFootnoteDefinition:t,gfmFootnoteDefinitionLabelString:r,gfmFootnoteCall:s,gfmFootnoteCallString:o},exit:{gfmFootnoteDefinition:n,gfmFootnoteDefinitionLabelString:e,gfmFootnoteCall:f,gfmFootnoteCallString:l}};function t(c){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},c)}function r(){this.buffer()}function e(c){let g=this.resume(),h=this.stack[this.stack.length-1];h.label=g,h.identifier=fr(this.sliceSerialize(c)).toLowerCase()}function n(c){this.exit(c)}function s(c){this.enter({type:"footnoteReference",identifier:"",label:""},c)}function o(){this.buffer()}function l(c){let g=this.resume(),h=this.stack[this.stack.length-1];h.label=g,h.identifier=fr(this.sliceSerialize(c)).toLowerCase()}function f(c){this.exit(c)}}function _h(){return t.peek=r,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:e,footnoteReference:t}};function t(n,s,o,l){let f=pr(l),c=f.move("[^"),g=o.enter("footnoteReference"),h=o.enter("reference");return c+=f.move(yo(o,Bf(n),{...f.current(),before:c,after:"]"})),h(),g(),c+=f.move("]"),c}function r(){return"["}function e(n,s,o,l){let f=pr(l),c=f.move("[^"),g=o.enter("footnoteDefinition"),h=o.enter("label");return c+=f.move(yo(o,Bf(n),{...f.current(),before:c,after:"]"})),h(),c+=f.move("]:"+(n.children&&n.children.length>0?" ":"")),f.shift(4),c+=f.move(Na(Ra(n,o,f.current()),$)),g(),c;function $(k,x,C){return x?(C?"":" ")+k:k}}}function Da(t,r,e){let n=r.indexStack,s=t.children||[],o=[],l=-1,f=e.before;n.push(-1);let c=pr(e);for(;++l<s.length;){let g=s[l],h;if(n[n.length-1]=l,l+1<s.length){let $=r.handle.handlers[s[l+1].type];$&&$.peek&&($=$.peek),h=$?$(s[l+1],t,r,{before:"",after:"",...c.current()}).charAt(0):""}else h=e.after;o.length>0&&(f==="\r"||f===`
55
- `)&&g.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),f=" ",c=pr(e),c.move(o.join(""))),o.push(c.move(r.handle(g,t,r,{...c.current(),before:f,after:h}))),f=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var Sh={canContainEols:["delete"],enter:{strikethrough:i1},exit:{strikethrough:s1}},Ph={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Th}};Th.peek=o1;function i1(t){this.enter({type:"delete",children:[]},t)}function s1(t){this.exit(t)}function Th(t,r,e,n){let s=pr(n),o=e.enter("emphasis"),l=s.move("~~");return l+=Da(t,e,{...s.current(),before:l,after:"~"}),l+=s.move("~~"),o(),l}function o1(){return"~"}Mf.peek=a1;function Mf(t,r,e){let n=t.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(n);)s+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<e.unsafe.length;){let l=e.unsafe[o],f=ws(l),c;if(!!l.atBreak)for(;c=f.exec(n);){let g=c.index;n.charCodeAt(g)===10&&n.charCodeAt(g-1)===13&&g--,n=n.slice(0,g)+" "+n.slice(c.index+1)}}return s+n+s}function a1(){return"`"}function Ih(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||u1,s=[],o=[],l=[],f=[],c=0,g=-1;for(;++g<t.length;){let C=[],I=[],N=-1;for(t[g].length>c&&(c=t[g].length);++N<t[g].length;){let B=l1(t[g][N]);if(r.alignDelimiters!==!1){let X=n(B);I[N]=X,(f[N]===void 0||X>f[N])&&(f[N]=X)}C.push(B)}o[g]=C,l[g]=I}let h=-1;if(typeof e=="object"&&"length"in e)for(;++h<c;)s[h]=Fh(e[h]);else{let C=Fh(e);for(;++h<c;)s[h]=C}h=-1;let $=[],k=[];for(;++h<c;){let C=s[h],I="",N="";C===99?(I=":",N=":"):C===108?I=":":C===114&&(N=":");let B=r.alignDelimiters===!1?1:Math.max(1,f[h]-I.length-N.length),X=I+"-".repeat(B)+N;r.alignDelimiters!==!1&&(B=I.length+B+N.length,B>f[h]&&(f[h]=B),k[h]=B),$[h]=X}o.splice(1,0,$),l.splice(1,0,k),g=-1;let x=[];for(;++g<o.length;){let C=o[g],I=l[g];h=-1;let N=[];for(;++h<c;){let B=C[h]||"",X="",le="";if(r.alignDelimiters!==!1){let $e=f[h]-(I[h]||0),he=s[h];he===114?X=" ".repeat($e):he===99?$e%2?(X=" ".repeat($e/2+.5),le=" ".repeat($e/2-.5)):(X=" ".repeat($e/2),le=X):le=" ".repeat($e)}r.delimiterStart!==!1&&!h&&N.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&B==="")&&(r.delimiterStart!==!1||h)&&N.push(" "),r.alignDelimiters!==!1&&N.push(X),N.push(B),r.alignDelimiters!==!1&&N.push(le),r.padding!==!1&&N.push(" "),(r.delimiterEnd!==!1||h!==c-1)&&N.push("|")}x.push(r.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return x.join(`
56
- `)}function l1(t){return t==null?"":String(t)}function u1(t){return t.length}function Fh(t){let r=typeof t=="string"?t.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}var Vf={enter:{table:f1,tableData:Oh,tableHeader:Oh,tableRow:p1},exit:{codeText:d1,table:c1,tableData:zf,tableHeader:zf,tableRow:zf}};function f1(t){let r=t._align;this.enter({type:"table",align:r.map(e=>e==="none"?null:e),children:[]},t),this.setData("inTable",!0)}function c1(t){this.exit(t),this.setData("inTable")}function p1(t){this.enter({type:"tableRow",children:[]},t)}function zf(t){this.exit(t)}function Oh(t){this.enter({type:"tableCell",children:[]},t)}function d1(t){let r=this.resume();this.getData("inTable")&&(r=r.replace(/\\([\\|])/g,m1));let e=this.stack[this.stack.length-1];e.value=r,this.exit(t)}function m1(t,r){return r==="|"?r:t}function Hf(t){let r=t||{},e=r.tableCellPadding,n=r.tablePipeAlign,s=r.stringLength,o=e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
57
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:l,tableRow:f,tableCell:c,inlineCode:k}};function l(x,C,I,N){return g(h(x,I,N),x.align)}function f(x,C,I,N){let B=$(x,I,N),X=g([B]);return X.slice(0,X.indexOf(`
58
- `))}function c(x,C,I,N){let B=I.enter("tableCell"),X=I.enter("phrasing"),le=Da(x,I,{...N,before:o,after:o});return X(),B(),le}function g(x,C){return Ih(x,{align:C,alignDelimiters:n,padding:e,stringLength:s})}function h(x,C,I){let N=x.children,B=-1,X=[],le=C.enter("table");for(;++B<N.length;)X[B]=$(N[B],C,I);return le(),X}function $(x,C,I){let N=x.children,B=-1,X=[],le=C.enter("tableRow");for(;++B<N.length;)X[B]=c(N[B],x,C,I);return le(),X}function k(x,C,I){let N=Mf(x,C,I);return I.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function Rh(t){let r=t.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function Nh(t){let r=t.options.listItemIndent||"tab";if(r===1||r==="1")return"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function Dh(t,r,e,n){let s=Nh(e),o=e.bulletCurrent||Rh(e);r&&r.type==="list"&&r.ordered&&(o=(typeof r.start=="number"&&r.start>-1?r.start:1)+(e.options.incrementListMarker===!1?0:r.children.indexOf(t))+o);let l=o.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(l=Math.ceil(l/4)*4);let f=pr(n);f.move(o+" ".repeat(l-o.length)),f.shift(l);let c=e.enter("listItem"),g=Na(Ra(t,e,f.current()),h);return c(),g;function h($,k,x){return k?(x?"":" ".repeat(l))+$:(x?o:o+" ".repeat(l-o.length))+$}}var Lh={exit:{taskListCheckValueChecked:qh,taskListCheckValueUnchecked:qh,paragraph:h1}},jh={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:g1}};function qh(t){let r=this.stack[this.stack.length-2];r.checked=t.type==="taskListCheckValueChecked"}function h1(t){let r=this.stack[this.stack.length-2],e=this.stack[this.stack.length-1],n=r.children,s=e.children[0],o=-1,l;if(r&&r.type==="listItem"&&typeof r.checked=="boolean"&&s&&s.type==="text"){for(;++o<n.length;){let f=n[o];if(f.type==="paragraph"){l=f;break}}l===e&&(s.value=s.value.slice(1),s.value.length===0?e.children.shift():e.position&&s.position&&typeof s.position.start.offset=="number"&&(s.position.start.column++,s.position.start.offset++,e.position.start=Object.assign({},s.position.start)))}this.exit(t)}function g1(t,r,e,n){let s=t.children[0],o=typeof t.checked=="boolean"&&s&&s.type==="paragraph",l="["+(t.checked?"x":" ")+"] ",f=pr(n);o&&f.move(l);let c=Dh(t,r,e,{...n,...f.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,g)),c;function g(h){return h+l}}function Uf(){return[wh,Eh(),Sh,Vf,Lh]}function Gf(t){return{extensions:[kh,_h(),Ph,Hf(t),jh]}}function Kf(t={}){let r=this.data();e("micromarkExtensions",mh(t)),e("fromMarkdownExtensions",Uf()),e("toMarkdownExtensions",Gf(t));function e(n,s){(r[n]?r[n]:r[n]=[]).push(s)}}var Mh={tokenize:y1,concrete:!0},Bh={tokenize:b1,partial:!0};function y1(t,r,e){let n=this,s=n.events[n.events.length-1],o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,l=0;return f;function f(X){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),c(X)}function c(X){return X===36?(t.consume(X),l++,c):l<2?e(X):(t.exit("mathFlowFenceSequence"),xe(t,g,"whitespace")(X))}function g(X){return X===null||de(X)?$(X):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),h(X))}function h(X){return X===null||de(X)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),$(X)):X===36?e(X):(t.consume(X),h)}function $(X){return t.exit("mathFlowFence"),n.interrupt?r(X):t.attempt(Bh,k,N)(X)}function k(X){return t.attempt({tokenize:B,partial:!0},N,x)(X)}function x(X){return(o?xe(t,C,"linePrefix",o+1):C)(X)}function C(X){return X===null?N(X):de(X)?t.attempt(Bh,k,N)(X):(t.enter("mathFlowValue"),I(X))}function I(X){return X===null||de(X)?(t.exit("mathFlowValue"),C(X)):(t.consume(X),I)}function N(X){return t.exit("mathFlow"),r(X)}function B(X,le,$e){let he=0;return xe(X,Y,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Y(ke){return X.enter("mathFlowFence"),X.enter("mathFlowFenceSequence"),pe(ke)}function pe(ke){return ke===36?(he++,X.consume(ke),pe):he<l?$e(ke):(X.exit("mathFlowFenceSequence"),xe(X,ve,"whitespace")(ke))}function ve(ke){return ke===null||de(ke)?(X.exit("mathFlowFence"),le(ke)):$e(ke)}}}function b1(t,r,e){let n=this;return s;function s(l){return l===null?r(l):(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),o)}function o(l){return n.parser.lazy[n.now().line]?e(l):r(l)}}function zh(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),{tokenize:n,resolve:$1,previous:w1};function n(s,o,l){let f=this,c=0,g,h;return $;function $(N){return s.enter("mathText"),s.enter("mathTextSequence"),k(N)}function k(N){return N===36?(s.consume(N),c++,k):c<2&&!e?l(N):(s.exit("mathTextSequence"),x(N))}function x(N){return N===null?l(N):N===36?(h=s.enter("mathTextSequence"),g=0,I(N)):N===32?(s.enter("space"),s.consume(N),s.exit("space"),x):de(N)?(s.enter("lineEnding"),s.consume(N),s.exit("lineEnding"),x):(s.enter("mathTextData"),C(N))}function C(N){return N===null||N===32||N===36||de(N)?(s.exit("mathTextData"),x(N)):(s.consume(N),C)}function I(N){return N===36?(s.consume(N),g++,I):g===c?(s.exit("mathTextSequence"),s.exit("mathText"),o(N)):(h.type="mathTextData",C(N))}}}function $1(t){let r=t.length-4,e=3,n,s;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(n=e;++n<r;)if(t[n][1].type==="mathTextData"){t[r][1].type="mathTextPadding",t[e][1].type="mathTextPadding",e+=2,r-=2;break}}for(n=e-1,r++;++n<=r;)s===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(s=n):(n===r||t[n][1].type==="lineEnding")&&(t[s][1].type="mathTextData",n!==s+2&&(t[s][1].end=t[n-1][1].end,t.splice(s+2,n-s-2),r-=n-s-2,n=s+2),s=void 0);return t}function w1(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Wf(t){return{flow:{[36]:Mh},text:{[36]:zh(t)}}}function Vh(t,r){let e=String(t),n=e.indexOf(r),s=n,o=0,l=0;if(typeof r!="string"||r.length!==1)throw new Error("Expected character");for(;n!==-1;)n===s?++o>l&&(l=o):o=1,s=n+1,n=e.indexOf(r,s);return l}function Zf(){return{enter:{mathFlow:t,mathFlowFenceMeta:r,mathText:o},exit:{mathFlow:s,mathFlowFence:n,mathFlowFenceMeta:e,mathFlowValue:f,mathText:l,mathTextData:f}};function t(c){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},c)}function r(){this.buffer()}function e(){let c=this.resume(),g=this.stack[this.stack.length-1];g.meta=c}function n(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function s(c){let g=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.exit(c);h.value=g,h.data.hChildren[0].value=g,this.setData("mathFlowInside")}function o(c){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},c),this.buffer()}function l(c){let g=this.resume(),h=this.exit(c);h.value=g,h.data.hChildren[0].value=g}function f(c){this.config.enter.data.call(this,c),this.config.exit.data.call(this,c)}}function Jf(t){let r=(t||{}).singleDollarTextMath;return r==null&&(r=!0),n.peek=s,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
59
- `,inConstruct:"mathFlowMeta"},{character:"$",after:r?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:e,inlineMath:n}};function e(o,l,f,c){let g=o.value||"",h=pr(c),$="$".repeat(Math.max(Vh(g,"$")+1,2)),k=f.enter("mathFlow"),x=h.move($);if(o.meta){let C=f.enter("mathFlowMeta");x+=h.move(yo(f,o.meta,{before:x,after:`
54
+ `}}var e1=/\r?\n|\r/g;function Ra(t,r){let e=[],n=0,s=0,o;for(;o=e1.exec(t);)l(t.slice(n,o.index)),e.push(o[0]),n=o.index+o[0].length,s++;return l(t.slice(n)),e.join("");function l(f){e.push(r(f,s,!f))}}function ws(t){if(!t._compiled){let r=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((r?"("+r+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function vh(t,r){return kh(t,r.inConstruct,!0)&&!kh(t,r.notInConstruct,!1)}function kh(t,r,e){if(!r)return e;typeof r=="string"&&(r=[r]);let n=-1;for(;++n<r.length;)if(t.includes(r[n]))return!0;return!1}function yo(t,r,e){let n=(e.before||"")+(r||"")+(e.after||""),s=[],o=[],l={},f=-1;for(;++f<t.unsafe.length;){let h=t.unsafe[f];if(!vh(t.stack,h))continue;let $=ws(h),k;for(;k=$.exec(n);){let x="before"in h||Boolean(h.atBreak),C="after"in h,I=k.index+(x?k[1].length:0);s.includes(I)?(l[I].before&&!x&&(l[I].before=!1),l[I].after&&!C&&(l[I].after=!1)):(s.push(I),l[I]={before:x,after:C})}}s.sort(t1);let c=e.before?e.before.length:0,g=n.length-(e.after?e.after.length:0);for(f=-1;++f<s.length;){let h=s[f];h<c||h>=g||h+1<g&&s[f+1]===h+1&&l[h].after&&!l[h+1].before&&!l[h+1].after||s[f-1]===h-1&&l[h].before&&!l[h-1].before&&!l[h-1].after||(c!==h&&o.push(xh(n.slice(c,h),"\\")),c=h,/[!-/:-@[-`{-~]/.test(n.charAt(h))&&(!e.encode||!e.encode.includes(n.charAt(h)))?o.push("\\"):(o.push("&#x"+n.charCodeAt(h).toString(16).toUpperCase()+";"),c++))}return o.push(xh(n.slice(c,g),e.after)),o.join("")}function t1(t,r){return t-r}function xh(t,r){let e=/\\(?=[!-/:-@[-`{-~])/g,n=[],s=[],o=t+r,l=-1,f=0,c;for(;c=e.exec(o);)n.push(c.index);for(;++l<n.length;)f!==n[l]&&s.push(t.slice(f,n[l])),s.push("\\"),f=n[l];return s.push(t.slice(f)),s.join("")}function Ch(){return{enter:{gfmFootnoteDefinition:t,gfmFootnoteDefinitionLabelString:r,gfmFootnoteCall:s,gfmFootnoteCallString:o},exit:{gfmFootnoteDefinition:n,gfmFootnoteDefinitionLabelString:e,gfmFootnoteCall:f,gfmFootnoteCallString:l}};function t(c){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},c)}function r(){this.buffer()}function e(c){let g=this.resume(),h=this.stack[this.stack.length-1];h.label=g,h.identifier=fr(this.sliceSerialize(c)).toLowerCase()}function n(c){this.exit(c)}function s(c){this.enter({type:"footnoteReference",identifier:"",label:""},c)}function o(){this.buffer()}function l(c){let g=this.resume(),h=this.stack[this.stack.length-1];h.label=g,h.identifier=fr(this.sliceSerialize(c)).toLowerCase()}function f(c){this.exit(c)}}function Ah(){return t.peek=r,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:e,footnoteReference:t}};function t(n,s,o,l){let f=pr(l),c=f.move("[^"),g=o.enter("footnoteReference"),h=o.enter("reference");return c+=f.move(yo(o,Mf(n),{...f.current(),before:c,after:"]"})),h(),g(),c+=f.move("]"),c}function r(){return"["}function e(n,s,o,l){let f=pr(l),c=f.move("[^"),g=o.enter("footnoteDefinition"),h=o.enter("label");return c+=f.move(yo(o,Mf(n),{...f.current(),before:c,after:"]"})),h(),c+=f.move("]:"+(n.children&&n.children.length>0?" ":"")),f.shift(4),c+=f.move(Ra(Na(n,o,f.current()),$)),g(),c;function $(k,x,C){return x?(C?"":" ")+k:k}}}function Da(t,r,e){let n=r.indexStack,s=t.children||[],o=[],l=-1,f=e.before;n.push(-1);let c=pr(e);for(;++l<s.length;){let g=s[l],h;if(n[n.length-1]=l,l+1<s.length){let $=r.handle.handlers[s[l+1].type];$&&$.peek&&($=$.peek),h=$?$(s[l+1],t,r,{before:"",after:"",...c.current()}).charAt(0):""}else h=e.after;o.length>0&&(f==="\r"||f===`
55
+ `)&&g.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),f=" ",c=pr(e),c.move(o.join(""))),o.push(c.move(r.handle(g,t,r,{...c.current(),before:f,after:h}))),f=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var Eh={canContainEols:["delete"],enter:{strikethrough:r1},exit:{strikethrough:n1}},_h={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Sh}};Sh.peek=i1;function r1(t){this.enter({type:"delete",children:[]},t)}function n1(t){this.exit(t)}function Sh(t,r,e,n){let s=pr(n),o=e.enter("emphasis"),l=s.move("~~");return l+=Da(t,e,{...s.current(),before:l,after:"~"}),l+=s.move("~~"),o(),l}function i1(){return"~"}zf.peek=s1;function zf(t,r,e){let n=t.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(n);)s+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<e.unsafe.length;){let l=e.unsafe[o],f=ws(l),c;if(!!l.atBreak)for(;c=f.exec(n);){let g=c.index;n.charCodeAt(g)===10&&n.charCodeAt(g-1)===13&&g--,n=n.slice(0,g)+" "+n.slice(c.index+1)}}return s+n+s}function s1(){return"`"}function Th(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||a1,s=[],o=[],l=[],f=[],c=0,g=-1;for(;++g<t.length;){let C=[],I=[],R=-1;for(t[g].length>c&&(c=t[g].length);++R<t[g].length;){let B=o1(t[g][R]);if(r.alignDelimiters!==!1){let X=n(B);I[R]=X,(f[R]===void 0||X>f[R])&&(f[R]=X)}C.push(B)}o[g]=C,l[g]=I}let h=-1;if(typeof e=="object"&&"length"in e)for(;++h<c;)s[h]=Ph(e[h]);else{let C=Ph(e);for(;++h<c;)s[h]=C}h=-1;let $=[],k=[];for(;++h<c;){let C=s[h],I="",R="";C===99?(I=":",R=":"):C===108?I=":":C===114&&(R=":");let B=r.alignDelimiters===!1?1:Math.max(1,f[h]-I.length-R.length),X=I+"-".repeat(B)+R;r.alignDelimiters!==!1&&(B=I.length+B+R.length,B>f[h]&&(f[h]=B),k[h]=B),$[h]=X}o.splice(1,0,$),l.splice(1,0,k),g=-1;let x=[];for(;++g<o.length;){let C=o[g],I=l[g];h=-1;let R=[];for(;++h<c;){let B=C[h]||"",X="",le="";if(r.alignDelimiters!==!1){let be=f[h]-(I[h]||0),he=s[h];he===114?X=" ".repeat(be):he===99?be%2?(X=" ".repeat(be/2+.5),le=" ".repeat(be/2-.5)):(X=" ".repeat(be/2),le=X):le=" ".repeat(be)}r.delimiterStart!==!1&&!h&&R.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&B==="")&&(r.delimiterStart!==!1||h)&&R.push(" "),r.alignDelimiters!==!1&&R.push(X),R.push(B),r.alignDelimiters!==!1&&R.push(le),r.padding!==!1&&R.push(" "),(r.delimiterEnd!==!1||h!==c-1)&&R.push("|")}x.push(r.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return x.join(`
56
+ `)}function o1(t){return t==null?"":String(t)}function a1(t){return t.length}function Ph(t){let r=typeof t=="string"?t.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}var Hf={enter:{table:l1,tableData:Fh,tableHeader:Fh,tableRow:f1},exit:{codeText:c1,table:u1,tableData:Vf,tableHeader:Vf,tableRow:Vf}};function l1(t){let r=t._align;this.enter({type:"table",align:r.map(e=>e==="none"?null:e),children:[]},t),this.setData("inTable",!0)}function u1(t){this.exit(t),this.setData("inTable")}function f1(t){this.enter({type:"tableRow",children:[]},t)}function Vf(t){this.exit(t)}function Fh(t){this.enter({type:"tableCell",children:[]},t)}function c1(t){let r=this.resume();this.getData("inTable")&&(r=r.replace(/\\([\\|])/g,p1));let e=this.stack[this.stack.length-1];e.value=r,this.exit(t)}function p1(t,r){return r==="|"?r:t}function Uf(t){let r=t||{},e=r.tableCellPadding,n=r.tablePipeAlign,s=r.stringLength,o=e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
57
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:l,tableRow:f,tableCell:c,inlineCode:k}};function l(x,C,I,R){return g(h(x,I,R),x.align)}function f(x,C,I,R){let B=$(x,I,R),X=g([B]);return X.slice(0,X.indexOf(`
58
+ `))}function c(x,C,I,R){let B=I.enter("tableCell"),X=I.enter("phrasing"),le=Da(x,I,{...R,before:o,after:o});return X(),B(),le}function g(x,C){return Th(x,{align:C,alignDelimiters:n,padding:e,stringLength:s})}function h(x,C,I){let R=x.children,B=-1,X=[],le=C.enter("table");for(;++B<R.length;)X[B]=$(R[B],C,I);return le(),X}function $(x,C,I){let R=x.children,B=-1,X=[],le=C.enter("tableRow");for(;++B<R.length;)X[B]=c(R[B],x,C,I);return le(),X}function k(x,C,I){let R=zf(x,C,I);return I.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function Ih(t){let r=t.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function Oh(t){let r=t.options.listItemIndent||"tab";if(r===1||r==="1")return"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function Nh(t,r,e,n){let s=Oh(e),o=e.bulletCurrent||Ih(e);r&&r.type==="list"&&r.ordered&&(o=(typeof r.start=="number"&&r.start>-1?r.start:1)+(e.options.incrementListMarker===!1?0:r.children.indexOf(t))+o);let l=o.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(l=Math.ceil(l/4)*4);let f=pr(n);f.move(o+" ".repeat(l-o.length)),f.shift(l);let c=e.enter("listItem"),g=Ra(Na(t,e,f.current()),h);return c(),g;function h($,k,x){return k?(x?"":" ".repeat(l))+$:(x?o:o+" ".repeat(l-o.length))+$}}var Dh={exit:{taskListCheckValueChecked:Rh,taskListCheckValueUnchecked:Rh,paragraph:d1}},qh={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:m1}};function Rh(t){let r=this.stack[this.stack.length-2];r.checked=t.type==="taskListCheckValueChecked"}function d1(t){let r=this.stack[this.stack.length-2],e=this.stack[this.stack.length-1],n=r.children,s=e.children[0],o=-1,l;if(r&&r.type==="listItem"&&typeof r.checked=="boolean"&&s&&s.type==="text"){for(;++o<n.length;){let f=n[o];if(f.type==="paragraph"){l=f;break}}l===e&&(s.value=s.value.slice(1),s.value.length===0?e.children.shift():e.position&&s.position&&typeof s.position.start.offset=="number"&&(s.position.start.column++,s.position.start.offset++,e.position.start=Object.assign({},s.position.start)))}this.exit(t)}function m1(t,r,e,n){let s=t.children[0],o=typeof t.checked=="boolean"&&s&&s.type==="paragraph",l="["+(t.checked?"x":" ")+"] ",f=pr(n);o&&f.move(l);let c=Nh(t,r,e,{...n,...f.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,g)),c;function g(h){return h+l}}function Gf(){return[bh,Ch(),Eh,Hf,Dh]}function Kf(t){return{extensions:[$h,Ah(),_h,Uf(t),qh]}}function Wf(t={}){let r=this.data();e("micromarkExtensions",ph(t)),e("fromMarkdownExtensions",Gf()),e("toMarkdownExtensions",Kf(t));function e(n,s){(r[n]?r[n]:r[n]=[]).push(s)}}var jh={tokenize:h1,concrete:!0},Lh={tokenize:g1,partial:!0};function h1(t,r,e){let n=this,s=n.events[n.events.length-1],o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,l=0;return f;function f(X){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),c(X)}function c(X){return X===36?(t.consume(X),l++,c):l<2?e(X):(t.exit("mathFlowFenceSequence"),xe(t,g,"whitespace")(X))}function g(X){return X===null||de(X)?$(X):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),h(X))}function h(X){return X===null||de(X)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),$(X)):X===36?e(X):(t.consume(X),h)}function $(X){return t.exit("mathFlowFence"),n.interrupt?r(X):t.attempt(Lh,k,R)(X)}function k(X){return t.attempt({tokenize:B,partial:!0},R,x)(X)}function x(X){return(o?xe(t,C,"linePrefix",o+1):C)(X)}function C(X){return X===null?R(X):de(X)?t.attempt(Lh,k,R)(X):(t.enter("mathFlowValue"),I(X))}function I(X){return X===null||de(X)?(t.exit("mathFlowValue"),C(X)):(t.consume(X),I)}function R(X){return t.exit("mathFlow"),r(X)}function B(X,le,be){let he=0;return xe(X,Y,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Y(ke){return X.enter("mathFlowFence"),X.enter("mathFlowFenceSequence"),pe(ke)}function pe(ke){return ke===36?(he++,X.consume(ke),pe):he<l?be(ke):(X.exit("mathFlowFenceSequence"),xe(X,ve,"whitespace")(ke))}function ve(ke){return ke===null||de(ke)?(X.exit("mathFlowFence"),le(ke)):be(ke)}}}function g1(t,r,e){let n=this;return s;function s(l){return l===null?r(l):(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),o)}function o(l){return n.parser.lazy[n.now().line]?e(l):r(l)}}function Bh(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),{tokenize:n,resolve:y1,previous:b1};function n(s,o,l){let f=this,c=0,g,h;return $;function $(R){return s.enter("mathText"),s.enter("mathTextSequence"),k(R)}function k(R){return R===36?(s.consume(R),c++,k):c<2&&!e?l(R):(s.exit("mathTextSequence"),x(R))}function x(R){return R===null?l(R):R===36?(h=s.enter("mathTextSequence"),g=0,I(R)):R===32?(s.enter("space"),s.consume(R),s.exit("space"),x):de(R)?(s.enter("lineEnding"),s.consume(R),s.exit("lineEnding"),x):(s.enter("mathTextData"),C(R))}function C(R){return R===null||R===32||R===36||de(R)?(s.exit("mathTextData"),x(R)):(s.consume(R),C)}function I(R){return R===36?(s.consume(R),g++,I):g===c?(s.exit("mathTextSequence"),s.exit("mathText"),o(R)):(h.type="mathTextData",C(R))}}}function y1(t){let r=t.length-4,e=3,n,s;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(n=e;++n<r;)if(t[n][1].type==="mathTextData"){t[r][1].type="mathTextPadding",t[e][1].type="mathTextPadding",e+=2,r-=2;break}}for(n=e-1,r++;++n<=r;)s===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(s=n):(n===r||t[n][1].type==="lineEnding")&&(t[s][1].type="mathTextData",n!==s+2&&(t[s][1].end=t[n-1][1].end,t.splice(s+2,n-s-2),r-=n-s-2,n=s+2),s=void 0);return t}function b1(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Zf(t){return{flow:{[36]:jh},text:{[36]:Bh(t)}}}function Mh(t,r){let e=String(t),n=e.indexOf(r),s=n,o=0,l=0;if(typeof r!="string"||r.length!==1)throw new Error("Expected character");for(;n!==-1;)n===s?++o>l&&(l=o):o=1,s=n+1,n=e.indexOf(r,s);return l}function Jf(){return{enter:{mathFlow:t,mathFlowFenceMeta:r,mathText:o},exit:{mathFlow:s,mathFlowFence:n,mathFlowFenceMeta:e,mathFlowValue:f,mathText:l,mathTextData:f}};function t(c){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},c)}function r(){this.buffer()}function e(){let c=this.resume(),g=this.stack[this.stack.length-1];g.meta=c}function n(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function s(c){let g=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.exit(c);h.value=g,h.data.hChildren[0].value=g,this.setData("mathFlowInside")}function o(c){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},c),this.buffer()}function l(c){let g=this.resume(),h=this.exit(c);h.value=g,h.data.hChildren[0].value=g}function f(c){this.config.enter.data.call(this,c),this.config.exit.data.call(this,c)}}function Qf(t){let r=(t||{}).singleDollarTextMath;return r==null&&(r=!0),n.peek=s,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
59
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:r?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:e,inlineMath:n}};function e(o,l,f,c){let g=o.value||"",h=pr(c),$="$".repeat(Math.max(Mh(g,"$")+1,2)),k=f.enter("mathFlow"),x=h.move($);if(o.meta){let C=f.enter("mathFlowMeta");x+=h.move(yo(f,o.meta,{before:x,after:`
60
60
  `,encode:["$"],...h.current()})),C()}return x+=h.move(`
61
61
  `),g&&(x+=h.move(g+`
62
- `)),x+=h.move($),k(),x}function n(o,l,f){let c=o.value||"",g=1;for(r||g++;new RegExp("(^|[^$])"+"\\$".repeat(g)+"([^$]|$)").test(c);)g++;let h="$".repeat(g);/[^ \r\n]/.test(c)&&(/^[ \r\n]/.test(c)&&/[ \r\n]$/.test(c)||/^\$|\$$/.test(c))&&(c=" "+c+" ");let $=-1;for(;++$<f.unsafe.length;){let k=f.unsafe[$],x=ws(k),C;if(!!k.atBreak)for(;C=x.exec(c);){let I=C.index;c.codePointAt(I)===10&&c.codePointAt(I-1)===13&&I--,c=c.slice(0,I)+" "+c.slice(C.index+1)}}return h+c+h}function s(){return"$"}}function Qf(t={}){let r=this.data();e("micromarkExtensions",Wf(t)),e("fromMarkdownExtensions",Zf()),e("toMarkdownExtensions",Jf(t));function e(n,s){(r[n]?r[n]:r[n]=[]).push(s)}}var qa=(t,{lineOffset:r}={lineOffset:0})=>{let e=lf().use(nh).use(Kf).use(Qf).parse(t),n={},s=(f=>c=>{let{start:g,end:h}=c;return{start:{...g,line:g.line+f},end:{...h,line:h.line+f}}})(r);gs({processor:1}).use({"*:*":(f,c)=>(g,h,$)=>{g.children&&$(g.children,{...h})}}).use({":definition":(f,c)=>(g,h,$)=>{n[g.identifier]=g}}).run(e);let o=[];return gs({processor:1}).use({"*:*":(f,c)=>(g,h,$)=>{console.warn("[Podlite:md2ast]- unhandled MD node"),console.warn(JSON.stringify(g,null,2)),g.children&&$(g.children,{...h})}}).use({":root":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return Du({},$(k,h))},":math":(f,c)=>(g,h,$)=>{let{value:k,children:x,position:C,...I}=g;return Td({value:k,location:s(C)})},":inlineMath":(f,c)=>(g,h,$)=>{let{value:k,children:x,position:C,...I}=g;return _d(k)},":heading":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({type:"block",level:g.depth,name:"head",location:s(x)},$(k,h))},":text":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return g.value},":list":(f,c)=>(g,h,$)=>{let k=h.listLevel||0,{children:x,position:C,...I}=g;return br({type:"list",level:k+1,list:g.ordered?"ordered":"itemized"},$(x,{...h,listLevel:k+1,ordered:g.ordered}))},":listItem":(f,c)=>(g,h,$)=>{let k=h.listLevel||0,{children:x,position:C,checked:I,...N}=g,B={name:"item",type:"block",level:h.listLevel,location:s(C)};return I!=null&&(B.checked=I,B.config=[{name:"checked",value:I,type:"boolean"}]),br(B,$(x,{...h,listLevel:k,ordered:g.ordered}))},":paragraph":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({type:"para",location:s(x),text:"text",margin:""},$(k,{...h}))},":linkReference":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g,I=n[C.identifier],N=(I==null?void 0:I.url)||"";return Nu({meta:N},$(k,{...h}))},":definition":(f,c)=>(g,h,$)=>null,":inlineCode":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return pa({name:"C"},[g.value])},":strong":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return pa({name:"B"},$(k,{...h}))},":emphasis":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return pa({name:"I"},$(k,{...h}))},":link":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return Nu({meta:g.url},$(k,{...h}))},":html":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({type:"block",name:"Html",location:s(x)},[no(g.value)])},":code":(f,c)=>(g,h,$)=>{let{children:k,position:x,lang:C,meta:I,...N}=g;if(C==="mermaid"||C==="diagram")return br({type:"block",name:"Mermaid",config:[],location:s(x)},[no(g.value)]);let B=[];return C&&B.push({name:"lang",value:C,type:"string"}),I&&B.push(...Mu(I)),br({type:"block",name:"code",config:B,location:s(x)},[no(g.value)])},":image":(f,c)=>(g,h,$)=>{let{title:k,alt:x,url:C,position:I,...N}=g,B=[],X=[Pd(C,x)];return k&&X.push(Sd([k])),br({type:"block",name:"Image",config:B,location:s(I)},X)},":thematicBreak":(f,c)=>(g,h,$)=>null,":blockquote":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({name:"nested",location:s(x)},$(k,{...h}))},":table":(f,c)=>(g,h,$)=>{let{children:k,position:x,align:C,...I}=g;return br({name:"table",location:s(x),align:C},$(k,{...h,isHeaderUsed:0}))},":tableRow":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g,I=h.isHeaderUsed++,N={name:"row",location:s(x)};return I||(N.config=[{name:"header",value:!0,type:"boolean"}]),br(N,$(k,{...h}))},":tableCell":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({name:"cell",location:s(x)},$(k,{...h}))},":delete":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return Ed($(k,{...h}))},":break":(f,c)=>(g,h,$)=>null}).run(e).interator};var La={toAst:(t,r)=>(e,n)=>{if(typeof e!="string"&&"type"in e&&"content"in e&&e.type==="block"){let s=e.content[0];if(s&&typeof s!="string"&&"location"in e&&"value"in s){let o=e.location.start.line;return{...e,content:qa(s,{lineOffset:o})}}return e}},toJSX:t=>$r},k1={Markdown:La,markdown:La},v1=La;0&&(module.exports={PluginRegister,parseMd,plugin});
62
+ `)),x+=h.move($),k(),x}function n(o,l,f){let c=o.value||"",g=1;for(r||g++;new RegExp("(^|[^$])"+"\\$".repeat(g)+"([^$]|$)").test(c);)g++;let h="$".repeat(g);/[^ \r\n]/.test(c)&&(/^[ \r\n]/.test(c)&&/[ \r\n]$/.test(c)||/^\$|\$$/.test(c))&&(c=" "+c+" ");let $=-1;for(;++$<f.unsafe.length;){let k=f.unsafe[$],x=ws(k),C;if(!!k.atBreak)for(;C=x.exec(c);){let I=C.index;c.codePointAt(I)===10&&c.codePointAt(I-1)===13&&I--,c=c.slice(0,I)+" "+c.slice(C.index+1)}}return h+c+h}function s(){return"$"}}function Xf(t={}){let r=this.data();e("micromarkExtensions",Zf(t)),e("fromMarkdownExtensions",Jf()),e("toMarkdownExtensions",Qf(t));function e(n,s){(r[n]?r[n]:r[n]=[]).push(s)}}var qa=(t,{lineOffset:r}={lineOffset:0})=>{let e=uf().use(th).use(Wf).use(Xf).parse(t),n={},s=(f=>c=>{let{start:g,end:h}=c;return{start:{...g,line:g.line+f},end:{...h,line:h.line+f}}})(r);gs({processor:1}).use({"*:*":(f,c)=>(g,h,$)=>{g.children&&$(g.children,{...h})}}).use({":definition":(f,c)=>(g,h,$)=>{n[g.identifier]=g}}).run(e);let o=[];return gs({processor:1}).use({"*:*":(f,c)=>(g,h,$)=>{console.warn("[Podlite:md2ast]- unhandled MD node"),console.warn(JSON.stringify(g,null,2)),g.children&&$(g.children,{...h})}}).use({":root":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return Du({},$(k,h))},":math":(f,c)=>(g,h,$)=>{let{value:k,children:x,position:C,...I}=g;return Fd({value:k,location:s(C)})},":inlineMath":(f,c)=>(g,h,$)=>{let{value:k,children:x,position:C,...I}=g;return Sd(k)},":heading":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({type:"block",level:g.depth,name:"head",location:s(x)},$(k,h))},":text":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return g.value},":list":(f,c)=>(g,h,$)=>{let k=h.listLevel||0,{children:x,position:C,...I}=g;return br({type:"list",level:k+1,list:g.ordered?"ordered":"itemized"},$(x,{...h,listLevel:k+1,ordered:g.ordered}))},":listItem":(f,c)=>(g,h,$)=>{let k=h.listLevel||0,{children:x,position:C,checked:I,...R}=g,B={name:"item",type:"block",level:h.listLevel,location:s(C)};return I!=null&&(B.checked=I,B.config=[{name:"checked",value:I,type:"boolean"}]),br(B,$(x,{...h,listLevel:k,ordered:g.ordered}))},":paragraph":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({type:"para",location:s(x),text:"text",margin:""},$(k,{...h}))},":linkReference":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g,I=n[C.identifier],R=(I==null?void 0:I.url)||"";return Ru({meta:R},$(k,{...h}))},":definition":(f,c)=>(g,h,$)=>null,":inlineCode":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return pa({name:"C"},[g.value])},":strong":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return pa({name:"B"},$(k,{...h}))},":emphasis":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return pa({name:"I"},$(k,{...h}))},":link":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return Ru({meta:g.url},$(k,{...h}))},":html":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({type:"block",name:"Html",location:s(x)},[no(g.value)])},":code":(f,c)=>(g,h,$)=>{let{children:k,position:x,lang:C,meta:I,...R}=g;if(C==="mermaid"||C==="diagram")return br({type:"block",name:"Mermaid",config:[],location:s(x)},[no(g.value)]);let B=[];return C&&B.push({name:"lang",value:C,type:"string"}),I&&B.push(...Mu(I)),br({type:"block",name:"code",config:B,location:s(x)},[no(g.value)])},":image":(f,c)=>(g,h,$)=>{let{title:k,alt:x,url:C,position:I,...R}=g,B=[],X=[Td(C,x)];return k&&X.push(Pd([k])),br({type:"block",name:"Image",config:B,location:s(I)},X)},":thematicBreak":(f,c)=>(g,h,$)=>null,":blockquote":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({name:"nested",location:s(x)},$(k,{...h}))},":table":(f,c)=>(g,h,$)=>{let{children:k,position:x,align:C,...I}=g;return br({name:"table",location:s(x),align:C},$(k,{...h,isHeaderUsed:0}))},":tableRow":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g,I=h.isHeaderUsed++,R={name:"row",location:s(x)};return I||(R.config=[{name:"header",value:!0,type:"boolean"}]),br(R,$(k,{...h}))},":tableCell":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return br({name:"cell",location:s(x)},$(k,{...h}))},":delete":(f,c)=>(g,h,$)=>{let{children:k,position:x,...C}=g;return _d($(k,{...h}))},":break":(f,c)=>(g,h,$)=>null}).run(e).interator};var La={toAst:(t,r)=>(e,n)=>{if(typeof e!="string"&&"type"in e&&"content"in e&&e.type==="block"){let s=e.content[0];if(s&&typeof s!="string"&&"location"in e&&"value"in s){let o=e.location.start.line;return{...e,content:qa(s,{lineOffset:o})}}return e}},toJSX:t=>$r},$1={Markdown:La,markdown:La},w1=La;0&&(module.exports={PluginRegister,parseMd,plugin});
63
63
  /*!
64
64
  * Determine if an object is a Buffer
65
65
  *