@podlite/markdown 0.0.4 → 0.0.6
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 +16 -0
- package/LICENSE +1 -1
- package/README.md +32 -6
- package/index.js +1 -1
- package/jest.config.js +0 -1
- package/jest.tsconfig.json +1 -1
- package/lib/index.cjs +40 -0
- package/lib/index.cjs.map +7 -0
- package/lib/index.esm.js +30171 -0
- package/lib/index.esm.js.map +7 -0
- package/package.json +17 -11
- package/scripts/build.ts +6 -6
- package/scripts/build_esm.ts +12 -9
- package/src/index.tsx +20 -25
- package/src/tools.ts +180 -136
- package/t/parse.test.ts +120 -123
- package/t/plugin.test.tsx +39 -47
- package/tsconfig-esm.json +6 -0
- package/tsconfig.json +2 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/esm/index.d.ts +0 -6
- package/esm/index.js +0 -39
- package/esm/index.js.map +0 -7
- package/esm/tools.d.ts +0 -6
- package/lib/index.js +0 -40
- package/lib/index.js.map +0 -7
package/lib/index.cjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var ch=Object.create;var is=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),mc=(t,r)=>{for(var e in r)is(t,e,{get:r[e],enumerable:!0})},hc=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ph(r))!mh.call(t,i)&&i!==e&&is(t,i,{get:()=>r[i],enumerable:!(n=fh(r,i))||n.enumerable});return t};var Ir=(t,r,e)=>(e=t!=null?ch(dh(t)):{},hc(r||!t||!t.__esModule?is(e,"default",{value:t,enumerable:!0}):e,t)),hh=t=>hc(is({},"__esModule",{value:!0}),t);var va=ce(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.getRules=Li.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)}Li.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:{}}}Li.getRules=$h});var xa=ce(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.shouldUseRule=Nn.shouldUseGroup=Nn.schemaHasRulesForType=void 0;function wh({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&gc(t,n)}Nn.schemaHasRulesForType=wh;function gc(t,r){return r.rules.some(e=>yc(t,e))}Nn.shouldUseGroup=gc;function yc(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))}Nn.shouldUseRule=yc});var os=ce(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.getProperty=Ze.safeStringify=Ze.stringify=Ze.strConcat=Ze.addCodeArg=Ze.str=Ze._=Ze.nil=Ze._Code=Ze.Name=Ze.IDENTIFIER=Ze._CodeOrName=void 0;var mo=class{};Ze._CodeOrName=mo;Ze.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ni=class extends mo{constructor(r){if(super(),!Ze.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}}};Ze.Name=ni;var ln=class extends mo{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 ni&&(e[n.str]=(e[n.str]||0)+1),e),{})}};Ze._Code=ln;Ze.nil=new ln("");function bc(t,...r){let e=[t[0]],n=0;for(;n<r.length;)Ea(e,r[n]),e.push(t[++n]);return new ln(e)}Ze._=bc;var Ca=new ln("+");function $c(t,...r){let e=[ho(t[0])],n=0;for(;n<r.length;)e.push(Ca),Ea(e,r[n]),e.push(Ca,ho(t[++n]));return kh(e),new ln(e)}Ze.str=$c;function Ea(t,r){r instanceof ln?t.push(...r._items):r instanceof ni?t.push(r):t.push(Ch(r))}Ze.addCodeArg=Ea;function kh(t){let r=1;for(;r<t.length-1;){if(t[r]===Ca){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 ni||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 ni))return`"${t}${r.slice(1)}`}function xh(t,r){return r.emptyStr()?t:t.emptyStr()?r:$c`${t}${r}`}Ze.strConcat=xh;function Ch(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:ho(Array.isArray(t)?t.join(","):t)}function Eh(t){return new ln(ho(t))}Ze.stringify=Eh;function ho(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ze.safeStringify=ho;function _h(t){return typeof t=="string"&&Ze.IDENTIFIER.test(t)?new ln(`.${t}`):bc`[${t}]`}Ze.getProperty=_h});var Pa=ce(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.ValueScope=ir.ValueScopeName=ir.Scope=ir.varKinds=ir.UsedValueState=void 0;var dr=os(),_a=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},Aa;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Aa=ir.UsedValueState||(ir.UsedValueState={}));ir.varKinds={const:new dr.Name("const"),let:new dr.Name("let"),var:new dr.Name("var")};var ss=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof dr.Name?r:this.name(r)}name(r){return new dr.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}}};ir.Scope=ss;var as=class extends dr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=dr._`.${new dr.Name(e)}[${n}]`}};ir.ValueScopeName=as;var Ah=dr._`\n`,Sa=class extends ss{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?Ah:dr.nil}}get(){return this._scope}name(r){return new as(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,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),m=c.length;return c[m]=e.ref,i.setValue(e,{property:o,itemIndex:m}),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 dr._`${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=dr.nil;for(let a in r){let u=r[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(m=>{if(c.has(m))return;c.set(m,Aa.Started);let p=e(m);if(p){let b=this.opts.es5?ir.varKinds.var:ir.varKinds.const;o=dr._`${o}${b} ${m} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(m))o=dr._`${o}${p}${this.opts._n}`;else throw new _a(m);c.set(m,Aa.Completed)})}return o}};ir.ValueScope=Sa});var Pe=ce(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.or=Te.and=Te.not=Te.CodeGen=Te.operators=Te.varKinds=Te.ValueScopeName=Te.ValueScope=Te.Scope=Te.Name=Te.stringify=Te.getProperty=Te.nil=Te.strConcat=Te.str=Te._=void 0;var De=os(),Gr=Pa(),si=os();Object.defineProperty(Te,"_",{enumerable:!0,get:function(){return si._}});Object.defineProperty(Te,"str",{enumerable:!0,get:function(){return si.str}});Object.defineProperty(Te,"strConcat",{enumerable:!0,get:function(){return si.strConcat}});Object.defineProperty(Te,"nil",{enumerable:!0,get:function(){return si.nil}});Object.defineProperty(Te,"getProperty",{enumerable:!0,get:function(){return si.getProperty}});Object.defineProperty(Te,"stringify",{enumerable:!0,get:function(){return si.stringify}});Object.defineProperty(Te,"Name",{enumerable:!0,get:function(){return si.Name}});var fs=Pa();Object.defineProperty(Te,"Scope",{enumerable:!0,get:function(){return fs.Scope}});Object.defineProperty(Te,"ValueScope",{enumerable:!0,get:function(){return fs.ValueScope}});Object.defineProperty(Te,"ValueScopeName",{enumerable:!0,get:function(){return fs.ValueScopeName}});Object.defineProperty(Te,"varKinds",{enumerable:!0,get:function(){return fs.varKinds}});Te.operators={GT:new De._Code(">"),GTE:new De._Code(">="),LT:new De._Code("<"),LTE:new De._Code("<="),EQ:new De._Code("==="),NEQ:new De._Code("!=="),NOT:new De._Code("!"),OR:new De._Code("||"),AND:new De._Code("&&"),ADD:new De._Code("+")};var En=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},Ta=class extends En{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?Gr.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=Bi(this.rhs,r,e)),this}get names(){return this.rhs instanceof De._CodeOrName?this.rhs.names:{}}},ls=class extends En{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 De.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=Bi(this.rhs,r,e),this}get names(){let r=this.lhs instanceof De.Name?{}:{...this.lhs.names};return cs(r,this.rhs)}},Ia=class extends ls{constructor(r,e,n,i){super(r,n,i),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},Fa=class extends En{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},Oa=class extends En{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},qa=class extends En{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},Da=class extends En{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=Bi(this.code,r,e),this}get names(){return this.code instanceof De._CodeOrName?this.code.names:{}}},go=class extends En{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)=>oi(r,e.names),{})}},_n=class extends go{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},Na=class extends go{},ji=class extends _n{};ji.kind="else";var Kr=class extends _n{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 ji(n):n}if(e)return r===!1?e instanceof Kr?e:e.nodes:this.nodes.length?this:new Kr(wc(r),e instanceof Kr?[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=Bi(this.condition,r,e),this}get names(){let r=super.names;return cs(r,this.condition),this.else&&oi(r,this.else.names),r}};Kr.kind="if";var ii=class extends _n{};ii.kind="for";var Ra=class extends ii{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=Bi(this.iteration,r,e),this}get names(){return oi(super.names,this.iteration.names)}},La=class extends ii{constructor(r,e,n,i){super(),this.varKind=r,this.name=e,this.from=n,this.to=i}render(r){let e=r.es5?Gr.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=cs(super.names,this.from);return cs(r,this.to)}},us=class extends ii{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=Bi(this.iterable,r,e),this}get names(){return oi(super.names,this.iterable.names)}},yo=class extends _n{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)}};yo.kind="func";var bo=class extends go{render(r){return"return "+super.render(r)}};bo.kind="return";var ja=class extends _n{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&&oi(r,this.catch.names),this.finally&&oi(r,this.finally.names),r}},$o=class extends _n{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};$o.kind="catch";var wo=class extends _n{render(r){return"finally"+super.render(r)}};wo.kind="finally";var Ba=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
|
|
2
|
+
`:""},this._extScope=r,this._scope=new Gr.Scope({parent:r}),this._nodes=[new Na]}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 Ta(r,o,n)),o}const(r,e,n){return this._def(Gr.varKinds.const,r,e,n)}let(r,e,n){return this._def(Gr.varKinds.let,r,e,n)}var(r,e,n){return this._def(Gr.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new ls(r,e,n))}add(r,e){return this._leafNode(new Ia(r,Te.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==De.nil&&this._leafNode(new Da(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(":"),De.addCodeArg(e,i));return e.push("}"),new De._Code(e)}if(r,e,n){if(this._blockNode(new Kr(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 Kr(r))}else(){return this._elseNode(new ji)}endIf(){return this._endBlockNode(Kr,ji)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new Ra(r),e)}forRange(r,e,n,i,o=this.opts.es5?Gr.varKinds.var:Gr.varKinds.let){let a=this._scope.toName(r);return this._for(new La(o,a,e,n),()=>i(a))}forOf(r,e,n,i=Gr.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let a=e instanceof De.Name?e:this.var("_arr",e);return this.forRange("_i",0,De._`${a}.length`,u=>{this.var(o,De._`${a}[${u}]`),n(o)})}return this._for(new us("of",i,o,e),()=>n(o))}forIn(r,e,n,i=this.opts.es5?Gr.varKinds.var:Gr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,De._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new us("in",i,o,e),()=>n(o))}endFor(){return this._endBlockNode(ii)}label(r){return this._leafNode(new Fa(r))}break(r){return this._leafNode(new Oa(r))}return(r){let e=new bo;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(bo)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ja;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 wo,this.code(n)),this._endBlockNode($o,wo)}throw(r){return this._leafNode(new qa(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=De.nil,n,i){return this._blockNode(new yo(r,e,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(yo)}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 Kr))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}};Te.CodeGen=Ba;function oi(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function cs(t,r){return r instanceof De._CodeOrName?oi(t,r.names):t}function Bi(t,r,e){if(t instanceof De.Name)return n(t);if(!i(t))return t;return new De._Code(t._items.reduce((o,a)=>(a instanceof De.Name&&(a=n(a)),a instanceof De._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 De._Code&&o._items.some(a=>a instanceof De.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 wc(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:De._`!${za(t)}`}Te.not=wc;var Ph=kc(Te.operators.AND);function Th(...t){return t.reduce(Ph)}Te.and=Th;var Ih=kc(Te.operators.OR);function Fh(...t){return t.reduce(Ih)}Te.or=Fh;function kc(t){return(r,e)=>r===De.nil?e:e===De.nil?r:De._`${za(r)} ${t} ${za(e)}`}function za(t){return t instanceof De.Name?t:De._`(${t})`}});var Wr=ce(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var Gt=Pe(),Oh={data:new Gt.Name("data"),valCxt:new Gt.Name("valCxt"),dataPath:new Gt.Name("dataPath"),parentData:new Gt.Name("parentData"),parentDataProperty:new Gt.Name("parentDataProperty"),rootData:new Gt.Name("rootData"),dynamicAnchors:new Gt.Name("dynamicAnchors"),vErrors:new Gt.Name("vErrors"),errors:new Gt.Name("errors"),this:new Gt.Name("this"),self:new Gt.Name("self"),scope:new Gt.Name("scope"),json:new Gt.Name("json"),jsonPos:new Gt.Name("jsonPos"),jsonLen:new Gt.Name("jsonLen"),jsonPart:new Gt.Name("jsonPart")};Ma.default=Oh});var ko=ce(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.extendErrors=Kt.resetErrorsCount=Kt.reportExtraError=Kt.reportError=Kt.keyword$DataError=Kt.keywordError=void 0;var Ne=Pe(),Wt=Wr();Kt.keywordError={message:({keyword:t})=>Ne.str`should pass "${t}" keyword validation`};Kt.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Ne.str`"${t}" keyword must be ${r} ($data)`:Ne.str`"${t}" keyword is invalid ($data)`};function qh(t,r=Kt.keywordError,e){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n,u=Cc(t,r);e??(o||a)?vc(i,u):xc(n,Ne._`[${u}]`)}Kt.reportError=qh;function Dh(t,r=Kt.keywordError){let{it:e}=t,{gen:n,compositeRule:i,allErrors:o}=e,a=Cc(t,r);vc(n,a),i||o||xc(e,Wt.default.vErrors)}Kt.reportExtraError=Dh;function Nh(t,r){t.assign(Wt.default.errors,r),t.if(Ne._`${Wt.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Ne._`${Wt.default.vErrors}.length`,r),()=>t.assign(Wt.default.vErrors,null)))}Kt.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,Wt.default.errors,u=>{t.const(a,Ne._`${Wt.default.vErrors}[${u}]`),t.if(Ne._`${a}.dataPath === undefined`,()=>t.assign(Ne._`${a}.dataPath`,Ne.strConcat(Wt.default.dataPath,o.errorPath))),t.assign(Ne._`${a}.schemaPath`,Ne.str`${o.errSchemaPath}/${r}`),o.opts.verbose&&(t.assign(Ne._`${a}.schema`,e),t.assign(Ne._`${a}.data`,n))})}Kt.extendErrors=Rh;function vc(t,r){let e=t.const("err",r);t.if(Ne._`${Wt.default.vErrors} === null`,()=>t.assign(Wt.default.vErrors,Ne._`[${e}]`),Ne._`${Wt.default.vErrors}.push(${e})`),t.code(Ne._`${Wt.default.errors}++`)}function xc(t,r){let{gen:e,validateName:n,schemaEnv:i}=t;i.$async?e.throw(Ne._`new ${t.ValidationError}(${r})`):(e.assign(Ne._`${n}.errors`,r),e.return(!1))}var un={keyword:new Ne.Name("keyword"),schemaPath:new Ne.Name("schemaPath"),params:new Ne.Name("params"),propertyName:new Ne.Name("propertyName"),message:new Ne.Name("message"),schema:new Ne.Name("schema"),parentSchema:new Ne.Name("parentSchema"),instancePath:new Ne.Name("instancePath")};function Cc(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Ne._`{}`:(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:u}=i,c=[[un.instancePath,Ne.strConcat(Wt.default.dataPath,o)],[un.schemaPath,Ne.str`${a}/${n}`]];return u.messages&&c.push([un.message,typeof r=="function"?r(t):r]),e.object(...c)}function jh(t,r){let{gen:e,keyword:n,data:i,schemaValue:o,it:a}=t,{topSchemaRef:u,schemaPath:c,errorPath:m,errSchemaPath:p,propertyName:b,opts:k}=a,{params:w,message:x}=r,T=[[un.keyword,n],[Wt.default.dataPath,Ne.strConcat(Wt.default.dataPath,m)],[un.schemaPath,Ne.str`${p}/${n}`],[un.params,typeof w=="function"?w(t):w||Ne._`{}`]];return b&&T.push([un.propertyName,b]),k.messages&&T.push([un.message,typeof x=="function"?x(t):x]),k.verbose&&T.push([un.schema,o],[un.parentSchema,Ne._`${u}${c}`],[Wt.default.data,i]),e.object(...T)}});var _c=ce(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.boolOrEmptySchema=zi.topBoolOrEmptySchema=void 0;var Bh=ko(),zh=Pe(),Mh=Wr(),Vh={message:"boolean schema is false"};function Uh(t){let{gen:r,schema:e,validateName:n}=t;e===!1?Ec(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),Ec(t)):e.var(r,!0)}zi.boolOrEmptySchema=Hh;function Ec(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 Sc=ce(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.assignDefaults=void 0;var Mi=Pe(),Gh=kr();function Kh(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let i in e)Ac(t,i,e[i].default);else r==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Ac(t,o,i.default))}ps.assignDefaults=Kh;function Ac(t,r,e){let{gen:n,compositeRule:i,data:o,opts:a}=t;if(e===void 0)return;let u=Mi._`${o}${Mi.getProperty(r)}`;if(i){Gh.checkStrictMode(t,`default is ignored for: ${u}`);return}let c=Mi._`${u} === undefined`;a.useDefaults==="empty"&&(c=Mi._`${c} || ${u} === null || ${u} === ""`),n.if(c,Mi._`${u} = ${Mi.stringify(e)}`)}});var li=ce(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.applySubschema=ai.Type=void 0;var Wh=kr(),Pc=lt(),Zt=Pe(),Tc;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Tc=ai.Type||(ai.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}ai.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 u=t.schema[r];return e===void 0?{schema:u,schemaPath:Zt._`${t.schemaPath}${Zt.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:u[e],schemaPath:Zt._`${t.schemaPath}${Zt.getProperty(r)}${Zt.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${Pc.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:u}=r;if(e!==void 0){let{errorPath:m,dataPathArr:p,opts:b}=r,k=u.let("data",Zt._`${r.data}${Zt.getProperty(e)}`,!0);c(k),t.errorPath=Zt.str`${m}${Yh(e,n,b.jsPropertySyntax)}`,t.parentDataProperty=Zt._`${e}`,t.dataPathArr=[...p,t.parentDataProperty]}if(i!==void 0){let m=i instanceof Zt.Name?i:u.let("data",i,!0);c(m),a!==void 0&&(t.propertyName=a)}o&&(t.dataTypes=o);function c(m){t.data=m,t.dataLevel=r.dataLevel+1,t.dataTypes=[],r.definedProperties=new Set,t.parentData=r.data,t.dataNames=[...r.dataNames,m]}}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 Zt.Name){let n=r===Tc.Num;return e?n?Zt._`"[" + ${t} + "]"`:Zt._`"['" + ${t} + "']"`:n?Zt._`"/" + ${t}`:Zt._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?Zt.getProperty(t).toString():"/"+Pc.escapeJsonPointer(t)}});var Zr=ce(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.validateUnion=Je.validateArray=Je.usePattern=Je.callValidateCode=Je.schemaProperties=Je.allSchemaProperties=Je.noPropertyInData=Je.propertyInData=Je.isOwnProperty=Je.hasPropFunc=Je.reportMissingProp=Je.checkMissingProp=Je.checkReportMissingProp=void 0;var ot=Pe(),Ic=lt(),eg=li(),Rn=Wr();function tg(t,r){let{gen:e,data:n,it:i}=t;e.if(Ua(e,n,r,i.opts.ownProperties),()=>{t.setParams({missingProperty:ot._`${r}`},!0),t.error()})}Je.checkReportMissingProp=tg;function rg({gen:t,data:r,it:{opts:e}},n,i){return ot.or(...n.map(o=>ot.and(Ua(t,r,o,e.ownProperties),ot._`${i} = ${o}`)))}Je.checkMissingProp=rg;function ng(t,r){t.setParams({missingProperty:r},!0),t.error()}Je.reportMissingProp=ng;function Fc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:ot._`Object.prototype.hasOwnProperty`})}Je.hasPropFunc=Fc;function Va(t,r,e){return ot._`${Fc(t)}.call(${r}, ${e})`}Je.isOwnProperty=Va;function ig(t,r,e,n){let i=ot._`${r}${ot.getProperty(e)} !== undefined`;return n?ot._`${i} && ${Va(t,r,e)}`:i}Je.propertyInData=ig;function Ua(t,r,e,n){let i=ot._`${r}${ot.getProperty(e)} === undefined`;return n?ot.or(i,ot.not(Va(t,r,e))):i}Je.noPropertyInData=Ua;function Oc(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}Je.allSchemaProperties=Oc;function og(t,r){return Oc(r).filter(e=>!Ic.alwaysValidSchema(t,r[e]))}Je.schemaProperties=og;function sg({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,m){let p=m?ot._`${t}, ${r}, ${n}${i}`:r,b=[[Rn.default.dataPath,ot.strConcat(Rn.default.dataPath,o)],[Rn.default.parentData,a.parentData],[Rn.default.parentDataProperty,a.parentDataProperty],[Rn.default.rootData,Rn.default.rootData]];a.opts.dynamicRef&&b.push([Rn.default.dynamicAnchors,Rn.default.dynamicAnchors]);let k=ot._`${p}, ${e.object(...b)}`;return c!==ot.nil?ot._`${u}.call(${c}, ${k})`:ot._`${u}(${k})`}Je.callValidateCode=sg;function ag(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:ot._`new RegExp(${r}, "u")`})}Je.usePattern=ag;function lg(t){let{gen:r,data:e,keyword:n,it:i}=t,o=r.name("valid");if(i.allErrors){let u=r.let("valid",!0);return a(()=>r.assign(u,!1)),u}return r.var(o,!0),a(()=>r.break()),o;function a(u){let c=r.const("len",ot._`${e}.length`);r.forRange("i",0,c,m=>{t.subschema({keyword:n,dataProp:m,dataPropType:eg.Type.Num},o),r.if(ot.not(o),u)})}}Je.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(c=>Ic.alwaysValidSchema(i,c))&&!i.opts.unevaluated)return;let a=r.let("valid",!1),u=r.name("_valid");r.block(()=>e.forEach((c,m)=>{let p=t.subschema({keyword:n,schemaProp:m,compositeRule:!0},u);r.assign(a,ot._`${a} || ${u}`),t.mergeValidEvaluated(p,u)||r.if(ot.not(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Je.validateUnion=ug});var Rc=ce(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.keywordCode=void 0;var cg=vo(),fg=ko(),pg=Zr(),or=Pe(),ui=Wr();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?qc(i,e):"macro"in e?mg(i,e):(e.compile||e.validate)&&qc(i,e)}ds.keywordCode=dg;function mg(t,r){let{gen:e,keyword:n,schema:i,parentSchema:o,it:a}=t,u=r.macro.call(a.self,i,o,a),c=Nc(e,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let m=e.name("valid");t.subschema({schema:u,schemaPath:or.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},m),t.pass(m,()=>t.error(!0))}function qc(t,r){var e;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=t;gg(c,r);let m=!u&&r.compile?r.compile.call(c.self,o,a,c):r.validate,p=Nc(n,i,m),b=n.let("valid");t.block$data(b,k),t.ok((e=r.valid)!==null&&e!==void 0?e:b);function k(){if(r.errors===!1)T(),r.modifying&&Dc(t),N(()=>t.error());else{let D=r.async?w():x();r.modifying&&Dc(t),N(()=>hg(t,D))}}function w(){let D=n.let("ruleErrs",null);return n.try(()=>T(or._`await `),X=>n.assign(b,!1).if(or._`${X} instanceof ${c.ValidationError}`,()=>n.assign(D,or._`${X}.errors`),()=>n.throw(X))),D}function x(){let D=or._`${p}.errors`;return n.assign(D,null),T(or.nil),D}function T(D=r.async?or._`await `:or.nil){let X=c.opts.passContext?ui.default.this:ui.default.self,ee=!("compile"in r&&!u||r.schema===!1);n.assign(b,or._`${D}${pg.callValidateCode(t,p,X,ee)}`,r.modifying)}function N(D){var X;n.if(or.not((X=r.valid)!==null&&X!==void 0?X:b),D)}}function Dc(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,or._`${n.parentData}[${n.parentDataProperty}]`))}function hg(t,r){let{gen:e}=t;e.if(or._`Array.isArray(${r})`,()=>{e.assign(ui.default.vErrors,or._`${ui.default.vErrors} === null ? ${r} : ${ui.default.vErrors}.concat(${r})`).assign(ui.default.errors,or._`${ui.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 Nc(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:or.stringify(e)})}});var Mc=ce(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.schemaKeywords=void 0;var Ha=xa(),Lc=Vi(),yg=Sc(),zc=Rc(),bg=lt(),$g=kr(),wg=Pe(),kg=Wr();function vg(t,r,e,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:m}=t,{RULES:p}=m;if(o.$ref&&(c.ignoreKeywordsWithRef||!bg.schemaHasRulesButRef(o,p))){i.block(()=>zc.keywordCode(t,"$ref",p.all.$ref.definition));return}c.jtd||xg(t,r),i.block(()=>{for(let k of p.rules)b(k);b(p.post)});function b(k){!Ha.shouldUseGroup(o,k)||(k.type?(i.if(Lc.checkDataType(k.type,a,c.strict)),jc(t,k),r.length===1&&r[0]===k.type&&e&&(i.else(),Lc.reportTypeError(t)),i.endIf()):jc(t,k),u||i.if(wg._`${kg.default.errors} === ${n||0}`))}}ms.schemaKeywords=vg;function jc(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)Ha.shouldUseRule(n,o)&&zc.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=>{Bc(t.dataTypes,e)||Ga(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>Bc(r,e))}}function Eg(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&Ga(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"&&Ha.shouldUseRule(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>Ag(r,a))&&Ga(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Ag(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function Bc(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function Ga(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,$g.checkStrictMode(t,r,t.opts.strictTypes)}});var xo=ce((F1,Vc)=>{"use strict";Vc.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 Hc=ce((O1,Uc)=>{"use strict";var Ln=Uc.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(){};hs(r,n,i,t,"",t)};Ln.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ln.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ln.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ln.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 hs(t,r,e,n,i,o,a,u,c,m){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,o,a,u,c,m);for(var p in n){var b=n[p];if(Array.isArray(b)){if(p in Ln.arrayKeywords)for(var k=0;k<b.length;k++)hs(t,r,e,b[k],i+"/"+p+"/"+k,o,i,p,n,k)}else if(p in Ln.propsKeywords){if(b&&typeof b=="object")for(var w in b)hs(t,r,e,b[w],i+"/"+p+"/"+Sg(w),o,i,p,n,w)}else(p in Ln.keywords||t.allKeys&&!(p in Ln.skipKeywords))&&hs(t,r,e,b,i+"/"+p,o,i,p,n)}e(n,i,o,a,u,c,m)}}function Sg(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ka=ce((gs,Gc)=>{(function(t,r){typeof gs=="object"&&typeof Gc<"u"?r(gs):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(gs,function(t){"use strict";function r(){for(var F=arguments.length,P=Array(F),j=0;j<F;j++)P[j]=arguments[j];if(P.length>1){P[0]=P[0].slice(0,-1);for(var H=P.length-1,G=1;G<H;++G)P[G]=P[G].slice(1,-1);return P[H]=P[H].slice(1),P.join("")}else return P[0]}function e(F){return"(?:"+F+")"}function n(F){return F===void 0?"undefined":F===null?"null":Object.prototype.toString.call(F).split(" ").pop().split("]").shift().toLowerCase()}function i(F){return F.toUpperCase()}function o(F){return F!=null?F instanceof Array?F:typeof F.length!="number"||F.split||F.setInterval||F.call?[F]:Array.prototype.slice.call(F):[]}function a(F,P){var j=F;if(P)for(var H in P)j[H]=P[H];return j}function u(F){var P="[A-Za-z]",j="[\\x0D]",H="[0-9]",G="[\\x22]",le=r(H,"[A-Fa-f]"),ve="[\\x0A]",Se="[\\x20]",qe=e(e("%[EFef]"+le+"%"+le+le+"%"+le+le)+"|"+e("%[89A-Fa-f]"+le+"%"+le+le)+"|"+e("%"+le+le)),d="[\\:\\/\\?\\#\\[\\]\\@]",ie="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Le=r(d,ie),je=F?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ge=F?"[\\uE000-\\uF8FF]":"[]",z=r(P,H,"[\\-\\.\\_\\~]",je),Ke=e(P+r(P,H,"[\\+\\-\\.]")+"*"),Be=e(e(qe+"|"+r(z,ie,"[\\:]"))+"*"),Br=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("[1-9]"+H)+"|"+H),Mt=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("0?[1-9]"+H)+"|0?0?"+H),tr=e(Mt+"\\."+Mt+"\\."+Mt+"\\."+Mt),he=e(le+"{1,4}"),at=e(e(he+"\\:"+he)+"|"+tr),Vt=e(e(he+"\\:")+"{6}"+at),ur=e("\\:\\:"+e(he+"\\:")+"{5}"+at),Er=e(e(he)+"?\\:\\:"+e(he+"\\:")+"{4}"+at),rr=e(e(e(he+"\\:")+"{0,1}"+he)+"?\\:\\:"+e(he+"\\:")+"{3}"+at),cr=e(e(e(he+"\\:")+"{0,2}"+he)+"?\\:\\:"+e(he+"\\:")+"{2}"+at),ne=e(e(e(he+"\\:")+"{0,3}"+he)+"?\\:\\:"+he+"\\:"+at),yn=e(e(e(he+"\\:")+"{0,4}"+he)+"?\\:\\:"+at),_r=e(e(e(he+"\\:")+"{0,5}"+he)+"?\\:\\:"+he),Ar=e(e(e(he+"\\:")+"{0,6}"+he)+"?\\:\\:"),Ot=e([Vt,ur,Er,rr,cr,ne,yn,_r,Ar].join("|")),rn=e(e(z+"|"+qe)+"+"),Kn=e(Ot+"\\%25"+rn),$r=e(Ot+e("\\%25|\\%(?!"+le+"{2})")+rn),Wn=e("[vV]"+le+"+\\."+r(z,ie,"[\\:]")+"+"),Zn=e("\\["+e($r+"|"+Ot+"|"+Wn)+"\\]"),qn=e(e(qe+"|"+r(z,ie))+"*"),bn=e(Zn+"|"+tr+"(?!"+qn+")|"+qn),zr=e(H+"*"),Si=e(e(Be+"@")+"?"+bn+e("\\:"+zr)+"?"),nn=e(qe+"|"+r(z,ie,"[\\:\\@]")),Jn=e(nn+"*"),Mr=e(nn+"+"),Qn=e(e(qe+"|"+r(z,ie,"[\\@]"))+"+"),qt=e(e("\\/"+Jn)+"*"),Dt=e("\\/"+e(Mr+qt)+"?"),Xn=e(Qn+qt),$n=e(Mr+qt),_t="(?!"+nn+")",wn=e(qt+"|"+Dt+"|"+Xn+"|"+$n+"|"+_t),Vr=e(e(nn+"|"+r("[\\/\\?]",Ge))+"*"),kn=e(e(nn+"|[\\/\\?]")+"*"),Pi=e(e("\\/\\/"+Si+qt)+"|"+Dt+"|"+$n+"|"+_t),vn=e(Ke+"\\:"+Pi+e("\\?"+Vr)+"?"+e("\\#"+kn)+"?"),so=e(e("\\/\\/"+Si+qt)+"|"+Dt+"|"+Xn+"|"+_t),ao=e(so+e("\\?"+Vr)+"?"+e("\\#"+kn)+"?"),Go=e(vn+"|"+ao),Ko=e(Ke+"\\:"+Pi+e("\\?"+Vr)+"?"),lo="^("+Ke+")\\:"+e(e("\\/\\/("+e("("+Be+")@")+"?("+bn+")"+e("\\:("+zr+")")+"?)")+"?("+qt+"|"+Dt+"|"+$n+"|"+_t+")")+e("\\?("+Vr+")")+"?"+e("\\#("+kn+")")+"?$",uo="^(){0}"+e(e("\\/\\/("+e("("+Be+")@")+"?("+bn+")"+e("\\:("+zr+")")+"?)")+"?("+qt+"|"+Dt+"|"+Xn+"|"+_t+")")+e("\\?("+Vr+")")+"?"+e("\\#("+kn+")")+"?$",co="^("+Ke+")\\:"+e(e("\\/\\/("+e("("+Be+")@")+"?("+bn+")"+e("\\:("+zr+")")+"?)")+"?("+qt+"|"+Dt+"|"+$n+"|"+_t+")")+e("\\?("+Vr+")")+"?$",At="^"+e("\\#("+kn+")")+"?$",We="^"+e("("+Be+")@")+"?("+bn+")"+e("\\:("+zr+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",P,H,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",z,ie),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",z,ie),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",z,ie),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",z,ie),"g"),NOT_QUERY:new RegExp(r("[^\\%]",z,ie,"[\\:\\@\\/\\?]",Ge),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",z,ie,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",z,ie),"g"),UNRESERVED:new RegExp(z,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",z,Le),"g"),PCT_ENCODED:new RegExp(qe,"g"),IPV4ADDRESS:new RegExp("^("+tr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Ot+")"+e(e("\\%25|\\%(?!"+le+"{2})")+"("+rn+")")+"?\\]?$")}}var c=u(!1),m=u(!0),p=function(){function F(P,j){var H=[],G=!0,le=!1,ve=void 0;try{for(var Se=P[Symbol.iterator](),qe;!(G=(qe=Se.next()).done)&&(H.push(qe.value),!(j&&H.length===j));G=!0);}catch(d){le=!0,ve=d}finally{try{!G&&Se.return&&Se.return()}finally{if(le)throw ve}}return H}return function(P,j){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return F(P,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(F){if(Array.isArray(F)){for(var P=0,j=Array(F.length);P<F.length;P++)j[P]=F[P];return j}else return Array.from(F)},k=2147483647,w=36,x=1,T=26,N=38,D=700,X=72,ee=128,de="-",fe=/^xn--/,Z=/[^\0-\x7E]/,me=/[\x2E\u3002\uFF0E\uFF61]/g,we={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=w-x,Fe=Math.floor,xe=String.fromCharCode;function Ce(F){throw new RangeError(we[F])}function ue(F,P){for(var j=[],H=F.length;H--;)j[H]=P(F[H]);return j}function $e(F,P){var j=F.split("@"),H="";j.length>1&&(H=j[0]+"@",F=j[1]),F=F.replace(me,".");var G=F.split("."),le=ue(G,P).join(".");return H+le}function He(F){for(var P=[],j=0,H=F.length;j<H;){var G=F.charCodeAt(j++);if(G>=55296&&G<=56319&&j<H){var le=F.charCodeAt(j++);(le&64512)==56320?P.push(((G&1023)<<10)+(le&1023)+65536):(P.push(G),j--)}else P.push(G)}return P}var U=function(P){return String.fromCodePoint.apply(String,b(P))},st=function(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:w},Re=function(P,j){return P+22+75*(P<26)-((j!=0)<<5)},et=function(P,j,H){var G=0;for(P=H?Fe(P/D):P>>1,P+=Fe(P/j);P>ke*T>>1;G+=w)P=Fe(P/ke);return Fe(G+(ke+1)*P/(P+N))},Ue=function(P){var j=[],H=P.length,G=0,le=ee,ve=X,Se=P.lastIndexOf(de);Se<0&&(Se=0);for(var qe=0;qe<Se;++qe)P.charCodeAt(qe)>=128&&Ce("not-basic"),j.push(P.charCodeAt(qe));for(var d=Se>0?Se+1:0;d<H;){for(var ie=G,Le=1,je=w;;je+=w){d>=H&&Ce("invalid-input");var Ge=st(P.charCodeAt(d++));(Ge>=w||Ge>Fe((k-G)/Le))&&Ce("overflow"),G+=Ge*Le;var z=je<=ve?x:je>=ve+T?T:je-ve;if(Ge<z)break;var Ke=w-z;Le>Fe(k/Ke)&&Ce("overflow"),Le*=Ke}var Be=j.length+1;ve=et(G-ie,Be,ie==0),Fe(G/Be)>k-le&&Ce("overflow"),le+=Fe(G/Be),G%=Be,j.splice(G++,0,le)}return String.fromCodePoint.apply(String,j)},O=function(P){var j=[];P=He(P);var H=P.length,G=ee,le=0,ve=X,Se=!0,qe=!1,d=void 0;try{for(var ie=P[Symbol.iterator](),Le;!(Se=(Le=ie.next()).done);Se=!0){var je=Le.value;je<128&&j.push(xe(je))}}catch($r){qe=!0,d=$r}finally{try{!Se&&ie.return&&ie.return()}finally{if(qe)throw d}}var Ge=j.length,z=Ge;for(Ge&&j.push(de);z<H;){var Ke=k,Be=!0,Br=!1,Mt=void 0;try{for(var tr=P[Symbol.iterator](),he;!(Be=(he=tr.next()).done);Be=!0){var at=he.value;at>=G&&at<Ke&&(Ke=at)}}catch($r){Br=!0,Mt=$r}finally{try{!Be&&tr.return&&tr.return()}finally{if(Br)throw Mt}}var Vt=z+1;Ke-G>Fe((k-le)/Vt)&&Ce("overflow"),le+=(Ke-G)*Vt,G=Ke;var ur=!0,Er=!1,rr=void 0;try{for(var cr=P[Symbol.iterator](),ne;!(ur=(ne=cr.next()).done);ur=!0){var yn=ne.value;if(yn<G&&++le>k&&Ce("overflow"),yn==G){for(var _r=le,Ar=w;;Ar+=w){var Ot=Ar<=ve?x:Ar>=ve+T?T:Ar-ve;if(_r<Ot)break;var rn=_r-Ot,Kn=w-Ot;j.push(xe(Re(Ot+rn%Kn,0))),_r=Fe(rn/Kn)}j.push(xe(Re(_r,0))),ve=et(le,Vt,z==Ge),le=0,++z}}}catch($r){Er=!0,rr=$r}finally{try{!ur&&cr.return&&cr.return()}finally{if(Er)throw rr}}++le,++G}return j.join("")},q=function(P){return $e(P,function(j){return fe.test(j)?Ue(j.slice(4).toLowerCase()):j})},Bt=function(P){return $e(P,function(j){return Z.test(j)?"xn--"+O(j):j})},kt={version:"2.1.0",ucs2:{decode:He,encode:U},decode:Ue,encode:O,toASCII:Bt,toUnicode:q},nt={};function ut(F){var P=F.charCodeAt(0),j=void 0;return P<16?j="%0"+P.toString(16).toUpperCase():P<128?j="%"+P.toString(16).toUpperCase():P<2048?j="%"+(P>>6|192).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase():j="%"+(P>>12|224).toString(16).toUpperCase()+"%"+(P>>6&63|128).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase(),j}function ct(F){for(var P="",j=0,H=F.length;j<H;){var G=parseInt(F.substr(j+1,2),16);if(G<128)P+=String.fromCharCode(G),j+=3;else if(G>=194&&G<224){if(H-j>=6){var le=parseInt(F.substr(j+4,2),16);P+=String.fromCharCode((G&31)<<6|le&63)}else P+=F.substr(j,6);j+=6}else if(G>=224){if(H-j>=9){var ve=parseInt(F.substr(j+4,2),16),Se=parseInt(F.substr(j+7,2),16);P+=String.fromCharCode((G&15)<<12|(ve&63)<<6|Se&63)}else P+=F.substr(j,9);j+=9}else P+=F.substr(j,3),j+=3}return P}function be(F,P){function j(H){var G=ct(H);return G.match(P.UNRESERVED)?G:H}return F.scheme&&(F.scheme=String(F.scheme).replace(P.PCT_ENCODED,j).toLowerCase().replace(P.NOT_SCHEME,"")),F.userinfo!==void 0&&(F.userinfo=String(F.userinfo).replace(P.PCT_ENCODED,j).replace(P.NOT_USERINFO,ut).replace(P.PCT_ENCODED,i)),F.host!==void 0&&(F.host=String(F.host).replace(P.PCT_ENCODED,j).toLowerCase().replace(P.NOT_HOST,ut).replace(P.PCT_ENCODED,i)),F.path!==void 0&&(F.path=String(F.path).replace(P.PCT_ENCODED,j).replace(F.scheme?P.NOT_PATH:P.NOT_PATH_NOSCHEME,ut).replace(P.PCT_ENCODED,i)),F.query!==void 0&&(F.query=String(F.query).replace(P.PCT_ENCODED,j).replace(P.NOT_QUERY,ut).replace(P.PCT_ENCODED,i)),F.fragment!==void 0&&(F.fragment=String(F.fragment).replace(P.PCT_ENCODED,j).replace(P.NOT_FRAGMENT,ut).replace(P.PCT_ENCODED,i)),F}function br(F){return F.replace(/^0*(.*)/,"$1")||"0"}function Ct(F,P){var j=F.match(P.IPV4ADDRESS)||[],H=p(j,2),G=H[1];return G?G.split(".").map(br).join("."):F}function It(F,P){var j=F.match(P.IPV6ADDRESS)||[],H=p(j,3),G=H[1],le=H[2];if(G){for(var ve=G.toLowerCase().split("::").reverse(),Se=p(ve,2),qe=Se[0],d=Se[1],ie=d?d.split(":").map(br):[],Le=qe.split(":").map(br),je=P.IPV4ADDRESS.test(Le[Le.length-1]),Ge=je?7:8,z=Le.length-Ge,Ke=Array(Ge),Be=0;Be<Ge;++Be)Ke[Be]=ie[Be]||Le[z+Be]||"";je&&(Ke[Ge-1]=Ct(Ke[Ge-1],P));var Br=Ke.reduce(function(Vt,ur,Er){if(!ur||ur==="0"){var rr=Vt[Vt.length-1];rr&&rr.index+rr.length===Er?rr.length++:Vt.push({index:Er,length:1})}return Vt},[]),Mt=Br.sort(function(Vt,ur){return ur.length-Vt.length})[0],tr=void 0;if(Mt&&Mt.length>1){var he=Ke.slice(0,Mt.index),at=Ke.slice(Mt.index+Mt.length);tr=he.join(":")+"::"+at.join(":")}else tr=Ke.join(":");return le&&(tr+="%"+le),tr}else return F}var Yt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,lr="".match(/(){0}/)[1]===void 0;function zt(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j={},H=P.iri!==!1?m:c;P.reference==="suffix"&&(F=(P.scheme?P.scheme+":":"")+"//"+F);var G=F.match(Yt);if(G){lr?(j.scheme=G[1],j.userinfo=G[3],j.host=G[4],j.port=parseInt(G[5],10),j.path=G[6]||"",j.query=G[7],j.fragment=G[8],isNaN(j.port)&&(j.port=G[5])):(j.scheme=G[1]||void 0,j.userinfo=F.indexOf("@")!==-1?G[3]:void 0,j.host=F.indexOf("//")!==-1?G[4]:void 0,j.port=parseInt(G[5],10),j.path=G[6]||"",j.query=F.indexOf("?")!==-1?G[7]:void 0,j.fragment=F.indexOf("#")!==-1?G[8]:void 0,isNaN(j.port)&&(j.port=F.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?G[4]:void 0)),j.host&&(j.host=It(Ct(j.host,H),H)),j.scheme===void 0&&j.userinfo===void 0&&j.host===void 0&&j.port===void 0&&!j.path&&j.query===void 0?j.reference="same-document":j.scheme===void 0?j.reference="relative":j.fragment===void 0?j.reference="absolute":j.reference="uri",P.reference&&P.reference!=="suffix"&&P.reference!==j.reference&&(j.error=j.error||"URI is not a "+P.reference+" reference.");var le=nt[(P.scheme||j.scheme||"").toLowerCase()];if(!P.unicodeSupport&&(!le||!le.unicodeSupport)){if(j.host&&(P.domainHost||le&&le.domainHost))try{j.host=kt.toASCII(j.host.replace(H.PCT_ENCODED,ct).toLowerCase())}catch(ve){j.error=j.error||"Host's domain name can not be converted to ASCII via punycode: "+ve}be(j,c)}else be(j,H);le&&le.parse&&le.parse(j,P)}else j.error=j.error||"URI can not be parsed.";return j}function Hn(F,P){var j=P.iri!==!1?m:c,H=[];return F.userinfo!==void 0&&(H.push(F.userinfo),H.push("@")),F.host!==void 0&&H.push(It(Ct(String(F.host),j),j).replace(j.IPV6ADDRESS,function(G,le,ve){return"["+le+(ve?"%25"+ve:"")+"]"})),(typeof F.port=="number"||typeof F.port=="string")&&(H.push(":"),H.push(String(F.port))),H.length?H.join(""):void 0}var Tn=/^\.\.?\//,ft=/^\/\.(\/|$)/,pt=/^\/\.\.(\/|$)/,Ft=/^\/?(?:.|\n)*?(?=\/|$)/;function dt(F){for(var P=[];F.length;)if(F.match(Tn))F=F.replace(Tn,"");else if(F.match(ft))F=F.replace(ft,"/");else if(F.match(pt))F=F.replace(pt,"/"),P.pop();else if(F==="."||F==="..")F="";else{var j=F.match(Ft);if(j){var H=j[0];F=F.slice(H.length),P.push(H)}else throw new Error("Unexpected dot segment condition")}return P.join("")}function vt(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=P.iri?m:c,H=[],G=nt[(P.scheme||F.scheme||"").toLowerCase()];if(G&&G.serialize&&G.serialize(F,P),F.host&&!j.IPV6ADDRESS.test(F.host)){if(P.domainHost||G&&G.domainHost)try{F.host=P.iri?kt.toUnicode(F.host):kt.toASCII(F.host.replace(j.PCT_ENCODED,ct).toLowerCase())}catch(Se){F.error=F.error||"Host's domain name can not be converted to "+(P.iri?"Unicode":"ASCII")+" via punycode: "+Se}}be(F,j),P.reference!=="suffix"&&F.scheme&&(H.push(F.scheme),H.push(":"));var le=Hn(F,P);if(le!==void 0&&(P.reference!=="suffix"&&H.push("//"),H.push(le),F.path&&F.path.charAt(0)!=="/"&&H.push("/")),F.path!==void 0){var ve=F.path;!P.absolutePath&&(!G||!G.absolutePath)&&(ve=dt(ve)),le===void 0&&(ve=ve.replace(/^\/\//,"/%2F")),H.push(ve)}return F.query!==void 0&&(H.push("?"),H.push(F.query)),F.fragment!==void 0&&(H.push("#"),H.push(F.fragment)),H.join("")}function qr(F,P){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=arguments[3],G={};return H||(F=zt(vt(F,j),j),P=zt(vt(P,j),j)),j=j||{},!j.tolerant&&P.scheme?(G.scheme=P.scheme,G.userinfo=P.userinfo,G.host=P.host,G.port=P.port,G.path=dt(P.path||""),G.query=P.query):(P.userinfo!==void 0||P.host!==void 0||P.port!==void 0?(G.userinfo=P.userinfo,G.host=P.host,G.port=P.port,G.path=dt(P.path||""),G.query=P.query):(P.path?(P.path.charAt(0)==="/"?G.path=dt(P.path):((F.userinfo!==void 0||F.host!==void 0||F.port!==void 0)&&!F.path?G.path="/"+P.path:F.path?G.path=F.path.slice(0,F.path.lastIndexOf("/")+1)+P.path:G.path=P.path,G.path=dt(G.path)),G.query=P.query):(G.path=F.path,P.query!==void 0?G.query=P.query:G.query=F.query),G.userinfo=F.userinfo,G.host=F.host,G.port=F.port),G.scheme=F.scheme),G.fragment=P.fragment,G}function Dr(F,P,j){var H=a({scheme:"null"},j);return vt(qr(zt(F,H),zt(P,H),H,!0),H)}function Nr(F,P){return typeof F=="string"?F=vt(zt(F,P),P):n(F)==="object"&&(F=zt(vt(F,P),P)),F}function Rr(F,P,j){return typeof F=="string"?F=vt(zt(F,j),j):n(F)==="object"&&(F=vt(F,j)),typeof P=="string"?P=vt(zt(P,j),j):n(P)==="object"&&(P=vt(P,j)),F===P}function Lr(F,P){return F&&F.toString().replace(!P||!P.iri?c.ESCAPE:m.ESCAPE,ut)}function er(F,P){return F&&F.toString().replace(!P||!P.iri?c.PCT_ENCODED:m.PCT_ENCODED,ct)}var K={scheme:"http",domainHost:!0,parse:function(P,j){return P.host||(P.error=P.error||"HTTP URIs must have a host."),P},serialize:function(P,j){var H=String(P.scheme).toLowerCase()==="https";return(P.port===(H?443:80)||P.port==="")&&(P.port=void 0),P.path||(P.path="/"),P}},re={scheme:"https",domainHost:K.domainHost,parse:K.parse,serialize:K.serialize};function ge(F){return typeof F.secure=="boolean"?F.secure:String(F.scheme).toLowerCase()==="wss"}var Ae={scheme:"ws",domainHost:!0,parse:function(P,j){var H=P;return H.secure=ge(H),H.resourceName=(H.path||"/")+(H.query?"?"+H.query:""),H.path=void 0,H.query=void 0,H},serialize:function(P,j){if((P.port===(ge(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 H=P.resourceName.split("?"),G=p(H,2),le=G[0],ve=G[1];P.path=le&&le!=="/"?le:void 0,P.query=ve,P.resourceName=void 0}return P.fragment=void 0,P}},xt={scheme:"wss",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize},xr={},ze=!0,it="[A-Za-z0-9\\-\\.\\_\\~"+(ze?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",mt="[0-9A-Fa-f]",jr=e(e("%[EFef]"+mt+"%"+mt+mt+"%"+mt+mt)+"|"+e("%[89A-Fa-f]"+mt+"%"+mt+mt)+"|"+e("%"+mt+mt)),Qe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",tn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Et=r(tn,'[\\"\\\\]'),In="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",no=new RegExp(it,"g"),Cr=new RegExp(jr,"g"),Fn=new RegExp(r("[^]",Qe,"[\\.]",'[\\"]',Et),"g"),_i=new RegExp(r("[^]",it,In),"g"),io=_i;function On(F){var P=ct(F);return P.match(no)?P:F}var Ai={scheme:"mailto",parse:function(P,j){var H=P,G=H.to=H.path?H.path.split(","):[];if(H.path=void 0,H.query){for(var le=!1,ve={},Se=H.query.split("&"),qe=0,d=Se.length;qe<d;++qe){var ie=Se[qe].split("=");switch(ie[0]){case"to":for(var Le=ie[1].split(","),je=0,Ge=Le.length;je<Ge;++je)G.push(Le[je]);break;case"subject":H.subject=er(ie[1],j);break;case"body":H.body=er(ie[1],j);break;default:le=!0,ve[er(ie[0],j)]=er(ie[1],j);break}}le&&(H.headers=ve)}H.query=void 0;for(var z=0,Ke=G.length;z<Ke;++z){var Be=G[z].split("@");if(Be[0]=er(Be[0]),j.unicodeSupport)Be[1]=er(Be[1],j).toLowerCase();else try{Be[1]=kt.toASCII(er(Be[1],j).toLowerCase())}catch(Br){H.error=H.error||"Email address's domain name can not be converted to ASCII via punycode: "+Br}G[z]=Be.join("@")}return H},serialize:function(P,j){var H=P,G=o(P.to);if(G){for(var le=0,ve=G.length;le<ve;++le){var Se=String(G[le]),qe=Se.lastIndexOf("@"),d=Se.slice(0,qe).replace(Cr,On).replace(Cr,i).replace(Fn,ut),ie=Se.slice(qe+1);try{ie=j.iri?kt.toUnicode(ie):kt.toASCII(er(ie,j).toLowerCase())}catch(z){H.error=H.error||"Email address's domain name can not be converted to "+(j.iri?"Unicode":"ASCII")+" via punycode: "+z}G[le]=d+"@"+ie}H.path=G.join(",")}var Le=P.headers=P.headers||{};P.subject&&(Le.subject=P.subject),P.body&&(Le.body=P.body);var je=[];for(var Ge in Le)Le[Ge]!==xr[Ge]&&je.push(Ge.replace(Cr,On).replace(Cr,i).replace(_i,ut)+"="+Le[Ge].replace(Cr,On).replace(Cr,i).replace(io,ut));return je.length&&(H.query=je.join("&")),H}},Gn=/^([^\:]+)\:(.*)/,hn={scheme:"urn",parse:function(P,j){var H=P.path&&P.path.match(Gn),G=P;if(H){var le=j.scheme||G.scheme||"urn",ve=H[1].toLowerCase(),Se=H[2],qe=le+":"+(j.nid||ve),d=nt[qe];G.nid=ve,G.nss=Se,G.path=void 0,d&&(G=d.parse(G,j))}else G.error=G.error||"URN can not be parsed.";return G},serialize:function(P,j){var H=j.scheme||P.scheme||"urn",G=P.nid,le=H+":"+(j.nid||G),ve=nt[le];ve&&(P=ve.serialize(P,j));var Se=P,qe=P.nss;return Se.path=(G||j.nid)+":"+qe,Se}},oo=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,gn={scheme:"urn:uuid",parse:function(P,j){var H=P;return H.uuid=H.nss,H.nss=void 0,!j.tolerant&&(!H.uuid||!H.uuid.match(oo))&&(H.error=H.error||"UUID is not valid."),H},serialize:function(P,j){var H=P;return H.nss=(P.uuid||"").toLowerCase(),H}};nt[K.scheme]=K,nt[re.scheme]=re,nt[Ae.scheme]=Ae,nt[xt.scheme]=xt,nt[Ai.scheme]=Ai,nt[hn.scheme]=hn,nt[gn.scheme]=gn,t.SCHEMES=nt,t.pctEncChar=ut,t.pctDecChars=ct,t.parse=zt,t.removeDotSegments=dt,t.serialize=vt,t.resolveComponents=qr,t.resolve=Dr,t.normalize=Nr,t.equal=Rr,t.escapeComponent=Lr,t.unescapeComponent=er,Object.defineProperty(t,"__esModule",{value:!0})})});var Co=ce(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.getSchemaRefs=mr.resolveUrl=mr.normalizeId=mr._getFullPath=mr.getFullPath=mr.inlineRef=void 0;var Pg=lt(),Tg=xo(),Ig=Hc(),ys=Ka(),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?!Wa(t):r?Kc(t)<=r:!1}mr.inlineRef=Og;var qg=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Wa(t){for(let r in t){if(qg.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(Wa)||typeof e=="object"&&Wa(e))return!0}return!1}function Kc(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+=Kc(n)),r===1/0))return 1/0}return r}function Wc(t="",r){r!==!1&&(t=Ui(t));let e=ys.parse(t);return Zc(e)}mr.getFullPath=Wc;function Zc(t){return ys.serialize(t).split("#")[0]+"#"}mr._getFullPath=Zc;var Dg=/#\/?$/;function Ui(t){return t?t.replace(Dg,""):""}mr.normalizeId=Ui;function Ng(t,r){return r=Ui(r),ys.resolve(t,r)}mr.resolveUrl=Ng;var Rg=/^[a-z_][-a-z0-9._]*$/i;function Lg(t){if(typeof t=="boolean")return{};let r=Ui(t.$id),e={"":r},n=Wc(r,!1),i={},o=new Set;return Ig(t,{allKeys:!0},(c,m,p,b)=>{if(b===void 0)return;let k=n+m,w=e[b];typeof c.$id=="string"&&(w=x.call(this,c.$id)),T.call(this,c.$anchor),T.call(this,c.$dynamicAnchor),e[m]=w;function x(N){if(N=Ui(w?ys.resolve(w,N):N),o.has(N))throw u(N);o.add(N);let D=this.refs[N];return typeof D=="string"&&(D=this.refs[D]),typeof D=="object"?a(c,D.schema,N):N!==Ui(k)&&(N[0]==="#"?(a(c,i[N],N),i[N]=c):this.refs[N]=k),N}function T(N){if(typeof N=="string"){if(!Rg.test(N))throw new Error(`invalid anchor "${N}"`);x.call(this,`#${N}`)}}}),i;function a(c,m,p){if(m!==void 0&&!Tg(c,m))throw u(p)}function u(c){return new Error(`reference "${c}" resolves to more than one schema`)}}mr.getSchemaRefs=Lg});var kr=ce(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.checkStrictMode=cn.schemaCxtHasRules=cn.subschemaCode=cn.validateFunctionCode=void 0;var Yc=_c(),Jc=Vi(),Qc=Mc(),Oe=Pe(),Ee=Wr(),jg=Co(),ef=lt();function Bg(t){if(rf(t)&&(nf(t),Za(t))){Vg(t);return}tf(t,()=>Yc.topBoolOrEmptySchema(t))}cn.validateFunctionCode=Bg;function tf({gen:t,validateName:r,schema:e,schemaEnv:n,opts:i},o){i.code.es5?t.func(r,Oe._`${Ee.default.data}, ${Ee.default.valCxt}`,n.$async,()=>{t.code(Oe._`"use strict"; ${Xc(e,i)}`),Mg(t,i),t.code(o)}):t.func(r,Oe._`${Ee.default.data}, ${zg(i)}`,n.$async,()=>t.code(Xc(e,i)).code(o))}function zg(t){return Oe._`{${Ee.default.dataPath}="", ${Ee.default.parentData}, ${Ee.default.parentDataProperty}, ${Ee.default.rootData}=${Ee.default.data}${t.dynamicRef?Oe._`, ${Ee.default.dynamicAnchors}={}`:Oe.nil}}={}`}function Mg(t,r){t.if(Ee.default.valCxt,()=>{t.var(Ee.default.dataPath,Oe._`${Ee.default.valCxt}.${Ee.default.dataPath}`),t.var(Ee.default.parentData,Oe._`${Ee.default.valCxt}.${Ee.default.parentData}`),t.var(Ee.default.parentDataProperty,Oe._`${Ee.default.valCxt}.${Ee.default.parentDataProperty}`),t.var(Ee.default.rootData,Oe._`${Ee.default.valCxt}.${Ee.default.rootData}`),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,Oe._`${Ee.default.valCxt}.${Ee.default.dynamicAnchors}`)},()=>{t.var(Ee.default.dataPath,Oe._`""`),t.var(Ee.default.parentData,Oe._`undefined`),t.var(Ee.default.parentDataProperty,Oe._`undefined`),t.var(Ee.default.rootData,Ee.default.data),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,Oe._`{}`)})}function Vg(t){let{schema:r,opts:e,gen:n}=t;tf(t,()=>{e.$comment&&r.$comment&&sf(t),Wg(t),n.let(Ee.default.vErrors,null),n.let(Ee.default.errors,0),e.unevaluated&&Ug(t),of(t),Qg(t)})}function Ug(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Oe._`${e}.evaluated`),r.if(Oe._`${t.evaluated}.dynamicProps`,()=>r.assign(Oe._`${t.evaluated}.props`,Oe._`undefined`)),r.if(Oe._`${t.evaluated}.dynamicItems`,()=>r.assign(Oe._`${t.evaluated}.items`,Oe._`undefined`))}function Xc(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Oe._`/*# sourceURL=${t.$id} */`:Oe.nil}function Hg(t,r){if(rf(t)&&(nf(t),Za(t))){Gg(t,r);return}Yc.boolOrEmptySchema(t,r)}cn.subschemaCode=Hg;function Za({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}cn.schemaCxtHasRules=Za;function rf(t){return typeof t.schema!="boolean"}function Gg(t,r){let{schema:e,gen:n,opts:i}=t;i.$comment&&e.$comment&&sf(t),Zg(t),Jg(t);let o=n.const("_errs",Ee.default.errors);of(t,o),n.var(r,Oe._`${o} === ${Ee.default.errors}`)}function nf(t){ef.checkUnknownRules(t),Kg(t)}function of(t,r){if(t.opts.jtd)return Qc.schemaKeywords(t,[],!1,r);let e=Jc.getSchemaTypes(t.schema),n=Jc.coerceAndCheckDataType(t,e);Qc.schemaKeywords(t,e,!n,r)}function Kg(t){let{schema:r,errSchemaPath:e,opts:n,self:i}=t;r.$ref&&n.ignoreKeywordsWithRef&&ef.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&&af(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 sf({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:i}){let o=e.$comment;if(i.$comment===!0)t.code(Oe._`${Ee.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=Oe.str`${n}/$comment`,u=t.scopeValue("root",{ref:r.root});t.code(Oe._`${Ee.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}function Qg(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:i,opts:o}=t;e.$async?r.if(Oe._`${Ee.default.errors} === 0`,()=>r.return(Ee.default.data),()=>r.throw(Oe._`new ${i}(${Ee.default.vErrors})`)):(r.assign(Oe._`${n}.errors`,Ee.default.vErrors),o.unevaluated&&Xg(t),r.return(Oe._`${Ee.default.errors} === 0`))}function Xg({gen:t,evaluated:r,props:e,items:n}){e instanceof Oe.Name&&t.assign(Oe._`${r}.props`,e),n instanceof Oe.Name&&t.assign(Oe._`${r}.items`,n)}function af(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}cn.checkStrictMode=af});var lt=ce(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.func=Me.setEvaluated=Me.evaluatedPropsToName=Me.mergeEvaluated=Me.eachItem=Me.unescapeJsonPointer=Me.escapeJsonPointer=Me.escapeFragment=Me.unescapeFragment=Me.schemaRefOrVal=Me.schemaHasRulesButRef=Me.schemaHasRules=Me.checkUnknownRules=Me.alwaysValidSchema=Me.toHash=void 0;var ht=Pe(),Yg=kr();function ey(t){let r={};for(let e of t)r[e]=!0;return r}Me.toHash=ey;function ty(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(uf(t,r),!cf(r,t.self.RULES.all))}Me.alwaysValidSchema=ty;function uf(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}"`)}Me.checkUnknownRules=uf;function cf(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}Me.schemaHasRules=cf;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}Me.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 ht._`${e}`}return ht._`${t}${r}${ht.getProperty(n)}`}Me.schemaRefOrVal=ny;function iy(t){return pf(decodeURIComponent(t))}Me.unescapeFragment=iy;function oy(t){return encodeURIComponent(ff(t))}Me.escapeFragment=oy;function ff(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Me.escapeJsonPointer=ff;function pf(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Me.unescapeJsonPointer=pf;function sy(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}Me.eachItem=sy;function lf({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof ht.Name?(o instanceof ht.Name?t(i,o,a):r(i,o,a),a):o instanceof ht.Name?(r(i,a,o),o):e(o,a);return u===ht.Name&&!(c instanceof ht.Name)?n(i,c):c}}Me.mergeEvaluated={props:lf({mergeNames:(t,r,e)=>t.if(ht._`${e} !== true && ${r} !== undefined`,()=>{t.if(ht._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,ht._`${e} || {}`).code(ht._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(ht._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,ht._`${e} || {}`),Ja(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:df}),items:lf({mergeNames:(t,r,e)=>t.if(ht._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,ht._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(ht._`${e} !== true`,()=>t.assign(e,r===!0?!0:ht._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function df(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",ht._`{}`);return r!==void 0&&Ja(t,e,r),e}Me.evaluatedPropsToName=df;function Ja(t,r,e){Object.keys(e).forEach(n=>t.assign(ht._`${r}${ht.getProperty(n)}`,!0))}Me.setEvaluated=Ja;function ay(t,r){return t.scopeValue("func",{ref:r,code:r.code})}Me.func=ay});var Vi=ce(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.reportTypeError=Rt.checkDataTypes=Rt.checkDataType=Rt.coerceAndCheckDataType=Rt.getJSONTypes=Rt.getSchemaTypes=Rt.DataType=void 0;var ly=va(),uy=xa(),cy=ko(),_e=Pe(),mf=lt(),Eo;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Eo=Rt.DataType||(Rt.DataType={}));function fy(t){let r=hf(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}Rt.getSchemaTypes=fy;function hf(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(","))}Rt.getJSONTypes=hf;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 u=Xa(r,n,i.strict,Eo.Wrong);e.if(u,()=>{o.length?my(t,r,o):Ya(t)})}return a}Rt.coerceAndCheckDataType=py;var gf=new Set(["string","number","integer","boolean","null"]);function dy(t,r){return r?t.filter(e=>gf.has(e)||r==="array"&&e==="array"):[]}function my(t,r,e){let{gen:n,data:i,opts:o}=t,a=n.let("dataType",_e._`typeof ${i}`),u=n.let("coerced",_e._`undefined`);o.coerceTypes==="array"&&n.if(_e._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,_e._`${i}[0]`).assign(a,_e._`typeof ${i}`).if(Xa(r,i,o.strict),()=>n.assign(u,i))),n.if(_e._`${u} !== undefined`);for(let m of e)(gf.has(m)||m==="array"&&o.coerceTypes==="array")&&c(m);n.else(),Ya(t),n.endIf(),n.if(_e._`${u} !== undefined`,()=>{n.assign(i,u),hy(t,u)});function c(m){switch(m){case"string":n.elseIf(_e._`${a} == "number" || ${a} == "boolean"`).assign(u,_e._`"" + ${i}`).elseIf(_e._`${i} === null`).assign(u,_e._`""`);return;case"number":n.elseIf(_e._`${a} == "boolean" || ${i} === null
|
|
3
|
+
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,_e._`+${i}`);return;case"integer":n.elseIf(_e._`${a} === "boolean" || ${i} === null
|
|
4
|
+
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,_e._`+${i}`);return;case"boolean":n.elseIf(_e._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf(_e._`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf(_e._`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf(_e._`${a} === "string" || ${a} === "number"
|
|
5
|
+
|| ${a} === "boolean" || ${i} === null`).assign(u,_e._`[${i}]`)}}}function hy({gen:t,parentData:r,parentDataProperty:e},n){t.if(_e._`${r} !== undefined`,()=>t.assign(_e._`${r}[${e}]`,n))}function Qa(t,r,e,n=Eo.Correct){let i=n===Eo.Correct?_e.operators.EQ:_e.operators.NEQ,o;switch(t){case"null":return _e._`${r} ${i} null`;case"array":o=_e._`Array.isArray(${r})`;break;case"object":o=_e._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":o=a(_e._`!(${r} % 1) && !isNaN(${r})`);break;case"number":o=a();break;default:return _e._`typeof ${r} ${i} ${t}`}return n===Eo.Correct?o:_e.not(o);function a(u=_e.nil){return _e.and(_e._`typeof ${r} == "number"`,u,e?_e._`isFinite(${r})`:_e.nil)}}Rt.checkDataType=Qa;function Xa(t,r,e,n){if(t.length===1)return Qa(t[0],r,e,n);let i,o=mf.toHash(t);if(o.array&&o.object){let a=_e._`typeof ${r} != "object"`;i=o.null?a:_e._`!${r} || ${a}`,delete o.null,delete o.array,delete o.object}else i=_e.nil;o.number&&delete o.integer;for(let a in o)i=_e.and(i,Qa(a,r,e,n));return i}Rt.checkDataTypes=Xa;var gy={message:({schema:t})=>_e.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?_e._`{type: ${t}}`:_e._`{type: ${r}}`};function Ya(t){let r=yy(t);cy.reportError(r,gy)}Rt.reportTypeError=Ya;function yy(t){let{gen:r,data:e,schema:n}=t,i=mf.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var vo=ce(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.getData=void 0;var yf=Vi(),bs=lt(),_o=ko(),$t=Pe(),el=Wr(),by=li(),tl=class{constructor(r,e,n){if(wy(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=bs.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",bf(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",el.default.errors))}result(r,e,n){this.gen.if($t.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($t._`${e} !== undefined && (${$t.or(this.invalid$data(),r)})`)}error(r){(r?_o.reportExtraError:_o.reportError)(this,this.def.error)}$dataError(){_o.reportError(this,this.def.$dataError||_o.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');_o.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=$t.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=$t.nil,e=$t.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if($t.or($t._`${i} === undefined`,e)),r!==$t.nil&&n.assign(r,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==$t.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:i,it:o}=this;return $t.or(a(),u());function a(){if(n.length){if(!(e instanceof $t.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return $t._`${yf.checkDataTypes(c,e,o.opts.strict,yf.DataType.Wrong)}`}return $t.nil}function u(){if(i.validateSchema){let c=r.scopeValue("validate$data",{ref:i.validateSchema});return $t._`!${c}(${e})`}return $t.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=bs.mergeEvaluated.props(i,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=bs.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,$t.Name)),!0}};Ao.default=tl;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 wy({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 u="keyword value is invalid: "+e.errorsText(n.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(u);else throw new Error(u)}}var ky=/^\/(?:[^~]|~0|~1)*$/,vy=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function bf(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let i,o;if(t==="")return el.default.rootData;if(t[0]==="/"){if(!ky.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=el.default.rootData}else{let m=vy.exec(t);if(!m)throw new Error(`Invalid JSON-pointer: ${t}`);let p=+m[1];if(i=m[2],i==="#"){if(p>=r)throw new Error(c("property/index",p));return n[r-p]}if(p>r)throw new Error(c("data",p));if(o=e[r-p],!i)return o}let a=o,u=i.split("/");for(let m of u)m&&(o=$t._`${o}${$t.getProperty(bs.unescapeJsonPointer(m))}`,a=$t._`${a} && ${o}`);return a;function c(m,p){return`Cannot access ${m} ${p} levels up, current level is ${r}`}}Ao.getData=bf});var ks=ce((Hi,$f)=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.MissingRefError=Hi.ValidationError=void 0;var rl=Co(),$s=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};Hi.ValidationError=$s;var ws=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=rl.resolveUrl(r,e),this.missingSchema=rl.normalizeId(rl.getFullPath(this.missingRef))}};Hi.MissingRefError=ws;$f.exports={ValidationError:$s,MissingRefError:ws}});var ol=ce(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.resolveSchema=Fr.getCompilingSchema=Fr.resolveRef=Fr.compileSchema=Fr.SchemaEnv=void 0;var Jr=Pe(),xy=ks(),ci=Wr(),Qr=Co(),wf=lt(),Cy=kr(),Ey=Ka(),Gi=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:Qr.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={}}};Fr.SchemaEnv=Gi;function il(t){let r=kf.call(this,t);if(r)return r;let e=Qr.getFullPath(t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Jr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;t.$async&&(u=a.scopeValue("Error",{ref:xy.ValidationError,code:Jr._`require("ajv/dist/compile/error_classes").ValidationError`}));let c=a.scopeName("validate");t.validateName=c;let m={gen:a,allErrors:this.opts.allErrors,data:ci.default.data,parentData:ci.default.parentData,parentDataProperty:ci.default.parentDataProperty,dataNames:[ci.default.data],dataPathArr:[Jr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:Jr.stringify(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:u,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:Jr.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:Jr._`""`,opts:this.opts,self:this},p;try{this._compilations.add(t),Cy.validateFunctionCode(m),a.optimize(this.opts.code.optimize);let b=a.toString();p=`${a.scopeRefs(ci.default.scope)}return ${b}`,this.opts.code.process&&(p=this.opts.code.process(p,t));let w=new Function(`${ci.default.self}`,`${ci.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:w}),w.errors=null,w.schema=t.schema,w.schemaEnv=t,t.$async&&(w.$async=!0),this.opts.code.source===!0&&(w.source={validateName:c,validateCode:b,scopeValues:a._values}),this.opts.unevaluated){let{props:x,items:T}=m;w.evaluated={props:x instanceof Jr.Name?void 0:x,items:T instanceof Jr.Name?void 0:T,dynamicProps:x instanceof Jr.Name,dynamicItems:T instanceof Jr.Name},w.source&&(w.source.evaluated=Jr.stringify(w.evaluated))}return t.validate=w,t}catch(b){throw delete t.validate,delete t.validateName,p&&this.logger.error("Error compiling schema, function code:",p),b}finally{this._compilations.delete(t)}}Fr.compileSchema=il;function _y(t,r,e){var n;e=Qr.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 Gi({schema:a,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=Ay.call(this,o)}Fr.resolveRef=_y;function Ay(t){return Qr.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:il.call(this,t)}function kf(t){for(let r of this._compilations)if(Sy(r,t))return r}Fr.getCompilingSchema=kf;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]||vs.call(this,t,r)}function vs(t,r){let e=Ey.parse(r),n=Qr._getFullPath(e),i=Qr.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===i)return nl.call(this,e,t);let o=Qr.normalizeId(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=vs.call(this,t,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:nl.call(this,e,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||il.call(this,a),o===Qr.normalizeId(r)){let{schema:u}=a;return u.$id&&(i=Qr.resolveUrl(i,u.$id)),new Gi({schema:u,root:t,baseId:i})}return nl.call(this,e,a)}}Fr.resolveSchema=vs;var Ty=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function nl(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[wf.unescapeFragment(a)],e===void 0))return;!Ty.has(a)&&typeof e=="object"&&e.$id&&(r=Qr.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!wf.schemaHasRulesButRef(e,this.RULES)){let a=Qr.resolveUrl(r,e.$ref);o=vs.call(this,n,a)}if(o=o||new Gi({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var vf=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 Af=ce(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.CodeGen=Lt.Name=Lt.nil=Lt.stringify=Lt.str=Lt._=Lt.KeywordCxt=void 0;var Fy=vo();Lt.KeywordCxt=Fy.default;var Ki=Pe();Object.defineProperty(Lt,"_",{enumerable:!0,get:function(){return Ki._}});Object.defineProperty(Lt,"str",{enumerable:!0,get:function(){return Ki.str}});Object.defineProperty(Lt,"stringify",{enumerable:!0,get:function(){return Ki.stringify}});Object.defineProperty(Lt,"nil",{enumerable:!0,get:function(){return Ki.nil}});Object.defineProperty(Lt,"Name",{enumerable:!0,get:function(){return Ki.Name}});Object.defineProperty(Lt,"CodeGen",{enumerable:!0,get:function(){return Ki.CodeGen}});var ll=ks(),Oy=va(),So=ol(),qy=Pe(),xs=Co(),Cs=Vi(),al=lt(),xf=vf(),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,u,c,m,p,b,k;let w=(r=t.strict)!==null&&r!==void 0?r:!0,x=w?"log":!1,T=(e=t.code)===null||e===void 0?void 0:e.optimize,N=T===!0||T===void 0?1:T||0;return{strict:w,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:x,strictTuples:(i=t.strictTuples)!==null&&i!==void 0?i:x,code:t.code?{...t.code,optimize:N}:{optimize:N},loopRequired:(o=t.loopRequired)!==null&&o!==void 0?o:1/0,loopEnum:(a=t.loopEnum)!==null&&a!==void 0?a:1/0,meta:(u=t.meta)!==null&&u!==void 0?u:!0,messages:(c=t.messages)!==null&&c!==void 0?c:!0,inlineRefs:(m=t.inlineRefs)!==null&&m!==void 0?m:!0,addUsedSchema:(p=t.addUsedSchema)!==null&&p!==void 0?p:!0,validateSchema:(b=t.validateSchema)!==null&&b!==void 0?b:!0,validateFormats:(k=t.validateFormats)!==null&&k!==void 0?k:!0}}var Po=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(),Cf.call(this,Ry,r,"NOT SUPPORTED"),Cf.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(xf,xf.$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(p,b){await o.call(this,p.$schema);let k=this._addSchema(p,b);return k.validate||a.call(this,k)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(b){if(!(b instanceof ll.MissingRefError))throw b;return u.call(this,b),await c.call(this,b.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:b}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${b} cannot be resolved`)}async function c(p){let b=await m.call(this,p);this.refs[p]||await o.call(this,b.$schema),this.refs[p]||this.addSchema(b,p,e)}async function m(p){let b=this._loading[p];if(b)return b;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}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=xs.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=Ef.call(this,r))=="string";)r=e;if(e===void 0){let n=new So.SchemaEnv({schema:{}});if(e=So.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=Ef.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=xs.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 al.eachItem(n,o=>sl.call(this,o)),this;Zy.call(this,e);let i={...e,type:Cs.getJSONTypes(e.type),schemaType:Cs.getJSONTypes(e.schemaType)};return al.eachItem(n,i.type.length===0?o=>sl.call(this,o,i):o=>i.type.forEach(a=>sl.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 u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:m}=c.definition,p=a[u];m&&p&&(a[u]=_f(p))}}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=xs.getSchemaRefs.call(this,r);o=new So.SchemaEnv({schema:r,meta:e,localRefs:a}),this._cache.set(o.schema,o);let u=o.baseId;return i&&!u.startsWith("#")&&(u&&this._checkUnique(u),this.refs[u]=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):So.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{So.compileSchema.call(this,r)}finally{this.opts=e}}};Lt.default=Po;Po.ValidationError=ll.ValidationError;Po.MissingRefError=ll.MissingRefError;function Cf(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 Ef(t){return t=xs.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(al.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 sl(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:c})=>c===e);if(a||(a={type:e,rules:[]},o.rules.push(a)),o.keywords[t]=!0,!r)return;let u={keyword:t,definition:{...r,type:Cs.getJSONTypes(r.type),schemaType:Cs.getJSONTypes(r.schemaType)}};r.before?Wy.call(this,a,u,r.before):a.rules.push(u),o.all[t]=u,(n=r.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}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=_f(r)),t.validateSchema=this.compile(r,!0))}var Jy={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function _f(t){return{anyOf:[t,Jy]}}});var Sf=ce(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var Qy={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ul.default=Qy});var Ff=ce(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.callRef=fi.getValidate=void 0;var Xy=ks(),Pf=Zr(),hr=Pe(),Wi=Wr(),Tf=ol(),Es=lt(),Yy={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n;if(e==="#"||e==="#/")return p();let m=Tf.resolveRef.call(c,o.root,i,e);if(m===void 0)throw new Xy.MissingRefError(i,e);if(m instanceof Tf.SchemaEnv)return b(m);return k(m);function p(){if(o===o.root)return _s(t,a,o,o.$async);let w=r.scopeValue("root",{ref:o.root});return _s(t,hr._`${w}.validate`,o.root,o.root.$async)}function b(w){let x=If(t,w);_s(t,x,w,w.$async)}function k(w){let x=r.scopeValue("schema",u.code.source===!0?{ref:w,code:hr.stringify(w)}:{ref:w}),T=r.name("valid"),N=t.subschema({schema:w,dataTypes:[],schemaPath:hr.nil,topSchemaRef:x,errSchemaPath:e},T);t.mergeEvaluated(N),t.ok(T)}}};function If(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):hr._`${e.scopeValue("wrapper",{ref:r})}.validate`}fi.getValidate=If;function _s(t,r,e,n){let{gen:i,it:o}=t,{allErrors:a,schemaEnv:u,opts:c}=o,m=c.passContext?Wi.default.this:hr.nil;n?p():b();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let x=i.let("valid");i.try(()=>{i.code(hr._`await ${Pf.callValidateCode(t,r,m)}`),w(r),a||i.assign(x,!0)},T=>{i.if(hr._`!(${T} instanceof ${o.ValidationError})`,()=>i.throw(T)),k(T),a||i.assign(x,!1)}),t.ok(x)}function b(){t.result(Pf.callValidateCode(t,r,m),()=>w(r),()=>k(r))}function k(x){let T=hr._`${x}.errors`;i.assign(Wi.default.vErrors,hr._`${Wi.default.vErrors} === null ? ${T} : ${Wi.default.vErrors}.concat(${T})`),i.assign(Wi.default.errors,hr._`${Wi.default.vErrors}.length`)}function w(x){var T;if(!o.opts.unevaluated)return;let N=(T=e==null?void 0:e.validate)===null||T===void 0?void 0:T.evaluated;if(o.props!==!0)if(N&&!N.dynamicProps)N.props!==void 0&&(o.props=Es.mergeEvaluated.props(i,N.props,o.props));else{let D=i.var("props",hr._`${x}.evaluated.props`);o.props=Es.mergeEvaluated.props(i,D,o.props,hr.Name)}if(o.items!==!0)if(N&&!N.dynamicItems)N.items!==void 0&&(o.items=Es.mergeEvaluated.items(i,N.items,o.items));else{let D=i.var("items",hr._`${x}.evaluated.items`);o.items=Es.mergeEvaluated.items(i,D,o.items,hr.Name)}}}fi.callRef=_s;fi.default=Yy});var Of=ce(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var eb=Sf(),tb=Ff(),rb=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",eb.default,tb.default];cl.default=rb});var qf=ce(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var As=Pe(),jn=As.operators,Ss={maximum:{okStr:"<=",ok:jn.LTE,fail:jn.GT},minimum:{okStr:">=",ok:jn.GTE,fail:jn.LT},exclusiveMaximum:{okStr:"<",ok:jn.LT,fail:jn.GTE},exclusiveMinimum:{okStr:">",ok:jn.GT,fail:jn.LTE}},nb={message:({keyword:t,schemaCode:r})=>As.str`should be ${Ss[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>As._`{comparison: ${Ss[t].okStr}, limit: ${r}}`},ib={keyword:Object.keys(Ss),type:"number",schemaType:"number",$data:!0,error:nb,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(As._`${e} ${Ss[r].fail} ${n} || isNaN(${e})`)}};fl.default=ib});var Df=ce(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var To=Pe(),ob={message:({schemaCode:t})=>To.str`should be multiple of ${t}`,params:({schemaCode:t})=>To._`{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"),u=o?To._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:To._`${a} !== parseInt(${a})`;t.fail$data(To._`(${n} === 0 || (${a} = ${e}/${n}, ${u}))`)}};pl.default=sb});var Nf=ce(dl=>{"use strict";Object.defineProperty(dl,"__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}dl.default=ab});var Rf=ce(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var Bn=Pe(),lb=Nf(),ub={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return Bn.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>Bn._`{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"?Bn.operators.GT:Bn.operators.LT,a;if(i.opts.unicode===!1)a=Bn._`${e}.length`;else{let u=t.gen.scopeValue("func",{ref:lb.default,code:Bn._`require("ajv/dist/compile/ucs2length").default`});a=Bn._`${u}(${e})`}t.fail$data(Bn._`${a} ${o} ${n}`)}};ml.default=cb});var Lf=ce(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var fb=Zr(),Ps=Pe(),pb={message:({schemaCode:t})=>Ps.str`should match pattern "${t}"`,params:({schemaCode:t})=>Ps._`{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?Ps._`(new RegExp(${o}, "u"))`:fb.usePattern(r,i);t.fail$data(Ps._`!${a}.test(${e})`)}};hl.default=db});var jf=ce(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var Io=Pe(),mb={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Io.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Io._`{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"?Io.operators.GT:Io.operators.LT;t.fail$data(Io._`Object.keys(${e}).length ${i} ${n}`)}};gl.default=hb});var Bf=ce(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var Fo=Zr(),Oo=Pe(),gb=kr(),yb={message:({params:{missingProperty:t}})=>Oo.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>Oo._`{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:u}=a;if(!o&&e.length===0)return;let c=e.length>=u.loopRequired;if(a.allErrors?m():p(),u.strictRequired){let w=t.parentSchema.properties,{definedProperties:x}=t.it;for(let T of e)if((w==null?void 0:w[T])===void 0&&!x.has(T)){let N=a.schemaEnv.baseId+a.errSchemaPath,D=`required property "${T}" is not defined at "${N}" (strictRequired)`;gb.checkStrictMode(a,D,a.opts.strictRequired)}}function m(){if(c||o)t.block$data(Oo.nil,b);else for(let w of e)Fo.checkReportMissingProp(t,w)}function p(){let w=r.let("missing");if(c||o){let x=r.let("valid",!0);t.block$data(x,()=>k(w,x)),t.ok(x)}else r.if(Fo.checkMissingProp(t,e,w)),Fo.reportMissingProp(t,w),r.else()}function b(){r.forOf("prop",n,w=>{t.setParams({missingProperty:w}),r.if(Fo.noPropertyInData(r,i,w,u.ownProperties),()=>t.error())})}function k(w,x){t.setParams({missingProperty:w}),r.forOf(w,n,()=>{r.assign(x,Fo.propertyInData(r,i,w,u.ownProperties)),r.if(Oo.not(x),()=>{t.error(),r.break()})},Oo.nil)}}};yl.default=bb});var zf=ce(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var qo=Pe(),$b={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return qo.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>qo._`{limit: ${t}}`},wb={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:$b,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxItems"?qo.operators.GT:qo.operators.LT;t.fail$data(qo._`${e}.length ${i} ${n}`)}};bl.default=wb});var Mf=ce(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var $l=Vi(),Pt=Pe(),kb=xo(),vb={message:({params:{i:t,j:r}})=>Pt.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Pt._`{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:u}=t;if(!n&&!i)return;let c=r.let("valid"),m=o.items?$l.getSchemaTypes(o.items):[];t.block$data(c,p,Pt._`${a} === false`),t.ok(c);function p(){let x=r.let("i",Pt._`${e}.length`),T=r.let("j");t.setParams({i:x,j:T}),r.assign(c,!0),r.if(Pt._`${x} > 1`,()=>(b()?k:w)(x,T))}function b(){return m.length>0&&!m.some(x=>x==="object"||x==="array")}function k(x,T){let N=r.name("item"),D=$l.checkDataTypes(m,N,u.opts.strict,$l.DataType.Wrong),X=r.const("indices",Pt._`{}`);r.for(Pt._`;${x}--;`,()=>{r.let(N,Pt._`${e}[${x}]`),r.if(D,Pt._`continue`),m.length>1&&r.if(Pt._`typeof ${N} == "string"`,Pt._`${N} += "_"`),r.if(Pt._`typeof ${X}[${N}] == "number"`,()=>{r.assign(T,Pt._`${X}[${N}]`),t.error(),r.assign(c,!1).break()}).code(Pt._`${X}[${N}] = ${x}`)})}function w(x,T){let N=t.gen.scopeValue("func",{ref:kb,code:Pt._`require("ajv/dist/compile/equal")`}),D=r.name("outer");r.label(D).for(Pt._`;${x}--;`,()=>r.for(Pt._`${T} = ${x}; ${T}--;`,()=>r.if(Pt._`${N}(${e}[${x}], ${e}[${T}])`,()=>{t.error(),r.assign(c,!1).break(D)})))}}};wl.default=xb});var Vf=ce(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var kl=Pe(),Cb=xo(),Eb={message:"should be equal to constant",params:({schemaCode:t})=>kl._`{allowedValue: ${t}}`},_b={keyword:"const",$data:!0,error:Eb,code(t){let r=t.gen.scopeValue("func",{ref:Cb,code:kl._`require("ajv/dist/compile/equal")`});t.fail$data(kl._`!${r}(${t.data}, ${t.schemaCode})`)}};vl.default=_b});var Uf=ce(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Zi=Pe(),Ab=xo(),Sb={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>Zi._`{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 u=i.length>=a.opts.loopEnum,c=t.gen.scopeValue("func",{ref:Ab,code:Zi._`require("ajv/dist/compile/equal")`}),m;if(u||n)m=r.let("valid"),t.block$data(m,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let k=r.const("vSchema",o);m=Zi.or(...i.map((w,x)=>b(k,x)))}t.pass(m);function p(){r.assign(m,!1),r.forOf("v",o,k=>r.if(Zi._`${c}(${e}, ${k})`,()=>r.assign(m,!0).break()))}function b(k,w){let x=i[w];return x&&typeof x=="object"?Zi._`${c}(${e}, ${k}[${w}])`:Zi._`${e} === ${x}`}}};xl.default=Pb});var Hf=ce(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var Tb=qf(),Ib=Df(),Fb=Rf(),Ob=Lf(),qb=jf(),Db=Bf(),Nb=zf(),Rb=Mf(),Lb=Vf(),jb=Uf(),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];Cl.default=Bb});var Gf=ce(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var pi=Pe(),zb=li(),Mb=lt(),Vb=kr(),Ub={message:({params:{len:t}})=>pi.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>pi._`{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 u=r.const("len",pi._`${i}.length`);if(e===!1)t.setParams({len:a.length}),t.pass(pi._`${u} <= ${a.length}`);else if(typeof e=="object"&&!Mb.alwaysValidSchema(o,e)){let m=r.var("valid",pi._`${u} <= ${a.length}`);r.if(pi.not(m),()=>c(m)),t.ok(m)}function c(m){r.forRange("i",a.length,u,p=>{t.subschema({keyword:"additionalItems",dataProp:p,dataPropType:zb.Type.Num},m),o.allErrors||r.if(pi.not(m),()=>r.break())})}}};El.default=Hb});var Wf=ce(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var Kf=Pe(),_l=lt(),Gb=kr(),Kb=Zr(),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=_l.mergeEvaluated.items(r,e.length,n.items)),i(e);else{if(n.items=!0,_l.alwaysValidSchema(n,e))return;t.ok(Kb.validateArray(t))}function i(o){let{parentSchema:a,data:u}=t;if(n.opts.strictTuples&&!Zb(o.length,a)){let p=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;Gb.checkStrictMode(n,p,n.opts.strictTuples)}let c=r.name("valid"),m=r.const("len",Kf._`${u}.length`);o.forEach((p,b)=>{_l.alwaysValidSchema(n,p)||(r.if(Kf._`${m} > ${b}`,()=>t.subschema({keyword:"items",schemaProp:b,dataProp:b},c)),t.ok(c))})}}};function Zb(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}Al.default=Wb});var Jf=ce(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Xr=Pe(),Jb=li(),Qb=lt(),Zf=kr(),Xb={message:({params:{min:t,max:r}})=>r===void 0?Xr.str`should contain at least ${t} valid item(s)`:Xr.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?Xr._`{minContains: ${t}}`:Xr._`{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,u,{minContains:c,maxContains:m}=n;o.opts.next?(a=c===void 0?1:c,u=m):a=1;let p=r.const("len",Xr._`${i}.length`);if(t.setParams({min:a,max:u}),u===void 0&&a===0){Zf.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){Zf.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(Qb.alwaysValidSchema(o,e)){let x=Xr._`${p} >= ${a}`;u!==void 0&&(x=Xr._`${x} && ${p} <= ${u}`),t.pass(x);return}o.items=!0;let b=r.name("valid");if(u===void 0&&a===1)k(b,()=>r.if(b,()=>r.break()));else{r.let(b,!1);let x=r.name("_valid"),T=r.let("count",0);k(x,()=>r.if(x,()=>w(T)))}t.result(b,()=>t.reset());function k(x,T){r.forRange("i",0,p,N=>{t.subschema({keyword:"contains",dataProp:N,dataPropType:Jb.Type.Num,compositeRule:!0},x),T()})}function w(x){r.code(Xr._`${x}++`),u===void 0?r.if(Xr._`${x} >= ${a}`,()=>r.assign(b,!0).break()):(r.if(Xr._`${x} > ${u}`,()=>r.assign(b,!1).break()),a===1?r.assign(b,!0):r.if(Xr._`${x} >= ${a}`,()=>r.assign(b,!0)))}}};Sl.default=Yb});var Yf=ce(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.validateSchemaDeps=fn.validatePropertyDeps=fn.error=void 0;var Pl=Pe(),e$=lt(),Do=Zr();fn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return Pl.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>Pl._`{property: ${t},
|
|
6
|
+
missingProperty: ${n},
|
|
7
|
+
depsCount: ${r},
|
|
8
|
+
deps: ${e}}`};var t$={keyword:"dependencies",type:"object",schemaType:"object",error:fn.error,code(t){let[r,e]=r$(t);Qf(t,r),Xf(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 Qf(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 u=r[a];if(u.length===0)continue;let c=Do.propertyInData(e,n,a,i.opts.ownProperties);t.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?e.if(c,()=>{for(let m of u)Do.checkReportMissingProp(t,m)}):(e.if(Pl._`${c} && (${Do.checkMissingProp(t,u,o)})`),Do.reportMissingProp(t,o),e.else())}}fn.validatePropertyDeps=Qf;function Xf(t,r=t.schema){let{gen:e,data:n,keyword:i,it:o}=t,a=e.name("valid");for(let u in r)e$.alwaysValidSchema(o,r[u])||(e.if(Do.propertyInData(e,n,u,o.opts.ownProperties),()=>{let c=t.subschema({keyword:i,schemaProp:u},a);t.mergeValidEvaluated(c,a)},()=>e.var(a,!0)),t.ok(a))}fn.validateSchemaDeps=Xf;fn.default=t$});var ep=ce(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Tl=Pe(),n$=lt(),i$={message:({params:t})=>Tl.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>Tl._`{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(Tl.not(o),()=>{t.error(!0),i.allErrors||r.break()})}),t.ok(o)}};Il.default=o$});var ql=ce(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Ts=Zr(),Yr=Pe(),s$=Wr(),a$=li(),Fl=lt(),l$={message:"should NOT have additional properties",params:({params:t})=>Yr._`{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:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&Fl.alwaysValidSchema(a,e))return;let m=Ts.allSchemaProperties(n.properties),p=Ts.allSchemaProperties(n.patternProperties);b(),t.ok(Yr._`${o} === ${s$.default.errors}`);function b(){r.forIn("key",i,N=>{!m.length&&!p.length?x(N):r.if(k(N),()=>x(N))})}function k(N){let D;if(m.length>8){let X=Fl.schemaRefOrVal(a,n.properties,"properties");D=Ts.isOwnProperty(r,X,N)}else m.length?D=Yr.or(...m.map(X=>Yr._`${N} === ${X}`)):D=Yr.nil;return p.length&&(D=Yr.or(D,...p.map(X=>Yr._`${Ts.usePattern(r,X)}.test(${N})`))),Yr.not(D)}function w(N){r.code(Yr._`delete ${i}[${N}]`)}function x(N){if(c.removeAdditional==="all"||c.removeAdditional&&e===!1){w(N);return}if(e===!1){t.setParams({additionalProperty:N}),t.error(),u||r.break();return}if(typeof e=="object"&&!Fl.alwaysValidSchema(a,e)){let D=r.name("valid");c.removeAdditional==="failing"?(T(N,D,!1),r.if(Yr.not(D),()=>{t.reset(),w(N)})):(T(N,D),u||r.if(Yr.not(D),()=>r.break()))}}function T(N,D,X){let ee={keyword:"additionalProperties",dataProp:N,dataPropType:a$.Type.Str};X===!1&&Object.assign(ee,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(ee,D)}}};Ol.default=u$});var np=ce(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var c$=vo(),tp=Zr(),Dl=lt(),rp=ql(),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&&rp.default.code(new c$.default(o,rp.default,"additionalProperties"));let a=tp.allSchemaProperties(e);for(let b of a)o.definedProperties.add(b);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Dl.mergeEvaluated.props(r,Dl.toHash(a),o.props));let u=a.filter(b=>!Dl.alwaysValidSchema(o,e[b]));if(u.length===0)return;let c=r.name("valid");for(let b of u)m(b)?p(b):(r.if(tp.propertyInData(r,i,b,o.opts.ownProperties)),p(b),o.allErrors||r.else().var(c,!0),r.endIf()),t.it.definedProperties.add(b),t.ok(c);function m(b){return o.opts.useDefaults&&!o.compositeRule&&e[b].default!==void 0}function p(b){t.subschema({keyword:"properties",schemaProp:b,dataProp:b},c)}}};Nl.default=f$});var op=ce(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var ip=Zr(),Is=Pe(),p$=li(),d$=kr(),m$=lt(),h$={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:i,it:o}=t,{opts:a}=o,u=ip.schemaProperties(o,e);if(u.length===0)return;let c=a.strict&&!a.allowMatchingProperties&&i.properties,m=r.name("valid");o.props!==!0&&!(o.props instanceof Is.Name)&&(o.props=m$.evaluatedPropsToName(r,o.props));let{props:p}=o;b();function b(){for(let x of u)c&&k(x),o.allErrors?w(x):(r.var(m,!0),w(x),r.if(m))}function k(x){for(let T in c)new RegExp(x).test(T)&&d$.checkStrictMode(o,`property ${T} matches pattern ${x} (use allowMatchingProperties)`)}function w(x){r.forIn("key",n,T=>{r.if(Is._`${ip.usePattern(r,x)}.test(${T})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:x,dataProp:T,dataPropType:p$.Type.Str},m),o.opts.unevaluated&&p!==!0?r.assign(Is._`${p}[${T}]`,!0):o.allErrors||r.if(Is.not(m),()=>r.break())})})}}};Rl.default=h$});var sp=ce(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var g$=lt(),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"}};Ll.default=y$});var ap=ce(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var b$=Zr(),$$={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:b$.validateUnion,error:{message:"should match some schema in anyOf"}};jl.default=$$});var lp=ce(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var Fs=Pe(),w$=lt(),k$={message:"should match exactly one schema in oneOf",params:({params:t})=>Fs._`{passingSchemas: ${t.passing}}`},v$={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:k$,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),u=r.name("_valid");t.setParams({passing:a}),r.block(c),t.result(o,()=>t.reset(),()=>t.error(!0));function c(){i.forEach((m,p)=>{let b;w$.alwaysValidSchema(n,m)?r.var(u,!0):b=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&r.if(Fs._`${u} && ${o}`).assign(o,!1).assign(a,Fs._`[${a}, ${p}]`).else(),r.if(u,()=>{r.assign(o,!0),r.assign(a,p),b&&t.mergeEvaluated(b,Fs.Name)})})}}};Bl.default=v$});var up=ce(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var x$=lt(),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 u=t.subschema({keyword:"allOf",schemaProp:a},i);t.ok(i),t.mergeEvaluated(u)})}};zl.default=C$});var fp=ce(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var Os=Pe(),E$=lt(),_$=kr(),A$={message:({params:t})=>Os.str`should match "${t.ifClause}" schema`,params:({params:t})=>Os._`{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=cp(n,"then"),o=cp(n,"else");if(!i&&!o)return;let a=r.let("valid",!0),u=r.name("_valid");if(c(),t.reset(),i&&o){let p=r.let("ifClause");t.setParams({ifClause:p}),r.if(u,m("then",p),m("else",p))}else i?r.if(u,m("then")):r.if(Os.not(u),m("else"));t.pass(a,()=>t.error(!0));function c(){let p=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);t.mergeEvaluated(p)}function m(p,b){return()=>{let k=t.subschema({keyword:p},u);r.assign(a,u),t.mergeValidEvaluated(k,a),b?r.assign(b,Os._`${p}`):t.setParams({ifClause:p})}}}};function cp(t,r){let e=t.schema[r];return e!==void 0&&!E$.alwaysValidSchema(t,e)}Ml.default=S$});var pp=ce(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var P$=kr(),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`)}};Vl.default=T$});var dp=ce(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var I$=Gf(),F$=Wf(),O$=Jf(),q$=Yf(),D$=ep(),N$=ql(),R$=np(),L$=op(),j$=sp(),B$=ap(),z$=lp(),M$=up(),V$=fp(),U$=pp(),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];Ul.default=H$});var mp=ce(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var wt=Pe(),G$={message:({schemaCode:t})=>wt.str`should match format "${t}"`,params:({schemaCode:t})=>wt._`{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:u}=t,{opts:c,errSchemaPath:m,schemaEnv:p,self:b}=u;if(!c.validateFormats)return;i?k():w();function k(){let x=e.scopeValue("formats",{ref:b.formats,code:c.code.formats}),T=e.const("fDef",wt._`${x}[${a}]`),N=e.let("fType"),D=e.let("format");e.if(wt._`typeof ${T} == "object" && !(${T} instanceof RegExp)`,()=>e.assign(N,wt._`${T}.type || "string"`).assign(D,wt._`${T}.validate`),()=>e.assign(N,wt._`"string"`).assign(D,T)),t.fail$data(wt.or(X(),ee()));function X(){return c.strict===!1?wt.nil:wt._`${a} && !${D}`}function ee(){let de=p.$async?wt._`(${T}.async ? await ${D}(${n}) : ${D}(${n}))`:wt._`${D}(${n})`,fe=wt._`(typeof ${D} == "function" ? ${de} : ${D}.test(${n}))`;return wt._`${D} && ${D} !== true && ${N} === ${r} && !${fe}`}}function w(){let x=b.formats[o];if(!x){X();return}if(x===!0)return;let[T,N,D]=ee(x);T===r&&t.pass(de());function X(){if(c.strict===!1){b.logger.warn(fe());return}throw new Error(fe());function fe(){return`unknown format "${o}" ignored in schema at path "${m}"`}}function ee(fe){let Z=e.scopeValue("formats",{key:o,ref:fe,code:c.code.formats?wt._`${c.code.formats}${wt.getProperty(o)}`:void 0});return typeof fe=="object"&&!(fe instanceof RegExp)?[fe.type||"string",fe.validate,wt._`${Z}.validate`]:["string",fe,Z]}function de(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!p.$async)throw new Error("async format in sync schema");return wt._`await ${D}(${n})`}return typeof N=="function"?wt._`${D}(${n})`:wt._`${D}.test(${n})`}}}};Hl.default=K$});var hp=ce(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var W$=mp(),Z$=[W$.default];Gl.default=Z$});var gp=ce(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.contentVocabulary=Ji.metadataVocabulary=void 0;Ji.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ji.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var bp=ce(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var J$=Of(),Q$=Hf(),X$=dp(),Y$=hp(),yp=gp(),ew=[J$.default,Q$.default,X$.default,Y$.default,yp.metadataVocabulary,yp.contentVocabulary];Kl.default=ew});var $p=ce((v0,tw)=>{tw.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 kp=ce(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.CodeGen=jt.Name=jt.nil=jt.stringify=jt.str=jt._=jt.KeywordCxt=void 0;var rw=vo();jt.KeywordCxt=rw.default;var Qi=Pe();Object.defineProperty(jt,"_",{enumerable:!0,get:function(){return Qi._}});Object.defineProperty(jt,"str",{enumerable:!0,get:function(){return Qi.str}});Object.defineProperty(jt,"stringify",{enumerable:!0,get:function(){return Qi.stringify}});Object.defineProperty(jt,"nil",{enumerable:!0,get:function(){return Qi.nil}});Object.defineProperty(jt,"Name",{enumerable:!0,get:function(){return Qi.Name}});Object.defineProperty(jt,"CodeGen",{enumerable:!0,get:function(){return Qi.CodeGen}});var nw=Af(),iw=bp(),wp=$p(),ow=["/properties"],qs="http://json-schema.org/draft-07/schema",Wl=class extends nw.default{_addVocabularies(){super._addVocabularies(),iw.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(wp,ow):wp;this.addMetaSchema(r,qs,!1),this.refs["http://json-schema.org/schema"]=qs}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(qs)?qs:void 0)}};jt.default=Wl});var xp=ce((C0,vp)=>{var sw=Object.prototype.hasOwnProperty,aw=Object.prototype.toString;vp.exports=function(r,e,n){if(aw.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)sw.call(r,a)&&e.call(n,r[a],a,r)}});var Ep=ce((E0,Cp)=>{"use strict";var lw=xp();Cp.exports=Xe;function Xe(t,r,e){if(arguments.length===3)return Xe.set(t,r,e);if(arguments.length===2)return Xe.get(t,r);var n=Xe.bind(Xe,t);for(var i in Xe)Xe.hasOwnProperty(i)&&(n[i]=Xe[i].bind(n,t));return n}Xe.get=function(r,e){for(var n=Array.isArray(e)?e:Xe.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};Xe.set=function(r,e,n){var i=Array.isArray(e)?e:Xe.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 u=i[a];u==="__proto__"||u==="constructor"||u==="prototype"||(u==="-"&&Array.isArray(r)&&(u=r.length),o=i[a+1],u in r||(o.match(/^(\d+|-)$/)?r[u]=[]:r[u]={}),r=r[u])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=n,this};Xe.remove=function(t,r){var e=Array.isArray(r)?r:Xe.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=Xe.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]};Xe.dict=function(r,e){var n={};return Xe.walk(r,function(i,o){n[o]=i},e),n};Xe.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){lw(a,function(u,c){i.push(String(c)),n(u)?o(u):e(u,Xe.compile(i)),i.pop()})}(r)};Xe.has=function(r,e){try{Xe.get(r,e)}catch{return!1}return!0};Xe.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};Xe.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};Xe.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(Xe.unescape)};Xe.compile=function(r){return r.length===0?"":"/"+r.map(Xe.escape).join("/")}});var _p=ce((_0,uw)=>{uw.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var Ap=ce((A0,cw)=>{cw.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/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/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"]},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 Sp=ce((S0,fw)=>{fw.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/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/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"]},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 Pp=ce(Ds=>{Ds.Test=_p();Ds.AstTree=Ap();Ds.PodliteDocument=Sp()});var Hp=ce((vx,Up)=>{"use strict";function kw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function gi(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,gi)}kw(gi,Error);gi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",b;for(b=0;b<m.parts.length;b++)p+=m.parts[b]instanceof Array?o(m.parts[b][0])+"-"+o(m.parts[b][1]):o(m.parts[b]);return"["+(m.inverted?"^":"")+p+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function n(m){return m.charCodeAt(0).toString(16).toUpperCase()}function i(m){return m.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(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function o(m){return m.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(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function a(m){return e[m.type](m)}function u(m){var p=new Array(m.length),b,k;for(b=0;b<m.length;b++)p[b]=a(m[b]);if(p.sort(),p.length>0){for(b=1,k=1;b<p.length;b++)p[b-1]!==p[b]&&(p[k]=p[b],k++);p.length=k}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function c(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+c(r)+" found."};function vw(t,r){r=r!==void 0?r:{};var e={},n={Document:ac},i=ac,o=function(l){return l},a=function(){return!!r.podMode},u=function(l){return l},c=Zm(),m=function(){return{text:Sr(),type:"ambient",location:nr()}},p=/^[ \xA0\u2001\t\f\u2008]/,b=yt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),k=/^[ \t\f]/,w=yt([" "," ","\f"],!1,!1),x=/^[\n\r]/,T=yt([`
|
|
9
|
+
`,"\r"],!1,!1),N=function(l){return l},D=/^[^\n\r]/,X=yt([`
|
|
10
|
+
`,"\r"],!0,!1),ee=`
|
|
11
|
+
`,de=tt(`
|
|
12
|
+
`,!1),fe="\r",Z=tt("\r",!1),me=function(){return{type:"blankline"}},we="=begin ",ke=tt("=begin ",!1),Fe="=end ",xe=tt("=end ",!1),Ce="=for ",ue=tt("=for ",!1),$e="=config",He=tt("=config",!1),U="=alias",st=tt("=alias",!1),Re=function(l){return lh(l)},et=function(l){return l},Ue="=",O=tt("=",!1),q=Xo("text"),Bt=function(){return Sr()},kt=function(){return{type:"para",value:Sr(),error:!0,location:nr()}},nt=function(l,f){return Ri([l,f])},ut=function(l){return[l]},ct=",",be=tt(",",!1),br=function(l,f){return Ri([l,f])},Ct=/^[a-zA-Z0-9]/,It=yt([["a","z"],["A","Z"],["0","9"]],!1,!1),Yt=/^[a-zA-Z0-9_\-]/,lr=yt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),zt="=>",Hn=tt("=>",!1),Tn=function(l,f){return{[l]:f}},ft=function(l,f){return{...l,...f}},pt=function(l){return l},Ft=":",dt=tt(":",!1),vt="allow",qr=tt("allow",!1),Dr="<",Nr=tt("<",!1),Rr=">",Lr=tt(">",!1),er=function(l,f){return{value:f,type:"array"}},K=function(l,f){return{name:"allow",...f}},re=function(l){return l},ge=function(l){return l},Ae=function(l){return[l]},xt=function(){return[]},xr=/^[!]/,ze=yt(["!"],!1,!1),it="{",mt=tt("{",!1),jr="}",Qe=tt("}",!1),tn=function(l,f,g){return{value:g}},Et="[",In=tt("[",!1),no=function(l,f,g){return g},Cr="]",Fn=tt("]",!1),_i=function(l,f){return[Sr()]},io=function(l,f,g){return{value:g,type:"array"}},On=function(l,f,g){return{value:g,type:"array"}},Ai=function(l,f,g){return{value:g,type:"string"}},Gn="(",hn=tt("(",!1),oo=function(l,f,g){return g.length>1?{type:"array",value:g}:{type:"value",value:g[0]}},gn=")",F=tt(")",!1),P=function(l,f){return{value:Sr()}},j=function(l,f,g){return{type:"value",...g}},H=function(l,f){return{value:!l,type:"boolean"}},G=function(l,f,g){return{name:f,...g}},le=function(l,f){return f},ve=function(l,f){return Ri([...l,...f])},Se=/^[^'"]/,qe=yt(["'",'"'],!0,!1),d=function(l){return l},ie=/^[0-9]/,Le=yt([["0","9"]],!1,!1),je=/^[\-+]/,Ge=yt(["-","+"],!1,!1),z="True",Ke=tt("True",!1),Be=function(){return!0},Br="False",Mt=tt("False",!1),tr=function(){return!1},he=".",at=tt(".",!1),Vt=/^[eE]/,ur=yt(["e","E"],!1,!1),Er=/^["]/,rr=yt(['"'],!1,!1),cr=/^[^"]/,ne=yt(['"'],!0,!1),yn=/^[']/,_r=yt(["'"],!1,!1),Ar=/^[^']/,Ot=yt(["'"],!0,!1),rn=function(l){return parseFloat(l)},Kn=function(l){return parseInt(l,10)},$r=function(l,f,g){return f.match(/code|comment|output|input|data/)||ns(f)},Wn=function(l,f,g,y,v){return l.length===y.length&&f===v},Zn=function(l,f,g,y,v){return uh(l,`${y}${v}`)},qn=function(l,f,g,y,v,$){return f===$},bn=function(l,f,g,y,v,$){return{type:"block",content:y===""?[]:[{type:"verbatim",value:y.join("")}],name:f,margin:l}},zr=function(l,f,g,y,v,$){return!0},Si=function(l,f,g,y,v,$){return{...$,text:Sr(),config:g,location:nr()}},nn=/^[+-=_|]/,Jn=yt([["+","="],"_","|"],!1,!1),Mr=function(){return{type:"separator",text:Sr()}},Qn=function(){return r.isDelimited},qt=function(){return{type:"separator",text:Sr()}},Dt=function(l){return{name:"row",type:"text",value:l}},Xn=function(){return r.separators=[],!0},$n=function(l,f){return r.separators.push(f.text),f},_t=function(l,f,g,y){return r.separators.push(y.text),y},wn=function(l,f,g,y){return[{name:"row",type:"text",value:g},y]},Vr=function(l,f,g){return[g]},kn=function(l,f,g){return r.separators.length>1?!r.separators.every(y=>y===r.separators[0]):!0},Pi=function(l,f,g){return[{name:"head",type:"text",value:l},f,...Ri(g)]},vn=function(l,f){return[{name:"row",type:"text",value:l},f]},so=function(l){return[...Ri(l)]},ao=function(l,f,g){return f==="table"},Go=function(l,f,g){return r.isDelimited=!0,!0},Ko=function(l,f,g,y){return y},lo=function(l,f,g,y,v,$){return{type:"block",content:y,name:f,margin:l}},uo=function(l,f,g,y,v,$){return{...$,text:Sr(),config:g,location:nr()}},co=function(l,f,g,y){return y},At=function(l,f,g,y,v){let $=f.match(/pod|nested|item|code|defn/)&&y.length-l.length>0?"code":"para";return{text:v,margin:y,type:$,content:[{type:$==="code"?"verbatim":"text",value:v}],location:nr()}},We=function(l,f,g,y,v,$){return{type:"block",content:y,name:f,margin:l}},Ti=function(l,f,g,y,v,$){return{...$,config:g,location:nr()}},nc=function(){return{text:Sr(),type:"para",margin:"",content:[{type:"text",value:Sr()}],location:nr()}},xn=function(){return{empty:1}},Ur=/^[s]/,Hr=yt(["s"],!1,!1),Ii=function(l){return{text:Sr(),type:"ambient1"}},h=function(l,f){return f.match(/code|comment|output|input|data/)||ns(f)},C=function(l,f,g){return{margin:l,type:"block",content:g===""?[]:[{type:"verbatim",value:g}],name:f,config:[],location:nr()}},_=function(l,f){return f==="table"},A=function(l,f){return r.isDelimited=!1,!0},S=function(l,f,g){return{margin:l,type:"block",content:g===""?[]:g,name:f,config:[],location:nr()}},M=function(l,f,g){return{margin:l,type:"block",content:g===""?[]:[{type:"para",text:g,margin:"",content:[{type:"text",value:g}],location:nr()}],name:f,location:nr()}},W="= ",se=tt("= ",!1),Ut=function(l,f,g,y){return{name:g,type:"alias",replacement:y,margin:l}},St=/^[A-Z]/,fr=yt([["A","Z"]],!1,!1),ic="<>",Rm=tt("<>",!1),Lm=function(l,f,g,y){return{name:g,type:"config",config:y,margin:l}},jm=function(l,f,g,y){return g.match(/code|comment|output|input|data/)||ns(g)},Bm=function(l,f,g,y,v){return{type:"block",content:v===""?[]:[{type:"verbatim",value:v}],name:g,margin:l,config:y,location:nr()}},zm=function(l,f,g,y){return g==="table"},Mm=function(l,f,g,y){return r.isDelimited=!1,!0},Vm=function(l,f,g,y,v){return{type:"block",content:v===""?[]:v,name:g,margin:l,config:y,location:nr()}},Um=function(l,f,g,y,v){return{type:"block",content:v===""?[]:[{type:"para",content:[{type:"text",value:v}],margin:l,text:v,location:nr()}],name:g,margin:l,config:y,location:nr()}},Hm=/^[a-zA-Z]/,Gm=yt([["a","z"],["A","Z"]],!1,!1),Km=Xo("whitespace"),Wo=/^[\r\n \t\f]/,Zo=yt(["\r",`
|
|
13
|
+
`," "," ","\f"],!1,!1),Wm=Xo("space characters"),s=0,Q=0,Jo=[{line:1,column:1}],on=0,la=[],B=0,Qo;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 Sr(){return t.substring(Q,s)}function nr(){return fo(Q,s)}function c1(l,f){throw f=f!==void 0?f:fo(Q,s),sc([Xo(l)],t.substring(Q,s),f)}function f1(l,f){throw f=f!==void 0?f:fo(Q,s),Qm(l,f)}function tt(l,f){return{type:"literal",text:l,ignoreCase:f}}function yt(l,f,g){return{type:"class",parts:l,inverted:f,ignoreCase:g}}function Zm(){return{type:"any"}}function Jm(){return{type:"end"}}function Xo(l){return{type:"other",description:l}}function oc(l){var f=Jo[l],g;if(f)return f;for(g=l-1;!Jo[g];)g--;for(f=Jo[g],f={line:f.line,column:f.column};g<l;)t.charCodeAt(g)===10?(f.line++,f.column=1):f.column++,g++;return Jo[l]=f,f}function fo(l,f){var g=oc(l),y=oc(f);return{start:{offset:l,line:g.line,column:g.column},end:{offset:f,line:y.line,column:y.column}}}function Y(l){s<on||(s>on&&(on=s,la=[]),la.push(l))}function Qm(l,f){return new gi(l,null,null,f)}function sc(l,f,g){return new gi(gi.buildMessage(l,f),l,f,g)}function ac(){var l,f,g;for(l=s,f=[],g=lc();g!==e;)f.push(g),g=lc();return f!==e&&(Q=l,f=o(f)),l=f,l}function lc(){var l,f,g,y,v,$,R,V;if(l=ua(),l===e&&(l=fa(),l===e&&(l=pa(),l===e&&(l=ba(),l===e&&(l=$a(),l===e&&(l=wa(),l===e&&(l=ga(),l===e&&(l=ya(),l===e&&(l=da(),l===e&&(l=ma(),l===e&&(l=ha(),l===e&&(l=s,Q=s,f=a(),f?f=void 0:f=e,f!==e?(g=oh(),g===e&&(g=sn(),g===e&&(g=eh())),g!==e?(Q=l,f=u(g),l=f):(s=l,l=e)):(s=l,l=e),l===e)))))))))))){if(l=s,f=s,g=[],y=s,v=s,B++,$=s,R=Cn(),R!==e?(V=Ht(),V!==e?(R=[R,V],$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=ti()),B--,$===e?v=void 0:(s=v,v=e),v!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&Y(c)),$!==e?(v=[v,$],y=v):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,v=s,B++,$=s,R=Cn(),R!==e?(V=Ht(),V!==e?(R=[R,V],$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=ti()),B--,$===e?v=void 0:(s=v,v=e),v!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&Y(c)),$!==e?(v=[v,$],y=v):(s=y,y=e)):(s=y,y=e);else g=e;g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=m()),l=f}return l}function bt(){var l;return p.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&Y(b)),l}function pe(){var l,f;for(l=[],k.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(w));f!==e;)l.push(f),k.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(w));return l}function Yn(){var l,f,g,y;for(l=s,f=s,g=[],y=bt();y!==e;)g.push(y),y=bt();return g!==e?(x.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(T)),y!==e?(g=[g,y],f=g):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f,l}function p1(){var l,f,g,y;if(l=s,f=s,g=[],y=po(),y!==e)for(;y!==e;)g.push(y),y=po();else g=e;return g!==e?f=t.substring(f,s):f=g,f!==e?(g=Fi(),g!==e?(Q=l,f=N(f),l=f):(s=l,l=e)):(s=l,l=e),l}function po(){var l;return D.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&Y(X)),l}function ei(){var l,f,g;return t.charCodeAt(s)===10?(l=ee,s++):(l=e,B===0&&Y(de)),l===e&&(l=s,t.charCodeAt(s)===13?(f=fe,s++):(f=e,B===0&&Y(Z)),f!==e?(t.charCodeAt(s)===10?(g=ee,s++):(g=e,B===0&&Y(de)),g===e&&(g=null),g!==e?(f=[f,g],l=f):(s=l,l=e)):(s=l,l=e)),l}function Fi(){var l,f;return l=ei(),l===e&&(l=s,B++,t.length>s?(f=t.charAt(s),s++):(f=e,B===0&&Y(c)),B--,f===e?l=void 0:(s=l,l=e)),l}function wr(){var l,f,g,y;for(l=s,f=s,g=[],y=bt();y!==e;)g.push(y),y=bt();return g!==e?(x.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(T)),y!==e?(g=[g,y],f=g):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f,l}function sn(){var l,f,g,y,v;for(l=s,f=s,g=s,y=[],v=bt();v!==e;)y.push(v),v=bt();return y!==e?(x.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(T)),v!==e?(y=[y,v],g=y):(s=g,g=e)):(s=g,g=e),g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=me()),l=f,l}function Yo(){var l;return t.substr(s,7)===we?(l=we,s+=7):(l=e,B===0&&Y(ke)),l}function Oi(){var l;return t.substr(s,5)===Fe?(l=Fe,s+=5):(l=e,B===0&&Y(xe)),l}function es(){var l;return t.substr(s,5)===Ce?(l=Ce,s+=5):(l=e,B===0&&Y(ue)),l}function Xm(){var l;return t.substr(s,7)===$e?(l=$e,s+=7):(l=e,B===0&&Y(He)),l}function Ym(){var l;return t.substr(s,6)===U?(l=U,s+=6):(l=e,B===0&&Y(st)),l}function Ht(){var l,f,g;return l=s,f=ka(),f!==e?(Q=s,g=Re(f),g?g=void 0:g=e,g!==e?(Q=l,f=et(f),l=f):(s=l,l=e)):(s=l,l=e),l}function ti(){var l,f,g;return l=s,t.charCodeAt(s)===61?(f=Ue,s++):(f=e,B===0&&Y(O)),f!==e?(g=Ht(),g!==e?(Q=l,f=et(g),l=f):(s=l,l=e)):(s=l,l=e),l}function Cn(){var l;return l=Yo(),l===e&&(l=Oi(),l===e&&(l=es(),l===e&&(l=Xm(),l===e&&(l=Ym())))),l}function an(){var l,f,g;if(B++,l=s,f=[],g=po(),g!==e)for(;g!==e;)f.push(g),g=po();else f=e;return f!==e?l=t.substring(l,s):l=f,B--,l===e&&(f=e,B===0&&Y(q)),l}function Nt(){var l,f,g,y,v,$,R;if(l=s,f=s,B++,g=s,y=pe(),y!==e?(v=s,$=Cn(),$!==e?(R=Ht(),R!==e?($=[$,R],v=$):(s=v,v=e)):(s=v,v=e),v===e&&(v=ti()),v!==e?(y=[y,v],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=sn()),B--,g===e?f=void 0:(s=f,f=e),f!==e){if(g=s,y=[],v=an(),v!==e)for(;v!==e;)y.push(v),v=an();else y=e;y!==e?g=t.substring(g,s):g=y,g!==e?(y=Fi(),y!==e?(Q=l,f=Bt(),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l}function eh(){var l,f,g,y,v,$;if(l=s,f=s,g=[],y=s,v=s,B++,$=Fi(),B--,$===e?v=void 0:(s=v,v=e),v!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&Y(c)),$!==e?(v=[v,$],y=v):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,v=s,B++,$=Fi(),B--,$===e?v=void 0:(s=v,v=e),v!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&Y(c)),$!==e?(v=[v,$],y=v):(s=y,y=e)):(s=y,y=e);else g=e;return g!==e?f=t.substring(f,s):f=g,f!==e?(g=Fi(),g!==e?(Q=l,f=kt(),l=f):(s=l,l=e)):(s=l,l=e),l}function uc(){var l,f,g,y;if(l=s,f=cc(),f!==e){if(g=[],y=bt(),y!==e)for(;y!==e;)g.push(y),y=bt();else g=e;g!==e?(y=uc(),y!==e?(Q=l,f=nt(f,y),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,f=cc(),f!==e&&(Q=l,f=ut(f)),l=f),l}function cc(){var l,f;return l=s,f=po(),f!==e?l=t.substring(l,s):l=f,l}function ts(){var l,f,g,y,v,$;if(l=s,f=Di(),f!==e){if(g=[],y=bt(),y!==e)for(;y!==e;)g.push(y),y=bt();else g=e;g===e&&(g=s,y=pe(),y!==e?(t.charCodeAt(s)===44?(v=ct,s++):(v=e,B===0&&Y(be)),v!==e?($=pe(),$!==e?(y=[y,v,$],g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e)),g!==e?(y=ts(),y!==e?(Q=l,f=br(f,y),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,f=Di(),f!==e&&(Q=l,f=ut(f)),l=f),l}function th(){var l,f,g,y,v;if(l=s,f=s,g=[],Ct.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(It)),y!==e)for(;y!==e;)g.push(y),Ct.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(It));else g=e;if(g!==e){for(y=[],Yt.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(lr));v!==e;)y.push(v),Yt.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(lr));y!==e?(g=[g,y],f=g):(s=f,f=e)}else s=f,f=e;return f!==e?l=t.substring(l,s):l=f,l}function fc(){var l,f,g,y,v,$;return l=s,f=th(),f!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&Y(be)),y===e&&(t.substr(s,2)===zt?(y=zt,s+=2):(y=e,B===0&&Y(Hn))),y!==e?(v=pe(),v!==e?($=Di(),$!==e?(Q=l,f=Tn(f,$),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function pc(){var l,f,g,y,v,$;return l=s,f=fc(),f!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&Y(be)),y!==e?(v=pe(),v!==e?($=pc(),$!==e?(Q=l,f=ft(f,$),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l===e&&(l=s,f=fc(),f!==e&&(Q=l,f=pt(f)),l=f),l}function rh(){var l,f,g,y,v,$,R,V,E,I;return l=s,f=pe(),f!==e?(t.charCodeAt(s)===58?(g=Ft,s++):(g=e,B===0&&Y(dt)),g!==e?(t.substr(s,5)===vt?(y=vt,s+=5):(y=e,B===0&&Y(qr)),y!==e?(v=s,t.charCodeAt(s)===60?($=Dr,s++):($=e,B===0&&Y(Nr)),$!==e?(R=pe(),R!==e?(V=uc(),V!==e?(E=pe(),E!==e?(t.charCodeAt(s)===62?(I=Rr,s++):(I=e,B===0&&Y(Lr)),I!==e?(Q=v,$=er(y,V),v=$):(s=v,v=e)):(s=v,v=e)):(s=v,v=e)):(s=v,v=e)):(s=v,v=e),v!==e?($=pe(),$!==e?(Q=l,f=K(y,v),l=f):(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,f,g,y,v,$;for(l=s,f=[],g=s,y=pe(),y!==e?(v=Di(),v!==e?($=pe(),$!==e?(Q=g,y=re(v),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);g!==e;)f.push(g),g=s,y=pe(),y!==e?(v=Di(),v!==e?($=pe(),$!==e?(Q=g,y=re(v),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);return f!==e&&(Q=l,f=ge(f)),l=f,l===e&&(l=s,f=Di(),f!==e&&(Q=l,f=Ae(f)),l=f,l===e&&(l=s,f=pe(),f!==e&&(Q=l,f=xt()),l=f)),l}function qi(){var l,f,g,y,v,$,R,V,E,I,L,J,te,oe;if(l=rh(),l===e)if(l=s,f=pe(),f!==e)if(t.charCodeAt(s)===58?(g=Ft,s++):(g=e,B===0&&Y(dt)),g!==e)if(xr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(ze)),y===e&&(y=null),y!==e)if(v=ka(),v!==e){if($=s,t.charCodeAt(s)===123?(R=it,s++):(R=e,B===0&&Y(mt)),R!==e?(V=pe(),V!==e?(E=pc(),E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===125?(L=jr,s++):(L=e,B===0&&Y(Qe)),L!==e?(Q=$,R=tn(y,v,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e),$===e){if($=s,t.charCodeAt(s)===91?(R=Et,s++):(R=e,B===0&&Y(In)),R!==e)if(V=pe(),V!==e){if(E=s,I=ts(),I!==e&&(Q=E,I=no(y,v,I)),E=I,E===e){if(E=s,I=s,L=[],J=s,te=s,B++,t.charCodeAt(s)===93?(oe=Cr,s++):(oe=e,B===0&&Y(Fn)),oe===e&&(t.charCodeAt(s)===91?(oe=Et,s++):(oe=e,B===0&&Y(In))),B--,oe===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(oe=t.charAt(s),s++):(oe=e,B===0&&Y(c)),oe!==e?(te=[te,oe],J=te):(s=J,J=e)):(s=J,J=e),J!==e)for(;J!==e;)L.push(J),J=s,te=s,B++,t.charCodeAt(s)===93?(oe=Cr,s++):(oe=e,B===0&&Y(Fn)),oe===e&&(t.charCodeAt(s)===91?(oe=Et,s++):(oe=e,B===0&&Y(In))),B--,oe===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(oe=t.charAt(s),s++):(oe=e,B===0&&Y(c)),oe!==e?(te=[te,oe],J=te):(s=J,J=e)):(s=J,J=e);else L=e;L!==e?I=t.substring(I,s):I=L,I!==e&&(Q=E,I=_i(y,v)),E=I}E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===93?(L=Cr,s++):(L=e,B===0&&Y(Fn)),L!==e?(Q=$,R=io(y,v,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)}else s=$,$=e;else s=$,$=e;if($===e&&($=s,t.charCodeAt(s)===60?(R=Dr,s++):(R=e,B===0&&Y(Nr)),R!==e?(V=pe(),V!==e?(E=ts(),E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===62?(L=Rr,s++):(L=e,B===0&&Y(Lr)),L!==e?(Q=$,R=On(y,v,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e),$===e)){if($=s,t.charCodeAt(s)===60?(R=Dr,s++):(R=e,B===0&&Y(Nr)),R!==e)if(V=pe(),V!==e){if(E=s,I=[],L=s,J=s,B++,t.charCodeAt(s)===60?(te=Dr,s++):(te=e,B===0&&Y(Nr)),te===e&&(t.charCodeAt(s)===62?(te=Rr,s++):(te=e,B===0&&Y(Lr))),B--,te===e?J=void 0:(s=J,J=e),J!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&Y(c)),te!==e?(J=[J,te],L=J):(s=L,L=e)):(s=L,L=e),L!==e)for(;L!==e;)I.push(L),L=s,J=s,B++,t.charCodeAt(s)===60?(te=Dr,s++):(te=e,B===0&&Y(Nr)),te===e&&(t.charCodeAt(s)===62?(te=Rr,s++):(te=e,B===0&&Y(Lr))),B--,te===e?J=void 0:(s=J,J=e),J!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&Y(c)),te!==e?(J=[J,te],L=J):(s=L,L=e)):(s=L,L=e);else I=e;I!==e?E=t.substring(E,s):E=I,E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===62?(L=Rr,s++):(L=e,B===0&&Y(Lr)),L!==e?(Q=$,R=Ai(y,v,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)}else s=$,$=e;else s=$,$=e;if($===e){if($=s,t.charCodeAt(s)===40?(R=Gn,s++):(R=e,B===0&&Y(hn)),R!==e)if(V=pe(),V!==e){if(E=s,I=ts(),I!==e&&(Q=E,I=oo(y,v,I)),E=I,E===e){if(E=s,I=s,L=[],J=s,te=s,B++,t.charCodeAt(s)===41?(oe=gn,s++):(oe=e,B===0&&Y(F)),oe===e&&(t.charCodeAt(s)===40?(oe=Gn,s++):(oe=e,B===0&&Y(hn))),B--,oe===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(oe=t.charAt(s),s++):(oe=e,B===0&&Y(c)),oe!==e?(te=[te,oe],J=te):(s=J,J=e)):(s=J,J=e),J!==e)for(;J!==e;)L.push(J),J=s,te=s,B++,t.charCodeAt(s)===41?(oe=gn,s++):(oe=e,B===0&&Y(F)),oe===e&&(t.charCodeAt(s)===40?(oe=Gn,s++):(oe=e,B===0&&Y(hn))),B--,oe===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(oe=t.charAt(s),s++):(oe=e,B===0&&Y(c)),oe!==e?(te=[te,oe],J=te):(s=J,J=e)):(s=J,J=e);else L=e;L!==e?I=t.substring(I,s):I=L,I!==e&&(Q=E,I=P(y,v)),E=I}E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===41?(L=gn,s++):(L=e,B===0&&Y(F)),L!==e?(Q=$,R=j(y,v,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)}else s=$,$=e;else s=$,$=e;$===e&&($=s,R=pe(),R!==e&&(Q=$,R=H(y,v)),$=R)}}}$!==e?(R=pe(),R!==e?(Q=l,f=G(y,v,$),l=f):(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 ri(){var l,f,g,y,v,$,R,V,E,I;for(l=s,f=[],g=qi();g!==e;)f.push(g),g=qi();if(f!==e)if(g=ei(),g!==e){if(y=[],v=s,t.charCodeAt(s)===61?($=Ue,s++):($=e,B===0&&Y(O)),$!==e)if(R=pe(),R!==e){if(V=[],E=qi(),E!==e)for(;E!==e;)V.push(E),E=qi();else V=e;V!==e?(E=pe(),E!==e?(I=ei(),I!==e?(Q=v,$=le(f,V),v=$):(s=v,v=e)):(s=v,v=e)):(s=v,v=e)}else s=v,v=e;else s=v,v=e;for(;v!==e;)if(y.push(v),v=s,t.charCodeAt(s)===61?($=Ue,s++):($=e,B===0&&Y(O)),$!==e)if(R=pe(),R!==e){if(V=[],E=qi(),E!==e)for(;E!==e;)V.push(E),E=qi();else V=e;V!==e?(E=pe(),E!==e?(I=ei(),I!==e?(Q=v,$=le(f,V),v=$):(s=v,v=e)):(s=v,v=e)):(s=v,v=e)}else s=v,v=e;else s=v,v=e;y!==e?(Q=l,f=ve(f,y),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function m1(){var l,f,g,y;if(l=s,f=s,g=[],Se.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(qe)),y!==e)for(;y!==e;)g.push(y),Se.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(qe));else g=e;return g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=d(f)),l=f,l}function dc(){var l,f,g;if(l=s,f=[],ie.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&Y(Le)),g!==e)for(;g!==e;)f.push(g),ie.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&Y(Le));else f=e;return f!==e?l=t.substring(l,s):l=f,l}function rs(){var l,f,g,y,v;if(l=s,f=s,je.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&Y(Ge)),g===e&&(g=null),g!==e){if(y=[],ie.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(Le)),v!==e)for(;v!==e;)y.push(v),ie.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(Le));else y=e;y!==e?(g=[g,y],f=g):(s=f,f=e)}else s=f,f=e;return f!==e?l=t.substring(l,s):l=f,l}function nh(){var l,f;return l=s,t.substr(s,4)===z?(f=z,s+=4):(f=e,B===0&&Y(Ke)),f!==e&&(Q=l,f=Be()),l=f,l===e&&(l=s,t.substr(s,5)===Br?(f=Br,s+=5):(f=e,B===0&&Y(Mt)),f!==e&&(Q=l,f=tr()),l=f),l}function ih(){var l,f,g,y,v,$;return l=s,f=s,g=rs(),g!==e?(y=s,t.charCodeAt(s)===46?(v=he,s++):(v=e,B===0&&Y(at)),v!==e?($=dc(),$!==e?(v=[v,$],y=v):(s=y,y=e)):(s=y,y=e),y===e&&(y=null),y!==e?(Vt.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(ur)),v!==e?($=rs(),$!==e?(g=[g,y,v,$],f=g):(s=f,f=e)):(s=f,f=e)):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f,l===e&&(l=s,f=s,g=rs(),g!==e?(t.charCodeAt(s)===46?(y=he,s++):(y=e,B===0&&Y(at)),y!==e?(v=dc(),v!==e?(g=[g,y,v],f=g):(s=f,f=e)):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f),l}function Di(){var l,f,g,y,v;if(l=s,Er.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(rr)),f!==e){for(g=s,y=[],cr.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(ne));v!==e;)y.push(v),cr.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(ne));y!==e?g=t.substring(g,s):g=y,g!==e?(Er.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(rr)),y!==e?(Q=l,f=d(g),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;if(l===e){if(l=s,yn.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(_r)),f!==e){for(g=s,y=[],Ar.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(Ot));v!==e;)y.push(v),Ar.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(Ot));y!==e?g=t.substring(g,s):g=y,g!==e?(yn.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(_r)),y!==e?(Q=l,f=d(g),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;l===e&&(l=nh(),l===e&&(l=s,f=ih(),f!==e&&(Q=l,f=rn(f)),l=f,l===e&&(l=s,f=rs(),f!==e&&(Q=l,f=Kn(f)),l=f)))}return l}function ua(){var l,f,g,y,v,$,R,V,E,I,L,J,te,oe,rt,Dn,Tr;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=Yo(),g!==e)if(y=Ht(),y!==e)if(v=pe(),v!==e)if($=ri(),$!==e)if(Q=s,R=$r(f,y,$),R?R=void 0:R=e,R!==e){if(V=[],E=s,I=s,L=pe(),L!==e?I=t.substring(I,s):I=L,I!==e?(L=s,J=Yn(),J===e&&(J=s,te=s,B++,oe=Cn(),B--,oe===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,oe=s,rt=Oi(),rt!==e?(Dn=Ht(),Dn!==e?(Q=s,Tr=Wn(f,y,$,I,Dn),Tr?Tr=void 0:Tr=e,Tr!==e?(rt=[rt,Dn,Tr],oe=rt):(s=oe,oe=e)):(s=oe,oe=e)):(s=oe,oe=e),B--,oe===e?te=void 0:(s=te,te=e)),te!==e?(oe=an(),oe!==e?(rt=Yn(),rt===e&&(rt=null),rt!==e?(te=[te,oe,rt],J=te):(s=J,J=e)):(s=J,J=e)):(s=J,J=e)),J!==e?L=t.substring(L,s):L=J,L!==e?(Q=E,I=Zn(f,y,$,I,L),E=I):(s=E,E=e)):(s=E,E=e),E!==e)for(;E!==e;)V.push(E),E=s,I=s,L=pe(),L!==e?I=t.substring(I,s):I=L,I!==e?(L=s,J=Yn(),J===e&&(J=s,te=s,B++,oe=Cn(),B--,oe===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,oe=s,rt=Oi(),rt!==e?(Dn=Ht(),Dn!==e?(Q=s,Tr=Wn(f,y,$,I,Dn),Tr?Tr=void 0:Tr=e,Tr!==e?(rt=[rt,Dn,Tr],oe=rt):(s=oe,oe=e)):(s=oe,oe=e)):(s=oe,oe=e),B--,oe===e?te=void 0:(s=te,te=e)),te!==e?(oe=an(),oe!==e?(rt=Yn(),rt===e&&(rt=null),rt!==e?(te=[te,oe,rt],J=te):(s=J,J=e)):(s=J,J=e)):(s=J,J=e)),J!==e?L=t.substring(L,s):L=J,L!==e?(Q=E,I=Zn(f,y,$,I,L),E=I):(s=E,E=e)):(s=E,E=e);else V=e;V!==e?(E=s,I=pe(),I!==e?E=t.substring(E,s):E=I,E!==e?(I=s,L=Oi(),L!==e?(J=Ht(),J!==e?(Q=s,te=qn(f,y,$,V,E,J),te?te=void 0:te=e,te!==e?(oe=Yn(),oe===e&&(oe=null),oe!==e?(Q=I,L=bn(f,y,$,V,E,J),I=L):(s=I,I=e)):(s=I,I=e)):(s=I,I=e)):(s=I,I=e),I!==e?(Q=s,L=zr(f,y,$,V,E,I),L?L=void 0:L=e,L!==e?(Q=l,f=Si(f,y,$,V,E,I),l=f):(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 Ni(){var l,f,g,y,v,$,R,V,E;if(l=s,f=s,B++,g=s,y=pe(),y!==e?(v=Cn(),v===e&&(v=ti()),v!==e?(y=[y,v],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=sn()),B--,g===e?f=void 0:(s=f,f=e),f!==e){for(g=[],y=bt();y!==e;)g.push(y),y=bt();if(g!==e){if(y=s,v=[],$=s,nn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&Y(Jn)),R!==e){for(V=[],E=bt();E!==e;)V.push(E),E=bt();V!==e?(R=[R,V],$=R):(s=$,$=e)}else s=$,$=e;if($!==e)for(;$!==e;)if(v.push($),$=s,nn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&Y(Jn)),R!==e){for(V=[],E=bt();E!==e;)V.push(E),E=bt();V!==e?(R=[R,V],$=R):(s=$,$=e)}else s=$,$=e;else v=e;v!==e?y=t.substring(y,s):y=v,y!==e?(v=Fi(),v!==e?(Q=l,f=Mr(),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e}else s=l,l=e;return l}function pr(){var l,f,g,y,v;return l=s,f=s,g=Ni(),g===e&&(g=s,Q=s,y=Qn(),y?y=void 0:y=e,y!==e?(v=sn(),v!==e?(y=[y,v],g=y):(s=g,g=e)):(s=g,g=e)),g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=qt()),l=f,l}function Pr(){var l,f;return l=s,f=Nt(),f!==e&&(Q=l,f=Dt(f)),l=f,l}function ca(){var l,f,g,y,v,$,R,V,E,I,L;if(l=s,Q=s,f=Xn(),f?f=void 0:f=e,f!==e){if(g=s,y=[],v=s,$=s,B++,R=Ni(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Pr(),R!==e?($=[$,R],v=$):(s=v,v=e)):(s=v,v=e),v!==e)for(;v!==e;)y.push(v),v=s,$=s,B++,R=Ni(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Pr(),R!==e?($=[$,R],v=$):(s=v,v=e)):(s=v,v=e);else y=e;if(y!==e?g=t.substring(g,s):g=y,g!==e)if(y=s,v=Ni(),v!==e&&(Q=y,v=$n(g,v)),y=v,y!==e){if(v=[],$=s,R=s,V=[],E=s,I=s,B++,L=pr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Pr(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e),E!==e)for(;E!==e;)V.push(E),E=s,I=s,B++,L=pr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Pr(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);else V=e;if(V!==e?R=t.substring(R,s):R=V,R!==e?(V=s,E=pr(),E!==e&&(Q=V,E=_t(g,y,R,E)),V=E,V!==e?(Q=$,R=wn(g,y,R,V),$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=s,R=s,B++,V=Ni(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,E=pr(),B--,E===e?V=void 0:(s=V,V=e),V!==e?(E=Pr(),E!==e?(Q=$,R=Vr(g,y,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)),$!==e)for(;$!==e;){if(v.push($),$=s,R=s,V=[],E=s,I=s,B++,L=pr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Pr(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e),E!==e)for(;E!==e;)V.push(E),E=s,I=s,B++,L=pr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Pr(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);else V=e;V!==e?R=t.substring(R,s):R=V,R!==e?(V=s,E=pr(),E!==e&&(Q=V,E=_t(g,y,R,E)),V=E,V!==e?(Q=$,R=wn(g,y,R,V),$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=s,R=s,B++,V=Ni(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,E=pr(),B--,E===e?V=void 0:(s=V,V=e),V!==e?(E=Pr(),E!==e?(Q=$,R=Vr(g,y,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e))}else v=e;v!==e?(Q=s,$=kn(g,y,v),$?$=void 0:$=e,$!==e?(Q=l,f=Pi(g,y,v),l=f):(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,f=[],g=s,y=s,v=s,$=s,B++,R=pr(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Pr(),R!==e?($=[$,R],v=$):(s=v,v=e)):(s=v,v=e),v!==e?y=t.substring(y,s):y=v,y!==e){for(v=[],$=pr();$!==e;)v.push($),$=pr();v!==e?(Q=g,y=vn(y,v),g=y):(s=g,g=e)}else s=g,g=e;if(g!==e)for(;g!==e;)if(f.push(g),g=s,y=s,v=s,$=s,B++,R=pr(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Pr(),R!==e?($=[$,R],v=$):(s=v,v=e)):(s=v,v=e),v!==e?y=t.substring(y,s):y=v,y!==e){for(v=[],$=pr();$!==e;)v.push($),$=pr();v!==e?(Q=g,y=vn(y,v),g=y):(s=g,g=e)}else s=g,g=e;else f=e;if(f!==e&&(Q=l,f=so(f)),l=f,l===e)if(l=[],f=Pr(),f!==e)for(;f!==e;)l.push(f),f=Pr();else l=e}return l}function fa(){var l,f,g,y,v,$,R,V,E,I,L,J,te,oe,rt;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=Yo(),g!==e)if(y=Ht(),y!==e)if(v=pe(),v!==e)if($=ri(),$!==e)if(Q=s,R=ao(f,y,$),R?R=void 0:R=e,R!==e)if(Q=s,V=Go(f,y,$),V?V=void 0:V=e,V!==e){for(E=s,I=[],L=sn();L!==e;)I.push(L),L=sn();if(I!==e)if(L=ca(),L!==e){for(J=[],te=sn();te!==e;)J.push(te),te=sn();J!==e?(Q=E,I=Ko(f,y,$,L),E=I):(s=E,E=e)}else s=E,E=e;else s=E,E=e;E!==e?(I=s,L=pe(),L!==e?I=t.substring(I,s):I=L,I!==e?(L=s,J=Oi(),J!==e?(te=Ht(),te!==e?(Q=s,oe=qn(f,y,$,E,I,te),oe?oe=void 0:oe=e,oe!==e?(rt=Yn(),rt===e&&(rt=null),rt!==e?(Q=L,J=lo(f,y,$,E,I,te),L=J):(s=L,L=e)):(s=L,L=e)):(s=L,L=e)):(s=L,L=e),L!==e?(Q=s,J=zr(f,y,$,E,I,L),J?J=void 0:J=e,J!==e?(Q=l,f=uo(f,y,$,E,I,L),l=f):(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 pa(){var l,f,g,y,v,$,R,V,E,I,L,J,te;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=Yo(),g!==e)if(y=Ht(),y!==e)if(v=pe(),v!==e)if($=ri(),$!==e){if(R=[],V=s,E=sn(),E===e&&(E=ua(),E===e&&(E=fa(),E===e&&(E=pa(),E===e&&(E=ba(),E===e&&(E=$a(),E===e&&(E=wa(),E===e&&(E=ga(),E===e&&(E=ya(),E===e&&(E=da(),E===e&&(E=ma(),E===e&&(E=ha()))))))))))),E!==e&&(Q=V,E=co(f,y,$,E)),V=E,V===e){for(V=s,E=s,I=[],L=bt();L!==e;)I.push(L),L=bt();if(I!==e?E=t.substring(E,s):E=I,E!==e){if(I=s,L=[],J=Nt(),J!==e)for(;J!==e;)L.push(J),J=Nt();else L=e;L!==e?I=t.substring(I,s):I=L,I!==e?(Q=V,E=At(f,y,$,E,I),V=E):(s=V,V=e)}else s=V,V=e}for(;V!==e;)if(R.push(V),V=s,E=sn(),E===e&&(E=ua(),E===e&&(E=fa(),E===e&&(E=pa(),E===e&&(E=ba(),E===e&&(E=$a(),E===e&&(E=wa(),E===e&&(E=ga(),E===e&&(E=ya(),E===e&&(E=da(),E===e&&(E=ma(),E===e&&(E=ha()))))))))))),E!==e&&(Q=V,E=co(f,y,$,E)),V=E,V===e){for(V=s,E=s,I=[],L=bt();L!==e;)I.push(L),L=bt();if(I!==e?E=t.substring(E,s):E=I,E!==e){if(I=s,L=[],J=Nt(),J!==e)for(;J!==e;)L.push(J),J=Nt();else L=e;L!==e?I=t.substring(I,s):I=L,I!==e?(Q=V,E=At(f,y,$,E,I),V=E):(s=V,V=e)}else s=V,V=e}R!==e?(V=s,E=pe(),E!==e?V=t.substring(V,s):V=E,V!==e?(E=s,I=Oi(),I!==e?(L=Ht(),L!==e?(Q=s,J=qn(f,y,$,R,V,L),J?J=void 0:J=e,J!==e?(te=Yn(),te===e&&(te=null),te!==e?(Q=E,I=We(f,y,$,R,V,L),E=I):(s=E,E=e)):(s=E,E=e)):(s=E,E=e)):(s=E,E=e),E!==e?(Q=s,I=zr(f,y,$,R,V,E),I?I=void 0:I=e,I!==e?(Q=l,f=Ti(f,y,$,R,V,E),l=f):(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,f,g;if(l=s,f=[],g=Nt(),g!==e)for(;g!==e;)f.push(g),g=Nt();else f=e;return f!==e&&(Q=l,f=nc()),l=f,l}function h1(){var l,f,g,y;if(l=s,f=[],g=s,y=wr(),y!==e&&(Q=g,y=xn()),g=y,g===e){if(g=[],Ur.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(Hr)),y!==e)for(;y!==e;)g.push(y),Ur.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(Hr));else g=e;g===e&&(g=Nt())}if(g!==e){for(;g!==e;)if(f.push(g),g=s,y=wr(),y!==e&&(Q=g,y=xn()),g=y,g===e){if(g=[],Ur.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(Hr)),y!==e)for(;y!==e;)g.push(y),Ur.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(Hr));else g=e;g===e&&(g=Nt())}}else f=e;return f!==e&&(Q=l,f=Ii(f)),l=f,l}function da(){var l,f,g,y,v,$,R,V,E,I,L,J;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=s,B++,y=Cn(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=ti(),y!==e)if(v=pe(),v!==e)if($=wr(),$===e&&($=null),$!==e)if(Q=s,R=h(f,y),R?R=void 0:R=e,R!==e){for(V=s,E=[],I=s,L=s,B++,J=wr(),B--,J===e?L=void 0:(s=L,L=e),L!==e?(J=Nt(),J!==e?(L=[L,J],I=L):(s=I,I=e)):(s=I,I=e);I!==e;)E.push(I),I=s,L=s,B++,J=wr(),B--,J===e?L=void 0:(s=L,L=e),L!==e?(J=Nt(),J!==e?(L=[L,J],I=L):(s=I,I=e)):(s=I,I=e);E!==e?V=t.substring(V,s):V=E,V!==e?(Q=l,f=C(f,y,V),l=f):(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 ma(){var l,f,g,y,v,$,R,V,E;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(g=s,B++,y=Cn(),B--,y===e?g=void 0:(s=g,g=e),g!==e?(y=ti(),y!==e?(v=pe(),v!==e?($=wr(),$===e&&($=null),$!==e?(Q=s,R=_(f,y),R?R=void 0:R=e,R!==e?(Q=s,V=A(f,y),V?V=void 0:V=e,V!==e?(E=ca(),E!==e?(Q=l,f=S(f,y,E),l=f):(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 ha(){var l,f,g,y,v,$,R,V,E,I,L;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=s,B++,y=Cn(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=ti(),y!==e)if(v=pe(),v!==e)if($=wr(),$===e&&($=null),$!==e){for(R=s,V=[],E=s,I=s,B++,L=wr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Nt(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);E!==e;)V.push(E),E=s,I=s,B++,L=wr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Nt(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);V!==e?R=t.substring(R,s):R=V,R!==e?(Q=l,f=M(f,y,R),l=f):(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,f,g,y,v,$,R,V,E,I,L;for(l=s,f=[],g=an();g!==e;)f.push(g),g=an();if(f!==e)if(g=ei(),g!==e){if(y=[],v=s,$=pe(),$!==e)if(t.substr(s,2)===W?(R=W,s+=2):(R=e,B===0&&Y(se)),R!==e)if(V=pe(),V!==e){if(E=[],I=an(),I!==e)for(;I!==e;)E.push(I),I=an();else E=e;E!==e?(I=pe(),I!==e?(L=ei(),L!==e?(Q=v,$=le(f,E),v=$):(s=v,v=e)):(s=v,v=e)):(s=v,v=e)}else s=v,v=e;else s=v,v=e;else s=v,v=e;for(;v!==e;)if(y.push(v),v=s,$=pe(),$!==e)if(t.substr(s,2)===W?(R=W,s+=2):(R=e,B===0&&Y(se)),R!==e)if(V=pe(),V!==e){if(E=[],I=an(),I!==e)for(;I!==e;)E.push(I),I=an();else E=e;E!==e?(I=pe(),I!==e?(L=ei(),L!==e?(Q=v,$=le(f,E),v=$):(s=v,v=e)):(s=v,v=e)):(s=v,v=e)}else s=v,v=e;else s=v,v=e;else s=v,v=e;y!==e?(Q=l,f=ve(f,y),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function ga(){var l,f,g,y,v,$,R;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(t.substr(s,6)===U?(g=U,s+=6):(g=e,B===0&&Y(st)),g!==e?(y=pe(),y!==e?(v=s,$=ka(),$!==e?v=t.substring(v,s):v=$,v!==e?($=pe(),$!==e?(R=sh(),R!==e?(Q=l,f=Ut(f,g,v,R),l=f):(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 ya(){var l,f,g,y,v,$,R,V;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(t.substr(s,7)===$e?(g=$e,s+=7):(g=e,B===0&&Y(He)),g!==e?(y=pe(),y!==e?(v=s,$=Ht(),$===e&&($=s,St.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&Y(fr)),R!==e?(t.substr(s,2)===ic?(V=ic,s+=2):(V=e,B===0&&Y(Rm)),V!==e?(R=[R,V],$=R):(s=$,$=e)):(s=$,$=e)),$!==e?v=t.substring(v,s):v=$,v!==e?($=pe(),$!==e?(R=ri(),R!==e?(Q=l,f=Lm(f,g,v,R),l=f):(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 ba(){var l,f,g,y,v,$,R,V,E,I,L,J;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=es(),g!==e)if(y=Ht(),y!==e)if(v=pe(),v!==e)if($=ri(),$!==e)if(Q=s,R=jm(f,g,y,$),R?R=void 0:R=e,R!==e){for(V=s,E=[],I=s,L=s,B++,J=wr(),B--,J===e?L=void 0:(s=L,L=e),L!==e?(J=Nt(),J!==e?(L=[L,J],I=L):(s=I,I=e)):(s=I,I=e);I!==e;)E.push(I),I=s,L=s,B++,J=wr(),B--,J===e?L=void 0:(s=L,L=e),L!==e?(J=Nt(),J!==e?(L=[L,J],I=L):(s=I,I=e)):(s=I,I=e);E!==e?V=t.substring(V,s):V=E,V!==e?(Q=l,f=Bm(f,g,y,$,V),l=f):(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,f,g,y,v,$,R,V,E;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(g=es(),g!==e?(y=Ht(),y!==e?(v=pe(),v!==e?($=ri(),$!==e?(Q=s,R=zm(f,g,y,$),R?R=void 0:R=e,R!==e?(Q=s,V=Mm(f,g,y,$),V?V=void 0:V=e,V!==e?(E=ca(),E!==e?(Q=l,f=Vm(f,g,y,$,E),l=f):(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 wa(){var l,f,g,y,v,$,R,V,E,I,L;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=es(),g!==e)if(y=Ht(),y!==e)if(v=pe(),v!==e)if($=ri(),$!==e){for(R=s,V=[],E=s,I=s,B++,L=wr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Nt(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);E!==e;)V.push(E),E=s,I=s,B++,L=wr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Nt(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);V!==e?R=t.substring(R,s):R=V,R!==e?(Q=l,f=Um(f,g,y,$,R),l=f):(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 ka(){var l,f,g,y,v;if(l=s,f=s,Hm.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&Y(Gm)),g!==e){if(y=[],Yt.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(lr)),v!==e)for(;v!==e;)y.push(v),Yt.test(t.charAt(s))?(v=t.charAt(s),s++):(v=e,B===0&&Y(lr));else y=e;y!==e?(g=[g,y],f=g):(s=f,f=e)}else s=f,f=e;return f!==e?l=t.substring(l,s):l=f,l}function g1(){var l,f;for(B++,l=[],Wo.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(Zo));f!==e;)l.push(f),Wo.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(Zo));return B--,l===e&&(f=e,B===0&&Y(Km)),l}function y1(){var l,f;for(B++,l=[],Wo.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(Zo));f!==e;)l.push(f),Wo.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(Zo));return B--,l===e&&(f=e,B===0&&Y(Wm)),l}function ns(l){return l!==l.toLowerCase()&&l!==l.toUpperCase()}function ah(l){return l===l.toUpperCase()}function Ri(l){return l.reduce((f,g)=>Array.isArray(g)?f.concat(Ri(g)):f.concat(g),[])}function lh(l){return["code","comment","data","defn","head","input","item","nested","output","para","pod","table"].includes(l)||ah(l)||l.match(/^(head|item)\d+$/)||ns(l)}function uh(l,f){return l.length==0?f:f.indexOf(l)==0?f.replace(l,""):f.replace(/^\s+/,"")}if(Qo=i(),Qo!==e&&s===t.length)return Qo;throw Qo!==e&&s<t.length&&Y(Jm()),sc(la,on<t.length?t.charAt(on):null,on<t.length?fo(on,on+1):fo(on,on))}Up.exports={SyntaxError:gi,parse:vw}});var Wp=ce((Cx,Kp)=>{"use strict";function Cw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function yi(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,yi)}Cw(yi,Error);yi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",b;for(b=0;b<m.parts.length;b++)p+=m.parts[b]instanceof Array?o(m.parts[b][0])+"-"+o(m.parts[b][1]):o(m.parts[b]);return"["+(m.inverted?"^":"")+p+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function n(m){return m.charCodeAt(0).toString(16).toUpperCase()}function i(m){return m.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(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function o(m){return m.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(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function a(m){return e[m.type](m)}function u(m){var p=new Array(m.length),b,k;for(b=0;b<m.length;b++)p[b]=a(m[b]);if(p.sort(),p.length>0){for(b=1,k=1;b<p.length;b++)p[b-1]!==p[b]&&(p[k]=p[b],k++);p.length=k}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function c(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+c(r)+" found."};function Ew(t,r){r=r!==void 0?r:{};var e={},n={Expression:Ar},i=Ar,o="A",a=he("A",!1),u="V",c=he("V",!1),m="R",p=he("R",!1),b="B",k=he("B",!1),w="I",x=he("I",!1),T="C",N=he("C",!1),D="D",X=he("D",!1),ee="E",de=he("E",!1),fe="K",Z=he("K",!1),me="L",we=he("L",!1),ke="S",Fe=he("S",!1),xe="T",Ce=he("T",!1),ue="U",$e=he("U",!1),He="Z",U=he("Z",!1),st="N",Re=he("N",!1),et="X",Ue=he("X",!1),O=/^[a-zA-Z]/,q=at([["a","z"],["A","Z"]],!1,!1),Bt=/^[a-zA-Z0-9_\-]/,kt=at([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),nt=/^[ \t\f]/,ut=at([" "," ","\f"],!1,!1),ct=function(h){return!(r.allowed||[]).length||(r.allowed||[]).includes(h)},be=Vt(),br=function(h){return h},Ct=function(h){return h==="A"},It=function(h,C){return{content:C,type:"fcode",name:h}},Yt=function(h){return h==="D"},lr=function(h,C,_){return Ii(_)},zt=function(h,C,_){return{content:C,type:"fcode",name:h,synonyms:_}},Hn=function(h){return h==="V"},Tn=function(h,C){return{content:C,type:"fcode",name:h}},ft="<",pt=he("<",!1),Ft=">",dt=he(">",!1),vt=function(){return Be()},qr=function(h){return h},Dr=function(h){return h==="C"},Nr="|",Rr=he("|",!1),Lr=function(h){return h==="L"},er=function(h,C,_){return _},K=function(h,C,_){return{content:C,type:"fcode",name:h,meta:_}},re=";",ge=he(";",!1),Ae=/^[ \xA0\u2001\t\f\u2008]/,xt=at([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),xr=function(h,C){return Ii([h,C])},ze=function(h){return[h]},it=function(h){return h==="X"},mt=function(h,C,_){return{content:C,type:"fcode",name:h,entry:_}},jr=function(h){return h==="S"},Qe=function(h){return h==="Z"},tn=/^[0-9]/,Et=at([["0","9"]],!1,!1),In="0d",no=he("0d",!1),Cr=function(h){return parseInt(h,10)},Fn="0o",_i=he("0o",!1),io=function(h){return parseInt(h,8)},On="0b",Ai=he("0b",!1),Gn=function(h){return parseInt(h,2)},hn="0x",oo=he("0x",!1),gn=/^[0-9A-Fa-f]/,F=at([["0","9"],["A","F"],["a","f"]],!1,!1),P=function(){return parseInt(Be())},j=function(h){return{type:"number",value:parseInt(h,10)}},H=function(h){return h==="E"},G=function(h,C){return Ii(C)},le=function(h,C){return{content:C||[],type:"fcode",name:h}},ve=function(h){return h},Se=function(h){return h!=="C"},qe=function(h,C){return{content:C,type:"fcode",name:h}},d=0,ie=0,Le=[{line:1,column:1}],je=0,Ge=[],z=0,Ke;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 Be(){return t.substring(ie,d)}function Br(){return cr(ie,d)}function Mt(h,C){throw C=C!==void 0?C:cr(ie,d),_r([Er(h)],t.substring(ie,d),C)}function tr(h,C){throw C=C!==void 0?C:cr(ie,d),yn(h,C)}function he(h,C){return{type:"literal",text:h,ignoreCase:C}}function at(h,C,_){return{type:"class",parts:h,inverted:C,ignoreCase:_}}function Vt(){return{type:"any"}}function ur(){return{type:"end"}}function Er(h){return{type:"other",description:h}}function rr(h){var C=Le[h],_;if(C)return C;for(_=h-1;!Le[_];)_--;for(C=Le[_],C={line:C.line,column:C.column};_<h;)t.charCodeAt(_)===10?(C.line++,C.column=1):C.column++,_++;return Le[h]=C,C}function cr(h,C){var _=rr(h),A=rr(C);return{start:{offset:h,line:_.line,column:_.column},end:{offset:C,line:A.line,column:A.column}}}function ne(h){d<je||(d>je&&(je=d,Ge=[]),Ge.push(h))}function yn(h,C){return new yi(h,null,null,C)}function _r(h,C,_){return new yi(yi.buildMessage(h,C),h,C,_)}function Ar(){var h,C;for(h=[],C=Ot(),C===e&&(C=Ti(),C===e&&(C=xn(),C===e&&(C=Zn())));C!==e;)h.push(C),C=Ot(),C===e&&(C=Ti(),C===e&&(C=xn(),C===e&&(C=Zn())));return h}function Ot(){var h;return h=bn(),h===e&&(h=kn(),h===e&&(h=Qn(),h===e&&(h=zr(),h===e&&(h=co(),h===e&&(h=Si(),h===e&&(h=Xn(),h===e&&(h=Vr(),h===e&&(h=Pi())))))))),h}function rn(){var h;return t.charCodeAt(d)===65?(h=o,d++):(h=e,z===0&&ne(a)),h===e&&(t.charCodeAt(d)===86?(h=u,d++):(h=e,z===0&&ne(c)),h===e&&(t.charCodeAt(d)===82?(h=m,d++):(h=e,z===0&&ne(p)),h===e&&(t.charCodeAt(d)===66?(h=b,d++):(h=e,z===0&&ne(k)),h===e&&(t.charCodeAt(d)===73?(h=w,d++):(h=e,z===0&&ne(x)),h===e&&(t.charCodeAt(d)===67?(h=T,d++):(h=e,z===0&&ne(N)),h===e&&(t.charCodeAt(d)===68?(h=D,d++):(h=e,z===0&&ne(X)),h===e&&(t.charCodeAt(d)===69?(h=ee,d++):(h=e,z===0&&ne(de)),h===e&&(t.charCodeAt(d)===75?(h=fe,d++):(h=e,z===0&&ne(Z)),h===e&&(t.charCodeAt(d)===76?(h=me,d++):(h=e,z===0&&ne(we)),h===e&&(t.charCodeAt(d)===83?(h=ke,d++):(h=e,z===0&&ne(Fe)),h===e&&(t.charCodeAt(d)===84?(h=xe,d++):(h=e,z===0&&ne(Ce)),h===e&&(t.charCodeAt(d)===85?(h=ue,d++):(h=e,z===0&&ne($e)),h===e&&(t.charCodeAt(d)===90?(h=He,d++):(h=e,z===0&&ne(U)),h===e&&(t.charCodeAt(d)===78?(h=st,d++):(h=e,z===0&&ne(Re)),h===e&&(t.charCodeAt(d)===88?(h=et,d++):(h=e,z===0&&ne(Ue))))))))))))))))),h}function Kn(){var h,C,_,A,S;if(h=d,C=d,O.test(t.charAt(d))?(_=t.charAt(d),d++):(_=e,z===0&&ne(q)),_!==e){if(A=[],Bt.test(t.charAt(d))?(S=t.charAt(d),d++):(S=e,z===0&&ne(kt)),S!==e)for(;S!==e;)A.push(S),Bt.test(t.charAt(d))?(S=t.charAt(d),d++):(S=e,z===0&&ne(kt));else A=e;A!==e?(_=[_,A],C=_):(d=C,C=e)}else d=C,C=e;return C!==e?h=t.substring(h,d):h=C,h}function $r(){var h,C;for(h=[],nt.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,z===0&&ne(ut));C!==e;)h.push(C),nt.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,z===0&&ne(ut));return h}function Wn(){var h,C,_;return h=d,C=rn(),C!==e?(ie=d,_=ct(C),_?_=void 0:_=e,_!==e?(C=[C,_],h=C):(d=h,h=e)):(d=h,h=e),h}function Zn(){var h,C;return h=d,t.length>d?(C=t.charAt(d),d++):(C=e,z===0&&ne(be)),C!==e?h=t.substring(h,d):h=C,h}function qn(){var h,C,_,A,S;return h=d,C=d,z++,_=We(),z--,_===e?C=void 0:(d=C,C=e),C!==e?(_=$r(),_!==e?(A=d,S=Kn(),S===e&&(S=null),S!==e?A=t.substring(A,d):A=S,A!==e?(S=$r(),S!==e?(ie=h,C=br(A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h===e&&(h=null),h}function bn(){var h,C,_,A,S;return h=d,C=At(),C!==e?(ie=d,_=Ct(C),_?_=void 0:_=e,_!==e?(A=qn(),A!==e?(S=We(),S!==e?(ie=h,C=It(C,A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function zr(){var h,C,_,A,S,M,W,se;if(h=d,C=At(),C!==e)if(ie=d,_=Yt(C),_?_=void 0:_=e,_!==e){if(A=[],S=Dt(),S!==e)for(;S!==e;)A.push(S),S=Dt();else A=e;if(A!==e){if(S=d,M=qt(),M!==e){for(W=[],se=wn();se!==e;)W.push(se),se=wn();W!==e?(ie=S,M=lr(C,A,W),S=M):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(M=We(),M!==e?(ie=h,C=zt(C,A,S),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e}else d=h,h=e;else d=h,h=e;return h}function Si(){var h,C,_,A,S,M;if(h=d,C=At(),C!==e)if(ie=d,_=Hn(C),_?_=void 0:_=e,_!==e){if(A=d,S=[],M=Mr(),M!==e)for(;M!==e;)S.push(M),M=Mr();else S=e;S!==e?A=t.substring(A,d):A=S,A!==e?(S=We(),S!==e?(ie=h,C=Tn(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function nn(){var h;return t.charCodeAt(d)===66?(h=b,d++):(h=e,z===0&&ne(k)),h}function Jn(){var h,C,_,A,S;return h=d,C=d,_=d,z++,A=nn(),z--,A===e?_=void 0:(d=_,_=e),_!==e?(t.length>d?(A=t.charAt(d),d++):(A=e,z===0&&ne(be)),A!==e?(_=[_,A],C=_):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(_=ft,d++):(_=e,z===0&&ne(pt)),_!==e?(A=Ur(),A!==e?(t.charCodeAt(d)===62?(S=Ft,d++):(S=e,z===0&&ne(dt)),S!==e?(ie=h,C=vt(),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function Mr(){var h,C,_,A,S,M,W,se;if(h=d,C=d,_=[],A=d,S=d,M=d,z++,t.charCodeAt(d)===60?(W=ft,d++):(W=e,z===0&&ne(pt)),z--,W===e?M=void 0:(d=M,M=e),M!==e?(t.length>d?(W=t.charAt(d),d++):(W=e,z===0&&ne(be)),W!==e?(M=[M,W],S=M):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(M=ft,d++):(M=e,z===0&&ne(pt)),M!==e?(W=Mr(),W===e&&(W=null),W!==e?(t.charCodeAt(d)===62?(se=Ft,d++):(se=e,z===0&&ne(dt)),se!==e?(S=[S,M,W,se],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Jn(),A===e&&(A=Ur())),A!==e)for(;A!==e;)_.push(A),A=d,S=d,M=d,z++,t.charCodeAt(d)===60?(W=ft,d++):(W=e,z===0&&ne(pt)),z--,W===e?M=void 0:(d=M,M=e),M!==e?(t.length>d?(W=t.charAt(d),d++):(W=e,z===0&&ne(be)),W!==e?(M=[M,W],S=M):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(M=ft,d++):(M=e,z===0&&ne(pt)),M!==e?(W=Mr(),W===e&&(W=null),W!==e?(t.charCodeAt(d)===62?(se=Ft,d++):(se=e,z===0&&ne(dt)),se!==e?(S=[S,M,W,se],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Jn(),A===e&&(A=Ur()));else _=e;return _!==e?C=t.substring(C,d):C=_,C!==e&&(ie=h,C=qr(C)),h=C,h}function Qn(){var h,C,_,A,S;if(h=d,C=At(),C!==e)if(ie=d,_=Dr(C),_?_=void 0:_=e,_!==e){if(A=[],S=Mr(),S!==e)for(;S!==e;)A.push(S),S=Mr();else A=e;A!==e?(S=We(),S!==e?(ie=h,C=It(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function qt(){var h;return t.charCodeAt(d)===124?(h=Nr,d++):(h=e,z===0&&ne(Rr)),h}function Dt(){var h,C,_,A,S,M,W,se;if(h=d,C=[],_=d,A=d,S=d,z++,t.charCodeAt(d)===60?(M=ft,d++):(M=e,z===0&&ne(pt)),z--,M===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,z===0&&ne(be)),M!==e?(S=[S,M],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=ft,d++):(S=e,z===0&&ne(pt)),S!==e?(M=Dt(),M!==e?(t.charCodeAt(d)===62?(W=Ft,d++):(W=e,z===0&&ne(dt)),W!==e?(A=[A,S,M,W],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e),_===e&&(_=d,A=d,z++,S=qt(),z--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(M=d,z++,W=At(),z--,W===e?M=void 0:(d=M,M=e),M!==e?(W=d,z++,se=Hr(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(A=[A,S,M,W,se],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)),_!==e)for(;_!==e;)C.push(_),_=d,A=d,S=d,z++,t.charCodeAt(d)===60?(M=ft,d++):(M=e,z===0&&ne(pt)),z--,M===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,z===0&&ne(be)),M!==e?(S=[S,M],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=ft,d++):(S=e,z===0&&ne(pt)),S!==e?(M=Dt(),M!==e?(t.charCodeAt(d)===62?(W=Ft,d++):(W=e,z===0&&ne(dt)),W!==e?(A=[A,S,M,W],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e),_===e&&(_=d,A=d,z++,S=qt(),z--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(M=d,z++,W=At(),z--,W===e?M=void 0:(d=M,M=e),M!==e?(W=d,z++,se=Hr(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(A=[A,S,M,W,se],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e));else C=e;return C!==e?h=t.substring(h,d):h=C,h}function Xn(){var h,C,_,A,S,M,W,se,Ut,St,fr;if(h=d,C=At(),C!==e)if(ie=d,_=Lr(C),_?_=void 0:_=e,_!==e){if(A=[],S=Qn(),S===e&&(S=Dt()),S!==e)for(;S!==e;)A.push(S),S=Qn(),S===e&&(S=Dt());else A=e;if(A!==e){if(S=d,M=qt(),M!==e){for(W=d,se=[],Ut=d,St=d,z++,fr=We(),z--,fr===e?St=void 0:(d=St,St=e),St!==e?(t.length>d?(fr=t.charAt(d),d++):(fr=e,z===0&&ne(be)),fr!==e?(St=[St,fr],Ut=St):(d=Ut,Ut=e)):(d=Ut,Ut=e);Ut!==e;)se.push(Ut),Ut=d,St=d,z++,fr=We(),z--,fr===e?St=void 0:(d=St,St=e),St!==e?(t.length>d?(fr=t.charAt(d),d++):(fr=e,z===0&&ne(be)),fr!==e?(St=[St,fr],Ut=St):(d=Ut,Ut=e)):(d=Ut,Ut=e);se!==e?W=t.substring(W,d):W=se,W!==e?(ie=S,M=er(C,A,W),S=M):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(M=We(),M!==e?(ie=h,C=K(C,A,S),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e}else d=h,h=e;else d=h,h=e;return h}function $n(){var h,C,_,A,S,M;if(h=d,C=[],_=d,A=d,z++,t.charCodeAt(d)===59?(S=re,d++):(S=e,z===0&&ne(ge)),z--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,z===0&&ne(be)),M!==e?(A=[A,S,M],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e),_!==e)for(;_!==e;)C.push(_),_=d,A=d,z++,t.charCodeAt(d)===59?(S=re,d++):(S=e,z===0&&ne(ge)),z--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,z===0&&ne(be)),M!==e?(A=[A,S,M],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e);else C=e;return C!==e?h=t.substring(h,d):h=C,h}function _t(){var h;return Ae.test(t.charAt(d))?(h=t.charAt(d),d++):(h=e,z===0&&ne(xt)),h}function wn(){var h,C,_,A,S,M;if(h=d,C=$n(),C!==e){for(_=[],A=_t();A!==e;)_.push(A),A=_t();if(_!==e)if(t.charCodeAt(d)===59?(A=re,d++):(A=e,z===0&&ne(ge)),A!==e){for(S=[],M=_t();M!==e;)S.push(M),M=_t();S!==e?(M=wn(),M!==e?(ie=h,C=xr(C,M),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e}else d=h,h=e;return h===e&&(h=d,C=$n(),C!==e&&(ie=h,C=ze(C)),h=C),h}function Vr(){var h,C,_,A,S,M,W,se;if(h=d,C=At(),C!==e)if(ie=d,_=it(C),_?_=void 0:_=e,_!==e){for(A=[],S=Dt();S!==e;)A.push(S),S=Dt();if(A!==e){if(S=d,M=qt(),M!==e){for(W=[],se=wn();se!==e;)W.push(se),se=wn();W!==e?(ie=S,M=lr(C,A,W),S=M):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(M=We(),M!==e?(ie=h,C=mt(C,A,S),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e}else d=h,h=e;else d=h,h=e;return h}function kn(){var h,C,_,A,S,M,W,se;if(h=d,C=At(),C!==e)if(ie=d,_=jr(C),_?_=void 0:_=e,_!==e){for(A=d,S=[],M=d,W=d,z++,se=We(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(W=[W,se],M=W):(d=M,M=e)):(d=M,M=e);M!==e;)S.push(M),M=d,W=d,z++,se=We(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(W=[W,se],M=W):(d=M,M=e)):(d=M,M=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=We(),S!==e?(ie=h,C=It(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function Pi(){var h,C,_,A,S,M,W,se;if(h=d,C=At(),C!==e)if(ie=d,_=Qe(C),_?_=void 0:_=e,_!==e){for(A=d,S=[],M=d,W=d,z++,se=We(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(W=[W,se],M=W):(d=M,M=e)):(d=M,M=e);M!==e;)S.push(M),M=d,W=d,z++,se=We(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(W=[W,se],M=W):(d=M,M=e)):(d=M,M=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=We(),S!==e?(ie=h,C=It(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function vn(){var h,C,_;if(h=d,C=[],tn.test(t.charAt(d))?(_=t.charAt(d),d++):(_=e,z===0&&ne(Et)),_!==e)for(;_!==e;)C.push(_),tn.test(t.charAt(d))?(_=t.charAt(d),d++):(_=e,z===0&&ne(Et));else C=e;return C!==e?h=t.substring(h,d):h=C,h}function so(){var h,C,_;return h=d,t.substr(d,2)===In?(C=In,d+=2):(C=e,z===0&&ne(no)),C!==e?(_=vn(),_!==e?(ie=h,C=Cr(_),h=C):(d=h,h=e)):(d=h,h=e),h}function ao(){var h,C,_;return h=d,t.substr(d,2)===Fn?(C=Fn,d+=2):(C=e,z===0&&ne(_i)),C!==e?(_=vn(),_!==e?(ie=h,C=io(_),h=C):(d=h,h=e)):(d=h,h=e),h}function Go(){var h,C,_;return h=d,t.substr(d,2)===On?(C=On,d+=2):(C=e,z===0&&ne(Ai)),C!==e?(_=vn(),_!==e?(ie=h,C=Gn(_),h=C):(d=h,h=e)):(d=h,h=e),h}function Ko(){var h,C,_,A,S,M;if(h=d,C=d,_=d,t.substr(d,2)===hn?(A=hn,d+=2):(A=e,z===0&&ne(oo)),A!==e){if(S=[],gn.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,z===0&&ne(F)),M!==e)for(;M!==e;)S.push(M),gn.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,z===0&&ne(F));else S=e;S!==e?(A=[A,S],_=A):(d=_,_=e)}else d=_,_=e;return _!==e?C=t.substring(C,d):C=_,C!==e&&(ie=h,C=P()),h=C,h}function lo(){var h,C,_;return h=d,C=$r(),C!==e?(_=ao(),_===e&&(_=so(),_===e&&(_=Go(),_===e&&(_=Ko(),_===e&&(_=vn())))),_!==e?(ie=h,C=j(_),h=C):(d=h,h=e)):(d=h,h=e),h}function uo(){var h,C,_,A,S,M;if(h=d,C=lo(),C!==e){for(_=[],A=_t();A!==e;)_.push(A),A=_t();if(_!==e)if(t.charCodeAt(d)===59?(A=re,d++):(A=e,z===0&&ne(ge)),A!==e){for(S=[],M=_t();M!==e;)S.push(M),M=_t();S!==e?(M=uo(),M!==e?(ie=h,C=xr(C,M),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e}else d=h,h=e;return h===e&&(h=d,C=lo(),C!==e&&(ie=h,C=ze(C)),h=C),h}function co(){var h,C,_,A,S;return h=d,C=At(),C!==e?(ie=d,_=H(C),_?_=void 0:_=e,_!==e?(A=d,S=uo(),S!==e&&(ie=A,S=G(C,S)),A=S,A===e&&(A=null),A!==e?(S=We(),S!==e?(ie=h,C=le(C,A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function At(){var h,C,_;return h=d,C=d,_=Wn(),_!==e?C=t.substring(C,d):C=_,C!==e?(t.charCodeAt(d)===60?(_=ft,d++):(_=e,z===0&&ne(pt)),_!==e?(ie=h,C=ve(C),h=C):(d=h,h=e)):(d=h,h=e),h}function We(){var h;return t.charCodeAt(d)===62?(h=Ft,d++):(h=e,z===0&&ne(dt)),h}function Ti(){var h,C,_,A,S;if(h=d,C=At(),C!==e)if(ie=d,_=Se(C),_?_=void 0:_=e,_!==e){for(A=[],S=Ot(),S===e&&(S=Ti(),S===e&&(S=xn()));S!==e;)A.push(S),S=Ot(),S===e&&(S=Ti(),S===e&&(S=xn()));A!==e?(S=We(),S!==e?(ie=h,C=qe(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function nc(){var h,C,_,A,S;for(h=d,C=[],_=d,A=d,z++,S=We(),z--,S===e?A=void 0:(d=A,A=e),A!==e?(t.length>d?(S=t.charAt(d),d++):(S=e,z===0&&ne(be)),S!==e?(A=[A,S],_=A):(d=_,_=e)):(d=_,_=e);_!==e;)C.push(_),_=d,A=d,z++,S=We(),z--,S===e?A=void 0:(d=A,A=e),A!==e?(t.length>d?(S=t.charAt(d),d++):(S=e,z===0&&ne(be)),S!==e?(A=[A,S],_=A):(d=_,_=e)):(d=_,_=e);return C!==e?h=t.substring(h,d):h=C,h}function xn(){var h,C,_,A,S,M,W;if(h=d,C=d,_=[],A=d,t.charCodeAt(d)===60?(S=ft,d++):(S=e,z===0&&ne(pt)),S!==e?(M=xn(),M!==e?(t.charCodeAt(d)===62?(W=Ft,d++):(W=e,z===0&&ne(dt)),W!==e?(S=[S,M,W],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Hr(),A===e&&(A=Ur())),A!==e)for(;A!==e;)_.push(A),A=d,t.charCodeAt(d)===60?(S=ft,d++):(S=e,z===0&&ne(pt)),S!==e?(M=xn(),M!==e?(t.charCodeAt(d)===62?(W=Ft,d++):(W=e,z===0&&ne(dt)),W!==e?(S=[S,M,W],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Hr(),A===e&&(A=Ur()));else _=e;return _!==e?C=t.substring(C,d):C=_,C!==e&&(ie=h,C=qr(C)),h=C,h}function Ur(){var h,C,_,A,S,M,W,se;if(h=d,C=d,_=[],A=d,S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(M=d,z++,W=At(),z--,W===e?M=void 0:(d=M,M=e),M!==e?(W=d,z++,se=Hr(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(S=[S,M,W,se],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A!==e)for(;A!==e;)_.push(A),A=d,S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(M=d,z++,W=At(),z--,W===e?M=void 0:(d=M,M=e),M!==e?(W=d,z++,se=Hr(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(S=[S,M,W,se],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e);else _=e;return _!==e?C=t.substring(C,d):C=_,C!==e&&(ie=h,C=qr(C)),h=C,h}function Hr(){var h,C,_,A,S;return h=d,C=d,_=d,z++,A=Wn(),z--,A===e?_=void 0:(d=_,_=e),_!==e?(t.length>d?(A=t.charAt(d),d++):(A=e,z===0&&ne(be)),A!==e?(_=[_,A],C=_):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(_=ft,d++):(_=e,z===0&&ne(pt)),_!==e?(A=Ur(),A!==e?(t.charCodeAt(d)===62?(S=Ft,d++):(S=e,z===0&&ne(dt)),S!==e?(ie=h,C=vt(),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function Ii(h){return h.reduce((C,_)=>Array.isArray(_)?C.concat(Ii(_)):C.concat(_),[])}if(Ke=i(),Ke!==e&&d===t.length)return Ke;throw Ke!==e&&d<t.length&&ne(ur()),_r(Ge,je<t.length?t.charAt(je):null,je<t.length?cr(je,je+1):cr(je,je))}Kp.exports={SyntaxError:yi,parse:Ew}});var rd=ce((Qx,Sw)=>{Sw.exports={name:"@podlite/schema",version:"0.0.13",description:"podlite schema",main:"src/index.ts",types:"./lib/index.d.ts",license:"MIT",files:["lib/**/*.js","lib/**/*.d.ts","schema/*","README.md","CHANGELOG.md"],engines:{node:">=14"},engineStrict:!0,publishConfig:{access:"public",main:"lib/index.js",types:"./lib/index.d.ts"},scripts:{clean:"rm -rf lib esm tsconfig.tsbuildinfo",build:"run-s build:pegjs build:ts build:ast ","build:ast":"ts-node scripts/make-ast-scheme.ts","build:ts":"yarn g:tsc --build $INIT_CWD","build:esm":"yarn g:tsctest -p tsconfig.esm.json","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",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 sd=ce((FC,od)=>{od.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var hd=ce((OC,md)=>{"use strict";var Ms=Object.prototype.hasOwnProperty,dd=Object.prototype.toString,ad=Object.defineProperty,ld=Object.getOwnPropertyDescriptor,ud=function(r){return typeof Array.isArray=="function"?Array.isArray(r):dd.call(r)==="[object Array]"},cd=function(r){if(!r||dd.call(r)!=="[object Object]")return!1;var e=Ms.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&Ms.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!n)return!1;var i;for(i in r);return typeof i>"u"||Ms.call(r,i)},fd=function(r,e){ad&&e.name==="__proto__"?ad(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},pd=function(r,e){if(e==="__proto__")if(Ms.call(r,e)){if(ld)return ld(r,e).value}else return;return r[e]};md.exports=function t(){var r,e,n,i,o,a,u=arguments[0],c=1,m=arguments.length,p=!1;for(typeof u=="boolean"&&(p=u,u=arguments[1]||{},c=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});c<m;++c)if(r=arguments[c],r!=null)for(e in r)n=pd(u,e),i=pd(r,e),u!==i&&(p&&i&&(cd(i)||(o=ud(i)))?(o?(o=!1,a=n&&ud(n)?n:[]):a=n&&cd(n)?n:{},fd(u,{name:e,newValue:t(p,a,i)})):typeof i<"u"&&fd(u,{name:e,newValue:i}));return u}});var bd=ce((NC,yd)=>{yd.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var u1={};mc(u1,{PluginRegister:()=>a1,default:()=>l1,parseMd:()=>aa,plugin:()=>rc});module.exports=hh(u1);var nd=Ir(kp()),Tw=Ir(Ep());var rC=Ir(Pp());var pw=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}},di=t=>{let r=pw(t),{name:e,type:n}=r;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};function dw(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 pn=(t,r)=>{return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(i){return typeof i=="string"?!1:dw(t,i)}},Zl=(t,r)=>{if(t instanceof Array)return t.reduce((n,i)=>(n.push(...Zl(i)),n),[]);if(t instanceof Object){let n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(pn(di(e),t[e]));return n}return[pn(di(t),r)]};var Jl=Ir(require("crypto"),1);var Tp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var mw=128,mi,Xi,hw=t=>{!mi||mi.length<t?(mi=Buffer.allocUnsafe(t*mw),Jl.default.randomFillSync(mi),Xi=0):Xi+t>mi.length&&(Jl.default.randomFillSync(mi),Xi=0),Xi+=t};var Ip=(t=21)=>{hw(t);let r="";for(let e=Xi-t;e<Xi;e++)r+=Tp[mi[e]&63];return r};var No=t=>({...t}),Ql=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},gr=(t,r)=>{let e="block",n=t.name,i={id:Ip(),margin:"",...t};var o=No({type:e,...i,content:Ql(r)});return o};var Ns=(t,r)=>No({type:"fcode",...t,content:r}),Xl=(t,r)=>No({...t,type:"fcode",name:"L",content:Ql(r)}),Fp=t=>No({type:"fcode",name:"Delete",content:Ql(t)}),Rs=t=>No({type:"verbatim",value:t});var Op=t=>({type:"block",name:"caption",content:t}),qp=(t,r)=>({type:"image",src:t,alt:r}),Yl=({margin:t=""},r)=>gr({name:"root",margin:t},r);var Dp=(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},en=Dp;var Np=(t,r)=>{let e=en(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};function Rp(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(Rp(e)):r.concat(e),[]):t}function gw(t){function r(e,n){if(e instanceof Array)return Rp(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),u=a.findIndex(m=>m.isFor(e)),c=(m=e,p=n,b=r)=>{if(u!==-1)a[u].fn(m,p,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,c)}else{let a={...e};if(a.hasOwnProperty("content"))return r(a.content,n)}}return r.rules=t,r}var js=gw;var Ye=(t,r)=>(e,n)=>(i,o,a)=>{e.writeRaw(t),i.content&&a(i.content,o),e.writeRaw(r)},An=()=>()=>()=>{},Sn=(t,r)=>(e,n,i)=>{if(e.content)return i(e.content,n)},zn=t=>(r,e)=>(n,i,o)=>t(n,i)(r,e)(n,i,o);var eu=(t,r)=>{let e=Zl(t).reverse();return(n,i)=>{let o=e.map(c=>pn(c.rule,c.fn(n,i))).reverse(),a=r(n,i),u;return(c,m,p)=>(u||(u=js([...p.rules,...o])),a(c,m,u))}},hi=(t,r)=>(e,n)=>{let i=t(e,n);return(o,a,u)=>{let c=en(o,a).getFirstValue("nested")||r;c!==void 0&&e.addLevel(c),i(o,a,u),c!==void 0&&e.removeLevel(c)}};function Bs(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function Lp(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Lp(e)):r.concat(e),[])}var Ls=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(pn(di(i),o))}function n(i,o={}){if(i instanceof Array)return Lp(i.map(c=>n(c,o)));if(typeof i=="string")return i;let a=r.slice();a.reverse();let u=a.findIndex(c=>c.isFor(i));if(u!==-1)return a[u].fn(i,o,n);{let c={...i};return c.hasOwnProperty("content")&&(c.content=n(c.content,o)),c}}return e(t),n.rules=r,n},vr=Ls;var jp=Ir(require("events")),tu=class extends jp.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)}},zs=tu;var Yi=(t={},r=[])=>{let e=r,n=t.processor||Bp,i=t.writer;return o.use=a,o.run=u,o.getPlugins=()=>e,o;function o(c){}function a(c,m){if(c instanceof Array)return Yi(t,[...e,...m]);if(c instanceof Object){for(var p in c)c.hasOwnProperty(p)&&a(p,c[p]);return o}return e.push(pn(di(c),m)),o}function u(c,m){let p="",b=m||i||new zs(X=>{p=p+X}),k=typeof b=="function"?new b(X=>{p=p+X}):b,w=typeof c=="string"?n(c):c,x=e.slice();x.reverse();let T=js(x.map(X=>pn(X.rule,X.fn(k,n,w))).reverse()),N={};k.startWrite(w);let D=T(w,N);return k.endWrite(),{errors:k.errors,toString:()=>p,valueOf:()=>p,indexingTerms:k.INDEXTERMS,annotations:k.FOOTNOTES,defenitions:k.DEFINITIONS,interator:D}}};var zp=()=>t=>vr({"*":(e,n,i)=>(e.content&&(e.content=i(e.content,n,i)),delete e.location,e)})(t,{}),Mp=zp;var id=Ir(Hp());var xw=()=>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(u=>{r(u,i)})}};var e={};return t.forEach(n=>r(n,e)),t},Gp=xw;var Ro=Ir(Wp());var _w=()=>t=>vr({":para":(e,n,i)=>vr({":text":(o,a)=>Ro.parse(o.value),":verbatim":(o,a)=>Ro.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=en(e,n),a="name"in e&&e.name==="code",u="name"in e&&e.name==="data",c=o.getAllValues("allow");if((a||u)&&c.length==0)return e;let m=c.sort(),p=vr({":verbatim":(b,k)=>Ro.parse(b.value,{allowed:m}),":text":(b,k)=>Ro.parse(b.value,{allowed:m}),":block":(b,k)=>Bs(b.name)?b:{...b,content:p(b.content,{...k})}});return p(e,{...n})}})(t,{}),Zp=_w;var Jp=()=>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 Qp=()=>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 Xp=()=>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((c,m)=>(m.name==="defn"?r(a,m)?c[c.length-1].push(m):c.push([m]):c.push(m),a=m,c),[]).map(c=>c instanceof Array?c[0].name!=="defn"?c:{type:"list",list:c[0].name==="defn"?"variable":e(c[0])?"ordered":"itemized",level:1,content:[...c]}:(c.content&&c.type!=="fcode"&&(c.content=n(c.content)),c))};return t=(o=>Array.isArray(o)?n(o):(o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var Yp=()=>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(en(o,{}).exists("numbered")),n=(o,a=1)=>{let u=k=>k.length>0&&k[k.length-1].type==="list",c=k=>{if(u(k))return k[k.length-1]},m=(k,w)=>w.name&&w.name==="item"&&w.type&&w.type==="block"||w.type==="blankline",p={};return o.reduce((k,w)=>w.name==="item"&&w.type==="block"&&w.level<a?[...k,w]:(w.name==="item"&&w.type==="block"&&(!u(k)||w.level===a&&c(k).list!==(e(w)?"ordered":"itemized"))&&k.push({type:"list",level:w.level,content:[],list:e(w)?"ordered":"itemized"}),u(k)&&m(c(k),w)?c(k).content.push(w):k.push(w),k),[]).map(k=>(k.content&&k.type!=="fcode"&&(k.content=n(k.content,k.level+1)),k))};return t=(o=>(Array.isArray(o)?o=n(o):o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var ed=()=>t=>vr({defn:e=>{let n=e.content,i=n.length,o=[],a=!1;for(let u=0;u<i;u++){let c=n[u];if(c.type==="para"&&!a){let m=c.content[0],b=m.value.split(`
|
|
14
|
+
`),k=b.shift(),w={type:"para",name:"term",text:k,content:[{type:"text",value:k}]};o.push(w),b.length==1&&b[0]===""||(m.value=b.join(`
|
|
15
|
+
`),c.text=m.value,o.push(c)),a=!0}else o.push(c)}return e.content=o,e}})(t,{});function Lo(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Lo(e)):r.concat(e),[])}var ru=(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("")},Aw=(t,r)=>{let e=Math.max(...[...t,...r].map(a=>a.length));return t.map(a=>{let u=a+" ".repeat(e-a.length),c=[],m=/\s+[+|\s]\s/g,p;for(;(p=m.exec(u))!=null;){let b="1".repeat(p.index)+"0".repeat(p[0].length);c.push(b+"1".repeat(e-b.length))}return c.reduce((b,k)=>ru(b,k,(w,x)=>w&x),"1".repeat(e))}).map(a=>ru(a,"",u=>u==0?1:0)).reduce((a,u)=>ru(a,u,(c,m)=>c&m),"1".repeat(e))},nu=(t,r)=>{let n=Lo(t.split(/\n/).filter(o=>o.length>0)).map(o=>{let a=/((1+|0+))/g,u=[],c;for(;(c=a.exec(r))!=null;){if(c[0][0]==1)continue;let m=o.substring(c.index,c.index+c[0].length);u.push(m)}return u}),i=[];return i=n.reduce((o,a)=>{for(let u=0;u<a.length;u++)o[u]=(o[u]===void 0?"":o[u])+" "+a[u];return o},[]),i},td=()=>t=>vr({table:e=>{let n=[],i=w=>{n.push(w.value)},o=[];if(vr({"row:text":i,"head:text":i,":separator":w=>{o.push(w.text)}})(e),!n.length)return e;let a=w=>w.split(/\n/).filter(x=>x.length>0),u=Lo(n.map(a)),c=Lo(o.map(a)),m=[];vr({"row:text":w=>{m.push(w.value)}})(e);let p=Aw(u,c),b=(w,x,...T)=>({...T,name:w,type:"block",content:Array.isArray(x)?x:[x]});return vr({"row:text":w=>{if(m.length==1)return Lo([w.value].map(a)).map(N=>{let D=nu(N,p);return b("table_row",D.map(X=>b("table_cell",{type:"text",value:X})))});let x=nu(w.value,p);return b("table_row",x.map(T=>b("table_cell",{type:"text",value:T})))},"head:text":w=>{let x=nu(w.value,p);return b("table_head",x.map(T=>b("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),u=Mp()(a);u[0].type==="para"?i(u[0].content,n):i(u,n)}},"C<>":Ye("<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<>":Ye("<strong>","</strong>"),"I<>":Ye("<em>","</em>"),"R<>":Ye("<var>","</var>"),"K<>":Ye("<kbd>","</kbd>"),"L<>":zn((t,r)=>{let{meta:e}=t;return e===null&&(e=t.content),Ye(`<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}`,u=`fn:${o}`;t.writeRaw(`<sup id="${a}" class="footnote"><a href="#${u}">[${o}]</a></sup>`),t.hasOwnProperty("FOOTNOTES")||(t.FOOTNOTES=[]),t.FOOTNOTES.push({gid:o,fnRefId:a,fnId:u,make:()=>{i(e.content,n)}})}),"S<>":(t,r)=>(e,n,i)=>{let u=(e.content||"").replace(/ /g," ").replace(/\n/g,"</br>");t.writeRaw(u)},"T<>":Ye("<samp>","</samp>"),"U<>":Ye("<u>","</u>"),"V<>":Sn,"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<>":An,pod:Sn,":code":Ye("<pre><code>","</code></pre>"),code:hi(Ye("<pre><code>","</code></pre>")),data:An,":verbatim":(t,r)=>(e,n,i)=>{e.error&&t.emit("errors",e.location),i(e.value)},":blankline":An,":ambient":An,":config":zn((t,r)=>(r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,An)),":alias":zn((t,r)=>(r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,An)),para:hi(Sn),":para":Ye("<p>","</p>"),"head:block":eu({":para":Sn},zn((t,r)=>{let{level:e}=t,n=Np(t,r);return Ye(`<h${e}${n?` id="${n}"`:""}>`,`</h${e}>`)})),":list":zn((t,r)=>t.list==="ordered"?Ye("<ol>","</ol>"):t.list==="variable"?Ye("<dl>","</dl>"):Ye("<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":An,defn:Ye("","</dd>"),"term:para":Ye("<dt>","</dt><dd>"),nested:hi(Sn,1),output:hi(Ye("<pre><samp>","</samp></pre>"),1),input:hi(Ye("<pre><kbd>","</kbd></pre>"),1),"table:block":hi((t,r)=>(e,n,i)=>{let o=en(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":An,table_row:Ye("<tr>","</tr>"),table_cell:Ye("<td>","</td>"),table_head:eu({table_cell:Ye("<th>","</th>")},Ye("<tr>","</tr>")),":toc":(t,r)=>(e,n,i)=>{t.writeRaw('<div className="toc">');let o=en(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":zn((t,r)=>Ye(`<ul class="toc-list listlevel${t.level}">`,"</ul>")),":toc-item":zn((t,r)=>Ye('<li class="toc-item">',"</li>")),":image":(t,r)=>(e,n,i)=>{t.writeRaw(`<img src="${e.src}" alt="${e.alt}"/>`)}};var pC=new nd.default({strict:!0,allowUnionTypes:!0});function Vp(){var t=[];return r.use=e,r.parse=n,r.use(Gp),r.use(Jp),r.use(Qp),r.use(ed),r.use(td),r.use(Zp),r.use(Yp),r.use(Xp),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=id.parse(i,{podMode:o.podMode});if(!o.skipChain)for(let u=0;u<t.length;u++){let c=t[u];a=c(o)(a)}return a}}var Bp=Vp().parse;var{version:dC}=rd();function iu(t){if(t)throw t}var _d=Ir(sd(),1),mu=Ir(hd(),1);function jo(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 gd(){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);u(null,...i);function u(c,...m){let p=t[++o],b=-1;if(c){a(c);return}for(;++b<i.length;)(m[b]===null||m[b]===void 0)&&(m[b]=i[b]);i=m,p?Iw(p,u)(...m):a(null,...m)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),r}}function Iw(t,r){let e;return n;function n(...a){let u=t.length>a.length,c;u&&a.push(i);try{c=t.apply(this,a)}catch(m){let p=m;if(u&&e)throw p;return i(p)}u||(c instanceof Promise?c.then(o,i):c instanceof Error?i(c):o(c))}function i(a,...u){e||(e=!0,r(a,...u))}function o(a){i(null,a)}}var vd=Ir(bd(),1);function bi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?$d(t.position):"start"in t||"end"in t?$d(t):"line"in t||"column"in t?ou(t):""}function ou(t){return wd(t&&t.line)+":"+wd(t&&t.column)}function $d(t){return ou(t&&t.start)+"-"+ou(t&&t.end)}function wd(t){return t&&typeof t=="number"?t:1}var sr=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=bi(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}};sr.prototype.file="";sr.prototype.name="";sr.prototype.reason="";sr.prototype.message="";sr.prototype.stack="";sr.prototype.fatal=null;sr.prototype.column=null;sr.prototype.line=null;sr.prototype.source=null;sr.prototype.ruleId=null;sr.prototype.position=null;var Or=Ir(require("path"),1);var su=Ir(require("process"),1);var au=require("url");function Vs(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}var lu=["history","path","basename","stem","extname","dirname"],Bo=class{constructor(r){let e;r?typeof r=="string"||(0,vd.default)(r)?e={value:r}:Vs(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=su.default.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<lu.length;){let o=lu[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let i;for(i in e)lu.includes(i)||(this[i]=e[i])}get path(){return this.history[this.history.length-1]}set path(r){Vs(r)&&(r=(0,au.fileURLToPath)(r)),cu(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Or.default.dirname(this.path):void 0}set dirname(r){kd(this.basename,"dirname"),this.path=Or.default.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Or.default.basename(this.path):void 0}set basename(r){cu(r,"basename"),uu(r,"basename"),this.path=Or.default.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Or.default.extname(this.path):void 0}set extname(r){if(uu(r,"extname"),kd(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=Or.default.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Or.default.basename(this.path,this.extname):void 0}set stem(r){cu(r,"stem"),uu(r,"stem"),this.path=Or.default.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let i=new sr(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 uu(t,r){if(t&&t.includes(Or.default.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Or.default.sep+"`")}function cu(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function kd(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var hu=Sd().freeze(),Ad={}.hasOwnProperty;function Sd(){let t=gd(),r=[],e={},n,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=u,o.attachers=r,o.use=c,o.parse=m,o.stringify=p,o.run=b,o.runSync=k,o.process=w,o.processSync=x,o;function o(){let T=Sd(),N=-1;for(;++N<r.length;)T.use(...r[N]);return T.data((0,mu.default)(!0,{},e)),T}function a(T,N){return typeof T=="string"?arguments.length===2?(du("data",n),e[T]=N,o):Ad.call(e,T)&&e[T]||null:T?(du("data",n),e=T,o):e}function u(){if(n)return o;for(;++i<r.length;){let[T,...N]=r[i];if(N[0]===!1)continue;N[0]===!0&&(N[0]=void 0);let D=T.call(o,...N);typeof D=="function"&&t.use(D)}return n=!0,i=Number.POSITIVE_INFINITY,o}function c(T,...N){let D;if(du("use",n),T!=null)if(typeof T=="function")fe(T,...N);else if(typeof T=="object")Array.isArray(T)?de(T):ee(T);else throw new TypeError("Expected usable value, not `"+T+"`");return D&&(e.settings=Object.assign(e.settings||{},D)),o;function X(Z){if(typeof Z=="function")fe(Z);else if(typeof Z=="object")if(Array.isArray(Z)){let[me,...we]=Z;fe(me,...we)}else ee(Z);else throw new TypeError("Expected usable value, not `"+Z+"`")}function ee(Z){de(Z.plugins),Z.settings&&(D=Object.assign(D||{},Z.settings))}function de(Z){let me=-1;if(Z!=null)if(Array.isArray(Z))for(;++me<Z.length;){let we=Z[me];X(we)}else throw new TypeError("Expected a list of plugins, not `"+Z+"`")}function fe(Z,me){let we=-1,ke;for(;++we<r.length;)if(r[we][0]===Z){ke=r[we];break}ke?(jo(ke[1])&&jo(me)&&(me=(0,mu.default)(!0,ke[1],me)),ke[1]=me):r.push([...arguments])}}function m(T){o.freeze();let N=zo(T),D=o.Parser;return fu("parse",D),xd(D,"parse")?new D(String(N),N).parse():D(String(N),N)}function p(T,N){o.freeze();let D=zo(N),X=o.Compiler;return pu("stringify",X),Cd(T),xd(X,"compile")?new X(T,D).compile():X(T,D)}function b(T,N,D){if(Cd(T),o.freeze(),!D&&typeof N=="function"&&(D=N,N=void 0),!D)return new Promise(X);X(null,D);function X(ee,de){t.run(T,zo(N),fe);function fe(Z,me,we){me=me||T,Z?de(Z):ee?ee(me):D(null,me,we)}}}function k(T,N){let D,X;return o.run(T,N,ee),Ed("runSync","run",X),D;function ee(de,fe){iu(de),D=fe,X=!0}}function w(T,N){if(o.freeze(),fu("process",o.Parser),pu("process",o.Compiler),!N)return new Promise(D);D(null,N);function D(X,ee){let de=zo(T);o.run(o.parse(de),de,(Z,me,we)=>{if(Z||!me||!we)fe(Z);else{let ke=o.stringify(me,we);ke==null||(qw(ke)?we.value=ke:we.result=ke),fe(Z,we)}});function fe(Z,me){Z||!me?ee(Z):X?X(me):N(null,me)}}}function x(T){let N;o.freeze(),fu("processSync",o.Parser),pu("processSync",o.Compiler);let D=zo(T);return o.process(D,X),Ed("processSync","process",N),D;function X(ee){N=!0,iu(ee)}}}function xd(t,r){return typeof t=="function"&&t.prototype&&(Fw(t.prototype)||r in t.prototype)}function Fw(t){let r;for(r in t)if(Ad.call(t,r))return!0;return!1}function fu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function pu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function du(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 Cd(t){if(!jo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ed(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function zo(t){return Ow(t)?t:new Bo(t)}function Ow(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function qw(t){return typeof t=="string"||(0,_d.default)(t)}function Td(t,r){var{includeImageAlt:e=!0}=r||{};return Id(t,e)}function Id(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&Pd(t.children,r)||Array.isArray(t)&&Pd(t,r))||""}function Pd(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=Id(t[n],r);return e.join("")}function gt(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 ar(t,r){return t.length>0?(gt(t,t.length,0,r),t):r}var Fd={}.hasOwnProperty;function Us(t){let r={},e=-1;for(;++e<t.length;)Dw(r,t[e]);return r}function Dw(t,r){let e;for(e in r){let i=(Fd.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],a;for(a in o){Fd.call(i,a)||(i[a]=[]);let u=o[a];Nw(i[a],Array.isArray(u)?u:u?[u]:[])}}}function Nw(t,r){let e=-1,n=[];for(;++e<r.length;)(r[e].add==="after"?t:n).push(r[e]);gt(t,0,0,n)}var Od=/[!-/:-@[-`{-~\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 Jt=Vn(/[A-Za-z]/),$i=Vn(/\d/),qd=Vn(/[\dA-Fa-f]/),Tt=Vn(/[\dA-Za-z]/),Dd=Vn(/[!-/:-@[-`{-~]/),gu=Vn(/[#-'*+\--9=?A-Z^-~]/);function Mn(t){return t!==null&&(t<32||t===127)}function Ve(t){return t!==null&&(t<0||t===32)}function ae(t){return t!==null&&t<-2}function Ie(t){return t===-2||t===-1||t===32}var wi=Vn(/\s/),ki=Vn(Od);function Vn(t){return r;function r(e){return e!==null&&t.test(String.fromCharCode(e))}}function ye(t,r,e,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return a;function a(c){return Ie(c)?(t.enter(e),u(c)):r(c)}function u(c){return Ie(c)&&o++<i?(t.consume(c),u):(t.exit(e),r(c))}}var Nd={tokenize:Rw};function Rw(t){let r=t.attempt(this.parser.constructs.contentInitial,n,i),e;return r;function n(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),ye(t,r,"linePrefix")}function i(u){return t.enter("paragraph"),o(u)}function o(u){let c=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=c),e=c,a(u)}function a(u){if(u===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(u);return}return ae(u)?(t.consume(u),t.exit("chunkText"),o):(t.consume(u),a)}}var Ld={tokenize:Lw},Rd={tokenize:jw};function Lw(t){let r=this,e=[],n=0,i,o,a;return u;function u(ee){if(n<e.length){let de=e[n];return r.containerState=de[1],t.attempt(de[0].continuation,c,m)(ee)}return m(ee)}function c(ee){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,i&&X();let de=r.events.length,fe=de,Z;for(;fe--;)if(r.events[fe][0]==="exit"&&r.events[fe][1].type==="chunkFlow"){Z=r.events[fe][1].end;break}D(n);let me=de;for(;me<r.events.length;)r.events[me][1].end=Object.assign({},Z),me++;return gt(r.events,fe+1,0,r.events.slice(de)),r.events.length=me,m(ee)}return u(ee)}function m(ee){if(n===e.length){if(!i)return k(ee);if(i.currentConstruct&&i.currentConstruct.concrete)return x(ee);r.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(Rd,p,b)(ee)}function p(ee){return i&&X(),D(n),k(ee)}function b(ee){return r.parser.lazy[r.now().line]=n!==e.length,a=r.now().offset,x(ee)}function k(ee){return r.containerState={},t.attempt(Rd,w,x)(ee)}function w(ee){return n++,e.push([r.currentConstruct,r.containerState]),k(ee)}function x(ee){if(ee===null){i&&X(),D(0),t.consume(ee);return}return i=i||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),T(ee)}function T(ee){if(ee===null){N(t.exit("chunkFlow"),!0),D(0),t.consume(ee);return}return ae(ee)?(t.consume(ee),N(t.exit("chunkFlow")),n=0,r.interrupt=void 0,u):(t.consume(ee),T)}function N(ee,de){let fe=r.sliceStream(ee);if(de&&fe.push(null),ee.previous=o,o&&(o.next=ee),o=ee,i.defineSkip(ee.start),i.write(fe),r.parser.lazy[ee.start.line]){let Z=i.events.length;for(;Z--;)if(i.events[Z][1].start.offset<a&&(!i.events[Z][1].end||i.events[Z][1].end.offset>a))return;let me=r.events.length,we=me,ke,Fe;for(;we--;)if(r.events[we][0]==="exit"&&r.events[we][1].type==="chunkFlow"){if(ke){Fe=r.events[we][1].end;break}ke=!0}for(D(n),Z=me;Z<r.events.length;)r.events[Z][1].end=Object.assign({},Fe),Z++;gt(r.events,we+1,0,r.events.slice(me)),r.events.length=Z}}function D(ee){let de=e.length;for(;de-- >ee;){let fe=e[de];r.containerState=fe[1],fe[0].exit.call(r,t)}e.length=ee}function X(){i.write([null]),o=void 0,i=void 0,r.containerState._closeFlow=void 0}}function jw(t,r,e){return ye(t,t.attempt(this.parser.constructs.document,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function eo(t){if(t===null||Ve(t)||wi(t))return 1;if(ki(t))return 2}function Un(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 Mo={name:"attention",tokenize:zw,resolveAll:Bw};function Bw(t,r){let e=-1,n,i,o,a,u,c,m,p;for(;++e<t.length;)if(t[e][0]==="enter"&&t[e][1].type==="attentionSequence"&&t[e][1]._close){for(n=e;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&r.sliceSerialize(t[n][1]).charCodeAt(0)===r.sliceSerialize(t[e][1]).charCodeAt(0)){if((t[n][1]._close||t[e][1]._open)&&(t[e][1].end.offset-t[e][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[e][1].end.offset-t[e][1].start.offset)%3))continue;c=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let b=Object.assign({},t[n][1].end),k=Object.assign({},t[e][1].start);jd(b,-c),jd(k,c),a={type:c>1?"strongSequence":"emphasisSequence",start:b,end:Object.assign({},t[n][1].end)},u={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:k},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},i={type:c>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},u.end)},t[n][1].end=Object.assign({},a.start),t[e][1].start=Object.assign({},u.end),m=[],t[n][1].end.offset-t[n][1].start.offset&&(m=ar(m,[["enter",t[n][1],r],["exit",t[n][1],r]])),m=ar(m,[["enter",i,r],["enter",a,r],["exit",a,r],["enter",o,r]]),m=ar(m,Un(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),m=ar(m,[["exit",o,r],["enter",u,r],["exit",u,r],["exit",i,r]]),t[e][1].end.offset-t[e][1].start.offset?(p=2,m=ar(m,[["enter",t[e][1],r],["exit",t[e][1],r]])):p=0,gt(t,n-1,e-n+3,m),e=n+m.length-p-2;break}}for(e=-1;++e<t.length;)t[e][1].type==="attentionSequence"&&(t[e][1].type="data");return t}function zw(t,r){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,i=eo(n),o;return a;function a(c){return t.enter("attentionSequence"),o=c,u(c)}function u(c){if(c===o)return t.consume(c),u;let m=t.exit("attentionSequence"),p=eo(c),b=!p||p===2&&i||e.includes(c),k=!i||i===2&&p||e.includes(n);return m._open=Boolean(o===42?b:b&&(i||!k)),m._close=Boolean(o===42?k:k&&(p||!b)),r(c)}}function jd(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var yu={name:"autolink",tokenize:Mw};function Mw(t,r,e){let n=1;return i;function i(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(x){return Jt(x)?(t.consume(x),a):gu(x)?m(x):e(x)}function a(x){return x===43||x===45||x===46||Tt(x)?u(x):m(x)}function u(x){return x===58?(t.consume(x),c):(x===43||x===45||x===46||Tt(x))&&n++<32?(t.consume(x),u):m(x)}function c(x){return x===62?(t.exit("autolinkProtocol"),w(x)):x===null||x===32||x===60||Mn(x)?e(x):(t.consume(x),c)}function m(x){return x===64?(t.consume(x),n=0,p):gu(x)?(t.consume(x),m):e(x)}function p(x){return Tt(x)?b(x):e(x)}function b(x){return x===46?(t.consume(x),n=0,p):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",w(x)):k(x)}function k(x){return(x===45||Tt(x))&&n++<63?(t.consume(x),x===45?k:b):e(x)}function w(x){return t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),r}}var dn={tokenize:Vw,partial:!0};function Vw(t,r,e){return ye(t,n,"linePrefix");function n(i){return i===null||ae(i)?r(i):e(i)}}var Hs={name:"blockQuote",tokenize:Uw,continuation:{tokenize:Hw},exit:Gw};function Uw(t,r,e){let n=this;return i;function i(a){if(a===62){let u=n.containerState;return u.open||(t.enter("blockQuote",{_container:!0}),u.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),o}return e(a)}function o(a){return Ie(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(a))}}function Hw(t,r,e){return ye(t,t.attempt(Hs,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Gw(t){t.exit("blockQuote")}var Gs={name:"characterEscape",tokenize:Kw};function Kw(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 Dd(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var bu={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 Ww={}.hasOwnProperty;function to(t){return Ww.call(bu,t)?bu[t]:!1}var Ks={name:"characterReference",tokenize:Zw};function Zw(t,r,e){let n=this,i=0,o,a;return u;function u(b){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),c}function c(b){return b===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(b),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),o=31,a=Tt,p(b))}function m(b){return b===88||b===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(b),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,a=qd,p):(t.enter("characterReferenceValue"),o=7,a=$i,p(b))}function p(b){let k;return b===59&&i?(k=t.exit("characterReferenceValue"),a===Tt&&!to(n.sliceSerialize(k))?e(b):(t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):a(b)&&i++<o?(t.consume(b),p):e(b)}}var Ws={name:"codeFenced",tokenize:Jw,concrete:!0};function Jw(t,r,e){let n=this,i={tokenize:fe,partial:!0},o={tokenize:de,partial:!0},a=this.events[this.events.length-1],u=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,c=0,m;return p;function p(Z){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),m=Z,b(Z)}function b(Z){return Z===m?(t.consume(Z),c++,b):(t.exit("codeFencedFenceSequence"),c<3?e(Z):ye(t,k,"whitespace")(Z))}function k(Z){return Z===null||ae(Z)?N(Z):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),w(Z))}function w(Z){return Z===null||Ve(Z)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ye(t,x,"whitespace")(Z)):Z===96&&Z===m?e(Z):(t.consume(Z),w)}function x(Z){return Z===null||ae(Z)?N(Z):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),T(Z))}function T(Z){return Z===null||ae(Z)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),N(Z)):Z===96&&Z===m?e(Z):(t.consume(Z),T)}function N(Z){return t.exit("codeFencedFence"),n.interrupt?r(Z):D(Z)}function D(Z){return Z===null?ee(Z):ae(Z)?t.attempt(o,t.attempt(i,ee,u?ye(t,D,"linePrefix",u+1):D),ee)(Z):(t.enter("codeFlowValue"),X(Z))}function X(Z){return Z===null||ae(Z)?(t.exit("codeFlowValue"),D(Z)):(t.consume(Z),X)}function ee(Z){return t.exit("codeFenced"),r(Z)}function de(Z,me,we){let ke=this;return Fe;function Fe(Ce){return Z.enter("lineEnding"),Z.consume(Ce),Z.exit("lineEnding"),xe}function xe(Ce){return ke.parser.lazy[ke.now().line]?we(Ce):me(Ce)}}function fe(Z,me,we){let ke=0;return ye(Z,Fe,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Fe(ue){return Z.enter("codeFencedFence"),Z.enter("codeFencedFenceSequence"),xe(ue)}function xe(ue){return ue===m?(Z.consume(ue),ke++,xe):ke<c?we(ue):(Z.exit("codeFencedFenceSequence"),ye(Z,Ce,"whitespace")(ue))}function Ce(ue){return ue===null||ae(ue)?(Z.exit("codeFencedFence"),me(ue)):we(ue)}}}var Vo={name:"codeIndented",tokenize:Xw},Qw={tokenize:Yw,partial:!0};function Xw(t,r,e){let n=this;return i;function i(m){return t.enter("codeIndented"),ye(t,o,"linePrefix",4+1)(m)}function o(m){let p=n.events[n.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(m):e(m)}function a(m){return m===null?c(m):ae(m)?t.attempt(Qw,a,c)(m):(t.enter("codeFlowValue"),u(m))}function u(m){return m===null||ae(m)?(t.exit("codeFlowValue"),a(m)):(t.consume(m),u)}function c(m){return t.exit("codeIndented"),r(m)}}function Yw(t,r,e){let n=this;return i;function i(a){return n.parser.lazy[n.now().line]?e(a):ae(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):ye(t,o,"linePrefix",4+1)(a)}function o(a){let u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?r(a):ae(a)?i(a):e(a)}}var $u={name:"codeText",tokenize:rk,resolve:ek,previous:tk};function ek(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 tk(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rk(t,r,e){let n=this,i=0,o,a;return u;function u(k){return t.enter("codeText"),t.enter("codeTextSequence"),c(k)}function c(k){return k===96?(t.consume(k),i++,c):(t.exit("codeTextSequence"),m(k))}function m(k){return k===null?e(k):k===96?(a=t.enter("codeTextSequence"),o=0,b(k)):k===32?(t.enter("space"),t.consume(k),t.exit("space"),m):ae(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(k))}function p(k){return k===null||k===32||k===96||ae(k)?(t.exit("codeTextData"),m(k)):(t.consume(k),p)}function b(k){return k===96?(t.consume(k),o++,b):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),r(k)):(a.type="codeTextData",p(k))}}function Zs(t){let r={},e=-1,n,i,o,a,u,c,m;for(;++e<t.length;){for(;e in r;)e=r[e];if(n=t[e],e&&n[1].type==="chunkFlow"&&t[e-1][1].type==="listItemPrefix"&&(c=n[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,nk(t,e)),e=r[e],m=!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),u=t.slice(i,e),u.unshift(n),gt(t,i,e-i+1,u))}}return!m}function nk(t,r){let e=t[r][1],n=t[r][2],i=r-1,o=[],a=e._tokenizer||n.parser[e.contentType](e.start),u=a.events,c=[],m={},p,b,k=-1,w=e,x=0,T=0,N=[T];for(;w;){for(;t[++i][1]!==w;);o.push(i),w._tokenizer||(p=n.sliceStream(w),w.next||p.push(null),b&&a.defineSkip(w.start),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),b=w,w=w.next}for(w=e;++k<u.length;)u[k][0]==="exit"&&u[k-1][0]==="enter"&&u[k][1].type===u[k-1][1].type&&u[k][1].start.line!==u[k][1].end.line&&(T=k+1,N.push(T),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(a.events=[],w?(w._tokenizer=void 0,w.previous=void 0):N.pop(),k=N.length;k--;){let D=u.slice(N[k],N[k+1]),X=o.pop();c.unshift([X,X+D.length-1]),gt(t,X,2,D)}for(k=-1;++k<c.length;)m[x+c[k][0]]=x+c[k][1],x+=c[k][1]-c[k][0]-1;return m}var wu={tokenize:sk,resolve:ok},ik={tokenize:ak,partial:!0};function ok(t){return Zs(t),t}function sk(t,r){let e;return n;function n(u){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):ae(u)?t.check(ik,a,o)(u):(t.consume(u),i)}function o(u){return t.exit("chunkContent"),t.exit("content"),r(u)}function a(u){return t.consume(u),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,i}}function ak(t,r,e){let n=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ye(t,o,"linePrefix")}function o(a){if(a===null||ae(a))return e(a);let u=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?r(a):t.interrupt(n.parser.constructs.flow,e,r)(a)}}function Js(t,r,e,n,i,o,a,u,c){let m=c||Number.POSITIVE_INFINITY,p=0;return b;function b(D){return D===60?(t.enter(n),t.enter(i),t.enter(o),t.consume(D),t.exit(o),k):D===null||D===41||Mn(D)?e(D):(t.enter(n),t.enter(a),t.enter(u),t.enter("chunkString",{contentType:"string"}),T(D))}function k(D){return D===62?(t.enter(o),t.consume(D),t.exit(o),t.exit(i),t.exit(n),r):(t.enter(u),t.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===62?(t.exit("chunkString"),t.exit(u),k(D)):D===null||D===60||ae(D)?e(D):(t.consume(D),D===92?x:w)}function x(D){return D===60||D===62||D===92?(t.consume(D),w):w(D)}function T(D){return D===40?++p>m?e(D):(t.consume(D),T):D===41?p--?(t.consume(D),T):(t.exit("chunkString"),t.exit(u),t.exit(a),t.exit(n),r(D)):D===null||Ve(D)?p?e(D):(t.exit("chunkString"),t.exit(u),t.exit(a),t.exit(n),r(D)):Mn(D)?e(D):(t.consume(D),D===92?N:T)}function N(D){return D===40||D===41||D===92?(t.consume(D),T):T(D)}}function Qs(t,r,e,n,i,o){let a=this,u=0,c;return m;function m(w){return t.enter(n),t.enter(i),t.consume(w),t.exit(i),t.enter(o),p}function p(w){return w===null||w===91||w===93&&!c||w===94&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs||u>999?e(w):w===93?(t.exit(o),t.enter(i),t.consume(w),t.exit(i),t.exit(n),r):ae(w)?(t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),p):(t.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===null||w===91||w===93||ae(w)||u++>999?(t.exit("chunkString"),p(w)):(t.consume(w),c=c||!Ie(w),w===92?k:b)}function k(w){return w===91||w===92||w===93?(t.consume(w),u++,b):b(w)}}function Xs(t,r,e,n,i,o){let a;return u;function u(k){return t.enter(n),t.enter(i),t.consume(k),t.exit(i),a=k===40?41:k,c}function c(k){return k===a?(t.enter(i),t.consume(k),t.exit(i),t.exit(n),r):(t.enter(o),m(k))}function m(k){return k===a?(t.exit(o),c(a)):k===null?e(k):ae(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),ye(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===a||k===null||ae(k)?(t.exit("chunkString"),m(k)):(t.consume(k),k===92?b:p)}function b(k){return k===a||k===92?(t.consume(k),p):p(k)}}function vi(t,r){let e;return n;function n(i){return ae(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e=!0,n):Ie(i)?ye(t,n,e?"linePrefix":"lineSuffix")(i):r(i)}}function Qt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var ku={name:"definition",tokenize:uk},lk={tokenize:ck,partial:!0};function uk(t,r,e){let n=this,i;return o;function o(c){return t.enter("definition"),Qs.call(n,t,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function a(c){return i=Qt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),c===58?(t.enter("definitionMarker"),t.consume(c),t.exit("definitionMarker"),vi(t,Js(t,t.attempt(lk,ye(t,u,"whitespace"),ye(t,u,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(c)}function u(c){return c===null||ae(c)?(t.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),r(c)):e(c)}}function ck(t,r,e){return n;function n(a){return Ve(a)?vi(t,i)(a):e(a)}function i(a){return a===34||a===39||a===40?Xs(t,ye(t,o,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):e(a)}function o(a){return a===null||ae(a)?r(a):e(a)}}var vu={name:"hardBreakEscape",tokenize:fk};function fk(t,r,e){return n;function n(o){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(o),i}function i(o){return ae(o)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),r(o)):e(o)}}var xu={name:"headingAtx",tokenize:dk,resolve:pk};function pk(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"},gt(t,n,e-n+1,[["enter",i,r],["enter",o,r],["exit",o,r],["exit",i,r]])),t}function dk(t,r,e){let n=this,i=0;return o;function o(p){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&i++<6?(t.consume(p),a):p===null||Ve(p)?(t.exit("atxHeadingSequence"),n.interrupt?r(p):u(p)):e(p)}function u(p){return p===35?(t.enter("atxHeadingSequence"),c(p)):p===null||ae(p)?(t.exit("atxHeading"),r(p)):Ie(p)?ye(t,u,"whitespace")(p):(t.enter("atxHeadingText"),m(p))}function c(p){return p===35?(t.consume(p),c):(t.exit("atxHeadingSequence"),u(p))}function m(p){return p===null||p===35||Ve(p)?(t.exit("atxHeadingText"),u(p)):(t.consume(p),m)}}var Bd=["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"],Cu=["pre","script","style","textarea"];var Eu={name:"htmlFlow",tokenize:gk,resolveTo:hk,concrete:!0},mk={tokenize:yk,partial:!0};function hk(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 gk(t,r,e){let n=this,i,o,a,u,c;return m;function m(q){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(q),p}function p(q){return q===33?(t.consume(q),b):q===47?(t.consume(q),x):q===63?(t.consume(q),i=3,n.interrupt?r:et):Jt(q)?(t.consume(q),a=String.fromCharCode(q),o=!0,T):e(q)}function b(q){return q===45?(t.consume(q),i=2,k):q===91?(t.consume(q),i=5,a="CDATA[",u=0,w):Jt(q)?(t.consume(q),i=4,n.interrupt?r:et):e(q)}function k(q){return q===45?(t.consume(q),n.interrupt?r:et):e(q)}function w(q){return q===a.charCodeAt(u++)?(t.consume(q),u===a.length?n.interrupt?r:xe:w):e(q)}function x(q){return Jt(q)?(t.consume(q),a=String.fromCharCode(q),T):e(q)}function T(q){return q===null||q===47||q===62||Ve(q)?q!==47&&o&&Cu.includes(a.toLowerCase())?(i=1,n.interrupt?r(q):xe(q)):Bd.includes(a.toLowerCase())?(i=6,q===47?(t.consume(q),N):n.interrupt?r(q):xe(q)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(q):o?X(q):D(q)):q===45||Tt(q)?(t.consume(q),a+=String.fromCharCode(q),T):e(q)}function N(q){return q===62?(t.consume(q),n.interrupt?r:xe):e(q)}function D(q){return Ie(q)?(t.consume(q),D):ke(q)}function X(q){return q===47?(t.consume(q),ke):q===58||q===95||Jt(q)?(t.consume(q),ee):Ie(q)?(t.consume(q),X):ke(q)}function ee(q){return q===45||q===46||q===58||q===95||Tt(q)?(t.consume(q),ee):de(q)}function de(q){return q===61?(t.consume(q),fe):Ie(q)?(t.consume(q),de):X(q)}function fe(q){return q===null||q===60||q===61||q===62||q===96?e(q):q===34||q===39?(t.consume(q),c=q,Z):Ie(q)?(t.consume(q),fe):(c=null,me(q))}function Z(q){return q===null||ae(q)?e(q):q===c?(t.consume(q),we):(t.consume(q),Z)}function me(q){return q===null||q===34||q===39||q===60||q===61||q===62||q===96||Ve(q)?de(q):(t.consume(q),me)}function we(q){return q===47||q===62||Ie(q)?X(q):e(q)}function ke(q){return q===62?(t.consume(q),Fe):e(q)}function Fe(q){return Ie(q)?(t.consume(q),Fe):q===null||ae(q)?xe(q):e(q)}function xe(q){return q===45&&i===2?(t.consume(q),He):q===60&&i===1?(t.consume(q),U):q===62&&i===4?(t.consume(q),Ue):q===63&&i===3?(t.consume(q),et):q===93&&i===5?(t.consume(q),Re):ae(q)&&(i===6||i===7)?t.check(mk,Ue,Ce)(q):q===null||ae(q)?Ce(q):(t.consume(q),xe)}function Ce(q){return t.exit("htmlFlowData"),ue(q)}function ue(q){return q===null?O(q):ae(q)?t.attempt({tokenize:$e,partial:!0},ue,O)(q):(t.enter("htmlFlowData"),xe(q))}function $e(q,Bt,kt){return nt;function nt(ct){return q.enter("lineEnding"),q.consume(ct),q.exit("lineEnding"),ut}function ut(ct){return n.parser.lazy[n.now().line]?kt(ct):Bt(ct)}}function He(q){return q===45?(t.consume(q),et):xe(q)}function U(q){return q===47?(t.consume(q),a="",st):xe(q)}function st(q){return q===62&&Cu.includes(a.toLowerCase())?(t.consume(q),Ue):Jt(q)&&a.length<8?(t.consume(q),a+=String.fromCharCode(q),st):xe(q)}function Re(q){return q===93?(t.consume(q),et):xe(q)}function et(q){return q===62?(t.consume(q),Ue):q===45&&i===2?(t.consume(q),et):xe(q)}function Ue(q){return q===null||ae(q)?(t.exit("htmlFlowData"),O(q)):(t.consume(q),Ue)}function O(q){return t.exit("htmlFlow"),r(q)}}function yk(t,r,e){return n;function n(i){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),t.attempt(dn,r,e)}}var _u={name:"htmlText",tokenize:bk};function bk(t,r,e){let n=this,i,o,a,u;return c;function c(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),m}function m(O){return O===33?(t.consume(O),p):O===47?(t.consume(O),me):O===63?(t.consume(O),fe):Jt(O)?(t.consume(O),Fe):e(O)}function p(O){return O===45?(t.consume(O),b):O===91?(t.consume(O),o="CDATA[",a=0,N):Jt(O)?(t.consume(O),de):e(O)}function b(O){return O===45?(t.consume(O),k):e(O)}function k(O){return O===null||O===62?e(O):O===45?(t.consume(O),w):x(O)}function w(O){return O===null||O===62?e(O):x(O)}function x(O){return O===null?e(O):O===45?(t.consume(O),T):ae(O)?(u=x,Re(O)):(t.consume(O),x)}function T(O){return O===45?(t.consume(O),Ue):x(O)}function N(O){return O===o.charCodeAt(a++)?(t.consume(O),a===o.length?D:N):e(O)}function D(O){return O===null?e(O):O===93?(t.consume(O),X):ae(O)?(u=D,Re(O)):(t.consume(O),D)}function X(O){return O===93?(t.consume(O),ee):D(O)}function ee(O){return O===62?Ue(O):O===93?(t.consume(O),ee):D(O)}function de(O){return O===null||O===62?Ue(O):ae(O)?(u=de,Re(O)):(t.consume(O),de)}function fe(O){return O===null?e(O):O===63?(t.consume(O),Z):ae(O)?(u=fe,Re(O)):(t.consume(O),fe)}function Z(O){return O===62?Ue(O):fe(O)}function me(O){return Jt(O)?(t.consume(O),we):e(O)}function we(O){return O===45||Tt(O)?(t.consume(O),we):ke(O)}function ke(O){return ae(O)?(u=ke,Re(O)):Ie(O)?(t.consume(O),ke):Ue(O)}function Fe(O){return O===45||Tt(O)?(t.consume(O),Fe):O===47||O===62||Ve(O)?xe(O):e(O)}function xe(O){return O===47?(t.consume(O),Ue):O===58||O===95||Jt(O)?(t.consume(O),Ce):ae(O)?(u=xe,Re(O)):Ie(O)?(t.consume(O),xe):Ue(O)}function Ce(O){return O===45||O===46||O===58||O===95||Tt(O)?(t.consume(O),Ce):ue(O)}function ue(O){return O===61?(t.consume(O),$e):ae(O)?(u=ue,Re(O)):Ie(O)?(t.consume(O),ue):xe(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):ae(O)?(u=$e,Re(O)):Ie(O)?(t.consume(O),$e):(t.consume(O),i=void 0,st)}function He(O){return O===i?(t.consume(O),U):O===null?e(O):ae(O)?(u=He,Re(O)):(t.consume(O),He)}function U(O){return O===62||O===47||Ve(O)?xe(O):e(O)}function st(O){return O===null||O===34||O===39||O===60||O===61||O===96?e(O):O===62||Ve(O)?xe(O):(t.consume(O),st)}function Re(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),ye(t,et,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function et(O){return t.enter("htmlTextData"),u(O)}function Ue(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),r):e(O)}}var xi={name:"labelEnd",tokenize:Ck,resolveTo:xk,resolveAll:vk},$k={tokenize:Ek},wk={tokenize:_k},kk={tokenize:Ak};function vk(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 xk(t,r){let e=t.length,n=0,i,o,a,u;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 c={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},m={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[a][1].end)},p={type:"labelText",start:Object.assign({},t[o+n+2][1].end),end:Object.assign({},t[a-2][1].start)};return u=[["enter",c,r],["enter",m,r]],u=ar(u,t.slice(o+1,o+n+3)),u=ar(u,[["enter",p,r]]),u=ar(u,Un(r.parser.constructs.insideSpan.null,t.slice(o+n+4,a-3),r)),u=ar(u,[["exit",p,r],t[a-2],t[a-1],["exit",m,r]]),u=ar(u,t.slice(a+1)),u=ar(u,[["exit",c,r]]),gt(t,o,t.length,u),t}function Ck(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 u;function u(p){return o?o._inactive?m(p):(a=n.parser.defined.includes(Qt(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),c):e(p)}function c(p){return p===40?t.attempt($k,r,a?r:m)(p):p===91?t.attempt(wk,r,a?t.attempt(kk,r,m):m)(p):a?r(p):m(p)}function m(p){return o._balanced=!0,e(p)}}function Ek(t,r,e){return n;function n(c){return t.enter("resource"),t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),vi(t,i)}function i(c){return c===41?u(c):Js(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return Ve(c)?vi(t,a)(c):u(c)}function a(c){return c===34||c===39||c===40?Xs(t,vi(t,u),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):u(c)}function u(c){return c===41?(t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),t.exit("resource"),r):e(c)}}function _k(t,r,e){let n=this;return i;function i(a){return Qs.call(n,t,o,e,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(Qt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?r(a):e(a)}}function Ak(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 Au={name:"labelStartImage",tokenize:Sk,resolveAll:xi.resolveAll};function Sk(t,r,e){let n=this;return i;function i(u){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(u),t.exit("labelImageMarker"),o}function o(u){return u===91?(t.enter("labelMarker"),t.consume(u),t.exit("labelMarker"),t.exit("labelImage"),a):e(u)}function a(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(u):r(u)}}var Su={name:"labelStartLink",tokenize:Pk,resolveAll:xi.resolveAll};function Pk(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 Uo={name:"lineEnding",tokenize:Tk};function Tk(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ye(t,r,"linePrefix")}}var Ci={name:"thematicBreak",tokenize:Ik};function Ik(t,r,e){let n=0,i;return o;function o(c){return t.enter("thematicBreak"),i=c,a(c)}function a(c){return c===i?(t.enter("thematicBreakSequence"),u(c)):Ie(c)?ye(t,a,"whitespace")(c):n<3||c!==null&&!ae(c)?e(c):(t.exit("thematicBreak"),r(c))}function u(c){return c===i?(t.consume(c),n++,u):(t.exit("thematicBreakSequence"),a(c))}}var Xt={name:"list",tokenize:qk,continuation:{tokenize:Dk},exit:Rk},Fk={tokenize:Lk,partial:!0},Ok={tokenize:Nk,partial:!0};function qk(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 u;function u(w){let x=n.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!n.containerState.marker||w===n.containerState.marker:$i(w)){if(n.containerState.type||(n.containerState.type=x,t.enter(x,{_container:!0})),x==="listUnordered")return t.enter("listItemPrefix"),w===42||w===45?t.check(Ci,e,m)(w):m(w);if(!n.interrupt||w===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(w)}return e(w)}function c(w){return $i(w)&&++a<10?(t.consume(w),c):(!n.interrupt||a<2)&&(n.containerState.marker?w===n.containerState.marker:w===41||w===46)?(t.exit("listItemValue"),m(w)):e(w)}function m(w){return t.enter("listItemMarker"),t.consume(w),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||w,t.check(dn,n.interrupt?e:p,t.attempt(Fk,k,b))}function p(w){return n.containerState.initialBlankLine=!0,o++,k(w)}function b(w){return Ie(w)?(t.enter("listItemPrefixWhitespace"),t.consume(w),t.exit("listItemPrefixWhitespace"),k):e(w)}function k(w){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(w)}}function Dk(t,r,e){let n=this;return n.containerState._closeFlow=void 0,t.check(dn,i,o);function i(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ye(t,r,"listItemIndent",n.containerState.size+1)(u)}function o(u){return n.containerState.furtherBlankLines||!Ie(u)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(u)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Ok,r,a)(u))}function a(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,ye(t,t.attempt(Xt,r,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Nk(t,r,e){let n=this;return ye(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 Rk(t){t.exit(this.containerState.type)}function Lk(t,r,e){let n=this;return ye(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!Ie(o)&&a&&a[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var Ys={name:"setextUnderline",tokenize:Bk,resolveTo:jk};function jk(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 Bk(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 u;function u(p){return!n.parser.lazy[n.now().line]&&(n.interrupt||a)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),o=p,c(p)):e(p)}function c(p){return p===o?(t.consume(p),c):(t.exit("setextHeadingLineSequence"),ye(t,m,"lineSuffix")(p))}function m(p){return p===null||ae(p)?(t.exit("setextHeadingLine"),r(p)):e(p)}}var zd={tokenize:zk};function zk(t){let r=this,e=t.attempt(dn,n,t.attempt(this.parser.constructs.flowInitial,i,ye(t,t.attempt(this.parser.constructs.flow,i,t.attempt(wu,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 Md={resolveAll:Gd()},Vd=Hd("string"),Ud=Hd("text");function Hd(t){return{tokenize:r,resolveAll:Gd(t==="text"?Mk:void 0)};function r(e){let n=this,i=this.parser.constructs[t],o=e.attempt(i,a,u);return a;function a(p){return m(p)?o(p):u(p)}function u(p){if(p===null){e.consume(p);return}return e.enter("data"),e.consume(p),c}function c(p){return m(p)?(e.exit("data"),o(p)):(e.consume(p),c)}function m(p){if(p===null)return!0;let b=i[p],k=-1;if(b)for(;++k<b.length;){let w=b[k];if(!w.previous||w.previous.call(n,n.previous))return!0}return!1}}}function Gd(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 Mk(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,u=0,c;for(;o--;){let m=i[o];if(typeof m=="string"){for(a=m.length;m.charCodeAt(a-1)===32;)u++,a--;if(a)break;a=-1}else if(m===-2)c=!0,u++;else if(m!==-1){o++;break}}if(u){let m={type:e===t.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-u,offset:n.end.offset-u,_index:n.start._index+o,_bufferIndex:o?a:n.start._bufferIndex+a},end:Object.assign({},n.end)};n.end=Object.assign({},m.start),n.start.offset===n.end.offset?Object.assign(n,m):(t.splice(e,0,["enter",m,r],["exit",m,r]),e+=2)}e++}return t}function Kd(t,r,e){let n=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],a=[],u=[],c=!0,m={consume:de,enter:fe,exit:Z,attempt:ke(me),check:ke(we),interrupt:ke(we,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:T,sliceSerialize:x,now:N,defineSkip:D,write:w},b=r.tokenize.call(p,m),k;return r.resolveAll&&o.push(r),p;function w(ue){return a=ar(a,ue),X(),a[a.length-1]!==null?[]:(Fe(r,0),p.events=Un(o,p.events,p),p.events)}function x(ue,$e){return Uk(T(ue),$e)}function T(ue){return Vk(a,ue)}function N(){return Object.assign({},n)}function D(ue){i[ue.line]=ue.column,Ce()}function X(){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;)ee($e.charCodeAt(n._bufferIndex));else ee($e)}}function ee(ue){c=void 0,k=ue,b=b(ue)}function de(ue){ae(ue)?(n.line++,n.column=1,n.offset+=ue===-3?2:1,Ce()):ue!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),p.previous=ue,c=!0}function fe(ue,$e){let He=$e||{};return He.type=ue,He.start=N(),p.events.push(["enter",He,p]),u.push(He),He}function Z(ue){let $e=u.pop();return $e.end=N(),p.events.push(["exit",$e,p]),$e}function me(ue,$e){Fe(ue,$e.from)}function we(ue,$e){$e.restore()}function ke(ue,$e){return He;function He(U,st,Re){let et,Ue,O,q;return Array.isArray(U)?kt(U):"tokenize"in U?kt([U]):Bt(U);function Bt(be){return br;function br(Ct){let It=Ct!==null&&be[Ct],Yt=Ct!==null&&be.null,lr=[...Array.isArray(It)?It:It?[It]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return kt(lr)(Ct)}}function kt(be){return et=be,Ue=0,be.length===0?Re:nt(be[Ue])}function nt(be){return br;function br(Ct){return q=xe(),O=be,be.partial||(p.currentConstruct=be),be.name&&p.parser.constructs.disable.null.includes(be.name)?ct(Ct):be.tokenize.call($e?Object.assign(Object.create(p),$e):p,m,ut,ct)(Ct)}}function ut(be){return c=!0,ue(O,q),st}function ct(be){return c=!0,q.restore(),++Ue<et.length?nt(et[Ue]):Re}}}function Fe(ue,$e){ue.resolveAll&&!o.includes(ue)&&o.push(ue),ue.resolve&>(p.events,$e,p.events.length-$e,ue.resolve(p.events.slice($e),p)),ue.resolveTo&&(p.events=ue.resolveTo(p.events,p))}function xe(){let ue=N(),$e=p.previous,He=p.currentConstruct,U=p.events.length,st=Array.from(u);return{restore:Re,from:U};function Re(){n=ue,p.previous=$e,p.currentConstruct=He,p.events.length=U,u=st,Ce()}}function Ce(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Vk(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 Uk(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
|
+
`;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 Pu={};mc(Pu,{attentionMarkers:()=>Xk,contentInitial:()=>Gk,disable:()=>Yk,document:()=>Hk,flow:()=>Wk,flowInitial:()=>Kk,insideSpan:()=>Qk,string:()=>Zk,text:()=>Jk});var Hk={[42]:Xt,[43]:Xt,[45]:Xt,[48]:Xt,[49]:Xt,[50]:Xt,[51]:Xt,[52]:Xt,[53]:Xt,[54]:Xt,[55]:Xt,[56]:Xt,[57]:Xt,[62]:Hs},Gk={[91]:ku},Kk={[-2]:Vo,[-1]:Vo,[32]:Vo},Wk={[35]:xu,[42]:Ci,[45]:[Ys,Ci],[60]:Eu,[61]:Ys,[95]:Ci,[96]:Ws,[126]:Ws},Zk={[38]:Ks,[92]:Gs},Jk={[-5]:Uo,[-4]:Uo,[-3]:Uo,[33]:Au,[38]:Ks,[42]:Mo,[60]:[yu,_u],[91]:Su,[92]:[vu,Gs],[93]:xi,[95]:Mo,[96]:$u},Qk={null:[Mo,Md]},Xk={null:[42,95]},Yk={null:[]};function Wd(t={}){let r=Us([Pu].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(Nd),document:n(Ld),flow:n(zd),string:n(Vd),text:n(Ud)};return e;function n(i){return o;function o(a){return Kd(e,i,a)}}}var Zd=/[\0\t\n\r]/g;function Jd(){let t=1,r="",e=!0,n;return i;function i(o,a,u){let c=[],m,p,b,k,w;for(o=r+o.toString(a),b=0,r="",e&&(o.charCodeAt(0)===65279&&b++,e=void 0);b<o.length;){if(Zd.lastIndex=b,m=Zd.exec(o),k=m&&m.index!==void 0?m.index:o.length,w=o.charCodeAt(k),!m){r=o.slice(b);break}if(w===10&&b===k&&n)c.push(-3),n=void 0;else switch(n&&(c.push(-5),n=void 0),b<k&&(c.push(o.slice(b,k)),t+=k-b),w){case 0:{c.push(65533),t++;break}case 9:{for(p=Math.ceil(t/4)*4,c.push(-2);t++<p;)c.push(-1);break}case 10:{c.push(-4),t=1;break}default:n=!0,t=1}b=k+1}return u&&(n&&c.push(-5),r&&c.push(r),c.push(null)),c}}function Qd(t){for(;!Zs(t););return t}function ea(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 ta(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 ea(e.slice(o?2:1),o?16:10)}return to(e)||t}var Tu={}.hasOwnProperty,Iu=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),rv(e)(Qd(Wd(e).document().write(Jd()(t,r,!0))))};function rv(t={}){let r=Yd({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(vt),autolinkProtocol:Ce,autolinkEmail:Ce,atxHeading:c(ft),blockQuote:c(Yt),characterEscape:Ce,characterReference:Ce,codeFenced:c(lr),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:c(lr,m),codeText:c(zt,m),codeTextData:Ce,data:Ce,codeFlowValue:Ce,definition:c(Hn),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:c(Tn),hardBreakEscape:c(pt),hardBreakTrailing:c(pt),htmlFlow:c(Ft,m),htmlFlowData:Ce,htmlText:c(Ft,m),htmlTextData:Ce,image:c(dt),label:m,link:c(vt),listItem:c(Dr),listItemValue:T,listOrdered:c(qr,x),listUnordered:c(qr),paragraph:c(Nr),reference:ut,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:c(ft),strong:c(Rr),thematicBreak:c(er)},exit:{atxHeading:b(),atxHeadingSequence:we,autolink:b(),autolinkEmail:It,autolinkProtocol:Ct,blockQuote:b(),characterEscapeValue:ue,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:br,codeFenced:b(ee),codeFencedFence:X,codeFencedFenceInfo:N,codeFencedFenceMeta:D,codeFlowValue:ue,codeIndented:b(de),codeText:b(Re),codeTextData:ue,data:ue,definition:b(),definitionDestinationString:me,definitionLabelString:fe,definitionTitleString:Z,emphasis:b(),hardBreakEscape:b(He),hardBreakTrailing:b(He),htmlFlow:b(U),htmlFlowData:ue,htmlText:b(st),htmlTextData:ue,image:b(Ue),label:q,labelText:O,lineEnding:$e,link:b(et),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:ct,resourceDestinationString:Bt,resourceTitleString:kt,resource:nt,setextHeading:b(xe),setextHeadingLineSequence:Fe,setextHeadingText:ke,strong:b(),thematicBreak:b()}},t.mdastExtensions||[]),e={};return n;function n(K){let re={type:"root",children:[]},ge=[re],Ae=[],xt=[],xr={stack:ge,tokenStack:Ae,config:r,enter:p,exit:k,buffer:m,resume:w,setData:o,getData:a},ze=-1;for(;++ze<K.length;)if(K[ze][1].type==="listOrdered"||K[ze][1].type==="listUnordered")if(K[ze][0]==="enter")xt.push(ze);else{let it=xt.pop();ze=i(K,it,ze)}for(ze=-1;++ze<K.length;){let it=r[K[ze][0]];Tu.call(it,K[ze][1].type)&&it[K[ze][1].type].call(Object.assign({sliceSerialize:K[ze][2].sliceSerialize},xr),K[ze][1])}if(Ae.length>0){let it=Ae[Ae.length-1];(it[1]||Xd).call(xr,void 0,it[0])}for(re.position={start:u(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:u(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<r.transforms.length;)re=r.transforms[ze](re)||re;return re}function i(K,re,ge){let Ae=re-1,xt=-1,xr=!1,ze,it,mt,jr;for(;++Ae<=ge;){let Qe=K[Ae];if(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered"||Qe[1].type==="blockQuote"?(Qe[0]==="enter"?xt++:xt--,jr=void 0):Qe[1].type==="lineEndingBlank"?Qe[0]==="enter"&&(ze&&!jr&&!xt&&!mt&&(mt=Ae),jr=void 0):Qe[1].type==="linePrefix"||Qe[1].type==="listItemValue"||Qe[1].type==="listItemMarker"||Qe[1].type==="listItemPrefix"||Qe[1].type==="listItemPrefixWhitespace"||(jr=void 0),!xt&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||xt===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(ze){let tn=Ae;for(it=void 0;tn--;){let Et=K[tn];if(Et[1].type==="lineEnding"||Et[1].type==="lineEndingBlank"){if(Et[0]==="exit")continue;it&&(K[it][1].type="lineEndingBlank",xr=!0),Et[1].type="lineEnding",it=tn}else if(!(Et[1].type==="linePrefix"||Et[1].type==="blockQuotePrefix"||Et[1].type==="blockQuotePrefixWhitespace"||Et[1].type==="blockQuoteMarker"||Et[1].type==="listItemIndent"))break}mt&&(!it||mt<it)&&(ze._spread=!0),ze.end=Object.assign({},it?K[it][1].start:Qe[1].end),K.splice(it||Ae,0,["exit",ze,Qe[2]]),Ae++,ge++}Qe[1].type==="listItemPrefix"&&(ze={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start)},K.splice(Ae,0,["enter",ze,Qe[2]]),Ae++,ge++,mt=void 0,jr=!0)}}return K[re][1]._spread=xr,ge}function o(K,re){e[K]=re}function a(K){return e[K]}function u(K){return{line:K.line,column:K.column,offset:K.offset}}function c(K,re){return ge;function ge(Ae){p.call(this,K(Ae),Ae),re&&re.call(this,Ae)}}function m(){this.stack.push({type:"fragment",children:[]})}function p(K,re,ge){return this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([re,ge]),K.position={start:u(re.start)},K}function b(K){return re;function re(ge){K&&K.call(this,ge),k.call(this,ge)}}function k(K,re){let ge=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==K.type&&(re?re.call(this,K,Ae[0]):(Ae[1]||Xd).call(this,K,Ae[0]));else throw new Error("Cannot close `"+K.type+"` ("+bi({start:K.start,end:K.end})+"): it\u2019s not open");return ge.position.end=u(K.end),ge}function w(){return Td(this.stack.pop())}function x(){o("expectingFirstListItemValue",!0)}function T(K){if(a("expectingFirstListItemValue")){let re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(K),10),o("expectingFirstListItemValue")}}function N(){let K=this.resume(),re=this.stack[this.stack.length-1];re.lang=K}function D(){let K=this.resume(),re=this.stack[this.stack.length-1];re.meta=K}function X(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function ee(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function de(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/(\r?\n|\r)$/g,"")}function fe(K){let re=this.resume(),ge=this.stack[this.stack.length-1];ge.label=re,ge.identifier=Qt(this.sliceSerialize(K)).toLowerCase()}function Z(){let K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function me(){let K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function we(K){let re=this.stack[this.stack.length-1];if(!re.depth){let ge=this.sliceSerialize(K).length;re.depth=ge}}function ke(){o("setextHeadingSlurpLineEnding",!0)}function Fe(K){let re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(K).charCodeAt(0)===61?1:2}function xe(){o("setextHeadingSlurpLineEnding")}function Ce(K){let re=this.stack[this.stack.length-1],ge=re.children[re.children.length-1];(!ge||ge.type!=="text")&&(ge=Lr(),ge.position={start:u(K.start)},re.children.push(ge)),this.stack.push(ge)}function ue(K){let re=this.stack.pop();re.value+=this.sliceSerialize(K),re.position.end=u(K.end)}function $e(K){let re=this.stack[this.stack.length-1];if(a("atHardBreak")){let ge=re.children[re.children.length-1];ge.position.end=u(K.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(re.type)&&(Ce.call(this,K),ue.call(this,K))}function He(){o("atHardBreak",!0)}function U(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function st(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function Re(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function et(){let K=this.stack[this.stack.length-1];a("inReference")?(K.type+="Reference",K.referenceType=a("referenceType")||"shortcut",delete K.url,delete K.title):(delete K.identifier,delete K.label),o("referenceType")}function Ue(){let K=this.stack[this.stack.length-1];a("inReference")?(K.type+="Reference",K.referenceType=a("referenceType")||"shortcut",delete K.url,delete K.title):(delete K.identifier,delete K.label),o("referenceType")}function O(K){let re=this.stack[this.stack.length-2],ge=this.sliceSerialize(K);re.label=ta(ge),re.identifier=Qt(ge).toLowerCase()}function q(){let K=this.stack[this.stack.length-1],re=this.resume(),ge=this.stack[this.stack.length-1];o("inReference",!0),ge.type==="link"?ge.children=K.children:ge.alt=re}function Bt(){let K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function kt(){let K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function nt(){o("inReference")}function ut(){o("referenceType","collapsed")}function ct(K){let re=this.resume(),ge=this.stack[this.stack.length-1];ge.label=re,ge.identifier=Qt(this.sliceSerialize(K)).toLowerCase(),o("referenceType","full")}function be(K){o("characterReferenceType",K.type)}function br(K){let re=this.sliceSerialize(K),ge=a("characterReferenceType"),Ae;ge?(Ae=ea(re,ge==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Ae=to(re);let xt=this.stack.pop();xt.value+=Ae,xt.position.end=u(K.end)}function Ct(K){ue.call(this,K);let re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(K)}function It(K){ue.call(this,K);let re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(K)}function Yt(){return{type:"blockquote",children:[]}}function lr(){return{type:"code",lang:null,meta:null,value:""}}function zt(){return{type:"inlineCode",value:""}}function Hn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Tn(){return{type:"emphasis",children:[]}}function ft(){return{type:"heading",depth:void 0,children:[]}}function pt(){return{type:"break"}}function Ft(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function vt(){return{type:"link",title:null,url:"",children:[]}}function qr(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Dr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Nr(){return{type:"paragraph",children:[]}}function Rr(){return{type:"strong",children:[]}}function Lr(){return{type:"text",value:""}}function er(){return{type:"thematicBreak"}}}function Yd(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?Yd(t,n):nv(t,n)}return t}function nv(t,r){let e;for(e in r)if(Tu.call(r,e)){let n=e==="canContainEols"||e==="transforms",o=(Tu.call(t,e)?t[e]:void 0)||(t[e]=n?[]:{}),a=r[e];a&&(n?t[e]=[...o,...a]:Object.assign(o,a))}}function Xd(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+bi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+bi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+bi({start:r.start,end:r.end})+") is still open")}function Fu(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return Iu(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var em=Fu;var iv={tokenize:lv,partial:!0},rm={tokenize:uv,partial:!0},nm={tokenize:cv,partial:!0},ro={tokenize:pv,partial:!0},im={tokenize:fv,partial:!0},om={tokenize:sv,previous:lm},sm={tokenize:av,previous:Du},Pn={tokenize:ov,previous:um},mn={},Ou={text:mn},Ei=48;for(;Ei<123;)mn[Ei]=Pn,Ei++,Ei===58?Ei=65:Ei===91&&(Ei=97);mn[43]=Pn;mn[45]=Pn;mn[46]=Pn;mn[95]=Pn;mn[72]=[Pn,sm];mn[104]=[Pn,sm];mn[87]=[Pn,om];mn[119]=[Pn,om];function ov(t,r,e){let n=this,i,o;return a;function a(w){return!tm(w)||!um(n.previous)||Nu(n.events)?e(w):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(w))}function u(w){return tm(w)?(t.consume(w),u):w===64?(t.consume(w),c):e(w)}function c(w){return w===46?t.check(ro,k,m)(w):w===45||w===95?t.check(ro,e,p)(w):Tt(w)?(!o&&$i(w)&&(o=!0),t.consume(w),c):k(w)}function m(w){return t.consume(w),i=!0,o=void 0,c}function p(w){return t.consume(w),b}function b(w){return w===46?t.check(ro,e,m)(w):c(w)}function k(w){return i&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(w)):e(w)}}function sv(t,r,e){let n=this;return i;function i(a){return a!==87&&a!==119||!lm(n.previous)||Nu(n.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(iv,t.attempt(rm,t.attempt(nm,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(x){return x!==72&&x!==104||!Du(n.previous)||Nu(n.events)?e(x):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(x),o)}function o(x){return x===84||x===116?(t.consume(x),a):e(x)}function a(x){return x===84||x===116?(t.consume(x),u):e(x)}function u(x){return x===80||x===112?(t.consume(x),c):e(x)}function c(x){return x===83||x===115?(t.consume(x),m):m(x)}function m(x){return x===58?(t.consume(x),p):e(x)}function p(x){return x===47?(t.consume(x),b):e(x)}function b(x){return x===47?(t.consume(x),k):e(x)}function k(x){return x===null||Mn(x)||wi(x)||ki(x)?e(x):t.attempt(rm,t.attempt(nm,w),e)(x)}function w(x){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(x)}}function lv(t,r,e){return n;function n(c){return t.consume(c),i}function i(c){return c===87||c===119?(t.consume(c),o):e(c)}function o(c){return c===87||c===119?(t.consume(c),a):e(c)}function a(c){return c===46?(t.consume(c),u):e(c)}function u(c){return c===null||ae(c)?e(c):r(c)}}function uv(t,r,e){let n,i;return o;function o(c){return c===38?t.check(im,u,a)(c):c===46||c===95?t.check(ro,u,a)(c):c===null||Mn(c)||wi(c)||c!==45&&ki(c)?u(c):(t.consume(c),o)}function a(c){return c===46?(i=n,n=void 0,t.consume(c),o):(c===95&&(n=!0),t.consume(c),o)}function u(c){return!i&&!n?r(c):e(c)}}function cv(t,r){let e=0;return n;function n(a){return a===38?t.check(im,r,i)(a):(a===40&&e++,a===41?t.check(ro,o,i)(a):qu(a)?r(a):am(a)?t.check(ro,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 Jt(a)?(t.consume(a),i):a===59?(t.consume(a),o):e(a)}function o(a){return qu(a)?r(a):e(a)}}function pv(t,r,e){return n;function n(o){return t.consume(o),i}function i(o){return am(o)?(t.consume(o),i):qu(o)?r(o):e(o)}}function am(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 qu(t){return t===null||t===60||Ve(t)}function tm(t){return t===43||t===45||t===46||t===95||Tt(t)}function lm(t){return t===null||t===40||t===42||t===95||t===126||Ve(t)}function Du(t){return t===null||!Jt(t)}function um(t){return t!==47&&Du(t)}function Nu(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:wv,partial:!0};function Ru(){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 c=n.events[i][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return u;function u(c){if(!a||!a._balanced)return e(c);let m=Qt(n.sliceSerialize({start:a.end,end:n.now()}));return m.charCodeAt(0)!==94||!o.includes(m.slice(1))?e(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),r(c))}}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)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[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",u,r],["exit",u,r],["exit",a,r],t[t.length-2],t[t.length-1],["exit",i,r]];return t.splice(e,t.length-e+1,...c),t}function gv(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,a;return u;function u(k){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(k),t.exit("gfmFootnoteCallLabelMarker"),c}function c(k){return k!==94?e(k):(t.enter("gfmFootnoteCallMarker"),t.consume(k),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(k){let w;return k===null||k===91||o++>999?e(k):k===93?a?(t.exit("chunkString"),w=t.exit("gfmFootnoteCallString"),i.includes(Qt(n.sliceSerialize(w)))?b(k):e(k)):e(k):(t.consume(k),Ve(k)||(a=!0),k===92?p:m)}function p(k){return k===91||k===92||k===93?(t.consume(k),o++,m):m(k)}function b(k){return t.enter("gfmFootnoteCallLabelMarker"),t.consume(k),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,u;return c;function c(T){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(T){return T===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),p):e(T)}function p(T){let N;return T===null||T===91||a>999?e(T):T===93?u?(N=t.exit("gfmFootnoteDefinitionLabelString"),o=Qt(n.sliceSerialize(N)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),w):e(T):ae(T)?(t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),a++,p):(t.enter("chunkString").contentType="string",b(T))}function b(T){return T===null||ae(T)||T===91||T===93||a>999?(t.exit("chunkString"),p(T)):(Ve(T)||(u=!0),a++,t.consume(T),T===92?k:b)}function k(T){return T===91||T===92||T===93?(t.consume(T),a++,b):b(T)}function w(T){return T===58?(t.enter("definitionMarker"),t.consume(T),t.exit("definitionMarker"),ye(t,x,"gfmFootnoteDefinitionWhitespace")):e(T)}function x(T){return i.includes(o)||i.push(o),r(T)}}function bv(t,r,e){return t.check(dn,r,t.attempt(dv,r,e))}function $v(t){t.exit("gfmFootnoteDefinition")}function wv(t,r,e){let n=this;return ye(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 Lu(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 u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let c=u;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[u][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";let m={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[u][1].end)},p={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[u][1].start)},b=[["enter",m,a],["enter",o[c][1],a],["exit",o[c][1],a],["enter",p,a]];gt(b,b.length,0,Un(a.parser.constructs.insideSpan.null,o.slice(c+1,u),a)),gt(b,b.length,0,[["exit",p,a],["enter",o[u][1],a],["exit",o[u][1],a],["exit",m,a]]),gt(o,c-1,u-c+3,b),u=c+b.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function i(o,a,u){let c=this.previous,m=this.events,p=0;return b;function b(w){return c===126&&m[m.length-1][1].type!=="characterEscape"?u(w):(o.enter("strikethroughSequenceTemporary"),k(w))}function k(w){let x=eo(c);if(w===126)return p>1?u(w):(o.consume(w),p++,k);if(p<2&&!r)return u(w);let T=o.exit("strikethroughSequenceTemporary"),N=eo(w);return T._open=!N||N===2&&Boolean(x),T._close=!x||x===2&&Boolean(N),a(w)}}}var ju={flow:{null:{tokenize:vv,resolve:kv}}},cm={tokenize:xv,partial:!0};function kv(t,r){let e=-1,n,i,o,a,u,c,m;for(;++e<t.length;){let p=t[e][1];if(o&&(p.type==="temporaryTableCellContent"&&(a=a||e,u=e),(p.type==="tableCellDivider"||p.type==="tableRow")&&u)){let b={type:"tableContent",start:t[a][1].start,end:t[u][1].end},k={type:"chunkText",start:b.start,end:b.end,contentType:"text"};t.splice(a,u-a+1,["enter",b,r],["enter",k,r],["exit",k,r],["exit",b,r]),e-=u-a-3,a=void 0,u=void 0}if(t[e][0]==="exit"&&c!==void 0&&c+(m?0:1)<e&&(p.type==="tableCellDivider"||p.type==="tableRow"&&(c+3<e||t[c][1].type!=="whitespace"))){let b={type:i?"tableDelimiter":n?"tableHeader":"tableData",start:t[c][1].start,end:t[e][1].end};t.splice(e+(p.type==="tableCellDivider"?1:0),0,["exit",b,r]),t.splice(c,0,["enter",b,r]),e+=2,c=e+1,m=!0}p.type==="tableRow"&&(o=t[e][0]==="enter",o&&(c=e+1,m=!1)),p.type==="tableDelimiterRow"&&(i=t[e][0]==="enter",i&&(c=e+1,m=!1)),p.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function vv(t,r,e){let n=this,i=[],o=0,a,u;return c;function c(U){return t.enter("table")._align=i,t.enter("tableHead"),t.enter("tableRow"),U===124?m(U):(o++,t.enter("temporaryTableCellContent"),k(U))}function m(U){return t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),a=!0,p}function p(U){return U===null||ae(U)?x(U):Ie(U)?(t.enter("whitespace"),t.consume(U),b):(a&&(a=void 0,o++),U===124?m(U):(t.enter("temporaryTableCellContent"),k(U)))}function b(U){return Ie(U)?(t.consume(U),b):(t.exit("whitespace"),p(U))}function k(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),p(U)):(t.consume(U),U===92?w:k)}function w(U){return U===92||U===124?(t.consume(U),k):k(U)}function x(U){if(U===null)return e(U);t.exit("tableRow"),t.exit("tableHead");let st=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:He,partial:!0},function(Re){return n.interrupt=st,t.enter("tableDelimiterRow"),T(Re)},function(Re){return n.interrupt=st,e(Re)})(U)}function T(U){return U===null||ae(U)?de(U):Ie(U)?(t.enter("whitespace"),t.consume(U),N):U===45?(t.enter("tableDelimiterFiller"),t.consume(U),u=!0,i.push("none"),D):U===58?(t.enter("tableDelimiterAlignment"),t.consume(U),t.exit("tableDelimiterAlignment"),i.push("left"),X):U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),T):e(U)}function N(U){return Ie(U)?(t.consume(U),N):(t.exit("whitespace"),T(U))}function D(U){return U===45?(t.consume(U),D):(t.exit("tableDelimiterFiller"),U===58?(t.enter("tableDelimiterAlignment"),t.consume(U),t.exit("tableDelimiterAlignment"),i[i.length-1]=i[i.length-1]==="left"?"center":"right",ee):T(U))}function X(U){return U===45?(t.enter("tableDelimiterFiller"),t.consume(U),u=!0,D):e(U)}function ee(U){return U===null||ae(U)?de(U):Ie(U)?(t.enter("whitespace"),t.consume(U),N):U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),T):e(U)}function de(U){return t.exit("tableDelimiterRow"),!u||o!==i.length?e(U):U===null?fe(U):t.check(cm,fe,t.attempt({tokenize:He,partial:!0},ye(t,Z,"linePrefix",4),fe))(U)}function fe(U){return t.exit("table"),r(U)}function Z(U){return t.enter("tableBody"),me(U)}function me(U){return t.enter("tableRow"),U===124?we(U):(t.enter("temporaryTableCellContent"),xe(U))}function we(U){return t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),ke}function ke(U){return U===null||ae(U)?ue(U):Ie(U)?(t.enter("whitespace"),t.consume(U),Fe):U===124?we(U):(t.enter("temporaryTableCellContent"),xe(U))}function Fe(U){return Ie(U)?(t.consume(U),Fe):(t.exit("whitespace"),ke(U))}function xe(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),ke(U)):(t.consume(U),U===92?Ce:xe)}function Ce(U){return U===92||U===124?(t.consume(U),xe):xe(U)}function ue(U){return t.exit("tableRow"),U===null?$e(U):t.check(cm,$e,t.attempt({tokenize:He,partial:!0},ye(t,me,"linePrefix",4),$e))(U)}function $e(U){return t.exit("tableBody"),fe(U)}function He(U,st,Re){return et;function et(O){return U.enter("lineEnding"),U.consume(O),U.exit("lineEnding"),ye(U,Ue,"linePrefix")}function Ue(O){if(n.parser.lazy[n.now().line]||O===null||ae(O))return Re(O);let q=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&q&&q[1].type==="linePrefix"&&q[2].sliceSerialize(q[1],!0).length>=4?Re(O):(n._gfmTableDynamicInterruptHack=!0,U.check(n.parser.constructs.flow,function(Bt){return n._gfmTableDynamicInterruptHack=!1,Re(Bt)},function(Bt){return n._gfmTableDynamicInterruptHack=!1,st(Bt)})(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||Ve(a)?r(a):e(a)}}var Cv={tokenize:Ev},Bu={text:{[91]:Cv}};function Ev(t,r,e){let n=this;return i;function i(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),o)}function o(u){return Ve(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),a):e(u)}function a(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:_v},r,e)):e(u)}}function _v(t,r,e){let n=this;return ye(t,i,"whitespace");function i(o){let a=n.events[n.events.length-1];return(a&&a[1].type==="whitespace"||ae(o))&&o!==null?r(o):e(o)}}function fm(t){return Us([Ou,Ru(),Lu(t),ju,Bu])}function zu(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 Mu(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ho=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 ra(t);throw new Error("Expected function, string, or object as test")};function Av(t){let r=[],e=-1;for(;++e<t.length;)r[e]=Ho(t[e]);return ra(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 ra(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function Pv(t){return ra(r);function r(e){return e&&e.type===t}}function ra(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function Tv(){return!0}function pm(t){return"\x1B[33m"+t+"\x1B[39m"}var Iv=!0,Fv="skip",dm=!1,mm=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let i=Ho(r),o=n?-1:1;a(t,null,[])();function a(u,c,m){let p=typeof u=="object"&&u!==null?u:{},b;return typeof p.type=="string"&&(b=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0,Object.defineProperty(k,"name",{value:"node ("+pm(p.type+(b?"<"+b+">":""))+")"})),k;function k(){let w=[],x,T,N;if((!r||i(u,c,m[m.length-1]||null))&&(w=Ov(e(u,m)),w[0]===dm))return w;if(u.children&&w[0]!==Fv)for(T=(n?u.children.length:-1)+o,N=m.concat(u);T>-1&&T<u.children.length;){if(x=a(u.children[T],T,N)(),x[0]===dm)return x;T=typeof x[1]=="number"?x[1]:T+o}return w}}};function Ov(t){return Array.isArray(t)?t:typeof t=="number"?[Iv,t]:[t]}var qv={}.hasOwnProperty,Vu=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=Ho(i.ignore||[]),u=Dv(o),c=-1;for(;++c<u.length;)mm(t,"text",m);return t;function m(b,k){let w=-1,x;for(;++w<k.length;){let T=k[w];if(a(T,x?x.children.indexOf(T):void 0,x))return;x=T}if(x)return p(b,k)}function p(b,k){let w=k[k.length-1],x=u[c][0],T=u[c][1],N=0,D=w.children.indexOf(b),X=!1,ee=[],de;x.lastIndex=0;let fe=x.exec(b.value);for(;fe;){de=fe.index;let Z={index:fe.index,input:fe.input,stack:[...k,b]},me=T(...fe,Z);if(typeof me=="string"&&(me=me.length>0?{type:"text",value:me}:void 0),me!==!1&&(N!==de&&ee.push({type:"text",value:b.value.slice(N,de)}),Array.isArray(me)?ee.push(...me):me&&ee.push(me),N=de+fe[0].length,X=!0),!x.global)break;fe=x.exec(b.value)}return X?(N<b.value.length&&ee.push({type:"text",value:b.value.slice(N)}),w.children.splice(D,1,...ee)):ee=[b],D+ee.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([hm(t[e][0]),gm(t[e][1])])}else{let e;for(e in t)qv.call(t,e)&&r.push([hm(e),gm(t[e])])}return r}function hm(t){return typeof t=="string"?new RegExp(Mu(t),"g"):t}function gm(t){return typeof t=="function"?t:()=>t}var Uu="phrasing",Hu=["autolink","link","image","label"],ym={transforms:[zv],enter:{literalAutolink:Nv,literalAutolinkEmail:Gu,literalAutolinkHttp:Gu,literalAutolinkWww:Gu},exit:{literalAutolink:Bv,literalAutolinkEmail:jv,literalAutolinkHttp:Rv,literalAutolinkWww:Lv}},bm={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Uu,notInConstruct:Hu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Uu,notInConstruct:Hu},{character:":",before:"[ps]",after:"\\/",inConstruct:Uu,notInConstruct:Hu}]};function Nv(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Gu(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){Vu(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(!$m(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 u={type:"link",title:null,url:o+r+a[0],children:[{type:"text",value:r+a[0]}]};return a[1]?[u,{type:"text",value:a[1]}]:u}function Vv(t,r,e,n){return!$m(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=zu(t,"("),i=zu(t,")");e!==-1&&n>i;)t+=o.slice(0,e+1),o=o.slice(e+1),e=o.indexOf(")"),i++;return[t,o]}function $m(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||wi(e)||ki(e))&&(!r||e!==47)}function Ku(t){return t.label||!t.identifier?t.label||"":ta(t.identifier)}function yr(t){let r=t||{},e=r.now||{},n=r.lineShift||0,i=e.line||1,o=e.column||1;return{move:c,current:a,shift:u};function a(){return{now:{line:i,column:o},lineShift:n}}function u(m){n+=m}function c(m=""){let p=m.split(/\r?\n|\r/g),b=p[p.length-1];return i+=p.length-1,o=p.length===1?o+b.length:1+b.length+n,m}}function na(t,r,e){let n=r.indexStack,i=t.children||[],o=yr(e),a=[],u=-1;for(n.push(-1);++u<i.length;){let m=i[u];n[n.length-1]=u,a.push(o.move(r.handle(m,t,r,{before:`
|
|
20
|
+
`,after:`
|
|
21
|
+
`,...o.current()}))),m.type!=="list"&&(r.bulletLastUsed=void 0),u<i.length-1&&a.push(o.move(c(m,i[u+1])))}return n.pop(),a.join("");function c(m,p){let b=r.join.length;for(;b--;){let k=r.join[b](m,p,t,r);if(k===!0||k===1)break;if(typeof k=="number")return`
|
|
22
|
+
`.repeat(1+k);if(k===!1)return`
|
|
23
|
+
|
|
24
|
+
<!---->
|
|
25
|
+
|
|
26
|
+
`}return`
|
|
27
|
+
|
|
28
|
+
`}}var Gv=/\r?\n|\r/g;function ia(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(u){e.push(r(u,i,!u))}}function oa(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 km(t,r){return wm(t,r.inConstruct,!0)&&!wm(t,r.notInConstruct,!1)}function wm(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 Wu(t,r,e){let n=(e.before||"")+(r||"")+(e.after||""),i=[],o=[],a={},u=-1;for(;++u<t.unsafe.length;){let p=t.unsafe[u];if(!km(t.stack,p))continue;let b=oa(p),k;for(;k=b.exec(n);){let w="before"in p||Boolean(p.atBreak),x="after"in p,T=k.index+(w?k[1].length:0);i.includes(T)?(a[T].before&&!w&&(a[T].before=!1),a[T].after&&!x&&(a[T].after=!1)):(i.push(T),a[T]={before:w,after:x})}}i.sort(Kv);let c=e.before?e.before.length:0,m=n.length-(e.after?e.after.length:0);for(u=-1;++u<i.length;){let p=i[u];p<c||p>=m||p+1<m&&i[u+1]===p+1&&a[p].after&&!a[p+1].before&&!a[p+1].after||i[u-1]===p-1&&a[p].before&&!a[p-1].before&&!a[p-1].after||(c!==p&&o.push(vm(n.slice(c,p),"\\")),c=p,/[!-/:-@[-`{-~]/.test(n.charAt(p))&&(!e.encode||!e.encode.includes(n.charAt(p)))?o.push("\\"):(o.push("&#x"+n.charCodeAt(p).toString(16).toUpperCase()+";"),c++))}return o.push(vm(n.slice(c,m),e.after)),o.join("")}function Kv(t,r){return t-r}function vm(t,r){let e=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=t+r,a=-1,u=0,c;for(;c=e.exec(o);)n.push(c.index);for(;++a<n.length;)u!==n[a]&&i.push(t.slice(u,n[a])),i.push("\\"),u=n[a];return i.push(t.slice(u)),i.join("")}function xm(){return{enter:{gfmFootnoteDefinition:t,gfmFootnoteDefinitionLabelString:r,gfmFootnoteCall:i,gfmFootnoteCallString:o},exit:{gfmFootnoteDefinition:n,gfmFootnoteDefinitionLabelString:e,gfmFootnoteCall:u,gfmFootnoteCallString:a}};function t(c){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},c)}function r(){this.buffer()}function e(c){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Qt(this.sliceSerialize(c)).toLowerCase()}function n(c){this.exit(c)}function i(c){this.enter({type:"footnoteReference",identifier:"",label:""},c)}function o(){this.buffer()}function a(c){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Qt(this.sliceSerialize(c)).toLowerCase()}function u(c){this.exit(c)}}function Cm(){return t.peek=r,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:e,footnoteReference:t}};function t(n,i,o,a){let u=yr(a),c=u.move("[^"),m=o.enter("footnoteReference"),p=o.enter("reference");return c+=u.move(Wu(o,Ku(n),{...u.current(),before:c,after:"]"})),p(),m(),c+=u.move("]"),c}function r(){return"["}function e(n,i,o,a){let u=yr(a),c=u.move("[^"),m=o.enter("footnoteDefinition"),p=o.enter("label");return c+=u.move(Wu(o,Ku(n),{...u.current(),before:c,after:"]"})),p(),c+=u.move("]:"+(n.children&&n.children.length>0?" ":"")),u.shift(4),c+=u.move(ia(na(n,o,u.current()),b)),m(),c;function b(k,w,x){return w?(x?"":" ")+k:k}}}function sa(t,r,e){let n=r.indexStack,i=t.children||[],o=[],a=-1,u=e.before;n.push(-1);let c=yr(e);for(;++a<i.length;){let m=i[a],p;if(n[n.length-1]=a,a+1<i.length){let b=r.handle.handlers[i[a+1].type];b&&b.peek&&(b=b.peek),p=b?b(i[a+1],t,r,{before:"",after:"",...c.current()}).charAt(0):""}else p=e.after;o.length>0&&(u==="\r"||u===`
|
|
29
|
+
`)&&m.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),u=" ",c=yr(e),c.move(o.join(""))),o.push(c.move(r.handle(m,t,r,{...c.current(),before:u,after:p}))),u=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var Em={canContainEols:["delete"],enter:{strikethrough:Wv},exit:{strikethrough:Zv}},_m={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Am}};Am.peek=Jv;function Wv(t){this.enter({type:"delete",children:[]},t)}function Zv(t){this.exit(t)}function Am(t,r,e,n){let i=yr(n),o=e.enter("emphasis"),a=i.move("~~");return a+=sa(t,e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Jv(){return"~"}Zu.peek=Qv;function Zu(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],u=oa(a),c;if(!!a.atBreak)for(;c=u.exec(n);){let m=c.index;n.charCodeAt(m)===10&&n.charCodeAt(m-1)===13&&m--,n=n.slice(0,m)+" "+n.slice(c.index+1)}}return i+n+i}function Qv(){return"`"}function Pm(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||Yv,i=[],o=[],a=[],u=[],c=0,m=-1;for(;++m<t.length;){let x=[],T=[],N=-1;for(t[m].length>c&&(c=t[m].length);++N<t[m].length;){let D=Xv(t[m][N]);if(r.alignDelimiters!==!1){let X=n(D);T[N]=X,(u[N]===void 0||X>u[N])&&(u[N]=X)}x.push(D)}o[m]=x,a[m]=T}let p=-1;if(typeof e=="object"&&"length"in e)for(;++p<c;)i[p]=Sm(e[p]);else{let x=Sm(e);for(;++p<c;)i[p]=x}p=-1;let b=[],k=[];for(;++p<c;){let x=i[p],T="",N="";x===99?(T=":",N=":"):x===108?T=":":x===114&&(N=":");let D=r.alignDelimiters===!1?1:Math.max(1,u[p]-T.length-N.length),X=T+"-".repeat(D)+N;r.alignDelimiters!==!1&&(D=T.length+D+N.length,D>u[p]&&(u[p]=D),k[p]=D),b[p]=X}o.splice(1,0,b),a.splice(1,0,k),m=-1;let w=[];for(;++m<o.length;){let x=o[m],T=a[m];p=-1;let N=[];for(;++p<c;){let D=x[p]||"",X="",ee="";if(r.alignDelimiters!==!1){let de=u[p]-(T[p]||0),fe=i[p];fe===114?X=" ".repeat(de):fe===99?de%2?(X=" ".repeat(de/2+.5),ee=" ".repeat(de/2-.5)):(X=" ".repeat(de/2),ee=X):ee=" ".repeat(de)}r.delimiterStart!==!1&&!p&&N.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&D==="")&&(r.delimiterStart!==!1||p)&&N.push(" "),r.alignDelimiters!==!1&&N.push(X),N.push(D),r.alignDelimiters!==!1&&N.push(ee),r.padding!==!1&&N.push(" "),(r.delimiterEnd!==!1||p!==c-1)&&N.push("|")}w.push(r.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return w.join(`
|
|
30
|
+
`)}function Xv(t){return t==null?"":String(t)}function Yv(t){return t.length}function Sm(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 Qu={enter:{table:e1,tableData:Tm,tableHeader:Tm,tableRow:r1},exit:{codeText:n1,table:t1,tableData:Ju,tableHeader:Ju,tableRow:Ju}};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 Ju(t){this.exit(t)}function Tm(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 Xu(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:u,tableCell:c,inlineCode:k}};function a(w,x,T,N){return m(p(w,T,N),w.align)}function u(w,x,T,N){let D=b(w,T,N),X=m([D]);return X.slice(0,X.indexOf(`
|
|
32
|
+
`))}function c(w,x,T,N){let D=T.enter("tableCell"),X=T.enter("phrasing"),ee=sa(w,T,{...N,before:o,after:o});return X(),D(),ee}function m(w,x){return Pm(w,{align:x,alignDelimiters:n,padding:e,stringLength:i})}function p(w,x,T){let N=w.children,D=-1,X=[],ee=x.enter("table");for(;++D<N.length;)X[D]=b(N[D],x,T);return ee(),X}function b(w,x,T){let N=w.children,D=-1,X=[],ee=x.enter("tableRow");for(;++D<N.length;)X[D]=c(N[D],w,x,T);return ee(),X}function k(w,x,T){let N=Zu(w,x,T);return T.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function Im(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 Fm(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 Om(t,r,e,n){let i=Fm(e),o=e.bulletCurrent||Im(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 u=yr(n);u.move(o+" ".repeat(a-o.length)),u.shift(a);let c=e.enter("listItem"),m=ia(na(t,e,u.current()),p);return c(),m;function p(b,k,w){return k?(w?"":" ".repeat(a))+b:(w?o:o+" ".repeat(a-o.length))+b}}var Dm={exit:{taskListCheckValueChecked:qm,taskListCheckValueUnchecked:qm,paragraph:o1}},Nm={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:s1}};function qm(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 u=n[o];if(u.type==="paragraph"){a=u;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":" ")+"] ",u=yr(n);o&&u.move(a);let c=Om(t,r,e,{...n,...u.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),c;function m(p){return p+a}}function Yu(){return[ym,xm(),Em,Qu,Dm]}function ec(t){return{extensions:[bm,Cm(),_m,Xu(t),Nm]}}function tc(t={}){let r=this.data();e("micromarkExtensions",fm(t)),e("fromMarkdownExtensions",Yu()),e("toMarkdownExtensions",ec(t));function e(n,i){(r[n]?r[n]:r[n]=[]).push(i)}}var aa=(t,{lineOffset:r}={lineOffset:0})=>{let e=hu().use(em).use(tc).parse(t),n={},i=(u=>c=>{let{start:m,end:p}=c;return{start:{...m,line:m.line+u},end:{...p,line:p.line+u}}})(r);Yi({processor:1}).use({"*:*":(u,c)=>(m,p,b)=>{m.children&&b(m.children,{...p})}}).use({":definition":(u,c)=>(m,p,b)=>{n[m.identifier]=m}}).run(e);let o=[];return Yi({processor:1}).use({"*:*":(u,c)=>(m,p,b)=>{console.warn("[Podlite:md2ast]- unhandled MD node"),console.warn(JSON.stringify(m,null,2)),m.children&&b(m.children,{...p})}}).use({":root":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return Yl({},b(k,p))},":heading":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return gr({type:"block",level:m.depth,name:"head",location:i(w)},b(k,p))},":text":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return m.value},":list":(u,c)=>(m,p,b)=>{let k=p.listLevel||0,{children:w,position:x,...T}=m;return gr({type:"list",level:k+1,list:m.ordered?"ordered":"itemized"},b(w,{...p,listLevel:k+1,ordered:m.ordered}))},":listItem":(u,c)=>(m,p,b)=>{let k=p.listLevel||0,{children:w,position:x,...T}=m;return gr({name:"item",type:"block",level:p.listLevel,location:i(x)},b(w,{...p,listLevel:k,ordered:m.ordered}))},":paragraph":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return gr({type:"para",location:i(w),text:"text",margin:""},b(k,{...p}))},":linkReference":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m,T=n[x.identifier],N=(T==null?void 0:T.url)||"";return Xl({meta:N},b(k,{...p}))},":definition":(u,c)=>(m,p,b)=>null,":inlineCode":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return Ns({name:"C"},[m.value])},":strong":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return Ns({name:"B"},b(k,{...p}))},":emphasis":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return Ns({name:"I"},b(k,{...p}))},":link":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return Xl({meta:m.url},b(k,{...p}))},":html":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return gr({type:"block",name:"Html",location:i(w)},[Rs(m.value)])},":code":(u,c)=>(m,p,b)=>{let{children:k,position:w,lang:x,meta:T,...N}=m;if(x==="mermaid"||x==="diagram")return gr({type:"block",name:"Diagram",config:[],location:i(w)},[Rs(m.value)]);let D=[];return x&&D.push({name:"lang",value:x,type:"string"}),T&&D.push({name:"meta",value:T,type:"string"}),gr({type:"block",name:"code",config:D,location:i(w)},[Rs(m.value)])},":image":(u,c)=>(m,p,b)=>{let{title:k,alt:w,url:x,position:T,...N}=m;return gr({type:"block",name:"Image",config:[],location:i(T)},[qp(x,w),Op([k])])},":thematicBreak":(u,c)=>(m,p,b)=>null,":blockquote":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return gr({name:"nested",location:i(w)},b(k,{...p}))},":table":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return gr({name:"table",location:i(w)},b(k,{...p}))},":tableRow":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return gr({name:"table_row",location:i(w)},b(k,{...p}))},":tableCell":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return gr({name:"table_cell",location:i(w)},b(k,{...p}))},":delete":(u,c)=>(m,p,b)=>{let{children:k,position:w,...x}=m;return Fp(b(k,{...p}))},":break":(u,c)=>(m,p,b)=>null}).run(e).interator};var rc={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:aa(i,{lineOffset:o})}}return e}},toJSX:t=>Sn},a1={Markdown:rc},l1=rc;0&&(module.exports={PluginRegister,parseMd,plugin});
|
|
33
|
+
/*!
|
|
34
|
+
* Determine if an object is a Buffer
|
|
35
|
+
*
|
|
36
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
37
|
+
* @license MIT
|
|
38
|
+
*/
|
|
39
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
40
|
+
//# sourceMappingURL=index.cjs.map
|