@podlite/markdown 0.0.8 → 0.0.9
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/CHANGELOG.md +4 -0
- package/lib/index.cjs +16 -16
- package/lib/index.cjs.map +3 -3
- package/lib/index.esm.js +150 -6
- package/lib/index.esm.js.map +2 -2
- package/package.json +2 -2
- package/src/tools.ts +1 -1
- package/t/parse.test.ts +42 -1
- package/tsconfig.tsbuildinfo +1 -1
package/lib/index.cjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var ch=Object.create;var hs=Object.defineProperty;var fh=Object.getOwnPropertyDescriptor;var ph=Object.getOwnPropertyNames;var dh=Object.getPrototypeOf,mh=Object.prototype.hasOwnProperty;var ce=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Ac=(t,r)=>{for(var e in r)hs(t,e,{get:r[e],enumerable:!0})},Sc=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ph(r))!mh.call(t,i)&&i!==e&&hs(t,i,{get:()=>r[i],enumerable:!(n=fh(r,i))||n.enumerable});return t};var Nr=(t,r,e)=>(e=t!=null?ch(dh(t)):{},Sc(r||!t||!t.__esModule?hs(e,"default",{value:t,enumerable:!0}):e,t)),hh=t=>Sc(hs({},"__esModule",{value:!0}),t);var Na=ce(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.getRules=Gi.isJSONType=void 0;var gh=["string","number","integer","boolean","null","object","array"],yh=new Set(gh);function bh(t){return typeof t=="string"&&yh.has(t)}Gi.isJSONType=bh;function $h(){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:{}}}Gi.getRules=$h});var Ra=ce(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.shouldUseRule=Bn.shouldUseGroup=Bn.schemaHasRulesForType=void 0;function kh({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&Pc(t,n)}Bn.schemaHasRulesForType=kh;function Pc(t,r){return r.rules.some(e=>Tc(t,e))}Bn.shouldUseGroup=Pc;function Tc(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))}Bn.shouldUseRule=Tc});var gs=ce(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.getProperty=Je.safeStringify=Je.stringify=Je.strConcat=Je.addCodeArg=Je.str=Je._=Je.nil=Je._Code=Je.Name=Je.IDENTIFIER=Je._CodeOrName=void 0;var wo=class{};Je._CodeOrName=wo;Je.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var li=class extends wo{constructor(r){if(super(),!Je.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}}};Je.Name=li;var fn=class extends wo{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 li&&(e[n.str]=(e[n.str]||0)+1),e),{})}};Je._Code=fn;Je.nil=new fn("");function Ic(t,...r){let e=[t[0]],n=0;for(;n<r.length;)ja(e,r[n]),e.push(t[++n]);return new fn(e)}Je._=Ic;var La=new fn("+");function Fc(t,...r){let e=[vo(t[0])],n=0;for(;n<r.length;)e.push(La),ja(e,r[n]),e.push(La,vo(t[++n]));return wh(e),new fn(e)}Je.str=Fc;function ja(t,r){r instanceof fn?t.push(...r._items):r instanceof li?t.push(r):t.push(Ch(r))}Je.addCodeArg=ja;function wh(t){let r=1;for(;r<t.length-1;){if(t[r]===La){let e=vh(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function vh(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof li||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 li))return`"${t}${r.slice(1)}`}function xh(t,r){return r.emptyStr()?t:t.emptyStr()?r:Fc`${t}${r}`}Je.strConcat=xh;function Ch(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:vo(Array.isArray(t)?t.join(","):t)}function Eh(t){return new fn(vo(t))}Je.stringify=Eh;function vo(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Je.safeStringify=vo;function _h(t){return typeof t=="string"&&Je.IDENTIFIER.test(t)?new fn(`.${t}`):Ic`[${t}]`}Je.getProperty=_h});var Va=ce(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.ValueScope=lr.ValueScopeName=lr.Scope=lr.varKinds=lr.UsedValueState=void 0;var yr=gs(),Ba=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},za;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(za=lr.UsedValueState||(lr.UsedValueState={}));lr.varKinds={const:new yr.Name("const"),let:new yr.Name("let"),var:new yr.Name("var")};var ys=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof yr.Name?r:this.name(r)}name(r){return new yr.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}}};lr.Scope=ys;var bs=class extends yr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=yr._`.${new yr.Name(e)}[${n}]`}};lr.ValueScopeName=bs;var Ah=yr._`\n`,Ma=class extends ys{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?Ah:yr.nil}}get(){return this._scope}name(r){return new bs(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 i=this.toName(r),{prefix:o}=i,a=(n=e.key)!==null&&n!==void 0?n:e.ref,c=this._values[o];if(c){let d=c.get(a);if(d)return d}else c=this._values[o]=new Map;c.set(a,i);let f=this._scope[o]||(this._scope[o]=[]),h=f.length;return f[h]=e.ref,i.setValue(e,{property:o,itemIndex:h}),i}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 yr._`${r}${n.scopePath}`})}scopeCode(r=this._values,e,n){return this._reduceValues(r,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},e,n)}_reduceValues(r,e,n={},i){let o=yr.nil;for(let a in r){let c=r[a];if(!c)continue;let f=n[a]=n[a]||new Map;c.forEach(h=>{if(f.has(h))return;f.set(h,za.Started);let d=e(h);if(d){let b=this.opts.es5?lr.varKinds.var:lr.varKinds.const;o=yr._`${o}${b} ${h} = ${d};${this.opts._n}`}else if(d=i==null?void 0:i(h))o=yr._`${o}${d}${this.opts._n}`;else throw new Ba(h);f.set(h,za.Completed)})}return o}};lr.ValueScope=Ma});var Pe=ce(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.or=Ie.and=Ie.not=Ie.CodeGen=Ie.operators=Ie.varKinds=Ie.ValueScopeName=Ie.ValueScope=Ie.Scope=Ie.Name=Ie.stringify=Ie.getProperty=Ie.nil=Ie.strConcat=Ie.str=Ie._=void 0;var Re=gs(),Kr=Va(),fi=gs();Object.defineProperty(Ie,"_",{enumerable:!0,get:function(){return fi._}});Object.defineProperty(Ie,"str",{enumerable:!0,get:function(){return fi.str}});Object.defineProperty(Ie,"strConcat",{enumerable:!0,get:function(){return fi.strConcat}});Object.defineProperty(Ie,"nil",{enumerable:!0,get:function(){return fi.nil}});Object.defineProperty(Ie,"getProperty",{enumerable:!0,get:function(){return fi.getProperty}});Object.defineProperty(Ie,"stringify",{enumerable:!0,get:function(){return fi.stringify}});Object.defineProperty(Ie,"Name",{enumerable:!0,get:function(){return fi.Name}});var vs=Va();Object.defineProperty(Ie,"Scope",{enumerable:!0,get:function(){return vs.Scope}});Object.defineProperty(Ie,"ValueScope",{enumerable:!0,get:function(){return vs.ValueScope}});Object.defineProperty(Ie,"ValueScopeName",{enumerable:!0,get:function(){return vs.ValueScopeName}});Object.defineProperty(Ie,"varKinds",{enumerable:!0,get:function(){return vs.varKinds}});Ie.operators={GT:new Re._Code(">"),GTE:new Re._Code(">="),LT:new Re._Code("<"),LTE:new Re._Code("<="),EQ:new Re._Code("==="),NEQ:new Re._Code("!=="),NOT:new Re._Code("!"),OR:new Re._Code("||"),AND:new Re._Code("&&"),ADD:new Re._Code("+")};var xn=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},Ua=class extends xn{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?Kr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+e}optimizeNames(r,e){if(!!r[this.name.str])return this.rhs&&(this.rhs=Wi(this.rhs,r,e)),this}get names(){return this.rhs instanceof Re._CodeOrName?this.rhs.names:{}}},$s=class extends xn{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 Re.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=Wi(this.rhs,r,e),this}get names(){let r=this.lhs instanceof Re.Name?{}:{...this.lhs.names};return ws(r,this.rhs)}},Ha=class extends $s{constructor(r,e,n,i){super(r,n,i),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},Ga=class extends xn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},Ka=class extends xn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},Wa=class extends xn{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},Za=class extends xn{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=Wi(this.code,r,e),this}get names(){return this.code instanceof Re._CodeOrName?this.code.names:{}}},xo=class extends xn{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,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(r,e)||(Sh(r,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>ci(r,e.names),{})}},Cn=class extends xo{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},Ja=class extends xo{},Ki=class extends Cn{};Ki.kind="else";var Wr=class extends Cn{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 Ki(n):n}if(e)return r===!1?e instanceof Wr?e:e.nodes:this.nodes.length?this:new Wr(Oc(r),e instanceof Wr?[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=Wi(this.condition,r,e),this}get names(){let r=super.names;return ws(r,this.condition),this.else&&ci(r,this.else.names),r}};Wr.kind="if";var ui=class extends Cn{};ui.kind="for";var Qa=class extends ui{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=Wi(this.iteration,r,e),this}get names(){return ci(super.names,this.iteration.names)}},Xa=class extends ui{constructor(r,e,n,i){super(),this.varKind=r,this.name=e,this.from=n,this.to=i}render(r){let e=r.es5?Kr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${e} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(r)}get names(){let r=ws(super.names,this.from);return ws(r,this.to)}},ks=class extends ui{constructor(r,e,n,i){super(),this.loop=r,this.varKind=e,this.name=n,this.iterable=i}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=Wi(this.iterable,r,e),this}get names(){return ci(super.names,this.iterable.names)}},Co=class extends Cn{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)}};Co.kind="func";var Eo=class extends xo{render(r){return"return "+super.render(r)}};Eo.kind="return";var Ya=class extends Cn{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,i;return super.optimizeNames(r,e),(n=this.catch)===null||n===void 0||n.optimizeNames(r,e),(i=this.finally)===null||i===void 0||i.optimizeNames(r,e),this}get names(){let r=super.names;return this.catch&&ci(r,this.catch.names),this.finally&&ci(r,this.finally.names),r}},_o=class extends Cn{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};_o.kind="catch";var Ao=class extends Cn{render(r){return"finally"+super.render(r)}};Ao.kind="finally";var el=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
|
|
2
|
-
`:""},this._extScope=r,this._scope=new Kr.Scope({parent:r}),this._nodes=[new Ja]}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,i){let o=this._scope.toName(e);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Ua(r,o,n)),o}const(r,e,n){return this._def(Kr.varKinds.const,r,e,n)}let(r,e,n){return this._def(Kr.varKinds.let,r,e,n)}var(r,e,n){return this._def(Kr.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new $s(r,e,n))}add(r,e){return this._leafNode(new Ha(r,Ie.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==Re.nil&&this._leafNode(new Za(r)),this}object(...r){let e=["{"];for(let[n,i]of r)e.length>1&&e.push(","),e.push(n),(n!==i||this.opts.es5)&&(e.push(":"),Re.addCodeArg(e,i));return e.push("}"),new Re._Code(e)}if(r,e,n){if(this._blockNode(new Wr(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 Wr(r))}else(){return this._elseNode(new Ki)}endIf(){return this._endBlockNode(Wr,Ki)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new Qa(r),e)}forRange(r,e,n,i,o=this.opts.es5?Kr.varKinds.var:Kr.varKinds.let){let a=this._scope.toName(r);return this._for(new Xa(o,a,e,n),()=>i(a))}forOf(r,e,n,i=Kr.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let a=e instanceof Re.Name?e:this.var("_arr",e);return this.forRange("_i",0,Re._`${a}.length`,c=>{this.var(o,Re._`${a}[${c}]`),n(o)})}return this._for(new ks("of",i,o,e),()=>n(o))}forIn(r,e,n,i=this.opts.es5?Kr.varKinds.var:Kr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,Re._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new ks("in",i,o,e),()=>n(o))}endFor(){return this._endBlockNode(ui)}label(r){return this._leafNode(new Ga(r))}break(r){return this._leafNode(new Ka(r))}return(r){let e=new Eo;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Eo)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Ya;if(this._blockNode(i),this.code(r),e){let o=this.name("e");this._currNode=i.catch=new _o(o),e(o)}return n&&(this._currNode=i.finally=new Ao,this.code(n)),this._endBlockNode(_o,Ao)}throw(r){return this._leafNode(new Wa(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=Re.nil,n,i){return this._blockNode(new Co(r,e,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Co)}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 Wr))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}};Ie.CodeGen=el;function ci(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function ws(t,r){return r instanceof Re._CodeOrName?ci(t,r.names):t}function Wi(t,r,e){if(t instanceof Re.Name)return n(t);if(!i(t))return t;return new Re._Code(t._items.reduce((o,a)=>(a instanceof Re.Name&&(a=n(a)),a instanceof Re._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=e[o.str];return a===void 0||r[o.str]!==1?o:(delete r[o.str],a)}function i(o){return o instanceof Re._Code&&o._items.some(a=>a instanceof Re.Name&&r[a.str]===1&&e[a.str]!==void 0)}}function Sh(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function Oc(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:Re._`!${tl(t)}`}Ie.not=Oc;var Ph=qc(Ie.operators.AND);function Th(...t){return t.reduce(Ph)}Ie.and=Th;var Ih=qc(Ie.operators.OR);function Fh(...t){return t.reduce(Ih)}Ie.or=Fh;function qc(t){return(r,e)=>r===Re.nil?e:e===Re.nil?r:Re._`${tl(r)} ${t} ${tl(e)}`}function tl(t){return t instanceof Re.Name?t:Re._`(${t})`}});var Zr=ce(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var Xt=Pe(),Oh={data:new Xt.Name("data"),valCxt:new Xt.Name("valCxt"),dataPath:new Xt.Name("dataPath"),parentData:new Xt.Name("parentData"),parentDataProperty:new Xt.Name("parentDataProperty"),rootData:new Xt.Name("rootData"),dynamicAnchors:new Xt.Name("dynamicAnchors"),vErrors:new Xt.Name("vErrors"),errors:new Xt.Name("errors"),this:new Xt.Name("this"),self:new Xt.Name("self"),scope:new Xt.Name("scope"),json:new Xt.Name("json"),jsonPos:new Xt.Name("jsonPos"),jsonLen:new Xt.Name("jsonLen"),jsonPart:new Xt.Name("jsonPart")};rl.default=Oh});var So=ce(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.extendErrors=Yt.resetErrorsCount=Yt.reportExtraError=Yt.reportError=Yt.keyword$DataError=Yt.keywordError=void 0;var Le=Pe(),er=Zr();Yt.keywordError={message:({keyword:t})=>Le.str`should pass "${t}" keyword validation`};Yt.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Le.str`"${t}" keyword must be ${r} ($data)`:Le.str`"${t}" keyword is invalid ($data)`};function qh(t,r=Yt.keywordError,e){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n,c=Rc(t,r);e??(o||a)?Dc(i,c):Nc(n,Le._`[${c}]`)}Yt.reportError=qh;function Dh(t,r=Yt.keywordError){let{it:e}=t,{gen:n,compositeRule:i,allErrors:o}=e,a=Rc(t,r);Dc(n,a),i||o||Nc(e,er.default.vErrors)}Yt.reportExtraError=Dh;function Nh(t,r){t.assign(er.default.errors,r),t.if(Le._`${er.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Le._`${er.default.vErrors}.length`,r),()=>t.assign(er.default.vErrors,null)))}Yt.resetErrorsCount=Nh;function Rh({gen:t,keyword:r,schemaValue:e,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=t.name("err");t.forRange("i",i,er.default.errors,c=>{t.const(a,Le._`${er.default.vErrors}[${c}]`),t.if(Le._`${a}.dataPath === undefined`,()=>t.assign(Le._`${a}.dataPath`,Le.strConcat(er.default.dataPath,o.errorPath))),t.assign(Le._`${a}.schemaPath`,Le.str`${o.errSchemaPath}/${r}`),o.opts.verbose&&(t.assign(Le._`${a}.schema`,e),t.assign(Le._`${a}.data`,n))})}Yt.extendErrors=Rh;function Dc(t,r){let e=t.const("err",r);t.if(Le._`${er.default.vErrors} === null`,()=>t.assign(er.default.vErrors,Le._`[${e}]`),Le._`${er.default.vErrors}.push(${e})`),t.code(Le._`${er.default.errors}++`)}function Nc(t,r){let{gen:e,validateName:n,schemaEnv:i}=t;i.$async?e.throw(Le._`new ${t.ValidationError}(${r})`):(e.assign(Le._`${n}.errors`,r),e.return(!1))}var pn={keyword:new Le.Name("keyword"),schemaPath:new Le.Name("schemaPath"),params:new Le.Name("params"),propertyName:new Le.Name("propertyName"),message:new Le.Name("message"),schema:new Le.Name("schema"),parentSchema:new Le.Name("parentSchema"),instancePath:new Le.Name("instancePath")};function Rc(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Le._`{}`:(n.jtd&&!n.ajvErrors?Lh:jh)(t,r)}function Lh(t,{message:r}){let{gen:e,keyword:n,it:i}=t,{errorPath:o,errSchemaPath:a,opts:c}=i,f=[[pn.instancePath,Le.strConcat(er.default.dataPath,o)],[pn.schemaPath,Le.str`${a}/${n}`]];return c.messages&&f.push([pn.message,typeof r=="function"?r(t):r]),e.object(...f)}function jh(t,r){let{gen:e,keyword:n,data:i,schemaValue:o,it:a}=t,{topSchemaRef:c,schemaPath:f,errorPath:h,errSchemaPath:d,propertyName:b,opts:v}=a,{params:k,message:_}=r,T=[[pn.keyword,n],[er.default.dataPath,Le.strConcat(er.default.dataPath,h)],[pn.schemaPath,Le.str`${d}/${n}`],[pn.params,typeof k=="function"?k(t):k||Le._`{}`]];return b&&T.push([pn.propertyName,b]),v.messages&&T.push([pn.message,typeof _=="function"?_(t):_]),v.verbose&&T.push([pn.schema,o],[pn.parentSchema,Le._`${c}${f}`],[er.default.data,i]),e.object(...T)}});var jc=ce(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.boolOrEmptySchema=Zi.topBoolOrEmptySchema=void 0;var Bh=So(),zh=Pe(),Mh=Zr(),Vh={message:"boolean schema is false"};function Uh(t){let{gen:r,schema:e,validateName:n}=t;e===!1?Lc(t,!1):typeof e=="object"&&e.$async===!0?r.return(Mh.default.data):(r.assign(zh._`${n}.errors`,null),r.return(!0))}Zi.topBoolOrEmptySchema=Uh;function Hh(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),Lc(t)):e.var(r,!0)}Zi.boolOrEmptySchema=Hh;function Lc(t,r){let{gen:e,data:n}=t,i={gen:e,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};Bh.reportError(i,Vh,r)}});var zc=ce(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.assignDefaults=void 0;var Ji=Pe(),Gh=Ar();function Kh(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let i in e)Bc(t,i,e[i].default);else r==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Bc(t,o,i.default))}xs.assignDefaults=Kh;function Bc(t,r,e){let{gen:n,compositeRule:i,data:o,opts:a}=t;if(e===void 0)return;let c=Ji._`${o}${Ji.getProperty(r)}`;if(i){Gh.checkStrictMode(t,`default is ignored for: ${c}`);return}let f=Ji._`${c} === undefined`;a.useDefaults==="empty"&&(f=Ji._`${f} || ${c} === null || ${c} === ""`),n.if(f,Ji._`${c} = ${Ji.stringify(e)}`)}});var di=ce(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.applySubschema=pi.Type=void 0;var Wh=Ar(),Mc=dt(),tr=Pe(),Vc;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Vc=pi.Type||(pi.Type={}));function Zh(t,r,e){let n=Jh(t,r);Qh(n,t,r),Xh(n,r);let i={...t,...n,items:void 0,props:void 0};return Wh.subschemaCode(i,e),i}pi.applySubschema=Zh;function Jh(t,{keyword:r,schemaProp:e,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let c=t.schema[r];return e===void 0?{schema:c,schemaPath:tr._`${t.schemaPath}${tr.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:c[e],schemaPath:tr._`${t.schemaPath}${tr.getProperty(r)}${tr.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${Mc.escapeFragment(e)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function Qh(t,r,{dataProp:e,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&e!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=r;if(e!==void 0){let{errorPath:h,dataPathArr:d,opts:b}=r,v=c.let("data",tr._`${r.data}${tr.getProperty(e)}`,!0);f(v),t.errorPath=tr.str`${h}${Yh(e,n,b.jsPropertySyntax)}`,t.parentDataProperty=tr._`${e}`,t.dataPathArr=[...d,t.parentDataProperty]}if(i!==void 0){let h=i instanceof tr.Name?i:c.let("data",i,!0);f(h),a!==void 0&&(t.propertyName=a)}o&&(t.dataTypes=o);function f(h){t.data=h,t.dataLevel=r.dataLevel+1,t.dataTypes=[],r.definedProperties=new Set,t.parentData=r.data,t.dataNames=[...r.dataNames,h]}}function Xh(t,{jtdDiscriminator:r,jtdMetadata:e,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=r,t.jtdMetadata=e}function Yh(t,r,e){if(t instanceof tr.Name){let n=r===Vc.Num;return e?n?tr._`"[" + ${t} + "]"`:tr._`"['" + ${t} + "']"`:n?tr._`"/" + ${t}`:tr._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?tr.getProperty(t).toString():"/"+Mc.escapeJsonPointer(t)}});var Jr=ce(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.validateUnion=Qe.validateArray=Qe.usePattern=Qe.callValidateCode=Qe.schemaProperties=Qe.allSchemaProperties=Qe.noPropertyInData=Qe.propertyInData=Qe.isOwnProperty=Qe.hasPropFunc=Qe.reportMissingProp=Qe.checkMissingProp=Qe.checkReportMissingProp=void 0;var ct=Pe(),Uc=dt(),eg=di(),zn=Zr();function tg(t,r){let{gen:e,data:n,it:i}=t;e.if(il(e,n,r,i.opts.ownProperties),()=>{t.setParams({missingProperty:ct._`${r}`},!0),t.error()})}Qe.checkReportMissingProp=tg;function rg({gen:t,data:r,it:{opts:e}},n,i){return ct.or(...n.map(o=>ct.and(il(t,r,o,e.ownProperties),ct._`${i} = ${o}`)))}Qe.checkMissingProp=rg;function ng(t,r){t.setParams({missingProperty:r},!0),t.error()}Qe.reportMissingProp=ng;function Hc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:ct._`Object.prototype.hasOwnProperty`})}Qe.hasPropFunc=Hc;function nl(t,r,e){return ct._`${Hc(t)}.call(${r}, ${e})`}Qe.isOwnProperty=nl;function ig(t,r,e,n){let i=ct._`${r}${ct.getProperty(e)} !== undefined`;return n?ct._`${i} && ${nl(t,r,e)}`:i}Qe.propertyInData=ig;function il(t,r,e,n){let i=ct._`${r}${ct.getProperty(e)} === undefined`;return n?ct.or(i,ct.not(nl(t,r,e))):i}Qe.noPropertyInData=il;function Gc(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}Qe.allSchemaProperties=Gc;function og(t,r){return Gc(r).filter(e=>!Uc.alwaysValidSchema(t,r[e]))}Qe.schemaProperties=og;function sg({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,f,h){let d=h?ct._`${t}, ${r}, ${n}${i}`:r,b=[[zn.default.dataPath,ct.strConcat(zn.default.dataPath,o)],[zn.default.parentData,a.parentData],[zn.default.parentDataProperty,a.parentDataProperty],[zn.default.rootData,zn.default.rootData]];a.opts.dynamicRef&&b.push([zn.default.dynamicAnchors,zn.default.dynamicAnchors]);let v=ct._`${d}, ${e.object(...b)}`;return f!==ct.nil?ct._`${c}.call(${f}, ${v})`:ct._`${c}(${v})`}Qe.callValidateCode=sg;function ag(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:ct._`new RegExp(${r}, "u")`})}Qe.usePattern=ag;function lg(t){let{gen:r,data:e,keyword:n,it:i}=t,o=r.name("valid");if(i.allErrors){let c=r.let("valid",!0);return a(()=>r.assign(c,!1)),c}return r.var(o,!0),a(()=>r.break()),o;function a(c){let f=r.const("len",ct._`${e}.length`);r.forRange("i",0,f,h=>{t.subschema({keyword:n,dataProp:h,dataPropType:eg.Type.Num},o),r.if(ct.not(o),c)})}}Qe.validateArray=lg;function ug(t){let{gen:r,schema:e,keyword:n,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(f=>Uc.alwaysValidSchema(i,f))&&!i.opts.unevaluated)return;let a=r.let("valid",!1),c=r.name("_valid");r.block(()=>e.forEach((f,h)=>{let d=t.subschema({keyword:n,schemaProp:h,compositeRule:!0},c);r.assign(a,ct._`${a} || ${c}`),t.mergeValidEvaluated(d,c)||r.if(ct.not(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Qe.validateUnion=ug});var Jc=ce(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.keywordCode=void 0;var cg=Po(),fg=So(),pg=Jr(),ur=Pe(),mi=Zr();function dg(t,r,e,n){let i=new cg.default(t,e,r);"code"in e?e.code(i,n):i.$data&&e.validate?Kc(i,e):"macro"in e?mg(i,e):(e.compile||e.validate)&&Kc(i,e)}Cs.keywordCode=dg;function mg(t,r){let{gen:e,keyword:n,schema:i,parentSchema:o,it:a}=t,c=r.macro.call(a.self,i,o,a),f=Zc(e,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let h=e.name("valid");t.subschema({schema:c,schemaPath:ur.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:f,compositeRule:!0},h),t.pass(h,()=>t.error(!0))}function Kc(t,r){var e;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:f}=t;gg(f,r);let h=!c&&r.compile?r.compile.call(f.self,o,a,f):r.validate,d=Zc(n,i,h),b=n.let("valid");t.block$data(b,v),t.ok((e=r.valid)!==null&&e!==void 0?e:b);function v(){if(r.errors===!1)T(),r.modifying&&Wc(t),L(()=>t.error());else{let N=r.async?k():_();r.modifying&&Wc(t),L(()=>hg(t,N))}}function k(){let N=n.let("ruleErrs",null);return n.try(()=>T(ur._`await `),ee=>n.assign(b,!1).if(ur._`${ee} instanceof ${f.ValidationError}`,()=>n.assign(N,ur._`${ee}.errors`),()=>n.throw(ee))),N}function _(){let N=ur._`${d}.errors`;return n.assign(N,null),T(ur.nil),N}function T(N=r.async?ur._`await `:ur.nil){let ee=f.opts.passContext?mi.default.this:mi.default.self,re=!("compile"in r&&!c||r.schema===!1);n.assign(b,ur._`${N}${pg.callValidateCode(t,d,ee,re)}`,r.modifying)}function L(N){var ee;n.if(ur.not((ee=r.valid)!==null&&ee!==void 0?ee:b),N)}}function Wc(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,ur._`${n.parentData}[${n.parentDataProperty}]`))}function hg(t,r){let{gen:e}=t;e.if(ur._`Array.isArray(${r})`,()=>{e.assign(mi.default.vErrors,ur._`${mi.default.vErrors} === null ? ${r} : ${mi.default.vErrors}.concat(${r})`).assign(mi.default.errors,ur._`${mi.default.vErrors}.length`),fg.extendErrors(t)},()=>t.error())}function gg({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function Zc(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:ur.stringify(e)})}});var tf=ce(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.schemaKeywords=void 0;var ol=Ra(),Qc=Qi(),yg=zc(),ef=Jc(),bg=dt(),$g=Ar(),kg=Pe(),wg=Zr();function vg(t,r,e,n){let{gen:i,schema:o,data:a,allErrors:c,opts:f,self:h}=t,{RULES:d}=h;if(o.$ref&&(f.ignoreKeywordsWithRef||!bg.schemaHasRulesButRef(o,d))){i.block(()=>ef.keywordCode(t,"$ref",d.all.$ref.definition));return}f.jtd||xg(t,r),i.block(()=>{for(let v of d.rules)b(v);b(d.post)});function b(v){!ol.shouldUseGroup(o,v)||(v.type?(i.if(Qc.checkDataType(v.type,a,f.strict)),Xc(t,v),r.length===1&&r[0]===v.type&&e&&(i.else(),Qc.reportTypeError(t)),i.endIf()):Xc(t,v),c||i.if(kg._`${wg.default.errors} === ${n||0}`))}}Es.schemaKeywords=vg;function Xc(t,r){let{gen:e,schema:n,opts:{useDefaults:i}}=t;i&&yg.assignDefaults(t,r.type),e.block(()=>{for(let o of r.rules)ol.shouldUseRule(n,o)&&ef.keywordCode(t,o.keyword,o.definition,r.type)})}function xg(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(Cg(t,r),t.opts.allowUnionTypes||Eg(t,r),_g(t,t.dataTypes))}function Cg(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{Yc(t.dataTypes,e)||sl(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>Yc(r,e))}}function Eg(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&sl(t,"use allowUnionTypes to allow union type keyword")}function _g(t,r){let e=t.self.RULES.all;for(let n in e){let i=e[n];if(typeof i=="object"&&ol.shouldUseRule(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>Ag(r,a))&&sl(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Ag(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function Yc(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function sl(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,$g.checkStrictMode(t,r,t.opts.strictTypes)}});var To=ce((F1,rf)=>{"use strict";rf.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,i,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(i=n;i--!==0;)if(!t(r[i],e[i]))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(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}});var of=ce((O1,nf)=>{"use strict";var Mn=nf.exports=function(t,r,e){typeof r=="function"&&(e=r,r={}),e=r.cb||e;var n=typeof e=="function"?e:e.pre||function(){},i=e.post||function(){};_s(r,n,i,t,"",t)};Mn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Mn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Mn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Mn.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 _s(t,r,e,n,i,o,a,c,f,h){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,o,a,c,f,h);for(var d in n){var b=n[d];if(Array.isArray(b)){if(d in Mn.arrayKeywords)for(var v=0;v<b.length;v++)_s(t,r,e,b[v],i+"/"+d+"/"+v,o,i,d,n,v)}else if(d in Mn.propsKeywords){if(b&&typeof b=="object")for(var k in b)_s(t,r,e,b[k],i+"/"+d+"/"+Sg(k),o,i,d,n,k)}else(d in Mn.keywords||t.allKeys&&!(d in Mn.skipKeywords))&&_s(t,r,e,b,i+"/"+d,o,i,d,n)}e(n,i,o,a,c,f,h)}}function Sg(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var al=ce((As,sf)=>{(function(t,r){typeof As=="object"&&typeof sf<"u"?r(As):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(As,function(t){"use strict";function r(){for(var q=arguments.length,P=Array(q),M=0;M<q;M++)P[M]=arguments[M];if(P.length>1){P[0]=P[0].slice(0,-1);for(var G=P.length-1,K=1;K<G;++K)P[K]=P[K].slice(1,-1);return P[G]=P[G].slice(1),P.join("")}else return P[0]}function e(q){return"(?:"+q+")"}function n(q){return q===void 0?"undefined":q===null?"null":Object.prototype.toString.call(q).split(" ").pop().split("]").shift().toLowerCase()}function i(q){return q.toUpperCase()}function o(q){return q!=null?q instanceof Array?q:typeof q.length!="number"||q.split||q.setInterval||q.call?[q]:Array.prototype.slice.call(q):[]}function a(q,P){var M=q;if(P)for(var G in P)M[G]=P[G];return M}function c(q){var P="[A-Za-z]",M="[\\x0D]",G="[0-9]",K="[\\x22]",ae=r(G,"[A-Fa-f]"),we="[\\x0A]",Ae="[\\x20]",qe=e(e("%[EFef]"+ae+"%"+ae+ae+"%"+ae+ae)+"|"+e("%[89A-Fa-f]"+ae+"%"+ae+ae)+"|"+e("%"+ae+ae)),tt="[\\:\\/\\?\\#\\[\\]\\@]",_e="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ke=r(tt,_e),ut=q?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ze=q?"[\\uE000-\\uF8FF]":"[]",Te=r(P,G,"[\\-\\.\\_\\~]",ut),Xe=e(P+r(P,G,"[\\+\\-\\.]")+"*"),Be=e(e(qe+"|"+r(Te,_e,"[\\:]"))+"*"),Tr=e(e("25[0-5]")+"|"+e("2[0-4]"+G)+"|"+e("1"+G+G)+"|"+e("[1-9]"+G)+"|"+G),zt=e(e("25[0-5]")+"|"+e("2[0-4]"+G)+"|"+e("1"+G+G)+"|"+e("0?[1-9]"+G)+"|0?0?"+G),u=e(zt+"\\."+zt+"\\."+zt+"\\."+zt),oe=e(ae+"{1,4}"),vt=e(e(oe+"\\:"+oe)+"|"+u),it=e(e(oe+"\\:")+"{6}"+vt),Jt=e("\\:\\:"+e(oe+"\\:")+"{5}"+vt),j=e(e(oe)+"?\\:\\:"+e(oe+"\\:")+"{4}"+vt),Mt=e(e(e(oe+"\\:")+"{0,1}"+oe)+"?\\:\\:"+e(oe+"\\:")+"{3}"+vt),Br=e(e(e(oe+"\\:")+"{0,2}"+oe)+"?\\:\\:"+e(oe+"\\:")+"{2}"+vt),On=e(e(e(oe+"\\:")+"{0,3}"+oe)+"?\\:\\:"+oe+"\\:"+vt),qn=e(e(e(oe+"\\:")+"{0,4}"+oe)+"?\\:\\:"+vt),rn=e(e(e(oe+"\\:")+"{0,5}"+oe)+"?\\:\\:"+oe),De=e(e(e(oe+"\\:")+"{0,6}"+oe)+"?\\:\\:"),qt=e([it,Jt,j,Mt,Br,On,qn,rn,De].join("|")),nn=e(e(Te+"|"+qe)+"+"),Xn=e(qt+"\\%25"+nn),zr=e(qt+e("\\%25|\\%(?!"+ae+"{2})")+nn),Yn=e("[vV]"+ae+"+\\."+r(Te,_e,"[\\:]")+"+"),on=e("\\["+e(zr+"|"+qt+"|"+Yn)+"\\]"),X=e(e(qe+"|"+r(Te,_e))+"*"),kn=e(on+"|"+u+"(?!"+X+")|"+X),Ir=e(G+"*"),ei=e(e(Be+"@")+"?"+kn+e("\\:"+Ir)+"?"),Cr=e(qe+"|"+r(Te,_e,"[\\:\\@]")),Oi=e(Cr+"*"),qi=e(Cr+"+"),ti=e(e(qe+"|"+r(Te,_e,"[\\@]"))+"+"),Et=e(e("\\/"+Oi)+"*"),Mr=e("\\/"+e(qi+Et)+"?"),ri=e(ti+Et),Dn=e(qi+Et),Vr="(?!"+Cr+")",mo=e(Et+"|"+Mr+"|"+ri+"|"+Dn+"|"+Vr),Fr=e(e(Cr+"|"+r("[\\/\\?]",Ze))+"*"),sn=e(e(Cr+"|[\\/\\?]")+"*"),Er=e(e("\\/\\/"+ei+Et)+"|"+Mr+"|"+Dn+"|"+Vr),Nn=e(Xe+"\\:"+Er+e("\\?"+Fr)+"?"+e("\\#"+sn)+"?"),wn=e(e("\\/\\/"+ei+Et)+"|"+Mr+"|"+ri+"|"+Vr),mr=e(wn+e("\\?"+Fr)+"?"+e("\\#"+sn)+"?"),Yo=e(Nn+"|"+mr),ho=e(Xe+"\\:"+Er+e("\\?"+Fr)+"?"),Ur="^("+Xe+")\\:"+e(e("\\/\\/("+e("("+Be+")@")+"?("+kn+")"+e("\\:("+Ir+")")+"?)")+"?("+Et+"|"+Mr+"|"+Dn+"|"+Vr+")")+e("\\?("+Fr+")")+"?"+e("\\#("+sn+")")+"?$",Rn="^(){0}"+e(e("\\/\\/("+e("("+Be+")@")+"?("+kn+")"+e("\\:("+Ir+")")+"?)")+"?("+Et+"|"+Mr+"|"+ri+"|"+Vr+")")+e("\\?("+Fr+")")+"?"+e("\\#("+sn+")")+"?$",go="^("+Xe+")\\:"+e(e("\\/\\/("+e("("+Be+")@")+"?("+kn+")"+e("\\:("+Ir+")")+"?)")+"?("+Et+"|"+Mr+"|"+Dn+"|"+Vr+")")+e("\\?("+Fr+")")+"?$",yo="^"+e("\\#("+sn+")")+"?$",es="^"+e("("+Be+")@")+"?("+kn+")"+e("\\:("+Ir+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",P,G,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",Te,_e),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",Te,_e),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",Te,_e),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",Te,_e),"g"),NOT_QUERY:new RegExp(r("[^\\%]",Te,_e,"[\\:\\@\\/\\?]",Ze),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",Te,_e,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",Te,_e),"g"),UNRESERVED:new RegExp(Te,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",Te,Ke),"g"),PCT_ENCODED:new RegExp(qe,"g"),IPV4ADDRESS:new RegExp("^("+u+")$"),IPV6ADDRESS:new RegExp("^\\[?("+qt+")"+e(e("\\%25|\\%(?!"+ae+"{2})")+"("+nn+")")+"?\\]?$")}}var f=c(!1),h=c(!0),d=function(){function q(P,M){var G=[],K=!0,ae=!1,we=void 0;try{for(var Ae=P[Symbol.iterator](),qe;!(K=(qe=Ae.next()).done)&&(G.push(qe.value),!(M&&G.length===M));K=!0);}catch(tt){ae=!0,we=tt}finally{try{!K&&Ae.return&&Ae.return()}finally{if(ae)throw we}}return G}return function(P,M){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return q(P,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(q){if(Array.isArray(q)){for(var P=0,M=Array(q.length);P<q.length;P++)M[P]=q[P];return M}else return Array.from(q)},v=2147483647,k=36,_=1,T=26,L=38,N=700,ee=72,re=128,de="-",fe=/^xn--/,J=/[^\0-\x7E]/,me=/[\x2E\u3002\uFF0E\uFF61]/g,$e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=k-_,Oe=Math.floor,ve=String.fromCharCode;function xe(q){throw new RangeError($e[q])}function ue(q,P){for(var M=[],G=q.length;G--;)M[G]=P(q[G]);return M}function be(q,P){var M=q.split("@"),G="";M.length>1&&(G=M[0]+"@",q=M[1]),q=q.replace(me,".");var K=q.split("."),ae=ue(K,P).join(".");return G+ae}function He(q){for(var P=[],M=0,G=q.length;M<G;){var K=q.charCodeAt(M++);if(K>=55296&&K<=56319&&M<G){var ae=q.charCodeAt(M++);(ae&64512)==56320?P.push(((K&1023)<<10)+(ae&1023)+65536):(P.push(K),M--)}else P.push(K)}return P}var H=function(P){return String.fromCodePoint.apply(String,b(P))},ft=function(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:k},je=function(P,M){return P+22+75*(P<26)-((M!=0)<<5)},nt=function(P,M,G){var K=0;for(P=G?Oe(P/N):P>>1,P+=Oe(P/M);P>ke*T>>1;K+=k)P=Oe(P/ke);return Oe(K+(ke+1)*P/(P+L))},Ve=function(P){var M=[],G=P.length,K=0,ae=re,we=ee,Ae=P.lastIndexOf(de);Ae<0&&(Ae=0);for(var qe=0;qe<Ae;++qe)P.charCodeAt(qe)>=128&&xe("not-basic"),M.push(P.charCodeAt(qe));for(var tt=Ae>0?Ae+1:0;tt<G;){for(var _e=K,Ke=1,ut=k;;ut+=k){tt>=G&&xe("invalid-input");var Ze=ft(P.charCodeAt(tt++));(Ze>=k||Ze>Oe((v-K)/Ke))&&xe("overflow"),K+=Ze*Ke;var Te=ut<=we?_:ut>=we+T?T:ut-we;if(Ze<Te)break;var Xe=k-Te;Ke>Oe(v/Xe)&&xe("overflow"),Ke*=Xe}var Be=M.length+1;we=nt(K-_e,Be,_e==0),Oe(K/Be)>v-ae&&xe("overflow"),ae+=Oe(K/Be),K%=Be,M.splice(K++,0,ae)}return String.fromCodePoint.apply(String,M)},O=function(P){var M=[];P=He(P);var G=P.length,K=re,ae=0,we=ee,Ae=!0,qe=!1,tt=void 0;try{for(var _e=P[Symbol.iterator](),Ke;!(Ae=(Ke=_e.next()).done);Ae=!0){var ut=Ke.value;ut<128&&M.push(ve(ut))}}catch(zr){qe=!0,tt=zr}finally{try{!Ae&&_e.return&&_e.return()}finally{if(qe)throw tt}}var Ze=M.length,Te=Ze;for(Ze&&M.push(de);Te<G;){var Xe=v,Be=!0,Tr=!1,zt=void 0;try{for(var u=P[Symbol.iterator](),oe;!(Be=(oe=u.next()).done);Be=!0){var vt=oe.value;vt>=K&&vt<Xe&&(Xe=vt)}}catch(zr){Tr=!0,zt=zr}finally{try{!Be&&u.return&&u.return()}finally{if(Tr)throw zt}}var it=Te+1;Xe-K>Oe((v-ae)/it)&&xe("overflow"),ae+=(Xe-K)*it,K=Xe;var Jt=!0,j=!1,Mt=void 0;try{for(var Br=P[Symbol.iterator](),On;!(Jt=(On=Br.next()).done);Jt=!0){var qn=On.value;if(qn<K&&++ae>v&&xe("overflow"),qn==K){for(var rn=ae,De=k;;De+=k){var qt=De<=we?_:De>=we+T?T:De-we;if(rn<qt)break;var nn=rn-qt,Xn=k-qt;M.push(ve(je(qt+nn%Xn,0))),rn=Oe(nn/Xn)}M.push(ve(je(rn,0))),we=nt(ae,it,Te==Ze),ae=0,++Te}}}catch(zr){j=!0,Mt=zr}finally{try{!Jt&&Br.return&&Br.return()}finally{if(j)throw Mt}}++ae,++K}return M.join("")},D=function(P){return be(P,function(M){return fe.test(M)?Ve(M.slice(4).toLowerCase()):M})},Kt=function(P){return be(P,function(M){return J.test(M)?"xn--"+O(M):M})},Tt={version:"2.1.0",ucs2:{decode:He,encode:H},decode:Ve,encode:O,toASCII:Kt,toUnicode:D},at={};function mt(q){var P=q.charCodeAt(0),M=void 0;return P<16?M="%0"+P.toString(16).toUpperCase():P<128?M="%"+P.toString(16).toUpperCase():P<2048?M="%"+(P>>6|192).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase():M="%"+(P>>12|224).toString(16).toUpperCase()+"%"+(P>>6&63|128).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase(),M}function ht(q){for(var P="",M=0,G=q.length;M<G;){var K=parseInt(q.substr(M+1,2),16);if(K<128)P+=String.fromCharCode(K),M+=3;else if(K>=194&&K<224){if(G-M>=6){var ae=parseInt(q.substr(M+4,2),16);P+=String.fromCharCode((K&31)<<6|ae&63)}else P+=q.substr(M,6);M+=6}else if(K>=224){if(G-M>=9){var we=parseInt(q.substr(M+4,2),16),Ae=parseInt(q.substr(M+7,2),16);P+=String.fromCharCode((K&15)<<12|(we&63)<<6|Ae&63)}else P+=q.substr(M,9);M+=9}else P+=q.substr(M,3),M+=3}return P}function he(q,P){function M(G){var K=ht(G);return K.match(P.UNRESERVED)?K:G}return q.scheme&&(q.scheme=String(q.scheme).replace(P.PCT_ENCODED,M).toLowerCase().replace(P.NOT_SCHEME,"")),q.userinfo!==void 0&&(q.userinfo=String(q.userinfo).replace(P.PCT_ENCODED,M).replace(P.NOT_USERINFO,mt).replace(P.PCT_ENCODED,i)),q.host!==void 0&&(q.host=String(q.host).replace(P.PCT_ENCODED,M).toLowerCase().replace(P.NOT_HOST,mt).replace(P.PCT_ENCODED,i)),q.path!==void 0&&(q.path=String(q.path).replace(P.PCT_ENCODED,M).replace(q.scheme?P.NOT_PATH:P.NOT_PATH_NOSCHEME,mt).replace(P.PCT_ENCODED,i)),q.query!==void 0&&(q.query=String(q.query).replace(P.PCT_ENCODED,M).replace(P.NOT_QUERY,mt).replace(P.PCT_ENCODED,i)),q.fragment!==void 0&&(q.fragment=String(q.fragment).replace(P.PCT_ENCODED,M).replace(P.NOT_FRAGMENT,mt).replace(P.PCT_ENCODED,i)),q}function vr(q){return q.replace(/^0*(.*)/,"$1")||"0"}function Dt(q,P){var M=q.match(P.IPV4ADDRESS)||[],G=d(M,2),K=G[1];return K?K.split(".").map(vr).join("."):q}function Wt(q,P){var M=q.match(P.IPV6ADDRESS)||[],G=d(M,3),K=G[1],ae=G[2];if(K){for(var we=K.toLowerCase().split("::").reverse(),Ae=d(we,2),qe=Ae[0],tt=Ae[1],_e=tt?tt.split(":").map(vr):[],Ke=qe.split(":").map(vr),ut=P.IPV4ADDRESS.test(Ke[Ke.length-1]),Ze=ut?7:8,Te=Ke.length-Ze,Xe=Array(Ze),Be=0;Be<Ze;++Be)Xe[Be]=_e[Be]||Ke[Te+Be]||"";ut&&(Xe[Ze-1]=Dt(Xe[Ze-1],P));var Tr=Xe.reduce(function(it,Jt,j){if(!Jt||Jt==="0"){var Mt=it[it.length-1];Mt&&Mt.index+Mt.length===j?Mt.length++:it.push({index:j,length:1})}return it},[]),zt=Tr.sort(function(it,Jt){return Jt.length-it.length})[0],u=void 0;if(zt&&zt.length>1){var oe=Xe.slice(0,zt.index),vt=Xe.slice(zt.index+zt.length);u=oe.join(":")+"::"+vt.join(":")}else u=Xe.join(":");return ae&&(u+="%"+ae),u}else return q}var or=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,pr="".match(/(){0}/)[1]===void 0;function Zt(q){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M={},G=P.iri!==!1?h:f;P.reference==="suffix"&&(q=(P.scheme?P.scheme+":":"")+"//"+q);var K=q.match(or);if(K){pr?(M.scheme=K[1],M.userinfo=K[3],M.host=K[4],M.port=parseInt(K[5],10),M.path=K[6]||"",M.query=K[7],M.fragment=K[8],isNaN(M.port)&&(M.port=K[5])):(M.scheme=K[1]||void 0,M.userinfo=q.indexOf("@")!==-1?K[3]:void 0,M.host=q.indexOf("//")!==-1?K[4]:void 0,M.port=parseInt(K[5],10),M.path=K[6]||"",M.query=q.indexOf("?")!==-1?K[7]:void 0,M.fragment=q.indexOf("#")!==-1?K[8]:void 0,isNaN(M.port)&&(M.port=q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?K[4]:void 0)),M.host&&(M.host=Wt(Dt(M.host,G),G)),M.scheme===void 0&&M.userinfo===void 0&&M.host===void 0&&M.port===void 0&&!M.path&&M.query===void 0?M.reference="same-document":M.scheme===void 0?M.reference="relative":M.fragment===void 0?M.reference="absolute":M.reference="uri",P.reference&&P.reference!=="suffix"&&P.reference!==M.reference&&(M.error=M.error||"URI is not a "+P.reference+" reference.");var ae=at[(P.scheme||M.scheme||"").toLowerCase()];if(!P.unicodeSupport&&(!ae||!ae.unicodeSupport)){if(M.host&&(P.domainHost||ae&&ae.domainHost))try{M.host=Tt.toASCII(M.host.replace(G.PCT_ENCODED,ht).toLowerCase())}catch(we){M.error=M.error||"Host's domain name can not be converted to ASCII via punycode: "+we}he(M,f)}else he(M,G);ae&&ae.parse&&ae.parse(M,P)}else M.error=M.error||"URI can not be parsed.";return M}function Zn(q,P){var M=P.iri!==!1?h:f,G=[];return q.userinfo!==void 0&&(G.push(q.userinfo),G.push("@")),q.host!==void 0&&G.push(Wt(Dt(String(q.host),M),M).replace(M.IPV6ADDRESS,function(K,ae,we){return"["+ae+(we?"%25"+we:"")+"]"})),(typeof q.port=="number"||typeof q.port=="string")&&(G.push(":"),G.push(String(q.port))),G.length?G.join(""):void 0}var Sn=/^\.\.?\//,gt=/^\/\.(\/|$)/,yt=/^\/\.\.(\/|$)/,jt=/^\/?(?:.|\n)*?(?=\/|$)/;function bt(q){for(var P=[];q.length;)if(q.match(Sn))q=q.replace(Sn,"");else if(q.match(gt))q=q.replace(gt,"/");else if(q.match(yt))q=q.replace(yt,"/"),P.pop();else if(q==="."||q==="..")q="";else{var M=q.match(jt);if(M){var G=M[0];q=q.slice(G.length),P.push(G)}else throw new Error("Unexpected dot segment condition")}return P.join("")}function $t(q){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=P.iri?h:f,G=[],K=at[(P.scheme||q.scheme||"").toLowerCase()];if(K&&K.serialize&&K.serialize(q,P),q.host&&!M.IPV6ADDRESS.test(q.host)){if(P.domainHost||K&&K.domainHost)try{q.host=P.iri?Tt.toUnicode(q.host):Tt.toASCII(q.host.replace(M.PCT_ENCODED,ht).toLowerCase())}catch(Ae){q.error=q.error||"Host's domain name can not be converted to "+(P.iri?"Unicode":"ASCII")+" via punycode: "+Ae}}he(q,M),P.reference!=="suffix"&&q.scheme&&(G.push(q.scheme),G.push(":"));var ae=Zn(q,P);if(ae!==void 0&&(P.reference!=="suffix"&&G.push("//"),G.push(ae),q.path&&q.path.charAt(0)!=="/"&&G.push("/")),q.path!==void 0){var we=q.path;!P.absolutePath&&(!K||!K.absolutePath)&&(we=bt(we)),ae===void 0&&(we=we.replace(/^\/\//,"/%2F")),G.push(we)}return q.query!==void 0&&(G.push("?"),G.push(q.query)),q.fragment!==void 0&&(G.push("#"),G.push(q.fragment)),G.join("")}function kt(q,P){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=arguments[3],K={};return G||(q=Zt($t(q,M),M),P=Zt($t(P,M),M)),M=M||{},!M.tolerant&&P.scheme?(K.scheme=P.scheme,K.userinfo=P.userinfo,K.host=P.host,K.port=P.port,K.path=bt(P.path||""),K.query=P.query):(P.userinfo!==void 0||P.host!==void 0||P.port!==void 0?(K.userinfo=P.userinfo,K.host=P.host,K.port=P.port,K.path=bt(P.path||""),K.query=P.query):(P.path?(P.path.charAt(0)==="/"?K.path=bt(P.path):((q.userinfo!==void 0||q.host!==void 0||q.port!==void 0)&&!q.path?K.path="/"+P.path:q.path?K.path=q.path.slice(0,q.path.lastIndexOf("/")+1)+P.path:K.path=P.path,K.path=bt(K.path)),K.query=P.query):(K.path=q.path,P.query!==void 0?K.query=P.query:K.query=q.query),K.userinfo=q.userinfo,K.host=q.host,K.port=q.port),K.scheme=q.scheme),K.fragment=P.fragment,K}function pt(q,P,M){var G=a({scheme:"null"},M);return $t(kt(Zt(q,G),Zt(P,G),G,!0),G)}function It(q,P){return typeof q=="string"?q=$t(Zt(q,P),P):n(q)==="object"&&(q=Zt($t(q,P),P)),q}function Ft(q,P,M){return typeof q=="string"?q=$t(Zt(q,M),M):n(q)==="object"&&(q=$t(q,M)),typeof P=="string"?P=$t(Zt(P,M),M):n(P)==="object"&&(P=$t(P,M)),q===P}function xr(q,P){return q&&q.toString().replace(!P||!P.iri?f.ESCAPE:h.ESCAPE,mt)}function sr(q,P){return q&&q.toString().replace(!P||!P.iri?f.PCT_ENCODED:h.PCT_ENCODED,ht)}var W={scheme:"http",domainHost:!0,parse:function(P,M){return P.host||(P.error=P.error||"HTTP URIs must have a host."),P},serialize:function(P,M){var G=String(P.scheme).toLowerCase()==="https";return(P.port===(G?443:80)||P.port==="")&&(P.port=void 0),P.path||(P.path="/"),P}},ie={scheme:"https",domainHost:W.domainHost,parse:W.parse,serialize:W.serialize};function ye(q){return typeof q.secure=="boolean"?q.secure:String(q.scheme).toLowerCase()==="wss"}var Se={scheme:"ws",domainHost:!0,parse:function(P,M){var G=P;return G.secure=ye(G),G.resourceName=(G.path||"/")+(G.query?"?"+G.query:""),G.path=void 0,G.query=void 0,G},serialize:function(P,M){if((P.port===(ye(P)?443:80)||P.port==="")&&(P.port=void 0),typeof P.secure=="boolean"&&(P.scheme=P.secure?"wss":"ws",P.secure=void 0),P.resourceName){var G=P.resourceName.split("?"),K=d(G,2),ae=K[0],we=K[1];P.path=ae&&ae!=="/"?ae:void 0,P.query=we,P.resourceName=void 0}return P.fragment=void 0,P}},Ot={scheme:"wss",domainHost:Se.domainHost,parse:Se.parse,serialize:Se.serialize},jr={},Ue=!0,lt="[A-Za-z0-9\\-\\.\\_\\~"+(Ue?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",wt="[0-9A-Fa-f]",dr=e(e("%[EFef]"+wt+"%"+wt+wt+"%"+wt+wt)+"|"+e("%[89A-Fa-f]"+wt+"%"+wt+wt)+"|"+e("%"+wt+wt)),Ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",bn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Bt=r(bn,'[\\"\\\\]'),Pn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ii=new RegExp(lt,"g"),Pr=new RegExp(dr,"g"),Jn=new RegExp(r("[^]",Ge,"[\\.]",'[\\"]',Bt),"g"),Fi=new RegExp(r("[^]",lt,Pn),"g"),fo=Fi;function Tn(q){var P=ht(q);return P.match(Ii)?P:q}var Qn={scheme:"mailto",parse:function(P,M){var G=P,K=G.to=G.path?G.path.split(","):[];if(G.path=void 0,G.query){for(var ae=!1,we={},Ae=G.query.split("&"),qe=0,tt=Ae.length;qe<tt;++qe){var _e=Ae[qe].split("=");switch(_e[0]){case"to":for(var Ke=_e[1].split(","),ut=0,Ze=Ke.length;ut<Ze;++ut)K.push(Ke[ut]);break;case"subject":G.subject=sr(_e[1],M);break;case"body":G.body=sr(_e[1],M);break;default:ae=!0,we[sr(_e[0],M)]=sr(_e[1],M);break}}ae&&(G.headers=we)}G.query=void 0;for(var Te=0,Xe=K.length;Te<Xe;++Te){var Be=K[Te].split("@");if(Be[0]=sr(Be[0]),M.unicodeSupport)Be[1]=sr(Be[1],M).toLowerCase();else try{Be[1]=Tt.toASCII(sr(Be[1],M).toLowerCase())}catch(Tr){G.error=G.error||"Email address's domain name can not be converted to ASCII via punycode: "+Tr}K[Te]=Be.join("@")}return G},serialize:function(P,M){var G=P,K=o(P.to);if(K){for(var ae=0,we=K.length;ae<we;++ae){var Ae=String(K[ae]),qe=Ae.lastIndexOf("@"),tt=Ae.slice(0,qe).replace(Pr,Tn).replace(Pr,i).replace(Jn,mt),_e=Ae.slice(qe+1);try{_e=M.iri?Tt.toUnicode(_e):Tt.toASCII(sr(_e,M).toLowerCase())}catch(Te){G.error=G.error||"Email address's domain name can not be converted to "+(M.iri?"Unicode":"ASCII")+" via punycode: "+Te}K[ae]=tt+"@"+_e}G.path=K.join(",")}var Ke=P.headers=P.headers||{};P.subject&&(Ke.subject=P.subject),P.body&&(Ke.body=P.body);var ut=[];for(var Ze in Ke)Ke[Ze]!==jr[Ze]&&ut.push(Ze.replace(Pr,Tn).replace(Pr,i).replace(Fi,mt)+"="+Ke[Ze].replace(Pr,Tn).replace(Pr,i).replace(fo,mt));return ut.length&&(G.query=ut.join("&")),G}},In=/^([^\:]+)\:(.*)/,Fn={scheme:"urn",parse:function(P,M){var G=P.path&&P.path.match(In),K=P;if(G){var ae=M.scheme||K.scheme||"urn",we=G[1].toLowerCase(),Ae=G[2],qe=ae+":"+(M.nid||we),tt=at[qe];K.nid=we,K.nss=Ae,K.path=void 0,tt&&(K=tt.parse(K,M))}else K.error=K.error||"URN can not be parsed.";return K},serialize:function(P,M){var G=M.scheme||P.scheme||"urn",K=P.nid,ae=G+":"+(M.nid||K),we=at[ae];we&&(P=we.serialize(P,M));var Ae=P,qe=P.nss;return Ae.path=(K||M.nid)+":"+qe,Ae}},po=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,$n={scheme:"urn:uuid",parse:function(P,M){var G=P;return G.uuid=G.nss,G.nss=void 0,!M.tolerant&&(!G.uuid||!G.uuid.match(po))&&(G.error=G.error||"UUID is not valid."),G},serialize:function(P,M){var G=P;return G.nss=(P.uuid||"").toLowerCase(),G}};at[W.scheme]=W,at[ie.scheme]=ie,at[Se.scheme]=Se,at[Ot.scheme]=Ot,at[Qn.scheme]=Qn,at[Fn.scheme]=Fn,at[$n.scheme]=$n,t.SCHEMES=at,t.pctEncChar=mt,t.pctDecChars=ht,t.parse=Zt,t.removeDotSegments=bt,t.serialize=$t,t.resolveComponents=kt,t.resolve=pt,t.normalize=It,t.equal=Ft,t.escapeComponent=xr,t.unescapeComponent=sr,Object.defineProperty(t,"__esModule",{value:!0})})});var Io=ce(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.getSchemaRefs=br.resolveUrl=br.normalizeId=br._getFullPath=br.getFullPath=br.inlineRef=void 0;var Pg=dt(),Tg=To(),Ig=of(),Ss=al(),Fg=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Og(t,r=!0){return typeof t=="boolean"?!0:r===!0?!ll(t):r?af(t)<=r:!1}br.inlineRef=Og;var qg=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ll(t){for(let r in t){if(qg.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(ll)||typeof e=="object"&&ll(e))return!0}return!1}function af(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!Fg.has(e)&&(typeof t[e]=="object"&&Pg.eachItem(t[e],n=>r+=af(n)),r===1/0))return 1/0}return r}function lf(t="",r){r!==!1&&(t=Xi(t));let e=Ss.parse(t);return uf(e)}br.getFullPath=lf;function uf(t){return Ss.serialize(t).split("#")[0]+"#"}br._getFullPath=uf;var Dg=/#\/?$/;function Xi(t){return t?t.replace(Dg,""):""}br.normalizeId=Xi;function Ng(t,r){return r=Xi(r),Ss.resolve(t,r)}br.resolveUrl=Ng;var Rg=/^[a-z_][-a-z0-9._]*$/i;function Lg(t){if(typeof t=="boolean")return{};let r=Xi(t.$id),e={"":r},n=lf(r,!1),i={},o=new Set;return Ig(t,{allKeys:!0},(f,h,d,b)=>{if(b===void 0)return;let v=n+h,k=e[b];typeof f.$id=="string"&&(k=_.call(this,f.$id)),T.call(this,f.$anchor),T.call(this,f.$dynamicAnchor),e[h]=k;function _(L){if(L=Xi(k?Ss.resolve(k,L):L),o.has(L))throw c(L);o.add(L);let N=this.refs[L];return typeof N=="string"&&(N=this.refs[N]),typeof N=="object"?a(f,N.schema,L):L!==Xi(v)&&(L[0]==="#"?(a(f,i[L],L),i[L]=f):this.refs[L]=v),L}function T(L){if(typeof L=="string"){if(!Rg.test(L))throw new Error(`invalid anchor "${L}"`);_.call(this,`#${L}`)}}}),i;function a(f,h,d){if(h!==void 0&&!Tg(f,h))throw c(d)}function c(f){return new Error(`reference "${f}" resolves to more than one schema`)}}br.getSchemaRefs=Lg});var Ar=ce(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.checkStrictMode=dn.schemaCxtHasRules=dn.subschemaCode=dn.validateFunctionCode=void 0;var df=jc(),cf=Qi(),ff=tf(),Ne=Pe(),Ce=Zr(),jg=Io(),mf=dt();function Bg(t){if(gf(t)&&(yf(t),ul(t))){Vg(t);return}hf(t,()=>df.topBoolOrEmptySchema(t))}dn.validateFunctionCode=Bg;function hf({gen:t,validateName:r,schema:e,schemaEnv:n,opts:i},o){i.code.es5?t.func(r,Ne._`${Ce.default.data}, ${Ce.default.valCxt}`,n.$async,()=>{t.code(Ne._`"use strict"; ${pf(e,i)}`),Mg(t,i),t.code(o)}):t.func(r,Ne._`${Ce.default.data}, ${zg(i)}`,n.$async,()=>t.code(pf(e,i)).code(o))}function zg(t){return Ne._`{${Ce.default.dataPath}="", ${Ce.default.parentData}, ${Ce.default.parentDataProperty}, ${Ce.default.rootData}=${Ce.default.data}${t.dynamicRef?Ne._`, ${Ce.default.dynamicAnchors}={}`:Ne.nil}}={}`}function Mg(t,r){t.if(Ce.default.valCxt,()=>{t.var(Ce.default.dataPath,Ne._`${Ce.default.valCxt}.${Ce.default.dataPath}`),t.var(Ce.default.parentData,Ne._`${Ce.default.valCxt}.${Ce.default.parentData}`),t.var(Ce.default.parentDataProperty,Ne._`${Ce.default.valCxt}.${Ce.default.parentDataProperty}`),t.var(Ce.default.rootData,Ne._`${Ce.default.valCxt}.${Ce.default.rootData}`),r.dynamicRef&&t.var(Ce.default.dynamicAnchors,Ne._`${Ce.default.valCxt}.${Ce.default.dynamicAnchors}`)},()=>{t.var(Ce.default.dataPath,Ne._`""`),t.var(Ce.default.parentData,Ne._`undefined`),t.var(Ce.default.parentDataProperty,Ne._`undefined`),t.var(Ce.default.rootData,Ce.default.data),r.dynamicRef&&t.var(Ce.default.dynamicAnchors,Ne._`{}`)})}function Vg(t){let{schema:r,opts:e,gen:n}=t;hf(t,()=>{e.$comment&&r.$comment&&$f(t),Wg(t),n.let(Ce.default.vErrors,null),n.let(Ce.default.errors,0),e.unevaluated&&Ug(t),bf(t),Qg(t)})}function Ug(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Ne._`${e}.evaluated`),r.if(Ne._`${t.evaluated}.dynamicProps`,()=>r.assign(Ne._`${t.evaluated}.props`,Ne._`undefined`)),r.if(Ne._`${t.evaluated}.dynamicItems`,()=>r.assign(Ne._`${t.evaluated}.items`,Ne._`undefined`))}function pf(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Ne._`/*# sourceURL=${t.$id} */`:Ne.nil}function Hg(t,r){if(gf(t)&&(yf(t),ul(t))){Gg(t,r);return}df.boolOrEmptySchema(t,r)}dn.subschemaCode=Hg;function ul({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}dn.schemaCxtHasRules=ul;function gf(t){return typeof t.schema!="boolean"}function Gg(t,r){let{schema:e,gen:n,opts:i}=t;i.$comment&&e.$comment&&$f(t),Zg(t),Jg(t);let o=n.const("_errs",Ce.default.errors);bf(t,o),n.var(r,Ne._`${o} === ${Ce.default.errors}`)}function yf(t){mf.checkUnknownRules(t),Kg(t)}function bf(t,r){if(t.opts.jtd)return ff.schemaKeywords(t,[],!1,r);let e=cf.getSchemaTypes(t.schema),n=cf.coerceAndCheckDataType(t,e);ff.schemaKeywords(t,e,!n,r)}function Kg(t){let{schema:r,errSchemaPath:e,opts:n,self:i}=t;r.$ref&&n.ignoreKeywordsWithRef&&mf.schemaHasRulesButRef(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function Wg(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&kf(t,"default is ignored in the schema root")}function Zg(t){t.schema.$id&&(t.baseId=jg.resolveUrl(t.baseId,t.schema.$id))}function Jg(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function $f({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:i}){let o=e.$comment;if(i.$comment===!0)t.code(Ne._`${Ce.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=Ne.str`${n}/$comment`,c=t.scopeValue("root",{ref:r.root});t.code(Ne._`${Ce.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}function Qg(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:i,opts:o}=t;e.$async?r.if(Ne._`${Ce.default.errors} === 0`,()=>r.return(Ce.default.data),()=>r.throw(Ne._`new ${i}(${Ce.default.vErrors})`)):(r.assign(Ne._`${n}.errors`,Ce.default.vErrors),o.unevaluated&&Xg(t),r.return(Ne._`${Ce.default.errors} === 0`))}function Xg({gen:t,evaluated:r,props:e,items:n}){e instanceof Ne.Name&&t.assign(Ne._`${r}.props`,e),n instanceof Ne.Name&&t.assign(Ne._`${r}.items`,n)}function kf(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}dn.checkStrictMode=kf});var dt=ce(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.func=ze.setEvaluated=ze.evaluatedPropsToName=ze.mergeEvaluated=ze.eachItem=ze.unescapeJsonPointer=ze.escapeJsonPointer=ze.escapeFragment=ze.unescapeFragment=ze.schemaRefOrVal=ze.schemaHasRulesButRef=ze.schemaHasRules=ze.checkUnknownRules=ze.alwaysValidSchema=ze.toHash=void 0;var xt=Pe(),Yg=Ar();function ey(t){let r={};for(let e of t)r[e]=!0;return r}ze.toHash=ey;function ty(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(vf(t,r),!xf(r,t.self.RULES.all))}ze.alwaysValidSchema=ty;function vf(t,r=t.schema){let{opts:e,self:n}=t;if(!e.strict||typeof r=="boolean")return;let i=n.RULES.keywords;for(let o in r)i[o]||Yg.checkStrictMode(t,`unknown keyword: "${o}"`)}ze.checkUnknownRules=vf;function xf(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}ze.schemaHasRules=xf;function ry(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(e!=="$ref"&&r.all[e])return!0;return!1}ze.schemaHasRulesButRef=ry;function ny({topSchemaRef:t,schemaPath:r},e,n,i){if(!i){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return xt._`${e}`}return xt._`${t}${r}${xt.getProperty(n)}`}ze.schemaRefOrVal=ny;function iy(t){return Ef(decodeURIComponent(t))}ze.unescapeFragment=iy;function oy(t){return encodeURIComponent(Cf(t))}ze.escapeFragment=oy;function Cf(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}ze.escapeJsonPointer=Cf;function Ef(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}ze.unescapeJsonPointer=Ef;function sy(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}ze.eachItem=sy;function wf({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(i,o,a,c)=>{let f=a===void 0?o:a instanceof xt.Name?(o instanceof xt.Name?t(i,o,a):r(i,o,a),a):o instanceof xt.Name?(r(i,a,o),o):e(o,a);return c===xt.Name&&!(f instanceof xt.Name)?n(i,f):f}}ze.mergeEvaluated={props:wf({mergeNames:(t,r,e)=>t.if(xt._`${e} !== true && ${r} !== undefined`,()=>{t.if(xt._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,xt._`${e} || {}`).code(xt._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(xt._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,xt._`${e} || {}`),cl(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:_f}),items:wf({mergeNames:(t,r,e)=>t.if(xt._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,xt._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(xt._`${e} !== true`,()=>t.assign(e,r===!0?!0:xt._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function _f(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",xt._`{}`);return r!==void 0&&cl(t,e,r),e}ze.evaluatedPropsToName=_f;function cl(t,r,e){Object.keys(e).forEach(n=>t.assign(xt._`${r}${xt.getProperty(n)}`,!0))}ze.setEvaluated=cl;function ay(t,r){return t.scopeValue("func",{ref:r,code:r.code})}ze.func=ay});var Qi=ce(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.reportTypeError=Ut.checkDataTypes=Ut.checkDataType=Ut.coerceAndCheckDataType=Ut.getJSONTypes=Ut.getSchemaTypes=Ut.DataType=void 0;var ly=Na(),uy=Ra(),cy=So(),Ee=Pe(),Af=dt(),Fo;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Fo=Ut.DataType||(Ut.DataType={}));function fy(t){let r=Sf(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}Ut.getSchemaTypes=fy;function Sf(t){let r=Array.isArray(t)?t:t?[t]:[];if(r.every(ly.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}Ut.getJSONTypes=Sf;function py(t,r){let{gen:e,data:n,opts:i}=t,o=dy(r,i.coerceTypes),a=r.length>0&&!(o.length===0&&r.length===1&&uy.schemaHasRulesForType(t,r[0]));if(a){let c=pl(r,n,i.strict,Fo.Wrong);e.if(c,()=>{o.length?my(t,r,o):dl(t)})}return a}Ut.coerceAndCheckDataType=py;var Pf=new Set(["string","number","integer","boolean","null"]);function dy(t,r){return r?t.filter(e=>Pf.has(e)||r==="array"&&e==="array"):[]}function my(t,r,e){let{gen:n,data:i,opts:o}=t,a=n.let("dataType",Ee._`typeof ${i}`),c=n.let("coerced",Ee._`undefined`);o.coerceTypes==="array"&&n.if(Ee._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,Ee._`${i}[0]`).assign(a,Ee._`typeof ${i}`).if(pl(r,i,o.strict),()=>n.assign(c,i))),n.if(Ee._`${c} !== undefined`);for(let h of e)(Pf.has(h)||h==="array"&&o.coerceTypes==="array")&&f(h);n.else(),dl(t),n.endIf(),n.if(Ee._`${c} !== undefined`,()=>{n.assign(i,c),hy(t,c)});function f(h){switch(h){case"string":n.elseIf(Ee._`${a} == "number" || ${a} == "boolean"`).assign(c,Ee._`"" + ${i}`).elseIf(Ee._`${i} === null`).assign(c,Ee._`""`);return;case"number":n.elseIf(Ee._`${a} == "boolean" || ${i} === null
|
|
1
|
+
var ch=Object.create;var hs=Object.defineProperty;var fh=Object.getOwnPropertyDescriptor;var ph=Object.getOwnPropertyNames;var dh=Object.getPrototypeOf,mh=Object.prototype.hasOwnProperty;var ce=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Ac=(t,r)=>{for(var e in r)hs(t,e,{get:r[e],enumerable:!0})},Sc=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ph(r))!mh.call(t,i)&&i!==e&&hs(t,i,{get:()=>r[i],enumerable:!(n=fh(r,i))||n.enumerable});return t};var Nr=(t,r,e)=>(e=t!=null?ch(dh(t)):{},Sc(r||!t||!t.__esModule?hs(e,"default",{value:t,enumerable:!0}):e,t)),hh=t=>Sc(hs({},"__esModule",{value:!0}),t);var Na=ce(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.getRules=Gi.isJSONType=void 0;var gh=["string","number","integer","boolean","null","object","array"],yh=new Set(gh);function $h(t){return typeof t=="string"&&yh.has(t)}Gi.isJSONType=$h;function bh(){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:{}}}Gi.getRules=bh});var Ra=ce(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.shouldUseRule=Bn.shouldUseGroup=Bn.schemaHasRulesForType=void 0;function kh({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&Pc(t,n)}Bn.schemaHasRulesForType=kh;function Pc(t,r){return r.rules.some(e=>Tc(t,e))}Bn.shouldUseGroup=Pc;function Tc(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))}Bn.shouldUseRule=Tc});var gs=ce(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.getProperty=Je.safeStringify=Je.stringify=Je.strConcat=Je.addCodeArg=Je.str=Je._=Je.nil=Je._Code=Je.Name=Je.IDENTIFIER=Je._CodeOrName=void 0;var wo=class{};Je._CodeOrName=wo;Je.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var li=class extends wo{constructor(r){if(super(),!Je.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}}};Je.Name=li;var fn=class extends wo{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 li&&(e[n.str]=(e[n.str]||0)+1),e),{})}};Je._Code=fn;Je.nil=new fn("");function Ic(t,...r){let e=[t[0]],n=0;for(;n<r.length;)ja(e,r[n]),e.push(t[++n]);return new fn(e)}Je._=Ic;var La=new fn("+");function Fc(t,...r){let e=[vo(t[0])],n=0;for(;n<r.length;)e.push(La),ja(e,r[n]),e.push(La,vo(t[++n]));return wh(e),new fn(e)}Je.str=Fc;function ja(t,r){r instanceof fn?t.push(...r._items):r instanceof li?t.push(r):t.push(Ch(r))}Je.addCodeArg=ja;function wh(t){let r=1;for(;r<t.length-1;){if(t[r]===La){let e=vh(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function vh(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof li||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 li))return`"${t}${r.slice(1)}`}function xh(t,r){return r.emptyStr()?t:t.emptyStr()?r:Fc`${t}${r}`}Je.strConcat=xh;function Ch(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:vo(Array.isArray(t)?t.join(","):t)}function Eh(t){return new fn(vo(t))}Je.stringify=Eh;function vo(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Je.safeStringify=vo;function _h(t){return typeof t=="string"&&Je.IDENTIFIER.test(t)?new fn(`.${t}`):Ic`[${t}]`}Je.getProperty=_h});var Va=ce(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.ValueScope=lr.ValueScopeName=lr.Scope=lr.varKinds=lr.UsedValueState=void 0;var yr=gs(),Ba=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},za;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(za=lr.UsedValueState||(lr.UsedValueState={}));lr.varKinds={const:new yr.Name("const"),let:new yr.Name("let"),var:new yr.Name("var")};var ys=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof yr.Name?r:this.name(r)}name(r){return new yr.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}}};lr.Scope=ys;var $s=class extends yr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=yr._`.${new yr.Name(e)}[${n}]`}};lr.ValueScopeName=$s;var Ah=yr._`\n`,Ma=class extends ys{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?Ah:yr.nil}}get(){return this._scope}name(r){return new $s(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 i=this.toName(r),{prefix:o}=i,a=(n=e.key)!==null&&n!==void 0?n:e.ref,c=this._values[o];if(c){let d=c.get(a);if(d)return d}else c=this._values[o]=new Map;c.set(a,i);let f=this._scope[o]||(this._scope[o]=[]),h=f.length;return f[h]=e.ref,i.setValue(e,{property:o,itemIndex:h}),i}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 yr._`${r}${n.scopePath}`})}scopeCode(r=this._values,e,n){return this._reduceValues(r,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},e,n)}_reduceValues(r,e,n={},i){let o=yr.nil;for(let a in r){let c=r[a];if(!c)continue;let f=n[a]=n[a]||new Map;c.forEach(h=>{if(f.has(h))return;f.set(h,za.Started);let d=e(h);if(d){let $=this.opts.es5?lr.varKinds.var:lr.varKinds.const;o=yr._`${o}${$} ${h} = ${d};${this.opts._n}`}else if(d=i==null?void 0:i(h))o=yr._`${o}${d}${this.opts._n}`;else throw new Ba(h);f.set(h,za.Completed)})}return o}};lr.ValueScope=Ma});var Pe=ce(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.or=Ie.and=Ie.not=Ie.CodeGen=Ie.operators=Ie.varKinds=Ie.ValueScopeName=Ie.ValueScope=Ie.Scope=Ie.Name=Ie.stringify=Ie.getProperty=Ie.nil=Ie.strConcat=Ie.str=Ie._=void 0;var Re=gs(),Kr=Va(),fi=gs();Object.defineProperty(Ie,"_",{enumerable:!0,get:function(){return fi._}});Object.defineProperty(Ie,"str",{enumerable:!0,get:function(){return fi.str}});Object.defineProperty(Ie,"strConcat",{enumerable:!0,get:function(){return fi.strConcat}});Object.defineProperty(Ie,"nil",{enumerable:!0,get:function(){return fi.nil}});Object.defineProperty(Ie,"getProperty",{enumerable:!0,get:function(){return fi.getProperty}});Object.defineProperty(Ie,"stringify",{enumerable:!0,get:function(){return fi.stringify}});Object.defineProperty(Ie,"Name",{enumerable:!0,get:function(){return fi.Name}});var vs=Va();Object.defineProperty(Ie,"Scope",{enumerable:!0,get:function(){return vs.Scope}});Object.defineProperty(Ie,"ValueScope",{enumerable:!0,get:function(){return vs.ValueScope}});Object.defineProperty(Ie,"ValueScopeName",{enumerable:!0,get:function(){return vs.ValueScopeName}});Object.defineProperty(Ie,"varKinds",{enumerable:!0,get:function(){return vs.varKinds}});Ie.operators={GT:new Re._Code(">"),GTE:new Re._Code(">="),LT:new Re._Code("<"),LTE:new Re._Code("<="),EQ:new Re._Code("==="),NEQ:new Re._Code("!=="),NOT:new Re._Code("!"),OR:new Re._Code("||"),AND:new Re._Code("&&"),ADD:new Re._Code("+")};var xn=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},Ua=class extends xn{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?Kr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+e}optimizeNames(r,e){if(!!r[this.name.str])return this.rhs&&(this.rhs=Wi(this.rhs,r,e)),this}get names(){return this.rhs instanceof Re._CodeOrName?this.rhs.names:{}}},bs=class extends xn{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 Re.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=Wi(this.rhs,r,e),this}get names(){let r=this.lhs instanceof Re.Name?{}:{...this.lhs.names};return ws(r,this.rhs)}},Ha=class extends bs{constructor(r,e,n,i){super(r,n,i),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},Ga=class extends xn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},Ka=class extends xn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},Wa=class extends xn{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},Za=class extends xn{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=Wi(this.code,r,e),this}get names(){return this.code instanceof Re._CodeOrName?this.code.names:{}}},xo=class extends xn{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,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(r,e)||(Sh(r,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>ci(r,e.names),{})}},Cn=class extends xo{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},Ja=class extends xo{},Ki=class extends Cn{};Ki.kind="else";var Wr=class extends Cn{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 Ki(n):n}if(e)return r===!1?e instanceof Wr?e:e.nodes:this.nodes.length?this:new Wr(Oc(r),e instanceof Wr?[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=Wi(this.condition,r,e),this}get names(){let r=super.names;return ws(r,this.condition),this.else&&ci(r,this.else.names),r}};Wr.kind="if";var ui=class extends Cn{};ui.kind="for";var Qa=class extends ui{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=Wi(this.iteration,r,e),this}get names(){return ci(super.names,this.iteration.names)}},Xa=class extends ui{constructor(r,e,n,i){super(),this.varKind=r,this.name=e,this.from=n,this.to=i}render(r){let e=r.es5?Kr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${e} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(r)}get names(){let r=ws(super.names,this.from);return ws(r,this.to)}},ks=class extends ui{constructor(r,e,n,i){super(),this.loop=r,this.varKind=e,this.name=n,this.iterable=i}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=Wi(this.iterable,r,e),this}get names(){return ci(super.names,this.iterable.names)}},Co=class extends Cn{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)}};Co.kind="func";var Eo=class extends xo{render(r){return"return "+super.render(r)}};Eo.kind="return";var Ya=class extends Cn{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,i;return super.optimizeNames(r,e),(n=this.catch)===null||n===void 0||n.optimizeNames(r,e),(i=this.finally)===null||i===void 0||i.optimizeNames(r,e),this}get names(){let r=super.names;return this.catch&&ci(r,this.catch.names),this.finally&&ci(r,this.finally.names),r}},_o=class extends Cn{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};_o.kind="catch";var Ao=class extends Cn{render(r){return"finally"+super.render(r)}};Ao.kind="finally";var el=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
|
|
2
|
+
`:""},this._extScope=r,this._scope=new Kr.Scope({parent:r}),this._nodes=[new Ja]}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,i){let o=this._scope.toName(e);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Ua(r,o,n)),o}const(r,e,n){return this._def(Kr.varKinds.const,r,e,n)}let(r,e,n){return this._def(Kr.varKinds.let,r,e,n)}var(r,e,n){return this._def(Kr.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new bs(r,e,n))}add(r,e){return this._leafNode(new Ha(r,Ie.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==Re.nil&&this._leafNode(new Za(r)),this}object(...r){let e=["{"];for(let[n,i]of r)e.length>1&&e.push(","),e.push(n),(n!==i||this.opts.es5)&&(e.push(":"),Re.addCodeArg(e,i));return e.push("}"),new Re._Code(e)}if(r,e,n){if(this._blockNode(new Wr(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 Wr(r))}else(){return this._elseNode(new Ki)}endIf(){return this._endBlockNode(Wr,Ki)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new Qa(r),e)}forRange(r,e,n,i,o=this.opts.es5?Kr.varKinds.var:Kr.varKinds.let){let a=this._scope.toName(r);return this._for(new Xa(o,a,e,n),()=>i(a))}forOf(r,e,n,i=Kr.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let a=e instanceof Re.Name?e:this.var("_arr",e);return this.forRange("_i",0,Re._`${a}.length`,c=>{this.var(o,Re._`${a}[${c}]`),n(o)})}return this._for(new ks("of",i,o,e),()=>n(o))}forIn(r,e,n,i=this.opts.es5?Kr.varKinds.var:Kr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,Re._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new ks("in",i,o,e),()=>n(o))}endFor(){return this._endBlockNode(ui)}label(r){return this._leafNode(new Ga(r))}break(r){return this._leafNode(new Ka(r))}return(r){let e=new Eo;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Eo)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Ya;if(this._blockNode(i),this.code(r),e){let o=this.name("e");this._currNode=i.catch=new _o(o),e(o)}return n&&(this._currNode=i.finally=new Ao,this.code(n)),this._endBlockNode(_o,Ao)}throw(r){return this._leafNode(new Wa(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=Re.nil,n,i){return this._blockNode(new Co(r,e,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Co)}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 Wr))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}};Ie.CodeGen=el;function ci(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function ws(t,r){return r instanceof Re._CodeOrName?ci(t,r.names):t}function Wi(t,r,e){if(t instanceof Re.Name)return n(t);if(!i(t))return t;return new Re._Code(t._items.reduce((o,a)=>(a instanceof Re.Name&&(a=n(a)),a instanceof Re._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=e[o.str];return a===void 0||r[o.str]!==1?o:(delete r[o.str],a)}function i(o){return o instanceof Re._Code&&o._items.some(a=>a instanceof Re.Name&&r[a.str]===1&&e[a.str]!==void 0)}}function Sh(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function Oc(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:Re._`!${tl(t)}`}Ie.not=Oc;var Ph=qc(Ie.operators.AND);function Th(...t){return t.reduce(Ph)}Ie.and=Th;var Ih=qc(Ie.operators.OR);function Fh(...t){return t.reduce(Ih)}Ie.or=Fh;function qc(t){return(r,e)=>r===Re.nil?e:e===Re.nil?r:Re._`${tl(r)} ${t} ${tl(e)}`}function tl(t){return t instanceof Re.Name?t:Re._`(${t})`}});var Zr=ce(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var Xt=Pe(),Oh={data:new Xt.Name("data"),valCxt:new Xt.Name("valCxt"),dataPath:new Xt.Name("dataPath"),parentData:new Xt.Name("parentData"),parentDataProperty:new Xt.Name("parentDataProperty"),rootData:new Xt.Name("rootData"),dynamicAnchors:new Xt.Name("dynamicAnchors"),vErrors:new Xt.Name("vErrors"),errors:new Xt.Name("errors"),this:new Xt.Name("this"),self:new Xt.Name("self"),scope:new Xt.Name("scope"),json:new Xt.Name("json"),jsonPos:new Xt.Name("jsonPos"),jsonLen:new Xt.Name("jsonLen"),jsonPart:new Xt.Name("jsonPart")};rl.default=Oh});var So=ce(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.extendErrors=Yt.resetErrorsCount=Yt.reportExtraError=Yt.reportError=Yt.keyword$DataError=Yt.keywordError=void 0;var Le=Pe(),er=Zr();Yt.keywordError={message:({keyword:t})=>Le.str`should pass "${t}" keyword validation`};Yt.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Le.str`"${t}" keyword must be ${r} ($data)`:Le.str`"${t}" keyword is invalid ($data)`};function qh(t,r=Yt.keywordError,e){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n,c=Rc(t,r);e??(o||a)?Dc(i,c):Nc(n,Le._`[${c}]`)}Yt.reportError=qh;function Dh(t,r=Yt.keywordError){let{it:e}=t,{gen:n,compositeRule:i,allErrors:o}=e,a=Rc(t,r);Dc(n,a),i||o||Nc(e,er.default.vErrors)}Yt.reportExtraError=Dh;function Nh(t,r){t.assign(er.default.errors,r),t.if(Le._`${er.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Le._`${er.default.vErrors}.length`,r),()=>t.assign(er.default.vErrors,null)))}Yt.resetErrorsCount=Nh;function Rh({gen:t,keyword:r,schemaValue:e,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=t.name("err");t.forRange("i",i,er.default.errors,c=>{t.const(a,Le._`${er.default.vErrors}[${c}]`),t.if(Le._`${a}.dataPath === undefined`,()=>t.assign(Le._`${a}.dataPath`,Le.strConcat(er.default.dataPath,o.errorPath))),t.assign(Le._`${a}.schemaPath`,Le.str`${o.errSchemaPath}/${r}`),o.opts.verbose&&(t.assign(Le._`${a}.schema`,e),t.assign(Le._`${a}.data`,n))})}Yt.extendErrors=Rh;function Dc(t,r){let e=t.const("err",r);t.if(Le._`${er.default.vErrors} === null`,()=>t.assign(er.default.vErrors,Le._`[${e}]`),Le._`${er.default.vErrors}.push(${e})`),t.code(Le._`${er.default.errors}++`)}function Nc(t,r){let{gen:e,validateName:n,schemaEnv:i}=t;i.$async?e.throw(Le._`new ${t.ValidationError}(${r})`):(e.assign(Le._`${n}.errors`,r),e.return(!1))}var pn={keyword:new Le.Name("keyword"),schemaPath:new Le.Name("schemaPath"),params:new Le.Name("params"),propertyName:new Le.Name("propertyName"),message:new Le.Name("message"),schema:new Le.Name("schema"),parentSchema:new Le.Name("parentSchema"),instancePath:new Le.Name("instancePath")};function Rc(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Le._`{}`:(n.jtd&&!n.ajvErrors?Lh:jh)(t,r)}function Lh(t,{message:r}){let{gen:e,keyword:n,it:i}=t,{errorPath:o,errSchemaPath:a,opts:c}=i,f=[[pn.instancePath,Le.strConcat(er.default.dataPath,o)],[pn.schemaPath,Le.str`${a}/${n}`]];return c.messages&&f.push([pn.message,typeof r=="function"?r(t):r]),e.object(...f)}function jh(t,r){let{gen:e,keyword:n,data:i,schemaValue:o,it:a}=t,{topSchemaRef:c,schemaPath:f,errorPath:h,errSchemaPath:d,propertyName:$,opts:v}=a,{params:k,message:_}=r,T=[[pn.keyword,n],[er.default.dataPath,Le.strConcat(er.default.dataPath,h)],[pn.schemaPath,Le.str`${d}/${n}`],[pn.params,typeof k=="function"?k(t):k||Le._`{}`]];return $&&T.push([pn.propertyName,$]),v.messages&&T.push([pn.message,typeof _=="function"?_(t):_]),v.verbose&&T.push([pn.schema,o],[pn.parentSchema,Le._`${c}${f}`],[er.default.data,i]),e.object(...T)}});var jc=ce(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.boolOrEmptySchema=Zi.topBoolOrEmptySchema=void 0;var Bh=So(),zh=Pe(),Mh=Zr(),Vh={message:"boolean schema is false"};function Uh(t){let{gen:r,schema:e,validateName:n}=t;e===!1?Lc(t,!1):typeof e=="object"&&e.$async===!0?r.return(Mh.default.data):(r.assign(zh._`${n}.errors`,null),r.return(!0))}Zi.topBoolOrEmptySchema=Uh;function Hh(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),Lc(t)):e.var(r,!0)}Zi.boolOrEmptySchema=Hh;function Lc(t,r){let{gen:e,data:n}=t,i={gen:e,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};Bh.reportError(i,Vh,r)}});var zc=ce(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.assignDefaults=void 0;var Ji=Pe(),Gh=Ar();function Kh(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let i in e)Bc(t,i,e[i].default);else r==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Bc(t,o,i.default))}xs.assignDefaults=Kh;function Bc(t,r,e){let{gen:n,compositeRule:i,data:o,opts:a}=t;if(e===void 0)return;let c=Ji._`${o}${Ji.getProperty(r)}`;if(i){Gh.checkStrictMode(t,`default is ignored for: ${c}`);return}let f=Ji._`${c} === undefined`;a.useDefaults==="empty"&&(f=Ji._`${f} || ${c} === null || ${c} === ""`),n.if(f,Ji._`${c} = ${Ji.stringify(e)}`)}});var di=ce(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.applySubschema=pi.Type=void 0;var Wh=Ar(),Mc=dt(),tr=Pe(),Vc;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Vc=pi.Type||(pi.Type={}));function Zh(t,r,e){let n=Jh(t,r);Qh(n,t,r),Xh(n,r);let i={...t,...n,items:void 0,props:void 0};return Wh.subschemaCode(i,e),i}pi.applySubschema=Zh;function Jh(t,{keyword:r,schemaProp:e,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let c=t.schema[r];return e===void 0?{schema:c,schemaPath:tr._`${t.schemaPath}${tr.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:c[e],schemaPath:tr._`${t.schemaPath}${tr.getProperty(r)}${tr.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${Mc.escapeFragment(e)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function Qh(t,r,{dataProp:e,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&e!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=r;if(e!==void 0){let{errorPath:h,dataPathArr:d,opts:$}=r,v=c.let("data",tr._`${r.data}${tr.getProperty(e)}`,!0);f(v),t.errorPath=tr.str`${h}${Yh(e,n,$.jsPropertySyntax)}`,t.parentDataProperty=tr._`${e}`,t.dataPathArr=[...d,t.parentDataProperty]}if(i!==void 0){let h=i instanceof tr.Name?i:c.let("data",i,!0);f(h),a!==void 0&&(t.propertyName=a)}o&&(t.dataTypes=o);function f(h){t.data=h,t.dataLevel=r.dataLevel+1,t.dataTypes=[],r.definedProperties=new Set,t.parentData=r.data,t.dataNames=[...r.dataNames,h]}}function Xh(t,{jtdDiscriminator:r,jtdMetadata:e,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=r,t.jtdMetadata=e}function Yh(t,r,e){if(t instanceof tr.Name){let n=r===Vc.Num;return e?n?tr._`"[" + ${t} + "]"`:tr._`"['" + ${t} + "']"`:n?tr._`"/" + ${t}`:tr._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?tr.getProperty(t).toString():"/"+Mc.escapeJsonPointer(t)}});var Jr=ce(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.validateUnion=Qe.validateArray=Qe.usePattern=Qe.callValidateCode=Qe.schemaProperties=Qe.allSchemaProperties=Qe.noPropertyInData=Qe.propertyInData=Qe.isOwnProperty=Qe.hasPropFunc=Qe.reportMissingProp=Qe.checkMissingProp=Qe.checkReportMissingProp=void 0;var ct=Pe(),Uc=dt(),eg=di(),zn=Zr();function tg(t,r){let{gen:e,data:n,it:i}=t;e.if(il(e,n,r,i.opts.ownProperties),()=>{t.setParams({missingProperty:ct._`${r}`},!0),t.error()})}Qe.checkReportMissingProp=tg;function rg({gen:t,data:r,it:{opts:e}},n,i){return ct.or(...n.map(o=>ct.and(il(t,r,o,e.ownProperties),ct._`${i} = ${o}`)))}Qe.checkMissingProp=rg;function ng(t,r){t.setParams({missingProperty:r},!0),t.error()}Qe.reportMissingProp=ng;function Hc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:ct._`Object.prototype.hasOwnProperty`})}Qe.hasPropFunc=Hc;function nl(t,r,e){return ct._`${Hc(t)}.call(${r}, ${e})`}Qe.isOwnProperty=nl;function ig(t,r,e,n){let i=ct._`${r}${ct.getProperty(e)} !== undefined`;return n?ct._`${i} && ${nl(t,r,e)}`:i}Qe.propertyInData=ig;function il(t,r,e,n){let i=ct._`${r}${ct.getProperty(e)} === undefined`;return n?ct.or(i,ct.not(nl(t,r,e))):i}Qe.noPropertyInData=il;function Gc(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}Qe.allSchemaProperties=Gc;function og(t,r){return Gc(r).filter(e=>!Uc.alwaysValidSchema(t,r[e]))}Qe.schemaProperties=og;function sg({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,f,h){let d=h?ct._`${t}, ${r}, ${n}${i}`:r,$=[[zn.default.dataPath,ct.strConcat(zn.default.dataPath,o)],[zn.default.parentData,a.parentData],[zn.default.parentDataProperty,a.parentDataProperty],[zn.default.rootData,zn.default.rootData]];a.opts.dynamicRef&&$.push([zn.default.dynamicAnchors,zn.default.dynamicAnchors]);let v=ct._`${d}, ${e.object(...$)}`;return f!==ct.nil?ct._`${c}.call(${f}, ${v})`:ct._`${c}(${v})`}Qe.callValidateCode=sg;function ag(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:ct._`new RegExp(${r}, "u")`})}Qe.usePattern=ag;function lg(t){let{gen:r,data:e,keyword:n,it:i}=t,o=r.name("valid");if(i.allErrors){let c=r.let("valid",!0);return a(()=>r.assign(c,!1)),c}return r.var(o,!0),a(()=>r.break()),o;function a(c){let f=r.const("len",ct._`${e}.length`);r.forRange("i",0,f,h=>{t.subschema({keyword:n,dataProp:h,dataPropType:eg.Type.Num},o),r.if(ct.not(o),c)})}}Qe.validateArray=lg;function ug(t){let{gen:r,schema:e,keyword:n,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(f=>Uc.alwaysValidSchema(i,f))&&!i.opts.unevaluated)return;let a=r.let("valid",!1),c=r.name("_valid");r.block(()=>e.forEach((f,h)=>{let d=t.subschema({keyword:n,schemaProp:h,compositeRule:!0},c);r.assign(a,ct._`${a} || ${c}`),t.mergeValidEvaluated(d,c)||r.if(ct.not(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Qe.validateUnion=ug});var Jc=ce(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.keywordCode=void 0;var cg=Po(),fg=So(),pg=Jr(),ur=Pe(),mi=Zr();function dg(t,r,e,n){let i=new cg.default(t,e,r);"code"in e?e.code(i,n):i.$data&&e.validate?Kc(i,e):"macro"in e?mg(i,e):(e.compile||e.validate)&&Kc(i,e)}Cs.keywordCode=dg;function mg(t,r){let{gen:e,keyword:n,schema:i,parentSchema:o,it:a}=t,c=r.macro.call(a.self,i,o,a),f=Zc(e,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let h=e.name("valid");t.subschema({schema:c,schemaPath:ur.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:f,compositeRule:!0},h),t.pass(h,()=>t.error(!0))}function Kc(t,r){var e;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:f}=t;gg(f,r);let h=!c&&r.compile?r.compile.call(f.self,o,a,f):r.validate,d=Zc(n,i,h),$=n.let("valid");t.block$data($,v),t.ok((e=r.valid)!==null&&e!==void 0?e:$);function v(){if(r.errors===!1)T(),r.modifying&&Wc(t),L(()=>t.error());else{let N=r.async?k():_();r.modifying&&Wc(t),L(()=>hg(t,N))}}function k(){let N=n.let("ruleErrs",null);return n.try(()=>T(ur._`await `),ee=>n.assign($,!1).if(ur._`${ee} instanceof ${f.ValidationError}`,()=>n.assign(N,ur._`${ee}.errors`),()=>n.throw(ee))),N}function _(){let N=ur._`${d}.errors`;return n.assign(N,null),T(ur.nil),N}function T(N=r.async?ur._`await `:ur.nil){let ee=f.opts.passContext?mi.default.this:mi.default.self,re=!("compile"in r&&!c||r.schema===!1);n.assign($,ur._`${N}${pg.callValidateCode(t,d,ee,re)}`,r.modifying)}function L(N){var ee;n.if(ur.not((ee=r.valid)!==null&&ee!==void 0?ee:$),N)}}function Wc(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,ur._`${n.parentData}[${n.parentDataProperty}]`))}function hg(t,r){let{gen:e}=t;e.if(ur._`Array.isArray(${r})`,()=>{e.assign(mi.default.vErrors,ur._`${mi.default.vErrors} === null ? ${r} : ${mi.default.vErrors}.concat(${r})`).assign(mi.default.errors,ur._`${mi.default.vErrors}.length`),fg.extendErrors(t)},()=>t.error())}function gg({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function Zc(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:ur.stringify(e)})}});var tf=ce(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.schemaKeywords=void 0;var ol=Ra(),Qc=Qi(),yg=zc(),ef=Jc(),$g=dt(),bg=Ar(),kg=Pe(),wg=Zr();function vg(t,r,e,n){let{gen:i,schema:o,data:a,allErrors:c,opts:f,self:h}=t,{RULES:d}=h;if(o.$ref&&(f.ignoreKeywordsWithRef||!$g.schemaHasRulesButRef(o,d))){i.block(()=>ef.keywordCode(t,"$ref",d.all.$ref.definition));return}f.jtd||xg(t,r),i.block(()=>{for(let v of d.rules)$(v);$(d.post)});function $(v){!ol.shouldUseGroup(o,v)||(v.type?(i.if(Qc.checkDataType(v.type,a,f.strict)),Xc(t,v),r.length===1&&r[0]===v.type&&e&&(i.else(),Qc.reportTypeError(t)),i.endIf()):Xc(t,v),c||i.if(kg._`${wg.default.errors} === ${n||0}`))}}Es.schemaKeywords=vg;function Xc(t,r){let{gen:e,schema:n,opts:{useDefaults:i}}=t;i&&yg.assignDefaults(t,r.type),e.block(()=>{for(let o of r.rules)ol.shouldUseRule(n,o)&&ef.keywordCode(t,o.keyword,o.definition,r.type)})}function xg(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(Cg(t,r),t.opts.allowUnionTypes||Eg(t,r),_g(t,t.dataTypes))}function Cg(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{Yc(t.dataTypes,e)||sl(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>Yc(r,e))}}function Eg(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&sl(t,"use allowUnionTypes to allow union type keyword")}function _g(t,r){let e=t.self.RULES.all;for(let n in e){let i=e[n];if(typeof i=="object"&&ol.shouldUseRule(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>Ag(r,a))&&sl(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Ag(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function Yc(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function sl(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,bg.checkStrictMode(t,r,t.opts.strictTypes)}});var To=ce((F1,rf)=>{"use strict";rf.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,i,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(i=n;i--!==0;)if(!t(r[i],e[i]))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(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}});var of=ce((O1,nf)=>{"use strict";var Mn=nf.exports=function(t,r,e){typeof r=="function"&&(e=r,r={}),e=r.cb||e;var n=typeof e=="function"?e:e.pre||function(){},i=e.post||function(){};_s(r,n,i,t,"",t)};Mn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Mn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Mn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Mn.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 _s(t,r,e,n,i,o,a,c,f,h){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,o,a,c,f,h);for(var d in n){var $=n[d];if(Array.isArray($)){if(d in Mn.arrayKeywords)for(var v=0;v<$.length;v++)_s(t,r,e,$[v],i+"/"+d+"/"+v,o,i,d,n,v)}else if(d in Mn.propsKeywords){if($&&typeof $=="object")for(var k in $)_s(t,r,e,$[k],i+"/"+d+"/"+Sg(k),o,i,d,n,k)}else(d in Mn.keywords||t.allKeys&&!(d in Mn.skipKeywords))&&_s(t,r,e,$,i+"/"+d,o,i,d,n)}e(n,i,o,a,c,f,h)}}function Sg(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var al=ce((As,sf)=>{(function(t,r){typeof As=="object"&&typeof sf<"u"?r(As):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(As,function(t){"use strict";function r(){for(var q=arguments.length,P=Array(q),M=0;M<q;M++)P[M]=arguments[M];if(P.length>1){P[0]=P[0].slice(0,-1);for(var G=P.length-1,K=1;K<G;++K)P[K]=P[K].slice(1,-1);return P[G]=P[G].slice(1),P.join("")}else return P[0]}function e(q){return"(?:"+q+")"}function n(q){return q===void 0?"undefined":q===null?"null":Object.prototype.toString.call(q).split(" ").pop().split("]").shift().toLowerCase()}function i(q){return q.toUpperCase()}function o(q){return q!=null?q instanceof Array?q:typeof q.length!="number"||q.split||q.setInterval||q.call?[q]:Array.prototype.slice.call(q):[]}function a(q,P){var M=q;if(P)for(var G in P)M[G]=P[G];return M}function c(q){var P="[A-Za-z]",M="[\\x0D]",G="[0-9]",K="[\\x22]",ae=r(G,"[A-Fa-f]"),we="[\\x0A]",Ae="[\\x20]",qe=e(e("%[EFef]"+ae+"%"+ae+ae+"%"+ae+ae)+"|"+e("%[89A-Fa-f]"+ae+"%"+ae+ae)+"|"+e("%"+ae+ae)),tt="[\\:\\/\\?\\#\\[\\]\\@]",_e="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ke=r(tt,_e),ut=q?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ze=q?"[\\uE000-\\uF8FF]":"[]",Te=r(P,G,"[\\-\\.\\_\\~]",ut),Xe=e(P+r(P,G,"[\\+\\-\\.]")+"*"),Be=e(e(qe+"|"+r(Te,_e,"[\\:]"))+"*"),Tr=e(e("25[0-5]")+"|"+e("2[0-4]"+G)+"|"+e("1"+G+G)+"|"+e("[1-9]"+G)+"|"+G),zt=e(e("25[0-5]")+"|"+e("2[0-4]"+G)+"|"+e("1"+G+G)+"|"+e("0?[1-9]"+G)+"|0?0?"+G),u=e(zt+"\\."+zt+"\\."+zt+"\\."+zt),oe=e(ae+"{1,4}"),vt=e(e(oe+"\\:"+oe)+"|"+u),it=e(e(oe+"\\:")+"{6}"+vt),Jt=e("\\:\\:"+e(oe+"\\:")+"{5}"+vt),j=e(e(oe)+"?\\:\\:"+e(oe+"\\:")+"{4}"+vt),Mt=e(e(e(oe+"\\:")+"{0,1}"+oe)+"?\\:\\:"+e(oe+"\\:")+"{3}"+vt),Br=e(e(e(oe+"\\:")+"{0,2}"+oe)+"?\\:\\:"+e(oe+"\\:")+"{2}"+vt),On=e(e(e(oe+"\\:")+"{0,3}"+oe)+"?\\:\\:"+oe+"\\:"+vt),qn=e(e(e(oe+"\\:")+"{0,4}"+oe)+"?\\:\\:"+vt),rn=e(e(e(oe+"\\:")+"{0,5}"+oe)+"?\\:\\:"+oe),De=e(e(e(oe+"\\:")+"{0,6}"+oe)+"?\\:\\:"),qt=e([it,Jt,j,Mt,Br,On,qn,rn,De].join("|")),nn=e(e(Te+"|"+qe)+"+"),Xn=e(qt+"\\%25"+nn),zr=e(qt+e("\\%25|\\%(?!"+ae+"{2})")+nn),Yn=e("[vV]"+ae+"+\\."+r(Te,_e,"[\\:]")+"+"),on=e("\\["+e(zr+"|"+qt+"|"+Yn)+"\\]"),X=e(e(qe+"|"+r(Te,_e))+"*"),kn=e(on+"|"+u+"(?!"+X+")|"+X),Ir=e(G+"*"),ei=e(e(Be+"@")+"?"+kn+e("\\:"+Ir)+"?"),Cr=e(qe+"|"+r(Te,_e,"[\\:\\@]")),Oi=e(Cr+"*"),qi=e(Cr+"+"),ti=e(e(qe+"|"+r(Te,_e,"[\\@]"))+"+"),Et=e(e("\\/"+Oi)+"*"),Mr=e("\\/"+e(qi+Et)+"?"),ri=e(ti+Et),Dn=e(qi+Et),Vr="(?!"+Cr+")",mo=e(Et+"|"+Mr+"|"+ri+"|"+Dn+"|"+Vr),Fr=e(e(Cr+"|"+r("[\\/\\?]",Ze))+"*"),sn=e(e(Cr+"|[\\/\\?]")+"*"),Er=e(e("\\/\\/"+ei+Et)+"|"+Mr+"|"+Dn+"|"+Vr),Nn=e(Xe+"\\:"+Er+e("\\?"+Fr)+"?"+e("\\#"+sn)+"?"),wn=e(e("\\/\\/"+ei+Et)+"|"+Mr+"|"+ri+"|"+Vr),mr=e(wn+e("\\?"+Fr)+"?"+e("\\#"+sn)+"?"),Yo=e(Nn+"|"+mr),ho=e(Xe+"\\:"+Er+e("\\?"+Fr)+"?"),Ur="^("+Xe+")\\:"+e(e("\\/\\/("+e("("+Be+")@")+"?("+kn+")"+e("\\:("+Ir+")")+"?)")+"?("+Et+"|"+Mr+"|"+Dn+"|"+Vr+")")+e("\\?("+Fr+")")+"?"+e("\\#("+sn+")")+"?$",Rn="^(){0}"+e(e("\\/\\/("+e("("+Be+")@")+"?("+kn+")"+e("\\:("+Ir+")")+"?)")+"?("+Et+"|"+Mr+"|"+ri+"|"+Vr+")")+e("\\?("+Fr+")")+"?"+e("\\#("+sn+")")+"?$",go="^("+Xe+")\\:"+e(e("\\/\\/("+e("("+Be+")@")+"?("+kn+")"+e("\\:("+Ir+")")+"?)")+"?("+Et+"|"+Mr+"|"+Dn+"|"+Vr+")")+e("\\?("+Fr+")")+"?$",yo="^"+e("\\#("+sn+")")+"?$",es="^"+e("("+Be+")@")+"?("+kn+")"+e("\\:("+Ir+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",P,G,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",Te,_e),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",Te,_e),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",Te,_e),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",Te,_e),"g"),NOT_QUERY:new RegExp(r("[^\\%]",Te,_e,"[\\:\\@\\/\\?]",Ze),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",Te,_e,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",Te,_e),"g"),UNRESERVED:new RegExp(Te,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",Te,Ke),"g"),PCT_ENCODED:new RegExp(qe,"g"),IPV4ADDRESS:new RegExp("^("+u+")$"),IPV6ADDRESS:new RegExp("^\\[?("+qt+")"+e(e("\\%25|\\%(?!"+ae+"{2})")+"("+nn+")")+"?\\]?$")}}var f=c(!1),h=c(!0),d=function(){function q(P,M){var G=[],K=!0,ae=!1,we=void 0;try{for(var Ae=P[Symbol.iterator](),qe;!(K=(qe=Ae.next()).done)&&(G.push(qe.value),!(M&&G.length===M));K=!0);}catch(tt){ae=!0,we=tt}finally{try{!K&&Ae.return&&Ae.return()}finally{if(ae)throw we}}return G}return function(P,M){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return q(P,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),$=function(q){if(Array.isArray(q)){for(var P=0,M=Array(q.length);P<q.length;P++)M[P]=q[P];return M}else return Array.from(q)},v=2147483647,k=36,_=1,T=26,L=38,N=700,ee=72,re=128,de="-",fe=/^xn--/,J=/[^\0-\x7E]/,me=/[\x2E\u3002\uFF0E\uFF61]/g,be={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=k-_,Oe=Math.floor,ve=String.fromCharCode;function xe(q){throw new RangeError(be[q])}function ue(q,P){for(var M=[],G=q.length;G--;)M[G]=P(q[G]);return M}function $e(q,P){var M=q.split("@"),G="";M.length>1&&(G=M[0]+"@",q=M[1]),q=q.replace(me,".");var K=q.split("."),ae=ue(K,P).join(".");return G+ae}function He(q){for(var P=[],M=0,G=q.length;M<G;){var K=q.charCodeAt(M++);if(K>=55296&&K<=56319&&M<G){var ae=q.charCodeAt(M++);(ae&64512)==56320?P.push(((K&1023)<<10)+(ae&1023)+65536):(P.push(K),M--)}else P.push(K)}return P}var H=function(P){return String.fromCodePoint.apply(String,$(P))},ft=function(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:k},je=function(P,M){return P+22+75*(P<26)-((M!=0)<<5)},nt=function(P,M,G){var K=0;for(P=G?Oe(P/N):P>>1,P+=Oe(P/M);P>ke*T>>1;K+=k)P=Oe(P/ke);return Oe(K+(ke+1)*P/(P+L))},Ve=function(P){var M=[],G=P.length,K=0,ae=re,we=ee,Ae=P.lastIndexOf(de);Ae<0&&(Ae=0);for(var qe=0;qe<Ae;++qe)P.charCodeAt(qe)>=128&&xe("not-basic"),M.push(P.charCodeAt(qe));for(var tt=Ae>0?Ae+1:0;tt<G;){for(var _e=K,Ke=1,ut=k;;ut+=k){tt>=G&&xe("invalid-input");var Ze=ft(P.charCodeAt(tt++));(Ze>=k||Ze>Oe((v-K)/Ke))&&xe("overflow"),K+=Ze*Ke;var Te=ut<=we?_:ut>=we+T?T:ut-we;if(Ze<Te)break;var Xe=k-Te;Ke>Oe(v/Xe)&&xe("overflow"),Ke*=Xe}var Be=M.length+1;we=nt(K-_e,Be,_e==0),Oe(K/Be)>v-ae&&xe("overflow"),ae+=Oe(K/Be),K%=Be,M.splice(K++,0,ae)}return String.fromCodePoint.apply(String,M)},O=function(P){var M=[];P=He(P);var G=P.length,K=re,ae=0,we=ee,Ae=!0,qe=!1,tt=void 0;try{for(var _e=P[Symbol.iterator](),Ke;!(Ae=(Ke=_e.next()).done);Ae=!0){var ut=Ke.value;ut<128&&M.push(ve(ut))}}catch(zr){qe=!0,tt=zr}finally{try{!Ae&&_e.return&&_e.return()}finally{if(qe)throw tt}}var Ze=M.length,Te=Ze;for(Ze&&M.push(de);Te<G;){var Xe=v,Be=!0,Tr=!1,zt=void 0;try{for(var u=P[Symbol.iterator](),oe;!(Be=(oe=u.next()).done);Be=!0){var vt=oe.value;vt>=K&&vt<Xe&&(Xe=vt)}}catch(zr){Tr=!0,zt=zr}finally{try{!Be&&u.return&&u.return()}finally{if(Tr)throw zt}}var it=Te+1;Xe-K>Oe((v-ae)/it)&&xe("overflow"),ae+=(Xe-K)*it,K=Xe;var Jt=!0,j=!1,Mt=void 0;try{for(var Br=P[Symbol.iterator](),On;!(Jt=(On=Br.next()).done);Jt=!0){var qn=On.value;if(qn<K&&++ae>v&&xe("overflow"),qn==K){for(var rn=ae,De=k;;De+=k){var qt=De<=we?_:De>=we+T?T:De-we;if(rn<qt)break;var nn=rn-qt,Xn=k-qt;M.push(ve(je(qt+nn%Xn,0))),rn=Oe(nn/Xn)}M.push(ve(je(rn,0))),we=nt(ae,it,Te==Ze),ae=0,++Te}}}catch(zr){j=!0,Mt=zr}finally{try{!Jt&&Br.return&&Br.return()}finally{if(j)throw Mt}}++ae,++K}return M.join("")},D=function(P){return $e(P,function(M){return fe.test(M)?Ve(M.slice(4).toLowerCase()):M})},Kt=function(P){return $e(P,function(M){return J.test(M)?"xn--"+O(M):M})},Tt={version:"2.1.0",ucs2:{decode:He,encode:H},decode:Ve,encode:O,toASCII:Kt,toUnicode:D},at={};function mt(q){var P=q.charCodeAt(0),M=void 0;return P<16?M="%0"+P.toString(16).toUpperCase():P<128?M="%"+P.toString(16).toUpperCase():P<2048?M="%"+(P>>6|192).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase():M="%"+(P>>12|224).toString(16).toUpperCase()+"%"+(P>>6&63|128).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase(),M}function ht(q){for(var P="",M=0,G=q.length;M<G;){var K=parseInt(q.substr(M+1,2),16);if(K<128)P+=String.fromCharCode(K),M+=3;else if(K>=194&&K<224){if(G-M>=6){var ae=parseInt(q.substr(M+4,2),16);P+=String.fromCharCode((K&31)<<6|ae&63)}else P+=q.substr(M,6);M+=6}else if(K>=224){if(G-M>=9){var we=parseInt(q.substr(M+4,2),16),Ae=parseInt(q.substr(M+7,2),16);P+=String.fromCharCode((K&15)<<12|(we&63)<<6|Ae&63)}else P+=q.substr(M,9);M+=9}else P+=q.substr(M,3),M+=3}return P}function he(q,P){function M(G){var K=ht(G);return K.match(P.UNRESERVED)?K:G}return q.scheme&&(q.scheme=String(q.scheme).replace(P.PCT_ENCODED,M).toLowerCase().replace(P.NOT_SCHEME,"")),q.userinfo!==void 0&&(q.userinfo=String(q.userinfo).replace(P.PCT_ENCODED,M).replace(P.NOT_USERINFO,mt).replace(P.PCT_ENCODED,i)),q.host!==void 0&&(q.host=String(q.host).replace(P.PCT_ENCODED,M).toLowerCase().replace(P.NOT_HOST,mt).replace(P.PCT_ENCODED,i)),q.path!==void 0&&(q.path=String(q.path).replace(P.PCT_ENCODED,M).replace(q.scheme?P.NOT_PATH:P.NOT_PATH_NOSCHEME,mt).replace(P.PCT_ENCODED,i)),q.query!==void 0&&(q.query=String(q.query).replace(P.PCT_ENCODED,M).replace(P.NOT_QUERY,mt).replace(P.PCT_ENCODED,i)),q.fragment!==void 0&&(q.fragment=String(q.fragment).replace(P.PCT_ENCODED,M).replace(P.NOT_FRAGMENT,mt).replace(P.PCT_ENCODED,i)),q}function vr(q){return q.replace(/^0*(.*)/,"$1")||"0"}function Dt(q,P){var M=q.match(P.IPV4ADDRESS)||[],G=d(M,2),K=G[1];return K?K.split(".").map(vr).join("."):q}function Wt(q,P){var M=q.match(P.IPV6ADDRESS)||[],G=d(M,3),K=G[1],ae=G[2];if(K){for(var we=K.toLowerCase().split("::").reverse(),Ae=d(we,2),qe=Ae[0],tt=Ae[1],_e=tt?tt.split(":").map(vr):[],Ke=qe.split(":").map(vr),ut=P.IPV4ADDRESS.test(Ke[Ke.length-1]),Ze=ut?7:8,Te=Ke.length-Ze,Xe=Array(Ze),Be=0;Be<Ze;++Be)Xe[Be]=_e[Be]||Ke[Te+Be]||"";ut&&(Xe[Ze-1]=Dt(Xe[Ze-1],P));var Tr=Xe.reduce(function(it,Jt,j){if(!Jt||Jt==="0"){var Mt=it[it.length-1];Mt&&Mt.index+Mt.length===j?Mt.length++:it.push({index:j,length:1})}return it},[]),zt=Tr.sort(function(it,Jt){return Jt.length-it.length})[0],u=void 0;if(zt&&zt.length>1){var oe=Xe.slice(0,zt.index),vt=Xe.slice(zt.index+zt.length);u=oe.join(":")+"::"+vt.join(":")}else u=Xe.join(":");return ae&&(u+="%"+ae),u}else return q}var or=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,pr="".match(/(){0}/)[1]===void 0;function Zt(q){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M={},G=P.iri!==!1?h:f;P.reference==="suffix"&&(q=(P.scheme?P.scheme+":":"")+"//"+q);var K=q.match(or);if(K){pr?(M.scheme=K[1],M.userinfo=K[3],M.host=K[4],M.port=parseInt(K[5],10),M.path=K[6]||"",M.query=K[7],M.fragment=K[8],isNaN(M.port)&&(M.port=K[5])):(M.scheme=K[1]||void 0,M.userinfo=q.indexOf("@")!==-1?K[3]:void 0,M.host=q.indexOf("//")!==-1?K[4]:void 0,M.port=parseInt(K[5],10),M.path=K[6]||"",M.query=q.indexOf("?")!==-1?K[7]:void 0,M.fragment=q.indexOf("#")!==-1?K[8]:void 0,isNaN(M.port)&&(M.port=q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?K[4]:void 0)),M.host&&(M.host=Wt(Dt(M.host,G),G)),M.scheme===void 0&&M.userinfo===void 0&&M.host===void 0&&M.port===void 0&&!M.path&&M.query===void 0?M.reference="same-document":M.scheme===void 0?M.reference="relative":M.fragment===void 0?M.reference="absolute":M.reference="uri",P.reference&&P.reference!=="suffix"&&P.reference!==M.reference&&(M.error=M.error||"URI is not a "+P.reference+" reference.");var ae=at[(P.scheme||M.scheme||"").toLowerCase()];if(!P.unicodeSupport&&(!ae||!ae.unicodeSupport)){if(M.host&&(P.domainHost||ae&&ae.domainHost))try{M.host=Tt.toASCII(M.host.replace(G.PCT_ENCODED,ht).toLowerCase())}catch(we){M.error=M.error||"Host's domain name can not be converted to ASCII via punycode: "+we}he(M,f)}else he(M,G);ae&&ae.parse&&ae.parse(M,P)}else M.error=M.error||"URI can not be parsed.";return M}function Zn(q,P){var M=P.iri!==!1?h:f,G=[];return q.userinfo!==void 0&&(G.push(q.userinfo),G.push("@")),q.host!==void 0&&G.push(Wt(Dt(String(q.host),M),M).replace(M.IPV6ADDRESS,function(K,ae,we){return"["+ae+(we?"%25"+we:"")+"]"})),(typeof q.port=="number"||typeof q.port=="string")&&(G.push(":"),G.push(String(q.port))),G.length?G.join(""):void 0}var Sn=/^\.\.?\//,gt=/^\/\.(\/|$)/,yt=/^\/\.\.(\/|$)/,jt=/^\/?(?:.|\n)*?(?=\/|$)/;function $t(q){for(var P=[];q.length;)if(q.match(Sn))q=q.replace(Sn,"");else if(q.match(gt))q=q.replace(gt,"/");else if(q.match(yt))q=q.replace(yt,"/"),P.pop();else if(q==="."||q==="..")q="";else{var M=q.match(jt);if(M){var G=M[0];q=q.slice(G.length),P.push(G)}else throw new Error("Unexpected dot segment condition")}return P.join("")}function bt(q){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=P.iri?h:f,G=[],K=at[(P.scheme||q.scheme||"").toLowerCase()];if(K&&K.serialize&&K.serialize(q,P),q.host&&!M.IPV6ADDRESS.test(q.host)){if(P.domainHost||K&&K.domainHost)try{q.host=P.iri?Tt.toUnicode(q.host):Tt.toASCII(q.host.replace(M.PCT_ENCODED,ht).toLowerCase())}catch(Ae){q.error=q.error||"Host's domain name can not be converted to "+(P.iri?"Unicode":"ASCII")+" via punycode: "+Ae}}he(q,M),P.reference!=="suffix"&&q.scheme&&(G.push(q.scheme),G.push(":"));var ae=Zn(q,P);if(ae!==void 0&&(P.reference!=="suffix"&&G.push("//"),G.push(ae),q.path&&q.path.charAt(0)!=="/"&&G.push("/")),q.path!==void 0){var we=q.path;!P.absolutePath&&(!K||!K.absolutePath)&&(we=$t(we)),ae===void 0&&(we=we.replace(/^\/\//,"/%2F")),G.push(we)}return q.query!==void 0&&(G.push("?"),G.push(q.query)),q.fragment!==void 0&&(G.push("#"),G.push(q.fragment)),G.join("")}function kt(q,P){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=arguments[3],K={};return G||(q=Zt(bt(q,M),M),P=Zt(bt(P,M),M)),M=M||{},!M.tolerant&&P.scheme?(K.scheme=P.scheme,K.userinfo=P.userinfo,K.host=P.host,K.port=P.port,K.path=$t(P.path||""),K.query=P.query):(P.userinfo!==void 0||P.host!==void 0||P.port!==void 0?(K.userinfo=P.userinfo,K.host=P.host,K.port=P.port,K.path=$t(P.path||""),K.query=P.query):(P.path?(P.path.charAt(0)==="/"?K.path=$t(P.path):((q.userinfo!==void 0||q.host!==void 0||q.port!==void 0)&&!q.path?K.path="/"+P.path:q.path?K.path=q.path.slice(0,q.path.lastIndexOf("/")+1)+P.path:K.path=P.path,K.path=$t(K.path)),K.query=P.query):(K.path=q.path,P.query!==void 0?K.query=P.query:K.query=q.query),K.userinfo=q.userinfo,K.host=q.host,K.port=q.port),K.scheme=q.scheme),K.fragment=P.fragment,K}function pt(q,P,M){var G=a({scheme:"null"},M);return bt(kt(Zt(q,G),Zt(P,G),G,!0),G)}function It(q,P){return typeof q=="string"?q=bt(Zt(q,P),P):n(q)==="object"&&(q=Zt(bt(q,P),P)),q}function Ft(q,P,M){return typeof q=="string"?q=bt(Zt(q,M),M):n(q)==="object"&&(q=bt(q,M)),typeof P=="string"?P=bt(Zt(P,M),M):n(P)==="object"&&(P=bt(P,M)),q===P}function xr(q,P){return q&&q.toString().replace(!P||!P.iri?f.ESCAPE:h.ESCAPE,mt)}function sr(q,P){return q&&q.toString().replace(!P||!P.iri?f.PCT_ENCODED:h.PCT_ENCODED,ht)}var W={scheme:"http",domainHost:!0,parse:function(P,M){return P.host||(P.error=P.error||"HTTP URIs must have a host."),P},serialize:function(P,M){var G=String(P.scheme).toLowerCase()==="https";return(P.port===(G?443:80)||P.port==="")&&(P.port=void 0),P.path||(P.path="/"),P}},ie={scheme:"https",domainHost:W.domainHost,parse:W.parse,serialize:W.serialize};function ye(q){return typeof q.secure=="boolean"?q.secure:String(q.scheme).toLowerCase()==="wss"}var Se={scheme:"ws",domainHost:!0,parse:function(P,M){var G=P;return G.secure=ye(G),G.resourceName=(G.path||"/")+(G.query?"?"+G.query:""),G.path=void 0,G.query=void 0,G},serialize:function(P,M){if((P.port===(ye(P)?443:80)||P.port==="")&&(P.port=void 0),typeof P.secure=="boolean"&&(P.scheme=P.secure?"wss":"ws",P.secure=void 0),P.resourceName){var G=P.resourceName.split("?"),K=d(G,2),ae=K[0],we=K[1];P.path=ae&&ae!=="/"?ae:void 0,P.query=we,P.resourceName=void 0}return P.fragment=void 0,P}},Ot={scheme:"wss",domainHost:Se.domainHost,parse:Se.parse,serialize:Se.serialize},jr={},Ue=!0,lt="[A-Za-z0-9\\-\\.\\_\\~"+(Ue?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",wt="[0-9A-Fa-f]",dr=e(e("%[EFef]"+wt+"%"+wt+wt+"%"+wt+wt)+"|"+e("%[89A-Fa-f]"+wt+"%"+wt+wt)+"|"+e("%"+wt+wt)),Ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",$n="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Bt=r($n,'[\\"\\\\]'),Pn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ii=new RegExp(lt,"g"),Pr=new RegExp(dr,"g"),Jn=new RegExp(r("[^]",Ge,"[\\.]",'[\\"]',Bt),"g"),Fi=new RegExp(r("[^]",lt,Pn),"g"),fo=Fi;function Tn(q){var P=ht(q);return P.match(Ii)?P:q}var Qn={scheme:"mailto",parse:function(P,M){var G=P,K=G.to=G.path?G.path.split(","):[];if(G.path=void 0,G.query){for(var ae=!1,we={},Ae=G.query.split("&"),qe=0,tt=Ae.length;qe<tt;++qe){var _e=Ae[qe].split("=");switch(_e[0]){case"to":for(var Ke=_e[1].split(","),ut=0,Ze=Ke.length;ut<Ze;++ut)K.push(Ke[ut]);break;case"subject":G.subject=sr(_e[1],M);break;case"body":G.body=sr(_e[1],M);break;default:ae=!0,we[sr(_e[0],M)]=sr(_e[1],M);break}}ae&&(G.headers=we)}G.query=void 0;for(var Te=0,Xe=K.length;Te<Xe;++Te){var Be=K[Te].split("@");if(Be[0]=sr(Be[0]),M.unicodeSupport)Be[1]=sr(Be[1],M).toLowerCase();else try{Be[1]=Tt.toASCII(sr(Be[1],M).toLowerCase())}catch(Tr){G.error=G.error||"Email address's domain name can not be converted to ASCII via punycode: "+Tr}K[Te]=Be.join("@")}return G},serialize:function(P,M){var G=P,K=o(P.to);if(K){for(var ae=0,we=K.length;ae<we;++ae){var Ae=String(K[ae]),qe=Ae.lastIndexOf("@"),tt=Ae.slice(0,qe).replace(Pr,Tn).replace(Pr,i).replace(Jn,mt),_e=Ae.slice(qe+1);try{_e=M.iri?Tt.toUnicode(_e):Tt.toASCII(sr(_e,M).toLowerCase())}catch(Te){G.error=G.error||"Email address's domain name can not be converted to "+(M.iri?"Unicode":"ASCII")+" via punycode: "+Te}K[ae]=tt+"@"+_e}G.path=K.join(",")}var Ke=P.headers=P.headers||{};P.subject&&(Ke.subject=P.subject),P.body&&(Ke.body=P.body);var ut=[];for(var Ze in Ke)Ke[Ze]!==jr[Ze]&&ut.push(Ze.replace(Pr,Tn).replace(Pr,i).replace(Fi,mt)+"="+Ke[Ze].replace(Pr,Tn).replace(Pr,i).replace(fo,mt));return ut.length&&(G.query=ut.join("&")),G}},In=/^([^\:]+)\:(.*)/,Fn={scheme:"urn",parse:function(P,M){var G=P.path&&P.path.match(In),K=P;if(G){var ae=M.scheme||K.scheme||"urn",we=G[1].toLowerCase(),Ae=G[2],qe=ae+":"+(M.nid||we),tt=at[qe];K.nid=we,K.nss=Ae,K.path=void 0,tt&&(K=tt.parse(K,M))}else K.error=K.error||"URN can not be parsed.";return K},serialize:function(P,M){var G=M.scheme||P.scheme||"urn",K=P.nid,ae=G+":"+(M.nid||K),we=at[ae];we&&(P=we.serialize(P,M));var Ae=P,qe=P.nss;return Ae.path=(K||M.nid)+":"+qe,Ae}},po=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,bn={scheme:"urn:uuid",parse:function(P,M){var G=P;return G.uuid=G.nss,G.nss=void 0,!M.tolerant&&(!G.uuid||!G.uuid.match(po))&&(G.error=G.error||"UUID is not valid."),G},serialize:function(P,M){var G=P;return G.nss=(P.uuid||"").toLowerCase(),G}};at[W.scheme]=W,at[ie.scheme]=ie,at[Se.scheme]=Se,at[Ot.scheme]=Ot,at[Qn.scheme]=Qn,at[Fn.scheme]=Fn,at[bn.scheme]=bn,t.SCHEMES=at,t.pctEncChar=mt,t.pctDecChars=ht,t.parse=Zt,t.removeDotSegments=$t,t.serialize=bt,t.resolveComponents=kt,t.resolve=pt,t.normalize=It,t.equal=Ft,t.escapeComponent=xr,t.unescapeComponent=sr,Object.defineProperty(t,"__esModule",{value:!0})})});var Io=ce($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.getSchemaRefs=$r.resolveUrl=$r.normalizeId=$r._getFullPath=$r.getFullPath=$r.inlineRef=void 0;var Pg=dt(),Tg=To(),Ig=of(),Ss=al(),Fg=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Og(t,r=!0){return typeof t=="boolean"?!0:r===!0?!ll(t):r?af(t)<=r:!1}$r.inlineRef=Og;var qg=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ll(t){for(let r in t){if(qg.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(ll)||typeof e=="object"&&ll(e))return!0}return!1}function af(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!Fg.has(e)&&(typeof t[e]=="object"&&Pg.eachItem(t[e],n=>r+=af(n)),r===1/0))return 1/0}return r}function lf(t="",r){r!==!1&&(t=Xi(t));let e=Ss.parse(t);return uf(e)}$r.getFullPath=lf;function uf(t){return Ss.serialize(t).split("#")[0]+"#"}$r._getFullPath=uf;var Dg=/#\/?$/;function Xi(t){return t?t.replace(Dg,""):""}$r.normalizeId=Xi;function Ng(t,r){return r=Xi(r),Ss.resolve(t,r)}$r.resolveUrl=Ng;var Rg=/^[a-z_][-a-z0-9._]*$/i;function Lg(t){if(typeof t=="boolean")return{};let r=Xi(t.$id),e={"":r},n=lf(r,!1),i={},o=new Set;return Ig(t,{allKeys:!0},(f,h,d,$)=>{if($===void 0)return;let v=n+h,k=e[$];typeof f.$id=="string"&&(k=_.call(this,f.$id)),T.call(this,f.$anchor),T.call(this,f.$dynamicAnchor),e[h]=k;function _(L){if(L=Xi(k?Ss.resolve(k,L):L),o.has(L))throw c(L);o.add(L);let N=this.refs[L];return typeof N=="string"&&(N=this.refs[N]),typeof N=="object"?a(f,N.schema,L):L!==Xi(v)&&(L[0]==="#"?(a(f,i[L],L),i[L]=f):this.refs[L]=v),L}function T(L){if(typeof L=="string"){if(!Rg.test(L))throw new Error(`invalid anchor "${L}"`);_.call(this,`#${L}`)}}}),i;function a(f,h,d){if(h!==void 0&&!Tg(f,h))throw c(d)}function c(f){return new Error(`reference "${f}" resolves to more than one schema`)}}$r.getSchemaRefs=Lg});var Ar=ce(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.checkStrictMode=dn.schemaCxtHasRules=dn.subschemaCode=dn.validateFunctionCode=void 0;var df=jc(),cf=Qi(),ff=tf(),Ne=Pe(),Ce=Zr(),jg=Io(),mf=dt();function Bg(t){if(gf(t)&&(yf(t),ul(t))){Vg(t);return}hf(t,()=>df.topBoolOrEmptySchema(t))}dn.validateFunctionCode=Bg;function hf({gen:t,validateName:r,schema:e,schemaEnv:n,opts:i},o){i.code.es5?t.func(r,Ne._`${Ce.default.data}, ${Ce.default.valCxt}`,n.$async,()=>{t.code(Ne._`"use strict"; ${pf(e,i)}`),Mg(t,i),t.code(o)}):t.func(r,Ne._`${Ce.default.data}, ${zg(i)}`,n.$async,()=>t.code(pf(e,i)).code(o))}function zg(t){return Ne._`{${Ce.default.dataPath}="", ${Ce.default.parentData}, ${Ce.default.parentDataProperty}, ${Ce.default.rootData}=${Ce.default.data}${t.dynamicRef?Ne._`, ${Ce.default.dynamicAnchors}={}`:Ne.nil}}={}`}function Mg(t,r){t.if(Ce.default.valCxt,()=>{t.var(Ce.default.dataPath,Ne._`${Ce.default.valCxt}.${Ce.default.dataPath}`),t.var(Ce.default.parentData,Ne._`${Ce.default.valCxt}.${Ce.default.parentData}`),t.var(Ce.default.parentDataProperty,Ne._`${Ce.default.valCxt}.${Ce.default.parentDataProperty}`),t.var(Ce.default.rootData,Ne._`${Ce.default.valCxt}.${Ce.default.rootData}`),r.dynamicRef&&t.var(Ce.default.dynamicAnchors,Ne._`${Ce.default.valCxt}.${Ce.default.dynamicAnchors}`)},()=>{t.var(Ce.default.dataPath,Ne._`""`),t.var(Ce.default.parentData,Ne._`undefined`),t.var(Ce.default.parentDataProperty,Ne._`undefined`),t.var(Ce.default.rootData,Ce.default.data),r.dynamicRef&&t.var(Ce.default.dynamicAnchors,Ne._`{}`)})}function Vg(t){let{schema:r,opts:e,gen:n}=t;hf(t,()=>{e.$comment&&r.$comment&&bf(t),Wg(t),n.let(Ce.default.vErrors,null),n.let(Ce.default.errors,0),e.unevaluated&&Ug(t),$f(t),Qg(t)})}function Ug(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Ne._`${e}.evaluated`),r.if(Ne._`${t.evaluated}.dynamicProps`,()=>r.assign(Ne._`${t.evaluated}.props`,Ne._`undefined`)),r.if(Ne._`${t.evaluated}.dynamicItems`,()=>r.assign(Ne._`${t.evaluated}.items`,Ne._`undefined`))}function pf(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Ne._`/*# sourceURL=${t.$id} */`:Ne.nil}function Hg(t,r){if(gf(t)&&(yf(t),ul(t))){Gg(t,r);return}df.boolOrEmptySchema(t,r)}dn.subschemaCode=Hg;function ul({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}dn.schemaCxtHasRules=ul;function gf(t){return typeof t.schema!="boolean"}function Gg(t,r){let{schema:e,gen:n,opts:i}=t;i.$comment&&e.$comment&&bf(t),Zg(t),Jg(t);let o=n.const("_errs",Ce.default.errors);$f(t,o),n.var(r,Ne._`${o} === ${Ce.default.errors}`)}function yf(t){mf.checkUnknownRules(t),Kg(t)}function $f(t,r){if(t.opts.jtd)return ff.schemaKeywords(t,[],!1,r);let e=cf.getSchemaTypes(t.schema),n=cf.coerceAndCheckDataType(t,e);ff.schemaKeywords(t,e,!n,r)}function Kg(t){let{schema:r,errSchemaPath:e,opts:n,self:i}=t;r.$ref&&n.ignoreKeywordsWithRef&&mf.schemaHasRulesButRef(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function Wg(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&kf(t,"default is ignored in the schema root")}function Zg(t){t.schema.$id&&(t.baseId=jg.resolveUrl(t.baseId,t.schema.$id))}function Jg(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function bf({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:i}){let o=e.$comment;if(i.$comment===!0)t.code(Ne._`${Ce.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=Ne.str`${n}/$comment`,c=t.scopeValue("root",{ref:r.root});t.code(Ne._`${Ce.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}function Qg(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:i,opts:o}=t;e.$async?r.if(Ne._`${Ce.default.errors} === 0`,()=>r.return(Ce.default.data),()=>r.throw(Ne._`new ${i}(${Ce.default.vErrors})`)):(r.assign(Ne._`${n}.errors`,Ce.default.vErrors),o.unevaluated&&Xg(t),r.return(Ne._`${Ce.default.errors} === 0`))}function Xg({gen:t,evaluated:r,props:e,items:n}){e instanceof Ne.Name&&t.assign(Ne._`${r}.props`,e),n instanceof Ne.Name&&t.assign(Ne._`${r}.items`,n)}function kf(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}dn.checkStrictMode=kf});var dt=ce(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.func=ze.setEvaluated=ze.evaluatedPropsToName=ze.mergeEvaluated=ze.eachItem=ze.unescapeJsonPointer=ze.escapeJsonPointer=ze.escapeFragment=ze.unescapeFragment=ze.schemaRefOrVal=ze.schemaHasRulesButRef=ze.schemaHasRules=ze.checkUnknownRules=ze.alwaysValidSchema=ze.toHash=void 0;var xt=Pe(),Yg=Ar();function ey(t){let r={};for(let e of t)r[e]=!0;return r}ze.toHash=ey;function ty(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(vf(t,r),!xf(r,t.self.RULES.all))}ze.alwaysValidSchema=ty;function vf(t,r=t.schema){let{opts:e,self:n}=t;if(!e.strict||typeof r=="boolean")return;let i=n.RULES.keywords;for(let o in r)i[o]||Yg.checkStrictMode(t,`unknown keyword: "${o}"`)}ze.checkUnknownRules=vf;function xf(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}ze.schemaHasRules=xf;function ry(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(e!=="$ref"&&r.all[e])return!0;return!1}ze.schemaHasRulesButRef=ry;function ny({topSchemaRef:t,schemaPath:r},e,n,i){if(!i){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return xt._`${e}`}return xt._`${t}${r}${xt.getProperty(n)}`}ze.schemaRefOrVal=ny;function iy(t){return Ef(decodeURIComponent(t))}ze.unescapeFragment=iy;function oy(t){return encodeURIComponent(Cf(t))}ze.escapeFragment=oy;function Cf(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}ze.escapeJsonPointer=Cf;function Ef(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}ze.unescapeJsonPointer=Ef;function sy(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}ze.eachItem=sy;function wf({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(i,o,a,c)=>{let f=a===void 0?o:a instanceof xt.Name?(o instanceof xt.Name?t(i,o,a):r(i,o,a),a):o instanceof xt.Name?(r(i,a,o),o):e(o,a);return c===xt.Name&&!(f instanceof xt.Name)?n(i,f):f}}ze.mergeEvaluated={props:wf({mergeNames:(t,r,e)=>t.if(xt._`${e} !== true && ${r} !== undefined`,()=>{t.if(xt._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,xt._`${e} || {}`).code(xt._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(xt._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,xt._`${e} || {}`),cl(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:_f}),items:wf({mergeNames:(t,r,e)=>t.if(xt._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,xt._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(xt._`${e} !== true`,()=>t.assign(e,r===!0?!0:xt._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function _f(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",xt._`{}`);return r!==void 0&&cl(t,e,r),e}ze.evaluatedPropsToName=_f;function cl(t,r,e){Object.keys(e).forEach(n=>t.assign(xt._`${r}${xt.getProperty(n)}`,!0))}ze.setEvaluated=cl;function ay(t,r){return t.scopeValue("func",{ref:r,code:r.code})}ze.func=ay});var Qi=ce(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.reportTypeError=Ut.checkDataTypes=Ut.checkDataType=Ut.coerceAndCheckDataType=Ut.getJSONTypes=Ut.getSchemaTypes=Ut.DataType=void 0;var ly=Na(),uy=Ra(),cy=So(),Ee=Pe(),Af=dt(),Fo;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Fo=Ut.DataType||(Ut.DataType={}));function fy(t){let r=Sf(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}Ut.getSchemaTypes=fy;function Sf(t){let r=Array.isArray(t)?t:t?[t]:[];if(r.every(ly.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}Ut.getJSONTypes=Sf;function py(t,r){let{gen:e,data:n,opts:i}=t,o=dy(r,i.coerceTypes),a=r.length>0&&!(o.length===0&&r.length===1&&uy.schemaHasRulesForType(t,r[0]));if(a){let c=pl(r,n,i.strict,Fo.Wrong);e.if(c,()=>{o.length?my(t,r,o):dl(t)})}return a}Ut.coerceAndCheckDataType=py;var Pf=new Set(["string","number","integer","boolean","null"]);function dy(t,r){return r?t.filter(e=>Pf.has(e)||r==="array"&&e==="array"):[]}function my(t,r,e){let{gen:n,data:i,opts:o}=t,a=n.let("dataType",Ee._`typeof ${i}`),c=n.let("coerced",Ee._`undefined`);o.coerceTypes==="array"&&n.if(Ee._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,Ee._`${i}[0]`).assign(a,Ee._`typeof ${i}`).if(pl(r,i,o.strict),()=>n.assign(c,i))),n.if(Ee._`${c} !== undefined`);for(let h of e)(Pf.has(h)||h==="array"&&o.coerceTypes==="array")&&f(h);n.else(),dl(t),n.endIf(),n.if(Ee._`${c} !== undefined`,()=>{n.assign(i,c),hy(t,c)});function f(h){switch(h){case"string":n.elseIf(Ee._`${a} == "number" || ${a} == "boolean"`).assign(c,Ee._`"" + ${i}`).elseIf(Ee._`${i} === null`).assign(c,Ee._`""`);return;case"number":n.elseIf(Ee._`${a} == "boolean" || ${i} === null
|
|
3
3
|
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,Ee._`+${i}`);return;case"integer":n.elseIf(Ee._`${a} === "boolean" || ${i} === null
|
|
4
4
|
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,Ee._`+${i}`);return;case"boolean":n.elseIf(Ee._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(Ee._`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf(Ee._`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf(Ee._`${a} === "string" || ${a} === "number"
|
|
5
|
-
|| ${a} === "boolean" || ${i} === null`).assign(c,Ee._`[${i}]`)}}}function hy({gen:t,parentData:r,parentDataProperty:e},n){t.if(Ee._`${r} !== undefined`,()=>t.assign(Ee._`${r}[${e}]`,n))}function fl(t,r,e,n=Fo.Correct){let i=n===Fo.Correct?Ee.operators.EQ:Ee.operators.NEQ,o;switch(t){case"null":return Ee._`${r} ${i} null`;case"array":o=Ee._`Array.isArray(${r})`;break;case"object":o=Ee._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":o=a(Ee._`!(${r} % 1) && !isNaN(${r})`);break;case"number":o=a();break;default:return Ee._`typeof ${r} ${i} ${t}`}return n===Fo.Correct?o:Ee.not(o);function a(c=Ee.nil){return Ee.and(Ee._`typeof ${r} == "number"`,c,e?Ee._`isFinite(${r})`:Ee.nil)}}Ut.checkDataType=fl;function pl(t,r,e,n){if(t.length===1)return fl(t[0],r,e,n);let i,o=Af.toHash(t);if(o.array&&o.object){let a=Ee._`typeof ${r} != "object"`;i=o.null?a:Ee._`!${r} || ${a}`,delete o.null,delete o.array,delete o.object}else i=Ee.nil;o.number&&delete o.integer;for(let a in o)i=Ee.and(i,fl(a,r,e,n));return i}Ut.checkDataTypes=pl;var gy={message:({schema:t})=>Ee.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?Ee._`{type: ${t}}`:Ee._`{type: ${r}}`};function dl(t){let r=yy(t);cy.reportError(r,gy)}Ut.reportTypeError=dl;function yy(t){let{gen:r,data:e,schema:n}=t,i=Af.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var Po=ce(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.getData=void 0;var Tf=Qi(),Ps=dt(),Oo=So(),St=Pe(),ml=Zr(),by=di(),hl=class{constructor(r,e,n){if(ky(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=Ps.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",If(this.$data,r));else if(this.schemaCode=this.schemaValue,!$y(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",ml.default.errors))}result(r,e,n){this.gen.if(St.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(St._`${e} !== undefined && (${St.or(this.invalid$data(),r)})`)}error(r){(r?Oo.reportExtraError:Oo.reportError)(this,this.def.error)}$dataError(){Oo.reportError(this,this.def.$dataError||Oo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Oo.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=St.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=St.nil,e=St.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if(St.or(St._`${i} === undefined`,e)),r!==St.nil&&n.assign(r,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==St.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:i,it:o}=this;return St.or(a(),c());function a(){if(n.length){if(!(e instanceof St.Name))throw new Error("ajv implementation error");let f=Array.isArray(n)?n:[n];return St._`${Tf.checkDataTypes(f,e,o.opts.strict,Tf.DataType.Wrong)}`}return St.nil}function c(){if(i.validateSchema){let f=r.scopeValue("validate$data",{ref:i.validateSchema});return St._`!${f}(${e})`}return St.nil}}subschema(r,e){return by.applySubschema(this.it,r,e)}mergeEvaluated(r,e){let{it:n,gen:i}=this;!n.opts.unevaluated||(n.props!==!0&&r.props!==void 0&&(n.props=Ps.mergeEvaluated.props(i,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=Ps.mergeEvaluated.items(i,r.items,n.items,e)))}mergeValidEvaluated(r,e){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(e,()=>this.mergeEvaluated(r,St.Name)),!0}};qo.default=hl;function $y(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 ky({schema:t,opts:r,self:e},n,i){if(Array.isArray(n.keyword)?!n.keyword.includes(i):n.keyword!==i)throw new Error("ajv implementation error");let o=n.dependencies;if(o!=null&&o.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[i])){let c="keyword value is invalid: "+e.errorsText(n.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(c);else throw new Error(c)}}var wy=/^\/(?:[^~]|~0|~1)*$/,vy=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function If(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let i,o;if(t==="")return ml.default.rootData;if(t[0]==="/"){if(!wy.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=ml.default.rootData}else{let h=vy.exec(t);if(!h)throw new Error(`Invalid JSON-pointer: ${t}`);let d=+h[1];if(i=h[2],i==="#"){if(d>=r)throw new Error(f("property/index",d));return n[r-d]}if(d>r)throw new Error(f("data",d));if(o=e[r-d],!i)return o}let a=o,c=i.split("/");for(let h of c)h&&(o=St._`${o}${St.getProperty(Ps.unescapeJsonPointer(h))}`,a=St._`${a} && ${o}`);return a;function f(h,d){return`Cannot access ${h} ${d} levels up, current level is ${r}`}}qo.getData=If});var Fs=ce((Yi,Ff)=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.MissingRefError=Yi.ValidationError=void 0;var gl=Io(),Ts=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};Yi.ValidationError=Ts;var Is=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=gl.resolveUrl(r,e),this.missingSchema=gl.normalizeId(gl.getFullPath(this.missingRef))}};Yi.MissingRefError=Is;Ff.exports={ValidationError:Ts,MissingRefError:Is}});var $l=ce(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.resolveSchema=Rr.getCompilingSchema=Rr.resolveRef=Rr.compileSchema=Rr.SchemaEnv=void 0;var Qr=Pe(),xy=Fs(),hi=Zr(),Xr=Io(),Of=dt(),Cy=Ar(),Ey=al(),eo=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:Xr.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={}}};Rr.SchemaEnv=eo;function bl(t){let r=qf.call(this,t);if(r)return r;let e=Xr.getFullPath(t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Qr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;t.$async&&(c=a.scopeValue("Error",{ref:xy.ValidationError,code:Qr._`require("ajv/dist/compile/error_classes").ValidationError`}));let f=a.scopeName("validate");t.validateName=f;let h={gen:a,allErrors:this.opts.allErrors,data:hi.default.data,parentData:hi.default.parentData,parentDataProperty:hi.default.parentDataProperty,dataNames:[hi.default.data],dataPathArr:[Qr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:Qr.stringify(t.schema)}:{ref:t.schema}),validateName:f,ValidationError:c,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:Qr.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:Qr._`""`,opts:this.opts,self:this},d;try{this._compilations.add(t),Cy.validateFunctionCode(h),a.optimize(this.opts.code.optimize);let b=a.toString();d=`${a.scopeRefs(hi.default.scope)}return ${b}`,this.opts.code.process&&(d=this.opts.code.process(d,t));let k=new Function(`${hi.default.self}`,`${hi.default.scope}`,d)(this,this.scope.get());if(this.scope.value(f,{ref:k}),k.errors=null,k.schema=t.schema,k.schemaEnv=t,t.$async&&(k.$async=!0),this.opts.code.source===!0&&(k.source={validateName:f,validateCode:b,scopeValues:a._values}),this.opts.unevaluated){let{props:_,items:T}=h;k.evaluated={props:_ instanceof Qr.Name?void 0:_,items:T instanceof Qr.Name?void 0:T,dynamicProps:_ instanceof Qr.Name,dynamicItems:T instanceof Qr.Name},k.source&&(k.source.evaluated=Qr.stringify(k.evaluated))}return t.validate=k,t}catch(b){throw delete t.validate,delete t.validateName,d&&this.logger.error("Error compiling schema, function code:",d),b}finally{this._compilations.delete(t)}}Rr.compileSchema=bl;function _y(t,r,e){var n;e=Xr.resolveUrl(r,e);let i=t.refs[e];if(i)return i;let o=Py.call(this,t,e);if(o===void 0){let a=(n=t.localRefs)===null||n===void 0?void 0:n[e];a&&(o=new eo({schema:a,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=Ay.call(this,o)}Rr.resolveRef=_y;function Ay(t){return Xr.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:bl.call(this,t)}function qf(t){for(let r of this._compilations)if(Sy(r,t))return r}Rr.getCompilingSchema=qf;function Sy(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function Py(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||Os.call(this,t,r)}function Os(t,r){let e=Ey.parse(r),n=Xr._getFullPath(e),i=Xr.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===i)return yl.call(this,e,t);let o=Xr.normalizeId(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=Os.call(this,t,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:yl.call(this,e,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||bl.call(this,a),o===Xr.normalizeId(r)){let{schema:c}=a;return c.$id&&(i=Xr.resolveUrl(i,c.$id)),new eo({schema:c,root:t,baseId:i})}return yl.call(this,e,a)}}Rr.resolveSchema=Os;var Ty=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function yl(t,{baseId:r,schema:e,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof e=="boolean"||(e=e[Of.unescapeFragment(a)],e===void 0))return;!Ty.has(a)&&typeof e=="object"&&e.$id&&(r=Xr.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!Of.schemaHasRulesButRef(e,this.RULES)){let a=Xr.resolveUrl(r,e.$ref);o=Os.call(this,n,a)}if(o=o||new eo({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var Df=ce((B1,Iy)=>{Iy.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 Bf=ce(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.CodeGen=Ht.Name=Ht.nil=Ht.stringify=Ht.str=Ht._=Ht.KeywordCxt=void 0;var Fy=Po();Ht.KeywordCxt=Fy.default;var to=Pe();Object.defineProperty(Ht,"_",{enumerable:!0,get:function(){return to._}});Object.defineProperty(Ht,"str",{enumerable:!0,get:function(){return to.str}});Object.defineProperty(Ht,"stringify",{enumerable:!0,get:function(){return to.stringify}});Object.defineProperty(Ht,"nil",{enumerable:!0,get:function(){return to.nil}});Object.defineProperty(Ht,"Name",{enumerable:!0,get:function(){return to.Name}});Object.defineProperty(Ht,"CodeGen",{enumerable:!0,get:function(){return to.CodeGen}});var vl=Fs(),Oy=Na(),Do=$l(),qy=Pe(),qs=Io(),Ds=Qi(),wl=dt(),Nf=Df(),Dy=["removeAdditional","useDefaults","coerceTypes"],Ny=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Ry={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."},Ly={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function jy(t){var r,e,n,i,o,a,c,f,h,d,b,v;let k=(r=t.strict)!==null&&r!==void 0?r:!0,_=k?"log":!1,T=(e=t.code)===null||e===void 0?void 0:e.optimize,L=T===!0||T===void 0?1:T||0;return{strict:k,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:_,strictTuples:(i=t.strictTuples)!==null&&i!==void 0?i:_,code:t.code?{...t.code,optimize:L}:{optimize:L},loopRequired:(o=t.loopRequired)!==null&&o!==void 0?o:1/0,loopEnum:(a=t.loopEnum)!==null&&a!==void 0?a:1/0,meta:(c=t.meta)!==null&&c!==void 0?c:!0,messages:(f=t.messages)!==null&&f!==void 0?f:!0,inlineRefs:(h=t.inlineRefs)!==null&&h!==void 0?h:!0,addUsedSchema:(d=t.addUsedSchema)!==null&&d!==void 0?d:!0,validateSchema:(b=t.validateSchema)!==null&&b!==void 0?b:!0,validateFormats:(v=t.validateFormats)!==null&&v!==void 0?v:!0}}var No=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...jy(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new qy.ValueScope({scope:{},prefixes:Ny,es5:e,lines:n}),this.logger=Hy(r.logger);let i=r.validateFormats;r.validateFormats=!1,this.RULES=Oy.getRules(),Rf.call(this,Ry,r,"NOT SUPPORTED"),Rf.call(this,Ly,r,"DEPRECATED","warn"),this._metaOpts=Vy.call(this),r.formats&&zy.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&My.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),By.call(this),r.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(Nf,Nf.$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 i=n(e);return"$async"in n||(this.errors=n.errors),i}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 i.call(this,r,e);async function i(d,b){await o.call(this,d.$schema);let v=this._addSchema(d,b);return v.validate||a.call(this,v)}async function o(d){d&&!this.getSchema(d)&&await i.call(this,{$ref:d},!0)}async function a(d){try{return this._compileSchemaEnv(d)}catch(b){if(!(b instanceof vl.MissingRefError))throw b;return c.call(this,b),await f.call(this,b.missingSchema),a.call(this,d)}}function c({missingSchema:d,missingRef:b}){if(this.refs[d])throw new Error(`AnySchema ${d} is loaded but ${b} cannot be resolved`)}async function f(d){let b=await h.call(this,d);this.refs[d]||await o.call(this,b.$schema),this.refs[d]||this.addSchema(b,d,e)}async function h(d){let b=this._loading[d];if(b)return b;try{return await(this._loading[d]=n(d))}finally{delete this._loading[d]}}}addSchema(r,e,n,i=this.opts.validateSchema){if(Array.isArray(r)){for(let a of r)this.addSchema(a,void 0,n,i);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=qs.normalizeId(e||o),this._checkUnique(e),this.schemas[e]=this._addSchema(r,n,i,!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 i=this.validate(n,r);if(!i&&e){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(r){let e;for(;typeof(e=Lf.call(this,r))=="string";)r=e;if(e===void 0){let n=new Do.SchemaEnv({schema:{}});if(e=Do.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=Lf.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=qs.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(Ky.call(this,n,e),!e)return wl.eachItem(n,o=>kl.call(this,o)),this;Zy.call(this,e);let i={...e,type:Ds.getJSONTypes(e.type),schemaType:Ds.getJSONTypes(e.schemaType)};return wl.eachItem(n,i.type.length===0?o=>kl.call(this,o,i):o=>i.type.forEach(a=>kl.call(this,o,i,a))),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 i=n.rules.findIndex(o=>o.keyword===r);i>=0&&n.rules.splice(i,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(i=>`${n}${i.dataPath} ${i.message}`).reduce((i,o)=>i+e+o)}$dataMetaSchema(r,e){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let i of e){let o=i.split("/").slice(1),a=r;for(let c of o)a=a[c];for(let c in n){let f=n[c];if(typeof f!="object")continue;let{$data:h}=f.definition,d=a[c];h&&d&&(a[c]=jf(d))}}return r}_removeAllSchemas(r,e){for(let n in r){let i=r[n];(!e||e.test(n))&&(typeof i=="string"?delete r[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete r[n]))}}_addSchema(r,e,n=this.opts.validateSchema,i=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 a=qs.getSchemaRefs.call(this,r);o=new Do.SchemaEnv({schema:r,meta:e,localRefs:a}),this._cache.set(o.schema,o);let c=o.baseId;return i&&!c.startsWith("#")&&(c&&this._checkUnique(c),this.refs[c]=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):Do.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{Do.compileSchema.call(this,r)}finally{this.opts=e}}};Ht.default=No;No.ValidationError=vl.ValidationError;No.MissingRefError=vl.MissingRefError;function Rf(t,r,e,n="error"){for(let i in t){let o=i;o in r&&this.logger[n](`${e}: option ${i}. ${t[o]}`)}}function Lf(t){return t=qs.normalizeId(t),this.schemas[t]||this.refs[t]}function By(){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 zy(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function My(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 Vy(){let t={...this.opts};for(let r of Dy)delete t[r];return t}var Uy={log(){},warn(){},error(){}};function Hy(t){if(t===!1)return Uy;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 Gy=/^[a-z_$][a-z0-9_$:-]*$/i;function Ky(t,r){let{RULES:e}=this;if(wl.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Gy.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 kl(t,r,e){var n;let i=r==null?void 0:r.post;if(e&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:f})=>f===e);if(a||(a={type:e,rules:[]},o.rules.push(a)),o.keywords[t]=!0,!r)return;let c={keyword:t,definition:{...r,type:Ds.getJSONTypes(r.type),schemaType:Ds.getJSONTypes(r.schemaType)}};r.before?Wy.call(this,a,c,r.before):a.rules.push(c),o.all[t]=c,(n=r.implements)===null||n===void 0||n.forEach(f=>this.addKeyword(f))}function Wy(t,r,e){let n=t.rules.findIndex(i=>i.keyword===e);n>=0?t.rules.splice(n,0,r):(t.rules.push(r),this.logger.warn(`rule ${e} is not defined`))}function Zy(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=jf(r)),t.validateSchema=this.compile(r,!0))}var Jy={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jf(t){return{anyOf:[t,Jy]}}});var zf=ce(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Qy={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xl.default=Qy});var Hf=ce(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.callRef=gi.getValidate=void 0;var Xy=Fs(),Mf=Jr(),$r=Pe(),ro=Zr(),Vf=$l(),Ns=dt(),Yy={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:f}=n;if(e==="#"||e==="#/")return d();let h=Vf.resolveRef.call(f,o.root,i,e);if(h===void 0)throw new Xy.MissingRefError(i,e);if(h instanceof Vf.SchemaEnv)return b(h);return v(h);function d(){if(o===o.root)return Rs(t,a,o,o.$async);let k=r.scopeValue("root",{ref:o.root});return Rs(t,$r._`${k}.validate`,o.root,o.root.$async)}function b(k){let _=Uf(t,k);Rs(t,_,k,k.$async)}function v(k){let _=r.scopeValue("schema",c.code.source===!0?{ref:k,code:$r.stringify(k)}:{ref:k}),T=r.name("valid"),L=t.subschema({schema:k,dataTypes:[],schemaPath:$r.nil,topSchemaRef:_,errSchemaPath:e},T);t.mergeEvaluated(L),t.ok(T)}}};function Uf(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):$r._`${e.scopeValue("wrapper",{ref:r})}.validate`}gi.getValidate=Uf;function Rs(t,r,e,n){let{gen:i,it:o}=t,{allErrors:a,schemaEnv:c,opts:f}=o,h=f.passContext?ro.default.this:$r.nil;n?d():b();function d(){if(!c.$async)throw new Error("async schema referenced by sync schema");let _=i.let("valid");i.try(()=>{i.code($r._`await ${Mf.callValidateCode(t,r,h)}`),k(r),a||i.assign(_,!0)},T=>{i.if($r._`!(${T} instanceof ${o.ValidationError})`,()=>i.throw(T)),v(T),a||i.assign(_,!1)}),t.ok(_)}function b(){t.result(Mf.callValidateCode(t,r,h),()=>k(r),()=>v(r))}function v(_){let T=$r._`${_}.errors`;i.assign(ro.default.vErrors,$r._`${ro.default.vErrors} === null ? ${T} : ${ro.default.vErrors}.concat(${T})`),i.assign(ro.default.errors,$r._`${ro.default.vErrors}.length`)}function k(_){var T;if(!o.opts.unevaluated)return;let L=(T=e==null?void 0:e.validate)===null||T===void 0?void 0:T.evaluated;if(o.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(o.props=Ns.mergeEvaluated.props(i,L.props,o.props));else{let N=i.var("props",$r._`${_}.evaluated.props`);o.props=Ns.mergeEvaluated.props(i,N,o.props,$r.Name)}if(o.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(o.items=Ns.mergeEvaluated.items(i,L.items,o.items));else{let N=i.var("items",$r._`${_}.evaluated.items`);o.items=Ns.mergeEvaluated.items(i,N,o.items,$r.Name)}}}gi.callRef=Rs;gi.default=Yy});var Gf=ce(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var eb=zf(),tb=Hf(),rb=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",eb.default,tb.default];Cl.default=rb});var Kf=ce(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Ls=Pe(),Vn=Ls.operators,js={maximum:{okStr:"<=",ok:Vn.LTE,fail:Vn.GT},minimum:{okStr:">=",ok:Vn.GTE,fail:Vn.LT},exclusiveMaximum:{okStr:"<",ok:Vn.LT,fail:Vn.GTE},exclusiveMinimum:{okStr:">",ok:Vn.GT,fail:Vn.LTE}},nb={message:({keyword:t,schemaCode:r})=>Ls.str`should be ${js[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>Ls._`{comparison: ${js[t].okStr}, limit: ${r}}`},ib={keyword:Object.keys(js),type:"number",schemaType:"number",$data:!0,error:nb,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(Ls._`${e} ${js[r].fail} ${n} || isNaN(${e})`)}};El.default=ib});var Wf=ce(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var Ro=Pe(),ob={message:({schemaCode:t})=>Ro.str`should be multiple of ${t}`,params:({schemaCode:t})=>Ro._`{multipleOf: ${t}}`},sb={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:ob,code(t){let{gen:r,data:e,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,a=r.let("res"),c=o?Ro._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:Ro._`${a} !== parseInt(${a})`;t.fail$data(Ro._`(${n} === 0 || (${a} = ${e}/${n}, ${c}))`)}};_l.default=sb});var Zf=ce(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});function ab(t){let r=t.length,e=0,n=0,i;for(;n<r;)e++,i=t.charCodeAt(n++),i>=55296&&i<=56319&&n<r&&(i=t.charCodeAt(n),(i&64512)===56320&&n++);return e}Al.default=ab});var Jf=ce(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Un=Pe(),lb=Zf(),ub={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return Un.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>Un._`{limit: ${t}}`},cb={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:ub,code(t){let{keyword:r,data:e,schemaCode:n,it:i}=t,o=r==="maxLength"?Un.operators.GT:Un.operators.LT,a;if(i.opts.unicode===!1)a=Un._`${e}.length`;else{let c=t.gen.scopeValue("func",{ref:lb.default,code:Un._`require("ajv/dist/compile/ucs2length").default`});a=Un._`${c}(${e})`}t.fail$data(Un._`${a} ${o} ${n}`)}};Sl.default=cb});var Qf=ce(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var fb=Jr(),Bs=Pe(),pb={message:({schemaCode:t})=>Bs.str`should match pattern "${t}"`,params:({schemaCode:t})=>Bs._`{pattern: ${t}}`},db={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:pb,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o}=t,a=n?Bs._`(new RegExp(${o}, "u"))`:fb.usePattern(r,i);t.fail$data(Bs._`!${a}.test(${e})`)}};Pl.default=db});var Xf=ce(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Lo=Pe(),mb={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Lo.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Lo._`{limit: ${t}}`},hb={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:mb,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxProperties"?Lo.operators.GT:Lo.operators.LT;t.fail$data(Lo._`Object.keys(${e}).length ${i} ${n}`)}};Tl.default=hb});var Yf=ce(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var jo=Jr(),Bo=Pe(),gb=Ar(),yb={message:({params:{missingProperty:t}})=>Bo.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>Bo._`{missingProperty: ${t}}`},bb={keyword:"required",type:"object",schemaType:"array",$data:!0,error:yb,code(t){let{gen:r,schema:e,schemaCode:n,data:i,$data:o,it:a}=t,{opts:c}=a;if(!o&&e.length===0)return;let f=e.length>=c.loopRequired;if(a.allErrors?h():d(),c.strictRequired){let k=t.parentSchema.properties,{definedProperties:_}=t.it;for(let T of e)if((k==null?void 0:k[T])===void 0&&!_.has(T)){let L=a.schemaEnv.baseId+a.errSchemaPath,N=`required property "${T}" is not defined at "${L}" (strictRequired)`;gb.checkStrictMode(a,N,a.opts.strictRequired)}}function h(){if(f||o)t.block$data(Bo.nil,b);else for(let k of e)jo.checkReportMissingProp(t,k)}function d(){let k=r.let("missing");if(f||o){let _=r.let("valid",!0);t.block$data(_,()=>v(k,_)),t.ok(_)}else r.if(jo.checkMissingProp(t,e,k)),jo.reportMissingProp(t,k),r.else()}function b(){r.forOf("prop",n,k=>{t.setParams({missingProperty:k}),r.if(jo.noPropertyInData(r,i,k,c.ownProperties),()=>t.error())})}function v(k,_){t.setParams({missingProperty:k}),r.forOf(k,n,()=>{r.assign(_,jo.propertyInData(r,i,k,c.ownProperties)),r.if(Bo.not(_),()=>{t.error(),r.break()})},Bo.nil)}}};Il.default=bb});var ep=ce(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var zo=Pe(),$b={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return zo.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>zo._`{limit: ${t}}`},kb={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:$b,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxItems"?zo.operators.GT:zo.operators.LT;t.fail$data(zo._`${e}.length ${i} ${n}`)}};Fl.default=kb});var tp=ce(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var Ol=Qi(),Rt=Pe(),wb=To(),vb={message:({params:{i:t,j:r}})=>Rt.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Rt._`{i: ${t}, j: ${r}}`},xb={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:vb,code(t){let{gen:r,data:e,$data:n,schema:i,parentSchema:o,schemaCode:a,it:c}=t;if(!n&&!i)return;let f=r.let("valid"),h=o.items?Ol.getSchemaTypes(o.items):[];t.block$data(f,d,Rt._`${a} === false`),t.ok(f);function d(){let _=r.let("i",Rt._`${e}.length`),T=r.let("j");t.setParams({i:_,j:T}),r.assign(f,!0),r.if(Rt._`${_} > 1`,()=>(b()?v:k)(_,T))}function b(){return h.length>0&&!h.some(_=>_==="object"||_==="array")}function v(_,T){let L=r.name("item"),N=Ol.checkDataTypes(h,L,c.opts.strict,Ol.DataType.Wrong),ee=r.const("indices",Rt._`{}`);r.for(Rt._`;${_}--;`,()=>{r.let(L,Rt._`${e}[${_}]`),r.if(N,Rt._`continue`),h.length>1&&r.if(Rt._`typeof ${L} == "string"`,Rt._`${L} += "_"`),r.if(Rt._`typeof ${ee}[${L}] == "number"`,()=>{r.assign(T,Rt._`${ee}[${L}]`),t.error(),r.assign(f,!1).break()}).code(Rt._`${ee}[${L}] = ${_}`)})}function k(_,T){let L=t.gen.scopeValue("func",{ref:wb,code:Rt._`require("ajv/dist/compile/equal")`}),N=r.name("outer");r.label(N).for(Rt._`;${_}--;`,()=>r.for(Rt._`${T} = ${_}; ${T}--;`,()=>r.if(Rt._`${L}(${e}[${_}], ${e}[${T}])`,()=>{t.error(),r.assign(f,!1).break(N)})))}}};ql.default=xb});var rp=ce(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Dl=Pe(),Cb=To(),Eb={message:"should be equal to constant",params:({schemaCode:t})=>Dl._`{allowedValue: ${t}}`},_b={keyword:"const",$data:!0,error:Eb,code(t){let r=t.gen.scopeValue("func",{ref:Cb,code:Dl._`require("ajv/dist/compile/equal")`});t.fail$data(Dl._`!${r}(${t.data}, ${t.schemaCode})`)}};Nl.default=_b});var np=ce(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var no=Pe(),Ab=To(),Sb={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>no._`{allowedValues: ${t}}`},Pb={keyword:"enum",schemaType:"array",$data:!0,error:Sb,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o,it:a}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,f=t.gen.scopeValue("func",{ref:Ab,code:no._`require("ajv/dist/compile/equal")`}),h;if(c||n)h=r.let("valid"),t.block$data(h,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let v=r.const("vSchema",o);h=no.or(...i.map((k,_)=>b(v,_)))}t.pass(h);function d(){r.assign(h,!1),r.forOf("v",o,v=>r.if(no._`${f}(${e}, ${v})`,()=>r.assign(h,!0).break()))}function b(v,k){let _=i[k];return _&&typeof _=="object"?no._`${f}(${e}, ${v}[${k}])`:no._`${e} === ${_}`}}};Rl.default=Pb});var ip=ce(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var Tb=Kf(),Ib=Wf(),Fb=Jf(),Ob=Qf(),qb=Xf(),Db=Yf(),Nb=ep(),Rb=tp(),Lb=rp(),jb=np(),Bb=[Tb.default,Ib.default,Fb.default,Ob.default,qb.default,Db.default,Nb.default,Rb.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Lb.default,jb.default];Ll.default=Bb});var op=ce(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var yi=Pe(),zb=di(),Mb=dt(),Vb=Ar(),Ub={message:({params:{len:t}})=>yi.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>yi._`{limit: ${t}}`},Hb={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Ub,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,{items:a}=n;if(!Array.isArray(a)){Vb.checkStrictMode(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}o.items=!0;let c=r.const("len",yi._`${i}.length`);if(e===!1)t.setParams({len:a.length}),t.pass(yi._`${c} <= ${a.length}`);else if(typeof e=="object"&&!Mb.alwaysValidSchema(o,e)){let h=r.var("valid",yi._`${c} <= ${a.length}`);r.if(yi.not(h),()=>f(h)),t.ok(h)}function f(h){r.forRange("i",a.length,c,d=>{t.subschema({keyword:"additionalItems",dataProp:d,dataPropType:zb.Type.Num},h),o.allErrors||r.if(yi.not(h),()=>r.break())})}}};jl.default=Hb});var ap=ce(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var sp=Pe(),Bl=dt(),Gb=Ar(),Kb=Jr(),Wb={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=Bl.mergeEvaluated.items(r,e.length,n.items)),i(e);else{if(n.items=!0,Bl.alwaysValidSchema(n,e))return;t.ok(Kb.validateArray(t))}function i(o){let{parentSchema:a,data:c}=t;if(n.opts.strictTuples&&!Zb(o.length,a)){let d=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;Gb.checkStrictMode(n,d,n.opts.strictTuples)}let f=r.name("valid"),h=r.const("len",sp._`${c}.length`);o.forEach((d,b)=>{Bl.alwaysValidSchema(n,d)||(r.if(sp._`${h} > ${b}`,()=>t.subschema({keyword:"items",schemaProp:b,dataProp:b},f)),t.ok(f))})}}};function Zb(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}zl.default=Wb});var up=ce(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var Yr=Pe(),Jb=di(),Qb=dt(),lp=Ar(),Xb={message:({params:{min:t,max:r}})=>r===void 0?Yr.str`should contain at least ${t} valid item(s)`:Yr.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?Yr._`{minContains: ${t}}`:Yr._`{minContains: ${t}, maxContains: ${r}}`},Yb={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Xb,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,a,c,{minContains:f,maxContains:h}=n;o.opts.next?(a=f===void 0?1:f,c=h):a=1;let d=r.const("len",Yr._`${i}.length`);if(t.setParams({min:a,max:c}),c===void 0&&a===0){lp.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){lp.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(Qb.alwaysValidSchema(o,e)){let _=Yr._`${d} >= ${a}`;c!==void 0&&(_=Yr._`${_} && ${d} <= ${c}`),t.pass(_);return}o.items=!0;let b=r.name("valid");if(c===void 0&&a===1)v(b,()=>r.if(b,()=>r.break()));else{r.let(b,!1);let _=r.name("_valid"),T=r.let("count",0);v(_,()=>r.if(_,()=>k(T)))}t.result(b,()=>t.reset());function v(_,T){r.forRange("i",0,d,L=>{t.subschema({keyword:"contains",dataProp:L,dataPropType:Jb.Type.Num,compositeRule:!0},_),T()})}function k(_){r.code(Yr._`${_}++`),c===void 0?r.if(Yr._`${_} >= ${a}`,()=>r.assign(b,!0).break()):(r.if(Yr._`${_} > ${c}`,()=>r.assign(b,!1).break()),a===1?r.assign(b,!0):r.if(Yr._`${_} >= ${a}`,()=>r.assign(b,!0)))}}};Ml.default=Yb});var pp=ce(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.validateSchemaDeps=mn.validatePropertyDeps=mn.error=void 0;var Vl=Pe(),e$=dt(),Mo=Jr();mn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return Vl.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>Vl._`{property: ${t},
|
|
5
|
+
|| ${a} === "boolean" || ${i} === null`).assign(c,Ee._`[${i}]`)}}}function hy({gen:t,parentData:r,parentDataProperty:e},n){t.if(Ee._`${r} !== undefined`,()=>t.assign(Ee._`${r}[${e}]`,n))}function fl(t,r,e,n=Fo.Correct){let i=n===Fo.Correct?Ee.operators.EQ:Ee.operators.NEQ,o;switch(t){case"null":return Ee._`${r} ${i} null`;case"array":o=Ee._`Array.isArray(${r})`;break;case"object":o=Ee._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":o=a(Ee._`!(${r} % 1) && !isNaN(${r})`);break;case"number":o=a();break;default:return Ee._`typeof ${r} ${i} ${t}`}return n===Fo.Correct?o:Ee.not(o);function a(c=Ee.nil){return Ee.and(Ee._`typeof ${r} == "number"`,c,e?Ee._`isFinite(${r})`:Ee.nil)}}Ut.checkDataType=fl;function pl(t,r,e,n){if(t.length===1)return fl(t[0],r,e,n);let i,o=Af.toHash(t);if(o.array&&o.object){let a=Ee._`typeof ${r} != "object"`;i=o.null?a:Ee._`!${r} || ${a}`,delete o.null,delete o.array,delete o.object}else i=Ee.nil;o.number&&delete o.integer;for(let a in o)i=Ee.and(i,fl(a,r,e,n));return i}Ut.checkDataTypes=pl;var gy={message:({schema:t})=>Ee.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?Ee._`{type: ${t}}`:Ee._`{type: ${r}}`};function dl(t){let r=yy(t);cy.reportError(r,gy)}Ut.reportTypeError=dl;function yy(t){let{gen:r,data:e,schema:n}=t,i=Af.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var Po=ce(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.getData=void 0;var Tf=Qi(),Ps=dt(),Oo=So(),St=Pe(),ml=Zr(),$y=di(),hl=class{constructor(r,e,n){if(ky(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=Ps.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",If(this.$data,r));else if(this.schemaCode=this.schemaValue,!by(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",ml.default.errors))}result(r,e,n){this.gen.if(St.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(St._`${e} !== undefined && (${St.or(this.invalid$data(),r)})`)}error(r){(r?Oo.reportExtraError:Oo.reportError)(this,this.def.error)}$dataError(){Oo.reportError(this,this.def.$dataError||Oo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Oo.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=St.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=St.nil,e=St.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if(St.or(St._`${i} === undefined`,e)),r!==St.nil&&n.assign(r,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==St.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:i,it:o}=this;return St.or(a(),c());function a(){if(n.length){if(!(e instanceof St.Name))throw new Error("ajv implementation error");let f=Array.isArray(n)?n:[n];return St._`${Tf.checkDataTypes(f,e,o.opts.strict,Tf.DataType.Wrong)}`}return St.nil}function c(){if(i.validateSchema){let f=r.scopeValue("validate$data",{ref:i.validateSchema});return St._`!${f}(${e})`}return St.nil}}subschema(r,e){return $y.applySubschema(this.it,r,e)}mergeEvaluated(r,e){let{it:n,gen:i}=this;!n.opts.unevaluated||(n.props!==!0&&r.props!==void 0&&(n.props=Ps.mergeEvaluated.props(i,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=Ps.mergeEvaluated.items(i,r.items,n.items,e)))}mergeValidEvaluated(r,e){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(e,()=>this.mergeEvaluated(r,St.Name)),!0}};qo.default=hl;function by(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 ky({schema:t,opts:r,self:e},n,i){if(Array.isArray(n.keyword)?!n.keyword.includes(i):n.keyword!==i)throw new Error("ajv implementation error");let o=n.dependencies;if(o!=null&&o.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[i])){let c="keyword value is invalid: "+e.errorsText(n.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(c);else throw new Error(c)}}var wy=/^\/(?:[^~]|~0|~1)*$/,vy=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function If(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let i,o;if(t==="")return ml.default.rootData;if(t[0]==="/"){if(!wy.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=ml.default.rootData}else{let h=vy.exec(t);if(!h)throw new Error(`Invalid JSON-pointer: ${t}`);let d=+h[1];if(i=h[2],i==="#"){if(d>=r)throw new Error(f("property/index",d));return n[r-d]}if(d>r)throw new Error(f("data",d));if(o=e[r-d],!i)return o}let a=o,c=i.split("/");for(let h of c)h&&(o=St._`${o}${St.getProperty(Ps.unescapeJsonPointer(h))}`,a=St._`${a} && ${o}`);return a;function f(h,d){return`Cannot access ${h} ${d} levels up, current level is ${r}`}}qo.getData=If});var Fs=ce((Yi,Ff)=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.MissingRefError=Yi.ValidationError=void 0;var gl=Io(),Ts=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};Yi.ValidationError=Ts;var Is=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=gl.resolveUrl(r,e),this.missingSchema=gl.normalizeId(gl.getFullPath(this.missingRef))}};Yi.MissingRefError=Is;Ff.exports={ValidationError:Ts,MissingRefError:Is}});var bl=ce(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.resolveSchema=Rr.getCompilingSchema=Rr.resolveRef=Rr.compileSchema=Rr.SchemaEnv=void 0;var Qr=Pe(),xy=Fs(),hi=Zr(),Xr=Io(),Of=dt(),Cy=Ar(),Ey=al(),eo=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:Xr.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={}}};Rr.SchemaEnv=eo;function $l(t){let r=qf.call(this,t);if(r)return r;let e=Xr.getFullPath(t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Qr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;t.$async&&(c=a.scopeValue("Error",{ref:xy.ValidationError,code:Qr._`require("ajv/dist/compile/error_classes").ValidationError`}));let f=a.scopeName("validate");t.validateName=f;let h={gen:a,allErrors:this.opts.allErrors,data:hi.default.data,parentData:hi.default.parentData,parentDataProperty:hi.default.parentDataProperty,dataNames:[hi.default.data],dataPathArr:[Qr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:Qr.stringify(t.schema)}:{ref:t.schema}),validateName:f,ValidationError:c,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:Qr.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:Qr._`""`,opts:this.opts,self:this},d;try{this._compilations.add(t),Cy.validateFunctionCode(h),a.optimize(this.opts.code.optimize);let $=a.toString();d=`${a.scopeRefs(hi.default.scope)}return ${$}`,this.opts.code.process&&(d=this.opts.code.process(d,t));let k=new Function(`${hi.default.self}`,`${hi.default.scope}`,d)(this,this.scope.get());if(this.scope.value(f,{ref:k}),k.errors=null,k.schema=t.schema,k.schemaEnv=t,t.$async&&(k.$async=!0),this.opts.code.source===!0&&(k.source={validateName:f,validateCode:$,scopeValues:a._values}),this.opts.unevaluated){let{props:_,items:T}=h;k.evaluated={props:_ instanceof Qr.Name?void 0:_,items:T instanceof Qr.Name?void 0:T,dynamicProps:_ instanceof Qr.Name,dynamicItems:T instanceof Qr.Name},k.source&&(k.source.evaluated=Qr.stringify(k.evaluated))}return t.validate=k,t}catch($){throw delete t.validate,delete t.validateName,d&&this.logger.error("Error compiling schema, function code:",d),$}finally{this._compilations.delete(t)}}Rr.compileSchema=$l;function _y(t,r,e){var n;e=Xr.resolveUrl(r,e);let i=t.refs[e];if(i)return i;let o=Py.call(this,t,e);if(o===void 0){let a=(n=t.localRefs)===null||n===void 0?void 0:n[e];a&&(o=new eo({schema:a,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=Ay.call(this,o)}Rr.resolveRef=_y;function Ay(t){return Xr.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:$l.call(this,t)}function qf(t){for(let r of this._compilations)if(Sy(r,t))return r}Rr.getCompilingSchema=qf;function Sy(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function Py(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||Os.call(this,t,r)}function Os(t,r){let e=Ey.parse(r),n=Xr._getFullPath(e),i=Xr.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===i)return yl.call(this,e,t);let o=Xr.normalizeId(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=Os.call(this,t,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:yl.call(this,e,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||$l.call(this,a),o===Xr.normalizeId(r)){let{schema:c}=a;return c.$id&&(i=Xr.resolveUrl(i,c.$id)),new eo({schema:c,root:t,baseId:i})}return yl.call(this,e,a)}}Rr.resolveSchema=Os;var Ty=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function yl(t,{baseId:r,schema:e,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof e=="boolean"||(e=e[Of.unescapeFragment(a)],e===void 0))return;!Ty.has(a)&&typeof e=="object"&&e.$id&&(r=Xr.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!Of.schemaHasRulesButRef(e,this.RULES)){let a=Xr.resolveUrl(r,e.$ref);o=Os.call(this,n,a)}if(o=o||new eo({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var Df=ce((B1,Iy)=>{Iy.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 Bf=ce(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.CodeGen=Ht.Name=Ht.nil=Ht.stringify=Ht.str=Ht._=Ht.KeywordCxt=void 0;var Fy=Po();Ht.KeywordCxt=Fy.default;var to=Pe();Object.defineProperty(Ht,"_",{enumerable:!0,get:function(){return to._}});Object.defineProperty(Ht,"str",{enumerable:!0,get:function(){return to.str}});Object.defineProperty(Ht,"stringify",{enumerable:!0,get:function(){return to.stringify}});Object.defineProperty(Ht,"nil",{enumerable:!0,get:function(){return to.nil}});Object.defineProperty(Ht,"Name",{enumerable:!0,get:function(){return to.Name}});Object.defineProperty(Ht,"CodeGen",{enumerable:!0,get:function(){return to.CodeGen}});var vl=Fs(),Oy=Na(),Do=bl(),qy=Pe(),qs=Io(),Ds=Qi(),wl=dt(),Nf=Df(),Dy=["removeAdditional","useDefaults","coerceTypes"],Ny=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Ry={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."},Ly={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function jy(t){var r,e,n,i,o,a,c,f,h,d,$,v;let k=(r=t.strict)!==null&&r!==void 0?r:!0,_=k?"log":!1,T=(e=t.code)===null||e===void 0?void 0:e.optimize,L=T===!0||T===void 0?1:T||0;return{strict:k,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:_,strictTuples:(i=t.strictTuples)!==null&&i!==void 0?i:_,code:t.code?{...t.code,optimize:L}:{optimize:L},loopRequired:(o=t.loopRequired)!==null&&o!==void 0?o:1/0,loopEnum:(a=t.loopEnum)!==null&&a!==void 0?a:1/0,meta:(c=t.meta)!==null&&c!==void 0?c:!0,messages:(f=t.messages)!==null&&f!==void 0?f:!0,inlineRefs:(h=t.inlineRefs)!==null&&h!==void 0?h:!0,addUsedSchema:(d=t.addUsedSchema)!==null&&d!==void 0?d:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(v=t.validateFormats)!==null&&v!==void 0?v:!0}}var No=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...jy(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new qy.ValueScope({scope:{},prefixes:Ny,es5:e,lines:n}),this.logger=Hy(r.logger);let i=r.validateFormats;r.validateFormats=!1,this.RULES=Oy.getRules(),Rf.call(this,Ry,r,"NOT SUPPORTED"),Rf.call(this,Ly,r,"DEPRECATED","warn"),this._metaOpts=Vy.call(this),r.formats&&zy.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&My.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),By.call(this),r.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(Nf,Nf.$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 i=n(e);return"$async"in n||(this.errors=n.errors),i}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 i.call(this,r,e);async function i(d,$){await o.call(this,d.$schema);let v=this._addSchema(d,$);return v.validate||a.call(this,v)}async function o(d){d&&!this.getSchema(d)&&await i.call(this,{$ref:d},!0)}async function a(d){try{return this._compileSchemaEnv(d)}catch($){if(!($ instanceof vl.MissingRefError))throw $;return c.call(this,$),await f.call(this,$.missingSchema),a.call(this,d)}}function c({missingSchema:d,missingRef:$}){if(this.refs[d])throw new Error(`AnySchema ${d} is loaded but ${$} cannot be resolved`)}async function f(d){let $=await h.call(this,d);this.refs[d]||await o.call(this,$.$schema),this.refs[d]||this.addSchema($,d,e)}async function h(d){let $=this._loading[d];if($)return $;try{return await(this._loading[d]=n(d))}finally{delete this._loading[d]}}}addSchema(r,e,n,i=this.opts.validateSchema){if(Array.isArray(r)){for(let a of r)this.addSchema(a,void 0,n,i);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=qs.normalizeId(e||o),this._checkUnique(e),this.schemas[e]=this._addSchema(r,n,i,!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 i=this.validate(n,r);if(!i&&e){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(r){let e;for(;typeof(e=Lf.call(this,r))=="string";)r=e;if(e===void 0){let n=new Do.SchemaEnv({schema:{}});if(e=Do.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=Lf.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=qs.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(Ky.call(this,n,e),!e)return wl.eachItem(n,o=>kl.call(this,o)),this;Zy.call(this,e);let i={...e,type:Ds.getJSONTypes(e.type),schemaType:Ds.getJSONTypes(e.schemaType)};return wl.eachItem(n,i.type.length===0?o=>kl.call(this,o,i):o=>i.type.forEach(a=>kl.call(this,o,i,a))),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 i=n.rules.findIndex(o=>o.keyword===r);i>=0&&n.rules.splice(i,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(i=>`${n}${i.dataPath} ${i.message}`).reduce((i,o)=>i+e+o)}$dataMetaSchema(r,e){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let i of e){let o=i.split("/").slice(1),a=r;for(let c of o)a=a[c];for(let c in n){let f=n[c];if(typeof f!="object")continue;let{$data:h}=f.definition,d=a[c];h&&d&&(a[c]=jf(d))}}return r}_removeAllSchemas(r,e){for(let n in r){let i=r[n];(!e||e.test(n))&&(typeof i=="string"?delete r[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete r[n]))}}_addSchema(r,e,n=this.opts.validateSchema,i=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 a=qs.getSchemaRefs.call(this,r);o=new Do.SchemaEnv({schema:r,meta:e,localRefs:a}),this._cache.set(o.schema,o);let c=o.baseId;return i&&!c.startsWith("#")&&(c&&this._checkUnique(c),this.refs[c]=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):Do.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{Do.compileSchema.call(this,r)}finally{this.opts=e}}};Ht.default=No;No.ValidationError=vl.ValidationError;No.MissingRefError=vl.MissingRefError;function Rf(t,r,e,n="error"){for(let i in t){let o=i;o in r&&this.logger[n](`${e}: option ${i}. ${t[o]}`)}}function Lf(t){return t=qs.normalizeId(t),this.schemas[t]||this.refs[t]}function By(){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 zy(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function My(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 Vy(){let t={...this.opts};for(let r of Dy)delete t[r];return t}var Uy={log(){},warn(){},error(){}};function Hy(t){if(t===!1)return Uy;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 Gy=/^[a-z_$][a-z0-9_$:-]*$/i;function Ky(t,r){let{RULES:e}=this;if(wl.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Gy.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 kl(t,r,e){var n;let i=r==null?void 0:r.post;if(e&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:f})=>f===e);if(a||(a={type:e,rules:[]},o.rules.push(a)),o.keywords[t]=!0,!r)return;let c={keyword:t,definition:{...r,type:Ds.getJSONTypes(r.type),schemaType:Ds.getJSONTypes(r.schemaType)}};r.before?Wy.call(this,a,c,r.before):a.rules.push(c),o.all[t]=c,(n=r.implements)===null||n===void 0||n.forEach(f=>this.addKeyword(f))}function Wy(t,r,e){let n=t.rules.findIndex(i=>i.keyword===e);n>=0?t.rules.splice(n,0,r):(t.rules.push(r),this.logger.warn(`rule ${e} is not defined`))}function Zy(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=jf(r)),t.validateSchema=this.compile(r,!0))}var Jy={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jf(t){return{anyOf:[t,Jy]}}});var zf=ce(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Qy={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xl.default=Qy});var Hf=ce(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.callRef=gi.getValidate=void 0;var Xy=Fs(),Mf=Jr(),br=Pe(),ro=Zr(),Vf=bl(),Ns=dt(),Yy={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:f}=n;if(e==="#"||e==="#/")return d();let h=Vf.resolveRef.call(f,o.root,i,e);if(h===void 0)throw new Xy.MissingRefError(i,e);if(h instanceof Vf.SchemaEnv)return $(h);return v(h);function d(){if(o===o.root)return Rs(t,a,o,o.$async);let k=r.scopeValue("root",{ref:o.root});return Rs(t,br._`${k}.validate`,o.root,o.root.$async)}function $(k){let _=Uf(t,k);Rs(t,_,k,k.$async)}function v(k){let _=r.scopeValue("schema",c.code.source===!0?{ref:k,code:br.stringify(k)}:{ref:k}),T=r.name("valid"),L=t.subschema({schema:k,dataTypes:[],schemaPath:br.nil,topSchemaRef:_,errSchemaPath:e},T);t.mergeEvaluated(L),t.ok(T)}}};function Uf(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):br._`${e.scopeValue("wrapper",{ref:r})}.validate`}gi.getValidate=Uf;function Rs(t,r,e,n){let{gen:i,it:o}=t,{allErrors:a,schemaEnv:c,opts:f}=o,h=f.passContext?ro.default.this:br.nil;n?d():$();function d(){if(!c.$async)throw new Error("async schema referenced by sync schema");let _=i.let("valid");i.try(()=>{i.code(br._`await ${Mf.callValidateCode(t,r,h)}`),k(r),a||i.assign(_,!0)},T=>{i.if(br._`!(${T} instanceof ${o.ValidationError})`,()=>i.throw(T)),v(T),a||i.assign(_,!1)}),t.ok(_)}function $(){t.result(Mf.callValidateCode(t,r,h),()=>k(r),()=>v(r))}function v(_){let T=br._`${_}.errors`;i.assign(ro.default.vErrors,br._`${ro.default.vErrors} === null ? ${T} : ${ro.default.vErrors}.concat(${T})`),i.assign(ro.default.errors,br._`${ro.default.vErrors}.length`)}function k(_){var T;if(!o.opts.unevaluated)return;let L=(T=e==null?void 0:e.validate)===null||T===void 0?void 0:T.evaluated;if(o.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(o.props=Ns.mergeEvaluated.props(i,L.props,o.props));else{let N=i.var("props",br._`${_}.evaluated.props`);o.props=Ns.mergeEvaluated.props(i,N,o.props,br.Name)}if(o.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(o.items=Ns.mergeEvaluated.items(i,L.items,o.items));else{let N=i.var("items",br._`${_}.evaluated.items`);o.items=Ns.mergeEvaluated.items(i,N,o.items,br.Name)}}}gi.callRef=Rs;gi.default=Yy});var Gf=ce(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var e$=zf(),t$=Hf(),r$=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e$.default,t$.default];Cl.default=r$});var Kf=ce(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Ls=Pe(),Vn=Ls.operators,js={maximum:{okStr:"<=",ok:Vn.LTE,fail:Vn.GT},minimum:{okStr:">=",ok:Vn.GTE,fail:Vn.LT},exclusiveMaximum:{okStr:"<",ok:Vn.LT,fail:Vn.GTE},exclusiveMinimum:{okStr:">",ok:Vn.GT,fail:Vn.LTE}},n$={message:({keyword:t,schemaCode:r})=>Ls.str`should be ${js[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>Ls._`{comparison: ${js[t].okStr}, limit: ${r}}`},i$={keyword:Object.keys(js),type:"number",schemaType:"number",$data:!0,error:n$,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(Ls._`${e} ${js[r].fail} ${n} || isNaN(${e})`)}};El.default=i$});var Wf=ce(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var Ro=Pe(),o$={message:({schemaCode:t})=>Ro.str`should be multiple of ${t}`,params:({schemaCode:t})=>Ro._`{multipleOf: ${t}}`},s$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:o$,code(t){let{gen:r,data:e,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,a=r.let("res"),c=o?Ro._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:Ro._`${a} !== parseInt(${a})`;t.fail$data(Ro._`(${n} === 0 || (${a} = ${e}/${n}, ${c}))`)}};_l.default=s$});var Zf=ce(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});function a$(t){let r=t.length,e=0,n=0,i;for(;n<r;)e++,i=t.charCodeAt(n++),i>=55296&&i<=56319&&n<r&&(i=t.charCodeAt(n),(i&64512)===56320&&n++);return e}Al.default=a$});var Jf=ce(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Un=Pe(),l$=Zf(),u$={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return Un.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>Un._`{limit: ${t}}`},c$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:u$,code(t){let{keyword:r,data:e,schemaCode:n,it:i}=t,o=r==="maxLength"?Un.operators.GT:Un.operators.LT,a;if(i.opts.unicode===!1)a=Un._`${e}.length`;else{let c=t.gen.scopeValue("func",{ref:l$.default,code:Un._`require("ajv/dist/compile/ucs2length").default`});a=Un._`${c}(${e})`}t.fail$data(Un._`${a} ${o} ${n}`)}};Sl.default=c$});var Qf=ce(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var f$=Jr(),Bs=Pe(),p$={message:({schemaCode:t})=>Bs.str`should match pattern "${t}"`,params:({schemaCode:t})=>Bs._`{pattern: ${t}}`},d$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:p$,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o}=t,a=n?Bs._`(new RegExp(${o}, "u"))`:f$.usePattern(r,i);t.fail$data(Bs._`!${a}.test(${e})`)}};Pl.default=d$});var Xf=ce(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Lo=Pe(),m$={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Lo.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Lo._`{limit: ${t}}`},h$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:m$,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxProperties"?Lo.operators.GT:Lo.operators.LT;t.fail$data(Lo._`Object.keys(${e}).length ${i} ${n}`)}};Tl.default=h$});var Yf=ce(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var jo=Jr(),Bo=Pe(),g$=Ar(),y$={message:({params:{missingProperty:t}})=>Bo.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>Bo._`{missingProperty: ${t}}`},$$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:y$,code(t){let{gen:r,schema:e,schemaCode:n,data:i,$data:o,it:a}=t,{opts:c}=a;if(!o&&e.length===0)return;let f=e.length>=c.loopRequired;if(a.allErrors?h():d(),c.strictRequired){let k=t.parentSchema.properties,{definedProperties:_}=t.it;for(let T of e)if((k==null?void 0:k[T])===void 0&&!_.has(T)){let L=a.schemaEnv.baseId+a.errSchemaPath,N=`required property "${T}" is not defined at "${L}" (strictRequired)`;g$.checkStrictMode(a,N,a.opts.strictRequired)}}function h(){if(f||o)t.block$data(Bo.nil,$);else for(let k of e)jo.checkReportMissingProp(t,k)}function d(){let k=r.let("missing");if(f||o){let _=r.let("valid",!0);t.block$data(_,()=>v(k,_)),t.ok(_)}else r.if(jo.checkMissingProp(t,e,k)),jo.reportMissingProp(t,k),r.else()}function $(){r.forOf("prop",n,k=>{t.setParams({missingProperty:k}),r.if(jo.noPropertyInData(r,i,k,c.ownProperties),()=>t.error())})}function v(k,_){t.setParams({missingProperty:k}),r.forOf(k,n,()=>{r.assign(_,jo.propertyInData(r,i,k,c.ownProperties)),r.if(Bo.not(_),()=>{t.error(),r.break()})},Bo.nil)}}};Il.default=$$});var ep=ce(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var zo=Pe(),b$={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return zo.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>zo._`{limit: ${t}}`},k$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:b$,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxItems"?zo.operators.GT:zo.operators.LT;t.fail$data(zo._`${e}.length ${i} ${n}`)}};Fl.default=k$});var tp=ce(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var Ol=Qi(),Rt=Pe(),w$=To(),v$={message:({params:{i:t,j:r}})=>Rt.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Rt._`{i: ${t}, j: ${r}}`},x$={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:v$,code(t){let{gen:r,data:e,$data:n,schema:i,parentSchema:o,schemaCode:a,it:c}=t;if(!n&&!i)return;let f=r.let("valid"),h=o.items?Ol.getSchemaTypes(o.items):[];t.block$data(f,d,Rt._`${a} === false`),t.ok(f);function d(){let _=r.let("i",Rt._`${e}.length`),T=r.let("j");t.setParams({i:_,j:T}),r.assign(f,!0),r.if(Rt._`${_} > 1`,()=>($()?v:k)(_,T))}function $(){return h.length>0&&!h.some(_=>_==="object"||_==="array")}function v(_,T){let L=r.name("item"),N=Ol.checkDataTypes(h,L,c.opts.strict,Ol.DataType.Wrong),ee=r.const("indices",Rt._`{}`);r.for(Rt._`;${_}--;`,()=>{r.let(L,Rt._`${e}[${_}]`),r.if(N,Rt._`continue`),h.length>1&&r.if(Rt._`typeof ${L} == "string"`,Rt._`${L} += "_"`),r.if(Rt._`typeof ${ee}[${L}] == "number"`,()=>{r.assign(T,Rt._`${ee}[${L}]`),t.error(),r.assign(f,!1).break()}).code(Rt._`${ee}[${L}] = ${_}`)})}function k(_,T){let L=t.gen.scopeValue("func",{ref:w$,code:Rt._`require("ajv/dist/compile/equal")`}),N=r.name("outer");r.label(N).for(Rt._`;${_}--;`,()=>r.for(Rt._`${T} = ${_}; ${T}--;`,()=>r.if(Rt._`${L}(${e}[${_}], ${e}[${T}])`,()=>{t.error(),r.assign(f,!1).break(N)})))}}};ql.default=x$});var rp=ce(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Dl=Pe(),C$=To(),E$={message:"should be equal to constant",params:({schemaCode:t})=>Dl._`{allowedValue: ${t}}`},_$={keyword:"const",$data:!0,error:E$,code(t){let r=t.gen.scopeValue("func",{ref:C$,code:Dl._`require("ajv/dist/compile/equal")`});t.fail$data(Dl._`!${r}(${t.data}, ${t.schemaCode})`)}};Nl.default=_$});var np=ce(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var no=Pe(),A$=To(),S$={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>no._`{allowedValues: ${t}}`},P$={keyword:"enum",schemaType:"array",$data:!0,error:S$,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o,it:a}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,f=t.gen.scopeValue("func",{ref:A$,code:no._`require("ajv/dist/compile/equal")`}),h;if(c||n)h=r.let("valid"),t.block$data(h,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let v=r.const("vSchema",o);h=no.or(...i.map((k,_)=>$(v,_)))}t.pass(h);function d(){r.assign(h,!1),r.forOf("v",o,v=>r.if(no._`${f}(${e}, ${v})`,()=>r.assign(h,!0).break()))}function $(v,k){let _=i[k];return _&&typeof _=="object"?no._`${f}(${e}, ${v}[${k}])`:no._`${e} === ${_}`}}};Rl.default=P$});var ip=ce(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var T$=Kf(),I$=Wf(),F$=Jf(),O$=Qf(),q$=Xf(),D$=Yf(),N$=ep(),R$=tp(),L$=rp(),j$=np(),B$=[T$.default,I$.default,F$.default,O$.default,q$.default,D$.default,N$.default,R$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},L$.default,j$.default];Ll.default=B$});var op=ce(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var yi=Pe(),z$=di(),M$=dt(),V$=Ar(),U$={message:({params:{len:t}})=>yi.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>yi._`{limit: ${t}}`},H$={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:U$,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,{items:a}=n;if(!Array.isArray(a)){V$.checkStrictMode(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}o.items=!0;let c=r.const("len",yi._`${i}.length`);if(e===!1)t.setParams({len:a.length}),t.pass(yi._`${c} <= ${a.length}`);else if(typeof e=="object"&&!M$.alwaysValidSchema(o,e)){let h=r.var("valid",yi._`${c} <= ${a.length}`);r.if(yi.not(h),()=>f(h)),t.ok(h)}function f(h){r.forRange("i",a.length,c,d=>{t.subschema({keyword:"additionalItems",dataProp:d,dataPropType:z$.Type.Num},h),o.allErrors||r.if(yi.not(h),()=>r.break())})}}};jl.default=H$});var ap=ce(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var sp=Pe(),Bl=dt(),G$=Ar(),K$=Jr(),W$={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=Bl.mergeEvaluated.items(r,e.length,n.items)),i(e);else{if(n.items=!0,Bl.alwaysValidSchema(n,e))return;t.ok(K$.validateArray(t))}function i(o){let{parentSchema:a,data:c}=t;if(n.opts.strictTuples&&!Z$(o.length,a)){let d=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;G$.checkStrictMode(n,d,n.opts.strictTuples)}let f=r.name("valid"),h=r.const("len",sp._`${c}.length`);o.forEach((d,$)=>{Bl.alwaysValidSchema(n,d)||(r.if(sp._`${h} > ${$}`,()=>t.subschema({keyword:"items",schemaProp:$,dataProp:$},f)),t.ok(f))})}}};function Z$(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}zl.default=W$});var up=ce(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var Yr=Pe(),J$=di(),Q$=dt(),lp=Ar(),X$={message:({params:{min:t,max:r}})=>r===void 0?Yr.str`should contain at least ${t} valid item(s)`:Yr.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?Yr._`{minContains: ${t}}`:Yr._`{minContains: ${t}, maxContains: ${r}}`},Y$={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:X$,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,a,c,{minContains:f,maxContains:h}=n;o.opts.next?(a=f===void 0?1:f,c=h):a=1;let d=r.const("len",Yr._`${i}.length`);if(t.setParams({min:a,max:c}),c===void 0&&a===0){lp.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){lp.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(Q$.alwaysValidSchema(o,e)){let _=Yr._`${d} >= ${a}`;c!==void 0&&(_=Yr._`${_} && ${d} <= ${c}`),t.pass(_);return}o.items=!0;let $=r.name("valid");if(c===void 0&&a===1)v($,()=>r.if($,()=>r.break()));else{r.let($,!1);let _=r.name("_valid"),T=r.let("count",0);v(_,()=>r.if(_,()=>k(T)))}t.result($,()=>t.reset());function v(_,T){r.forRange("i",0,d,L=>{t.subschema({keyword:"contains",dataProp:L,dataPropType:J$.Type.Num,compositeRule:!0},_),T()})}function k(_){r.code(Yr._`${_}++`),c===void 0?r.if(Yr._`${_} >= ${a}`,()=>r.assign($,!0).break()):(r.if(Yr._`${_} > ${c}`,()=>r.assign($,!1).break()),a===1?r.assign($,!0):r.if(Yr._`${_} >= ${a}`,()=>r.assign($,!0)))}}};Ml.default=Y$});var pp=ce(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.validateSchemaDeps=mn.validatePropertyDeps=mn.error=void 0;var Vl=Pe(),eb=dt(),Mo=Jr();mn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return Vl.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>Vl._`{property: ${t},
|
|
6
6
|
missingProperty: ${n},
|
|
7
7
|
depsCount: ${r},
|
|
8
|
-
deps: ${e}}`};var t$={keyword:"dependencies",type:"object",schemaType:"object",error:mn.error,code(t){let[r,e]=r$(t);cp(t,r),fp(t,e)}};function r$({schema:t}){let r={},e={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?r:e;i[n]=t[n]}return[r,e]}function cp(t,r=t.schema){let{gen:e,data:n,it:i}=t;if(Object.keys(r).length===0)return;let o=e.let("missing");for(let a in r){let c=r[a];if(c.length===0)continue;let f=Mo.propertyInData(e,n,a,i.opts.ownProperties);t.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?e.if(f,()=>{for(let h of c)Mo.checkReportMissingProp(t,h)}):(e.if(Vl._`${f} && (${Mo.checkMissingProp(t,c,o)})`),Mo.reportMissingProp(t,o),e.else())}}mn.validatePropertyDeps=cp;function fp(t,r=t.schema){let{gen:e,data:n,keyword:i,it:o}=t,a=e.name("valid");for(let c in r)e$.alwaysValidSchema(o,r[c])||(e.if(Mo.propertyInData(e,n,c,o.opts.ownProperties),()=>{let f=t.subschema({keyword:i,schemaProp:c},a);t.mergeValidEvaluated(f,a)},()=>e.var(a,!0)),t.ok(a))}mn.validateSchemaDeps=fp;mn.default=t$});var dp=ce(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var Ul=Pe(),n$=dt(),i$={message:({params:t})=>Ul.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>Ul._`{propertyName: ${t.propertyName}}`},o$={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:i$,code(t){let{gen:r,schema:e,data:n,it:i}=t;if(n$.alwaysValidSchema(i,e))return;let o=r.name("valid");r.forIn("key",n,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),r.if(Ul.not(o),()=>{t.error(!0),i.allErrors||r.break()})}),t.ok(o)}};Hl.default=o$});var Wl=ce(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var zs=Jr(),en=Pe(),s$=Zr(),a$=di(),Gl=dt(),l$={message:"should NOT have additional properties",params:({params:t})=>en._`{additionalProperty: ${t.additionalProperty}}`},u$={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:l$,code(t){let{gen:r,schema:e,parentSchema:n,data:i,errsCount:o,it:a}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:f}=a;if(a.props=!0,f.removeAdditional!=="all"&&Gl.alwaysValidSchema(a,e))return;let h=zs.allSchemaProperties(n.properties),d=zs.allSchemaProperties(n.patternProperties);b(),t.ok(en._`${o} === ${s$.default.errors}`);function b(){r.forIn("key",i,L=>{!h.length&&!d.length?_(L):r.if(v(L),()=>_(L))})}function v(L){let N;if(h.length>8){let ee=Gl.schemaRefOrVal(a,n.properties,"properties");N=zs.isOwnProperty(r,ee,L)}else h.length?N=en.or(...h.map(ee=>en._`${L} === ${ee}`)):N=en.nil;return d.length&&(N=en.or(N,...d.map(ee=>en._`${zs.usePattern(r,ee)}.test(${L})`))),en.not(N)}function k(L){r.code(en._`delete ${i}[${L}]`)}function _(L){if(f.removeAdditional==="all"||f.removeAdditional&&e===!1){k(L);return}if(e===!1){t.setParams({additionalProperty:L}),t.error(),c||r.break();return}if(typeof e=="object"&&!Gl.alwaysValidSchema(a,e)){let N=r.name("valid");f.removeAdditional==="failing"?(T(L,N,!1),r.if(en.not(N),()=>{t.reset(),k(L)})):(T(L,N),c||r.if(en.not(N),()=>r.break()))}}function T(L,N,ee){let re={keyword:"additionalProperties",dataProp:L,dataPropType:a$.Type.Str};ee===!1&&Object.assign(re,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(re,N)}}};Kl.default=u$});var gp=ce(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var c$=Po(),mp=Jr(),Zl=dt(),hp=Wl(),f$={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&hp.default.code(new c$.default(o,hp.default,"additionalProperties"));let a=mp.allSchemaProperties(e);for(let b of a)o.definedProperties.add(b);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Zl.mergeEvaluated.props(r,Zl.toHash(a),o.props));let c=a.filter(b=>!Zl.alwaysValidSchema(o,e[b]));if(c.length===0)return;let f=r.name("valid");for(let b of c)h(b)?d(b):(r.if(mp.propertyInData(r,i,b,o.opts.ownProperties)),d(b),o.allErrors||r.else().var(f,!0),r.endIf()),t.it.definedProperties.add(b),t.ok(f);function h(b){return o.opts.useDefaults&&!o.compositeRule&&e[b].default!==void 0}function d(b){t.subschema({keyword:"properties",schemaProp:b,dataProp:b},f)}}};Jl.default=f$});var bp=ce(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var yp=Jr(),Ms=Pe(),p$=di(),d$=Ar(),m$=dt(),h$={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:i,it:o}=t,{opts:a}=o,c=yp.schemaProperties(o,e);if(c.length===0)return;let f=a.strict&&!a.allowMatchingProperties&&i.properties,h=r.name("valid");o.props!==!0&&!(o.props instanceof Ms.Name)&&(o.props=m$.evaluatedPropsToName(r,o.props));let{props:d}=o;b();function b(){for(let _ of c)f&&v(_),o.allErrors?k(_):(r.var(h,!0),k(_),r.if(h))}function v(_){for(let T in f)new RegExp(_).test(T)&&d$.checkStrictMode(o,`property ${T} matches pattern ${_} (use allowMatchingProperties)`)}function k(_){r.forIn("key",n,T=>{r.if(Ms._`${yp.usePattern(r,_)}.test(${T})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:_,dataProp:T,dataPropType:p$.Type.Str},h),o.opts.unevaluated&&d!==!0?r.assign(Ms._`${d}[${T}]`,!0):o.allErrors||r.if(Ms.not(h),()=>r.break())})})}}};Ql.default=h$});var $p=ce(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var g$=dt(),y$={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(g$.alwaysValidSchema(n,e)){t.fail();return}let i=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.result(i,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};Xl.default=y$});var kp=ce(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var b$=Jr(),$$={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:b$.validateUnion,error:{message:"should match some schema in anyOf"}};Yl.default=$$});var wp=ce(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var Vs=Pe(),k$=dt(),w$={message:"should match exactly one schema in oneOf",params:({params:t})=>Vs._`{passingSchemas: ${t.passing}}`},v$={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:w$,code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let i=e,o=r.let("valid",!1),a=r.let("passing",null),c=r.name("_valid");t.setParams({passing:a}),r.block(f),t.result(o,()=>t.reset(),()=>t.error(!0));function f(){i.forEach((h,d)=>{let b;k$.alwaysValidSchema(n,h)?r.var(c,!0):b=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&r.if(Vs._`${c} && ${o}`).assign(o,!1).assign(a,Vs._`[${a}, ${d}]`).else(),r.if(c,()=>{r.assign(o,!0),r.assign(a,d),b&&t.mergeEvaluated(b,Vs.Name)})})}}};eu.default=v$});var vp=ce(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var x$=dt(),C$={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 i=r.name("valid");e.forEach((o,a)=>{if(x$.alwaysValidSchema(n,o))return;let c=t.subschema({keyword:"allOf",schemaProp:a},i);t.ok(i),t.mergeEvaluated(c)})}};tu.default=C$});var Cp=ce(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});var Us=Pe(),E$=dt(),_$=Ar(),A$={message:({params:t})=>Us.str`should match "${t.ifClause}" schema`,params:({params:t})=>Us._`{failingKeyword: ${t.ifClause}}`},S$={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:A$,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&_$.checkStrictMode(n,'"if" without "then" and "else" is ignored');let i=xp(n,"then"),o=xp(n,"else");if(!i&&!o)return;let a=r.let("valid",!0),c=r.name("_valid");if(f(),t.reset(),i&&o){let d=r.let("ifClause");t.setParams({ifClause:d}),r.if(c,h("then",d),h("else",d))}else i?r.if(c,h("then")):r.if(Us.not(c),h("else"));t.pass(a,()=>t.error(!0));function f(){let d=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);t.mergeEvaluated(d)}function h(d,b){return()=>{let v=t.subschema({keyword:d},c);r.assign(a,c),t.mergeValidEvaluated(v,a),b?r.assign(b,Us._`${d}`):t.setParams({ifClause:d})}}}};function xp(t,r){let e=t.schema[r];return e!==void 0&&!E$.alwaysValidSchema(t,e)}ru.default=S$});var Ep=ce(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var P$=Ar(),T$={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&P$.checkStrictMode(e,`"${t}" without "if" is ignored`)}};nu.default=T$});var _p=ce(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});var I$=op(),F$=ap(),O$=up(),q$=pp(),D$=dp(),N$=Wl(),R$=gp(),L$=bp(),j$=$p(),B$=kp(),z$=wp(),M$=vp(),V$=Cp(),U$=Ep(),H$=[j$.default,B$.default,z$.default,M$.default,V$.default,U$.default,I$.default,F$.default,O$.default,D$.default,N$.default,q$.default,R$.default,L$.default];iu.default=H$});var Ap=ce(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var Pt=Pe(),G$={message:({schemaCode:t})=>Pt.str`should match format "${t}"`,params:({schemaCode:t})=>Pt._`{format: ${t}}`},K$={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:G$,code(t,r){let{gen:e,data:n,$data:i,schema:o,schemaCode:a,it:c}=t,{opts:f,errSchemaPath:h,schemaEnv:d,self:b}=c;if(!f.validateFormats)return;i?v():k();function v(){let _=e.scopeValue("formats",{ref:b.formats,code:f.code.formats}),T=e.const("fDef",Pt._`${_}[${a}]`),L=e.let("fType"),N=e.let("format");e.if(Pt._`typeof ${T} == "object" && !(${T} instanceof RegExp)`,()=>e.assign(L,Pt._`${T}.type || "string"`).assign(N,Pt._`${T}.validate`),()=>e.assign(L,Pt._`"string"`).assign(N,T)),t.fail$data(Pt.or(ee(),re()));function ee(){return f.strict===!1?Pt.nil:Pt._`${a} && !${N}`}function re(){let de=d.$async?Pt._`(${T}.async ? await ${N}(${n}) : ${N}(${n}))`:Pt._`${N}(${n})`,fe=Pt._`(typeof ${N} == "function" ? ${de} : ${N}.test(${n}))`;return Pt._`${N} && ${N} !== true && ${L} === ${r} && !${fe}`}}function k(){let _=b.formats[o];if(!_){ee();return}if(_===!0)return;let[T,L,N]=re(_);T===r&&t.pass(de());function ee(){if(f.strict===!1){b.logger.warn(fe());return}throw new Error(fe());function fe(){return`unknown format "${o}" ignored in schema at path "${h}"`}}function re(fe){let J=e.scopeValue("formats",{key:o,ref:fe,code:f.code.formats?Pt._`${f.code.formats}${Pt.getProperty(o)}`:void 0});return typeof fe=="object"&&!(fe instanceof RegExp)?[fe.type||"string",fe.validate,Pt._`${J}.validate`]:["string",fe,J]}function de(){if(typeof _=="object"&&!(_ instanceof RegExp)&&_.async){if(!d.$async)throw new Error("async format in sync schema");return Pt._`await ${N}(${n})`}return typeof L=="function"?Pt._`${N}(${n})`:Pt._`${N}.test(${n})`}}}};ou.default=K$});var Sp=ce(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var W$=Ap(),Z$=[W$.default];su.default=Z$});var Pp=ce(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.contentVocabulary=io.metadataVocabulary=void 0;io.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];io.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Ip=ce(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var J$=Gf(),Q$=ip(),X$=_p(),Y$=Sp(),Tp=Pp(),ek=[J$.default,Q$.default,X$.default,Y$.default,Tp.metadataVocabulary,Tp.contentVocabulary];au.default=ek});var Fp=ce((v0,tk)=>{tk.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 qp=ce(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.CodeGen=Gt.Name=Gt.nil=Gt.stringify=Gt.str=Gt._=Gt.KeywordCxt=void 0;var rk=Po();Gt.KeywordCxt=rk.default;var oo=Pe();Object.defineProperty(Gt,"_",{enumerable:!0,get:function(){return oo._}});Object.defineProperty(Gt,"str",{enumerable:!0,get:function(){return oo.str}});Object.defineProperty(Gt,"stringify",{enumerable:!0,get:function(){return oo.stringify}});Object.defineProperty(Gt,"nil",{enumerable:!0,get:function(){return oo.nil}});Object.defineProperty(Gt,"Name",{enumerable:!0,get:function(){return oo.Name}});Object.defineProperty(Gt,"CodeGen",{enumerable:!0,get:function(){return oo.CodeGen}});var nk=Bf(),ik=Ip(),Op=Fp(),ok=["/properties"],Hs="http://json-schema.org/draft-07/schema",lu=class extends nk.default{_addVocabularies(){super._addVocabularies(),ik.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(Op,ok):Op;this.addMetaSchema(r,Hs,!1),this.refs["http://json-schema.org/schema"]=Hs}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Hs)?Hs:void 0)}};Gt.default=lu});var Np=ce((C0,Dp)=>{var sk=Object.prototype.hasOwnProperty,ak=Object.prototype.toString;Dp.exports=function(r,e,n){if(ak.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var o=0;o<i;o++)e.call(n,r[o],o,r);else for(var a in r)sk.call(r,a)&&e.call(n,r[a],a,r)}});var Lp=ce((E0,Rp)=>{"use strict";var lk=Np();Rp.exports=et;function et(t,r,e){if(arguments.length===3)return et.set(t,r,e);if(arguments.length===2)return et.get(t,r);var n=et.bind(et,t);for(var i in et)et.hasOwnProperty(i)&&(n[i]=et[i].bind(n,t));return n}et.get=function(r,e){for(var n=Array.isArray(e)?e:et.parse(e),i=0;i<n.length;++i){var o=n[i];if(!(typeof r=="object"&&o in r))throw new Error("Invalid reference token: "+o);r=r[o]}return r};et.set=function(r,e,n){var i=Array.isArray(e)?e:et.parse(e),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var a=0;a<i.length-1;++a){var c=i[a];c==="__proto__"||c==="constructor"||c==="prototype"||(c==="-"&&Array.isArray(r)&&(c=r.length),o=i[a+1],c in r||(o.match(/^(\d+|-)$/)?r[c]=[]:r[c]={}),r=r[c])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=n,this};et.remove=function(t,r){var e=Array.isArray(r)?r:et.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=et.get(t,e.slice(0,-1));if(Array.isArray(i)){var o=+n;if(n===""&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(i,o,1)}else delete i[n]};et.dict=function(r,e){var n={};return et.walk(r,function(i,o){n[o]=i},e),n};et.walk=function(r,e,n){var i=[];n=n||function(o){var a=Object.prototype.toString.call(o);return a==="[object Object]"||a==="[object Array]"},function o(a){lk(a,function(c,f){i.push(String(f)),n(c)?o(c):e(c,et.compile(i)),i.pop()})}(r)};et.has=function(r,e){try{et.get(r,e)}catch{return!1}return!0};et.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};et.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};et.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(et.unescape)};et.compile=function(r){return r.length===0?"":"/"+r.map(et.escape).join("/")}});var jp=ce((_0,uk)=>{uk.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var Bp=ce((A0,ck)=>{ck.exports={$ref:"#/definitions/AstTree",definitions:{Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},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"]},PodNode:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]},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:2,maxItems:2},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","location","margin","name","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"]},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"]},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"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},type:{type:"string",enum:["block"]},margin:{type:"string"},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"}},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$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/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$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"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","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"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","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"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},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/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]}}},required:["content","location","margin","text","type"]},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"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["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"]},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"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"}]}},text:{type:"string"},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","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["table_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:["table_cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["table_head"]},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"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},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","location","margin","name","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var zp=ce((S0,fk)=>{fk.exports={$ref:"#/definitions/RootBlock",definitions:{Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},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"]},PodNode:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]},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:2,maxItems:2},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","location","margin","name","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"]},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"]},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"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},type:{type:"string",enum:["block"]},margin:{type:"string"},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"}},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$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/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$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"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","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"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","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"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},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/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]}}},required:["content","location","margin","text","type"]},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"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["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"]},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"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"}]}},text:{type:"string"},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","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["table_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:["table_cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["table_head"]},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"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},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","location","margin","name","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var Mp=ce(Gs=>{Gs.Test=jp();Gs.AstTree=Bp();Gs.PodliteDocument=zp()});var id=ce((vx,nd)=>{"use strict";function wk(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function wi(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,wi)}wk(wi,Error);wi.buildMessage=function(t,r){var e={literal:function(h){return'"'+i(h.text)+'"'},class:function(h){var d="",b;for(b=0;b<h.parts.length;b++)d+=h.parts[b]instanceof Array?o(h.parts[b][0])+"-"+o(h.parts[b][1]):o(h.parts[b]);return"["+(h.inverted?"^":"")+d+"]"},any:function(h){return"any character"},end:function(h){return"end of input"},other:function(h){return h.description}};function n(h){return h.charCodeAt(0).toString(16).toUpperCase()}function i(h){return h.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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function o(h){return h.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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function a(h){return e[h.type](h)}function c(h){var d=new Array(h.length),b,v;for(b=0;b<h.length;b++)d[b]=a(h[b]);if(d.sort(),d.length>0){for(b=1,v=1;b<d.length;b++)d[b-1]!==d[b]&&(d[v]=d[b],v++);d.length=v}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function f(h){return h?'"'+i(h)+'"':"end of input"}return"Expected "+c(t)+" but "+f(r)+" found."};function vk(t,r){r=r!==void 0?r:{};var e={},n={Document:bc},i=bc,o=function(l){return l},a=function(){return!!r.podMode},c=function(l){return l},f=Qm(),h=function(){return{text:Or(),type:"ambient",location:ar()}},d=/^[ \xA0\u2001\t\f\u2008]/,b=_t([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),v=/^[ \t\f]/,k=_t([" "," ","\f"],!1,!1),_=/^[\n\r]/,T=_t([`
|
|
8
|
+
deps: ${e}}`};var tb={keyword:"dependencies",type:"object",schemaType:"object",error:mn.error,code(t){let[r,e]=rb(t);cp(t,r),fp(t,e)}};function rb({schema:t}){let r={},e={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?r:e;i[n]=t[n]}return[r,e]}function cp(t,r=t.schema){let{gen:e,data:n,it:i}=t;if(Object.keys(r).length===0)return;let o=e.let("missing");for(let a in r){let c=r[a];if(c.length===0)continue;let f=Mo.propertyInData(e,n,a,i.opts.ownProperties);t.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?e.if(f,()=>{for(let h of c)Mo.checkReportMissingProp(t,h)}):(e.if(Vl._`${f} && (${Mo.checkMissingProp(t,c,o)})`),Mo.reportMissingProp(t,o),e.else())}}mn.validatePropertyDeps=cp;function fp(t,r=t.schema){let{gen:e,data:n,keyword:i,it:o}=t,a=e.name("valid");for(let c in r)eb.alwaysValidSchema(o,r[c])||(e.if(Mo.propertyInData(e,n,c,o.opts.ownProperties),()=>{let f=t.subschema({keyword:i,schemaProp:c},a);t.mergeValidEvaluated(f,a)},()=>e.var(a,!0)),t.ok(a))}mn.validateSchemaDeps=fp;mn.default=tb});var dp=ce(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var Ul=Pe(),nb=dt(),ib={message:({params:t})=>Ul.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>Ul._`{propertyName: ${t.propertyName}}`},ob={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ib,code(t){let{gen:r,schema:e,data:n,it:i}=t;if(nb.alwaysValidSchema(i,e))return;let o=r.name("valid");r.forIn("key",n,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),r.if(Ul.not(o),()=>{t.error(!0),i.allErrors||r.break()})}),t.ok(o)}};Hl.default=ob});var Wl=ce(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var zs=Jr(),en=Pe(),sb=Zr(),ab=di(),Gl=dt(),lb={message:"should NOT have additional properties",params:({params:t})=>en._`{additionalProperty: ${t.additionalProperty}}`},ub={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:lb,code(t){let{gen:r,schema:e,parentSchema:n,data:i,errsCount:o,it:a}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:f}=a;if(a.props=!0,f.removeAdditional!=="all"&&Gl.alwaysValidSchema(a,e))return;let h=zs.allSchemaProperties(n.properties),d=zs.allSchemaProperties(n.patternProperties);$(),t.ok(en._`${o} === ${sb.default.errors}`);function $(){r.forIn("key",i,L=>{!h.length&&!d.length?_(L):r.if(v(L),()=>_(L))})}function v(L){let N;if(h.length>8){let ee=Gl.schemaRefOrVal(a,n.properties,"properties");N=zs.isOwnProperty(r,ee,L)}else h.length?N=en.or(...h.map(ee=>en._`${L} === ${ee}`)):N=en.nil;return d.length&&(N=en.or(N,...d.map(ee=>en._`${zs.usePattern(r,ee)}.test(${L})`))),en.not(N)}function k(L){r.code(en._`delete ${i}[${L}]`)}function _(L){if(f.removeAdditional==="all"||f.removeAdditional&&e===!1){k(L);return}if(e===!1){t.setParams({additionalProperty:L}),t.error(),c||r.break();return}if(typeof e=="object"&&!Gl.alwaysValidSchema(a,e)){let N=r.name("valid");f.removeAdditional==="failing"?(T(L,N,!1),r.if(en.not(N),()=>{t.reset(),k(L)})):(T(L,N),c||r.if(en.not(N),()=>r.break()))}}function T(L,N,ee){let re={keyword:"additionalProperties",dataProp:L,dataPropType:ab.Type.Str};ee===!1&&Object.assign(re,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(re,N)}}};Kl.default=ub});var gp=ce(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var cb=Po(),mp=Jr(),Zl=dt(),hp=Wl(),fb={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&hp.default.code(new cb.default(o,hp.default,"additionalProperties"));let a=mp.allSchemaProperties(e);for(let $ of a)o.definedProperties.add($);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Zl.mergeEvaluated.props(r,Zl.toHash(a),o.props));let c=a.filter($=>!Zl.alwaysValidSchema(o,e[$]));if(c.length===0)return;let f=r.name("valid");for(let $ of c)h($)?d($):(r.if(mp.propertyInData(r,i,$,o.opts.ownProperties)),d($),o.allErrors||r.else().var(f,!0),r.endIf()),t.it.definedProperties.add($),t.ok(f);function h($){return o.opts.useDefaults&&!o.compositeRule&&e[$].default!==void 0}function d($){t.subschema({keyword:"properties",schemaProp:$,dataProp:$},f)}}};Jl.default=fb});var $p=ce(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var yp=Jr(),Ms=Pe(),pb=di(),db=Ar(),mb=dt(),hb={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:i,it:o}=t,{opts:a}=o,c=yp.schemaProperties(o,e);if(c.length===0)return;let f=a.strict&&!a.allowMatchingProperties&&i.properties,h=r.name("valid");o.props!==!0&&!(o.props instanceof Ms.Name)&&(o.props=mb.evaluatedPropsToName(r,o.props));let{props:d}=o;$();function $(){for(let _ of c)f&&v(_),o.allErrors?k(_):(r.var(h,!0),k(_),r.if(h))}function v(_){for(let T in f)new RegExp(_).test(T)&&db.checkStrictMode(o,`property ${T} matches pattern ${_} (use allowMatchingProperties)`)}function k(_){r.forIn("key",n,T=>{r.if(Ms._`${yp.usePattern(r,_)}.test(${T})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:_,dataProp:T,dataPropType:pb.Type.Str},h),o.opts.unevaluated&&d!==!0?r.assign(Ms._`${d}[${T}]`,!0):o.allErrors||r.if(Ms.not(h),()=>r.break())})})}}};Ql.default=hb});var bp=ce(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var gb=dt(),yb={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(gb.alwaysValidSchema(n,e)){t.fail();return}let i=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.result(i,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};Xl.default=yb});var kp=ce(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var $b=Jr(),bb={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$b.validateUnion,error:{message:"should match some schema in anyOf"}};Yl.default=bb});var wp=ce(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var Vs=Pe(),kb=dt(),wb={message:"should match exactly one schema in oneOf",params:({params:t})=>Vs._`{passingSchemas: ${t.passing}}`},vb={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:wb,code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let i=e,o=r.let("valid",!1),a=r.let("passing",null),c=r.name("_valid");t.setParams({passing:a}),r.block(f),t.result(o,()=>t.reset(),()=>t.error(!0));function f(){i.forEach((h,d)=>{let $;kb.alwaysValidSchema(n,h)?r.var(c,!0):$=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&r.if(Vs._`${c} && ${o}`).assign(o,!1).assign(a,Vs._`[${a}, ${d}]`).else(),r.if(c,()=>{r.assign(o,!0),r.assign(a,d),$&&t.mergeEvaluated($,Vs.Name)})})}}};eu.default=vb});var vp=ce(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var xb=dt(),Cb={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 i=r.name("valid");e.forEach((o,a)=>{if(xb.alwaysValidSchema(n,o))return;let c=t.subschema({keyword:"allOf",schemaProp:a},i);t.ok(i),t.mergeEvaluated(c)})}};tu.default=Cb});var Cp=ce(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});var Us=Pe(),Eb=dt(),_b=Ar(),Ab={message:({params:t})=>Us.str`should match "${t.ifClause}" schema`,params:({params:t})=>Us._`{failingKeyword: ${t.ifClause}}`},Sb={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Ab,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&_b.checkStrictMode(n,'"if" without "then" and "else" is ignored');let i=xp(n,"then"),o=xp(n,"else");if(!i&&!o)return;let a=r.let("valid",!0),c=r.name("_valid");if(f(),t.reset(),i&&o){let d=r.let("ifClause");t.setParams({ifClause:d}),r.if(c,h("then",d),h("else",d))}else i?r.if(c,h("then")):r.if(Us.not(c),h("else"));t.pass(a,()=>t.error(!0));function f(){let d=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);t.mergeEvaluated(d)}function h(d,$){return()=>{let v=t.subschema({keyword:d},c);r.assign(a,c),t.mergeValidEvaluated(v,a),$?r.assign($,Us._`${d}`):t.setParams({ifClause:d})}}}};function xp(t,r){let e=t.schema[r];return e!==void 0&&!Eb.alwaysValidSchema(t,e)}ru.default=Sb});var Ep=ce(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var Pb=Ar(),Tb={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&Pb.checkStrictMode(e,`"${t}" without "if" is ignored`)}};nu.default=Tb});var _p=ce(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});var Ib=op(),Fb=ap(),Ob=up(),qb=pp(),Db=dp(),Nb=Wl(),Rb=gp(),Lb=$p(),jb=bp(),Bb=kp(),zb=wp(),Mb=vp(),Vb=Cp(),Ub=Ep(),Hb=[jb.default,Bb.default,zb.default,Mb.default,Vb.default,Ub.default,Ib.default,Fb.default,Ob.default,Db.default,Nb.default,qb.default,Rb.default,Lb.default];iu.default=Hb});var Ap=ce(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var Pt=Pe(),Gb={message:({schemaCode:t})=>Pt.str`should match format "${t}"`,params:({schemaCode:t})=>Pt._`{format: ${t}}`},Kb={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Gb,code(t,r){let{gen:e,data:n,$data:i,schema:o,schemaCode:a,it:c}=t,{opts:f,errSchemaPath:h,schemaEnv:d,self:$}=c;if(!f.validateFormats)return;i?v():k();function v(){let _=e.scopeValue("formats",{ref:$.formats,code:f.code.formats}),T=e.const("fDef",Pt._`${_}[${a}]`),L=e.let("fType"),N=e.let("format");e.if(Pt._`typeof ${T} == "object" && !(${T} instanceof RegExp)`,()=>e.assign(L,Pt._`${T}.type || "string"`).assign(N,Pt._`${T}.validate`),()=>e.assign(L,Pt._`"string"`).assign(N,T)),t.fail$data(Pt.or(ee(),re()));function ee(){return f.strict===!1?Pt.nil:Pt._`${a} && !${N}`}function re(){let de=d.$async?Pt._`(${T}.async ? await ${N}(${n}) : ${N}(${n}))`:Pt._`${N}(${n})`,fe=Pt._`(typeof ${N} == "function" ? ${de} : ${N}.test(${n}))`;return Pt._`${N} && ${N} !== true && ${L} === ${r} && !${fe}`}}function k(){let _=$.formats[o];if(!_){ee();return}if(_===!0)return;let[T,L,N]=re(_);T===r&&t.pass(de());function ee(){if(f.strict===!1){$.logger.warn(fe());return}throw new Error(fe());function fe(){return`unknown format "${o}" ignored in schema at path "${h}"`}}function re(fe){let J=e.scopeValue("formats",{key:o,ref:fe,code:f.code.formats?Pt._`${f.code.formats}${Pt.getProperty(o)}`:void 0});return typeof fe=="object"&&!(fe instanceof RegExp)?[fe.type||"string",fe.validate,Pt._`${J}.validate`]:["string",fe,J]}function de(){if(typeof _=="object"&&!(_ instanceof RegExp)&&_.async){if(!d.$async)throw new Error("async format in sync schema");return Pt._`await ${N}(${n})`}return typeof L=="function"?Pt._`${N}(${n})`:Pt._`${N}.test(${n})`}}}};ou.default=Kb});var Sp=ce(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var Wb=Ap(),Zb=[Wb.default];su.default=Zb});var Pp=ce(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.contentVocabulary=io.metadataVocabulary=void 0;io.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];io.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Ip=ce(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var Jb=Gf(),Qb=ip(),Xb=_p(),Yb=Sp(),Tp=Pp(),ek=[Jb.default,Qb.default,Xb.default,Yb.default,Tp.metadataVocabulary,Tp.contentVocabulary];au.default=ek});var Fp=ce((v0,tk)=>{tk.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 qp=ce(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.CodeGen=Gt.Name=Gt.nil=Gt.stringify=Gt.str=Gt._=Gt.KeywordCxt=void 0;var rk=Po();Gt.KeywordCxt=rk.default;var oo=Pe();Object.defineProperty(Gt,"_",{enumerable:!0,get:function(){return oo._}});Object.defineProperty(Gt,"str",{enumerable:!0,get:function(){return oo.str}});Object.defineProperty(Gt,"stringify",{enumerable:!0,get:function(){return oo.stringify}});Object.defineProperty(Gt,"nil",{enumerable:!0,get:function(){return oo.nil}});Object.defineProperty(Gt,"Name",{enumerable:!0,get:function(){return oo.Name}});Object.defineProperty(Gt,"CodeGen",{enumerable:!0,get:function(){return oo.CodeGen}});var nk=Bf(),ik=Ip(),Op=Fp(),ok=["/properties"],Hs="http://json-schema.org/draft-07/schema",lu=class extends nk.default{_addVocabularies(){super._addVocabularies(),ik.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(Op,ok):Op;this.addMetaSchema(r,Hs,!1),this.refs["http://json-schema.org/schema"]=Hs}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Hs)?Hs:void 0)}};Gt.default=lu});var Np=ce((C0,Dp)=>{var sk=Object.prototype.hasOwnProperty,ak=Object.prototype.toString;Dp.exports=function(r,e,n){if(ak.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var o=0;o<i;o++)e.call(n,r[o],o,r);else for(var a in r)sk.call(r,a)&&e.call(n,r[a],a,r)}});var Lp=ce((E0,Rp)=>{"use strict";var lk=Np();Rp.exports=et;function et(t,r,e){if(arguments.length===3)return et.set(t,r,e);if(arguments.length===2)return et.get(t,r);var n=et.bind(et,t);for(var i in et)et.hasOwnProperty(i)&&(n[i]=et[i].bind(n,t));return n}et.get=function(r,e){for(var n=Array.isArray(e)?e:et.parse(e),i=0;i<n.length;++i){var o=n[i];if(!(typeof r=="object"&&o in r))throw new Error("Invalid reference token: "+o);r=r[o]}return r};et.set=function(r,e,n){var i=Array.isArray(e)?e:et.parse(e),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var a=0;a<i.length-1;++a){var c=i[a];c==="__proto__"||c==="constructor"||c==="prototype"||(c==="-"&&Array.isArray(r)&&(c=r.length),o=i[a+1],c in r||(o.match(/^(\d+|-)$/)?r[c]=[]:r[c]={}),r=r[c])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=n,this};et.remove=function(t,r){var e=Array.isArray(r)?r:et.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=et.get(t,e.slice(0,-1));if(Array.isArray(i)){var o=+n;if(n===""&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(i,o,1)}else delete i[n]};et.dict=function(r,e){var n={};return et.walk(r,function(i,o){n[o]=i},e),n};et.walk=function(r,e,n){var i=[];n=n||function(o){var a=Object.prototype.toString.call(o);return a==="[object Object]"||a==="[object Array]"},function o(a){lk(a,function(c,f){i.push(String(f)),n(c)?o(c):e(c,et.compile(i)),i.pop()})}(r)};et.has=function(r,e){try{et.get(r,e)}catch{return!1}return!0};et.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};et.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};et.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(et.unescape)};et.compile=function(r){return r.length===0?"":"/"+r.map(et.escape).join("/")}});var jp=ce((_0,uk)=>{uk.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var Bp=ce((A0,ck)=>{ck.exports={$ref:"#/definitions/AstTree",definitions:{Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},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"]},PodNode:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]},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:2,maxItems:2},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","location","margin","name","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"]},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"]},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"]},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:2,maxItems:2},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","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},type:{type:"string",enum:["block"]},margin:{type:"string"},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"}},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$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/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$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"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","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"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","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"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},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/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]}}},required:["content","location","margin","text","type"]},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"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["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"]},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"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"}]}},text:{type:"string"},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","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["table_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:["table_cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["table_head"]},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"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},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","location","margin","name","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var zp=ce((S0,fk)=>{fk.exports={$ref:"#/definitions/RootBlock",definitions:{Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},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"]},PodNode:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]},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:2,maxItems:2},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","location","margin","name","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"]},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"]},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"]},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:2,maxItems:2},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","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},type:{type:"string",enum:["block"]},margin:{type:"string"},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"}},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$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/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$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"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","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"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","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"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},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/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]}}},required:["content","location","margin","text","type"]},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"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["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"]},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"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"]},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"}]}},text:{type:"string"},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","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["table_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:["table_cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["table_head"]},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"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},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","location","margin","name","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var Mp=ce(Gs=>{Gs.Test=jp();Gs.AstTree=Bp();Gs.PodliteDocument=zp()});var id=ce((vx,nd)=>{"use strict";function wk(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function wi(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,wi)}wk(wi,Error);wi.buildMessage=function(t,r){var e={literal:function(h){return'"'+i(h.text)+'"'},class:function(h){var d="",$;for($=0;$<h.parts.length;$++)d+=h.parts[$]instanceof Array?o(h.parts[$][0])+"-"+o(h.parts[$][1]):o(h.parts[$]);return"["+(h.inverted?"^":"")+d+"]"},any:function(h){return"any character"},end:function(h){return"end of input"},other:function(h){return h.description}};function n(h){return h.charCodeAt(0).toString(16).toUpperCase()}function i(h){return h.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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function o(h){return h.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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function a(h){return e[h.type](h)}function c(h){var d=new Array(h.length),$,v;for($=0;$<h.length;$++)d[$]=a(h[$]);if(d.sort(),d.length>0){for($=1,v=1;$<d.length;$++)d[$-1]!==d[$]&&(d[v]=d[$],v++);d.length=v}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function f(h){return h?'"'+i(h)+'"':"end of input"}return"Expected "+c(t)+" but "+f(r)+" found."};function vk(t,r){r=r!==void 0?r:{};var e={},n={Document:$c},i=$c,o=function(l){return l},a=function(){return!!r.podMode},c=function(l){return l},f=Qm(),h=function(){return{text:Or(),type:"ambient",location:ar()}},d=/^[ \xA0\u2001\t\f\u2008]/,$=_t([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),v=/^[ \t\f]/,k=_t([" "," ","\f"],!1,!1),_=/^[\n\r]/,T=_t([`
|
|
9
9
|
`,"\r"],!1,!1),L=function(l){return l},N=/^[^\n\r]/,ee=_t([`
|
|
10
10
|
`,"\r"],!0,!1),re=`
|
|
11
11
|
`,de=ot(`
|
|
12
|
-
`,!1),fe="\r",J=ot("\r",!1),me=function(){return{type:"blankline"}}
|
|
13
|
-
`," "," ","\f"],!1,!1),Jm=us("space characters"),s=0,Y=0,as=[{line:1,column:1}],ln=0,va=[],V=0,ls;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');i=n[r.startRule]}function Or(){return t.substring(Y,s)}function ar(){return $o(Y,s)}function c1(l,p){throw p=p!==void 0?p:$o(Y,s),yc([us(l)],t.substring(Y,s),p)}function f1(l,p){throw p=p!==void 0?p:$o(Y,s),Ym(l,p)}function ot(l,p){return{type:"literal",text:l,ignoreCase:p}}function _t(l,p,g){return{type:"class",parts:l,inverted:p,ignoreCase:g}}function Qm(){return{type:"any"}}function Xm(){return{type:"end"}}function us(l){return{type:"other",description:l}}function gc(l){var p=as[l],g;if(p)return p;for(g=l-1;!as[g];)g--;for(p=as[g],p={line:p.line,column:p.column};g<l;)t.charCodeAt(g)===10?(p.line++,p.column=1):p.column++,g++;return as[l]=p,p}function $o(l,p){var g=gc(l),y=gc(p);return{start:{offset:l,line:g.line,column:g.column},end:{offset:p,line:y.line,column:y.column}}}function te(l){s<ln||(s>ln&&(ln=s,va=[]),va.push(l))}function Ym(l,p){return new wi(l,null,null,p)}function yc(l,p,g){return new wi(wi.buildMessage(l,p),l,p,g)}function bc(){var l,p,g;for(l=s,p=[],g=$c();g!==e;)p.push(g),g=$c();return p!==e&&(Y=l,p=o(p)),l=p,l}function $c(){var l,p,g,y,C,w,B,U;if(l=xa(),l===e&&(l=Ea(),l===e&&(l=_a(),l===e&&(l=Fa(),l===e&&(l=Oa(),l===e&&(l=qa(),l===e&&(l=Ta(),l===e&&(l=Ia(),l===e&&(l=Aa(),l===e&&(l=Sa(),l===e&&(l=Pa(),l===e&&(l=s,Y=s,p=a(),p?p=void 0:p=e,p!==e?(g=oh(),g===e&&(g=un(),g===e&&(g=eh())),g!==e?(Y=l,p=c(g),l=p):(s=l,l=e)):(s=l,l=e),l===e)))))))))))){if(l=s,p=s,g=[],y=s,C=s,V++,w=s,B=vn(),B!==e?(U=Qt(),U!==e?(B=[B,U],w=B):(s=w,w=e)):(s=w,w=e),w===e&&(w=si()),V--,w===e?C=void 0:(s=C,C=e),C!==e?(t.length>s?(w=t.charAt(s),s++):(w=e,V===0&&te(f)),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,C=s,V++,w=s,B=vn(),B!==e?(U=Qt(),U!==e?(B=[B,U],w=B):(s=w,w=e)):(s=w,w=e),w===e&&(w=si()),V--,w===e?C=void 0:(s=C,C=e),C!==e?(t.length>s?(w=t.charAt(s),s++):(w=e,V===0&&te(f)),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e);else g=e;g!==e?p=t.substring(p,s):p=g,p!==e&&(Y=l,p=h()),l=p}return l}function At(){var l;return d.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,V===0&&te(b)),l}function pe(){var l,p;for(l=[],v.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(k));p!==e;)l.push(p),v.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(k));return l}function ii(){var l,p,g,y;for(l=s,p=s,g=[],y=At();y!==e;)g.push(y),y=At();return g!==e?(_.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(T)),y!==e?(g=[g,y],p=g):(s=p,p=e)):(s=p,p=e),p!==e?l=t.substring(l,s):l=p,l}function p1(){var l,p,g,y;if(l=s,p=s,g=[],y=ko(),y!==e)for(;y!==e;)g.push(y),y=ko();else g=e;return g!==e?p=t.substring(p,s):p=g,p!==e?(g=Bi(),g!==e?(Y=l,p=L(p),l=p):(s=l,l=e)):(s=l,l=e),l}function ko(){var l;return N.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,V===0&&te(ee)),l}function oi(){var l,p,g;return t.charCodeAt(s)===10?(l=re,s++):(l=e,V===0&&te(de)),l===e&&(l=s,t.charCodeAt(s)===13?(p=fe,s++):(p=e,V===0&&te(J)),p!==e?(t.charCodeAt(s)===10?(g=re,s++):(g=e,V===0&&te(de)),g===e&&(g=null),g!==e?(p=[p,g],l=p):(s=l,l=e)):(s=l,l=e)),l}function Bi(){var l,p;return l=oi(),l===e&&(l=s,V++,t.length>s?(p=t.charAt(s),s++):(p=e,V===0&&te(f)),V--,p===e?l=void 0:(s=l,l=e)),l}function _r(){var l,p,g,y;for(l=s,p=s,g=[],y=At();y!==e;)g.push(y),y=At();return g!==e?(_.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(T)),y!==e?(g=[g,y],p=g):(s=p,p=e)):(s=p,p=e),p!==e?l=t.substring(l,s):l=p,l}function un(){var l,p,g,y,C;for(l=s,p=s,g=s,y=[],C=At();C!==e;)y.push(C),C=At();return y!==e?(_.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(T)),C!==e?(y=[y,C],g=y):(s=g,g=e)):(s=g,g=e),g!==e?p=t.substring(p,s):p=g,p!==e&&(Y=l,p=me()),l=p,l}function cs(){var l;return t.substr(s,7)===$e?(l=$e,s+=7):(l=e,V===0&&te(ke)),l}function zi(){var l;return t.substr(s,5)===Oe?(l=Oe,s+=5):(l=e,V===0&&te(ve)),l}function fs(){var l;return t.substr(s,5)===xe?(l=xe,s+=5):(l=e,V===0&&te(ue)),l}function kc(){var l;return t.substr(s,7)===be?(l=be,s+=7):(l=e,V===0&&te(He)),l}function wc(){var l;return t.substr(s,6)===H?(l=H,s+=6):(l=e,V===0&&te(ft)),l}function Qt(){var l,p,g;return l=s,p=Da(),p!==e?(Y=s,g=je(p),g?g=void 0:g=e,g!==e?(Y=l,p=nt(p),l=p):(s=l,l=e)):(s=l,l=e),l}function si(){var l,p,g;return l=s,t.charCodeAt(s)===61?(p=Ve,s++):(p=e,V===0&&te(O)),p!==e?(g=Qt(),g!==e?(Y=l,p=nt(g),l=p):(s=l,l=e)):(s=l,l=e),l}function vn(){var l;return l=cs(),l===e&&(l=zi(),l===e&&(l=fs(),l===e&&(l=kc(),l===e&&(l=wc())))),l}function cn(){var l,p,g;if(V++,l=s,p=[],g=ko(),g!==e)for(;g!==e;)p.push(g),g=ko();else p=e;return p!==e?l=t.substring(l,s):l=p,V--,l===e&&(p=e,V===0&&te(D)),l}function Vt(){var l,p,g,y,C,w,B;if(l=s,p=s,V++,g=s,y=pe(),y!==e?(C=kc(),C===e&&(C=wc(),C===e&&(C=s,w=vn(),w!==e?(B=Qt(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e),C===e&&(C=si()))),C!==e?(y=[y,C],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=un()),V--,g===e?p=void 0:(s=p,p=e),p!==e){if(g=s,y=[],C=cn(),C!==e)for(;C!==e;)y.push(C),C=cn();else y=e;y!==e?g=t.substring(g,s):g=y,g!==e?(y=Bi(),y!==e?(Y=l,p=Kt(),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l}function eh(){var l,p,g,y,C,w;if(l=s,p=s,g=[],y=s,C=s,V++,w=Bi(),V--,w===e?C=void 0:(s=C,C=e),C!==e?(t.length>s?(w=t.charAt(s),s++):(w=e,V===0&&te(f)),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,C=s,V++,w=Bi(),V--,w===e?C=void 0:(s=C,C=e),C!==e?(t.length>s?(w=t.charAt(s),s++):(w=e,V===0&&te(f)),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e);else g=e;return g!==e?p=t.substring(p,s):p=g,p!==e?(g=Bi(),g!==e?(Y=l,p=Tt(),l=p):(s=l,l=e)):(s=l,l=e),l}function vc(){var l,p,g,y;if(l=s,p=xc(),p!==e){if(g=[],y=At(),y!==e)for(;y!==e;)g.push(y),y=At();else g=e;g!==e?(y=vc(),y!==e?(Y=l,p=at(p,y),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,p=xc(),p!==e&&(Y=l,p=mt(p)),l=p),l}function xc(){var l,p;return l=s,p=ko(),p!==e?l=t.substring(l,s):l=p,l}function ps(){var l,p,g,y,C,w;if(l=s,p=Vi(),p!==e){if(g=[],y=At(),y!==e)for(;y!==e;)g.push(y),y=At();else g=e;g===e&&(g=s,y=pe(),y!==e?(t.charCodeAt(s)===44?(C=ht,s++):(C=e,V===0&&te(he)),C!==e?(w=pe(),w!==e?(y=[y,C,w],g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e)),g!==e?(y=ps(),y!==e?(Y=l,p=vr(p,y),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,p=Vi(),p!==e&&(Y=l,p=mt(p)),l=p),l}function th(){var l,p,g,y,C;if(l=s,p=s,g=[],Dt.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Wt)),y!==e)for(;y!==e;)g.push(y),Dt.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Wt));else g=e;if(g!==e){for(y=[],or.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(pr));C!==e;)y.push(C),or.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(pr));y!==e?(g=[g,y],p=g):(s=p,p=e)}else s=p,p=e;return p!==e?l=t.substring(l,s):l=p,l}function Cc(){var l,p,g,y,C,w;return l=s,p=th(),p!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ht,s++):(y=e,V===0&&te(he)),y===e&&(t.substr(s,2)===Zt?(y=Zt,s+=2):(y=e,V===0&&te(Zn))),y!==e?(C=pe(),C!==e?(w=Vi(),w!==e?(Y=l,p=Sn(p,w),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Ec(){var l,p,g,y,C,w;return l=s,p=Cc(),p!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ht,s++):(y=e,V===0&&te(he)),y!==e?(C=pe(),C!==e?(w=Ec(),w!==e?(Y=l,p=gt(p,w),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l===e&&(l=s,p=Cc(),p!==e&&(Y=l,p=yt(p)),l=p),l}function rh(){var l,p,g,y,C,w,B,U,A,F;return l=s,p=pe(),p!==e?(t.charCodeAt(s)===58?(g=jt,s++):(g=e,V===0&&te(bt)),g!==e?(t.substr(s,5)===$t?(y=$t,s+=5):(y=e,V===0&&te(kt)),y!==e?(C=s,t.charCodeAt(s)===60?(w=pt,s++):(w=e,V===0&&te(It)),w!==e?(B=pe(),B!==e?(U=vc(),U!==e?(A=pe(),A!==e?(t.charCodeAt(s)===62?(F=Ft,s++):(F=e,V===0&&te(xr)),F!==e?(Y=C,w=sr(y,U),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)):(s=C,C=e),C!==e?(w=pe(),w!==e?(Y=l,p=W(y,C),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function d1(){var l,p,g,y,C,w;for(l=s,p=[],g=s,y=pe(),y!==e?(C=Vi(),C!==e?(w=pe(),w!==e?(Y=g,y=ie(C),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);g!==e;)p.push(g),g=s,y=pe(),y!==e?(C=Vi(),C!==e?(w=pe(),w!==e?(Y=g,y=ie(C),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);return p!==e&&(Y=l,p=ye(p)),l=p,l===e&&(l=s,p=Vi(),p!==e&&(Y=l,p=Se(p)),l=p,l===e&&(l=s,p=pe(),p!==e&&(Y=l,p=Ot()),l=p)),l}function Mi(){var l,p,g,y,C,w,B,U,A,F,z,Q,ne,se;if(l=rh(),l===e)if(l=s,p=pe(),p!==e)if(t.charCodeAt(s)===58?(g=jt,s++):(g=e,V===0&&te(bt)),g!==e)if(jr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ue)),y===e&&(y=null),y!==e)if(C=Da(),C!==e){if(w=s,t.charCodeAt(s)===123?(B=lt,s++):(B=e,V===0&&te(wt)),B!==e?(U=pe(),U!==e?(A=Ec(),A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===125?(z=dr,s++):(z=e,V===0&&te(Ge)),z!==e?(Y=w,B=bn(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)):(s=w,w=e),w===e){if(w=s,t.charCodeAt(s)===91?(B=Bt,s++):(B=e,V===0&&te(Pn)),B!==e)if(U=pe(),U!==e){if(A=s,F=ps(),F!==e&&(Y=A,F=Ii(y,C,F)),A=F,A===e){if(A=s,F=s,z=[],Q=s,ne=s,V++,t.charCodeAt(s)===93?(se=Pr,s++):(se=e,V===0&&te(Jn)),se===e&&(t.charCodeAt(s)===91?(se=Bt,s++):(se=e,V===0&&te(Pn))),V--,se===e?ne=void 0:(s=ne,ne=e),ne!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,V===0&&te(f)),se!==e?(ne=[ne,se],Q=ne):(s=Q,Q=e)):(s=Q,Q=e),Q!==e)for(;Q!==e;)z.push(Q),Q=s,ne=s,V++,t.charCodeAt(s)===93?(se=Pr,s++):(se=e,V===0&&te(Jn)),se===e&&(t.charCodeAt(s)===91?(se=Bt,s++):(se=e,V===0&&te(Pn))),V--,se===e?ne=void 0:(s=ne,ne=e),ne!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,V===0&&te(f)),se!==e?(ne=[ne,se],Q=ne):(s=Q,Q=e)):(s=Q,Q=e);else z=e;z!==e?F=t.substring(F,s):F=z,F!==e&&(Y=A,F=Fi(y,C)),A=F}A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===93?(z=Pr,s++):(z=e,V===0&&te(Jn)),z!==e?(Y=w,B=fo(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)}else s=w,w=e;else s=w,w=e;if(w===e&&(w=s,t.charCodeAt(s)===60?(B=pt,s++):(B=e,V===0&&te(It)),B!==e?(U=pe(),U!==e?(A=ps(),A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===62?(z=Ft,s++):(z=e,V===0&&te(xr)),z!==e?(Y=w,B=Tn(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)):(s=w,w=e),w===e)){if(w=s,t.charCodeAt(s)===60?(B=pt,s++):(B=e,V===0&&te(It)),B!==e)if(U=pe(),U!==e){if(A=s,F=[],z=s,Q=s,V++,t.charCodeAt(s)===60?(ne=pt,s++):(ne=e,V===0&&te(It)),ne===e&&(t.charCodeAt(s)===62?(ne=Ft,s++):(ne=e,V===0&&te(xr))),V--,ne===e?Q=void 0:(s=Q,Q=e),Q!==e?(t.length>s?(ne=t.charAt(s),s++):(ne=e,V===0&&te(f)),ne!==e?(Q=[Q,ne],z=Q):(s=z,z=e)):(s=z,z=e),z!==e)for(;z!==e;)F.push(z),z=s,Q=s,V++,t.charCodeAt(s)===60?(ne=pt,s++):(ne=e,V===0&&te(It)),ne===e&&(t.charCodeAt(s)===62?(ne=Ft,s++):(ne=e,V===0&&te(xr))),V--,ne===e?Q=void 0:(s=Q,Q=e),Q!==e?(t.length>s?(ne=t.charAt(s),s++):(ne=e,V===0&&te(f)),ne!==e?(Q=[Q,ne],z=Q):(s=z,z=e)):(s=z,z=e);else F=e;F!==e?A=t.substring(A,s):A=F,A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===62?(z=Ft,s++):(z=e,V===0&&te(xr)),z!==e?(Y=w,B=Qn(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)}else s=w,w=e;else s=w,w=e;if(w===e){if(w=s,t.charCodeAt(s)===40?(B=In,s++):(B=e,V===0&&te(Fn)),B!==e)if(U=pe(),U!==e){if(A=s,F=ps(),F!==e&&(Y=A,F=po(y,C,F)),A=F,A===e){if(A=s,F=s,z=[],Q=s,ne=s,V++,t.charCodeAt(s)===41?(se=$n,s++):(se=e,V===0&&te(q)),se===e&&(t.charCodeAt(s)===40?(se=In,s++):(se=e,V===0&&te(Fn))),V--,se===e?ne=void 0:(s=ne,ne=e),ne!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,V===0&&te(f)),se!==e?(ne=[ne,se],Q=ne):(s=Q,Q=e)):(s=Q,Q=e),Q!==e)for(;Q!==e;)z.push(Q),Q=s,ne=s,V++,t.charCodeAt(s)===41?(se=$n,s++):(se=e,V===0&&te(q)),se===e&&(t.charCodeAt(s)===40?(se=In,s++):(se=e,V===0&&te(Fn))),V--,se===e?ne=void 0:(s=ne,ne=e),ne!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,V===0&&te(f)),se!==e?(ne=[ne,se],Q=ne):(s=Q,Q=e)):(s=Q,Q=e);else z=e;z!==e?F=t.substring(F,s):F=z,F!==e&&(Y=A,F=P(y,C)),A=F}A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===41?(z=$n,s++):(z=e,V===0&&te(q)),z!==e?(Y=w,B=M(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)}else s=w,w=e;else s=w,w=e;w===e&&(w=s,B=pe(),B!==e&&(Y=w,B=G(y,C)),w=B)}}}w!==e?(B=pe(),B!==e?(Y=l,p=K(y,C,w),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function ai(){var l,p,g,y,C,w,B,U,A,F;for(l=s,p=[],g=Mi();g!==e;)p.push(g),g=Mi();if(p!==e)if(g=oi(),g!==e){if(y=[],C=s,t.charCodeAt(s)===61?(w=Ve,s++):(w=e,V===0&&te(O)),w!==e)if(B=pe(),B!==e){if(U=[],A=Mi(),A!==e)for(;A!==e;)U.push(A),A=Mi();else U=e;U!==e?(A=pe(),A!==e?(F=oi(),F!==e?(Y=C,w=ae(p,U),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)}else s=C,C=e;else s=C,C=e;for(;C!==e;)if(y.push(C),C=s,t.charCodeAt(s)===61?(w=Ve,s++):(w=e,V===0&&te(O)),w!==e)if(B=pe(),B!==e){if(U=[],A=Mi(),A!==e)for(;A!==e;)U.push(A),A=Mi();else U=e;U!==e?(A=pe(),A!==e?(F=oi(),F!==e?(Y=C,w=ae(p,U),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)}else s=C,C=e;else s=C,C=e;y!==e?(Y=l,p=we(p,y),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function m1(){var l,p,g,y;if(l=s,p=s,g=[],Ae.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(qe)),y!==e)for(;y!==e;)g.push(y),Ae.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(qe));else g=e;return g!==e?p=t.substring(p,s):p=g,p!==e&&(Y=l,p=tt(p)),l=p,l}function _c(){var l,p,g;if(l=s,p=[],_e.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,V===0&&te(Ke)),g!==e)for(;g!==e;)p.push(g),_e.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,V===0&&te(Ke));else p=e;return p!==e?l=t.substring(l,s):l=p,l}function ds(){var l,p,g,y,C;if(l=s,p=s,ut.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,V===0&&te(Ze)),g===e&&(g=null),g!==e){if(y=[],_e.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(Ke)),C!==e)for(;C!==e;)y.push(C),_e.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(Ke));else y=e;y!==e?(g=[g,y],p=g):(s=p,p=e)}else s=p,p=e;return p!==e?l=t.substring(l,s):l=p,l}function nh(){var l,p;return l=s,t.substr(s,4)===Te?(p=Te,s+=4):(p=e,V===0&&te(Xe)),p!==e&&(Y=l,p=Be()),l=p,l===e&&(l=s,t.substr(s,5)===Tr?(p=Tr,s+=5):(p=e,V===0&&te(zt)),p!==e&&(Y=l,p=u()),l=p),l}function ih(){var l,p,g,y,C,w;return l=s,p=s,g=ds(),g!==e?(y=s,t.charCodeAt(s)===46?(C=oe,s++):(C=e,V===0&&te(vt)),C!==e?(w=_c(),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e),y===e&&(y=null),y!==e?(it.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(Jt)),C!==e?(w=ds(),w!==e?(g=[g,y,C,w],p=g):(s=p,p=e)):(s=p,p=e)):(s=p,p=e)):(s=p,p=e),p!==e?l=t.substring(l,s):l=p,l===e&&(l=s,p=s,g=ds(),g!==e?(t.charCodeAt(s)===46?(y=oe,s++):(y=e,V===0&&te(vt)),y!==e?(C=_c(),C!==e?(g=[g,y,C],p=g):(s=p,p=e)):(s=p,p=e)):(s=p,p=e),p!==e?l=t.substring(l,s):l=p),l}function Vi(){var l,p,g,y,C;if(l=s,j.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(Mt)),p!==e){for(g=s,y=[],Br.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(On));C!==e;)y.push(C),Br.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(On));y!==e?g=t.substring(g,s):g=y,g!==e?(j.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Mt)),y!==e?(Y=l,p=tt(g),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;if(l===e){if(l=s,qn.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(rn)),p!==e){for(g=s,y=[],De.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(qt));C!==e;)y.push(C),De.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(qt));y!==e?g=t.substring(g,s):g=y,g!==e?(qn.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(rn)),y!==e?(Y=l,p=tt(g),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;l===e&&(l=nh(),l===e&&(l=s,p=ih(),p!==e&&(Y=l,p=nn(p)),l=p,l===e&&(l=s,p=ds(),p!==e&&(Y=l,p=Xn(p)),l=p)))}return l}function xa(){var l,p,g,y,C,w,B,U,A,F,z,Q,ne,se,st,jn,Dr;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=cs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e)if(Y=s,B=zr(p,y,w),B?B=void 0:B=e,B!==e){if(U=[],A=s,F=s,z=pe(),z!==e?F=t.substring(F,s):F=z,F!==e?(z=s,Q=ii(),Q===e&&(Q=s,ne=s,V++,se=vn(),V--,se===e?ne=void 0:(s=ne,ne=e),ne===e&&(ne=s,V++,se=s,st=zi(),st!==e?(jn=Qt(),jn!==e?(Y=s,Dr=Yn(p,y,w,F,jn),Dr?Dr=void 0:Dr=e,Dr!==e?(st=[st,jn,Dr],se=st):(s=se,se=e)):(s=se,se=e)):(s=se,se=e),V--,se===e?ne=void 0:(s=ne,ne=e)),ne!==e?(se=cn(),se!==e?(st=ii(),st===e&&(st=null),st!==e?(ne=[ne,se,st],Q=ne):(s=Q,Q=e)):(s=Q,Q=e)):(s=Q,Q=e)),Q!==e?z=t.substring(z,s):z=Q,z!==e?(Y=A,F=on(p,y,w,F,z),A=F):(s=A,A=e)):(s=A,A=e),A!==e)for(;A!==e;)U.push(A),A=s,F=s,z=pe(),z!==e?F=t.substring(F,s):F=z,F!==e?(z=s,Q=ii(),Q===e&&(Q=s,ne=s,V++,se=vn(),V--,se===e?ne=void 0:(s=ne,ne=e),ne===e&&(ne=s,V++,se=s,st=zi(),st!==e?(jn=Qt(),jn!==e?(Y=s,Dr=Yn(p,y,w,F,jn),Dr?Dr=void 0:Dr=e,Dr!==e?(st=[st,jn,Dr],se=st):(s=se,se=e)):(s=se,se=e)):(s=se,se=e),V--,se===e?ne=void 0:(s=ne,ne=e)),ne!==e?(se=cn(),se!==e?(st=ii(),st===e&&(st=null),st!==e?(ne=[ne,se,st],Q=ne):(s=Q,Q=e)):(s=Q,Q=e)):(s=Q,Q=e)),Q!==e?z=t.substring(z,s):z=Q,z!==e?(Y=A,F=on(p,y,w,F,z),A=F):(s=A,A=e)):(s=A,A=e);else U=e;U!==e?(A=s,F=pe(),F!==e?A=t.substring(A,s):A=F,A!==e?(F=s,z=zi(),z!==e?(Q=Qt(),Q!==e?(Y=s,ne=X(p,y,w,U,A,Q),ne?ne=void 0:ne=e,ne!==e?(se=ii(),se===e&&(se=null),se!==e?(Y=F,z=kn(p,y,w,U,A,Q),F=z):(s=F,F=e)):(s=F,F=e)):(s=F,F=e)):(s=F,F=e),F!==e?(Y=s,z=Ir(p,y,w,U,A,F),z?z=void 0:z=e,z!==e?(Y=l,p=ei(p,y,w,U,A,F),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Ui(){var l,p,g,y,C,w,B,U,A;if(l=s,p=s,V++,g=s,y=pe(),y!==e?(C=vn(),C===e&&(C=si()),C!==e?(y=[y,C],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=un()),V--,g===e?p=void 0:(s=p,p=e),p!==e){for(g=[],y=At();y!==e;)g.push(y),y=At();if(g!==e){if(y=s,C=[],w=s,Cr.test(t.charAt(s))?(B=t.charAt(s),s++):(B=e,V===0&&te(Oi)),B!==e){for(U=[],A=At();A!==e;)U.push(A),A=At();U!==e?(B=[B,U],w=B):(s=w,w=e)}else s=w,w=e;if(w!==e)for(;w!==e;)if(C.push(w),w=s,Cr.test(t.charAt(s))?(B=t.charAt(s),s++):(B=e,V===0&&te(Oi)),B!==e){for(U=[],A=At();A!==e;)U.push(A),A=At();U!==e?(B=[B,U],w=B):(s=w,w=e)}else s=w,w=e;else C=e;C!==e?y=t.substring(y,s):y=C,y!==e?(C=Bi(),C!==e?(Y=l,p=qi(),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e}else s=l,l=e;return l}function gr(){var l,p,g,y,C;return l=s,p=s,g=Ui(),g===e&&(g=s,Y=s,y=ti(),y?y=void 0:y=e,y!==e?(C=un(),C!==e?(y=[y,C],g=y):(s=g,g=e)):(s=g,g=e)),g!==e?p=t.substring(p,s):p=g,p!==e&&(Y=l,p=Et()),l=p,l}function qr(){var l,p;return l=s,p=Vt(),p!==e&&(Y=l,p=Mr(p)),l=p,l}function Ca(){var l,p,g,y,C,w,B,U,A,F,z;if(l=s,Y=s,p=ri(),p?p=void 0:p=e,p!==e){if(g=s,y=[],C=s,w=s,V++,B=Ui(),V--,B===e?w=void 0:(s=w,w=e),w!==e?(B=qr(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e),C!==e)for(;C!==e;)y.push(C),C=s,w=s,V++,B=Ui(),V--,B===e?w=void 0:(s=w,w=e),w!==e?(B=qr(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e);else y=e;if(y!==e?g=t.substring(g,s):g=y,g!==e)if(y=s,C=Ui(),C!==e&&(Y=y,C=Dn(g,C)),y=C,y!==e){if(C=[],w=s,B=s,U=[],A=s,F=s,V++,z=gr(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=qr(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e),A!==e)for(;A!==e;)U.push(A),A=s,F=s,V++,z=gr(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=qr(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);else U=e;if(U!==e?B=t.substring(B,s):B=U,B!==e?(U=s,A=gr(),A!==e&&(Y=U,A=Vr(g,y,B,A)),U=A,U!==e?(Y=w,B=mo(g,y,B,U),w=B):(s=w,w=e)):(s=w,w=e),w===e&&(w=s,B=s,V++,U=Ui(),V--,U===e?B=void 0:(s=B,B=e),B!==e?(U=s,V++,A=gr(),V--,A===e?U=void 0:(s=U,U=e),U!==e?(A=qr(),A!==e?(Y=w,B=Fr(g,y,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)),w!==e)for(;w!==e;){if(C.push(w),w=s,B=s,U=[],A=s,F=s,V++,z=gr(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=qr(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e),A!==e)for(;A!==e;)U.push(A),A=s,F=s,V++,z=gr(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=qr(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);else U=e;U!==e?B=t.substring(B,s):B=U,B!==e?(U=s,A=gr(),A!==e&&(Y=U,A=Vr(g,y,B,A)),U=A,U!==e?(Y=w,B=mo(g,y,B,U),w=B):(s=w,w=e)):(s=w,w=e),w===e&&(w=s,B=s,V++,U=Ui(),V--,U===e?B=void 0:(s=B,B=e),B!==e?(U=s,V++,A=gr(),V--,A===e?U=void 0:(s=U,U=e),U!==e?(A=qr(),A!==e?(Y=w,B=Fr(g,y,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e))}else C=e;C!==e?(Y=s,w=sn(g,y,C),w?w=void 0:w=e,w!==e?(Y=l,p=Er(g,y,C),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e}else s=l,l=e;if(l===e){if(l=s,p=[],g=s,y=s,C=s,w=s,V++,B=gr(),V--,B===e?w=void 0:(s=w,w=e),w!==e?(B=qr(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e),C!==e?y=t.substring(y,s):y=C,y!==e){for(C=[],w=gr();w!==e;)C.push(w),w=gr();C!==e?(Y=g,y=Nn(y,C),g=y):(s=g,g=e)}else s=g,g=e;if(g!==e)for(;g!==e;)if(p.push(g),g=s,y=s,C=s,w=s,V++,B=gr(),V--,B===e?w=void 0:(s=w,w=e),w!==e?(B=qr(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e),C!==e?y=t.substring(y,s):y=C,y!==e){for(C=[],w=gr();w!==e;)C.push(w),w=gr();C!==e?(Y=g,y=Nn(y,C),g=y):(s=g,g=e)}else s=g,g=e;else p=e;if(p!==e&&(Y=l,p=wn(p)),l=p,l===e)if(l=[],p=qr(),p!==e)for(;p!==e;)l.push(p),p=qr();else l=e}return l}function Ea(){var l,p,g,y,C,w,B,U,A,F,z,Q,ne,se,st;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=cs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e)if(Y=s,B=mr(p,y,w),B?B=void 0:B=e,B!==e)if(Y=s,U=Yo(p,y,w),U?U=void 0:U=e,U!==e){for(A=s,F=[],z=un();z!==e;)F.push(z),z=un();if(F!==e)if(z=Ca(),z!==e){for(Q=[],ne=un();ne!==e;)Q.push(ne),ne=un();Q!==e?(Y=A,F=ho(p,y,w,z),A=F):(s=A,A=e)}else s=A,A=e;else s=A,A=e;A!==e?(F=s,z=pe(),z!==e?F=t.substring(F,s):F=z,F!==e?(z=s,Q=zi(),Q!==e?(ne=Qt(),ne!==e?(Y=s,se=X(p,y,w,A,F,ne),se?se=void 0:se=e,se!==e?(st=ii(),st===e&&(st=null),st!==e?(Y=z,Q=Ur(p,y,w,A,F,ne),z=Q):(s=z,z=e)):(s=z,z=e)):(s=z,z=e)):(s=z,z=e),z!==e?(Y=s,Q=Ir(p,y,w,A,F,z),Q?Q=void 0:Q=e,Q!==e?(Y=l,p=Rn(p,y,w,A,F,z),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function _a(){var l,p,g,y,C,w,B,U,A,F,z,Q,ne;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=cs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e){if(B=[],U=s,A=un(),A===e&&(A=xa(),A===e&&(A=Ea(),A===e&&(A=_a(),A===e&&(A=Fa(),A===e&&(A=Oa(),A===e&&(A=qa(),A===e&&(A=Ta(),A===e&&(A=Ia(),A===e&&(A=Aa(),A===e&&(A=Sa(),A===e&&(A=Pa()))))))))))),A!==e&&(Y=U,A=go(p,y,w,A)),U=A,U===e){for(U=s,A=s,F=[],z=At();z!==e;)F.push(z),z=At();if(F!==e?A=t.substring(A,s):A=F,A!==e){if(F=s,z=[],Q=Vt(),Q!==e)for(;Q!==e;)z.push(Q),Q=Vt();else z=e;z!==e?F=t.substring(F,s):F=z,F!==e?(Y=U,A=yo(p,y,w,A,F),U=A):(s=U,U=e)}else s=U,U=e}for(;U!==e;)if(B.push(U),U=s,A=un(),A===e&&(A=xa(),A===e&&(A=Ea(),A===e&&(A=_a(),A===e&&(A=Fa(),A===e&&(A=Oa(),A===e&&(A=qa(),A===e&&(A=Ta(),A===e&&(A=Ia(),A===e&&(A=Aa(),A===e&&(A=Sa(),A===e&&(A=Pa()))))))))))),A!==e&&(Y=U,A=go(p,y,w,A)),U=A,U===e){for(U=s,A=s,F=[],z=At();z!==e;)F.push(z),z=At();if(F!==e?A=t.substring(A,s):A=F,A!==e){if(F=s,z=[],Q=Vt(),Q!==e)for(;Q!==e;)z.push(Q),Q=Vt();else z=e;z!==e?F=t.substring(F,s):F=z,F!==e?(Y=U,A=yo(p,y,w,A,F),U=A):(s=U,U=e)}else s=U,U=e}B!==e?(U=s,A=pe(),A!==e?U=t.substring(U,s):U=A,U!==e?(A=s,F=zi(),F!==e?(z=Qt(),z!==e?(Y=s,Q=X(p,y,w,B,U,z),Q?Q=void 0:Q=e,Q!==e?(ne=ii(),ne===e&&(ne=null),ne!==e?(Y=A,F=es(p,y,w,B,U,z),A=F):(s=A,A=e)):(s=A,A=e)):(s=A,A=e)):(s=A,A=e),A!==e?(Y=s,F=Ir(p,y,w,B,U,A),F?F=void 0:F=e,F!==e?(Y=l,p=Di(p,y,w,B,U,A),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function oh(){var l,p,g;if(l=s,p=[],g=Vt(),g!==e)for(;g!==e;)p.push(g),g=Vt();else p=e;return p!==e&&(Y=l,p=ka()),l=p,l}function h1(){var l,p,g,y;if(l=s,p=[],g=s,y=_r(),y!==e&&(Y=g,y=ts()),g=y,g===e){if(g=[],Ni.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ri)),y!==e)for(;y!==e;)g.push(y),Ni.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ri));else g=e;g===e&&(g=Vt())}if(g!==e){for(;g!==e;)if(p.push(g),g=s,y=_r(),y!==e&&(Y=g,y=ts()),g=y,g===e){if(g=[],Ni.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ri)),y!==e)for(;y!==e;)g.push(y),Ni.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ri));else g=e;g===e&&(g=Vt())}}else p=e;return p!==e&&(Y=l,p=rs(p)),l=p,l}function Aa(){var l,p,g,y,C,w,B,U,A,F,z,Q;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=s,V++,y=vn(),V--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=si(),y!==e)if(C=pe(),C!==e)if(w=_r(),w===e&&(w=null),w!==e)if(Y=s,B=ns(p,y),B?B=void 0:B=e,B!==e){for(U=s,A=[],F=s,z=s,V++,Q=_r(),V--,Q===e?z=void 0:(s=z,z=e),z!==e?(Q=Vt(),Q!==e?(z=[z,Q],F=z):(s=F,F=e)):(s=F,F=e);F!==e;)A.push(F),F=s,z=s,V++,Q=_r(),V--,Q===e?z=void 0:(s=z,z=e),z!==e?(Q=Vt(),Q!==e?(z=[z,Q],F=z):(s=F,F=e)):(s=F,F=e);A!==e?U=t.substring(U,s):U=A,U!==e?(Y=l,p=wa(p,y,U),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Sa(){var l,p,g,y,C,w,B,U,A;return l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e?(g=s,V++,y=vn(),V--,y===e?g=void 0:(s=g,g=e),g!==e?(y=si(),y!==e?(C=pe(),C!==e?(w=_r(),w===e&&(w=null),w!==e?(Y=s,B=Hr(p,y),B?B=void 0:B=e,B!==e?(Y=s,U=ni(p,y),U?U=void 0:U=e,U!==e?(A=Ca(),A!==e?(Y=l,p=Ye(p,y,A),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Pa(){var l,p,g,y,C,w,B,U,A,F,z;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=s,V++,y=vn(),V--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=si(),y!==e)if(C=pe(),C!==e)if(w=_r(),w===e&&(w=null),w!==e){for(B=s,U=[],A=s,F=s,V++,z=_r(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=Vt(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);A!==e;)U.push(A),A=s,F=s,V++,z=_r(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=Vt(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);U!==e?B=t.substring(B,s):B=U,B!==e?(Y=l,p=Li(p,y,B),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function sh(){var l,p,g,y,C,w,B,U,A,F,z;for(l=s,p=[],g=cn();g!==e;)p.push(g),g=cn();if(p!==e)if(g=oi(),g!==e){if(y=[],C=s,w=pe(),w!==e)if(t.substr(s,2)===bo?(B=bo,s+=2):(B=e,V===0&&te(Gr)),B!==e)if(U=pe(),U!==e){if(A=[],F=cn(),F!==e)for(;F!==e;)A.push(F),F=cn();else A=e;A!==e?(F=pe(),F!==e?(z=oi(),z!==e?(Y=C,w=ae(p,A),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)}else s=C,C=e;else s=C,C=e;else s=C,C=e;for(;C!==e;)if(y.push(C),C=s,w=pe(),w!==e)if(t.substr(s,2)===bo?(B=bo,s+=2):(B=e,V===0&&te(Gr)),B!==e)if(U=pe(),U!==e){if(A=[],F=cn(),F!==e)for(;F!==e;)A.push(F),F=cn();else A=e;A!==e?(F=pe(),F!==e?(z=oi(),z!==e?(Y=C,w=ae(p,A),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)}else s=C,C=e;else s=C,C=e;else s=C,C=e;y!==e?(Y=l,p=we(p,y),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function Ta(){var l,p,g,y,C,w,B;return l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e?(t.substr(s,6)===H?(g=H,s+=6):(g=e,V===0&&te(ft)),g!==e?(y=pe(),y!==e?(C=s,w=Da(),w!==e?C=t.substring(C,s):C=w,C!==e?(w=pe(),w!==e?(B=sh(),B!==e?(Y=l,p=an(p,g,C,B),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Ia(){var l,p,g,y,C,w,B,U;return l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e?(t.substr(s,7)===be?(g=be,s+=7):(g=e,V===0&&te(He)),g!==e?(y=pe(),y!==e?(C=s,w=Qt(),w===e&&(w=s,Ln.test(t.charAt(s))?(B=t.charAt(s),s++):(B=e,V===0&&te(ji)),B!==e?(t.substr(s,2)===is?(U=is,s+=2):(U=e,V===0&&te(m)),U!==e?(B=[B,U],w=B):(s=w,w=e)):(s=w,w=e)),w!==e?C=t.substring(C,s):C=w,C!==e?(w=pe(),w!==e?(B=ai(),B!==e?(Y=l,p=x(p,g,C,B),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Fa(){var l,p,g,y,C,w,B,U,A,F,z,Q;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=fs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e)if(Y=s,B=S(p,g,y,w),B?B=void 0:B=e,B!==e){for(U=s,A=[],F=s,z=s,V++,Q=_r(),V--,Q===e?z=void 0:(s=z,z=e),z!==e?(Q=Vt(),Q!==e?(z=[z,Q],F=z):(s=F,F=e)):(s=F,F=e);F!==e;)A.push(F),F=s,z=s,V++,Q=_r(),V--,Q===e?z=void 0:(s=z,z=e),z!==e?(Q=Vt(),Q!==e?(z=[z,Q],F=z):(s=F,F=e)):(s=F,F=e);A!==e?U=t.substring(U,s):U=A,U!==e?(Y=l,p=$(p,g,y,w,U),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Oa(){var l,p,g,y,C,w,B,U,A;return l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e?(g=fs(),g!==e?(y=Qt(),y!==e?(C=pe(),C!==e?(w=ai(),w!==e?(Y=s,B=E(p,g,y,w),B?B=void 0:B=e,B!==e?(Y=s,U=I(p,g,y,w),U?U=void 0:U=e,U!==e?(A=Ca(),A!==e?(Y=l,p=R(p,g,y,w,A),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function qa(){var l,p,g,y,C,w,B,U,A,F,z;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=fs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e){for(B=s,U=[],A=s,F=s,V++,z=_r(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=Vt(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);A!==e;)U.push(A),A=s,F=s,V++,z=_r(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=Vt(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);U!==e?B=t.substring(B,s):B=U,B!==e?(Y=l,p=Z(p,g,y,w,B),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Da(){var l,p,g,y,C;if(l=s,p=s,We.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,V===0&&te(Nt)),g!==e){if(y=[],or.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(pr)),C!==e)for(;C!==e;)y.push(C),or.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(pr));else y=e;y!==e?(g=[g,y],p=g):(s=p,p=e)}else s=p,p=e;return p!==e?l=t.substring(l,s):l=p,l}function g1(){var l,p;for(V++,l=[],os.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(ss));p!==e;)l.push(p),os.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(ss));return V--,l===e&&(p=e,V===0&&te(hr)),l}function y1(){var l,p;for(V++,l=[],os.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(ss));p!==e;)l.push(p),os.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(ss));return V--,l===e&&(p=e,V===0&&te(Jm)),l}function ms(l){return l!==l.toLowerCase()&&l!==l.toUpperCase()}function ah(l){return l===l.toUpperCase()}function Hi(l){return l.reduce((p,g)=>Array.isArray(g)?p.concat(Hi(g)):p.concat(g),[])}function lh(l){return["code","comment","data","defn","head","input","item","markdown","nested","output","para","pod","table","toc"].includes(l)||ah(l)||l.match(/^(head|item)\d+$/)||ms(l)}function uh(l,p){return l.length==0?p:p.indexOf(l)==0?p.replace(l,""):p.replace(/^\s+/,"")}if(ls=i(),ls!==e&&s===t.length)return ls;throw ls!==e&&s<t.length&&te(Xm()),yc(va,ln<t.length?t.charAt(ln):null,ln<t.length?$o(ln,ln+1):$o(ln,ln))}nd.exports={SyntaxError:wi,parse:vk}});var ad=ce((Cx,sd)=>{"use strict";function Ck(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function vi(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,vi)}Ck(vi,Error);vi.buildMessage=function(t,r){var e={literal:function(h){return'"'+i(h.text)+'"'},class:function(h){var d="",b;for(b=0;b<h.parts.length;b++)d+=h.parts[b]instanceof Array?o(h.parts[b][0])+"-"+o(h.parts[b][1]):o(h.parts[b]);return"["+(h.inverted?"^":"")+d+"]"},any:function(h){return"any character"},end:function(h){return"end of input"},other:function(h){return h.description}};function n(h){return h.charCodeAt(0).toString(16).toUpperCase()}function i(h){return h.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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function o(h){return h.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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function a(h){return e[h.type](h)}function c(h){var d=new Array(h.length),b,v;for(b=0;b<h.length;b++)d[b]=a(h[b]);if(d.sort(),d.length>0){for(b=1,v=1;b<d.length;b++)d[b-1]!==d[b]&&(d[v]=d[b],v++);d.length=v}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function f(h){return h?'"'+i(h)+'"':"end of input"}return"Expected "+c(t)+" but "+f(r)+" found."};function Ek(t,r){r=r!==void 0?r:{};var e={},n={Expression:ei},i=ei,o="A",a=De("A",!1),c="V",f=De("V",!1),h="R",d=De("R",!1),b="B",v=De("B",!1),k="I",_=De("I",!1),T="C",L=De("C",!1),N="D",ee=De("D",!1),re="E",de=De("E",!1),fe="K",J=De("K",!1),me="L",$e=De("L",!1),ke="S",Oe=De("S",!1),ve="T",xe=De("T",!1),ue="U",be=De("U",!1),He="Z",H=De("Z",!1),ft="N",je=De("N",!1),nt="X",Ve=De("X",!1),O=/^[a-zA-Z]/,D=qt([["a","z"],["A","Z"]],!1,!1),Kt=/^[a-zA-Z0-9_\-]/,Tt=qt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),at=/^[ \t\f]/,mt=qt([" "," ","\f"],!1,!1),ht=function(m){return!(r.allowed||[]).length||(r.allowed||[]).includes(m)},he=nn(),vr=function(m){return m},Dt=function(m){return m==="A"},Wt=function(m,x){return{content:x,type:"fcode",name:m}},or=function(m){return m==="D"},pr=function(m,x,S){return ji(S)},Zt=function(m,x,S){return{content:x,type:"fcode",name:m,synonyms:S}},Zn=function(m){return m==="V"},Sn=function(m,x){return{content:x,type:"fcode",name:m}},gt="<",yt=De("<",!1),jt=">",bt=De(">",!1),$t=function(){return Br()},kt="\xAB",pt=De("\xAB",!1),It="\xBB",Ft=De("\xBB",!1),xr=function(m){return m},sr=function(m){return m.code==="C"},W=function(m,x,S){return S===m.end_tag},ie=function(m,x,S){return{content:x,type:"fcode",name:m.code}},ye="|",Se=De("|",!1),Ot=function(m){return m},jr=function(m){return m.code==="L"},Ue=function(m,x,S){return S},lt=function(m,x,S,$){return $===m.end_tag},wt=function(m,x,S,$){return{content:x,type:"fcode",name:m.code,meta:S}},dr=";",Ge=De(";",!1),bn=/^[ \xA0\u2001\t\f\u2008]/,Bt=qt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),Pn=function(m,x){return ji([m,x])},Ii=function(m){return[m]},Pr=function(m){return m==="X"},Jn=function(m,x,S){return{content:x,type:"fcode",name:m,entry:S}},Fi=function(m){return m==="S"},fo=function(m){return m==="Z"},Tn=/^[0-9]/,Qn=qt([["0","9"]],!1,!1),In="0d",Fn=De("0d",!1),po=function(m){return parseInt(m,10)},$n="0o",q=De("0o",!1),P=function(m){return parseInt(m,8)},M="0b",G=De("0b",!1),K=function(m){return parseInt(m,2)},ae="0x",we=De("0x",!1),Ae=/^[0-9A-Fa-f]/,qe=qt([["0","9"],["A","F"],["a","f"]],!1,!1),tt=function(){return parseInt(Br())},_e=function(m){return{type:"number",value:parseInt(m,10)}},Ke=function(m){return m==="E"},ut=function(m,x){return ji(x)},Ze=function(m,x){return{content:x||[],type:"fcode",name:m}},Te=function(m){return m},Xe=function(m,x){return{code:m,begin_tag:x,end_tag:is(x)}},Be=function(m){return m.code!=="C"},Tr=function(m,x,S){return S===m.end_tag},zt=function(m,x,S){return{content:x,type:"fcode",name:m.code}},u=0,oe=0,vt=[{line:1,column:1}],it=0,Jt=[],j=0,Mt;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');i=n[r.startRule]}function Br(){return t.substring(oe,u)}function On(){return on(oe,u)}function qn(m,x){throw x=x!==void 0?x:on(oe,u),Ir([zr(m)],t.substring(oe,u),x)}function rn(m,x){throw x=x!==void 0?x:on(oe,u),kn(m,x)}function De(m,x){return{type:"literal",text:m,ignoreCase:x}}function qt(m,x,S){return{type:"class",parts:m,inverted:x,ignoreCase:S}}function nn(){return{type:"any"}}function Xn(){return{type:"end"}}function zr(m){return{type:"other",description:m}}function Yn(m){var x=vt[m],S;if(x)return x;for(S=m-1;!vt[S];)S--;for(x=vt[S],x={line:x.line,column:x.column};S<m;)t.charCodeAt(S)===10?(x.line++,x.column=1):x.column++,S++;return vt[m]=x,x}function on(m,x){var S=Yn(m),$=Yn(x);return{start:{offset:m,line:S.line,column:S.column},end:{offset:x,line:$.line,column:$.column}}}function X(m){u<it||(u>it&&(it=u,Jt=[]),Jt.push(m))}function kn(m,x){return new vi(m,null,null,x)}function Ir(m,x,S){return new vi(vi.buildMessage(m,x),m,x,S)}function ei(){var m,x;for(m=[],x=Cr(),x===e&&(x=Li(),x===e&&(x=Gr(),x===e&&(x=Mr())));x!==e;)m.push(x),x=Cr(),x===e&&(x=Li(),x===e&&(x=Gr(),x===e&&(x=Mr())));return m}function Cr(){var m;return m=Dn(),m===e&&(m=yo(),m===e&&(m=Nn(),m===e&&(m=Vr(),m===e&&(m=wa(),m===e&&(m=mo(),m===e&&(m=Yo(),m===e&&(m=go(),m===e&&(m=es())))))))),m}function Oi(){var m;return t.charCodeAt(u)===65?(m=o,u++):(m=e,j===0&&X(a)),m===e&&(t.charCodeAt(u)===86?(m=c,u++):(m=e,j===0&&X(f)),m===e&&(t.charCodeAt(u)===82?(m=h,u++):(m=e,j===0&&X(d)),m===e&&(t.charCodeAt(u)===66?(m=b,u++):(m=e,j===0&&X(v)),m===e&&(t.charCodeAt(u)===73?(m=k,u++):(m=e,j===0&&X(_)),m===e&&(t.charCodeAt(u)===67?(m=T,u++):(m=e,j===0&&X(L)),m===e&&(t.charCodeAt(u)===68?(m=N,u++):(m=e,j===0&&X(ee)),m===e&&(t.charCodeAt(u)===69?(m=re,u++):(m=e,j===0&&X(de)),m===e&&(t.charCodeAt(u)===75?(m=fe,u++):(m=e,j===0&&X(J)),m===e&&(t.charCodeAt(u)===76?(m=me,u++):(m=e,j===0&&X($e)),m===e&&(t.charCodeAt(u)===83?(m=ke,u++):(m=e,j===0&&X(Oe)),m===e&&(t.charCodeAt(u)===84?(m=ve,u++):(m=e,j===0&&X(xe)),m===e&&(t.charCodeAt(u)===85?(m=ue,u++):(m=e,j===0&&X(be)),m===e&&(t.charCodeAt(u)===90?(m=He,u++):(m=e,j===0&&X(H)),m===e&&(t.charCodeAt(u)===78?(m=ft,u++):(m=e,j===0&&X(je)),m===e&&(t.charCodeAt(u)===88?(m=nt,u++):(m=e,j===0&&X(Ve))))))))))))))))),m}function qi(){var m,x,S,$,E;if(m=u,x=u,O.test(t.charAt(u))?(S=t.charAt(u),u++):(S=e,j===0&&X(D)),S!==e){if($=[],Kt.test(t.charAt(u))?(E=t.charAt(u),u++):(E=e,j===0&&X(Tt)),E!==e)for(;E!==e;)$.push(E),Kt.test(t.charAt(u))?(E=t.charAt(u),u++):(E=e,j===0&&X(Tt));else $=e;$!==e?(S=[S,$],x=S):(u=x,x=e)}else u=x,x=e;return x!==e?m=t.substring(m,u):m=x,m}function ti(){var m,x;for(m=[],at.test(t.charAt(u))?(x=t.charAt(u),u++):(x=e,j===0&&X(mt));x!==e;)m.push(x),at.test(t.charAt(u))?(x=t.charAt(u),u++):(x=e,j===0&&X(mt));return m}function Et(){var m,x,S;return m=u,x=Oi(),x!==e?(oe=u,S=ht(x),S?S=void 0:S=e,S!==e?(x=[x,S],m=x):(u=m,m=e)):(u=m,m=e),m}function Mr(){var m,x;return m=u,t.length>u?(x=t.charAt(u),u++):(x=e,j===0&&X(he)),x!==e?m=t.substring(m,u):m=x,m}function ri(){var m,x,S,$,E;return m=u,x=u,j++,S=Ye(),j--,S===e?x=void 0:(u=x,x=e),x!==e?(S=ti(),S!==e?($=u,E=qi(),E===e&&(E=null),E!==e?$=t.substring($,u):$=E,$!==e?(E=ti(),E!==e?(oe=m,x=vr($),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m===e&&(m=null),m}function Dn(){var m,x,S,$,E;return m=u,x=Hr(),x!==e?(oe=u,S=Dt(x),S?S=void 0:S=e,S!==e?($=ri(),$!==e?(E=Ye(),E!==e?(oe=m,x=Wt(x,$),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m}function Vr(){var m,x,S,$,E,I,R,Z;if(m=u,x=Hr(),x!==e)if(oe=u,S=or(x),S?S=void 0:S=e,S!==e){if($=[],E=mr(),E!==e)for(;E!==e;)$.push(E),E=mr();else $=e;if($!==e){if(E=u,I=wn(),I!==e){for(R=[],Z=Rn();Z!==e;)R.push(Z),Z=Rn();R!==e?(oe=E,I=pr(x,$,R),E=I):(u=E,E=e)}else u=E,E=e;E===e&&(E=null),E!==e?(I=Ye(),I!==e?(oe=m,x=Zt(x,$,E),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e}else u=m,m=e;else u=m,m=e;return m}function mo(){var m,x,S,$,E,I;if(m=u,x=Hr(),x!==e)if(oe=u,S=Zn(x),S?S=void 0:S=e,S!==e){if($=u,E=[],I=Er(),I!==e)for(;I!==e;)E.push(I),I=Er();else E=e;E!==e?$=t.substring($,u):$=E,$!==e?(E=Ye(),E!==e?(oe=m,x=Sn(x,$),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function Fr(){var m;return t.charCodeAt(u)===66?(m=b,u++):(m=e,j===0&&X(v)),m}function sn(){var m,x,S,$,E;return m=u,x=u,S=u,j++,$=Fr(),j--,$===e?S=void 0:(u=S,S=e),S!==e?(t.length>u?($=t.charAt(u),u++):($=e,j===0&&X(he)),$!==e?(S=[S,$],x=S):(u=x,x=e)):(u=x,x=e),x!==e?(t.charCodeAt(u)===60?(S=gt,u++):(S=e,j===0&&X(yt)),S!==e?($=an(),$!==e?(t.charCodeAt(u)===62?(E=jt,u++):(E=e,j===0&&X(bt)),E!==e?(oe=m,x=$t(),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m===e&&(m=u,x=u,S=u,j++,$=Fr(),j--,$===e?S=void 0:(u=S,S=e),S!==e?(t.length>u?($=t.charAt(u),u++):($=e,j===0&&X(he)),$!==e?(S=[S,$],x=S):(u=x,x=e)):(u=x,x=e),x!==e?(t.charCodeAt(u)===171?(S=kt,u++):(S=e,j===0&&X(pt)),S!==e?($=an(),$!==e?(t.charCodeAt(u)===187?(E=It,u++):(E=e,j===0&&X(Ft)),E!==e?(oe=m,x=$t(),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)),m}function Er(){var m,x,S,$,E,I,R,Z;if(m=u,x=u,S=[],$=u,E=u,I=u,j++,t.charCodeAt(u)===60?(R=gt,u++):(R=e,j===0&&X(yt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(t.length>u?(R=t.charAt(u),u++):(R=e,j===0&&X(he)),R!==e?(I=[I,R],E=I):(u=E,E=e)):(u=E,E=e),E===e&&(E=null),E!==e?(t.charCodeAt(u)===60?(I=gt,u++):(I=e,j===0&&X(yt)),I!==e?(R=Er(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===62?(Z=jt,u++):(Z=e,j===0&&X(bt)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=u,E=u,I=u,j++,t.charCodeAt(u)===171?(R=kt,u++):(R=e,j===0&&X(pt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(t.length>u?(R=t.charAt(u),u++):(R=e,j===0&&X(he)),R!==e?(I=[I,R],E=I):(u=E,E=e)):(u=E,E=e),E===e&&(E=null),E!==e?(t.charCodeAt(u)===171?(I=kt,u++):(I=e,j===0&&X(pt)),I!==e?(R=Er(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===187?(Z=It,u++):(Z=e,j===0&&X(Ft)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=sn(),$===e&&($=an()))),$!==e)for(;$!==e;)S.push($),$=u,E=u,I=u,j++,t.charCodeAt(u)===60?(R=gt,u++):(R=e,j===0&&X(yt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(t.length>u?(R=t.charAt(u),u++):(R=e,j===0&&X(he)),R!==e?(I=[I,R],E=I):(u=E,E=e)):(u=E,E=e),E===e&&(E=null),E!==e?(t.charCodeAt(u)===60?(I=gt,u++):(I=e,j===0&&X(yt)),I!==e?(R=Er(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===62?(Z=jt,u++):(Z=e,j===0&&X(bt)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=u,E=u,I=u,j++,t.charCodeAt(u)===171?(R=kt,u++):(R=e,j===0&&X(pt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(t.length>u?(R=t.charAt(u),u++):(R=e,j===0&&X(he)),R!==e?(I=[I,R],E=I):(u=E,E=e)):(u=E,E=e),E===e&&(E=null),E!==e?(t.charCodeAt(u)===171?(I=kt,u++):(I=e,j===0&&X(pt)),I!==e?(R=Er(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===187?(Z=It,u++):(Z=e,j===0&&X(Ft)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=sn(),$===e&&($=an())));else S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=xr(x)),m=x,m}function Nn(){var m,x,S,$,E,I;if(m=u,x=ni(),x!==e)if(oe=u,S=sr(x),S?S=void 0:S=e,S!==e){if($=[],E=Er(),E!==e)for(;E!==e;)$.push(E),E=Er();else $=e;$!==e?(E=Ye(),E!==e?(oe=u,I=W(x,$,E),I?I=void 0:I=e,I!==e?(oe=m,x=ie(x,$,E),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function wn(){var m;return t.charCodeAt(u)===124?(m=ye,u++):(m=e,j===0&&X(Se)),m}function mr(){var m,x,S,$,E,I,R,Z,We;if(m=u,x=u,S=[],$=u,E=u,I=u,j++,t.charCodeAt(u)===60?(R=gt,u++):(R=e,j===0&&X(yt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Et(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(I=[I,R,Z],E=I):(u=E,E=e)):(u=E,E=e)):(u=E,E=e),E!==e?(t.charCodeAt(u)===60?(I=gt,u++):(I=e,j===0&&X(yt)),I!==e?(R=mr(),R!==e?(t.charCodeAt(u)===62?(Z=jt,u++):(Z=e,j===0&&X(bt)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=u,E=u,I=u,j++,t.charCodeAt(u)===171?(R=kt,u++):(R=e,j===0&&X(pt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Et(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(I=[I,R,Z],E=I):(u=E,E=e)):(u=E,E=e)):(u=E,E=e),E!==e?(t.charCodeAt(u)===171?(I=kt,u++):(I=e,j===0&&X(pt)),I!==e?(R=mr(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===187?(Z=It,u++):(Z=e,j===0&&X(Ft)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=u,E=u,j++,I=wn(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(I=u,j++,R=Ye(),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Hr(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(Z=u,j++,We=Ln(),j--,We===e?Z=void 0:(u=Z,Z=e),Z!==e?(t.length>u?(We=t.charAt(u),u++):(We=e,j===0&&X(he)),We!==e?(E=[E,I,R,Z,We],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e))),$!==e)for(;$!==e;)S.push($),$=u,E=u,I=u,j++,t.charCodeAt(u)===60?(R=gt,u++):(R=e,j===0&&X(yt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Et(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(I=[I,R,Z],E=I):(u=E,E=e)):(u=E,E=e)):(u=E,E=e),E!==e?(t.charCodeAt(u)===60?(I=gt,u++):(I=e,j===0&&X(yt)),I!==e?(R=mr(),R!==e?(t.charCodeAt(u)===62?(Z=jt,u++):(Z=e,j===0&&X(bt)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=u,E=u,I=u,j++,t.charCodeAt(u)===171?(R=kt,u++):(R=e,j===0&&X(pt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Et(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(I=[I,R,Z],E=I):(u=E,E=e)):(u=E,E=e)):(u=E,E=e),E!==e?(t.charCodeAt(u)===171?(I=kt,u++):(I=e,j===0&&X(pt)),I!==e?(R=mr(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===187?(Z=It,u++):(Z=e,j===0&&X(Ft)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=u,E=u,j++,I=wn(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(I=u,j++,R=Ye(),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Hr(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(Z=u,j++,We=Ln(),j--,We===e?Z=void 0:(u=Z,Z=e),Z!==e?(t.length>u?(We=t.charAt(u),u++):(We=e,j===0&&X(he)),We!==e?(E=[E,I,R,Z,We],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)));else S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=Ot(x)),m=x,m}function Yo(){var m,x,S,$,E,I,R,Z,We,Nt,hr;if(m=u,x=ni(),x!==e)if(oe=u,S=jr(x),S?S=void 0:S=e,S!==e){if($=[],E=Nn(),E===e&&(E=mr()),E!==e)for(;E!==e;)$.push(E),E=Nn(),E===e&&(E=mr());else $=e;if($!==e){if(E=u,I=wn(),I!==e){for(R=u,Z=[],We=u,Nt=u,j++,hr=Ye(),j--,hr===e?Nt=void 0:(u=Nt,Nt=e),Nt!==e?(t.length>u?(hr=t.charAt(u),u++):(hr=e,j===0&&X(he)),hr!==e?(Nt=[Nt,hr],We=Nt):(u=We,We=e)):(u=We,We=e);We!==e;)Z.push(We),We=u,Nt=u,j++,hr=Ye(),j--,hr===e?Nt=void 0:(u=Nt,Nt=e),Nt!==e?(t.length>u?(hr=t.charAt(u),u++):(hr=e,j===0&&X(he)),hr!==e?(Nt=[Nt,hr],We=Nt):(u=We,We=e)):(u=We,We=e);Z!==e?R=t.substring(R,u):R=Z,R!==e?(oe=E,I=Ue(x,$,R),E=I):(u=E,E=e)}else u=E,E=e;E===e&&(E=null),E!==e?(I=Ye(),I!==e?(oe=u,R=lt(x,$,E,I),R?R=void 0:R=e,R!==e?(oe=m,x=wt(x,$,E,I),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)}else u=m,m=e}else u=m,m=e;else u=m,m=e;return m}function ho(){var m,x,S,$,E,I;if(m=u,x=[],S=u,$=u,j++,t.charCodeAt(u)===59?(E=dr,u++):(E=e,j===0&&X(Ge)),j--,E===e?$=void 0:(u=$,$=e),$!==e?(E=u,j++,I=Ye(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(t.length>u?(I=t.charAt(u),u++):(I=e,j===0&&X(he)),I!==e?($=[$,E,I],S=$):(u=S,S=e)):(u=S,S=e)):(u=S,S=e),S!==e)for(;S!==e;)x.push(S),S=u,$=u,j++,t.charCodeAt(u)===59?(E=dr,u++):(E=e,j===0&&X(Ge)),j--,E===e?$=void 0:(u=$,$=e),$!==e?(E=u,j++,I=Ye(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(t.length>u?(I=t.charAt(u),u++):(I=e,j===0&&X(he)),I!==e?($=[$,E,I],S=$):(u=S,S=e)):(u=S,S=e)):(u=S,S=e);else x=e;return x!==e?m=t.substring(m,u):m=x,m}function Ur(){var m;return bn.test(t.charAt(u))?(m=t.charAt(u),u++):(m=e,j===0&&X(Bt)),m}function Rn(){var m,x,S,$,E,I;if(m=u,x=ho(),x!==e){for(S=[],$=Ur();$!==e;)S.push($),$=Ur();if(S!==e)if(t.charCodeAt(u)===59?($=dr,u++):($=e,j===0&&X(Ge)),$!==e){for(E=[],I=Ur();I!==e;)E.push(I),I=Ur();E!==e?(I=Rn(),I!==e?(oe=m,x=Pn(x,I),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e}else u=m,m=e;return m===e&&(m=u,x=ho(),x!==e&&(oe=m,x=Ii(x)),m=x),m}function go(){var m,x,S,$,E,I,R,Z;if(m=u,x=Hr(),x!==e)if(oe=u,S=Pr(x),S?S=void 0:S=e,S!==e){for($=[],E=mr();E!==e;)$.push(E),E=mr();if($!==e){if(E=u,I=wn(),I!==e){for(R=[],Z=Rn();Z!==e;)R.push(Z),Z=Rn();R!==e?(oe=E,I=pr(x,$,R),E=I):(u=E,E=e)}else u=E,E=e;E===e&&(E=null),E!==e?(I=Ye(),I!==e?(oe=m,x=Jn(x,$,E),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e}else u=m,m=e;else u=m,m=e;return m}function yo(){var m,x,S,$,E,I,R,Z;if(m=u,x=Hr(),x!==e)if(oe=u,S=Fi(x),S?S=void 0:S=e,S!==e){for($=u,E=[],I=u,R=u,j++,Z=Ye(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(R=[R,Z],I=R):(u=I,I=e)):(u=I,I=e);I!==e;)E.push(I),I=u,R=u,j++,Z=Ye(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(R=[R,Z],I=R):(u=I,I=e)):(u=I,I=e);E!==e?$=t.substring($,u):$=E,$!==e?(E=Ye(),E!==e?(oe=m,x=Wt(x,$),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function es(){var m,x,S,$,E,I,R,Z;if(m=u,x=Hr(),x!==e)if(oe=u,S=fo(x),S?S=void 0:S=e,S!==e){for($=u,E=[],I=u,R=u,j++,Z=Ye(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(R=[R,Z],I=R):(u=I,I=e)):(u=I,I=e);I!==e;)E.push(I),I=u,R=u,j++,Z=Ye(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(R=[R,Z],I=R):(u=I,I=e)):(u=I,I=e);E!==e?$=t.substring($,u):$=E,$!==e?(E=Ye(),E!==e?(oe=m,x=Wt(x,$),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function Di(){var m,x,S;if(m=u,x=[],Tn.test(t.charAt(u))?(S=t.charAt(u),u++):(S=e,j===0&&X(Qn)),S!==e)for(;S!==e;)x.push(S),Tn.test(t.charAt(u))?(S=t.charAt(u),u++):(S=e,j===0&&X(Qn));else x=e;return x!==e?m=t.substring(m,u):m=x,m}function ka(){var m,x,S;return m=u,t.substr(u,2)===In?(x=In,u+=2):(x=e,j===0&&X(Fn)),x!==e?(S=Di(),S!==e?(oe=m,x=po(S),m=x):(u=m,m=e)):(u=m,m=e),m}function ts(){var m,x,S;return m=u,t.substr(u,2)===$n?(x=$n,u+=2):(x=e,j===0&&X(q)),x!==e?(S=Di(),S!==e?(oe=m,x=P(S),m=x):(u=m,m=e)):(u=m,m=e),m}function Ni(){var m,x,S;return m=u,t.substr(u,2)===M?(x=M,u+=2):(x=e,j===0&&X(G)),x!==e?(S=Di(),S!==e?(oe=m,x=K(S),m=x):(u=m,m=e)):(u=m,m=e),m}function Ri(){var m,x,S,$,E,I;if(m=u,x=u,S=u,t.substr(u,2)===ae?($=ae,u+=2):($=e,j===0&&X(we)),$!==e){if(E=[],Ae.test(t.charAt(u))?(I=t.charAt(u),u++):(I=e,j===0&&X(qe)),I!==e)for(;I!==e;)E.push(I),Ae.test(t.charAt(u))?(I=t.charAt(u),u++):(I=e,j===0&&X(qe));else E=e;E!==e?($=[$,E],S=$):(u=S,S=e)}else u=S,S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=tt()),m=x,m}function rs(){var m,x,S;return m=u,x=ti(),x!==e?(S=ts(),S===e&&(S=ka(),S===e&&(S=Ni(),S===e&&(S=Ri(),S===e&&(S=Di())))),S!==e?(oe=m,x=_e(S),m=x):(u=m,m=e)):(u=m,m=e),m}function ns(){var m,x,S,$,E,I;if(m=u,x=rs(),x!==e){for(S=[],$=Ur();$!==e;)S.push($),$=Ur();if(S!==e)if(t.charCodeAt(u)===59?($=dr,u++):($=e,j===0&&X(Ge)),$!==e){for(E=[],I=Ur();I!==e;)E.push(I),I=Ur();E!==e?(I=ns(),I!==e?(oe=m,x=Pn(x,I),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e}else u=m,m=e;return m===e&&(m=u,x=rs(),x!==e&&(oe=m,x=Ii(x)),m=x),m}function wa(){var m,x,S,$,E;return m=u,x=Hr(),x!==e?(oe=u,S=Ke(x),S?S=void 0:S=e,S!==e?($=u,E=ns(),E!==e&&(oe=$,E=ut(x,E)),$=E,$===e&&($=null),$!==e?(E=Ye(),E!==e?(oe=m,x=Ze(x,$),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m}function Hr(){var m,x,S;return m=u,x=u,S=Et(),S!==e?x=t.substring(x,u):x=S,x!==e?(t.charCodeAt(u)===60?(S=gt,u++):(S=e,j===0&&X(yt)),S!==e?(oe=m,x=Te(x),m=x):(u=m,m=e)):(u=m,m=e),m}function ni(){var m,x,S,$;return m=u,x=u,S=Et(),S!==e?x=t.substring(x,u):x=S,x!==e?(S=u,t.charCodeAt(u)===60?($=gt,u++):($=e,j===0&&X(yt)),$===e&&(t.charCodeAt(u)===171?($=kt,u++):($=e,j===0&&X(pt))),$!==e?S=t.substring(S,u):S=$,S!==e?(oe=m,x=Xe(x,S),m=x):(u=m,m=e)):(u=m,m=e),m}function Ye(){var m;return t.charCodeAt(u)===62?(m=jt,u++):(m=e,j===0&&X(bt)),m===e&&(t.charCodeAt(u)===187?(m=It,u++):(m=e,j===0&&X(Ft))),m}function Li(){var m,x,S,$,E,I;if(m=u,x=ni(),x!==e)if(oe=u,S=Be(x),S?S=void 0:S=e,S!==e){for($=[],E=Cr(),E===e&&(E=Li(),E===e&&(E=Gr()));E!==e;)$.push(E),E=Cr(),E===e&&(E=Li(),E===e&&(E=Gr()));$!==e?(E=Ye(),E!==e?(oe=u,I=Tr(x,$,E),I?I=void 0:I=e,I!==e?(oe=m,x=zt(x,$,E),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function bo(){var m,x,S,$,E;for(m=u,x=[],S=u,$=u,j++,E=Ye(),j--,E===e?$=void 0:(u=$,$=e),$!==e?(t.length>u?(E=t.charAt(u),u++):(E=e,j===0&&X(he)),E!==e?($=[$,E],S=$):(u=S,S=e)):(u=S,S=e);S!==e;)x.push(S),S=u,$=u,j++,E=Ye(),j--,E===e?$=void 0:(u=$,$=e),$!==e?(t.length>u?(E=t.charAt(u),u++):(E=e,j===0&&X(he)),E!==e?($=[$,E],S=$):(u=S,S=e)):(u=S,S=e);return x!==e?m=t.substring(m,u):m=x,m}function Gr(){var m,x,S,$,E,I,R;if(m=u,x=u,S=[],$=u,t.charCodeAt(u)===60?(E=gt,u++):(E=e,j===0&&X(yt)),E!==e?(I=Gr(),I!==e?(t.charCodeAt(u)===62?(R=jt,u++):(R=e,j===0&&X(bt)),R!==e?(E=[E,I,R],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=u,t.charCodeAt(u)===171?(E=kt,u++):(E=e,j===0&&X(pt)),E!==e?(I=Gr(),I!==e?(t.charCodeAt(u)===187?(R=It,u++):(R=e,j===0&&X(Ft)),R!==e?(E=[E,I,R],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=Ln(),$===e&&($=an()))),$!==e)for(;$!==e;)S.push($),$=u,t.charCodeAt(u)===60?(E=gt,u++):(E=e,j===0&&X(yt)),E!==e?(I=Gr(),I!==e?(t.charCodeAt(u)===62?(R=jt,u++):(R=e,j===0&&X(bt)),R!==e?(E=[E,I,R],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=u,t.charCodeAt(u)===171?(E=kt,u++):(E=e,j===0&&X(pt)),E!==e?(I=Gr(),I!==e?(t.charCodeAt(u)===187?(R=It,u++):(R=e,j===0&&X(Ft)),R!==e?(E=[E,I,R],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$===e&&($=Ln(),$===e&&($=an())));else S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=xr(x)),m=x,m}function an(){var m,x,S,$,E,I,R,Z;if(m=u,x=u,S=[],$=u,E=u,j++,I=Ye(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(I=u,j++,R=ni(),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Ln(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e),$!==e)for(;$!==e;)S.push($),$=u,E=u,j++,I=Ye(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(I=u,j++,R=ni(),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Ln(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(E=[E,I,R,Z],$=E):(u=$,$=e)):(u=$,$=e)):(u=$,$=e)):(u=$,$=e);else S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=xr(x)),m=x,m}function Ln(){var m,x,S,$,E;return m=u,x=u,S=u,j++,$=Et(),j--,$===e?S=void 0:(u=S,S=e),S!==e?(t.length>u?($=t.charAt(u),u++):($=e,j===0&&X(he)),$!==e?(S=[S,$],x=S):(u=x,x=e)):(u=x,x=e),x!==e?(t.charCodeAt(u)===60?(S=gt,u++):(S=e,j===0&&X(yt)),S!==e?($=an(),$!==e?(t.charCodeAt(u)===62?(E=jt,u++):(E=e,j===0&&X(bt)),E!==e?(oe=m,x=$t(),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m===e&&(m=u,x=u,S=u,j++,$=Et(),j--,$===e?S=void 0:(u=S,S=e),S!==e?(t.length>u?($=t.charAt(u),u++):($=e,j===0&&X(he)),$!==e?(S=[S,$],x=S):(u=x,x=e)):(u=x,x=e),x!==e?(t.charCodeAt(u)===171?(S=kt,u++):(S=e,j===0&&X(pt)),S!==e?($=an(),$!==e?(t.charCodeAt(u)===187?(E=It,u++):(E=e,j===0&&X(Ft)),E!==e?(oe=m,x=$t(),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)),m}function ji(m){return m.reduce((x,S)=>Array.isArray(S)?x.concat(ji(S)):x.concat(S),[])}function is(m){return{"<":">","\xAB":"\xBB",">":"<","\xBB":"\xAB"}[m]}if(Mt=i(),Mt!==e&&u===t.length)return Mt;throw Mt!==e&&u<t.length&&X(Xn()),Ir(Jt,it<t.length?t.charAt(it):null,it<t.length?on(it,it+1):on(it,it))}sd.exports={SyntaxError:vi,parse:Ek}});var hd=ce((Qx,Sk)=>{Sk.exports={name:"@podlite/schema",version:"0.0.15",description:"AST tools for Podlite markup language",main:"./src/index.ts",types:"./lib/index.d.ts",license:"MIT",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":"pegjs -o src/grammar.js src/grammar.pegjs && pegjs -o src/grammarfc.js src/grammarfc.pegjs",watch:"npx nodemon -e js,ts --exec 'yarn' build","watch:pegjs":"npx nodemon -e pegjs --exec 'yarn' build:pegjs",test:"yarn g:jest --passWithNoTests"},keywords:["markdown","podlite","markup","markup-language"],dependencies:{ajv:"^7.2.3",events:"^3.1.0","json-pointer":"^0.6.1",nanoid:"3.1.30"},devDependencies:{"@types/node":"^17.0.7",glob:"^7.2.0","npm-run-all":"^4.1.5",pegjs:"^0.10.0","ts-node":"^9.1.1",typescript:"4.5.5","typescript-json-schema":"0.53.0"}}});var $d=ce((FC,bd)=>{bd.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Sd=ce((OC,Ad)=>{"use strict";var Ys=Object.prototype.hasOwnProperty,_d=Object.prototype.toString,kd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,vd=function(r){return typeof Array.isArray=="function"?Array.isArray(r):_d.call(r)==="[object Array]"},xd=function(r){if(!r||_d.call(r)!=="[object Object]")return!1;var e=Ys.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&Ys.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!n)return!1;var i;for(i in r);return typeof i>"u"||Ys.call(r,i)},Cd=function(r,e){kd&&e.name==="__proto__"?kd(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},Ed=function(r,e){if(e==="__proto__")if(Ys.call(r,e)){if(wd)return wd(r,e).value}else return;return r[e]};Ad.exports=function t(){var r,e,n,i,o,a,c=arguments[0],f=1,h=arguments.length,d=!1;for(typeof c=="boolean"&&(d=c,c=arguments[1]||{},f=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});f<h;++f)if(r=arguments[f],r!=null)for(e in r)n=Ed(c,e),i=Ed(r,e),c!==i&&(d&&i&&(xd(i)||(o=vd(i)))?(o?(o=!1,a=n&&vd(n)?n:[]):a=n&&xd(n)?n:{},Cd(c,{name:e,newValue:t(d,a,i)})):typeof i<"u"&&Cd(c,{name:e,newValue:i}));return c}});var Id=ce((NC,Td)=>{Td.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var u1={};Ac(u1,{PluginRegister:()=>a1,default:()=>l1,parseMd:()=>ba,plugin:()=>$a});module.exports=hh(u1);var gd=Nr(qp()),Tk=Nr(Lp());var rC=Nr(Mp());var pk=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}},bi=t=>{let r=pk(t),{name:e,type:n}=r;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};function dk(t,r){function e(i){for(var o in i)if(i.hasOwnProperty(o))return!1;return!0}if(e(t))return!0;for(var n in t)if(t===void 0&&console.warn("[pod6] undefined key!!!"),t.hasOwnProperty(n))if(r===void 0&&console.warn("[pod6] undefined node!!!"),r&&r.hasOwnProperty(n)){if(t[n]!==r[n])return!1}else return!1;return!0}var hn=(t,r)=>{return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(i){return typeof i=="string"?!1:dk(t,i)}},uu=(t,r)=>{if(t instanceof Array)return t.reduce((n,i)=>(n.push(...uu(i)),n),[]);if(t instanceof Object){let n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(hn(bi(e),t[e]));return n}return[hn(bi(t),r)]};var cu=Nr(require("crypto"),1);var Vp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var mk=128,$i,so,hk=t=>{!$i||$i.length<t?($i=Buffer.allocUnsafe(t*mk),cu.default.randomFillSync($i),so=0):so+t>$i.length&&(cu.default.randomFillSync($i),so=0),so+=t};var Up=(t=21)=>{hk(t);let r="";for(let e=so-t;e<so;e++)r+=Vp[$i[e]&63];return r};var Vo=t=>({...t}),fu=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},kr=(t,r)=>{let e="block",n=t.name,i={id:Up(),margin:"",...t};var o=Vo({type:e,...i,content:fu(r)});return o};var Ks=(t,r)=>Vo({type:"fcode",...t,content:r}),pu=(t,r)=>Vo({...t,type:"fcode",name:"L",content:fu(r)}),Hp=t=>Vo({type:"fcode",name:"Delete",content:fu(t)}),Ws=t=>Vo({type:"verbatim",value:t});var Gp=t=>({type:"block",name:"caption",content:t}),Kp=(t,r)=>({type:"image",src:t,alt:r}),du=({margin:t=""},r)=>kr({name:"root",margin:t},r);var Wp=(t,r={})=>{let e=t.config instanceof Array?t.config:[],n=[];r.config&&r.config.hasOwnProperty(t.name)&&(n=r.config[t.name]);let i={};[...e,...n].map(a=>{i.hasOwnProperty(a.name)||(i[a.name]=[]),a.type==="array"?i[a.name].push(...a.value):i[a.name].push(a.value)});let o=function(){};return o.exists=a=>i.hasOwnProperty(a),o.getAllValues=a=>o.exists(a)?i[a]:[],o.getFirstValue=a=>o.exists(a)?o.getAllValues(a)[0]:void 0,o.asHash=()=>i,o},tn=Wp;var Zp=(t,r)=>{let e=tn(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};function Jp(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(Jp(e)):r.concat(e),[]):t}function gk(t){function r(e,n){if(e instanceof Array)return Jp(e.map(a=>r(a,n))).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},n);let i=t.slice();i.reverse();let o=i.findIndex(a=>a.isFor(e));if(o!==-1){let a=i.slice(o+1),c=a.findIndex(h=>h.isFor(e)),f=(h=e,d=n,b=r)=>{if(c!==-1)a[c].fn(h,d,b,()=>{});else return};return typeof i[o].fn!="function"&&console.warn("[pod6] bad fn for "+JSON.stringify(e,null,2)),i[o].fn(e,n,r,f)}else{let a={...e};if(a.hasOwnProperty("content"))return r(a.content,n)}}return r.rules=t,r}var Js=gk;var rt=(t,r)=>(e,n)=>(i,o,a)=>{e.writeRaw(t),i.content&&a(i.content,o),e.writeRaw(r)},En=()=>()=>()=>{},_n=(t,r)=>(e,n,i)=>{if(e.content)return i(e.content,n)},Hn=t=>(r,e)=>(n,i,o)=>t(n,i)(r,e)(n,i,o);var mu=(t,r)=>{let e=uu(t).reverse();return(n,i)=>{let o=e.map(f=>hn(f.rule,f.fn(n,i))).reverse(),a=r(n,i),c;return(f,h,d)=>(c||(c=Js([...d.rules,...o])),a(f,h,c))}},ki=(t,r)=>(e,n)=>{let i=t(e,n);return(o,a,c)=>{let f=tn(o,a).getFirstValue("nested")||r;f!==void 0&&e.addLevel(f),i(o,a,c),f!==void 0&&e.removeLevel(f)}};function Qs(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function Qp(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Qp(e)):r.concat(e),[])}var Zs=t=>{let r=[];function e(i,o){if(i instanceof Array&&console.warn(`[pod] Unsupported param for ${i}`),i instanceof Object){for(var a in i)i.hasOwnProperty(a)&&e(a,i[a]);return[]}r.push(hn(bi(i),o))}function n(i,o={}){if(i instanceof Array)return Qp(i.map(f=>n(f,o)));if(typeof i=="string")return i;let a=r.slice();a.reverse();let c=a.findIndex(f=>f.isFor(i));if(c!==-1)return a[c].fn(i,o,n);{let f={...i};return f.hasOwnProperty("content")&&(f.content=n(f.content,o)),f}}return e(t),n.rules=r,n},Sr=Zs;var Xp=Nr(require("events")),hu=class extends Xp.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)}},Xs=hu;var ao=(t={},r=[])=>{let e=r,n=t.processor||Yp,i=t.writer;return o.use=a,o.run=c,o.getPlugins=()=>e,o;function o(f){}function a(f,h){if(f instanceof Array)return ao(t,[...e,...h]);if(f instanceof Object){for(var d in f)f.hasOwnProperty(d)&&a(d,f[d]);return o}return e.push(hn(bi(f),h)),o}function c(f,h){let d="",b=h||i||new Xs(ee=>{d=d+ee}),v=typeof b=="function"?new b(ee=>{d=d+ee}):b,k=typeof f=="string"?n(f):f,_=e.slice();_.reverse();let T=Js(_.map(ee=>hn(ee.rule,ee.fn(v,n,k))).reverse()),L={};v.startWrite(k);let N=T(k,L);return v.endWrite(),{errors:v.errors,toString:()=>d,valueOf:()=>d,indexingTerms:v.INDEXTERMS,annotations:v.FOOTNOTES,defenitions:v.DEFINITIONS,interator:N}}};var ed=()=>t=>Sr({"*":(e,n,i)=>(e.content&&(e.content=i(e.content,n,i)),delete e.location,e)})(t,{}),td=ed;var yd=Nr(id());var xk=()=>t=>{let r=(n,i={})=>{if((n.type=="code"||n.type=="text")&&(n.margin&&i.margin&&i.margin.length>0&&i.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"){i.margin=typeof n.margin!="string"?"":n.margin;let a={...i};a.nest=(a.nest||0)+1,n.content.map(c=>{r(c,i)})}};var e={};return t.forEach(n=>r(n,e)),t},od=xk;var Uo=Nr(ad());var _k=()=>t=>Sr({":para":(e,n,i)=>Sr({":text":(o,a)=>Uo.parse(o.value),":verbatim":(o,a)=>Uo.parse(o.value)})(e,{...n}),":block":(e,n,i)=>{if("name"in e&&e.name==="pod")return{...e,content:i(e.content,n,i)};let o=tn(e,n),a="name"in e&&e.name==="code",c="name"in e&&e.name==="data",f="name"in e&&e.name==="markdown",h=o.getAllValues("allow");if((a||c||f)&&h.length==0)return e;let d=h.sort(),b=Sr({":verbatim":(v,k)=>Uo.parse(v.value,{allowed:d}),":text":(v,k)=>Uo.parse(v.value,{allowed:d}),":block":(v,k)=>Qs(v.name)?v:{...v,content:b(v.content,{...k})}});return b(e,{...n})}})(t,{}),ld=_k;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,e.content[0])){let i=e.content[0];if(i.text){let o=/^(\s*#\s*)/;o.exec(i.text)&&(i.text=i.text.replace(o,""),i.type==="para"&&(i.content=[i.text]),e.config=e.config||[],e.config.push({name:"numbered",value:!0,type:"boolean"}))}}r(e.content)}};return r(t),t};var cd=()=>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 i=e.content[0];if(i.text){let o=/(\s*#\s*)/;o.exec(i.text)&&(i.text=i.text.replace(o,""),e.config={...e.config,numbered:!0})}}r(e.content)}};return r(t),t};var fd=()=>t=>{let r=(o,a)=>(o.name==="item"||o.name==="defn")&&a.name===o.name&&o.level===a.level&&e(o)===e(a),e=o=>Boolean(o.config&&o.config.numbered),n=o=>{let a={};return o.reduce((f,h)=>(h.name==="defn"?r(a,h)?f[f.length-1].push(h):f.push([h]):f.push(h),a=h,f),[]).map(f=>f instanceof Array?f[0].name!=="defn"?f:{type:"list",list:f[0].name==="defn"?"variable":e(f[0])?"ordered":"itemized",level:1,content:[...f]}:(f.content&&f.type!=="fcode"&&(f.content=n(f.content)),f))};return t=(o=>Array.isArray(o)?n(o):(o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var pd=()=>t=>{let r=(o,a)=>(o.name==="item"||o.name==="defn")&&a.name===o.name&&o.level===a.level&&e(o)===e(a),e=o=>Boolean(tn(o,{}).exists("numbered")),n=(o,a=1)=>{let c=v=>v.length>0&&v[v.length-1].type==="list",f=v=>{if(c(v))return v[v.length-1]},h=(v,k)=>k.name&&k.name==="item"&&k.type&&k.type==="block"||k.type==="blankline",d={};return o.reduce((v,k)=>k.name==="item"&&k.type==="block"&&k.level<a?[...v,k]:(k.name==="item"&&k.type==="block"&&(!c(v)||k.level===a&&f(v).list!==(e(k)?"ordered":"itemized"))&&v.push({type:"list",level:k.level,content:[],list:e(k)?"ordered":"itemized"}),c(v)&&h(f(v),k)?f(v).content.push(k):v.push(k),v),[]).map(v=>(v.content&&v.type!=="fcode"&&(v.content=n(v.content,v.level+1)),v))};return t=(o=>(Array.isArray(o)?o=n(o):o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var dd=()=>t=>Sr({defn:e=>{let n=e.content,i=n.length,o=[],a=!1;for(let c=0;c<i;c++){let f=n[c];if(f.type==="para"&&!a){let h=f.content[0],b=h.value.split(`
|
|
14
|
-
`),v
|
|
15
|
-
`),f.text=h.value,o.push(f)),a=!0}else o.push(f)}return e.content=o,e}})(t,{});function Ho(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Ho(e)):r.concat(e),[])}var gu=(t,r,e)=>{let n=[];for(let i=0;t.length>i;i++)n.push(e(parseInt(t[i],10),parseInt(r[i],10)));return n.join("")},Ak=(t,r)=>{let e=Math.max(...[...t,...r].map(a=>a.length));return t.map(a=>{let c=a+" ".repeat(e-a.length),f=[],h=/\s+[+|\s]\s/g,d;for(;(d=h.exec(c))!=null;){let
|
|
16
|
-
`),a=r(o),c=td()(a);c[0].type==="para"?i(c[0].content,n):i(c,n)}},"C<>":rt("<code>","</code>"),"D<>":(t,r)=>(e,n,i)=>{let o={node:e},a=[e.content[0]];o&&(a=o),t.hasOwnProperty("DEFINITIONS")||(t.DEFINITIONS=[]),t.DEFINITIONS.push({definition:a}),t.writeRaw("<dfn>"),i(e.content,n),t.writeRaw("</dfn>")},"B<>":rt("<strong>","</strong>"),"I<>":rt("<em>","</em>"),"R<>":rt("<var>","</var>"),"K<>":rt("<kbd>","</kbd>"),"L<>":Hn((t,r)=>{let{meta:e}=t;return e===null&&(e=t.content),rt(`<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,i)=>{if(e.content.length<1)return;t.hasOwnProperty("gid")||(t.gid=1);let o=t.gid++,a=`fnref:${o}`,c=`fn:${o}`;t.writeRaw(`<sup id="${a}" class="footnote"><a href="#${c}">[${o}]</a></sup>`),t.hasOwnProperty("FOOTNOTES")||(t.FOOTNOTES=[]),t.FOOTNOTES.push({gid:o,fnRefId:a,fnId:c,make:()=>{i(e.content,n)}})}),"S<>":(t,r)=>(e,n,i)=>{let c=(e.content||"").replace(/ /g," ").replace(/\n/g,"</br>");t.writeRaw(c)},"T<>":rt("<samp>","</samp>"),"U<>":rt("<u>","</u>"),"V<>":_n,"X<>":(t,r)=>(e,n,i)=>{i(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<>":En,pod:_n,":code":rt("<pre><code>","</code></pre>"),code:ki(rt("<pre><code>","</code></pre>")),data:En,":verbatim":(t,r)=>(e,n,i)=>{e.error&&t.emit("errors",e.location),i(e.value)},":blankline":En,":ambient":En,":config":Hn((t,r)=>(r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,En)),":alias":Hn((t,r)=>(r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,En)),para:ki(_n),":para":rt("<p>","</p>"),"head:block":mu({":para":_n},Hn((t,r)=>{let{level:e}=t,n=Zp(t,r);return rt(`<h${e}${n?` id="${n}"`:""}>`,`</h${e}>`)})),":list":Hn((t,r)=>t.list==="ordered"?rt("<ol>","</ol>"):t.list==="variable"?rt("<dl>","</dl>"):rt("<ul>","</ul>")),"item:block":(t,r)=>(e,n,i)=>{e.content instanceof Array||console.error("[pod6] item:block : Error in content of "+JSON.stringify(e));let[o,...a]=e.content;t.writeRaw("<li>"),i(e.content,n),t.writeRaw("</li>")},"comment:block":En,defn:rt("","</dd>"),"term:para":rt("<dt>","</dt><dd>"),nested:ki(_n,1),output:ki(rt("<pre><samp>","</samp></pre>"),1),input:ki(rt("<pre><kbd>","</kbd></pre>"),1),"table:block":ki((t,r)=>(e,n,i)=>{let o=tn(e,n);t.writeRaw("<table>"),o.exists("caption")&&(t.writeRaw("<caption>"),t.write(o.getFirstValue("caption")),t.writeRaw("</caption>")),i(e.content,n),t.writeRaw("</table>")}),":separator":En,table_row:rt("<tr>","</tr>"),table_cell:rt("<td>","</td>"),table_head:mu({table_cell:rt("<th>","</th>")},rt("<tr>","</tr>")),":toc":(t,r)=>(e,n,i)=>{t.writeRaw('<div className="toc">');let o=tn(e,n);if(o.exists("title")){let a=o.getFirstValue("title");t.writeRaw('<div className="toctitle">'),t.write(a),t.writeRaw("</div>")}i(e.content,n),t.writeRaw("</div>")},":toc-list":Hn((t,r)=>rt(`<ul class="toc-list listlevel${t.level}">`,"</ul>")),":toc-item":Hn((t,r)=>rt('<li class="toc-item">',"</li>")),":image":(t,r)=>(e,n,i)=>{t.writeRaw(`<img src="${e.src}" alt="${e.alt}"/>`)}};var pC=new gd.default({strict:!0,allowUnionTypes:!0});function rd(){var t=[];return r.use=e,r.parse=n,r.use(od),r.use(ud),r.use(cd),r.use(dd),r.use(md),r.use(ld),r.use(pd),r.use(fd),r;function r(){}function e(i){if(!["function"].includes(typeof i))throw i;return t.push(i),r}function n(i,o={skipChain:0,podMode:1}){let a=yd.parse(i,{podMode:o.podMode});if(!o.skipChain)for(let c=0;c<t.length;c++){let f=t[c];a=f(o)(a)}return a}}var Yp=rd().parse;var{version:dC}=hd();function bu(t){if(t)throw t}var jd=Nr($d(),1),Su=Nr(Sd(),1);function Go(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 Pd(){let t=[],r={run:e,use:n};return r;function e(...i){let o=-1,a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...i);function c(f,...h){let d=t[++o],b=-1;if(f){a(f);return}for(;++b<i.length;)(h[b]===null||h[b]===void 0)&&(h[b]=i[b]);i=h,d?Ik(d,c)(...h):a(null,...h)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),r}}function Ik(t,r){let e;return n;function n(...a){let c=t.length>a.length,f;c&&a.push(i);try{f=t.apply(this,a)}catch(h){let d=h;if(c&&e)throw d;return i(d)}c||(f instanceof Promise?f.then(o,i):f instanceof Error?i(f):o(f))}function i(a,...c){e||(e=!0,r(a,...c))}function o(a){i(null,a)}}var Dd=Nr(Id(),1);function xi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Fd(t.position):"start"in t||"end"in t?Fd(t):"line"in t||"column"in t?$u(t):""}function $u(t){return Od(t&&t.line)+":"+Od(t&&t.column)}function Fd(t){return $u(t&&t.start)+"-"+$u(t&&t.end)}function Od(t){return t&&typeof t=="number"?t:1}var cr=class extends Error{constructor(r,e,n){let i=[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 a=n.indexOf(":");a===-1?i[1]=n:(i[0]=n.slice(0,a),i[1]=n.slice(a+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=xi(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=i[0],this.ruleId=i[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}};cr.prototype.file="";cr.prototype.name="";cr.prototype.reason="";cr.prototype.message="";cr.prototype.stack="";cr.prototype.fatal=null;cr.prototype.column=null;cr.prototype.line=null;cr.prototype.source=null;cr.prototype.ruleId=null;cr.prototype.position=null;var Lr=Nr(require("path"),1);var ku=Nr(require("process"),1);var wu=require("url");function ea(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}var vu=["history","path","basename","stem","extname","dirname"],Ko=class{constructor(r){let e;r?typeof r=="string"||(0,Dd.default)(r)?e={value:r}:ea(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=ku.default.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<vu.length;){let o=vu[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let i;for(i in e)vu.includes(i)||(this[i]=e[i])}get path(){return this.history[this.history.length-1]}set path(r){ea(r)&&(r=(0,wu.fileURLToPath)(r)),Cu(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Lr.default.dirname(this.path):void 0}set dirname(r){qd(this.basename,"dirname"),this.path=Lr.default.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Lr.default.basename(this.path):void 0}set basename(r){Cu(r,"basename"),xu(r,"basename"),this.path=Lr.default.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Lr.default.extname(this.path):void 0}set extname(r){if(xu(r,"extname"),qd(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=Lr.default.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Lr.default.basename(this.path,this.extname):void 0}set stem(r){Cu(r,"stem"),xu(r,"stem"),this.path=Lr.default.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let i=new cr(r,e,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(r,e,n){let i=this.message(r,e,n);return i.fatal=null,i}fail(r,e,n){let i=this.message(r,e,n);throw i.fatal=!0,i}};function xu(t,r){if(t&&t.includes(Lr.default.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Lr.default.sep+"`")}function Cu(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function qd(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var Pu=zd().freeze(),Bd={}.hasOwnProperty;function zd(){let t=Pd(),r=[],e={},n,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=c,o.attachers=r,o.use=f,o.parse=h,o.stringify=d,o.run=b,o.runSync=v,o.process=k,o.processSync=_,o;function o(){let T=zd(),L=-1;for(;++L<r.length;)T.use(...r[L]);return T.data((0,Su.default)(!0,{},e)),T}function a(T,L){return typeof T=="string"?arguments.length===2?(Au("data",n),e[T]=L,o):Bd.call(e,T)&&e[T]||null:T?(Au("data",n),e=T,o):e}function c(){if(n)return o;for(;++i<r.length;){let[T,...L]=r[i];if(L[0]===!1)continue;L[0]===!0&&(L[0]=void 0);let N=T.call(o,...L);typeof N=="function"&&t.use(N)}return n=!0,i=Number.POSITIVE_INFINITY,o}function f(T,...L){let N;if(Au("use",n),T!=null)if(typeof T=="function")fe(T,...L);else if(typeof T=="object")Array.isArray(T)?de(T):re(T);else throw new TypeError("Expected usable value, not `"+T+"`");return N&&(e.settings=Object.assign(e.settings||{},N)),o;function ee(J){if(typeof J=="function")fe(J);else if(typeof J=="object")if(Array.isArray(J)){let[me,...$e]=J;fe(me,...$e)}else re(J);else throw new TypeError("Expected usable value, not `"+J+"`")}function re(J){de(J.plugins),J.settings&&(N=Object.assign(N||{},J.settings))}function de(J){let me=-1;if(J!=null)if(Array.isArray(J))for(;++me<J.length;){let $e=J[me];ee($e)}else throw new TypeError("Expected a list of plugins, not `"+J+"`")}function fe(J,me){let $e=-1,ke;for(;++$e<r.length;)if(r[$e][0]===J){ke=r[$e];break}ke?(Go(ke[1])&&Go(me)&&(me=(0,Su.default)(!0,ke[1],me)),ke[1]=me):r.push([...arguments])}}function h(T){o.freeze();let L=Wo(T),N=o.Parser;return Eu("parse",N),Nd(N,"parse")?new N(String(L),L).parse():N(String(L),L)}function d(T,L){o.freeze();let N=Wo(L),ee=o.Compiler;return _u("stringify",ee),Rd(T),Nd(ee,"compile")?new ee(T,N).compile():ee(T,N)}function b(T,L,N){if(Rd(T),o.freeze(),!N&&typeof L=="function"&&(N=L,L=void 0),!N)return new Promise(ee);ee(null,N);function ee(re,de){t.run(T,Wo(L),fe);function fe(J,me,$e){me=me||T,J?de(J):re?re(me):N(null,me,$e)}}}function v(T,L){let N,ee;return o.run(T,L,re),Ld("runSync","run",ee),N;function re(de,fe){bu(de),N=fe,ee=!0}}function k(T,L){if(o.freeze(),Eu("process",o.Parser),_u("process",o.Compiler),!L)return new Promise(N);N(null,L);function N(ee,re){let de=Wo(T);o.run(o.parse(de),de,(J,me,$e)=>{if(J||!me||!$e)fe(J);else{let ke=o.stringify(me,$e);ke==null||(qk(ke)?$e.value=ke:$e.result=ke),fe(J,$e)}});function fe(J,me){J||!me?re(J):ee?ee(me):L(null,me)}}}function _(T){let L;o.freeze(),Eu("processSync",o.Parser),_u("processSync",o.Compiler);let N=Wo(T);return o.process(N,ee),Ld("processSync","process",L),N;function ee(re){L=!0,bu(re)}}}function Nd(t,r){return typeof t=="function"&&t.prototype&&(Fk(t.prototype)||r in t.prototype)}function Fk(t){let r;for(r in t)if(Bd.call(t,r))return!0;return!1}function Eu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function _u(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function Au(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 Rd(t){if(!Go(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ld(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function Wo(t){return Ok(t)?t:new Ko(t)}function Ok(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function qk(t){return typeof t=="string"||(0,jd.default)(t)}function Vd(t,r){var{includeImageAlt:e=!0}=r||{};return Ud(t,e)}function Ud(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&Md(t.children,r)||Array.isArray(t)&&Md(t,r))||""}function Md(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=Ud(t[n],r);return e.join("")}function Ct(t,r,e,n){let i=t.length,o=0,a;if(r<0?r=-r>i?0:i+r:r=r>i?i:r,e=e>0?e:0,n.length<1e4)a=Array.from(n),a.unshift(r,e),[].splice.apply(t,a);else for(e&&[].splice.apply(t,[r,e]);o<n.length;)a=n.slice(o,o+1e4),a.unshift(r,0),[].splice.apply(t,a),o+=1e4,r+=1e4}function fr(t,r){return t.length>0?(Ct(t,t.length,0,r),t):r}var Hd={}.hasOwnProperty;function ta(t){let r={},e=-1;for(;++e<t.length;)Dk(r,t[e]);return r}function Dk(t,r){let e;for(e in r){let i=(Hd.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],a;for(a in o){Hd.call(i,a)||(i[a]=[]);let c=o[a];Nk(i[a],Array.isArray(c)?c:c?[c]:[])}}}function Nk(t,r){let e=-1,n=[];for(;++e<r.length;)(r[e].add==="after"?t:n).push(r[e]);Ct(t,0,0,n)}var Gd=/[!-/:-@[-`{-~\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 rr=Kn(/[A-Za-z]/),Ci=Kn(/\d/),Kd=Kn(/[\dA-Fa-f]/),Lt=Kn(/[\dA-Za-z]/),Wd=Kn(/[!-/:-@[-`{-~]/),Tu=Kn(/[#-'*+\--9=?A-Z^-~]/);function Gn(t){return t!==null&&(t<32||t===127)}function Me(t){return t!==null&&(t<0||t===32)}function le(t){return t!==null&&t<-2}function Fe(t){return t===-2||t===-1||t===32}var Ei=Kn(/\s/),_i=Kn(Gd);function Kn(t){return r;function r(e){return e!==null&&t.test(String.fromCharCode(e))}}function ge(t,r,e,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return a;function a(f){return Fe(f)?(t.enter(e),c(f)):r(f)}function c(f){return Fe(f)&&o++<i?(t.consume(f),c):(t.exit(e),r(f))}}var Zd={tokenize:Rk};function Rk(t){let r=t.attempt(this.parser.constructs.contentInitial,n,i),e;return r;function n(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),ge(t,r,"linePrefix")}function i(c){return t.enter("paragraph"),o(c)}function o(c){let f=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=f),e=f,a(c)}function a(c){if(c===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(c);return}return le(c)?(t.consume(c),t.exit("chunkText"),o):(t.consume(c),a)}}var Qd={tokenize:Lk},Jd={tokenize:jk};function Lk(t){let r=this,e=[],n=0,i,o,a;return c;function c(re){if(n<e.length){let de=e[n];return r.containerState=de[1],t.attempt(de[0].continuation,f,h)(re)}return h(re)}function f(re){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,i&&ee();let de=r.events.length,fe=de,J;for(;fe--;)if(r.events[fe][0]==="exit"&&r.events[fe][1].type==="chunkFlow"){J=r.events[fe][1].end;break}N(n);let me=de;for(;me<r.events.length;)r.events[me][1].end=Object.assign({},J),me++;return Ct(r.events,fe+1,0,r.events.slice(de)),r.events.length=me,h(re)}return c(re)}function h(re){if(n===e.length){if(!i)return v(re);if(i.currentConstruct&&i.currentConstruct.concrete)return _(re);r.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(Jd,d,b)(re)}function d(re){return i&&ee(),N(n),v(re)}function b(re){return r.parser.lazy[r.now().line]=n!==e.length,a=r.now().offset,_(re)}function v(re){return r.containerState={},t.attempt(Jd,k,_)(re)}function k(re){return n++,e.push([r.currentConstruct,r.containerState]),v(re)}function _(re){if(re===null){i&&ee(),N(0),t.consume(re);return}return i=i||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),T(re)}function T(re){if(re===null){L(t.exit("chunkFlow"),!0),N(0),t.consume(re);return}return le(re)?(t.consume(re),L(t.exit("chunkFlow")),n=0,r.interrupt=void 0,c):(t.consume(re),T)}function L(re,de){let fe=r.sliceStream(re);if(de&&fe.push(null),re.previous=o,o&&(o.next=re),o=re,i.defineSkip(re.start),i.write(fe),r.parser.lazy[re.start.line]){let J=i.events.length;for(;J--;)if(i.events[J][1].start.offset<a&&(!i.events[J][1].end||i.events[J][1].end.offset>a))return;let me=r.events.length,$e=me,ke,Oe;for(;$e--;)if(r.events[$e][0]==="exit"&&r.events[$e][1].type==="chunkFlow"){if(ke){Oe=r.events[$e][1].end;break}ke=!0}for(N(n),J=me;J<r.events.length;)r.events[J][1].end=Object.assign({},Oe),J++;Ct(r.events,$e+1,0,r.events.slice(me)),r.events.length=J}}function N(re){let de=e.length;for(;de-- >re;){let fe=e[de];r.containerState=fe[1],fe[0].exit.call(r,t)}e.length=re}function ee(){i.write([null]),o=void 0,i=void 0,r.containerState._closeFlow=void 0}}function jk(t,r,e){return ge(t,t.attempt(this.parser.constructs.document,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function lo(t){if(t===null||Me(t)||Ei(t))return 1;if(_i(t))return 2}function Wn(t,r,e){let n=[],i=-1;for(;++i<t.length;){let o=t[i].resolveAll;o&&!n.includes(o)&&(r=o(r,e),n.push(o))}return r}var Zo={name:"attention",tokenize:zk,resolveAll:Bk};function Bk(t,r){let e=-1,n,i,o,a,c,f,h,d;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;f=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 b=Object.assign({},t[n][1].end),v=Object.assign({},t[e][1].start);Xd(b,-f),Xd(v,f),a={type:f>1?"strongSequence":"emphasisSequence",start:b,end:Object.assign({},t[n][1].end)},c={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:v},o={type:f>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},i={type:f>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},c.end)},t[n][1].end=Object.assign({},a.start),t[e][1].start=Object.assign({},c.end),h=[],t[n][1].end.offset-t[n][1].start.offset&&(h=fr(h,[["enter",t[n][1],r],["exit",t[n][1],r]])),h=fr(h,[["enter",i,r],["enter",a,r],["exit",a,r],["enter",o,r]]),h=fr(h,Wn(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),h=fr(h,[["exit",o,r],["enter",c,r],["exit",c,r],["exit",i,r]]),t[e][1].end.offset-t[e][1].start.offset?(d=2,h=fr(h,[["enter",t[e][1],r],["exit",t[e][1],r]])):d=0,Ct(t,n-1,e-n+3,h),e=n+h.length-d-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,i=lo(n),o;return a;function a(f){return t.enter("attentionSequence"),o=f,c(f)}function c(f){if(f===o)return t.consume(f),c;let h=t.exit("attentionSequence"),d=lo(f),b=!d||d===2&&i||e.includes(f),v=!i||i===2&&d||e.includes(n);return h._open=Boolean(o===42?b:b&&(i||!v)),h._close=Boolean(o===42?v:v&&(d||!b)),r(f)}}function Xd(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var Iu={name:"autolink",tokenize:Mk};function Mk(t,r,e){let n=1;return i;function i(_){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(_){return rr(_)?(t.consume(_),a):Tu(_)?h(_):e(_)}function a(_){return _===43||_===45||_===46||Lt(_)?c(_):h(_)}function c(_){return _===58?(t.consume(_),f):(_===43||_===45||_===46||Lt(_))&&n++<32?(t.consume(_),c):h(_)}function f(_){return _===62?(t.exit("autolinkProtocol"),k(_)):_===null||_===32||_===60||Gn(_)?e(_):(t.consume(_),f)}function h(_){return _===64?(t.consume(_),n=0,d):Tu(_)?(t.consume(_),h):e(_)}function d(_){return Lt(_)?b(_):e(_)}function b(_){return _===46?(t.consume(_),n=0,d):_===62?(t.exit("autolinkProtocol").type="autolinkEmail",k(_)):v(_)}function v(_){return(_===45||Lt(_))&&n++<63?(t.consume(_),_===45?v:b):e(_)}function k(_){return t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.exit("autolink"),r}}var gn={tokenize:Vk,partial:!0};function Vk(t,r,e){return ge(t,n,"linePrefix");function n(i){return i===null||le(i)?r(i):e(i)}}var ra={name:"blockQuote",tokenize:Uk,continuation:{tokenize:Hk},exit:Gk};function Uk(t,r,e){let n=this;return i;function i(a){if(a===62){let c=n.containerState;return c.open||(t.enter("blockQuote",{_container:!0}),c.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),o}return e(a)}function o(a){return Fe(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(a))}}function Hk(t,r,e){return ge(t,t.attempt(ra,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Gk(t){t.exit("blockQuote")}var na={name:"characterEscape",tokenize:Kk};function Kk(t,r,e){return n;function n(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),i}function i(o){return Wd(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var Fu={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:`
|
|
17
|
-
`,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 Wk={}.hasOwnProperty;function uo(t){return Wk.call(Fu,t)?Fu[t]:!1}var ia={name:"characterReference",tokenize:Zk};function Zk(t,r,e){let n=this,i=0,o,a;return c;function c(b){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),f}function f(b){return b===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(b),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),o=31,a=Lt,d(b))}function h(b){return b===88||b===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(b),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,a=Kd,d):(t.enter("characterReferenceValue"),o=7,a=Ci,d(b))}function d(b){let v;return b===59&&i?(v=t.exit("characterReferenceValue"),a===Lt&&!uo(n.sliceSerialize(v))?e(b):(t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):a(b)&&i++<o?(t.consume(b),d):e(b)}}var oa={name:"codeFenced",tokenize:Jk,concrete:!0};function Jk(t,r,e){let n=this,i={tokenize:fe,partial:!0},o={tokenize:de,partial:!0},a=this.events[this.events.length-1],c=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,f=0,h;return d;function d(J){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),h=J,b(J)}function b(J){return J===h?(t.consume(J),f++,b):(t.exit("codeFencedFenceSequence"),f<3?e(J):ge(t,v,"whitespace")(J))}function v(J){return J===null||le(J)?L(J):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),k(J))}function k(J){return J===null||Me(J)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ge(t,_,"whitespace")(J)):J===96&&J===h?e(J):(t.consume(J),k)}function _(J){return J===null||le(J)?L(J):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),T(J))}function T(J){return J===null||le(J)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),L(J)):J===96&&J===h?e(J):(t.consume(J),T)}function L(J){return t.exit("codeFencedFence"),n.interrupt?r(J):N(J)}function N(J){return J===null?re(J):le(J)?t.attempt(o,t.attempt(i,re,c?ge(t,N,"linePrefix",c+1):N),re)(J):(t.enter("codeFlowValue"),ee(J))}function ee(J){return J===null||le(J)?(t.exit("codeFlowValue"),N(J)):(t.consume(J),ee)}function re(J){return t.exit("codeFenced"),r(J)}function de(J,me,$e){let ke=this;return Oe;function Oe(xe){return J.enter("lineEnding"),J.consume(xe),J.exit("lineEnding"),ve}function ve(xe){return ke.parser.lazy[ke.now().line]?$e(xe):me(xe)}}function fe(J,me,$e){let ke=0;return ge(J,Oe,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Oe(ue){return J.enter("codeFencedFence"),J.enter("codeFencedFenceSequence"),ve(ue)}function ve(ue){return ue===h?(J.consume(ue),ke++,ve):ke<f?$e(ue):(J.exit("codeFencedFenceSequence"),ge(J,xe,"whitespace")(ue))}function xe(ue){return ue===null||le(ue)?(J.exit("codeFencedFence"),me(ue)):$e(ue)}}}var Jo={name:"codeIndented",tokenize:Xk},Qk={tokenize:Yk,partial:!0};function Xk(t,r,e){let n=this;return i;function i(h){return t.enter("codeIndented"),ge(t,o,"linePrefix",4+1)(h)}function o(h){let d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(h):e(h)}function a(h){return h===null?f(h):le(h)?t.attempt(Qk,a,f)(h):(t.enter("codeFlowValue"),c(h))}function c(h){return h===null||le(h)?(t.exit("codeFlowValue"),a(h)):(t.consume(h),c)}function f(h){return t.exit("codeIndented"),r(h)}}function Yk(t,r,e){let n=this;return i;function i(a){return n.parser.lazy[n.now().line]?e(a):le(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):ge(t,o,"linePrefix",4+1)(a)}function o(a){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(a):le(a)?i(a):e(a)}}var Ou={name:"codeText",tokenize:rw,resolve:ew,previous:tw};function ew(t){let r=t.length-4,e=3,n,i;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;)i===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(i=n):(n===r||t[n][1].type==="lineEnding")&&(t[i][1].type="codeTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),r-=n-i-2,n=i+2),i=void 0);return t}function tw(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rw(t,r,e){let n=this,i=0,o,a;return c;function c(v){return t.enter("codeText"),t.enter("codeTextSequence"),f(v)}function f(v){return v===96?(t.consume(v),i++,f):(t.exit("codeTextSequence"),h(v))}function h(v){return v===null?e(v):v===96?(a=t.enter("codeTextSequence"),o=0,b(v)):v===32?(t.enter("space"),t.consume(v),t.exit("space"),h):le(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),h):(t.enter("codeTextData"),d(v))}function d(v){return v===null||v===32||v===96||le(v)?(t.exit("codeTextData"),h(v)):(t.consume(v),d)}function b(v){return v===96?(t.consume(v),o++,b):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),r(v)):(a.type="codeTextData",d(v))}}function sa(t){let r={},e=-1,n,i,o,a,c,f,h;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"&&(f=n[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,nw(t,e)),e=r[e],h=!0);else if(n[1]._container){for(o=e,i=void 0;o--&&(a=t[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(t[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(n[1].end=Object.assign({},t[i][1].start),c=t.slice(i,e),c.unshift(n),Ct(t,i,e-i+1,c))}}return!h}function nw(t,r){let e=t[r][1],n=t[r][2],i=r-1,o=[],a=e._tokenizer||n.parser[e.contentType](e.start),c=a.events,f=[],h={},d,b,v=-1,k=e,_=0,T=0,L=[T];for(;k;){for(;t[++i][1]!==k;);o.push(i),k._tokenizer||(d=n.sliceStream(k),k.next||d.push(null),b&&a.defineSkip(k.start),k._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),k._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),b=k,k=k.next}for(k=e;++v<c.length;)c[v][0]==="exit"&&c[v-1][0]==="enter"&&c[v][1].type===c[v-1][1].type&&c[v][1].start.line!==c[v][1].end.line&&(T=v+1,L.push(T),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(a.events=[],k?(k._tokenizer=void 0,k.previous=void 0):L.pop(),v=L.length;v--;){let N=c.slice(L[v],L[v+1]),ee=o.pop();f.unshift([ee,ee+N.length-1]),Ct(t,ee,2,N)}for(v=-1;++v<f.length;)h[_+f[v][0]]=_+f[v][1],_+=f[v][1]-f[v][0]-1;return h}var qu={tokenize:sw,resolve:ow},iw={tokenize:aw,partial:!0};function ow(t){return sa(t),t}function sw(t,r){let e;return n;function n(c){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),i(c)}function i(c){return c===null?o(c):le(c)?t.check(iw,a,o)(c):(t.consume(c),i)}function o(c){return t.exit("chunkContent"),t.exit("content"),r(c)}function a(c){return t.consume(c),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,i}}function aw(t,r,e){let n=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ge(t,o,"linePrefix")}function o(a){if(a===null||le(a))return e(a);let c=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(a):t.interrupt(n.parser.constructs.flow,e,r)(a)}}function aa(t,r,e,n,i,o,a,c,f){let h=f||Number.POSITIVE_INFINITY,d=0;return b;function b(N){return N===60?(t.enter(n),t.enter(i),t.enter(o),t.consume(N),t.exit(o),v):N===null||N===41||Gn(N)?e(N):(t.enter(n),t.enter(a),t.enter(c),t.enter("chunkString",{contentType:"string"}),T(N))}function v(N){return N===62?(t.enter(o),t.consume(N),t.exit(o),t.exit(i),t.exit(n),r):(t.enter(c),t.enter("chunkString",{contentType:"string"}),k(N))}function k(N){return N===62?(t.exit("chunkString"),t.exit(c),v(N)):N===null||N===60||le(N)?e(N):(t.consume(N),N===92?_:k)}function _(N){return N===60||N===62||N===92?(t.consume(N),k):k(N)}function T(N){return N===40?++d>h?e(N):(t.consume(N),T):N===41?d--?(t.consume(N),T):(t.exit("chunkString"),t.exit(c),t.exit(a),t.exit(n),r(N)):N===null||Me(N)?d?e(N):(t.exit("chunkString"),t.exit(c),t.exit(a),t.exit(n),r(N)):Gn(N)?e(N):(t.consume(N),N===92?L:T)}function L(N){return N===40||N===41||N===92?(t.consume(N),T):T(N)}}function la(t,r,e,n,i,o){let a=this,c=0,f;return h;function h(k){return t.enter(n),t.enter(i),t.consume(k),t.exit(i),t.enter(o),d}function d(k){return k===null||k===91||k===93&&!f||k===94&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs||c>999?e(k):k===93?(t.exit(o),t.enter(i),t.consume(k),t.exit(i),t.exit(n),r):le(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),d):(t.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||k===91||k===93||le(k)||c++>999?(t.exit("chunkString"),d(k)):(t.consume(k),f=f||!Fe(k),k===92?v:b)}function v(k){return k===91||k===92||k===93?(t.consume(k),c++,b):b(k)}}function ua(t,r,e,n,i,o){let a;return c;function c(v){return t.enter(n),t.enter(i),t.consume(v),t.exit(i),a=v===40?41:v,f}function f(v){return v===a?(t.enter(i),t.consume(v),t.exit(i),t.exit(n),r):(t.enter(o),h(v))}function h(v){return v===a?(t.exit(o),f(a)):v===null?e(v):le(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),ge(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===a||v===null||le(v)?(t.exit("chunkString"),h(v)):(t.consume(v),v===92?b:d)}function b(v){return v===a||v===92?(t.consume(v),d):d(v)}}function Ai(t,r){let e;return n;function n(i){return le(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e=!0,n):Fe(i)?ge(t,n,e?"linePrefix":"lineSuffix")(i):r(i)}}function nr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Du={name:"definition",tokenize:uw},lw={tokenize:cw,partial:!0};function uw(t,r,e){let n=this,i;return o;function o(f){return t.enter("definition"),la.call(n,t,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=nr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),Ai(t,aa(t,t.attempt(lw,ge(t,c,"whitespace"),ge(t,c,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(f)}function c(f){return f===null||le(f)?(t.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),r(f)):e(f)}}function cw(t,r,e){return n;function n(a){return Me(a)?Ai(t,i)(a):e(a)}function i(a){return a===34||a===39||a===40?ua(t,ge(t,o,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):e(a)}function o(a){return a===null||le(a)?r(a):e(a)}}var Nu={name:"hardBreakEscape",tokenize:fw};function fw(t,r,e){return n;function n(o){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(o),i}function i(o){return le(o)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),r(o)):e(o)}}var Ru={name:"headingAtx",tokenize:dw,resolve:pw};function pw(t,r){let e=t.length-2,n=3,i,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&&(i={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"},Ct(t,n,e-n+1,[["enter",i,r],["enter",o,r],["exit",o,r],["exit",i,r]])),t}function dw(t,r,e){let n=this,i=0;return o;function o(d){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&i++<6?(t.consume(d),a):d===null||Me(d)?(t.exit("atxHeadingSequence"),n.interrupt?r(d):c(d)):e(d)}function c(d){return d===35?(t.enter("atxHeadingSequence"),f(d)):d===null||le(d)?(t.exit("atxHeading"),r(d)):Fe(d)?ge(t,c,"whitespace")(d):(t.enter("atxHeadingText"),h(d))}function f(d){return d===35?(t.consume(d),f):(t.exit("atxHeadingSequence"),c(d))}function h(d){return d===null||d===35||Me(d)?(t.exit("atxHeadingText"),c(d)):(t.consume(d),h)}}var Yd=["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"],Lu=["pre","script","style","textarea"];var ju={name:"htmlFlow",tokenize:gw,resolveTo:hw,concrete:!0},mw={tokenize:yw,partial:!0};function hw(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 gw(t,r,e){let n=this,i,o,a,c,f;return h;function h(D){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(D),d}function d(D){return D===33?(t.consume(D),b):D===47?(t.consume(D),_):D===63?(t.consume(D),i=3,n.interrupt?r:nt):rr(D)?(t.consume(D),a=String.fromCharCode(D),o=!0,T):e(D)}function b(D){return D===45?(t.consume(D),i=2,v):D===91?(t.consume(D),i=5,a="CDATA[",c=0,k):rr(D)?(t.consume(D),i=4,n.interrupt?r:nt):e(D)}function v(D){return D===45?(t.consume(D),n.interrupt?r:nt):e(D)}function k(D){return D===a.charCodeAt(c++)?(t.consume(D),c===a.length?n.interrupt?r:ve:k):e(D)}function _(D){return rr(D)?(t.consume(D),a=String.fromCharCode(D),T):e(D)}function T(D){return D===null||D===47||D===62||Me(D)?D!==47&&o&&Lu.includes(a.toLowerCase())?(i=1,n.interrupt?r(D):ve(D)):Yd.includes(a.toLowerCase())?(i=6,D===47?(t.consume(D),L):n.interrupt?r(D):ve(D)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(D):o?ee(D):N(D)):D===45||Lt(D)?(t.consume(D),a+=String.fromCharCode(D),T):e(D)}function L(D){return D===62?(t.consume(D),n.interrupt?r:ve):e(D)}function N(D){return Fe(D)?(t.consume(D),N):ke(D)}function ee(D){return D===47?(t.consume(D),ke):D===58||D===95||rr(D)?(t.consume(D),re):Fe(D)?(t.consume(D),ee):ke(D)}function re(D){return D===45||D===46||D===58||D===95||Lt(D)?(t.consume(D),re):de(D)}function de(D){return D===61?(t.consume(D),fe):Fe(D)?(t.consume(D),de):ee(D)}function fe(D){return D===null||D===60||D===61||D===62||D===96?e(D):D===34||D===39?(t.consume(D),f=D,J):Fe(D)?(t.consume(D),fe):(f=null,me(D))}function J(D){return D===null||le(D)?e(D):D===f?(t.consume(D),$e):(t.consume(D),J)}function me(D){return D===null||D===34||D===39||D===60||D===61||D===62||D===96||Me(D)?de(D):(t.consume(D),me)}function $e(D){return D===47||D===62||Fe(D)?ee(D):e(D)}function ke(D){return D===62?(t.consume(D),Oe):e(D)}function Oe(D){return Fe(D)?(t.consume(D),Oe):D===null||le(D)?ve(D):e(D)}function ve(D){return D===45&&i===2?(t.consume(D),He):D===60&&i===1?(t.consume(D),H):D===62&&i===4?(t.consume(D),Ve):D===63&&i===3?(t.consume(D),nt):D===93&&i===5?(t.consume(D),je):le(D)&&(i===6||i===7)?t.check(mw,Ve,xe)(D):D===null||le(D)?xe(D):(t.consume(D),ve)}function xe(D){return t.exit("htmlFlowData"),ue(D)}function ue(D){return D===null?O(D):le(D)?t.attempt({tokenize:be,partial:!0},ue,O)(D):(t.enter("htmlFlowData"),ve(D))}function be(D,Kt,Tt){return at;function at(ht){return D.enter("lineEnding"),D.consume(ht),D.exit("lineEnding"),mt}function mt(ht){return n.parser.lazy[n.now().line]?Tt(ht):Kt(ht)}}function He(D){return D===45?(t.consume(D),nt):ve(D)}function H(D){return D===47?(t.consume(D),a="",ft):ve(D)}function ft(D){return D===62&&Lu.includes(a.toLowerCase())?(t.consume(D),Ve):rr(D)&&a.length<8?(t.consume(D),a+=String.fromCharCode(D),ft):ve(D)}function je(D){return D===93?(t.consume(D),nt):ve(D)}function nt(D){return D===62?(t.consume(D),Ve):D===45&&i===2?(t.consume(D),nt):ve(D)}function Ve(D){return D===null||le(D)?(t.exit("htmlFlowData"),O(D)):(t.consume(D),Ve)}function O(D){return t.exit("htmlFlow"),r(D)}}function yw(t,r,e){return n;function n(i){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),t.attempt(gn,r,e)}}var Bu={name:"htmlText",tokenize:bw};function bw(t,r,e){let n=this,i,o,a,c;return f;function f(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),h}function h(O){return O===33?(t.consume(O),d):O===47?(t.consume(O),me):O===63?(t.consume(O),fe):rr(O)?(t.consume(O),Oe):e(O)}function d(O){return O===45?(t.consume(O),b):O===91?(t.consume(O),o="CDATA[",a=0,L):rr(O)?(t.consume(O),de):e(O)}function b(O){return O===45?(t.consume(O),v):e(O)}function v(O){return O===null||O===62?e(O):O===45?(t.consume(O),k):_(O)}function k(O){return O===null||O===62?e(O):_(O)}function _(O){return O===null?e(O):O===45?(t.consume(O),T):le(O)?(c=_,je(O)):(t.consume(O),_)}function T(O){return O===45?(t.consume(O),Ve):_(O)}function L(O){return O===o.charCodeAt(a++)?(t.consume(O),a===o.length?N:L):e(O)}function N(O){return O===null?e(O):O===93?(t.consume(O),ee):le(O)?(c=N,je(O)):(t.consume(O),N)}function ee(O){return O===93?(t.consume(O),re):N(O)}function re(O){return O===62?Ve(O):O===93?(t.consume(O),re):N(O)}function de(O){return O===null||O===62?Ve(O):le(O)?(c=de,je(O)):(t.consume(O),de)}function fe(O){return O===null?e(O):O===63?(t.consume(O),J):le(O)?(c=fe,je(O)):(t.consume(O),fe)}function J(O){return O===62?Ve(O):fe(O)}function me(O){return rr(O)?(t.consume(O),$e):e(O)}function $e(O){return O===45||Lt(O)?(t.consume(O),$e):ke(O)}function ke(O){return le(O)?(c=ke,je(O)):Fe(O)?(t.consume(O),ke):Ve(O)}function Oe(O){return O===45||Lt(O)?(t.consume(O),Oe):O===47||O===62||Me(O)?ve(O):e(O)}function ve(O){return O===47?(t.consume(O),Ve):O===58||O===95||rr(O)?(t.consume(O),xe):le(O)?(c=ve,je(O)):Fe(O)?(t.consume(O),ve):Ve(O)}function xe(O){return O===45||O===46||O===58||O===95||Lt(O)?(t.consume(O),xe):ue(O)}function ue(O){return O===61?(t.consume(O),be):le(O)?(c=ue,je(O)):Fe(O)?(t.consume(O),ue):ve(O)}function be(O){return O===null||O===60||O===61||O===62||O===96?e(O):O===34||O===39?(t.consume(O),i=O,He):le(O)?(c=be,je(O)):Fe(O)?(t.consume(O),be):(t.consume(O),i=void 0,ft)}function He(O){return O===i?(t.consume(O),H):O===null?e(O):le(O)?(c=He,je(O)):(t.consume(O),He)}function H(O){return O===62||O===47||Me(O)?ve(O):e(O)}function ft(O){return O===null||O===34||O===39||O===60||O===61||O===96?e(O):O===62||Me(O)?ve(O):(t.consume(O),ft)}function je(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),ge(t,nt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nt(O){return t.enter("htmlTextData"),c(O)}function Ve(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),r):e(O)}}var Si={name:"labelEnd",tokenize:Cw,resolveTo:xw,resolveAll:vw},$w={tokenize:Ew},kw={tokenize:_w},ww={tokenize:Aw};function vw(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 xw(t,r){let e=t.length,n=0,i,o,a,c;for(;e--;)if(i=t[e][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[e][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[e][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=e,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(a=e);let f={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},h={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[a][1].end)},d={type:"labelText",start:Object.assign({},t[o+n+2][1].end),end:Object.assign({},t[a-2][1].start)};return c=[["enter",f,r],["enter",h,r]],c=fr(c,t.slice(o+1,o+n+3)),c=fr(c,[["enter",d,r]]),c=fr(c,Wn(r.parser.constructs.insideSpan.null,t.slice(o+n+4,a-3),r)),c=fr(c,[["exit",d,r],t[a-2],t[a-1],["exit",h,r]]),c=fr(c,t.slice(a+1)),c=fr(c,[["exit",f,r]]),Ct(t,o,t.length,c),t}function Cw(t,r,e){let n=this,i=n.events.length,o,a;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return c;function c(d){return o?o._inactive?h(d):(a=n.parser.defined.includes(nr(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelEnd"),f):e(d)}function f(d){return d===40?t.attempt($w,r,a?r:h)(d):d===91?t.attempt(kw,r,a?t.attempt(ww,r,h):h)(d):a?r(d):h(d)}function h(d){return o._balanced=!0,e(d)}}function Ew(t,r,e){return n;function n(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),Ai(t,i)}function i(f){return f===41?c(f):aa(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Me(f)?Ai(t,a)(f):c(f)}function a(f){return f===34||f===39||f===40?ua(t,Ai(t,c),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),r):e(f)}}function _w(t,r,e){let n=this;return i;function i(a){return la.call(n,t,o,e,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(nr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?r(a):e(a)}}function Aw(t,r,e){return n;function n(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),i}function i(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),r):e(o)}}var zu={name:"labelStartImage",tokenize:Sw,resolveAll:Si.resolveAll};function Sw(t,r,e){let n=this;return i;function i(c){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(c),t.exit("labelImageMarker"),o}function o(c){return c===91?(t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelImage"),a):e(c)}function a(c){return c===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(c):r(c)}}var Mu={name:"labelStartLink",tokenize:Pw,resolveAll:Si.resolveAll};function Pw(t,r,e){let n=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(a):r(a)}}var Qo={name:"lineEnding",tokenize:Tw};function Tw(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ge(t,r,"linePrefix")}}var Pi={name:"thematicBreak",tokenize:Iw};function Iw(t,r,e){let n=0,i;return o;function o(f){return t.enter("thematicBreak"),i=f,a(f)}function a(f){return f===i?(t.enter("thematicBreakSequence"),c(f)):Fe(f)?ge(t,a,"whitespace")(f):n<3||f!==null&&!le(f)?e(f):(t.exit("thematicBreak"),r(f))}function c(f){return f===i?(t.consume(f),n++,c):(t.exit("thematicBreakSequence"),a(f))}}var ir={name:"list",tokenize:qw,continuation:{tokenize:Dw},exit:Rw},Fw={tokenize:Lw,partial:!0},Ow={tokenize:Nw,partial:!0};function qw(t,r,e){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return c;function c(k){let _=n.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!n.containerState.marker||k===n.containerState.marker:Ci(k)){if(n.containerState.type||(n.containerState.type=_,t.enter(_,{_container:!0})),_==="listUnordered")return t.enter("listItemPrefix"),k===42||k===45?t.check(Pi,e,h)(k):h(k);if(!n.interrupt||k===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),f(k)}return e(k)}function f(k){return Ci(k)&&++a<10?(t.consume(k),f):(!n.interrupt||a<2)&&(n.containerState.marker?k===n.containerState.marker:k===41||k===46)?(t.exit("listItemValue"),h(k)):e(k)}function h(k){return t.enter("listItemMarker"),t.consume(k),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||k,t.check(gn,n.interrupt?e:d,t.attempt(Fw,v,b))}function d(k){return n.containerState.initialBlankLine=!0,o++,v(k)}function b(k){return Fe(k)?(t.enter("listItemPrefixWhitespace"),t.consume(k),t.exit("listItemPrefixWhitespace"),v):e(k)}function v(k){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(k)}}function Dw(t,r,e){let n=this;return n.containerState._closeFlow=void 0,t.check(gn,i,o);function i(c){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ge(t,r,"listItemIndent",n.containerState.size+1)(c)}function o(c){return n.containerState.furtherBlankLines||!Fe(c)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(c)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Ow,r,a)(c))}function a(c){return n.containerState._closeFlow=!0,n.interrupt=void 0,ge(t,t.attempt(ir,r,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function Nw(t,r,e){let n=this;return ge(t,i,"listItemIndent",n.containerState.size+1);function i(o){let a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?r(o):e(o)}}function Rw(t){t.exit(this.containerState.type)}function Lw(t,r,e){let n=this;return ge(t,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){let a=n.events[n.events.length-1];return!Fe(o)&&a&&a[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var ca={name:"setextUnderline",tokenize:Bw,resolveTo:jw};function jw(t,r){let e=t.length,n,i,o;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){n=e;break}t[e][1].type==="paragraph"&&(i=e)}else t[e][1].type==="content"&&t.splice(e,1),!o&&t[e][1].type==="definition"&&(o=e);let a={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",a,r]),t.splice(o+1,0,["exit",t[n][1],r]),t[n][1].end=Object.assign({},t[o][1].end)):t[n][1]=a,t.push(["exit",a,r]),t}function Bw(t,r,e){let n=this,i=n.events.length,o,a;for(;i--;)if(n.events[i][1].type!=="lineEnding"&&n.events[i][1].type!=="linePrefix"&&n.events[i][1].type!=="content"){a=n.events[i][1].type==="paragraph";break}return c;function c(d){return!n.parser.lazy[n.now().line]&&(n.interrupt||a)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),o=d,f(d)):e(d)}function f(d){return d===o?(t.consume(d),f):(t.exit("setextHeadingLineSequence"),ge(t,h,"lineSuffix")(d))}function h(d){return d===null||le(d)?(t.exit("setextHeadingLine"),r(d)):e(d)}}var em={tokenize:zw};function zw(t){let r=this,e=t.attempt(gn,n,t.attempt(this.parser.constructs.flowInitial,i,ge(t,t.attempt(this.parser.constructs.flow,i,t.attempt(qu,i)),"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 i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r.currentConstruct=void 0,e}}var tm={resolveAll:om()},rm=im("string"),nm=im("text");function im(t){return{tokenize:r,resolveAll:om(t==="text"?Mw:void 0)};function r(e){let n=this,i=this.parser.constructs[t],o=e.attempt(i,a,c);return a;function a(d){return h(d)?o(d):c(d)}function c(d){if(d===null){e.consume(d);return}return e.enter("data"),e.consume(d),f}function f(d){return h(d)?(e.exit("data"),o(d)):(e.consume(d),f)}function h(d){if(d===null)return!0;let b=i[d],v=-1;if(b)for(;++v<b.length;){let k=b[v];if(!k.previous||k.previous.call(n,n.previous))return!0}return!1}}}function om(t){return r;function r(e,n){let i=-1,o;for(;++i<=e.length;)o===void 0?e[i]&&e[i][1].type==="data"&&(o=i,i++):(!e[i]||e[i][1].type!=="data")&&(i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),i=o+2),o=void 0);return t?t(e,n):e}}function Mw(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],i=r.sliceStream(n),o=i.length,a=-1,c=0,f;for(;o--;){let h=i[o];if(typeof h=="string"){for(a=h.length;h.charCodeAt(a-1)===32;)c++,a--;if(a)break;a=-1}else if(h===-2)f=!0,c++;else if(h!==-1){o++;break}}if(c){let h={type:e===t.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+o,_bufferIndex:o?a:n.start._bufferIndex+a},end:Object.assign({},n.end)};n.end=Object.assign({},h.start),n.start.offset===n.end.offset?Object.assign(n,h):(t.splice(e,0,["enter",h,r],["exit",h,r]),e+=2)}e++}return t}function sm(t,r,e){let n=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],a=[],c=[],f=!0,h={consume:de,enter:fe,exit:J,attempt:ke(me),check:ke($e),interrupt:ke($e,{interrupt:!0})},d={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:T,sliceSerialize:_,now:L,defineSkip:N,write:k},b=r.tokenize.call(d,h),v;return r.resolveAll&&o.push(r),d;function k(ue){return a=fr(a,ue),ee(),a[a.length-1]!==null?[]:(Oe(r,0),d.events=Wn(o,d.events,d),d.events)}function _(ue,be){return Uw(T(ue),be)}function T(ue){return Vw(a,ue)}function L(){return Object.assign({},n)}function N(ue){i[ue.line]=ue.column,xe()}function ee(){let ue;for(;n._index<a.length;){let be=a[n._index];if(typeof be=="string")for(ue=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===ue&&n._bufferIndex<be.length;)re(be.charCodeAt(n._bufferIndex));else re(be)}}function re(ue){f=void 0,v=ue,b=b(ue)}function de(ue){le(ue)?(n.line++,n.column=1,n.offset+=ue===-3?2:1,xe()):ue!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),d.previous=ue,f=!0}function fe(ue,be){let He=be||{};return He.type=ue,He.start=L(),d.events.push(["enter",He,d]),c.push(He),He}function J(ue){let be=c.pop();return be.end=L(),d.events.push(["exit",be,d]),be}function me(ue,be){Oe(ue,be.from)}function $e(ue,be){be.restore()}function ke(ue,be){return He;function He(H,ft,je){let nt,Ve,O,D;return Array.isArray(H)?Tt(H):"tokenize"in H?Tt([H]):Kt(H);function Kt(he){return vr;function vr(Dt){let Wt=Dt!==null&&he[Dt],or=Dt!==null&&he.null,pr=[...Array.isArray(Wt)?Wt:Wt?[Wt]:[],...Array.isArray(or)?or:or?[or]:[]];return Tt(pr)(Dt)}}function Tt(he){return nt=he,Ve=0,he.length===0?je:at(he[Ve])}function at(he){return vr;function vr(Dt){return D=ve(),O=he,he.partial||(d.currentConstruct=he),he.name&&d.parser.constructs.disable.null.includes(he.name)?ht(Dt):he.tokenize.call(be?Object.assign(Object.create(d),be):d,h,mt,ht)(Dt)}}function mt(he){return f=!0,ue(O,D),ft}function ht(he){return f=!0,D.restore(),++Ve<nt.length?at(nt[Ve]):je}}}function Oe(ue,be){ue.resolveAll&&!o.includes(ue)&&o.push(ue),ue.resolve&&Ct(d.events,be,d.events.length-be,ue.resolve(d.events.slice(be),d)),ue.resolveTo&&(d.events=ue.resolveTo(d.events,d))}function ve(){let ue=L(),be=d.previous,He=d.currentConstruct,H=d.events.length,ft=Array.from(c);return{restore:je,from:H};function je(){n=ue,d.previous=be,d.currentConstruct=He,d.events.length=H,c=ft,xe()}}function xe(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Vw(t,r){let e=r.start._index,n=r.start._bufferIndex,i=r.end._index,o=r.end._bufferIndex,a;return e===i?a=[t[e].slice(n,o)]:(a=t.slice(e,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(t[i].slice(0,o))),a}function Uw(t,r){let e=-1,n=[],i;for(;++e<t.length;){let o=t[e],a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
|
12
|
+
`,!1),fe="\r",J=ot("\r",!1),me=function(){return{type:"blankline"}},be="=begin ",ke=ot("=begin ",!1),Oe="=end ",ve=ot("=end ",!1),xe="=for ",ue=ot("=for ",!1),$e="=config",He=ot("=config",!1),H="=alias",ft=ot("=alias",!1),je=function(l){return lh(l)},nt=function(l){return l},Ve="=",O=ot("=",!1),D=us("text"),Kt=function(){return Or()},Tt=function(){return{type:"para",value:Or(),error:!0,location:ar()}},at=function(l,p){return Hi([l,p])},mt=function(l){return[l]},ht=",",he=ot(",",!1),vr=function(l,p){return Hi([l,p])},Dt=/^[a-zA-Z0-9]/,Wt=_t([["a","z"],["A","Z"],["0","9"]],!1,!1),or=/^[a-zA-Z0-9_\-]/,pr=_t([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Zt="=>",Zn=ot("=>",!1),Sn=function(l,p){return{[l]:p}},gt=function(l,p){return{...l,...p}},yt=function(l){return l},jt=":",$t=ot(":",!1),bt="allow",kt=ot("allow",!1),pt="<",It=ot("<",!1),Ft=">",xr=ot(">",!1),sr=function(l,p){return{value:p,type:"array"}},W=function(l,p){return{name:"allow",...p}},ie=function(l){return l},ye=function(l){return l},Se=function(l){return[l]},Ot=function(){return[]},jr=/^[!]/,Ue=_t(["!"],!1,!1),lt="{",wt=ot("{",!1),dr="}",Ge=ot("}",!1),$n=function(l,p,g){return{value:g}},Bt="[",Pn=ot("[",!1),Ii=function(l,p,g){return g},Pr="]",Jn=ot("]",!1),Fi=function(l,p){return[Or()]},fo=function(l,p,g){return{value:g,type:"array"}},Tn=function(l,p,g){return{value:g,type:"array"}},Qn=function(l,p,g){return{value:g,type:"string"}},In="(",Fn=ot("(",!1),po=function(l,p,g){return g.length>1?{type:"array",value:g}:{type:"value",value:g[0]}},bn=")",q=ot(")",!1),P=function(l,p){return{value:Or()}},M=function(l,p,g){return{type:"value",...g}},G=function(l,p){return{value:!l,type:"boolean"}},K=function(l,p,g){return{name:p,...g}},ae=function(l,p){return p},we=function(l,p){return Hi([...l,...p])},Ae=/^[^'"]/,qe=_t(["'",'"'],!0,!1),tt=function(l){return l},_e=/^[0-9]/,Ke=_t([["0","9"]],!1,!1),ut=/^[\-+]/,Ze=_t(["-","+"],!1,!1),Te="True",Xe=ot("True",!1),Be=function(){return!0},Tr="False",zt=ot("False",!1),u=function(){return!1},oe=".",vt=ot(".",!1),it=/^[eE]/,Jt=_t(["e","E"],!1,!1),j=/^["]/,Mt=_t(['"'],!1,!1),Br=/^[^"]/,On=_t(['"'],!0,!1),qn=/^[']/,rn=_t(["'"],!1,!1),De=/^[^']/,qt=_t(["'"],!0,!1),nn=function(l){return parseFloat(l)},Xn=function(l){return parseInt(l,10)},zr=function(l,p,g){return p.match(/code|comment|output|input|markdown|picture|toc|data/)||ms(p)},Yn=function(l,p,g,y,C){return l.length===y.length&&p===C},on=function(l,p,g,y,C){return uh(l,`${y}${C}`)},X=function(l,p,g,y,C,w){return p===w},kn=function(l,p,g,y,C,w){return{type:"block",content:y===""?[]:[{type:"verbatim",value:y.join("")}],name:p,margin:l}},Ir=function(l,p,g,y,C,w){return!0},ei=function(l,p,g,y,C,w){return{...w,text:Or(),config:g,location:ar()}},Cr=/^[+-=_|]/,Oi=_t([["+","="],"_","|"],!1,!1),qi=function(){return{type:"separator",text:Or()}},ti=function(){return r.isDelimited},Et=function(){return{type:"separator",text:Or()}},Mr=function(l){return{name:"row",type:"text",value:l}},ri=function(){return r.separators=[],!0},Dn=function(l,p){return r.separators.push(p.text),p},Vr=function(l,p,g,y){return r.separators.push(y.text),y},mo=function(l,p,g,y){return[{name:"row",type:"text",value:g},y]},Fr=function(l,p,g){return[g]},sn=function(l,p,g){return r.separators.length>1?!r.separators.every(y=>y===r.separators[0]):!0},Er=function(l,p,g){return[{name:"head",type:"text",value:l},p,...Hi(g)]},Nn=function(l,p){return[{name:"row",type:"text",value:l},p]},wn=function(l){return[...Hi(l)]},mr=function(l,p,g){return p==="table"},Yo=function(l,p,g){return r.isDelimited=!0,!0},ho=function(l,p,g,y){return y},Ur=function(l,p,g,y,C,w){return{type:"block",content:y,name:p,margin:l}},Rn=function(l,p,g,y,C,w){return{...w,text:Or(),config:g,location:ar()}},go=function(l,p,g,y){return y},yo=function(l,p,g,y,C){let w=p.match(/pod|nested|item|code|defn/)&&y.length-l.length>0?"code":"para";return{text:C,margin:y,type:w,content:[{type:w==="code"?"verbatim":"text",value:C}],location:ar()}},es=function(l,p,g,y,C,w){return{type:"block",content:y,name:p,margin:l}},Di=function(l,p,g,y,C,w){return{...w,config:g,location:ar()}},ka=function(){return{text:Or(),type:"para",margin:"",content:[{type:"text",value:Or()}],location:ar()}},ts=function(){return{empty:1}},Ni=/^[s]/,Ri=_t(["s"],!1,!1),rs=function(l){return{text:Or(),type:"ambient1"}},ns=function(l,p){return p.match(/code|comment|output|input|markdown|picture|toc|data/)||ms(p)},wa=function(l,p,g){return{margin:l,type:"block",content:g===""?[]:[{type:"verbatim",value:g}],name:p,config:[],location:ar()}},Hr=function(l,p){return p==="table"},ni=function(l,p){return r.isDelimited=!1,!0},Ye=function(l,p,g){return{margin:l,type:"block",content:g===""?[]:g,name:p,config:[],location:ar()}},Li=function(l,p,g){return{margin:l,type:"block",content:g===""?[]:[{type:"para",text:g,margin:"",content:[{type:"text",value:g}],location:ar()}],name:p,location:ar()}},$o="= ",Gr=ot("= ",!1),an=function(l,p,g,y){return{name:g,type:"alias",replacement:y,margin:l}},Ln=/^[A-Z]/,ji=_t([["A","Z"]],!1,!1),is="<>",m=ot("<>",!1),x=function(l,p,g,y){return{name:g,type:"config",config:y,margin:l}},S=function(l,p,g,y){return g.match(/code|comment|output|input|markdown|picture|toc|data/)||ms(g)},b=function(l,p,g,y,C){return{type:"block",content:C===""?[]:[{type:"verbatim",value:C}],name:g,margin:l,config:y,location:ar()}},E=function(l,p,g,y){return g==="table"},I=function(l,p,g,y){return r.isDelimited=!1,!0},R=function(l,p,g,y,C){return{type:"block",content:C===""?[]:C,name:g,margin:l,config:y,location:ar()}},Z=function(l,p,g,y,C){return{type:"block",content:C===""?[]:[{type:"para",content:[{type:"text",value:C}],margin:l,text:C,location:ar()}],name:g,margin:l,config:y,location:ar()}},We=/^[a-zA-Z]/,Nt=_t([["a","z"],["A","Z"]],!1,!1),hr=us("whitespace"),os=/^[\r\n \t\f]/,ss=_t(["\r",`
|
|
13
|
+
`," "," ","\f"],!1,!1),Jm=us("space characters"),s=0,Y=0,as=[{line:1,column:1}],ln=0,va=[],V=0,ls;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');i=n[r.startRule]}function Or(){return t.substring(Y,s)}function ar(){return bo(Y,s)}function c1(l,p){throw p=p!==void 0?p:bo(Y,s),yc([us(l)],t.substring(Y,s),p)}function f1(l,p){throw p=p!==void 0?p:bo(Y,s),Ym(l,p)}function ot(l,p){return{type:"literal",text:l,ignoreCase:p}}function _t(l,p,g){return{type:"class",parts:l,inverted:p,ignoreCase:g}}function Qm(){return{type:"any"}}function Xm(){return{type:"end"}}function us(l){return{type:"other",description:l}}function gc(l){var p=as[l],g;if(p)return p;for(g=l-1;!as[g];)g--;for(p=as[g],p={line:p.line,column:p.column};g<l;)t.charCodeAt(g)===10?(p.line++,p.column=1):p.column++,g++;return as[l]=p,p}function bo(l,p){var g=gc(l),y=gc(p);return{start:{offset:l,line:g.line,column:g.column},end:{offset:p,line:y.line,column:y.column}}}function te(l){s<ln||(s>ln&&(ln=s,va=[]),va.push(l))}function Ym(l,p){return new wi(l,null,null,p)}function yc(l,p,g){return new wi(wi.buildMessage(l,p),l,p,g)}function $c(){var l,p,g;for(l=s,p=[],g=bc();g!==e;)p.push(g),g=bc();return p!==e&&(Y=l,p=o(p)),l=p,l}function bc(){var l,p,g,y,C,w,B,U;if(l=xa(),l===e&&(l=Ea(),l===e&&(l=_a(),l===e&&(l=Fa(),l===e&&(l=Oa(),l===e&&(l=qa(),l===e&&(l=Ta(),l===e&&(l=Ia(),l===e&&(l=Aa(),l===e&&(l=Sa(),l===e&&(l=Pa(),l===e&&(l=s,Y=s,p=a(),p?p=void 0:p=e,p!==e?(g=oh(),g===e&&(g=un(),g===e&&(g=eh())),g!==e?(Y=l,p=c(g),l=p):(s=l,l=e)):(s=l,l=e),l===e)))))))))))){if(l=s,p=s,g=[],y=s,C=s,V++,w=s,B=vn(),B!==e?(U=Qt(),U!==e?(B=[B,U],w=B):(s=w,w=e)):(s=w,w=e),w===e&&(w=si()),V--,w===e?C=void 0:(s=C,C=e),C!==e?(t.length>s?(w=t.charAt(s),s++):(w=e,V===0&&te(f)),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,C=s,V++,w=s,B=vn(),B!==e?(U=Qt(),U!==e?(B=[B,U],w=B):(s=w,w=e)):(s=w,w=e),w===e&&(w=si()),V--,w===e?C=void 0:(s=C,C=e),C!==e?(t.length>s?(w=t.charAt(s),s++):(w=e,V===0&&te(f)),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e);else g=e;g!==e?p=t.substring(p,s):p=g,p!==e&&(Y=l,p=h()),l=p}return l}function At(){var l;return d.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,V===0&&te($)),l}function pe(){var l,p;for(l=[],v.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(k));p!==e;)l.push(p),v.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(k));return l}function ii(){var l,p,g,y;for(l=s,p=s,g=[],y=At();y!==e;)g.push(y),y=At();return g!==e?(_.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(T)),y!==e?(g=[g,y],p=g):(s=p,p=e)):(s=p,p=e),p!==e?l=t.substring(l,s):l=p,l}function p1(){var l,p,g,y;if(l=s,p=s,g=[],y=ko(),y!==e)for(;y!==e;)g.push(y),y=ko();else g=e;return g!==e?p=t.substring(p,s):p=g,p!==e?(g=Bi(),g!==e?(Y=l,p=L(p),l=p):(s=l,l=e)):(s=l,l=e),l}function ko(){var l;return N.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,V===0&&te(ee)),l}function oi(){var l,p,g;return t.charCodeAt(s)===10?(l=re,s++):(l=e,V===0&&te(de)),l===e&&(l=s,t.charCodeAt(s)===13?(p=fe,s++):(p=e,V===0&&te(J)),p!==e?(t.charCodeAt(s)===10?(g=re,s++):(g=e,V===0&&te(de)),g===e&&(g=null),g!==e?(p=[p,g],l=p):(s=l,l=e)):(s=l,l=e)),l}function Bi(){var l,p;return l=oi(),l===e&&(l=s,V++,t.length>s?(p=t.charAt(s),s++):(p=e,V===0&&te(f)),V--,p===e?l=void 0:(s=l,l=e)),l}function _r(){var l,p,g,y;for(l=s,p=s,g=[],y=At();y!==e;)g.push(y),y=At();return g!==e?(_.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(T)),y!==e?(g=[g,y],p=g):(s=p,p=e)):(s=p,p=e),p!==e?l=t.substring(l,s):l=p,l}function un(){var l,p,g,y,C;for(l=s,p=s,g=s,y=[],C=At();C!==e;)y.push(C),C=At();return y!==e?(_.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(T)),C!==e?(y=[y,C],g=y):(s=g,g=e)):(s=g,g=e),g!==e?p=t.substring(p,s):p=g,p!==e&&(Y=l,p=me()),l=p,l}function cs(){var l;return t.substr(s,7)===be?(l=be,s+=7):(l=e,V===0&&te(ke)),l}function zi(){var l;return t.substr(s,5)===Oe?(l=Oe,s+=5):(l=e,V===0&&te(ve)),l}function fs(){var l;return t.substr(s,5)===xe?(l=xe,s+=5):(l=e,V===0&&te(ue)),l}function kc(){var l;return t.substr(s,7)===$e?(l=$e,s+=7):(l=e,V===0&&te(He)),l}function wc(){var l;return t.substr(s,6)===H?(l=H,s+=6):(l=e,V===0&&te(ft)),l}function Qt(){var l,p,g;return l=s,p=Da(),p!==e?(Y=s,g=je(p),g?g=void 0:g=e,g!==e?(Y=l,p=nt(p),l=p):(s=l,l=e)):(s=l,l=e),l}function si(){var l,p,g;return l=s,t.charCodeAt(s)===61?(p=Ve,s++):(p=e,V===0&&te(O)),p!==e?(g=Qt(),g!==e?(Y=l,p=nt(g),l=p):(s=l,l=e)):(s=l,l=e),l}function vn(){var l;return l=cs(),l===e&&(l=zi(),l===e&&(l=fs(),l===e&&(l=kc(),l===e&&(l=wc())))),l}function cn(){var l,p,g;if(V++,l=s,p=[],g=ko(),g!==e)for(;g!==e;)p.push(g),g=ko();else p=e;return p!==e?l=t.substring(l,s):l=p,V--,l===e&&(p=e,V===0&&te(D)),l}function Vt(){var l,p,g,y,C,w,B;if(l=s,p=s,V++,g=s,y=pe(),y!==e?(C=kc(),C===e&&(C=wc(),C===e&&(C=s,w=vn(),w!==e?(B=Qt(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e),C===e&&(C=si()))),C!==e?(y=[y,C],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=un()),V--,g===e?p=void 0:(s=p,p=e),p!==e){if(g=s,y=[],C=cn(),C!==e)for(;C!==e;)y.push(C),C=cn();else y=e;y!==e?g=t.substring(g,s):g=y,g!==e?(y=Bi(),y!==e?(Y=l,p=Kt(),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l}function eh(){var l,p,g,y,C,w;if(l=s,p=s,g=[],y=s,C=s,V++,w=Bi(),V--,w===e?C=void 0:(s=C,C=e),C!==e?(t.length>s?(w=t.charAt(s),s++):(w=e,V===0&&te(f)),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,C=s,V++,w=Bi(),V--,w===e?C=void 0:(s=C,C=e),C!==e?(t.length>s?(w=t.charAt(s),s++):(w=e,V===0&&te(f)),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e);else g=e;return g!==e?p=t.substring(p,s):p=g,p!==e?(g=Bi(),g!==e?(Y=l,p=Tt(),l=p):(s=l,l=e)):(s=l,l=e),l}function vc(){var l,p,g,y;if(l=s,p=xc(),p!==e){if(g=[],y=At(),y!==e)for(;y!==e;)g.push(y),y=At();else g=e;g!==e?(y=vc(),y!==e?(Y=l,p=at(p,y),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,p=xc(),p!==e&&(Y=l,p=mt(p)),l=p),l}function xc(){var l,p;return l=s,p=ko(),p!==e?l=t.substring(l,s):l=p,l}function ps(){var l,p,g,y,C,w;if(l=s,p=Vi(),p!==e){if(g=[],y=At(),y!==e)for(;y!==e;)g.push(y),y=At();else g=e;g===e&&(g=s,y=pe(),y!==e?(t.charCodeAt(s)===44?(C=ht,s++):(C=e,V===0&&te(he)),C!==e?(w=pe(),w!==e?(y=[y,C,w],g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e)),g!==e?(y=ps(),y!==e?(Y=l,p=vr(p,y),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,p=Vi(),p!==e&&(Y=l,p=mt(p)),l=p),l}function th(){var l,p,g,y,C;if(l=s,p=s,g=[],Dt.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Wt)),y!==e)for(;y!==e;)g.push(y),Dt.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Wt));else g=e;if(g!==e){for(y=[],or.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(pr));C!==e;)y.push(C),or.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(pr));y!==e?(g=[g,y],p=g):(s=p,p=e)}else s=p,p=e;return p!==e?l=t.substring(l,s):l=p,l}function Cc(){var l,p,g,y,C,w;return l=s,p=th(),p!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ht,s++):(y=e,V===0&&te(he)),y===e&&(t.substr(s,2)===Zt?(y=Zt,s+=2):(y=e,V===0&&te(Zn))),y!==e?(C=pe(),C!==e?(w=Vi(),w!==e?(Y=l,p=Sn(p,w),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Ec(){var l,p,g,y,C,w;return l=s,p=Cc(),p!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ht,s++):(y=e,V===0&&te(he)),y!==e?(C=pe(),C!==e?(w=Ec(),w!==e?(Y=l,p=gt(p,w),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l===e&&(l=s,p=Cc(),p!==e&&(Y=l,p=yt(p)),l=p),l}function rh(){var l,p,g,y,C,w,B,U,A,F;return l=s,p=pe(),p!==e?(t.charCodeAt(s)===58?(g=jt,s++):(g=e,V===0&&te($t)),g!==e?(t.substr(s,5)===bt?(y=bt,s+=5):(y=e,V===0&&te(kt)),y!==e?(C=s,t.charCodeAt(s)===60?(w=pt,s++):(w=e,V===0&&te(It)),w!==e?(B=pe(),B!==e?(U=vc(),U!==e?(A=pe(),A!==e?(t.charCodeAt(s)===62?(F=Ft,s++):(F=e,V===0&&te(xr)),F!==e?(Y=C,w=sr(y,U),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)):(s=C,C=e),C!==e?(w=pe(),w!==e?(Y=l,p=W(y,C),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function d1(){var l,p,g,y,C,w;for(l=s,p=[],g=s,y=pe(),y!==e?(C=Vi(),C!==e?(w=pe(),w!==e?(Y=g,y=ie(C),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);g!==e;)p.push(g),g=s,y=pe(),y!==e?(C=Vi(),C!==e?(w=pe(),w!==e?(Y=g,y=ie(C),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);return p!==e&&(Y=l,p=ye(p)),l=p,l===e&&(l=s,p=Vi(),p!==e&&(Y=l,p=Se(p)),l=p,l===e&&(l=s,p=pe(),p!==e&&(Y=l,p=Ot()),l=p)),l}function Mi(){var l,p,g,y,C,w,B,U,A,F,z,Q,ne,se;if(l=rh(),l===e)if(l=s,p=pe(),p!==e)if(t.charCodeAt(s)===58?(g=jt,s++):(g=e,V===0&&te($t)),g!==e)if(jr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ue)),y===e&&(y=null),y!==e)if(C=Da(),C!==e){if(w=s,t.charCodeAt(s)===123?(B=lt,s++):(B=e,V===0&&te(wt)),B!==e?(U=pe(),U!==e?(A=Ec(),A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===125?(z=dr,s++):(z=e,V===0&&te(Ge)),z!==e?(Y=w,B=$n(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)):(s=w,w=e),w===e){if(w=s,t.charCodeAt(s)===91?(B=Bt,s++):(B=e,V===0&&te(Pn)),B!==e)if(U=pe(),U!==e){if(A=s,F=ps(),F!==e&&(Y=A,F=Ii(y,C,F)),A=F,A===e){if(A=s,F=s,z=[],Q=s,ne=s,V++,t.charCodeAt(s)===93?(se=Pr,s++):(se=e,V===0&&te(Jn)),se===e&&(t.charCodeAt(s)===91?(se=Bt,s++):(se=e,V===0&&te(Pn))),V--,se===e?ne=void 0:(s=ne,ne=e),ne!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,V===0&&te(f)),se!==e?(ne=[ne,se],Q=ne):(s=Q,Q=e)):(s=Q,Q=e),Q!==e)for(;Q!==e;)z.push(Q),Q=s,ne=s,V++,t.charCodeAt(s)===93?(se=Pr,s++):(se=e,V===0&&te(Jn)),se===e&&(t.charCodeAt(s)===91?(se=Bt,s++):(se=e,V===0&&te(Pn))),V--,se===e?ne=void 0:(s=ne,ne=e),ne!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,V===0&&te(f)),se!==e?(ne=[ne,se],Q=ne):(s=Q,Q=e)):(s=Q,Q=e);else z=e;z!==e?F=t.substring(F,s):F=z,F!==e&&(Y=A,F=Fi(y,C)),A=F}A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===93?(z=Pr,s++):(z=e,V===0&&te(Jn)),z!==e?(Y=w,B=fo(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)}else s=w,w=e;else s=w,w=e;if(w===e&&(w=s,t.charCodeAt(s)===60?(B=pt,s++):(B=e,V===0&&te(It)),B!==e?(U=pe(),U!==e?(A=ps(),A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===62?(z=Ft,s++):(z=e,V===0&&te(xr)),z!==e?(Y=w,B=Tn(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)):(s=w,w=e),w===e)){if(w=s,t.charCodeAt(s)===60?(B=pt,s++):(B=e,V===0&&te(It)),B!==e)if(U=pe(),U!==e){if(A=s,F=[],z=s,Q=s,V++,t.charCodeAt(s)===60?(ne=pt,s++):(ne=e,V===0&&te(It)),ne===e&&(t.charCodeAt(s)===62?(ne=Ft,s++):(ne=e,V===0&&te(xr))),V--,ne===e?Q=void 0:(s=Q,Q=e),Q!==e?(t.length>s?(ne=t.charAt(s),s++):(ne=e,V===0&&te(f)),ne!==e?(Q=[Q,ne],z=Q):(s=z,z=e)):(s=z,z=e),z!==e)for(;z!==e;)F.push(z),z=s,Q=s,V++,t.charCodeAt(s)===60?(ne=pt,s++):(ne=e,V===0&&te(It)),ne===e&&(t.charCodeAt(s)===62?(ne=Ft,s++):(ne=e,V===0&&te(xr))),V--,ne===e?Q=void 0:(s=Q,Q=e),Q!==e?(t.length>s?(ne=t.charAt(s),s++):(ne=e,V===0&&te(f)),ne!==e?(Q=[Q,ne],z=Q):(s=z,z=e)):(s=z,z=e);else F=e;F!==e?A=t.substring(A,s):A=F,A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===62?(z=Ft,s++):(z=e,V===0&&te(xr)),z!==e?(Y=w,B=Qn(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)}else s=w,w=e;else s=w,w=e;if(w===e){if(w=s,t.charCodeAt(s)===40?(B=In,s++):(B=e,V===0&&te(Fn)),B!==e)if(U=pe(),U!==e){if(A=s,F=ps(),F!==e&&(Y=A,F=po(y,C,F)),A=F,A===e){if(A=s,F=s,z=[],Q=s,ne=s,V++,t.charCodeAt(s)===41?(se=bn,s++):(se=e,V===0&&te(q)),se===e&&(t.charCodeAt(s)===40?(se=In,s++):(se=e,V===0&&te(Fn))),V--,se===e?ne=void 0:(s=ne,ne=e),ne!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,V===0&&te(f)),se!==e?(ne=[ne,se],Q=ne):(s=Q,Q=e)):(s=Q,Q=e),Q!==e)for(;Q!==e;)z.push(Q),Q=s,ne=s,V++,t.charCodeAt(s)===41?(se=bn,s++):(se=e,V===0&&te(q)),se===e&&(t.charCodeAt(s)===40?(se=In,s++):(se=e,V===0&&te(Fn))),V--,se===e?ne=void 0:(s=ne,ne=e),ne!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,V===0&&te(f)),se!==e?(ne=[ne,se],Q=ne):(s=Q,Q=e)):(s=Q,Q=e);else z=e;z!==e?F=t.substring(F,s):F=z,F!==e&&(Y=A,F=P(y,C)),A=F}A!==e?(F=pe(),F!==e?(t.charCodeAt(s)===41?(z=bn,s++):(z=e,V===0&&te(q)),z!==e?(Y=w,B=M(y,C,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)}else s=w,w=e;else s=w,w=e;w===e&&(w=s,B=pe(),B!==e&&(Y=w,B=G(y,C)),w=B)}}}w!==e?(B=pe(),B!==e?(Y=l,p=K(y,C,w),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function ai(){var l,p,g,y,C,w,B,U,A,F;for(l=s,p=[],g=Mi();g!==e;)p.push(g),g=Mi();if(p!==e)if(g=oi(),g!==e){if(y=[],C=s,t.charCodeAt(s)===61?(w=Ve,s++):(w=e,V===0&&te(O)),w!==e)if(B=pe(),B!==e){if(U=[],A=Mi(),A!==e)for(;A!==e;)U.push(A),A=Mi();else U=e;U!==e?(A=pe(),A!==e?(F=oi(),F!==e?(Y=C,w=ae(p,U),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)}else s=C,C=e;else s=C,C=e;for(;C!==e;)if(y.push(C),C=s,t.charCodeAt(s)===61?(w=Ve,s++):(w=e,V===0&&te(O)),w!==e)if(B=pe(),B!==e){if(U=[],A=Mi(),A!==e)for(;A!==e;)U.push(A),A=Mi();else U=e;U!==e?(A=pe(),A!==e?(F=oi(),F!==e?(Y=C,w=ae(p,U),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)}else s=C,C=e;else s=C,C=e;y!==e?(Y=l,p=we(p,y),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function m1(){var l,p,g,y;if(l=s,p=s,g=[],Ae.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(qe)),y!==e)for(;y!==e;)g.push(y),Ae.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(qe));else g=e;return g!==e?p=t.substring(p,s):p=g,p!==e&&(Y=l,p=tt(p)),l=p,l}function _c(){var l,p,g;if(l=s,p=[],_e.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,V===0&&te(Ke)),g!==e)for(;g!==e;)p.push(g),_e.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,V===0&&te(Ke));else p=e;return p!==e?l=t.substring(l,s):l=p,l}function ds(){var l,p,g,y,C;if(l=s,p=s,ut.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,V===0&&te(Ze)),g===e&&(g=null),g!==e){if(y=[],_e.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(Ke)),C!==e)for(;C!==e;)y.push(C),_e.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(Ke));else y=e;y!==e?(g=[g,y],p=g):(s=p,p=e)}else s=p,p=e;return p!==e?l=t.substring(l,s):l=p,l}function nh(){var l,p;return l=s,t.substr(s,4)===Te?(p=Te,s+=4):(p=e,V===0&&te(Xe)),p!==e&&(Y=l,p=Be()),l=p,l===e&&(l=s,t.substr(s,5)===Tr?(p=Tr,s+=5):(p=e,V===0&&te(zt)),p!==e&&(Y=l,p=u()),l=p),l}function ih(){var l,p,g,y,C,w;return l=s,p=s,g=ds(),g!==e?(y=s,t.charCodeAt(s)===46?(C=oe,s++):(C=e,V===0&&te(vt)),C!==e?(w=_c(),w!==e?(C=[C,w],y=C):(s=y,y=e)):(s=y,y=e),y===e&&(y=null),y!==e?(it.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(Jt)),C!==e?(w=ds(),w!==e?(g=[g,y,C,w],p=g):(s=p,p=e)):(s=p,p=e)):(s=p,p=e)):(s=p,p=e),p!==e?l=t.substring(l,s):l=p,l===e&&(l=s,p=s,g=ds(),g!==e?(t.charCodeAt(s)===46?(y=oe,s++):(y=e,V===0&&te(vt)),y!==e?(C=_c(),C!==e?(g=[g,y,C],p=g):(s=p,p=e)):(s=p,p=e)):(s=p,p=e),p!==e?l=t.substring(l,s):l=p),l}function Vi(){var l,p,g,y,C;if(l=s,j.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(Mt)),p!==e){for(g=s,y=[],Br.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(On));C!==e;)y.push(C),Br.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(On));y!==e?g=t.substring(g,s):g=y,g!==e?(j.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Mt)),y!==e?(Y=l,p=tt(g),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;if(l===e){if(l=s,qn.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(rn)),p!==e){for(g=s,y=[],De.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(qt));C!==e;)y.push(C),De.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(qt));y!==e?g=t.substring(g,s):g=y,g!==e?(qn.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(rn)),y!==e?(Y=l,p=tt(g),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;l===e&&(l=nh(),l===e&&(l=s,p=ih(),p!==e&&(Y=l,p=nn(p)),l=p,l===e&&(l=s,p=ds(),p!==e&&(Y=l,p=Xn(p)),l=p)))}return l}function xa(){var l,p,g,y,C,w,B,U,A,F,z,Q,ne,se,st,jn,Dr;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=cs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e)if(Y=s,B=zr(p,y,w),B?B=void 0:B=e,B!==e){if(U=[],A=s,F=s,z=pe(),z!==e?F=t.substring(F,s):F=z,F!==e?(z=s,Q=ii(),Q===e&&(Q=s,ne=s,V++,se=vn(),V--,se===e?ne=void 0:(s=ne,ne=e),ne===e&&(ne=s,V++,se=s,st=zi(),st!==e?(jn=Qt(),jn!==e?(Y=s,Dr=Yn(p,y,w,F,jn),Dr?Dr=void 0:Dr=e,Dr!==e?(st=[st,jn,Dr],se=st):(s=se,se=e)):(s=se,se=e)):(s=se,se=e),V--,se===e?ne=void 0:(s=ne,ne=e)),ne!==e?(se=cn(),se!==e?(st=ii(),st===e&&(st=null),st!==e?(ne=[ne,se,st],Q=ne):(s=Q,Q=e)):(s=Q,Q=e)):(s=Q,Q=e)),Q!==e?z=t.substring(z,s):z=Q,z!==e?(Y=A,F=on(p,y,w,F,z),A=F):(s=A,A=e)):(s=A,A=e),A!==e)for(;A!==e;)U.push(A),A=s,F=s,z=pe(),z!==e?F=t.substring(F,s):F=z,F!==e?(z=s,Q=ii(),Q===e&&(Q=s,ne=s,V++,se=vn(),V--,se===e?ne=void 0:(s=ne,ne=e),ne===e&&(ne=s,V++,se=s,st=zi(),st!==e?(jn=Qt(),jn!==e?(Y=s,Dr=Yn(p,y,w,F,jn),Dr?Dr=void 0:Dr=e,Dr!==e?(st=[st,jn,Dr],se=st):(s=se,se=e)):(s=se,se=e)):(s=se,se=e),V--,se===e?ne=void 0:(s=ne,ne=e)),ne!==e?(se=cn(),se!==e?(st=ii(),st===e&&(st=null),st!==e?(ne=[ne,se,st],Q=ne):(s=Q,Q=e)):(s=Q,Q=e)):(s=Q,Q=e)),Q!==e?z=t.substring(z,s):z=Q,z!==e?(Y=A,F=on(p,y,w,F,z),A=F):(s=A,A=e)):(s=A,A=e);else U=e;U!==e?(A=s,F=pe(),F!==e?A=t.substring(A,s):A=F,A!==e?(F=s,z=zi(),z!==e?(Q=Qt(),Q!==e?(Y=s,ne=X(p,y,w,U,A,Q),ne?ne=void 0:ne=e,ne!==e?(se=ii(),se===e&&(se=null),se!==e?(Y=F,z=kn(p,y,w,U,A,Q),F=z):(s=F,F=e)):(s=F,F=e)):(s=F,F=e)):(s=F,F=e),F!==e?(Y=s,z=Ir(p,y,w,U,A,F),z?z=void 0:z=e,z!==e?(Y=l,p=ei(p,y,w,U,A,F),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Ui(){var l,p,g,y,C,w,B,U,A;if(l=s,p=s,V++,g=s,y=pe(),y!==e?(C=vn(),C===e&&(C=si()),C!==e?(y=[y,C],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=un()),V--,g===e?p=void 0:(s=p,p=e),p!==e){for(g=[],y=At();y!==e;)g.push(y),y=At();if(g!==e){if(y=s,C=[],w=s,Cr.test(t.charAt(s))?(B=t.charAt(s),s++):(B=e,V===0&&te(Oi)),B!==e){for(U=[],A=At();A!==e;)U.push(A),A=At();U!==e?(B=[B,U],w=B):(s=w,w=e)}else s=w,w=e;if(w!==e)for(;w!==e;)if(C.push(w),w=s,Cr.test(t.charAt(s))?(B=t.charAt(s),s++):(B=e,V===0&&te(Oi)),B!==e){for(U=[],A=At();A!==e;)U.push(A),A=At();U!==e?(B=[B,U],w=B):(s=w,w=e)}else s=w,w=e;else C=e;C!==e?y=t.substring(y,s):y=C,y!==e?(C=Bi(),C!==e?(Y=l,p=qi(),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e}else s=l,l=e;return l}function gr(){var l,p,g,y,C;return l=s,p=s,g=Ui(),g===e&&(g=s,Y=s,y=ti(),y?y=void 0:y=e,y!==e?(C=un(),C!==e?(y=[y,C],g=y):(s=g,g=e)):(s=g,g=e)),g!==e?p=t.substring(p,s):p=g,p!==e&&(Y=l,p=Et()),l=p,l}function qr(){var l,p;return l=s,p=Vt(),p!==e&&(Y=l,p=Mr(p)),l=p,l}function Ca(){var l,p,g,y,C,w,B,U,A,F,z;if(l=s,Y=s,p=ri(),p?p=void 0:p=e,p!==e){if(g=s,y=[],C=s,w=s,V++,B=Ui(),V--,B===e?w=void 0:(s=w,w=e),w!==e?(B=qr(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e),C!==e)for(;C!==e;)y.push(C),C=s,w=s,V++,B=Ui(),V--,B===e?w=void 0:(s=w,w=e),w!==e?(B=qr(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e);else y=e;if(y!==e?g=t.substring(g,s):g=y,g!==e)if(y=s,C=Ui(),C!==e&&(Y=y,C=Dn(g,C)),y=C,y!==e){if(C=[],w=s,B=s,U=[],A=s,F=s,V++,z=gr(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=qr(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e),A!==e)for(;A!==e;)U.push(A),A=s,F=s,V++,z=gr(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=qr(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);else U=e;if(U!==e?B=t.substring(B,s):B=U,B!==e?(U=s,A=gr(),A!==e&&(Y=U,A=Vr(g,y,B,A)),U=A,U!==e?(Y=w,B=mo(g,y,B,U),w=B):(s=w,w=e)):(s=w,w=e),w===e&&(w=s,B=s,V++,U=Ui(),V--,U===e?B=void 0:(s=B,B=e),B!==e?(U=s,V++,A=gr(),V--,A===e?U=void 0:(s=U,U=e),U!==e?(A=qr(),A!==e?(Y=w,B=Fr(g,y,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e)),w!==e)for(;w!==e;){if(C.push(w),w=s,B=s,U=[],A=s,F=s,V++,z=gr(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=qr(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e),A!==e)for(;A!==e;)U.push(A),A=s,F=s,V++,z=gr(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=qr(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);else U=e;U!==e?B=t.substring(B,s):B=U,B!==e?(U=s,A=gr(),A!==e&&(Y=U,A=Vr(g,y,B,A)),U=A,U!==e?(Y=w,B=mo(g,y,B,U),w=B):(s=w,w=e)):(s=w,w=e),w===e&&(w=s,B=s,V++,U=Ui(),V--,U===e?B=void 0:(s=B,B=e),B!==e?(U=s,V++,A=gr(),V--,A===e?U=void 0:(s=U,U=e),U!==e?(A=qr(),A!==e?(Y=w,B=Fr(g,y,A),w=B):(s=w,w=e)):(s=w,w=e)):(s=w,w=e))}else C=e;C!==e?(Y=s,w=sn(g,y,C),w?w=void 0:w=e,w!==e?(Y=l,p=Er(g,y,C),l=p):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e}else s=l,l=e;if(l===e){if(l=s,p=[],g=s,y=s,C=s,w=s,V++,B=gr(),V--,B===e?w=void 0:(s=w,w=e),w!==e?(B=qr(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e),C!==e?y=t.substring(y,s):y=C,y!==e){for(C=[],w=gr();w!==e;)C.push(w),w=gr();C!==e?(Y=g,y=Nn(y,C),g=y):(s=g,g=e)}else s=g,g=e;if(g!==e)for(;g!==e;)if(p.push(g),g=s,y=s,C=s,w=s,V++,B=gr(),V--,B===e?w=void 0:(s=w,w=e),w!==e?(B=qr(),B!==e?(w=[w,B],C=w):(s=C,C=e)):(s=C,C=e),C!==e?y=t.substring(y,s):y=C,y!==e){for(C=[],w=gr();w!==e;)C.push(w),w=gr();C!==e?(Y=g,y=Nn(y,C),g=y):(s=g,g=e)}else s=g,g=e;else p=e;if(p!==e&&(Y=l,p=wn(p)),l=p,l===e)if(l=[],p=qr(),p!==e)for(;p!==e;)l.push(p),p=qr();else l=e}return l}function Ea(){var l,p,g,y,C,w,B,U,A,F,z,Q,ne,se,st;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=cs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e)if(Y=s,B=mr(p,y,w),B?B=void 0:B=e,B!==e)if(Y=s,U=Yo(p,y,w),U?U=void 0:U=e,U!==e){for(A=s,F=[],z=un();z!==e;)F.push(z),z=un();if(F!==e)if(z=Ca(),z!==e){for(Q=[],ne=un();ne!==e;)Q.push(ne),ne=un();Q!==e?(Y=A,F=ho(p,y,w,z),A=F):(s=A,A=e)}else s=A,A=e;else s=A,A=e;A!==e?(F=s,z=pe(),z!==e?F=t.substring(F,s):F=z,F!==e?(z=s,Q=zi(),Q!==e?(ne=Qt(),ne!==e?(Y=s,se=X(p,y,w,A,F,ne),se?se=void 0:se=e,se!==e?(st=ii(),st===e&&(st=null),st!==e?(Y=z,Q=Ur(p,y,w,A,F,ne),z=Q):(s=z,z=e)):(s=z,z=e)):(s=z,z=e)):(s=z,z=e),z!==e?(Y=s,Q=Ir(p,y,w,A,F,z),Q?Q=void 0:Q=e,Q!==e?(Y=l,p=Rn(p,y,w,A,F,z),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function _a(){var l,p,g,y,C,w,B,U,A,F,z,Q,ne;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=cs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e){if(B=[],U=s,A=un(),A===e&&(A=xa(),A===e&&(A=Ea(),A===e&&(A=_a(),A===e&&(A=Fa(),A===e&&(A=Oa(),A===e&&(A=qa(),A===e&&(A=Ta(),A===e&&(A=Ia(),A===e&&(A=Aa(),A===e&&(A=Sa(),A===e&&(A=Pa()))))))))))),A!==e&&(Y=U,A=go(p,y,w,A)),U=A,U===e){for(U=s,A=s,F=[],z=At();z!==e;)F.push(z),z=At();if(F!==e?A=t.substring(A,s):A=F,A!==e){if(F=s,z=[],Q=Vt(),Q!==e)for(;Q!==e;)z.push(Q),Q=Vt();else z=e;z!==e?F=t.substring(F,s):F=z,F!==e?(Y=U,A=yo(p,y,w,A,F),U=A):(s=U,U=e)}else s=U,U=e}for(;U!==e;)if(B.push(U),U=s,A=un(),A===e&&(A=xa(),A===e&&(A=Ea(),A===e&&(A=_a(),A===e&&(A=Fa(),A===e&&(A=Oa(),A===e&&(A=qa(),A===e&&(A=Ta(),A===e&&(A=Ia(),A===e&&(A=Aa(),A===e&&(A=Sa(),A===e&&(A=Pa()))))))))))),A!==e&&(Y=U,A=go(p,y,w,A)),U=A,U===e){for(U=s,A=s,F=[],z=At();z!==e;)F.push(z),z=At();if(F!==e?A=t.substring(A,s):A=F,A!==e){if(F=s,z=[],Q=Vt(),Q!==e)for(;Q!==e;)z.push(Q),Q=Vt();else z=e;z!==e?F=t.substring(F,s):F=z,F!==e?(Y=U,A=yo(p,y,w,A,F),U=A):(s=U,U=e)}else s=U,U=e}B!==e?(U=s,A=pe(),A!==e?U=t.substring(U,s):U=A,U!==e?(A=s,F=zi(),F!==e?(z=Qt(),z!==e?(Y=s,Q=X(p,y,w,B,U,z),Q?Q=void 0:Q=e,Q!==e?(ne=ii(),ne===e&&(ne=null),ne!==e?(Y=A,F=es(p,y,w,B,U,z),A=F):(s=A,A=e)):(s=A,A=e)):(s=A,A=e)):(s=A,A=e),A!==e?(Y=s,F=Ir(p,y,w,B,U,A),F?F=void 0:F=e,F!==e?(Y=l,p=Di(p,y,w,B,U,A),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function oh(){var l,p,g;if(l=s,p=[],g=Vt(),g!==e)for(;g!==e;)p.push(g),g=Vt();else p=e;return p!==e&&(Y=l,p=ka()),l=p,l}function h1(){var l,p,g,y;if(l=s,p=[],g=s,y=_r(),y!==e&&(Y=g,y=ts()),g=y,g===e){if(g=[],Ni.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ri)),y!==e)for(;y!==e;)g.push(y),Ni.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ri));else g=e;g===e&&(g=Vt())}if(g!==e){for(;g!==e;)if(p.push(g),g=s,y=_r(),y!==e&&(Y=g,y=ts()),g=y,g===e){if(g=[],Ni.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ri)),y!==e)for(;y!==e;)g.push(y),Ni.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,V===0&&te(Ri));else g=e;g===e&&(g=Vt())}}else p=e;return p!==e&&(Y=l,p=rs(p)),l=p,l}function Aa(){var l,p,g,y,C,w,B,U,A,F,z,Q;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=s,V++,y=vn(),V--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=si(),y!==e)if(C=pe(),C!==e)if(w=_r(),w===e&&(w=null),w!==e)if(Y=s,B=ns(p,y),B?B=void 0:B=e,B!==e){for(U=s,A=[],F=s,z=s,V++,Q=_r(),V--,Q===e?z=void 0:(s=z,z=e),z!==e?(Q=Vt(),Q!==e?(z=[z,Q],F=z):(s=F,F=e)):(s=F,F=e);F!==e;)A.push(F),F=s,z=s,V++,Q=_r(),V--,Q===e?z=void 0:(s=z,z=e),z!==e?(Q=Vt(),Q!==e?(z=[z,Q],F=z):(s=F,F=e)):(s=F,F=e);A!==e?U=t.substring(U,s):U=A,U!==e?(Y=l,p=wa(p,y,U),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Sa(){var l,p,g,y,C,w,B,U,A;return l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e?(g=s,V++,y=vn(),V--,y===e?g=void 0:(s=g,g=e),g!==e?(y=si(),y!==e?(C=pe(),C!==e?(w=_r(),w===e&&(w=null),w!==e?(Y=s,B=Hr(p,y),B?B=void 0:B=e,B!==e?(Y=s,U=ni(p,y),U?U=void 0:U=e,U!==e?(A=Ca(),A!==e?(Y=l,p=Ye(p,y,A),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Pa(){var l,p,g,y,C,w,B,U,A,F,z;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=s,V++,y=vn(),V--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=si(),y!==e)if(C=pe(),C!==e)if(w=_r(),w===e&&(w=null),w!==e){for(B=s,U=[],A=s,F=s,V++,z=_r(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=Vt(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);A!==e;)U.push(A),A=s,F=s,V++,z=_r(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=Vt(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);U!==e?B=t.substring(B,s):B=U,B!==e?(Y=l,p=Li(p,y,B),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function sh(){var l,p,g,y,C,w,B,U,A,F,z;for(l=s,p=[],g=cn();g!==e;)p.push(g),g=cn();if(p!==e)if(g=oi(),g!==e){if(y=[],C=s,w=pe(),w!==e)if(t.substr(s,2)===$o?(B=$o,s+=2):(B=e,V===0&&te(Gr)),B!==e)if(U=pe(),U!==e){if(A=[],F=cn(),F!==e)for(;F!==e;)A.push(F),F=cn();else A=e;A!==e?(F=pe(),F!==e?(z=oi(),z!==e?(Y=C,w=ae(p,A),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)}else s=C,C=e;else s=C,C=e;else s=C,C=e;for(;C!==e;)if(y.push(C),C=s,w=pe(),w!==e)if(t.substr(s,2)===$o?(B=$o,s+=2):(B=e,V===0&&te(Gr)),B!==e)if(U=pe(),U!==e){if(A=[],F=cn(),F!==e)for(;F!==e;)A.push(F),F=cn();else A=e;A!==e?(F=pe(),F!==e?(z=oi(),z!==e?(Y=C,w=ae(p,A),C=w):(s=C,C=e)):(s=C,C=e)):(s=C,C=e)}else s=C,C=e;else s=C,C=e;else s=C,C=e;y!==e?(Y=l,p=we(p,y),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function Ta(){var l,p,g,y,C,w,B;return l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e?(t.substr(s,6)===H?(g=H,s+=6):(g=e,V===0&&te(ft)),g!==e?(y=pe(),y!==e?(C=s,w=Da(),w!==e?C=t.substring(C,s):C=w,C!==e?(w=pe(),w!==e?(B=sh(),B!==e?(Y=l,p=an(p,g,C,B),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Ia(){var l,p,g,y,C,w,B,U;return l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e?(t.substr(s,7)===$e?(g=$e,s+=7):(g=e,V===0&&te(He)),g!==e?(y=pe(),y!==e?(C=s,w=Qt(),w===e&&(w=s,Ln.test(t.charAt(s))?(B=t.charAt(s),s++):(B=e,V===0&&te(ji)),B!==e?(t.substr(s,2)===is?(U=is,s+=2):(U=e,V===0&&te(m)),U!==e?(B=[B,U],w=B):(s=w,w=e)):(s=w,w=e)),w!==e?C=t.substring(C,s):C=w,C!==e?(w=pe(),w!==e?(B=ai(),B!==e?(Y=l,p=x(p,g,C,B),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Fa(){var l,p,g,y,C,w,B,U,A,F,z,Q;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=fs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e)if(Y=s,B=S(p,g,y,w),B?B=void 0:B=e,B!==e){for(U=s,A=[],F=s,z=s,V++,Q=_r(),V--,Q===e?z=void 0:(s=z,z=e),z!==e?(Q=Vt(),Q!==e?(z=[z,Q],F=z):(s=F,F=e)):(s=F,F=e);F!==e;)A.push(F),F=s,z=s,V++,Q=_r(),V--,Q===e?z=void 0:(s=z,z=e),z!==e?(Q=Vt(),Q!==e?(z=[z,Q],F=z):(s=F,F=e)):(s=F,F=e);A!==e?U=t.substring(U,s):U=A,U!==e?(Y=l,p=b(p,g,y,w,U),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Oa(){var l,p,g,y,C,w,B,U,A;return l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e?(g=fs(),g!==e?(y=Qt(),y!==e?(C=pe(),C!==e?(w=ai(),w!==e?(Y=s,B=E(p,g,y,w),B?B=void 0:B=e,B!==e?(Y=s,U=I(p,g,y,w),U?U=void 0:U=e,U!==e?(A=Ca(),A!==e?(Y=l,p=R(p,g,y,w,A),l=p):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function qa(){var l,p,g,y,C,w,B,U,A,F,z;if(l=s,p=s,g=pe(),g!==e?p=t.substring(p,s):p=g,p!==e)if(g=fs(),g!==e)if(y=Qt(),y!==e)if(C=pe(),C!==e)if(w=ai(),w!==e){for(B=s,U=[],A=s,F=s,V++,z=_r(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=Vt(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);A!==e;)U.push(A),A=s,F=s,V++,z=_r(),V--,z===e?F=void 0:(s=F,F=e),F!==e?(z=Vt(),z!==e?(F=[F,z],A=F):(s=A,A=e)):(s=A,A=e);U!==e?B=t.substring(B,s):B=U,B!==e?(Y=l,p=Z(p,g,y,w,B),l=p):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Da(){var l,p,g,y,C;if(l=s,p=s,We.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,V===0&&te(Nt)),g!==e){if(y=[],or.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(pr)),C!==e)for(;C!==e;)y.push(C),or.test(t.charAt(s))?(C=t.charAt(s),s++):(C=e,V===0&&te(pr));else y=e;y!==e?(g=[g,y],p=g):(s=p,p=e)}else s=p,p=e;return p!==e?l=t.substring(l,s):l=p,l}function g1(){var l,p;for(V++,l=[],os.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(ss));p!==e;)l.push(p),os.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(ss));return V--,l===e&&(p=e,V===0&&te(hr)),l}function y1(){var l,p;for(V++,l=[],os.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(ss));p!==e;)l.push(p),os.test(t.charAt(s))?(p=t.charAt(s),s++):(p=e,V===0&&te(ss));return V--,l===e&&(p=e,V===0&&te(Jm)),l}function ms(l){return l!==l.toLowerCase()&&l!==l.toUpperCase()}function ah(l){return l===l.toUpperCase()}function Hi(l){return l.reduce((p,g)=>Array.isArray(g)?p.concat(Hi(g)):p.concat(g),[])}function lh(l){return["code","comment","data","defn","head","input","item","markdown","nested","output","para","picture","pod","table","toc"].includes(l)||ah(l)||l.match(/^(head|item)\d+$/)||ms(l)}function uh(l,p){return l.length==0?p:p.indexOf(l)==0?p.replace(l,""):p.replace(/^\s+/,"")}if(ls=i(),ls!==e&&s===t.length)return ls;throw ls!==e&&s<t.length&&te(Xm()),yc(va,ln<t.length?t.charAt(ln):null,ln<t.length?bo(ln,ln+1):bo(ln,ln))}nd.exports={SyntaxError:wi,parse:vk}});var ad=ce((Cx,sd)=>{"use strict";function Ck(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function vi(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,vi)}Ck(vi,Error);vi.buildMessage=function(t,r){var e={literal:function(h){return'"'+i(h.text)+'"'},class:function(h){var d="",$;for($=0;$<h.parts.length;$++)d+=h.parts[$]instanceof Array?o(h.parts[$][0])+"-"+o(h.parts[$][1]):o(h.parts[$]);return"["+(h.inverted?"^":"")+d+"]"},any:function(h){return"any character"},end:function(h){return"end of input"},other:function(h){return h.description}};function n(h){return h.charCodeAt(0).toString(16).toUpperCase()}function i(h){return h.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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function o(h){return h.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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function a(h){return e[h.type](h)}function c(h){var d=new Array(h.length),$,v;for($=0;$<h.length;$++)d[$]=a(h[$]);if(d.sort(),d.length>0){for($=1,v=1;$<d.length;$++)d[$-1]!==d[$]&&(d[v]=d[$],v++);d.length=v}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function f(h){return h?'"'+i(h)+'"':"end of input"}return"Expected "+c(t)+" but "+f(r)+" found."};function Ek(t,r){r=r!==void 0?r:{};var e={},n={Expression:ei},i=ei,o="A",a=De("A",!1),c="V",f=De("V",!1),h="R",d=De("R",!1),$="B",v=De("B",!1),k="I",_=De("I",!1),T="C",L=De("C",!1),N="D",ee=De("D",!1),re="E",de=De("E",!1),fe="K",J=De("K",!1),me="L",be=De("L",!1),ke="S",Oe=De("S",!1),ve="T",xe=De("T",!1),ue="U",$e=De("U",!1),He="Z",H=De("Z",!1),ft="N",je=De("N",!1),nt="X",Ve=De("X",!1),O=/^[a-zA-Z]/,D=qt([["a","z"],["A","Z"]],!1,!1),Kt=/^[a-zA-Z0-9_\-]/,Tt=qt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),at=/^[ \t\f]/,mt=qt([" "," ","\f"],!1,!1),ht=function(m){return!(r.allowed||[]).length||(r.allowed||[]).includes(m)},he=nn(),vr=function(m){return m},Dt=function(m){return m==="A"},Wt=function(m,x){return{content:x,type:"fcode",name:m}},or=function(m){return m==="D"},pr=function(m,x,S){return ji(S)},Zt=function(m,x,S){return{content:x,type:"fcode",name:m,synonyms:S}},Zn=function(m){return m==="V"},Sn=function(m,x){return{content:x,type:"fcode",name:m}},gt="<",yt=De("<",!1),jt=">",$t=De(">",!1),bt=function(){return Br()},kt="\xAB",pt=De("\xAB",!1),It="\xBB",Ft=De("\xBB",!1),xr=function(m){return m},sr=function(m){return m.code==="C"},W=function(m,x,S){return S===m.end_tag},ie=function(m,x,S){return{content:x,type:"fcode",name:m.code}},ye="|",Se=De("|",!1),Ot=function(m){return m},jr=function(m){return m.code==="L"},Ue=function(m,x,S){return S},lt=function(m,x,S,b){return b===m.end_tag},wt=function(m,x,S,b){return{content:x,type:"fcode",name:m.code,meta:S}},dr=";",Ge=De(";",!1),$n=/^[ \xA0\u2001\t\f\u2008]/,Bt=qt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),Pn=function(m,x){return ji([m,x])},Ii=function(m){return[m]},Pr=function(m){return m==="X"},Jn=function(m,x,S){return{content:x,type:"fcode",name:m,entry:S}},Fi=function(m){return m==="S"},fo=function(m){return m==="Z"},Tn=/^[0-9]/,Qn=qt([["0","9"]],!1,!1),In="0d",Fn=De("0d",!1),po=function(m){return parseInt(m,10)},bn="0o",q=De("0o",!1),P=function(m){return parseInt(m,8)},M="0b",G=De("0b",!1),K=function(m){return parseInt(m,2)},ae="0x",we=De("0x",!1),Ae=/^[0-9A-Fa-f]/,qe=qt([["0","9"],["A","F"],["a","f"]],!1,!1),tt=function(){return parseInt(Br())},_e=function(m){return{type:"number",value:parseInt(m,10)}},Ke=function(m){return m==="E"},ut=function(m,x){return ji(x)},Ze=function(m,x){return{content:x||[],type:"fcode",name:m}},Te=function(m){return m},Xe=function(m,x){return{code:m,begin_tag:x,end_tag:is(x)}},Be=function(m){return m.code!=="C"},Tr=function(m,x,S){return S===m.end_tag},zt=function(m,x,S){return{content:x,type:"fcode",name:m.code}},u=0,oe=0,vt=[{line:1,column:1}],it=0,Jt=[],j=0,Mt;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');i=n[r.startRule]}function Br(){return t.substring(oe,u)}function On(){return on(oe,u)}function qn(m,x){throw x=x!==void 0?x:on(oe,u),Ir([zr(m)],t.substring(oe,u),x)}function rn(m,x){throw x=x!==void 0?x:on(oe,u),kn(m,x)}function De(m,x){return{type:"literal",text:m,ignoreCase:x}}function qt(m,x,S){return{type:"class",parts:m,inverted:x,ignoreCase:S}}function nn(){return{type:"any"}}function Xn(){return{type:"end"}}function zr(m){return{type:"other",description:m}}function Yn(m){var x=vt[m],S;if(x)return x;for(S=m-1;!vt[S];)S--;for(x=vt[S],x={line:x.line,column:x.column};S<m;)t.charCodeAt(S)===10?(x.line++,x.column=1):x.column++,S++;return vt[m]=x,x}function on(m,x){var S=Yn(m),b=Yn(x);return{start:{offset:m,line:S.line,column:S.column},end:{offset:x,line:b.line,column:b.column}}}function X(m){u<it||(u>it&&(it=u,Jt=[]),Jt.push(m))}function kn(m,x){return new vi(m,null,null,x)}function Ir(m,x,S){return new vi(vi.buildMessage(m,x),m,x,S)}function ei(){var m,x;for(m=[],x=Cr(),x===e&&(x=Li(),x===e&&(x=Gr(),x===e&&(x=Mr())));x!==e;)m.push(x),x=Cr(),x===e&&(x=Li(),x===e&&(x=Gr(),x===e&&(x=Mr())));return m}function Cr(){var m;return m=Dn(),m===e&&(m=yo(),m===e&&(m=Nn(),m===e&&(m=Vr(),m===e&&(m=wa(),m===e&&(m=mo(),m===e&&(m=Yo(),m===e&&(m=go(),m===e&&(m=es())))))))),m}function Oi(){var m;return t.charCodeAt(u)===65?(m=o,u++):(m=e,j===0&&X(a)),m===e&&(t.charCodeAt(u)===86?(m=c,u++):(m=e,j===0&&X(f)),m===e&&(t.charCodeAt(u)===82?(m=h,u++):(m=e,j===0&&X(d)),m===e&&(t.charCodeAt(u)===66?(m=$,u++):(m=e,j===0&&X(v)),m===e&&(t.charCodeAt(u)===73?(m=k,u++):(m=e,j===0&&X(_)),m===e&&(t.charCodeAt(u)===67?(m=T,u++):(m=e,j===0&&X(L)),m===e&&(t.charCodeAt(u)===68?(m=N,u++):(m=e,j===0&&X(ee)),m===e&&(t.charCodeAt(u)===69?(m=re,u++):(m=e,j===0&&X(de)),m===e&&(t.charCodeAt(u)===75?(m=fe,u++):(m=e,j===0&&X(J)),m===e&&(t.charCodeAt(u)===76?(m=me,u++):(m=e,j===0&&X(be)),m===e&&(t.charCodeAt(u)===83?(m=ke,u++):(m=e,j===0&&X(Oe)),m===e&&(t.charCodeAt(u)===84?(m=ve,u++):(m=e,j===0&&X(xe)),m===e&&(t.charCodeAt(u)===85?(m=ue,u++):(m=e,j===0&&X($e)),m===e&&(t.charCodeAt(u)===90?(m=He,u++):(m=e,j===0&&X(H)),m===e&&(t.charCodeAt(u)===78?(m=ft,u++):(m=e,j===0&&X(je)),m===e&&(t.charCodeAt(u)===88?(m=nt,u++):(m=e,j===0&&X(Ve))))))))))))))))),m}function qi(){var m,x,S,b,E;if(m=u,x=u,O.test(t.charAt(u))?(S=t.charAt(u),u++):(S=e,j===0&&X(D)),S!==e){if(b=[],Kt.test(t.charAt(u))?(E=t.charAt(u),u++):(E=e,j===0&&X(Tt)),E!==e)for(;E!==e;)b.push(E),Kt.test(t.charAt(u))?(E=t.charAt(u),u++):(E=e,j===0&&X(Tt));else b=e;b!==e?(S=[S,b],x=S):(u=x,x=e)}else u=x,x=e;return x!==e?m=t.substring(m,u):m=x,m}function ti(){var m,x;for(m=[],at.test(t.charAt(u))?(x=t.charAt(u),u++):(x=e,j===0&&X(mt));x!==e;)m.push(x),at.test(t.charAt(u))?(x=t.charAt(u),u++):(x=e,j===0&&X(mt));return m}function Et(){var m,x,S;return m=u,x=Oi(),x!==e?(oe=u,S=ht(x),S?S=void 0:S=e,S!==e?(x=[x,S],m=x):(u=m,m=e)):(u=m,m=e),m}function Mr(){var m,x;return m=u,t.length>u?(x=t.charAt(u),u++):(x=e,j===0&&X(he)),x!==e?m=t.substring(m,u):m=x,m}function ri(){var m,x,S,b,E;return m=u,x=u,j++,S=Ye(),j--,S===e?x=void 0:(u=x,x=e),x!==e?(S=ti(),S!==e?(b=u,E=qi(),E===e&&(E=null),E!==e?b=t.substring(b,u):b=E,b!==e?(E=ti(),E!==e?(oe=m,x=vr(b),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m===e&&(m=null),m}function Dn(){var m,x,S,b,E;return m=u,x=Hr(),x!==e?(oe=u,S=Dt(x),S?S=void 0:S=e,S!==e?(b=ri(),b!==e?(E=Ye(),E!==e?(oe=m,x=Wt(x,b),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m}function Vr(){var m,x,S,b,E,I,R,Z;if(m=u,x=Hr(),x!==e)if(oe=u,S=or(x),S?S=void 0:S=e,S!==e){if(b=[],E=mr(),E!==e)for(;E!==e;)b.push(E),E=mr();else b=e;if(b!==e){if(E=u,I=wn(),I!==e){for(R=[],Z=Rn();Z!==e;)R.push(Z),Z=Rn();R!==e?(oe=E,I=pr(x,b,R),E=I):(u=E,E=e)}else u=E,E=e;E===e&&(E=null),E!==e?(I=Ye(),I!==e?(oe=m,x=Zt(x,b,E),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e}else u=m,m=e;else u=m,m=e;return m}function mo(){var m,x,S,b,E,I;if(m=u,x=Hr(),x!==e)if(oe=u,S=Zn(x),S?S=void 0:S=e,S!==e){if(b=u,E=[],I=Er(),I!==e)for(;I!==e;)E.push(I),I=Er();else E=e;E!==e?b=t.substring(b,u):b=E,b!==e?(E=Ye(),E!==e?(oe=m,x=Sn(x,b),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function Fr(){var m;return t.charCodeAt(u)===66?(m=$,u++):(m=e,j===0&&X(v)),m}function sn(){var m,x,S,b,E;return m=u,x=u,S=u,j++,b=Fr(),j--,b===e?S=void 0:(u=S,S=e),S!==e?(t.length>u?(b=t.charAt(u),u++):(b=e,j===0&&X(he)),b!==e?(S=[S,b],x=S):(u=x,x=e)):(u=x,x=e),x!==e?(t.charCodeAt(u)===60?(S=gt,u++):(S=e,j===0&&X(yt)),S!==e?(b=an(),b!==e?(t.charCodeAt(u)===62?(E=jt,u++):(E=e,j===0&&X($t)),E!==e?(oe=m,x=bt(),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m===e&&(m=u,x=u,S=u,j++,b=Fr(),j--,b===e?S=void 0:(u=S,S=e),S!==e?(t.length>u?(b=t.charAt(u),u++):(b=e,j===0&&X(he)),b!==e?(S=[S,b],x=S):(u=x,x=e)):(u=x,x=e),x!==e?(t.charCodeAt(u)===171?(S=kt,u++):(S=e,j===0&&X(pt)),S!==e?(b=an(),b!==e?(t.charCodeAt(u)===187?(E=It,u++):(E=e,j===0&&X(Ft)),E!==e?(oe=m,x=bt(),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)),m}function Er(){var m,x,S,b,E,I,R,Z;if(m=u,x=u,S=[],b=u,E=u,I=u,j++,t.charCodeAt(u)===60?(R=gt,u++):(R=e,j===0&&X(yt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(t.length>u?(R=t.charAt(u),u++):(R=e,j===0&&X(he)),R!==e?(I=[I,R],E=I):(u=E,E=e)):(u=E,E=e),E===e&&(E=null),E!==e?(t.charCodeAt(u)===60?(I=gt,u++):(I=e,j===0&&X(yt)),I!==e?(R=Er(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===62?(Z=jt,u++):(Z=e,j===0&&X($t)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=u,E=u,I=u,j++,t.charCodeAt(u)===171?(R=kt,u++):(R=e,j===0&&X(pt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(t.length>u?(R=t.charAt(u),u++):(R=e,j===0&&X(he)),R!==e?(I=[I,R],E=I):(u=E,E=e)):(u=E,E=e),E===e&&(E=null),E!==e?(t.charCodeAt(u)===171?(I=kt,u++):(I=e,j===0&&X(pt)),I!==e?(R=Er(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===187?(Z=It,u++):(Z=e,j===0&&X(Ft)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=sn(),b===e&&(b=an()))),b!==e)for(;b!==e;)S.push(b),b=u,E=u,I=u,j++,t.charCodeAt(u)===60?(R=gt,u++):(R=e,j===0&&X(yt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(t.length>u?(R=t.charAt(u),u++):(R=e,j===0&&X(he)),R!==e?(I=[I,R],E=I):(u=E,E=e)):(u=E,E=e),E===e&&(E=null),E!==e?(t.charCodeAt(u)===60?(I=gt,u++):(I=e,j===0&&X(yt)),I!==e?(R=Er(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===62?(Z=jt,u++):(Z=e,j===0&&X($t)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=u,E=u,I=u,j++,t.charCodeAt(u)===171?(R=kt,u++):(R=e,j===0&&X(pt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(t.length>u?(R=t.charAt(u),u++):(R=e,j===0&&X(he)),R!==e?(I=[I,R],E=I):(u=E,E=e)):(u=E,E=e),E===e&&(E=null),E!==e?(t.charCodeAt(u)===171?(I=kt,u++):(I=e,j===0&&X(pt)),I!==e?(R=Er(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===187?(Z=It,u++):(Z=e,j===0&&X(Ft)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=sn(),b===e&&(b=an())));else S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=xr(x)),m=x,m}function Nn(){var m,x,S,b,E,I;if(m=u,x=ni(),x!==e)if(oe=u,S=sr(x),S?S=void 0:S=e,S!==e){if(b=[],E=Er(),E!==e)for(;E!==e;)b.push(E),E=Er();else b=e;b!==e?(E=Ye(),E!==e?(oe=u,I=W(x,b,E),I?I=void 0:I=e,I!==e?(oe=m,x=ie(x,b,E),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function wn(){var m;return t.charCodeAt(u)===124?(m=ye,u++):(m=e,j===0&&X(Se)),m}function mr(){var m,x,S,b,E,I,R,Z,We;if(m=u,x=u,S=[],b=u,E=u,I=u,j++,t.charCodeAt(u)===60?(R=gt,u++):(R=e,j===0&&X(yt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Et(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(I=[I,R,Z],E=I):(u=E,E=e)):(u=E,E=e)):(u=E,E=e),E!==e?(t.charCodeAt(u)===60?(I=gt,u++):(I=e,j===0&&X(yt)),I!==e?(R=mr(),R!==e?(t.charCodeAt(u)===62?(Z=jt,u++):(Z=e,j===0&&X($t)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=u,E=u,I=u,j++,t.charCodeAt(u)===171?(R=kt,u++):(R=e,j===0&&X(pt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Et(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(I=[I,R,Z],E=I):(u=E,E=e)):(u=E,E=e)):(u=E,E=e),E!==e?(t.charCodeAt(u)===171?(I=kt,u++):(I=e,j===0&&X(pt)),I!==e?(R=mr(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===187?(Z=It,u++):(Z=e,j===0&&X(Ft)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=u,E=u,j++,I=wn(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(I=u,j++,R=Ye(),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Hr(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(Z=u,j++,We=Ln(),j--,We===e?Z=void 0:(u=Z,Z=e),Z!==e?(t.length>u?(We=t.charAt(u),u++):(We=e,j===0&&X(he)),We!==e?(E=[E,I,R,Z,We],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e))),b!==e)for(;b!==e;)S.push(b),b=u,E=u,I=u,j++,t.charCodeAt(u)===60?(R=gt,u++):(R=e,j===0&&X(yt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Et(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(I=[I,R,Z],E=I):(u=E,E=e)):(u=E,E=e)):(u=E,E=e),E!==e?(t.charCodeAt(u)===60?(I=gt,u++):(I=e,j===0&&X(yt)),I!==e?(R=mr(),R!==e?(t.charCodeAt(u)===62?(Z=jt,u++):(Z=e,j===0&&X($t)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=u,E=u,I=u,j++,t.charCodeAt(u)===171?(R=kt,u++):(R=e,j===0&&X(pt)),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Et(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(I=[I,R,Z],E=I):(u=E,E=e)):(u=E,E=e)):(u=E,E=e),E!==e?(t.charCodeAt(u)===171?(I=kt,u++):(I=e,j===0&&X(pt)),I!==e?(R=mr(),R===e&&(R=null),R!==e?(t.charCodeAt(u)===187?(Z=It,u++):(Z=e,j===0&&X(Ft)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=u,E=u,j++,I=wn(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(I=u,j++,R=Ye(),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Hr(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(Z=u,j++,We=Ln(),j--,We===e?Z=void 0:(u=Z,Z=e),Z!==e?(t.length>u?(We=t.charAt(u),u++):(We=e,j===0&&X(he)),We!==e?(E=[E,I,R,Z,We],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)));else S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=Ot(x)),m=x,m}function Yo(){var m,x,S,b,E,I,R,Z,We,Nt,hr;if(m=u,x=ni(),x!==e)if(oe=u,S=jr(x),S?S=void 0:S=e,S!==e){if(b=[],E=Nn(),E===e&&(E=mr()),E!==e)for(;E!==e;)b.push(E),E=Nn(),E===e&&(E=mr());else b=e;if(b!==e){if(E=u,I=wn(),I!==e){for(R=u,Z=[],We=u,Nt=u,j++,hr=Ye(),j--,hr===e?Nt=void 0:(u=Nt,Nt=e),Nt!==e?(t.length>u?(hr=t.charAt(u),u++):(hr=e,j===0&&X(he)),hr!==e?(Nt=[Nt,hr],We=Nt):(u=We,We=e)):(u=We,We=e);We!==e;)Z.push(We),We=u,Nt=u,j++,hr=Ye(),j--,hr===e?Nt=void 0:(u=Nt,Nt=e),Nt!==e?(t.length>u?(hr=t.charAt(u),u++):(hr=e,j===0&&X(he)),hr!==e?(Nt=[Nt,hr],We=Nt):(u=We,We=e)):(u=We,We=e);Z!==e?R=t.substring(R,u):R=Z,R!==e?(oe=E,I=Ue(x,b,R),E=I):(u=E,E=e)}else u=E,E=e;E===e&&(E=null),E!==e?(I=Ye(),I!==e?(oe=u,R=lt(x,b,E,I),R?R=void 0:R=e,R!==e?(oe=m,x=wt(x,b,E,I),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)}else u=m,m=e}else u=m,m=e;else u=m,m=e;return m}function ho(){var m,x,S,b,E,I;if(m=u,x=[],S=u,b=u,j++,t.charCodeAt(u)===59?(E=dr,u++):(E=e,j===0&&X(Ge)),j--,E===e?b=void 0:(u=b,b=e),b!==e?(E=u,j++,I=Ye(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(t.length>u?(I=t.charAt(u),u++):(I=e,j===0&&X(he)),I!==e?(b=[b,E,I],S=b):(u=S,S=e)):(u=S,S=e)):(u=S,S=e),S!==e)for(;S!==e;)x.push(S),S=u,b=u,j++,t.charCodeAt(u)===59?(E=dr,u++):(E=e,j===0&&X(Ge)),j--,E===e?b=void 0:(u=b,b=e),b!==e?(E=u,j++,I=Ye(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(t.length>u?(I=t.charAt(u),u++):(I=e,j===0&&X(he)),I!==e?(b=[b,E,I],S=b):(u=S,S=e)):(u=S,S=e)):(u=S,S=e);else x=e;return x!==e?m=t.substring(m,u):m=x,m}function Ur(){var m;return $n.test(t.charAt(u))?(m=t.charAt(u),u++):(m=e,j===0&&X(Bt)),m}function Rn(){var m,x,S,b,E,I;if(m=u,x=ho(),x!==e){for(S=[],b=Ur();b!==e;)S.push(b),b=Ur();if(S!==e)if(t.charCodeAt(u)===59?(b=dr,u++):(b=e,j===0&&X(Ge)),b!==e){for(E=[],I=Ur();I!==e;)E.push(I),I=Ur();E!==e?(I=Rn(),I!==e?(oe=m,x=Pn(x,I),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e}else u=m,m=e;return m===e&&(m=u,x=ho(),x!==e&&(oe=m,x=Ii(x)),m=x),m}function go(){var m,x,S,b,E,I,R,Z;if(m=u,x=Hr(),x!==e)if(oe=u,S=Pr(x),S?S=void 0:S=e,S!==e){for(b=[],E=mr();E!==e;)b.push(E),E=mr();if(b!==e){if(E=u,I=wn(),I!==e){for(R=[],Z=Rn();Z!==e;)R.push(Z),Z=Rn();R!==e?(oe=E,I=pr(x,b,R),E=I):(u=E,E=e)}else u=E,E=e;E===e&&(E=null),E!==e?(I=Ye(),I!==e?(oe=m,x=Jn(x,b,E),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e}else u=m,m=e;else u=m,m=e;return m}function yo(){var m,x,S,b,E,I,R,Z;if(m=u,x=Hr(),x!==e)if(oe=u,S=Fi(x),S?S=void 0:S=e,S!==e){for(b=u,E=[],I=u,R=u,j++,Z=Ye(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(R=[R,Z],I=R):(u=I,I=e)):(u=I,I=e);I!==e;)E.push(I),I=u,R=u,j++,Z=Ye(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(R=[R,Z],I=R):(u=I,I=e)):(u=I,I=e);E!==e?b=t.substring(b,u):b=E,b!==e?(E=Ye(),E!==e?(oe=m,x=Wt(x,b),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function es(){var m,x,S,b,E,I,R,Z;if(m=u,x=Hr(),x!==e)if(oe=u,S=fo(x),S?S=void 0:S=e,S!==e){for(b=u,E=[],I=u,R=u,j++,Z=Ye(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(R=[R,Z],I=R):(u=I,I=e)):(u=I,I=e);I!==e;)E.push(I),I=u,R=u,j++,Z=Ye(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(R=[R,Z],I=R):(u=I,I=e)):(u=I,I=e);E!==e?b=t.substring(b,u):b=E,b!==e?(E=Ye(),E!==e?(oe=m,x=Wt(x,b),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function Di(){var m,x,S;if(m=u,x=[],Tn.test(t.charAt(u))?(S=t.charAt(u),u++):(S=e,j===0&&X(Qn)),S!==e)for(;S!==e;)x.push(S),Tn.test(t.charAt(u))?(S=t.charAt(u),u++):(S=e,j===0&&X(Qn));else x=e;return x!==e?m=t.substring(m,u):m=x,m}function ka(){var m,x,S;return m=u,t.substr(u,2)===In?(x=In,u+=2):(x=e,j===0&&X(Fn)),x!==e?(S=Di(),S!==e?(oe=m,x=po(S),m=x):(u=m,m=e)):(u=m,m=e),m}function ts(){var m,x,S;return m=u,t.substr(u,2)===bn?(x=bn,u+=2):(x=e,j===0&&X(q)),x!==e?(S=Di(),S!==e?(oe=m,x=P(S),m=x):(u=m,m=e)):(u=m,m=e),m}function Ni(){var m,x,S;return m=u,t.substr(u,2)===M?(x=M,u+=2):(x=e,j===0&&X(G)),x!==e?(S=Di(),S!==e?(oe=m,x=K(S),m=x):(u=m,m=e)):(u=m,m=e),m}function Ri(){var m,x,S,b,E,I;if(m=u,x=u,S=u,t.substr(u,2)===ae?(b=ae,u+=2):(b=e,j===0&&X(we)),b!==e){if(E=[],Ae.test(t.charAt(u))?(I=t.charAt(u),u++):(I=e,j===0&&X(qe)),I!==e)for(;I!==e;)E.push(I),Ae.test(t.charAt(u))?(I=t.charAt(u),u++):(I=e,j===0&&X(qe));else E=e;E!==e?(b=[b,E],S=b):(u=S,S=e)}else u=S,S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=tt()),m=x,m}function rs(){var m,x,S;return m=u,x=ti(),x!==e?(S=ts(),S===e&&(S=ka(),S===e&&(S=Ni(),S===e&&(S=Ri(),S===e&&(S=Di())))),S!==e?(oe=m,x=_e(S),m=x):(u=m,m=e)):(u=m,m=e),m}function ns(){var m,x,S,b,E,I;if(m=u,x=rs(),x!==e){for(S=[],b=Ur();b!==e;)S.push(b),b=Ur();if(S!==e)if(t.charCodeAt(u)===59?(b=dr,u++):(b=e,j===0&&X(Ge)),b!==e){for(E=[],I=Ur();I!==e;)E.push(I),I=Ur();E!==e?(I=ns(),I!==e?(oe=m,x=Pn(x,I),m=x):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e}else u=m,m=e;return m===e&&(m=u,x=rs(),x!==e&&(oe=m,x=Ii(x)),m=x),m}function wa(){var m,x,S,b,E;return m=u,x=Hr(),x!==e?(oe=u,S=Ke(x),S?S=void 0:S=e,S!==e?(b=u,E=ns(),E!==e&&(oe=b,E=ut(x,E)),b=E,b===e&&(b=null),b!==e?(E=Ye(),E!==e?(oe=m,x=Ze(x,b),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m}function Hr(){var m,x,S;return m=u,x=u,S=Et(),S!==e?x=t.substring(x,u):x=S,x!==e?(t.charCodeAt(u)===60?(S=gt,u++):(S=e,j===0&&X(yt)),S!==e?(oe=m,x=Te(x),m=x):(u=m,m=e)):(u=m,m=e),m}function ni(){var m,x,S,b;return m=u,x=u,S=Et(),S!==e?x=t.substring(x,u):x=S,x!==e?(S=u,t.charCodeAt(u)===60?(b=gt,u++):(b=e,j===0&&X(yt)),b===e&&(t.charCodeAt(u)===171?(b=kt,u++):(b=e,j===0&&X(pt))),b!==e?S=t.substring(S,u):S=b,S!==e?(oe=m,x=Xe(x,S),m=x):(u=m,m=e)):(u=m,m=e),m}function Ye(){var m;return t.charCodeAt(u)===62?(m=jt,u++):(m=e,j===0&&X($t)),m===e&&(t.charCodeAt(u)===187?(m=It,u++):(m=e,j===0&&X(Ft))),m}function Li(){var m,x,S,b,E,I;if(m=u,x=ni(),x!==e)if(oe=u,S=Be(x),S?S=void 0:S=e,S!==e){for(b=[],E=Cr(),E===e&&(E=Li(),E===e&&(E=Gr()));E!==e;)b.push(E),E=Cr(),E===e&&(E=Li(),E===e&&(E=Gr()));b!==e?(E=Ye(),E!==e?(oe=u,I=Tr(x,b,E),I?I=void 0:I=e,I!==e?(oe=m,x=zt(x,b,E),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)}else u=m,m=e;else u=m,m=e;return m}function $o(){var m,x,S,b,E;for(m=u,x=[],S=u,b=u,j++,E=Ye(),j--,E===e?b=void 0:(u=b,b=e),b!==e?(t.length>u?(E=t.charAt(u),u++):(E=e,j===0&&X(he)),E!==e?(b=[b,E],S=b):(u=S,S=e)):(u=S,S=e);S!==e;)x.push(S),S=u,b=u,j++,E=Ye(),j--,E===e?b=void 0:(u=b,b=e),b!==e?(t.length>u?(E=t.charAt(u),u++):(E=e,j===0&&X(he)),E!==e?(b=[b,E],S=b):(u=S,S=e)):(u=S,S=e);return x!==e?m=t.substring(m,u):m=x,m}function Gr(){var m,x,S,b,E,I,R;if(m=u,x=u,S=[],b=u,t.charCodeAt(u)===60?(E=gt,u++):(E=e,j===0&&X(yt)),E!==e?(I=Gr(),I!==e?(t.charCodeAt(u)===62?(R=jt,u++):(R=e,j===0&&X($t)),R!==e?(E=[E,I,R],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=u,t.charCodeAt(u)===171?(E=kt,u++):(E=e,j===0&&X(pt)),E!==e?(I=Gr(),I!==e?(t.charCodeAt(u)===187?(R=It,u++):(R=e,j===0&&X(Ft)),R!==e?(E=[E,I,R],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=Ln(),b===e&&(b=an()))),b!==e)for(;b!==e;)S.push(b),b=u,t.charCodeAt(u)===60?(E=gt,u++):(E=e,j===0&&X(yt)),E!==e?(I=Gr(),I!==e?(t.charCodeAt(u)===62?(R=jt,u++):(R=e,j===0&&X($t)),R!==e?(E=[E,I,R],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=u,t.charCodeAt(u)===171?(E=kt,u++):(E=e,j===0&&X(pt)),E!==e?(I=Gr(),I!==e?(t.charCodeAt(u)===187?(R=It,u++):(R=e,j===0&&X(Ft)),R!==e?(E=[E,I,R],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b===e&&(b=Ln(),b===e&&(b=an())));else S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=xr(x)),m=x,m}function an(){var m,x,S,b,E,I,R,Z;if(m=u,x=u,S=[],b=u,E=u,j++,I=Ye(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(I=u,j++,R=ni(),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Ln(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e),b!==e)for(;b!==e;)S.push(b),b=u,E=u,j++,I=Ye(),j--,I===e?E=void 0:(u=E,E=e),E!==e?(I=u,j++,R=ni(),j--,R===e?I=void 0:(u=I,I=e),I!==e?(R=u,j++,Z=Ln(),j--,Z===e?R=void 0:(u=R,R=e),R!==e?(t.length>u?(Z=t.charAt(u),u++):(Z=e,j===0&&X(he)),Z!==e?(E=[E,I,R,Z],b=E):(u=b,b=e)):(u=b,b=e)):(u=b,b=e)):(u=b,b=e);else S=e;return S!==e?x=t.substring(x,u):x=S,x!==e&&(oe=m,x=xr(x)),m=x,m}function Ln(){var m,x,S,b,E;return m=u,x=u,S=u,j++,b=Et(),j--,b===e?S=void 0:(u=S,S=e),S!==e?(t.length>u?(b=t.charAt(u),u++):(b=e,j===0&&X(he)),b!==e?(S=[S,b],x=S):(u=x,x=e)):(u=x,x=e),x!==e?(t.charCodeAt(u)===60?(S=gt,u++):(S=e,j===0&&X(yt)),S!==e?(b=an(),b!==e?(t.charCodeAt(u)===62?(E=jt,u++):(E=e,j===0&&X($t)),E!==e?(oe=m,x=bt(),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e),m===e&&(m=u,x=u,S=u,j++,b=Et(),j--,b===e?S=void 0:(u=S,S=e),S!==e?(t.length>u?(b=t.charAt(u),u++):(b=e,j===0&&X(he)),b!==e?(S=[S,b],x=S):(u=x,x=e)):(u=x,x=e),x!==e?(t.charCodeAt(u)===171?(S=kt,u++):(S=e,j===0&&X(pt)),S!==e?(b=an(),b!==e?(t.charCodeAt(u)===187?(E=It,u++):(E=e,j===0&&X(Ft)),E!==e?(oe=m,x=bt(),m=x):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)):(u=m,m=e)),m}function ji(m){return m.reduce((x,S)=>Array.isArray(S)?x.concat(ji(S)):x.concat(S),[])}function is(m){return{"<":">","\xAB":"\xBB",">":"<","\xBB":"\xAB"}[m]}if(Mt=i(),Mt!==e&&u===t.length)return Mt;throw Mt!==e&&u<t.length&&X(Xn()),Ir(Jt,it<t.length?t.charAt(it):null,it<t.length?on(it,it+1):on(it,it))}sd.exports={SyntaxError:vi,parse:Ek}});var hd=ce((Qx,Sk)=>{Sk.exports={name:"@podlite/schema",version:"0.0.16",description:"AST tools for Podlite markup language",main:"./src/index.ts",types:"./lib/index.d.ts",license:"MIT",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":"pegjs -o src/grammar.js src/grammar.pegjs && pegjs -o src/grammarfc.js src/grammarfc.pegjs",watch:"npx nodemon -e js,ts --exec 'yarn' build","watch:pegjs":"npx nodemon -e pegjs --exec 'yarn' build:pegjs",test:"yarn g:jest --passWithNoTests"},keywords:["markdown","podlite","markup","markup-language"],dependencies:{ajv:"^7.2.3",events:"^3.1.0","json-pointer":"^0.6.1",nanoid:"3.1.30"},devDependencies:{"@types/node":"^17.0.7",glob:"^7.2.0","npm-run-all":"^4.1.5",pegjs:"^0.10.0","ts-node":"^9.1.1",typescript:"4.5.5","typescript-json-schema":"0.53.0"}}});var bd=ce((FC,$d)=>{$d.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Sd=ce((OC,Ad)=>{"use strict";var Ys=Object.prototype.hasOwnProperty,_d=Object.prototype.toString,kd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,vd=function(r){return typeof Array.isArray=="function"?Array.isArray(r):_d.call(r)==="[object Array]"},xd=function(r){if(!r||_d.call(r)!=="[object Object]")return!1;var e=Ys.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&Ys.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!n)return!1;var i;for(i in r);return typeof i>"u"||Ys.call(r,i)},Cd=function(r,e){kd&&e.name==="__proto__"?kd(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},Ed=function(r,e){if(e==="__proto__")if(Ys.call(r,e)){if(wd)return wd(r,e).value}else return;return r[e]};Ad.exports=function t(){var r,e,n,i,o,a,c=arguments[0],f=1,h=arguments.length,d=!1;for(typeof c=="boolean"&&(d=c,c=arguments[1]||{},f=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});f<h;++f)if(r=arguments[f],r!=null)for(e in r)n=Ed(c,e),i=Ed(r,e),c!==i&&(d&&i&&(xd(i)||(o=vd(i)))?(o?(o=!1,a=n&&vd(n)?n:[]):a=n&&xd(n)?n:{},Cd(c,{name:e,newValue:t(d,a,i)})):typeof i<"u"&&Cd(c,{name:e,newValue:i}));return c}});var Id=ce((NC,Td)=>{Td.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var u1={};Ac(u1,{PluginRegister:()=>a1,default:()=>l1,parseMd:()=>$a,plugin:()=>ba});module.exports=hh(u1);var gd=Nr(qp()),Tk=Nr(Lp());var rC=Nr(Mp());var pk=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=pk(t),{name:e,type:n}=r;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};function dk(t,r){function e(i){for(var o in i)if(i.hasOwnProperty(o))return!1;return!0}if(e(t))return!0;for(var n in t)if(t===void 0&&console.warn("[pod6] undefined key!!!"),t.hasOwnProperty(n))if(r===void 0&&console.warn("[pod6] undefined node!!!"),r&&r.hasOwnProperty(n)){if(t[n]!==r[n])return!1}else return!1;return!0}var hn=(t,r)=>{return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(i){return typeof i=="string"?!1:dk(t,i)}},uu=(t,r)=>{if(t instanceof Array)return t.reduce((n,i)=>(n.push(...uu(i)),n),[]);if(t instanceof Object){let n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(hn($i(e),t[e]));return n}return[hn($i(t),r)]};var cu=Nr(require("crypto"),1);var Vp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var mk=128,bi,so,hk=t=>{!bi||bi.length<t?(bi=Buffer.allocUnsafe(t*mk),cu.default.randomFillSync(bi),so=0):so+t>bi.length&&(cu.default.randomFillSync(bi),so=0),so+=t};var Up=(t=21)=>{hk(t);let r="";for(let e=so-t;e<so;e++)r+=Vp[bi[e]&63];return r};var Vo=t=>({...t}),fu=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},kr=(t,r)=>{let e="block",n=t.name,i={id:Up(),margin:"",...t};var o=Vo({type:e,...i,content:fu(r)});return o};var Ks=(t,r)=>Vo({type:"fcode",...t,content:r}),pu=(t,r)=>Vo({...t,type:"fcode",name:"L",content:fu(r)}),Hp=t=>Vo({type:"fcode",name:"Delete",content:fu(t)}),Ws=t=>Vo({type:"verbatim",value:t});var Gp=t=>({type:"block",name:"caption",content:t}),Kp=(t,r)=>({type:"image",src:t,alt:r}),du=({margin:t=""},r)=>kr({name:"root",margin:t},r);var Wp=(t,r={})=>{let e=t.config instanceof Array?t.config:[],n=[];r.config&&r.config.hasOwnProperty(t.name)&&(n=r.config[t.name]);let i={};[...e,...n].map(a=>{i.hasOwnProperty(a.name)||(i[a.name]=[]),a.type==="array"?i[a.name].push(...a.value):i[a.name].push(a.value)});let o=function(){};return o.exists=a=>i.hasOwnProperty(a),o.getAllValues=a=>o.exists(a)?i[a]:[],o.getFirstValue=a=>o.exists(a)?o.getAllValues(a)[0]:void 0,o.asHash=()=>i,o},tn=Wp;var Zp=(t,r)=>{let e=tn(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};function Jp(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(Jp(e)):r.concat(e),[]):t}function gk(t){function r(e,n){if(e instanceof Array)return Jp(e.map(a=>r(a,n))).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},n);let i=t.slice();i.reverse();let o=i.findIndex(a=>a.isFor(e));if(o!==-1){let a=i.slice(o+1),c=a.findIndex(h=>h.isFor(e)),f=(h=e,d=n,$=r)=>{if(c!==-1)a[c].fn(h,d,$,()=>{});else return};return typeof i[o].fn!="function"&&console.warn("[pod6] bad fn for "+JSON.stringify(e,null,2)),i[o].fn(e,n,r,f)}else{let a={...e};if(a.hasOwnProperty("content"))return r(a.content,n)}}return r.rules=t,r}var Js=gk;var rt=(t,r)=>(e,n)=>(i,o,a)=>{e.writeRaw(t),i.content&&a(i.content,o),e.writeRaw(r)},En=()=>()=>()=>{},_n=(t,r)=>(e,n,i)=>{if(e.content)return i(e.content,n)},Hn=t=>(r,e)=>(n,i,o)=>t(n,i)(r,e)(n,i,o);var mu=(t,r)=>{let e=uu(t).reverse();return(n,i)=>{let o=e.map(f=>hn(f.rule,f.fn(n,i))).reverse(),a=r(n,i),c;return(f,h,d)=>(c||(c=Js([...d.rules,...o])),a(f,h,c))}},ki=(t,r)=>(e,n)=>{let i=t(e,n);return(o,a,c)=>{let f=tn(o,a).getFirstValue("nested")||r;f!==void 0&&e.addLevel(f),i(o,a,c),f!==void 0&&e.removeLevel(f)}};function Qs(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function Qp(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Qp(e)):r.concat(e),[])}var Zs=t=>{let r=[];function e(i,o){if(i instanceof Array&&console.warn(`[pod] Unsupported param for ${i}`),i instanceof Object){for(var a in i)i.hasOwnProperty(a)&&e(a,i[a]);return[]}r.push(hn($i(i),o))}function n(i,o={}){if(i instanceof Array)return Qp(i.map(f=>n(f,o)));if(typeof i=="string")return i;let a=r.slice();a.reverse();let c=a.findIndex(f=>f.isFor(i));if(c!==-1)return a[c].fn(i,o,n);{let f={...i};return f.hasOwnProperty("content")&&(f.content=n(f.content,o)),f}}return e(t),n.rules=r,n},Sr=Zs;var Xp=Nr(require("events")),hu=class extends Xp.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)}},Xs=hu;var ao=(t={},r=[])=>{let e=r,n=t.processor||Yp,i=t.writer;return o.use=a,o.run=c,o.getPlugins=()=>e,o;function o(f){}function a(f,h){if(f instanceof Array)return ao(t,[...e,...h]);if(f instanceof Object){for(var d in f)f.hasOwnProperty(d)&&a(d,f[d]);return o}return e.push(hn($i(f),h)),o}function c(f,h){let d="",$=h||i||new Xs(ee=>{d=d+ee}),v=typeof $=="function"?new $(ee=>{d=d+ee}):$,k=typeof f=="string"?n(f):f,_=e.slice();_.reverse();let T=Js(_.map(ee=>hn(ee.rule,ee.fn(v,n,k))).reverse()),L={};v.startWrite(k);let N=T(k,L);return v.endWrite(),{errors:v.errors,toString:()=>d,valueOf:()=>d,indexingTerms:v.INDEXTERMS,annotations:v.FOOTNOTES,defenitions:v.DEFINITIONS,interator:N}}};var ed=()=>t=>Sr({"*":(e,n,i)=>(e.content&&(e.content=i(e.content,n,i)),delete e.location,e)})(t,{}),td=ed;var yd=Nr(id());var xk=()=>t=>{let r=(n,i={})=>{if((n.type=="code"||n.type=="text")&&(n.margin&&i.margin&&i.margin.length>0&&i.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"){i.margin=typeof n.margin!="string"?"":n.margin;let a={...i};a.nest=(a.nest||0)+1,n.content.map(c=>{r(c,i)})}};var e={};return t.forEach(n=>r(n,e)),t},od=xk;var Uo=Nr(ad());var _k=()=>t=>Sr({":para":(e,n,i)=>Sr({":text":(o,a)=>Uo.parse(o.value),":verbatim":(o,a)=>Uo.parse(o.value)})(e,{...n}),":block":(e,n,i)=>{if("name"in e&&e.name==="pod")return{...e,content:i(e.content,n,i)};let o=tn(e,n),a="name"in e&&e.name==="code",c="name"in e&&e.name==="data",f="name"in e&&e.name==="markdown",h="name"in e&&e.name==="picture",d=o.getAllValues("allow");if((a||c||f||h)&&d.length==0)return e;let $=d.sort(),v=Sr({":verbatim":(k,_)=>Uo.parse(k.value,{allowed:$}),":text":(k,_)=>Uo.parse(k.value,{allowed:$}),":block":(k,_)=>Qs(k.name)?k:{...k,content:v(k.content,{..._})}});return v(e,{...n})}})(t,{}),ld=_k;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,e.content[0])){let i=e.content[0];if(i.text){let o=/^(\s*#\s*)/;o.exec(i.text)&&(i.text=i.text.replace(o,""),i.type==="para"&&(i.content=[i.text]),e.config=e.config||[],e.config.push({name:"numbered",value:!0,type:"boolean"}))}}r(e.content)}};return r(t),t};var cd=()=>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 i=e.content[0];if(i.text){let o=/(\s*#\s*)/;o.exec(i.text)&&(i.text=i.text.replace(o,""),e.config={...e.config,numbered:!0})}}r(e.content)}};return r(t),t};var fd=()=>t=>{let r=(o,a)=>(o.name==="item"||o.name==="defn")&&a.name===o.name&&o.level===a.level&&e(o)===e(a),e=o=>Boolean(o.config&&o.config.numbered),n=o=>{let a={};return o.reduce((f,h)=>(h.name==="defn"?r(a,h)?f[f.length-1].push(h):f.push([h]):f.push(h),a=h,f),[]).map(f=>f instanceof Array?f[0].name!=="defn"?f:{type:"list",list:f[0].name==="defn"?"variable":e(f[0])?"ordered":"itemized",level:1,content:[...f]}:(f.content&&f.type!=="fcode"&&(f.content=n(f.content)),f))};return t=(o=>Array.isArray(o)?n(o):(o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var pd=()=>t=>{let r=(o,a)=>(o.name==="item"||o.name==="defn")&&a.name===o.name&&o.level===a.level&&e(o)===e(a),e=o=>Boolean(tn(o,{}).exists("numbered")),n=(o,a=1)=>{let c=v=>v.length>0&&v[v.length-1].type==="list",f=v=>{if(c(v))return v[v.length-1]},h=(v,k)=>k.name&&k.name==="item"&&k.type&&k.type==="block"||k.type==="blankline",d={};return o.reduce((v,k)=>k.name==="item"&&k.type==="block"&&k.level<a?[...v,k]:(k.name==="item"&&k.type==="block"&&(!c(v)||k.level===a&&f(v).list!==(e(k)?"ordered":"itemized"))&&v.push({type:"list",level:k.level,content:[],list:e(k)?"ordered":"itemized"}),c(v)&&h(f(v),k)?f(v).content.push(k):v.push(k),v),[]).map(v=>(v.content&&v.type!=="fcode"&&(v.content=n(v.content,v.level+1)),v))};return t=(o=>(Array.isArray(o)?o=n(o):o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var dd=()=>t=>Sr({defn:e=>{let n=e.content,i=n.length,o=[],a=!1;for(let c=0;c<i;c++){let f=n[c];if(f.type==="para"&&!a){let h=f.content[0],$=h.value.split(`
|
|
14
|
+
`),v=$.shift(),k={type:"para",name:"term",text:v,content:[{type:"text",value:v}]};o.push(k),$.length==1&&$[0]===""||(h.value=$.join(`
|
|
15
|
+
`),f.text=h.value,o.push(f)),a=!0}else o.push(f)}return e.content=o,e}})(t,{});function Ho(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Ho(e)):r.concat(e),[])}var gu=(t,r,e)=>{let n=[];for(let i=0;t.length>i;i++)n.push(e(parseInt(t[i],10),parseInt(r[i],10)));return n.join("")},Ak=(t,r)=>{let e=Math.max(...[...t,...r].map(a=>a.length));return t.map(a=>{let c=a+" ".repeat(e-a.length),f=[],h=/\s+[+|\s]\s/g,d;for(;(d=h.exec(c))!=null;){let $="1".repeat(d.index)+"0".repeat(d[0].length);f.push($+"1".repeat(e-$.length))}return f.reduce(($,v)=>gu($,v,(k,_)=>k&_),"1".repeat(e))}).map(a=>gu(a,"",c=>c==0?1:0)).reduce((a,c)=>gu(a,c,(f,h)=>f&h),"1".repeat(e))},yu=(t,r)=>{let n=Ho(t.split(/\n/).filter(o=>o.length>0)).map(o=>{let a=/((1+|0+))/g,c=[],f;for(;(f=a.exec(r))!=null;){if(f[0][0]==1)continue;let h=o.substring(f.index,f.index+f[0].length);c.push(h)}return c}),i=[];return i=n.reduce((o,a)=>{for(let c=0;c<a.length;c++)o[c]=(o[c]===void 0?"":o[c])+" "+a[c];return o},[]),i},md=()=>t=>Sr({table:e=>{let n=[],i=k=>{n.push(k.value)},o=[];if(Sr({"row:text":i,"head:text":i,":separator":k=>{o.push(k.text)}})(e),!n.length)return e;let a=k=>k.split(/\n/).filter(_=>_.length>0),c=Ho(n.map(a)),f=Ho(o.map(a)),h=[];Sr({"row:text":k=>{h.push(k.value)}})(e);let d=Ak(c,f),$=(k,_,...T)=>({...T,name:k,type:"block",content:Array.isArray(_)?_:[_]});return Sr({"row:text":k=>{if(h.length==1)return Ho([k.value].map(a)).map(L=>{let N=yu(L,d);return $("table_row",N.map(ee=>$("table_cell",{type:"text",value:ee})))});let _=yu(k.value,d);return $("table_row",_.map(T=>$("table_cell",{type:"text",value:T})))},"head:text":k=>{let _=yu(k.value,d);return $("table_head",_.map(T=>$("table_cell",{type:"text",value:T})))}})(e)}})(t,{});var Zx={":text":(t,r)=>(e,n,i)=>{e.value?t.write(e.value):i(e.content,n)},"A<>":(t,r)=>(e,n,i)=>{if(!(n.alias&&n.alias.hasOwnProperty(e.content)))t.write(`A<${e.content}>`);else{let o=n.alias[e.content].join(`
|
|
16
|
+
`),a=r(o),c=td()(a);c[0].type==="para"?i(c[0].content,n):i(c,n)}},"C<>":rt("<code>","</code>"),"D<>":(t,r)=>(e,n,i)=>{let o={node:e},a=[e.content[0]];o&&(a=o),t.hasOwnProperty("DEFINITIONS")||(t.DEFINITIONS=[]),t.DEFINITIONS.push({definition:a}),t.writeRaw("<dfn>"),i(e.content,n),t.writeRaw("</dfn>")},"B<>":rt("<strong>","</strong>"),"I<>":rt("<em>","</em>"),"R<>":rt("<var>","</var>"),"K<>":rt("<kbd>","</kbd>"),"L<>":Hn((t,r)=>{let{meta:e}=t;return e===null&&(e=t.content),rt(`<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,i)=>{if(e.content.length<1)return;t.hasOwnProperty("gid")||(t.gid=1);let o=t.gid++,a=`fnref:${o}`,c=`fn:${o}`;t.writeRaw(`<sup id="${a}" class="footnote"><a href="#${c}">[${o}]</a></sup>`),t.hasOwnProperty("FOOTNOTES")||(t.FOOTNOTES=[]),t.FOOTNOTES.push({gid:o,fnRefId:a,fnId:c,make:()=>{i(e.content,n)}})}),"S<>":(t,r)=>(e,n,i)=>{let c=(e.content||"").replace(/ /g," ").replace(/\n/g,"</br>");t.writeRaw(c)},"T<>":rt("<samp>","</samp>"),"U<>":rt("<u>","</u>"),"V<>":_n,"X<>":(t,r)=>(e,n,i)=>{i(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<>":En,pod:_n,":code":rt("<pre><code>","</code></pre>"),code:ki(rt("<pre><code>","</code></pre>")),data:En,":verbatim":(t,r)=>(e,n,i)=>{e.error&&t.emit("errors",e.location),i(e.value)},":blankline":En,":ambient":En,":config":Hn((t,r)=>(r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,En)),":alias":Hn((t,r)=>(r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,En)),para:ki(_n),":para":rt("<p>","</p>"),"head:block":mu({":para":_n},Hn((t,r)=>{let{level:e}=t,n=Zp(t,r);return rt(`<h${e}${n?` id="${n}"`:""}>`,`</h${e}>`)})),":list":Hn((t,r)=>t.list==="ordered"?rt("<ol>","</ol>"):t.list==="variable"?rt("<dl>","</dl>"):rt("<ul>","</ul>")),"item:block":(t,r)=>(e,n,i)=>{e.content instanceof Array||console.error("[pod6] item:block : Error in content of "+JSON.stringify(e));let[o,...a]=e.content;t.writeRaw("<li>"),i(e.content,n),t.writeRaw("</li>")},"comment:block":En,defn:rt("","</dd>"),"term:para":rt("<dt>","</dt><dd>"),nested:ki(_n,1),output:ki(rt("<pre><samp>","</samp></pre>"),1),input:ki(rt("<pre><kbd>","</kbd></pre>"),1),"table:block":ki((t,r)=>(e,n,i)=>{let o=tn(e,n);t.writeRaw("<table>"),o.exists("caption")&&(t.writeRaw("<caption>"),t.write(o.getFirstValue("caption")),t.writeRaw("</caption>")),i(e.content,n),t.writeRaw("</table>")}),":separator":En,table_row:rt("<tr>","</tr>"),table_cell:rt("<td>","</td>"),table_head:mu({table_cell:rt("<th>","</th>")},rt("<tr>","</tr>")),":toc":(t,r)=>(e,n,i)=>{t.writeRaw('<div className="toc">');let o=tn(e,n);if(o.exists("title")){let a=o.getFirstValue("title");t.writeRaw('<div className="toctitle">'),t.write(a),t.writeRaw("</div>")}i(e.content,n),t.writeRaw("</div>")},":toc-list":Hn((t,r)=>rt(`<ul class="toc-list listlevel${t.level}">`,"</ul>")),":toc-item":Hn((t,r)=>rt('<li class="toc-item">',"</li>")),":image":(t,r)=>(e,n,i)=>{t.writeRaw(`<img src="${e.src}" alt="${e.alt}"/>`)}};var pC=new gd.default({strict:!0,allowUnionTypes:!0});function rd(){var t=[];return r.use=e,r.parse=n,r.use(od),r.use(ud),r.use(cd),r.use(dd),r.use(md),r.use(ld),r.use(pd),r.use(fd),r;function r(){}function e(i){if(!["function"].includes(typeof i))throw i;return t.push(i),r}function n(i,o={skipChain:0,podMode:1}){let a=yd.parse(i,{podMode:o.podMode});if(!o.skipChain)for(let c=0;c<t.length;c++){let f=t[c];a=f(o)(a)}return a}}var Yp=rd().parse;var{version:dC}=hd();function $u(t){if(t)throw t}var jd=Nr(bd(),1),Su=Nr(Sd(),1);function Go(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 Pd(){let t=[],r={run:e,use:n};return r;function e(...i){let o=-1,a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...i);function c(f,...h){let d=t[++o],$=-1;if(f){a(f);return}for(;++$<i.length;)(h[$]===null||h[$]===void 0)&&(h[$]=i[$]);i=h,d?Ik(d,c)(...h):a(null,...h)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),r}}function Ik(t,r){let e;return n;function n(...a){let c=t.length>a.length,f;c&&a.push(i);try{f=t.apply(this,a)}catch(h){let d=h;if(c&&e)throw d;return i(d)}c||(f instanceof Promise?f.then(o,i):f instanceof Error?i(f):o(f))}function i(a,...c){e||(e=!0,r(a,...c))}function o(a){i(null,a)}}var Dd=Nr(Id(),1);function xi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Fd(t.position):"start"in t||"end"in t?Fd(t):"line"in t||"column"in t?bu(t):""}function bu(t){return Od(t&&t.line)+":"+Od(t&&t.column)}function Fd(t){return bu(t&&t.start)+"-"+bu(t&&t.end)}function Od(t){return t&&typeof t=="number"?t:1}var cr=class extends Error{constructor(r,e,n){let i=[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 a=n.indexOf(":");a===-1?i[1]=n:(i[0]=n.slice(0,a),i[1]=n.slice(a+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=xi(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=i[0],this.ruleId=i[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}};cr.prototype.file="";cr.prototype.name="";cr.prototype.reason="";cr.prototype.message="";cr.prototype.stack="";cr.prototype.fatal=null;cr.prototype.column=null;cr.prototype.line=null;cr.prototype.source=null;cr.prototype.ruleId=null;cr.prototype.position=null;var Lr=Nr(require("path"),1);var ku=Nr(require("process"),1);var wu=require("url");function ea(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}var vu=["history","path","basename","stem","extname","dirname"],Ko=class{constructor(r){let e;r?typeof r=="string"||(0,Dd.default)(r)?e={value:r}:ea(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=ku.default.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<vu.length;){let o=vu[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let i;for(i in e)vu.includes(i)||(this[i]=e[i])}get path(){return this.history[this.history.length-1]}set path(r){ea(r)&&(r=(0,wu.fileURLToPath)(r)),Cu(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Lr.default.dirname(this.path):void 0}set dirname(r){qd(this.basename,"dirname"),this.path=Lr.default.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Lr.default.basename(this.path):void 0}set basename(r){Cu(r,"basename"),xu(r,"basename"),this.path=Lr.default.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Lr.default.extname(this.path):void 0}set extname(r){if(xu(r,"extname"),qd(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=Lr.default.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Lr.default.basename(this.path,this.extname):void 0}set stem(r){Cu(r,"stem"),xu(r,"stem"),this.path=Lr.default.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let i=new cr(r,e,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(r,e,n){let i=this.message(r,e,n);return i.fatal=null,i}fail(r,e,n){let i=this.message(r,e,n);throw i.fatal=!0,i}};function xu(t,r){if(t&&t.includes(Lr.default.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Lr.default.sep+"`")}function Cu(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function qd(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var Pu=zd().freeze(),Bd={}.hasOwnProperty;function zd(){let t=Pd(),r=[],e={},n,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=c,o.attachers=r,o.use=f,o.parse=h,o.stringify=d,o.run=$,o.runSync=v,o.process=k,o.processSync=_,o;function o(){let T=zd(),L=-1;for(;++L<r.length;)T.use(...r[L]);return T.data((0,Su.default)(!0,{},e)),T}function a(T,L){return typeof T=="string"?arguments.length===2?(Au("data",n),e[T]=L,o):Bd.call(e,T)&&e[T]||null:T?(Au("data",n),e=T,o):e}function c(){if(n)return o;for(;++i<r.length;){let[T,...L]=r[i];if(L[0]===!1)continue;L[0]===!0&&(L[0]=void 0);let N=T.call(o,...L);typeof N=="function"&&t.use(N)}return n=!0,i=Number.POSITIVE_INFINITY,o}function f(T,...L){let N;if(Au("use",n),T!=null)if(typeof T=="function")fe(T,...L);else if(typeof T=="object")Array.isArray(T)?de(T):re(T);else throw new TypeError("Expected usable value, not `"+T+"`");return N&&(e.settings=Object.assign(e.settings||{},N)),o;function ee(J){if(typeof J=="function")fe(J);else if(typeof J=="object")if(Array.isArray(J)){let[me,...be]=J;fe(me,...be)}else re(J);else throw new TypeError("Expected usable value, not `"+J+"`")}function re(J){de(J.plugins),J.settings&&(N=Object.assign(N||{},J.settings))}function de(J){let me=-1;if(J!=null)if(Array.isArray(J))for(;++me<J.length;){let be=J[me];ee(be)}else throw new TypeError("Expected a list of plugins, not `"+J+"`")}function fe(J,me){let be=-1,ke;for(;++be<r.length;)if(r[be][0]===J){ke=r[be];break}ke?(Go(ke[1])&&Go(me)&&(me=(0,Su.default)(!0,ke[1],me)),ke[1]=me):r.push([...arguments])}}function h(T){o.freeze();let L=Wo(T),N=o.Parser;return Eu("parse",N),Nd(N,"parse")?new N(String(L),L).parse():N(String(L),L)}function d(T,L){o.freeze();let N=Wo(L),ee=o.Compiler;return _u("stringify",ee),Rd(T),Nd(ee,"compile")?new ee(T,N).compile():ee(T,N)}function $(T,L,N){if(Rd(T),o.freeze(),!N&&typeof L=="function"&&(N=L,L=void 0),!N)return new Promise(ee);ee(null,N);function ee(re,de){t.run(T,Wo(L),fe);function fe(J,me,be){me=me||T,J?de(J):re?re(me):N(null,me,be)}}}function v(T,L){let N,ee;return o.run(T,L,re),Ld("runSync","run",ee),N;function re(de,fe){$u(de),N=fe,ee=!0}}function k(T,L){if(o.freeze(),Eu("process",o.Parser),_u("process",o.Compiler),!L)return new Promise(N);N(null,L);function N(ee,re){let de=Wo(T);o.run(o.parse(de),de,(J,me,be)=>{if(J||!me||!be)fe(J);else{let ke=o.stringify(me,be);ke==null||(qk(ke)?be.value=ke:be.result=ke),fe(J,be)}});function fe(J,me){J||!me?re(J):ee?ee(me):L(null,me)}}}function _(T){let L;o.freeze(),Eu("processSync",o.Parser),_u("processSync",o.Compiler);let N=Wo(T);return o.process(N,ee),Ld("processSync","process",L),N;function ee(re){L=!0,$u(re)}}}function Nd(t,r){return typeof t=="function"&&t.prototype&&(Fk(t.prototype)||r in t.prototype)}function Fk(t){let r;for(r in t)if(Bd.call(t,r))return!0;return!1}function Eu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function _u(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function Au(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 Rd(t){if(!Go(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ld(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function Wo(t){return Ok(t)?t:new Ko(t)}function Ok(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function qk(t){return typeof t=="string"||(0,jd.default)(t)}function Vd(t,r){var{includeImageAlt:e=!0}=r||{};return Ud(t,e)}function Ud(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&Md(t.children,r)||Array.isArray(t)&&Md(t,r))||""}function Md(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=Ud(t[n],r);return e.join("")}function Ct(t,r,e,n){let i=t.length,o=0,a;if(r<0?r=-r>i?0:i+r:r=r>i?i:r,e=e>0?e:0,n.length<1e4)a=Array.from(n),a.unshift(r,e),[].splice.apply(t,a);else for(e&&[].splice.apply(t,[r,e]);o<n.length;)a=n.slice(o,o+1e4),a.unshift(r,0),[].splice.apply(t,a),o+=1e4,r+=1e4}function fr(t,r){return t.length>0?(Ct(t,t.length,0,r),t):r}var Hd={}.hasOwnProperty;function ta(t){let r={},e=-1;for(;++e<t.length;)Dk(r,t[e]);return r}function Dk(t,r){let e;for(e in r){let i=(Hd.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],a;for(a in o){Hd.call(i,a)||(i[a]=[]);let c=o[a];Nk(i[a],Array.isArray(c)?c:c?[c]:[])}}}function Nk(t,r){let e=-1,n=[];for(;++e<r.length;)(r[e].add==="after"?t:n).push(r[e]);Ct(t,0,0,n)}var Gd=/[!-/:-@[-`{-~\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 rr=Kn(/[A-Za-z]/),Ci=Kn(/\d/),Kd=Kn(/[\dA-Fa-f]/),Lt=Kn(/[\dA-Za-z]/),Wd=Kn(/[!-/:-@[-`{-~]/),Tu=Kn(/[#-'*+\--9=?A-Z^-~]/);function Gn(t){return t!==null&&(t<32||t===127)}function Me(t){return t!==null&&(t<0||t===32)}function le(t){return t!==null&&t<-2}function Fe(t){return t===-2||t===-1||t===32}var Ei=Kn(/\s/),_i=Kn(Gd);function Kn(t){return r;function r(e){return e!==null&&t.test(String.fromCharCode(e))}}function ge(t,r,e,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return a;function a(f){return Fe(f)?(t.enter(e),c(f)):r(f)}function c(f){return Fe(f)&&o++<i?(t.consume(f),c):(t.exit(e),r(f))}}var Zd={tokenize:Rk};function Rk(t){let r=t.attempt(this.parser.constructs.contentInitial,n,i),e;return r;function n(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),ge(t,r,"linePrefix")}function i(c){return t.enter("paragraph"),o(c)}function o(c){let f=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=f),e=f,a(c)}function a(c){if(c===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(c);return}return le(c)?(t.consume(c),t.exit("chunkText"),o):(t.consume(c),a)}}var Qd={tokenize:Lk},Jd={tokenize:jk};function Lk(t){let r=this,e=[],n=0,i,o,a;return c;function c(re){if(n<e.length){let de=e[n];return r.containerState=de[1],t.attempt(de[0].continuation,f,h)(re)}return h(re)}function f(re){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,i&&ee();let de=r.events.length,fe=de,J;for(;fe--;)if(r.events[fe][0]==="exit"&&r.events[fe][1].type==="chunkFlow"){J=r.events[fe][1].end;break}N(n);let me=de;for(;me<r.events.length;)r.events[me][1].end=Object.assign({},J),me++;return Ct(r.events,fe+1,0,r.events.slice(de)),r.events.length=me,h(re)}return c(re)}function h(re){if(n===e.length){if(!i)return v(re);if(i.currentConstruct&&i.currentConstruct.concrete)return _(re);r.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(Jd,d,$)(re)}function d(re){return i&&ee(),N(n),v(re)}function $(re){return r.parser.lazy[r.now().line]=n!==e.length,a=r.now().offset,_(re)}function v(re){return r.containerState={},t.attempt(Jd,k,_)(re)}function k(re){return n++,e.push([r.currentConstruct,r.containerState]),v(re)}function _(re){if(re===null){i&&ee(),N(0),t.consume(re);return}return i=i||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),T(re)}function T(re){if(re===null){L(t.exit("chunkFlow"),!0),N(0),t.consume(re);return}return le(re)?(t.consume(re),L(t.exit("chunkFlow")),n=0,r.interrupt=void 0,c):(t.consume(re),T)}function L(re,de){let fe=r.sliceStream(re);if(de&&fe.push(null),re.previous=o,o&&(o.next=re),o=re,i.defineSkip(re.start),i.write(fe),r.parser.lazy[re.start.line]){let J=i.events.length;for(;J--;)if(i.events[J][1].start.offset<a&&(!i.events[J][1].end||i.events[J][1].end.offset>a))return;let me=r.events.length,be=me,ke,Oe;for(;be--;)if(r.events[be][0]==="exit"&&r.events[be][1].type==="chunkFlow"){if(ke){Oe=r.events[be][1].end;break}ke=!0}for(N(n),J=me;J<r.events.length;)r.events[J][1].end=Object.assign({},Oe),J++;Ct(r.events,be+1,0,r.events.slice(me)),r.events.length=J}}function N(re){let de=e.length;for(;de-- >re;){let fe=e[de];r.containerState=fe[1],fe[0].exit.call(r,t)}e.length=re}function ee(){i.write([null]),o=void 0,i=void 0,r.containerState._closeFlow=void 0}}function jk(t,r,e){return ge(t,t.attempt(this.parser.constructs.document,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function lo(t){if(t===null||Me(t)||Ei(t))return 1;if(_i(t))return 2}function Wn(t,r,e){let n=[],i=-1;for(;++i<t.length;){let o=t[i].resolveAll;o&&!n.includes(o)&&(r=o(r,e),n.push(o))}return r}var Zo={name:"attention",tokenize:zk,resolveAll:Bk};function Bk(t,r){let e=-1,n,i,o,a,c,f,h,d;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;f=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),v=Object.assign({},t[e][1].start);Xd($,-f),Xd(v,f),a={type:f>1?"strongSequence":"emphasisSequence",start:$,end:Object.assign({},t[n][1].end)},c={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:v},o={type:f>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},i={type:f>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},c.end)},t[n][1].end=Object.assign({},a.start),t[e][1].start=Object.assign({},c.end),h=[],t[n][1].end.offset-t[n][1].start.offset&&(h=fr(h,[["enter",t[n][1],r],["exit",t[n][1],r]])),h=fr(h,[["enter",i,r],["enter",a,r],["exit",a,r],["enter",o,r]]),h=fr(h,Wn(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),h=fr(h,[["exit",o,r],["enter",c,r],["exit",c,r],["exit",i,r]]),t[e][1].end.offset-t[e][1].start.offset?(d=2,h=fr(h,[["enter",t[e][1],r],["exit",t[e][1],r]])):d=0,Ct(t,n-1,e-n+3,h),e=n+h.length-d-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,i=lo(n),o;return a;function a(f){return t.enter("attentionSequence"),o=f,c(f)}function c(f){if(f===o)return t.consume(f),c;let h=t.exit("attentionSequence"),d=lo(f),$=!d||d===2&&i||e.includes(f),v=!i||i===2&&d||e.includes(n);return h._open=Boolean(o===42?$:$&&(i||!v)),h._close=Boolean(o===42?v:v&&(d||!$)),r(f)}}function Xd(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var Iu={name:"autolink",tokenize:Mk};function Mk(t,r,e){let n=1;return i;function i(_){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(_){return rr(_)?(t.consume(_),a):Tu(_)?h(_):e(_)}function a(_){return _===43||_===45||_===46||Lt(_)?c(_):h(_)}function c(_){return _===58?(t.consume(_),f):(_===43||_===45||_===46||Lt(_))&&n++<32?(t.consume(_),c):h(_)}function f(_){return _===62?(t.exit("autolinkProtocol"),k(_)):_===null||_===32||_===60||Gn(_)?e(_):(t.consume(_),f)}function h(_){return _===64?(t.consume(_),n=0,d):Tu(_)?(t.consume(_),h):e(_)}function d(_){return Lt(_)?$(_):e(_)}function $(_){return _===46?(t.consume(_),n=0,d):_===62?(t.exit("autolinkProtocol").type="autolinkEmail",k(_)):v(_)}function v(_){return(_===45||Lt(_))&&n++<63?(t.consume(_),_===45?v:$):e(_)}function k(_){return t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.exit("autolink"),r}}var gn={tokenize:Vk,partial:!0};function Vk(t,r,e){return ge(t,n,"linePrefix");function n(i){return i===null||le(i)?r(i):e(i)}}var ra={name:"blockQuote",tokenize:Uk,continuation:{tokenize:Hk},exit:Gk};function Uk(t,r,e){let n=this;return i;function i(a){if(a===62){let c=n.containerState;return c.open||(t.enter("blockQuote",{_container:!0}),c.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),o}return e(a)}function o(a){return Fe(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(a))}}function Hk(t,r,e){return ge(t,t.attempt(ra,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Gk(t){t.exit("blockQuote")}var na={name:"characterEscape",tokenize:Kk};function Kk(t,r,e){return n;function n(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),i}function i(o){return Wd(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var Fu={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:`
|
|
17
|
+
`,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 Wk={}.hasOwnProperty;function uo(t){return Wk.call(Fu,t)?Fu[t]:!1}var ia={name:"characterReference",tokenize:Zk};function Zk(t,r,e){let n=this,i=0,o,a;return c;function c($){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume($),t.exit("characterReferenceMarker"),f}function f($){return $===35?(t.enter("characterReferenceMarkerNumeric"),t.consume($),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),o=31,a=Lt,d($))}function h($){return $===88||$===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume($),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,a=Kd,d):(t.enter("characterReferenceValue"),o=7,a=Ci,d($))}function d($){let v;return $===59&&i?(v=t.exit("characterReferenceValue"),a===Lt&&!uo(n.sliceSerialize(v))?e($):(t.enter("characterReferenceMarker"),t.consume($),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):a($)&&i++<o?(t.consume($),d):e($)}}var oa={name:"codeFenced",tokenize:Jk,concrete:!0};function Jk(t,r,e){let n=this,i={tokenize:fe,partial:!0},o={tokenize:de,partial:!0},a=this.events[this.events.length-1],c=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,f=0,h;return d;function d(J){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),h=J,$(J)}function $(J){return J===h?(t.consume(J),f++,$):(t.exit("codeFencedFenceSequence"),f<3?e(J):ge(t,v,"whitespace")(J))}function v(J){return J===null||le(J)?L(J):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),k(J))}function k(J){return J===null||Me(J)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ge(t,_,"whitespace")(J)):J===96&&J===h?e(J):(t.consume(J),k)}function _(J){return J===null||le(J)?L(J):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),T(J))}function T(J){return J===null||le(J)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),L(J)):J===96&&J===h?e(J):(t.consume(J),T)}function L(J){return t.exit("codeFencedFence"),n.interrupt?r(J):N(J)}function N(J){return J===null?re(J):le(J)?t.attempt(o,t.attempt(i,re,c?ge(t,N,"linePrefix",c+1):N),re)(J):(t.enter("codeFlowValue"),ee(J))}function ee(J){return J===null||le(J)?(t.exit("codeFlowValue"),N(J)):(t.consume(J),ee)}function re(J){return t.exit("codeFenced"),r(J)}function de(J,me,be){let ke=this;return Oe;function Oe(xe){return J.enter("lineEnding"),J.consume(xe),J.exit("lineEnding"),ve}function ve(xe){return ke.parser.lazy[ke.now().line]?be(xe):me(xe)}}function fe(J,me,be){let ke=0;return ge(J,Oe,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Oe(ue){return J.enter("codeFencedFence"),J.enter("codeFencedFenceSequence"),ve(ue)}function ve(ue){return ue===h?(J.consume(ue),ke++,ve):ke<f?be(ue):(J.exit("codeFencedFenceSequence"),ge(J,xe,"whitespace")(ue))}function xe(ue){return ue===null||le(ue)?(J.exit("codeFencedFence"),me(ue)):be(ue)}}}var Jo={name:"codeIndented",tokenize:Xk},Qk={tokenize:Yk,partial:!0};function Xk(t,r,e){let n=this;return i;function i(h){return t.enter("codeIndented"),ge(t,o,"linePrefix",4+1)(h)}function o(h){let d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(h):e(h)}function a(h){return h===null?f(h):le(h)?t.attempt(Qk,a,f)(h):(t.enter("codeFlowValue"),c(h))}function c(h){return h===null||le(h)?(t.exit("codeFlowValue"),a(h)):(t.consume(h),c)}function f(h){return t.exit("codeIndented"),r(h)}}function Yk(t,r,e){let n=this;return i;function i(a){return n.parser.lazy[n.now().line]?e(a):le(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):ge(t,o,"linePrefix",4+1)(a)}function o(a){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(a):le(a)?i(a):e(a)}}var Ou={name:"codeText",tokenize:rw,resolve:ew,previous:tw};function ew(t){let r=t.length-4,e=3,n,i;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;)i===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(i=n):(n===r||t[n][1].type==="lineEnding")&&(t[i][1].type="codeTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),r-=n-i-2,n=i+2),i=void 0);return t}function tw(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rw(t,r,e){let n=this,i=0,o,a;return c;function c(v){return t.enter("codeText"),t.enter("codeTextSequence"),f(v)}function f(v){return v===96?(t.consume(v),i++,f):(t.exit("codeTextSequence"),h(v))}function h(v){return v===null?e(v):v===96?(a=t.enter("codeTextSequence"),o=0,$(v)):v===32?(t.enter("space"),t.consume(v),t.exit("space"),h):le(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),h):(t.enter("codeTextData"),d(v))}function d(v){return v===null||v===32||v===96||le(v)?(t.exit("codeTextData"),h(v)):(t.consume(v),d)}function $(v){return v===96?(t.consume(v),o++,$):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),r(v)):(a.type="codeTextData",d(v))}}function sa(t){let r={},e=-1,n,i,o,a,c,f,h;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"&&(f=n[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,nw(t,e)),e=r[e],h=!0);else if(n[1]._container){for(o=e,i=void 0;o--&&(a=t[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(t[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(n[1].end=Object.assign({},t[i][1].start),c=t.slice(i,e),c.unshift(n),Ct(t,i,e-i+1,c))}}return!h}function nw(t,r){let e=t[r][1],n=t[r][2],i=r-1,o=[],a=e._tokenizer||n.parser[e.contentType](e.start),c=a.events,f=[],h={},d,$,v=-1,k=e,_=0,T=0,L=[T];for(;k;){for(;t[++i][1]!==k;);o.push(i),k._tokenizer||(d=n.sliceStream(k),k.next||d.push(null),$&&a.defineSkip(k.start),k._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),k._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),$=k,k=k.next}for(k=e;++v<c.length;)c[v][0]==="exit"&&c[v-1][0]==="enter"&&c[v][1].type===c[v-1][1].type&&c[v][1].start.line!==c[v][1].end.line&&(T=v+1,L.push(T),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(a.events=[],k?(k._tokenizer=void 0,k.previous=void 0):L.pop(),v=L.length;v--;){let N=c.slice(L[v],L[v+1]),ee=o.pop();f.unshift([ee,ee+N.length-1]),Ct(t,ee,2,N)}for(v=-1;++v<f.length;)h[_+f[v][0]]=_+f[v][1],_+=f[v][1]-f[v][0]-1;return h}var qu={tokenize:sw,resolve:ow},iw={tokenize:aw,partial:!0};function ow(t){return sa(t),t}function sw(t,r){let e;return n;function n(c){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),i(c)}function i(c){return c===null?o(c):le(c)?t.check(iw,a,o)(c):(t.consume(c),i)}function o(c){return t.exit("chunkContent"),t.exit("content"),r(c)}function a(c){return t.consume(c),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,i}}function aw(t,r,e){let n=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ge(t,o,"linePrefix")}function o(a){if(a===null||le(a))return e(a);let c=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(a):t.interrupt(n.parser.constructs.flow,e,r)(a)}}function aa(t,r,e,n,i,o,a,c,f){let h=f||Number.POSITIVE_INFINITY,d=0;return $;function $(N){return N===60?(t.enter(n),t.enter(i),t.enter(o),t.consume(N),t.exit(o),v):N===null||N===41||Gn(N)?e(N):(t.enter(n),t.enter(a),t.enter(c),t.enter("chunkString",{contentType:"string"}),T(N))}function v(N){return N===62?(t.enter(o),t.consume(N),t.exit(o),t.exit(i),t.exit(n),r):(t.enter(c),t.enter("chunkString",{contentType:"string"}),k(N))}function k(N){return N===62?(t.exit("chunkString"),t.exit(c),v(N)):N===null||N===60||le(N)?e(N):(t.consume(N),N===92?_:k)}function _(N){return N===60||N===62||N===92?(t.consume(N),k):k(N)}function T(N){return N===40?++d>h?e(N):(t.consume(N),T):N===41?d--?(t.consume(N),T):(t.exit("chunkString"),t.exit(c),t.exit(a),t.exit(n),r(N)):N===null||Me(N)?d?e(N):(t.exit("chunkString"),t.exit(c),t.exit(a),t.exit(n),r(N)):Gn(N)?e(N):(t.consume(N),N===92?L:T)}function L(N){return N===40||N===41||N===92?(t.consume(N),T):T(N)}}function la(t,r,e,n,i,o){let a=this,c=0,f;return h;function h(k){return t.enter(n),t.enter(i),t.consume(k),t.exit(i),t.enter(o),d}function d(k){return k===null||k===91||k===93&&!f||k===94&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs||c>999?e(k):k===93?(t.exit(o),t.enter(i),t.consume(k),t.exit(i),t.exit(n),r):le(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),d):(t.enter("chunkString",{contentType:"string"}),$(k))}function $(k){return k===null||k===91||k===93||le(k)||c++>999?(t.exit("chunkString"),d(k)):(t.consume(k),f=f||!Fe(k),k===92?v:$)}function v(k){return k===91||k===92||k===93?(t.consume(k),c++,$):$(k)}}function ua(t,r,e,n,i,o){let a;return c;function c(v){return t.enter(n),t.enter(i),t.consume(v),t.exit(i),a=v===40?41:v,f}function f(v){return v===a?(t.enter(i),t.consume(v),t.exit(i),t.exit(n),r):(t.enter(o),h(v))}function h(v){return v===a?(t.exit(o),f(a)):v===null?e(v):le(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),ge(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===a||v===null||le(v)?(t.exit("chunkString"),h(v)):(t.consume(v),v===92?$:d)}function $(v){return v===a||v===92?(t.consume(v),d):d(v)}}function Ai(t,r){let e;return n;function n(i){return le(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e=!0,n):Fe(i)?ge(t,n,e?"linePrefix":"lineSuffix")(i):r(i)}}function nr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Du={name:"definition",tokenize:uw},lw={tokenize:cw,partial:!0};function uw(t,r,e){let n=this,i;return o;function o(f){return t.enter("definition"),la.call(n,t,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=nr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),Ai(t,aa(t,t.attempt(lw,ge(t,c,"whitespace"),ge(t,c,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(f)}function c(f){return f===null||le(f)?(t.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),r(f)):e(f)}}function cw(t,r,e){return n;function n(a){return Me(a)?Ai(t,i)(a):e(a)}function i(a){return a===34||a===39||a===40?ua(t,ge(t,o,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):e(a)}function o(a){return a===null||le(a)?r(a):e(a)}}var Nu={name:"hardBreakEscape",tokenize:fw};function fw(t,r,e){return n;function n(o){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(o),i}function i(o){return le(o)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),r(o)):e(o)}}var Ru={name:"headingAtx",tokenize:dw,resolve:pw};function pw(t,r){let e=t.length-2,n=3,i,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&&(i={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"},Ct(t,n,e-n+1,[["enter",i,r],["enter",o,r],["exit",o,r],["exit",i,r]])),t}function dw(t,r,e){let n=this,i=0;return o;function o(d){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&i++<6?(t.consume(d),a):d===null||Me(d)?(t.exit("atxHeadingSequence"),n.interrupt?r(d):c(d)):e(d)}function c(d){return d===35?(t.enter("atxHeadingSequence"),f(d)):d===null||le(d)?(t.exit("atxHeading"),r(d)):Fe(d)?ge(t,c,"whitespace")(d):(t.enter("atxHeadingText"),h(d))}function f(d){return d===35?(t.consume(d),f):(t.exit("atxHeadingSequence"),c(d))}function h(d){return d===null||d===35||Me(d)?(t.exit("atxHeadingText"),c(d)):(t.consume(d),h)}}var Yd=["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"],Lu=["pre","script","style","textarea"];var ju={name:"htmlFlow",tokenize:gw,resolveTo:hw,concrete:!0},mw={tokenize:yw,partial:!0};function hw(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 gw(t,r,e){let n=this,i,o,a,c,f;return h;function h(D){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(D),d}function d(D){return D===33?(t.consume(D),$):D===47?(t.consume(D),_):D===63?(t.consume(D),i=3,n.interrupt?r:nt):rr(D)?(t.consume(D),a=String.fromCharCode(D),o=!0,T):e(D)}function $(D){return D===45?(t.consume(D),i=2,v):D===91?(t.consume(D),i=5,a="CDATA[",c=0,k):rr(D)?(t.consume(D),i=4,n.interrupt?r:nt):e(D)}function v(D){return D===45?(t.consume(D),n.interrupt?r:nt):e(D)}function k(D){return D===a.charCodeAt(c++)?(t.consume(D),c===a.length?n.interrupt?r:ve:k):e(D)}function _(D){return rr(D)?(t.consume(D),a=String.fromCharCode(D),T):e(D)}function T(D){return D===null||D===47||D===62||Me(D)?D!==47&&o&&Lu.includes(a.toLowerCase())?(i=1,n.interrupt?r(D):ve(D)):Yd.includes(a.toLowerCase())?(i=6,D===47?(t.consume(D),L):n.interrupt?r(D):ve(D)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(D):o?ee(D):N(D)):D===45||Lt(D)?(t.consume(D),a+=String.fromCharCode(D),T):e(D)}function L(D){return D===62?(t.consume(D),n.interrupt?r:ve):e(D)}function N(D){return Fe(D)?(t.consume(D),N):ke(D)}function ee(D){return D===47?(t.consume(D),ke):D===58||D===95||rr(D)?(t.consume(D),re):Fe(D)?(t.consume(D),ee):ke(D)}function re(D){return D===45||D===46||D===58||D===95||Lt(D)?(t.consume(D),re):de(D)}function de(D){return D===61?(t.consume(D),fe):Fe(D)?(t.consume(D),de):ee(D)}function fe(D){return D===null||D===60||D===61||D===62||D===96?e(D):D===34||D===39?(t.consume(D),f=D,J):Fe(D)?(t.consume(D),fe):(f=null,me(D))}function J(D){return D===null||le(D)?e(D):D===f?(t.consume(D),be):(t.consume(D),J)}function me(D){return D===null||D===34||D===39||D===60||D===61||D===62||D===96||Me(D)?de(D):(t.consume(D),me)}function be(D){return D===47||D===62||Fe(D)?ee(D):e(D)}function ke(D){return D===62?(t.consume(D),Oe):e(D)}function Oe(D){return Fe(D)?(t.consume(D),Oe):D===null||le(D)?ve(D):e(D)}function ve(D){return D===45&&i===2?(t.consume(D),He):D===60&&i===1?(t.consume(D),H):D===62&&i===4?(t.consume(D),Ve):D===63&&i===3?(t.consume(D),nt):D===93&&i===5?(t.consume(D),je):le(D)&&(i===6||i===7)?t.check(mw,Ve,xe)(D):D===null||le(D)?xe(D):(t.consume(D),ve)}function xe(D){return t.exit("htmlFlowData"),ue(D)}function ue(D){return D===null?O(D):le(D)?t.attempt({tokenize:$e,partial:!0},ue,O)(D):(t.enter("htmlFlowData"),ve(D))}function $e(D,Kt,Tt){return at;function at(ht){return D.enter("lineEnding"),D.consume(ht),D.exit("lineEnding"),mt}function mt(ht){return n.parser.lazy[n.now().line]?Tt(ht):Kt(ht)}}function He(D){return D===45?(t.consume(D),nt):ve(D)}function H(D){return D===47?(t.consume(D),a="",ft):ve(D)}function ft(D){return D===62&&Lu.includes(a.toLowerCase())?(t.consume(D),Ve):rr(D)&&a.length<8?(t.consume(D),a+=String.fromCharCode(D),ft):ve(D)}function je(D){return D===93?(t.consume(D),nt):ve(D)}function nt(D){return D===62?(t.consume(D),Ve):D===45&&i===2?(t.consume(D),nt):ve(D)}function Ve(D){return D===null||le(D)?(t.exit("htmlFlowData"),O(D)):(t.consume(D),Ve)}function O(D){return t.exit("htmlFlow"),r(D)}}function yw(t,r,e){return n;function n(i){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),t.attempt(gn,r,e)}}var Bu={name:"htmlText",tokenize:$w};function $w(t,r,e){let n=this,i,o,a,c;return f;function f(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),h}function h(O){return O===33?(t.consume(O),d):O===47?(t.consume(O),me):O===63?(t.consume(O),fe):rr(O)?(t.consume(O),Oe):e(O)}function d(O){return O===45?(t.consume(O),$):O===91?(t.consume(O),o="CDATA[",a=0,L):rr(O)?(t.consume(O),de):e(O)}function $(O){return O===45?(t.consume(O),v):e(O)}function v(O){return O===null||O===62?e(O):O===45?(t.consume(O),k):_(O)}function k(O){return O===null||O===62?e(O):_(O)}function _(O){return O===null?e(O):O===45?(t.consume(O),T):le(O)?(c=_,je(O)):(t.consume(O),_)}function T(O){return O===45?(t.consume(O),Ve):_(O)}function L(O){return O===o.charCodeAt(a++)?(t.consume(O),a===o.length?N:L):e(O)}function N(O){return O===null?e(O):O===93?(t.consume(O),ee):le(O)?(c=N,je(O)):(t.consume(O),N)}function ee(O){return O===93?(t.consume(O),re):N(O)}function re(O){return O===62?Ve(O):O===93?(t.consume(O),re):N(O)}function de(O){return O===null||O===62?Ve(O):le(O)?(c=de,je(O)):(t.consume(O),de)}function fe(O){return O===null?e(O):O===63?(t.consume(O),J):le(O)?(c=fe,je(O)):(t.consume(O),fe)}function J(O){return O===62?Ve(O):fe(O)}function me(O){return rr(O)?(t.consume(O),be):e(O)}function be(O){return O===45||Lt(O)?(t.consume(O),be):ke(O)}function ke(O){return le(O)?(c=ke,je(O)):Fe(O)?(t.consume(O),ke):Ve(O)}function Oe(O){return O===45||Lt(O)?(t.consume(O),Oe):O===47||O===62||Me(O)?ve(O):e(O)}function ve(O){return O===47?(t.consume(O),Ve):O===58||O===95||rr(O)?(t.consume(O),xe):le(O)?(c=ve,je(O)):Fe(O)?(t.consume(O),ve):Ve(O)}function xe(O){return O===45||O===46||O===58||O===95||Lt(O)?(t.consume(O),xe):ue(O)}function ue(O){return O===61?(t.consume(O),$e):le(O)?(c=ue,je(O)):Fe(O)?(t.consume(O),ue):ve(O)}function $e(O){return O===null||O===60||O===61||O===62||O===96?e(O):O===34||O===39?(t.consume(O),i=O,He):le(O)?(c=$e,je(O)):Fe(O)?(t.consume(O),$e):(t.consume(O),i=void 0,ft)}function He(O){return O===i?(t.consume(O),H):O===null?e(O):le(O)?(c=He,je(O)):(t.consume(O),He)}function H(O){return O===62||O===47||Me(O)?ve(O):e(O)}function ft(O){return O===null||O===34||O===39||O===60||O===61||O===96?e(O):O===62||Me(O)?ve(O):(t.consume(O),ft)}function je(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),ge(t,nt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nt(O){return t.enter("htmlTextData"),c(O)}function Ve(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),r):e(O)}}var Si={name:"labelEnd",tokenize:Cw,resolveTo:xw,resolveAll:vw},bw={tokenize:Ew},kw={tokenize:_w},ww={tokenize:Aw};function vw(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 xw(t,r){let e=t.length,n=0,i,o,a,c;for(;e--;)if(i=t[e][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[e][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[e][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=e,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(a=e);let f={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},h={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[a][1].end)},d={type:"labelText",start:Object.assign({},t[o+n+2][1].end),end:Object.assign({},t[a-2][1].start)};return c=[["enter",f,r],["enter",h,r]],c=fr(c,t.slice(o+1,o+n+3)),c=fr(c,[["enter",d,r]]),c=fr(c,Wn(r.parser.constructs.insideSpan.null,t.slice(o+n+4,a-3),r)),c=fr(c,[["exit",d,r],t[a-2],t[a-1],["exit",h,r]]),c=fr(c,t.slice(a+1)),c=fr(c,[["exit",f,r]]),Ct(t,o,t.length,c),t}function Cw(t,r,e){let n=this,i=n.events.length,o,a;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return c;function c(d){return o?o._inactive?h(d):(a=n.parser.defined.includes(nr(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelEnd"),f):e(d)}function f(d){return d===40?t.attempt(bw,r,a?r:h)(d):d===91?t.attempt(kw,r,a?t.attempt(ww,r,h):h)(d):a?r(d):h(d)}function h(d){return o._balanced=!0,e(d)}}function Ew(t,r,e){return n;function n(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),Ai(t,i)}function i(f){return f===41?c(f):aa(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Me(f)?Ai(t,a)(f):c(f)}function a(f){return f===34||f===39||f===40?ua(t,Ai(t,c),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),r):e(f)}}function _w(t,r,e){let n=this;return i;function i(a){return la.call(n,t,o,e,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(nr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?r(a):e(a)}}function Aw(t,r,e){return n;function n(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),i}function i(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),r):e(o)}}var zu={name:"labelStartImage",tokenize:Sw,resolveAll:Si.resolveAll};function Sw(t,r,e){let n=this;return i;function i(c){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(c),t.exit("labelImageMarker"),o}function o(c){return c===91?(t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelImage"),a):e(c)}function a(c){return c===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(c):r(c)}}var Mu={name:"labelStartLink",tokenize:Pw,resolveAll:Si.resolveAll};function Pw(t,r,e){let n=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(a):r(a)}}var Qo={name:"lineEnding",tokenize:Tw};function Tw(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ge(t,r,"linePrefix")}}var Pi={name:"thematicBreak",tokenize:Iw};function Iw(t,r,e){let n=0,i;return o;function o(f){return t.enter("thematicBreak"),i=f,a(f)}function a(f){return f===i?(t.enter("thematicBreakSequence"),c(f)):Fe(f)?ge(t,a,"whitespace")(f):n<3||f!==null&&!le(f)?e(f):(t.exit("thematicBreak"),r(f))}function c(f){return f===i?(t.consume(f),n++,c):(t.exit("thematicBreakSequence"),a(f))}}var ir={name:"list",tokenize:qw,continuation:{tokenize:Dw},exit:Rw},Fw={tokenize:Lw,partial:!0},Ow={tokenize:Nw,partial:!0};function qw(t,r,e){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return c;function c(k){let _=n.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!n.containerState.marker||k===n.containerState.marker:Ci(k)){if(n.containerState.type||(n.containerState.type=_,t.enter(_,{_container:!0})),_==="listUnordered")return t.enter("listItemPrefix"),k===42||k===45?t.check(Pi,e,h)(k):h(k);if(!n.interrupt||k===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),f(k)}return e(k)}function f(k){return Ci(k)&&++a<10?(t.consume(k),f):(!n.interrupt||a<2)&&(n.containerState.marker?k===n.containerState.marker:k===41||k===46)?(t.exit("listItemValue"),h(k)):e(k)}function h(k){return t.enter("listItemMarker"),t.consume(k),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||k,t.check(gn,n.interrupt?e:d,t.attempt(Fw,v,$))}function d(k){return n.containerState.initialBlankLine=!0,o++,v(k)}function $(k){return Fe(k)?(t.enter("listItemPrefixWhitespace"),t.consume(k),t.exit("listItemPrefixWhitespace"),v):e(k)}function v(k){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(k)}}function Dw(t,r,e){let n=this;return n.containerState._closeFlow=void 0,t.check(gn,i,o);function i(c){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ge(t,r,"listItemIndent",n.containerState.size+1)(c)}function o(c){return n.containerState.furtherBlankLines||!Fe(c)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(c)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Ow,r,a)(c))}function a(c){return n.containerState._closeFlow=!0,n.interrupt=void 0,ge(t,t.attempt(ir,r,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function Nw(t,r,e){let n=this;return ge(t,i,"listItemIndent",n.containerState.size+1);function i(o){let a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?r(o):e(o)}}function Rw(t){t.exit(this.containerState.type)}function Lw(t,r,e){let n=this;return ge(t,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){let a=n.events[n.events.length-1];return!Fe(o)&&a&&a[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var ca={name:"setextUnderline",tokenize:Bw,resolveTo:jw};function jw(t,r){let e=t.length,n,i,o;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){n=e;break}t[e][1].type==="paragraph"&&(i=e)}else t[e][1].type==="content"&&t.splice(e,1),!o&&t[e][1].type==="definition"&&(o=e);let a={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",a,r]),t.splice(o+1,0,["exit",t[n][1],r]),t[n][1].end=Object.assign({},t[o][1].end)):t[n][1]=a,t.push(["exit",a,r]),t}function Bw(t,r,e){let n=this,i=n.events.length,o,a;for(;i--;)if(n.events[i][1].type!=="lineEnding"&&n.events[i][1].type!=="linePrefix"&&n.events[i][1].type!=="content"){a=n.events[i][1].type==="paragraph";break}return c;function c(d){return!n.parser.lazy[n.now().line]&&(n.interrupt||a)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),o=d,f(d)):e(d)}function f(d){return d===o?(t.consume(d),f):(t.exit("setextHeadingLineSequence"),ge(t,h,"lineSuffix")(d))}function h(d){return d===null||le(d)?(t.exit("setextHeadingLine"),r(d)):e(d)}}var em={tokenize:zw};function zw(t){let r=this,e=t.attempt(gn,n,t.attempt(this.parser.constructs.flowInitial,i,ge(t,t.attempt(this.parser.constructs.flow,i,t.attempt(qu,i)),"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 i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r.currentConstruct=void 0,e}}var tm={resolveAll:om()},rm=im("string"),nm=im("text");function im(t){return{tokenize:r,resolveAll:om(t==="text"?Mw:void 0)};function r(e){let n=this,i=this.parser.constructs[t],o=e.attempt(i,a,c);return a;function a(d){return h(d)?o(d):c(d)}function c(d){if(d===null){e.consume(d);return}return e.enter("data"),e.consume(d),f}function f(d){return h(d)?(e.exit("data"),o(d)):(e.consume(d),f)}function h(d){if(d===null)return!0;let $=i[d],v=-1;if($)for(;++v<$.length;){let k=$[v];if(!k.previous||k.previous.call(n,n.previous))return!0}return!1}}}function om(t){return r;function r(e,n){let i=-1,o;for(;++i<=e.length;)o===void 0?e[i]&&e[i][1].type==="data"&&(o=i,i++):(!e[i]||e[i][1].type!=="data")&&(i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),i=o+2),o=void 0);return t?t(e,n):e}}function Mw(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],i=r.sliceStream(n),o=i.length,a=-1,c=0,f;for(;o--;){let h=i[o];if(typeof h=="string"){for(a=h.length;h.charCodeAt(a-1)===32;)c++,a--;if(a)break;a=-1}else if(h===-2)f=!0,c++;else if(h!==-1){o++;break}}if(c){let h={type:e===t.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+o,_bufferIndex:o?a:n.start._bufferIndex+a},end:Object.assign({},n.end)};n.end=Object.assign({},h.start),n.start.offset===n.end.offset?Object.assign(n,h):(t.splice(e,0,["enter",h,r],["exit",h,r]),e+=2)}e++}return t}function sm(t,r,e){let n=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],a=[],c=[],f=!0,h={consume:de,enter:fe,exit:J,attempt:ke(me),check:ke(be),interrupt:ke(be,{interrupt:!0})},d={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:T,sliceSerialize:_,now:L,defineSkip:N,write:k},$=r.tokenize.call(d,h),v;return r.resolveAll&&o.push(r),d;function k(ue){return a=fr(a,ue),ee(),a[a.length-1]!==null?[]:(Oe(r,0),d.events=Wn(o,d.events,d),d.events)}function _(ue,$e){return Uw(T(ue),$e)}function T(ue){return Vw(a,ue)}function L(){return Object.assign({},n)}function N(ue){i[ue.line]=ue.column,xe()}function ee(){let ue;for(;n._index<a.length;){let $e=a[n._index];if(typeof $e=="string")for(ue=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===ue&&n._bufferIndex<$e.length;)re($e.charCodeAt(n._bufferIndex));else re($e)}}function re(ue){f=void 0,v=ue,$=$(ue)}function de(ue){le(ue)?(n.line++,n.column=1,n.offset+=ue===-3?2:1,xe()):ue!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),d.previous=ue,f=!0}function fe(ue,$e){let He=$e||{};return He.type=ue,He.start=L(),d.events.push(["enter",He,d]),c.push(He),He}function J(ue){let $e=c.pop();return $e.end=L(),d.events.push(["exit",$e,d]),$e}function me(ue,$e){Oe(ue,$e.from)}function be(ue,$e){$e.restore()}function ke(ue,$e){return He;function He(H,ft,je){let nt,Ve,O,D;return Array.isArray(H)?Tt(H):"tokenize"in H?Tt([H]):Kt(H);function Kt(he){return vr;function vr(Dt){let Wt=Dt!==null&&he[Dt],or=Dt!==null&&he.null,pr=[...Array.isArray(Wt)?Wt:Wt?[Wt]:[],...Array.isArray(or)?or:or?[or]:[]];return Tt(pr)(Dt)}}function Tt(he){return nt=he,Ve=0,he.length===0?je:at(he[Ve])}function at(he){return vr;function vr(Dt){return D=ve(),O=he,he.partial||(d.currentConstruct=he),he.name&&d.parser.constructs.disable.null.includes(he.name)?ht(Dt):he.tokenize.call($e?Object.assign(Object.create(d),$e):d,h,mt,ht)(Dt)}}function mt(he){return f=!0,ue(O,D),ft}function ht(he){return f=!0,D.restore(),++Ve<nt.length?at(nt[Ve]):je}}}function Oe(ue,$e){ue.resolveAll&&!o.includes(ue)&&o.push(ue),ue.resolve&&Ct(d.events,$e,d.events.length-$e,ue.resolve(d.events.slice($e),d)),ue.resolveTo&&(d.events=ue.resolveTo(d.events,d))}function ve(){let ue=L(),$e=d.previous,He=d.currentConstruct,H=d.events.length,ft=Array.from(c);return{restore:je,from:H};function je(){n=ue,d.previous=$e,d.currentConstruct=He,d.events.length=H,c=ft,xe()}}function xe(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Vw(t,r){let e=r.start._index,n=r.start._bufferIndex,i=r.end._index,o=r.end._bufferIndex,a;return e===i?a=[t[e].slice(n,o)]:(a=t.slice(e,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(t[i].slice(0,o))),a}function Uw(t,r){let e=-1,n=[],i;for(;++e<t.length;){let o=t[e],a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
|
18
18
|
`;break}case-3:{a=`\r
|
|
19
|
-
`;break}case-2:{a=r?" ":" ";break}case-1:{if(!r&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,n.push(a)}return n.join("")}var Vu={};Ac(Vu,{attentionMarkers:()=>Xw,contentInitial:()=>Gw,disable:()=>Yw,document:()=>Hw,flow:()=>Ww,flowInitial:()=>Kw,insideSpan:()=>Qw,string:()=>Zw,text:()=>Jw});var Hw={[42]:ir,[43]:ir,[45]:ir,[48]:ir,[49]:ir,[50]:ir,[51]:ir,[52]:ir,[53]:ir,[54]:ir,[55]:ir,[56]:ir,[57]:ir,[62]:ra},Gw={[91]:Du},Kw={[-2]:Jo,[-1]:Jo,[32]:Jo},Ww={[35]:Ru,[42]:Pi,[45]:[ca,Pi],[60]:ju,[61]:ca,[95]:Pi,[96]:oa,[126]:oa},Zw={[38]:ia,[92]:na},Jw={[-5]:Qo,[-4]:Qo,[-3]:Qo,[33]:zu,[38]:ia,[42]:Zo,[60]:[Iu,Bu],[91]:Mu,[92]:[Nu,na],[93]:Si,[95]:Zo,[96]:Ou},Qw={null:[Zo,tm]},Xw={null:[42,95]},Yw={null:[]};function am(t={}){let r=ta([Vu].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(Zd),document:n(Qd),flow:n(em),string:n(rm),text:n(nm)};return e;function n(i){return o;function o(a){return sm(e,i,a)}}}var lm=/[\0\t\n\r]/g;function um(){let t=1,r="",e=!0,n;return i;function i(o,a,c){let f=[],h,d,b,v,k;for(o=r+o.toString(a),b=0,r="",e&&(o.charCodeAt(0)===65279&&b++,e=void 0);b<o.length;){if(lm.lastIndex=b,h=lm.exec(o),v=h&&h.index!==void 0?h.index:o.length,k=o.charCodeAt(v),!h){r=o.slice(b);break}if(k===10&&b===v&&n)f.push(-3),n=void 0;else switch(n&&(f.push(-5),n=void 0),b<v&&(f.push(o.slice(b,v)),t+=v-b),k){case 0:{f.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,f.push(-2);t++<d;)f.push(-1);break}case 10:{f.push(-4),t=1;break}default:n=!0,t=1}b=v+1}return c&&(n&&f.push(-5),r&&f.push(r),f.push(null)),f}}function cm(t){for(;!sa(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 ev=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pa(t){return t.replace(ev,tv)}function tv(t,r,e){if(r)return r;if(e.charCodeAt(0)===35){let i=e.charCodeAt(1),o=i===120||i===88;return fa(e.slice(o?2:1),o?16:10)}return uo(e)||t}var Uu={}.hasOwnProperty,Hu=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),rv(e)(cm(am(e).document().write(um()(t,r,!0))))};function rv(t={}){let r=pm({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f($t),autolinkProtocol:xe,autolinkEmail:xe,atxHeading:f(gt),blockQuote:f(or),characterEscape:xe,characterReference:xe,codeFenced:f(pr),codeFencedFenceInfo:h,codeFencedFenceMeta:h,codeIndented:f(pr,h),codeText:f(Zt,h),codeTextData:xe,data:xe,codeFlowValue:xe,definition:f(Zn),definitionDestinationString:h,definitionLabelString:h,definitionTitleString:h,emphasis:f(Sn),hardBreakEscape:f(yt),hardBreakTrailing:f(yt),htmlFlow:f(jt,h),htmlFlowData:xe,htmlText:f(jt,h),htmlTextData:xe,image:f(bt),label:h,link:f($t),listItem:f(pt),listItemValue:T,listOrdered:f(kt,_),listUnordered:f(kt),paragraph:f(It),reference:mt,referenceString:h,resourceDestinationString:h,resourceTitleString:h,setextHeading:f(gt),strong:f(Ft),thematicBreak:f(sr)},exit:{atxHeading:b(),atxHeadingSequence:$e,autolink:b(),autolinkEmail:Wt,autolinkProtocol:Dt,blockQuote:b(),characterEscapeValue:ue,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:vr,codeFenced:b(re),codeFencedFence:ee,codeFencedFenceInfo:L,codeFencedFenceMeta:N,codeFlowValue:ue,codeIndented:b(de),codeText:b(je),codeTextData:ue,data:ue,definition:b(),definitionDestinationString:me,definitionLabelString:fe,definitionTitleString:J,emphasis:b(),hardBreakEscape:b(He),hardBreakTrailing:b(He),htmlFlow:b(H),htmlFlowData:ue,htmlText:b(ft),htmlTextData:ue,image:b(Ve),label:D,labelText:O,lineEnding:be,link:b(nt),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:ht,resourceDestinationString:Kt,resourceTitleString:Tt,resource:at,setextHeading:b(ve),setextHeadingLineSequence:Oe,setextHeadingText:ke,strong:b(),thematicBreak:b()}},t.mdastExtensions||[]),e={};return n;function n(W){let ie={type:"root",children:[]},ye=[ie],Se=[],Ot=[],jr={stack:ye,tokenStack:Se,config:r,enter:d,exit:v,buffer:h,resume:k,setData:o,getData:a},Ue=-1;for(;++Ue<W.length;)if(W[Ue][1].type==="listOrdered"||W[Ue][1].type==="listUnordered")if(W[Ue][0]==="enter")Ot.push(Ue);else{let lt=Ot.pop();Ue=i(W,lt,Ue)}for(Ue=-1;++Ue<W.length;){let lt=r[W[Ue][0]];Uu.call(lt,W[Ue][1].type)&<[W[Ue][1].type].call(Object.assign({sliceSerialize:W[Ue][2].sliceSerialize},jr),W[Ue][1])}if(Se.length>0){let lt=Se[Se.length-1];(lt[1]||fm).call(jr,void 0,lt[0])}for(ie.position={start:c(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:c(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<r.transforms.length;)ie=r.transforms[Ue](ie)||ie;return ie}function i(W,ie,ye){let Se=ie-1,Ot=-1,jr=!1,Ue,lt,wt,dr;for(;++Se<=ye;){let Ge=W[Se];if(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered"||Ge[1].type==="blockQuote"?(Ge[0]==="enter"?Ot++:Ot--,dr=void 0):Ge[1].type==="lineEndingBlank"?Ge[0]==="enter"&&(Ue&&!dr&&!Ot&&!wt&&(wt=Se),dr=void 0):Ge[1].type==="linePrefix"||Ge[1].type==="listItemValue"||Ge[1].type==="listItemMarker"||Ge[1].type==="listItemPrefix"||Ge[1].type==="listItemPrefixWhitespace"||(dr=void 0),!Ot&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||Ot===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(Ue){let bn=Se;for(lt=void 0;bn--;){let Bt=W[bn];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;lt&&(W[lt][1].type="lineEndingBlank",jr=!0),Bt[1].type="lineEnding",lt=bn}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}wt&&(!lt||wt<lt)&&(Ue._spread=!0),Ue.end=Object.assign({},lt?W[lt][1].start:Ge[1].end),W.splice(lt||Se,0,["exit",Ue,Ge[2]]),Se++,ye++}Ge[1].type==="listItemPrefix"&&(Ue={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start)},W.splice(Se,0,["enter",Ue,Ge[2]]),Se++,ye++,wt=void 0,dr=!0)}}return W[ie][1]._spread=jr,ye}function o(W,ie){e[W]=ie}function a(W){return e[W]}function c(W){return{line:W.line,column:W.column,offset:W.offset}}function f(W,ie){return ye;function ye(Se){d.call(this,W(Se),Se),ie&&ie.call(this,Se)}}function h(){this.stack.push({type:"fragment",children:[]})}function d(W,ie,ye){return this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ie,ye]),W.position={start:c(ie.start)},W}function b(W){return ie;function ie(ye){W&&W.call(this,ye),v.call(this,ye)}}function v(W,ie){let ye=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==W.type&&(ie?ie.call(this,W,Se[0]):(Se[1]||fm).call(this,W,Se[0]));else throw new Error("Cannot close `"+W.type+"` ("+xi({start:W.start,end:W.end})+"): it\u2019s not open");return ye.position.end=c(W.end),ye}function k(){return Vd(this.stack.pop())}function _(){o("expectingFirstListItemValue",!0)}function T(W){if(a("expectingFirstListItemValue")){let ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(W),10),o("expectingFirstListItemValue")}}function L(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=W}function N(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=W}function ee(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function re(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function de(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W.replace(/(\r?\n|\r)$/g,"")}function fe(W){let ie=this.resume(),ye=this.stack[this.stack.length-1];ye.label=ie,ye.identifier=nr(this.sliceSerialize(W)).toLowerCase()}function J(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.title=W}function me(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.url=W}function $e(W){let ie=this.stack[this.stack.length-1];if(!ie.depth){let ye=this.sliceSerialize(W).length;ie.depth=ye}}function ke(){o("setextHeadingSlurpLineEnding",!0)}function Oe(W){let ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(W).charCodeAt(0)===61?1:2}function ve(){o("setextHeadingSlurpLineEnding")}function xe(W){let ie=this.stack[this.stack.length-1],ye=ie.children[ie.children.length-1];(!ye||ye.type!=="text")&&(ye=xr(),ye.position={start:c(W.start)},ie.children.push(ye)),this.stack.push(ye)}function ue(W){let ie=this.stack.pop();ie.value+=this.sliceSerialize(W),ie.position.end=c(W.end)}function be(W){let ie=this.stack[this.stack.length-1];if(a("atHardBreak")){let ye=ie.children[ie.children.length-1];ye.position.end=c(W.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(ie.type)&&(xe.call(this,W),ue.call(this,W))}function He(){o("atHardBreak",!0)}function H(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W}function ft(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W}function je(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W}function nt(){let W=this.stack[this.stack.length-1];a("inReference")?(W.type+="Reference",W.referenceType=a("referenceType")||"shortcut",delete W.url,delete W.title):(delete W.identifier,delete W.label),o("referenceType")}function Ve(){let W=this.stack[this.stack.length-1];a("inReference")?(W.type+="Reference",W.referenceType=a("referenceType")||"shortcut",delete W.url,delete W.title):(delete W.identifier,delete W.label),o("referenceType")}function O(W){let ie=this.stack[this.stack.length-2],ye=this.sliceSerialize(W);ie.label=pa(ye),ie.identifier=nr(ye).toLowerCase()}function D(){let W=this.stack[this.stack.length-1],ie=this.resume(),ye=this.stack[this.stack.length-1];o("inReference",!0),ye.type==="link"?ye.children=W.children:ye.alt=ie}function Kt(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.url=W}function Tt(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.title=W}function at(){o("inReference")}function mt(){o("referenceType","collapsed")}function ht(W){let ie=this.resume(),ye=this.stack[this.stack.length-1];ye.label=ie,ye.identifier=nr(this.sliceSerialize(W)).toLowerCase(),o("referenceType","full")}function he(W){o("characterReferenceType",W.type)}function vr(W){let ie=this.sliceSerialize(W),ye=a("characterReferenceType"),Se;ye?(Se=fa(ie,ye==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Se=uo(ie);let Ot=this.stack.pop();Ot.value+=Se,Ot.position.end=c(W.end)}function Dt(W){ue.call(this,W);let ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(W)}function Wt(W){ue.call(this,W);let ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(W)}function or(){return{type:"blockquote",children:[]}}function pr(){return{type:"code",lang:null,meta:null,value:""}}function Zt(){return{type:"inlineCode",value:""}}function Zn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Sn(){return{type:"emphasis",children:[]}}function gt(){return{type:"heading",depth:void 0,children:[]}}function yt(){return{type:"break"}}function jt(){return{type:"html",value:""}}function bt(){return{type:"image",title:null,url:"",alt:null}}function $t(){return{type:"link",title:null,url:"",children:[]}}function kt(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function pt(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function It(){return{type:"paragraph",children:[]}}function Ft(){return{type:"strong",children:[]}}function xr(){return{type:"text",value:""}}function sr(){return{type:"thematicBreak"}}}function pm(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?pm(t,n):nv(t,n)}return t}function nv(t,r){let e;for(e in r)if(Uu.call(r,e)){let n=e==="canContainEols"||e==="transforms",o=(Uu.call(t,e)?t[e]:void 0)||(t[e]=n?[]:{}),a=r[e];a&&(n?t[e]=[...o,...a]:Object.assign(o,a))}}function fm(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+xi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+xi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+xi({start:r.start,end:r.end})+") is still open")}function Gu(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return Hu(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var dm=Gu;var iv={tokenize:lv,partial:!0},hm={tokenize:uv,partial:!0},gm={tokenize:cv,partial:!0},co={tokenize:pv,partial:!0},ym={tokenize:fv,partial:!0},bm={tokenize:sv,previous:wm},$m={tokenize:av,previous:Zu},An={tokenize:ov,previous:vm},yn={},Ku={text:yn},Ti=48;for(;Ti<123;)yn[Ti]=An,Ti++,Ti===58?Ti=65:Ti===91&&(Ti=97);yn[43]=An;yn[45]=An;yn[46]=An;yn[95]=An;yn[72]=[An,$m];yn[104]=[An,$m];yn[87]=[An,bm];yn[119]=[An,bm];function ov(t,r,e){let n=this,i,o;return a;function a(k){return!mm(k)||!vm(n.previous)||Ju(n.events)?e(k):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),c(k))}function c(k){return mm(k)?(t.consume(k),c):k===64?(t.consume(k),f):e(k)}function f(k){return k===46?t.check(co,v,h)(k):k===45||k===95?t.check(co,e,d)(k):Lt(k)?(!o&&Ci(k)&&(o=!0),t.consume(k),f):v(k)}function h(k){return t.consume(k),i=!0,o=void 0,f}function d(k){return t.consume(k),b}function b(k){return k===46?t.check(co,e,h)(k):f(k)}function v(k){return i&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(k)):e(k)}}function sv(t,r,e){let n=this;return i;function i(a){return a!==87&&a!==119||!wm(n.previous)||Ju(n.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(iv,t.attempt(hm,t.attempt(gm,o),e),e)(a))}function o(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(a)}}function av(t,r,e){let n=this;return i;function i(_){return _!==72&&_!==104||!Zu(n.previous)||Ju(n.events)?e(_):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(_),o)}function o(_){return _===84||_===116?(t.consume(_),a):e(_)}function a(_){return _===84||_===116?(t.consume(_),c):e(_)}function c(_){return _===80||_===112?(t.consume(_),f):e(_)}function f(_){return _===83||_===115?(t.consume(_),h):h(_)}function h(_){return _===58?(t.consume(_),d):e(_)}function d(_){return _===47?(t.consume(_),b):e(_)}function b(_){return _===47?(t.consume(_),v):e(_)}function v(_){return _===null||Gn(_)||Ei(_)||_i(_)?e(_):t.attempt(hm,t.attempt(gm,k),e)(_)}function k(_){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(_)}}function lv(t,r,e){return n;function n(f){return t.consume(f),i}function i(f){return f===87||f===119?(t.consume(f),o):e(f)}function o(f){return f===87||f===119?(t.consume(f),a):e(f)}function a(f){return f===46?(t.consume(f),c):e(f)}function c(f){return f===null||le(f)?e(f):r(f)}}function uv(t,r,e){let n,i;return o;function o(f){return f===38?t.check(ym,c,a)(f):f===46||f===95?t.check(co,c,a)(f):f===null||Gn(f)||Ei(f)||f!==45&&_i(f)?c(f):(t.consume(f),o)}function a(f){return f===46?(i=n,n=void 0,t.consume(f),o):(f===95&&(n=!0),t.consume(f),o)}function c(f){return!i&&!n?r(f):e(f)}}function cv(t,r){let e=0;return n;function n(a){return a===38?t.check(ym,r,i)(a):(a===40&&e++,a===41?t.check(co,o,i)(a):Wu(a)?r(a):km(a)?t.check(co,r,i)(a):(t.consume(a),n))}function i(a){return t.consume(a),n}function o(a){return e--,e<0?r(a):i(a)}}function fv(t,r,e){return n;function n(a){return t.consume(a),i}function i(a){return rr(a)?(t.consume(a),i):a===59?(t.consume(a),o):e(a)}function o(a){return Wu(a)?r(a):e(a)}}function pv(t,r,e){return n;function n(o){return t.consume(o),i}function i(o){return km(o)?(t.consume(o),i):Wu(o)?r(o):e(o)}}function km(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 Wu(t){return t===null||t===60||Me(t)}function mm(t){return t===43||t===45||t===46||t===95||Lt(t)}function wm(t){return t===null||t===40||t===42||t===95||t===126||Me(t)}function Zu(t){return t===null||!rr(t)}function vm(t){return t!==47&&Zu(t)}function Ju(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 dv={tokenize:kv,partial:!0};function Qu(){return{document:{[91]:{tokenize:yv,continuation:{tokenize:bv},exit:$v}},text:{[91]:{tokenize:gv},[93]:{add:"after",tokenize:mv,resolveTo:hv}}}}function mv(t,r,e){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a;for(;i--;){let f=n.events[i][1];if(f.type==="labelImage"){a=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return c;function c(f){if(!a||!a._balanced)return e(f);let h=nr(n.sliceSerialize({start:a.end,end:n.now()}));return h.charCodeAt(0)!==94||!o.includes(h.slice(1))?e(f):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),r(f))}}function hv(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 i={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 a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},f=[t[e+1],t[e+2],["enter",i,r],t[e+3],t[e+4],["enter",o,r],["exit",o,r],["enter",a,r],["enter",c,r],["exit",c,r],["exit",a,r],t[t.length-2],t[t.length-1],["exit",i,r]];return t.splice(e,t.length-e+1,...f),t}function gv(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,a;return c;function c(v){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),f}function f(v){return v!==94?e(v):(t.enter("gfmFootnoteCallMarker"),t.consume(v),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(v){let k;return v===null||v===91||o++>999?e(v):v===93?a?(t.exit("chunkString"),k=t.exit("gfmFootnoteCallString"),i.includes(nr(n.sliceSerialize(k)))?b(v):e(v)):e(v):(t.consume(v),Me(v)||(a=!0),v===92?d:h)}function d(v){return v===91||v===92||v===93?(t.consume(v),o++,h):h(v)}function b(v){return t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function yv(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,a=0,c;return f;function f(T){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(T){return T===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),d):e(T)}function d(T){let L;return T===null||T===91||a>999?e(T):T===93?c?(L=t.exit("gfmFootnoteDefinitionLabelString"),o=nr(n.sliceSerialize(L)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),k):e(T):le(T)?(t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),a++,d):(t.enter("chunkString").contentType="string",b(T))}function b(T){return T===null||le(T)||T===91||T===93||a>999?(t.exit("chunkString"),d(T)):(Me(T)||(c=!0),a++,t.consume(T),T===92?v:b)}function v(T){return T===91||T===92||T===93?(t.consume(T),a++,b):b(T)}function k(T){return T===58?(t.enter("definitionMarker"),t.consume(T),t.exit("definitionMarker"),ge(t,_,"gfmFootnoteDefinitionWhitespace")):e(T)}function _(T){return i.includes(o)||i.push(o),r(T)}}function bv(t,r,e){return t.check(gn,r,t.attempt(dv,r,e))}function $v(t){t.exit("gfmFootnoteDefinition")}function kv(t,r,e){let n=this;return ge(t,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){let a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?r(o):e(o)}}function Xu(t={}){let r=t.singleTilde,e={tokenize:i,resolveAll:n};return r==null&&(r=!0),{text:{[126]:e},insideSpan:{null:[e]},attentionMarkers:{null:[126]}};function n(o,a){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let f=c;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[c][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";let h={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[c][1].end)},d={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[c][1].start)},b=[["enter",h,a],["enter",o[f][1],a],["exit",o[f][1],a],["enter",d,a]];Ct(b,b.length,0,Wn(a.parser.constructs.insideSpan.null,o.slice(f+1,c),a)),Ct(b,b.length,0,[["exit",d,a],["enter",o[c][1],a],["exit",o[c][1],a],["exit",h,a]]),Ct(o,f-1,c-f+3,b),c=f+b.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function i(o,a,c){let f=this.previous,h=this.events,d=0;return b;function b(k){return f===126&&h[h.length-1][1].type!=="characterEscape"?c(k):(o.enter("strikethroughSequenceTemporary"),v(k))}function v(k){let _=lo(f);if(k===126)return d>1?c(k):(o.consume(k),d++,v);if(d<2&&!r)return c(k);let T=o.exit("strikethroughSequenceTemporary"),L=lo(k);return T._open=!L||L===2&&Boolean(_),T._close=!_||_===2&&Boolean(L),a(k)}}}var Yu={flow:{null:{tokenize:vv,resolve:wv}}},xm={tokenize:xv,partial:!0};function wv(t,r){let e=-1,n,i,o,a,c,f,h;for(;++e<t.length;){let d=t[e][1];if(o&&(d.type==="temporaryTableCellContent"&&(a=a||e,c=e),(d.type==="tableCellDivider"||d.type==="tableRow")&&c)){let b={type:"tableContent",start:t[a][1].start,end:t[c][1].end},v={type:"chunkText",start:b.start,end:b.end,contentType:"text"};t.splice(a,c-a+1,["enter",b,r],["enter",v,r],["exit",v,r],["exit",b,r]),e-=c-a-3,a=void 0,c=void 0}if(t[e][0]==="exit"&&f!==void 0&&f+(h?0:1)<e&&(d.type==="tableCellDivider"||d.type==="tableRow"&&(f+3<e||t[f][1].type!=="whitespace"))){let b={type:i?"tableDelimiter":n?"tableHeader":"tableData",start:t[f][1].start,end:t[e][1].end};t.splice(e+(d.type==="tableCellDivider"?1:0),0,["exit",b,r]),t.splice(f,0,["enter",b,r]),e+=2,f=e+1,h=!0}d.type==="tableRow"&&(o=t[e][0]==="enter",o&&(f=e+1,h=!1)),d.type==="tableDelimiterRow"&&(i=t[e][0]==="enter",i&&(f=e+1,h=!1)),d.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function vv(t,r,e){let n=this,i=[],o=0,a,c;return f;function f(H){return t.enter("table")._align=i,t.enter("tableHead"),t.enter("tableRow"),H===124?h(H):(o++,t.enter("temporaryTableCellContent"),v(H))}function h(H){return t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),a=!0,d}function d(H){return H===null||le(H)?_(H):Fe(H)?(t.enter("whitespace"),t.consume(H),b):(a&&(a=void 0,o++),H===124?h(H):(t.enter("temporaryTableCellContent"),v(H)))}function b(H){return Fe(H)?(t.consume(H),b):(t.exit("whitespace"),d(H))}function v(H){return H===null||H===124||Me(H)?(t.exit("temporaryTableCellContent"),d(H)):(t.consume(H),H===92?k:v)}function k(H){return H===92||H===124?(t.consume(H),v):v(H)}function _(H){if(H===null)return e(H);t.exit("tableRow"),t.exit("tableHead");let ft=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:He,partial:!0},function(je){return n.interrupt=ft,t.enter("tableDelimiterRow"),T(je)},function(je){return n.interrupt=ft,e(je)})(H)}function T(H){return H===null||le(H)?de(H):Fe(H)?(t.enter("whitespace"),t.consume(H),L):H===45?(t.enter("tableDelimiterFiller"),t.consume(H),c=!0,i.push("none"),N):H===58?(t.enter("tableDelimiterAlignment"),t.consume(H),t.exit("tableDelimiterAlignment"),i.push("left"),ee):H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),T):e(H)}function L(H){return Fe(H)?(t.consume(H),L):(t.exit("whitespace"),T(H))}function N(H){return H===45?(t.consume(H),N):(t.exit("tableDelimiterFiller"),H===58?(t.enter("tableDelimiterAlignment"),t.consume(H),t.exit("tableDelimiterAlignment"),i[i.length-1]=i[i.length-1]==="left"?"center":"right",re):T(H))}function ee(H){return H===45?(t.enter("tableDelimiterFiller"),t.consume(H),c=!0,N):e(H)}function re(H){return H===null||le(H)?de(H):Fe(H)?(t.enter("whitespace"),t.consume(H),L):H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),T):e(H)}function de(H){return t.exit("tableDelimiterRow"),!c||o!==i.length?e(H):H===null?fe(H):t.check(xm,fe,t.attempt({tokenize:He,partial:!0},ge(t,J,"linePrefix",4),fe))(H)}function fe(H){return t.exit("table"),r(H)}function J(H){return t.enter("tableBody"),me(H)}function me(H){return t.enter("tableRow"),H===124?$e(H):(t.enter("temporaryTableCellContent"),ve(H))}function $e(H){return t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),ke}function ke(H){return H===null||le(H)?ue(H):Fe(H)?(t.enter("whitespace"),t.consume(H),Oe):H===124?$e(H):(t.enter("temporaryTableCellContent"),ve(H))}function Oe(H){return Fe(H)?(t.consume(H),Oe):(t.exit("whitespace"),ke(H))}function ve(H){return H===null||H===124||Me(H)?(t.exit("temporaryTableCellContent"),ke(H)):(t.consume(H),H===92?xe:ve)}function xe(H){return H===92||H===124?(t.consume(H),ve):ve(H)}function ue(H){return t.exit("tableRow"),H===null?be(H):t.check(xm,be,t.attempt({tokenize:He,partial:!0},ge(t,me,"linePrefix",4),be))(H)}function be(H){return t.exit("tableBody"),fe(H)}function He(H,ft,je){return nt;function nt(O){return H.enter("lineEnding"),H.consume(O),H.exit("lineEnding"),ge(H,Ve,"linePrefix")}function Ve(O){if(n.parser.lazy[n.now().line]||O===null||le(O))return je(O);let D=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&D&&D[1].type==="linePrefix"&&D[2].sliceSerialize(D[1],!0).length>=4?je(O):(n._gfmTableDynamicInterruptHack=!0,H.check(n.parser.constructs.flow,function(Kt){return n._gfmTableDynamicInterruptHack=!1,je(Kt)},function(Kt){return n._gfmTableDynamicInterruptHack=!1,ft(Kt)})(O))}}}function xv(t,r,e){let n=0;return i;function i(a){return t.enter("check"),t.consume(a),o}function o(a){return a===-1||a===32?(t.consume(a),n++,n===4?r:o):a===null||Me(a)?r(a):e(a)}}var Cv={tokenize:Ev},ec={text:{[91]:Cv}};function Ev(t,r,e){let n=this;return i;function i(c){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(c):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),o)}function o(c){return Me(c)?(t.enter("taskListCheckValueUnchecked"),t.consume(c),t.exit("taskListCheckValueUnchecked"),a):c===88||c===120?(t.enter("taskListCheckValueChecked"),t.consume(c),t.exit("taskListCheckValueChecked"),a):e(c)}function a(c){return c===93?(t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:_v},r,e)):e(c)}}function _v(t,r,e){let n=this;return ge(t,i,"whitespace");function i(o){let a=n.events[n.events.length-1];return(a&&a[1].type==="whitespace"||le(o))&&o!==null?r(o):e(o)}}function Cm(t){return ta([Ku,Qu(),Xu(t),Yu,ec])}function tc(t,r){let e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,i=e.indexOf(r);for(;i!==-1;)n++,i=e.indexOf(r,i+r.length);return n}function rc(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Xo=function(t){if(t==null)return Tv;if(typeof t=="string")return Pv(t);if(typeof t=="object")return Array.isArray(t)?Av(t):Sv(t);if(typeof t=="function")return da(t);throw new Error("Expected function, string, or object as test")};function Av(t){let r=[],e=-1;for(;++e<t.length;)r[e]=Xo(t[e]);return da(n);function n(...i){let o=-1;for(;++o<r.length;)if(r[o].call(this,...i))return!0;return!1}}function Sv(t){return da(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function Pv(t){return da(r);function r(e){return e&&e.type===t}}function da(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function Tv(){return!0}function Em(t){return"\x1B[33m"+t+"\x1B[39m"}var Iv=!0,Fv="skip",_m=!1,Am=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let i=Xo(r),o=n?-1:1;a(t,null,[])();function a(c,f,h){let d=typeof c=="object"&&c!==null?c:{},b;return typeof d.type=="string"&&(b=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0,Object.defineProperty(v,"name",{value:"node ("+Em(d.type+(b?"<"+b+">":""))+")"})),v;function v(){let k=[],_,T,L;if((!r||i(c,f,h[h.length-1]||null))&&(k=Ov(e(c,h)),k[0]===_m))return k;if(c.children&&k[0]!==Fv)for(T=(n?c.children.length:-1)+o,L=h.concat(c);T>-1&&T<c.children.length;){if(_=a(c.children[T],T,L)(),_[0]===_m)return _;T=typeof _[1]=="number"?_[1]:T+o}return k}}};function Ov(t){return Array.isArray(t)?t:typeof t=="number"?[Iv,t]:[t]}var qv={}.hasOwnProperty,nc=function(t,r,e,n){let i,o;typeof r=="string"||r instanceof RegExp?(o=[[r,e]],i=n):(o=r,i=e),i||(i={});let a=Xo(i.ignore||[]),c=Dv(o),f=-1;for(;++f<c.length;)Am(t,"text",h);return t;function h(b,v){let k=-1,_;for(;++k<v.length;){let T=v[k];if(a(T,_?_.children.indexOf(T):void 0,_))return;_=T}if(_)return d(b,v)}function d(b,v){let k=v[v.length-1],_=c[f][0],T=c[f][1],L=0,N=k.children.indexOf(b),ee=!1,re=[],de;_.lastIndex=0;let fe=_.exec(b.value);for(;fe;){de=fe.index;let J={index:fe.index,input:fe.input,stack:[...v,b]},me=T(...fe,J);if(typeof me=="string"&&(me=me.length>0?{type:"text",value:me}:void 0),me!==!1&&(L!==de&&re.push({type:"text",value:b.value.slice(L,de)}),Array.isArray(me)?re.push(...me):me&&re.push(me),L=de+fe[0].length,ee=!0),!_.global)break;fe=_.exec(b.value)}return ee?(L<b.value.length&&re.push({type:"text",value:b.value.slice(L)}),k.children.splice(N,1,...re)):re=[b],N+re.length}};function Dv(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([Sm(t[e][0]),Pm(t[e][1])])}else{let e;for(e in t)qv.call(t,e)&&r.push([Sm(e),Pm(t[e])])}return r}function Sm(t){return typeof t=="string"?new RegExp(rc(t),"g"):t}function Pm(t){return typeof t=="function"?t:()=>t}var ic="phrasing",oc=["autolink","link","image","label"],Tm={transforms:[zv],enter:{literalAutolink:Nv,literalAutolinkEmail:sc,literalAutolinkHttp:sc,literalAutolinkWww:sc},exit:{literalAutolink:Bv,literalAutolinkEmail:jv,literalAutolinkHttp:Rv,literalAutolinkWww:Lv}},Im={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ic,notInConstruct:oc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ic,notInConstruct:oc},{character:":",before:"[ps]",after:"\\/",inConstruct:ic,notInConstruct:oc}]};function Nv(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function sc(t){this.config.enter.autolinkProtocol.call(this,t)}function Rv(t){this.config.exit.autolinkProtocol.call(this,t)}function Lv(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function jv(t){this.config.exit.autolinkEmail.call(this,t)}function Bv(t){this.exit(t)}function zv(t){nc(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Mv],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Vv]],{ignore:["link","linkReference"]})}function Mv(t,r,e,n,i){let o="";if(!Fm(i)||(/^w/i.test(r)&&(e=r+e,r="",o="http://"),!Uv(e)))return!1;let a=Hv(e+n);if(!a[0])return!1;let c={type:"link",title:null,url:o+r+a[0],children:[{type:"text",value:r+a[0]}]};return a[1]?[c,{type:"text",value:a[1]}]:c}function Vv(t,r,e,n){return!Fm(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function Uv(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 Hv(t){let r=/[!"&'),.:;<>?\]}]+$/.exec(t),e,n,i,o;if(r)for(t=t.slice(0,r.index),o=r[0],e=o.indexOf(")"),n=tc(t,"("),i=tc(t,")");e!==-1&&n>i;)t+=o.slice(0,e+1),o=o.slice(e+1),e=o.indexOf(")"),i++;return[t,o]}function Fm(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||Ei(e)||_i(e))&&(!r||e!==47)}function ac(t){return t.label||!t.identifier?t.label||"":pa(t.identifier)}function wr(t){let r=t||{},e=r.now||{},n=r.lineShift||0,i=e.line||1,o=e.column||1;return{move:f,current:a,shift:c};function a(){return{now:{line:i,column:o},lineShift:n}}function c(h){n+=h}function f(h=""){let d=h.split(/\r?\n|\r/g),b=d[d.length-1];return i+=d.length-1,o=d.length===1?o+b.length:1+b.length+n,h}}function ma(t,r,e){let n=r.indexStack,i=t.children||[],o=wr(e),a=[],c=-1;for(n.push(-1);++c<i.length;){let h=i[c];n[n.length-1]=c,a.push(o.move(r.handle(h,t,r,{before:`
|
|
19
|
+
`;break}case-2:{a=r?" ":" ";break}case-1:{if(!r&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,n.push(a)}return n.join("")}var Vu={};Ac(Vu,{attentionMarkers:()=>Xw,contentInitial:()=>Gw,disable:()=>Yw,document:()=>Hw,flow:()=>Ww,flowInitial:()=>Kw,insideSpan:()=>Qw,string:()=>Zw,text:()=>Jw});var Hw={[42]:ir,[43]:ir,[45]:ir,[48]:ir,[49]:ir,[50]:ir,[51]:ir,[52]:ir,[53]:ir,[54]:ir,[55]:ir,[56]:ir,[57]:ir,[62]:ra},Gw={[91]:Du},Kw={[-2]:Jo,[-1]:Jo,[32]:Jo},Ww={[35]:Ru,[42]:Pi,[45]:[ca,Pi],[60]:ju,[61]:ca,[95]:Pi,[96]:oa,[126]:oa},Zw={[38]:ia,[92]:na},Jw={[-5]:Qo,[-4]:Qo,[-3]:Qo,[33]:zu,[38]:ia,[42]:Zo,[60]:[Iu,Bu],[91]:Mu,[92]:[Nu,na],[93]:Si,[95]:Zo,[96]:Ou},Qw={null:[Zo,tm]},Xw={null:[42,95]},Yw={null:[]};function am(t={}){let r=ta([Vu].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(Zd),document:n(Qd),flow:n(em),string:n(rm),text:n(nm)};return e;function n(i){return o;function o(a){return sm(e,i,a)}}}var lm=/[\0\t\n\r]/g;function um(){let t=1,r="",e=!0,n;return i;function i(o,a,c){let f=[],h,d,$,v,k;for(o=r+o.toString(a),$=0,r="",e&&(o.charCodeAt(0)===65279&&$++,e=void 0);$<o.length;){if(lm.lastIndex=$,h=lm.exec(o),v=h&&h.index!==void 0?h.index:o.length,k=o.charCodeAt(v),!h){r=o.slice($);break}if(k===10&&$===v&&n)f.push(-3),n=void 0;else switch(n&&(f.push(-5),n=void 0),$<v&&(f.push(o.slice($,v)),t+=v-$),k){case 0:{f.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,f.push(-2);t++<d;)f.push(-1);break}case 10:{f.push(-4),t=1;break}default:n=!0,t=1}$=v+1}return c&&(n&&f.push(-5),r&&f.push(r),f.push(null)),f}}function cm(t){for(;!sa(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 ev=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pa(t){return t.replace(ev,tv)}function tv(t,r,e){if(r)return r;if(e.charCodeAt(0)===35){let i=e.charCodeAt(1),o=i===120||i===88;return fa(e.slice(o?2:1),o?16:10)}return uo(e)||t}var Uu={}.hasOwnProperty,Hu=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),rv(e)(cm(am(e).document().write(um()(t,r,!0))))};function rv(t={}){let r=pm({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(bt),autolinkProtocol:xe,autolinkEmail:xe,atxHeading:f(gt),blockQuote:f(or),characterEscape:xe,characterReference:xe,codeFenced:f(pr),codeFencedFenceInfo:h,codeFencedFenceMeta:h,codeIndented:f(pr,h),codeText:f(Zt,h),codeTextData:xe,data:xe,codeFlowValue:xe,definition:f(Zn),definitionDestinationString:h,definitionLabelString:h,definitionTitleString:h,emphasis:f(Sn),hardBreakEscape:f(yt),hardBreakTrailing:f(yt),htmlFlow:f(jt,h),htmlFlowData:xe,htmlText:f(jt,h),htmlTextData:xe,image:f($t),label:h,link:f(bt),listItem:f(pt),listItemValue:T,listOrdered:f(kt,_),listUnordered:f(kt),paragraph:f(It),reference:mt,referenceString:h,resourceDestinationString:h,resourceTitleString:h,setextHeading:f(gt),strong:f(Ft),thematicBreak:f(sr)},exit:{atxHeading:$(),atxHeadingSequence:be,autolink:$(),autolinkEmail:Wt,autolinkProtocol:Dt,blockQuote:$(),characterEscapeValue:ue,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:vr,codeFenced:$(re),codeFencedFence:ee,codeFencedFenceInfo:L,codeFencedFenceMeta:N,codeFlowValue:ue,codeIndented:$(de),codeText:$(je),codeTextData:ue,data:ue,definition:$(),definitionDestinationString:me,definitionLabelString:fe,definitionTitleString:J,emphasis:$(),hardBreakEscape:$(He),hardBreakTrailing:$(He),htmlFlow:$(H),htmlFlowData:ue,htmlText:$(ft),htmlTextData:ue,image:$(Ve),label:D,labelText:O,lineEnding:$e,link:$(nt),listItem:$(),listOrdered:$(),listUnordered:$(),paragraph:$(),referenceString:ht,resourceDestinationString:Kt,resourceTitleString:Tt,resource:at,setextHeading:$(ve),setextHeadingLineSequence:Oe,setextHeadingText:ke,strong:$(),thematicBreak:$()}},t.mdastExtensions||[]),e={};return n;function n(W){let ie={type:"root",children:[]},ye=[ie],Se=[],Ot=[],jr={stack:ye,tokenStack:Se,config:r,enter:d,exit:v,buffer:h,resume:k,setData:o,getData:a},Ue=-1;for(;++Ue<W.length;)if(W[Ue][1].type==="listOrdered"||W[Ue][1].type==="listUnordered")if(W[Ue][0]==="enter")Ot.push(Ue);else{let lt=Ot.pop();Ue=i(W,lt,Ue)}for(Ue=-1;++Ue<W.length;){let lt=r[W[Ue][0]];Uu.call(lt,W[Ue][1].type)&<[W[Ue][1].type].call(Object.assign({sliceSerialize:W[Ue][2].sliceSerialize},jr),W[Ue][1])}if(Se.length>0){let lt=Se[Se.length-1];(lt[1]||fm).call(jr,void 0,lt[0])}for(ie.position={start:c(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:c(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<r.transforms.length;)ie=r.transforms[Ue](ie)||ie;return ie}function i(W,ie,ye){let Se=ie-1,Ot=-1,jr=!1,Ue,lt,wt,dr;for(;++Se<=ye;){let Ge=W[Se];if(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered"||Ge[1].type==="blockQuote"?(Ge[0]==="enter"?Ot++:Ot--,dr=void 0):Ge[1].type==="lineEndingBlank"?Ge[0]==="enter"&&(Ue&&!dr&&!Ot&&!wt&&(wt=Se),dr=void 0):Ge[1].type==="linePrefix"||Ge[1].type==="listItemValue"||Ge[1].type==="listItemMarker"||Ge[1].type==="listItemPrefix"||Ge[1].type==="listItemPrefixWhitespace"||(dr=void 0),!Ot&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||Ot===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(Ue){let $n=Se;for(lt=void 0;$n--;){let Bt=W[$n];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;lt&&(W[lt][1].type="lineEndingBlank",jr=!0),Bt[1].type="lineEnding",lt=$n}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}wt&&(!lt||wt<lt)&&(Ue._spread=!0),Ue.end=Object.assign({},lt?W[lt][1].start:Ge[1].end),W.splice(lt||Se,0,["exit",Ue,Ge[2]]),Se++,ye++}Ge[1].type==="listItemPrefix"&&(Ue={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start)},W.splice(Se,0,["enter",Ue,Ge[2]]),Se++,ye++,wt=void 0,dr=!0)}}return W[ie][1]._spread=jr,ye}function o(W,ie){e[W]=ie}function a(W){return e[W]}function c(W){return{line:W.line,column:W.column,offset:W.offset}}function f(W,ie){return ye;function ye(Se){d.call(this,W(Se),Se),ie&&ie.call(this,Se)}}function h(){this.stack.push({type:"fragment",children:[]})}function d(W,ie,ye){return this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ie,ye]),W.position={start:c(ie.start)},W}function $(W){return ie;function ie(ye){W&&W.call(this,ye),v.call(this,ye)}}function v(W,ie){let ye=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==W.type&&(ie?ie.call(this,W,Se[0]):(Se[1]||fm).call(this,W,Se[0]));else throw new Error("Cannot close `"+W.type+"` ("+xi({start:W.start,end:W.end})+"): it\u2019s not open");return ye.position.end=c(W.end),ye}function k(){return Vd(this.stack.pop())}function _(){o("expectingFirstListItemValue",!0)}function T(W){if(a("expectingFirstListItemValue")){let ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(W),10),o("expectingFirstListItemValue")}}function L(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=W}function N(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=W}function ee(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function re(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function de(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W.replace(/(\r?\n|\r)$/g,"")}function fe(W){let ie=this.resume(),ye=this.stack[this.stack.length-1];ye.label=ie,ye.identifier=nr(this.sliceSerialize(W)).toLowerCase()}function J(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.title=W}function me(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.url=W}function be(W){let ie=this.stack[this.stack.length-1];if(!ie.depth){let ye=this.sliceSerialize(W).length;ie.depth=ye}}function ke(){o("setextHeadingSlurpLineEnding",!0)}function Oe(W){let ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(W).charCodeAt(0)===61?1:2}function ve(){o("setextHeadingSlurpLineEnding")}function xe(W){let ie=this.stack[this.stack.length-1],ye=ie.children[ie.children.length-1];(!ye||ye.type!=="text")&&(ye=xr(),ye.position={start:c(W.start)},ie.children.push(ye)),this.stack.push(ye)}function ue(W){let ie=this.stack.pop();ie.value+=this.sliceSerialize(W),ie.position.end=c(W.end)}function $e(W){let ie=this.stack[this.stack.length-1];if(a("atHardBreak")){let ye=ie.children[ie.children.length-1];ye.position.end=c(W.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(ie.type)&&(xe.call(this,W),ue.call(this,W))}function He(){o("atHardBreak",!0)}function H(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W}function ft(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W}function je(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.value=W}function nt(){let W=this.stack[this.stack.length-1];a("inReference")?(W.type+="Reference",W.referenceType=a("referenceType")||"shortcut",delete W.url,delete W.title):(delete W.identifier,delete W.label),o("referenceType")}function Ve(){let W=this.stack[this.stack.length-1];a("inReference")?(W.type+="Reference",W.referenceType=a("referenceType")||"shortcut",delete W.url,delete W.title):(delete W.identifier,delete W.label),o("referenceType")}function O(W){let ie=this.stack[this.stack.length-2],ye=this.sliceSerialize(W);ie.label=pa(ye),ie.identifier=nr(ye).toLowerCase()}function D(){let W=this.stack[this.stack.length-1],ie=this.resume(),ye=this.stack[this.stack.length-1];o("inReference",!0),ye.type==="link"?ye.children=W.children:ye.alt=ie}function Kt(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.url=W}function Tt(){let W=this.resume(),ie=this.stack[this.stack.length-1];ie.title=W}function at(){o("inReference")}function mt(){o("referenceType","collapsed")}function ht(W){let ie=this.resume(),ye=this.stack[this.stack.length-1];ye.label=ie,ye.identifier=nr(this.sliceSerialize(W)).toLowerCase(),o("referenceType","full")}function he(W){o("characterReferenceType",W.type)}function vr(W){let ie=this.sliceSerialize(W),ye=a("characterReferenceType"),Se;ye?(Se=fa(ie,ye==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Se=uo(ie);let Ot=this.stack.pop();Ot.value+=Se,Ot.position.end=c(W.end)}function Dt(W){ue.call(this,W);let ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(W)}function Wt(W){ue.call(this,W);let ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(W)}function or(){return{type:"blockquote",children:[]}}function pr(){return{type:"code",lang:null,meta:null,value:""}}function Zt(){return{type:"inlineCode",value:""}}function Zn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Sn(){return{type:"emphasis",children:[]}}function gt(){return{type:"heading",depth:void 0,children:[]}}function yt(){return{type:"break"}}function jt(){return{type:"html",value:""}}function $t(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function kt(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function pt(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function It(){return{type:"paragraph",children:[]}}function Ft(){return{type:"strong",children:[]}}function xr(){return{type:"text",value:""}}function sr(){return{type:"thematicBreak"}}}function pm(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?pm(t,n):nv(t,n)}return t}function nv(t,r){let e;for(e in r)if(Uu.call(r,e)){let n=e==="canContainEols"||e==="transforms",o=(Uu.call(t,e)?t[e]:void 0)||(t[e]=n?[]:{}),a=r[e];a&&(n?t[e]=[...o,...a]:Object.assign(o,a))}}function fm(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+xi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+xi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+xi({start:r.start,end:r.end})+") is still open")}function Gu(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return Hu(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var dm=Gu;var iv={tokenize:lv,partial:!0},hm={tokenize:uv,partial:!0},gm={tokenize:cv,partial:!0},co={tokenize:pv,partial:!0},ym={tokenize:fv,partial:!0},$m={tokenize:sv,previous:wm},bm={tokenize:av,previous:Zu},An={tokenize:ov,previous:vm},yn={},Ku={text:yn},Ti=48;for(;Ti<123;)yn[Ti]=An,Ti++,Ti===58?Ti=65:Ti===91&&(Ti=97);yn[43]=An;yn[45]=An;yn[46]=An;yn[95]=An;yn[72]=[An,bm];yn[104]=[An,bm];yn[87]=[An,$m];yn[119]=[An,$m];function ov(t,r,e){let n=this,i,o;return a;function a(k){return!mm(k)||!vm(n.previous)||Ju(n.events)?e(k):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),c(k))}function c(k){return mm(k)?(t.consume(k),c):k===64?(t.consume(k),f):e(k)}function f(k){return k===46?t.check(co,v,h)(k):k===45||k===95?t.check(co,e,d)(k):Lt(k)?(!o&&Ci(k)&&(o=!0),t.consume(k),f):v(k)}function h(k){return t.consume(k),i=!0,o=void 0,f}function d(k){return t.consume(k),$}function $(k){return k===46?t.check(co,e,h)(k):f(k)}function v(k){return i&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(k)):e(k)}}function sv(t,r,e){let n=this;return i;function i(a){return a!==87&&a!==119||!wm(n.previous)||Ju(n.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(iv,t.attempt(hm,t.attempt(gm,o),e),e)(a))}function o(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(a)}}function av(t,r,e){let n=this;return i;function i(_){return _!==72&&_!==104||!Zu(n.previous)||Ju(n.events)?e(_):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(_),o)}function o(_){return _===84||_===116?(t.consume(_),a):e(_)}function a(_){return _===84||_===116?(t.consume(_),c):e(_)}function c(_){return _===80||_===112?(t.consume(_),f):e(_)}function f(_){return _===83||_===115?(t.consume(_),h):h(_)}function h(_){return _===58?(t.consume(_),d):e(_)}function d(_){return _===47?(t.consume(_),$):e(_)}function $(_){return _===47?(t.consume(_),v):e(_)}function v(_){return _===null||Gn(_)||Ei(_)||_i(_)?e(_):t.attempt(hm,t.attempt(gm,k),e)(_)}function k(_){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(_)}}function lv(t,r,e){return n;function n(f){return t.consume(f),i}function i(f){return f===87||f===119?(t.consume(f),o):e(f)}function o(f){return f===87||f===119?(t.consume(f),a):e(f)}function a(f){return f===46?(t.consume(f),c):e(f)}function c(f){return f===null||le(f)?e(f):r(f)}}function uv(t,r,e){let n,i;return o;function o(f){return f===38?t.check(ym,c,a)(f):f===46||f===95?t.check(co,c,a)(f):f===null||Gn(f)||Ei(f)||f!==45&&_i(f)?c(f):(t.consume(f),o)}function a(f){return f===46?(i=n,n=void 0,t.consume(f),o):(f===95&&(n=!0),t.consume(f),o)}function c(f){return!i&&!n?r(f):e(f)}}function cv(t,r){let e=0;return n;function n(a){return a===38?t.check(ym,r,i)(a):(a===40&&e++,a===41?t.check(co,o,i)(a):Wu(a)?r(a):km(a)?t.check(co,r,i)(a):(t.consume(a),n))}function i(a){return t.consume(a),n}function o(a){return e--,e<0?r(a):i(a)}}function fv(t,r,e){return n;function n(a){return t.consume(a),i}function i(a){return rr(a)?(t.consume(a),i):a===59?(t.consume(a),o):e(a)}function o(a){return Wu(a)?r(a):e(a)}}function pv(t,r,e){return n;function n(o){return t.consume(o),i}function i(o){return km(o)?(t.consume(o),i):Wu(o)?r(o):e(o)}}function km(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 Wu(t){return t===null||t===60||Me(t)}function mm(t){return t===43||t===45||t===46||t===95||Lt(t)}function wm(t){return t===null||t===40||t===42||t===95||t===126||Me(t)}function Zu(t){return t===null||!rr(t)}function vm(t){return t!==47&&Zu(t)}function Ju(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 dv={tokenize:kv,partial:!0};function Qu(){return{document:{[91]:{tokenize:yv,continuation:{tokenize:$v},exit:bv}},text:{[91]:{tokenize:gv},[93]:{add:"after",tokenize:mv,resolveTo:hv}}}}function mv(t,r,e){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a;for(;i--;){let f=n.events[i][1];if(f.type==="labelImage"){a=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return c;function c(f){if(!a||!a._balanced)return e(f);let h=nr(n.sliceSerialize({start:a.end,end:n.now()}));return h.charCodeAt(0)!==94||!o.includes(h.slice(1))?e(f):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),r(f))}}function hv(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 i={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 a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},f=[t[e+1],t[e+2],["enter",i,r],t[e+3],t[e+4],["enter",o,r],["exit",o,r],["enter",a,r],["enter",c,r],["exit",c,r],["exit",a,r],t[t.length-2],t[t.length-1],["exit",i,r]];return t.splice(e,t.length-e+1,...f),t}function gv(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,a;return c;function c(v){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),f}function f(v){return v!==94?e(v):(t.enter("gfmFootnoteCallMarker"),t.consume(v),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(v){let k;return v===null||v===91||o++>999?e(v):v===93?a?(t.exit("chunkString"),k=t.exit("gfmFootnoteCallString"),i.includes(nr(n.sliceSerialize(k)))?$(v):e(v)):e(v):(t.consume(v),Me(v)||(a=!0),v===92?d:h)}function d(v){return v===91||v===92||v===93?(t.consume(v),o++,h):h(v)}function $(v){return t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function yv(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,a=0,c;return f;function f(T){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(T){return T===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),d):e(T)}function d(T){let L;return T===null||T===91||a>999?e(T):T===93?c?(L=t.exit("gfmFootnoteDefinitionLabelString"),o=nr(n.sliceSerialize(L)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),k):e(T):le(T)?(t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),a++,d):(t.enter("chunkString").contentType="string",$(T))}function $(T){return T===null||le(T)||T===91||T===93||a>999?(t.exit("chunkString"),d(T)):(Me(T)||(c=!0),a++,t.consume(T),T===92?v:$)}function v(T){return T===91||T===92||T===93?(t.consume(T),a++,$):$(T)}function k(T){return T===58?(t.enter("definitionMarker"),t.consume(T),t.exit("definitionMarker"),ge(t,_,"gfmFootnoteDefinitionWhitespace")):e(T)}function _(T){return i.includes(o)||i.push(o),r(T)}}function $v(t,r,e){return t.check(gn,r,t.attempt(dv,r,e))}function bv(t){t.exit("gfmFootnoteDefinition")}function kv(t,r,e){let n=this;return ge(t,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){let a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?r(o):e(o)}}function Xu(t={}){let r=t.singleTilde,e={tokenize:i,resolveAll:n};return r==null&&(r=!0),{text:{[126]:e},insideSpan:{null:[e]},attentionMarkers:{null:[126]}};function n(o,a){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let f=c;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[c][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";let h={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[c][1].end)},d={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[c][1].start)},$=[["enter",h,a],["enter",o[f][1],a],["exit",o[f][1],a],["enter",d,a]];Ct($,$.length,0,Wn(a.parser.constructs.insideSpan.null,o.slice(f+1,c),a)),Ct($,$.length,0,[["exit",d,a],["enter",o[c][1],a],["exit",o[c][1],a],["exit",h,a]]),Ct(o,f-1,c-f+3,$),c=f+$.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function i(o,a,c){let f=this.previous,h=this.events,d=0;return $;function $(k){return f===126&&h[h.length-1][1].type!=="characterEscape"?c(k):(o.enter("strikethroughSequenceTemporary"),v(k))}function v(k){let _=lo(f);if(k===126)return d>1?c(k):(o.consume(k),d++,v);if(d<2&&!r)return c(k);let T=o.exit("strikethroughSequenceTemporary"),L=lo(k);return T._open=!L||L===2&&Boolean(_),T._close=!_||_===2&&Boolean(L),a(k)}}}var Yu={flow:{null:{tokenize:vv,resolve:wv}}},xm={tokenize:xv,partial:!0};function wv(t,r){let e=-1,n,i,o,a,c,f,h;for(;++e<t.length;){let d=t[e][1];if(o&&(d.type==="temporaryTableCellContent"&&(a=a||e,c=e),(d.type==="tableCellDivider"||d.type==="tableRow")&&c)){let $={type:"tableContent",start:t[a][1].start,end:t[c][1].end},v={type:"chunkText",start:$.start,end:$.end,contentType:"text"};t.splice(a,c-a+1,["enter",$,r],["enter",v,r],["exit",v,r],["exit",$,r]),e-=c-a-3,a=void 0,c=void 0}if(t[e][0]==="exit"&&f!==void 0&&f+(h?0:1)<e&&(d.type==="tableCellDivider"||d.type==="tableRow"&&(f+3<e||t[f][1].type!=="whitespace"))){let $={type:i?"tableDelimiter":n?"tableHeader":"tableData",start:t[f][1].start,end:t[e][1].end};t.splice(e+(d.type==="tableCellDivider"?1:0),0,["exit",$,r]),t.splice(f,0,["enter",$,r]),e+=2,f=e+1,h=!0}d.type==="tableRow"&&(o=t[e][0]==="enter",o&&(f=e+1,h=!1)),d.type==="tableDelimiterRow"&&(i=t[e][0]==="enter",i&&(f=e+1,h=!1)),d.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function vv(t,r,e){let n=this,i=[],o=0,a,c;return f;function f(H){return t.enter("table")._align=i,t.enter("tableHead"),t.enter("tableRow"),H===124?h(H):(o++,t.enter("temporaryTableCellContent"),v(H))}function h(H){return t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),a=!0,d}function d(H){return H===null||le(H)?_(H):Fe(H)?(t.enter("whitespace"),t.consume(H),$):(a&&(a=void 0,o++),H===124?h(H):(t.enter("temporaryTableCellContent"),v(H)))}function $(H){return Fe(H)?(t.consume(H),$):(t.exit("whitespace"),d(H))}function v(H){return H===null||H===124||Me(H)?(t.exit("temporaryTableCellContent"),d(H)):(t.consume(H),H===92?k:v)}function k(H){return H===92||H===124?(t.consume(H),v):v(H)}function _(H){if(H===null)return e(H);t.exit("tableRow"),t.exit("tableHead");let ft=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:He,partial:!0},function(je){return n.interrupt=ft,t.enter("tableDelimiterRow"),T(je)},function(je){return n.interrupt=ft,e(je)})(H)}function T(H){return H===null||le(H)?de(H):Fe(H)?(t.enter("whitespace"),t.consume(H),L):H===45?(t.enter("tableDelimiterFiller"),t.consume(H),c=!0,i.push("none"),N):H===58?(t.enter("tableDelimiterAlignment"),t.consume(H),t.exit("tableDelimiterAlignment"),i.push("left"),ee):H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),T):e(H)}function L(H){return Fe(H)?(t.consume(H),L):(t.exit("whitespace"),T(H))}function N(H){return H===45?(t.consume(H),N):(t.exit("tableDelimiterFiller"),H===58?(t.enter("tableDelimiterAlignment"),t.consume(H),t.exit("tableDelimiterAlignment"),i[i.length-1]=i[i.length-1]==="left"?"center":"right",re):T(H))}function ee(H){return H===45?(t.enter("tableDelimiterFiller"),t.consume(H),c=!0,N):e(H)}function re(H){return H===null||le(H)?de(H):Fe(H)?(t.enter("whitespace"),t.consume(H),L):H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),T):e(H)}function de(H){return t.exit("tableDelimiterRow"),!c||o!==i.length?e(H):H===null?fe(H):t.check(xm,fe,t.attempt({tokenize:He,partial:!0},ge(t,J,"linePrefix",4),fe))(H)}function fe(H){return t.exit("table"),r(H)}function J(H){return t.enter("tableBody"),me(H)}function me(H){return t.enter("tableRow"),H===124?be(H):(t.enter("temporaryTableCellContent"),ve(H))}function be(H){return t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),ke}function ke(H){return H===null||le(H)?ue(H):Fe(H)?(t.enter("whitespace"),t.consume(H),Oe):H===124?be(H):(t.enter("temporaryTableCellContent"),ve(H))}function Oe(H){return Fe(H)?(t.consume(H),Oe):(t.exit("whitespace"),ke(H))}function ve(H){return H===null||H===124||Me(H)?(t.exit("temporaryTableCellContent"),ke(H)):(t.consume(H),H===92?xe:ve)}function xe(H){return H===92||H===124?(t.consume(H),ve):ve(H)}function ue(H){return t.exit("tableRow"),H===null?$e(H):t.check(xm,$e,t.attempt({tokenize:He,partial:!0},ge(t,me,"linePrefix",4),$e))(H)}function $e(H){return t.exit("tableBody"),fe(H)}function He(H,ft,je){return nt;function nt(O){return H.enter("lineEnding"),H.consume(O),H.exit("lineEnding"),ge(H,Ve,"linePrefix")}function Ve(O){if(n.parser.lazy[n.now().line]||O===null||le(O))return je(O);let D=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&D&&D[1].type==="linePrefix"&&D[2].sliceSerialize(D[1],!0).length>=4?je(O):(n._gfmTableDynamicInterruptHack=!0,H.check(n.parser.constructs.flow,function(Kt){return n._gfmTableDynamicInterruptHack=!1,je(Kt)},function(Kt){return n._gfmTableDynamicInterruptHack=!1,ft(Kt)})(O))}}}function xv(t,r,e){let n=0;return i;function i(a){return t.enter("check"),t.consume(a),o}function o(a){return a===-1||a===32?(t.consume(a),n++,n===4?r:o):a===null||Me(a)?r(a):e(a)}}var Cv={tokenize:Ev},ec={text:{[91]:Cv}};function Ev(t,r,e){let n=this;return i;function i(c){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(c):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),o)}function o(c){return Me(c)?(t.enter("taskListCheckValueUnchecked"),t.consume(c),t.exit("taskListCheckValueUnchecked"),a):c===88||c===120?(t.enter("taskListCheckValueChecked"),t.consume(c),t.exit("taskListCheckValueChecked"),a):e(c)}function a(c){return c===93?(t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:_v},r,e)):e(c)}}function _v(t,r,e){let n=this;return ge(t,i,"whitespace");function i(o){let a=n.events[n.events.length-1];return(a&&a[1].type==="whitespace"||le(o))&&o!==null?r(o):e(o)}}function Cm(t){return ta([Ku,Qu(),Xu(t),Yu,ec])}function tc(t,r){let e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,i=e.indexOf(r);for(;i!==-1;)n++,i=e.indexOf(r,i+r.length);return n}function rc(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Xo=function(t){if(t==null)return Tv;if(typeof t=="string")return Pv(t);if(typeof t=="object")return Array.isArray(t)?Av(t):Sv(t);if(typeof t=="function")return da(t);throw new Error("Expected function, string, or object as test")};function Av(t){let r=[],e=-1;for(;++e<t.length;)r[e]=Xo(t[e]);return da(n);function n(...i){let o=-1;for(;++o<r.length;)if(r[o].call(this,...i))return!0;return!1}}function Sv(t){return da(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function Pv(t){return da(r);function r(e){return e&&e.type===t}}function da(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function Tv(){return!0}function Em(t){return"\x1B[33m"+t+"\x1B[39m"}var Iv=!0,Fv="skip",_m=!1,Am=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let i=Xo(r),o=n?-1:1;a(t,null,[])();function a(c,f,h){let d=typeof c=="object"&&c!==null?c:{},$;return typeof d.type=="string"&&($=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0,Object.defineProperty(v,"name",{value:"node ("+Em(d.type+($?"<"+$+">":""))+")"})),v;function v(){let k=[],_,T,L;if((!r||i(c,f,h[h.length-1]||null))&&(k=Ov(e(c,h)),k[0]===_m))return k;if(c.children&&k[0]!==Fv)for(T=(n?c.children.length:-1)+o,L=h.concat(c);T>-1&&T<c.children.length;){if(_=a(c.children[T],T,L)(),_[0]===_m)return _;T=typeof _[1]=="number"?_[1]:T+o}return k}}};function Ov(t){return Array.isArray(t)?t:typeof t=="number"?[Iv,t]:[t]}var qv={}.hasOwnProperty,nc=function(t,r,e,n){let i,o;typeof r=="string"||r instanceof RegExp?(o=[[r,e]],i=n):(o=r,i=e),i||(i={});let a=Xo(i.ignore||[]),c=Dv(o),f=-1;for(;++f<c.length;)Am(t,"text",h);return t;function h($,v){let k=-1,_;for(;++k<v.length;){let T=v[k];if(a(T,_?_.children.indexOf(T):void 0,_))return;_=T}if(_)return d($,v)}function d($,v){let k=v[v.length-1],_=c[f][0],T=c[f][1],L=0,N=k.children.indexOf($),ee=!1,re=[],de;_.lastIndex=0;let fe=_.exec($.value);for(;fe;){de=fe.index;let J={index:fe.index,input:fe.input,stack:[...v,$]},me=T(...fe,J);if(typeof me=="string"&&(me=me.length>0?{type:"text",value:me}:void 0),me!==!1&&(L!==de&&re.push({type:"text",value:$.value.slice(L,de)}),Array.isArray(me)?re.push(...me):me&&re.push(me),L=de+fe[0].length,ee=!0),!_.global)break;fe=_.exec($.value)}return ee?(L<$.value.length&&re.push({type:"text",value:$.value.slice(L)}),k.children.splice(N,1,...re)):re=[$],N+re.length}};function Dv(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([Sm(t[e][0]),Pm(t[e][1])])}else{let e;for(e in t)qv.call(t,e)&&r.push([Sm(e),Pm(t[e])])}return r}function Sm(t){return typeof t=="string"?new RegExp(rc(t),"g"):t}function Pm(t){return typeof t=="function"?t:()=>t}var ic="phrasing",oc=["autolink","link","image","label"],Tm={transforms:[zv],enter:{literalAutolink:Nv,literalAutolinkEmail:sc,literalAutolinkHttp:sc,literalAutolinkWww:sc},exit:{literalAutolink:Bv,literalAutolinkEmail:jv,literalAutolinkHttp:Rv,literalAutolinkWww:Lv}},Im={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ic,notInConstruct:oc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ic,notInConstruct:oc},{character:":",before:"[ps]",after:"\\/",inConstruct:ic,notInConstruct:oc}]};function Nv(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function sc(t){this.config.enter.autolinkProtocol.call(this,t)}function Rv(t){this.config.exit.autolinkProtocol.call(this,t)}function Lv(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function jv(t){this.config.exit.autolinkEmail.call(this,t)}function Bv(t){this.exit(t)}function zv(t){nc(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Mv],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Vv]],{ignore:["link","linkReference"]})}function Mv(t,r,e,n,i){let o="";if(!Fm(i)||(/^w/i.test(r)&&(e=r+e,r="",o="http://"),!Uv(e)))return!1;let a=Hv(e+n);if(!a[0])return!1;let c={type:"link",title:null,url:o+r+a[0],children:[{type:"text",value:r+a[0]}]};return a[1]?[c,{type:"text",value:a[1]}]:c}function Vv(t,r,e,n){return!Fm(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function Uv(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 Hv(t){let r=/[!"&'),.:;<>?\]}]+$/.exec(t),e,n,i,o;if(r)for(t=t.slice(0,r.index),o=r[0],e=o.indexOf(")"),n=tc(t,"("),i=tc(t,")");e!==-1&&n>i;)t+=o.slice(0,e+1),o=o.slice(e+1),e=o.indexOf(")"),i++;return[t,o]}function Fm(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||Ei(e)||_i(e))&&(!r||e!==47)}function ac(t){return t.label||!t.identifier?t.label||"":pa(t.identifier)}function wr(t){let r=t||{},e=r.now||{},n=r.lineShift||0,i=e.line||1,o=e.column||1;return{move:f,current:a,shift:c};function a(){return{now:{line:i,column:o},lineShift:n}}function c(h){n+=h}function f(h=""){let d=h.split(/\r?\n|\r/g),$=d[d.length-1];return i+=d.length-1,o=d.length===1?o+$.length:1+$.length+n,h}}function ma(t,r,e){let n=r.indexStack,i=t.children||[],o=wr(e),a=[],c=-1;for(n.push(-1);++c<i.length;){let h=i[c];n[n.length-1]=c,a.push(o.move(r.handle(h,t,r,{before:`
|
|
20
20
|
`,after:`
|
|
21
|
-
`,...o.current()}))),h.type!=="list"&&(r.bulletLastUsed=void 0),c<i.length-1&&a.push(o.move(f(h,i[c+1])))}return n.pop(),a.join("");function f(h,d){let
|
|
21
|
+
`,...o.current()}))),h.type!=="list"&&(r.bulletLastUsed=void 0),c<i.length-1&&a.push(o.move(f(h,i[c+1])))}return n.pop(),a.join("");function f(h,d){let $=r.join.length;for(;$--;){let v=r.join[$](h,d,t,r);if(v===!0||v===1)break;if(typeof v=="number")return`
|
|
22
22
|
`.repeat(1+v);if(v===!1)return`
|
|
23
23
|
|
|
24
24
|
<!---->
|
|
25
25
|
|
|
26
26
|
`}return`
|
|
27
27
|
|
|
28
|
-
`}}var Gv=/\r?\n|\r/g;function ha(t,r){let e=[],n=0,i=0,o;for(;o=Gv.exec(t);)a(t.slice(n,o.index)),e.push(o[0]),n=o.index+o[0].length,i++;return a(t.slice(n)),e.join("");function a(c){e.push(r(c,i,!c))}}function ga(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 qm(t,r){return Om(t,r.inConstruct,!0)&&!Om(t,r.notInConstruct,!1)}function Om(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 lc(t,r,e){let n=(e.before||"")+(r||"")+(e.after||""),i=[],o=[],a={},c=-1;for(;++c<t.unsafe.length;){let d=t.unsafe[c];if(!qm(t.stack,d))continue;let
|
|
29
|
-
`)&&h.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),c=" ",f=wr(e),f.move(o.join(""))),o.push(f.move(r.handle(h,t,r,{...f.current(),before:c,after:d}))),c=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var Lm={canContainEols:["delete"],enter:{strikethrough:Wv},exit:{strikethrough:Zv}},jm={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Bm}};Bm.peek=Jv;function Wv(t){this.enter({type:"delete",children:[]},t)}function Zv(t){this.exit(t)}function Bm(t,r,e,n){let i=wr(n),o=e.enter("emphasis"),a=i.move("~~");return a+=ya(t,e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Jv(){return"~"}uc.peek=Qv;function uc(t,r,e){let n=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<e.unsafe.length;){let a=e.unsafe[o],c=ga(a),f;if(!!a.atBreak)for(;f=c.exec(n);){let h=f.index;n.charCodeAt(h)===10&&n.charCodeAt(h-1)===13&&h--,n=n.slice(0,h)+" "+n.slice(f.index+1)}}return i+n+i}function Qv(){return"`"}function Mm(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||Yv,i=[],o=[],a=[],c=[],f=0,h=-1;for(;++h<t.length;){let _=[],T=[],L=-1;for(t[h].length>f&&(f=t[h].length);++L<t[h].length;){let N=Xv(t[h][L]);if(r.alignDelimiters!==!1){let ee=n(N);T[L]=ee,(c[L]===void 0||ee>c[L])&&(c[L]=ee)}_.push(N)}o[h]=_,a[h]=T}let d=-1;if(typeof e=="object"&&"length"in e)for(;++d<f;)i[d]=zm(e[d]);else{let _=zm(e);for(;++d<f;)i[d]=_}d=-1;let
|
|
28
|
+
`}}var Gv=/\r?\n|\r/g;function ha(t,r){let e=[],n=0,i=0,o;for(;o=Gv.exec(t);)a(t.slice(n,o.index)),e.push(o[0]),n=o.index+o[0].length,i++;return a(t.slice(n)),e.join("");function a(c){e.push(r(c,i,!c))}}function ga(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 qm(t,r){return Om(t,r.inConstruct,!0)&&!Om(t,r.notInConstruct,!1)}function Om(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 lc(t,r,e){let n=(e.before||"")+(r||"")+(e.after||""),i=[],o=[],a={},c=-1;for(;++c<t.unsafe.length;){let d=t.unsafe[c];if(!qm(t.stack,d))continue;let $=ga(d),v;for(;v=$.exec(n);){let k="before"in d||Boolean(d.atBreak),_="after"in d,T=v.index+(k?v[1].length:0);i.includes(T)?(a[T].before&&!k&&(a[T].before=!1),a[T].after&&!_&&(a[T].after=!1)):(i.push(T),a[T]={before:k,after:_})}}i.sort(Kv);let f=e.before?e.before.length:0,h=n.length-(e.after?e.after.length:0);for(c=-1;++c<i.length;){let d=i[c];d<f||d>=h||d+1<h&&i[c+1]===d+1&&a[d].after&&!a[d+1].before&&!a[d+1].after||i[c-1]===d-1&&a[d].before&&!a[d-1].before&&!a[d-1].after||(f!==d&&o.push(Dm(n.slice(f,d),"\\")),f=d,/[!-/:-@[-`{-~]/.test(n.charAt(d))&&(!e.encode||!e.encode.includes(n.charAt(d)))?o.push("\\"):(o.push("&#x"+n.charCodeAt(d).toString(16).toUpperCase()+";"),f++))}return o.push(Dm(n.slice(f,h),e.after)),o.join("")}function Kv(t,r){return t-r}function Dm(t,r){let e=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=t+r,a=-1,c=0,f;for(;f=e.exec(o);)n.push(f.index);for(;++a<n.length;)c!==n[a]&&i.push(t.slice(c,n[a])),i.push("\\"),c=n[a];return i.push(t.slice(c)),i.join("")}function Nm(){return{enter:{gfmFootnoteDefinition:t,gfmFootnoteDefinitionLabelString:r,gfmFootnoteCall:i,gfmFootnoteCallString:o},exit:{gfmFootnoteDefinition:n,gfmFootnoteDefinitionLabelString:e,gfmFootnoteCall:c,gfmFootnoteCallString:a}};function t(f){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},f)}function r(){this.buffer()}function e(f){let h=this.resume(),d=this.stack[this.stack.length-1];d.label=h,d.identifier=nr(this.sliceSerialize(f)).toLowerCase()}function n(f){this.exit(f)}function i(f){this.enter({type:"footnoteReference",identifier:"",label:""},f)}function o(){this.buffer()}function a(f){let h=this.resume(),d=this.stack[this.stack.length-1];d.label=h,d.identifier=nr(this.sliceSerialize(f)).toLowerCase()}function c(f){this.exit(f)}}function Rm(){return t.peek=r,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:e,footnoteReference:t}};function t(n,i,o,a){let c=wr(a),f=c.move("[^"),h=o.enter("footnoteReference"),d=o.enter("reference");return f+=c.move(lc(o,ac(n),{...c.current(),before:f,after:"]"})),d(),h(),f+=c.move("]"),f}function r(){return"["}function e(n,i,o,a){let c=wr(a),f=c.move("[^"),h=o.enter("footnoteDefinition"),d=o.enter("label");return f+=c.move(lc(o,ac(n),{...c.current(),before:f,after:"]"})),d(),f+=c.move("]:"+(n.children&&n.children.length>0?" ":"")),c.shift(4),f+=c.move(ha(ma(n,o,c.current()),$)),h(),f;function $(v,k,_){return k?(_?"":" ")+v:v}}}function ya(t,r,e){let n=r.indexStack,i=t.children||[],o=[],a=-1,c=e.before;n.push(-1);let f=wr(e);for(;++a<i.length;){let h=i[a],d;if(n[n.length-1]=a,a+1<i.length){let $=r.handle.handlers[i[a+1].type];$&&$.peek&&($=$.peek),d=$?$(i[a+1],t,r,{before:"",after:"",...f.current()}).charAt(0):""}else d=e.after;o.length>0&&(c==="\r"||c===`
|
|
29
|
+
`)&&h.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),c=" ",f=wr(e),f.move(o.join(""))),o.push(f.move(r.handle(h,t,r,{...f.current(),before:c,after:d}))),c=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var Lm={canContainEols:["delete"],enter:{strikethrough:Wv},exit:{strikethrough:Zv}},jm={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Bm}};Bm.peek=Jv;function Wv(t){this.enter({type:"delete",children:[]},t)}function Zv(t){this.exit(t)}function Bm(t,r,e,n){let i=wr(n),o=e.enter("emphasis"),a=i.move("~~");return a+=ya(t,e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Jv(){return"~"}uc.peek=Qv;function uc(t,r,e){let n=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<e.unsafe.length;){let a=e.unsafe[o],c=ga(a),f;if(!!a.atBreak)for(;f=c.exec(n);){let h=f.index;n.charCodeAt(h)===10&&n.charCodeAt(h-1)===13&&h--,n=n.slice(0,h)+" "+n.slice(f.index+1)}}return i+n+i}function Qv(){return"`"}function Mm(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||Yv,i=[],o=[],a=[],c=[],f=0,h=-1;for(;++h<t.length;){let _=[],T=[],L=-1;for(t[h].length>f&&(f=t[h].length);++L<t[h].length;){let N=Xv(t[h][L]);if(r.alignDelimiters!==!1){let ee=n(N);T[L]=ee,(c[L]===void 0||ee>c[L])&&(c[L]=ee)}_.push(N)}o[h]=_,a[h]=T}let d=-1;if(typeof e=="object"&&"length"in e)for(;++d<f;)i[d]=zm(e[d]);else{let _=zm(e);for(;++d<f;)i[d]=_}d=-1;let $=[],v=[];for(;++d<f;){let _=i[d],T="",L="";_===99?(T=":",L=":"):_===108?T=":":_===114&&(L=":");let N=r.alignDelimiters===!1?1:Math.max(1,c[d]-T.length-L.length),ee=T+"-".repeat(N)+L;r.alignDelimiters!==!1&&(N=T.length+N+L.length,N>c[d]&&(c[d]=N),v[d]=N),$[d]=ee}o.splice(1,0,$),a.splice(1,0,v),h=-1;let k=[];for(;++h<o.length;){let _=o[h],T=a[h];d=-1;let L=[];for(;++d<f;){let N=_[d]||"",ee="",re="";if(r.alignDelimiters!==!1){let de=c[d]-(T[d]||0),fe=i[d];fe===114?ee=" ".repeat(de):fe===99?de%2?(ee=" ".repeat(de/2+.5),re=" ".repeat(de/2-.5)):(ee=" ".repeat(de/2),re=ee):re=" ".repeat(de)}r.delimiterStart!==!1&&!d&&L.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&N==="")&&(r.delimiterStart!==!1||d)&&L.push(" "),r.alignDelimiters!==!1&&L.push(ee),L.push(N),r.alignDelimiters!==!1&&L.push(re),r.padding!==!1&&L.push(" "),(r.delimiterEnd!==!1||d!==f-1)&&L.push("|")}k.push(r.delimiterEnd===!1?L.join("").replace(/ +$/,""):L.join(""))}return k.join(`
|
|
30
30
|
`)}function Xv(t){return t==null?"":String(t)}function Yv(t){return t.length}function zm(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 fc={enter:{table:e1,tableData:Vm,tableHeader:Vm,tableRow:r1},exit:{codeText:n1,table:t1,tableData:cc,tableHeader:cc,tableRow:cc}};function e1(t){let r=t._align;this.enter({type:"table",align:r.map(e=>e==="none"?null:e),children:[]},t),this.setData("inTable",!0)}function t1(t){this.exit(t),this.setData("inTable")}function r1(t){this.enter({type:"tableRow",children:[]},t)}function cc(t){this.exit(t)}function Vm(t){this.enter({type:"tableCell",children:[]},t)}function n1(t){let r=this.resume();this.getData("inTable")&&(r=r.replace(/\\([\\|])/g,i1));let e=this.stack[this.stack.length-1];e.value=r,this.exit(t)}function i1(t,r){return r==="|"?r:t}function pc(t){let r=t||{},e=r.tableCellPadding,n=r.tablePipeAlign,i=r.stringLength,o=e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
31
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:c,tableCell:f,inlineCode:v}};function a(k,_,T,L){return h(d(k,T,L),k.align)}function c(k,_,T,L){let N
|
|
32
|
-
`))}function f(k,_,T,L){let N=T.enter("tableCell"),ee=T.enter("phrasing"),re=ya(k,T,{...L,before:o,after:o});return ee(),N(),re}function h(k,_){return Mm(k,{align:_,alignDelimiters:n,padding:e,stringLength:i})}function d(k,_,T){let L=k.children,N=-1,ee=[],re=_.enter("table");for(;++N<L.length;)ee[N]
|
|
31
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:c,tableCell:f,inlineCode:v}};function a(k,_,T,L){return h(d(k,T,L),k.align)}function c(k,_,T,L){let N=$(k,T,L),ee=h([N]);return ee.slice(0,ee.indexOf(`
|
|
32
|
+
`))}function f(k,_,T,L){let N=T.enter("tableCell"),ee=T.enter("phrasing"),re=ya(k,T,{...L,before:o,after:o});return ee(),N(),re}function h(k,_){return Mm(k,{align:_,alignDelimiters:n,padding:e,stringLength:i})}function d(k,_,T){let L=k.children,N=-1,ee=[],re=_.enter("table");for(;++N<L.length;)ee[N]=$(L[N],_,T);return re(),ee}function $(k,_,T){let L=k.children,N=-1,ee=[],re=_.enter("tableRow");for(;++N<L.length;)ee[N]=f(L[N],k,_,T);return re(),ee}function v(k,_,T){let L=uc(k,_,T);return T.stack.includes("tableCell")&&(L=L.replace(/\|/g,"\\$&")),L}}function Um(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 Hm(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 Gm(t,r,e,n){let i=Hm(e),o=e.bulletCurrent||Um(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 a=o.length+1;(i==="tab"||i==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(a=Math.ceil(a/4)*4);let c=wr(n);c.move(o+" ".repeat(a-o.length)),c.shift(a);let f=e.enter("listItem"),h=ha(ma(t,e,c.current()),d);return f(),h;function d($,v,k){return v?(k?"":" ".repeat(a))+$:(k?o:o+" ".repeat(a-o.length))+$}}var Wm={exit:{taskListCheckValueChecked:Km,taskListCheckValueUnchecked:Km,paragraph:o1}},Zm={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:s1}};function Km(t){let r=this.stack[this.stack.length-2];r.checked=t.type==="taskListCheckValueChecked"}function o1(t){let r=this.stack[this.stack.length-2],e=this.stack[this.stack.length-1],n=r.children,i=e.children[0],o=-1,a;if(r&&r.type==="listItem"&&typeof r.checked=="boolean"&&i&&i.type==="text"){for(;++o<n.length;){let c=n[o];if(c.type==="paragraph"){a=c;break}}a===e&&(i.value=i.value.slice(1),i.value.length===0?e.children.shift():e.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,e.position.start=Object.assign({},i.position.start)))}this.exit(t)}function s1(t,r,e,n){let i=t.children[0],o=typeof t.checked=="boolean"&&i&&i.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",c=wr(n);o&&c.move(a);let f=Gm(t,r,e,{...n,...c.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(d){return d+a}}function dc(){return[Tm,Nm(),Lm,fc,Wm]}function mc(t){return{extensions:[Im,Rm(),jm,pc(t),Zm]}}function hc(t={}){let r=this.data();e("micromarkExtensions",Cm(t)),e("fromMarkdownExtensions",dc()),e("toMarkdownExtensions",mc(t));function e(n,i){(r[n]?r[n]:r[n]=[]).push(i)}}var $a=(t,{lineOffset:r}={lineOffset:0})=>{let e=Pu().use(dm).use(hc).parse(t),n={},i=(c=>f=>{let{start:h,end:d}=f;return{start:{...h,line:h.line+c},end:{...d,line:d.line+c}}})(r);ao({processor:1}).use({"*:*":(c,f)=>(h,d,$)=>{h.children&&$(h.children,{...d})}}).use({":definition":(c,f)=>(h,d,$)=>{n[h.identifier]=h}}).run(e);let o=[];return ao({processor:1}).use({"*:*":(c,f)=>(h,d,$)=>{console.warn("[Podlite:md2ast]- unhandled MD node"),console.warn(JSON.stringify(h,null,2)),h.children&&$(h.children,{...d})}}).use({":root":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return du({},$(v,d))},":heading":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return kr({type:"block",level:h.depth,name:"head",location:i(k)},$(v,d))},":text":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return h.value},":list":(c,f)=>(h,d,$)=>{let v=d.listLevel||0,{children:k,position:_,...T}=h;return kr({type:"list",level:v+1,list:h.ordered?"ordered":"itemized"},$(k,{...d,listLevel:v+1,ordered:h.ordered}))},":listItem":(c,f)=>(h,d,$)=>{let v=d.listLevel||0,{children:k,position:_,...T}=h;return kr({name:"item",type:"block",level:d.listLevel,location:i(_)},$(k,{...d,listLevel:v,ordered:h.ordered}))},":paragraph":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return kr({type:"para",location:i(k),text:"text",margin:""},$(v,{...d}))},":linkReference":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h,T=n[_.identifier],L=(T==null?void 0:T.url)||"";return pu({meta:L},$(v,{...d}))},":definition":(c,f)=>(h,d,$)=>null,":inlineCode":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return Ks({name:"C"},[h.value])},":strong":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return Ks({name:"B"},$(v,{...d}))},":emphasis":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return Ks({name:"I"},$(v,{...d}))},":link":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return pu({meta:h.url},$(v,{...d}))},":html":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return kr({type:"block",name:"Html",location:i(k)},[Ws(h.value)])},":code":(c,f)=>(h,d,$)=>{let{children:v,position:k,lang:_,meta:T,...L}=h;if(_==="mermaid"||_==="diagram")return kr({type:"block",name:"Mermaid",config:[],location:i(k)},[Ws(h.value)]);let N=[];return _&&N.push({name:"lang",value:_,type:"string"}),T&&N.push({name:"meta",value:T,type:"string"}),kr({type:"block",name:"code",config:N,location:i(k)},[Ws(h.value)])},":image":(c,f)=>(h,d,$)=>{let{title:v,alt:k,url:_,position:T,...L}=h;return kr({type:"block",name:"Image",config:[],location:i(T)},[Kp(_,k),Gp([v])])},":thematicBreak":(c,f)=>(h,d,$)=>null,":blockquote":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return kr({name:"nested",location:i(k)},$(v,{...d}))},":table":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return kr({name:"table",location:i(k)},$(v,{...d}))},":tableRow":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return kr({name:"table_row",location:i(k)},$(v,{...d}))},":tableCell":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return kr({name:"table_cell",location:i(k)},$(v,{...d}))},":delete":(c,f)=>(h,d,$)=>{let{children:v,position:k,..._}=h;return Hp($(v,{...d}))},":break":(c,f)=>(h,d,$)=>null}).run(e).interator};var ba={toAst:(t,r)=>(e,n)=>{if(typeof e!="string"&&"type"in e&&"content"in e&&e.type==="block"){let i=e.content[0];if(i&&typeof i!="string"&&"location"in e&&"value"in i){let o=e.location.start.line;return{...e,content:$a(i,{lineOffset:o})}}return e}},toJSX:t=>_n},a1={Markdown:ba,markdown:ba},l1=ba;0&&(module.exports={PluginRegister,parseMd,plugin});
|
|
33
33
|
/*!
|
|
34
34
|
* Determine if an object is a Buffer
|
|
35
35
|
*
|