@techdocs/cli 1.6.1-next.1 → 1.6.1-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/embedded-app/.config-schema.json +151 -151
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/1059.84ba853b.chunk.js +10 -0
- package/dist/embedded-app/static/1059.84ba853b.chunk.js.map +1 -0
- package/dist/embedded-app/static/3510.6d8cb98c.chunk.js +3 -0
- package/dist/embedded-app/static/3510.6d8cb98c.chunk.js.map +1 -0
- package/dist/embedded-app/static/8096.60ff0c3e.chunk.js +11 -0
- package/dist/embedded-app/static/8096.60ff0c3e.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.21f1591c.js +487 -0
- package/dist/embedded-app/static/main.21f1591c.js.map +1 -0
- package/dist/embedded-app/static/{runtime.f8ffa716.js → runtime.21f1591c.js} +2 -2
- package/dist/embedded-app/static/{runtime.f8ffa716.js.map → runtime.21f1591c.js.map} +1 -1
- package/dist/embedded-app/static/vendor.21f1591c.js +206 -0
- package/dist/embedded-app/static/vendor.21f1591c.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +3 -3
- package/dist/embedded-app/static/4966.e30bae7f.chunk.js +0 -49
- package/dist/embedded-app/static/4966.e30bae7f.chunk.js.map +0 -1
- package/dist/embedded-app/static/7893.2112ad7c.chunk.js +0 -3
- package/dist/embedded-app/static/7893.2112ad7c.chunk.js.map +0 -1
- package/dist/embedded-app/static/967.dadcb6bd.chunk.js +0 -11
- package/dist/embedded-app/static/967.dadcb6bd.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.f8ffa716.js +0 -487
- package/dist/embedded-app/static/main.f8ffa716.js.map +0 -1
- package/dist/embedded-app/static/vendor.f8ffa716.js +0 -167
- package/dist/embedded-app/static/vendor.f8ffa716.js.map +0 -1
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[4966],{88188:function(ye,r,f){"use strict";var a,l=f(71600),b=f(34590);a={value:!0},r.Z=void 0;var g=b(f(2784)),S=l(f(50175)),d=(0,S.default)(g.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline");r.Z=d},52866:function(ye,r,f){"use strict";var a,l=f(71600),b=f(34590);a={value:!0},r.Z=void 0;var g=b(f(2784)),S=l(f(50175)),d=(0,S.default)(g.createElement("path",{d:"M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");r.Z=d},52160:function(ye,r,f){"use strict";var a,l=f(71600),b=f(34590);a={value:!0},r.Z=void 0;var g=b(f(2784)),S=l(f(50175)),d=(0,S.default)(g.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");r.Z=d},35292:function(ye,r,f){"use strict";var a,l=f(71600),b=f(34590);a={value:!0},r.Z=void 0;var g=b(f(2784)),S=l(f(50175)),d=(0,S.default)(g.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");r.Z=d},27991:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MissingRefError=r.ValidationError=r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;const a=f(49241),l=f(20361),b=f(86825),g=f(90360),S=["/properties"],d="http://json-schema.org/draft-07/schema";class k extends a.default{_addVocabularies(){super._addVocabularies(),l.default.forEach(M=>this.addVocabulary(M)),this.opts.discriminator&&this.addKeyword(b.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const M=this.opts.$data?this.$dataMetaSchema(g,S):g;this.addMetaSchema(M,d,!1),this.refs["http://json-schema.org/schema"]=d}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(d)?d:void 0)}}ye.exports=r=k,Object.defineProperty(r,"__esModule",{value:!0}),r.default=k;var c=f(4998);Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var h=f(15923);Object.defineProperty(r,"_",{enumerable:!0,get:function(){return h._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return h.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return h.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return h.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return h.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return h.CodeGen}});var y=f(14282);Object.defineProperty(r,"ValidationError",{enumerable:!0,get:function(){return y.default}});var E=f(24186);Object.defineProperty(r,"MissingRefError",{enumerable:!0,get:function(){return E.default}})},80477:function(ye,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.regexpCode=r.getEsmExportName=r.getProperty=r.safeStringify=r.stringify=r.strConcat=r.addCodeArg=r.str=r._=r.nil=r._Code=r.Name=r.IDENTIFIER=r._CodeOrName=void 0;class f{}r._CodeOrName=f,r.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class a extends f{constructor(v){if(super(),!r.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}r.Name=a;class l extends f{constructor(v){super(),this._items=typeof v=="string"?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return v===""||v==='""'}get str(){var v;return(v=this._str)!==null&&v!==void 0?v:this._str=this._items.reduce((j,_)=>`${j}${_}`,"")}get names(){var v;return(v=this._names)!==null&&v!==void 0?v:this._names=this._items.reduce((j,_)=>(_ instanceof a&&(j[_.str]=(j[_.str]||0)+1),j),{})}}r._Code=l,r.nil=new l("");function b(p,...v){const j=[p[0]];let _=0;for(;_<v.length;)d(j,v[_]),j.push(p[++_]);return new l(j)}r._=b;const g=new l("+");function S(p,...v){const j=[z(p[0])];let _=0;for(;_<v.length;)j.push(g),d(j,v[_]),j.push(g,z(p[++_]));return k(j),new l(j)}r.str=S;function d(p,v){v instanceof l?p.push(...v._items):v instanceof a?p.push(v):p.push(y(v))}r.addCodeArg=d;function k(p){let v=1;for(;v<p.length-1;){if(p[v]===g){const j=c(p[v-1],p[v+1]);if(j!==void 0){p.splice(v-1,3,j);continue}p[v++]="+"}v++}}function c(p,v){if(v==='""')return p;if(p==='""')return v;if(typeof p=="string")return v instanceof a||p[p.length-1]!=='"'?void 0:typeof v!="string"?`${p.slice(0,-1)}${v}"`:v[0]==='"'?p.slice(0,-1)+v.slice(1):void 0;if(typeof v=="string"&&v[0]==='"'&&!(p instanceof a))return`"${p}${v.slice(1)}`}function h(p,v){return v.emptyStr()?p:p.emptyStr()?v:S`${p}${v}`}r.strConcat=h;function y(p){return typeof p=="number"||typeof p=="boolean"||p===null?p:z(Array.isArray(p)?p.join(","):p)}function E(p){return new l(z(p))}r.stringify=E;function z(p){return JSON.stringify(p).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}r.safeStringify=z;function M(p){return typeof p=="string"&&r.IDENTIFIER.test(p)?new l(`.${p}`):b`[${p}]`}r.getProperty=M;function x(p){if(typeof p=="string"&&r.IDENTIFIER.test(p))return new l(`${p}`);throw new Error(`CodeGen: invalid export name: ${p}, use explicit $id name mapping`)}r.getEsmExportName=x;function R(p){return new l(p.toString())}r.regexpCode=R},15923:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.or=r.and=r.not=r.CodeGen=r.operators=r.varKinds=r.ValueScopeName=r.ValueScope=r.Scope=r.Name=r.regexpCode=r.stringify=r.getProperty=r.nil=r.strConcat=r.str=r._=void 0;const a=f(80477),l=f(91131);var b=f(80477);Object.defineProperty(r,"_",{enumerable:!0,get:function(){return b._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return b.str}}),Object.defineProperty(r,"strConcat",{enumerable:!0,get:function(){return b.strConcat}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return b.nil}}),Object.defineProperty(r,"getProperty",{enumerable:!0,get:function(){return b.getProperty}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return b.stringify}}),Object.defineProperty(r,"regexpCode",{enumerable:!0,get:function(){return b.regexpCode}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return b.Name}});var g=f(91131);Object.defineProperty(r,"Scope",{enumerable:!0,get:function(){return g.Scope}}),Object.defineProperty(r,"ValueScope",{enumerable:!0,get:function(){return g.ValueScope}}),Object.defineProperty(r,"ValueScopeName",{enumerable:!0,get:function(){return g.ValueScopeName}}),Object.defineProperty(r,"varKinds",{enumerable:!0,get:function(){return g.varKinds}}),r.operators={GT:new a._Code(">"),GTE:new a._Code(">="),LT:new a._Code("<"),LTE:new a._Code("<="),EQ:new a._Code("==="),NEQ:new a._Code("!=="),NOT:new a._Code("!"),OR:new a._Code("||"),AND:new a._Code("&&"),ADD:new a._Code("+")};class S{optimizeNodes(){return this}optimizeNames(w,D){return this}}class d extends S{constructor(w,D,ae){super(),this.varKind=w,this.name=D,this.rhs=ae}render({es5:w,_n:D}){const ae=w?l.varKinds.var:this.varKind,Fe=this.rhs===void 0?"":` = ${this.rhs}`;return`${ae} ${this.name}${Fe};`+D}optimizeNames(w,D){if(w[this.name.str])return this.rhs&&(this.rhs=Ee(this.rhs,w,D)),this}get names(){return this.rhs instanceof a._CodeOrName?this.rhs.names:{}}}class k extends S{constructor(w,D,ae){super(),this.lhs=w,this.rhs=D,this.sideEffects=ae}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,D){if(!(this.lhs instanceof a.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=Ee(this.rhs,w,D),this}get names(){const w=this.lhs instanceof a.Name?{}:{...this.lhs.names};return Le(w,this.rhs)}}class c extends k{constructor(w,D,ae,Fe){super(w,ae,Fe),this.op=D}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class h extends S{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class y extends S{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class E extends S{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class z extends S{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,D){return this.code=Ee(this.code,w,D),this}get names(){return this.code instanceof a._CodeOrName?this.code.names:{}}}class M extends S{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((D,ae)=>D+ae.render(w),"")}optimizeNodes(){const{nodes:w}=this;let D=w.length;for(;D--;){const ae=w[D].optimizeNodes();Array.isArray(ae)?w.splice(D,1,...ae):ae?w[D]=ae:w.splice(D,1)}return w.length>0?this:void 0}optimizeNames(w,D){const{nodes:ae}=this;let Fe=ae.length;for(;Fe--;){const ze=ae[Fe];ze.optimizeNames(w,D)||(Ue(w,ze.names),ae.splice(Fe,1))}return ae.length>0?this:void 0}get names(){return this.nodes.reduce((w,D)=>Te(w,D.names),{})}}class x extends M{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class R extends M{}class p extends x{}p.kind="else";class v extends x{constructor(w,D){super(D),this.condition=w}render(w){let D=`if(${this.condition})`+super.render(w);return this.else&&(D+="else "+this.else.render(w)),D}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let D=this.else;if(D){const ae=D.optimizeNodes();D=this.else=Array.isArray(ae)?new p(ae):ae}if(D)return w===!1?D instanceof v?D:D.nodes:this.nodes.length?this:new v(Et(w),D instanceof v?[D]:D.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,D){var ae;if(this.else=(ae=this.else)===null||ae===void 0?void 0:ae.optimizeNames(w,D),!!(super.optimizeNames(w,D)||this.else))return this.condition=Ee(this.condition,w,D),this}get names(){const w=super.names;return Le(w,this.condition),this.else&&Te(w,this.else.names),w}}v.kind="if";class j extends x{}j.kind="for";class _ extends j{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iteration=Ee(this.iteration,w,D),this}get names(){return Te(super.names,this.iteration.names)}}class I extends j{constructor(w,D,ae,Fe){super(),this.varKind=w,this.name=D,this.from=ae,this.to=Fe}render(w){const D=w.es5?l.varKinds.var:this.varKind,{name:ae,from:Fe,to:ze}=this;return`for(${D} ${ae}=${Fe}; ${ae}<${ze}; ${ae}++)`+super.render(w)}get names(){const w=Le(super.names,this.from);return Le(w,this.to)}}class H extends j{constructor(w,D,ae,Fe){super(),this.loop=w,this.varKind=D,this.name=ae,this.iterable=Fe}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iterable=Ee(this.iterable,w,D),this}get names(){return Te(super.names,this.iterable.names)}}class O extends x{constructor(w,D,ae){super(),this.name=w,this.args=D,this.async=ae}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}O.kind="func";class A extends M{render(w){return"return "+super.render(w)}}A.kind="return";class B extends x{render(w){let D="try"+super.render(w);return this.catch&&(D+=this.catch.render(w)),this.finally&&(D+=this.finally.render(w)),D}optimizeNodes(){var w,D;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(D=this.finally)===null||D===void 0||D.optimizeNodes(),this}optimizeNames(w,D){var ae,Fe;return super.optimizeNames(w,D),(ae=this.catch)===null||ae===void 0||ae.optimizeNames(w,D),(Fe=this.finally)===null||Fe===void 0||Fe.optimizeNames(w,D),this}get names(){const w=super.names;return this.catch&&Te(w,this.catch.names),this.finally&&Te(w,this.finally.names),w}}class le extends x{constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}le.kind="catch";class be extends x{render(w){return"finally"+super.render(w)}}be.kind="finally";class _e{constructor(w,D={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...D,_n:D.lines?`
|
|
2
|
-
`:""},this._extScope=w,this._scope=new l.Scope({parent:w}),this._nodes=[new R]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,D){const ae=this._extScope.value(w,D);return(this._values[ae.prefix]||(this._values[ae.prefix]=new Set)).add(ae),ae}getScopeValue(w,D){return this._extScope.getValue(w,D)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,D,ae,Fe){const ze=this._scope.toName(D);return ae!==void 0&&Fe&&(this._constants[ze.str]=ae),this._leafNode(new d(w,ze,ae)),ze}const(w,D,ae){return this._def(l.varKinds.const,w,D,ae)}let(w,D,ae){return this._def(l.varKinds.let,w,D,ae)}var(w,D,ae){return this._def(l.varKinds.var,w,D,ae)}assign(w,D,ae){return this._leafNode(new k(w,D,ae))}add(w,D){return this._leafNode(new c(w,r.operators.ADD,D))}code(w){return typeof w=="function"?w():w!==a.nil&&this._leafNode(new z(w)),this}object(...w){const D=["{"];for(const[ae,Fe]of w)D.length>1&&D.push(","),D.push(ae),(ae!==Fe||this.opts.es5)&&(D.push(":"),(0,a.addCodeArg)(D,Fe));return D.push("}"),new a._Code(D)}if(w,D,ae){if(this._blockNode(new v(w)),D&&ae)this.code(D).else().code(ae).endIf();else if(D)this.code(D).endIf();else if(ae)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(w){return this._elseNode(new v(w))}else(){return this._elseNode(new p)}endIf(){return this._endBlockNode(v,p)}_for(w,D){return this._blockNode(w),D&&this.code(D).endFor(),this}for(w,D){return this._for(new _(w),D)}forRange(w,D,ae,Fe,ze=this.opts.es5?l.varKinds.var:l.varKinds.let){const Ze=this._scope.toName(w);return this._for(new I(ze,Ze,D,ae),()=>Fe(Ze))}forOf(w,D,ae,Fe=l.varKinds.const){const ze=this._scope.toName(w);if(this.opts.es5){const Ze=D instanceof a.Name?D:this.var("_arr",D);return this.forRange("_i",0,(0,a._)`${Ze}.length`,Je=>{this.var(ze,(0,a._)`${Ze}[${Je}]`),ae(ze)})}return this._for(new H("of",Fe,ze,D),()=>ae(ze))}forIn(w,D,ae,Fe=this.opts.es5?l.varKinds.var:l.varKinds.const){if(this.opts.ownProperties)return this.forOf(w,(0,a._)`Object.keys(${D})`,ae);const ze=this._scope.toName(w);return this._for(new H("in",Fe,ze,D),()=>ae(ze))}endFor(){return this._endBlockNode(j)}label(w){return this._leafNode(new h(w))}break(w){return this._leafNode(new y(w))}return(w){const D=new A;if(this._blockNode(D),this.code(w),D.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(w,D,ae){if(!D&&!ae)throw new Error('CodeGen: "try" without "catch" and "finally"');const Fe=new B;if(this._blockNode(Fe),this.code(w),D){const ze=this.name("e");this._currNode=Fe.catch=new le(ze),D(ze)}return ae&&(this._currNode=Fe.finally=new be,this.code(ae)),this._endBlockNode(le,be)}throw(w){return this._leafNode(new E(w))}block(w,D){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(D),this}endBlock(w){const D=this._blockStarts.pop();if(D===void 0)throw new Error("CodeGen: not in self-balancing block");const ae=this._nodes.length-D;if(ae<0||w!==void 0&&ae!==w)throw new Error(`CodeGen: wrong number of nodes: ${ae} vs ${w} expected`);return this._nodes.length=D,this}func(w,D=a.nil,ae,Fe){return this._blockNode(new O(w,D,ae)),Fe&&this.code(Fe).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,D){const ae=this._currNode;if(ae instanceof w||D&&ae instanceof D)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${D?`${w.kind}/${D.kind}`:w.kind}"`)}_elseNode(w){const D=this._currNode;if(!(D instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=D.else=w,this}get _root(){return this._nodes[0]}get _currNode(){const w=this._nodes;return w[w.length-1]}set _currNode(w){const D=this._nodes;D[D.length-1]=w}}r.CodeGen=_e;function Te(ee,w){for(const D in w)ee[D]=(ee[D]||0)+(w[D]||0);return ee}function Le(ee,w){return w instanceof a._CodeOrName?Te(ee,w.names):ee}function Ee(ee,w,D){if(ee instanceof a.Name)return ae(ee);if(!Fe(ee))return ee;return new a._Code(ee._items.reduce((ze,Ze)=>(Ze instanceof a.Name&&(Ze=ae(Ze)),Ze instanceof a._Code?ze.push(...Ze._items):ze.push(Ze),ze),[]));function ae(ze){const Ze=D[ze.str];return Ze===void 0||w[ze.str]!==1?ze:(delete w[ze.str],Ze)}function Fe(ze){return ze instanceof a._Code&&ze._items.some(Ze=>Ze instanceof a.Name&&w[Ze.str]===1&&D[Ze.str]!==void 0)}}function Ue(ee,w){for(const D in w)ee[D]=(ee[D]||0)-(w[D]||0)}function Et(ee){return typeof ee=="boolean"||typeof ee=="number"||ee===null?!ee:(0,a._)`!${ve(ee)}`}r.not=Et;const Qt=Y(r.operators.AND);function Ht(...ee){return ee.reduce(Qt)}r.and=Ht;const lt=Y(r.operators.OR);function Ae(...ee){return ee.reduce(lt)}r.or=Ae;function Y(ee){return(w,D)=>w===a.nil?D:D===a.nil?w:(0,a._)`${ve(w)} ${ee} ${ve(D)}`}function ve(ee){return ee instanceof a.Name?ee:(0,a._)`(${ee})`}},91131:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ValueScope=r.ValueScopeName=r.Scope=r.varKinds=r.UsedValueState=void 0;const a=f(80477);class l extends Error{constructor(h){super(`CodeGen: "code" for ${h} not defined`),this.value=h.value}}var b;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(b=r.UsedValueState||(r.UsedValueState={})),r.varKinds={const:new a.Name("const"),let:new a.Name("let"),var:new a.Name("var")};class g{constructor({prefixes:h,parent:y}={}){this._names={},this._prefixes=h,this._parent=y}toName(h){return h instanceof a.Name?h:this.name(h)}name(h){return new a.Name(this._newName(h))}_newName(h){const y=this._names[h]||this._nameGroup(h);return`${h}${y.index++}`}_nameGroup(h){var y,E;if(!((E=(y=this._parent)===null||y===void 0?void 0:y._prefixes)===null||E===void 0)&&E.has(h)||this._prefixes&&!this._prefixes.has(h))throw new Error(`CodeGen: prefix "${h}" is not allowed in this scope`);return this._names[h]={prefix:h,index:0}}}r.Scope=g;class S extends a.Name{constructor(h,y){super(y),this.prefix=h}setValue(h,{property:y,itemIndex:E}){this.value=h,this.scopePath=(0,a._)`.${new a.Name(y)}[${E}]`}}r.ValueScopeName=S;const d=(0,a._)`\n`;class k extends g{constructor(h){super(h),this._values={},this._scope=h.scope,this.opts={...h,_n:h.lines?d:a.nil}}get(){return this._scope}name(h){return new S(h,this._newName(h))}value(h,y){var E;if(y.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const z=this.toName(h),{prefix:M}=z,x=(E=y.key)!==null&&E!==void 0?E:y.ref;let R=this._values[M];if(R){const j=R.get(x);if(j)return j}else R=this._values[M]=new Map;R.set(x,z);const p=this._scope[M]||(this._scope[M]=[]),v=p.length;return p[v]=y.ref,z.setValue(y,{property:M,itemIndex:v}),z}getValue(h,y){const E=this._values[h];if(E)return E.get(y)}scopeRefs(h,y=this._values){return this._reduceValues(y,E=>{if(E.scopePath===void 0)throw new Error(`CodeGen: name "${E}" has no value`);return(0,a._)`${h}${E.scopePath}`})}scopeCode(h=this._values,y,E){return this._reduceValues(h,z=>{if(z.value===void 0)throw new Error(`CodeGen: name "${z}" has no value`);return z.value.code},y,E)}_reduceValues(h,y,E={},z){let M=a.nil;for(const x in h){const R=h[x];if(!R)continue;const p=E[x]=E[x]||new Map;R.forEach(v=>{if(p.has(v))return;p.set(v,b.Started);let j=y(v);if(j){const _=this.opts.es5?r.varKinds.var:r.varKinds.const;M=(0,a._)`${M}${_} ${v} = ${j};${this.opts._n}`}else if(j=z==null?void 0:z(v))M=(0,a._)`${M}${j}${this.opts._n}`;else throw new l(v);p.set(v,b.Completed)})}return M}}r.ValueScope=k},76028:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.extendErrors=r.resetErrorsCount=r.reportExtraError=r.reportError=r.keyword$DataError=r.keywordError=void 0;const a=f(15923),l=f(91571),b=f(92115);r.keywordError={message:({keyword:p})=>(0,a.str)`must pass "${p}" keyword validation`},r.keyword$DataError={message:({keyword:p,schemaType:v})=>v?(0,a.str)`"${p}" keyword must be ${v} ($data)`:(0,a.str)`"${p}" keyword is invalid ($data)`};function g(p,v=r.keywordError,j,_){const{it:I}=p,{gen:H,compositeRule:O,allErrors:A}=I,B=E(p,v,j);(_!=null?_:O||A)?c(H,B):h(I,(0,a._)`[${B}]`)}r.reportError=g;function S(p,v=r.keywordError,j){const{it:_}=p,{gen:I,compositeRule:H,allErrors:O}=_,A=E(p,v,j);c(I,A),H||O||h(_,b.default.vErrors)}r.reportExtraError=S;function d(p,v){p.assign(b.default.errors,v),p.if((0,a._)`${b.default.vErrors} !== null`,()=>p.if(v,()=>p.assign((0,a._)`${b.default.vErrors}.length`,v),()=>p.assign(b.default.vErrors,null)))}r.resetErrorsCount=d;function k({gen:p,keyword:v,schemaValue:j,data:_,errsCount:I,it:H}){if(I===void 0)throw new Error("ajv implementation error");const O=p.name("err");p.forRange("i",I,b.default.errors,A=>{p.const(O,(0,a._)`${b.default.vErrors}[${A}]`),p.if((0,a._)`${O}.instancePath === undefined`,()=>p.assign((0,a._)`${O}.instancePath`,(0,a.strConcat)(b.default.instancePath,H.errorPath))),p.assign((0,a._)`${O}.schemaPath`,(0,a.str)`${H.errSchemaPath}/${v}`),H.opts.verbose&&(p.assign((0,a._)`${O}.schema`,j),p.assign((0,a._)`${O}.data`,_))})}r.extendErrors=k;function c(p,v){const j=p.const("err",v);p.if((0,a._)`${b.default.vErrors} === null`,()=>p.assign(b.default.vErrors,(0,a._)`[${j}]`),(0,a._)`${b.default.vErrors}.push(${j})`),p.code((0,a._)`${b.default.errors}++`)}function h(p,v){const{gen:j,validateName:_,schemaEnv:I}=p;I.$async?j.throw((0,a._)`new ${p.ValidationError}(${v})`):(j.assign((0,a._)`${_}.errors`,v),j.return(!1))}const y={keyword:new a.Name("keyword"),schemaPath:new a.Name("schemaPath"),params:new a.Name("params"),propertyName:new a.Name("propertyName"),message:new a.Name("message"),schema:new a.Name("schema"),parentSchema:new a.Name("parentSchema")};function E(p,v,j){const{createErrors:_}=p.it;return _===!1?(0,a._)`{}`:z(p,v,j)}function z(p,v,j={}){const{gen:_,it:I}=p,H=[M(I,j),x(p,j)];return R(p,v,H),_.object(...H)}function M({errorPath:p},{instancePath:v}){const j=v?(0,a.str)`${p}${(0,l.getErrorPath)(v,l.Type.Str)}`:p;return[b.default.instancePath,(0,a.strConcat)(b.default.instancePath,j)]}function x({keyword:p,it:{errSchemaPath:v}},{schemaPath:j,parentSchema:_}){let I=_?v:(0,a.str)`${v}/${p}`;return j&&(I=(0,a.str)`${I}${(0,l.getErrorPath)(j,l.Type.Str)}`),[y.schemaPath,I]}function R(p,{params:v,message:j},_){const{keyword:I,data:H,schemaValue:O,it:A}=p,{opts:B,propertyName:le,topSchemaRef:be,schemaPath:_e}=A;_.push([y.keyword,I],[y.params,typeof v=="function"?v(p):v||(0,a._)`{}`]),B.messages&&_.push([y.message,typeof j=="function"?j(p):j]),B.verbose&&_.push([y.schema,O],[y.parentSchema,(0,a._)`${be}${_e}`],[b.default.data,H]),le&&_.push([y.propertyName,le])}},76968:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resolveSchema=r.getCompilingSchema=r.resolveRef=r.compileSchema=r.SchemaEnv=void 0;const a=f(15923),l=f(14282),b=f(92115),g=f(48147),S=f(91571),d=f(4998);class k{constructor(j){var _;this.refs={},this.dynamicAnchors={};let I;typeof j.schema=="object"&&(I=j.schema),this.schema=j.schema,this.schemaId=j.schemaId,this.root=j.root||this,this.baseId=(_=j.baseId)!==null&&_!==void 0?_:(0,g.normalizeId)(I==null?void 0:I[j.schemaId||"$id"]),this.schemaPath=j.schemaPath,this.localRefs=j.localRefs,this.meta=j.meta,this.$async=I==null?void 0:I.$async,this.refs={}}}r.SchemaEnv=k;function c(v){const j=E.call(this,v);if(j)return j;const _=(0,g.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:I,lines:H}=this.opts.code,{ownProperties:O}=this.opts,A=new a.CodeGen(this.scope,{es5:I,lines:H,ownProperties:O});let B;v.$async&&(B=A.scopeValue("Error",{ref:l.default,code:(0,a._)`require("ajv/dist/runtime/validation_error").default`}));const le=A.scopeName("validate");v.validateName=le;const be={gen:A,allErrors:this.opts.allErrors,data:b.default.data,parentData:b.default.parentData,parentDataProperty:b.default.parentDataProperty,dataNames:[b.default.data],dataPathArr:[a.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:A.scopeValue("schema",this.opts.code.source===!0?{ref:v.schema,code:(0,a.stringify)(v.schema)}:{ref:v.schema}),validateName:le,ValidationError:B,schema:v.schema,schemaEnv:v,rootId:_,baseId:v.baseId||_,schemaPath:a.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,a._)`""`,opts:this.opts,self:this};let _e;try{this._compilations.add(v),(0,d.validateFunctionCode)(be),A.optimize(this.opts.code.optimize);const Te=A.toString();_e=`${A.scopeRefs(b.default.scope)}return ${Te}`,this.opts.code.process&&(_e=this.opts.code.process(_e,v));const Ee=new Function(`${b.default.self}`,`${b.default.scope}`,_e)(this,this.scope.get());if(this.scope.value(le,{ref:Ee}),Ee.errors=null,Ee.schema=v.schema,Ee.schemaEnv=v,v.$async&&(Ee.$async=!0),this.opts.code.source===!0&&(Ee.source={validateName:le,validateCode:Te,scopeValues:A._values}),this.opts.unevaluated){const{props:Ue,items:Et}=be;Ee.evaluated={props:Ue instanceof a.Name?void 0:Ue,items:Et instanceof a.Name?void 0:Et,dynamicProps:Ue instanceof a.Name,dynamicItems:Et instanceof a.Name},Ee.source&&(Ee.source.evaluated=(0,a.stringify)(Ee.evaluated))}return v.validate=Ee,v}catch(Te){throw delete v.validate,delete v.validateName,_e&&this.logger.error("Error compiling schema, function code:",_e),Te}finally{this._compilations.delete(v)}}r.compileSchema=c;function h(v,j,_){var I;_=(0,g.resolveUrl)(this.opts.uriResolver,j,_);const H=v.refs[_];if(H)return H;let O=M.call(this,v,_);if(O===void 0){const A=(I=v.localRefs)===null||I===void 0?void 0:I[_],{schemaId:B}=this.opts;A&&(O=new k({schema:A,schemaId:B,root:v,baseId:j}))}if(O!==void 0)return v.refs[_]=y.call(this,O)}r.resolveRef=h;function y(v){return(0,g.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:c.call(this,v)}function E(v){for(const j of this._compilations)if(z(j,v))return j}r.getCompilingSchema=E;function z(v,j){return v.schema===j.schema&&v.root===j.root&&v.baseId===j.baseId}function M(v,j){let _;for(;typeof(_=this.refs[j])=="string";)j=_;return _||this.schemas[j]||x.call(this,v,j)}function x(v,j){const _=this.opts.uriResolver.parse(j),I=(0,g._getFullPath)(this.opts.uriResolver,_);let H=(0,g.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&I===H)return p.call(this,_,v);const O=(0,g.normalizeId)(I),A=this.refs[O]||this.schemas[O];if(typeof A=="string"){const B=x.call(this,v,A);return typeof(B==null?void 0:B.schema)!="object"?void 0:p.call(this,_,B)}if(typeof(A==null?void 0:A.schema)=="object"){if(A.validate||c.call(this,A),O===(0,g.normalizeId)(j)){const{schema:B}=A,{schemaId:le}=this.opts,be=B[le];return be&&(H=(0,g.resolveUrl)(this.opts.uriResolver,H,be)),new k({schema:B,schemaId:le,root:v,baseId:H})}return p.call(this,_,A)}}r.resolveSchema=x;const R=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function p(v,{baseId:j,schema:_,root:I}){var H;if(((H=v.fragment)===null||H===void 0?void 0:H[0])!=="/")return;for(const B of v.fragment.slice(1).split("/")){if(typeof _=="boolean")return;const le=_[(0,S.unescapeFragment)(B)];if(le===void 0)return;_=le;const be=typeof _=="object"&&_[this.opts.schemaId];!R.has(B)&&be&&(j=(0,g.resolveUrl)(this.opts.uriResolver,j,be))}let O;if(typeof _!="boolean"&&_.$ref&&!(0,S.schemaHasRulesButRef)(_,this.RULES)){const B=(0,g.resolveUrl)(this.opts.uriResolver,j,_.$ref);O=x.call(this,I,B)}const{schemaId:A}=this.opts;if(O=O||new k({schema:_,schemaId:A,root:I,baseId:j}),O.schema!==O.root.schema)return O}},92115:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l={data:new a.Name("data"),valCxt:new a.Name("valCxt"),instancePath:new a.Name("instancePath"),parentData:new a.Name("parentData"),parentDataProperty:new a.Name("parentDataProperty"),rootData:new a.Name("rootData"),dynamicAnchors:new a.Name("dynamicAnchors"),vErrors:new a.Name("vErrors"),errors:new a.Name("errors"),this:new a.Name("this"),self:new a.Name("self"),scope:new a.Name("scope"),json:new a.Name("json"),jsonPos:new a.Name("jsonPos"),jsonLen:new a.Name("jsonLen"),jsonPart:new a.Name("jsonPart")};r.default=l},24186:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(48147);class l extends Error{constructor(g,S,d,k){super(k||`can't resolve reference ${d} from id ${S}`),this.missingRef=(0,a.resolveUrl)(g,S,d),this.missingSchema=(0,a.normalizeId)((0,a.getFullPath)(g,this.missingRef))}}r.default=l},48147:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getSchemaRefs=r.resolveUrl=r.normalizeId=r._getFullPath=r.getFullPath=r.inlineRef=void 0;const a=f(91571),l=f(69378),b=f(19522),g=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function S(p,v=!0){return typeof p=="boolean"?!0:v===!0?!k(p):v?c(p)<=v:!1}r.inlineRef=S;const d=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function k(p){for(const v in p){if(d.has(v))return!0;const j=p[v];if(Array.isArray(j)&&j.some(k)||typeof j=="object"&&k(j))return!0}return!1}function c(p){let v=0;for(const j in p){if(j==="$ref")return 1/0;if(v++,!g.has(j)&&(typeof p[j]=="object"&&(0,a.eachItem)(p[j],_=>v+=c(_)),v===1/0))return 1/0}return v}function h(p,v="",j){j!==!1&&(v=z(v));const _=p.parse(v);return y(p,_)}r.getFullPath=h;function y(p,v){return p.serialize(v).split("#")[0]+"#"}r._getFullPath=y;const E=/#\/?$/;function z(p){return p?p.replace(E,""):""}r.normalizeId=z;function M(p,v,j){return j=z(j),p.resolve(v,j)}r.resolveUrl=M;const x=/^[a-z_][-a-z0-9._]*$/i;function R(p,v){if(typeof p=="boolean")return{};const{schemaId:j,uriResolver:_}=this.opts,I=z(p[j]||v),H={"":I},O=h(_,I,!1),A={},B=new Set;return b(p,{allKeys:!0},(_e,Te,Le,Ee)=>{if(Ee===void 0)return;const Ue=O+Te;let Et=H[Ee];typeof _e[j]=="string"&&(Et=Qt.call(this,_e[j])),Ht.call(this,_e.$anchor),Ht.call(this,_e.$dynamicAnchor),H[Te]=Et;function Qt(lt){const Ae=this.opts.uriResolver.resolve;if(lt=z(Et?Ae(Et,lt):lt),B.has(lt))throw be(lt);B.add(lt);let Y=this.refs[lt];return typeof Y=="string"&&(Y=this.refs[Y]),typeof Y=="object"?le(_e,Y.schema,lt):lt!==z(Ue)&&(lt[0]==="#"?(le(_e,A[lt],lt),A[lt]=_e):this.refs[lt]=Ue),lt}function Ht(lt){if(typeof lt=="string"){if(!x.test(lt))throw new Error(`invalid anchor "${lt}"`);Qt.call(this,`#${lt}`)}}}),A;function le(_e,Te,Le){if(Te!==void 0&&!l(_e,Te))throw be(Le)}function be(_e){return new Error(`reference "${_e}" resolves to more than one schema`)}}r.getSchemaRefs=R},22825:function(ye,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getRules=r.isJSONType=void 0;const f=["string","number","integer","boolean","null","object","array"],a=new Set(f);function l(g){return typeof g=="string"&&a.has(g)}r.isJSONType=l;function b(){const g={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...g,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},g.number,g.string,g.array,g.object],post:{rules:[]},all:{},keywords:{}}}r.getRules=b},91571:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.checkStrictMode=r.getErrorPath=r.Type=r.useFunc=r.setEvaluated=r.evaluatedPropsToName=r.mergeEvaluated=r.eachItem=r.unescapeJsonPointer=r.escapeJsonPointer=r.escapeFragment=r.unescapeFragment=r.schemaRefOrVal=r.schemaHasRulesButRef=r.schemaHasRules=r.checkUnknownRules=r.alwaysValidSchema=r.toHash=void 0;const a=f(15923),l=f(80477);function b(O){const A={};for(const B of O)A[B]=!0;return A}r.toHash=b;function g(O,A){return typeof A=="boolean"?A:Object.keys(A).length===0?!0:(S(O,A),!d(A,O.self.RULES.all))}r.alwaysValidSchema=g;function S(O,A=O.schema){const{opts:B,self:le}=O;if(!B.strictSchema||typeof A=="boolean")return;const be=le.RULES.keywords;for(const _e in A)be[_e]||H(O,`unknown keyword: "${_e}"`)}r.checkUnknownRules=S;function d(O,A){if(typeof O=="boolean")return!O;for(const B in O)if(A[B])return!0;return!1}r.schemaHasRules=d;function k(O,A){if(typeof O=="boolean")return!O;for(const B in O)if(B!=="$ref"&&A.all[B])return!0;return!1}r.schemaHasRulesButRef=k;function c({topSchemaRef:O,schemaPath:A},B,le,be){if(!be){if(typeof B=="number"||typeof B=="boolean")return B;if(typeof B=="string")return(0,a._)`${B}`}return(0,a._)`${O}${A}${(0,a.getProperty)(le)}`}r.schemaRefOrVal=c;function h(O){return z(decodeURIComponent(O))}r.unescapeFragment=h;function y(O){return encodeURIComponent(E(O))}r.escapeFragment=y;function E(O){return typeof O=="number"?`${O}`:O.replace(/~/g,"~0").replace(/\//g,"~1")}r.escapeJsonPointer=E;function z(O){return O.replace(/~1/g,"/").replace(/~0/g,"~")}r.unescapeJsonPointer=z;function M(O,A){if(Array.isArray(O))for(const B of O)A(B);else A(O)}r.eachItem=M;function x({mergeNames:O,mergeToName:A,mergeValues:B,resultToName:le}){return(be,_e,Te,Le)=>{const Ee=Te===void 0?_e:Te instanceof a.Name?(_e instanceof a.Name?O(be,_e,Te):A(be,_e,Te),Te):_e instanceof a.Name?(A(be,Te,_e),_e):B(_e,Te);return Le===a.Name&&!(Ee instanceof a.Name)?le(be,Ee):Ee}}r.mergeEvaluated={props:x({mergeNames:(O,A,B)=>O.if((0,a._)`${B} !== true && ${A} !== undefined`,()=>{O.if((0,a._)`${A} === true`,()=>O.assign(B,!0),()=>O.assign(B,(0,a._)`${B} || {}`).code((0,a._)`Object.assign(${B}, ${A})`))}),mergeToName:(O,A,B)=>O.if((0,a._)`${B} !== true`,()=>{A===!0?O.assign(B,!0):(O.assign(B,(0,a._)`${B} || {}`),p(O,B,A))}),mergeValues:(O,A)=>O===!0?!0:{...O,...A},resultToName:R}),items:x({mergeNames:(O,A,B)=>O.if((0,a._)`${B} !== true && ${A} !== undefined`,()=>O.assign(B,(0,a._)`${A} === true ? true : ${B} > ${A} ? ${B} : ${A}`)),mergeToName:(O,A,B)=>O.if((0,a._)`${B} !== true`,()=>O.assign(B,A===!0?!0:(0,a._)`${B} > ${A} ? ${B} : ${A}`)),mergeValues:(O,A)=>O===!0?!0:Math.max(O,A),resultToName:(O,A)=>O.var("items",A)})};function R(O,A){if(A===!0)return O.var("props",!0);const B=O.var("props",(0,a._)`{}`);return A!==void 0&&p(O,B,A),B}r.evaluatedPropsToName=R;function p(O,A,B){Object.keys(B).forEach(le=>O.assign((0,a._)`${A}${(0,a.getProperty)(le)}`,!0))}r.setEvaluated=p;const v={};function j(O,A){return O.scopeValue("func",{ref:A,code:v[A.code]||(v[A.code]=new l._Code(A.code))})}r.useFunc=j;var _;(function(O){O[O.Num=0]="Num",O[O.Str=1]="Str"})(_=r.Type||(r.Type={}));function I(O,A,B){if(O instanceof a.Name){const le=A===_.Num;return B?le?(0,a._)`"[" + ${O} + "]"`:(0,a._)`"['" + ${O} + "']"`:le?(0,a._)`"/" + ${O}`:(0,a._)`"/" + ${O}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return B?(0,a.getProperty)(O).toString():"/"+E(O)}r.getErrorPath=I;function H(O,A,B=O.opts.strictSchema){if(B){if(A=`strict mode: ${A}`,B===!0)throw new Error(A);O.self.logger.warn(A)}}r.checkStrictMode=H},34540:function(ye,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.shouldUseRule=r.shouldUseGroup=r.schemaHasRulesForType=void 0;function f({schema:b,self:g},S){const d=g.RULES.types[S];return d&&d!==!0&&a(b,d)}r.schemaHasRulesForType=f;function a(b,g){return g.rules.some(S=>l(b,S))}r.shouldUseGroup=a;function l(b,g){var S;return b[g.keyword]!==void 0||((S=g.definition.implements)===null||S===void 0?void 0:S.some(d=>b[d]!==void 0))}r.shouldUseRule=l},12175:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.boolOrEmptySchema=r.topBoolOrEmptySchema=void 0;const a=f(76028),l=f(15923),b=f(92115),g={message:"boolean schema is false"};function S(c){const{gen:h,schema:y,validateName:E}=c;y===!1?k(c,!1):typeof y=="object"&&y.$async===!0?h.return(b.default.data):(h.assign((0,l._)`${E}.errors`,null),h.return(!0))}r.topBoolOrEmptySchema=S;function d(c,h){const{gen:y,schema:E}=c;E===!1?(y.var(h,!1),k(c)):y.var(h,!0)}r.boolOrEmptySchema=d;function k(c,h){const{gen:y,data:E}=c,z={gen:y,keyword:"false schema",data:E,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,a.reportError)(z,g,void 0,h)}},31411:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.reportTypeError=r.checkDataTypes=r.checkDataType=r.coerceAndCheckDataType=r.getJSONTypes=r.getSchemaTypes=r.DataType=void 0;const a=f(22825),l=f(34540),b=f(76028),g=f(15923),S=f(91571);var d;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(d=r.DataType||(r.DataType={}));function k(_){const I=c(_.type);if(I.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!I.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&I.push("null")}return I}r.getSchemaTypes=k;function c(_){const I=Array.isArray(_)?_:_?[_]:[];if(I.every(a.isJSONType))return I;throw new Error("type must be JSONType or JSONType[]: "+I.join(","))}r.getJSONTypes=c;function h(_,I){const{gen:H,data:O,opts:A}=_,B=E(I,A.coerceTypes),le=I.length>0&&!(B.length===0&&I.length===1&&(0,l.schemaHasRulesForType)(_,I[0]));if(le){const be=R(I,O,A.strictNumbers,d.Wrong);H.if(be,()=>{B.length?z(_,I,B):v(_)})}return le}r.coerceAndCheckDataType=h;const y=new Set(["string","number","integer","boolean","null"]);function E(_,I){return I?_.filter(H=>y.has(H)||I==="array"&&H==="array"):[]}function z(_,I,H){const{gen:O,data:A,opts:B}=_,le=O.let("dataType",(0,g._)`typeof ${A}`),be=O.let("coerced",(0,g._)`undefined`);B.coerceTypes==="array"&&O.if((0,g._)`${le} == 'object' && Array.isArray(${A}) && ${A}.length == 1`,()=>O.assign(A,(0,g._)`${A}[0]`).assign(le,(0,g._)`typeof ${A}`).if(R(I,A,B.strictNumbers),()=>O.assign(be,A))),O.if((0,g._)`${be} !== undefined`);for(const Te of H)(y.has(Te)||Te==="array"&&B.coerceTypes==="array")&&_e(Te);O.else(),v(_),O.endIf(),O.if((0,g._)`${be} !== undefined`,()=>{O.assign(A,be),M(_,be)});function _e(Te){switch(Te){case"string":O.elseIf((0,g._)`${le} == "number" || ${le} == "boolean"`).assign(be,(0,g._)`"" + ${A}`).elseIf((0,g._)`${A} === null`).assign(be,(0,g._)`""`);return;case"number":O.elseIf((0,g._)`${le} == "boolean" || ${A} === null
|
|
3
|
-
|| (${le} == "string" && ${A} && ${A} == +${A})`).assign(be,(0,g._)`+${A}`);return;case"integer":O.elseIf((0,g._)`${le} === "boolean" || ${A} === null
|
|
4
|
-
|| (${le} === "string" && ${A} && ${A} == +${A} && !(${A} % 1))`).assign(be,(0,g._)`+${A}`);return;case"boolean":O.elseIf((0,g._)`${A} === "false" || ${A} === 0 || ${A} === null`).assign(be,!1).elseIf((0,g._)`${A} === "true" || ${A} === 1`).assign(be,!0);return;case"null":O.elseIf((0,g._)`${A} === "" || ${A} === 0 || ${A} === false`),O.assign(be,null);return;case"array":O.elseIf((0,g._)`${le} === "string" || ${le} === "number"
|
|
5
|
-
|| ${le} === "boolean" || ${A} === null`).assign(be,(0,g._)`[${A}]`)}}}function M({gen:_,parentData:I,parentDataProperty:H},O){_.if((0,g._)`${I} !== undefined`,()=>_.assign((0,g._)`${I}[${H}]`,O))}function x(_,I,H,O=d.Correct){const A=O===d.Correct?g.operators.EQ:g.operators.NEQ;let B;switch(_){case"null":return(0,g._)`${I} ${A} null`;case"array":B=(0,g._)`Array.isArray(${I})`;break;case"object":B=(0,g._)`${I} && typeof ${I} == "object" && !Array.isArray(${I})`;break;case"integer":B=le((0,g._)`!(${I} % 1) && !isNaN(${I})`);break;case"number":B=le();break;default:return(0,g._)`typeof ${I} ${A} ${_}`}return O===d.Correct?B:(0,g.not)(B);function le(be=g.nil){return(0,g.and)((0,g._)`typeof ${I} == "number"`,be,H?(0,g._)`isFinite(${I})`:g.nil)}}r.checkDataType=x;function R(_,I,H,O){if(_.length===1)return x(_[0],I,H,O);let A;const B=(0,S.toHash)(_);if(B.array&&B.object){const le=(0,g._)`typeof ${I} != "object"`;A=B.null?le:(0,g._)`!${I} || ${le}`,delete B.null,delete B.array,delete B.object}else A=g.nil;B.number&&delete B.integer;for(const le in B)A=(0,g.and)(A,x(le,I,H,O));return A}r.checkDataTypes=R;const p={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:I})=>typeof _=="string"?(0,g._)`{type: ${_}}`:(0,g._)`{type: ${I}}`};function v(_){const I=j(_);(0,b.reportError)(I,p)}r.reportTypeError=v;function j(_){const{gen:I,data:H,schema:O}=_,A=(0,S.schemaRefOrVal)(_,O,"type");return{gen:I,keyword:"type",data:H,schema:O.type,schemaCode:A,schemaValue:A,parentSchema:O,params:{},it:_}}},14911:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assignDefaults=void 0;const a=f(15923),l=f(91571);function b(S,d){const{properties:k,items:c}=S.schema;if(d==="object"&&k)for(const h in k)g(S,h,k[h].default);else d==="array"&&Array.isArray(c)&&c.forEach((h,y)=>g(S,y,h.default))}r.assignDefaults=b;function g(S,d,k){const{gen:c,compositeRule:h,data:y,opts:E}=S;if(k===void 0)return;const z=(0,a._)`${y}${(0,a.getProperty)(d)}`;if(h){(0,l.checkStrictMode)(S,`default is ignored for: ${z}`);return}let M=(0,a._)`${z} === undefined`;E.useDefaults==="empty"&&(M=(0,a._)`${M} || ${z} === null || ${z} === ""`),c.if(M,(0,a._)`${z} = ${(0,a.stringify)(k)}`)}},4998:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getData=r.KeywordCxt=r.validateFunctionCode=void 0;const a=f(12175),l=f(31411),b=f(34540),g=f(31411),S=f(14911),d=f(47366),k=f(62795),c=f(15923),h=f(92115),y=f(48147),E=f(91571),z=f(76028);function M(Z){if(O(Z)&&(B(Z),H(Z))){v(Z);return}x(Z,()=>(0,a.topBoolOrEmptySchema)(Z))}r.validateFunctionCode=M;function x({gen:Z,validateName:q,schema:fe,schemaEnv:pe,opts:J},He){J.code.es5?Z.func(q,(0,c._)`${h.default.data}, ${h.default.valCxt}`,pe.$async,()=>{Z.code((0,c._)`"use strict"; ${_(fe,J)}`),p(Z,J),Z.code(He)}):Z.func(q,(0,c._)`${h.default.data}, ${R(J)}`,pe.$async,()=>Z.code(_(fe,J)).code(He))}function R(Z){return(0,c._)`{${h.default.instancePath}="", ${h.default.parentData}, ${h.default.parentDataProperty}, ${h.default.rootData}=${h.default.data}${Z.dynamicRef?(0,c._)`, ${h.default.dynamicAnchors}={}`:c.nil}}={}`}function p(Z,q){Z.if(h.default.valCxt,()=>{Z.var(h.default.instancePath,(0,c._)`${h.default.valCxt}.${h.default.instancePath}`),Z.var(h.default.parentData,(0,c._)`${h.default.valCxt}.${h.default.parentData}`),Z.var(h.default.parentDataProperty,(0,c._)`${h.default.valCxt}.${h.default.parentDataProperty}`),Z.var(h.default.rootData,(0,c._)`${h.default.valCxt}.${h.default.rootData}`),q.dynamicRef&&Z.var(h.default.dynamicAnchors,(0,c._)`${h.default.valCxt}.${h.default.dynamicAnchors}`)},()=>{Z.var(h.default.instancePath,(0,c._)`""`),Z.var(h.default.parentData,(0,c._)`undefined`),Z.var(h.default.parentDataProperty,(0,c._)`undefined`),Z.var(h.default.rootData,h.default.data),q.dynamicRef&&Z.var(h.default.dynamicAnchors,(0,c._)`{}`)})}function v(Z){const{schema:q,opts:fe,gen:pe}=Z;x(Z,()=>{fe.$comment&&q.$comment&&Ee(Z),_e(Z),pe.let(h.default.vErrors,null),pe.let(h.default.errors,0),fe.unevaluated&&j(Z),le(Z),Ue(Z)})}function j(Z){const{gen:q,validateName:fe}=Z;Z.evaluated=q.const("evaluated",(0,c._)`${fe}.evaluated`),q.if((0,c._)`${Z.evaluated}.dynamicProps`,()=>q.assign((0,c._)`${Z.evaluated}.props`,(0,c._)`undefined`)),q.if((0,c._)`${Z.evaluated}.dynamicItems`,()=>q.assign((0,c._)`${Z.evaluated}.items`,(0,c._)`undefined`))}function _(Z,q){const fe=typeof Z=="object"&&Z[q.schemaId];return fe&&(q.code.source||q.code.process)?(0,c._)`/*# sourceURL=${fe} */`:c.nil}function I(Z,q){if(O(Z)&&(B(Z),H(Z))){A(Z,q);return}(0,a.boolOrEmptySchema)(Z,q)}function H({schema:Z,self:q}){if(typeof Z=="boolean")return!Z;for(const fe in Z)if(q.RULES.all[fe])return!0;return!1}function O(Z){return typeof Z.schema!="boolean"}function A(Z,q){const{schema:fe,gen:pe,opts:J}=Z;J.$comment&&fe.$comment&&Ee(Z),Te(Z),Le(Z);const He=pe.const("_errs",h.default.errors);le(Z,He),pe.var(q,(0,c._)`${He} === ${h.default.errors}`)}function B(Z){(0,E.checkUnknownRules)(Z),be(Z)}function le(Z,q){if(Z.opts.jtd)return Qt(Z,[],!1,q);const fe=(0,l.getSchemaTypes)(Z.schema),pe=(0,l.coerceAndCheckDataType)(Z,fe);Qt(Z,fe,!pe,q)}function be(Z){const{schema:q,errSchemaPath:fe,opts:pe,self:J}=Z;q.$ref&&pe.ignoreKeywordsWithRef&&(0,E.schemaHasRulesButRef)(q,J.RULES)&&J.logger.warn(`$ref: keywords ignored in schema at path "${fe}"`)}function _e(Z){const{schema:q,opts:fe}=Z;q.default!==void 0&&fe.useDefaults&&fe.strictSchema&&(0,E.checkStrictMode)(Z,"default is ignored in the schema root")}function Te(Z){const q=Z.schema[Z.opts.schemaId];q&&(Z.baseId=(0,y.resolveUrl)(Z.opts.uriResolver,Z.baseId,q))}function Le(Z){if(Z.schema.$async&&!Z.schemaEnv.$async)throw new Error("async schema in sync schema")}function Ee({gen:Z,schemaEnv:q,schema:fe,errSchemaPath:pe,opts:J}){const He=fe.$comment;if(J.$comment===!0)Z.code((0,c._)`${h.default.self}.logger.log(${He})`);else if(typeof J.$comment=="function"){const At=(0,c.str)`${pe}/$comment`,it=Z.scopeValue("root",{ref:q.root});Z.code((0,c._)`${h.default.self}.opts.$comment(${He}, ${At}, ${it}.schema)`)}}function Ue(Z){const{gen:q,schemaEnv:fe,validateName:pe,ValidationError:J,opts:He}=Z;fe.$async?q.if((0,c._)`${h.default.errors} === 0`,()=>q.return(h.default.data),()=>q.throw((0,c._)`new ${J}(${h.default.vErrors})`)):(q.assign((0,c._)`${pe}.errors`,h.default.vErrors),He.unevaluated&&Et(Z),q.return((0,c._)`${h.default.errors} === 0`))}function Et({gen:Z,evaluated:q,props:fe,items:pe}){fe instanceof c.Name&&Z.assign((0,c._)`${q}.props`,fe),pe instanceof c.Name&&Z.assign((0,c._)`${q}.items`,pe)}function Qt(Z,q,fe,pe){const{gen:J,schema:He,data:At,allErrors:it,opts:St,self:pt}=Z,{RULES:$t}=pt;if(He.$ref&&(St.ignoreKeywordsWithRef||!(0,E.schemaHasRulesButRef)(He,$t))){J.block(()=>ze(Z,"$ref",$t.all.$ref.definition));return}St.jtd||lt(Z,q),J.block(()=>{for(const xt of $t.rules)on(xt);on($t.post)});function on(xt){(0,b.shouldUseGroup)(He,xt)&&(xt.type?(J.if((0,g.checkDataType)(xt.type,At,St.strictNumbers)),Ht(Z,xt),q.length===1&&q[0]===xt.type&&fe&&(J.else(),(0,g.reportTypeError)(Z)),J.endIf()):Ht(Z,xt),it||J.if((0,c._)`${h.default.errors} === ${pe||0}`))}}function Ht(Z,q){const{gen:fe,schema:pe,opts:{useDefaults:J}}=Z;J&&(0,S.assignDefaults)(Z,q.type),fe.block(()=>{for(const He of q.rules)(0,b.shouldUseRule)(pe,He)&&ze(Z,He.keyword,He.definition,q.type)})}function lt(Z,q){Z.schemaEnv.meta||!Z.opts.strictTypes||(Ae(Z,q),Z.opts.allowUnionTypes||Y(Z,q),ve(Z,Z.dataTypes))}function Ae(Z,q){if(q.length){if(!Z.dataTypes.length){Z.dataTypes=q;return}q.forEach(fe=>{w(Z.dataTypes,fe)||ae(Z,`type "${fe}" not allowed by context "${Z.dataTypes.join(",")}"`)}),D(Z,q)}}function Y(Z,q){q.length>1&&!(q.length===2&&q.includes("null"))&&ae(Z,"use allowUnionTypes to allow union type keyword")}function ve(Z,q){const fe=Z.self.RULES.all;for(const pe in fe){const J=fe[pe];if(typeof J=="object"&&(0,b.shouldUseRule)(Z.schema,J)){const{type:He}=J.definition;He.length&&!He.some(At=>ee(q,At))&&ae(Z,`missing type "${He.join(",")}" for keyword "${pe}"`)}}}function ee(Z,q){return Z.includes(q)||q==="number"&&Z.includes("integer")}function w(Z,q){return Z.includes(q)||q==="integer"&&Z.includes("number")}function D(Z,q){const fe=[];for(const pe of Z.dataTypes)w(q,pe)?fe.push(pe):q.includes("integer")&&pe==="number"&&fe.push("integer");Z.dataTypes=fe}function ae(Z,q){const fe=Z.schemaEnv.baseId+Z.errSchemaPath;q+=` at "${fe}" (strictTypes)`,(0,E.checkStrictMode)(Z,q,Z.opts.strictTypes)}class Fe{constructor(q,fe,pe){if((0,d.validateKeywordUsage)(q,fe,pe),this.gen=q.gen,this.allErrors=q.allErrors,this.keyword=pe,this.data=q.data,this.schema=q.schema[pe],this.$data=fe.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,E.schemaRefOrVal)(q,this.schema,pe,this.$data),this.schemaType=fe.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=fe,this.$data)this.schemaCode=q.gen.const("vSchema",mt(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,d.validSchemaType)(this.schema,fe.schemaType,fe.allowUndefined))throw new Error(`${pe} value must be ${JSON.stringify(fe.schemaType)}`);("code"in fe?fe.trackErrors:fe.errors!==!1)&&(this.errsCount=q.gen.const("_errs",h.default.errors))}result(q,fe,pe){this.failResult((0,c.not)(q),fe,pe)}failResult(q,fe,pe){this.gen.if(q),pe?pe():this.error(),fe?(this.gen.else(),fe(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(q,fe){this.failResult((0,c.not)(q),void 0,fe)}fail(q){if(q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(q),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(q){if(!this.$data)return this.fail(q);const{schemaCode:fe}=this;this.fail((0,c._)`${fe} !== undefined && (${(0,c.or)(this.invalid$data(),q)})`)}error(q,fe,pe){if(fe){this.setParams(fe),this._error(q,pe),this.setParams({});return}this._error(q,pe)}_error(q,fe){(q?z.reportExtraError:z.reportError)(this,this.def.error,fe)}$dataError(){(0,z.reportError)(this,this.def.$dataError||z.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,z.resetErrorsCount)(this.gen,this.errsCount)}ok(q){this.allErrors||this.gen.if(q)}setParams(q,fe){fe?Object.assign(this.params,q):this.params=q}block$data(q,fe,pe=c.nil){this.gen.block(()=>{this.check$data(q,pe),fe()})}check$data(q=c.nil,fe=c.nil){if(!this.$data)return;const{gen:pe,schemaCode:J,schemaType:He,def:At}=this;pe.if((0,c.or)((0,c._)`${J} === undefined`,fe)),q!==c.nil&&pe.assign(q,!0),(He.length||At.validateSchema)&&(pe.elseIf(this.invalid$data()),this.$dataError(),q!==c.nil&&pe.assign(q,!1)),pe.else()}invalid$data(){const{gen:q,schemaCode:fe,schemaType:pe,def:J,it:He}=this;return(0,c.or)(At(),it());function At(){if(pe.length){if(!(fe instanceof c.Name))throw new Error("ajv implementation error");const St=Array.isArray(pe)?pe:[pe];return(0,c._)`${(0,g.checkDataTypes)(St,fe,He.opts.strictNumbers,g.DataType.Wrong)}`}return c.nil}function it(){if(J.validateSchema){const St=q.scopeValue("validate$data",{ref:J.validateSchema});return(0,c._)`!${St}(${fe})`}return c.nil}}subschema(q,fe){const pe=(0,k.getSubschema)(this.it,q);(0,k.extendSubschemaData)(pe,this.it,q),(0,k.extendSubschemaMode)(pe,q);const J={...this.it,...pe,items:void 0,props:void 0};return I(J,fe),J}mergeEvaluated(q,fe){const{it:pe,gen:J}=this;pe.opts.unevaluated&&(pe.props!==!0&&q.props!==void 0&&(pe.props=E.mergeEvaluated.props(J,q.props,pe.props,fe)),pe.items!==!0&&q.items!==void 0&&(pe.items=E.mergeEvaluated.items(J,q.items,pe.items,fe)))}mergeValidEvaluated(q,fe){const{it:pe,gen:J}=this;if(pe.opts.unevaluated&&(pe.props!==!0||pe.items!==!0))return J.if(fe,()=>this.mergeEvaluated(q,c.Name)),!0}}r.KeywordCxt=Fe;function ze(Z,q,fe,pe){const J=new Fe(Z,fe,q);"code"in fe?fe.code(J,pe):J.$data&&fe.validate?(0,d.funcKeywordCode)(J,fe):"macro"in fe?(0,d.macroKeywordCode)(J,fe):(fe.compile||fe.validate)&&(0,d.funcKeywordCode)(J,fe)}const Ze=/^\/(?:[^~]|~0|~1)*$/,Je=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function mt(Z,{dataLevel:q,dataNames:fe,dataPathArr:pe}){let J,He;if(Z==="")return h.default.rootData;if(Z[0]==="/"){if(!Ze.test(Z))throw new Error(`Invalid JSON-pointer: ${Z}`);J=Z,He=h.default.rootData}else{const pt=Je.exec(Z);if(!pt)throw new Error(`Invalid JSON-pointer: ${Z}`);const $t=+pt[1];if(J=pt[2],J==="#"){if($t>=q)throw new Error(St("property/index",$t));return pe[q-$t]}if($t>q)throw new Error(St("data",$t));if(He=fe[q-$t],!J)return He}let At=He;const it=J.split("/");for(const pt of it)pt&&(He=(0,c._)`${He}${(0,c.getProperty)((0,E.unescapeJsonPointer)(pt))}`,At=(0,c._)`${At} && ${He}`);return At;function St(pt,$t){return`Cannot access ${pt} ${$t} levels up, current level is ${q}`}}r.getData=mt},47366:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.validateKeywordUsage=r.validSchemaType=r.funcKeywordCode=r.macroKeywordCode=void 0;const a=f(15923),l=f(92115),b=f(7861),g=f(76028);function S(M,x){const{gen:R,keyword:p,schema:v,parentSchema:j,it:_}=M,I=x.macro.call(_.self,v,j,_),H=y(R,p,I);_.opts.validateSchema!==!1&&_.self.validateSchema(I,!0);const O=R.name("valid");M.subschema({schema:I,schemaPath:a.nil,errSchemaPath:`${_.errSchemaPath}/${p}`,topSchemaRef:H,compositeRule:!0},O),M.pass(O,()=>M.error(!0))}r.macroKeywordCode=S;function d(M,x){var R;const{gen:p,keyword:v,schema:j,parentSchema:_,$data:I,it:H}=M;h(H,x);const O=!I&&x.compile?x.compile.call(H.self,j,_,H):x.validate,A=y(p,v,O),B=p.let("valid");M.block$data(B,le),M.ok((R=x.valid)!==null&&R!==void 0?R:B);function le(){if(x.errors===!1)Te(),x.modifying&&k(M),Le(()=>M.error());else{const Ee=x.async?be():_e();x.modifying&&k(M),Le(()=>c(M,Ee))}}function be(){const Ee=p.let("ruleErrs",null);return p.try(()=>Te((0,a._)`await `),Ue=>p.assign(B,!1).if((0,a._)`${Ue} instanceof ${H.ValidationError}`,()=>p.assign(Ee,(0,a._)`${Ue}.errors`),()=>p.throw(Ue))),Ee}function _e(){const Ee=(0,a._)`${A}.errors`;return p.assign(Ee,null),Te(a.nil),Ee}function Te(Ee=x.async?(0,a._)`await `:a.nil){const Ue=H.opts.passContext?l.default.this:l.default.self,Et=!("compile"in x&&!I||x.schema===!1);p.assign(B,(0,a._)`${Ee}${(0,b.callValidateCode)(M,A,Ue,Et)}`,x.modifying)}function Le(Ee){var Ue;p.if((0,a.not)((Ue=x.valid)!==null&&Ue!==void 0?Ue:B),Ee)}}r.funcKeywordCode=d;function k(M){const{gen:x,data:R,it:p}=M;x.if(p.parentData,()=>x.assign(R,(0,a._)`${p.parentData}[${p.parentDataProperty}]`))}function c(M,x){const{gen:R}=M;R.if((0,a._)`Array.isArray(${x})`,()=>{R.assign(l.default.vErrors,(0,a._)`${l.default.vErrors} === null ? ${x} : ${l.default.vErrors}.concat(${x})`).assign(l.default.errors,(0,a._)`${l.default.vErrors}.length`),(0,g.extendErrors)(M)},()=>M.error())}function h({schemaEnv:M},x){if(x.async&&!M.$async)throw new Error("async keyword in sync schema")}function y(M,x,R){if(R===void 0)throw new Error(`keyword "${x}" failed to compile`);return M.scopeValue("keyword",typeof R=="function"?{ref:R}:{ref:R,code:(0,a.stringify)(R)})}function E(M,x,R=!1){return!x.length||x.some(p=>p==="array"?Array.isArray(M):p==="object"?M&&typeof M=="object"&&!Array.isArray(M):typeof M==p||R&&typeof M=="undefined")}r.validSchemaType=E;function z({schema:M,opts:x,self:R,errSchemaPath:p},v,j){if(Array.isArray(v.keyword)?!v.keyword.includes(j):v.keyword!==j)throw new Error("ajv implementation error");const _=v.dependencies;if(_!=null&&_.some(I=>!Object.prototype.hasOwnProperty.call(M,I)))throw new Error(`parent schema must have dependencies of ${j}: ${_.join(",")}`);if(v.validateSchema&&!v.validateSchema(M[j])){const H=`keyword "${j}" value is invalid at path "${p}": `+R.errorsText(v.validateSchema.errors);if(x.validateSchema==="log")R.logger.error(H);else throw new Error(H)}}r.validateKeywordUsage=z},62795:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.extendSubschemaMode=r.extendSubschemaData=r.getSubschema=void 0;const a=f(15923),l=f(91571);function b(d,{keyword:k,schemaProp:c,schema:h,schemaPath:y,errSchemaPath:E,topSchemaRef:z}){if(k!==void 0&&h!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(k!==void 0){const M=d.schema[k];return c===void 0?{schema:M,schemaPath:(0,a._)`${d.schemaPath}${(0,a.getProperty)(k)}`,errSchemaPath:`${d.errSchemaPath}/${k}`}:{schema:M[c],schemaPath:(0,a._)`${d.schemaPath}${(0,a.getProperty)(k)}${(0,a.getProperty)(c)}`,errSchemaPath:`${d.errSchemaPath}/${k}/${(0,l.escapeFragment)(c)}`}}if(h!==void 0){if(y===void 0||E===void 0||z===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:h,schemaPath:y,topSchemaRef:z,errSchemaPath:E}}throw new Error('either "keyword" or "schema" must be passed')}r.getSubschema=b;function g(d,k,{dataProp:c,dataPropType:h,data:y,dataTypes:E,propertyName:z}){if(y!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:M}=k;if(c!==void 0){const{errorPath:R,dataPathArr:p,opts:v}=k,j=M.let("data",(0,a._)`${k.data}${(0,a.getProperty)(c)}`,!0);x(j),d.errorPath=(0,a.str)`${R}${(0,l.getErrorPath)(c,h,v.jsPropertySyntax)}`,d.parentDataProperty=(0,a._)`${c}`,d.dataPathArr=[...p,d.parentDataProperty]}if(y!==void 0){const R=y instanceof a.Name?y:M.let("data",y,!0);x(R),z!==void 0&&(d.propertyName=z)}E&&(d.dataTypes=E);function x(R){d.data=R,d.dataLevel=k.dataLevel+1,d.dataTypes=[],k.definedProperties=new Set,d.parentData=k.data,d.dataNames=[...k.dataNames,R]}}r.extendSubschemaData=g;function S(d,{jtdDiscriminator:k,jtdMetadata:c,compositeRule:h,createErrors:y,allErrors:E}){h!==void 0&&(d.compositeRule=h),y!==void 0&&(d.createErrors=y),E!==void 0&&(d.allErrors=E),d.jtdDiscriminator=k,d.jtdMetadata=c}r.extendSubschemaMode=S},49241:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var a=f(4998);Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return a.KeywordCxt}});var l=f(15923);Object.defineProperty(r,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});const b=f(14282),g=f(24186),S=f(22825),d=f(76968),k=f(15923),c=f(48147),h=f(31411),y=f(91571),E=f(338),z=f(32726),M=(Ae,Y)=>new RegExp(Ae,Y);M.code="new RegExp";const x=["removeAdditional","useDefaults","coerceTypes"],R=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),p={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}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"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.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},j=200;function _(Ae){var Y,ve,ee,w,D,ae,Fe,ze,Ze,Je,mt,Z,q,fe,pe,J,He,At,it,St,pt,$t,on,xt,vn;const sn=Ae.strict,Ut=(Y=Ae.code)===null||Y===void 0?void 0:Y.optimize,ln=Ut===!0||Ut===void 0?1:Ut||0,wn=(ee=(ve=Ae.code)===null||ve===void 0?void 0:ve.regExp)!==null&&ee!==void 0?ee:M,Cn=(w=Ae.uriResolver)!==null&&w!==void 0?w:z.default;return{strictSchema:(ae=(D=Ae.strictSchema)!==null&&D!==void 0?D:sn)!==null&&ae!==void 0?ae:!0,strictNumbers:(ze=(Fe=Ae.strictNumbers)!==null&&Fe!==void 0?Fe:sn)!==null&&ze!==void 0?ze:!0,strictTypes:(Je=(Ze=Ae.strictTypes)!==null&&Ze!==void 0?Ze:sn)!==null&&Je!==void 0?Je:"log",strictTuples:(Z=(mt=Ae.strictTuples)!==null&&mt!==void 0?mt:sn)!==null&&Z!==void 0?Z:"log",strictRequired:(fe=(q=Ae.strictRequired)!==null&&q!==void 0?q:sn)!==null&&fe!==void 0?fe:!1,code:Ae.code?{...Ae.code,optimize:ln,regExp:wn}:{optimize:ln,regExp:wn},loopRequired:(pe=Ae.loopRequired)!==null&&pe!==void 0?pe:j,loopEnum:(J=Ae.loopEnum)!==null&&J!==void 0?J:j,meta:(He=Ae.meta)!==null&&He!==void 0?He:!0,messages:(At=Ae.messages)!==null&&At!==void 0?At:!0,inlineRefs:(it=Ae.inlineRefs)!==null&&it!==void 0?it:!0,schemaId:(St=Ae.schemaId)!==null&&St!==void 0?St:"$id",addUsedSchema:(pt=Ae.addUsedSchema)!==null&&pt!==void 0?pt:!0,validateSchema:($t=Ae.validateSchema)!==null&&$t!==void 0?$t:!0,validateFormats:(on=Ae.validateFormats)!==null&&on!==void 0?on:!0,unicodeRegExp:(xt=Ae.unicodeRegExp)!==null&&xt!==void 0?xt:!0,int32range:(vn=Ae.int32range)!==null&&vn!==void 0?vn:!0,uriResolver:Cn}}class I{constructor(Y={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,Y=this.opts={...Y,..._(Y)};const{es5:ve,lines:ee}=this.opts.code;this.scope=new k.ValueScope({scope:{},prefixes:R,es5:ve,lines:ee}),this.logger=Te(Y.logger);const w=Y.validateFormats;Y.validateFormats=!1,this.RULES=(0,S.getRules)(),H.call(this,p,Y,"NOT SUPPORTED"),H.call(this,v,Y,"DEPRECATED","warn"),this._metaOpts=be.call(this),Y.formats&&B.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),Y.keywords&&le.call(this,Y.keywords),typeof Y.meta=="object"&&this.addMetaSchema(Y.meta),A.call(this),Y.validateFormats=w}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:Y,meta:ve,schemaId:ee}=this.opts;let w=E;ee==="id"&&(w={...E},w.id=w.$id,delete w.$id),ve&&Y&&this.addMetaSchema(w,w[ee],!1)}defaultMeta(){const{meta:Y,schemaId:ve}=this.opts;return this.opts.defaultMeta=typeof Y=="object"?Y[ve]||Y:void 0}validate(Y,ve){let ee;if(typeof Y=="string"){if(ee=this.getSchema(Y),!ee)throw new Error(`no schema with key or ref "${Y}"`)}else ee=this.compile(Y);const w=ee(ve);return"$async"in ee||(this.errors=ee.errors),w}compile(Y,ve){const ee=this._addSchema(Y,ve);return ee.validate||this._compileSchemaEnv(ee)}compileAsync(Y,ve){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:ee}=this.opts;return w.call(this,Y,ve);async function w(Je,mt){await D.call(this,Je.$schema);const Z=this._addSchema(Je,mt);return Z.validate||ae.call(this,Z)}async function D(Je){Je&&!this.getSchema(Je)&&await w.call(this,{$ref:Je},!0)}async function ae(Je){try{return this._compileSchemaEnv(Je)}catch(mt){if(!(mt instanceof g.default))throw mt;return Fe.call(this,mt),await ze.call(this,mt.missingSchema),ae.call(this,Je)}}function Fe({missingSchema:Je,missingRef:mt}){if(this.refs[Je])throw new Error(`AnySchema ${Je} is loaded but ${mt} cannot be resolved`)}async function ze(Je){const mt=await Ze.call(this,Je);this.refs[Je]||await D.call(this,mt.$schema),this.refs[Je]||this.addSchema(mt,Je,ve)}async function Ze(Je){const mt=this._loading[Je];if(mt)return mt;try{return await(this._loading[Je]=ee(Je))}finally{delete this._loading[Je]}}}addSchema(Y,ve,ee,w=this.opts.validateSchema){if(Array.isArray(Y)){for(const ae of Y)this.addSchema(ae,void 0,ee,w);return this}let D;if(typeof Y=="object"){const{schemaId:ae}=this.opts;if(D=Y[ae],D!==void 0&&typeof D!="string")throw new Error(`schema ${ae} must be string`)}return ve=(0,c.normalizeId)(ve||D),this._checkUnique(ve),this.schemas[ve]=this._addSchema(Y,ee,ve,w,!0),this}addMetaSchema(Y,ve,ee=this.opts.validateSchema){return this.addSchema(Y,ve,!0,ee),this}validateSchema(Y,ve){if(typeof Y=="boolean")return!0;let ee;if(ee=Y.$schema,ee!==void 0&&typeof ee!="string")throw new Error("$schema must be a string");if(ee=ee||this.opts.defaultMeta||this.defaultMeta(),!ee)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const w=this.validate(ee,Y);if(!w&&ve){const D="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(D);else throw new Error(D)}return w}getSchema(Y){let ve;for(;typeof(ve=O.call(this,Y))=="string";)Y=ve;if(ve===void 0){const{schemaId:ee}=this.opts,w=new d.SchemaEnv({schema:{},schemaId:ee});if(ve=d.resolveSchema.call(this,w,Y),!ve)return;this.refs[Y]=ve}return ve.validate||this._compileSchemaEnv(ve)}removeSchema(Y){if(Y instanceof RegExp)return this._removeAllSchemas(this.schemas,Y),this._removeAllSchemas(this.refs,Y),this;switch(typeof Y){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const ve=O.call(this,Y);return typeof ve=="object"&&this._cache.delete(ve.schema),delete this.schemas[Y],delete this.refs[Y],this}case"object":{const ve=Y;this._cache.delete(ve);let ee=Y[this.opts.schemaId];return ee&&(ee=(0,c.normalizeId)(ee),delete this.schemas[ee],delete this.refs[ee]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(Y){for(const ve of Y)this.addKeyword(ve);return this}addKeyword(Y,ve){let ee;if(typeof Y=="string")ee=Y,typeof ve=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),ve.keyword=ee);else if(typeof Y=="object"&&ve===void 0){if(ve=Y,ee=ve.keyword,Array.isArray(ee)&&!ee.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Ee.call(this,ee,ve),!ve)return(0,y.eachItem)(ee,D=>Ue.call(this,D)),this;Qt.call(this,ve);const w={...ve,type:(0,h.getJSONTypes)(ve.type),schemaType:(0,h.getJSONTypes)(ve.schemaType)};return(0,y.eachItem)(ee,w.type.length===0?D=>Ue.call(this,D,w):D=>w.type.forEach(ae=>Ue.call(this,D,w,ae))),this}getKeyword(Y){const ve=this.RULES.all[Y];return typeof ve=="object"?ve.definition:!!ve}removeKeyword(Y){const{RULES:ve}=this;delete ve.keywords[Y],delete ve.all[Y];for(const ee of ve.rules){const w=ee.rules.findIndex(D=>D.keyword===Y);w>=0&&ee.rules.splice(w,1)}return this}addFormat(Y,ve){return typeof ve=="string"&&(ve=new RegExp(ve)),this.formats[Y]=ve,this}errorsText(Y=this.errors,{separator:ve=", ",dataVar:ee="data"}={}){return!Y||Y.length===0?"No errors":Y.map(w=>`${ee}${w.instancePath} ${w.message}`).reduce((w,D)=>w+ve+D)}$dataMetaSchema(Y,ve){const ee=this.RULES.all;Y=JSON.parse(JSON.stringify(Y));for(const w of ve){const D=w.split("/").slice(1);let ae=Y;for(const Fe of D)ae=ae[Fe];for(const Fe in ee){const ze=ee[Fe];if(typeof ze!="object")continue;const{$data:Ze}=ze.definition,Je=ae[Fe];Ze&&Je&&(ae[Fe]=lt(Je))}}return Y}_removeAllSchemas(Y,ve){for(const ee in Y){const w=Y[ee];(!ve||ve.test(ee))&&(typeof w=="string"?delete Y[ee]:w&&!w.meta&&(this._cache.delete(w.schema),delete Y[ee]))}}_addSchema(Y,ve,ee,w=this.opts.validateSchema,D=this.opts.addUsedSchema){let ae;const{schemaId:Fe}=this.opts;if(typeof Y=="object")ae=Y[Fe];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof Y!="boolean")throw new Error("schema must be object or boolean")}let ze=this._cache.get(Y);if(ze!==void 0)return ze;ee=(0,c.normalizeId)(ae||ee);const Ze=c.getSchemaRefs.call(this,Y,ee);return ze=new d.SchemaEnv({schema:Y,schemaId:Fe,meta:ve,baseId:ee,localRefs:Ze}),this._cache.set(ze.schema,ze),D&&!ee.startsWith("#")&&(ee&&this._checkUnique(ee),this.refs[ee]=ze),w&&this.validateSchema(Y,!0),ze}_checkUnique(Y){if(this.schemas[Y]||this.refs[Y])throw new Error(`schema with key or id "${Y}" already exists`)}_compileSchemaEnv(Y){if(Y.meta?this._compileMetaSchema(Y):d.compileSchema.call(this,Y),!Y.validate)throw new Error("ajv implementation error");return Y.validate}_compileMetaSchema(Y){const ve=this.opts;this.opts=this._metaOpts;try{d.compileSchema.call(this,Y)}finally{this.opts=ve}}}r.default=I,I.ValidationError=b.default,I.MissingRefError=g.default;function H(Ae,Y,ve,ee="error"){for(const w in Ae){const D=w;D in Y&&this.logger[ee](`${ve}: option ${w}. ${Ae[D]}`)}}function O(Ae){return Ae=(0,c.normalizeId)(Ae),this.schemas[Ae]||this.refs[Ae]}function A(){const Ae=this.opts.schemas;if(Ae)if(Array.isArray(Ae))this.addSchema(Ae);else for(const Y in Ae)this.addSchema(Ae[Y],Y)}function B(){for(const Ae in this.opts.formats){const Y=this.opts.formats[Ae];Y&&this.addFormat(Ae,Y)}}function le(Ae){if(Array.isArray(Ae)){this.addVocabulary(Ae);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const Y in Ae){const ve=Ae[Y];ve.keyword||(ve.keyword=Y),this.addKeyword(ve)}}function be(){const Ae={...this.opts};for(const Y of x)delete Ae[Y];return Ae}const _e={log(){},warn(){},error(){}};function Te(Ae){if(Ae===!1)return _e;if(Ae===void 0)return console;if(Ae.log&&Ae.warn&&Ae.error)return Ae;throw new Error("logger must implement log, warn and error methods")}const Le=/^[a-z_$][a-z0-9_$:-]*$/i;function Ee(Ae,Y){const{RULES:ve}=this;if((0,y.eachItem)(Ae,ee=>{if(ve.keywords[ee])throw new Error(`Keyword ${ee} is already defined`);if(!Le.test(ee))throw new Error(`Keyword ${ee} has invalid name`)}),!!Y&&Y.$data&&!("code"in Y||"validate"in Y))throw new Error('$data keyword must have "code" or "validate" function')}function Ue(Ae,Y,ve){var ee;const w=Y==null?void 0:Y.post;if(ve&&w)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:D}=this;let ae=w?D.post:D.rules.find(({type:ze})=>ze===ve);if(ae||(ae={type:ve,rules:[]},D.rules.push(ae)),D.keywords[Ae]=!0,!Y)return;const Fe={keyword:Ae,definition:{...Y,type:(0,h.getJSONTypes)(Y.type),schemaType:(0,h.getJSONTypes)(Y.schemaType)}};Y.before?Et.call(this,ae,Fe,Y.before):ae.rules.push(Fe),D.all[Ae]=Fe,(ee=Y.implements)===null||ee===void 0||ee.forEach(ze=>this.addKeyword(ze))}function Et(Ae,Y,ve){const ee=Ae.rules.findIndex(w=>w.keyword===ve);ee>=0?Ae.rules.splice(ee,0,Y):(Ae.rules.push(Y),this.logger.warn(`rule ${ve} is not defined`))}function Qt(Ae){let{metaSchema:Y}=Ae;Y!==void 0&&(Ae.$data&&this.opts.$data&&(Y=lt(Y)),Ae.validateSchema=this.compile(Y,!0))}const Ht={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function lt(Ae){return{anyOf:[Ae,Ht]}}},10487:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(69378);a.code='require("ajv/dist/runtime/equal").default',r.default=a},77079:function(ye,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function f(a){const l=a.length;let b=0,g=0,S;for(;g<l;)b++,S=a.charCodeAt(g++),S>=55296&&S<=56319&&g<l&&(S=a.charCodeAt(g),(S&64512)===56320&&g++);return b}r.default=f,f.code='require("ajv/dist/runtime/ucs2length").default'},32726:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(12854);a.code='require("ajv/dist/runtime/uri").default',r.default=a},14282:function(ye,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});class f extends Error{constructor(l){super("validation failed"),this.errors=l,this.ajv=this.validation=!0}}r.default=f},78789:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.validateAdditionalItems=void 0;const a=f(15923),l=f(91571),g={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:d}})=>(0,a.str)`must NOT have more than ${d} items`,params:({params:{len:d}})=>(0,a._)`{limit: ${d}}`},code(d){const{parentSchema:k,it:c}=d,{items:h}=k;if(!Array.isArray(h)){(0,l.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}S(d,h)}};function S(d,k){const{gen:c,schema:h,data:y,keyword:E,it:z}=d;z.items=!0;const M=c.const("len",(0,a._)`${y}.length`);if(h===!1)d.setParams({len:k.length}),d.pass((0,a._)`${M} <= ${k.length}`);else if(typeof h=="object"&&!(0,l.alwaysValidSchema)(z,h)){const R=c.var("valid",(0,a._)`${M} <= ${k.length}`);c.if((0,a.not)(R),()=>x(R)),d.ok(R)}function x(R){c.forRange("i",k.length,M,p=>{d.subschema({keyword:E,dataProp:p,dataPropType:l.Type.Num},R),z.allErrors||c.if((0,a.not)(R),()=>c.break())})}}r.validateAdditionalItems=S,r.default=g},12964:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(7861),l=f(15923),b=f(92115),g=f(91571),d={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:k})=>(0,l._)`{additionalProperty: ${k.additionalProperty}}`},code(k){const{gen:c,schema:h,parentSchema:y,data:E,errsCount:z,it:M}=k;if(!z)throw new Error("ajv implementation error");const{allErrors:x,opts:R}=M;if(M.props=!0,R.removeAdditional!=="all"&&(0,g.alwaysValidSchema)(M,h))return;const p=(0,a.allSchemaProperties)(y.properties),v=(0,a.allSchemaProperties)(y.patternProperties);j(),k.ok((0,l._)`${z} === ${b.default.errors}`);function j(){c.forIn("key",E,A=>{!p.length&&!v.length?H(A):c.if(_(A),()=>H(A))})}function _(A){let B;if(p.length>8){const le=(0,g.schemaRefOrVal)(M,y.properties,"properties");B=(0,a.isOwnProperty)(c,le,A)}else p.length?B=(0,l.or)(...p.map(le=>(0,l._)`${A} === ${le}`)):B=l.nil;return v.length&&(B=(0,l.or)(B,...v.map(le=>(0,l._)`${(0,a.usePattern)(k,le)}.test(${A})`))),(0,l.not)(B)}function I(A){c.code((0,l._)`delete ${E}[${A}]`)}function H(A){if(R.removeAdditional==="all"||R.removeAdditional&&h===!1){I(A);return}if(h===!1){k.setParams({additionalProperty:A}),k.error(),x||c.break();return}if(typeof h=="object"&&!(0,g.alwaysValidSchema)(M,h)){const B=c.name("valid");R.removeAdditional==="failing"?(O(A,B,!1),c.if((0,l.not)(B),()=>{k.reset(),I(A)})):(O(A,B),x||c.if((0,l.not)(B),()=>c.break()))}}function O(A,B,le){const be={keyword:"additionalProperties",dataProp:A,dataPropType:g.Type.Str};le===!1&&Object.assign(be,{compositeRule:!0,createErrors:!1,allErrors:!1}),k.subschema(be,B)}}};r.default=d},9076:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(91571),l={keyword:"allOf",schemaType:"array",code(b){const{gen:g,schema:S,it:d}=b;if(!Array.isArray(S))throw new Error("ajv implementation error");const k=g.name("valid");S.forEach((c,h)=>{if((0,a.alwaysValidSchema)(d,c))return;const y=b.subschema({keyword:"allOf",schemaProp:h},k);b.ok(k),b.mergeEvaluated(y)})}};r.default=l},17361:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const l={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:f(7861).validateUnion,error:{message:"must match a schema in anyOf"}};r.default=l},25483:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=f(91571),g={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:S,max:d}})=>d===void 0?(0,a.str)`must contain at least ${S} valid item(s)`:(0,a.str)`must contain at least ${S} and no more than ${d} valid item(s)`,params:({params:{min:S,max:d}})=>d===void 0?(0,a._)`{minContains: ${S}}`:(0,a._)`{minContains: ${S}, maxContains: ${d}}`},code(S){const{gen:d,schema:k,parentSchema:c,data:h,it:y}=S;let E,z;const{minContains:M,maxContains:x}=c;y.opts.next?(E=M===void 0?1:M,z=x):E=1;const R=d.const("len",(0,a._)`${h}.length`);if(S.setParams({min:E,max:z}),z===void 0&&E===0){(0,l.checkStrictMode)(y,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(z!==void 0&&E>z){(0,l.checkStrictMode)(y,'"minContains" > "maxContains" is always invalid'),S.fail();return}if((0,l.alwaysValidSchema)(y,k)){let I=(0,a._)`${R} >= ${E}`;z!==void 0&&(I=(0,a._)`${I} && ${R} <= ${z}`),S.pass(I);return}y.items=!0;const p=d.name("valid");z===void 0&&E===1?j(p,()=>d.if(p,()=>d.break())):E===0?(d.let(p,!0),z!==void 0&&d.if((0,a._)`${h}.length > 0`,v)):(d.let(p,!1),v()),S.result(p,()=>S.reset());function v(){const I=d.name("_valid"),H=d.let("count",0);j(I,()=>d.if(I,()=>_(H)))}function j(I,H){d.forRange("i",0,R,O=>{S.subschema({keyword:"contains",dataProp:O,dataPropType:l.Type.Num,compositeRule:!0},I),H()})}function _(I){d.code((0,a._)`${I}++`),z===void 0?d.if((0,a._)`${I} >= ${E}`,()=>d.assign(p,!0).break()):(d.if((0,a._)`${I} > ${z}`,()=>d.assign(p,!1).break()),E===1?d.assign(p,!0):d.if((0,a._)`${I} >= ${E}`,()=>d.assign(p,!0)))}}};r.default=g},61958:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const a=f(15923),l=f(91571),b=f(7861);r.error={message:({params:{property:c,depsCount:h,deps:y}})=>{const E=h===1?"property":"properties";return(0,a.str)`must have ${E} ${y} when property ${c} is present`},params:({params:{property:c,depsCount:h,deps:y,missingProperty:E}})=>(0,a._)`{property: ${c},
|
|
6
|
-
missingProperty: ${E},
|
|
7
|
-
depsCount: ${h},
|
|
8
|
-
deps: ${y}}`};const g={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(c){const[h,y]=S(c);d(c,h),k(c,y)}};function S({schema:c}){const h={},y={};for(const E in c){if(E==="__proto__")continue;const z=Array.isArray(c[E])?h:y;z[E]=c[E]}return[h,y]}function d(c,h=c.schema){const{gen:y,data:E,it:z}=c;if(Object.keys(h).length===0)return;const M=y.let("missing");for(const x in h){const R=h[x];if(R.length===0)continue;const p=(0,b.propertyInData)(y,E,x,z.opts.ownProperties);c.setParams({property:x,depsCount:R.length,deps:R.join(", ")}),z.allErrors?y.if(p,()=>{for(const v of R)(0,b.checkReportMissingProp)(c,v)}):(y.if((0,a._)`${p} && (${(0,b.checkMissingProp)(c,R,M)})`),(0,b.reportMissingProp)(c,M),y.else())}}r.validatePropertyDeps=d;function k(c,h=c.schema){const{gen:y,data:E,keyword:z,it:M}=c,x=y.name("valid");for(const R in h)(0,l.alwaysValidSchema)(M,h[R])||(y.if((0,b.propertyInData)(y,E,R,M.opts.ownProperties),()=>{const p=c.subschema({keyword:z,schemaProp:R},x);c.mergeValidEvaluated(p,x)},()=>y.var(x,!0)),c.ok(x))}r.validateSchemaDeps=k,r.default=g},18686:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=f(91571),g={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:d})=>(0,a.str)`must match "${d.ifClause}" schema`,params:({params:d})=>(0,a._)`{failingKeyword: ${d.ifClause}}`},code(d){const{gen:k,parentSchema:c,it:h}=d;c.then===void 0&&c.else===void 0&&(0,l.checkStrictMode)(h,'"if" without "then" and "else" is ignored');const y=S(h,"then"),E=S(h,"else");if(!y&&!E)return;const z=k.let("valid",!0),M=k.name("_valid");if(x(),d.reset(),y&&E){const p=k.let("ifClause");d.setParams({ifClause:p}),k.if(M,R("then",p),R("else",p))}else y?k.if(M,R("then")):k.if((0,a.not)(M),R("else"));d.pass(z,()=>d.error(!0));function x(){const p=d.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},M);d.mergeEvaluated(p)}function R(p,v){return()=>{const j=d.subschema({keyword:p},M);k.assign(z,M),d.mergeValidEvaluated(j,z),v?k.assign(v,(0,a._)`${p}`):d.setParams({ifClause:p})}}}};function S(d,k){const c=d.schema[k];return c!==void 0&&!(0,l.alwaysValidSchema)(d,c)}r.default=g},74741:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(78789),l=f(65068),b=f(9256),g=f(14882),S=f(25483),d=f(61958),k=f(88806),c=f(12964),h=f(97558),y=f(52914),E=f(69546),z=f(17361),M=f(74872),x=f(9076),R=f(18686),p=f(15269);function v(j=!1){const _=[E.default,z.default,M.default,x.default,R.default,p.default,k.default,c.default,d.default,h.default,y.default];return j?_.push(l.default,g.default):_.push(a.default,b.default),_.push(S.default),_}r.default=v},9256:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.validateTuple=void 0;const a=f(15923),l=f(91571),b=f(7861),g={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(d){const{schema:k,it:c}=d;if(Array.isArray(k))return S(d,"additionalItems",k);c.items=!0,!(0,l.alwaysValidSchema)(c,k)&&d.ok((0,b.validateArray)(d))}};function S(d,k,c=d.schema){const{gen:h,parentSchema:y,data:E,keyword:z,it:M}=d;p(y),M.opts.unevaluated&&c.length&&M.items!==!0&&(M.items=l.mergeEvaluated.items(h,c.length,M.items));const x=h.name("valid"),R=h.const("len",(0,a._)`${E}.length`);c.forEach((v,j)=>{(0,l.alwaysValidSchema)(M,v)||(h.if((0,a._)`${R} > ${j}`,()=>d.subschema({keyword:z,schemaProp:j,dataProp:j},x)),d.ok(x))});function p(v){const{opts:j,errSchemaPath:_}=M,I=c.length,H=I===v.minItems&&(I===v.maxItems||v[k]===!1);if(j.strictTuples&&!H){const O=`"${z}" is ${I}-tuple, but minItems or maxItems/${k} are not specified or different at path "${_}"`;(0,l.checkStrictMode)(M,O,j.strictTuples)}}}r.validateTuple=S,r.default=g},14882:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=f(91571),b=f(7861),g=f(78789),d={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:k}})=>(0,a.str)`must NOT have more than ${k} items`,params:({params:{len:k}})=>(0,a._)`{limit: ${k}}`},code(k){const{schema:c,parentSchema:h,it:y}=k,{prefixItems:E}=h;y.items=!0,!(0,l.alwaysValidSchema)(y,c)&&(E?(0,g.validateAdditionalItems)(k,E):k.ok((0,b.validateArray)(k)))}};r.default=d},69546:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(91571),l={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(b){const{gen:g,schema:S,it:d}=b;if((0,a.alwaysValidSchema)(d,S)){b.fail();return}const k=g.name("valid");b.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},k),b.failResult(k,()=>b.reset(),()=>b.error())},error:{message:"must NOT be valid"}};r.default=l},74872:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=f(91571),g={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:S})=>(0,a._)`{passingSchemas: ${S.passing}}`},code(S){const{gen:d,schema:k,parentSchema:c,it:h}=S;if(!Array.isArray(k))throw new Error("ajv implementation error");if(h.opts.discriminator&&c.discriminator)return;const y=k,E=d.let("valid",!1),z=d.let("passing",null),M=d.name("_valid");S.setParams({passing:z}),d.block(x),S.result(E,()=>S.reset(),()=>S.error(!0));function x(){y.forEach((R,p)=>{let v;(0,l.alwaysValidSchema)(h,R)?d.var(M,!0):v=S.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},M),p>0&&d.if((0,a._)`${M} && ${E}`).assign(E,!1).assign(z,(0,a._)`[${z}, ${p}]`).else(),d.if(M,()=>{d.assign(E,!0),d.assign(z,p),v&&S.mergeEvaluated(v,a.Name)})})}}};r.default=g},52914:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(7861),l=f(15923),b=f(91571),g=f(91571),S={keyword:"patternProperties",type:"object",schemaType:"object",code(d){const{gen:k,schema:c,data:h,parentSchema:y,it:E}=d,{opts:z}=E,M=(0,a.allSchemaProperties)(c),x=M.filter(H=>(0,b.alwaysValidSchema)(E,c[H]));if(M.length===0||x.length===M.length&&(!E.opts.unevaluated||E.props===!0))return;const R=z.strictSchema&&!z.allowMatchingProperties&&y.properties,p=k.name("valid");E.props!==!0&&!(E.props instanceof l.Name)&&(E.props=(0,g.evaluatedPropsToName)(k,E.props));const{props:v}=E;j();function j(){for(const H of M)R&&_(H),E.allErrors?I(H):(k.var(p,!0),I(H),k.if(p))}function _(H){for(const O in R)new RegExp(H).test(O)&&(0,b.checkStrictMode)(E,`property ${O} matches pattern ${H} (use allowMatchingProperties)`)}function I(H){k.forIn("key",h,O=>{k.if((0,l._)`${(0,a.usePattern)(d,H)}.test(${O})`,()=>{const A=x.includes(H);A||d.subschema({keyword:"patternProperties",schemaProp:H,dataProp:O,dataPropType:g.Type.Str},p),E.opts.unevaluated&&v!==!0?k.assign((0,l._)`${v}[${O}]`,!0):!A&&!E.allErrors&&k.if((0,l.not)(p),()=>k.break())})})}}};r.default=S},65068:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(9256),l={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:b=>(0,a.validateTuple)(b,"items")};r.default=l},97558:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(4998),l=f(7861),b=f(91571),g=f(12964),S={keyword:"properties",type:"object",schemaType:"object",code(d){const{gen:k,schema:c,parentSchema:h,data:y,it:E}=d;E.opts.removeAdditional==="all"&&h.additionalProperties===void 0&&g.default.code(new a.KeywordCxt(E,g.default,"additionalProperties"));const z=(0,l.allSchemaProperties)(c);for(const v of z)E.definedProperties.add(v);E.opts.unevaluated&&z.length&&E.props!==!0&&(E.props=b.mergeEvaluated.props(k,(0,b.toHash)(z),E.props));const M=z.filter(v=>!(0,b.alwaysValidSchema)(E,c[v]));if(M.length===0)return;const x=k.name("valid");for(const v of M)R(v)?p(v):(k.if((0,l.propertyInData)(k,y,v,E.opts.ownProperties)),p(v),E.allErrors||k.else().var(x,!0),k.endIf()),d.it.definedProperties.add(v),d.ok(x);function R(v){return E.opts.useDefaults&&!E.compositeRule&&c[v].default!==void 0}function p(v){d.subschema({keyword:"properties",schemaProp:v,dataProp:v},x)}}};r.default=S},88806:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=f(91571),g={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:S})=>(0,a._)`{propertyName: ${S.propertyName}}`},code(S){const{gen:d,schema:k,data:c,it:h}=S;if((0,l.alwaysValidSchema)(h,k))return;const y=d.name("valid");d.forIn("key",c,E=>{S.setParams({propertyName:E}),S.subschema({keyword:"propertyNames",data:E,dataTypes:["string"],propertyName:E,compositeRule:!0},y),d.if((0,a.not)(y),()=>{S.error(!0),h.allErrors||d.break()})}),S.ok(y)}};r.default=g},15269:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(91571),l={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:b,parentSchema:g,it:S}){g.if===void 0&&(0,a.checkStrictMode)(S,`"${b}" without "if" is ignored`)}};r.default=l},7861:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.validateUnion=r.validateArray=r.usePattern=r.callValidateCode=r.schemaProperties=r.allSchemaProperties=r.noPropertyInData=r.propertyInData=r.isOwnProperty=r.hasPropFunc=r.reportMissingProp=r.checkMissingProp=r.checkReportMissingProp=void 0;const a=f(15923),l=f(91571),b=f(92115),g=f(91571);function S(_,I){const{gen:H,data:O,it:A}=_;H.if(E(H,O,I,A.opts.ownProperties),()=>{_.setParams({missingProperty:(0,a._)`${I}`},!0),_.error()})}r.checkReportMissingProp=S;function d({gen:_,data:I,it:{opts:H}},O,A){return(0,a.or)(...O.map(B=>(0,a.and)(E(_,I,B,H.ownProperties),(0,a._)`${A} = ${B}`)))}r.checkMissingProp=d;function k(_,I){_.setParams({missingProperty:I},!0),_.error()}r.reportMissingProp=k;function c(_){return _.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,a._)`Object.prototype.hasOwnProperty`})}r.hasPropFunc=c;function h(_,I,H){return(0,a._)`${c(_)}.call(${I}, ${H})`}r.isOwnProperty=h;function y(_,I,H,O){const A=(0,a._)`${I}${(0,a.getProperty)(H)} !== undefined`;return O?(0,a._)`${A} && ${h(_,I,H)}`:A}r.propertyInData=y;function E(_,I,H,O){const A=(0,a._)`${I}${(0,a.getProperty)(H)} === undefined`;return O?(0,a.or)(A,(0,a.not)(h(_,I,H))):A}r.noPropertyInData=E;function z(_){return _?Object.keys(_).filter(I=>I!=="__proto__"):[]}r.allSchemaProperties=z;function M(_,I){return z(I).filter(H=>!(0,l.alwaysValidSchema)(_,I[H]))}r.schemaProperties=M;function x({schemaCode:_,data:I,it:{gen:H,topSchemaRef:O,schemaPath:A,errorPath:B},it:le},be,_e,Te){const Le=Te?(0,a._)`${_}, ${I}, ${O}${A}`:I,Ee=[[b.default.instancePath,(0,a.strConcat)(b.default.instancePath,B)],[b.default.parentData,le.parentData],[b.default.parentDataProperty,le.parentDataProperty],[b.default.rootData,b.default.rootData]];le.opts.dynamicRef&&Ee.push([b.default.dynamicAnchors,b.default.dynamicAnchors]);const Ue=(0,a._)`${Le}, ${H.object(...Ee)}`;return _e!==a.nil?(0,a._)`${be}.call(${_e}, ${Ue})`:(0,a._)`${be}(${Ue})`}r.callValidateCode=x;const R=(0,a._)`new RegExp`;function p({gen:_,it:{opts:I}},H){const O=I.unicodeRegExp?"u":"",{regExp:A}=I.code,B=A(H,O);return _.scopeValue("pattern",{key:B.toString(),ref:B,code:(0,a._)`${A.code==="new RegExp"?R:(0,g.useFunc)(_,A)}(${H}, ${O})`})}r.usePattern=p;function v(_){const{gen:I,data:H,keyword:O,it:A}=_,B=I.name("valid");if(A.allErrors){const be=I.let("valid",!0);return le(()=>I.assign(be,!1)),be}return I.var(B,!0),le(()=>I.break()),B;function le(be){const _e=I.const("len",(0,a._)`${H}.length`);I.forRange("i",0,_e,Te=>{_.subschema({keyword:O,dataProp:Te,dataPropType:l.Type.Num},B),I.if((0,a.not)(B),be)})}}r.validateArray=v;function j(_){const{gen:I,schema:H,keyword:O,it:A}=_;if(!Array.isArray(H))throw new Error("ajv implementation error");if(H.some(_e=>(0,l.alwaysValidSchema)(A,_e))&&!A.opts.unevaluated)return;const le=I.let("valid",!1),be=I.name("_valid");I.block(()=>H.forEach((_e,Te)=>{const Le=_.subschema({keyword:O,schemaProp:Te,compositeRule:!0},be);I.assign(le,(0,a._)`${le} || ${be}`),_.mergeValidEvaluated(Le,be)||I.if((0,a.not)(le))})),_.result(le,()=>_.reset(),()=>_.error(!0))}r.validateUnion=j},95923:function(ye,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const f={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};r.default=f},35479:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(95923),l=f(61905),b=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",a.default,l.default];r.default=b},61905:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.callRef=r.getValidate=void 0;const a=f(24186),l=f(7861),b=f(15923),g=f(92115),S=f(76968),d=f(91571),k={keyword:"$ref",schemaType:"string",code(y){const{gen:E,schema:z,it:M}=y,{baseId:x,schemaEnv:R,validateName:p,opts:v,self:j}=M,{root:_}=R;if((z==="#"||z==="#/")&&x===_.baseId)return H();const I=S.resolveRef.call(j,_,x,z);if(I===void 0)throw new a.default(M.opts.uriResolver,x,z);if(I instanceof S.SchemaEnv)return O(I);return A(I);function H(){if(R===_)return h(y,p,R,R.$async);const B=E.scopeValue("root",{ref:_});return h(y,(0,b._)`${B}.validate`,_,_.$async)}function O(B){const le=c(y,B);h(y,le,B,B.$async)}function A(B){const le=E.scopeValue("schema",v.code.source===!0?{ref:B,code:(0,b.stringify)(B)}:{ref:B}),be=E.name("valid"),_e=y.subschema({schema:B,dataTypes:[],schemaPath:b.nil,topSchemaRef:le,errSchemaPath:z},be);y.mergeEvaluated(_e),y.ok(be)}}};function c(y,E){const{gen:z}=y;return E.validate?z.scopeValue("validate",{ref:E.validate}):(0,b._)`${z.scopeValue("wrapper",{ref:E})}.validate`}r.getValidate=c;function h(y,E,z,M){const{gen:x,it:R}=y,{allErrors:p,schemaEnv:v,opts:j}=R,_=j.passContext?g.default.this:b.nil;M?I():H();function I(){if(!v.$async)throw new Error("async schema referenced by sync schema");const B=x.let("valid");x.try(()=>{x.code((0,b._)`await ${(0,l.callValidateCode)(y,E,_)}`),A(E),p||x.assign(B,!0)},le=>{x.if((0,b._)`!(${le} instanceof ${R.ValidationError})`,()=>x.throw(le)),O(le),p||x.assign(B,!1)}),y.ok(B)}function H(){y.result((0,l.callValidateCode)(y,E,_),()=>A(E),()=>O(E))}function O(B){const le=(0,b._)`${B}.errors`;x.assign(g.default.vErrors,(0,b._)`${g.default.vErrors} === null ? ${le} : ${g.default.vErrors}.concat(${le})`),x.assign(g.default.errors,(0,b._)`${g.default.vErrors}.length`)}function A(B){var le;if(!R.opts.unevaluated)return;const be=(le=z==null?void 0:z.validate)===null||le===void 0?void 0:le.evaluated;if(R.props!==!0)if(be&&!be.dynamicProps)be.props!==void 0&&(R.props=d.mergeEvaluated.props(x,be.props,R.props));else{const _e=x.var("props",(0,b._)`${B}.evaluated.props`);R.props=d.mergeEvaluated.props(x,_e,R.props,b.Name)}if(R.items!==!0)if(be&&!be.dynamicItems)be.items!==void 0&&(R.items=d.mergeEvaluated.items(x,be.items,R.items));else{const _e=x.var("items",(0,b._)`${B}.evaluated.items`);R.items=d.mergeEvaluated.items(x,_e,R.items,b.Name)}}}r.callRef=h,r.default=k},86825:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=f(91072),b=f(76968),g=f(91571),d={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:k,tagName:c}})=>k===l.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:k,tag:c,tagName:h}})=>(0,a._)`{error: ${k}, tag: ${h}, tagValue: ${c}}`},code(k){const{gen:c,data:h,schema:y,parentSchema:E,it:z}=k,{oneOf:M}=E;if(!z.opts.discriminator)throw new Error("discriminator: requires discriminator option");const x=y.propertyName;if(typeof x!="string")throw new Error("discriminator: requires propertyName");if(y.mapping)throw new Error("discriminator: mapping is not supported");if(!M)throw new Error("discriminator: requires oneOf keyword");const R=c.let("valid",!1),p=c.const("tag",(0,a._)`${h}${(0,a.getProperty)(x)}`);c.if((0,a._)`typeof ${p} == "string"`,()=>v(),()=>k.error(!1,{discrError:l.DiscrError.Tag,tag:p,tagName:x})),k.ok(R);function v(){const I=_();c.if(!1);for(const H in I)c.elseIf((0,a._)`${p} === ${H}`),c.assign(R,j(I[H]));c.else(),k.error(!1,{discrError:l.DiscrError.Mapping,tag:p,tagName:x}),c.endIf()}function j(I){const H=c.name("valid"),O=k.subschema({keyword:"oneOf",schemaProp:I},H);return k.mergeEvaluated(O,a.Name),H}function _(){var I;const H={},O=B(E);let A=!0;for(let _e=0;_e<M.length;_e++){let Te=M[_e];Te!=null&&Te.$ref&&!(0,g.schemaHasRulesButRef)(Te,z.self.RULES)&&(Te=b.resolveRef.call(z.self,z.schemaEnv.root,z.baseId,Te==null?void 0:Te.$ref),Te instanceof b.SchemaEnv&&(Te=Te.schema));const Le=(I=Te==null?void 0:Te.properties)===null||I===void 0?void 0:I[x];if(typeof Le!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${x}"`);A=A&&(O||B(Te)),le(Le,_e)}if(!A)throw new Error(`discriminator: "${x}" must be required`);return H;function B({required:_e}){return Array.isArray(_e)&&_e.includes(x)}function le(_e,Te){if(_e.const)be(_e.const,Te);else if(_e.enum)for(const Le of _e.enum)be(Le,Te);else throw new Error(`discriminator: "properties/${x}" must have "const" or "enum"`)}function be(_e,Te){if(typeof _e!="string"||_e in H)throw new Error(`discriminator: "${x}" values must be unique strings`);H[_e]=Te}}}};r.default=d},91072:function(ye,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DiscrError=void 0;var f;(function(a){a.Tag="tag",a.Mapping="mapping"})(f=r.DiscrError||(r.DiscrError={}))},20361:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(35479),l=f(31226),b=f(74741),g=f(50051),S=f(17148),d=[a.default,l.default,(0,b.default)(),g.default,S.metadataVocabulary,S.contentVocabulary];r.default=d},41656:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),b={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:g})=>(0,a.str)`must match format "${g}"`,params:({schemaCode:g})=>(0,a._)`{format: ${g}}`},code(g,S){const{gen:d,data:k,$data:c,schema:h,schemaCode:y,it:E}=g,{opts:z,errSchemaPath:M,schemaEnv:x,self:R}=E;if(!z.validateFormats)return;c?p():v();function p(){const j=d.scopeValue("formats",{ref:R.formats,code:z.code.formats}),_=d.const("fDef",(0,a._)`${j}[${y}]`),I=d.let("fType"),H=d.let("format");d.if((0,a._)`typeof ${_} == "object" && !(${_} instanceof RegExp)`,()=>d.assign(I,(0,a._)`${_}.type || "string"`).assign(H,(0,a._)`${_}.validate`),()=>d.assign(I,(0,a._)`"string"`).assign(H,_)),g.fail$data((0,a.or)(O(),A()));function O(){return z.strictSchema===!1?a.nil:(0,a._)`${y} && !${H}`}function A(){const B=x.$async?(0,a._)`(${_}.async ? await ${H}(${k}) : ${H}(${k}))`:(0,a._)`${H}(${k})`,le=(0,a._)`(typeof ${H} == "function" ? ${B} : ${H}.test(${k}))`;return(0,a._)`${H} && ${H} !== true && ${I} === ${S} && !${le}`}}function v(){const j=R.formats[h];if(!j){O();return}if(j===!0)return;const[_,I,H]=A(j);_===S&&g.pass(B());function O(){if(z.strictSchema===!1){R.logger.warn(le());return}throw new Error(le());function le(){return`unknown format "${h}" ignored in schema at path "${M}"`}}function A(le){const be=le instanceof RegExp?(0,a.regexpCode)(le):z.code.formats?(0,a._)`${z.code.formats}${(0,a.getProperty)(h)}`:void 0,_e=d.scopeValue("formats",{key:h,ref:le,code:be});return typeof le=="object"&&!(le instanceof RegExp)?[le.type||"string",le.validate,(0,a._)`${_e}.validate`]:["string",le,_e]}function B(){if(typeof j=="object"&&!(j instanceof RegExp)&&j.async){if(!x.$async)throw new Error("async format in sync schema");return(0,a._)`await ${H}(${k})`}return typeof I=="function"?(0,a._)`${H}(${k})`:(0,a._)`${H}.test(${k})`}}}};r.default=b},50051:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const l=[f(41656).default];r.default=l},17148:function(ye,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.contentVocabulary=r.metadataVocabulary=void 0,r.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],r.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},11498:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=f(91571),b=f(10487),S={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:d})=>(0,a._)`{allowedValue: ${d}}`},code(d){const{gen:k,data:c,$data:h,schemaCode:y,schema:E}=d;h||E&&typeof E=="object"?d.fail$data((0,a._)`!${(0,l.useFunc)(k,b.default)}(${c}, ${y})`):d.fail((0,a._)`${E} !== ${c}`)}};r.default=S},70269:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=f(91571),b=f(10487),S={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:d})=>(0,a._)`{allowedValues: ${d}}`},code(d){const{gen:k,data:c,$data:h,schema:y,schemaCode:E,it:z}=d;if(!h&&y.length===0)throw new Error("enum must have non-empty array");const M=y.length>=z.opts.loopEnum;let x;const R=()=>x!=null?x:x=(0,l.useFunc)(k,b.default);let p;if(M||h)p=k.let("valid"),d.block$data(p,v);else{if(!Array.isArray(y))throw new Error("ajv implementation error");const _=k.const("vSchema",E);p=(0,a.or)(...y.map((I,H)=>j(_,H)))}d.pass(p);function v(){k.assign(p,!1),k.forOf("v",E,_=>k.if((0,a._)`${R()}(${c}, ${_})`,()=>k.assign(p,!0).break()))}function j(_,I){const H=y[I];return typeof H=="object"&&H!==null?(0,a._)`${R()}(${c}, ${_}[${I}])`:(0,a._)`${c} === ${H}`}}};r.default=S},31226:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(94885),l=f(32066),b=f(97997),g=f(52787),S=f(12674),d=f(35390),k=f(20262),c=f(86534),h=f(11498),y=f(70269),E=[a.default,l.default,b.default,g.default,S.default,d.default,k.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},h.default,y.default];r.default=E},20262:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),b={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:g,schemaCode:S}){const d=g==="maxItems"?"more":"fewer";return(0,a.str)`must NOT have ${d} than ${S} items`},params:({schemaCode:g})=>(0,a._)`{limit: ${g}}`},code(g){const{keyword:S,data:d,schemaCode:k}=g,c=S==="maxItems"?a.operators.GT:a.operators.LT;g.fail$data((0,a._)`${d}.length ${c} ${k}`)}};r.default=b},97997:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=f(91571),b=f(77079),S={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:d,schemaCode:k}){const c=d==="maxLength"?"more":"fewer";return(0,a.str)`must NOT have ${c} than ${k} characters`},params:({schemaCode:d})=>(0,a._)`{limit: ${d}}`},code(d){const{keyword:k,data:c,schemaCode:h,it:y}=d,E=k==="maxLength"?a.operators.GT:a.operators.LT,z=y.opts.unicode===!1?(0,a._)`${c}.length`:(0,a._)`${(0,l.useFunc)(d.gen,b.default)}(${c})`;d.fail$data((0,a._)`${z} ${E} ${h}`)}};r.default=S},94885:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),l=a.operators,b={maximum:{okStr:"<=",ok:l.LTE,fail:l.GT},minimum:{okStr:">=",ok:l.GTE,fail:l.LT},exclusiveMaximum:{okStr:"<",ok:l.LT,fail:l.GTE},exclusiveMinimum:{okStr:">",ok:l.GT,fail:l.LTE}},g={message:({keyword:d,schemaCode:k})=>(0,a.str)`must be ${b[d].okStr} ${k}`,params:({keyword:d,schemaCode:k})=>(0,a._)`{comparison: ${b[d].okStr}, limit: ${k}}`},S={keyword:Object.keys(b),type:"number",schemaType:"number",$data:!0,error:g,code(d){const{keyword:k,data:c,schemaCode:h}=d;d.fail$data((0,a._)`${c} ${b[k].fail} ${h} || isNaN(${c})`)}};r.default=S},12674:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),b={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:g,schemaCode:S}){const d=g==="maxProperties"?"more":"fewer";return(0,a.str)`must NOT have ${d} than ${S} properties`},params:({schemaCode:g})=>(0,a._)`{limit: ${g}}`},code(g){const{keyword:S,data:d,schemaCode:k}=g,c=S==="maxProperties"?a.operators.GT:a.operators.LT;g.fail$data((0,a._)`Object.keys(${d}).length ${c} ${k}`)}};r.default=b},32066:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(15923),b={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:g})=>(0,a.str)`must be multiple of ${g}`,params:({schemaCode:g})=>(0,a._)`{multipleOf: ${g}}`},code(g){const{gen:S,data:d,schemaCode:k,it:c}=g,h=c.opts.multipleOfPrecision,y=S.let("res"),E=h?(0,a._)`Math.abs(Math.round(${y}) - ${y}) > 1e-${h}`:(0,a._)`${y} !== parseInt(${y})`;g.fail$data((0,a._)`(${k} === 0 || (${y} = ${d}/${k}, ${E}))`)}};r.default=b},52787:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(7861),l=f(15923),g={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:S})=>(0,l.str)`must match pattern "${S}"`,params:({schemaCode:S})=>(0,l._)`{pattern: ${S}}`},code(S){const{data:d,$data:k,schema:c,schemaCode:h,it:y}=S,E=y.opts.unicodeRegExp?"u":"",z=k?(0,l._)`(new RegExp(${h}, ${E}))`:(0,a.usePattern)(S,c);S.fail$data((0,l._)`!${z}.test(${d})`)}};r.default=g},35390:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(7861),l=f(15923),b=f(91571),S={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:d}})=>(0,l.str)`must have required property '${d}'`,params:({params:{missingProperty:d}})=>(0,l._)`{missingProperty: ${d}}`},code(d){const{gen:k,schema:c,schemaCode:h,data:y,$data:E,it:z}=d,{opts:M}=z;if(!E&&c.length===0)return;const x=c.length>=M.loopRequired;if(z.allErrors?R():p(),M.strictRequired){const _=d.parentSchema.properties,{definedProperties:I}=d.it;for(const H of c)if((_==null?void 0:_[H])===void 0&&!I.has(H)){const O=z.schemaEnv.baseId+z.errSchemaPath,A=`required property "${H}" is not defined at "${O}" (strictRequired)`;(0,b.checkStrictMode)(z,A,z.opts.strictRequired)}}function R(){if(x||E)d.block$data(l.nil,v);else for(const _ of c)(0,a.checkReportMissingProp)(d,_)}function p(){const _=k.let("missing");if(x||E){const I=k.let("valid",!0);d.block$data(I,()=>j(_,I)),d.ok(I)}else k.if((0,a.checkMissingProp)(d,c,_)),(0,a.reportMissingProp)(d,_),k.else()}function v(){k.forOf("prop",h,_=>{d.setParams({missingProperty:_}),k.if((0,a.noPropertyInData)(k,y,_,M.ownProperties),()=>d.error())})}function j(_,I){d.setParams({missingProperty:_}),k.forOf(_,h,()=>{k.assign(I,(0,a.propertyInData)(k,y,_,M.ownProperties)),k.if((0,l.not)(I),()=>{d.error(),k.break()})},l.nil)}}};r.default=S},86534:function(ye,r,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const a=f(31411),l=f(15923),b=f(91571),g=f(10487),d={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:k,j:c}})=>(0,l.str)`must NOT have duplicate items (items ## ${c} and ${k} are identical)`,params:({params:{i:k,j:c}})=>(0,l._)`{i: ${k}, j: ${c}}`},code(k){const{gen:c,data:h,$data:y,schema:E,parentSchema:z,schemaCode:M,it:x}=k;if(!y&&!E)return;const R=c.let("valid"),p=z.items?(0,a.getSchemaTypes)(z.items):[];k.block$data(R,v,(0,l._)`${M} === false`),k.ok(R);function v(){const H=c.let("i",(0,l._)`${h}.length`),O=c.let("j");k.setParams({i:H,j:O}),c.assign(R,!0),c.if((0,l._)`${H} > 1`,()=>(j()?_:I)(H,O))}function j(){return p.length>0&&!p.some(H=>H==="object"||H==="array")}function _(H,O){const A=c.name("item"),B=(0,a.checkDataTypes)(p,A,x.opts.strictNumbers,a.DataType.Wrong),le=c.const("indices",(0,l._)`{}`);c.for((0,l._)`;${H}--;`,()=>{c.let(A,(0,l._)`${h}[${H}]`),c.if(B,(0,l._)`continue`),p.length>1&&c.if((0,l._)`typeof ${A} == "string"`,(0,l._)`${A} += "_"`),c.if((0,l._)`typeof ${le}[${A}] == "number"`,()=>{c.assign(O,(0,l._)`${le}[${A}]`),k.error(),c.assign(R,!1).break()}).code((0,l._)`${le}[${A}] = ${H}`)})}function I(H,O){const A=(0,b.useFunc)(c,g.default),B=c.name("outer");c.label(B).for((0,l._)`;${H}--;`,()=>c.for((0,l._)`${O} = ${H}; ${O}--;`,()=>c.if((0,l._)`${A}(${h}[${H}], ${h}[${O}])`,()=>{k.error(),c.assign(R,!1).break(B)})))}}};r.default=d},49385:function(ye){"use strict";var r=Object.prototype.hasOwnProperty,f=Object.prototype.toString,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,b=function(c){return typeof Array.isArray=="function"?Array.isArray(c):f.call(c)==="[object Array]"},g=function(c){if(!c||f.call(c)!=="[object Object]")return!1;var h=r.call(c,"constructor"),y=c.constructor&&c.constructor.prototype&&r.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!y)return!1;var E;for(E in c);return typeof E=="undefined"||r.call(c,E)},S=function(c,h){a&&h.name==="__proto__"?a(c,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):c[h.name]=h.newValue},d=function(c,h){if(h==="__proto__")if(r.call(c,h)){if(l)return l(c,h).value}else return;return c[h]};ye.exports=function k(){var c,h,y,E,z,M,x=arguments[0],R=1,p=arguments.length,v=!1;for(typeof x=="boolean"&&(v=x,x=arguments[1]||{},R=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});R<p;++R)if(c=arguments[R],c!=null)for(h in c)y=d(x,h),E=d(c,h),x!==E&&(v&&E&&(g(E)||(z=b(E)))?(z?(z=!1,M=y&&b(y)?y:[]):M=y&&g(y)?y:{},S(x,{name:h,newValue:k(v,M,E)})):typeof E!="undefined"&&S(x,{name:h,newValue:E}));return x}},69378:function(ye){"use strict";ye.exports=function r(f,a){if(f===a)return!0;if(f&&a&&typeof f=="object"&&typeof a=="object"){if(f.constructor!==a.constructor)return!1;var l,b,g;if(Array.isArray(f)){if(l=f.length,l!=a.length)return!1;for(b=l;b--!==0;)if(!r(f[b],a[b]))return!1;return!0}if(f.constructor===RegExp)return f.source===a.source&&f.flags===a.flags;if(f.valueOf!==Object.prototype.valueOf)return f.valueOf()===a.valueOf();if(f.toString!==Object.prototype.toString)return f.toString()===a.toString();if(g=Object.keys(f),l=g.length,l!==Object.keys(a).length)return!1;for(b=l;b--!==0;)if(!Object.prototype.hasOwnProperty.call(a,g[b]))return!1;for(b=l;b--!==0;){var S=g[b];if(!r(f[S],a[S]))return!1}return!0}return f!==f&&a!==a}},6299:function(ye){var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,f=/\n/g,a=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,b=/^:\s*/,g=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,S=/^[;\s]*/,d=/^\s+|\s+$/g,k=`
|
|
9
|
-
`,c="/",h="*",y="",E="comment",z="declaration";ye.exports=function(x,R){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];R=R||{};var p=1,v=1;function j(Le){var Ee=Le.match(f);Ee&&(p+=Ee.length);var Ue=Le.lastIndexOf(k);v=~Ue?Le.length-Ue:v+Le.length}function _(){var Le={line:p,column:v};return function(Ee){return Ee.position=new I(Le),B(),Ee}}function I(Le){this.start=Le,this.end={line:p,column:v},this.source=R.source}I.prototype.content=x;var H=[];function O(Le){var Ee=new Error(R.source+":"+p+":"+v+": "+Le);if(Ee.reason=Le,Ee.filename=R.source,Ee.line=p,Ee.column=v,Ee.source=x,R.silent)H.push(Ee);else throw Ee}function A(Le){var Ee=Le.exec(x);if(Ee){var Ue=Ee[0];return j(Ue),x=x.slice(Ue.length),Ee}}function B(){A(a)}function le(Le){var Ee;for(Le=Le||[];Ee=be();)Ee!==!1&&Le.push(Ee);return Le}function be(){var Le=_();if(!(c!=x.charAt(0)||h!=x.charAt(1))){for(var Ee=2;y!=x.charAt(Ee)&&(h!=x.charAt(Ee)||c!=x.charAt(Ee+1));)++Ee;if(Ee+=2,y===x.charAt(Ee-1))return O("End of comment missing");var Ue=x.slice(2,Ee-2);return v+=2,j(Ue),x=x.slice(Ee),v+=2,Le({type:E,comment:Ue})}}function _e(){var Le=_(),Ee=A(l);if(Ee){if(be(),!A(b))return O("property missing ':'");var Ue=A(g),Et=Le({type:z,property:M(Ee[0].replace(r,y)),value:Ue?M(Ue[0].replace(r,y)):y});return A(S),Et}}function Te(){var Le=[];le(Le);for(var Ee;Ee=_e();)Ee!==!1&&(Le.push(Ee),le(Le));return Le}return B(),Te()};function M(x){return x?x.replace(d,y):y}},13335:function(ye){/*!
|
|
10
|
-
* Determine if an object is a Buffer
|
|
11
|
-
*
|
|
12
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
13
|
-
* @license MIT
|
|
14
|
-
*/ye.exports=function(f){return f!=null&&f.constructor!=null&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f)}},19522:function(ye){"use strict";var r=ye.exports=function(l,b,g){typeof b=="function"&&(g=b,b={}),g=b.cb||g;var S=typeof g=="function"?g:g.pre||function(){},d=g.post||function(){};f(b,S,d,l,"",l)};r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function f(l,b,g,S,d,k,c,h,y,E){if(S&&typeof S=="object"&&!Array.isArray(S)){b(S,d,k,c,h,y,E);for(var z in S){var M=S[z];if(Array.isArray(M)){if(z in r.arrayKeywords)for(var x=0;x<M.length;x++)f(l,b,g,M[x],d+"/"+z+"/"+x,k,d,z,S,x)}else if(z in r.propsKeywords){if(M&&typeof M=="object")for(var R in M)f(l,b,g,M[R],d+"/"+z+"/"+a(R),k,d,z,S,R)}else(z in r.keywords||l.allKeys&&!(z in r.skipKeywords))&&f(l,b,g,M,d+"/"+z,k,d,z,S)}g(S,d,k,c,h,y,E)}}function a(l){return l.replace(/~/g,"~0").replace(/\//g,"~1")}},81737:function(ye){"use strict";var r={};function f(l){var b,g,S=r[l];if(S)return S;for(S=r[l]=[],b=0;b<128;b++)g=String.fromCharCode(b),/^[0-9a-z]$/i.test(g)?S.push(g):S.push("%"+("0"+b.toString(16).toUpperCase()).slice(-2));for(b=0;b<l.length;b++)S[l.charCodeAt(b)]=l[b];return S}function a(l,b,g){var S,d,k,c,h,y="";for(typeof b!="string"&&(g=b,b=a.defaultChars),typeof g=="undefined"&&(g=!0),h=f(b),S=0,d=l.length;S<d;S++){if(k=l.charCodeAt(S),g&&k===37&&S+2<d&&/^[0-9a-f]{2}$/i.test(l.slice(S+1,S+3))){y+=l.slice(S,S+3),S+=2;continue}if(k<128){y+=h[k];continue}if(k>=55296&&k<=57343){if(k>=55296&&k<=56319&&S+1<d&&(c=l.charCodeAt(S+1),c>=56320&&c<=57343)){y+=encodeURIComponent(l[S]+l[S+1]),S++;continue}y+="%EF%BF%BD";continue}y+=encodeURIComponent(l[S])}return y}a.defaultChars=";/?:@&=+$,-_.!~*'()#",a.componentChars="-_.!~*'()",ye.exports=a},35828:function(ye,r){"use strict";/**
|
|
15
|
-
* @license React
|
|
16
|
-
* react-is.production.min.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var f=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),d=Symbol.for("react.context"),k=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function R(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case f:switch(p=p.type,p){case l:case g:case b:case h:case y:return p;default:switch(p=p&&p.$$typeof,p){case k:case d:case c:case z:case E:case S:return p;default:return v}}case a:return v}}}r.ContextConsumer=d,r.ContextProvider=S,r.Element=f,r.ForwardRef=c,r.Fragment=l,r.Lazy=z,r.Memo=E,r.Portal=a,r.Profiler=g,r.StrictMode=b,r.Suspense=h,r.SuspenseList=y,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(p){return R(p)===d},r.isContextProvider=function(p){return R(p)===S},r.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===f},r.isForwardRef=function(p){return R(p)===c},r.isFragment=function(p){return R(p)===l},r.isLazy=function(p){return R(p)===z},r.isMemo=function(p){return R(p)===E},r.isPortal=function(p){return R(p)===a},r.isProfiler=function(p){return R(p)===g},r.isStrictMode=function(p){return R(p)===b},r.isSuspense=function(p){return R(p)===h},r.isSuspenseList=function(p){return R(p)===y},r.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===l||p===g||p===b||p===h||p===y||p===M||typeof p=="object"&&p!==null&&(p.$$typeof===z||p.$$typeof===E||p.$$typeof===S||p.$$typeof===d||p.$$typeof===c||p.$$typeof===x||p.getModuleId!==void 0)},r.typeOf=R},33978:function(ye,r,f){"use strict";ye.exports=f(35828)},85653:function(ye,r,f){var a=f(6299);function l(b,g){var S=null;if(!b||typeof b!="string")return S;for(var d,k=a(b),c=typeof g=="function",h,y,E=0,z=k.length;E<z;E++)d=k[E],h=d.property,y=d.value,c?g(h,y,d):y&&(S||(S={}),S[h]=y);return S}ye.exports=l,ye.exports.default=l},12854:function(ye,r){/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(f,a){a(r)})(this,function(f){"use strict";function a(){for(var N=arguments.length,C=Array(N),U=0;U<N;U++)C[U]=arguments[U];if(C.length>1){C[0]=C[0].slice(0,-1);for(var te=C.length-1,re=1;re<te;++re)C[re]=C[re].slice(1,-1);return C[te]=C[te].slice(1),C.join("")}else return C[0]}function l(N){return"(?:"+N+")"}function b(N){return N===void 0?"undefined":N===null?"null":Object.prototype.toString.call(N).split(" ").pop().split("]").shift().toLowerCase()}function g(N){return N.toUpperCase()}function S(N){return N!=null?N instanceof Array?N:typeof N.length!="number"||N.split||N.setInterval||N.call?[N]:Array.prototype.slice.call(N):[]}function d(N,C){var U=N;if(C)for(var te in C)U[te]=C[te];return U}function k(N){var C="[A-Za-z]",U="[\\x0D]",te="[0-9]",re="[\\x22]",De=a(te,"[A-Fa-f]"),Be="[\\x0A]",qe="[\\x20]",et=l(l("%[EFef]"+De+"%"+De+De+"%"+De+De)+"|"+l("%[89A-Fa-f]"+De+"%"+De+De)+"|"+l("%"+De+De)),gt="[\\:\\/\\?\\#\\[\\]\\@]",nt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",yt=a(gt,nt),Ot=N?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",vt=N?"[\\uE000-\\uF8FF]":"[]",rt=a(C,te,"[\\-\\.\\_\\~]",Ot),bt=l(C+a(C,te,"[\\+\\-\\.]")+"*"),ct=l(l(et+"|"+a(rt,nt,"[\\:]"))+"*"),cn=l(l("25[0-5]")+"|"+l("2[0-4]"+te)+"|"+l("1"+te+te)+"|"+l("[1-9]"+te)+"|"+te),zt=l(l("25[0-5]")+"|"+l("2[0-4]"+te)+"|"+l("1"+te+te)+"|"+l("0?[1-9]"+te)+"|0?0?"+te),Wt=l(zt+"\\."+zt+"\\."+zt+"\\."+zt),dt=l(De+"{1,4}"),Mt=l(l(dt+"\\:"+dt)+"|"+Wt),Gt=l(l(dt+"\\:")+"{6}"+Mt),Yt=l("\\:\\:"+l(dt+"\\:")+"{5}"+Mt),fn=l(l(dt)+"?\\:\\:"+l(dt+"\\:")+"{4}"+Mt),qt=l(l(l(dt+"\\:")+"{0,1}"+dt)+"?\\:\\:"+l(dt+"\\:")+"{3}"+Mt),_n=l(l(l(dt+"\\:")+"{0,2}"+dt)+"?\\:\\:"+l(dt+"\\:")+"{2}"+Mt),Dn=l(l(l(dt+"\\:")+"{0,3}"+dt)+"?\\:\\:"+dt+"\\:"+Mt),kn=l(l(l(dt+"\\:")+"{0,4}"+dt)+"?\\:\\:"+Mt),dn=l(l(l(dt+"\\:")+"{0,5}"+dt)+"?\\:\\:"+dt),En=l(l(l(dt+"\\:")+"{0,6}"+dt)+"?\\:\\:"),en=l([Gt,Yt,fn,qt,_n,Dn,kn,dn,En].join("|")),Sn=l(l(rt+"|"+et)+"+"),Rn=l(en+"\\%25"+Sn),hn=l(en+l("\\%25|\\%(?!"+De+"{2})")+Sn),Yn=l("[vV]"+De+"+\\."+a(rt,nt,"[\\:]")+"+"),fr=l("\\["+l(hn+"|"+en+"|"+Yn)+"\\]"),Ln=l(l(et+"|"+a(rt,nt))+"*"),$n=l(fr+"|"+Wt+"(?!"+Ln+")|"+Ln),mn=l(te+"*"),Zn=l(l(ct+"@")+"?"+$n+l("\\:"+mn)+"?"),pn=l(et+"|"+a(rt,nt,"[\\:\\@]")),dr=l(pn+"*"),qn=l(pn+"+"),o=l(l(et+"|"+a(rt,nt,"[\\@]"))+"+"),F=l(l("\\/"+dr)+"*"),T=l("\\/"+l(qn+F)+"?"),Q=l(o+F),ne=l(qn+F),W="(?!"+pn+")",K=l(F+"|"+T+"|"+Q+"|"+ne+"|"+W),oe=l(l(pn+"|"+a("[\\/\\?]",vt))+"*"),ie=l(l(pn+"|[\\/\\?]")+"*"),Re=l(l("\\/\\/"+Zn+F)+"|"+T+"|"+ne+"|"+W),ge=l(bt+"\\:"+Re+l("\\?"+oe)+"?"+l("\\#"+ie)+"?"),Oe=l(l("\\/\\/"+Zn+F)+"|"+T+"|"+Q+"|"+W),xe=l(Oe+l("\\?"+oe)+"?"+l("\\#"+ie)+"?"),$e=l(ge+"|"+xe),ke=l(bt+"\\:"+Re+l("\\?"+oe)+"?"),Pe="^("+bt+")\\:"+l(l("\\/\\/("+l("("+ct+")@")+"?("+$n+")"+l("\\:("+mn+")")+"?)")+"?("+F+"|"+T+"|"+ne+"|"+W+")")+l("\\?("+oe+")")+"?"+l("\\#("+ie+")")+"?$",Xe="^(){0}"+l(l("\\/\\/("+l("("+ct+")@")+"?("+$n+")"+l("\\:("+mn+")")+"?)")+"?("+F+"|"+T+"|"+Q+"|"+W+")")+l("\\?("+oe+")")+"?"+l("\\#("+ie+")")+"?$",Qe="^("+bt+")\\:"+l(l("\\/\\/("+l("("+ct+")@")+"?("+$n+")"+l("\\:("+mn+")")+"?)")+"?("+F+"|"+T+"|"+ne+"|"+W+")")+l("\\?("+oe+")")+"?$",ht="^"+l("\\#("+ie+")")+"?$",Tt="^"+l("("+ct+")@")+"?("+$n+")"+l("\\:("+mn+")")+"?$";return{NOT_SCHEME:new RegExp(a("[^]",C,te,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(a("[^\\%\\:]",rt,nt),"g"),NOT_HOST:new RegExp(a("[^\\%\\[\\]\\:]",rt,nt),"g"),NOT_PATH:new RegExp(a("[^\\%\\/\\:\\@]",rt,nt),"g"),NOT_PATH_NOSCHEME:new RegExp(a("[^\\%\\/\\@]",rt,nt),"g"),NOT_QUERY:new RegExp(a("[^\\%]",rt,nt,"[\\:\\@\\/\\?]",vt),"g"),NOT_FRAGMENT:new RegExp(a("[^\\%]",rt,nt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(a("[^]",rt,nt),"g"),UNRESERVED:new RegExp(rt,"g"),OTHER_CHARS:new RegExp(a("[^\\%]",rt,yt),"g"),PCT_ENCODED:new RegExp(et,"g"),IPV4ADDRESS:new RegExp("^("+Wt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+en+")"+l(l("\\%25|\\%(?!"+De+"{2})")+"("+Sn+")")+"?\\]?$")}}var c=k(!1),h=k(!0),y=function(){function N(C,U){var te=[],re=!0,De=!1,Be=void 0;try{for(var qe=C[Symbol.iterator](),et;!(re=(et=qe.next()).done)&&(te.push(et.value),!(U&&te.length===U));re=!0);}catch(gt){De=!0,Be=gt}finally{try{!re&&qe.return&&qe.return()}finally{if(De)throw Be}}return te}return function(C,U){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return N(C,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(N){if(Array.isArray(N)){for(var C=0,U=Array(N.length);C<N.length;C++)U[C]=N[C];return U}else return Array.from(N)},z=2147483647,M=36,x=1,R=26,p=38,v=700,j=72,_=128,I="-",H=/^xn--/,O=/[^\0-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},le=M-x,be=Math.floor,_e=String.fromCharCode;function Te(N){throw new RangeError(B[N])}function Le(N,C){for(var U=[],te=N.length;te--;)U[te]=C(N[te]);return U}function Ee(N,C){var U=N.split("@"),te="";U.length>1&&(te=U[0]+"@",N=U[1]),N=N.replace(A,".");var re=N.split("."),De=Le(re,C).join(".");return te+De}function Ue(N){for(var C=[],U=0,te=N.length;U<te;){var re=N.charCodeAt(U++);if(re>=55296&&re<=56319&&U<te){var De=N.charCodeAt(U++);(De&64512)==56320?C.push(((re&1023)<<10)+(De&1023)+65536):(C.push(re),U--)}else C.push(re)}return C}var Et=function(C){return String.fromCodePoint.apply(String,E(C))},Qt=function(C){return C-48<10?C-22:C-65<26?C-65:C-97<26?C-97:M},Ht=function(C,U){return C+22+75*(C<26)-((U!=0)<<5)},lt=function(C,U,te){var re=0;for(C=te?be(C/v):C>>1,C+=be(C/U);C>le*R>>1;re+=M)C=be(C/le);return be(re+(le+1)*C/(C+p))},Ae=function(C){var U=[],te=C.length,re=0,De=_,Be=j,qe=C.lastIndexOf(I);qe<0&&(qe=0);for(var et=0;et<qe;++et)C.charCodeAt(et)>=128&&Te("not-basic"),U.push(C.charCodeAt(et));for(var gt=qe>0?qe+1:0;gt<te;){for(var nt=re,yt=1,Ot=M;;Ot+=M){gt>=te&&Te("invalid-input");var vt=Qt(C.charCodeAt(gt++));(vt>=M||vt>be((z-re)/yt))&&Te("overflow"),re+=vt*yt;var rt=Ot<=Be?x:Ot>=Be+R?R:Ot-Be;if(vt<rt)break;var bt=M-rt;yt>be(z/bt)&&Te("overflow"),yt*=bt}var ct=U.length+1;Be=lt(re-nt,ct,nt==0),be(re/ct)>z-De&&Te("overflow"),De+=be(re/ct),re%=ct,U.splice(re++,0,De)}return String.fromCodePoint.apply(String,U)},Y=function(C){var U=[];C=Ue(C);var te=C.length,re=_,De=0,Be=j,qe=!0,et=!1,gt=void 0;try{for(var nt=C[Symbol.iterator](),yt;!(qe=(yt=nt.next()).done);qe=!0){var Ot=yt.value;Ot<128&&U.push(_e(Ot))}}catch(hn){et=!0,gt=hn}finally{try{!qe&&nt.return&&nt.return()}finally{if(et)throw gt}}var vt=U.length,rt=vt;for(vt&&U.push(I);rt<te;){var bt=z,ct=!0,cn=!1,zt=void 0;try{for(var Wt=C[Symbol.iterator](),dt;!(ct=(dt=Wt.next()).done);ct=!0){var Mt=dt.value;Mt>=re&&Mt<bt&&(bt=Mt)}}catch(hn){cn=!0,zt=hn}finally{try{!ct&&Wt.return&&Wt.return()}finally{if(cn)throw zt}}var Gt=rt+1;bt-re>be((z-De)/Gt)&&Te("overflow"),De+=(bt-re)*Gt,re=bt;var Yt=!0,fn=!1,qt=void 0;try{for(var _n=C[Symbol.iterator](),Dn;!(Yt=(Dn=_n.next()).done);Yt=!0){var kn=Dn.value;if(kn<re&&++De>z&&Te("overflow"),kn==re){for(var dn=De,En=M;;En+=M){var en=En<=Be?x:En>=Be+R?R:En-Be;if(dn<en)break;var Sn=dn-en,Rn=M-en;U.push(_e(Ht(en+Sn%Rn,0))),dn=be(Sn/Rn)}U.push(_e(Ht(dn,0))),Be=lt(De,Gt,rt==vt),De=0,++rt}}}catch(hn){fn=!0,qt=hn}finally{try{!Yt&&_n.return&&_n.return()}finally{if(fn)throw qt}}++De,++re}return U.join("")},ve=function(C){return Ee(C,function(U){return H.test(U)?Ae(U.slice(4).toLowerCase()):U})},ee=function(C){return Ee(C,function(U){return O.test(U)?"xn--"+Y(U):U})},w={version:"2.1.0",ucs2:{decode:Ue,encode:Et},decode:Ae,encode:Y,toASCII:ee,toUnicode:ve},D={};function ae(N){var C=N.charCodeAt(0),U=void 0;return C<16?U="%0"+C.toString(16).toUpperCase():C<128?U="%"+C.toString(16).toUpperCase():C<2048?U="%"+(C>>6|192).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase():U="%"+(C>>12|224).toString(16).toUpperCase()+"%"+(C>>6&63|128).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase(),U}function Fe(N){for(var C="",U=0,te=N.length;U<te;){var re=parseInt(N.substr(U+1,2),16);if(re<128)C+=String.fromCharCode(re),U+=3;else if(re>=194&&re<224){if(te-U>=6){var De=parseInt(N.substr(U+4,2),16);C+=String.fromCharCode((re&31)<<6|De&63)}else C+=N.substr(U,6);U+=6}else if(re>=224){if(te-U>=9){var Be=parseInt(N.substr(U+4,2),16),qe=parseInt(N.substr(U+7,2),16);C+=String.fromCharCode((re&15)<<12|(Be&63)<<6|qe&63)}else C+=N.substr(U,9);U+=9}else C+=N.substr(U,3),U+=3}return C}function ze(N,C){function U(te){var re=Fe(te);return re.match(C.UNRESERVED)?re:te}return N.scheme&&(N.scheme=String(N.scheme).replace(C.PCT_ENCODED,U).toLowerCase().replace(C.NOT_SCHEME,"")),N.userinfo!==void 0&&(N.userinfo=String(N.userinfo).replace(C.PCT_ENCODED,U).replace(C.NOT_USERINFO,ae).replace(C.PCT_ENCODED,g)),N.host!==void 0&&(N.host=String(N.host).replace(C.PCT_ENCODED,U).toLowerCase().replace(C.NOT_HOST,ae).replace(C.PCT_ENCODED,g)),N.path!==void 0&&(N.path=String(N.path).replace(C.PCT_ENCODED,U).replace(N.scheme?C.NOT_PATH:C.NOT_PATH_NOSCHEME,ae).replace(C.PCT_ENCODED,g)),N.query!==void 0&&(N.query=String(N.query).replace(C.PCT_ENCODED,U).replace(C.NOT_QUERY,ae).replace(C.PCT_ENCODED,g)),N.fragment!==void 0&&(N.fragment=String(N.fragment).replace(C.PCT_ENCODED,U).replace(C.NOT_FRAGMENT,ae).replace(C.PCT_ENCODED,g)),N}function Ze(N){return N.replace(/^0*(.*)/,"$1")||"0"}function Je(N,C){var U=N.match(C.IPV4ADDRESS)||[],te=y(U,2),re=te[1];return re?re.split(".").map(Ze).join("."):N}function mt(N,C){var U=N.match(C.IPV6ADDRESS)||[],te=y(U,3),re=te[1],De=te[2];if(re){for(var Be=re.toLowerCase().split("::").reverse(),qe=y(Be,2),et=qe[0],gt=qe[1],nt=gt?gt.split(":").map(Ze):[],yt=et.split(":").map(Ze),Ot=C.IPV4ADDRESS.test(yt[yt.length-1]),vt=Ot?7:8,rt=yt.length-vt,bt=Array(vt),ct=0;ct<vt;++ct)bt[ct]=nt[ct]||yt[rt+ct]||"";Ot&&(bt[vt-1]=Je(bt[vt-1],C));var cn=bt.reduce(function(Gt,Yt,fn){if(!Yt||Yt==="0"){var qt=Gt[Gt.length-1];qt&&qt.index+qt.length===fn?qt.length++:Gt.push({index:fn,length:1})}return Gt},[]),zt=cn.sort(function(Gt,Yt){return Yt.length-Gt.length})[0],Wt=void 0;if(zt&&zt.length>1){var dt=bt.slice(0,zt.index),Mt=bt.slice(zt.index+zt.length);Wt=dt.join(":")+"::"+Mt.join(":")}else Wt=bt.join(":");return De&&(Wt+="%"+De),Wt}else return N}var Z=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,q="".match(/(){0}/)[1]===void 0;function fe(N){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U={},te=C.iri!==!1?h:c;C.reference==="suffix"&&(N=(C.scheme?C.scheme+":":"")+"//"+N);var re=N.match(Z);if(re){q?(U.scheme=re[1],U.userinfo=re[3],U.host=re[4],U.port=parseInt(re[5],10),U.path=re[6]||"",U.query=re[7],U.fragment=re[8],isNaN(U.port)&&(U.port=re[5])):(U.scheme=re[1]||void 0,U.userinfo=N.indexOf("@")!==-1?re[3]:void 0,U.host=N.indexOf("//")!==-1?re[4]:void 0,U.port=parseInt(re[5],10),U.path=re[6]||"",U.query=N.indexOf("?")!==-1?re[7]:void 0,U.fragment=N.indexOf("#")!==-1?re[8]:void 0,isNaN(U.port)&&(U.port=N.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?re[4]:void 0)),U.host&&(U.host=mt(Je(U.host,te),te)),U.scheme===void 0&&U.userinfo===void 0&&U.host===void 0&&U.port===void 0&&!U.path&&U.query===void 0?U.reference="same-document":U.scheme===void 0?U.reference="relative":U.fragment===void 0?U.reference="absolute":U.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==U.reference&&(U.error=U.error||"URI is not a "+C.reference+" reference.");var De=D[(C.scheme||U.scheme||"").toLowerCase()];if(!C.unicodeSupport&&(!De||!De.unicodeSupport)){if(U.host&&(C.domainHost||De&&De.domainHost))try{U.host=w.toASCII(U.host.replace(te.PCT_ENCODED,Fe).toLowerCase())}catch(Be){U.error=U.error||"Host's domain name can not be converted to ASCII via punycode: "+Be}ze(U,c)}else ze(U,te);De&&De.parse&&De.parse(U,C)}else U.error=U.error||"URI can not be parsed.";return U}function pe(N,C){var U=C.iri!==!1?h:c,te=[];return N.userinfo!==void 0&&(te.push(N.userinfo),te.push("@")),N.host!==void 0&&te.push(mt(Je(String(N.host),U),U).replace(U.IPV6ADDRESS,function(re,De,Be){return"["+De+(Be?"%25"+Be:"")+"]"})),(typeof N.port=="number"||typeof N.port=="string")&&(te.push(":"),te.push(String(N.port))),te.length?te.join(""):void 0}var J=/^\.\.?\//,He=/^\/\.(\/|$)/,At=/^\/\.\.(\/|$)/,it=/^\/?(?:.|\n)*?(?=\/|$)/;function St(N){for(var C=[];N.length;)if(N.match(J))N=N.replace(J,"");else if(N.match(He))N=N.replace(He,"/");else if(N.match(At))N=N.replace(At,"/"),C.pop();else if(N==="."||N==="..")N="";else{var U=N.match(it);if(U){var te=U[0];N=N.slice(te.length),C.push(te)}else throw new Error("Unexpected dot segment condition")}return C.join("")}function pt(N){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=C.iri?h:c,te=[],re=D[(C.scheme||N.scheme||"").toLowerCase()];if(re&&re.serialize&&re.serialize(N,C),N.host&&!U.IPV6ADDRESS.test(N.host)){if(C.domainHost||re&&re.domainHost)try{N.host=C.iri?w.toUnicode(N.host):w.toASCII(N.host.replace(U.PCT_ENCODED,Fe).toLowerCase())}catch(qe){N.error=N.error||"Host's domain name can not be converted to "+(C.iri?"Unicode":"ASCII")+" via punycode: "+qe}}ze(N,U),C.reference!=="suffix"&&N.scheme&&(te.push(N.scheme),te.push(":"));var De=pe(N,C);if(De!==void 0&&(C.reference!=="suffix"&&te.push("//"),te.push(De),N.path&&N.path.charAt(0)!=="/"&&te.push("/")),N.path!==void 0){var Be=N.path;!C.absolutePath&&(!re||!re.absolutePath)&&(Be=St(Be)),De===void 0&&(Be=Be.replace(/^\/\//,"/%2F")),te.push(Be)}return N.query!==void 0&&(te.push("?"),te.push(N.query)),N.fragment!==void 0&&(te.push("#"),te.push(N.fragment)),te.join("")}function $t(N,C){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},te=arguments[3],re={};return te||(N=fe(pt(N,U),U),C=fe(pt(C,U),U)),U=U||{},!U.tolerant&&C.scheme?(re.scheme=C.scheme,re.userinfo=C.userinfo,re.host=C.host,re.port=C.port,re.path=St(C.path||""),re.query=C.query):(C.userinfo!==void 0||C.host!==void 0||C.port!==void 0?(re.userinfo=C.userinfo,re.host=C.host,re.port=C.port,re.path=St(C.path||""),re.query=C.query):(C.path?(C.path.charAt(0)==="/"?re.path=St(C.path):((N.userinfo!==void 0||N.host!==void 0||N.port!==void 0)&&!N.path?re.path="/"+C.path:N.path?re.path=N.path.slice(0,N.path.lastIndexOf("/")+1)+C.path:re.path=C.path,re.path=St(re.path)),re.query=C.query):(re.path=N.path,C.query!==void 0?re.query=C.query:re.query=N.query),re.userinfo=N.userinfo,re.host=N.host,re.port=N.port),re.scheme=N.scheme),re.fragment=C.fragment,re}function on(N,C,U){var te=d({scheme:"null"},U);return pt($t(fe(N,te),fe(C,te),te,!0),te)}function xt(N,C){return typeof N=="string"?N=pt(fe(N,C),C):b(N)==="object"&&(N=fe(pt(N,C),C)),N}function vn(N,C,U){return typeof N=="string"?N=pt(fe(N,U),U):b(N)==="object"&&(N=pt(N,U)),typeof C=="string"?C=pt(fe(C,U),U):b(C)==="object"&&(C=pt(C,U)),N===C}function sn(N,C){return N&&N.toString().replace(!C||!C.iri?c.ESCAPE:h.ESCAPE,ae)}function Ut(N,C){return N&&N.toString().replace(!C||!C.iri?c.PCT_ENCODED:h.PCT_ENCODED,Fe)}var ln={scheme:"http",domainHost:!0,parse:function(C,U){return C.host||(C.error=C.error||"HTTP URIs must have a host."),C},serialize:function(C,U){var te=String(C.scheme).toLowerCase()==="https";return(C.port===(te?443:80)||C.port==="")&&(C.port=void 0),C.path||(C.path="/"),C}},wn={scheme:"https",domainHost:ln.domainHost,parse:ln.parse,serialize:ln.serialize};function Cn(N){return typeof N.secure=="boolean"?N.secure:String(N.scheme).toLowerCase()==="wss"}var un={scheme:"ws",domainHost:!0,parse:function(C,U){var te=C;return te.secure=Cn(te),te.resourceName=(te.path||"/")+(te.query?"?"+te.query:""),te.path=void 0,te.query=void 0,te},serialize:function(C,U){if((C.port===(Cn(C)?443:80)||C.port==="")&&(C.port=void 0),typeof C.secure=="boolean"&&(C.scheme=C.secure?"wss":"ws",C.secure=void 0),C.resourceName){var te=C.resourceName.split("?"),re=y(te,2),De=re[0],Be=re[1];C.path=De&&De!=="/"?De:void 0,C.query=Be,C.resourceName=void 0}return C.fragment=void 0,C}},xn={scheme:"wss",domainHost:un.domainHost,parse:un.parse,serialize:un.serialize},or={},lr=!0,Hn="[A-Za-z0-9\\-\\.\\_\\~"+(lr?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Kt="[0-9A-Fa-f]",Kn=l(l("%[EFef]"+Kt+"%"+Kt+Kt+"%"+Kt+Kt)+"|"+l("%[89A-Fa-f]"+Kt+"%"+Kt+Kt)+"|"+l("%"+Kt+Kt)),Wn="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",sr="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Nn=a(sr,'[\\"\\\\]'),ur="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",cr=new RegExp(Hn,"g"),bn=new RegExp(Kn,"g"),In=new RegExp(a("[^]",Wn,"[\\.]",'[\\"]',Nn),"g"),Gn=new RegExp(a("[^]",Hn,ur),"g"),Ft=Gn;function zn(N){var C=Fe(N);return C.match(cr)?C:N}var Mn={scheme:"mailto",parse:function(C,U){var te=C,re=te.to=te.path?te.path.split(","):[];if(te.path=void 0,te.query){for(var De=!1,Be={},qe=te.query.split("&"),et=0,gt=qe.length;et<gt;++et){var nt=qe[et].split("=");switch(nt[0]){case"to":for(var yt=nt[1].split(","),Ot=0,vt=yt.length;Ot<vt;++Ot)re.push(yt[Ot]);break;case"subject":te.subject=Ut(nt[1],U);break;case"body":te.body=Ut(nt[1],U);break;default:De=!0,Be[Ut(nt[0],U)]=Ut(nt[1],U);break}}De&&(te.headers=Be)}te.query=void 0;for(var rt=0,bt=re.length;rt<bt;++rt){var ct=re[rt].split("@");if(ct[0]=Ut(ct[0]),U.unicodeSupport)ct[1]=Ut(ct[1],U).toLowerCase();else try{ct[1]=w.toASCII(Ut(ct[1],U).toLowerCase())}catch(cn){te.error=te.error||"Email address's domain name can not be converted to ASCII via punycode: "+cn}re[rt]=ct.join("@")}return te},serialize:function(C,U){var te=C,re=S(C.to);if(re){for(var De=0,Be=re.length;De<Be;++De){var qe=String(re[De]),et=qe.lastIndexOf("@"),gt=qe.slice(0,et).replace(bn,zn).replace(bn,g).replace(In,ae),nt=qe.slice(et+1);try{nt=U.iri?w.toUnicode(nt):w.toASCII(Ut(nt,U).toLowerCase())}catch(rt){te.error=te.error||"Email address's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+rt}re[De]=gt+"@"+nt}te.path=re.join(",")}var yt=C.headers=C.headers||{};C.subject&&(yt.subject=C.subject),C.body&&(yt.body=C.body);var Ot=[];for(var vt in yt)yt[vt]!==or[vt]&&Ot.push(vt.replace(bn,zn).replace(bn,g).replace(Gn,ae)+"="+yt[vt].replace(bn,zn).replace(bn,g).replace(Ft,ae));return Ot.length&&(te.query=Ot.join("&")),te}},Xn=/^([^\:]+)\:(.*)/,Jn={scheme:"urn",parse:function(C,U){var te=C.path&&C.path.match(Xn),re=C;if(te){var De=U.scheme||re.scheme||"urn",Be=te[1].toLowerCase(),qe=te[2],et=De+":"+(U.nid||Be),gt=D[et];re.nid=Be,re.nss=qe,re.path=void 0,gt&&(re=gt.parse(re,U))}else re.error=re.error||"URN can not be parsed.";return re},serialize:function(C,U){var te=U.scheme||C.scheme||"urn",re=C.nid,De=te+":"+(U.nid||re),Be=D[De];Be&&(C=Be.serialize(C,U));var qe=C,et=C.nss;return qe.path=(re||U.nid)+":"+et,qe}},Qn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,jn={scheme:"urn:uuid",parse:function(C,U){var te=C;return te.uuid=te.nss,te.nss=void 0,!U.tolerant&&(!te.uuid||!te.uuid.match(Qn))&&(te.error=te.error||"UUID is not valid."),te},serialize:function(C,U){var te=C;return te.nss=(C.uuid||"").toLowerCase(),te}};D[ln.scheme]=ln,D[wn.scheme]=wn,D[un.scheme]=un,D[xn.scheme]=xn,D[Mn.scheme]=Mn,D[Jn.scheme]=Jn,D[jn.scheme]=jn,f.SCHEMES=D,f.pctEncChar=ae,f.pctDecChars=Fe,f.parse=fe,f.removeDotSegments=St,f.serialize=pt,f.resolveComponents=$t,f.resolve=on,f.normalize=xt,f.equal=vn,f.escapeComponent=sn,f.unescapeComponent=Ut,Object.defineProperty(f,"__esModule",{value:!0})})},8466:function(ye,r,f){"use strict";f.d(r,{w:function(){return b}});var a=f(72473),l=f(95185);const b={tokenize:g,partial:!0};function g(S,d,k){return(0,a.f)(S,c,"linePrefix");function c(h){return h===null||(0,l.Ch)(h)?d(h):k(h)}}},72473:function(ye,r,f){"use strict";f.d(r,{f:function(){return l}});var a=f(95185);function l(b,g,S,d){const k=d?d-1:Number.POSITIVE_INFINITY;let c=0;return h;function h(E){return(0,a.xz)(E)?(b.enter(S),y(E)):g(E)}function y(E){return(0,a.xz)(E)&&c++<k?(b.consume(E),y):(b.exit(S),g(E))}}},95185:function(ye,r,f){"use strict";f.d(r,{jv:function(){return l},H$:function(){return S},n9:function(){return k},Av:function(){return c},pY:function(){return b},AF:function(){return g},sR:function(){return d},Ch:function(){return y},z3:function(){return h},xz:function(){return E},Xh:function(){return M},B8:function(){return z}});const a=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,l=x(/[A-Za-z]/),b=x(/\d/),g=x(/[\dA-Fa-f]/),S=x(/[\dA-Za-z]/),d=x(/[!-/:-@[-`{-~]/),k=x(/[#-'*+\--9=?A-Z^-~]/);function c(R){return R!==null&&(R<32||R===127)}function h(R){return R!==null&&(R<0||R===32)}function y(R){return R!==null&&R<-2}function E(R){return R===-2||R===-1||R===32}const z=x(/\s/),M=x(a);function x(R){return p;function p(v){return v!==null&&R.test(String.fromCharCode(v))}}},98391:function(ye,r,f){"use strict";f.d(r,{V:function(){return l},d:function(){return a}});function a(b,g,S,d){const k=b.length;let c=0,h;if(g<0?g=-g>k?0:k+g:g=g>k?k:g,S=S>0?S:0,d.length<1e4)h=Array.from(d),h.unshift(g,S),[].splice.apply(b,h);else for(S&&[].splice.apply(b,[g,S]);c<d.length;)h=d.slice(c,c+1e4),h.unshift(g,0),[].splice.apply(b,h),c+=1e4,g+=1e4}function l(b,g){return b.length>0?(a(b,b.length,0,g),b):g}},20898:function(ye,r,f){"use strict";f.d(r,{r:function(){return l}});var a=f(95185);function l(b){if(b===null||(0,a.z3)(b)||(0,a.B8)(b))return 1;if((0,a.Xh)(b))return 2}},87842:function(ye,r,f){"use strict";f.d(r,{W:function(){return b}});var a=f(98391);const l={}.hasOwnProperty;function b(c){const h={};let y=-1;for(;++y<c.length;)g(h,c[y]);return h}function g(c,h){let y;for(y in h){const z=(l.call(c,y)?c[y]:void 0)||(c[y]={}),M=h[y];let x;for(x in M){l.call(z,x)||(z[x]=[]);const R=M[x];S(z[x],Array.isArray(R)?R:R?[R]:[])}}}function S(c,h){let y=-1;const E=[];for(;++y<h.length;)(h[y].add==="after"?c:E).push(h[y]);(0,a.d)(c,0,0,E)}function d(c){const h={};let y=-1;for(;++y<c.length;)k(h,c[y]);return h}function k(c,h){let y;for(y in h){const z=(l.call(c,y)?c[y]:void 0)||(c[y]={}),M=h[y];let x;if(M)for(x in M)z[x]=M[x]}}},68578:function(ye,r,f){"use strict";f.d(r,{o:function(){return a}});function a(l,b){const g=Number.parseInt(l,b);return g<9||g===11||g>13&&g<32||g>126&&g<160||g>55295&&g<57344||g>64975&&g<65008||(g&65535)===65535||(g&65535)===65534||g>1114111?"\uFFFD":String.fromCharCode(g)}},12857:function(ye,r,f){"use strict";f.d(r,{v:function(){return g}});var a=f(63230),l=f(68578);const b=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function g(d){return d.replace(b,S)}function S(d,k,c){if(k)return k;if(c.charCodeAt(0)===35){const y=c.charCodeAt(1),E=y===120||y===88;return(0,l.o)(c.slice(E?2:1),E?16:10)}return(0,a.M)(c)||d}},36910:function(ye,r,f){"use strict";f.d(r,{d:function(){return a}});function a(l){return l.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},27828:function(ye,r,f){"use strict";f.d(r,{C:function(){return a}});function a(l,b,g){const S=[];let d=-1;for(;++d<l.length;){const k=l[d].resolveAll;k&&!S.includes(k)&&(b=k(b,g),S.push(k))}return b}},63230:function(ye,r,f){"use strict";f.d(r,{M:function(){return b}});var a=59,l;function b(g){var S="&"+g+";",d;return l=l||document.createElement("i"),l.innerHTML=S,d=l.textContent,d.charCodeAt(d.length-1)===a&&g!=="semi"||d===S?!1:d}},28865:function(ye,r,f){"use strict";f.d(r,{D:function(){return bi}});var a={};f.r(a),f.d(a,{attentionMarkers:function(){return pr},contentInitial:function(){return hr},disable:function(){return se},document:function(){return $r},flow:function(){return Vn},flowInitial:function(){return Cr},insideSpan:function(){return mr},string:function(){return Nr},text:function(){return zr}});var l={};f.r(l),f.d(l,{boolean:function(){return Ye},booleanish:function(){return Dt},commaOrSpaceSeparated:function(){return an},commaSeparated:function(){return Fn},number:function(){return Ce},overloadedBoolean:function(){return li},spaceSeparated:function(){return Ct}});var b=f(2784),g=f(13335),S={}.hasOwnProperty;function d(e){return!e||typeof e!="object"?"":S.call(e,"position")||S.call(e,"type")?c(e.position):S.call(e,"start")||S.call(e,"end")?c(e):S.call(e,"line")||S.call(e,"column")?k(e):""}function k(e){return h(e&&e.line)+":"+h(e&&e.column)}function c(e){return k(e&&e.start)+"-"+k(e&&e.end)}function h(e){return e&&typeof e=="number"?e:1}class y extends Error{constructor(t,n,i){var s=[null,null],u={start:{line:null,column:null},end:{line:null,column:null}},m;super(),typeof n=="string"&&(i=n,n=null),typeof i=="string"&&(m=i.indexOf(":"),m===-1?s[1]=i:(s[0]=i.slice(0,m),s[1]=i.slice(m+1))),n&&("type"in n||"position"in n?n.position&&(u=n.position):"start"in n||"end"in n?u=n:("line"in n||"column"in n)&&(u.start=n)),this.name=d(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack=typeof t=="object"?t.stack:"",this.reason=this.message,this.line=u.start.line,this.column=u.start.column,this.source=s[0],this.ruleId=s[1],this.position=u,this.file,this.fatal,this.url,this.note}}y.prototype.file="",y.prototype.name="",y.prototype.reason="",y.prototype.message="",y.prototype.stack="",y.prototype.fatal=null,y.prototype.column=null,y.prototype.line=null,y.prototype.source=null,y.prototype.ruleId=null,y.prototype.position=null;const E={basename:z,dirname:M,extname:x,join:R,sep:"/"};function z(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');j(e);let n=0,i=-1,s=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.charCodeAt(s)===47){if(u){n=s+1;break}}else i<0&&(u=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let m=-1,$=t.length-1;for(;s--;)if(e.charCodeAt(s)===47){if(u){n=s+1;break}}else m<0&&(u=!0,m=s+1),$>-1&&(e.charCodeAt(s)===t.charCodeAt($--)?$<0&&(i=s):($=-1,i=m));return n===i?i=m:i<0&&(i=e.length),e.slice(n,i)}function M(e){if(j(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.charCodeAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function x(e){j(e);let t=e.length,n=-1,i=0,s=-1,u=0,m;for(;t--;){const $=e.charCodeAt(t);if($===47){if(m){i=t+1;break}continue}n<0&&(m=!0,n=t+1),$===46?s<0?s=t:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||n<0||u===0||u===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function R(...e){let t=-1,n;for(;++t<e.length;)j(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":p(n)}function p(e){j(e);const t=e.charCodeAt(0)===47;let n=v(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function v(e,t){let n="",i=0,s=-1,u=0,m=-1,$,P;for(;++m<=e.length;){if(m<e.length)$=e.charCodeAt(m);else{if($===47)break;$=47}if($===47){if(!(s===m-1||u===1))if(s!==m-1&&u===2){if(n.length<2||i!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(P=n.lastIndexOf("/"),P!==n.length-1){P<0?(n="",i=0):(n=n.slice(0,P),i=n.length-1-n.lastIndexOf("/")),s=m,u=0;continue}}else if(n.length>0){n="",i=0,s=m,u=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,m):n=e.slice(s+1,m),i=m-s-1;s=m,u=0}else $===46&&u>-1?u++:u=-1}return n}function j(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _={cwd:I};function I(){return"/"}function H(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function O(e){if(typeof e=="string")e=new URL(e);else if(!H(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return A(e)}function A(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const i=t.charCodeAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const B=["history","path","basename","stem","extname","dirname"];class le{constructor(t){let n;t?typeof t=="string"||g(t)?n={value:t}:H(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=_.cwd(),this.value,this.stored,this.result,this.map;let i=-1;for(;++i<B.length;){const u=B[i];u in n&&n[u]!==void 0&&(this[u]=u==="history"?[...n[u]]:n[u])}let s;for(s in n)B.includes(s)||(this[s]=n[s])}get path(){return this.history[this.history.length-1]}set path(t){H(t)&&(t=O(t)),_e(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?E.dirname(this.path):void 0}set dirname(t){Te(this.basename,"dirname"),this.path=E.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?E.basename(this.path):void 0}set basename(t){_e(t,"basename"),be(t,"basename"),this.path=E.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?E.extname(this.path):void 0}set extname(t){if(be(t,"extname"),Te(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=E.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?E.basename(this.path,this.extname):void 0}set stem(t){_e(t,"stem"),be(t,"stem"),this.path=E.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t)}message(t,n,i){const s=new y(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=null,s}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}}function be(e,t){if(e&&e.includes(E.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+E.sep+"`")}function _e(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Te(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Le(e){if(e)throw e}var Ee=f(49385);function Ue(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Et(){const e=[],t={run:n,use:i};return t;function n(...s){let u=-1;const m=s.pop();if(typeof m!="function")throw new TypeError("Expected function as last argument, not "+m);$(null,...s);function $(P,...G){const X=e[++u];let he=-1;if(P){m(P);return}for(;++he<s.length;)(G[he]===null||G[he]===void 0)&&(G[he]=s[he]);s=G,X?Qt(X,$)(...G):m(null,...G)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function Qt(e,t){let n;return i;function i(...m){const $=e.length>m.length;let P;$&&m.push(s);try{P=e(...m)}catch(G){const X=G;if($&&n)throw X;return s(X)}$||(P instanceof Promise?P.then(u,s):P instanceof Error?s(P):u(P))}function s(m,...$){n||(n=!0,t(m,...$))}function u(m){s(null,m)}}const Ht=Ae().freeze(),lt={}.hasOwnProperty;function Ae(){const e=Et(),t=[];let n={},i,s=-1;return u.data=m,u.Parser=void 0,u.Compiler=void 0,u.freeze=$,u.attachers=t,u.use=P,u.parse=G,u.stringify=X,u.run=he,u.runSync=ce,u.process=de,u.processSync=Se,u;function u(){const Ne=Ae();let Ve=-1;for(;++Ve<t.length;)Ne.use(...t[Ve]);return Ne.data(Ee(!0,{},n)),Ne}function m(Ne,Ve){return typeof Ne=="string"?arguments.length===2?(D("data",i),n[Ne]=Ve,u):lt.call(n,Ne)&&n[Ne]||null:Ne?(D("data",i),n=Ne,u):n}function $(){if(i)return u;for(;++s<t.length;){const[Ne,...Ve]=t[s];if(Ve[0]===!1)continue;Ve[0]===!0&&(Ve[1]=void 0);const we=Ne.call(u,...Ve);typeof we=="function"&&e.use(we)}return i=!0,s=Number.POSITIVE_INFINITY,u}function P(Ne,...Ve){let we;if(D("use",i),Ne!=null)if(typeof Ne=="function")at(Ne,...Ve);else if(typeof Ne=="object")Array.isArray(Ne)?st(Ne):je(Ne);else throw new TypeError("Expected usable value, not `"+Ne+"`");return we&&(n.settings=Object.assign(n.settings||{},we)),u;function tt(me){if(typeof me=="function")at(me);else if(typeof me=="object")if(Array.isArray(me)){const[Ge,...ot]=me;at(Ge,...ot)}else je(me);else throw new TypeError("Expected usable value, not `"+me+"`")}function je(me){st(me.plugins),me.settings&&(we=Object.assign(we||{},me.settings))}function st(me){let Ge=-1;if(me!=null)if(Array.isArray(me))for(;++Ge<me.length;){const ot=me[Ge];tt(ot)}else throw new TypeError("Expected a list of plugins, not `"+me+"`")}function at(me,Ge){let ot=-1,ut;for(;++ot<t.length;)if(t[ot][0]===me){ut=t[ot];break}ut?(Ue(ut[1])&&Ue(Ge)&&(Ge=Ee(!0,ut[1],Ge)),ut[1]=Ge):t.push([...arguments])}}function G(Ne){u.freeze();const Ve=ze(Ne),we=u.Parser;return ee("parse",we),Y(we,"parse")?new we(String(Ve),Ve).parse():we(String(Ve),Ve)}function X(Ne,Ve){u.freeze();const we=ze(Ve),tt=u.Compiler;return w("stringify",tt),ae(Ne),Y(tt,"compile")?new tt(Ne,we).compile():tt(Ne,we)}function he(Ne,Ve,we){if(ae(Ne),u.freeze(),!we&&typeof Ve=="function"&&(we=Ve,Ve=void 0),!we)return new Promise(tt);tt(null,we);function tt(je,st){e.run(Ne,ze(Ve),at);function at(me,Ge,ot){Ge=Ge||Ne,me?st(me):je?je(Ge):we(null,Ge,ot)}}}function ce(Ne,Ve){let we,tt;return u.run(Ne,Ve,je),Fe("runSync","run",tt),we;function je(st,at){Le(st),we=at,tt=!0}}function de(Ne,Ve){if(u.freeze(),ee("process",u.Parser),w("process",u.Compiler),!Ve)return new Promise(we);we(null,Ve);function we(tt,je){const st=ze(Ne);u.run(u.parse(st),st,(me,Ge,ot)=>{if(me||!Ge||!ot)at(me);else{const ut=u.stringify(Ge,ot);ut==null||(Je(ut)?ot.value=ut:ot.result=ut),at(me,ot)}});function at(me,Ge){me||!Ge?je(me):tt?tt(Ge):Ve(null,Ge)}}}function Se(Ne){let Ve;u.freeze(),ee("processSync",u.Parser),w("processSync",u.Compiler);const we=ze(Ne);return u.process(we,tt),Fe("processSync","process",Ve),we;function tt(je){Ve=!0,Le(je)}}}function Y(e,t){return typeof e=="function"&&e.prototype&&(ve(e.prototype)||t in e.prototype)}function ve(e){let t;for(t in e)if(lt.call(e,t))return!0;return!1}function ee(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function w(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function D(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ae(e){if(!Ue(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Fe(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ze(e){return Ze(e)?e:new le(e)}function Ze(e){return Boolean(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Je(e){return typeof e=="string"||g(e)}function mt(e,t){var{includeImageAlt:n=!0}=t||{};return Z(e,n)}function Z(e,t){return e&&typeof e=="object"&&(e.value||(t?e.alt:"")||"children"in e&&q(e.children,t)||Array.isArray(e)&&q(e,t))||""}function q(e,t){for(var n=[],i=-1;++i<e.length;)n[i]=Z(e[i],t);return n.join("")}var fe=f(87842),pe=f(72473),J=f(95185);const He={tokenize:At};function At(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i($){if($===null){e.consume($);return}return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),(0,pe.f)(e,t,"linePrefix")}function s($){return e.enter("paragraph"),u($)}function u($){const P=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=P),n=P,m($)}function m($){if($===null){e.exit("chunkText"),e.exit("paragraph"),e.consume($);return}return(0,J.Ch)($)?(e.consume($),e.exit("chunkText"),u):(e.consume($),m)}}var it=f(98391);const St={tokenize:$t},pt={tokenize:on};function $t(e){const t=this,n=[];let i=0,s,u,m;return $;function $(je){if(i<n.length){const st=n[i];return t.containerState=st[1],e.attempt(st[0].continuation,P,G)(je)}return G(je)}function P(je){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&tt();const st=t.events.length;let at=st,me;for(;at--;)if(t.events[at][0]==="exit"&&t.events[at][1].type==="chunkFlow"){me=t.events[at][1].end;break}we(i);let Ge=st;for(;Ge<t.events.length;)t.events[Ge][1].end=Object.assign({},me),Ge++;return(0,it.d)(t.events,at+1,0,t.events.slice(st)),t.events.length=Ge,G(je)}return $(je)}function G(je){if(i===n.length){if(!s)return ce(je);if(s.currentConstruct&&s.currentConstruct.concrete)return Se(je);t.interrupt=Boolean(s.currentConstruct)}return t.containerState={},e.check(pt,X,he)(je)}function X(je){return s&&tt(),we(i),ce(je)}function he(je){return t.parser.lazy[t.now().line]=i!==n.length,m=t.now().offset,Se(je)}function ce(je){return t.containerState={},e.attempt(pt,de,Se)(je)}function de(je){return i++,n.push([t.currentConstruct,t.containerState]),ce(je)}function Se(je){if(je===null){s&&tt(),we(0),e.consume(je);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:u,_tokenizer:s}),Ne(je)}function Ne(je){if(je===null){Ve(e.exit("chunkFlow"),!0),we(0),e.consume(je);return}return(0,J.Ch)(je)?(e.consume(je),Ve(e.exit("chunkFlow")),i=0,t.interrupt=void 0,$):(e.consume(je),Ne)}function Ve(je,st){const at=t.sliceStream(je);if(st&&at.push(null),je.previous=u,u&&(u.next=je),u=je,s.defineSkip(je.start),s.write(at),t.parser.lazy[je.start.line]){let me=s.events.length;for(;me--;)if(s.events[me][1].start.offset<m&&(!s.events[me][1].end||s.events[me][1].end.offset>m))return;const Ge=t.events.length;let ot=Ge,ut,Bt;for(;ot--;)if(t.events[ot][0]==="exit"&&t.events[ot][1].type==="chunkFlow"){if(ut){Bt=t.events[ot][1].end;break}ut=!0}for(we(i),me=Ge;me<t.events.length;)t.events[me][1].end=Object.assign({},Bt),me++;(0,it.d)(t.events,ot+1,0,t.events.slice(Ge)),t.events.length=me}}function we(je){let st=n.length;for(;st-- >je;){const at=n[st];t.containerState=at[1],at[0].exit.call(t,e)}n.length=je}function tt(){s.write([null]),u=void 0,s=void 0,t.containerState._closeFlow=void 0}}function on(e,t,n){return(0,pe.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var xt=f(8466);function vn(e){const t={};let n=-1,i,s,u,m,$,P,G;for(;++n<e.length;){for(;n in t;)n=t[n];if(i=e[n],n&&i[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(P=i[1]._tokenizer.events,u=0,u<P.length&&P[u][1].type==="lineEndingBlank"&&(u+=2),u<P.length&&P[u][1].type==="content"))for(;++u<P.length&&P[u][1].type!=="content";)P[u][1].type==="chunkText"&&(P[u][1]._isInFirstContentOfListItem=!0,u++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,sn(e,n)),n=t[n],G=!0);else if(i[1]._container){for(u=n,s=void 0;u--&&(m=e[u],m[1].type==="lineEnding"||m[1].type==="lineEndingBlank");)m[0]==="enter"&&(s&&(e[s][1].type="lineEndingBlank"),m[1].type="lineEnding",s=u);s&&(i[1].end=Object.assign({},e[s][1].start),$=e.slice(s,n),$.unshift(i),(0,it.d)(e,s,n-s+1,$))}}return!G}function sn(e,t){const n=e[t][1],i=e[t][2];let s=t-1;const u=[],m=n._tokenizer||i.parser[n.contentType](n.start),$=m.events,P=[],G={};let X,he,ce=-1,de=n,Se=0,Ne=0;const Ve=[Ne];for(;de;){for(;e[++s][1]!==de;);u.push(s),de._tokenizer||(X=i.sliceStream(de),de.next||X.push(null),he&&m.defineSkip(de.start),de._isInFirstContentOfListItem&&(m._gfmTasklistFirstContentOfListItem=!0),m.write(X),de._isInFirstContentOfListItem&&(m._gfmTasklistFirstContentOfListItem=void 0)),he=de,de=de.next}for(de=n;++ce<$.length;)$[ce][0]==="exit"&&$[ce-1][0]==="enter"&&$[ce][1].type===$[ce-1][1].type&&$[ce][1].start.line!==$[ce][1].end.line&&(Ne=ce+1,Ve.push(Ne),de._tokenizer=void 0,de.previous=void 0,de=de.next);for(m.events=[],de?(de._tokenizer=void 0,de.previous=void 0):Ve.pop(),ce=Ve.length;ce--;){const we=$.slice(Ve[ce],Ve[ce+1]),tt=u.pop();P.unshift([tt,tt+we.length-1]),(0,it.d)(e,tt,2,we)}for(ce=-1;++ce<P.length;)G[Se+P[ce][0]]=Se+P[ce][1],Se+=P[ce][1]-P[ce][0]-1;return G}const Ut={tokenize:Cn,resolve:wn},ln={tokenize:un,partial:!0};function wn(e){return vn(e),e}function Cn(e,t){let n;return i;function i($){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s($)}function s($){return $===null?u($):(0,J.Ch)($)?e.check(ln,m,u)($):(e.consume($),s)}function u($){return e.exit("chunkContent"),e.exit("content"),t($)}function m($){return e.consume($),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function un(e,t,n){const i=this;return s;function s(m){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),(0,pe.f)(e,u,"linePrefix")}function u(m){if(m===null||(0,J.Ch)(m))return n(m);const $=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&$&&$[1].type==="linePrefix"&&$[2].sliceSerialize($[1],!0).length>=4?t(m):e.interrupt(i.parser.constructs.flow,n,t)(m)}}const xn={tokenize:or};function or(e){const t=this,n=e.attempt(xt.w,i,e.attempt(this.parser.constructs.flowInitial,s,(0,pe.f)(e,e.attempt(this.parser.constructs.flow,s,e.attempt(Ut,s)),"linePrefix")));return n;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const lr={resolveAll:Wn()},Hn=Kn("string"),Kt=Kn("text");function Kn(e){return{tokenize:t,resolveAll:Wn(e==="text"?sr:void 0)};function t(n){const i=this,s=this.parser.constructs[e],u=n.attempt(s,m,$);return m;function m(X){return G(X)?u(X):$(X)}function $(X){if(X===null){n.consume(X);return}return n.enter("data"),n.consume(X),P}function P(X){return G(X)?(n.exit("data"),u(X)):(n.consume(X),P)}function G(X){if(X===null)return!0;const he=s[X];let ce=-1;if(he)for(;++ce<he.length;){const de=he[ce];if(!de.previous||de.previous.call(i,i.previous))return!0}return!1}}}function Wn(e){return t;function t(n,i){let s=-1,u;for(;++s<=n.length;)u===void 0?n[s]&&n[s][1].type==="data"&&(u=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==u+2&&(n[u][1].end=n[s-1][1].end,n.splice(u+2,s-u-2),s=u+2),u=void 0);return e?e(n,i):n}}function sr(e,t){let n=-1;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let u=s.length,m=-1,$=0,P;for(;u--;){const G=s[u];if(typeof G=="string"){for(m=G.length;G.charCodeAt(m-1)===32;)$++,m--;if(m)break;m=-1}else if(G===-2)P=!0,$++;else if(G!==-1){u++;break}}if($){const G={type:n===e.length||P||$<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-$,offset:i.end.offset-$,_index:i.start._index+u,_bufferIndex:u?m:i.start._bufferIndex+m},end:Object.assign({},i.end)};i.end=Object.assign({},G.start),i.start.offset===i.end.offset?Object.assign(i,G):(e.splice(n,0,["enter",G,t],["exit",G,t]),n+=2)}n++}return e}var Nn=f(27828);function ur(e,t,n){let i=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const s={},u=[];let m=[],$=[],P=!0;const G={consume:st,enter:at,exit:me,attempt:ut(Ge),check:ut(ot),interrupt:ut(ot,{interrupt:!0})},X={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:Ne,sliceSerialize:Se,now:Ve,defineSkip:we,write:de};let he=t.tokenize.call(X,G),ce;return t.resolveAll&&u.push(t),X;function de(Me){return m=(0,it.V)(m,Me),tt(),m[m.length-1]!==null?[]:(Bt(t,0),X.events=(0,Nn.C)(u,X.events,X),X.events)}function Se(Me,ft){return bn(Ne(Me),ft)}function Ne(Me){return cr(m,Me)}function Ve(){return Object.assign({},i)}function we(Me){s[Me.line]=Me.column,kt()}function tt(){let Me;for(;i._index<m.length;){const ft=m[i._index];if(typeof ft=="string")for(Me=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Me&&i._bufferIndex<ft.length;)je(ft.charCodeAt(i._bufferIndex));else je(ft)}}function je(Me){P=void 0,ce=Me,he=he(Me)}function st(Me){(0,J.Ch)(Me)?(i.line++,i.column=1,i.offset+=Me===-3?2:1,kt()):Me!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===m[i._index].length&&(i._bufferIndex=-1,i._index++)),X.previous=Me,P=!0}function at(Me,ft){const jt=ft||{};return jt.type=Me,jt.start=Ve(),X.events.push(["enter",jt,X]),$.push(jt),jt}function me(Me){const ft=$.pop();return ft.end=Ve(),X.events.push(["exit",ft,X]),ft}function Ge(Me,ft){Bt(Me,ft.from)}function ot(Me,ft){ft.restore()}function ut(Me,ft){return jt;function jt(nn,gn,Lt){let Zt,Rt,V,L;return Array.isArray(nn)?Bn(nn):"tokenize"in nn?Bn([nn]):yr(nn);function yr(Vt){return wr;function wr(On){const ir=On!==null&&Vt[On],ar=On!==null&&Vt.null,Ir=[...Array.isArray(ir)?ir:ir?[ir]:[],...Array.isArray(ar)?ar:ar?[ar]:[]];return Bn(Ir)(On)}}function Bn(Vt){return Zt=Vt,Rt=0,Vt.length===0?Lt:rr(Vt[Rt])}function rr(Vt){return wr;function wr(On){return L=wt(),V=Vt,Vt.partial||(X.currentConstruct=Vt),Vt.name&&X.parser.constructs.disable.null.includes(Vt.name)?An(On):Vt.tokenize.call(ft?Object.assign(Object.create(X),ft):X,G,vr,An)(On)}}function vr(Vt){return P=!0,Me(V,L),gn}function An(Vt){return P=!0,L.restore(),++Rt<Zt.length?rr(Zt[Rt]):Lt}}}function Bt(Me,ft){Me.resolveAll&&!u.includes(Me)&&u.push(Me),Me.resolve&&(0,it.d)(X.events,ft,X.events.length-ft,Me.resolve(X.events.slice(ft),X)),Me.resolveTo&&(X.events=Me.resolveTo(X.events,X))}function wt(){const Me=Ve(),ft=X.previous,jt=X.currentConstruct,nn=X.events.length,gn=Array.from($);return{restore:Lt,from:nn};function Lt(){i=Me,X.previous=ft,X.currentConstruct=jt,X.events.length=nn,$=gn,kt()}}function kt(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function cr(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,u=t.end._bufferIndex;let m;return n===s?m=[e[n].slice(i,u)]:(m=e.slice(n,s),i>-1&&(m[0]=m[0].slice(i)),u>0&&m.push(e[s].slice(0,u))),m}function bn(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const u=e[n];let m;if(typeof u=="string")m=u;else switch(u){case-5:{m="\r";break}case-4:{m=`
|
|
23
|
-
`;break}case-3:{m=`\r
|
|
24
|
-
`;break}case-2:{m=t?" ":" ";break}case-1:{if(!t&&s)continue;m=" ";break}default:m=String.fromCharCode(u)}s=u===-2,i.push(m)}return i.join("")}const In={name:"thematicBreak",tokenize:Gn};function Gn(e,t,n){let i=0,s;return u;function u(P){return e.enter("thematicBreak"),s=P,m(P)}function m(P){return P===s?(e.enter("thematicBreakSequence"),$(P)):(0,J.xz)(P)?(0,pe.f)(e,m,"whitespace")(P):i<3||P!==null&&!(0,J.Ch)(P)?n(P):(e.exit("thematicBreak"),t(P))}function $(P){return P===s?(e.consume(P),i++,$):(e.exit("thematicBreakSequence"),m(P))}}const Ft={name:"list",tokenize:Xn,continuation:{tokenize:Jn},exit:jn},zn={tokenize:N,partial:!0},Mn={tokenize:Qn,partial:!0};function Xn(e,t,n){const i=this,s=i.events[i.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,m=0;return $;function $(de){const Se=i.containerState.type||(de===42||de===43||de===45?"listUnordered":"listOrdered");if(Se==="listUnordered"?!i.containerState.marker||de===i.containerState.marker:(0,J.pY)(de)){if(i.containerState.type||(i.containerState.type=Se,e.enter(Se,{_container:!0})),Se==="listUnordered")return e.enter("listItemPrefix"),de===42||de===45?e.check(In,n,G)(de):G(de);if(!i.interrupt||de===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),P(de)}return n(de)}function P(de){return(0,J.pY)(de)&&++m<10?(e.consume(de),P):(!i.interrupt||m<2)&&(i.containerState.marker?de===i.containerState.marker:de===41||de===46)?(e.exit("listItemValue"),G(de)):n(de)}function G(de){return e.enter("listItemMarker"),e.consume(de),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||de,e.check(xt.w,i.interrupt?n:X,e.attempt(zn,ce,he))}function X(de){return i.containerState.initialBlankLine=!0,u++,ce(de)}function he(de){return(0,J.xz)(de)?(e.enter("listItemPrefixWhitespace"),e.consume(de),e.exit("listItemPrefixWhitespace"),ce):n(de)}function ce(de){return i.containerState.size=u+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(de)}}function Jn(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(xt.w,s,u);function s($){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,(0,pe.f)(e,t,"listItemIndent",i.containerState.size+1)($)}function u($){return i.containerState.furtherBlankLines||!(0,J.xz)($)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,m($)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Mn,t,m)($))}function m($){return i.containerState._closeFlow=!0,i.interrupt=void 0,(0,pe.f)(e,e.attempt(Ft,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($)}}function Qn(e,t,n){const i=this;return(0,pe.f)(e,s,"listItemIndent",i.containerState.size+1);function s(u){const m=i.events[i.events.length-1];return m&&m[1].type==="listItemIndent"&&m[2].sliceSerialize(m[1],!0).length===i.containerState.size?t(u):n(u)}}function jn(e){e.exit(this.containerState.type)}function N(e,t,n){const i=this;return(0,pe.f)(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function s(u){const m=i.events[i.events.length-1];return!(0,J.xz)(u)&&m&&m[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}const C={name:"blockQuote",tokenize:U,continuation:{tokenize:te},exit:re};function U(e,t,n){const i=this;return s;function s(m){if(m===62){const $=i.containerState;return $.open||(e.enter("blockQuote",{_container:!0}),$.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(m),e.exit("blockQuoteMarker"),u}return n(m)}function u(m){return(0,J.xz)(m)?(e.enter("blockQuotePrefixWhitespace"),e.consume(m),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(m))}}function te(e,t,n){return(0,pe.f)(e,e.attempt(C,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function re(e){e.exit("blockQuote")}function De(e,t,n,i,s,u,m,$,P){const G=P||Number.POSITIVE_INFINITY;let X=0;return he;function he(we){return we===60?(e.enter(i),e.enter(s),e.enter(u),e.consume(we),e.exit(u),ce):we===null||we===41||(0,J.Av)(we)?n(we):(e.enter(i),e.enter(m),e.enter($),e.enter("chunkString",{contentType:"string"}),Ne(we))}function ce(we){return we===62?(e.enter(u),e.consume(we),e.exit(u),e.exit(s),e.exit(i),t):(e.enter($),e.enter("chunkString",{contentType:"string"}),de(we))}function de(we){return we===62?(e.exit("chunkString"),e.exit($),ce(we)):we===null||we===60||(0,J.Ch)(we)?n(we):(e.consume(we),we===92?Se:de)}function Se(we){return we===60||we===62||we===92?(e.consume(we),de):de(we)}function Ne(we){return we===40?++X>G?n(we):(e.consume(we),Ne):we===41?X--?(e.consume(we),Ne):(e.exit("chunkString"),e.exit($),e.exit(m),e.exit(i),t(we)):we===null||(0,J.z3)(we)?X?n(we):(e.exit("chunkString"),e.exit($),e.exit(m),e.exit(i),t(we)):(0,J.Av)(we)?n(we):(e.consume(we),we===92?Ve:Ne)}function Ve(we){return we===40||we===41||we===92?(e.consume(we),Ne):Ne(we)}}function Be(e,t,n,i,s,u){const m=this;let $=0,P;return G;function G(de){return e.enter(i),e.enter(s),e.consume(de),e.exit(s),e.enter(u),X}function X(de){return de===null||de===91||de===93&&!P||de===94&&!$&&"_hiddenFootnoteSupport"in m.parser.constructs||$>999?n(de):de===93?(e.exit(u),e.enter(s),e.consume(de),e.exit(s),e.exit(i),t):(0,J.Ch)(de)?(e.enter("lineEnding"),e.consume(de),e.exit("lineEnding"),X):(e.enter("chunkString",{contentType:"string"}),he(de))}function he(de){return de===null||de===91||de===93||(0,J.Ch)(de)||$++>999?(e.exit("chunkString"),X(de)):(e.consume(de),P=P||!(0,J.xz)(de),de===92?ce:he)}function ce(de){return de===91||de===92||de===93?(e.consume(de),$++,he):he(de)}}function qe(e,t,n,i,s,u){let m;return $;function $(ce){return e.enter(i),e.enter(s),e.consume(ce),e.exit(s),m=ce===40?41:ce,P}function P(ce){return ce===m?(e.enter(s),e.consume(ce),e.exit(s),e.exit(i),t):(e.enter(u),G(ce))}function G(ce){return ce===m?(e.exit(u),P(m)):ce===null?n(ce):(0,J.Ch)(ce)?(e.enter("lineEnding"),e.consume(ce),e.exit("lineEnding"),(0,pe.f)(e,G,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),X(ce))}function X(ce){return ce===m||ce===null||(0,J.Ch)(ce)?(e.exit("chunkString"),G(ce)):(e.consume(ce),ce===92?he:X)}function he(ce){return ce===m||ce===92?(e.consume(ce),X):X(ce)}}function et(e,t){let n;return i;function i(s){return(0,J.Ch)(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):(0,J.xz)(s)?(0,pe.f)(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}var gt=f(36910);const nt={name:"definition",tokenize:Ot},yt={tokenize:vt,partial:!0};function Ot(e,t,n){const i=this;let s;return u;function u(P){return e.enter("definition"),Be.call(i,e,m,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(P)}function m(P){return s=(0,gt.d)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),P===58?(e.enter("definitionMarker"),e.consume(P),e.exit("definitionMarker"),et(e,De(e,e.attempt(yt,(0,pe.f)(e,$,"whitespace"),(0,pe.f)(e,$,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(P)}function $(P){return P===null||(0,J.Ch)(P)?(e.exit("definition"),i.parser.defined.includes(s)||i.parser.defined.push(s),t(P)):n(P)}}function vt(e,t,n){return i;function i(m){return(0,J.z3)(m)?et(e,s)(m):n(m)}function s(m){return m===34||m===39||m===40?qe(e,(0,pe.f)(e,u,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(m):n(m)}function u(m){return m===null||(0,J.Ch)(m)?t(m):n(m)}}const rt={name:"codeIndented",tokenize:ct},bt={tokenize:cn,partial:!0};function ct(e,t,n){const i=this;return s;function s(G){return e.enter("codeIndented"),(0,pe.f)(e,u,"linePrefix",4+1)(G)}function u(G){const X=i.events[i.events.length-1];return X&&X[1].type==="linePrefix"&&X[2].sliceSerialize(X[1],!0).length>=4?m(G):n(G)}function m(G){return G===null?P(G):(0,J.Ch)(G)?e.attempt(bt,m,P)(G):(e.enter("codeFlowValue"),$(G))}function $(G){return G===null||(0,J.Ch)(G)?(e.exit("codeFlowValue"),m(G)):(e.consume(G),$)}function P(G){return e.exit("codeIndented"),t(G)}}function cn(e,t,n){const i=this;return s;function s(m){return i.parser.lazy[i.now().line]?n(m):(0,J.Ch)(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),s):(0,pe.f)(e,u,"linePrefix",4+1)(m)}function u(m){const $=i.events[i.events.length-1];return $&&$[1].type==="linePrefix"&&$[2].sliceSerialize($[1],!0).length>=4?t(m):(0,J.Ch)(m)?s(m):n(m)}}const zt={name:"headingAtx",tokenize:dt,resolve:Wt};function Wt(e,t){let n=e.length-2,i=3,s,u;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},u={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},(0,it.d)(e,i,n-i+1,[["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t]])),e}function dt(e,t,n){const i=this;let s=0;return u;function u(X){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),m(X)}function m(X){return X===35&&s++<6?(e.consume(X),m):X===null||(0,J.z3)(X)?(e.exit("atxHeadingSequence"),i.interrupt?t(X):$(X)):n(X)}function $(X){return X===35?(e.enter("atxHeadingSequence"),P(X)):X===null||(0,J.Ch)(X)?(e.exit("atxHeading"),t(X)):(0,J.xz)(X)?(0,pe.f)(e,$,"whitespace")(X):(e.enter("atxHeadingText"),G(X))}function P(X){return X===35?(e.consume(X),P):(e.exit("atxHeadingSequence"),$(X))}function G(X){return X===null||X===35||(0,J.z3)(X)?(e.exit("atxHeadingText"),$(X)):(e.consume(X),G)}}const Mt={name:"setextUnderline",tokenize:Yt,resolveTo:Gt};function Gt(e,t){let n=e.length,i,s,u;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!u&&e[n][1].type==="definition"&&(u=n);const m={type:"setextHeading",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[s][1].type="setextHeadingText",u?(e.splice(s,0,["enter",m,t]),e.splice(u+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[u][1].end)):e[i][1]=m,e.push(["exit",m,t]),e}function Yt(e,t,n){const i=this;let s=i.events.length,u,m;for(;s--;)if(i.events[s][1].type!=="lineEnding"&&i.events[s][1].type!=="linePrefix"&&i.events[s][1].type!=="content"){m=i.events[s][1].type==="paragraph";break}return $;function $(X){return!i.parser.lazy[i.now().line]&&(i.interrupt||m)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),u=X,P(X)):n(X)}function P(X){return X===u?(e.consume(X),P):(e.exit("setextHeadingLineSequence"),(0,pe.f)(e,G,"lineSuffix")(X))}function G(X){return X===null||(0,J.Ch)(X)?(e.exit("setextHeadingLine"),t(X)):n(X)}}const fn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qt=["pre","script","style","textarea"],_n={name:"htmlFlow",tokenize:dn,resolveTo:kn,concrete:!0},Dn={tokenize:En,partial:!0};function kn(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function dn(e,t,n){const i=this;let s,u,m,$,P;return G;function G(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),X}function X(L){return L===33?(e.consume(L),he):L===47?(e.consume(L),Se):L===63?(e.consume(L),s=3,i.interrupt?t:Zt):(0,J.jv)(L)?(e.consume(L),m=String.fromCharCode(L),u=!0,Ne):n(L)}function he(L){return L===45?(e.consume(L),s=2,ce):L===91?(e.consume(L),s=5,m="CDATA[",$=0,de):(0,J.jv)(L)?(e.consume(L),s=4,i.interrupt?t:Zt):n(L)}function ce(L){return L===45?(e.consume(L),i.interrupt?t:Zt):n(L)}function de(L){return L===m.charCodeAt($++)?(e.consume(L),$===m.length?i.interrupt?t:wt:de):n(L)}function Se(L){return(0,J.jv)(L)?(e.consume(L),m=String.fromCharCode(L),Ne):n(L)}function Ne(L){return L===null||L===47||L===62||(0,J.z3)(L)?L!==47&&u&&qt.includes(m.toLowerCase())?(s=1,i.interrupt?t(L):wt(L)):fn.includes(m.toLowerCase())?(s=6,L===47?(e.consume(L),Ve):i.interrupt?t(L):wt(L)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(L):u?tt(L):we(L)):L===45||(0,J.H$)(L)?(e.consume(L),m+=String.fromCharCode(L),Ne):n(L)}function Ve(L){return L===62?(e.consume(L),i.interrupt?t:wt):n(L)}function we(L){return(0,J.xz)(L)?(e.consume(L),we):ut(L)}function tt(L){return L===47?(e.consume(L),ut):L===58||L===95||(0,J.jv)(L)?(e.consume(L),je):(0,J.xz)(L)?(e.consume(L),tt):ut(L)}function je(L){return L===45||L===46||L===58||L===95||(0,J.H$)(L)?(e.consume(L),je):st(L)}function st(L){return L===61?(e.consume(L),at):(0,J.xz)(L)?(e.consume(L),st):tt(L)}function at(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),P=L,me):(0,J.xz)(L)?(e.consume(L),at):(P=null,Ge(L))}function me(L){return L===null||(0,J.Ch)(L)?n(L):L===P?(e.consume(L),ot):(e.consume(L),me)}function Ge(L){return L===null||L===34||L===39||L===60||L===61||L===62||L===96||(0,J.z3)(L)?st(L):(e.consume(L),Ge)}function ot(L){return L===47||L===62||(0,J.xz)(L)?tt(L):n(L)}function ut(L){return L===62?(e.consume(L),Bt):n(L)}function Bt(L){return(0,J.xz)(L)?(e.consume(L),Bt):L===null||(0,J.Ch)(L)?wt(L):n(L)}function wt(L){return L===45&&s===2?(e.consume(L),jt):L===60&&s===1?(e.consume(L),nn):L===62&&s===4?(e.consume(L),Rt):L===63&&s===3?(e.consume(L),Zt):L===93&&s===5?(e.consume(L),Lt):(0,J.Ch)(L)&&(s===6||s===7)?e.check(Dn,Rt,kt)(L):L===null||(0,J.Ch)(L)?kt(L):(e.consume(L),wt)}function kt(L){return e.exit("htmlFlowData"),Me(L)}function Me(L){return L===null?V(L):(0,J.Ch)(L)?e.attempt({tokenize:ft,partial:!0},Me,V)(L):(e.enter("htmlFlowData"),wt(L))}function ft(L,yr,Bn){return rr;function rr(An){return L.enter("lineEnding"),L.consume(An),L.exit("lineEnding"),vr}function vr(An){return i.parser.lazy[i.now().line]?Bn(An):yr(An)}}function jt(L){return L===45?(e.consume(L),Zt):wt(L)}function nn(L){return L===47?(e.consume(L),m="",gn):wt(L)}function gn(L){return L===62&&qt.includes(m.toLowerCase())?(e.consume(L),Rt):(0,J.jv)(L)&&m.length<8?(e.consume(L),m+=String.fromCharCode(L),gn):wt(L)}function Lt(L){return L===93?(e.consume(L),Zt):wt(L)}function Zt(L){return L===62?(e.consume(L),Rt):L===45&&s===2?(e.consume(L),Zt):wt(L)}function Rt(L){return L===null||(0,J.Ch)(L)?(e.exit("htmlFlowData"),V(L)):(e.consume(L),Rt)}function V(L){return e.exit("htmlFlow"),t(L)}}function En(e,t,n){return i;function i(s){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),e.attempt(xt.w,t,n)}}const en={name:"codeFenced",tokenize:Sn,concrete:!0};function Sn(e,t,n){const i=this,s={tokenize:at,partial:!0},u={tokenize:st,partial:!0},m=this.events[this.events.length-1],$=m&&m[1].type==="linePrefix"?m[2].sliceSerialize(m[1],!0).length:0;let P=0,G;return X;function X(me){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),G=me,he(me)}function he(me){return me===G?(e.consume(me),P++,he):(e.exit("codeFencedFenceSequence"),P<3?n(me):(0,pe.f)(e,ce,"whitespace")(me))}function ce(me){return me===null||(0,J.Ch)(me)?Ve(me):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),de(me))}function de(me){return me===null||(0,J.z3)(me)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,pe.f)(e,Se,"whitespace")(me)):me===96&&me===G?n(me):(e.consume(me),de)}function Se(me){return me===null||(0,J.Ch)(me)?Ve(me):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),Ne(me))}function Ne(me){return me===null||(0,J.Ch)(me)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),Ve(me)):me===96&&me===G?n(me):(e.consume(me),Ne)}function Ve(me){return e.exit("codeFencedFence"),i.interrupt?t(me):we(me)}function we(me){return me===null?je(me):(0,J.Ch)(me)?e.attempt(u,e.attempt(s,je,$?(0,pe.f)(e,we,"linePrefix",$+1):we),je)(me):(e.enter("codeFlowValue"),tt(me))}function tt(me){return me===null||(0,J.Ch)(me)?(e.exit("codeFlowValue"),we(me)):(e.consume(me),tt)}function je(me){return e.exit("codeFenced"),t(me)}function st(me,Ge,ot){const ut=this;return Bt;function Bt(kt){return me.enter("lineEnding"),me.consume(kt),me.exit("lineEnding"),wt}function wt(kt){return ut.parser.lazy[ut.now().line]?ot(kt):Ge(kt)}}function at(me,Ge,ot){let ut=0;return(0,pe.f)(me,Bt,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Bt(Me){return me.enter("codeFencedFence"),me.enter("codeFencedFenceSequence"),wt(Me)}function wt(Me){return Me===G?(me.consume(Me),ut++,wt):ut<P?ot(Me):(me.exit("codeFencedFenceSequence"),(0,pe.f)(me,kt,"whitespace")(Me))}function kt(Me){return Me===null||(0,J.Ch)(Me)?(me.exit("codeFencedFence"),Ge(Me)):ot(Me)}}}const Rn=document.createElement("i");function hn(e){const t="&"+e+";";Rn.innerHTML=t;const n=Rn.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Yn={name:"characterReference",tokenize:fr};function fr(e,t,n){const i=this;let s=0,u,m;return $;function $(he){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(he),e.exit("characterReferenceMarker"),P}function P(he){return he===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(he),e.exit("characterReferenceMarkerNumeric"),G):(e.enter("characterReferenceValue"),u=31,m=J.H$,X(he))}function G(he){return he===88||he===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(he),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,m=J.AF,X):(e.enter("characterReferenceValue"),u=7,m=J.pY,X(he))}function X(he){let ce;return he===59&&s?(ce=e.exit("characterReferenceValue"),m===J.H$&&!hn(i.sliceSerialize(ce))?n(he):(e.enter("characterReferenceMarker"),e.consume(he),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):m(he)&&s++<u?(e.consume(he),X):n(he)}}const Ln={name:"characterEscape",tokenize:$n};function $n(e,t,n){return i;function i(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),s}function s(u){return(0,J.sR)(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(u)}}const mn={name:"lineEnding",tokenize:Zn};function Zn(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),(0,pe.f)(e,t,"linePrefix")}}const pn={name:"labelEnd",tokenize:Q,resolveTo:T,resolveAll:F},dr={tokenize:ne},qn={tokenize:W},o={tokenize:K};function F(e){let t=-1,n;for(;++t<e.length;)n=e[t][1],(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++);return e}function T(e,t){let n=e.length,i=0,s,u,m,$;for(;n--;)if(s=e[n][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(m){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(m=n);const P={type:e[u][1].type==="labelLink"?"link":"image",start:Object.assign({},e[u][1].start),end:Object.assign({},e[e.length-1][1].end)},G={type:"label",start:Object.assign({},e[u][1].start),end:Object.assign({},e[m][1].end)},X={type:"labelText",start:Object.assign({},e[u+i+2][1].end),end:Object.assign({},e[m-2][1].start)};return $=[["enter",P,t],["enter",G,t]],$=(0,it.V)($,e.slice(u+1,u+i+3)),$=(0,it.V)($,[["enter",X,t]]),$=(0,it.V)($,(0,Nn.C)(t.parser.constructs.insideSpan.null,e.slice(u+i+4,m-3),t)),$=(0,it.V)($,[["exit",X,t],e[m-2],e[m-1],["exit",G,t]]),$=(0,it.V)($,e.slice(m+1)),$=(0,it.V)($,[["exit",P,t]]),(0,it.d)(e,u,e.length,$),e}function Q(e,t,n){const i=this;let s=i.events.length,u,m;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){u=i.events[s][1];break}return $;function $(X){return u?u._inactive?G(X):(m=i.parser.defined.includes((0,gt.d)(i.sliceSerialize({start:u.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(X),e.exit("labelMarker"),e.exit("labelEnd"),P):n(X)}function P(X){return X===40?e.attempt(dr,t,m?t:G)(X):X===91?e.attempt(qn,t,m?e.attempt(o,t,G):G)(X):m?t(X):G(X)}function G(X){return u._balanced=!0,n(X)}}function ne(e,t,n){return i;function i(P){return e.enter("resource"),e.enter("resourceMarker"),e.consume(P),e.exit("resourceMarker"),et(e,s)}function s(P){return P===41?$(P):De(e,u,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(P)}function u(P){return(0,J.z3)(P)?et(e,m)(P):$(P)}function m(P){return P===34||P===39||P===40?qe(e,et(e,$),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(P):$(P)}function $(P){return P===41?(e.enter("resourceMarker"),e.consume(P),e.exit("resourceMarker"),e.exit("resource"),t):n(P)}}function W(e,t,n){const i=this;return s;function s(m){return Be.call(i,e,u,n,"reference","referenceMarker","referenceString")(m)}function u(m){return i.parser.defined.includes((0,gt.d)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(m):n(m)}}function K(e,t,n){return i;function i(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),s}function s(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):n(u)}}const oe={name:"labelStartImage",tokenize:ie,resolveAll:pn.resolveAll};function ie(e,t,n){const i=this;return s;function s($){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume($),e.exit("labelImageMarker"),u}function u($){return $===91?(e.enter("labelMarker"),e.consume($),e.exit("labelMarker"),e.exit("labelImage"),m):n($)}function m($){return $===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n($):t($)}}var Re=f(20898);const ge={name:"attention",tokenize:xe,resolveAll:Oe};function Oe(e,t){let n=-1,i,s,u,m,$,P,G,X;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;P=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const he=Object.assign({},e[i][1].end),ce=Object.assign({},e[n][1].start);$e(he,-P),$e(ce,P),m={type:P>1?"strongSequence":"emphasisSequence",start:he,end:Object.assign({},e[i][1].end)},$={type:P>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:ce},u={type:P>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)},s={type:P>1?"strong":"emphasis",start:Object.assign({},m.start),end:Object.assign({},$.end)},e[i][1].end=Object.assign({},m.start),e[n][1].start=Object.assign({},$.end),G=[],e[i][1].end.offset-e[i][1].start.offset&&(G=(0,it.V)(G,[["enter",e[i][1],t],["exit",e[i][1],t]])),G=(0,it.V)(G,[["enter",s,t],["enter",m,t],["exit",m,t],["enter",u,t]]),G=(0,it.V)(G,(0,Nn.C)(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),G=(0,it.V)(G,[["exit",u,t],["enter",$,t],["exit",$,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(X=2,G=(0,it.V)(G,[["enter",e[n][1],t],["exit",e[n][1],t]])):X=0,(0,it.d)(e,i-1,n-i+3,G),n=i+G.length-X-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function xe(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=(0,Re.r)(i);let u;return m;function m(P){return e.enter("attentionSequence"),u=P,$(P)}function $(P){if(P===u)return e.consume(P),$;const G=e.exit("attentionSequence"),X=(0,Re.r)(P),he=!X||X===2&&s||n.includes(P),ce=!s||s===2&&X||n.includes(i);return G._open=Boolean(u===42?he:he&&(s||!ce)),G._close=Boolean(u===42?ce:ce&&(X||!he)),t(P)}}function $e(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ke={name:"autolink",tokenize:Pe};function Pe(e,t,n){let i=1;return s;function s(Se){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(Se),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(Se){return(0,J.jv)(Se)?(e.consume(Se),m):(0,J.n9)(Se)?G(Se):n(Se)}function m(Se){return Se===43||Se===45||Se===46||(0,J.H$)(Se)?$(Se):G(Se)}function $(Se){return Se===58?(e.consume(Se),P):(Se===43||Se===45||Se===46||(0,J.H$)(Se))&&i++<32?(e.consume(Se),$):G(Se)}function P(Se){return Se===62?(e.exit("autolinkProtocol"),de(Se)):Se===null||Se===32||Se===60||(0,J.Av)(Se)?n(Se):(e.consume(Se),P)}function G(Se){return Se===64?(e.consume(Se),i=0,X):(0,J.n9)(Se)?(e.consume(Se),G):n(Se)}function X(Se){return(0,J.H$)(Se)?he(Se):n(Se)}function he(Se){return Se===46?(e.consume(Se),i=0,X):Se===62?(e.exit("autolinkProtocol").type="autolinkEmail",de(Se)):ce(Se)}function ce(Se){return(Se===45||(0,J.H$)(Se))&&i++<63?(e.consume(Se),Se===45?ce:he):n(Se)}function de(Se){return e.enter("autolinkMarker"),e.consume(Se),e.exit("autolinkMarker"),e.exit("autolink"),t}}const Xe={name:"htmlText",tokenize:Qe};function Qe(e,t,n){const i=this;let s,u,m,$;return P;function P(V){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(V),G}function G(V){return V===33?(e.consume(V),X):V===47?(e.consume(V),Ge):V===63?(e.consume(V),at):(0,J.jv)(V)?(e.consume(V),Bt):n(V)}function X(V){return V===45?(e.consume(V),he):V===91?(e.consume(V),u="CDATA[",m=0,Ve):(0,J.jv)(V)?(e.consume(V),st):n(V)}function he(V){return V===45?(e.consume(V),ce):n(V)}function ce(V){return V===null||V===62?n(V):V===45?(e.consume(V),de):Se(V)}function de(V){return V===null||V===62?n(V):Se(V)}function Se(V){return V===null?n(V):V===45?(e.consume(V),Ne):(0,J.Ch)(V)?($=Se,Lt(V)):(e.consume(V),Se)}function Ne(V){return V===45?(e.consume(V),Rt):Se(V)}function Ve(V){return V===u.charCodeAt(m++)?(e.consume(V),m===u.length?we:Ve):n(V)}function we(V){return V===null?n(V):V===93?(e.consume(V),tt):(0,J.Ch)(V)?($=we,Lt(V)):(e.consume(V),we)}function tt(V){return V===93?(e.consume(V),je):we(V)}function je(V){return V===62?Rt(V):V===93?(e.consume(V),je):we(V)}function st(V){return V===null||V===62?Rt(V):(0,J.Ch)(V)?($=st,Lt(V)):(e.consume(V),st)}function at(V){return V===null?n(V):V===63?(e.consume(V),me):(0,J.Ch)(V)?($=at,Lt(V)):(e.consume(V),at)}function me(V){return V===62?Rt(V):at(V)}function Ge(V){return(0,J.jv)(V)?(e.consume(V),ot):n(V)}function ot(V){return V===45||(0,J.H$)(V)?(e.consume(V),ot):ut(V)}function ut(V){return(0,J.Ch)(V)?($=ut,Lt(V)):(0,J.xz)(V)?(e.consume(V),ut):Rt(V)}function Bt(V){return V===45||(0,J.H$)(V)?(e.consume(V),Bt):V===47||V===62||(0,J.z3)(V)?wt(V):n(V)}function wt(V){return V===47?(e.consume(V),Rt):V===58||V===95||(0,J.jv)(V)?(e.consume(V),kt):(0,J.Ch)(V)?($=wt,Lt(V)):(0,J.xz)(V)?(e.consume(V),wt):Rt(V)}function kt(V){return V===45||V===46||V===58||V===95||(0,J.H$)(V)?(e.consume(V),kt):Me(V)}function Me(V){return V===61?(e.consume(V),ft):(0,J.Ch)(V)?($=Me,Lt(V)):(0,J.xz)(V)?(e.consume(V),Me):wt(V)}function ft(V){return V===null||V===60||V===61||V===62||V===96?n(V):V===34||V===39?(e.consume(V),s=V,jt):(0,J.Ch)(V)?($=ft,Lt(V)):(0,J.xz)(V)?(e.consume(V),ft):(e.consume(V),s=void 0,gn)}function jt(V){return V===s?(e.consume(V),nn):V===null?n(V):(0,J.Ch)(V)?($=jt,Lt(V)):(e.consume(V),jt)}function nn(V){return V===62||V===47||(0,J.z3)(V)?wt(V):n(V)}function gn(V){return V===null||V===34||V===39||V===60||V===61||V===96?n(V):V===62||(0,J.z3)(V)?wt(V):(e.consume(V),gn)}function Lt(V){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),(0,pe.f)(e,Zt,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zt(V){return e.enter("htmlTextData"),$(V)}function Rt(V){return V===62?(e.consume(V),e.exit("htmlTextData"),e.exit("htmlText"),t):n(V)}}const ht={name:"labelStartLink",tokenize:Tt,resolveAll:pn.resolveAll};function Tt(e,t,n){const i=this;return s;function s(m){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelLink"),u}function u(m){return m===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(m):t(m)}}const Xt={name:"hardBreakEscape",tokenize:Rr};function Rr(e,t,n){return i;function i(u){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(u),s}function s(u){return(0,J.Ch)(u)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(u)):n(u)}}const Er={name:"codeText",tokenize:Sr,resolve:er,previous:Fr};function er(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function Fr(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Sr(e,t,n){const i=this;let s=0,u,m;return $;function $(ce){return e.enter("codeText"),e.enter("codeTextSequence"),P(ce)}function P(ce){return ce===96?(e.consume(ce),s++,P):(e.exit("codeTextSequence"),G(ce))}function G(ce){return ce===null?n(ce):ce===96?(m=e.enter("codeTextSequence"),u=0,he(ce)):ce===32?(e.enter("space"),e.consume(ce),e.exit("space"),G):(0,J.Ch)(ce)?(e.enter("lineEnding"),e.consume(ce),e.exit("lineEnding"),G):(e.enter("codeTextData"),X(ce))}function X(ce){return ce===null||ce===32||ce===96||(0,J.Ch)(ce)?(e.exit("codeTextData"),G(ce)):(e.consume(ce),X)}function he(ce){return ce===96?(e.consume(ce),u++,he):u===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(ce)):(m.type="codeTextData",X(ce))}}const $r={[42]:Ft,[43]:Ft,[45]:Ft,[48]:Ft,[49]:Ft,[50]:Ft,[51]:Ft,[52]:Ft,[53]:Ft,[54]:Ft,[55]:Ft,[56]:Ft,[57]:Ft,[62]:C},hr={[91]:nt},Cr={[-2]:rt,[-1]:rt,[32]:rt},Vn={[35]:zt,[42]:In,[45]:[Mt,In],[60]:_n,[61]:Mt,[95]:In,[96]:en,[126]:en},Nr={[38]:Yn,[92]:Ln},zr={[-5]:mn,[-4]:mn,[-3]:mn,[33]:oe,[38]:Yn,[42]:ge,[60]:[ke,Xe],[91]:ht,[92]:[Xt,Ln],[93]:pn,[95]:ge,[96]:Er},mr={null:[ge,lr]},pr={null:[42,95]},se={null:[]};function Mr(e={}){const t=(0,fe.W)([a].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:i(He),document:i(St),flow:i(xn),string:i(Hn),text:i(Kt)};return n;function i(s){return u;function u(m){return ur(n,s,m)}}}const _r=/[\0\t\n\r]/g;function jr(){let e=1,t="",n=!0,i;return s;function s(u,m,$){const P=[];let G,X,he,ce,de;for(u=t+u.toString(m),he=0,t="",n&&(u.charCodeAt(0)===65279&&he++,n=void 0);he<u.length;){if(_r.lastIndex=he,G=_r.exec(u),ce=G&&G.index!==void 0?G.index:u.length,de=u.charCodeAt(ce),!G){t=u.slice(he);break}if(de===10&&he===ce&&i)P.push(-3),i=void 0;else switch(i&&(P.push(-5),i=void 0),he<ce&&(P.push(u.slice(he,ce)),e+=ce-he),de){case 0:{P.push(65533),e++;break}case 9:{for(X=Math.ceil(e/4)*4,P.push(-2);e++<X;)P.push(-1);break}case 10:{P.push(-4),e=1;break}default:i=!0,e=1}he=ce+1}return $&&(i&&P.push(-5),t&&P.push(t),P.push(null)),P}}function Lr(e){for(;!vn(e););return e}var tr=f(68578),_i=f(12857),Pi=f(63230);const Vr={}.hasOwnProperty,Ai=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Oi(n)(Lr(Mr(n).document().write(jr()(e,t,!0))))};function Oi(e={}){const t=Jr({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:P($i),autolinkProtocol:kt,autolinkEmail:kt,atxHeading:P(ki),blockQuote:P(ar),characterEscape:kt,characterReference:kt,codeFenced:P(Ir),codeFencedFenceInfo:G,codeFencedFenceMeta:G,codeIndented:P(Ir,G),codeText:P(Ja,G),codeTextData:kt,data:kt,codeFlowValue:kt,definition:P(Qa),definitionDestinationString:G,definitionLabelString:G,definitionTitleString:G,emphasis:P(Ya),hardBreakEscape:P(Ei),hardBreakTrailing:P(Ei),htmlFlow:P(Si,G),htmlFlowData:kt,htmlText:P(Si,G),htmlTextData:kt,image:P(Za),label:G,link:P($i),listItem:P(qa),listItemValue:Ne,listOrdered:P(Ci,Se),listUnordered:P(Ci),paragraph:P(eo),reference:vr,referenceString:G,resourceDestinationString:G,resourceTitleString:G,setextHeading:P(ki),strong:P(to),thematicBreak:P(ro)},exit:{atxHeading:he(),atxHeadingSequence:ot,autolink:he(),autolinkEmail:ir,autolinkProtocol:On,blockQuote:he(),characterEscapeValue:Me,characterReferenceMarkerHexadecimal:Vt,characterReferenceMarkerNumeric:Vt,characterReferenceValue:wr,codeFenced:he(je),codeFencedFence:tt,codeFencedFenceInfo:Ve,codeFencedFenceMeta:we,codeFlowValue:Me,codeIndented:he(st),codeText:he(Lt),codeTextData:Me,data:Me,definition:he(),definitionDestinationString:Ge,definitionLabelString:at,definitionTitleString:me,emphasis:he(),hardBreakEscape:he(jt),hardBreakTrailing:he(jt),htmlFlow:he(nn),htmlFlowData:Me,htmlText:he(gn),htmlTextData:Me,image:he(Rt),label:L,labelText:V,lineEnding:ft,link:he(Zt),listItem:he(),listOrdered:he(),listUnordered:he(),paragraph:he(),referenceString:An,resourceDestinationString:yr,resourceTitleString:Bn,resource:rr,setextHeading:he(wt),setextHeadingLineSequence:Bt,setextHeadingText:ut,strong:he(),thematicBreak:he()}},e.mdastExtensions||[]),n={};return i;function i(ue){let Ie={type:"root",children:[]};const Ke=[Ie],_t=[],yn=[],Dr={stack:Ke,tokenStack:_t,config:t,enter:X,exit:ce,buffer:G,resume:de,setData:u,getData:m};let Pt=-1;for(;++Pt<ue.length;)if(ue[Pt][1].type==="listOrdered"||ue[Pt][1].type==="listUnordered")if(ue[Pt][0]==="enter")yn.push(Pt);else{const rn=yn.pop();Pt=s(ue,rn,Pt)}for(Pt=-1;++Pt<ue.length;){const rn=t[ue[Pt][0]];Vr.call(rn,ue[Pt][1].type)&&rn[ue[Pt][1].type].call(Object.assign({sliceSerialize:ue[Pt][2].sliceSerialize},Dr),ue[Pt][1])}if(_t.length>0)throw new Error("Cannot close document, a token (`"+_t[_t.length-1].type+"`, "+d({start:_t[_t.length-1].start,end:_t[_t.length-1].end})+") is still open");for(Ie.position={start:$(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:$(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Pt=-1;++Pt<t.transforms.length;)Ie=t.transforms[Pt](Ie)||Ie;return Ie}function s(ue,Ie,Ke){let _t=Ie-1,yn=-1,Dr=!1,Pt,rn,br,kr;for(;++_t<=Ke;){const It=ue[_t];if(It[1].type==="listUnordered"||It[1].type==="listOrdered"||It[1].type==="blockQuote"?(It[0]==="enter"?yn++:yn--,kr=void 0):It[1].type==="lineEndingBlank"?It[0]==="enter"&&(Pt&&!kr&&!yn&&!br&&(br=_t),kr=void 0):It[1].type==="linePrefix"||It[1].type==="listItemValue"||It[1].type==="listItemMarker"||It[1].type==="listItemPrefix"||It[1].type==="listItemPrefixWhitespace"||(kr=void 0),!yn&&It[0]==="enter"&&It[1].type==="listItemPrefix"||yn===-1&&It[0]==="exit"&&(It[1].type==="listUnordered"||It[1].type==="listOrdered")){if(Pt){let Xr=_t;for(rn=void 0;Xr--;){const Tn=ue[Xr];if(Tn[1].type==="lineEnding"||Tn[1].type==="lineEndingBlank"){if(Tn[0]==="exit")continue;rn&&(ue[rn][1].type="lineEndingBlank",Dr=!0),Tn[1].type="lineEnding",rn=Xr}else if(!(Tn[1].type==="linePrefix"||Tn[1].type==="blockQuotePrefix"||Tn[1].type==="blockQuotePrefixWhitespace"||Tn[1].type==="blockQuoteMarker"||Tn[1].type==="listItemIndent"))break}br&&(!rn||br<rn)&&(Pt._spread=!0),Pt.end=Object.assign({},rn?ue[rn][1].start:It[1].end),ue.splice(rn||_t,0,["exit",Pt,It[2]]),_t++,Ke++}It[1].type==="listItemPrefix"&&(Pt={type:"listItem",_spread:!1,start:Object.assign({},It[1].start)},ue.splice(_t,0,["enter",Pt,It[2]]),_t++,Ke++,br=void 0,kr=!0)}}return ue[Ie][1]._spread=Dr,Ke}function u(ue,Ie){n[ue]=Ie}function m(ue){return n[ue]}function $(ue){return{line:ue.line,column:ue.column,offset:ue.offset}}function P(ue,Ie){return Ke;function Ke(_t){X.call(this,ue(_t),_t),Ie&&Ie.call(this,_t)}}function G(){this.stack.push({type:"fragment",children:[]})}function X(ue,Ie){return this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push(Ie),ue.position={start:$(Ie.start)},ue}function he(ue){return Ie;function Ie(Ke){ue&&ue.call(this,Ke),ce.call(this,Ke)}}function ce(ue){const Ie=this.stack.pop(),Ke=this.tokenStack.pop();if(Ke){if(Ke.type!==ue.type)throw new Error("Cannot close `"+ue.type+"` ("+d({start:ue.start,end:ue.end})+"): a different token (`"+Ke.type+"`, "+d({start:Ke.start,end:Ke.end})+") is open")}else throw new Error("Cannot close `"+ue.type+"` ("+d({start:ue.start,end:ue.end})+"): it\u2019s not open");return Ie.position.end=$(ue.end),Ie}function de(){return mt(this.stack.pop())}function Se(){u("expectingFirstListItemValue",!0)}function Ne(ue){if(m("expectingFirstListItemValue")){const Ie=this.stack[this.stack.length-2];Ie.start=Number.parseInt(this.sliceSerialize(ue),10),u("expectingFirstListItemValue")}}function Ve(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.lang=ue}function we(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.meta=ue}function tt(){m("flowCodeInside")||(this.buffer(),u("flowCodeInside",!0))}function je(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u("flowCodeInside")}function st(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=ue.replace(/(\r?\n|\r)$/g,"")}function at(ue){const Ie=this.resume(),Ke=this.stack[this.stack.length-1];Ke.label=Ie,Ke.identifier=(0,gt.d)(this.sliceSerialize(ue)).toLowerCase()}function me(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=ue}function Ge(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=ue}function ot(ue){const Ie=this.stack[this.stack.length-1];if(!Ie.depth){const Ke=this.sliceSerialize(ue).length;Ie.depth=Ke}}function ut(){u("setextHeadingSlurpLineEnding",!0)}function Bt(ue){const Ie=this.stack[this.stack.length-1];Ie.depth=this.sliceSerialize(ue).charCodeAt(0)===61?1:2}function wt(){u("setextHeadingSlurpLineEnding")}function kt(ue){const Ie=this.stack[this.stack.length-1];let Ke=Ie.children[Ie.children.length-1];(!Ke||Ke.type!=="text")&&(Ke=no(),Ke.position={start:$(ue.start)},Ie.children.push(Ke)),this.stack.push(Ke)}function Me(ue){const Ie=this.stack.pop();Ie.value+=this.sliceSerialize(ue),Ie.position.end=$(ue.end)}function ft(ue){const Ie=this.stack[this.stack.length-1];if(m("atHardBreak")){const Ke=Ie.children[Ie.children.length-1];Ke.position.end=$(ue.end),u("atHardBreak");return}!m("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(Ie.type)&&(kt.call(this,ue),Me.call(this,ue))}function jt(){u("atHardBreak",!0)}function nn(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=ue}function gn(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=ue}function Lt(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=ue}function Zt(){const ue=this.stack[this.stack.length-1];m("inReference")?(ue.type+="Reference",ue.referenceType=m("referenceType")||"shortcut",delete ue.url,delete ue.title):(delete ue.identifier,delete ue.label),u("referenceType")}function Rt(){const ue=this.stack[this.stack.length-1];m("inReference")?(ue.type+="Reference",ue.referenceType=m("referenceType")||"shortcut",delete ue.url,delete ue.title):(delete ue.identifier,delete ue.label),u("referenceType")}function V(ue){const Ie=this.stack[this.stack.length-2],Ke=this.sliceSerialize(ue);Ie.label=(0,_i.v)(Ke),Ie.identifier=(0,gt.d)(Ke).toLowerCase()}function L(){const ue=this.stack[this.stack.length-1],Ie=this.resume(),Ke=this.stack[this.stack.length-1];u("inReference",!0),Ke.type==="link"?Ke.children=ue.children:Ke.alt=Ie}function yr(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=ue}function Bn(){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=ue}function rr(){u("inReference")}function vr(){u("referenceType","collapsed")}function An(ue){const Ie=this.resume(),Ke=this.stack[this.stack.length-1];Ke.label=Ie,Ke.identifier=(0,gt.d)(this.sliceSerialize(ue)).toLowerCase(),u("referenceType","full")}function Vt(ue){u("characterReferenceType",ue.type)}function wr(ue){const Ie=this.sliceSerialize(ue),Ke=m("characterReferenceType");let _t;Ke?(_t=(0,tr.o)(Ie,Ke==="characterReferenceMarkerNumeric"?10:16),u("characterReferenceType")):_t=(0,Pi.M)(Ie);const yn=this.stack.pop();yn.value+=_t,yn.position.end=$(ue.end)}function On(ue){Me.call(this,ue);const Ie=this.stack[this.stack.length-1];Ie.url=this.sliceSerialize(ue)}function ir(ue){Me.call(this,ue);const Ie=this.stack[this.stack.length-1];Ie.url="mailto:"+this.sliceSerialize(ue)}function ar(){return{type:"blockquote",children:[]}}function Ir(){return{type:"code",lang:null,meta:null,value:""}}function Ja(){return{type:"inlineCode",value:""}}function Qa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ya(){return{type:"emphasis",children:[]}}function ki(){return{type:"heading",depth:void 0,children:[]}}function Ei(){return{type:"break"}}function Si(){return{type:"html",value:""}}function Za(){return{type:"image",title:null,url:"",alt:null}}function $i(){return{type:"link",title:null,url:"",children:[]}}function Ci(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function qa(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function eo(){return{type:"paragraph",children:[]}}function to(){return{type:"strong",children:[]}}function no(){return{type:"text",value:""}}function ro(){return{type:"thematicBreak"}}}function Jr(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?Jr(e,i):Ti(e,i)}return e}function Ti(e,t){let n;for(n in t)if(Vr.call(t,n)){const i=n==="canContainEols"||n==="transforms",u=(Vr.call(e,n)?e[n]:void 0)||(e[n]=i?[]:{}),m=t[n];m&&(i?e[n]=[...u,...m]:Object.assign(u,m))}}function xi(e){Object.assign(this,{Parser:n=>{const i=this.data("settings");return Ai(n,Object.assign({},i,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Ii=xi,Nt=function(e,t,n){var i={type:String(e)};return n==null&&(typeof t=="string"||Array.isArray(t))?n=t:Object.assign(i,t),Array.isArray(n)?i.children=n:n!=null&&(i.value=String(n)),i},Qr=f(1481),Ur=Yr("start"),Br=Yr("end");function io(e){return{start:Ur(e),end:Br(e)}}function Yr(e){return t;function t(n){var i=n&&n.position&&n.position[e]||{};return{line:i.line||null,column:i.column||null,offset:i.offset>-1?i.offset:null}}}function Di(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}var Ri=f(82324);const Fi=function(e,t,n,i){typeof t=="function"&&typeof n!="function"&&(i=n,n=t,t=null),(0,Ri.S4)(e,t,s,i);function s(u,m){var $=m[m.length-1];return n(u,$?$.children.indexOf(u):null,$)}},Zr={}.hasOwnProperty;function Ni(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Fi(e,"definition",n),i;function n(s){const u=qr(s.identifier);u&&!Zr.call(t,u)&&(t[u]=s)}function i(s){const u=qr(s);return u&&Zr.call(t,u)?t[u]:null}}function qr(e){return String(e||"").toUpperCase()}const Pr={}.hasOwnProperty;function zi(e,t){const n=t.data||{};return"value"in t&&!(Pr.call(n,"hName")||Pr.call(n,"hProperties")||Pr.call(n,"hChildren"))?e.augment(t,Nt("text",t.value)):e(t,"div",Jt(e,t))}function ei(e,t,n){const i=t&&t.type;let s;if(!i)throw new Error("Expected node, got `"+t+"`");return Pr.call(e.handlers,i)?s=e.handlers[i]:e.passThrough&&e.passThrough.includes(i)?s=Mi:s=e.unknownHandler,(typeof s=="function"?s:zi)(e,t,n)}function Mi(e,t){return"children"in t?{...t,children:Jt(e,t)}:t}function Jt(e,t){const n=[];if("children"in t){const i=t.children;let s=-1;for(;++s<i.length;){const u=ei(e,i[s],t);if(u){if(s&&i[s-1].type==="break"&&(!Array.isArray(u)&&u.type==="text"&&(u.value=u.value.replace(/^\s+/,"")),!Array.isArray(u)&&u.type==="element")){const m=u.children[0];m&&m.type==="text"&&(m.value=m.value.replace(/^\s+/,""))}Array.isArray(u)?n.push(...u):n.push(u)}}}return n}const ji={'"':"quot","&":"amp","<":"lt",">":"gt"};function Li(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+ji[n]+";"}}function ti(e,t){const n=Li(Vi(e||""));if(!t)return n;const i=n.indexOf(":"),s=n.indexOf("?"),u=n.indexOf("#"),m=n.indexOf("/");return i<0||m>-1&&i>m||s>-1&&i>s||u>-1&&i>u||t.test(n.slice(0,i))?n:""}function Vi(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const u=e.charCodeAt(n);let m="";if(u===37&&(0,J.H$)(e.charCodeAt(n+1))&&(0,J.H$)(e.charCodeAt(n+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(m=String.fromCharCode(u));else if(u>55295&&u<57344){const $=e.charCodeAt(n+1);u<56320&&$>56319&&$<57344?(m=String.fromCharCode(u,$),s=1):m="\uFFFD"}else m=String.fromCharCode(u);m&&(t.push(e.slice(i,n),encodeURIComponent(m)),i=n+s+1,m=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function Pn(e,t){const n=[];let i=-1;for(t&&n.push(Nt("text",`
|
|
25
|
-
`));++i<e.length;)i&&n.push(Nt("text",`
|
|
26
|
-
`)),n.push(e[i]);return t&&e.length>0&&n.push(Nt("text",`
|
|
27
|
-
`)),n}function Ui(e){let t=-1;const n=[];for(;++t<e.footnoteOrder.length;){const i=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!i)continue;const s=Jt(e,i),u=String(i.identifier),m=ti(u.toLowerCase());let $=0;const P=[];for(;++$<=e.footnoteCounts[u];){const he={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+m+($>1?"-"+$:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21A9"}]};$>1&&he.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String($)}]}),P.length>0&&P.push({type:"text",value:" "}),P.push(he)}const G=s[s.length-1];if(G&&G.type==="element"&&G.tagName==="p"){const he=G.children[G.children.length-1];he&&he.type==="text"?he.value+=" ":G.children.push({type:"text",value:" "}),G.children.push(...P)}else s.push(...P);const X={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+m},children:Pn(s,!0)};i.position&&(X.position=i.position),n.push(X)}return n.length===0?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[Nt("text",e.footnoteLabel)]},{type:"text",value:`
|
|
28
|
-
`},{type:"element",tagName:"ol",properties:{},children:Pn(n,!0)},{type:"text",value:`
|
|
29
|
-
`}]}}function Bi(e,t){return e(t,"blockquote",Pn(Jt(e,t),!0))}function Hi(e,t){return[e(t,"br"),Nt("text",`
|
|
30
|
-
`)]}function Ki(e,t){const n=t.value?t.value+`
|
|
31
|
-
`:"",i=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),s={};i&&(s.className=["language-"+i]);const u=e(t,"code",s,[Nt("text",n)]);return t.meta&&(u.data={meta:t.meta}),e(t.position,"pre",[u])}function Wi(e,t){return e(t,"del",Jt(e,t))}function Gi(e,t){return e(t,"em",Jt(e,t))}function ni(e,t){const n=String(t.identifier),i=ti(n.toLowerCase()),s=e.footnoteOrder.indexOf(n);let u;s===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,u=e.footnoteOrder.length):(e.footnoteCounts[n]++,u=s+1);const m=e.footnoteCounts[n];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[Nt("text",String(u))])])}function Xi(e,t){const n=e.footnoteById;let i=1;for(;i in n;)i++;const s=String(i);return n[s]={type:"footnoteDefinition",identifier:s,children:[{type:"paragraph",children:t.children}],position:t.position},ni(e,{type:"footnoteReference",identifier:s,position:t.position})}function Ji(e,t){return e(t,"h"+t.depth,Jt(e,t))}function Qi(e,t){return e.dangerous?e.augment(t,Nt("raw",t.value)):null}var Ar=f(81737);function ri(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return Nt("text","!["+t.alt+i);const s=Jt(e,t),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift(Nt("text","["));const m=s[s.length-1];return m&&m.type==="text"?m.value+=i:s.push(Nt("text",i)),s}function Yi(e,t){const n=e.definition(t.identifier);if(!n)return ri(e,t);const i={src:Ar(n.url||""),alt:t.alt};return n.title!==null&&n.title!==void 0&&(i.title=n.title),e(t,"img",i)}function Zi(e,t){const n={src:Ar(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}function qi(e,t){return e(t,"code",[Nt("text",t.value.replace(/\r?\n|\r/g," "))])}function ea(e,t){const n=e.definition(t.identifier);if(!n)return ri(e,t);const i={href:Ar(n.url||"")};return n.title!==null&&n.title!==void 0&&(i.title=n.title),e(t,"a",i,Jt(e,t))}function ta(e,t){const n={href:Ar(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,Jt(e,t))}function na(e,t,n){const i=Jt(e,t),s=n?ra(n):ii(t),u={},m=[];if(typeof t.checked=="boolean"){let G;i[0]&&i[0].type==="element"&&i[0].tagName==="p"?G=i[0]:(G=e(null,"p",[]),i.unshift(G)),G.children.length>0&&G.children.unshift(Nt("text"," ")),G.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),u.className=["task-list-item"]}let $=-1;for(;++$<i.length;){const G=i[$];(s||$!==0||G.type!=="element"||G.tagName!=="p")&&m.push(Nt("text",`
|
|
32
|
-
`)),G.type==="element"&&G.tagName==="p"&&!s?m.push(...G.children):m.push(G)}const P=i[i.length-1];return P&&(s||!("tagName"in P)||P.tagName!=="p")&&m.push(Nt("text",`
|
|
33
|
-
`)),e(t,"li",u,m)}function ra(e){let t=e.spread;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=ii(n[i]);return Boolean(t)}function ii(e){const t=e.spread;return t==null?e.children.length>1:t}function ia(e,t){const n={},i=t.ordered?"ol":"ul",s=Jt(e,t);let u=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++u<s.length;){const m=s[u];if(m.type==="element"&&m.tagName==="li"&&m.properties&&Array.isArray(m.properties.className)&&m.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}return e(t,i,n,Pn(s,!0))}function aa(e,t){return e(t,"p",Jt(e,t))}function oa(e,t){return e.augment(t,Nt("root",Pn(Jt(e,t))))}function la(e,t){return e(t,"strong",Jt(e,t))}function sa(e,t){const n=t.children;let i=-1;const s=t.align||[],u=[];for(;++i<n.length;){const m=n[i].children,$=i===0?"th":"td",P=[];let G=-1;const X=t.align?s.length:m.length;for(;++G<X;){const he=m[G];P.push(e(he,$,{align:s[G]},he?Jt(e,he):[]))}u[i]=e(n[i],"tr",Pn(P,!0))}return e(t,"table",Pn([e(u[0].position,"thead",Pn([u[0]],!0))].concat(u[1]?e({start:Ur(u[1]),end:Br(u[u.length-1])},"tbody",Pn(u.slice(1),!0)):[]),!0))}function ua(e,t){return e.augment(t,Nt("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}function ca(e,t){return e(t,"hr")}const fa={blockquote:Bi,break:Hi,code:Ki,delete:Wi,emphasis:Gi,footnoteReference:ni,footnote:Xi,heading:Ji,html:Qi,imageReference:Yi,image:Zi,inlineCode:qi,linkReference:ea,link:ta,listItem:na,list:ia,paragraph:aa,root:oa,strong:la,table:sa,text:ua,thematicBreak:ca,toml:Or,yaml:Or,definition:Or,footnoteDefinition:Or};function Or(){return null}const da={}.hasOwnProperty;function ha(e,t){const n=t||{},i=n.allowDangerousHtml||!1,s={};return m.dangerous=i,m.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,m.footnoteLabel=n.footnoteLabel||"Footnotes",m.footnoteBackLabel=n.footnoteBackLabel||"Back to content",m.definition=Ni(e),m.footnoteById=s,m.footnoteOrder=[],m.footnoteCounts={},m.augment=u,m.handlers={...fa,...n.handlers},m.unknownHandler=n.unknownHandler,m.passThrough=n.passThrough,(0,Qr.Vn)(e,"footnoteDefinition",$=>{const P=String($.identifier).toUpperCase();da.call(s,P)||(s[P]=$)}),m;function u($,P){if($&&"data"in $&&$.data){const G=$.data;G.hName&&(P.type!=="element"&&(P={type:"element",tagName:"",properties:{},children:[]}),P.tagName=G.hName),P.type==="element"&&G.hProperties&&(P.properties={...P.properties,...G.hProperties}),"children"in P&&P.children&&G.hChildren&&(P.children=G.hChildren)}if($){const G="type"in $?$:{position:$};Di(G)||(P.position={start:Ur(G),end:Br(G)})}return P}function m($,P,G,X){return Array.isArray(G)&&(X=G,G={}),u($,{type:"element",tagName:P,properties:G||{},children:X||[]})}}function ai(e,t){const n=ha(e,t),i=ei(n,e,null),s=Ui(n);return s&&i.children.push(Nt("text",`
|
|
34
|
-
`),s),Array.isArray(i)?{type:"root",children:i}:i}var ma=function(e,t){return e&&"run"in e?pa(e,t):ga(e||t)};function pa(e,t){return(n,i,s)=>{e.run(ai(n,t),i,u=>{s(u)})}}function ga(e){return t=>ai(t,e)}var We=f(13980);class gr{constructor(t,n,i){this.property=t,this.normal=n,i&&(this.space=i)}}gr.prototype.property={},gr.prototype.normal={},gr.prototype.space=null;function oi(e,t){for(var n={},i={},s=-1;++s<e.length;)Object.assign(n,e[s].property),Object.assign(i,e[s].normal);return new gr(n,i,t)}function Hr(e){return e.toLowerCase()}class tn{constructor(t,n){this.property=t,this.attribute=n}}tn.prototype.space=null,tn.prototype.attribute=null,tn.prototype.property=null,tn.prototype.boolean=!1,tn.prototype.booleanish=!1,tn.prototype.overloadedBoolean=!1,tn.prototype.number=!1,tn.prototype.commaSeparated=!1,tn.prototype.spaceSeparated=!1,tn.prototype.commaOrSpaceSeparated=!1,tn.prototype.mustUseProperty=!1,tn.prototype.defined=!1;var ya=0,Ye=Un(),Dt=Un(),li=Un(),Ce=Un(),Ct=Un(),Fn=Un(),an=Un();function Un(){return 2**++ya}var Tr=Object.keys(l);class Kr extends tn{constructor(t,n,i,s){var u=-1;for(super(t,n),si(this,"space",s);++u<Tr.length;)si(this,Tr[u],(i&l[Tr[u]])===l[Tr[u]])}}Kr.prototype.defined=!0;function si(e,t,n){n&&(e[t]=n)}var va={}.hasOwnProperty;function nr(e){var t={},n={},i,s;for(i in e.properties)va.call(e.properties,i)&&(s=new Kr(i,e.transform(e.attributes,i),e.properties[i],e.space),e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[Hr(i)]=i,n[Hr(s.attribute)]=i);return new gr(t,n,e.space)}var ui=nr({space:"xlink",transform:wa,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function wa(e,t){return"xlink:"+t.slice(5).toLowerCase()}var ci=nr({space:"xml",transform:ba,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ba(e,t){return"xml:"+t.slice(3).toLowerCase()}function fi(e,t){return t in e?e[t]:t}function di(e,t){return fi(e,t.toLowerCase())}var hi=nr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:di,properties:{xmlns:null,xmlnsXLink:null}}),mi=nr({transform:ka,properties:{ariaActiveDescendant:null,ariaAtomic:Dt,ariaAutoComplete:null,ariaBusy:Dt,ariaChecked:Dt,ariaColCount:Ce,ariaColIndex:Ce,ariaColSpan:Ce,ariaControls:Ct,ariaCurrent:null,ariaDescribedBy:Ct,ariaDetails:null,ariaDisabled:Dt,ariaDropEffect:Ct,ariaErrorMessage:null,ariaExpanded:Dt,ariaFlowTo:Ct,ariaGrabbed:Dt,ariaHasPopup:null,ariaHidden:Dt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ct,ariaLevel:Ce,ariaLive:null,ariaModal:Dt,ariaMultiLine:Dt,ariaMultiSelectable:Dt,ariaOrientation:null,ariaOwns:Ct,ariaPlaceholder:null,ariaPosInSet:Ce,ariaPressed:Dt,ariaReadOnly:Dt,ariaRelevant:null,ariaRequired:Dt,ariaRoleDescription:Ct,ariaRowCount:Ce,ariaRowIndex:Ce,ariaRowSpan:Ce,ariaSelected:Dt,ariaSetSize:Ce,ariaSort:null,ariaValueMax:Ce,ariaValueMin:Ce,ariaValueNow:Ce,ariaValueText:null,role:null}});function ka(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Ea=nr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:di,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fn,acceptCharset:Ct,accessKey:Ct,action:null,allow:null,allowFullScreen:Ye,allowPaymentRequest:Ye,allowUserMedia:Ye,alt:null,as:null,async:Ye,autoCapitalize:null,autoComplete:Ct,autoFocus:Ye,autoPlay:Ye,capture:Ye,charSet:null,checked:Ye,cite:null,className:Ct,cols:Ce,colSpan:null,content:null,contentEditable:Dt,controls:Ye,controlsList:Ct,coords:Ce|Fn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ye,defer:Ye,dir:null,dirName:null,disabled:Ye,download:li,draggable:Dt,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ye,formTarget:null,headers:Ct,height:Ce,hidden:Ye,high:Ce,href:null,hrefLang:null,htmlFor:Ct,httpEquiv:Ct,id:null,imageSizes:null,imageSrcSet:Fn,inputMode:null,integrity:null,is:null,isMap:Ye,itemId:null,itemProp:Ct,itemRef:Ct,itemScope:Ye,itemType:Ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ye,low:Ce,manifest:null,max:null,maxLength:Ce,media:null,method:null,min:null,minLength:Ce,multiple:Ye,muted:Ye,name:null,nonce:null,noModule:Ye,noValidate:Ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ye,optimum:Ce,pattern:null,ping:Ct,placeholder:null,playsInline:Ye,poster:null,preload:null,readOnly:Ye,referrerPolicy:null,rel:Ct,required:Ye,reversed:Ye,rows:Ce,rowSpan:Ce,sandbox:Ct,scope:null,scoped:Ye,seamless:Ye,selected:Ye,shape:null,size:Ce,sizes:null,slot:null,span:Ce,spellCheck:Dt,src:null,srcDoc:null,srcLang:null,srcSet:Fn,start:Ce,step:null,style:null,tabIndex:Ce,target:null,title:null,translate:null,type:null,typeMustMatch:Ye,useMap:null,value:Dt,width:Ce,wrap:null,align:null,aLink:null,archive:Ct,axis:null,background:null,bgColor:null,border:Ce,borderColor:null,bottomMargin:Ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ye,declare:Ye,event:null,face:null,frame:null,frameBorder:null,hSpace:Ce,leftMargin:Ce,link:null,longDesc:null,lowSrc:null,marginHeight:Ce,marginWidth:Ce,noResize:Ye,noHref:Ye,noShade:Ye,noWrap:Ye,object:null,profile:null,prompt:null,rev:null,rightMargin:Ce,rules:null,scheme:null,scrolling:Dt,standby:null,summary:null,text:null,topMargin:Ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ye,disableRemotePlayback:Ye,prefix:null,property:null,results:Ce,security:null,unselectable:null}}),Sa=nr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:fi,properties:{about:an,accentHeight:Ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ce,amplitude:Ce,arabicForm:null,ascent:Ce,attributeName:null,attributeType:null,azimuth:Ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ce,by:null,calcMode:null,capHeight:Ce,className:Ct,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ce,diffuseConstant:Ce,direction:null,display:null,dur:null,divisor:Ce,dominantBaseline:null,download:Ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ce,enableBackground:null,end:null,event:null,exponent:Ce,externalResourcesRequired:null,fill:null,fillOpacity:Ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fn,g2:Fn,glyphName:Fn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ce,horizOriginX:Ce,horizOriginY:Ce,id:null,ideographic:Ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ce,k:Ce,k1:Ce,k2:Ce,k3:Ce,k4:Ce,kernelMatrix:an,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ce,overlineThickness:Ce,paintOrder:null,panose1:null,path:null,pathLength:Ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ce,pointsAtY:Ce,pointsAtZ:Ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:an,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:an,rev:an,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:an,requiredFeatures:an,requiredFonts:an,requiredFormats:an,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ce,specularExponent:Ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ce,strikethroughThickness:Ce,string:null,stroke:null,strokeDashArray:an,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ce,strokeOpacity:Ce,strokeWidth:null,style:null,surfaceScale:Ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:an,tabIndex:Ce,tableValues:null,target:null,targetX:Ce,targetY:Ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:an,to:null,transform:null,u1:null,u2:null,underlinePosition:Ce,underlineThickness:Ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ce,values:null,vAlphabetic:Ce,vMathematical:Ce,vectorEffect:null,vHanging:Ce,vIdeographic:Ce,version:null,vertAdvY:Ce,vertOriginX:Ce,vertOriginY:Ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),$a=oi([ci,ui,hi,mi,Ea],"html"),Ca=oi([ci,ui,hi,mi,Sa],"svg");function _a(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{(0,Qr.Vn)(t,"element",(n,i,s)=>{const u=s;let m;if(e.allowedElements?m=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(m=e.disallowedElements.includes(n.tagName)),!m&&e.allowElement&&typeof i=="number"&&(m=!e.allowElement(n,i,u)),m&&typeof i=="number")return e.unwrapDisallowed&&n.children?u.children.splice(i,1,...n.children):u.children.splice(i,1),i})}}var Pa=f(33978);function Aa(e){var t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}var Oa=/^data[-\w.:]+$/i,pi=/-[a-z]/g,Ta=/[A-Z]/g;function xa(e,t){var n=Hr(t),i=t,s=tn;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)==="data"&&Oa.test(t)&&(t.charAt(4)==="-"?i=Ia(t):t=Da(t),s=Kr),new s(i,t))}function Ia(e){var t=e.slice(5).replace(pi,Fa);return"data"+t.charAt(0).toUpperCase()+t.slice(1)}function Da(e){var t=e.slice(4);return pi.test(t)?e:(t=t.replace(Ta,Ra),t.charAt(0)!=="-"&&(t="-"+t),"data"+t)}function Ra(e){return"-"+e.toLowerCase()}function Fa(e){return e.charAt(1).toUpperCase()}var gi={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function oo(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Na(e){return e.join(" ").trim()}function lo(e){for(var t=[],n=String(e||""),i=n.indexOf(","),s=0,u,m;!u;)i===-1&&(i=n.length,u=!0),m=n.slice(s,i).trim(),(m||!u)&&t.push(m),s=i+1,i=n.indexOf(",",s);return t}function za(e,t){var n=t||{};return e[e.length-1]===""&&(e=e.concat("")),e.join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Ma=f(85653),ja=Ma;const yi=["http","https","mailto","tel"];function La(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const i=t.indexOf(":");if(i===-1)return t;let s=-1;for(;++s<yi.length;){const u=yi[s];if(i===u.length&&t.slice(0,u.length).toLowerCase()===u)return t}return s=t.indexOf("?"),s!==-1&&i>s||(s=t.indexOf("#"),s!==-1&&i>s)?t:"javascript:void(0)"}const Wr={}.hasOwnProperty,Va=new Set(["table","thead","tbody","tfoot","tr"]);function vi(e,t){const n=[];let i=-1,s;for(;++i<t.children.length;)s=t.children[i],s.type==="element"?n.push(Ua(e,s,i,t)):s.type==="text"?(t.type!=="element"||!Va.has(t.tagName)||!Aa(s))&&n.push(s.value):s.type==="raw"&&!e.options.skipHtml&&n.push(s.value);return n}function Ua(e,t,n,i){const s=e.options,u=s.transformLinkUri===void 0?La:s.transformLinkUri,m=e.schema,$=t.tagName,P={};let G=m,X;if(m.space==="html"&&$==="svg"&&(G=Ca,e.schema=G),t.properties)for(X in t.properties)Wr.call(t.properties,X)&&Ha(P,X,t.properties[X],e);($==="ol"||$==="ul")&&e.listDepth++;const he=vi(e,t);($==="ol"||$==="ul")&&e.listDepth--,e.schema=m;const ce=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},de=s.components&&Wr.call(s.components,$)?s.components[$]:$,Se=typeof de=="string"||de===b.Fragment;if(!Pa.isValidElementType(de))throw new TypeError(`Component for name \`${$}\` not defined or is not renderable`);if(P.key=n,$==="a"&&s.linkTarget&&(P.target=typeof s.linkTarget=="function"?s.linkTarget(String(P.href||""),t.children,typeof P.title=="string"?P.title:null):s.linkTarget),$==="a"&&u&&(P.href=u(String(P.href||""),t.children,typeof P.title=="string"?P.title:null)),!Se&&$==="code"&&i.type==="element"&&i.tagName!=="pre"&&(P.inline=!0),!Se&&($==="h1"||$==="h2"||$==="h3"||$==="h4"||$==="h5"||$==="h6")&&(P.level=Number.parseInt($.charAt(1),10)),$==="img"&&s.transformImageUri&&(P.src=s.transformImageUri(String(P.src||""),String(P.alt||""),typeof P.title=="string"?P.title:null)),!Se&&$==="li"&&i.type==="element"){const Ne=Ba(t);P.checked=Ne&&Ne.properties?Boolean(Ne.properties.checked):null,P.index=Gr(i,t),P.ordered=i.tagName==="ol"}return!Se&&($==="ol"||$==="ul")&&(P.ordered=$==="ol",P.depth=e.listDepth),($==="td"||$==="th")&&(P.align&&(P.style||(P.style={}),P.style.textAlign=P.align,delete P.align),Se||(P.isHeader=$==="th")),!Se&&$==="tr"&&i.type==="element"&&(P.isHeader=Boolean(i.tagName==="thead")),s.sourcePos&&(P["data-sourcepos"]=Ga(ce)),!Se&&s.rawSourcePos&&(P.sourcePosition=t.position),!Se&&s.includeElementIndex&&(P.index=Gr(i,t),P.siblingCount=Gr(i)),Se||(P.node=t),he.length>0?b.createElement(de,P,he):b.createElement(de,P)}function Ba(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function Gr(e,t){let n=-1,i=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&i++;return i}function Ha(e,t,n,i){const s=xa(i.schema,t);let u=n;u==null||u!==u||(Array.isArray(u)&&(u=s.commaSeparated?za(u):Na(u)),s.property==="style"&&typeof u=="string"&&(u=Ka(u)),s.space&&s.property?e[Wr.call(gi,s.property)?gi[s.property]:s.property]=u:s.attribute&&(e[s.attribute]=u))}function Ka(e){const t={};try{ja(e,n)}catch{}return t;function n(i,s){const u=i.slice(0,4)==="-ms-"?`ms-${i.slice(4)}`:i;t[u.replace(/-([a-z])/g,Wa)]=s}}function Wa(e,t){return t.toUpperCase()}function Ga(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const wi={}.hasOwnProperty,Xa="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",xr={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function bi(e){for(const u in xr)if(wi.call(xr,u)&&wi.call(e,u)){const m=xr[u];console.warn(`[react-markdown] Warning: please ${m.to?`use \`${m.to}\` instead of`:"remove"} \`${u}\` (see <${Xa}#${m.id}> for more info)`),delete xr[u]}const t=Ht().use(Ii).use(e.remarkPlugins||[]).use(ma,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(_a,e),n=new le;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const i=t.runSync(t.parse(n),n);if(i.type!=="root")throw new TypeError("Expected a `root` node");let s=b.createElement(b.Fragment,{},vi({options:e,schema:$a,listDepth:0},i));return e.className&&(s=b.createElement("div",{className:e.className},s)),s}bi.propTypes={children:We.string,className:We.string,allowElement:We.func,allowedElements:We.arrayOf(We.string),disallowedElements:We.arrayOf(We.string),unwrapDisallowed:We.bool,remarkPlugins:We.arrayOf(We.oneOfType([We.object,We.func,We.arrayOf(We.oneOfType([We.bool,We.string,We.object,We.func,We.arrayOf(We.any)]))])),rehypePlugins:We.arrayOf(We.oneOfType([We.object,We.func,We.arrayOf(We.oneOfType([We.bool,We.string,We.object,We.func,We.arrayOf(We.any)]))])),sourcePos:We.bool,rawSourcePos:We.bool,skipHtml:We.bool,includeElementIndex:We.bool,transformLinkUri:We.oneOfType([We.func,We.bool]),linkTarget:We.oneOfType([We.func,We.string]),transformImageUri:We.func,components:We.object}},60251:function(ye,r,f){"use strict";f.d(r,{Z:function(){return qn}});var a=f(87842),l=f(95185);const b={tokenize:v,partial:!0},g={tokenize:j,partial:!0},S={tokenize:_,partial:!0},d={tokenize:H,partial:!0},k={tokenize:I,partial:!0},c={tokenize:R,previous:le},h={tokenize:p,previous:be},y={tokenize:x,previous:_e},E={},z={text:E};let M=48;for(;M<123;)E[M]=y,M++,M===58?M=65:M===91&&(M=97);E[43]=y,E[45]=y,E[46]=y,E[95]=y,E[72]=[y,h],E[104]=[y,h],E[87]=[y,c],E[119]=[y,c];function x(o,F,T){const Q=this;let ne,W;return K;function K($e){return!B($e)||!_e(Q.previous)||Te(Q.events)?T($e):(o.enter("literalAutolink"),o.enter("literalAutolinkEmail"),oe($e))}function oe($e){return B($e)?(o.consume($e),oe):$e===64?(o.consume($e),ie):T($e)}function ie($e){return $e===46?o.check(d,xe,Re)($e):$e===45||$e===95?o.check(d,T,ge)($e):(0,l.H$)($e)?(!W&&(0,l.pY)($e)&&(W=!0),o.consume($e),ie):xe($e)}function Re($e){return o.consume($e),ne=!0,W=void 0,ie}function ge($e){return o.consume($e),Oe}function Oe($e){return $e===46?o.check(d,T,Re)($e):ie($e)}function xe($e){return ne&&!W?(o.exit("literalAutolinkEmail"),o.exit("literalAutolink"),F($e)):T($e)}}function R(o,F,T){const Q=this;return ne;function ne(K){return K!==87&&K!==119||!le(Q.previous)||Te(Q.events)?T(K):(o.enter("literalAutolink"),o.enter("literalAutolinkWww"),o.check(b,o.attempt(g,o.attempt(S,W),T),T)(K))}function W(K){return o.exit("literalAutolinkWww"),o.exit("literalAutolink"),F(K)}}function p(o,F,T){const Q=this;return ne;function ne(ke){return ke!==72&&ke!==104||!be(Q.previous)||Te(Q.events)?T(ke):(o.enter("literalAutolink"),o.enter("literalAutolinkHttp"),o.consume(ke),W)}function W(ke){return ke===84||ke===116?(o.consume(ke),K):T(ke)}function K(ke){return ke===84||ke===116?(o.consume(ke),oe):T(ke)}function oe(ke){return ke===80||ke===112?(o.consume(ke),ie):T(ke)}function ie(ke){return ke===83||ke===115?(o.consume(ke),Re):Re(ke)}function Re(ke){return ke===58?(o.consume(ke),ge):T(ke)}function ge(ke){return ke===47?(o.consume(ke),Oe):T(ke)}function Oe(ke){return ke===47?(o.consume(ke),xe):T(ke)}function xe(ke){return ke===null||(0,l.Av)(ke)||(0,l.B8)(ke)||(0,l.Xh)(ke)?T(ke):o.attempt(g,o.attempt(S,$e),T)(ke)}function $e(ke){return o.exit("literalAutolinkHttp"),o.exit("literalAutolink"),F(ke)}}function v(o,F,T){return Q;function Q(ie){return o.consume(ie),ne}function ne(ie){return ie===87||ie===119?(o.consume(ie),W):T(ie)}function W(ie){return ie===87||ie===119?(o.consume(ie),K):T(ie)}function K(ie){return ie===46?(o.consume(ie),oe):T(ie)}function oe(ie){return ie===null||(0,l.Ch)(ie)?T(ie):F(ie)}}function j(o,F,T){let Q,ne;return W;function W(ie){return ie===38?o.check(k,oe,K)(ie):ie===46||ie===95?o.check(d,oe,K)(ie):ie===null||(0,l.Av)(ie)||(0,l.B8)(ie)||ie!==45&&(0,l.Xh)(ie)?oe(ie):(o.consume(ie),W)}function K(ie){return ie===46?(ne=Q,Q=void 0,o.consume(ie),W):(ie===95&&(Q=!0),o.consume(ie),W)}function oe(ie){return!ne&&!Q?F(ie):T(ie)}}function _(o,F){let T=0;return Q;function Q(K){return K===38?o.check(k,F,ne)(K):(K===40&&T++,K===41?o.check(d,W,ne)(K):A(K)?F(K):O(K)?o.check(d,F,ne)(K):(o.consume(K),Q))}function ne(K){return o.consume(K),Q}function W(K){return T--,T<0?F(K):ne(K)}}function I(o,F,T){return Q;function Q(K){return o.consume(K),ne}function ne(K){return(0,l.jv)(K)?(o.consume(K),ne):K===59?(o.consume(K),W):T(K)}function W(K){return A(K)?F(K):T(K)}}function H(o,F,T){return Q;function Q(W){return o.consume(W),ne}function ne(W){return O(W)?(o.consume(W),ne):A(W)?F(W):T(W)}}function O(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===95||o===126}function A(o){return o===null||o===60||(0,l.z3)(o)}function B(o){return o===43||o===45||o===46||o===95||(0,l.H$)(o)}function le(o){return o===null||o===40||o===42||o===95||o===126||(0,l.z3)(o)}function be(o){return o===null||!(0,l.jv)(o)}function _e(o){return o!==47&&be(o)}function Te(o){let F=o.length,T=!1;for(;F--;){const Q=o[F][1];if((Q.type==="labelLink"||Q.type==="labelImage")&&!Q._balanced){T=!0;break}if(Q._gfmAutolinkLiteralWalkedInto){T=!1;break}}return o.length>0&&!T&&(o[o.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),T}var Le=f(8466),Ee=f(72473),Ue=f(36910);const Et={tokenize:w,partial:!0};function Qt(){return{document:{[91]:{tokenize:Y,continuation:{tokenize:ve},exit:ee}},text:{[91]:{tokenize:Ae},[93]:{add:"after",tokenize:Ht,resolveTo:lt}}}}function Ht(o,F,T){const Q=this;let ne=Q.events.length;const W=Q.parser.gfmFootnotes||(Q.parser.gfmFootnotes=[]);let K;for(;ne--;){const ie=Q.events[ne][1];if(ie.type==="labelImage"){K=ie;break}if(ie.type==="gfmFootnoteCall"||ie.type==="labelLink"||ie.type==="label"||ie.type==="image"||ie.type==="link")break}return oe;function oe(ie){if(!K||!K._balanced)return T(ie);const Re=(0,Ue.d)(Q.sliceSerialize({start:K.end,end:Q.now()}));return Re.charCodeAt(0)!==94||!W.includes(Re.slice(1))?T(ie):(o.enter("gfmFootnoteCallLabelMarker"),o.consume(ie),o.exit("gfmFootnoteCallLabelMarker"),F(ie))}}function lt(o,F){let T=o.length,Q;for(;T--;)if(o[T][1].type==="labelImage"&&o[T][0]==="enter"){Q=o[T][1];break}o[T+1][1].type="data",o[T+3][1].type="gfmFootnoteCallLabelMarker";const ne={type:"gfmFootnoteCall",start:Object.assign({},o[T+3][1].start),end:Object.assign({},o[o.length-1][1].end)},W={type:"gfmFootnoteCallMarker",start:Object.assign({},o[T+3][1].end),end:Object.assign({},o[T+3][1].end)};W.end.column++,W.end.offset++,W.end._bufferIndex++;const K={type:"gfmFootnoteCallString",start:Object.assign({},W.end),end:Object.assign({},o[o.length-1][1].start)},oe={type:"chunkString",contentType:"string",start:Object.assign({},K.start),end:Object.assign({},K.end)},ie=[o[T+1],o[T+2],["enter",ne,F],o[T+3],o[T+4],["enter",W,F],["exit",W,F],["enter",K,F],["enter",oe,F],["exit",oe,F],["exit",K,F],o[o.length-2],o[o.length-1],["exit",ne,F]];return o.splice(T,o.length-T+1,...ie),o}function Ae(o,F,T){const Q=this,ne=Q.parser.gfmFootnotes||(Q.parser.gfmFootnotes=[]);let W=0,K;return oe;function oe(xe){return o.enter("gfmFootnoteCall"),o.enter("gfmFootnoteCallLabelMarker"),o.consume(xe),o.exit("gfmFootnoteCallLabelMarker"),ie}function ie(xe){return xe!==94?T(xe):(o.enter("gfmFootnoteCallMarker"),o.consume(xe),o.exit("gfmFootnoteCallMarker"),o.enter("gfmFootnoteCallString"),o.enter("chunkString").contentType="string",Re)}function Re(xe){let $e;return xe===null||xe===91||W++>999?T(xe):xe===93?K?(o.exit("chunkString"),$e=o.exit("gfmFootnoteCallString"),ne.includes((0,Ue.d)(Q.sliceSerialize($e)))?Oe(xe):T(xe)):T(xe):(o.consume(xe),(0,l.z3)(xe)||(K=!0),xe===92?ge:Re)}function ge(xe){return xe===91||xe===92||xe===93?(o.consume(xe),W++,Re):Re(xe)}function Oe(xe){return o.enter("gfmFootnoteCallLabelMarker"),o.consume(xe),o.exit("gfmFootnoteCallLabelMarker"),o.exit("gfmFootnoteCall"),F}}function Y(o,F,T){const Q=this,ne=Q.parser.gfmFootnotes||(Q.parser.gfmFootnotes=[]);let W,K=0,oe;return ie;function ie(Pe){return o.enter("gfmFootnoteDefinition")._container=!0,o.enter("gfmFootnoteDefinitionLabel"),o.enter("gfmFootnoteDefinitionLabelMarker"),o.consume(Pe),o.exit("gfmFootnoteDefinitionLabelMarker"),Re}function Re(Pe){return Pe===94?(o.enter("gfmFootnoteDefinitionMarker"),o.consume(Pe),o.exit("gfmFootnoteDefinitionMarker"),o.enter("gfmFootnoteDefinitionLabelString"),ge):T(Pe)}function ge(Pe){let Xe;return Pe===null||Pe===91||K>999?T(Pe):Pe===93?oe?(Xe=o.exit("gfmFootnoteDefinitionLabelString"),W=(0,Ue.d)(Q.sliceSerialize(Xe)),o.enter("gfmFootnoteDefinitionLabelMarker"),o.consume(Pe),o.exit("gfmFootnoteDefinitionLabelMarker"),o.exit("gfmFootnoteDefinitionLabel"),$e):T(Pe):(0,l.Ch)(Pe)?(o.enter("lineEnding"),o.consume(Pe),o.exit("lineEnding"),K++,ge):(o.enter("chunkString").contentType="string",Oe(Pe))}function Oe(Pe){return Pe===null||(0,l.Ch)(Pe)||Pe===91||Pe===93||K>999?(o.exit("chunkString"),ge(Pe)):((0,l.z3)(Pe)||(oe=!0),K++,o.consume(Pe),Pe===92?xe:Oe)}function xe(Pe){return Pe===91||Pe===92||Pe===93?(o.consume(Pe),K++,Oe):Oe(Pe)}function $e(Pe){return Pe===58?(o.enter("definitionMarker"),o.consume(Pe),o.exit("definitionMarker"),(0,Ee.f)(o,ke,"gfmFootnoteDefinitionWhitespace")):T(Pe)}function ke(Pe){return ne.includes(W)||ne.push(W),F(Pe)}}function ve(o,F,T){return o.check(Le.w,F,o.attempt(Et,F,T))}function ee(o){o.exit("gfmFootnoteDefinition")}function w(o,F,T){const Q=this;return(0,Ee.f)(o,ne,"gfmFootnoteDefinitionIndent",4+1);function ne(W){const K=Q.events[Q.events.length-1];return K&&K[1].type==="gfmFootnoteDefinitionIndent"&&K[2].sliceSerialize(K[1],!0).length===4?F(W):T(W)}}var D=f(98391),ae=f(20898),Fe=f(27828);function ze(o={}){let F=o.singleTilde;const T={tokenize:ne,resolveAll:Q};return F==null&&(F=!0),{text:{[126]:T},insideSpan:{null:[T]},attentionMarkers:{null:[126]}};function Q(W,K){let oe=-1,ie,Re,ge,Oe;for(;++oe<W.length;)if(W[oe][0]==="enter"&&W[oe][1].type==="strikethroughSequenceTemporary"&&W[oe][1]._close){for(ge=oe;ge--;)if(W[ge][0]==="exit"&&W[ge][1].type==="strikethroughSequenceTemporary"&&W[ge][1]._open&&W[oe][1].end.offset-W[oe][1].start.offset===W[ge][1].end.offset-W[ge][1].start.offset){W[oe][1].type="strikethroughSequence",W[ge][1].type="strikethroughSequence",ie={type:"strikethrough",start:Object.assign({},W[ge][1].start),end:Object.assign({},W[oe][1].end)},Re={type:"strikethroughText",start:Object.assign({},W[ge][1].end),end:Object.assign({},W[oe][1].start)},Oe=[["enter",ie,K],["enter",W[ge][1],K],["exit",W[ge][1],K],["enter",Re,K]],(0,D.d)(Oe,Oe.length,0,(0,Fe.C)(K.parser.constructs.insideSpan.null,W.slice(ge+1,oe),K)),(0,D.d)(Oe,Oe.length,0,[["exit",Re,K],["enter",W[oe][1],K],["exit",W[oe][1],K],["exit",ie,K]]),(0,D.d)(W,ge-1,oe-ge+3,Oe),oe=ge+Oe.length-2;break}}for(oe=-1;++oe<W.length;)W[oe][1].type==="strikethroughSequenceTemporary"&&(W[oe][1].type="data");return W}function ne(W,K,oe){const ie=this.previous,Re=this.events;let ge=0;return Oe;function Oe($e){return $e!==126||ie===126&&Re[Re.length-1][1].type!=="characterEscape"?oe($e):(W.enter("strikethroughSequenceTemporary"),xe($e))}function xe($e){const ke=(0,ae.r)(ie);if($e===126)return ge>1?oe($e):(W.consume($e),ge++,xe);if(ge<2&&!F)return oe($e);const Pe=W.exit("strikethroughSequenceTemporary"),Xe=(0,ae.r)($e);return Pe._open=!Xe||Xe===2&&Boolean(ke),Pe._close=!ke||ke===2&&Boolean(Xe),K($e)}}}const Ze={flow:{null:{tokenize:q,resolve:Z}}},Je={tokenize:fe,partial:!0},mt={tokenize:pe,partial:!0};function Z(o,F){let T=-1,Q,ne,W,K,oe,ie,Re,ge,Oe,xe;for(;++T<o.length;)Q=o[T][1],K&&(Q.type==="temporaryTableCellContent"&&(ge=ge||T,Oe=T),(Q.type==="tableCellDivider"||Q.type==="tableRow")&&Oe&&(ie={type:"tableContent",start:o[ge][1].start,end:o[Oe][1].end},Re={type:"chunkText",start:ie.start,end:ie.end,contentType:"text"},o.splice(ge,Oe-ge+1,["enter",ie,F],["enter",Re,F],["exit",Re,F],["exit",ie,F]),T-=Oe-ge-3,ge=void 0,Oe=void 0)),o[T][0]==="exit"&&xe&&xe+1<T&&(Q.type==="tableCellDivider"||Q.type==="tableRow"&&(xe+3<T||o[xe][1].type!=="whitespace"))&&(oe={type:W?"tableDelimiter":ne?"tableHeader":"tableData",start:o[xe][1].start,end:o[T][1].end},o.splice(T+(Q.type==="tableCellDivider"?1:0),0,["exit",oe,F]),o.splice(xe,0,["enter",oe,F]),T+=2,xe=T+1),Q.type==="tableRow"&&(K=o[T][0]==="enter",K&&(xe=T+1)),Q.type==="tableDelimiterRow"&&(W=o[T][0]==="enter",W&&(xe=T+1)),Q.type==="tableHead"&&(ne=o[T][0]==="enter");return o}function q(o,F,T){const Q=this,ne=[];let W=0,K,oe;return ie;function ie(se){return o.enter("table")._align=ne,o.enter("tableHead"),o.enter("tableRow"),se===124?Re(se):(W++,o.enter("temporaryTableCellContent"),xe(se))}function Re(se){return o.enter("tableCellDivider"),o.consume(se),o.exit("tableCellDivider"),K=!0,ge}function ge(se){return se===null||(0,l.Ch)(se)?ke(se):(0,l.xz)(se)?(o.enter("whitespace"),o.consume(se),Oe):(K&&(K=void 0,W++),se===124?Re(se):(o.enter("temporaryTableCellContent"),xe(se)))}function Oe(se){return(0,l.xz)(se)?(o.consume(se),Oe):(o.exit("whitespace"),ge(se))}function xe(se){return se===null||se===124||(0,l.z3)(se)?(o.exit("temporaryTableCellContent"),ge(se)):(o.consume(se),se===92?$e:xe)}function $e(se){return se===92||se===124?(o.consume(se),xe):xe(se)}function ke(se){return se===null?T(se):(o.exit("tableRow"),o.exit("tableHead"),o.attempt({tokenize:pr,partial:!0},Pe,T)(se))}function Pe(se){return o.check(Je,T,(0,Ee.f)(o,Xe,"linePrefix",4))(se)}function Xe(se){return se===null||(0,l.z3)(se)?T(se):(o.enter("tableDelimiterRow"),Qe(se))}function Qe(se){return se===null||(0,l.Ch)(se)?Er(se):(0,l.xz)(se)?(o.enter("whitespace"),o.consume(se),ht):se===45?(o.enter("tableDelimiterFiller"),o.consume(se),oe=!0,ne.push(null),Tt):se===58?(o.enter("tableDelimiterAlignment"),o.consume(se),o.exit("tableDelimiterAlignment"),ne.push("left"),Xt):se===124?(o.enter("tableCellDivider"),o.consume(se),o.exit("tableCellDivider"),Qe):T(se)}function ht(se){return(0,l.xz)(se)?(o.consume(se),ht):(o.exit("whitespace"),Qe(se))}function Tt(se){return se===45?(o.consume(se),Tt):(o.exit("tableDelimiterFiller"),se===58?(o.enter("tableDelimiterAlignment"),o.consume(se),o.exit("tableDelimiterAlignment"),ne[ne.length-1]=ne[ne.length-1]==="left"?"center":"right",Rr):Qe(se))}function Xt(se){return se===45?(o.enter("tableDelimiterFiller"),o.consume(se),oe=!0,Tt):T(se)}function Rr(se){return se===null||(0,l.Ch)(se)?Er(se):(0,l.xz)(se)?(o.enter("whitespace"),o.consume(se),ht):se===124?(o.enter("tableCellDivider"),o.consume(se),o.exit("tableCellDivider"),Qe):T(se)}function Er(se){return o.exit("tableDelimiterRow"),!oe||W!==ne.length?T(se):se===null?er(se):o.check(mt,er,o.attempt({tokenize:pr,partial:!0},(0,Ee.f)(o,Fr,"linePrefix",4),er))(se)}function er(se){return o.exit("table"),F(se)}function Fr(se){return o.enter("tableBody"),Sr(se)}function Sr(se){return o.enter("tableRow"),se===124?$r(se):(o.enter("temporaryTableCellContent"),Vn(se))}function $r(se){return o.enter("tableCellDivider"),o.consume(se),o.exit("tableCellDivider"),hr}function hr(se){return se===null||(0,l.Ch)(se)?zr(se):(0,l.xz)(se)?(o.enter("whitespace"),o.consume(se),Cr):se===124?$r(se):(o.enter("temporaryTableCellContent"),Vn(se))}function Cr(se){return(0,l.xz)(se)?(o.consume(se),Cr):(o.exit("whitespace"),hr(se))}function Vn(se){return se===null||se===124||(0,l.z3)(se)?(o.exit("temporaryTableCellContent"),hr(se)):(o.consume(se),se===92?Nr:Vn)}function Nr(se){return se===92||se===124?(o.consume(se),Vn):Vn(se)}function zr(se){return o.exit("tableRow"),se===null?mr(se):o.check(mt,mr,o.attempt({tokenize:pr,partial:!0},(0,Ee.f)(o,Sr,"linePrefix",4),mr))(se)}function mr(se){return o.exit("tableBody"),er(se)}function pr(se,Mr,_r){return jr;function jr(tr){return se.enter("lineEnding"),se.consume(tr),se.exit("lineEnding"),Lr}function Lr(tr){return Q.parser.lazy[Q.now().line]?_r(tr):Mr(tr)}}}function fe(o,F,T){return Q;function Q(K){return K!==45?T(K):(o.enter("setextUnderline"),ne(K))}function ne(K){return K===45?(o.consume(K),ne):W(K)}function W(K){return K===null||(0,l.Ch)(K)?F(K):(0,l.xz)(K)?(o.consume(K),W):T(K)}}function pe(o,F,T){let Q=0;return ne;function ne(K){return o.enter("check"),o.consume(K),W}function W(K){return K===-1||K===32?(o.consume(K),Q++,Q===4?F:W):K===null||(0,l.z3)(K)?F(K):T(K)}}const J={tokenize:At},He={text:{[91]:J}};function At(o,F,T){const Q=this;return ne;function ne(oe){return Q.previous!==null||!Q._gfmTasklistFirstContentOfListItem?T(oe):(o.enter("taskListCheck"),o.enter("taskListCheckMarker"),o.consume(oe),o.exit("taskListCheckMarker"),W)}function W(oe){return(0,l.xz)(oe)?(o.enter("taskListCheckValueUnchecked"),o.consume(oe),o.exit("taskListCheckValueUnchecked"),K):oe===88||oe===120?(o.enter("taskListCheckValueChecked"),o.consume(oe),o.exit("taskListCheckValueChecked"),K):T(oe)}function K(oe){return oe===93?(o.enter("taskListCheckMarker"),o.consume(oe),o.exit("taskListCheckMarker"),o.exit("taskListCheck"),o.check({tokenize:it},F,T)):T(oe)}}function it(o,F,T){const Q=this;return(0,Ee.f)(o,ne,"whitespace");function ne(W){const K=Q.events[Q.events.length-1];return K&&K[1].type==="whitespace"&&W!==null&&!(0,l.z3)(W)?F(W):T(W)}}function St(o){return(0,a.W)([z,Qt(),ze(o),Ze,He])}function pt(o){return combineHtmlExtensions([gfmAutolinkLiteralHtml,gfmFootnoteHtml(o),gfmStrikethroughHtml,gfmTableHtml,gfmTagfilterHtml,gfmTaskListItemHtml])}function $t(o,F){var T=String(o),Q=0,ne;if(typeof F!="string")throw new Error("Expected character");for(ne=T.indexOf(F);ne!==-1;)Q++,ne=T.indexOf(F,ne+F.length);return Q}function on(o){if(typeof o!="string")throw new TypeError("Expected a string");return o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var xt=f(82324),vn=f(21386);const sn={}.hasOwnProperty,Ut=function(o,F,T,Q){let ne,W;typeof F=="string"||F instanceof RegExp?(W=[[F,T]],ne=Q):(W=F,ne=T),ne||(ne={});const K=(0,vn.O)(ne.ignore||[]),oe=ln(W);let ie=-1;for(;++ie<oe.length;)(0,xt.S4)(o,"text",Re);return o;function Re(Oe,xe){let $e=-1,ke;for(;++$e<xe.length;){const Pe=xe[$e];if(K(Pe,ke?ke.children.indexOf(Pe):void 0,ke))return;ke=Pe}if(ke)return ge(Oe,ke)}function ge(Oe,xe){const $e=oe[ie][0],ke=oe[ie][1];let Pe=0,Xe=xe.children.indexOf(Oe),Qe=[],ht;$e.lastIndex=0;let Tt=$e.exec(Oe.value);for(;Tt;){ht=Tt.index;let Xt=ke(...Tt,{index:Tt.index,input:Tt.input});if(typeof Xt=="string"&&(Xt=Xt.length>0?{type:"text",value:Xt}:void 0),Xt!==!1&&(Pe!==ht&&Qe.push({type:"text",value:Oe.value.slice(Pe,ht)}),Array.isArray(Xt)?Qe.push(...Xt):Xt&&Qe.push(Xt),Pe=ht+Tt[0].length),!$e.global)break;Tt=$e.exec(Oe.value)}return ht===void 0?(Qe=[Oe],Xe--):(Pe<Oe.value.length&&Qe.push({type:"text",value:Oe.value.slice(Pe)}),xe.children.splice(Xe,1,...Qe)),Xe+Qe.length+1}};function ln(o){const F=[];if(typeof o!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(o)){let T=-1;for(;++T<o.length;)F.push([wn(o[T][0]),Cn(o[T][1])])}else{let T;for(T in o)sn.call(o,T)&&F.push([wn(T),Cn(o[T])])}return F}function wn(o){return typeof o=="string"?new RegExp(on(o),"g"):o}function Cn(o){return typeof o=="function"?o:()=>o}const un="phrasing",xn=["autolink","link","image","label"],or={transforms:[ur],enter:{literalAutolink:Hn,literalAutolinkEmail:Kt,literalAutolinkHttp:Kt,literalAutolinkWww:Kt},exit:{literalAutolink:Nn,literalAutolinkEmail:sr,literalAutolinkHttp:Kn,literalAutolinkWww:Wn}},lr={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:un,notInConstruct:xn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:un,notInConstruct:xn},{character:":",before:"[ps]",after:"\\/",inConstruct:un,notInConstruct:xn}]};function Hn(o){this.enter({type:"link",title:null,url:"",children:[]},o)}function Kt(o){this.config.enter.autolinkProtocol.call(this,o)}function Kn(o){this.config.exit.autolinkProtocol.call(this,o)}function Wn(o){this.config.exit.data.call(this,o);const F=this.stack[this.stack.length-1];F.url="http://"+this.sliceSerialize(o)}function sr(o){this.config.exit.autolinkEmail.call(this,o)}function Nn(o){this.exit(o)}function ur(o){Ut(o,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,cr],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,bn]],{ignore:["link","linkReference"]})}function cr(o,F,T,Q,ne){let W="";if(!Ft(ne)||(/^w/i.test(F)&&(T=F+T,F="",W="http://"),!In(T)))return!1;const K=Gn(T+Q);if(!K[0])return!1;const oe={type:"link",title:null,url:W+F+K[0],children:[{type:"text",value:F+K[0]}]};return K[1]?[oe,{type:"text",value:K[1]}]:oe}function bn(o,F,T,Q){return!Ft(Q,!0)||/[_-\d]$/.test(T)?!1:{type:"link",title:null,url:"mailto:"+F+"@"+T,children:[{type:"text",value:F+"@"+T}]}}function In(o){const F=o.split(".");return!(F.length<2||F[F.length-1]&&(/_/.test(F[F.length-1])||!/[a-zA-Z\d]/.test(F[F.length-1]))||F[F.length-2]&&(/_/.test(F[F.length-2])||!/[a-zA-Z\d]/.test(F[F.length-2])))}function Gn(o){const F=/[!"&'),.:;<>?\]}]+$/.exec(o);let T,Q,ne,W;if(F)for(o=o.slice(0,F.index),W=F[0],T=W.indexOf(")"),Q=$t(o,"("),ne=$t(o,")");T!==-1&&Q>ne;)o+=W.slice(0,T+1),W=W.slice(T+1),T=W.indexOf(")"),ne++;return[o,W]}function Ft(o,F){const T=o.input.charCodeAt(o.index-1);return(o.index===0||(0,l.B8)(T)||(0,l.Xh)(T))&&(!F||T!==47)}var zn=f(12857);function Mn(o){return o.label||!o.identifier?o.label||"":(0,zn.v)(o.identifier)}function Xn(o,F){const T=F.indexStack,Q=o.children||[],ne=[];let W=-1;for(T.push(-1);++W<Q.length;){const oe=Q[W];T[T.length-1]=W,ne.push(F.handle(oe,o,F,{before:`
|
|
35
|
-
`,after:`
|
|
36
|
-
`})),oe.type!=="list"&&(F.bulletLastUsed=void 0),W<Q.length-1&&ne.push(K(oe,Q[W+1]))}return T.pop(),ne.join("");function K(oe,ie){let Re=F.join.length;for(;Re--;){const ge=F.join[Re](oe,ie,o,F);if(ge===!0||ge===1)break;if(typeof ge=="number")return`
|
|
37
|
-
`.repeat(1+ge);if(ge===!1)return`
|
|
38
|
-
|
|
39
|
-
<!---->
|
|
40
|
-
|
|
41
|
-
`}return`
|
|
42
|
-
|
|
43
|
-
`}}const Jn=/\r?\n|\r/g;function Qn(o,F){const T=[];let Q=0,ne=0,W;for(;W=Jn.exec(o);)K(o.slice(Q,W.index)),T.push(W[0]),Q=W.index+W[0].length,ne++;return K(o.slice(Q)),T.join("");function K(oe){T.push(F(oe,ne,!oe))}}function jn(o){if(!o._compiled){const F=(o.atBreak?"[\\r\\n][\\t ]*":"")+(o.before?"(?:"+o.before+")":"");o._compiled=new RegExp((F?"("+F+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(o.character)?"\\":"")+o.character+(o.after?"(?:"+o.after+")":""),"g")}return o._compiled}function N(o,F){return C(o,F.inConstruct,!0)&&!C(o,F.notInConstruct,!1)}function C(o,F,T){if(!F)return T;typeof F=="string"&&(F=[F]);let Q=-1;for(;++Q<F.length;)if(o.includes(F[Q]))return!0;return!1}function U(o,F,T){const Q=(T.before||"")+(F||"")+(T.after||""),ne=[],W=[],K={};let oe=-1;for(;++oe<o.unsafe.length;){const ge=o.unsafe[oe];if(!N(o.stack,ge))continue;const Oe=jn(ge);let xe;for(;xe=Oe.exec(Q);){const $e="before"in ge||Boolean(ge.atBreak),ke="after"in ge,Pe=xe.index+($e?xe[1].length:0);ne.includes(Pe)?(K[Pe].before&&!$e&&(K[Pe].before=!1),K[Pe].after&&!ke&&(K[Pe].after=!1)):(ne.push(Pe),K[Pe]={before:$e,after:ke})}}ne.sort(te);let ie=T.before?T.before.length:0;const Re=Q.length-(T.after?T.after.length:0);for(oe=-1;++oe<ne.length;){const ge=ne[oe];ge<ie||ge>=Re||ge+1<Re&&ne[oe+1]===ge+1&&K[ge].after&&!K[ge+1].before&&!K[ge+1].after||ne[oe-1]===ge-1&&K[ge].before&&!K[ge-1].before&&!K[ge-1].after||(ie!==ge&&W.push(re(Q.slice(ie,ge),"\\")),ie=ge,/[!-/:-@[-`{-~]/.test(Q.charAt(ge))&&(!T.encode||!T.encode.includes(Q.charAt(ge)))?W.push("\\"):(W.push("&#x"+Q.charCodeAt(ge).toString(16).toUpperCase()+";"),ie++))}return W.push(re(Q.slice(ie,Re),T.after)),W.join("")}function te(o,F){return o-F}function re(o,F){const T=/\\(?=[!-/:-@[-`{-~])/g,Q=[],ne=[],W=o+F;let K=-1,oe=0,ie;for(;ie=T.exec(W);)Q.push(ie.index);for(;++K<Q.length;)oe!==Q[K]&&ne.push(o.slice(oe,Q[K])),ne.push("\\"),oe=Q[K];return ne.push(o.slice(oe)),ne.join("")}var De=f(1481),Be=f(55828);let qe=!1,et=!1;function gt(){return{enter:{gfmFootnoteDefinition:o,gfmFootnoteDefinitionLabelString:F,gfmFootnoteCall:ne,gfmFootnoteCallString:W},exit:{gfmFootnoteDefinition:Q,gfmFootnoteDefinitionLabelString:T,gfmFootnoteCall:oe,gfmFootnoteCallString:K}};function o(ie){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},ie)}function F(){this.buffer()}function T(ie){const Re=this.resume(),ge=this.stack[this.stack.length-1];ge.label=Re,ge.identifier=(0,Ue.d)(this.sliceSerialize(ie)).toLowerCase()}function Q(ie){this.exit(ie)}function ne(ie){this.enter({type:"footnoteReference",identifier:"",label:""},ie)}function W(){this.buffer()}function K(ie){const Re=this.resume(),ge=this.stack[this.stack.length-1];ge.label=Re,ge.identifier=(0,Ue.d)(this.sliceSerialize(ie)).toLowerCase()}function oe(ie){this.exit(ie)}}function nt(){return o.peek=F,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:T,footnoteReference:o}};function o(Q,ne,W){const K=W.enter("footnoteReference"),oe=W.enter("reference"),ie=U(W,Mn(Q),{before:"^",after:"]"});return oe(),K(),"[^"+ie+"]"}function F(){return"["}function T(Q,ne,W){const K=W.enter("footnoteDefinition"),oe=W.enter("label"),ie=U(W,Mn(Q),{before:"^",after:"]"}),Re="[^"+ie+"]:";oe();const ge=Qn(Xn(Q,W),Oe);return K(),!qe&&ie.includes(":")&&(console.warn("[mdast-util-gfm-footnote] Warning: Found a colon in footnote identifier `"+ie+"`. GitHub currently crahes on colons in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),qe=!0),et||(0,De.Vn)(Q,"list",()=>(console.warn("[mdast-util-gfm-footnote] Warning: Found a list in a footnote definition. GitHub currently crahes on lists in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),et=!0,Be.BK)),ge;function Oe(xe,$e,ke){return $e?(ke?"":" ")+xe:(ke?Re:Re+" ")+xe}}}function yt(o,F,T){const Q=F.indexStack,ne=o.children||[],W=[];let K=-1,oe=T.before;for(Q.push(-1);++K<ne.length;){const ie=ne[K];let Re;if(Q[Q.length-1]=K,K+1<ne.length){let ge=F.handle.handlers[ne[K+1].type];ge&&ge.peek&&(ge=ge.peek),Re=ge?ge(ne[K+1],o,F,{before:"",after:""}).charAt(0):""}else Re=T.after;W.length>0&&(oe==="\r"||oe===`
|
|
44
|
-
`)&&ie.type==="html"&&(W[W.length-1]=W[W.length-1].replace(/(\r?\n|\r)$/," "),oe=" "),W.push(F.handle(ie,o,F,{before:oe,after:Re})),oe=W[W.length-1].slice(-1)}return Q.pop(),W.join("")}const Ot={canContainEols:["delete"],enter:{strikethrough:rt},exit:{strikethrough:bt}},vt={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:ct}};ct.peek=cn;function rt(o){this.enter({type:"delete",children:[]},o)}function bt(o){this.exit(o)}function ct(o,F,T){const Q=T.enter("emphasis"),ne=yt(o,T,{before:"~",after:"~"});return Q(),"~~"+ne+"~~"}function cn(){return"~"}zt.peek=Wt;function zt(o,F,T){let Q=o.value||"",ne="`",W=-1;for(;new RegExp("(^|[^`])"+ne+"([^`]|$)").test(Q);)ne+="`";for(/[^ \r\n]/.test(Q)&&(/^[ \r\n]/.test(Q)&&/[ \r\n]$/.test(Q)||/^`|`$/.test(Q))&&(Q=" "+Q+" ");++W<T.unsafe.length;){const K=T.unsafe[W],oe=jn(K);let ie;if(K.atBreak)for(;ie=oe.exec(Q);){let Re=ie.index;Q.charCodeAt(Re)===10&&Q.charCodeAt(Re-1)===13&&Re--,Q=Q.slice(0,Re)+" "+Q.slice(ie.index+1)}}return ne+Q+ne}function Wt(){return"`"}function dt(o,F){const T=F||{},Q=(T.align||[]).concat(),ne=T.stringLength||Gt,W=[];let K=-1;const oe=[],ie=[],Re=[];let ge=0,Oe,xe,$e,ke,Pe,Xe,Qe,ht,Tt;for(;++K<o.length;){for(Oe=-1,xe=[],$e=[],o[K].length>ge&&(ge=o[K].length);++Oe<o[K].length;)Pe=Mt(o[K][Oe]),T.alignDelimiters!==!1&&(ke=ne(Pe),$e[Oe]=ke,(Re[Oe]===void 0||ke>Re[Oe])&&(Re[Oe]=ke)),xe.push(Pe);oe[K]=xe,ie[K]=$e}if(Oe=-1,typeof Q=="object"&&"length"in Q)for(;++Oe<ge;)W[Oe]=Yt(Q[Oe]);else for(Tt=Yt(Q);++Oe<ge;)W[Oe]=Tt;for(Oe=-1,xe=[],$e=[];++Oe<ge;)Tt=W[Oe],Qe="",ht="",Tt===99?(Qe=":",ht=":"):Tt===108?Qe=":":Tt===114&&(ht=":"),ke=T.alignDelimiters===!1?1:Math.max(1,Re[Oe]-Qe.length-ht.length),Pe=Qe+"-".repeat(ke)+ht,T.alignDelimiters!==!1&&(ke=Qe.length+ke+ht.length,ke>Re[Oe]&&(Re[Oe]=ke),$e[Oe]=ke),xe[Oe]=Pe;oe.splice(1,0,xe),ie.splice(1,0,$e),K=-1;const Xt=[];for(;++K<oe.length;){for(xe=oe[K],$e=ie[K],Oe=-1,Xe=[];++Oe<ge;)Pe=xe[Oe]||"",Qe="",ht="",T.alignDelimiters!==!1&&(ke=Re[Oe]-($e[Oe]||0),Tt=W[Oe],Tt===114?Qe=" ".repeat(ke):Tt===99?ke%2?(Qe=" ".repeat(ke/2+.5),ht=" ".repeat(ke/2-.5)):(Qe=" ".repeat(ke/2),ht=Qe):ht=" ".repeat(ke)),T.delimiterStart!==!1&&!Oe&&Xe.push("|"),T.padding!==!1&&!(T.alignDelimiters===!1&&Pe==="")&&(T.delimiterStart!==!1||Oe)&&Xe.push(" "),T.alignDelimiters!==!1&&Xe.push(Qe),Xe.push(Pe),T.alignDelimiters!==!1&&Xe.push(ht),T.padding!==!1&&Xe.push(" "),(T.delimiterEnd!==!1||Oe!==ge-1)&&Xe.push("|");Xt.push(T.delimiterEnd===!1?Xe.join("").replace(/ +$/,""):Xe.join(""))}return Xt.join(`
|
|
45
|
-
`)}function Mt(o){return o==null?"":String(o)}function Gt(o){return o.length}function Yt(o){const F=typeof o=="string"?o.charCodeAt(0):0;return F===67||F===99?99:F===76||F===108?108:F===82||F===114?114:0}const fn={enter:{table:qt,tableData:dn,tableHeader:dn,tableRow:Dn},exit:{codeText:En,table:_n,tableData:kn,tableHeader:kn,tableRow:kn}};function qt(o){const F=o._align;this.enter({type:"table",align:F,children:[]},o),this.setData("inTable",!0)}function _n(o){this.exit(o),this.setData("inTable")}function Dn(o){this.enter({type:"tableRow",children:[]},o)}function kn(o){this.exit(o)}function dn(o){this.enter({type:"tableCell",children:[]},o)}function En(o){let F=this.resume();this.getData("inTable")&&(F=F.replace(/\\([\\|])/g,en));const T=this.stack[this.stack.length-1];T.value=F,this.exit(o)}function en(o,F){return F==="|"?F:o}function Sn(o){const F=o||{},T=F.tableCellPadding,Q=F.tablePipeAlign,ne=F.stringLength,W=T?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
46
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:K,tableRow:oe,tableCell:ie,inlineCode:xe}};function K($e,ke,Pe){return Re(ge($e,Pe),$e.align)}function oe($e,ke,Pe){const Xe=Oe($e,Pe),Qe=Re([Xe]);return Qe.slice(0,Qe.indexOf(`
|
|
47
|
-
`))}function ie($e,ke,Pe){const Xe=Pe.enter("tableCell"),Qe=Pe.enter("phrasing"),ht=yt($e,Pe,{before:W,after:W});return Qe(),Xe(),ht}function Re($e,ke){return dt($e,{align:ke,alignDelimiters:Q,padding:T,stringLength:ne})}function ge($e,ke){const Pe=$e.children;let Xe=-1;const Qe=[],ht=ke.enter("table");for(;++Xe<Pe.length;)Qe[Xe]=Oe(Pe[Xe],ke);return ht(),Qe}function Oe($e,ke){const Pe=$e.children;let Xe=-1;const Qe=[],ht=ke.enter("tableRow");for(;++Xe<Pe.length;)Qe[Xe]=ie(Pe[Xe],$e,ke);return ht(),Qe}function xe($e,ke,Pe){let Xe=zt($e,ke,Pe);return Pe.stack.includes("tableCell")&&(Xe=Xe.replace(/\|/g,"\\$&")),Xe}}function Rn(o){const F=o.options.bullet||"*";if(F!=="*"&&F!=="+"&&F!=="-")throw new Error("Cannot serialize items with `"+F+"` for `options.bullet`, expected `*`, `+`, or `-`");return F}function hn(o){const F=o.options.listItemIndent||"tab";if(F===1||F==="1")return"one";if(F!=="tab"&&F!=="one"&&F!=="mixed")throw new Error("Cannot serialize items with `"+F+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return F}function Yn(o,F,T){const Q=hn(T);let ne=T.bulletCurrent||Rn(T);F&&F.type==="list"&&F.ordered&&(ne=(typeof F.start=="number"&&F.start>-1?F.start:1)+(T.options.incrementListMarker===!1?0:F.children.indexOf(o))+ne);let W=ne.length+1;(Q==="tab"||Q==="mixed"&&(F&&F.type==="list"&&F.spread||o.spread))&&(W=Math.ceil(W/4)*4);const K=T.enter("listItem"),oe=Qn(Xn(o,T),ie);return K(),oe;function ie(Re,ge,Oe){return ge?(Oe?"":" ".repeat(W))+Re:(Oe?ne:ne+" ".repeat(W-ne.length))+Re}}const fr={exit:{taskListCheckValueChecked:$n,taskListCheckValueUnchecked:$n,paragraph:mn}},Ln={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Zn}};function $n(o){this.stack[this.stack.length-2].checked=o.type==="taskListCheckValueChecked"}function mn(o){const F=this.stack[this.stack.length-2],T=this.stack[this.stack.length-1],Q=F.children,ne=T.children[0];let W=-1,K;if(F&&F.type==="listItem"&&typeof F.checked=="boolean"&&ne&&ne.type==="text"){for(;++W<Q.length;){const oe=Q[W];if(oe.type==="paragraph"){K=oe;break}}K===T&&(ne.value=ne.value.slice(1),ne.value.length===0?T.children.shift():(ne.position.start.column++,ne.position.start.offset++,T.position.start=Object.assign({},ne.position.start)))}this.exit(o)}function Zn(o,F,T){const Q=o.children[0];let ne=Yn(o,F,T);return typeof o.checked=="boolean"&&Q&&Q.type==="paragraph"&&(ne=ne.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,W)),ne;function W(K){return K+"["+(o.checked?"x":" ")+"] "}}function pn(){return[or,gt(),Ot,fn,fr]}function dr(o){return{extensions:[lr,nt(),vt,Sn(o),Ln]}}function qn(o={}){const F=this.data();T("micromarkExtensions",St(o)),T("fromMarkdownExtensions",pn()),T("toMarkdownExtensions",dr(o));function T(Q,ne){(F[Q]?F[Q]:F[Q]=[]).push(ne)}}},21386:function(ye,r,f){"use strict";f.d(r,{O:function(){return l}});const a=function c(h,y,E,z,M){const x=l(y);if(E!=null&&(typeof E!="number"||E<0||E===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(z!=null&&(!c(z)||!z.children))throw new Error("Expected parent node");if(z==null!=(E==null))throw new Error("Expected both parent and index");return h&&h.type&&typeof h.type=="string"?Boolean(x.call(M,h,E,z)):!1},l=function(c){if(c==null)return k;if(typeof c=="string")return S(c);if(typeof c=="object")return Array.isArray(c)?b(c):g(c);if(typeof c=="function")return d(c);throw new Error("Expected function, string, or object as test")};function b(c){const h=[];let y=-1;for(;++y<c.length;)h[y]=l(c[y]);return d(E);function E(...z){let M=-1;for(;++M<h.length;)if(h[M].call(this,...z))return!0;return!1}}function g(c){return d(h);function h(y){let E;for(E in c)if(y[E]!==c[E])return!1;return!0}}function S(c){return d(h);function h(y){return y&&y.type===c}}function d(c){return h;function h(...y){return Boolean(c.call(this,...y))}}function k(){return!0}},82324:function(ye,r,f){"use strict";f.d(r,{S4:function(){return d}});var a=f(21386);function l(c){return c}const b=!0,g="skip",S=!1,d=function(c,h,y,E){typeof h=="function"&&typeof y!="function"&&(E=y,y=h,h=null);var z=(0,a.O)(h),M=E?-1:1;x(c,null,[])();function x(R,p,v){var j=typeof R=="object"&&R!==null?R:{},_;return typeof j.type=="string"&&(_=typeof j.tagName=="string"?j.tagName:typeof j.name=="string"?j.name:void 0,Object.defineProperty(I,"name",{value:"node ("+(j.type+(_?"<"+_+">":""))+")"})),I;function I(){var H=[],O,A,B;if((!h||z(R,p,v[v.length-1]||null))&&(H=k(y(R,v)),H[0]===S))return H;if(R.children&&H[0]!==g)for(A=(E?R.children.length:-1)+M,B=v.concat(R);A>-1&&A<R.children.length;){if(O=x(R.children[A],A,B)(),O[0]===S)return O;A=typeof O[1]=="number"?O[1]:A+M}return H}}};function k(c){return Array.isArray(c)?c:typeof c=="number"?[b,c]:[c]}},1481:function(ye,r,f){"use strict";f.d(r,{Vn:function(){return l}});var a=f(55828);const l=function(b,g,S,d){typeof g=="function"&&typeof S!="function"&&(d=S,S=g,g=null),(0,a.S4)(b,g,k,d);function k(c,h){const y=h[h.length-1];return S(c,y?y.children.indexOf(c):null,y)}}},55828:function(ye,r,f){"use strict";f.d(r,{BK:function(){return S},S4:function(){return d}});var a=f(21386);function l(c){return c}const b=!0,g="skip",S=!1,d=function(c,h,y,E){typeof h=="function"&&typeof y!="function"&&(E=y,y=h,h=null);const z=(0,a.O)(h),M=E?-1:1;x(c,null,[])();function x(R,p,v){const j=typeof R=="object"&&R!==null?R:{};let _;return typeof j.type=="string"&&(_=typeof j.tagName=="string"?j.tagName:typeof j.name=="string"?j.name:void 0,Object.defineProperty(I,"name",{value:"node ("+(j.type+(_?"<"+_+">":""))+")"})),I;function I(){let H=[],O,A,B;if((!h||z(R,p,v[v.length-1]||null))&&(H=k(y(R,v)),H[0]===S))return H;if(R.children&&H[0]!==g)for(A=(E?R.children.length:-1)+M,B=v.concat(R);A>-1&&A<R.children.length;){if(O=x(R.children[A],A,B)(),O[0]===S)return O;A=typeof O[1]=="number"?O[1]:A+M}return H}}};function k(c){return Array.isArray(c)?c:typeof c=="number"?[b,c]:[c]}},338:function(ye){"use strict";ye.exports=JSON.parse('{"$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":false}')},90360:function(ye){"use strict";ye.exports=JSON.parse('{"$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":true,"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":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"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":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"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":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"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":true}')}}]);})();
|
|
48
|
-
|
|
49
|
-
//# sourceMappingURL=4966.e30bae7f.chunk.js.map
|