@podlite/markdown 0.0.27 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +2 -2
- package/lib/index.cjs.map +2 -2
- package/lib/index.esm.js +38 -5
- package/lib/index.esm.js.map +2 -2
- package/package.json +20 -5
- package/tsconfig.tsbuildinfo +1 -1
package/lib/index.cjs
CHANGED
|
@@ -5,13 +5,13 @@ var Eh=Object.create;var $s=Object.defineProperty;var _h=Object.getOwnPropertyDe
|
|
|
5
5
|
|| ${l} === "boolean" || ${s} === null`).assign(f,Fe._`[${s}]`)}}}function Fy({gen:t,parentData:r,parentDataProperty:e},i){t.if(Fe._`${r} !== undefined`,()=>t.assign(Fe._`${r}[${e}]`,i))}function $l(t,r,e,i=qo.Correct){let s=i===qo.Correct?Fe.operators.EQ:Fe.operators.NEQ,a;switch(t){case"null":return Fe._`${r} ${s} null`;case"array":a=Fe._`Array.isArray(${r})`;break;case"object":a=Fe._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":a=l(Fe._`!(${r} % 1) && !isNaN(${r})`);break;case"number":a=l();break;default:return Fe._`typeof ${r} ${s} ${t}`}return i===qo.Correct?a:Fe.not(a);function l(f=Fe.nil){return Fe.and(Fe._`typeof ${r} == "number"`,f,e?Fe._`isFinite(${r})`:Fe.nil)}}Kt.checkDataType=$l;function bl(t,r,e,i){if(t.length===1)return $l(t[0],r,e,i);let s,a=jc.toHash(t);if(a.array&&a.object){let l=Fe._`typeof ${r} != "object"`;s=a.null?l:Fe._`!${r} || ${l}`,delete a.null,delete a.array,delete a.object}else s=Fe.nil;a.number&&delete a.integer;for(let l in a)s=Fe.and(s,$l(l,r,e,i));return s}Kt.checkDataTypes=bl;var Iy={message:({schema:t})=>Fe.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?Fe._`{type: ${t}}`:Fe._`{type: ${r}}`};function wl(t){let r=Oy(t);Ey.reportError(r,Iy)}Kt.reportTypeError=wl;function Oy(t){let{gen:r,data:e,schema:i}=t,s=jc.schemaRefOrVal(t,i,"type");return{gen:r,keyword:"type",data:e,schema:i.type,schemaCode:s,schemaValue:s,parentSchema:i,params:{},it:t}}});var Fo=me(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.getData=void 0;var zc=Zi(),Is=_t(),No=To(),qt=Ne(),kl=on(),qy=yi(),vl=class{constructor(r,e,i){if(Dy(r,e,i),this.gen=r.gen,this.allErrors=r.allErrors,this.keyword=i,this.data=r.data,this.schema=r.schema[i],this.$data=e.$data&&r.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=Is.schemaRefOrVal(r,this.schema,i,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",Vc(this.$data,r));else if(this.schemaCode=this.schemaValue,!Ny(this.schema,e.schemaType,e.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(e.schemaType)}`);("code"in e?e.trackErrors:e.errors!==!1)&&(this.errsCount=r.gen.const("_errs",kl.default.errors))}result(r,e,i){this.gen.if(qt.not(r)),i?i():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(qt._`${e} !== undefined && (${qt.or(this.invalid$data(),r)})`)}error(r){(r?No.reportExtraError:No.reportError)(this,this.def.error)}$dataError(){No.reportError(this,this.def.$dataError||No.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');No.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,i=qt.nil){this.gen.block(()=>{this.check$data(r,i),e()})}check$data(r=qt.nil,e=qt.nil){if(!this.$data)return;let{gen:i,schemaCode:s,schemaType:a,def:l}=this;i.if(qt.or(qt._`${s} === undefined`,e)),r!==qt.nil&&i.assign(r,!0),(a.length||l.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),r!==qt.nil&&i.assign(r,!1)),i.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:i,def:s,it:a}=this;return qt.or(l(),f());function l(){if(i.length){if(!(e instanceof qt.Name))throw new Error("ajv implementation error");let c=Array.isArray(i)?i:[i];return qt._`${zc.checkDataTypes(c,e,a.opts.strict,zc.DataType.Wrong)}`}return qt.nil}function f(){if(s.validateSchema){let c=r.scopeValue("validate$data",{ref:s.validateSchema});return qt._`!${c}(${e})`}return qt.nil}}subschema(r,e){return qy.applySubschema(this.it,r,e)}mergeEvaluated(r,e){let{it:i,gen:s}=this;!i.opts.unevaluated||(i.props!==!0&&r.props!==void 0&&(i.props=Is.mergeEvaluated.props(s,r.props,i.props,e)),i.items!==!0&&r.items!==void 0&&(i.items=Is.mergeEvaluated.items(s,r.items,i.items,e)))}mergeValidEvaluated(r,e){let{it:i,gen:s}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return s.if(e,()=>this.mergeEvaluated(r,qt.Name)),!0}};Do.default=vl;function Ny(t,r,e=!1){return!r.length||r.some(i=>i==="array"?Array.isArray(t):i==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==i||e&&typeof t>"u")}function Dy({schema:t,opts:r,self:e},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(l=>!Object.prototype.hasOwnProperty.call(t,l)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[s])){let f="keyword value is invalid: "+e.errorsText(i.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(f);else throw new Error(f)}}var Ry=/^\/(?:[^~]|~0|~1)*$/,Ly=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Vc(t,{dataLevel:r,dataNames:e,dataPathArr:i}){let s,a;if(t==="")return kl.default.rootData;if(t[0]==="/"){if(!Ry.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);s=t,a=kl.default.rootData}else{let m=Ly.exec(t);if(!m)throw new Error(`Invalid JSON-pointer: ${t}`);let d=+m[1];if(s=m[2],s==="#"){if(d>=r)throw new Error(c("property/index",d));return i[r-d]}if(d>r)throw new Error(c("data",d));if(a=e[r-d],!s)return a}let l=a,f=s.split("/");for(let m of f)m&&(a=qt._`${a}${qt.getProperty(Is.unescapeJsonPointer(m))}`,l=qt._`${l} && ${a}`);return l;function c(m,d){return`Cannot access ${m} ${d} levels up, current level is ${r}`}}Do.getData=Vc});var Ns=me((Qi,Uc)=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.MissingRefError=Qi.ValidationError=void 0;var xl=Oo(),Os=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};Qi.ValidationError=Os;var qs=class extends Error{constructor(r,e,i){super(i||`can't resolve reference ${e} from id ${r}`),this.missingRef=xl.resolveUrl(r,e),this.missingSchema=xl.normalizeId(xl.getFullPath(this.missingRef))}};Qi.MissingRefError=qs;Uc.exports={ValidationError:Os,MissingRefError:qs}});var El=me(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.resolveSchema=Kr.getCompilingSchema=Kr.resolveRef=Kr.compileSchema=Kr.SchemaEnv=void 0;var an=Ne(),jy=Ns(),bi=on(),ln=Oo(),Hc=_t(),By=Lr(),My=ml(),Xi=class{constructor(r){var e;this.refs={},this.dynamicAnchors={};let i;typeof r.schema=="object"&&(i=r.schema),this.schema=r.schema,this.root=r.root||this,this.baseId=(e=r.baseId)!==null&&e!==void 0?e:ln.normalizeId(i==null?void 0:i.$id),this.localRefs=r.localRefs,this.meta=r.meta,this.$async=i==null?void 0:i.$async,this.refs={}}};Kr.SchemaEnv=Xi;function Al(t){let r=Gc.call(this,t);if(r)return r;let e=ln.getFullPath(t.root.baseId),{es5:i,lines:s}=this.opts.code,{ownProperties:a}=this.opts,l=new an.CodeGen(this.scope,{es5:i,lines:s,ownProperties:a}),f;t.$async&&(f=l.scopeValue("Error",{ref:jy.ValidationError,code:an._`require("ajv/dist/compile/error_classes").ValidationError`}));let c=l.scopeName("validate");t.validateName=c;let m={gen:l,allErrors:this.opts.allErrors,data:bi.default.data,parentData:bi.default.parentData,parentDataProperty:bi.default.parentDataProperty,dataNames:[bi.default.data],dataPathArr:[an.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:an.stringify(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:f,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:an.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:an._`""`,opts:this.opts,self:this},d;try{this._compilations.add(t),By.validateFunctionCode(m),l.optimize(this.opts.code.optimize);let $=l.toString();d=`${l.scopeRefs(bi.default.scope)}return ${$}`,this.opts.code.process&&(d=this.opts.code.process(d,t));let k=new Function(`${bi.default.self}`,`${bi.default.scope}`,d)(this,this.scope.get());if(this.scope.value(c,{ref:k}),k.errors=null,k.schema=t.schema,k.schemaEnv=t,t.$async&&(k.$async=!0),this.opts.code.source===!0&&(k.source={validateName:c,validateCode:$,scopeValues:l._values}),this.opts.unevaluated){let{props:x,items:I}=m;k.evaluated={props:x instanceof an.Name?void 0:x,items:I instanceof an.Name?void 0:I,dynamicProps:x instanceof an.Name,dynamicItems:I instanceof an.Name},k.source&&(k.source.evaluated=an.stringify(k.evaluated))}return t.validate=k,t}catch($){throw delete t.validate,delete t.validateName,d&&this.logger.error("Error compiling schema, function code:",d),$}finally{this._compilations.delete(t)}}Kr.compileSchema=Al;function zy(t,r,e){var i;e=ln.resolveUrl(r,e);let s=t.refs[e];if(s)return s;let a=Hy.call(this,t,e);if(a===void 0){let l=(i=t.localRefs)===null||i===void 0?void 0:i[e];l&&(a=new Xi({schema:l,root:t,baseId:r}))}if(a!==void 0)return t.refs[e]=Vy.call(this,a)}Kr.resolveRef=zy;function Vy(t){return ln.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Al.call(this,t)}function Gc(t){for(let r of this._compilations)if(Uy(r,t))return r}Kr.getCompilingSchema=Gc;function Uy(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function Hy(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||Ds.call(this,t,r)}function Ds(t,r){let e=My.parse(r),i=ln._getFullPath(e),s=ln.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&i===s)return Cl.call(this,e,t);let a=ln.normalizeId(i),l=this.refs[a]||this.schemas[a];if(typeof l=="string"){let f=Ds.call(this,t,l);return typeof(f==null?void 0:f.schema)!="object"?void 0:Cl.call(this,e,f)}if(typeof(l==null?void 0:l.schema)=="object"){if(l.validate||Al.call(this,l),a===ln.normalizeId(r)){let{schema:f}=l;return f.$id&&(s=ln.resolveUrl(s,f.$id)),new Xi({schema:f,root:t,baseId:s})}return Cl.call(this,e,l)}}Kr.resolveSchema=Ds;var Gy=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Cl(t,{baseId:r,schema:e,root:i}){var s;if(((s=t.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(let l of t.fragment.slice(1).split("/")){if(typeof e=="boolean"||(e=e[Hc.unescapeFragment(l)],e===void 0))return;!Gy.has(l)&&typeof e=="object"&&e.$id&&(r=ln.resolveUrl(r,e.$id))}let a;if(typeof e!="boolean"&&e.$ref&&!Hc.schemaHasRulesButRef(e,this.RULES)){let l=ln.resolveUrl(r,e.$ref);a=Ds.call(this,i,l)}if(a=a||new Xi({schema:e,root:i,baseId:r}),a.schema!==a.root.schema)return a}});var Kc=me((a1,Ky)=>{Ky.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 Xc=me(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.CodeGen=Wt.Name=Wt.nil=Wt.stringify=Wt.str=Wt._=Wt.KeywordCxt=void 0;var Wy=Fo();Wt.KeywordCxt=Wy.default;var Yi=Ne();Object.defineProperty(Wt,"_",{enumerable:!0,get:function(){return Yi._}});Object.defineProperty(Wt,"str",{enumerable:!0,get:function(){return Yi.str}});Object.defineProperty(Wt,"stringify",{enumerable:!0,get:function(){return Yi.stringify}});Object.defineProperty(Wt,"nil",{enumerable:!0,get:function(){return Yi.nil}});Object.defineProperty(Wt,"Name",{enumerable:!0,get:function(){return Yi.Name}});Object.defineProperty(Wt,"CodeGen",{enumerable:!0,get:function(){return Yi.CodeGen}});var Pl=Ns(),Zy=Va(),Ro=El(),Jy=Ne(),Rs=Oo(),Ls=Zi(),Sl=_t(),Wc=Kc(),Qy=["removeAdditional","useDefaults","coerceTypes"],Xy=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Yy={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."},e$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function t$(t){var r,e,i,s,a,l,f,c,m,d,$,E;let k=(r=t.strict)!==null&&r!==void 0?r:!0,x=k?"log":!1,I=(e=t.code)===null||e===void 0?void 0:e.optimize,N=I===!0||I===void 0?1:I||0;return{strict:k,strictTypes:(i=t.strictTypes)!==null&&i!==void 0?i:x,strictTuples:(s=t.strictTuples)!==null&&s!==void 0?s:x,code:t.code?{...t.code,optimize:N}:{optimize:N},loopRequired:(a=t.loopRequired)!==null&&a!==void 0?a:1/0,loopEnum:(l=t.loopEnum)!==null&&l!==void 0?l:1/0,meta:(f=t.meta)!==null&&f!==void 0?f:!0,messages:(c=t.messages)!==null&&c!==void 0?c:!0,inlineRefs:(m=t.inlineRefs)!==null&&m!==void 0?m:!0,addUsedSchema:(d=t.addUsedSchema)!==null&&d!==void 0?d:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(E=t.validateFormats)!==null&&E!==void 0?E:!0}}var Lo=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...t$(r)};let{es5:e,lines:i}=this.opts.code;this.scope=new Jy.ValueScope({scope:{},prefixes:Xy,es5:e,lines:i}),this.logger=a$(r.logger);let s=r.validateFormats;r.validateFormats=!1,this.RULES=Zy.getRules(),Zc.call(this,Yy,r,"NOT SUPPORTED"),Zc.call(this,e$,r,"DEPRECATED","warn"),this._metaOpts=o$.call(this),r.formats&&n$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&i$.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),r$.call(this),r.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(Wc,Wc.$id,!1)}defaultMeta(){let{meta:r}=this.opts;return this.opts.defaultMeta=typeof r=="object"?r.$id||r:void 0}validate(r,e){let i;if(typeof r=="string"){if(i=this.getSchema(r),!i)throw new Error(`no schema with key or ref "${r}"`)}else i=this.compile(r);let s=i(e);return"$async"in i||(this.errors=i.errors),s}compile(r,e){let i=this._addSchema(r,e);return i.validate||this._compileSchemaEnv(i)}compileAsync(r,e){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:i}=this.opts;return s.call(this,r,e);async function s(d,$){await a.call(this,d.$schema);let E=this._addSchema(d,$);return E.validate||l.call(this,E)}async function a(d){d&&!this.getSchema(d)&&await s.call(this,{$ref:d},!0)}async function l(d){try{return this._compileSchemaEnv(d)}catch($){if(!($ instanceof Pl.MissingRefError))throw $;return f.call(this,$),await c.call(this,$.missingSchema),l.call(this,d)}}function f({missingSchema:d,missingRef:$}){if(this.refs[d])throw new Error(`AnySchema ${d} is loaded but ${$} cannot be resolved`)}async function c(d){let $=await m.call(this,d);this.refs[d]||await a.call(this,$.$schema),this.refs[d]||this.addSchema($,d,e)}async function m(d){let $=this._loading[d];if($)return $;try{return await(this._loading[d]=i(d))}finally{delete this._loading[d]}}}addSchema(r,e,i,s=this.opts.validateSchema){if(Array.isArray(r)){for(let l of r)this.addSchema(l,void 0,i,s);return this}let a;if(typeof r=="object"&&(a=r.$id,a!==void 0&&typeof a!="string"))throw new Error("schema id must be string");return e=Rs.normalizeId(e||a),this._checkUnique(e),this.schemas[e]=this._addSchema(r,i,s,!0),this}addMetaSchema(r,e,i=this.opts.validateSchema){return this.addSchema(r,e,!0,i),this}validateSchema(r,e){if(typeof r=="boolean")return!0;let i;if(i=r.$schema,i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this.opts.defaultMeta||this.defaultMeta(),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let s=this.validate(i,r);if(!s&&e){let a="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(a);else throw new Error(a)}return s}getSchema(r){let e;for(;typeof(e=Jc.call(this,r))=="string";)r=e;if(e===void 0){let i=new Ro.SchemaEnv({schema:{}});if(e=Ro.resolveSchema.call(this,i,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=Jc.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 i=r.$id;return i&&(i=Rs.normalizeId(i),delete this.schemas[i],delete this.refs[i]),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 i;if(typeof r=="string")i=r,typeof e=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),e.keyword=i);else if(typeof r=="object"&&e===void 0){if(e=r,i=e.keyword,Array.isArray(i)&&!i.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(u$.call(this,i,e),!e)return Sl.eachItem(i,a=>_l.call(this,a)),this;c$.call(this,e);let s={...e,type:Ls.getJSONTypes(e.type),schemaType:Ls.getJSONTypes(e.schemaType)};return Sl.eachItem(i,s.type.length===0?a=>_l.call(this,a,s):a=>s.type.forEach(l=>_l.call(this,a,s,l))),this}getKeyword(r){let e=this.RULES.all[r];return typeof e=="object"?e.definition:!!e}removeKeyword(r){let{RULES:e}=this;delete e.keywords[r],delete e.all[r];for(let i of e.rules){let s=i.rules.findIndex(a=>a.keyword===r);s>=0&&i.rules.splice(s,1)}return this}addFormat(r,e){return typeof e=="string"&&(e=new RegExp(e)),this.formats[r]=e,this}errorsText(r=this.errors,{separator:e=", ",dataVar:i="data"}={}){return!r||r.length===0?"No errors":r.map(s=>`${i}${s.dataPath} ${s.message}`).reduce((s,a)=>s+e+a)}$dataMetaSchema(r,e){let i=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let s of e){let a=s.split("/").slice(1),l=r;for(let f of a)l=l[f];for(let f in i){let c=i[f];if(typeof c!="object")continue;let{$data:m}=c.definition,d=l[f];m&&d&&(l[f]=Qc(d))}}return r}_removeAllSchemas(r,e){for(let i in r){let s=r[i];(!e||e.test(i))&&(typeof s=="string"?delete r[i]:s&&!s.meta&&(this._cache.delete(s.schema),delete r[i]))}}_addSchema(r,e,i=this.opts.validateSchema,s=this.opts.addUsedSchema){if(typeof r!="object"){if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let a=this._cache.get(r);if(a!==void 0)return a;let l=Rs.getSchemaRefs.call(this,r);a=new Ro.SchemaEnv({schema:r,meta:e,localRefs:l}),this._cache.set(a.schema,a);let f=a.baseId;return s&&!f.startsWith("#")&&(f&&this._checkUnique(f),this.refs[f]=a),i&&this.validateSchema(r,!0),a}_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):Ro.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{Ro.compileSchema.call(this,r)}finally{this.opts=e}}};Wt.default=Lo;Lo.ValidationError=Pl.ValidationError;Lo.MissingRefError=Pl.MissingRefError;function Zc(t,r,e,i="error"){for(let s in t){let a=s;a in r&&this.logger[i](`${e}: option ${s}. ${t[a]}`)}}function Jc(t){return t=Rs.normalizeId(t),this.schemas[t]||this.refs[t]}function r$(){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 n$(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function i$(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 o$(){let t={...this.opts};for(let r of Qy)delete t[r];return t}var s$={log(){},warn(){},error(){}};function a$(t){if(t===!1)return s$;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 l$=/^[a-z_$][a-z0-9_$:-]*$/i;function u$(t,r){let{RULES:e}=this;if(Sl.eachItem(t,i=>{if(e.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!l$.test(i))throw new Error(`Keyword ${i} has invalid name`)}),!!r&&r.$data&&!("code"in r||"validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function _l(t,r,e){var i;let s=r==null?void 0:r.post;if(e&&s)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:a}=this,l=s?a.post:a.rules.find(({type:c})=>c===e);if(l||(l={type:e,rules:[]},a.rules.push(l)),a.keywords[t]=!0,!r)return;let f={keyword:t,definition:{...r,type:Ls.getJSONTypes(r.type),schemaType:Ls.getJSONTypes(r.schemaType)}};r.before?f$.call(this,l,f,r.before):l.rules.push(f),a.all[t]=f,(i=r.implements)===null||i===void 0||i.forEach(c=>this.addKeyword(c))}function f$(t,r,e){let i=t.rules.findIndex(s=>s.keyword===e);i>=0?t.rules.splice(i,0,r):(t.rules.push(r),this.logger.warn(`rule ${e} is not defined`))}function c$(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=Qc(r)),t.validateSchema=this.compile(r,!0))}var p$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Qc(t){return{anyOf:[t,p$]}}});var Yc=me(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var d$={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Tl.default=d$});var np=me(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.callRef=wi.getValidate=void 0;var m$=Ns(),ep=sn(),Sr=Ne(),eo=on(),tp=El(),js=_t(),h$={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:i}=t,{baseId:s,schemaEnv:a,validateName:l,opts:f,self:c}=i;if(e==="#"||e==="#/")return d();let m=tp.resolveRef.call(c,a.root,s,e);if(m===void 0)throw new m$.MissingRefError(s,e);if(m instanceof tp.SchemaEnv)return $(m);return E(m);function d(){if(a===a.root)return Bs(t,l,a,a.$async);let k=r.scopeValue("root",{ref:a.root});return Bs(t,Sr._`${k}.validate`,a.root,a.root.$async)}function $(k){let x=rp(t,k);Bs(t,x,k,k.$async)}function E(k){let x=r.scopeValue("schema",f.code.source===!0?{ref:k,code:Sr.stringify(k)}:{ref:k}),I=r.name("valid"),N=t.subschema({schema:k,dataTypes:[],schemaPath:Sr.nil,topSchemaRef:x,errSchemaPath:e},I);t.mergeEvaluated(N),t.ok(I)}}};function rp(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):Sr._`${e.scopeValue("wrapper",{ref:r})}.validate`}wi.getValidate=rp;function Bs(t,r,e,i){let{gen:s,it:a}=t,{allErrors:l,schemaEnv:f,opts:c}=a,m=c.passContext?eo.default.this:Sr.nil;i?d():$();function d(){if(!f.$async)throw new Error("async schema referenced by sync schema");let x=s.let("valid");s.try(()=>{s.code(Sr._`await ${ep.callValidateCode(t,r,m)}`),k(r),l||s.assign(x,!0)},I=>{s.if(Sr._`!(${I} instanceof ${a.ValidationError})`,()=>s.throw(I)),E(I),l||s.assign(x,!1)}),t.ok(x)}function $(){t.result(ep.callValidateCode(t,r,m),()=>k(r),()=>E(r))}function E(x){let I=Sr._`${x}.errors`;s.assign(eo.default.vErrors,Sr._`${eo.default.vErrors} === null ? ${I} : ${eo.default.vErrors}.concat(${I})`),s.assign(eo.default.errors,Sr._`${eo.default.vErrors}.length`)}function k(x){var I;if(!a.opts.unevaluated)return;let N=(I=e==null?void 0:e.validate)===null||I===void 0?void 0:I.evaluated;if(a.props!==!0)if(N&&!N.dynamicProps)N.props!==void 0&&(a.props=js.mergeEvaluated.props(s,N.props,a.props));else{let B=s.var("props",Sr._`${x}.evaluated.props`);a.props=js.mergeEvaluated.props(s,B,a.props,Sr.Name)}if(a.items!==!0)if(N&&!N.dynamicItems)N.items!==void 0&&(a.items=js.mergeEvaluated.items(s,N.items,a.items));else{let B=s.var("items",Sr._`${x}.evaluated.items`);a.items=js.mergeEvaluated.items(s,B,a.items,Sr.Name)}}}wi.callRef=Bs;wi.default=h$});var ip=me(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var g$=Yc(),y$=np(),$$=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",g$.default,y$.default];Fl.default=$$});var op=me(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Ms=Ne(),Zn=Ms.operators,zs={maximum:{okStr:"<=",ok:Zn.LTE,fail:Zn.GT},minimum:{okStr:">=",ok:Zn.GTE,fail:Zn.LT},exclusiveMaximum:{okStr:"<",ok:Zn.LT,fail:Zn.GTE},exclusiveMinimum:{okStr:">",ok:Zn.GT,fail:Zn.LTE}},b$={message:({keyword:t,schemaCode:r})=>Ms.str`should be ${zs[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>Ms._`{comparison: ${zs[t].okStr}, limit: ${r}}`},w$={keyword:Object.keys(zs),type:"number",schemaType:"number",$data:!0,error:b$,code(t){let{keyword:r,data:e,schemaCode:i}=t;t.fail$data(Ms._`${e} ${zs[r].fail} ${i} || isNaN(${e})`)}};Il.default=w$});var sp=me(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var jo=Ne(),k$={message:({schemaCode:t})=>jo.str`should be multiple of ${t}`,params:({schemaCode:t})=>jo._`{multipleOf: ${t}}`},v$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:k$,code(t){let{gen:r,data:e,schemaCode:i,it:s}=t,a=s.opts.multipleOfPrecision,l=r.let("res"),f=a?jo._`Math.abs(Math.round(${l}) - ${l}) > 1e-${a}`:jo._`${l} !== parseInt(${l})`;t.fail$data(jo._`(${i} === 0 || (${l} = ${e}/${i}, ${f}))`)}};Ol.default=v$});var ap=me(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});function x$(t){let r=t.length,e=0,i=0,s;for(;i<r;)e++,s=t.charCodeAt(i++),s>=55296&&s<=56319&&i<r&&(s=t.charCodeAt(i),(s&64512)===56320&&i++);return e}ql.default=x$});var lp=me(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Jn=Ne(),C$=ap(),A$={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return Jn.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>Jn._`{limit: ${t}}`},E$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:A$,code(t){let{keyword:r,data:e,schemaCode:i,it:s}=t,a=r==="maxLength"?Jn.operators.GT:Jn.operators.LT,l;if(s.opts.unicode===!1)l=Jn._`${e}.length`;else{let f=t.gen.scopeValue("func",{ref:C$.default,code:Jn._`require("ajv/dist/compile/ucs2length").default`});l=Jn._`${f}(${e})`}t.fail$data(Jn._`${l} ${a} ${i}`)}};Nl.default=E$});var up=me(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var _$=sn(),Vs=Ne(),S$={message:({schemaCode:t})=>Vs.str`should match pattern "${t}"`,params:({schemaCode:t})=>Vs._`{pattern: ${t}}`},P$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:S$,code(t){let{gen:r,data:e,$data:i,schema:s,schemaCode:a}=t,l=i?Vs._`(new RegExp(${a}, "u"))`:_$.usePattern(r,s);t.fail$data(Vs._`!${l}.test(${e})`)}};Dl.default=P$});var fp=me(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var Bo=Ne(),T$={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Bo.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Bo._`{limit: ${t}}`},F$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:T$,code(t){let{keyword:r,data:e,schemaCode:i}=t,s=r==="maxProperties"?Bo.operators.GT:Bo.operators.LT;t.fail$data(Bo._`Object.keys(${e}).length ${s} ${i}`)}};Rl.default=F$});var cp=me(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var Mo=sn(),zo=Ne(),I$=Lr(),O$={message:({params:{missingProperty:t}})=>zo.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>zo._`{missingProperty: ${t}}`},q$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:O$,code(t){let{gen:r,schema:e,schemaCode:i,data:s,$data:a,it:l}=t,{opts:f}=l;if(!a&&e.length===0)return;let c=e.length>=f.loopRequired;if(l.allErrors?m():d(),f.strictRequired){let k=t.parentSchema.properties,{definedProperties:x}=t.it;for(let I of e)if((k==null?void 0:k[I])===void 0&&!x.has(I)){let N=l.schemaEnv.baseId+l.errSchemaPath,B=`required property "${I}" is not defined at "${N}" (strictRequired)`;I$.checkStrictMode(l,B,l.opts.strictRequired)}}function m(){if(c||a)t.block$data(zo.nil,$);else for(let k of e)Mo.checkReportMissingProp(t,k)}function d(){let k=r.let("missing");if(c||a){let x=r.let("valid",!0);t.block$data(x,()=>E(k,x)),t.ok(x)}else r.if(Mo.checkMissingProp(t,e,k)),Mo.reportMissingProp(t,k),r.else()}function $(){r.forOf("prop",i,k=>{t.setParams({missingProperty:k}),r.if(Mo.noPropertyInData(r,s,k,f.ownProperties),()=>t.error())})}function E(k,x){t.setParams({missingProperty:k}),r.forOf(k,i,()=>{r.assign(x,Mo.propertyInData(r,s,k,f.ownProperties)),r.if(zo.not(x),()=>{t.error(),r.break()})},zo.nil)}}};Ll.default=q$});var pp=me(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var Vo=Ne(),N$={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return Vo.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Vo._`{limit: ${t}}`},D$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:N$,code(t){let{keyword:r,data:e,schemaCode:i}=t,s=r==="maxItems"?Vo.operators.GT:Vo.operators.LT;t.fail$data(Vo._`${e}.length ${s} ${i}`)}};jl.default=D$});var dp=me(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var Bl=Zi(),Bt=Ne(),R$=Io(),L$={message:({params:{i:t,j:r}})=>Bt.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Bt._`{i: ${t}, j: ${r}}`},j$={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:L$,code(t){let{gen:r,data:e,$data:i,schema:s,parentSchema:a,schemaCode:l,it:f}=t;if(!i&&!s)return;let c=r.let("valid"),m=a.items?Bl.getSchemaTypes(a.items):[];t.block$data(c,d,Bt._`${l} === false`),t.ok(c);function d(){let x=r.let("i",Bt._`${e}.length`),I=r.let("j");t.setParams({i:x,j:I}),r.assign(c,!0),r.if(Bt._`${x} > 1`,()=>($()?E:k)(x,I))}function $(){return m.length>0&&!m.some(x=>x==="object"||x==="array")}function E(x,I){let N=r.name("item"),B=Bl.checkDataTypes(m,N,f.opts.strict,Bl.DataType.Wrong),X=r.const("indices",Bt._`{}`);r.for(Bt._`;${x}--;`,()=>{r.let(N,Bt._`${e}[${x}]`),r.if(B,Bt._`continue`),m.length>1&&r.if(Bt._`typeof ${N} == "string"`,Bt._`${N} += "_"`),r.if(Bt._`typeof ${X}[${N}] == "number"`,()=>{r.assign(I,Bt._`${X}[${N}]`),t.error(),r.assign(c,!1).break()}).code(Bt._`${X}[${N}] = ${x}`)})}function k(x,I){let N=t.gen.scopeValue("func",{ref:R$,code:Bt._`require("ajv/dist/compile/equal")`}),B=r.name("outer");r.label(B).for(Bt._`;${x}--;`,()=>r.for(Bt._`${I} = ${x}; ${I}--;`,()=>r.if(Bt._`${N}(${e}[${x}], ${e}[${I}])`,()=>{t.error(),r.assign(c,!1).break(B)})))}}};Ml.default=j$});var mp=me(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var zl=Ne(),B$=Io(),M$={message:"should be equal to constant",params:({schemaCode:t})=>zl._`{allowedValue: ${t}}`},z$={keyword:"const",$data:!0,error:M$,code(t){let r=t.gen.scopeValue("func",{ref:B$,code:zl._`require("ajv/dist/compile/equal")`});t.fail$data(zl._`!${r}(${t.data}, ${t.schemaCode})`)}};Vl.default=z$});var hp=me(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var to=Ne(),V$=Io(),U$={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>to._`{allowedValues: ${t}}`},H$={keyword:"enum",schemaType:"array",$data:!0,error:U$,code(t){let{gen:r,data:e,$data:i,schema:s,schemaCode:a,it:l}=t;if(!i&&s.length===0)throw new Error("enum must have non-empty array");let f=s.length>=l.opts.loopEnum,c=t.gen.scopeValue("func",{ref:V$,code:to._`require("ajv/dist/compile/equal")`}),m;if(f||i)m=r.let("valid"),t.block$data(m,d);else{if(!Array.isArray(s))throw new Error("ajv implementation error");let E=r.const("vSchema",a);m=to.or(...s.map((k,x)=>$(E,x)))}t.pass(m);function d(){r.assign(m,!1),r.forOf("v",a,E=>r.if(to._`${c}(${e}, ${E})`,()=>r.assign(m,!0).break()))}function $(E,k){let x=s[k];return x&&typeof x=="object"?to._`${c}(${e}, ${E}[${k}])`:to._`${e} === ${x}`}}};Ul.default=H$});var gp=me(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var G$=op(),K$=sp(),W$=lp(),Z$=up(),J$=fp(),Q$=cp(),X$=pp(),Y$=dp(),eb=mp(),tb=hp(),rb=[G$.default,K$.default,W$.default,Z$.default,J$.default,Q$.default,X$.default,Y$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},eb.default,tb.default];Hl.default=rb});var yp=me(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var ki=Ne(),nb=yi(),ib=_t(),ob=Lr(),sb={message:({params:{len:t}})=>ki.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>ki._`{limit: ${t}}`},ab={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:sb,code(t){let{gen:r,schema:e,parentSchema:i,data:s,it:a}=t,{items:l}=i;if(!Array.isArray(l)){ob.checkStrictMode(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}a.items=!0;let f=r.const("len",ki._`${s}.length`);if(e===!1)t.setParams({len:l.length}),t.pass(ki._`${f} <= ${l.length}`);else if(typeof e=="object"&&!ib.alwaysValidSchema(a,e)){let m=r.var("valid",ki._`${f} <= ${l.length}`);r.if(ki.not(m),()=>c(m)),t.ok(m)}function c(m){r.forRange("i",l.length,f,d=>{t.subschema({keyword:"additionalItems",dataProp:d,dataPropType:nb.Type.Num},m),a.allErrors||r.if(ki.not(m),()=>r.break())})}}};Gl.default=ab});var bp=me(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var $p=Ne(),Kl=_t(),lb=Lr(),ub=sn(),fb={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{gen:r,schema:e,it:i}=t;if(Array.isArray(e))i.opts.unevaluated&&e.length&&i.items!==!0&&(i.items=Kl.mergeEvaluated.items(r,e.length,i.items)),s(e);else{if(i.items=!0,Kl.alwaysValidSchema(i,e))return;t.ok(ub.validateArray(t))}function s(a){let{parentSchema:l,data:f}=t;if(i.opts.strictTuples&&!cb(a.length,l)){let d=`"items" is ${a.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;lb.checkStrictMode(i,d,i.opts.strictTuples)}let c=r.name("valid"),m=r.const("len",$p._`${f}.length`);a.forEach((d,$)=>{Kl.alwaysValidSchema(i,d)||(r.if($p._`${m} > ${$}`,()=>t.subschema({keyword:"items",schemaProp:$,dataProp:$},c)),t.ok(c))})}}};function cb(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}Wl.default=fb});var kp=me(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var un=Ne(),pb=yi(),db=_t(),wp=Lr(),mb={message:({params:{min:t,max:r}})=>r===void 0?un.str`should contain at least ${t} valid item(s)`:un.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?un._`{minContains: ${t}}`:un._`{minContains: ${t}, maxContains: ${r}}`},hb={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:mb,code(t){let{gen:r,schema:e,parentSchema:i,data:s,it:a}=t,l,f,{minContains:c,maxContains:m}=i;a.opts.next?(l=c===void 0?1:c,f=m):l=1;let d=r.const("len",un._`${s}.length`);if(t.setParams({min:l,max:f}),f===void 0&&l===0){wp.checkStrictMode(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&l>f){wp.checkStrictMode(a,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(db.alwaysValidSchema(a,e)){let x=un._`${d} >= ${l}`;f!==void 0&&(x=un._`${x} && ${d} <= ${f}`),t.pass(x);return}a.items=!0;let $=r.name("valid");if(f===void 0&&l===1)E($,()=>r.if($,()=>r.break()));else{r.let($,!1);let x=r.name("_valid"),I=r.let("count",0);E(x,()=>r.if(x,()=>k(I)))}t.result($,()=>t.reset());function E(x,I){r.forRange("i",0,d,N=>{t.subschema({keyword:"contains",dataProp:N,dataPropType:pb.Type.Num,compositeRule:!0},x),I()})}function k(x){r.code(un._`${x}++`),f===void 0?r.if(un._`${x} >= ${l}`,()=>r.assign($,!0).break()):(r.if(un._`${x} > ${f}`,()=>r.assign($,!1).break()),l===1?r.assign($,!0):r.if(un._`${x} >= ${l}`,()=>r.assign($,!0)))}}};Zl.default=hb});var Cp=me(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.validateSchemaDeps=vn.validatePropertyDeps=vn.error=void 0;var Jl=Ne(),gb=_t(),Uo=sn();vn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let i=r===1?"property":"properties";return Jl.str`should have ${i} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:i}})=>Jl._`{property: ${t},
|
|
6
6
|
missingProperty: ${i},
|
|
7
7
|
depsCount: ${r},
|
|
8
|
-
deps: ${e}}`};var yb={keyword:"dependencies",type:"object",schemaType:"object",error:vn.error,code(t){let[r,e]=$b(t);vp(t,r),xp(t,e)}};function $b({schema:t}){let r={},e={};for(let i in t){if(i==="__proto__")continue;let s=Array.isArray(t[i])?r:e;s[i]=t[i]}return[r,e]}function vp(t,r=t.schema){let{gen:e,data:i,it:s}=t;if(Object.keys(r).length===0)return;let a=e.let("missing");for(let l in r){let f=r[l];if(f.length===0)continue;let c=Uo.propertyInData(e,i,l,s.opts.ownProperties);t.setParams({property:l,depsCount:f.length,deps:f.join(", ")}),s.allErrors?e.if(c,()=>{for(let m of f)Uo.checkReportMissingProp(t,m)}):(e.if(Jl._`${c} && (${Uo.checkMissingProp(t,f,a)})`),Uo.reportMissingProp(t,a),e.else())}}vn.validatePropertyDeps=vp;function xp(t,r=t.schema){let{gen:e,data:i,keyword:s,it:a}=t,l=e.name("valid");for(let f in r)gb.alwaysValidSchema(a,r[f])||(e.if(Uo.propertyInData(e,i,f,a.opts.ownProperties),()=>{let c=t.subschema({keyword:s,schemaProp:f},l);t.mergeValidEvaluated(c,l)},()=>e.var(l,!0)),t.ok(l))}vn.validateSchemaDeps=xp;vn.default=yb});var Ap=me(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Ql=Ne(),bb=_t(),wb={message:({params:t})=>Ql.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>Ql._`{propertyName: ${t.propertyName}}`},kb={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:wb,code(t){let{gen:r,schema:e,data:i,it:s}=t;if(bb.alwaysValidSchema(s,e))return;let a=r.name("valid");r.forIn("key",i,l=>{t.setParams({propertyName:l}),t.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},a),r.if(Ql.not(a),()=>{t.error(!0),s.allErrors||r.break()})}),t.ok(a)}};Xl.default=kb});var tu=me(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var Us=sn(),fn=Ne(),vb=on(),xb=yi(),Yl=_t(),Cb={message:"should NOT have additional properties",params:({params:t})=>fn._`{additionalProperty: ${t.additionalProperty}}`},Ab={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Cb,code(t){let{gen:r,schema:e,parentSchema:i,data:s,errsCount:a,it:l}=t;if(!a)throw new Error("ajv implementation error");let{allErrors:f,opts:c}=l;if(l.props=!0,c.removeAdditional!=="all"&&Yl.alwaysValidSchema(l,e))return;let m=Us.allSchemaProperties(i.properties),d=Us.allSchemaProperties(i.patternProperties);$(),t.ok(fn._`${a} === ${vb.default.errors}`);function $(){r.forIn("key",s,N=>{!m.length&&!d.length?x(N):r.if(E(N),()=>x(N))})}function E(N){let B;if(m.length>8){let X=Yl.schemaRefOrVal(l,i.properties,"properties");B=Us.isOwnProperty(r,X,N)}else m.length?B=fn.or(...m.map(X=>fn._`${N} === ${X}`)):B=fn.nil;return d.length&&(B=fn.or(B,...d.map(X=>fn._`${Us.usePattern(r,X)}.test(${N})`))),fn.not(B)}function k(N){r.code(fn._`delete ${s}[${N}]`)}function x(N){if(c.removeAdditional==="all"||c.removeAdditional&&e===!1){k(N);return}if(e===!1){t.setParams({additionalProperty:N}),t.error(),f||r.break();return}if(typeof e=="object"&&!Yl.alwaysValidSchema(l,e)){let B=r.name("valid");c.removeAdditional==="failing"?(I(N,B,!1),r.if(fn.not(B),()=>{t.reset(),k(N)})):(I(N,B),f||r.if(fn.not(B),()=>r.break()))}}function I(N,B,X){let se={keyword:"additionalProperties",dataProp:N,dataPropType:xb.Type.Str};X===!1&&Object.assign(se,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(se,B)}}};eu.default=Ab});var Sp=me(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var Eb=Fo(),Ep=sn(),ru=_t(),_p=tu(),_b={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:i,data:s,it:a}=t;a.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&_p.default.code(new Eb.default(a,_p.default,"additionalProperties"));let l=Ep.allSchemaProperties(e);for(let $ of l)a.definedProperties.add($);a.opts.unevaluated&&l.length&&a.props!==!0&&(a.props=ru.mergeEvaluated.props(r,ru.toHash(l),a.props));let f=l.filter($=>!ru.alwaysValidSchema(a,e[$]));if(f.length===0)return;let c=r.name("valid");for(let $ of f)m($)?d($):(r.if(Ep.propertyInData(r,s,$,a.opts.ownProperties)),d($),a.allErrors||r.else().var(c,!0),r.endIf()),t.it.definedProperties.add($),t.ok(c);function m($){return a.opts.useDefaults&&!a.compositeRule&&e[$].default!==void 0}function d($){t.subschema({keyword:"properties",schemaProp:$,dataProp:$},c)}}};nu.default=_b});var Tp=me(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});var Pp=sn(),Hs=Ne(),Sb=yi(),Pb=Lr(),Tb=_t(),Fb={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:i,parentSchema:s,it:a}=t,{opts:l}=a,f=Pp.schemaProperties(a,e);if(f.length===0)return;let c=l.strict&&!l.allowMatchingProperties&&s.properties,m=r.name("valid");a.props!==!0&&!(a.props instanceof Hs.Name)&&(a.props=Tb.evaluatedPropsToName(r,a.props));let{props:d}=a;$();function $(){for(let x of f)c&&E(x),a.allErrors?k(x):(r.var(m,!0),k(x),r.if(m))}function E(x){for(let I in c)new RegExp(x).test(I)&&Pb.checkStrictMode(a,`property ${I} matches pattern ${x} (use allowMatchingProperties)`)}function k(x){r.forIn("key",i,I=>{r.if(Hs._`${Pp.usePattern(r,x)}.test(${I})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:x,dataProp:I,dataPropType:Sb.Type.Str},m),a.opts.unevaluated&&d!==!0?r.assign(Hs._`${d}[${I}]`,!0):a.allErrors||r.if(Hs.not(m),()=>r.break())})})}}};iu.default=Fb});var Fp=me(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var Ib=_t(),Ob={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:i}=t;if(Ib.alwaysValidSchema(i,e)){t.fail();return}let s=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.result(s,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};ou.default=Ob});var Ip=me(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var qb=sn(),Nb={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:qb.validateUnion,error:{message:"should match some schema in anyOf"}};su.default=Nb});var Op=me(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var Gs=Ne(),Db=_t(),Rb={message:"should match exactly one schema in oneOf",params:({params:t})=>Gs._`{passingSchemas: ${t.passing}}`},Lb={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Rb,code(t){let{gen:r,schema:e,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=e,a=r.let("valid",!1),l=r.let("passing",null),f=r.name("_valid");t.setParams({passing:l}),r.block(c),t.result(a,()=>t.reset(),()=>t.error(!0));function c(){s.forEach((m,d)=>{let $;Db.alwaysValidSchema(i,m)?r.var(f,!0):$=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},f),d>0&&r.if(Gs._`${f} && ${a}`).assign(a,!1).assign(l,Gs._`[${l}, ${d}]`).else(),r.if(f,()=>{r.assign(a,!0),r.assign(l,d),$&&t.mergeEvaluated($,Gs.Name)})})}}};au.default=Lb});var qp=me(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var jb=_t(),Bb={keyword:"allOf",schemaType:"array",code(t){let{gen:r,schema:e,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=r.name("valid");e.forEach((a,l)=>{if(jb.alwaysValidSchema(i,a))return;let f=t.subschema({keyword:"allOf",schemaProp:l},s);t.ok(s),t.mergeEvaluated(f)})}};lu.default=Bb});var Dp=me(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var Ks=Ne(),Mb=_t(),zb=Lr(),Vb={message:({params:t})=>Ks.str`should match "${t.ifClause}" schema`,params:({params:t})=>Ks._`{failingKeyword: ${t.ifClause}}`},Ub={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Vb,code(t){let{gen:r,parentSchema:e,it:i}=t;e.then===void 0&&e.else===void 0&&zb.checkStrictMode(i,'"if" without "then" and "else" is ignored');let s=Np(i,"then"),a=Np(i,"else");if(!s&&!a)return;let l=r.let("valid",!0),f=r.name("_valid");if(c(),t.reset(),s&&a){let d=r.let("ifClause");t.setParams({ifClause:d}),r.if(f,m("then",d),m("else",d))}else s?r.if(f,m("then")):r.if(Ks.not(f),m("else"));t.pass(l,()=>t.error(!0));function c(){let d=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);t.mergeEvaluated(d)}function m(d,$){return()=>{let E=t.subschema({keyword:d},f);r.assign(l,f),t.mergeValidEvaluated(E,l),$?r.assign($,Ks._`${d}`):t.setParams({ifClause:d})}}}};function Np(t,r){let e=t.schema[r];return e!==void 0&&!Mb.alwaysValidSchema(t,e)}uu.default=Ub});var Rp=me(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var Hb=Lr(),Gb={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&Hb.checkStrictMode(e,`"${t}" without "if" is ignored`)}};fu.default=Gb});var Lp=me(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var Kb=yp(),Wb=bp(),Zb=kp(),Jb=Cp(),Qb=Ap(),Xb=tu(),Yb=Sp(),ew=Tp(),tw=Fp(),rw=Ip(),nw=Op(),iw=qp(),ow=Dp(),sw=Rp(),aw=[tw.default,rw.default,nw.default,iw.default,ow.default,sw.default,Kb.default,Wb.default,Zb.default,Qb.default,Xb.default,Jb.default,Yb.default,ew.default];cu.default=aw});var jp=me(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var Nt=Ne(),lw={message:({schemaCode:t})=>Nt.str`should match format "${t}"`,params:({schemaCode:t})=>Nt._`{format: ${t}}`},uw={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:lw,code(t,r){let{gen:e,data:i,$data:s,schema:a,schemaCode:l,it:f}=t,{opts:c,errSchemaPath:m,schemaEnv:d,self:$}=f;if(!c.validateFormats)return;s?E():k();function E(){let x=e.scopeValue("formats",{ref:$.formats,code:c.code.formats}),I=e.const("fDef",Nt._`${x}[${l}]`),N=e.let("fType"),B=e.let("format");e.if(Nt._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>e.assign(N,Nt._`${I}.type || "string"`).assign(B,Nt._`${I}.validate`),()=>e.assign(N,Nt._`"string"`).assign(B,I)),t.fail$data(Nt.or(X(),se()));function X(){return c.strict===!1?Nt.nil:Nt._`${l} && !${B}`}function se(){let $e=d.$async?Nt._`(${I}.async ? await ${B}(${i}) : ${B}(${i}))`:Nt._`${B}(${i})`,he=Nt._`(typeof ${B} == "function" ? ${$e} : ${B}.test(${i}))`;return Nt._`${B} && ${B} !== true && ${N} === ${r} && !${he}`}}function k(){let x=$.formats[a];if(!x){X();return}if(x===!0)return;let[I,N,B]=se(x);I===r&&t.pass($e());function X(){if(c.strict===!1){$.logger.warn(he());return}throw new Error(he());function he(){return`unknown format "${a}" ignored in schema at path "${m}"`}}function se(he){let ne=e.scopeValue("formats",{key:a,ref:he,code:c.code.formats?Nt._`${c.code.formats}${Nt.getProperty(a)}`:void 0});return typeof he=="object"&&!(he instanceof RegExp)?[he.type||"string",he.validate,Nt._`${ne}.validate`]:["string",he,ne]}function $e(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!d.$async)throw new Error("async format in sync schema");return Nt._`await ${B}(${i})`}return typeof N=="function"?Nt._`${B}(${i})`:Nt._`${B}.test(${i})`}}}};pu.default=uw});var Bp=me(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});var fw=jp(),cw=[fw.default];du.default=cw});var Mp=me(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.contentVocabulary=ro.metadataVocabulary=void 0;ro.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ro.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Vp=me(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var pw=ip(),dw=gp(),mw=Lp(),hw=Bp(),zp=Mp(),gw=[pw.default,dw.default,mw.default,hw.default,zp.metadataVocabulary,zp.contentVocabulary];mu.default=gw});var Up=me((V1,yw)=>{yw.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 Gp=me(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.CodeGen=Zt.Name=Zt.nil=Zt.stringify=Zt.str=Zt._=Zt.KeywordCxt=void 0;var $w=Fo();Zt.KeywordCxt=$w.default;var no=Ne();Object.defineProperty(Zt,"_",{enumerable:!0,get:function(){return no._}});Object.defineProperty(Zt,"str",{enumerable:!0,get:function(){return no.str}});Object.defineProperty(Zt,"stringify",{enumerable:!0,get:function(){return no.stringify}});Object.defineProperty(Zt,"nil",{enumerable:!0,get:function(){return no.nil}});Object.defineProperty(Zt,"Name",{enumerable:!0,get:function(){return no.Name}});Object.defineProperty(Zt,"CodeGen",{enumerable:!0,get:function(){return no.CodeGen}});var bw=Xc(),ww=Vp(),Hp=Up(),kw=["/properties"],Ws="http://json-schema.org/draft-07/schema",hu=class extends bw.default{_addVocabularies(){super._addVocabularies(),ww.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(Hp,kw):Hp;this.addMetaSchema(r,Ws,!1),this.refs["http://json-schema.org/schema"]=Ws}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ws)?Ws:void 0)}};Zt.default=hu});var Wp=me((H1,Kp)=>{var vw=Object.prototype.hasOwnProperty,xw=Object.prototype.toString;Kp.exports=function(r,e,i){if(xw.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var s=r.length;if(s===+s)for(var a=0;a<s;a++)e.call(i,r[a],a,r);else for(var l in r)vw.call(r,l)&&e.call(i,r[l],l,r)}});var Jp=me((G1,Zp)=>{"use strict";var Cw=Wp();Zp.exports=ht;function ht(t,r,e){if(arguments.length===3)return ht.set(t,r,e);if(arguments.length===2)return ht.get(t,r);var i=ht.bind(ht,t);for(var s in ht)ht.hasOwnProperty(s)&&(i[s]=ht[s].bind(i,t));return i}ht.get=function(r,e){for(var i=Array.isArray(e)?e:ht.parse(e),s=0;s<i.length;++s){var a=i[s];if(!(typeof r=="object"&&a in r))throw new Error("Invalid reference token: "+a);r=r[a]}return r};ht.set=function(r,e,i){var s=Array.isArray(e)?e:ht.parse(e),a=s[0];if(s.length===0)throw Error("Can not set the root object");for(var l=0;l<s.length-1;++l){var f=s[l];f==="__proto__"||f==="constructor"||f==="prototype"||(f==="-"&&Array.isArray(r)&&(f=r.length),a=s[l+1],f in r||(a.match(/^(\d+|-)$/)?r[f]=[]:r[f]={}),r=r[f])}return a==="-"&&Array.isArray(r)&&(a=r.length),r[a]=i,this};ht.remove=function(t,r){var e=Array.isArray(r)?r:ht.parse(r),i=e[e.length-1];if(i===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var s=ht.get(t,e.slice(0,-1));if(Array.isArray(s)){var a=+i;if(i===""&&isNaN(a))throw new Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(s,a,1)}else delete s[i]};ht.dict=function(r,e){var i={};return ht.walk(r,function(s,a){i[a]=s},e),i};ht.walk=function(r,e,i){var s=[];i=i||function(a){var l=Object.prototype.toString.call(a);return l==="[object Object]"||l==="[object Array]"},function a(l){Cw(l,function(f,c){s.push(String(c)),i(f)?a(f):e(f,ht.compile(s)),s.pop()})}(r)};ht.has=function(r,e){try{ht.get(r,e)}catch{return!1}return!0};ht.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};ht.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};ht.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(ht.unescape)};ht.compile=function(r){return r.length===0?"":"/"+r.map(ht.escape).join("/")}});var Qp=me((K1,Aw)=>{Aw.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var Xp=me((W1,Ew)=>{Ew.exports={$ref:"#/definitions/AstTree",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["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"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var Yp=me((Z1,_w)=>{_w.exports={$ref:"#/definitions/RootBlock",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["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"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var ed=me(Zs=>{Zs.Test=Qp();Zs.AstTree=Xp();Zs.PodliteDocument=Yp()});var hd=me((vu,xu)=>{(function(t,r,e){typeof vu=="object"?(xu.exports=e(),xu.exports.default=e()):typeof define=="function"&&define.amd?define(e):r[t]=e()})("slugify",vu,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),r=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function e(i,s){if(typeof i!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var a=r[s.locale]||{},l=s.replacement===void 0?"-":s.replacement,f=s.trim===void 0?!0:s.trim,c=i.normalize().split("").reduce(function(m,d){var $=a[d];return $===void 0&&($=t[d]),$===void 0&&($=d),$===l&&($=" "),m+$.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),f&&(c=c.trim()),c=c.replace(/\s+/g,l),s.lower&&(c=c.toLowerCase()),c}return e.extend=function(i){Object.assign(t,i)},e})});var $d=me((rC,yd)=>{"use strict";function Bw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Ci(t,r,e,i){this.message=t,this.expected=r,this.found=e,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ci)}Bw(Ci,Error);Ci.buildMessage=function(t,r){var e={literal:function(m){return'"'+s(m.text)+'"'},class:function(m){var d="",$;for($=0;$<m.parts.length;$++)d+=m.parts[$]instanceof Array?a(m.parts[$][0])+"-"+a(m.parts[$][1]):a(m.parts[$]);return"["+(m.inverted?"^":"")+d+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function i(m){return m.charCodeAt(0).toString(16).toUpperCase()}function s(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(d){return"\\x0"+i(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+i(d)})}function a(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(d){return"\\x0"+i(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+i(d)})}function l(m){return e[m.type](m)}function f(m){var d=new Array(m.length),$,E;for($=0;$<m.length;$++)d[$]=l(m[$]);if(d.sort(),d.length>0){for($=1,E=1;$<d.length;$++)d[$-1]!==d[$]&&(d[E]=d[$],E++);d.length=E}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function c(m){return m?'"'+s(m)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function Mw(t,r){r=r!==void 0?r:{};var e={},i={Document:Ff},s=Ff,a=function(u){return u},l=function(){return!!r.podMode},f=function(u){return u},c=j(),m=function(){return{text:S(),type:"ambient",location:q()}},d=/^[ \xA0\u2001\t\f\u2008]/,$=L([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),E=/^[ \t\f]/,k=L([" "," ","\f"],!1,!1),x=/^[\n\r]/,I=L([`
|
|
8
|
+
deps: ${e}}`};var yb={keyword:"dependencies",type:"object",schemaType:"object",error:vn.error,code(t){let[r,e]=$b(t);vp(t,r),xp(t,e)}};function $b({schema:t}){let r={},e={};for(let i in t){if(i==="__proto__")continue;let s=Array.isArray(t[i])?r:e;s[i]=t[i]}return[r,e]}function vp(t,r=t.schema){let{gen:e,data:i,it:s}=t;if(Object.keys(r).length===0)return;let a=e.let("missing");for(let l in r){let f=r[l];if(f.length===0)continue;let c=Uo.propertyInData(e,i,l,s.opts.ownProperties);t.setParams({property:l,depsCount:f.length,deps:f.join(", ")}),s.allErrors?e.if(c,()=>{for(let m of f)Uo.checkReportMissingProp(t,m)}):(e.if(Jl._`${c} && (${Uo.checkMissingProp(t,f,a)})`),Uo.reportMissingProp(t,a),e.else())}}vn.validatePropertyDeps=vp;function xp(t,r=t.schema){let{gen:e,data:i,keyword:s,it:a}=t,l=e.name("valid");for(let f in r)gb.alwaysValidSchema(a,r[f])||(e.if(Uo.propertyInData(e,i,f,a.opts.ownProperties),()=>{let c=t.subschema({keyword:s,schemaProp:f},l);t.mergeValidEvaluated(c,l)},()=>e.var(l,!0)),t.ok(l))}vn.validateSchemaDeps=xp;vn.default=yb});var Ap=me(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Ql=Ne(),bb=_t(),wb={message:({params:t})=>Ql.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>Ql._`{propertyName: ${t.propertyName}}`},kb={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:wb,code(t){let{gen:r,schema:e,data:i,it:s}=t;if(bb.alwaysValidSchema(s,e))return;let a=r.name("valid");r.forIn("key",i,l=>{t.setParams({propertyName:l}),t.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},a),r.if(Ql.not(a),()=>{t.error(!0),s.allErrors||r.break()})}),t.ok(a)}};Xl.default=kb});var tu=me(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var Us=sn(),fn=Ne(),vb=on(),xb=yi(),Yl=_t(),Cb={message:"should NOT have additional properties",params:({params:t})=>fn._`{additionalProperty: ${t.additionalProperty}}`},Ab={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Cb,code(t){let{gen:r,schema:e,parentSchema:i,data:s,errsCount:a,it:l}=t;if(!a)throw new Error("ajv implementation error");let{allErrors:f,opts:c}=l;if(l.props=!0,c.removeAdditional!=="all"&&Yl.alwaysValidSchema(l,e))return;let m=Us.allSchemaProperties(i.properties),d=Us.allSchemaProperties(i.patternProperties);$(),t.ok(fn._`${a} === ${vb.default.errors}`);function $(){r.forIn("key",s,N=>{!m.length&&!d.length?x(N):r.if(E(N),()=>x(N))})}function E(N){let B;if(m.length>8){let X=Yl.schemaRefOrVal(l,i.properties,"properties");B=Us.isOwnProperty(r,X,N)}else m.length?B=fn.or(...m.map(X=>fn._`${N} === ${X}`)):B=fn.nil;return d.length&&(B=fn.or(B,...d.map(X=>fn._`${Us.usePattern(r,X)}.test(${N})`))),fn.not(B)}function k(N){r.code(fn._`delete ${s}[${N}]`)}function x(N){if(c.removeAdditional==="all"||c.removeAdditional&&e===!1){k(N);return}if(e===!1){t.setParams({additionalProperty:N}),t.error(),f||r.break();return}if(typeof e=="object"&&!Yl.alwaysValidSchema(l,e)){let B=r.name("valid");c.removeAdditional==="failing"?(I(N,B,!1),r.if(fn.not(B),()=>{t.reset(),k(N)})):(I(N,B),f||r.if(fn.not(B),()=>r.break()))}}function I(N,B,X){let se={keyword:"additionalProperties",dataProp:N,dataPropType:xb.Type.Str};X===!1&&Object.assign(se,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(se,B)}}};eu.default=Ab});var Sp=me(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var Eb=Fo(),Ep=sn(),ru=_t(),_p=tu(),_b={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:i,data:s,it:a}=t;a.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&_p.default.code(new Eb.default(a,_p.default,"additionalProperties"));let l=Ep.allSchemaProperties(e);for(let $ of l)a.definedProperties.add($);a.opts.unevaluated&&l.length&&a.props!==!0&&(a.props=ru.mergeEvaluated.props(r,ru.toHash(l),a.props));let f=l.filter($=>!ru.alwaysValidSchema(a,e[$]));if(f.length===0)return;let c=r.name("valid");for(let $ of f)m($)?d($):(r.if(Ep.propertyInData(r,s,$,a.opts.ownProperties)),d($),a.allErrors||r.else().var(c,!0),r.endIf()),t.it.definedProperties.add($),t.ok(c);function m($){return a.opts.useDefaults&&!a.compositeRule&&e[$].default!==void 0}function d($){t.subschema({keyword:"properties",schemaProp:$,dataProp:$},c)}}};nu.default=_b});var Tp=me(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});var Pp=sn(),Hs=Ne(),Sb=yi(),Pb=Lr(),Tb=_t(),Fb={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:i,parentSchema:s,it:a}=t,{opts:l}=a,f=Pp.schemaProperties(a,e);if(f.length===0)return;let c=l.strict&&!l.allowMatchingProperties&&s.properties,m=r.name("valid");a.props!==!0&&!(a.props instanceof Hs.Name)&&(a.props=Tb.evaluatedPropsToName(r,a.props));let{props:d}=a;$();function $(){for(let x of f)c&&E(x),a.allErrors?k(x):(r.var(m,!0),k(x),r.if(m))}function E(x){for(let I in c)new RegExp(x).test(I)&&Pb.checkStrictMode(a,`property ${I} matches pattern ${x} (use allowMatchingProperties)`)}function k(x){r.forIn("key",i,I=>{r.if(Hs._`${Pp.usePattern(r,x)}.test(${I})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:x,dataProp:I,dataPropType:Sb.Type.Str},m),a.opts.unevaluated&&d!==!0?r.assign(Hs._`${d}[${I}]`,!0):a.allErrors||r.if(Hs.not(m),()=>r.break())})})}}};iu.default=Fb});var Fp=me(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var Ib=_t(),Ob={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:i}=t;if(Ib.alwaysValidSchema(i,e)){t.fail();return}let s=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.result(s,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};ou.default=Ob});var Ip=me(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var qb=sn(),Nb={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:qb.validateUnion,error:{message:"should match some schema in anyOf"}};su.default=Nb});var Op=me(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var Gs=Ne(),Db=_t(),Rb={message:"should match exactly one schema in oneOf",params:({params:t})=>Gs._`{passingSchemas: ${t.passing}}`},Lb={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Rb,code(t){let{gen:r,schema:e,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=e,a=r.let("valid",!1),l=r.let("passing",null),f=r.name("_valid");t.setParams({passing:l}),r.block(c),t.result(a,()=>t.reset(),()=>t.error(!0));function c(){s.forEach((m,d)=>{let $;Db.alwaysValidSchema(i,m)?r.var(f,!0):$=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},f),d>0&&r.if(Gs._`${f} && ${a}`).assign(a,!1).assign(l,Gs._`[${l}, ${d}]`).else(),r.if(f,()=>{r.assign(a,!0),r.assign(l,d),$&&t.mergeEvaluated($,Gs.Name)})})}}};au.default=Lb});var qp=me(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var jb=_t(),Bb={keyword:"allOf",schemaType:"array",code(t){let{gen:r,schema:e,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=r.name("valid");e.forEach((a,l)=>{if(jb.alwaysValidSchema(i,a))return;let f=t.subschema({keyword:"allOf",schemaProp:l},s);t.ok(s),t.mergeEvaluated(f)})}};lu.default=Bb});var Dp=me(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var Ks=Ne(),Mb=_t(),zb=Lr(),Vb={message:({params:t})=>Ks.str`should match "${t.ifClause}" schema`,params:({params:t})=>Ks._`{failingKeyword: ${t.ifClause}}`},Ub={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Vb,code(t){let{gen:r,parentSchema:e,it:i}=t;e.then===void 0&&e.else===void 0&&zb.checkStrictMode(i,'"if" without "then" and "else" is ignored');let s=Np(i,"then"),a=Np(i,"else");if(!s&&!a)return;let l=r.let("valid",!0),f=r.name("_valid");if(c(),t.reset(),s&&a){let d=r.let("ifClause");t.setParams({ifClause:d}),r.if(f,m("then",d),m("else",d))}else s?r.if(f,m("then")):r.if(Ks.not(f),m("else"));t.pass(l,()=>t.error(!0));function c(){let d=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);t.mergeEvaluated(d)}function m(d,$){return()=>{let E=t.subschema({keyword:d},f);r.assign(l,f),t.mergeValidEvaluated(E,l),$?r.assign($,Ks._`${d}`):t.setParams({ifClause:d})}}}};function Np(t,r){let e=t.schema[r];return e!==void 0&&!Mb.alwaysValidSchema(t,e)}uu.default=Ub});var Rp=me(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var Hb=Lr(),Gb={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&Hb.checkStrictMode(e,`"${t}" without "if" is ignored`)}};fu.default=Gb});var Lp=me(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var Kb=yp(),Wb=bp(),Zb=kp(),Jb=Cp(),Qb=Ap(),Xb=tu(),Yb=Sp(),ew=Tp(),tw=Fp(),rw=Ip(),nw=Op(),iw=qp(),ow=Dp(),sw=Rp(),aw=[tw.default,rw.default,nw.default,iw.default,ow.default,sw.default,Kb.default,Wb.default,Zb.default,Qb.default,Xb.default,Jb.default,Yb.default,ew.default];cu.default=aw});var jp=me(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var Nt=Ne(),lw={message:({schemaCode:t})=>Nt.str`should match format "${t}"`,params:({schemaCode:t})=>Nt._`{format: ${t}}`},uw={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:lw,code(t,r){let{gen:e,data:i,$data:s,schema:a,schemaCode:l,it:f}=t,{opts:c,errSchemaPath:m,schemaEnv:d,self:$}=f;if(!c.validateFormats)return;s?E():k();function E(){let x=e.scopeValue("formats",{ref:$.formats,code:c.code.formats}),I=e.const("fDef",Nt._`${x}[${l}]`),N=e.let("fType"),B=e.let("format");e.if(Nt._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>e.assign(N,Nt._`${I}.type || "string"`).assign(B,Nt._`${I}.validate`),()=>e.assign(N,Nt._`"string"`).assign(B,I)),t.fail$data(Nt.or(X(),se()));function X(){return c.strict===!1?Nt.nil:Nt._`${l} && !${B}`}function se(){let $e=d.$async?Nt._`(${I}.async ? await ${B}(${i}) : ${B}(${i}))`:Nt._`${B}(${i})`,he=Nt._`(typeof ${B} == "function" ? ${$e} : ${B}.test(${i}))`;return Nt._`${B} && ${B} !== true && ${N} === ${r} && !${he}`}}function k(){let x=$.formats[a];if(!x){X();return}if(x===!0)return;let[I,N,B]=se(x);I===r&&t.pass($e());function X(){if(c.strict===!1){$.logger.warn(he());return}throw new Error(he());function he(){return`unknown format "${a}" ignored in schema at path "${m}"`}}function se(he){let ne=e.scopeValue("formats",{key:a,ref:he,code:c.code.formats?Nt._`${c.code.formats}${Nt.getProperty(a)}`:void 0});return typeof he=="object"&&!(he instanceof RegExp)?[he.type||"string",he.validate,Nt._`${ne}.validate`]:["string",he,ne]}function $e(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!d.$async)throw new Error("async format in sync schema");return Nt._`await ${B}(${i})`}return typeof N=="function"?Nt._`${B}(${i})`:Nt._`${B}.test(${i})`}}}};pu.default=uw});var Bp=me(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});var fw=jp(),cw=[fw.default];du.default=cw});var Mp=me(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.contentVocabulary=ro.metadataVocabulary=void 0;ro.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ro.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Vp=me(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var pw=ip(),dw=gp(),mw=Lp(),hw=Bp(),zp=Mp(),gw=[pw.default,dw.default,mw.default,hw.default,zp.metadataVocabulary,zp.contentVocabulary];mu.default=gw});var Up=me((V1,yw)=>{yw.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 Gp=me(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.CodeGen=Zt.Name=Zt.nil=Zt.stringify=Zt.str=Zt._=Zt.KeywordCxt=void 0;var $w=Fo();Zt.KeywordCxt=$w.default;var no=Ne();Object.defineProperty(Zt,"_",{enumerable:!0,get:function(){return no._}});Object.defineProperty(Zt,"str",{enumerable:!0,get:function(){return no.str}});Object.defineProperty(Zt,"stringify",{enumerable:!0,get:function(){return no.stringify}});Object.defineProperty(Zt,"nil",{enumerable:!0,get:function(){return no.nil}});Object.defineProperty(Zt,"Name",{enumerable:!0,get:function(){return no.Name}});Object.defineProperty(Zt,"CodeGen",{enumerable:!0,get:function(){return no.CodeGen}});var bw=Xc(),ww=Vp(),Hp=Up(),kw=["/properties"],Ws="http://json-schema.org/draft-07/schema",hu=class extends bw.default{_addVocabularies(){super._addVocabularies(),ww.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(Hp,kw):Hp;this.addMetaSchema(r,Ws,!1),this.refs["http://json-schema.org/schema"]=Ws}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ws)?Ws:void 0)}};Zt.default=hu});var Wp=me((H1,Kp)=>{var vw=Object.prototype.hasOwnProperty,xw=Object.prototype.toString;Kp.exports=function(r,e,i){if(xw.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var s=r.length;if(s===+s)for(var a=0;a<s;a++)e.call(i,r[a],a,r);else for(var l in r)vw.call(r,l)&&e.call(i,r[l],l,r)}});var Jp=me((G1,Zp)=>{"use strict";var Cw=Wp();Zp.exports=ht;function ht(t,r,e){if(arguments.length===3)return ht.set(t,r,e);if(arguments.length===2)return ht.get(t,r);var i=ht.bind(ht,t);for(var s in ht)ht.hasOwnProperty(s)&&(i[s]=ht[s].bind(i,t));return i}ht.get=function(r,e){for(var i=Array.isArray(e)?e:ht.parse(e),s=0;s<i.length;++s){var a=i[s];if(!(typeof r=="object"&&a in r))throw new Error("Invalid reference token: "+a);r=r[a]}return r};ht.set=function(r,e,i){var s=Array.isArray(e)?e:ht.parse(e),a=s[0];if(s.length===0)throw Error("Can not set the root object");for(var l=0;l<s.length-1;++l){var f=s[l];f==="__proto__"||f==="constructor"||f==="prototype"||(f==="-"&&Array.isArray(r)&&(f=r.length),a=s[l+1],f in r||(a.match(/^(\d+|-)$/)?r[f]=[]:r[f]={}),r=r[f])}return a==="-"&&Array.isArray(r)&&(a=r.length),r[a]=i,this};ht.remove=function(t,r){var e=Array.isArray(r)?r:ht.parse(r),i=e[e.length-1];if(i===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var s=ht.get(t,e.slice(0,-1));if(Array.isArray(s)){var a=+i;if(i===""&&isNaN(a))throw new Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(s,a,1)}else delete s[i]};ht.dict=function(r,e){var i={};return ht.walk(r,function(s,a){i[a]=s},e),i};ht.walk=function(r,e,i){var s=[];i=i||function(a){var l=Object.prototype.toString.call(a);return l==="[object Object]"||l==="[object Array]"},function a(l){Cw(l,function(f,c){s.push(String(c)),i(f)?a(f):e(f,ht.compile(s)),s.pop()})}(r)};ht.has=function(r,e){try{ht.get(r,e)}catch{return!1}return!0};ht.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};ht.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};ht.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(ht.unescape)};ht.compile=function(r){return r.length===0?"":"/"+r.map(ht.escape).join("/")}});var Qp=me((K1,Aw)=>{Aw.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var Xp=me((W1,Ew)=>{Ew.exports={$ref:"#/definitions/AstTree",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["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"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},foldedLevels:{type:"object",additionalProperties:!1,patternProperties:{"^[0-9]+$":{type:"boolean"}}},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var Yp=me((Z1,_w)=>{_w.exports={$ref:"#/definitions/RootBlock",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["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"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},foldedLevels:{type:"object",additionalProperties:!1,patternProperties:{"^[0-9]+$":{type:"boolean"}}},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var ed=me(Zs=>{Zs.Test=Qp();Zs.AstTree=Xp();Zs.PodliteDocument=Yp()});var hd=me((vu,xu)=>{(function(t,r,e){typeof vu=="object"?(xu.exports=e(),xu.exports.default=e()):typeof define=="function"&&define.amd?define(e):r[t]=e()})("slugify",vu,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),r=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function e(i,s){if(typeof i!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var a=r[s.locale]||{},l=s.replacement===void 0?"-":s.replacement,f=s.trim===void 0?!0:s.trim,c=i.normalize().split("").reduce(function(m,d){var $=a[d];return $===void 0&&($=t[d]),$===void 0&&($=d),$===l&&($=" "),m+$.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),f&&(c=c.trim()),c=c.replace(/\s+/g,l),s.lower&&(c=c.toLowerCase()),c}return e.extend=function(i){Object.assign(t,i)},e})});var $d=me((rC,yd)=>{"use strict";function Bw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Ci(t,r,e,i){this.message=t,this.expected=r,this.found=e,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ci)}Bw(Ci,Error);Ci.buildMessage=function(t,r){var e={literal:function(m){return'"'+s(m.text)+'"'},class:function(m){var d="",$;for($=0;$<m.parts.length;$++)d+=m.parts[$]instanceof Array?a(m.parts[$][0])+"-"+a(m.parts[$][1]):a(m.parts[$]);return"["+(m.inverted?"^":"")+d+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function i(m){return m.charCodeAt(0).toString(16).toUpperCase()}function s(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(d){return"\\x0"+i(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+i(d)})}function a(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(d){return"\\x0"+i(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+i(d)})}function l(m){return e[m.type](m)}function f(m){var d=new Array(m.length),$,E;for($=0;$<m.length;$++)d[$]=l(m[$]);if(d.sort(),d.length>0){for($=1,E=1;$<d.length;$++)d[$-1]!==d[$]&&(d[E]=d[$],E++);d.length=E}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function c(m){return m?'"'+s(m)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function Mw(t,r){r=r!==void 0?r:{};var e={},i={Document:Ff},s=Ff,a=function(u){return u},l=function(){return!!r.podMode},f=function(u){return u},c=j(),m=function(){return{text:S(),type:"ambient",location:q()}},d=/^[ \xA0\u2001\t\f\u2008]/,$=L([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),E=/^[ \t\f]/,k=L([" "," ","\f"],!1,!1),x=/^[\n\r]/,I=L([`
|
|
9
9
|
`,"\r"],!1,!1),N=function(u){return u},B=/^[^\n\r]/,X=L([`
|
|
10
10
|
`,"\r"],!0,!1),se=`
|
|
11
11
|
`,$e=W(`
|
|
12
12
|
`,!1),he="\r",ne=W("\r",!1),be=function(){return{type:"blankline"}},xe="=begin ",ke=W("=begin ",!1),Le="=end ",Ee=W("=end ",!1),_e="=for ",de=W("=for ",!1),Ce="=config",ot=W("=config",!1),Y="=alias",Ct=W("=alias",!1),Ze=function(u){return Ch(u)},yt=function(u){return u},tt="=",M=W("=",!1),V=ps("text"),Jt=function(){return S()},Rt=function(){return{type:"para",value:S(),error:!0,location:q()}},bt=function(u,p){return Vi([u,p])},St=function(u){return[u]},At=",",st=W(",",!1),Fr=function(u,p){return Vi([u,p])},ye=/^[a-zA-Z0-9]/,wr=L([["a","z"],["A","Z"],["0","9"]],!1,!1),zt=/^[a-zA-Z0-9_\-]/,Ir=L([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Vt="=>",ei=W("=>",!1),Mn=function(u,p){return{[u]:p}},En=function(u,p){return{...u,...p}},Ge=function(u){return u},Ke=":",at=W(":",!1),We="allow",Or=W("allow",!1),ze="<",Ve=W("<",!1),ct=">",pt=W(">",!1),Ut=function(u,p){return{value:p,type:"array"}},re=function(u,p){return{name:"allow",...p}},ae=function(u){return u},we=function(u){return u},Ie=function(u){return[u]},Dt=function(){return[]},Zr=/^[!]/,rt=L(["!"],!1,!1),wt="{",Pt=W("{",!1),Jr="}",dt=W("}",!1),_n=function(u,p,g){return{value:g}},It="[",cn=W("[",!1),co=function(u,p,g){return g},Br="]",zn=W("]",!1),ti=function(u,p){return[S()]},po=function(u,p,g){return{value:g,type:"array"}},ri=function(u,p,g){return{value:g,type:"array"}},qi=function(u,p,g){return{value:g,type:"string"}},ni="(",Sn=W("(",!1),Ni=function(u,p,g){return g.length>1?{type:"array",value:g}:{type:"value",value:g[0]}},Pn=")",z=W(")",!1),O=function(u,p){return{value:S()}},G=function(u,p,g){return{type:"value",...g}},ee=function(u,p){return{value:!u,type:"boolean"}},te=function(u,p,g){return{name:p,...g}},pe=function(u,p){return p},Ae=function(u,p){return Vi([...u,...p])},Oe=/^[^'"]/,je=L(["'",'"'],!0,!1),gt=function(u){return u},Se=/^[0-9]/,nt=L([["0","9"]],!1,!1),kt=/^[\-+]/,lt=L(["-","+"],!1,!1),qe="True",mt=W("True",!1),Je=function(){return!0},Mr="False",Lt=W("False",!1),Ht=function(){return!1},Qe=".",jt=W(".",!1),Qt=/^[eE]/,kr=L(["e","E"],!1,!1),zr=/^["]/,vr=L(['"'],!1,!1),pn=/^[^"]/,Tn=L(['"'],!0,!1),Fn=/^[']/,Qr=L(["'"],!1,!1),Xr=/^[^']/,xr=L(["'"],!0,!1),o=function(u){return parseFloat(u)},ue=function(u){return parseInt(u,10)},Cr=function(u,p,g){return p.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||ys(p)},fr=function(u,p,g,b,A){return u.length===b.length&&p===A},Vn=function(u,p,g,b,A){return Ah(u,`${b}${A}`)},v=function(u,p,g,b,A,C){return p===C},Vr=function(u,p,g,b,A,C){return{type:"block",content:b===""?[]:[{type:"verbatim",value:b.join("")}],name:p,margin:u}},cr=function(u,p,g,b,A,C){return!0},mo=function(u,p,g,b,A,C){return{...C,text:S(),config:g,location:q()}},In=/^[\-+=_|]/,ho=L(["-","+","=","_","|"],!1,!1),Xe=function(){return{type:"separator",text:S()}},qr=function(){return r.isDelimited},Nr=function(){return{type:"separator",text:S()}},dn=function(u){return{name:"row",type:"text",value:u}},ii=function(){return r.separators=[],!0},On=function(u,p){return r.separators.push(p.text),p},pr=function(u,p,g,b){return r.separators.push(b.text),b},Z=function(u,p,g,b){return[{name:"row",type:"text",value:g},b]},Yr=function(u,p,g){return[g]},mn=function(u,p,g){return r.separators.length>1?!r.separators.every(b=>b===r.separators[0]):!0},oi=function(u,p,g){return[{name:"head",type:"text",value:u},p,...Vi(g)]},qn=function(u,p){return[{name:"row",type:"text",value:u},p]},go=function(u){return[...Vi(u)]},os=function(u,p,g){return p==="table"},Di=function(u,p,g){return r.isDelimited=!0,!0},en=function(u,p,g,b){return b},yo=function(u,p,g,b,A,C){return{type:"block",content:b,name:p,margin:u}},ss=function(u,p,g,b,A,C){return{...C,text:S(),config:g,location:q()}},$o=function(u,p,g,b){return b},bo=function(u,p,g,b,A){let C=p.match(/pod|nested|item|code|defn/)&&b.length-u.length>0?"code":"para";return{text:A,margin:b,type:C,content:[{type:C==="code"?"verbatim":"text",value:A}],location:q()}},wo=function(u,p,g,b,A,C){return{type:"block",content:b,name:p,margin:u}},Un=function(u,p,g,b,A,C){return{...C,config:g,location:q()}},Xt=function(){return{text:S(),type:"para",margin:"",content:[{type:"text",value:S()}],location:q()}},Ri=function(){return{empty:1}},hn=/^[s]/,Yt=L(["s"],!1,!1),wa=function(u){return{text:S(),type:"ambient1"}},as=function(u,p){return p.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||ys(p)},gn=function(u,p,g){return{margin:u,type:"block",content:g===""?[]:[{type:"verbatim",value:g}],name:p,config:[],location:q()}},si=function(u,p){return p==="table"},ka=function(u,p){return r.isDelimited=!1,!0},va=function(u,p,g){return{margin:u,type:"block",content:g===""?[]:g,name:p,config:[],location:q()}},xa=function(u,p,g,b){let A=(g===`
|
|
13
13
|
`?"":g)+b;return{margin:u,type:"block",content:A===""?[]:[{type:"para",text:A,margin:"",content:[{type:"text",value:A}],location:q()}],name:p,location:q()}},Nn="= ",ls=W("= ",!1),Ca=function(u,p,g,b){return{name:g,type:"alias",replacement:b,margin:u}},Aa=/^[A-Z]/,Ea=L([["A","Z"]],!1,!1),us="<>",_a=W("<>",!1),fs=function(u,p,g,b){return{name:g,type:"config",config:b,margin:u}},cs=function(u,p,g,b){return g.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||ys(g)},Sa=function(u,p,g,b,A){return{type:"block",content:A===""?[]:[{type:"verbatim",value:A}],name:g,margin:u,config:b,location:q()}},tn=function(u,p,g,b){return g==="table"},Et=function(u,p,g,b){return r.isDelimited=!1,!0},Pe=function(u,p,g,b,A){return{type:"block",content:A===""?[]:A,name:g,margin:u,config:b,location:q()}},Li=function(u,p,g,b,A){return{type:"block",content:A===""?[]:[{type:"para",content:[{type:"text",value:A}],margin:u,text:A,location:q()}],name:g,margin:u,config:b,location:q()}},Sf=/^[a-zA-Z]/,er=L([["a","z"],["A","Z"]],!1,!1),yn=ps("whitespace"),it=/^[\r\n \t\f]/,Dn=L(["\r",`
|
|
14
|
-
`," "," ","\f"],!1,!1),Pa=ps("space characters"),n=0,h=0,T=[{line:1,column:1}],w=0,_=[],y=0,R;if("startRule"in r){if(!(r.startRule in i))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=i[r.startRule]}function S(){return t.substring(h,n)}function q(){return ko(h,n)}function J(u,p){throw p=p!==void 0?p:ko(h,n),Tf([ps(u)],t.substring(h,n),p)}function P(u,p){throw p=p!==void 0?p:ko(h,n),mh(u,p)}function W(u,p){return{type:"literal",text:u,ignoreCase:p}}function L(u,p,g){return{type:"class",parts:u,inverted:p,ignoreCase:g}}function j(){return{type:"any"}}function K(){return{type:"end"}}function ps(u){return{type:"other",description:u}}function Pf(u){var p=T[u],g;if(p)return p;for(g=u-1;!T[g];)g--;for(p=T[g],p={line:p.line,column:p.column};g<u;)t.charCodeAt(g)===10?(p.line++,p.column=1):p.column++,g++;return T[u]=p,p}function ko(u,p){var g=Pf(u),b=Pf(p);return{start:{offset:u,line:g.line,column:g.column},end:{offset:p,line:b.line,column:b.column}}}function oe(u){n<w||(n>w&&(w=n,_=[]),_.push(u))}function mh(u,p){return new Ci(u,null,null,p)}function Tf(u,p,g){return new Ci(Ci.buildMessage(u,p),u,p,g)}function Ff(){var u,p,g;for(u=n,p=[],g=If();g!==e;)p.push(g),g=If();return p!==e&&(h=u,p=a(p)),u=p,u}function If(){var u,p,g,b,A,C,U,Q;if(u=Ta(),u===e&&(u=Ia(),u===e&&(u=Oa(),u===e&&(u=ja(),u===e&&(u=Ba(),u===e&&(u=Ma(),u===e&&(u=Ra(),u===e&&(u=La(),u===e&&(u=qa(),u===e&&(u=Na(),u===e&&(u=Da(),u===e&&(u=n,h=n,p=l(),p?p=void 0:p=e,p!==e?(g=kh(),g===e&&(g=$n(),g===e&&(g=gh())),g!==e?(h=u,p=f(g),u=p):(n=u,u=e)):(n=u,u=e),u===e)))))))))))){if(u=n,p=n,g=[],b=n,A=n,y++,C=n,U=Rn(),U!==e?(Q=tr(),Q!==e?(U=[U,Q],C=U):(n=C,C=e)):(n=C,C=e),C===e&&(C=fi()),y--,C===e?A=void 0:(n=A,A=e),A!==e?(t.length>n?(C=t.charAt(n),n++):(C=e,y===0&&oe(c)),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e),b!==e)for(;b!==e;)g.push(b),b=n,A=n,y++,C=n,U=Rn(),U!==e?(Q=tr(),Q!==e?(U=[U,Q],C=U):(n=C,C=e)):(n=C,C=e),C===e&&(C=fi()),y--,C===e?A=void 0:(n=A,A=e),A!==e?(t.length>n?(C=t.charAt(n),n++):(C=e,y===0&&oe(c)),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e);else g=e;g!==e?p=t.substring(p,n):p=g,p!==e&&(h=u,p=m()),u=p}return u}function Ot(){var u;return d.test(t.charAt(n))?(u=t.charAt(n),n++):(u=e,y===0&&oe($)),u}function ge(){var u,p;for(u=[],E.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(k));p!==e;)u.push(p),E.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(k));return u}function ai(){var u,p,g,b;for(u=n,p=n,g=[],b=Ot();b!==e;)g.push(b),b=Ot();return g!==e?(x.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(I)),b!==e?(g=[g,b],p=g):(n=p,p=e)):(n=p,p=e),p!==e?u=t.substring(u,n):u=p,u}function O0(){var u,p,g,b;if(u=n,p=n,g=[],b=vo(),b!==e)for(;b!==e;)g.push(b),b=vo();else g=e;return g!==e?p=t.substring(p,n):p=g,p!==e?(g=ui(),g!==e?(h=u,p=N(p),u=p):(n=u,u=e)):(n=u,u=e),u}function vo(){var u;return B.test(t.charAt(n))?(u=t.charAt(n),n++):(u=e,y===0&&oe(X)),u}function li(){var u,p,g;return t.charCodeAt(n)===10?(u=se,n++):(u=e,y===0&&oe($e)),u===e&&(u=n,t.charCodeAt(n)===13?(p=he,n++):(p=e,y===0&&oe(ne)),p!==e?(t.charCodeAt(n)===10?(g=se,n++):(g=e,y===0&&oe($e)),g===e&&(g=null),g!==e?(p=[p,g],u=p):(n=u,u=e)):(n=u,u=e)),u}function ui(){var u,p;return u=li(),u===e&&(u=n,y++,t.length>n?(p=t.charAt(n),n++):(p=e,y===0&&oe(c)),y--,p===e?u=void 0:(n=u,u=e)),u}function Dr(){var u,p,g,b;for(u=n,p=n,g=[],b=Ot();b!==e;)g.push(b),b=Ot();return g!==e?(x.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(I)),b!==e?(g=[g,b],p=g):(n=p,p=e)):(n=p,p=e),p!==e?u=t.substring(u,n):u=p,u}function $n(){var u,p,g,b,A;for(u=n,p=n,g=n,b=[],A=Ot();A!==e;)b.push(A),A=Ot();return b!==e?(x.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(I)),A!==e?(b=[b,A],g=b):(n=g,g=e)):(n=g,g=e),g!==e?p=t.substring(p,n):p=g,p!==e&&(h=u,p=be()),u=p,u}function ds(){var u;return t.substr(n,7)===xe?(u=xe,n+=7):(u=e,y===0&&oe(ke)),u}function ji(){var u;return t.substr(n,5)===Le?(u=Le,n+=5):(u=e,y===0&&oe(Ee)),u}function ms(){var u;return t.substr(n,5)===_e?(u=_e,n+=5):(u=e,y===0&&oe(de)),u}function Of(){var u;return t.substr(n,7)===Ce?(u=Ce,n+=7):(u=e,y===0&&oe(ot)),u}function qf(){var u;return t.substr(n,6)===Y?(u=Y,n+=6):(u=e,y===0&&oe(Ct)),u}function tr(){var u,p,g;return u=n,p=za(),p!==e?(h=n,g=Ze(p),g?g=void 0:g=e,g!==e?(h=u,p=yt(p),u=p):(n=u,u=e)):(n=u,u=e),u}function fi(){var u,p,g;return u=n,t.charCodeAt(n)===61?(p=tt,n++):(p=e,y===0&&oe(M)),p!==e?(g=tr(),g!==e?(h=u,p=yt(g),u=p):(n=u,u=e)):(n=u,u=e),u}function Rn(){var u;return u=ds(),u===e&&(u=ji(),u===e&&(u=ms(),u===e&&(u=Of(),u===e&&(u=qf())))),u}function Ur(){var u,p,g;if(y++,u=n,p=[],g=vo(),g!==e)for(;g!==e;)p.push(g),g=vo();else p=e;return p!==e?u=t.substring(u,n):u=p,y--,u===e&&(p=e,y===0&&oe(V)),u}function Gt(){var u,p,g,b,A,C,U;if(u=n,p=n,y++,g=n,b=ge(),b!==e?(A=Of(),A===e&&(A=qf(),A===e&&(A=n,C=Rn(),C!==e?(U=tr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e),A===e&&(A=fi()))),A!==e?(b=[b,A],g=b):(n=g,g=e)):(n=g,g=e),g===e&&(g=$n()),y--,g===e?p=void 0:(n=p,p=e),p!==e){if(g=n,b=[],A=Ur(),A!==e)for(;A!==e;)b.push(A),A=Ur();else b=e;b!==e?g=t.substring(g,n):g=b,g!==e?(b=ui(),b!==e?(h=u,p=Jt(),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;return u}function hh(){var u,p,g,b;if(u=n,p=n,g=[],b=Ur(),b!==e)for(;b!==e;)g.push(b),b=Ur();else g=e;return g!==e?p=t.substring(p,n):p=g,p!==e?(g=ui(),g!==e?(h=u,p=Jt(),u=p):(n=u,u=e)):(n=u,u=e),u}function gh(){var u,p,g,b,A,C;if(u=n,p=n,g=[],b=n,A=n,y++,C=ui(),y--,C===e?A=void 0:(n=A,A=e),A!==e?(t.length>n?(C=t.charAt(n),n++):(C=e,y===0&&oe(c)),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e),b!==e)for(;b!==e;)g.push(b),b=n,A=n,y++,C=ui(),y--,C===e?A=void 0:(n=A,A=e),A!==e?(t.length>n?(C=t.charAt(n),n++):(C=e,y===0&&oe(c)),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e);else g=e;return g!==e?p=t.substring(p,n):p=g,p!==e?(g=ui(),g!==e?(h=u,p=Rt(),u=p):(n=u,u=e)):(n=u,u=e),u}function Nf(){var u,p,g,b;if(u=n,p=Df(),p!==e){if(g=[],b=Ot(),b!==e)for(;b!==e;)g.push(b),b=Ot();else g=e;g!==e?(b=Nf(),b!==e?(h=u,p=bt(p,b),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;return u===e&&(u=n,p=Df(),p!==e&&(h=u,p=St(p)),u=p),u}function Df(){var u,p;return u=n,p=vo(),p!==e?u=t.substring(u,n):u=p,u}function hs(){var u,p,g,b,A,C;if(u=n,p=Mi(),p!==e){if(g=[],b=Ot(),b!==e)for(;b!==e;)g.push(b),b=Ot();else g=e;g===e&&(g=n,b=ge(),b!==e?(t.charCodeAt(n)===44?(A=At,n++):(A=e,y===0&&oe(st)),A!==e?(C=ge(),C!==e?(b=[b,A,C],g=b):(n=g,g=e)):(n=g,g=e)):(n=g,g=e)),g!==e?(b=hs(),b!==e?(h=u,p=Fr(p,b),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;return u===e&&(u=n,p=Mi(),p!==e&&(h=u,p=St(p)),u=p),u}function yh(){var u,p,g,b,A;if(u=n,p=n,g=[],ye.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(wr)),b!==e)for(;b!==e;)g.push(b),ye.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(wr));else g=e;if(g!==e){for(b=[],zt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Ir));A!==e;)b.push(A),zt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Ir));b!==e?(g=[g,b],p=g):(n=p,p=e)}else n=p,p=e;return p!==e?u=t.substring(u,n):u=p,u}function Rf(){var u,p,g,b,A,C;return u=n,p=yh(),p!==e?(g=ge(),g!==e?(t.charCodeAt(n)===44?(b=At,n++):(b=e,y===0&&oe(st)),b===e&&(t.substr(n,2)===Vt?(b=Vt,n+=2):(b=e,y===0&&oe(ei))),b!==e?(A=ge(),A!==e?(C=Mi(),C!==e?(h=u,p=Mn(p,C),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function Lf(){var u,p,g,b,A,C;return u=n,p=Rf(),p!==e?(g=ge(),g!==e?(t.charCodeAt(n)===44?(b=At,n++):(b=e,y===0&&oe(st)),b!==e?(A=ge(),A!==e?(C=Lf(),C!==e?(h=u,p=En(p,C),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u===e&&(u=n,p=Rf(),p!==e&&(h=u,p=Ge(p)),u=p),u}function $h(){var u,p,g,b,A,C,U,Q,F,D;return u=n,p=ge(),p!==e?(t.charCodeAt(n)===58?(g=Ke,n++):(g=e,y===0&&oe(at)),g!==e?(t.substr(n,5)===We?(b=We,n+=5):(b=e,y===0&&oe(Or)),b!==e?(A=n,t.charCodeAt(n)===60?(C=ze,n++):(C=e,y===0&&oe(Ve)),C!==e?(U=ge(),U!==e?(Q=Nf(),Q!==e?(F=ge(),F!==e?(t.charCodeAt(n)===62?(D=ct,n++):(D=e,y===0&&oe(pt)),D!==e?(h=A,C=Ut(b,Q),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)):(n=A,A=e),A!==e?(C=ge(),C!==e?(h=u,p=re(b,A),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function q0(){var u,p,g,b,A,C;for(u=n,p=[],g=n,b=ge(),b!==e?(A=Mi(),A!==e?(C=ge(),C!==e?(h=g,b=ae(A),g=b):(n=g,g=e)):(n=g,g=e)):(n=g,g=e);g!==e;)p.push(g),g=n,b=ge(),b!==e?(A=Mi(),A!==e?(C=ge(),C!==e?(h=g,b=ae(A),g=b):(n=g,g=e)):(n=g,g=e)):(n=g,g=e);return p!==e&&(h=u,p=we(p)),u=p,u===e&&(u=n,p=Mi(),p!==e&&(h=u,p=Ie(p)),u=p,u===e&&(u=n,p=ge(),p!==e&&(h=u,p=Dt()),u=p)),u}function Bi(){var u,p,g,b,A,C,U,Q,F,D,H,ie,le,ce;if(u=$h(),u===e)if(u=n,p=ge(),p!==e)if(t.charCodeAt(n)===58?(g=Ke,n++):(g=e,y===0&&oe(at)),g!==e)if(Zr.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(rt)),b===e&&(b=null),b!==e)if(A=za(),A!==e){if(C=n,t.charCodeAt(n)===123?(U=wt,n++):(U=e,y===0&&oe(Pt)),U!==e?(Q=ge(),Q!==e?(F=Lf(),F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===125?(H=Jr,n++):(H=e,y===0&&oe(dt)),H!==e?(h=C,U=_n(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)):(n=C,C=e),C===e){if(C=n,t.charCodeAt(n)===91?(U=It,n++):(U=e,y===0&&oe(cn)),U!==e)if(Q=ge(),Q!==e){if(F=n,D=hs(),D!==e&&(h=F,D=co(b,A,D)),F=D,F===e){if(F=n,D=n,H=[],ie=n,le=n,y++,t.charCodeAt(n)===93?(ce=Br,n++):(ce=e,y===0&&oe(zn)),ce===e&&(t.charCodeAt(n)===91?(ce=It,n++):(ce=e,y===0&&oe(cn))),y--,ce===e?le=void 0:(n=le,le=e),le!==e?(t.length>n?(ce=t.charAt(n),n++):(ce=e,y===0&&oe(c)),ce!==e?(le=[le,ce],ie=le):(n=ie,ie=e)):(n=ie,ie=e),ie!==e)for(;ie!==e;)H.push(ie),ie=n,le=n,y++,t.charCodeAt(n)===93?(ce=Br,n++):(ce=e,y===0&&oe(zn)),ce===e&&(t.charCodeAt(n)===91?(ce=It,n++):(ce=e,y===0&&oe(cn))),y--,ce===e?le=void 0:(n=le,le=e),le!==e?(t.length>n?(ce=t.charAt(n),n++):(ce=e,y===0&&oe(c)),ce!==e?(le=[le,ce],ie=le):(n=ie,ie=e)):(n=ie,ie=e);else H=e;H!==e?D=t.substring(D,n):D=H,D!==e&&(h=F,D=ti(b,A)),F=D}F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===93?(H=Br,n++):(H=e,y===0&&oe(zn)),H!==e?(h=C,U=po(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)}else n=C,C=e;else n=C,C=e;if(C===e&&(C=n,t.charCodeAt(n)===60?(U=ze,n++):(U=e,y===0&&oe(Ve)),U!==e?(Q=ge(),Q!==e?(F=hs(),F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===62?(H=ct,n++):(H=e,y===0&&oe(pt)),H!==e?(h=C,U=ri(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)):(n=C,C=e),C===e)){if(C=n,t.charCodeAt(n)===60?(U=ze,n++):(U=e,y===0&&oe(Ve)),U!==e)if(Q=ge(),Q!==e){if(F=n,D=[],H=n,ie=n,y++,t.charCodeAt(n)===60?(le=ze,n++):(le=e,y===0&&oe(Ve)),le===e&&(t.charCodeAt(n)===62?(le=ct,n++):(le=e,y===0&&oe(pt))),y--,le===e?ie=void 0:(n=ie,ie=e),ie!==e?(t.length>n?(le=t.charAt(n),n++):(le=e,y===0&&oe(c)),le!==e?(ie=[ie,le],H=ie):(n=H,H=e)):(n=H,H=e),H!==e)for(;H!==e;)D.push(H),H=n,ie=n,y++,t.charCodeAt(n)===60?(le=ze,n++):(le=e,y===0&&oe(Ve)),le===e&&(t.charCodeAt(n)===62?(le=ct,n++):(le=e,y===0&&oe(pt))),y--,le===e?ie=void 0:(n=ie,ie=e),ie!==e?(t.length>n?(le=t.charAt(n),n++):(le=e,y===0&&oe(c)),le!==e?(ie=[ie,le],H=ie):(n=H,H=e)):(n=H,H=e);else D=e;D!==e?F=t.substring(F,n):F=D,F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===62?(H=ct,n++):(H=e,y===0&&oe(pt)),H!==e?(h=C,U=qi(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)}else n=C,C=e;else n=C,C=e;if(C===e){if(C=n,t.charCodeAt(n)===40?(U=ni,n++):(U=e,y===0&&oe(Sn)),U!==e)if(Q=ge(),Q!==e){if(F=n,D=hs(),D!==e&&(h=F,D=Ni(b,A,D)),F=D,F===e){if(F=n,D=n,H=[],ie=n,le=n,y++,t.charCodeAt(n)===41?(ce=Pn,n++):(ce=e,y===0&&oe(z)),ce===e&&(t.charCodeAt(n)===40?(ce=ni,n++):(ce=e,y===0&&oe(Sn))),y--,ce===e?le=void 0:(n=le,le=e),le!==e?(t.length>n?(ce=t.charAt(n),n++):(ce=e,y===0&&oe(c)),ce!==e?(le=[le,ce],ie=le):(n=ie,ie=e)):(n=ie,ie=e),ie!==e)for(;ie!==e;)H.push(ie),ie=n,le=n,y++,t.charCodeAt(n)===41?(ce=Pn,n++):(ce=e,y===0&&oe(z)),ce===e&&(t.charCodeAt(n)===40?(ce=ni,n++):(ce=e,y===0&&oe(Sn))),y--,ce===e?le=void 0:(n=le,le=e),le!==e?(t.length>n?(ce=t.charAt(n),n++):(ce=e,y===0&&oe(c)),ce!==e?(le=[le,ce],ie=le):(n=ie,ie=e)):(n=ie,ie=e);else H=e;H!==e?D=t.substring(D,n):D=H,D!==e&&(h=F,D=O(b,A)),F=D}F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===41?(H=Pn,n++):(H=e,y===0&&oe(z)),H!==e?(h=C,U=G(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)}else n=C,C=e;else n=C,C=e;C===e&&(C=n,U=ge(),U!==e&&(h=C,U=ee(b,A)),C=U)}}}C!==e?(U=ge(),U!==e?(h=u,p=te(b,A,C),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function ci(){var u,p,g,b,A,C,U,Q,F,D;for(u=n,p=[],g=Bi();g!==e;)p.push(g),g=Bi();if(p!==e)if(g=li(),g!==e){if(b=[],A=n,t.charCodeAt(n)===61?(C=tt,n++):(C=e,y===0&&oe(M)),C!==e)if(U=ge(),U!==e){if(Q=[],F=Bi(),F!==e)for(;F!==e;)Q.push(F),F=Bi();else Q=e;Q!==e?(F=ge(),F!==e?(D=li(),D!==e?(h=A,C=pe(p,Q),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)}else n=A,A=e;else n=A,A=e;for(;A!==e;)if(b.push(A),A=n,t.charCodeAt(n)===61?(C=tt,n++):(C=e,y===0&&oe(M)),C!==e)if(U=ge(),U!==e){if(Q=[],F=Bi(),F!==e)for(;F!==e;)Q.push(F),F=Bi();else Q=e;Q!==e?(F=ge(),F!==e?(D=li(),D!==e?(h=A,C=pe(p,Q),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)}else n=A,A=e;else n=A,A=e;b!==e?(h=u,p=Ae(p,b),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;return u}function N0(){var u,p,g,b;if(u=n,p=n,g=[],Oe.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(je)),b!==e)for(;b!==e;)g.push(b),Oe.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(je));else g=e;return g!==e?p=t.substring(p,n):p=g,p!==e&&(h=u,p=gt(p)),u=p,u}function jf(){var u,p,g;if(u=n,p=[],Se.test(t.charAt(n))?(g=t.charAt(n),n++):(g=e,y===0&&oe(nt)),g!==e)for(;g!==e;)p.push(g),Se.test(t.charAt(n))?(g=t.charAt(n),n++):(g=e,y===0&&oe(nt));else p=e;return p!==e?u=t.substring(u,n):u=p,u}function gs(){var u,p,g,b,A;if(u=n,p=n,kt.test(t.charAt(n))?(g=t.charAt(n),n++):(g=e,y===0&&oe(lt)),g===e&&(g=null),g!==e){if(b=[],Se.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(nt)),A!==e)for(;A!==e;)b.push(A),Se.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(nt));else b=e;b!==e?(g=[g,b],p=g):(n=p,p=e)}else n=p,p=e;return p!==e?u=t.substring(u,n):u=p,u}function bh(){var u,p;return u=n,t.substr(n,4)===qe?(p=qe,n+=4):(p=e,y===0&&oe(mt)),p!==e&&(h=u,p=Je()),u=p,u===e&&(u=n,t.substr(n,5)===Mr?(p=Mr,n+=5):(p=e,y===0&&oe(Lt)),p!==e&&(h=u,p=Ht()),u=p),u}function wh(){var u,p,g,b,A,C;return u=n,p=n,g=gs(),g!==e?(b=n,t.charCodeAt(n)===46?(A=Qe,n++):(A=e,y===0&&oe(jt)),A!==e?(C=jf(),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e),b===e&&(b=null),b!==e?(Qt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(kr)),A!==e?(C=gs(),C!==e?(g=[g,b,A,C],p=g):(n=p,p=e)):(n=p,p=e)):(n=p,p=e)):(n=p,p=e),p!==e?u=t.substring(u,n):u=p,u===e&&(u=n,p=n,g=gs(),g!==e?(t.charCodeAt(n)===46?(b=Qe,n++):(b=e,y===0&&oe(jt)),b!==e?(A=jf(),A!==e?(g=[g,b,A],p=g):(n=p,p=e)):(n=p,p=e)):(n=p,p=e),p!==e?u=t.substring(u,n):u=p),u}function Mi(){var u,p,g,b,A;if(u=n,zr.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(vr)),p!==e){for(g=n,b=[],pn.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Tn));A!==e;)b.push(A),pn.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Tn));b!==e?g=t.substring(g,n):g=b,g!==e?(zr.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(vr)),b!==e?(h=u,p=gt(g),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;if(u===e){if(u=n,Fn.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Qr)),p!==e){for(g=n,b=[],Xr.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(xr));A!==e;)b.push(A),Xr.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(xr));b!==e?g=t.substring(g,n):g=b,g!==e?(Fn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Qr)),b!==e?(h=u,p=gt(g),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;u===e&&(u=bh(),u===e&&(u=n,p=wh(),p!==e&&(h=u,p=o(p)),u=p,u===e&&(u=n,p=gs(),p!==e&&(h=u,p=ue(p)),u=p)))}return u}function Ta(){var u,p,g,b,A,C,U,Q,F,D,H,ie,le,ce,$t,Hn,Gr;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ds(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e)if(h=n,U=Cr(p,b,C),U?U=void 0:U=e,U!==e){if(Q=[],F=n,D=n,H=ge(),H!==e?D=t.substring(D,n):D=H,D!==e?(H=n,ie=ai(),ie===e&&(ie=n,le=n,y++,ce=Rn(),y--,ce===e?le=void 0:(n=le,le=e),le===e&&(le=n,y++,ce=n,$t=ji(),$t!==e?(Hn=tr(),Hn!==e?(h=n,Gr=fr(p,b,C,D,Hn),Gr?Gr=void 0:Gr=e,Gr!==e?($t=[$t,Hn,Gr],ce=$t):(n=ce,ce=e)):(n=ce,ce=e)):(n=ce,ce=e),y--,ce===e?le=void 0:(n=le,le=e)),le!==e?(ce=Ur(),ce!==e?($t=ai(),$t===e&&($t=null),$t!==e?(le=[le,ce,$t],ie=le):(n=ie,ie=e)):(n=ie,ie=e)):(n=ie,ie=e)),ie!==e?H=t.substring(H,n):H=ie,H!==e?(h=F,D=Vn(p,b,C,D,H),F=D):(n=F,F=e)):(n=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=n,D=n,H=ge(),H!==e?D=t.substring(D,n):D=H,D!==e?(H=n,ie=ai(),ie===e&&(ie=n,le=n,y++,ce=Rn(),y--,ce===e?le=void 0:(n=le,le=e),le===e&&(le=n,y++,ce=n,$t=ji(),$t!==e?(Hn=tr(),Hn!==e?(h=n,Gr=fr(p,b,C,D,Hn),Gr?Gr=void 0:Gr=e,Gr!==e?($t=[$t,Hn,Gr],ce=$t):(n=ce,ce=e)):(n=ce,ce=e)):(n=ce,ce=e),y--,ce===e?le=void 0:(n=le,le=e)),le!==e?(ce=Ur(),ce!==e?($t=ai(),$t===e&&($t=null),$t!==e?(le=[le,ce,$t],ie=le):(n=ie,ie=e)):(n=ie,ie=e)):(n=ie,ie=e)),ie!==e?H=t.substring(H,n):H=ie,H!==e?(h=F,D=Vn(p,b,C,D,H),F=D):(n=F,F=e)):(n=F,F=e);else Q=e;Q!==e?(F=n,D=ge(),D!==e?F=t.substring(F,n):F=D,F!==e?(D=n,H=ji(),H!==e?(ie=tr(),ie!==e?(h=n,le=v(p,b,C,Q,F,ie),le?le=void 0:le=e,le!==e?(ce=ai(),ce===e&&(ce=null),ce!==e?(h=D,H=Vr(p,b,C,Q,F,ie),D=H):(n=D,D=e)):(n=D,D=e)):(n=D,D=e)):(n=D,D=e),D!==e?(h=n,H=cr(p,b,C,Q,F,D),H?H=void 0:H=e,H!==e?(h=u,p=mo(p,b,C,Q,F,D),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function zi(){var u,p,g,b,A,C,U,Q,F;if(u=n,p=n,y++,g=n,b=ge(),b!==e?(A=Rn(),A===e&&(A=fi()),A!==e?(b=[b,A],g=b):(n=g,g=e)):(n=g,g=e),g===e&&(g=$n()),y--,g===e?p=void 0:(n=p,p=e),p!==e){for(g=[],b=Ot();b!==e;)g.push(b),b=Ot();if(g!==e){if(b=n,A=[],C=n,In.test(t.charAt(n))?(U=t.charAt(n),n++):(U=e,y===0&&oe(ho)),U!==e){for(Q=[],F=Ot();F!==e;)Q.push(F),F=Ot();Q!==e?(U=[U,Q],C=U):(n=C,C=e)}else n=C,C=e;if(C!==e)for(;C!==e;)if(A.push(C),C=n,In.test(t.charAt(n))?(U=t.charAt(n),n++):(U=e,y===0&&oe(ho)),U!==e){for(Q=[],F=Ot();F!==e;)Q.push(F),F=Ot();Q!==e?(U=[U,Q],C=U):(n=C,C=e)}else n=C,C=e;else A=e;A!==e?b=t.substring(b,n):b=A,b!==e?(A=ui(),A!==e?(h=u,p=Xe(),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e}else n=u,u=e;return u}function Ar(){var u,p,g,b,A;return u=n,p=n,g=zi(),g===e&&(g=n,h=n,b=qr(),b?b=void 0:b=e,b!==e?(A=$n(),A!==e?(b=[b,A],g=b):(n=g,g=e)):(n=g,g=e)),g!==e?p=t.substring(p,n):p=g,p!==e&&(h=u,p=Nr()),u=p,u}function Hr(){var u,p;return u=n,p=Gt(),p!==e&&(h=u,p=dn(p)),u=p,u}function Fa(){var u,p,g,b,A,C,U,Q,F,D,H;if(u=n,h=n,p=ii(),p?p=void 0:p=e,p!==e){if(g=n,b=[],A=n,C=n,y++,U=zi(),y--,U===e?C=void 0:(n=C,C=e),C!==e?(U=Hr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e),A!==e)for(;A!==e;)b.push(A),A=n,C=n,y++,U=zi(),y--,U===e?C=void 0:(n=C,C=e),C!==e?(U=Hr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e);else b=e;if(b!==e?g=t.substring(g,n):g=b,g!==e)if(b=n,A=zi(),A!==e&&(h=b,A=On(g,A)),b=A,b!==e){if(A=[],C=n,U=n,Q=[],F=n,D=n,y++,H=Ar(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Hr(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=n,D=n,y++,H=Ar(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Hr(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);else Q=e;if(Q!==e?U=t.substring(U,n):U=Q,U!==e?(Q=n,F=Ar(),F!==e&&(h=Q,F=pr(g,b,U,F)),Q=F,Q!==e?(h=C,U=Z(g,b,U,Q),C=U):(n=C,C=e)):(n=C,C=e),C===e&&(C=n,U=n,y++,Q=zi(),y--,Q===e?U=void 0:(n=U,U=e),U!==e?(Q=n,y++,F=Ar(),y--,F===e?Q=void 0:(n=Q,Q=e),Q!==e?(F=Hr(),F!==e?(h=C,U=Yr(g,b,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)),C!==e)for(;C!==e;){if(A.push(C),C=n,U=n,Q=[],F=n,D=n,y++,H=Ar(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Hr(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=n,D=n,y++,H=Ar(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Hr(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);else Q=e;Q!==e?U=t.substring(U,n):U=Q,U!==e?(Q=n,F=Ar(),F!==e&&(h=Q,F=pr(g,b,U,F)),Q=F,Q!==e?(h=C,U=Z(g,b,U,Q),C=U):(n=C,C=e)):(n=C,C=e),C===e&&(C=n,U=n,y++,Q=zi(),y--,Q===e?U=void 0:(n=U,U=e),U!==e?(Q=n,y++,F=Ar(),y--,F===e?Q=void 0:(n=Q,Q=e),Q!==e?(F=Hr(),F!==e?(h=C,U=Yr(g,b,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e))}else A=e;A!==e?(h=n,C=mn(g,b,A),C?C=void 0:C=e,C!==e?(h=u,p=oi(g,b,A),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e}else n=u,u=e;if(u===e){if(u=n,p=[],g=n,b=n,A=n,C=n,y++,U=Ar(),y--,U===e?C=void 0:(n=C,C=e),C!==e?(U=Hr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e),A!==e?b=t.substring(b,n):b=A,b!==e){for(A=[],C=Ar();C!==e;)A.push(C),C=Ar();A!==e?(h=g,b=qn(b,A),g=b):(n=g,g=e)}else n=g,g=e;if(g!==e)for(;g!==e;)if(p.push(g),g=n,b=n,A=n,C=n,y++,U=Ar(),y--,U===e?C=void 0:(n=C,C=e),C!==e?(U=Hr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e),A!==e?b=t.substring(b,n):b=A,b!==e){for(A=[],C=Ar();C!==e;)A.push(C),C=Ar();A!==e?(h=g,b=qn(b,A),g=b):(n=g,g=e)}else n=g,g=e;else p=e;if(p!==e&&(h=u,p=go(p)),u=p,u===e)if(u=[],p=Hr(),p!==e)for(;p!==e;)u.push(p),p=Hr();else u=e}return u}function Ia(){var u,p,g,b,A,C,U,Q,F,D,H,ie,le,ce,$t;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ds(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e)if(h=n,U=os(p,b,C),U?U=void 0:U=e,U!==e)if(h=n,Q=Di(p,b,C),Q?Q=void 0:Q=e,Q!==e){for(F=n,D=[],H=$n();H!==e;)D.push(H),H=$n();if(D!==e)if(H=Fa(),H!==e){for(ie=[],le=$n();le!==e;)ie.push(le),le=$n();ie!==e?(h=F,D=en(p,b,C,H),F=D):(n=F,F=e)}else n=F,F=e;else n=F,F=e;F!==e?(D=n,H=ge(),H!==e?D=t.substring(D,n):D=H,D!==e?(H=n,ie=ji(),ie!==e?(le=tr(),le!==e?(h=n,ce=v(p,b,C,F,D,le),ce?ce=void 0:ce=e,ce!==e?($t=ai(),$t===e&&($t=null),$t!==e?(h=H,ie=yo(p,b,C,F,D,le),H=ie):(n=H,H=e)):(n=H,H=e)):(n=H,H=e)):(n=H,H=e),H!==e?(h=n,ie=cr(p,b,C,F,D,H),ie?ie=void 0:ie=e,ie!==e?(h=u,p=ss(p,b,C,F,D,H),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function Oa(){var u,p,g,b,A,C,U,Q,F,D,H,ie,le;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ds(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e){if(U=[],Q=n,F=$n(),F===e&&(F=Ta(),F===e&&(F=Ia(),F===e&&(F=Oa(),F===e&&(F=ja(),F===e&&(F=Ba(),F===e&&(F=Ma(),F===e&&(F=Ra(),F===e&&(F=La(),F===e&&(F=qa(),F===e&&(F=Na(),F===e&&(F=Da()))))))))))),F!==e&&(h=Q,F=$o(p,b,C,F)),Q=F,Q===e){for(Q=n,F=n,D=[],H=Ot();H!==e;)D.push(H),H=Ot();if(D!==e?F=t.substring(F,n):F=D,F!==e){if(D=n,H=[],ie=Gt(),ie!==e)for(;ie!==e;)H.push(ie),ie=Gt();else H=e;H!==e?D=t.substring(D,n):D=H,D!==e?(h=Q,F=bo(p,b,C,F,D),Q=F):(n=Q,Q=e)}else n=Q,Q=e}for(;Q!==e;)if(U.push(Q),Q=n,F=$n(),F===e&&(F=Ta(),F===e&&(F=Ia(),F===e&&(F=Oa(),F===e&&(F=ja(),F===e&&(F=Ba(),F===e&&(F=Ma(),F===e&&(F=Ra(),F===e&&(F=La(),F===e&&(F=qa(),F===e&&(F=Na(),F===e&&(F=Da()))))))))))),F!==e&&(h=Q,F=$o(p,b,C,F)),Q=F,Q===e){for(Q=n,F=n,D=[],H=Ot();H!==e;)D.push(H),H=Ot();if(D!==e?F=t.substring(F,n):F=D,F!==e){if(D=n,H=[],ie=Gt(),ie!==e)for(;ie!==e;)H.push(ie),ie=Gt();else H=e;H!==e?D=t.substring(D,n):D=H,D!==e?(h=Q,F=bo(p,b,C,F,D),Q=F):(n=Q,Q=e)}else n=Q,Q=e}U!==e?(Q=n,F=ge(),F!==e?Q=t.substring(Q,n):Q=F,Q!==e?(F=n,D=ji(),D!==e?(H=tr(),H!==e?(h=n,ie=v(p,b,C,U,Q,H),ie?ie=void 0:ie=e,ie!==e?(le=ai(),le===e&&(le=null),le!==e?(h=F,D=wo(p,b,C,U,Q,H),F=D):(n=F,F=e)):(n=F,F=e)):(n=F,F=e)):(n=F,F=e),F!==e?(h=n,D=cr(p,b,C,U,Q,F),D?D=void 0:D=e,D!==e?(h=u,p=Un(p,b,C,U,Q,F),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function kh(){var u,p,g;if(u=n,p=[],g=Gt(),g!==e)for(;g!==e;)p.push(g),g=Gt();else p=e;return p!==e&&(h=u,p=Xt()),u=p,u}function D0(){var u,p,g,b;if(u=n,p=[],g=n,b=Dr(),b!==e&&(h=g,b=Ri()),g=b,g===e){if(g=[],hn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Yt)),b!==e)for(;b!==e;)g.push(b),hn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Yt));else g=e;g===e&&(g=Gt())}if(g!==e){for(;g!==e;)if(p.push(g),g=n,b=Dr(),b!==e&&(h=g,b=Ri()),g=b,g===e){if(g=[],hn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Yt)),b!==e)for(;b!==e;)g.push(b),hn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Yt));else g=e;g===e&&(g=Gt())}}else p=e;return p!==e&&(h=u,p=wa(p)),u=p,u}function qa(){var u,p,g,b,A,C,U,Q,F,D,H,ie;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=n,y++,b=Rn(),y--,b===e?g=void 0:(n=g,g=e),g!==e)if(b=fi(),b!==e)if(A=ge(),A!==e)if(C=Dr(),C===e&&(C=null),C!==e)if(h=n,U=as(p,b),U?U=void 0:U=e,U!==e){for(Q=n,F=[],D=n,H=n,y++,ie=Dr(),y--,ie===e?H=void 0:(n=H,H=e),H!==e?(ie=Gt(),ie!==e?(H=[H,ie],D=H):(n=D,D=e)):(n=D,D=e);D!==e;)F.push(D),D=n,H=n,y++,ie=Dr(),y--,ie===e?H=void 0:(n=H,H=e),H!==e?(ie=Gt(),ie!==e?(H=[H,ie],D=H):(n=D,D=e)):(n=D,D=e);F!==e?Q=t.substring(Q,n):Q=F,Q!==e?(h=u,p=gn(p,b,Q),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function Na(){var u,p,g,b,A,C,U,Q,F;return u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e?(g=n,y++,b=Rn(),y--,b===e?g=void 0:(n=g,g=e),g!==e?(b=fi(),b!==e?(A=ge(),A!==e?(C=Dr(),C===e&&(C=null),C!==e?(h=n,U=si(p,b),U?U=void 0:U=e,U!==e?(h=n,Q=ka(p,b),Q?Q=void 0:Q=e,Q!==e?(F=Fa(),F!==e?(h=u,p=va(p,b,F),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function Da(){var u,p,g,b,A,C,U,Q,F,D,H;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=n,y++,b=Rn(),y--,b===e?g=void 0:(n=g,g=e),g!==e)if(b=fi(),b!==e)if(A=ge(),A!==e)if(C=Dr(),C===e&&(C=hh()),C!==e){for(U=n,Q=[],F=n,D=n,y++,H=Dr(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Gt(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);F!==e;)Q.push(F),F=n,D=n,y++,H=Dr(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Gt(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);Q!==e?U=t.substring(U,n):U=Q,U!==e?(h=u,p=xa(p,b,C,U),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function vh(){var u,p,g,b,A,C,U,Q,F,D,H;for(u=n,p=[],g=Ur();g!==e;)p.push(g),g=Ur();if(p!==e)if(g=li(),g!==e){if(b=[],A=n,C=ge(),C!==e)if(t.substr(n,2)===Nn?(U=Nn,n+=2):(U=e,y===0&&oe(ls)),U!==e)if(Q=ge(),Q!==e){if(F=[],D=Ur(),D!==e)for(;D!==e;)F.push(D),D=Ur();else F=e;F!==e?(D=ge(),D!==e?(H=li(),H!==e?(h=A,C=pe(p,F),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)}else n=A,A=e;else n=A,A=e;else n=A,A=e;for(;A!==e;)if(b.push(A),A=n,C=ge(),C!==e)if(t.substr(n,2)===Nn?(U=Nn,n+=2):(U=e,y===0&&oe(ls)),U!==e)if(Q=ge(),Q!==e){if(F=[],D=Ur(),D!==e)for(;D!==e;)F.push(D),D=Ur();else F=e;F!==e?(D=ge(),D!==e?(H=li(),H!==e?(h=A,C=pe(p,F),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)}else n=A,A=e;else n=A,A=e;else n=A,A=e;b!==e?(h=u,p=Ae(p,b),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;return u}function Ra(){var u,p,g,b,A,C,U;return u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e?(t.substr(n,6)===Y?(g=Y,n+=6):(g=e,y===0&&oe(Ct)),g!==e?(b=ge(),b!==e?(A=n,C=za(),C!==e?A=t.substring(A,n):A=C,A!==e?(C=ge(),C!==e?(U=vh(),U!==e?(h=u,p=Ca(p,g,A,U),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function La(){var u,p,g,b,A,C,U,Q;return u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e?(t.substr(n,7)===Ce?(g=Ce,n+=7):(g=e,y===0&&oe(ot)),g!==e?(b=ge(),b!==e?(A=n,C=tr(),C===e&&(C=n,Aa.test(t.charAt(n))?(U=t.charAt(n),n++):(U=e,y===0&&oe(Ea)),U!==e?(t.substr(n,2)===us?(Q=us,n+=2):(Q=e,y===0&&oe(_a)),Q!==e?(U=[U,Q],C=U):(n=C,C=e)):(n=C,C=e)),C!==e?A=t.substring(A,n):A=C,A!==e?(C=ge(),C!==e?(U=ci(),U!==e?(h=u,p=fs(p,g,A,U),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function ja(){var u,p,g,b,A,C,U,Q,F,D,H,ie;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ms(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e)if(h=n,U=cs(p,g,b,C),U?U=void 0:U=e,U!==e){for(Q=n,F=[],D=n,H=n,y++,ie=Dr(),y--,ie===e?H=void 0:(n=H,H=e),H!==e?(ie=Gt(),ie!==e?(H=[H,ie],D=H):(n=D,D=e)):(n=D,D=e);D!==e;)F.push(D),D=n,H=n,y++,ie=Dr(),y--,ie===e?H=void 0:(n=H,H=e),H!==e?(ie=Gt(),ie!==e?(H=[H,ie],D=H):(n=D,D=e)):(n=D,D=e);F!==e?Q=t.substring(Q,n):Q=F,Q!==e?(h=u,p=Sa(p,g,b,C,Q),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function Ba(){var u,p,g,b,A,C,U,Q,F;return u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e?(g=ms(),g!==e?(b=tr(),b!==e?(A=ge(),A!==e?(C=ci(),C!==e?(h=n,U=tn(p,g,b,C),U?U=void 0:U=e,U!==e?(h=n,Q=Et(p,g,b,C),Q?Q=void 0:Q=e,Q!==e?(F=Fa(),F!==e?(h=u,p=Pe(p,g,b,C,F),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function Ma(){var u,p,g,b,A,C,U,Q,F,D,H;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ms(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e){for(U=n,Q=[],F=n,D=n,y++,H=Dr(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Gt(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);F!==e;)Q.push(F),F=n,D=n,y++,H=Dr(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Gt(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);Q!==e?U=t.substring(U,n):U=Q,U!==e?(h=u,p=Li(p,g,b,C,U),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function za(){var u,p,g,b,A;if(u=n,p=n,Sf.test(t.charAt(n))?(g=t.charAt(n),n++):(g=e,y===0&&oe(er)),g!==e){if(b=[],zt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Ir)),A!==e)for(;A!==e;)b.push(A),zt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Ir));else b=e;b!==e?(g=[g,b],p=g):(n=p,p=e)}else n=p,p=e;return p!==e?u=t.substring(u,n):u=p,u}function R0(){var u,p;for(y++,u=[],it.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Dn));p!==e;)u.push(p),it.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Dn));return y--,u===e&&(p=e,y===0&&oe(yn)),u}function L0(){var u,p;for(y++,u=[],it.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Dn));p!==e;)u.push(p),it.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Dn));return y--,u===e&&(p=e,y===0&&oe(Pa)),u}function ys(u){return u!==u.toLowerCase()&&u!==u.toUpperCase()}function xh(u){return u===u.toUpperCase()}function Vi(u){return u.reduce((p,g)=>Array.isArray(g)?p.concat(Vi(g)):p.concat(g),[])}function Ch(u){return["code","comment","data","defn","formula","head","include","input","item","markdown","nested","output","para","picture","pod","table","toc"].includes(u)||xh(u)||u.match(/^(head|item)\d+$/)||ys(u)}function Ah(u,p){return u.length==0?p:p.indexOf(u)==0?p.replace(u,""):p.replace(/^\s+/,"")}if(R=s(),R!==e&&n===t.length)return R;throw R!==e&&n<t.length&&oe(K()),Tf(_,w<t.length?t.charAt(w):null,w<t.length?ko(w,w+1):ko(w,w))}yd.exports={SyntaxError:Ci,parse:Mw}});var kd=me((iC,wd)=>{"use strict";function Vw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Ai(t,r,e,i){this.message=t,this.expected=r,this.found=e,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ai)}Vw(Ai,Error);Ai.buildMessage=function(t,r){var e={literal:function(m){return'"'+s(m.text)+'"'},class:function(m){var d="",$;for($=0;$<m.parts.length;$++)d+=m.parts[$]instanceof Array?a(m.parts[$][0])+"-"+a(m.parts[$][1]):a(m.parts[$]);return"["+(m.inverted?"^":"")+d+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function i(m){return m.charCodeAt(0).toString(16).toUpperCase()}function s(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(d){return"\\x0"+i(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+i(d)})}function a(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(d){return"\\x0"+i(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+i(d)})}function l(m){return e[m.type](m)}function f(m){var d=new Array(m.length),$,E;for($=0;$<m.length;$++)d[$]=l(m[$]);if(d.sort(),d.length>0){for($=1,E=1;$<d.length;$++)d[$-1]!==d[$]&&(d[E]=d[$],E++);d.length=E}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function c(m){return m?'"'+s(m)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function Uw(t,r){r=r!==void 0?r:{};var e={},i={Expression:oi},s=oi,a="A",l=Xe("A",!1),f="V",c=Xe("V",!1),m="R",d=Xe("R",!1),$="B",E=Xe("B",!1),k="I",x=Xe("I",!1),I="C",N=Xe("C",!1),B="D",X=Xe("D",!1),se="E",$e=Xe("E",!1),he="K",ne=Xe("K",!1),be="L",xe=Xe("L",!1),ke="S",Le=Xe("S",!1),Ee="T",_e=Xe("T",!1),de="F",Ce=Xe("F",!1),ot="U",Y=Xe("U",!1),Ct="Z",Ze=Xe("Z",!1),yt="N",tt=Xe("N",!1),M="X",V=Xe("X",!1),Jt=/^[a-zA-Z]/,Rt=qr([["a","z"],["A","Z"]],!1,!1),bt=/^[a-zA-Z0-9_\-]/,St=qr([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),At=/^[ \t\f]/,st=qr([" "," ","\f"],!1,!1),Fr=function(n){return!(r.allowed||[]).length||(r.allowed||[]).includes(n)},ye=Nr(),wr=function(n){return n==="A"},zt=function(n,h){return{content:h,type:"fcode",name:n}},Ir=function(n){return n==="D"},Vt=function(n,h,T){return Dn(T)},ei=function(n,h,T){return{content:h,type:"fcode",name:n,synonyms:T}},Mn=function(n){return n==="V"},En=function(n,h){return{content:h,type:"fcode",name:n}},Ge="<",Ke=Xe("<",!1),at=">",We=Xe(">",!1),Or=function(){return cr()},ze="\xAB",Ve=Xe("\xAB",!1),ct="\xBB",pt=Xe("\xBB",!1),Ut=function(n){return n},re=function(n){return n.code==="C"},ae=function(n,h){return h===n.end_tag},we=function(n,h){return h},Ie=function(n,h,T){return T===n.end_tag},Dt=function(n,h,T){return{content:h,type:"fcode",name:n.code}},Zr="|",rt=Xe("|",!1),wt=function(n){return n},Pt=function(n){return n.code==="L"},Jr=function(n,h,T){return T},dt=function(n,h,T,w){return w===n.end_tag},_n=function(n,h,T,w){return{content:h,type:"fcode",name:n.code,meta:T}},It=";",cn=Xe(";",!1),co=/^[ \xA0\u2001\t\f\u2008]/,Br=qr([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),zn=function(n,h){return Dn([n,h])},ti=function(n){return[n]},po=function(n){return n==="X"},ri=function(n,h,T){return{content:h,type:"fcode",name:n,entry:T}},qi=function(n){return n==="S"},ni=function(n){return n==="Z"},Sn=/^[0-9]/,Ni=qr([["0","9"]],!1,!1),Pn="0d",z=Xe("0d",!1),O=function(n){return parseInt(n,10)},G="0o",ee=Xe("0o",!1),te=function(n){return parseInt(n,8)},pe="0b",Ae=Xe("0b",!1),Oe=function(n){return parseInt(n,2)},je="0x",gt=Xe("0x",!1),Se=/^[0-9A-Fa-f]/,nt=qr([["0","9"],["A","F"],["a","f"]],!1,!1),kt=function(){return parseInt(cr())},lt=/^[A-Z ]/,qe=qr([["A","Z"]," "],!1,!1),mt=function(){return cr()===cr().toUpperCase()},Je=/^[a-z]/,Mr=qr([["a","z"]],!1,!1),Lt=/^[a-z0-9]/,Ht=qr([["a","z"],["0","9"]],!1,!1),Qe=function(n){return cr()},jt=function(n){return{type:"number",value:parseInt(n,10)}},Qt=function(n){return{type:"unicode_name",value:n}},kr=function(n){return{type:"html_named",value:n}},zr=function(n){return n==="E"},vr=function(n,h){return Dn(h)},pn=function(n,h){return{content:h||[],type:"fcode",name:n}},Tn=function(n){return n},Fn=function(n,h){return{code:n,begin_tag:h,end_tag:Pa(h)}},Qr=function(n){return n.code!=="C"},Xr=function(n,h,T){return T===n.end_tag},xr=function(n,h,T){return{content:h,type:"fcode",name:n.code}},o=0,ue=0,Cr=[{line:1,column:1}],fr=0,Vn=[],v=0,Vr;if("startRule"in r){if(!(r.startRule in i))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=i[r.startRule]}function cr(){return t.substring(ue,o)}function mo(){return pr(ue,o)}function In(n,h){throw h=h!==void 0?h:pr(ue,o),mn([ii(n)],t.substring(ue,o),h)}function ho(n,h){throw h=h!==void 0?h:pr(ue,o),Yr(n,h)}function Xe(n,h){return{type:"literal",text:n,ignoreCase:h}}function qr(n,h,T){return{type:"class",parts:n,inverted:h,ignoreCase:T}}function Nr(){return{type:"any"}}function dn(){return{type:"end"}}function ii(n){return{type:"other",description:n}}function On(n){var h=Cr[n],T;if(h)return h;for(T=n-1;!Cr[T];)T--;for(h=Cr[T],h={line:h.line,column:h.column};T<n;)t.charCodeAt(T)===10?(h.line++,h.column=1):h.column++,T++;return Cr[n]=h,h}function pr(n,h){var T=On(n),w=On(h);return{start:{offset:n,line:T.line,column:T.column},end:{offset:h,line:w.line,column:w.column}}}function Z(n){o<fr||(o>fr&&(fr=o,Vn=[]),Vn.push(n))}function Yr(n,h){return new Ai(n,null,null,h)}function mn(n,h,T){return new Ai(Ai.buildMessage(n,h),n,h,T)}function oi(){var n,h;for(n=[],h=qn(),h===e&&(h=Li(),h===e&&(h=er(),h===e&&(h=yo())));h!==e;)n.push(h),h=qn(),h===e&&(h=Li(),h===e&&(h=er(),h===e&&(h=yo())));return n}function qn(){var n;return n=ss(),n===e&&(n=va(),n===e&&(n=Ri(),n===e&&(n=$o(),n===e&&(n=Sa(),n===e&&(n=bo(),n===e&&(n=wa(),n===e&&(n=ka(),n===e&&(n=xa())))))))),n}function go(){var n;return t.charCodeAt(o)===65?(n=a,o++):(n=e,v===0&&Z(l)),n===e&&(t.charCodeAt(o)===86?(n=f,o++):(n=e,v===0&&Z(c)),n===e&&(t.charCodeAt(o)===82?(n=m,o++):(n=e,v===0&&Z(d)),n===e&&(t.charCodeAt(o)===66?(n=$,o++):(n=e,v===0&&Z(E)),n===e&&(t.charCodeAt(o)===73?(n=k,o++):(n=e,v===0&&Z(x)),n===e&&(t.charCodeAt(o)===67?(n=I,o++):(n=e,v===0&&Z(N)),n===e&&(t.charCodeAt(o)===68?(n=B,o++):(n=e,v===0&&Z(X)),n===e&&(t.charCodeAt(o)===69?(n=se,o++):(n=e,v===0&&Z($e)),n===e&&(t.charCodeAt(o)===75?(n=he,o++):(n=e,v===0&&Z(ne)),n===e&&(t.charCodeAt(o)===76?(n=be,o++):(n=e,v===0&&Z(xe)),n===e&&(t.charCodeAt(o)===83?(n=ke,o++):(n=e,v===0&&Z(Le)),n===e&&(t.charCodeAt(o)===84?(n=Ee,o++):(n=e,v===0&&Z(_e)),n===e&&(t.charCodeAt(o)===70?(n=de,o++):(n=e,v===0&&Z(Ce)),n===e&&(t.charCodeAt(o)===85?(n=ot,o++):(n=e,v===0&&Z(Y)),n===e&&(t.charCodeAt(o)===90?(n=Ct,o++):(n=e,v===0&&Z(Ze)),n===e&&(t.charCodeAt(o)===78?(n=yt,o++):(n=e,v===0&&Z(tt)),n===e&&(t.charCodeAt(o)===88?(n=M,o++):(n=e,v===0&&Z(V)))))))))))))))))),n}function os(){var n,h,T,w,_;if(n=o,h=o,Jt.test(t.charAt(o))?(T=t.charAt(o),o++):(T=e,v===0&&Z(Rt)),T!==e){if(w=[],bt.test(t.charAt(o))?(_=t.charAt(o),o++):(_=e,v===0&&Z(St)),_!==e)for(;_!==e;)w.push(_),bt.test(t.charAt(o))?(_=t.charAt(o),o++):(_=e,v===0&&Z(St));else w=e;w!==e?(T=[T,w],h=T):(o=h,h=e)}else o=h,h=e;return h!==e?n=t.substring(n,o):n=h,n}function Di(){var n,h;for(n=[],At.test(t.charAt(o))?(h=t.charAt(o),o++):(h=e,v===0&&Z(st));h!==e;)n.push(h),At.test(t.charAt(o))?(h=t.charAt(o),o++):(h=e,v===0&&Z(st));return n}function en(){var n,h,T;return n=o,h=go(),h!==e?(ue=o,T=Fr(h),T?T=void 0:T=e,T!==e?(h=[h,T],n=h):(o=n,n=e)):(o=n,n=e),n}function yo(){var n,h;return n=o,t.length>o?(h=t.charAt(o),o++):(h=e,v===0&&Z(ye)),h!==e?n=t.substring(n,o):n=h,n}function ss(){var n,h,T,w,_;return n=o,h=tn(),h!==e?(ue=o,T=wr(h),T?T=void 0:T=e,T!==e?(w=Yt(),w!==e?(_=Pe(),_!==e?(ue=n,h=zt(h,w),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e),n}function $o(){var n,h,T,w,_,y,R,S;if(n=o,h=tn(),h!==e)if(ue=o,T=Ir(h),T?T=void 0:T=e,T!==e){if(w=[],_=Yt(),_!==e)for(;_!==e;)w.push(_),_=Yt();else w=e;if(w!==e){if(_=o,y=hn(),y!==e){for(R=[],S=si();S!==e;)R.push(S),S=si();R!==e?(ue=_,y=Vt(h,w,R),_=y):(o=_,_=e)}else o=_,_=e;_===e&&(_=null),_!==e?(y=Pe(),y!==e?(ue=n,h=ei(h,w,_),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e}else o=n,n=e;else o=n,n=e;return n}function bo(){var n,h,T,w,_,y;if(n=o,h=tn(),h!==e)if(ue=o,T=Mn(h),T?T=void 0:T=e,T!==e){if(w=o,_=[],y=Xt(),y!==e)for(;y!==e;)_.push(y),y=Xt();else _=e;_!==e?w=t.substring(w,o):w=_,w!==e?(_=Pe(),_!==e?(ue=n,h=En(h,w),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function wo(){var n;return t.charCodeAt(o)===66?(n=$,o++):(n=e,v===0&&Z(E)),n}function Un(){var n,h,T,w,_;return n=o,h=o,T=o,v++,w=wo(),v--,w===e?T=void 0:(o=T,T=e),T!==e?(t.length>o?(w=t.charAt(o),o++):(w=e,v===0&&Z(ye)),w!==e?(T=[T,w],h=T):(o=h,h=e)):(o=h,h=e),h!==e?(t.charCodeAt(o)===60?(T=Ge,o++):(T=e,v===0&&Z(Ke)),T!==e?(w=yn(),w!==e?(t.charCodeAt(o)===62?(_=at,o++):(_=e,v===0&&Z(We)),_!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e),n===e&&(n=o,h=o,T=o,v++,w=wo(),v--,w===e?T=void 0:(o=T,T=e),T!==e?(t.length>o?(w=t.charAt(o),o++):(w=e,v===0&&Z(ye)),w!==e?(T=[T,w],h=T):(o=h,h=e)):(o=h,h=e),h!==e?(t.charCodeAt(o)===171?(T=ze,o++):(T=e,v===0&&Z(Ve)),T!==e?(w=yn(),w!==e?(t.charCodeAt(o)===187?(_=ct,o++):(_=e,v===0&&Z(pt)),_!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)),n}function Xt(){var n,h,T,w,_,y,R,S;if(n=o,h=o,T=[],w=o,_=o,y=o,v++,t.charCodeAt(o)===60?(R=Ge,o++):(R=e,v===0&&Z(Ke)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(t.length>o?(R=t.charAt(o),o++):(R=e,v===0&&Z(ye)),R!==e?(y=[y,R],_=y):(o=_,_=e)):(o=_,_=e),_===e&&(_=null),_!==e?(t.charCodeAt(o)===60?(y=Ge,o++):(y=e,v===0&&Z(Ke)),y!==e?(R=Xt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===62?(S=at,o++):(S=e,v===0&&Z(We)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,y=o,v++,t.charCodeAt(o)===171?(R=ze,o++):(R=e,v===0&&Z(Ve)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(t.length>o?(R=t.charAt(o),o++):(R=e,v===0&&Z(ye)),R!==e?(y=[y,R],_=y):(o=_,_=e)):(o=_,_=e),_===e&&(_=null),_!==e?(t.charCodeAt(o)===171?(y=ze,o++):(y=e,v===0&&Z(Ve)),y!==e?(R=Xt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===187?(S=ct,o++):(S=e,v===0&&Z(pt)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=Un(),w===e&&(w=yn()))),w!==e)for(;w!==e;)T.push(w),w=o,_=o,y=o,v++,t.charCodeAt(o)===60?(R=Ge,o++):(R=e,v===0&&Z(Ke)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(t.length>o?(R=t.charAt(o),o++):(R=e,v===0&&Z(ye)),R!==e?(y=[y,R],_=y):(o=_,_=e)):(o=_,_=e),_===e&&(_=null),_!==e?(t.charCodeAt(o)===60?(y=Ge,o++):(y=e,v===0&&Z(Ke)),y!==e?(R=Xt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===62?(S=at,o++):(S=e,v===0&&Z(We)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,y=o,v++,t.charCodeAt(o)===171?(R=ze,o++):(R=e,v===0&&Z(Ve)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(t.length>o?(R=t.charAt(o),o++):(R=e,v===0&&Z(ye)),R!==e?(y=[y,R],_=y):(o=_,_=e)):(o=_,_=e),_===e&&(_=null),_!==e?(t.charCodeAt(o)===171?(y=ze,o++):(y=e,v===0&&Z(Ve)),y!==e?(R=Xt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===187?(S=ct,o++):(S=e,v===0&&Z(pt)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=Un(),w===e&&(w=yn())));else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=Ut(h)),n=h,n}function Ri(){var n,h,T,w,_,y,R,S,q,J,P,W,L,j,K;if(n=o,h=Et(),h!==e)if(ue=o,T=re(h),T?T=void 0:T=e,T!==e){if(w=[],_=o,y=o,R=[],S=o,q=o,J=o,v++,t.charCodeAt(o)===60?(P=Ge,o++):(P=e,v===0&&Z(Ke)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===60?(J=Ge,o++):(J=e,v===0&&Z(Ke)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===62?(W=at,o++):(W=e,v===0&&Z(We)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,q=o,J=o,v++,t.charCodeAt(o)===171?(P=ze,o++):(P=e,v===0&&Z(Ve)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===171?(J=ze,o++):(J=e,v===0&&Z(Ve)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===187?(W=ct,o++):(W=e,v===0&&Z(pt)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=Un(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}if(S!==e){for(;S!==e;)if(R.push(S),S=o,q=o,J=o,v++,t.charCodeAt(o)===60?(P=Ge,o++):(P=e,v===0&&Z(Ke)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===60?(J=Ge,o++):(J=e,v===0&&Z(Ke)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===62?(W=at,o++):(W=e,v===0&&Z(We)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,q=o,J=o,v++,t.charCodeAt(o)===171?(P=ze,o++):(P=e,v===0&&Z(Ve)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===171?(J=ze,o++):(J=e,v===0&&Z(Ve)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===187?(W=ct,o++):(W=e,v===0&&Z(pt)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=Un(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}}else R=e;if(R!==e?y=t.substring(y,o):y=R,y!==e&&(ue=_,y=we(h,y)),_=y,_!==e)for(;_!==e;){if(w.push(_),_=o,y=o,R=[],S=o,q=o,J=o,v++,t.charCodeAt(o)===60?(P=Ge,o++):(P=e,v===0&&Z(Ke)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===60?(J=Ge,o++):(J=e,v===0&&Z(Ke)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===62?(W=at,o++):(W=e,v===0&&Z(We)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,q=o,J=o,v++,t.charCodeAt(o)===171?(P=ze,o++):(P=e,v===0&&Z(Ve)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===171?(J=ze,o++):(J=e,v===0&&Z(Ve)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===187?(W=ct,o++):(W=e,v===0&&Z(pt)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=Un(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}if(S!==e){for(;S!==e;)if(R.push(S),S=o,q=o,J=o,v++,t.charCodeAt(o)===60?(P=Ge,o++):(P=e,v===0&&Z(Ke)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===60?(J=Ge,o++):(J=e,v===0&&Z(Ke)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===62?(W=at,o++):(W=e,v===0&&Z(We)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,q=o,J=o,v++,t.charCodeAt(o)===171?(P=ze,o++):(P=e,v===0&&Z(Ve)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===171?(J=ze,o++):(J=e,v===0&&Z(Ve)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===187?(W=ct,o++):(W=e,v===0&&Z(pt)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=Un(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}}else R=e;R!==e?y=t.substring(y,o):y=R,y!==e&&(ue=_,y=we(h,y)),_=y}else w=e;w!==e?(_=Pe(),_!==e?(ue=o,y=Ie(h,w,_),y?y=void 0:y=e,y!==e?(ue=n,h=Dt(h,w,_),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function hn(){var n;return t.charCodeAt(o)===124?(n=Zr,o++):(n=e,v===0&&Z(rt)),n}function Yt(){var n,h,T,w,_,y,R,S,q;if(n=o,h=o,T=[],w=o,_=o,y=o,v++,t.charCodeAt(o)===60?(R=Ge,o++):(R=e,v===0&&Z(Ke)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=en(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(y=[y,R,S],_=y):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_!==e?(t.charCodeAt(o)===60?(y=Ge,o++):(y=e,v===0&&Z(Ke)),y!==e?(R=Yt(),R!==e?(t.charCodeAt(o)===62?(S=at,o++):(S=e,v===0&&Z(We)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,y=o,v++,t.charCodeAt(o)===171?(R=ze,o++):(R=e,v===0&&Z(Ve)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=en(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(y=[y,R,S],_=y):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_!==e?(t.charCodeAt(o)===171?(y=ze,o++):(y=e,v===0&&Z(Ve)),y!==e?(R=Yt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===187?(S=ct,o++):(S=e,v===0&&Z(pt)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,v++,y=hn(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(y=o,v++,R=Pe(),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=tn(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(S=o,v++,q=it(),v--,q===e?S=void 0:(o=S,S=e),S!==e?(t.length>o?(q=t.charAt(o),o++):(q=e,v===0&&Z(ye)),q!==e?(_=[_,y,R,S,q],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e))),w!==e)for(;w!==e;)T.push(w),w=o,_=o,y=o,v++,t.charCodeAt(o)===60?(R=Ge,o++):(R=e,v===0&&Z(Ke)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=en(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(y=[y,R,S],_=y):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_!==e?(t.charCodeAt(o)===60?(y=Ge,o++):(y=e,v===0&&Z(Ke)),y!==e?(R=Yt(),R!==e?(t.charCodeAt(o)===62?(S=at,o++):(S=e,v===0&&Z(We)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,y=o,v++,t.charCodeAt(o)===171?(R=ze,o++):(R=e,v===0&&Z(Ve)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=en(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(y=[y,R,S],_=y):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_!==e?(t.charCodeAt(o)===171?(y=ze,o++):(y=e,v===0&&Z(Ve)),y!==e?(R=Yt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===187?(S=ct,o++):(S=e,v===0&&Z(pt)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,v++,y=hn(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(y=o,v++,R=Pe(),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=tn(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(S=o,v++,q=it(),v--,q===e?S=void 0:(o=S,S=e),S!==e?(t.length>o?(q=t.charAt(o),o++):(q=e,v===0&&Z(ye)),q!==e?(_=[_,y,R,S,q],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)));else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=wt(h)),n=h,n}function wa(){var n,h,T,w,_,y,R,S,q,J,P;if(n=o,h=Et(),h!==e)if(ue=o,T=Pt(h),T?T=void 0:T=e,T!==e){if(w=[],_=Ri(),_===e&&(_=Yt()),_!==e)for(;_!==e;)w.push(_),_=Ri(),_===e&&(_=Yt());else w=e;if(w!==e){if(_=o,y=hn(),y!==e){for(R=o,S=[],q=o,J=o,v++,P=Pe(),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e);q!==e;)S.push(q),q=o,J=o,v++,P=Pe(),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e);S!==e?R=t.substring(R,o):R=S,R!==e?(ue=_,y=Jr(h,w,R),_=y):(o=_,_=e)}else o=_,_=e;_===e&&(_=null),_!==e?(y=Pe(),y!==e?(ue=o,R=dt(h,w,_,y),R?R=void 0:R=e,R!==e?(ue=n,h=_n(h,w,_,y),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)}else o=n,n=e}else o=n,n=e;else o=n,n=e;return n}function as(){var n,h,T,w,_,y;if(n=o,h=[],T=o,w=o,v++,t.charCodeAt(o)===59?(_=It,o++):(_=e,v===0&&Z(cn)),v--,_===e?w=void 0:(o=w,w=e),w!==e?(_=o,v++,y=Pe(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(t.length>o?(y=t.charAt(o),o++):(y=e,v===0&&Z(ye)),y!==e?(w=[w,_,y],T=w):(o=T,T=e)):(o=T,T=e)):(o=T,T=e),T!==e)for(;T!==e;)h.push(T),T=o,w=o,v++,t.charCodeAt(o)===59?(_=It,o++):(_=e,v===0&&Z(cn)),v--,_===e?w=void 0:(o=w,w=e),w!==e?(_=o,v++,y=Pe(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(t.length>o?(y=t.charAt(o),o++):(y=e,v===0&&Z(ye)),y!==e?(w=[w,_,y],T=w):(o=T,T=e)):(o=T,T=e)):(o=T,T=e);else h=e;return h!==e?n=t.substring(n,o):n=h,n}function gn(){var n;return co.test(t.charAt(o))?(n=t.charAt(o),o++):(n=e,v===0&&Z(Br)),n}function si(){var n,h,T,w,_,y;if(n=o,h=as(),h!==e){for(T=[],w=gn();w!==e;)T.push(w),w=gn();if(T!==e)if(t.charCodeAt(o)===59?(w=It,o++):(w=e,v===0&&Z(cn)),w!==e){for(_=[],y=gn();y!==e;)_.push(y),y=gn();_!==e?(y=si(),y!==e?(ue=n,h=zn(h,y),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e}else o=n,n=e;return n===e&&(n=o,h=as(),h!==e&&(ue=n,h=ti(h)),n=h),n}function ka(){var n,h,T,w,_,y,R,S;if(n=o,h=tn(),h!==e)if(ue=o,T=po(h),T?T=void 0:T=e,T!==e){for(w=[],_=Yt();_!==e;)w.push(_),_=Yt();if(w!==e){if(_=o,y=hn(),y!==e){for(R=[],S=si();S!==e;)R.push(S),S=si();R!==e?(ue=_,y=Vt(h,w,R),_=y):(o=_,_=e)}else o=_,_=e;_===e&&(_=null),_!==e?(y=Pe(),y!==e?(ue=n,h=ri(h,w,_),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e}else o=n,n=e;else o=n,n=e;return n}function va(){var n,h,T,w,_,y,R,S;if(n=o,h=tn(),h!==e)if(ue=o,T=qi(h),T?T=void 0:T=e,T!==e){for(w=o,_=[],y=o,R=o,v++,S=Pe(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(R=[R,S],y=R):(o=y,y=e)):(o=y,y=e);y!==e;)_.push(y),y=o,R=o,v++,S=Pe(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(R=[R,S],y=R):(o=y,y=e)):(o=y,y=e);_!==e?w=t.substring(w,o):w=_,w!==e?(_=Pe(),_!==e?(ue=n,h=zt(h,w),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function xa(){var n,h,T,w,_,y,R,S;if(n=o,h=tn(),h!==e)if(ue=o,T=ni(h),T?T=void 0:T=e,T!==e){for(w=o,_=[],y=o,R=o,v++,S=Pe(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(R=[R,S],y=R):(o=y,y=e)):(o=y,y=e);y!==e;)_.push(y),y=o,R=o,v++,S=Pe(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(R=[R,S],y=R):(o=y,y=e)):(o=y,y=e);_!==e?w=t.substring(w,o):w=_,w!==e?(_=Pe(),_!==e?(ue=n,h=zt(h,w),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function Nn(){var n,h,T;if(n=o,h=[],Sn.test(t.charAt(o))?(T=t.charAt(o),o++):(T=e,v===0&&Z(Ni)),T!==e)for(;T!==e;)h.push(T),Sn.test(t.charAt(o))?(T=t.charAt(o),o++):(T=e,v===0&&Z(Ni));else h=e;return h!==e?n=t.substring(n,o):n=h,n}function ls(){var n,h,T;return n=o,t.substr(o,2)===Pn?(h=Pn,o+=2):(h=e,v===0&&Z(z)),h!==e?(T=Nn(),T!==e?(ue=n,h=O(T),n=h):(o=n,n=e)):(o=n,n=e),n}function Ca(){var n,h,T;return n=o,t.substr(o,2)===G?(h=G,o+=2):(h=e,v===0&&Z(ee)),h!==e?(T=Nn(),T!==e?(ue=n,h=te(T),n=h):(o=n,n=e)):(o=n,n=e),n}function Aa(){var n,h,T;return n=o,t.substr(o,2)===pe?(h=pe,o+=2):(h=e,v===0&&Z(Ae)),h!==e?(T=Nn(),T!==e?(ue=n,h=Oe(T),n=h):(o=n,n=e)):(o=n,n=e),n}function Ea(){var n,h,T,w,_,y;if(n=o,h=o,T=o,t.substr(o,2)===je?(w=je,o+=2):(w=e,v===0&&Z(gt)),w!==e){if(_=[],Se.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,v===0&&Z(nt)),y!==e)for(;y!==e;)_.push(y),Se.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,v===0&&Z(nt));else _=e;_!==e?(w=[w,_],T=w):(o=T,T=e)}else o=T,T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=kt()),n=h,n}function us(){var n,h,T,w;if(n=o,h=o,T=[],lt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,v===0&&Z(qe)),w!==e)for(;w!==e;)T.push(w),lt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,v===0&&Z(qe));else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e?(ue=o,T=mt(),T?T=void 0:T=e,T!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e),n}function _a(){var n,h,T,w,_,y;if(n=o,h=o,T=o,Je.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,v===0&&Z(Mr)),w!==e){if(_=[],Lt.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,v===0&&Z(Ht)),y!==e)for(;y!==e;)_.push(y),Lt.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,v===0&&Z(Ht));else _=e;_!==e?(w=[w,_],T=w):(o=T,T=e)}else o=T,T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=Qe(h)),n=h,n}function fs(){var n,h,T;return n=o,h=Di(),h!==e?(T=Ca(),T===e&&(T=ls(),T===e&&(T=Aa(),T===e&&(T=Ea(),T===e&&(T=Nn())))),T!==e?(ue=n,h=jt(T),n=h):(o=n,n=e)):(o=n,n=e),n===e&&(n=o,h=Di(),h!==e?(T=us(),T!==e?(ue=n,h=Qt(T),n=h):(o=n,n=e)):(o=n,n=e),n===e&&(n=o,h=Di(),h!==e?(T=_a(),T!==e?(ue=n,h=kr(T),n=h):(o=n,n=e)):(o=n,n=e))),n}function cs(){var n,h,T,w,_,y;if(n=o,h=fs(),h!==e){for(T=[],w=gn();w!==e;)T.push(w),w=gn();if(T!==e)if(t.charCodeAt(o)===59?(w=It,o++):(w=e,v===0&&Z(cn)),w!==e){for(_=[],y=gn();y!==e;)_.push(y),y=gn();_!==e?(y=cs(),y!==e?(ue=n,h=zn(h,y),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e}else o=n,n=e;return n===e&&(n=o,h=fs(),h!==e&&(ue=n,h=ti(h)),n=h),n}function Sa(){var n,h,T,w,_;return n=o,h=tn(),h!==e?(ue=o,T=zr(h),T?T=void 0:T=e,T!==e?(w=o,_=cs(),_!==e&&(ue=w,_=vr(h,_)),w=_,w===e&&(w=null),w!==e?(_=Pe(),_!==e?(ue=n,h=pn(h,w),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e),n}function tn(){var n,h,T;return n=o,h=o,T=en(),T!==e?h=t.substring(h,o):h=T,h!==e?(t.charCodeAt(o)===60?(T=Ge,o++):(T=e,v===0&&Z(Ke)),T!==e?(ue=n,h=Tn(h),n=h):(o=n,n=e)):(o=n,n=e),n}function Et(){var n,h,T,w;return n=o,h=o,T=en(),T!==e?h=t.substring(h,o):h=T,h!==e?(T=o,t.charCodeAt(o)===60?(w=Ge,o++):(w=e,v===0&&Z(Ke)),w===e&&(t.charCodeAt(o)===171?(w=ze,o++):(w=e,v===0&&Z(Ve))),w!==e?T=t.substring(T,o):T=w,T!==e?(ue=n,h=Fn(h,T),n=h):(o=n,n=e)):(o=n,n=e),n}function Pe(){var n;return t.charCodeAt(o)===62?(n=at,o++):(n=e,v===0&&Z(We)),n===e&&(t.charCodeAt(o)===187?(n=ct,o++):(n=e,v===0&&Z(pt))),n}function Li(){var n,h,T,w,_,y,R,S,q,J,P,W,L,j,K;if(n=o,h=Et(),h!==e)if(ue=o,T=Qr(h),T?T=void 0:T=e,T!==e){if(w=[],_=qn(),_===e&&(_=Li(),_===e)){if(_=o,y=o,R=[],S=o,t.charCodeAt(o)===60?(q=Ge,o++):(q=e,v===0&&Z(Ke)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===62?(P=at,o++):(P=e,v===0&&Z(We)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,t.charCodeAt(o)===171?(q=ze,o++):(q=e,v===0&&Z(Ve)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===187?(P=ct,o++):(P=e,v===0&&Z(pt)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=it(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}if(S!==e){for(;S!==e;)if(R.push(S),S=o,t.charCodeAt(o)===60?(q=Ge,o++):(q=e,v===0&&Z(Ke)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===62?(P=at,o++):(P=e,v===0&&Z(We)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,t.charCodeAt(o)===171?(q=ze,o++):(q=e,v===0&&Z(Ve)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===187?(P=ct,o++):(P=e,v===0&&Z(pt)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=it(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}}else R=e;R!==e?y=t.substring(y,o):y=R,y!==e&&(ue=_,y=we(h,y)),_=y}for(;_!==e;)if(w.push(_),_=qn(),_===e&&(_=Li(),_===e)){if(_=o,y=o,R=[],S=o,t.charCodeAt(o)===60?(q=Ge,o++):(q=e,v===0&&Z(Ke)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===62?(P=at,o++):(P=e,v===0&&Z(We)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,t.charCodeAt(o)===171?(q=ze,o++):(q=e,v===0&&Z(Ve)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===187?(P=ct,o++):(P=e,v===0&&Z(pt)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=it(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}if(S!==e){for(;S!==e;)if(R.push(S),S=o,t.charCodeAt(o)===60?(q=Ge,o++):(q=e,v===0&&Z(Ke)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===62?(P=at,o++):(P=e,v===0&&Z(We)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,t.charCodeAt(o)===171?(q=ze,o++):(q=e,v===0&&Z(Ve)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===187?(P=ct,o++):(P=e,v===0&&Z(pt)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=it(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}}else R=e;R!==e?y=t.substring(y,o):y=R,y!==e&&(ue=_,y=we(h,y)),_=y}w!==e?(_=Pe(),_!==e?(ue=o,y=Xr(h,w,_),y?y=void 0:y=e,y!==e?(ue=n,h=xr(h,w,_),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function Sf(){var n,h,T,w,_;for(n=o,h=[],T=o,w=o,v++,_=Pe(),v--,_===e?w=void 0:(o=w,w=e),w!==e?(t.length>o?(_=t.charAt(o),o++):(_=e,v===0&&Z(ye)),_!==e?(w=[w,_],T=w):(o=T,T=e)):(o=T,T=e);T!==e;)h.push(T),T=o,w=o,v++,_=Pe(),v--,_===e?w=void 0:(o=w,w=e),w!==e?(t.length>o?(_=t.charAt(o),o++):(_=e,v===0&&Z(ye)),_!==e?(w=[w,_],T=w):(o=T,T=e)):(o=T,T=e);return h!==e?n=t.substring(n,o):n=h,n}function er(){var n,h,T,w,_,y,R;if(n=o,h=o,T=[],w=o,t.charCodeAt(o)===60?(_=Ge,o++):(_=e,v===0&&Z(Ke)),_!==e?(y=er(),y!==e?(t.charCodeAt(o)===62?(R=at,o++):(R=e,v===0&&Z(We)),R!==e?(_=[_,y,R],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,t.charCodeAt(o)===171?(_=ze,o++):(_=e,v===0&&Z(Ve)),_!==e?(y=er(),y!==e?(t.charCodeAt(o)===187?(R=ct,o++):(R=e,v===0&&Z(pt)),R!==e?(_=[_,y,R],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=it(),w===e&&(w=yn()))),w!==e)for(;w!==e;)T.push(w),w=o,t.charCodeAt(o)===60?(_=Ge,o++):(_=e,v===0&&Z(Ke)),_!==e?(y=er(),y!==e?(t.charCodeAt(o)===62?(R=at,o++):(R=e,v===0&&Z(We)),R!==e?(_=[_,y,R],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,t.charCodeAt(o)===171?(_=ze,o++):(_=e,v===0&&Z(Ve)),_!==e?(y=er(),y!==e?(t.charCodeAt(o)===187?(R=ct,o++):(R=e,v===0&&Z(pt)),R!==e?(_=[_,y,R],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=it(),w===e&&(w=yn())));else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=Ut(h)),n=h,n}function yn(){var n,h,T,w,_,y,R,S;if(n=o,h=o,T=[],w=o,_=o,v++,y=Pe(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(y=o,v++,R=Et(),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=it(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w!==e)for(;w!==e;)T.push(w),w=o,_=o,v++,y=Pe(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(y=o,v++,R=Et(),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=it(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e);else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=Ut(h)),n=h,n}function it(){var n,h,T,w,_;return n=o,h=o,T=o,v++,w=en(),v--,w===e?T=void 0:(o=T,T=e),T!==e?(t.length>o?(w=t.charAt(o),o++):(w=e,v===0&&Z(ye)),w!==e?(T=[T,w],h=T):(o=h,h=e)):(o=h,h=e),h!==e?(t.charCodeAt(o)===60?(T=Ge,o++):(T=e,v===0&&Z(Ke)),T!==e?(w=yn(),w!==e?(t.charCodeAt(o)===62?(_=at,o++):(_=e,v===0&&Z(We)),_!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e),n===e&&(n=o,h=o,T=o,v++,w=en(),v--,w===e?T=void 0:(o=T,T=e),T!==e?(t.length>o?(w=t.charAt(o),o++):(w=e,v===0&&Z(ye)),w!==e?(T=[T,w],h=T):(o=h,h=e)):(o=h,h=e),h!==e?(t.charCodeAt(o)===171?(T=ze,o++):(T=e,v===0&&Z(Ve)),T!==e?(w=yn(),w!==e?(t.charCodeAt(o)===187?(_=ct,o++):(_=e,v===0&&Z(pt)),_!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)),n}function Dn(n){return n.reduce((h,T)=>Array.isArray(T)?h.concat(Dn(T)):h.concat(T),[])}function Pa(n){return{"<":">","\xAB":"\xBB",">":"<","\xBB":"\xAB"}[n]}if(Vr=s(),Vr!==e&&o===t.length)return Vr;throw Vr!==e&&o<t.length&&Z(dn()),mn(Vn,fr<t.length?t.charAt(fr):null,fr<t.length?pr(fr,fr+1):pr(fr,fr))}wd.exports={SyntaxError:Ai,parse:Uw}});var Pd=me((TC,Kw)=>{Kw.exports={name:"@podlite/schema",version:"0.0.34",description:"AST tools for Podlite markup language",main:"./src/index.ts",license:"MIT",funding:{type:"opencollective",url:"https://opencollective.com/podlite"},files:["lib/**/*.js","lib/**/*.d.ts","esm","schema/*","README.md","CHANGELOG.md"],engines:{node:">=14"},engineStrict:!0,publishConfig:{access:"public",main:"lib/index.js",types:"./lib/index.d.ts",module:"./esm/index.js"},scripts:{clean:"rm -rf lib esm *.tsbuildinfo",build:"run-s build:pegjs build_lib build:ast ",build_lib:"yarn g:build","build:ast":"ts-node scripts/make-ast-scheme.ts","build:pegjs":"pegmill -o src/grammar.js src/grammar.pegjs && pegmill -o src/grammarfc.js src/grammarfc.pegjs",watch:"npx nodemon -e js,ts --exec 'yarn' build","watch:pegjs":"npx nodemon -e pegmill --exec 'yarn' build:pegjs",test:"yarn g:jest --passWithNoTests"},keywords:["markdown","podlite","markup","markup-language"],dependencies:{ajv:"^7.2.3",events:"^3.1.0","json-pointer":"^0.6.1",nanoid:"3.1.30",slugify:"^1.6.6"},devDependencies:{"@types/node":"^17.0.7",glob:"^7.2.0","npm-run-all":"^4.1.5",pegmill:"0.1.0","ts-node":"^9.1.1",typescript:"4.5.5","typescript-json-schema":"0.53.0"}}});var Od=me((pA,Id)=>{Id.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var zd=me((dA,Md)=>{"use strict";var ea=Object.prototype.hasOwnProperty,Bd=Object.prototype.toString,qd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Dd=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Bd.call(r)==="[object Array]"},Rd=function(r){if(!r||Bd.call(r)!=="[object Object]")return!1;var e=ea.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&ea.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!i)return!1;var s;for(s in r);return typeof s>"u"||ea.call(r,s)},Ld=function(r,e){qd&&e.name==="__proto__"?qd(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},jd=function(r,e){if(e==="__proto__")if(ea.call(r,e)){if(Nd)return Nd(r,e).value}else return;return r[e]};Md.exports=function t(){var r,e,i,s,a,l,f=arguments[0],c=1,m=arguments.length,d=!1;for(typeof f=="boolean"&&(d=f,f=arguments[1]||{},c=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});c<m;++c)if(r=arguments[c],r!=null)for(e in r)i=jd(f,e),s=jd(r,e),f!==s&&(d&&s&&(Rd(s)||(a=Dd(s)))?(a?(a=!1,l=i&&Dd(i)?i:[]):l=i&&Rd(i)?i:{},Ld(f,{name:e,newValue:t(d,l,s)})):typeof s<"u"&&Ld(f,{name:e,newValue:s}));return f}});var Hd=me((gA,Ud)=>{Ud.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var I0={};Bf(I0,{PluginRegister:()=>T0,default:()=>F0,parseMd:()=>$a,plugin:()=>ba});module.exports=Fh(I0);var Td=Rr(Gp()),Zw=Rr(Jp());var NC=Rr(ed());var Sw=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 i=r.match(/(.+)\<\>/);return i?{type:"fcode",name:i[1]}:{name:r,type:"block"}}return{name:r,type:e}},vi=t=>{let r=Sw(t),{name:e,type:i}=r;return i&&i==="*"?{name:e}:e&&e==="*"?{type:i}:r};function Pw(t,r){function e(s){for(var a in s)if(s.hasOwnProperty(a))return!1;return!0}if(e(t))return!0;for(var i in t)if(t===void 0&&console.warn("[podlite] undefined key!!!"),t.hasOwnProperty(i))if(r===void 0&&console.warn("[podlite] undefined node!!!"),r&&r.hasOwnProperty(i)){if(t[i]!==r[i])return!1}else return!1;return!0}var xn=(t,r)=>{return e.rule=t,e.isFor=i,e.fn=r,e;function e(){}function i(s){return typeof s=="string"?!1:Pw(t,s)}},gu=(t,r)=>{if(t instanceof Array)return t.reduce((i,s)=>(i.push(...gu(s)),i),[]);if(t instanceof Object){let i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(xn(vi(e),t[e]));return i}return[xn(vi(t),r)]};var yu=Rr(require("crypto"),1);var td="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Tw=128,xi,io,Fw=t=>{!xi||xi.length<t?(xi=Buffer.allocUnsafe(t*Tw),yu.default.randomFillSync(xi),io=0):io+t>xi.length&&(yu.default.randomFillSync(xi),io=0),io+=t};var rd=(t=21)=>{Fw(t);let r="";for(let e=io-t;e<io;e++)r+=td[xi[e]&63];return r};var oo=t=>({...t}),$u=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},hr=(t,r)=>{let e="block",i=t.name,s={id:rd(),margin:"",...t};var a=oo({type:e,...s,content:$u(r)});return a};var Js=(t,r)=>oo({type:"fcode",...t,content:r}),bu=(t,r)=>oo({...t,type:"fcode",name:"L",content:$u(r)}),nd=t=>oo({type:"fcode",name:"Delete",content:$u(t)}),id=t=>oo({type:"fcode",name:"F",content:[{type:"text",value:t}]}),Ho=t=>oo({type:"verbatim",value:t});var od=t=>({type:"block",name:"caption",content:t}),sd=(t,r)=>({type:"image",src:t,alt:r}),wu=({margin:t=""},r)=>hr({name:"root",margin:t},r);var ad=({value:t,location:r})=>hr({name:"formula",location:r},[Ho(t)]);var ld=(t,r={})=>{let e=t.config instanceof Array?t.config:[],i=[];r.config&&r.config.hasOwnProperty(t.name)&&(i=r.config[t.name]);let s={};[...e,...i].map(l=>{s.hasOwnProperty(l.name)||(s[l.name]=[]),l.type==="array"?s[l.name].push(...l.value):s[l.name].push(l.value)});let a=function(){};return a.exists=l=>s.hasOwnProperty(l),a.getAllValues=l=>a.exists(l)?s[l]:[],a.getFirstValue=l=>a.exists(l)?a.getAllValues(l)[0]:void 0,a.asHash=()=>s,a},gr=ld;var ud=(t,r)=>{let e=gr(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};function fd(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(fd(e)):r.concat(e),[]):t}function Iw(t){function r(e,i){if(e==null)return e;if(e instanceof Array)return fd(e.map(l=>r(l,i))).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},i);let s=t.slice();s.reverse();let a=s.findIndex(l=>l.isFor(e));if(a!==-1){let l=s.slice(a+1),f=l.findIndex(m=>m.isFor(e)),c=(m=e,d=i,$=r)=>{if(f!==-1)l[f].fn(m,d,$,()=>{});else return};return typeof s[a].fn!="function"&&console.warn("[podlite] bad fn for "+JSON.stringify(e,null,2)),s[a].fn(e,i,r,c)}else{let l={...e};if(l.hasOwnProperty("content"))return r(l.content,i)}}return r.rules=t,r}var Xs=Iw;var Me=(t,r)=>(e,i)=>(s,a,l)=>{e.writeRaw(t),s.content&&l(s.content,a),e.writeRaw(r)},xt=()=>()=>()=>{},yr=(t,r)=>(e,i,s)=>{if(e.content)return s(e.content,i)},Pr=t=>(r,e)=>(i,s,a)=>t(i,s)(r,e)(i,s,a);var Go=(t,r)=>{let e=gu(t).reverse();return(i,s)=>{let a=e.map(c=>xn(c.rule,c.fn(i,s))).reverse(),l=r(i,s),f;return(c,m,d)=>(f||(f=Xs([...d.rules,...a])),l(c,m,f))}},Tr=(t,r)=>(e,i)=>{let s=t(e,i);return(a,l,f)=>{let c=gr(a,l).getFirstValue("nested")||r;c!==void 0&&e.addLevel(c),s(a,l,f),c!==void 0&&e.removeLevel(c)}};function Ko(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function cd(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(cd(e)):r.concat(e),[])}var Qs=t=>{let r=[];function e(s,a){if(s instanceof Array&&console.warn(`[podlite] Unsupported param for ${s}`),s instanceof Object){for(var l in s)s.hasOwnProperty(l)&&e(l,s[l]);return[]}r.push(xn(vi(s),a))}function i(s,a={}){if(s==null)return s;if(s instanceof Array)return cd(s.map(c=>i(c,a)));if(typeof s=="string")return s;let l=r.slice();l.reverse();let f=l.findIndex(c=>c.isFor(s));if(f!==-1)return l[f].fn(s,a,i);{let c={...s};return c.hasOwnProperty("content")&&(c.content=i(c.content,a)),c}}return e(t),i.rules=r,i},jr=Qs;var pd=Rr(require("events")),ku=class extends pd.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)}},Wo=ku;var so=(t={},r=[])=>{let e=r,i=t.processor||dd,s=t.writer;return a.use=l,a.run=f,a.getPlugins=()=>e,a;function a(c){}function l(c,m){if(c instanceof Array)return so(t,[...e,...m]);if(c instanceof Object){for(var d in c)c.hasOwnProperty(d)&&l(d,c[d]);return a}return e.push(xn(vi(c),m)),a}function f(c,m){let d="",$=m||s||new Wo(X=>{d=d+X}),E=typeof $=="function"?new $(X=>{d=d+X}):$,k=typeof c=="string"?i(c):c,x=e.slice();x.reverse();let I=Xs(x.map(X=>xn(X.rule,X.fn(E,i,k))).reverse()),N={};E.startWrite(k);let B=I(k,N);return E.endWrite(),{errors:E.errors,toString:()=>d,valueOf:()=>d,indexingTerms:E.INDEXTERMS,annotations:E.FOOTNOTES,defenitions:E.DEFINITIONS,interator:B}}};var md=()=>t=>jr({"*":(e,i,s)=>(e.content&&(e.content=s(e.content,i,s)),delete e.location,e)})(t,{}),Ys=md;var Rx={":text":(t,r)=>(e,i,s)=>{e.value?t.write(e.value):s(e.content,i)},"A<>":(t,r)=>(e,i,s)=>{if(!(i.alias&&i.alias.hasOwnProperty(e.content)))t.writeRaw(`A<${e.content}>`);else{let a=i.alias[e.content].join(`
|
|
14
|
+
`," "," ","\f"],!1,!1),Pa=ps("space characters"),n=0,h=0,T=[{line:1,column:1}],w=0,_=[],y=0,R;if("startRule"in r){if(!(r.startRule in i))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=i[r.startRule]}function S(){return t.substring(h,n)}function q(){return ko(h,n)}function J(u,p){throw p=p!==void 0?p:ko(h,n),Tf([ps(u)],t.substring(h,n),p)}function P(u,p){throw p=p!==void 0?p:ko(h,n),mh(u,p)}function W(u,p){return{type:"literal",text:u,ignoreCase:p}}function L(u,p,g){return{type:"class",parts:u,inverted:p,ignoreCase:g}}function j(){return{type:"any"}}function K(){return{type:"end"}}function ps(u){return{type:"other",description:u}}function Pf(u){var p=T[u],g;if(p)return p;for(g=u-1;!T[g];)g--;for(p=T[g],p={line:p.line,column:p.column};g<u;)t.charCodeAt(g)===10?(p.line++,p.column=1):p.column++,g++;return T[u]=p,p}function ko(u,p){var g=Pf(u),b=Pf(p);return{start:{offset:u,line:g.line,column:g.column},end:{offset:p,line:b.line,column:b.column}}}function oe(u){n<w||(n>w&&(w=n,_=[]),_.push(u))}function mh(u,p){return new Ci(u,null,null,p)}function Tf(u,p,g){return new Ci(Ci.buildMessage(u,p),u,p,g)}function Ff(){var u,p,g;for(u=n,p=[],g=If();g!==e;)p.push(g),g=If();return p!==e&&(h=u,p=a(p)),u=p,u}function If(){var u,p,g,b,A,C,U,Q;if(u=Ta(),u===e&&(u=Ia(),u===e&&(u=Oa(),u===e&&(u=ja(),u===e&&(u=Ba(),u===e&&(u=Ma(),u===e&&(u=Ra(),u===e&&(u=La(),u===e&&(u=qa(),u===e&&(u=Na(),u===e&&(u=Da(),u===e&&(u=n,h=n,p=l(),p?p=void 0:p=e,p!==e?(g=kh(),g===e&&(g=$n(),g===e&&(g=gh())),g!==e?(h=u,p=f(g),u=p):(n=u,u=e)):(n=u,u=e),u===e)))))))))))){if(u=n,p=n,g=[],b=n,A=n,y++,C=n,U=Rn(),U!==e?(Q=tr(),Q!==e?(U=[U,Q],C=U):(n=C,C=e)):(n=C,C=e),C===e&&(C=fi()),y--,C===e?A=void 0:(n=A,A=e),A!==e?(t.length>n?(C=t.charAt(n),n++):(C=e,y===0&&oe(c)),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e),b!==e)for(;b!==e;)g.push(b),b=n,A=n,y++,C=n,U=Rn(),U!==e?(Q=tr(),Q!==e?(U=[U,Q],C=U):(n=C,C=e)):(n=C,C=e),C===e&&(C=fi()),y--,C===e?A=void 0:(n=A,A=e),A!==e?(t.length>n?(C=t.charAt(n),n++):(C=e,y===0&&oe(c)),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e);else g=e;g!==e?p=t.substring(p,n):p=g,p!==e&&(h=u,p=m()),u=p}return u}function Ot(){var u;return d.test(t.charAt(n))?(u=t.charAt(n),n++):(u=e,y===0&&oe($)),u}function ge(){var u,p;for(u=[],E.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(k));p!==e;)u.push(p),E.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(k));return u}function ai(){var u,p,g,b;for(u=n,p=n,g=[],b=Ot();b!==e;)g.push(b),b=Ot();return g!==e?(x.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(I)),b!==e?(g=[g,b],p=g):(n=p,p=e)):(n=p,p=e),p!==e?u=t.substring(u,n):u=p,u}function O0(){var u,p,g,b;if(u=n,p=n,g=[],b=vo(),b!==e)for(;b!==e;)g.push(b),b=vo();else g=e;return g!==e?p=t.substring(p,n):p=g,p!==e?(g=ui(),g!==e?(h=u,p=N(p),u=p):(n=u,u=e)):(n=u,u=e),u}function vo(){var u;return B.test(t.charAt(n))?(u=t.charAt(n),n++):(u=e,y===0&&oe(X)),u}function li(){var u,p,g;return t.charCodeAt(n)===10?(u=se,n++):(u=e,y===0&&oe($e)),u===e&&(u=n,t.charCodeAt(n)===13?(p=he,n++):(p=e,y===0&&oe(ne)),p!==e?(t.charCodeAt(n)===10?(g=se,n++):(g=e,y===0&&oe($e)),g===e&&(g=null),g!==e?(p=[p,g],u=p):(n=u,u=e)):(n=u,u=e)),u}function ui(){var u,p;return u=li(),u===e&&(u=n,y++,t.length>n?(p=t.charAt(n),n++):(p=e,y===0&&oe(c)),y--,p===e?u=void 0:(n=u,u=e)),u}function Dr(){var u,p,g,b;for(u=n,p=n,g=[],b=Ot();b!==e;)g.push(b),b=Ot();return g!==e?(x.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(I)),b!==e?(g=[g,b],p=g):(n=p,p=e)):(n=p,p=e),p!==e?u=t.substring(u,n):u=p,u}function $n(){var u,p,g,b,A;for(u=n,p=n,g=n,b=[],A=Ot();A!==e;)b.push(A),A=Ot();return b!==e?(x.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(I)),A!==e?(b=[b,A],g=b):(n=g,g=e)):(n=g,g=e),g!==e?p=t.substring(p,n):p=g,p!==e&&(h=u,p=be()),u=p,u}function ds(){var u;return t.substr(n,7)===xe?(u=xe,n+=7):(u=e,y===0&&oe(ke)),u}function ji(){var u;return t.substr(n,5)===Le?(u=Le,n+=5):(u=e,y===0&&oe(Ee)),u}function ms(){var u;return t.substr(n,5)===_e?(u=_e,n+=5):(u=e,y===0&&oe(de)),u}function Of(){var u;return t.substr(n,7)===Ce?(u=Ce,n+=7):(u=e,y===0&&oe(ot)),u}function qf(){var u;return t.substr(n,6)===Y?(u=Y,n+=6):(u=e,y===0&&oe(Ct)),u}function tr(){var u,p,g;return u=n,p=za(),p!==e?(h=n,g=Ze(p),g?g=void 0:g=e,g!==e?(h=u,p=yt(p),u=p):(n=u,u=e)):(n=u,u=e),u}function fi(){var u,p,g;return u=n,t.charCodeAt(n)===61?(p=tt,n++):(p=e,y===0&&oe(M)),p!==e?(g=tr(),g!==e?(h=u,p=yt(g),u=p):(n=u,u=e)):(n=u,u=e),u}function Rn(){var u;return u=ds(),u===e&&(u=ji(),u===e&&(u=ms(),u===e&&(u=Of(),u===e&&(u=qf())))),u}function Ur(){var u,p,g;if(y++,u=n,p=[],g=vo(),g!==e)for(;g!==e;)p.push(g),g=vo();else p=e;return p!==e?u=t.substring(u,n):u=p,y--,u===e&&(p=e,y===0&&oe(V)),u}function Gt(){var u,p,g,b,A,C,U;if(u=n,p=n,y++,g=n,b=ge(),b!==e?(A=Of(),A===e&&(A=qf(),A===e&&(A=n,C=Rn(),C!==e?(U=tr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e),A===e&&(A=fi()))),A!==e?(b=[b,A],g=b):(n=g,g=e)):(n=g,g=e),g===e&&(g=$n()),y--,g===e?p=void 0:(n=p,p=e),p!==e){if(g=n,b=[],A=Ur(),A!==e)for(;A!==e;)b.push(A),A=Ur();else b=e;b!==e?g=t.substring(g,n):g=b,g!==e?(b=ui(),b!==e?(h=u,p=Jt(),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;return u}function hh(){var u,p,g,b;if(u=n,p=n,g=[],b=Ur(),b!==e)for(;b!==e;)g.push(b),b=Ur();else g=e;return g!==e?p=t.substring(p,n):p=g,p!==e?(g=ui(),g!==e?(h=u,p=Jt(),u=p):(n=u,u=e)):(n=u,u=e),u}function gh(){var u,p,g,b,A,C;if(u=n,p=n,g=[],b=n,A=n,y++,C=ui(),y--,C===e?A=void 0:(n=A,A=e),A!==e?(t.length>n?(C=t.charAt(n),n++):(C=e,y===0&&oe(c)),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e),b!==e)for(;b!==e;)g.push(b),b=n,A=n,y++,C=ui(),y--,C===e?A=void 0:(n=A,A=e),A!==e?(t.length>n?(C=t.charAt(n),n++):(C=e,y===0&&oe(c)),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e);else g=e;return g!==e?p=t.substring(p,n):p=g,p!==e?(g=ui(),g!==e?(h=u,p=Rt(),u=p):(n=u,u=e)):(n=u,u=e),u}function Nf(){var u,p,g,b;if(u=n,p=Df(),p!==e){if(g=[],b=Ot(),b!==e)for(;b!==e;)g.push(b),b=Ot();else g=e;g!==e?(b=Nf(),b!==e?(h=u,p=bt(p,b),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;return u===e&&(u=n,p=Df(),p!==e&&(h=u,p=St(p)),u=p),u}function Df(){var u,p;return u=n,p=vo(),p!==e?u=t.substring(u,n):u=p,u}function hs(){var u,p,g,b,A,C;if(u=n,p=Mi(),p!==e){if(g=[],b=Ot(),b!==e)for(;b!==e;)g.push(b),b=Ot();else g=e;g===e&&(g=n,b=ge(),b!==e?(t.charCodeAt(n)===44?(A=At,n++):(A=e,y===0&&oe(st)),A!==e?(C=ge(),C!==e?(b=[b,A,C],g=b):(n=g,g=e)):(n=g,g=e)):(n=g,g=e)),g!==e?(b=hs(),b!==e?(h=u,p=Fr(p,b),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;return u===e&&(u=n,p=Mi(),p!==e&&(h=u,p=St(p)),u=p),u}function yh(){var u,p,g,b,A;if(u=n,p=n,g=[],ye.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(wr)),b!==e)for(;b!==e;)g.push(b),ye.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(wr));else g=e;if(g!==e){for(b=[],zt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Ir));A!==e;)b.push(A),zt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Ir));b!==e?(g=[g,b],p=g):(n=p,p=e)}else n=p,p=e;return p!==e?u=t.substring(u,n):u=p,u}function Rf(){var u,p,g,b,A,C;return u=n,p=yh(),p!==e?(g=ge(),g!==e?(t.charCodeAt(n)===44?(b=At,n++):(b=e,y===0&&oe(st)),b===e&&(t.substr(n,2)===Vt?(b=Vt,n+=2):(b=e,y===0&&oe(ei))),b!==e?(A=ge(),A!==e?(C=Mi(),C!==e?(h=u,p=Mn(p,C),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function Lf(){var u,p,g,b,A,C;return u=n,p=Rf(),p!==e?(g=ge(),g!==e?(t.charCodeAt(n)===44?(b=At,n++):(b=e,y===0&&oe(st)),b!==e?(A=ge(),A!==e?(C=Lf(),C!==e?(h=u,p=En(p,C),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u===e&&(u=n,p=Rf(),p!==e&&(h=u,p=Ge(p)),u=p),u}function $h(){var u,p,g,b,A,C,U,Q,F,D;return u=n,p=ge(),p!==e?(t.charCodeAt(n)===58?(g=Ke,n++):(g=e,y===0&&oe(at)),g!==e?(t.substr(n,5)===We?(b=We,n+=5):(b=e,y===0&&oe(Or)),b!==e?(A=n,t.charCodeAt(n)===60?(C=ze,n++):(C=e,y===0&&oe(Ve)),C!==e?(U=ge(),U!==e?(Q=Nf(),Q!==e?(F=ge(),F!==e?(t.charCodeAt(n)===62?(D=ct,n++):(D=e,y===0&&oe(pt)),D!==e?(h=A,C=Ut(b,Q),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)):(n=A,A=e),A!==e?(C=ge(),C!==e?(h=u,p=re(b,A),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function q0(){var u,p,g,b,A,C;for(u=n,p=[],g=n,b=ge(),b!==e?(A=Mi(),A!==e?(C=ge(),C!==e?(h=g,b=ae(A),g=b):(n=g,g=e)):(n=g,g=e)):(n=g,g=e);g!==e;)p.push(g),g=n,b=ge(),b!==e?(A=Mi(),A!==e?(C=ge(),C!==e?(h=g,b=ae(A),g=b):(n=g,g=e)):(n=g,g=e)):(n=g,g=e);return p!==e&&(h=u,p=we(p)),u=p,u===e&&(u=n,p=Mi(),p!==e&&(h=u,p=Ie(p)),u=p,u===e&&(u=n,p=ge(),p!==e&&(h=u,p=Dt()),u=p)),u}function Bi(){var u,p,g,b,A,C,U,Q,F,D,H,ie,le,ce;if(u=$h(),u===e)if(u=n,p=ge(),p!==e)if(t.charCodeAt(n)===58?(g=Ke,n++):(g=e,y===0&&oe(at)),g!==e)if(Zr.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(rt)),b===e&&(b=null),b!==e)if(A=za(),A!==e){if(C=n,t.charCodeAt(n)===123?(U=wt,n++):(U=e,y===0&&oe(Pt)),U!==e?(Q=ge(),Q!==e?(F=Lf(),F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===125?(H=Jr,n++):(H=e,y===0&&oe(dt)),H!==e?(h=C,U=_n(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)):(n=C,C=e),C===e){if(C=n,t.charCodeAt(n)===91?(U=It,n++):(U=e,y===0&&oe(cn)),U!==e)if(Q=ge(),Q!==e){if(F=n,D=hs(),D!==e&&(h=F,D=co(b,A,D)),F=D,F===e){if(F=n,D=n,H=[],ie=n,le=n,y++,t.charCodeAt(n)===93?(ce=Br,n++):(ce=e,y===0&&oe(zn)),ce===e&&(t.charCodeAt(n)===91?(ce=It,n++):(ce=e,y===0&&oe(cn))),y--,ce===e?le=void 0:(n=le,le=e),le!==e?(t.length>n?(ce=t.charAt(n),n++):(ce=e,y===0&&oe(c)),ce!==e?(le=[le,ce],ie=le):(n=ie,ie=e)):(n=ie,ie=e),ie!==e)for(;ie!==e;)H.push(ie),ie=n,le=n,y++,t.charCodeAt(n)===93?(ce=Br,n++):(ce=e,y===0&&oe(zn)),ce===e&&(t.charCodeAt(n)===91?(ce=It,n++):(ce=e,y===0&&oe(cn))),y--,ce===e?le=void 0:(n=le,le=e),le!==e?(t.length>n?(ce=t.charAt(n),n++):(ce=e,y===0&&oe(c)),ce!==e?(le=[le,ce],ie=le):(n=ie,ie=e)):(n=ie,ie=e);else H=e;H!==e?D=t.substring(D,n):D=H,D!==e&&(h=F,D=ti(b,A)),F=D}F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===93?(H=Br,n++):(H=e,y===0&&oe(zn)),H!==e?(h=C,U=po(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)}else n=C,C=e;else n=C,C=e;if(C===e&&(C=n,t.charCodeAt(n)===60?(U=ze,n++):(U=e,y===0&&oe(Ve)),U!==e?(Q=ge(),Q!==e?(F=hs(),F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===62?(H=ct,n++):(H=e,y===0&&oe(pt)),H!==e?(h=C,U=ri(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)):(n=C,C=e),C===e)){if(C=n,t.charCodeAt(n)===60?(U=ze,n++):(U=e,y===0&&oe(Ve)),U!==e)if(Q=ge(),Q!==e){if(F=n,D=[],H=n,ie=n,y++,t.charCodeAt(n)===60?(le=ze,n++):(le=e,y===0&&oe(Ve)),le===e&&(t.charCodeAt(n)===62?(le=ct,n++):(le=e,y===0&&oe(pt))),y--,le===e?ie=void 0:(n=ie,ie=e),ie!==e?(t.length>n?(le=t.charAt(n),n++):(le=e,y===0&&oe(c)),le!==e?(ie=[ie,le],H=ie):(n=H,H=e)):(n=H,H=e),H!==e)for(;H!==e;)D.push(H),H=n,ie=n,y++,t.charCodeAt(n)===60?(le=ze,n++):(le=e,y===0&&oe(Ve)),le===e&&(t.charCodeAt(n)===62?(le=ct,n++):(le=e,y===0&&oe(pt))),y--,le===e?ie=void 0:(n=ie,ie=e),ie!==e?(t.length>n?(le=t.charAt(n),n++):(le=e,y===0&&oe(c)),le!==e?(ie=[ie,le],H=ie):(n=H,H=e)):(n=H,H=e);else D=e;D!==e?F=t.substring(F,n):F=D,F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===62?(H=ct,n++):(H=e,y===0&&oe(pt)),H!==e?(h=C,U=qi(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)}else n=C,C=e;else n=C,C=e;if(C===e){if(C=n,t.charCodeAt(n)===40?(U=ni,n++):(U=e,y===0&&oe(Sn)),U!==e)if(Q=ge(),Q!==e){if(F=n,D=hs(),D!==e&&(h=F,D=Ni(b,A,D)),F=D,F===e){if(F=n,D=n,H=[],ie=n,le=n,y++,t.charCodeAt(n)===41?(ce=Pn,n++):(ce=e,y===0&&oe(z)),ce===e&&(t.charCodeAt(n)===40?(ce=ni,n++):(ce=e,y===0&&oe(Sn))),y--,ce===e?le=void 0:(n=le,le=e),le!==e?(t.length>n?(ce=t.charAt(n),n++):(ce=e,y===0&&oe(c)),ce!==e?(le=[le,ce],ie=le):(n=ie,ie=e)):(n=ie,ie=e),ie!==e)for(;ie!==e;)H.push(ie),ie=n,le=n,y++,t.charCodeAt(n)===41?(ce=Pn,n++):(ce=e,y===0&&oe(z)),ce===e&&(t.charCodeAt(n)===40?(ce=ni,n++):(ce=e,y===0&&oe(Sn))),y--,ce===e?le=void 0:(n=le,le=e),le!==e?(t.length>n?(ce=t.charAt(n),n++):(ce=e,y===0&&oe(c)),ce!==e?(le=[le,ce],ie=le):(n=ie,ie=e)):(n=ie,ie=e);else H=e;H!==e?D=t.substring(D,n):D=H,D!==e&&(h=F,D=O(b,A)),F=D}F!==e?(D=ge(),D!==e?(t.charCodeAt(n)===41?(H=Pn,n++):(H=e,y===0&&oe(z)),H!==e?(h=C,U=G(b,A,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)}else n=C,C=e;else n=C,C=e;C===e&&(C=n,U=ge(),U!==e&&(h=C,U=ee(b,A)),C=U)}}}C!==e?(U=ge(),U!==e?(h=u,p=te(b,A,C),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function ci(){var u,p,g,b,A,C,U,Q,F,D;for(u=n,p=[],g=Bi();g!==e;)p.push(g),g=Bi();if(p!==e)if(g=li(),g!==e){if(b=[],A=n,t.charCodeAt(n)===61?(C=tt,n++):(C=e,y===0&&oe(M)),C!==e)if(U=ge(),U!==e){if(Q=[],F=Bi(),F!==e)for(;F!==e;)Q.push(F),F=Bi();else Q=e;Q!==e?(F=ge(),F!==e?(D=li(),D!==e?(h=A,C=pe(p,Q),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)}else n=A,A=e;else n=A,A=e;for(;A!==e;)if(b.push(A),A=n,t.charCodeAt(n)===61?(C=tt,n++):(C=e,y===0&&oe(M)),C!==e)if(U=ge(),U!==e){if(Q=[],F=Bi(),F!==e)for(;F!==e;)Q.push(F),F=Bi();else Q=e;Q!==e?(F=ge(),F!==e?(D=li(),D!==e?(h=A,C=pe(p,Q),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)}else n=A,A=e;else n=A,A=e;b!==e?(h=u,p=Ae(p,b),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;return u}function N0(){var u,p,g,b;if(u=n,p=n,g=[],Oe.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(je)),b!==e)for(;b!==e;)g.push(b),Oe.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(je));else g=e;return g!==e?p=t.substring(p,n):p=g,p!==e&&(h=u,p=gt(p)),u=p,u}function jf(){var u,p,g;if(u=n,p=[],Se.test(t.charAt(n))?(g=t.charAt(n),n++):(g=e,y===0&&oe(nt)),g!==e)for(;g!==e;)p.push(g),Se.test(t.charAt(n))?(g=t.charAt(n),n++):(g=e,y===0&&oe(nt));else p=e;return p!==e?u=t.substring(u,n):u=p,u}function gs(){var u,p,g,b,A;if(u=n,p=n,kt.test(t.charAt(n))?(g=t.charAt(n),n++):(g=e,y===0&&oe(lt)),g===e&&(g=null),g!==e){if(b=[],Se.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(nt)),A!==e)for(;A!==e;)b.push(A),Se.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(nt));else b=e;b!==e?(g=[g,b],p=g):(n=p,p=e)}else n=p,p=e;return p!==e?u=t.substring(u,n):u=p,u}function bh(){var u,p;return u=n,t.substr(n,4)===qe?(p=qe,n+=4):(p=e,y===0&&oe(mt)),p!==e&&(h=u,p=Je()),u=p,u===e&&(u=n,t.substr(n,5)===Mr?(p=Mr,n+=5):(p=e,y===0&&oe(Lt)),p!==e&&(h=u,p=Ht()),u=p),u}function wh(){var u,p,g,b,A,C;return u=n,p=n,g=gs(),g!==e?(b=n,t.charCodeAt(n)===46?(A=Qe,n++):(A=e,y===0&&oe(jt)),A!==e?(C=jf(),C!==e?(A=[A,C],b=A):(n=b,b=e)):(n=b,b=e),b===e&&(b=null),b!==e?(Qt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(kr)),A!==e?(C=gs(),C!==e?(g=[g,b,A,C],p=g):(n=p,p=e)):(n=p,p=e)):(n=p,p=e)):(n=p,p=e),p!==e?u=t.substring(u,n):u=p,u===e&&(u=n,p=n,g=gs(),g!==e?(t.charCodeAt(n)===46?(b=Qe,n++):(b=e,y===0&&oe(jt)),b!==e?(A=jf(),A!==e?(g=[g,b,A],p=g):(n=p,p=e)):(n=p,p=e)):(n=p,p=e),p!==e?u=t.substring(u,n):u=p),u}function Mi(){var u,p,g,b,A;if(u=n,zr.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(vr)),p!==e){for(g=n,b=[],pn.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Tn));A!==e;)b.push(A),pn.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Tn));b!==e?g=t.substring(g,n):g=b,g!==e?(zr.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(vr)),b!==e?(h=u,p=gt(g),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;if(u===e){if(u=n,Fn.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Qr)),p!==e){for(g=n,b=[],Xr.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(xr));A!==e;)b.push(A),Xr.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(xr));b!==e?g=t.substring(g,n):g=b,g!==e?(Fn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Qr)),b!==e?(h=u,p=gt(g),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;u===e&&(u=bh(),u===e&&(u=n,p=wh(),p!==e&&(h=u,p=o(p)),u=p,u===e&&(u=n,p=gs(),p!==e&&(h=u,p=ue(p)),u=p)))}return u}function Ta(){var u,p,g,b,A,C,U,Q,F,D,H,ie,le,ce,$t,Hn,Gr;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ds(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e)if(h=n,U=Cr(p,b,C),U?U=void 0:U=e,U!==e){if(Q=[],F=n,D=n,H=ge(),H!==e?D=t.substring(D,n):D=H,D!==e?(H=n,ie=ai(),ie===e&&(ie=n,le=n,y++,ce=Rn(),y--,ce===e?le=void 0:(n=le,le=e),le===e&&(le=n,y++,ce=n,$t=ji(),$t!==e?(Hn=tr(),Hn!==e?(h=n,Gr=fr(p,b,C,D,Hn),Gr?Gr=void 0:Gr=e,Gr!==e?($t=[$t,Hn,Gr],ce=$t):(n=ce,ce=e)):(n=ce,ce=e)):(n=ce,ce=e),y--,ce===e?le=void 0:(n=le,le=e)),le!==e?(ce=Ur(),ce!==e?($t=ai(),$t===e&&($t=null),$t!==e?(le=[le,ce,$t],ie=le):(n=ie,ie=e)):(n=ie,ie=e)):(n=ie,ie=e)),ie!==e?H=t.substring(H,n):H=ie,H!==e?(h=F,D=Vn(p,b,C,D,H),F=D):(n=F,F=e)):(n=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=n,D=n,H=ge(),H!==e?D=t.substring(D,n):D=H,D!==e?(H=n,ie=ai(),ie===e&&(ie=n,le=n,y++,ce=Rn(),y--,ce===e?le=void 0:(n=le,le=e),le===e&&(le=n,y++,ce=n,$t=ji(),$t!==e?(Hn=tr(),Hn!==e?(h=n,Gr=fr(p,b,C,D,Hn),Gr?Gr=void 0:Gr=e,Gr!==e?($t=[$t,Hn,Gr],ce=$t):(n=ce,ce=e)):(n=ce,ce=e)):(n=ce,ce=e),y--,ce===e?le=void 0:(n=le,le=e)),le!==e?(ce=Ur(),ce!==e?($t=ai(),$t===e&&($t=null),$t!==e?(le=[le,ce,$t],ie=le):(n=ie,ie=e)):(n=ie,ie=e)):(n=ie,ie=e)),ie!==e?H=t.substring(H,n):H=ie,H!==e?(h=F,D=Vn(p,b,C,D,H),F=D):(n=F,F=e)):(n=F,F=e);else Q=e;Q!==e?(F=n,D=ge(),D!==e?F=t.substring(F,n):F=D,F!==e?(D=n,H=ji(),H!==e?(ie=tr(),ie!==e?(h=n,le=v(p,b,C,Q,F,ie),le?le=void 0:le=e,le!==e?(ce=ai(),ce===e&&(ce=null),ce!==e?(h=D,H=Vr(p,b,C,Q,F,ie),D=H):(n=D,D=e)):(n=D,D=e)):(n=D,D=e)):(n=D,D=e),D!==e?(h=n,H=cr(p,b,C,Q,F,D),H?H=void 0:H=e,H!==e?(h=u,p=mo(p,b,C,Q,F,D),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function zi(){var u,p,g,b,A,C,U,Q,F;if(u=n,p=n,y++,g=n,b=ge(),b!==e?(A=Rn(),A===e&&(A=fi()),A!==e?(b=[b,A],g=b):(n=g,g=e)):(n=g,g=e),g===e&&(g=$n()),y--,g===e?p=void 0:(n=p,p=e),p!==e){for(g=[],b=Ot();b!==e;)g.push(b),b=Ot();if(g!==e){if(b=n,A=[],C=n,In.test(t.charAt(n))?(U=t.charAt(n),n++):(U=e,y===0&&oe(ho)),U!==e){for(Q=[],F=Ot();F!==e;)Q.push(F),F=Ot();Q!==e?(U=[U,Q],C=U):(n=C,C=e)}else n=C,C=e;if(C!==e)for(;C!==e;)if(A.push(C),C=n,In.test(t.charAt(n))?(U=t.charAt(n),n++):(U=e,y===0&&oe(ho)),U!==e){for(Q=[],F=Ot();F!==e;)Q.push(F),F=Ot();Q!==e?(U=[U,Q],C=U):(n=C,C=e)}else n=C,C=e;else A=e;A!==e?b=t.substring(b,n):b=A,b!==e?(A=ui(),A!==e?(h=u,p=Xe(),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e}else n=u,u=e;return u}function Ar(){var u,p,g,b,A;return u=n,p=n,g=zi(),g===e&&(g=n,h=n,b=qr(),b?b=void 0:b=e,b!==e?(A=$n(),A!==e?(b=[b,A],g=b):(n=g,g=e)):(n=g,g=e)),g!==e?p=t.substring(p,n):p=g,p!==e&&(h=u,p=Nr()),u=p,u}function Hr(){var u,p;return u=n,p=Gt(),p!==e&&(h=u,p=dn(p)),u=p,u}function Fa(){var u,p,g,b,A,C,U,Q,F,D,H;if(u=n,h=n,p=ii(),p?p=void 0:p=e,p!==e){if(g=n,b=[],A=n,C=n,y++,U=zi(),y--,U===e?C=void 0:(n=C,C=e),C!==e?(U=Hr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e),A!==e)for(;A!==e;)b.push(A),A=n,C=n,y++,U=zi(),y--,U===e?C=void 0:(n=C,C=e),C!==e?(U=Hr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e);else b=e;if(b!==e?g=t.substring(g,n):g=b,g!==e)if(b=n,A=zi(),A!==e&&(h=b,A=On(g,A)),b=A,b!==e){if(A=[],C=n,U=n,Q=[],F=n,D=n,y++,H=Ar(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Hr(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=n,D=n,y++,H=Ar(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Hr(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);else Q=e;if(Q!==e?U=t.substring(U,n):U=Q,U!==e?(Q=n,F=Ar(),F!==e&&(h=Q,F=pr(g,b,U,F)),Q=F,Q!==e?(h=C,U=Z(g,b,U,Q),C=U):(n=C,C=e)):(n=C,C=e),C===e&&(C=n,U=n,y++,Q=zi(),y--,Q===e?U=void 0:(n=U,U=e),U!==e?(Q=n,y++,F=Ar(),y--,F===e?Q=void 0:(n=Q,Q=e),Q!==e?(F=Hr(),F!==e?(h=C,U=Yr(g,b,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e)),C!==e)for(;C!==e;){if(A.push(C),C=n,U=n,Q=[],F=n,D=n,y++,H=Ar(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Hr(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=n,D=n,y++,H=Ar(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Hr(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);else Q=e;Q!==e?U=t.substring(U,n):U=Q,U!==e?(Q=n,F=Ar(),F!==e&&(h=Q,F=pr(g,b,U,F)),Q=F,Q!==e?(h=C,U=Z(g,b,U,Q),C=U):(n=C,C=e)):(n=C,C=e),C===e&&(C=n,U=n,y++,Q=zi(),y--,Q===e?U=void 0:(n=U,U=e),U!==e?(Q=n,y++,F=Ar(),y--,F===e?Q=void 0:(n=Q,Q=e),Q!==e?(F=Hr(),F!==e?(h=C,U=Yr(g,b,F),C=U):(n=C,C=e)):(n=C,C=e)):(n=C,C=e))}else A=e;A!==e?(h=n,C=mn(g,b,A),C?C=void 0:C=e,C!==e?(h=u,p=oi(g,b,A),u=p):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e}else n=u,u=e;if(u===e){if(u=n,p=[],g=n,b=n,A=n,C=n,y++,U=Ar(),y--,U===e?C=void 0:(n=C,C=e),C!==e?(U=Hr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e),A!==e?b=t.substring(b,n):b=A,b!==e){for(A=[],C=Ar();C!==e;)A.push(C),C=Ar();A!==e?(h=g,b=qn(b,A),g=b):(n=g,g=e)}else n=g,g=e;if(g!==e)for(;g!==e;)if(p.push(g),g=n,b=n,A=n,C=n,y++,U=Ar(),y--,U===e?C=void 0:(n=C,C=e),C!==e?(U=Hr(),U!==e?(C=[C,U],A=C):(n=A,A=e)):(n=A,A=e),A!==e?b=t.substring(b,n):b=A,b!==e){for(A=[],C=Ar();C!==e;)A.push(C),C=Ar();A!==e?(h=g,b=qn(b,A),g=b):(n=g,g=e)}else n=g,g=e;else p=e;if(p!==e&&(h=u,p=go(p)),u=p,u===e)if(u=[],p=Hr(),p!==e)for(;p!==e;)u.push(p),p=Hr();else u=e}return u}function Ia(){var u,p,g,b,A,C,U,Q,F,D,H,ie,le,ce,$t;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ds(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e)if(h=n,U=os(p,b,C),U?U=void 0:U=e,U!==e)if(h=n,Q=Di(p,b,C),Q?Q=void 0:Q=e,Q!==e){for(F=n,D=[],H=$n();H!==e;)D.push(H),H=$n();if(D!==e)if(H=Fa(),H!==e){for(ie=[],le=$n();le!==e;)ie.push(le),le=$n();ie!==e?(h=F,D=en(p,b,C,H),F=D):(n=F,F=e)}else n=F,F=e;else n=F,F=e;F!==e?(D=n,H=ge(),H!==e?D=t.substring(D,n):D=H,D!==e?(H=n,ie=ji(),ie!==e?(le=tr(),le!==e?(h=n,ce=v(p,b,C,F,D,le),ce?ce=void 0:ce=e,ce!==e?($t=ai(),$t===e&&($t=null),$t!==e?(h=H,ie=yo(p,b,C,F,D,le),H=ie):(n=H,H=e)):(n=H,H=e)):(n=H,H=e)):(n=H,H=e),H!==e?(h=n,ie=cr(p,b,C,F,D,H),ie?ie=void 0:ie=e,ie!==e?(h=u,p=ss(p,b,C,F,D,H),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function Oa(){var u,p,g,b,A,C,U,Q,F,D,H,ie,le;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ds(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e){if(U=[],Q=n,F=$n(),F===e&&(F=Ta(),F===e&&(F=Ia(),F===e&&(F=Oa(),F===e&&(F=ja(),F===e&&(F=Ba(),F===e&&(F=Ma(),F===e&&(F=Ra(),F===e&&(F=La(),F===e&&(F=qa(),F===e&&(F=Na(),F===e&&(F=Da()))))))))))),F!==e&&(h=Q,F=$o(p,b,C,F)),Q=F,Q===e){for(Q=n,F=n,D=[],H=Ot();H!==e;)D.push(H),H=Ot();if(D!==e?F=t.substring(F,n):F=D,F!==e){if(D=n,H=[],ie=Gt(),ie!==e)for(;ie!==e;)H.push(ie),ie=Gt();else H=e;H!==e?D=t.substring(D,n):D=H,D!==e?(h=Q,F=bo(p,b,C,F,D),Q=F):(n=Q,Q=e)}else n=Q,Q=e}for(;Q!==e;)if(U.push(Q),Q=n,F=$n(),F===e&&(F=Ta(),F===e&&(F=Ia(),F===e&&(F=Oa(),F===e&&(F=ja(),F===e&&(F=Ba(),F===e&&(F=Ma(),F===e&&(F=Ra(),F===e&&(F=La(),F===e&&(F=qa(),F===e&&(F=Na(),F===e&&(F=Da()))))))))))),F!==e&&(h=Q,F=$o(p,b,C,F)),Q=F,Q===e){for(Q=n,F=n,D=[],H=Ot();H!==e;)D.push(H),H=Ot();if(D!==e?F=t.substring(F,n):F=D,F!==e){if(D=n,H=[],ie=Gt(),ie!==e)for(;ie!==e;)H.push(ie),ie=Gt();else H=e;H!==e?D=t.substring(D,n):D=H,D!==e?(h=Q,F=bo(p,b,C,F,D),Q=F):(n=Q,Q=e)}else n=Q,Q=e}U!==e?(Q=n,F=ge(),F!==e?Q=t.substring(Q,n):Q=F,Q!==e?(F=n,D=ji(),D!==e?(H=tr(),H!==e?(h=n,ie=v(p,b,C,U,Q,H),ie?ie=void 0:ie=e,ie!==e?(le=ai(),le===e&&(le=null),le!==e?(h=F,D=wo(p,b,C,U,Q,H),F=D):(n=F,F=e)):(n=F,F=e)):(n=F,F=e)):(n=F,F=e),F!==e?(h=n,D=cr(p,b,C,U,Q,F),D?D=void 0:D=e,D!==e?(h=u,p=Un(p,b,C,U,Q,F),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function kh(){var u,p,g;if(u=n,p=[],g=Gt(),g!==e)for(;g!==e;)p.push(g),g=Gt();else p=e;return p!==e&&(h=u,p=Xt()),u=p,u}function D0(){var u,p,g,b;if(u=n,p=[],g=n,b=Dr(),b!==e&&(h=g,b=Ri()),g=b,g===e){if(g=[],hn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Yt)),b!==e)for(;b!==e;)g.push(b),hn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Yt));else g=e;g===e&&(g=Gt())}if(g!==e){for(;g!==e;)if(p.push(g),g=n,b=Dr(),b!==e&&(h=g,b=Ri()),g=b,g===e){if(g=[],hn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Yt)),b!==e)for(;b!==e;)g.push(b),hn.test(t.charAt(n))?(b=t.charAt(n),n++):(b=e,y===0&&oe(Yt));else g=e;g===e&&(g=Gt())}}else p=e;return p!==e&&(h=u,p=wa(p)),u=p,u}function qa(){var u,p,g,b,A,C,U,Q,F,D,H,ie;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=n,y++,b=Rn(),y--,b===e?g=void 0:(n=g,g=e),g!==e)if(b=fi(),b!==e)if(A=ge(),A!==e)if(C=Dr(),C===e&&(C=null),C!==e)if(h=n,U=as(p,b),U?U=void 0:U=e,U!==e){for(Q=n,F=[],D=n,H=n,y++,ie=Dr(),y--,ie===e?H=void 0:(n=H,H=e),H!==e?(ie=Gt(),ie!==e?(H=[H,ie],D=H):(n=D,D=e)):(n=D,D=e);D!==e;)F.push(D),D=n,H=n,y++,ie=Dr(),y--,ie===e?H=void 0:(n=H,H=e),H!==e?(ie=Gt(),ie!==e?(H=[H,ie],D=H):(n=D,D=e)):(n=D,D=e);F!==e?Q=t.substring(Q,n):Q=F,Q!==e?(h=u,p=gn(p,b,Q),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function Na(){var u,p,g,b,A,C,U,Q,F;return u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e?(g=n,y++,b=Rn(),y--,b===e?g=void 0:(n=g,g=e),g!==e?(b=fi(),b!==e?(A=ge(),A!==e?(C=Dr(),C===e&&(C=null),C!==e?(h=n,U=si(p,b),U?U=void 0:U=e,U!==e?(h=n,Q=ka(p,b),Q?Q=void 0:Q=e,Q!==e?(F=Fa(),F!==e?(h=u,p=va(p,b,F),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function Da(){var u,p,g,b,A,C,U,Q,F,D,H;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=n,y++,b=Rn(),y--,b===e?g=void 0:(n=g,g=e),g!==e)if(b=fi(),b!==e)if(A=ge(),A!==e)if(C=Dr(),C===e&&(C=hh()),C!==e){for(U=n,Q=[],F=n,D=n,y++,H=Dr(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Gt(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);F!==e;)Q.push(F),F=n,D=n,y++,H=Dr(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Gt(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);Q!==e?U=t.substring(U,n):U=Q,U!==e?(h=u,p=xa(p,b,C,U),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function vh(){var u,p,g,b,A,C,U,Q,F,D,H;for(u=n,p=[],g=Ur();g!==e;)p.push(g),g=Ur();if(p!==e)if(g=li(),g!==e){if(b=[],A=n,C=ge(),C!==e)if(t.substr(n,2)===Nn?(U=Nn,n+=2):(U=e,y===0&&oe(ls)),U!==e)if(Q=ge(),Q!==e){if(F=[],D=Ur(),D!==e)for(;D!==e;)F.push(D),D=Ur();else F=e;F!==e?(D=ge(),D!==e?(H=li(),H!==e?(h=A,C=pe(p,F),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)}else n=A,A=e;else n=A,A=e;else n=A,A=e;for(;A!==e;)if(b.push(A),A=n,C=ge(),C!==e)if(t.substr(n,2)===Nn?(U=Nn,n+=2):(U=e,y===0&&oe(ls)),U!==e)if(Q=ge(),Q!==e){if(F=[],D=Ur(),D!==e)for(;D!==e;)F.push(D),D=Ur();else F=e;F!==e?(D=ge(),D!==e?(H=li(),H!==e?(h=A,C=pe(p,F),A=C):(n=A,A=e)):(n=A,A=e)):(n=A,A=e)}else n=A,A=e;else n=A,A=e;else n=A,A=e;b!==e?(h=u,p=Ae(p,b),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;return u}function Ra(){var u,p,g,b,A,C,U;return u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e?(t.substr(n,6)===Y?(g=Y,n+=6):(g=e,y===0&&oe(Ct)),g!==e?(b=ge(),b!==e?(A=n,C=za(),C!==e?A=t.substring(A,n):A=C,A!==e?(C=ge(),C!==e?(U=vh(),U!==e?(h=u,p=Ca(p,g,A,U),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function La(){var u,p,g,b,A,C,U,Q;return u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e?(t.substr(n,7)===Ce?(g=Ce,n+=7):(g=e,y===0&&oe(ot)),g!==e?(b=ge(),b!==e?(A=n,C=tr(),C===e&&(C=n,Aa.test(t.charAt(n))?(U=t.charAt(n),n++):(U=e,y===0&&oe(Ea)),U!==e?(t.substr(n,2)===us?(Q=us,n+=2):(Q=e,y===0&&oe(_a)),Q!==e?(U=[U,Q],C=U):(n=C,C=e)):(n=C,C=e)),C!==e?A=t.substring(A,n):A=C,A!==e?(C=ge(),C!==e?(U=ci(),U!==e?(h=u,p=fs(p,g,A,U),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function ja(){var u,p,g,b,A,C,U,Q,F,D,H,ie;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ms(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e)if(h=n,U=cs(p,g,b,C),U?U=void 0:U=e,U!==e){for(Q=n,F=[],D=n,H=n,y++,ie=Dr(),y--,ie===e?H=void 0:(n=H,H=e),H!==e?(ie=Gt(),ie!==e?(H=[H,ie],D=H):(n=D,D=e)):(n=D,D=e);D!==e;)F.push(D),D=n,H=n,y++,ie=Dr(),y--,ie===e?H=void 0:(n=H,H=e),H!==e?(ie=Gt(),ie!==e?(H=[H,ie],D=H):(n=D,D=e)):(n=D,D=e);F!==e?Q=t.substring(Q,n):Q=F,Q!==e?(h=u,p=Sa(p,g,b,C,Q),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function Ba(){var u,p,g,b,A,C,U,Q,F;return u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e?(g=ms(),g!==e?(b=tr(),b!==e?(A=ge(),A!==e?(C=ci(),C!==e?(h=n,U=tn(p,g,b,C),U?U=void 0:U=e,U!==e?(h=n,Q=Et(p,g,b,C),Q?Q=void 0:Q=e,Q!==e?(F=Fa(),F!==e?(h=u,p=Pe(p,g,b,C,F),u=p):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e)):(n=u,u=e),u}function Ma(){var u,p,g,b,A,C,U,Q,F,D,H;if(u=n,p=n,g=ge(),g!==e?p=t.substring(p,n):p=g,p!==e)if(g=ms(),g!==e)if(b=tr(),b!==e)if(A=ge(),A!==e)if(C=ci(),C!==e){for(U=n,Q=[],F=n,D=n,y++,H=Dr(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Gt(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);F!==e;)Q.push(F),F=n,D=n,y++,H=Dr(),y--,H===e?D=void 0:(n=D,D=e),D!==e?(H=Gt(),H!==e?(D=[D,H],F=D):(n=F,F=e)):(n=F,F=e);Q!==e?U=t.substring(U,n):U=Q,U!==e?(h=u,p=Li(p,g,b,C,U),u=p):(n=u,u=e)}else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;else n=u,u=e;return u}function za(){var u,p,g,b,A;if(u=n,p=n,Sf.test(t.charAt(n))?(g=t.charAt(n),n++):(g=e,y===0&&oe(er)),g!==e){if(b=[],zt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Ir)),A!==e)for(;A!==e;)b.push(A),zt.test(t.charAt(n))?(A=t.charAt(n),n++):(A=e,y===0&&oe(Ir));else b=e;b!==e?(g=[g,b],p=g):(n=p,p=e)}else n=p,p=e;return p!==e?u=t.substring(u,n):u=p,u}function R0(){var u,p;for(y++,u=[],it.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Dn));p!==e;)u.push(p),it.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Dn));return y--,u===e&&(p=e,y===0&&oe(yn)),u}function L0(){var u,p;for(y++,u=[],it.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Dn));p!==e;)u.push(p),it.test(t.charAt(n))?(p=t.charAt(n),n++):(p=e,y===0&&oe(Dn));return y--,u===e&&(p=e,y===0&&oe(Pa)),u}function ys(u){return u!==u.toLowerCase()&&u!==u.toUpperCase()}function xh(u){return u===u.toUpperCase()}function Vi(u){return u.reduce((p,g)=>Array.isArray(g)?p.concat(Vi(g)):p.concat(g),[])}function Ch(u){return["code","comment","data","defn","formula","head","include","input","item","markdown","nested","output","para","picture","pod","table","toc"].includes(u)||xh(u)||u.match(/^(head|item)\d+$/)||ys(u)}function Ah(u,p){return u.length==0?p:p.indexOf(u)==0?p.replace(u,""):p.replace(/^\s+/,"")}if(R=s(),R!==e&&n===t.length)return R;throw R!==e&&n<t.length&&oe(K()),Tf(_,w<t.length?t.charAt(w):null,w<t.length?ko(w,w+1):ko(w,w))}yd.exports={SyntaxError:Ci,parse:Mw}});var kd=me((iC,wd)=>{"use strict";function Vw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Ai(t,r,e,i){this.message=t,this.expected=r,this.found=e,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ai)}Vw(Ai,Error);Ai.buildMessage=function(t,r){var e={literal:function(m){return'"'+s(m.text)+'"'},class:function(m){var d="",$;for($=0;$<m.parts.length;$++)d+=m.parts[$]instanceof Array?a(m.parts[$][0])+"-"+a(m.parts[$][1]):a(m.parts[$]);return"["+(m.inverted?"^":"")+d+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function i(m){return m.charCodeAt(0).toString(16).toUpperCase()}function s(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(d){return"\\x0"+i(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+i(d)})}function a(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(d){return"\\x0"+i(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+i(d)})}function l(m){return e[m.type](m)}function f(m){var d=new Array(m.length),$,E;for($=0;$<m.length;$++)d[$]=l(m[$]);if(d.sort(),d.length>0){for($=1,E=1;$<d.length;$++)d[$-1]!==d[$]&&(d[E]=d[$],E++);d.length=E}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function c(m){return m?'"'+s(m)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function Uw(t,r){r=r!==void 0?r:{};var e={},i={Expression:oi},s=oi,a="A",l=Xe("A",!1),f="V",c=Xe("V",!1),m="R",d=Xe("R",!1),$="B",E=Xe("B",!1),k="I",x=Xe("I",!1),I="C",N=Xe("C",!1),B="D",X=Xe("D",!1),se="E",$e=Xe("E",!1),he="K",ne=Xe("K",!1),be="L",xe=Xe("L",!1),ke="S",Le=Xe("S",!1),Ee="T",_e=Xe("T",!1),de="F",Ce=Xe("F",!1),ot="U",Y=Xe("U",!1),Ct="Z",Ze=Xe("Z",!1),yt="N",tt=Xe("N",!1),M="X",V=Xe("X",!1),Jt=/^[a-zA-Z]/,Rt=qr([["a","z"],["A","Z"]],!1,!1),bt=/^[a-zA-Z0-9_\-]/,St=qr([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),At=/^[ \t\f]/,st=qr([" "," ","\f"],!1,!1),Fr=function(n){return!(r.allowed||[]).length||(r.allowed||[]).includes(n)},ye=Nr(),wr=function(n){return n==="A"},zt=function(n,h){return{content:h,type:"fcode",name:n}},Ir=function(n){return n==="D"},Vt=function(n,h,T){return Dn(T)},ei=function(n,h,T){return{content:h,type:"fcode",name:n,synonyms:T}},Mn=function(n){return n==="V"},En=function(n,h){return{content:h,type:"fcode",name:n}},Ge="<",Ke=Xe("<",!1),at=">",We=Xe(">",!1),Or=function(){return cr()},ze="\xAB",Ve=Xe("\xAB",!1),ct="\xBB",pt=Xe("\xBB",!1),Ut=function(n){return n},re=function(n){return n.code==="C"},ae=function(n,h){return h===n.end_tag},we=function(n,h){return h},Ie=function(n,h,T){return T===n.end_tag},Dt=function(n,h,T){return{content:h,type:"fcode",name:n.code}},Zr="|",rt=Xe("|",!1),wt=function(n){return n},Pt=function(n){return n.code==="L"},Jr=function(n,h,T){return T},dt=function(n,h,T,w){return w===n.end_tag},_n=function(n,h,T,w){return{content:h,type:"fcode",name:n.code,meta:T}},It=";",cn=Xe(";",!1),co=/^[ \xA0\u2001\t\f\u2008]/,Br=qr([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),zn=function(n,h){return Dn([n,h])},ti=function(n){return[n]},po=function(n){return n==="X"},ri=function(n,h,T){return{content:h,type:"fcode",name:n,entry:T}},qi=function(n){return n==="S"},ni=function(n){return n==="Z"},Sn=/^[0-9]/,Ni=qr([["0","9"]],!1,!1),Pn="0d",z=Xe("0d",!1),O=function(n){return parseInt(n,10)},G="0o",ee=Xe("0o",!1),te=function(n){return parseInt(n,8)},pe="0b",Ae=Xe("0b",!1),Oe=function(n){return parseInt(n,2)},je="0x",gt=Xe("0x",!1),Se=/^[0-9A-Fa-f]/,nt=qr([["0","9"],["A","F"],["a","f"]],!1,!1),kt=function(){return parseInt(cr())},lt=/^[A-Z ]/,qe=qr([["A","Z"]," "],!1,!1),mt=function(){return cr()===cr().toUpperCase()},Je=/^[a-z]/,Mr=qr([["a","z"]],!1,!1),Lt=/^[a-z0-9]/,Ht=qr([["a","z"],["0","9"]],!1,!1),Qe=function(n){return cr()},jt=function(n){return{type:"number",value:parseInt(n,10)}},Qt=function(n){return{type:"unicode_name",value:n}},kr=function(n){return{type:"html_named",value:n}},zr=function(n){return n==="E"},vr=function(n,h){return Dn(h)},pn=function(n,h){return{content:h||[],type:"fcode",name:n}},Tn=function(n){return n},Fn=function(n,h){return{code:n,begin_tag:h,end_tag:Pa(h)}},Qr=function(n){return n.code!=="C"},Xr=function(n,h,T){return T===n.end_tag},xr=function(n,h,T){return{content:h,type:"fcode",name:n.code}},o=0,ue=0,Cr=[{line:1,column:1}],fr=0,Vn=[],v=0,Vr;if("startRule"in r){if(!(r.startRule in i))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=i[r.startRule]}function cr(){return t.substring(ue,o)}function mo(){return pr(ue,o)}function In(n,h){throw h=h!==void 0?h:pr(ue,o),mn([ii(n)],t.substring(ue,o),h)}function ho(n,h){throw h=h!==void 0?h:pr(ue,o),Yr(n,h)}function Xe(n,h){return{type:"literal",text:n,ignoreCase:h}}function qr(n,h,T){return{type:"class",parts:n,inverted:h,ignoreCase:T}}function Nr(){return{type:"any"}}function dn(){return{type:"end"}}function ii(n){return{type:"other",description:n}}function On(n){var h=Cr[n],T;if(h)return h;for(T=n-1;!Cr[T];)T--;for(h=Cr[T],h={line:h.line,column:h.column};T<n;)t.charCodeAt(T)===10?(h.line++,h.column=1):h.column++,T++;return Cr[n]=h,h}function pr(n,h){var T=On(n),w=On(h);return{start:{offset:n,line:T.line,column:T.column},end:{offset:h,line:w.line,column:w.column}}}function Z(n){o<fr||(o>fr&&(fr=o,Vn=[]),Vn.push(n))}function Yr(n,h){return new Ai(n,null,null,h)}function mn(n,h,T){return new Ai(Ai.buildMessage(n,h),n,h,T)}function oi(){var n,h;for(n=[],h=qn(),h===e&&(h=Li(),h===e&&(h=er(),h===e&&(h=yo())));h!==e;)n.push(h),h=qn(),h===e&&(h=Li(),h===e&&(h=er(),h===e&&(h=yo())));return n}function qn(){var n;return n=ss(),n===e&&(n=va(),n===e&&(n=Ri(),n===e&&(n=$o(),n===e&&(n=Sa(),n===e&&(n=bo(),n===e&&(n=wa(),n===e&&(n=ka(),n===e&&(n=xa())))))))),n}function go(){var n;return t.charCodeAt(o)===65?(n=a,o++):(n=e,v===0&&Z(l)),n===e&&(t.charCodeAt(o)===86?(n=f,o++):(n=e,v===0&&Z(c)),n===e&&(t.charCodeAt(o)===82?(n=m,o++):(n=e,v===0&&Z(d)),n===e&&(t.charCodeAt(o)===66?(n=$,o++):(n=e,v===0&&Z(E)),n===e&&(t.charCodeAt(o)===73?(n=k,o++):(n=e,v===0&&Z(x)),n===e&&(t.charCodeAt(o)===67?(n=I,o++):(n=e,v===0&&Z(N)),n===e&&(t.charCodeAt(o)===68?(n=B,o++):(n=e,v===0&&Z(X)),n===e&&(t.charCodeAt(o)===69?(n=se,o++):(n=e,v===0&&Z($e)),n===e&&(t.charCodeAt(o)===75?(n=he,o++):(n=e,v===0&&Z(ne)),n===e&&(t.charCodeAt(o)===76?(n=be,o++):(n=e,v===0&&Z(xe)),n===e&&(t.charCodeAt(o)===83?(n=ke,o++):(n=e,v===0&&Z(Le)),n===e&&(t.charCodeAt(o)===84?(n=Ee,o++):(n=e,v===0&&Z(_e)),n===e&&(t.charCodeAt(o)===70?(n=de,o++):(n=e,v===0&&Z(Ce)),n===e&&(t.charCodeAt(o)===85?(n=ot,o++):(n=e,v===0&&Z(Y)),n===e&&(t.charCodeAt(o)===90?(n=Ct,o++):(n=e,v===0&&Z(Ze)),n===e&&(t.charCodeAt(o)===78?(n=yt,o++):(n=e,v===0&&Z(tt)),n===e&&(t.charCodeAt(o)===88?(n=M,o++):(n=e,v===0&&Z(V)))))))))))))))))),n}function os(){var n,h,T,w,_;if(n=o,h=o,Jt.test(t.charAt(o))?(T=t.charAt(o),o++):(T=e,v===0&&Z(Rt)),T!==e){if(w=[],bt.test(t.charAt(o))?(_=t.charAt(o),o++):(_=e,v===0&&Z(St)),_!==e)for(;_!==e;)w.push(_),bt.test(t.charAt(o))?(_=t.charAt(o),o++):(_=e,v===0&&Z(St));else w=e;w!==e?(T=[T,w],h=T):(o=h,h=e)}else o=h,h=e;return h!==e?n=t.substring(n,o):n=h,n}function Di(){var n,h;for(n=[],At.test(t.charAt(o))?(h=t.charAt(o),o++):(h=e,v===0&&Z(st));h!==e;)n.push(h),At.test(t.charAt(o))?(h=t.charAt(o),o++):(h=e,v===0&&Z(st));return n}function en(){var n,h,T;return n=o,h=go(),h!==e?(ue=o,T=Fr(h),T?T=void 0:T=e,T!==e?(h=[h,T],n=h):(o=n,n=e)):(o=n,n=e),n}function yo(){var n,h;return n=o,t.length>o?(h=t.charAt(o),o++):(h=e,v===0&&Z(ye)),h!==e?n=t.substring(n,o):n=h,n}function ss(){var n,h,T,w,_;return n=o,h=tn(),h!==e?(ue=o,T=wr(h),T?T=void 0:T=e,T!==e?(w=Yt(),w!==e?(_=Pe(),_!==e?(ue=n,h=zt(h,w),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e),n}function $o(){var n,h,T,w,_,y,R,S;if(n=o,h=tn(),h!==e)if(ue=o,T=Ir(h),T?T=void 0:T=e,T!==e){if(w=[],_=Yt(),_!==e)for(;_!==e;)w.push(_),_=Yt();else w=e;if(w!==e){if(_=o,y=hn(),y!==e){for(R=[],S=si();S!==e;)R.push(S),S=si();R!==e?(ue=_,y=Vt(h,w,R),_=y):(o=_,_=e)}else o=_,_=e;_===e&&(_=null),_!==e?(y=Pe(),y!==e?(ue=n,h=ei(h,w,_),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e}else o=n,n=e;else o=n,n=e;return n}function bo(){var n,h,T,w,_,y;if(n=o,h=tn(),h!==e)if(ue=o,T=Mn(h),T?T=void 0:T=e,T!==e){if(w=o,_=[],y=Xt(),y!==e)for(;y!==e;)_.push(y),y=Xt();else _=e;_!==e?w=t.substring(w,o):w=_,w!==e?(_=Pe(),_!==e?(ue=n,h=En(h,w),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function wo(){var n;return t.charCodeAt(o)===66?(n=$,o++):(n=e,v===0&&Z(E)),n}function Un(){var n,h,T,w,_;return n=o,h=o,T=o,v++,w=wo(),v--,w===e?T=void 0:(o=T,T=e),T!==e?(t.length>o?(w=t.charAt(o),o++):(w=e,v===0&&Z(ye)),w!==e?(T=[T,w],h=T):(o=h,h=e)):(o=h,h=e),h!==e?(t.charCodeAt(o)===60?(T=Ge,o++):(T=e,v===0&&Z(Ke)),T!==e?(w=yn(),w!==e?(t.charCodeAt(o)===62?(_=at,o++):(_=e,v===0&&Z(We)),_!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e),n===e&&(n=o,h=o,T=o,v++,w=wo(),v--,w===e?T=void 0:(o=T,T=e),T!==e?(t.length>o?(w=t.charAt(o),o++):(w=e,v===0&&Z(ye)),w!==e?(T=[T,w],h=T):(o=h,h=e)):(o=h,h=e),h!==e?(t.charCodeAt(o)===171?(T=ze,o++):(T=e,v===0&&Z(Ve)),T!==e?(w=yn(),w!==e?(t.charCodeAt(o)===187?(_=ct,o++):(_=e,v===0&&Z(pt)),_!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)),n}function Xt(){var n,h,T,w,_,y,R,S;if(n=o,h=o,T=[],w=o,_=o,y=o,v++,t.charCodeAt(o)===60?(R=Ge,o++):(R=e,v===0&&Z(Ke)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(t.length>o?(R=t.charAt(o),o++):(R=e,v===0&&Z(ye)),R!==e?(y=[y,R],_=y):(o=_,_=e)):(o=_,_=e),_===e&&(_=null),_!==e?(t.charCodeAt(o)===60?(y=Ge,o++):(y=e,v===0&&Z(Ke)),y!==e?(R=Xt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===62?(S=at,o++):(S=e,v===0&&Z(We)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,y=o,v++,t.charCodeAt(o)===171?(R=ze,o++):(R=e,v===0&&Z(Ve)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(t.length>o?(R=t.charAt(o),o++):(R=e,v===0&&Z(ye)),R!==e?(y=[y,R],_=y):(o=_,_=e)):(o=_,_=e),_===e&&(_=null),_!==e?(t.charCodeAt(o)===171?(y=ze,o++):(y=e,v===0&&Z(Ve)),y!==e?(R=Xt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===187?(S=ct,o++):(S=e,v===0&&Z(pt)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=Un(),w===e&&(w=yn()))),w!==e)for(;w!==e;)T.push(w),w=o,_=o,y=o,v++,t.charCodeAt(o)===60?(R=Ge,o++):(R=e,v===0&&Z(Ke)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(t.length>o?(R=t.charAt(o),o++):(R=e,v===0&&Z(ye)),R!==e?(y=[y,R],_=y):(o=_,_=e)):(o=_,_=e),_===e&&(_=null),_!==e?(t.charCodeAt(o)===60?(y=Ge,o++):(y=e,v===0&&Z(Ke)),y!==e?(R=Xt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===62?(S=at,o++):(S=e,v===0&&Z(We)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,y=o,v++,t.charCodeAt(o)===171?(R=ze,o++):(R=e,v===0&&Z(Ve)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(t.length>o?(R=t.charAt(o),o++):(R=e,v===0&&Z(ye)),R!==e?(y=[y,R],_=y):(o=_,_=e)):(o=_,_=e),_===e&&(_=null),_!==e?(t.charCodeAt(o)===171?(y=ze,o++):(y=e,v===0&&Z(Ve)),y!==e?(R=Xt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===187?(S=ct,o++):(S=e,v===0&&Z(pt)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=Un(),w===e&&(w=yn())));else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=Ut(h)),n=h,n}function Ri(){var n,h,T,w,_,y,R,S,q,J,P,W,L,j,K;if(n=o,h=Et(),h!==e)if(ue=o,T=re(h),T?T=void 0:T=e,T!==e){if(w=[],_=o,y=o,R=[],S=o,q=o,J=o,v++,t.charCodeAt(o)===60?(P=Ge,o++):(P=e,v===0&&Z(Ke)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===60?(J=Ge,o++):(J=e,v===0&&Z(Ke)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===62?(W=at,o++):(W=e,v===0&&Z(We)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,q=o,J=o,v++,t.charCodeAt(o)===171?(P=ze,o++):(P=e,v===0&&Z(Ve)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===171?(J=ze,o++):(J=e,v===0&&Z(Ve)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===187?(W=ct,o++):(W=e,v===0&&Z(pt)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=Un(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}if(S!==e){for(;S!==e;)if(R.push(S),S=o,q=o,J=o,v++,t.charCodeAt(o)===60?(P=Ge,o++):(P=e,v===0&&Z(Ke)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===60?(J=Ge,o++):(J=e,v===0&&Z(Ke)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===62?(W=at,o++):(W=e,v===0&&Z(We)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,q=o,J=o,v++,t.charCodeAt(o)===171?(P=ze,o++):(P=e,v===0&&Z(Ve)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===171?(J=ze,o++):(J=e,v===0&&Z(Ve)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===187?(W=ct,o++):(W=e,v===0&&Z(pt)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=Un(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}}else R=e;if(R!==e?y=t.substring(y,o):y=R,y!==e&&(ue=_,y=we(h,y)),_=y,_!==e)for(;_!==e;){if(w.push(_),_=o,y=o,R=[],S=o,q=o,J=o,v++,t.charCodeAt(o)===60?(P=Ge,o++):(P=e,v===0&&Z(Ke)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===60?(J=Ge,o++):(J=e,v===0&&Z(Ke)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===62?(W=at,o++):(W=e,v===0&&Z(We)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,q=o,J=o,v++,t.charCodeAt(o)===171?(P=ze,o++):(P=e,v===0&&Z(Ve)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===171?(J=ze,o++):(J=e,v===0&&Z(Ve)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===187?(W=ct,o++):(W=e,v===0&&Z(pt)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=Un(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}if(S!==e){for(;S!==e;)if(R.push(S),S=o,q=o,J=o,v++,t.charCodeAt(o)===60?(P=Ge,o++):(P=e,v===0&&Z(Ke)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===60?(J=Ge,o++):(J=e,v===0&&Z(Ke)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===62?(W=at,o++):(W=e,v===0&&Z(We)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,q=o,J=o,v++,t.charCodeAt(o)===171?(P=ze,o++):(P=e,v===0&&Z(Ve)),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(o)===171?(J=ze,o++):(J=e,v===0&&Z(Ve)),J!==e?(P=Xt(),P===e&&(P=null),P!==e?(t.charCodeAt(o)===187?(W=ct,o++):(W=e,v===0&&Z(pt)),W!==e?(q=[q,J,P,W],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=Un(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}}else R=e;R!==e?y=t.substring(y,o):y=R,y!==e&&(ue=_,y=we(h,y)),_=y}else w=e;w!==e?(_=Pe(),_!==e?(ue=o,y=Ie(h,w,_),y?y=void 0:y=e,y!==e?(ue=n,h=Dt(h,w,_),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function hn(){var n;return t.charCodeAt(o)===124?(n=Zr,o++):(n=e,v===0&&Z(rt)),n}function Yt(){var n,h,T,w,_,y,R,S,q;if(n=o,h=o,T=[],w=o,_=o,y=o,v++,t.charCodeAt(o)===60?(R=Ge,o++):(R=e,v===0&&Z(Ke)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=en(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(y=[y,R,S],_=y):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_!==e?(t.charCodeAt(o)===60?(y=Ge,o++):(y=e,v===0&&Z(Ke)),y!==e?(R=Yt(),R!==e?(t.charCodeAt(o)===62?(S=at,o++):(S=e,v===0&&Z(We)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,y=o,v++,t.charCodeAt(o)===171?(R=ze,o++):(R=e,v===0&&Z(Ve)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=en(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(y=[y,R,S],_=y):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_!==e?(t.charCodeAt(o)===171?(y=ze,o++):(y=e,v===0&&Z(Ve)),y!==e?(R=Yt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===187?(S=ct,o++):(S=e,v===0&&Z(pt)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,v++,y=hn(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(y=o,v++,R=Pe(),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=tn(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(S=o,v++,q=it(),v--,q===e?S=void 0:(o=S,S=e),S!==e?(t.length>o?(q=t.charAt(o),o++):(q=e,v===0&&Z(ye)),q!==e?(_=[_,y,R,S,q],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e))),w!==e)for(;w!==e;)T.push(w),w=o,_=o,y=o,v++,t.charCodeAt(o)===60?(R=Ge,o++):(R=e,v===0&&Z(Ke)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=en(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(y=[y,R,S],_=y):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_!==e?(t.charCodeAt(o)===60?(y=Ge,o++):(y=e,v===0&&Z(Ke)),y!==e?(R=Yt(),R!==e?(t.charCodeAt(o)===62?(S=at,o++):(S=e,v===0&&Z(We)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,y=o,v++,t.charCodeAt(o)===171?(R=ze,o++):(R=e,v===0&&Z(Ve)),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=en(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(y=[y,R,S],_=y):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_!==e?(t.charCodeAt(o)===171?(y=ze,o++):(y=e,v===0&&Z(Ve)),y!==e?(R=Yt(),R===e&&(R=null),R!==e?(t.charCodeAt(o)===187?(S=ct,o++):(S=e,v===0&&Z(pt)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,_=o,v++,y=hn(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(y=o,v++,R=Pe(),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=tn(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(S=o,v++,q=it(),v--,q===e?S=void 0:(o=S,S=e),S!==e?(t.length>o?(q=t.charAt(o),o++):(q=e,v===0&&Z(ye)),q!==e?(_=[_,y,R,S,q],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)));else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=wt(h)),n=h,n}function wa(){var n,h,T,w,_,y,R,S,q,J,P;if(n=o,h=Et(),h!==e)if(ue=o,T=Pt(h),T?T=void 0:T=e,T!==e){if(w=[],_=Ri(),_===e&&(_=Yt()),_!==e)for(;_!==e;)w.push(_),_=Ri(),_===e&&(_=Yt());else w=e;if(w!==e){if(_=o,y=hn(),y!==e){for(R=o,S=[],q=o,J=o,v++,P=Pe(),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e);q!==e;)S.push(q),q=o,J=o,v++,P=Pe(),v--,P===e?J=void 0:(o=J,J=e),J!==e?(t.length>o?(P=t.charAt(o),o++):(P=e,v===0&&Z(ye)),P!==e?(J=[J,P],q=J):(o=q,q=e)):(o=q,q=e);S!==e?R=t.substring(R,o):R=S,R!==e?(ue=_,y=Jr(h,w,R),_=y):(o=_,_=e)}else o=_,_=e;_===e&&(_=null),_!==e?(y=Pe(),y!==e?(ue=o,R=dt(h,w,_,y),R?R=void 0:R=e,R!==e?(ue=n,h=_n(h,w,_,y),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)}else o=n,n=e}else o=n,n=e;else o=n,n=e;return n}function as(){var n,h,T,w,_,y;if(n=o,h=[],T=o,w=o,v++,t.charCodeAt(o)===59?(_=It,o++):(_=e,v===0&&Z(cn)),v--,_===e?w=void 0:(o=w,w=e),w!==e?(_=o,v++,y=Pe(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(t.length>o?(y=t.charAt(o),o++):(y=e,v===0&&Z(ye)),y!==e?(w=[w,_,y],T=w):(o=T,T=e)):(o=T,T=e)):(o=T,T=e),T!==e)for(;T!==e;)h.push(T),T=o,w=o,v++,t.charCodeAt(o)===59?(_=It,o++):(_=e,v===0&&Z(cn)),v--,_===e?w=void 0:(o=w,w=e),w!==e?(_=o,v++,y=Pe(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(t.length>o?(y=t.charAt(o),o++):(y=e,v===0&&Z(ye)),y!==e?(w=[w,_,y],T=w):(o=T,T=e)):(o=T,T=e)):(o=T,T=e);else h=e;return h!==e?n=t.substring(n,o):n=h,n}function gn(){var n;return co.test(t.charAt(o))?(n=t.charAt(o),o++):(n=e,v===0&&Z(Br)),n}function si(){var n,h,T,w,_,y;if(n=o,h=as(),h!==e){for(T=[],w=gn();w!==e;)T.push(w),w=gn();if(T!==e)if(t.charCodeAt(o)===59?(w=It,o++):(w=e,v===0&&Z(cn)),w!==e){for(_=[],y=gn();y!==e;)_.push(y),y=gn();_!==e?(y=si(),y!==e?(ue=n,h=zn(h,y),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e}else o=n,n=e;return n===e&&(n=o,h=as(),h!==e&&(ue=n,h=ti(h)),n=h),n}function ka(){var n,h,T,w,_,y,R,S;if(n=o,h=tn(),h!==e)if(ue=o,T=po(h),T?T=void 0:T=e,T!==e){for(w=[],_=Yt();_!==e;)w.push(_),_=Yt();if(w!==e){if(_=o,y=hn(),y!==e){for(R=[],S=si();S!==e;)R.push(S),S=si();R!==e?(ue=_,y=Vt(h,w,R),_=y):(o=_,_=e)}else o=_,_=e;_===e&&(_=null),_!==e?(y=Pe(),y!==e?(ue=n,h=ri(h,w,_),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e}else o=n,n=e;else o=n,n=e;return n}function va(){var n,h,T,w,_,y,R,S;if(n=o,h=tn(),h!==e)if(ue=o,T=qi(h),T?T=void 0:T=e,T!==e){for(w=o,_=[],y=o,R=o,v++,S=Pe(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(R=[R,S],y=R):(o=y,y=e)):(o=y,y=e);y!==e;)_.push(y),y=o,R=o,v++,S=Pe(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(R=[R,S],y=R):(o=y,y=e)):(o=y,y=e);_!==e?w=t.substring(w,o):w=_,w!==e?(_=Pe(),_!==e?(ue=n,h=zt(h,w),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function xa(){var n,h,T,w,_,y,R,S;if(n=o,h=tn(),h!==e)if(ue=o,T=ni(h),T?T=void 0:T=e,T!==e){for(w=o,_=[],y=o,R=o,v++,S=Pe(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(R=[R,S],y=R):(o=y,y=e)):(o=y,y=e);y!==e;)_.push(y),y=o,R=o,v++,S=Pe(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(R=[R,S],y=R):(o=y,y=e)):(o=y,y=e);_!==e?w=t.substring(w,o):w=_,w!==e?(_=Pe(),_!==e?(ue=n,h=zt(h,w),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function Nn(){var n,h,T;if(n=o,h=[],Sn.test(t.charAt(o))?(T=t.charAt(o),o++):(T=e,v===0&&Z(Ni)),T!==e)for(;T!==e;)h.push(T),Sn.test(t.charAt(o))?(T=t.charAt(o),o++):(T=e,v===0&&Z(Ni));else h=e;return h!==e?n=t.substring(n,o):n=h,n}function ls(){var n,h,T;return n=o,t.substr(o,2)===Pn?(h=Pn,o+=2):(h=e,v===0&&Z(z)),h!==e?(T=Nn(),T!==e?(ue=n,h=O(T),n=h):(o=n,n=e)):(o=n,n=e),n}function Ca(){var n,h,T;return n=o,t.substr(o,2)===G?(h=G,o+=2):(h=e,v===0&&Z(ee)),h!==e?(T=Nn(),T!==e?(ue=n,h=te(T),n=h):(o=n,n=e)):(o=n,n=e),n}function Aa(){var n,h,T;return n=o,t.substr(o,2)===pe?(h=pe,o+=2):(h=e,v===0&&Z(Ae)),h!==e?(T=Nn(),T!==e?(ue=n,h=Oe(T),n=h):(o=n,n=e)):(o=n,n=e),n}function Ea(){var n,h,T,w,_,y;if(n=o,h=o,T=o,t.substr(o,2)===je?(w=je,o+=2):(w=e,v===0&&Z(gt)),w!==e){if(_=[],Se.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,v===0&&Z(nt)),y!==e)for(;y!==e;)_.push(y),Se.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,v===0&&Z(nt));else _=e;_!==e?(w=[w,_],T=w):(o=T,T=e)}else o=T,T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=kt()),n=h,n}function us(){var n,h,T,w;if(n=o,h=o,T=[],lt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,v===0&&Z(qe)),w!==e)for(;w!==e;)T.push(w),lt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,v===0&&Z(qe));else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e?(ue=o,T=mt(),T?T=void 0:T=e,T!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e),n}function _a(){var n,h,T,w,_,y;if(n=o,h=o,T=o,Je.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,v===0&&Z(Mr)),w!==e){if(_=[],Lt.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,v===0&&Z(Ht)),y!==e)for(;y!==e;)_.push(y),Lt.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,v===0&&Z(Ht));else _=e;_!==e?(w=[w,_],T=w):(o=T,T=e)}else o=T,T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=Qe(h)),n=h,n}function fs(){var n,h,T;return n=o,h=Di(),h!==e?(T=Ca(),T===e&&(T=ls(),T===e&&(T=Aa(),T===e&&(T=Ea(),T===e&&(T=Nn())))),T!==e?(ue=n,h=jt(T),n=h):(o=n,n=e)):(o=n,n=e),n===e&&(n=o,h=Di(),h!==e?(T=us(),T!==e?(ue=n,h=Qt(T),n=h):(o=n,n=e)):(o=n,n=e),n===e&&(n=o,h=Di(),h!==e?(T=_a(),T!==e?(ue=n,h=kr(T),n=h):(o=n,n=e)):(o=n,n=e))),n}function cs(){var n,h,T,w,_,y;if(n=o,h=fs(),h!==e){for(T=[],w=gn();w!==e;)T.push(w),w=gn();if(T!==e)if(t.charCodeAt(o)===59?(w=It,o++):(w=e,v===0&&Z(cn)),w!==e){for(_=[],y=gn();y!==e;)_.push(y),y=gn();_!==e?(y=cs(),y!==e?(ue=n,h=zn(h,y),n=h):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e}else o=n,n=e;return n===e&&(n=o,h=fs(),h!==e&&(ue=n,h=ti(h)),n=h),n}function Sa(){var n,h,T,w,_;return n=o,h=tn(),h!==e?(ue=o,T=zr(h),T?T=void 0:T=e,T!==e?(w=o,_=cs(),_!==e&&(ue=w,_=vr(h,_)),w=_,w===e&&(w=null),w!==e?(_=Pe(),_!==e?(ue=n,h=pn(h,w),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e),n}function tn(){var n,h,T;return n=o,h=o,T=en(),T!==e?h=t.substring(h,o):h=T,h!==e?(t.charCodeAt(o)===60?(T=Ge,o++):(T=e,v===0&&Z(Ke)),T!==e?(ue=n,h=Tn(h),n=h):(o=n,n=e)):(o=n,n=e),n}function Et(){var n,h,T,w;return n=o,h=o,T=en(),T!==e?h=t.substring(h,o):h=T,h!==e?(T=o,t.charCodeAt(o)===60?(w=Ge,o++):(w=e,v===0&&Z(Ke)),w===e&&(t.charCodeAt(o)===171?(w=ze,o++):(w=e,v===0&&Z(Ve))),w!==e?T=t.substring(T,o):T=w,T!==e?(ue=n,h=Fn(h,T),n=h):(o=n,n=e)):(o=n,n=e),n}function Pe(){var n;return t.charCodeAt(o)===62?(n=at,o++):(n=e,v===0&&Z(We)),n===e&&(t.charCodeAt(o)===187?(n=ct,o++):(n=e,v===0&&Z(pt))),n}function Li(){var n,h,T,w,_,y,R,S,q,J,P,W,L,j,K;if(n=o,h=Et(),h!==e)if(ue=o,T=Qr(h),T?T=void 0:T=e,T!==e){if(w=[],_=qn(),_===e&&(_=Li(),_===e)){if(_=o,y=o,R=[],S=o,t.charCodeAt(o)===60?(q=Ge,o++):(q=e,v===0&&Z(Ke)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===62?(P=at,o++):(P=e,v===0&&Z(We)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,t.charCodeAt(o)===171?(q=ze,o++):(q=e,v===0&&Z(Ve)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===187?(P=ct,o++):(P=e,v===0&&Z(pt)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=it(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}if(S!==e){for(;S!==e;)if(R.push(S),S=o,t.charCodeAt(o)===60?(q=Ge,o++):(q=e,v===0&&Z(Ke)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===62?(P=at,o++):(P=e,v===0&&Z(We)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,t.charCodeAt(o)===171?(q=ze,o++):(q=e,v===0&&Z(Ve)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===187?(P=ct,o++):(P=e,v===0&&Z(pt)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=it(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}}else R=e;R!==e?y=t.substring(y,o):y=R,y!==e&&(ue=_,y=we(h,y)),_=y}for(;_!==e;)if(w.push(_),_=qn(),_===e&&(_=Li(),_===e)){if(_=o,y=o,R=[],S=o,t.charCodeAt(o)===60?(q=Ge,o++):(q=e,v===0&&Z(Ke)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===62?(P=at,o++):(P=e,v===0&&Z(We)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,t.charCodeAt(o)===171?(q=ze,o++):(q=e,v===0&&Z(Ve)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===187?(P=ct,o++):(P=e,v===0&&Z(pt)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=it(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}if(S!==e){for(;S!==e;)if(R.push(S),S=o,t.charCodeAt(o)===60?(q=Ge,o++):(q=e,v===0&&Z(Ke)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===62?(P=at,o++):(P=e,v===0&&Z(We)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=o,t.charCodeAt(o)===171?(q=ze,o++):(q=e,v===0&&Z(Ve)),q!==e?(J=er(),J!==e?(t.charCodeAt(o)===187?(P=ct,o++):(P=e,v===0&&Z(pt)),P!==e?(q=[q,J,P],S=q):(o=S,S=e)):(o=S,S=e)):(o=S,S=e),S===e&&(S=it(),S===e))){if(S=o,q=o,J=[],P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e),P!==e)for(;P!==e;)J.push(P),P=o,W=o,v++,L=o,j=Pe(),j!==e?(ue=o,K=ae(h,j),K?K=void 0:K=e,K!==e?(j=[j,K],L=j):(o=L,L=e)):(o=L,L=e),v--,L===e?W=void 0:(o=W,W=e),W!==e?(L=o,v++,j=Et(),v--,j===e?L=void 0:(o=L,L=e),L!==e?(j=o,v++,K=it(),v--,K===e?j=void 0:(o=j,j=e),j!==e?(t.length>o?(K=t.charAt(o),o++):(K=e,v===0&&Z(ye)),K!==e?(W=[W,L,j,K],P=W):(o=P,P=e)):(o=P,P=e)):(o=P,P=e)):(o=P,P=e);else J=e;J!==e?q=t.substring(q,o):q=J,q!==e&&(ue=S,q=we(h,q)),S=q}}else R=e;R!==e?y=t.substring(y,o):y=R,y!==e&&(ue=_,y=we(h,y)),_=y}w!==e?(_=Pe(),_!==e?(ue=o,y=Xr(h,w,_),y?y=void 0:y=e,y!==e?(ue=n,h=xr(h,w,_),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)}else o=n,n=e;else o=n,n=e;return n}function Sf(){var n,h,T,w,_;for(n=o,h=[],T=o,w=o,v++,_=Pe(),v--,_===e?w=void 0:(o=w,w=e),w!==e?(t.length>o?(_=t.charAt(o),o++):(_=e,v===0&&Z(ye)),_!==e?(w=[w,_],T=w):(o=T,T=e)):(o=T,T=e);T!==e;)h.push(T),T=o,w=o,v++,_=Pe(),v--,_===e?w=void 0:(o=w,w=e),w!==e?(t.length>o?(_=t.charAt(o),o++):(_=e,v===0&&Z(ye)),_!==e?(w=[w,_],T=w):(o=T,T=e)):(o=T,T=e);return h!==e?n=t.substring(n,o):n=h,n}function er(){var n,h,T,w,_,y,R;if(n=o,h=o,T=[],w=o,t.charCodeAt(o)===60?(_=Ge,o++):(_=e,v===0&&Z(Ke)),_!==e?(y=er(),y!==e?(t.charCodeAt(o)===62?(R=at,o++):(R=e,v===0&&Z(We)),R!==e?(_=[_,y,R],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,t.charCodeAt(o)===171?(_=ze,o++):(_=e,v===0&&Z(Ve)),_!==e?(y=er(),y!==e?(t.charCodeAt(o)===187?(R=ct,o++):(R=e,v===0&&Z(pt)),R!==e?(_=[_,y,R],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=it(),w===e&&(w=yn()))),w!==e)for(;w!==e;)T.push(w),w=o,t.charCodeAt(o)===60?(_=Ge,o++):(_=e,v===0&&Z(Ke)),_!==e?(y=er(),y!==e?(t.charCodeAt(o)===62?(R=at,o++):(R=e,v===0&&Z(We)),R!==e?(_=[_,y,R],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=o,t.charCodeAt(o)===171?(_=ze,o++):(_=e,v===0&&Z(Ve)),_!==e?(y=er(),y!==e?(t.charCodeAt(o)===187?(R=ct,o++):(R=e,v===0&&Z(pt)),R!==e?(_=[_,y,R],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w===e&&(w=it(),w===e&&(w=yn())));else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=Ut(h)),n=h,n}function yn(){var n,h,T,w,_,y,R,S;if(n=o,h=o,T=[],w=o,_=o,v++,y=Pe(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(y=o,v++,R=Et(),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=it(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e),w!==e)for(;w!==e;)T.push(w),w=o,_=o,v++,y=Pe(),v--,y===e?_=void 0:(o=_,_=e),_!==e?(y=o,v++,R=Et(),v--,R===e?y=void 0:(o=y,y=e),y!==e?(R=o,v++,S=it(),v--,S===e?R=void 0:(o=R,R=e),R!==e?(t.length>o?(S=t.charAt(o),o++):(S=e,v===0&&Z(ye)),S!==e?(_=[_,y,R,S],w=_):(o=w,w=e)):(o=w,w=e)):(o=w,w=e)):(o=w,w=e);else T=e;return T!==e?h=t.substring(h,o):h=T,h!==e&&(ue=n,h=Ut(h)),n=h,n}function it(){var n,h,T,w,_;return n=o,h=o,T=o,v++,w=en(),v--,w===e?T=void 0:(o=T,T=e),T!==e?(t.length>o?(w=t.charAt(o),o++):(w=e,v===0&&Z(ye)),w!==e?(T=[T,w],h=T):(o=h,h=e)):(o=h,h=e),h!==e?(t.charCodeAt(o)===60?(T=Ge,o++):(T=e,v===0&&Z(Ke)),T!==e?(w=yn(),w!==e?(t.charCodeAt(o)===62?(_=at,o++):(_=e,v===0&&Z(We)),_!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e),n===e&&(n=o,h=o,T=o,v++,w=en(),v--,w===e?T=void 0:(o=T,T=e),T!==e?(t.length>o?(w=t.charAt(o),o++):(w=e,v===0&&Z(ye)),w!==e?(T=[T,w],h=T):(o=h,h=e)):(o=h,h=e),h!==e?(t.charCodeAt(o)===171?(T=ze,o++):(T=e,v===0&&Z(Ve)),T!==e?(w=yn(),w!==e?(t.charCodeAt(o)===187?(_=ct,o++):(_=e,v===0&&Z(pt)),_!==e?(ue=n,h=Or(),n=h):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)):(o=n,n=e)),n}function Dn(n){return n.reduce((h,T)=>Array.isArray(T)?h.concat(Dn(T)):h.concat(T),[])}function Pa(n){return{"<":">","\xAB":"\xBB",">":"<","\xBB":"\xAB"}[n]}if(Vr=s(),Vr!==e&&o===t.length)return Vr;throw Vr!==e&&o<t.length&&Z(dn()),mn(Vn,fr<t.length?t.charAt(fr):null,fr<t.length?pr(fr,fr+1):pr(fr,fr))}wd.exports={SyntaxError:Ai,parse:Uw}});var Pd=me((TC,Kw)=>{Kw.exports={name:"@podlite/schema",version:"0.0.36",description:"AST tools and schema for Podlite markup language \u2014 validate, traverse, and transform document trees",main:"./src/index.ts",homepage:"https://podlite.org",bugs:{url:"https://github.com/podlite/podlite/issues"},repository:{type:"git",url:"https://github.com/podlite/podlite.git",directory:"packages/podlite-schema"},license:"MIT",funding:{type:"opencollective",url:"https://opencollective.com/podlite"},files:["lib/**/*.js","lib/**/*.d.ts","esm","schema/*","README.md","CHANGELOG.md"],engines:{node:">=14"},engineStrict:!0,publishConfig:{access:"public",main:"lib/index.js",types:"./lib/index.d.ts",module:"./esm/index.js"},scripts:{clean:"rm -rf lib esm *.tsbuildinfo",build:"run-s build:pegjs build_lib build:ast ",build_lib:"yarn g:build","build:ast":"ts-node scripts/make-ast-scheme.ts","build:pegjs":"pegmill -o src/grammar.js src/grammar.pegjs && pegmill -o src/grammarfc.js src/grammarfc.pegjs",watch:"npx nodemon -e js,ts --exec 'yarn' build","watch:pegjs":"npx nodemon -e pegmill --exec 'yarn' build:pegjs",test:"yarn g:jest --passWithNoTests"},keywords:["podlite","schema","ast","syntax-tree","markup-language","transform","visitor","parser","markdown","tree"],dependencies:{ajv:"^7.2.3",events:"^3.1.0","json-pointer":"^0.6.1",nanoid:"3.1.30",slugify:"^1.6.6"},devDependencies:{"@types/node":"^17.0.7",glob:"^7.2.0","npm-run-all":"^4.1.5",pegmill:"0.1.0","ts-node":"^9.1.1",typescript:"4.5.5","typescript-json-schema":"0.53.0"}}});var Od=me((pA,Id)=>{Id.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var zd=me((dA,Md)=>{"use strict";var ea=Object.prototype.hasOwnProperty,Bd=Object.prototype.toString,qd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Dd=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Bd.call(r)==="[object Array]"},Rd=function(r){if(!r||Bd.call(r)!=="[object Object]")return!1;var e=ea.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&ea.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!i)return!1;var s;for(s in r);return typeof s>"u"||ea.call(r,s)},Ld=function(r,e){qd&&e.name==="__proto__"?qd(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},jd=function(r,e){if(e==="__proto__")if(ea.call(r,e)){if(Nd)return Nd(r,e).value}else return;return r[e]};Md.exports=function t(){var r,e,i,s,a,l,f=arguments[0],c=1,m=arguments.length,d=!1;for(typeof f=="boolean"&&(d=f,f=arguments[1]||{},c=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});c<m;++c)if(r=arguments[c],r!=null)for(e in r)i=jd(f,e),s=jd(r,e),f!==s&&(d&&s&&(Rd(s)||(a=Dd(s)))?(a?(a=!1,l=i&&Dd(i)?i:[]):l=i&&Rd(i)?i:{},Ld(f,{name:e,newValue:t(d,l,s)})):typeof s<"u"&&Ld(f,{name:e,newValue:s}));return f}});var Hd=me((gA,Ud)=>{Ud.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var I0={};Bf(I0,{PluginRegister:()=>T0,default:()=>F0,parseMd:()=>$a,plugin:()=>ba});module.exports=Fh(I0);var Td=Rr(Gp()),Zw=Rr(Jp());var NC=Rr(ed());var Sw=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 i=r.match(/(.+)\<\>/);return i?{type:"fcode",name:i[1]}:{name:r,type:"block"}}return{name:r,type:e}},vi=t=>{let r=Sw(t),{name:e,type:i}=r;return i&&i==="*"?{name:e}:e&&e==="*"?{type:i}:r};function Pw(t,r){function e(s){for(var a in s)if(s.hasOwnProperty(a))return!1;return!0}if(e(t))return!0;for(var i in t)if(t===void 0&&console.warn("[podlite] undefined key!!!"),t.hasOwnProperty(i))if(r===void 0&&console.warn("[podlite] undefined node!!!"),r&&r.hasOwnProperty(i)){if(t[i]!==r[i])return!1}else return!1;return!0}var xn=(t,r)=>{return e.rule=t,e.isFor=i,e.fn=r,e;function e(){}function i(s){return typeof s=="string"?!1:Pw(t,s)}},gu=(t,r)=>{if(t instanceof Array)return t.reduce((i,s)=>(i.push(...gu(s)),i),[]);if(t instanceof Object){let i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(xn(vi(e),t[e]));return i}return[xn(vi(t),r)]};var yu=Rr(require("crypto"),1);var td="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Tw=128,xi,io,Fw=t=>{!xi||xi.length<t?(xi=Buffer.allocUnsafe(t*Tw),yu.default.randomFillSync(xi),io=0):io+t>xi.length&&(yu.default.randomFillSync(xi),io=0),io+=t};var rd=(t=21)=>{Fw(t);let r="";for(let e=io-t;e<io;e++)r+=td[xi[e]&63];return r};var oo=t=>({...t}),$u=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},hr=(t,r)=>{let e="block",i=t.name,s={id:rd(),margin:"",...t};var a=oo({type:e,...s,content:$u(r)});return a};var Js=(t,r)=>oo({type:"fcode",...t,content:r}),bu=(t,r)=>oo({...t,type:"fcode",name:"L",content:$u(r)}),nd=t=>oo({type:"fcode",name:"Delete",content:$u(t)}),id=t=>oo({type:"fcode",name:"F",content:[{type:"text",value:t}]}),Ho=t=>oo({type:"verbatim",value:t});var od=t=>({type:"block",name:"caption",content:t}),sd=(t,r)=>({type:"image",src:t,alt:r}),wu=({margin:t=""},r)=>hr({name:"root",margin:t},r);var ad=({value:t,location:r})=>hr({name:"formula",location:r},[Ho(t)]);var ld=(t,r={})=>{let e=t.config instanceof Array?t.config:[],i=[];r.config&&r.config.hasOwnProperty(t.name)&&(i=r.config[t.name]);let s={};[...e,...i].map(l=>{s.hasOwnProperty(l.name)||(s[l.name]=[]),l.type==="array"?s[l.name].push(...l.value):s[l.name].push(l.value)});let a=function(){};return a.exists=l=>s.hasOwnProperty(l),a.getAllValues=l=>a.exists(l)?s[l]:[],a.getFirstValue=l=>a.exists(l)?a.getAllValues(l)[0]:void 0,a.asHash=()=>s,a},gr=ld;var ud=(t,r)=>{let e=gr(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};function fd(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(fd(e)):r.concat(e),[]):t}function Iw(t){function r(e,i){if(e==null)return e;if(e instanceof Array)return fd(e.map(l=>r(l,i))).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},i);let s=t.slice();s.reverse();let a=s.findIndex(l=>l.isFor(e));if(a!==-1){let l=s.slice(a+1),f=l.findIndex(m=>m.isFor(e)),c=(m=e,d=i,$=r)=>{if(f!==-1)l[f].fn(m,d,$,()=>{});else return};return typeof s[a].fn!="function"&&console.warn("[podlite] bad fn for "+JSON.stringify(e,null,2)),s[a].fn(e,i,r,c)}else{let l={...e};if(l.hasOwnProperty("content"))return r(l.content,i)}}return r.rules=t,r}var Xs=Iw;var Me=(t,r)=>(e,i)=>(s,a,l)=>{e.writeRaw(t),s.content&&l(s.content,a),e.writeRaw(r)},xt=()=>()=>()=>{},yr=(t,r)=>(e,i,s)=>{if(e.content)return s(e.content,i)},Pr=t=>(r,e)=>(i,s,a)=>t(i,s)(r,e)(i,s,a);var Go=(t,r)=>{let e=gu(t).reverse();return(i,s)=>{let a=e.map(c=>xn(c.rule,c.fn(i,s))).reverse(),l=r(i,s),f;return(c,m,d)=>(f||(f=Xs([...d.rules,...a])),l(c,m,f))}},Tr=(t,r)=>(e,i)=>{let s=t(e,i);return(a,l,f)=>{let c=gr(a,l).getFirstValue("nested")||r;c!==void 0&&e.addLevel(c),s(a,l,f),c!==void 0&&e.removeLevel(c)}};function Ko(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function cd(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(cd(e)):r.concat(e),[])}var Qs=t=>{let r=[];function e(s,a){if(s instanceof Array&&console.warn(`[podlite] Unsupported param for ${s}`),s instanceof Object){for(var l in s)s.hasOwnProperty(l)&&e(l,s[l]);return[]}r.push(xn(vi(s),a))}function i(s,a={}){if(s==null)return s;if(s instanceof Array)return cd(s.map(c=>i(c,a)));if(typeof s=="string")return s;let l=r.slice();l.reverse();let f=l.findIndex(c=>c.isFor(s));if(f!==-1)return l[f].fn(s,a,i);{let c={...s};return c.hasOwnProperty("content")&&(c.content=i(c.content,a)),c}}return e(t),i.rules=r,i},jr=Qs;var pd=Rr(require("events")),ku=class extends pd.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)}},Wo=ku;var so=(t={},r=[])=>{let e=r,i=t.processor||dd,s=t.writer;return a.use=l,a.run=f,a.getPlugins=()=>e,a;function a(c){}function l(c,m){if(c instanceof Array)return so(t,[...e,...m]);if(c instanceof Object){for(var d in c)c.hasOwnProperty(d)&&l(d,c[d]);return a}return e.push(xn(vi(c),m)),a}function f(c,m){let d="",$=m||s||new Wo(X=>{d=d+X}),E=typeof $=="function"?new $(X=>{d=d+X}):$,k=typeof c=="string"?i(c):c,x=e.slice();x.reverse();let I=Xs(x.map(X=>xn(X.rule,X.fn(E,i,k))).reverse()),N={};E.startWrite(k);let B=I(k,N);return E.endWrite(),{errors:E.errors,toString:()=>d,valueOf:()=>d,indexingTerms:E.INDEXTERMS,annotations:E.FOOTNOTES,defenitions:E.DEFINITIONS,interator:B}}};var md=()=>t=>jr({"*":(e,i,s)=>(e.content&&(e.content=s(e.content,i,s)),delete e.location,e)})(t,{}),Ys=md;var Rx={":text":(t,r)=>(e,i,s)=>{e.value?t.write(e.value):s(e.content,i)},"A<>":(t,r)=>(e,i,s)=>{if(!(i.alias&&i.alias.hasOwnProperty(e.content)))t.writeRaw(`A<${e.content}>`);else{let a=i.alias[e.content].join(`
|
|
15
15
|
`),l=r(a),f=Ys()(l);f[0].type==="para"?s(f[0].content,i):s(f,i)}},"C<>":Me("`","`"),"D<>":(t,r)=>(e,i,s)=>{t.hasOwnProperty("DEFINITIONS")||(t.DEFINITIONS=[]),t.DEFINITIONS.push({definition:[e.content[0]]}),t.writeRaw("**"),s(e.content,i),t.writeRaw("**")},"B<>":Me("**","**"),"I<>":Me("*","*"),"R<>":Me("*","*"),"K<>":Me("`","`"),"L<>":Pr((t,r)=>{let{meta:e}=t;return e===null&&(e=t.content),Me("[",`](${e})`)}),"N<>":(t,r)=>(t.addListener("end",()=>{if(!t.hasOwnProperty("FOOTNOTES"))return;let e=t.FOOTNOTES;e.length<1||(t.writeRaw(`
|
|
16
16
|
|
|
17
17
|
---
|