@topwrite/reader 1.0.30-alpha.2 → 1.0.30-alpha.3

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/dist/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),c=b("react.forward_ref"),l=b("react.suspense"),f=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),d=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case l:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case p:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===y||e===o||e===l||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===u||e.$$typeof===c||e.$$typeof===g||e.$$typeof===d||e[0]===m)},t.typeOf=E},2348:(e,t,r)=>{"use strict";e.exports=r(7007)},3440:(e,t,r)=>{"use strict";var n=r(2611),i=r(4174),o=r(6725),a=r(6287),s=r(7425),u=r(4249),c=r(3085),l=r(7265),f=r(3314),p=r(469),h=r(9762),d=r(8627),m=r(9531),g=r(58),y=r(7605),v=r(480),b=r(9619),E=r(2493),w=r(6096),x=r(917),S=r(488),k=r(7504),A=r(1559),D=r(3428),F=r(2848),C=r(6156),P=r(4014),O=r(2268),T=r(9715),j=r(5164),_=r(4914),I=r(213),R=r(4206),L=r(1311),N=r(4678);function M(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var B=M(i),z=M(o),U=M(a),$=M(s),q=M(l),V=M(f),H=M(p),G=M(b),W=M(T),Q=M(j),K=M(R),Y=M(L),X=M(N);class Z{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(this.id+":config"),this._config=e}}Z.style=".topwrite/style.css",Z.logo="logo.png";function J(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function ee(e,t){return z.default.encrypt(e,t).toString()}function te(e,t){try{return z.default.decrypt(e,t).toString(U.default)}catch{return""}}var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});class ne{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const t=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!t(e=n.cloneDeep(e)))for(const r of t.errors)e=n.omit(e,r.dataPath.substr(1).split("/"));this.values=e}getValue(e,t){return n.get(this.values,e,t)}setValue(e,t){return n.set(this.values,e,t)}toObject(){const e=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,t,r,i,o,a,s)=>(n.isEqual(e,t)&&(delete o[a],n.isEmpty(o)&&function(e,t){const r=[];let i=e;for(let e=0;e<t.length-1;e++)r.push(i),i=i[t[e]];for(let e=t.length-2;e>=0;e--)n.isEmpty(r[e][t[e]])&&delete r[e][t[e]]}(s,n.toPath(i.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,t,r,i,o,a)=>(this.key&&e&&!J(t)&&o&&a&&n.set(o,a,"@encrypted:"+ee(t,this.key)),!0),modifying:!0,errors:!1});const t=e.compile(this.schema),r=n.cloneDeep(this.values);return t(r),r}static createFromObject(e,t,r){const i=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});i.addKeyword("encrypt",{validate:(e,t,i,o,a,s)=>(r&&e&&J(t)&&a&&s&&n.set(a,s,te(t.substr(11),r)),!0),modifying:!0,errors:!1});const o=i.compile(t);if(!o(e))for(const t of o.errors)e=n.omit(e,t.dataPath.substr(1).split("/"));return new this(e,t,r)}}class ie extends ne{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getStructure(e){return this.getValue(["structure",e])}getPluginConfig(e,t){if(!this.pluginsConfig[e]){const r=this.presetPlugins[e]?this.presetPlugins[e]:this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ne.createFromObject(n.cloneDeep(r),t,this.key+":"+e)}return this.pluginsConfig[e]}setPluginConfig(e,t){const r=t.toObject();n.isEmpty(r)?n.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],r),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,ie.schema)}}ie.file="book.json",ie.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},structure:{type:"object",properties:{langs:{default:"LANGS.md",type:"string",title:"File to use as languages index",pattern:"^[a-zA-Z-._\\d,\\s]+$"},readme:{default:"README.md",type:"string",title:"File to use as preface",pattern:"^[a-zA-Z-._\\d,\\s]+$"},summary:{default:"SUMMARY.md",type:"string",title:"File to use as table of contents",pattern:"^[a-zA-Z-._\\d,\\s]+$"}},default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class oe{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new oe(this.data.slice(0,1))}getParent(){return new oe(this.data.slice(0,-1))}createChild(e){return new oe(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(this.toString()+".")}getNext(){const e=[...this.data];return e[e.length-1]++,new oe(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,i=t.data[r]||0;if(n>i)return 1;if(i>n)return-1}return 0}}class ae{constructor(e){let{title:t,ref:r,path:n,children:i=[]}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.title=t,this.ref=r,this.path=n||s.posix.format({...s.posix.parse(this.ref),ext:".html",base:""}),this.children=i,this.level=new oe}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}static createFromObject(e){var t;const r=null==(t=e.children)?void 0:t.map((e=>ae.createFromObject(e)));return new ae({...e,children:r})}}class se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.id=void 0,this.title=void 0,this.articles=void 0,this.level=new oe,this.id=r,this.title=e,this.articles=t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}static createFormObject(e){var t;return new se(e.title,null==(t=e.articles)?void 0:t.map((e=>ae.createFromObject(e))),e.id)}}const ue={tokenize:function(e,t,r){function n(t){return t===y.codes.rightParenthesis?f(t):x.factoryDestination(e,i,r,g.types.resourceDestination,g.types.resourceDestinationLiteral,g.types.resourceDestinationLiteralMarker,g.types.resourceDestinationRaw,g.types.resourceDestinationString,v.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return S.markdownLineEndingOrSpace(t)?w.factoryWhitespace(e,o)(t):f(t)}function o(t){return t===y.codes.quotationMark||t===y.codes.apostrophe||t===y.codes.leftParenthesis?A.factoryTitle(e,w.factoryWhitespace(e,a),r,g.types.resourceTitle,g.types.resourceTitleMarker,g.types.resourceTitleString)(t):a(t)}function a(t){return t===y.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===y.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),c):t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(g.types.chunkString,{contentType:"string"}),u(t))}function u(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):t===y.codes.lowercaseX?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),c):(e.consume(t),u)}function c(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(g.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===y.codes.rightParenthesis?(e.enter(g.types.resourceMarker),e.consume(n),e.exit(g.types.resourceMarker),e.exit(g.types.resource),t):r(n)}return function(t){return e.enter(g.types.resource),e.enter(g.types.resourceMarker),e.consume(t),e.exit(g.types.resourceMarker),w.factoryWhitespace(e,n)}}},ce={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return G.default.strictEqual(t,y.codes.leftSquareBracket,"expected left bracket"),k.factoryLabel.call(n,e,i,r,g.types.reference,g.types.referenceMarker,g.types.referenceString)(t)}}},le={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(g.types.referenceMarker),e.consume(n),e.exit(g.types.referenceMarker),e.exit(g.types.reference),t):r(n)}return function(t){return e.enter(g.types.reference),e.enter(g.types.referenceMarker),e.consume(t),e.exit(g.types.referenceMarker),n}}};var fe={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if((n.events[a][1].type===g.types.labelImage||n.events[a][1].type===g.types.labelLink)&&!n.events[a][1]._balanced){i=n.events[a][1];break}function s(e){return i._balanced=!0,r(e)}function u(r){return r===y.codes.leftParenthesis?e.attempt(ue,t,o?t:s)(r):r===y.codes.leftSquareBracket?e.attempt(ce,t,o?e.attempt(le,t,s):s)(r):o?t(r):s(r)}return function(t){return G.default(t===y.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(o=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(g.types.labelEnd),e.enter(g.types.labelMarker),e.consume(t),e.exit(g.types.labelMarker),e.exit(g.types.labelEnd),u):r(t)}},resolveTo:m.labelEnd.resolveTo,resolveAll:m.labelEnd.resolveAll};const pe=(e,t,r)=>{const n=d.image(e,t,r);return e.width||e.height?n.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):n};pe.peek=d.image.peek;const he=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},de={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===y.codes.greaterThan){const r=n.containerState;return G.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(g.types.blockQuote,{_container:!0}),r.open=!0),e.enter(g.types.blockQuotePrefix),e.enter(g.types.blockQuoteMarker),e.consume(t),e.exit(g.types.blockQuoteMarker),P.factorySpace(e,i,g.types.whitespace)}return r(t)};function i(t){return t===y.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),o):s(t)}function o(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(g.types.chunkString,{contentType:"string"}),a(t))}function a(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),a)}function s(r){return S.markdownSpace(r)?(e.enter(g.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(g.types.blockQuotePrefixWhitespace),e.exit(g.types.blockQuotePrefix),t):(e.exit(g.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return P.factorySpace(e,e.attempt(de,t,r),g.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:v.constants.tabSize)}},exit:m.blockQuote.exit},me=function(e,t){void 0===t&&(t="text");let r="";return D.visit(e,t,(function(e){r+=e.value})),r},ge=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,ye=c.unified().use(q.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(W.default,["yaml"]).use(V.default).use(H.default).use(_.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){D.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const i={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,i)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const i={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,i)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[y.codes.rightSquareBracket]:fe}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:pe}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:h.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r)=>{const n=F.paragraph(e,t,r);return he(e.align)+n},heading:(e,t,r)=>C.heading(e,t,r).replace(/^#+\s/,"$&"+he(e.align))}}),function(e){D.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=u.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:"align-"+e.align}}:e.data={...e.data,hProperties:{className:"align-"+e.align}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r)=>{const n=O.blockquote(e,t,r);return e.variant?n.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):n}}}),e.micromarkExtensions.push({document:{[y.codes.greaterThan]:de}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){D.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){return function(e){D.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&me(e).match(ge))return r.children.splice(t,1),[D.SKIP,t]}))}}));function ve(e){const t=[];for(const r of e.children){const e=r.children,n=u.select("paragraph:first-child>*",r);if(!n||!n.url)continue;const i=me(n);if(!i)continue;const o=decodeURI(n.url);if(o&&o.match(/[\\:*?"<>|]/))continue;let a={title:i,ref:o};if(e.length>1){const t=e[e.length-1];I.is(t,"list")&&(a.children=ve(t))}t.push(a)}return t}const be=ye();class Ee{constructor(e){void 0===e&&(e=[]),this.parts=void 0,this.parts=e,this.indexLevels()}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new oe(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}static createFromObject(e){return new Ee(e.map((e=>se.createFormObject(e))))}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(I.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={id:me(e,"idString").trim(),title:me(e).trim()}),I.is(e,"list")){const t=ve(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return Ee.createFromObject(t)}static create(e){return"object"==typeof e?Ee.createFromObject(e):Ee.createFromText(e)}}class we{constructor(e){let{host:t,preset:r}=e;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}getBuyUrl(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name}async bought(e,t){try{return await K.default.get(this.host+"/api/bought?book="+e.id+"&plugin="+t.name),!0}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await K.default.get(this.host+"/api/query",{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=["theme-"+t.getValue("theme"),...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await K.default.get(this.host+"/api/installed",{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n.filter((e=>!e.builtin||this.preset&&this.preset[e.name]))}}t.YB=void 0;class xe{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.size/10;e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath();const r=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[r.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new xe(e,t,r)}}const Se=/^(?:\w+:)?\/\/(\S+)$/,ke=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ae=/^[^\s\.]+\.\S{2,}$/;Y.default.attach(),K.default.defaults.maxContentLength=1/0,K.default.defaults.maxBodyLength=1/0,Object.defineProperty(t,"WY",{enumerable:!0,get:function(){return K.default}}),t.l_=ne,t.fy=Z,t.De=ie,t.$B=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,t){return n.get(this.meta,e,t)}relative(e){const t="/"===e.slice(-1);return(e=$.default.posix.relative($.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return $.default.posix.join($.default.posix.dirname(this.path),e)}},t.$q=xe,t.aC=oe,t.ER=Ee,t.oI=ae,t.Lj=se,t.rK=re,t.NC=function(e){return t.YB=new we(e)},t.oe=J,t.CB=function(e){const t=e.match(Se);if(!t)return!1;const r=t[1];return!!r&&(ke.test(r)||Ae.test(r))},t.JH=ye},4174:(e,t,r)=>{"use strict";var n=r(1251),i=r(29),o=r(4390),a=r(8969),s=r(6440),u=r(8506),c=r(1077),l=r(3244),f=r(5117);e.exports=y,y.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);!0!==r.$async&&(this.errors=r.errors);return i},y.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},y.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,r,n);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return S(this,t=i.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,n,!0),this},y.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},y.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(d)?d:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return n},y.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=i.schema.call(e,{schema:{}},t);if(r){var o=r.schema,s=r.root,u=r.baseId,c=n.call(e,o,s,void 0,u);return e._fragments[t]=new a({ref:t,fragment:!0,schema:o,root:s,baseId:u,validate:c}),c}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var o=this._getId(e);o&&(o=i.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},y.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},y.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,i="",o=0;o<e.length;o++){var a=e[o];a&&(i+=n+a.dataPath+" "+a.message+r)}return i.slice(0,-r.length)},y.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,s=o?o(e):e,u=this._cache.get(s);if(u)return u;n=n||!1!==this._opts.addUsedSchema;var c=i.normalizeId(this._getId(e));c&&n&&S(this,c);var l,f=!1!==this._opts.validateSchema&&!t;f&&!(l=c&&c==i.normalizeId(e.$schema))&&this.validateSchema(e,!0);var p=i.ids.call(this,e),h=new a({id:c,schema:e,localRefs:p,cacheKey:s,meta:r});"#"!=c[0]&&n&&(this._refs[c]=h);this._cache.put(s,h),f&&l&&this.validateSchema(e,!0);return h},y.prototype._compile=function(e,t){if(e.compiling)return e.validate=o,o.schema=e.schema,o.errors=null,o.root=t||o,!0===e.schema.$async&&(o.$async=!0),o;var r,i;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{i=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function o(){var t=e.validate,r=t.apply(this,arguments);return o.errors=t.errors,r}},y.prototype.compileAsync=r(1101);var p=r(7587);y.prototype.addKeyword=p.add,y.prototype.getKeyword=p.get,y.prototype.removeKeyword=p.remove,y.prototype.validateKeyword=p.validate;var h=r(24);y.ValidationError=h.Validation,y.MissingRefError=h.MissingRef,y.$dataMetaSchema=l;var d="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=f.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:k,warn:k,error:k};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=u(e.format),this._cache=e.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=c(),this._getId=function(e){switch(e.schemaId){case"auto":return x;case"id":return E;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=f.copy(e._opts),r=0;r<m.length;r++)delete t[m[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=r(3633),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var n=r(4222);e._opts.$data&&(n=l(n,g));e.addMetaSchema(n,d,!0),e._refs["http://json-schema.org/schema"]=d}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function v(e,t){return t=i.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var n in t){var i=t[n];i.meta||r&&!r.test(n)||(e._cache.del(i.cacheKey),delete t[n])}}function E(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function x(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function k(){}},4390:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},1101:(e,t,r)=>{"use strict";var n=r(24).MissingRef;e.exports=function e(t,r,i){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(i=r,r=void 0);var a=s(t).then((function(){var e=o._addSchema(t,void 0,r);return e.validate||u(e)}));i&&a.then((function(e){i(null,e)}),i);return a;function s(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function u(e){try{return o._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(c(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var i=o._loadingSchemas[n];i||(i=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(a,a);return i.then((function(e){if(!c(n))return s(e).then((function(){c(n)||o.addSchema(e,n,void 0,r)}))})).then((function(){return u(e)}));function a(){delete o._loadingSchemas[n]}function c(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}}},24:(e,t,r)=>{"use strict";var n=r(29);function i(e,t,r){this.message=r||i.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(i)},i.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},8506:(e,t,r)=>{"use strict";var n=r(5117),i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,l=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,p=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(i);if(!t)return!1;var r=+t[1],n=+t[2],a=+t[3];return n>=1&&n<=12&&a>=1&&a<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[n])}function y(e,t){var r=e.match(a);if(!r)return!1;var n=r[1],i=r[2],o=r[3],s=r[5];return(n<=23&&i<=59&&o<=59||23==n&&59==i&&60==o)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:l,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":p,"json-pointer-uri-fragment":h,"relative-json-pointer":d},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&u.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:l,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":p,"json-pointer-uri-fragment":h,"relative-json-pointer":d};var v=/t|\s/i;var b=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},1251:(e,t,r)=>{"use strict";var n=r(29),i=r(5117),o=r(24),a=r(6440),s=r(805),u=i.ucs2length,c=r(6471),l=o.Validation;function f(e,t,r){var n=h.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function p(e,t,r){var n=h.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function h(e,t,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==e&&i.root==t&&i.baseId==r)return n}return-1}function d(e,t){return"var pattern"+e+" = new RegExp("+i.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function y(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,h,b){var E=this,w=this._opts,x=[void 0],S={},k=[],A={},D=[],F={},C=[];r=r||{schema:t,refVal:x,refs:S};var P=f.call(this,t,r,b),O=this._compilations[P.index];if(P.compiling)return O.callValidate=function e(){var t=O.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var T=this._formats,j=this.RULES;try{var _=R(t,r,h,b);O.validate=_;var I=O.callValidate;return I&&(I.schema=_.schema,I.errors=null,I.refs=_.refs,I.refVal=_.refVal,I.root=_.root,I.$async=_.$async,w.sourceCode&&(I.source=_.source)),_}finally{p.call(this,t,r,b)}function R(t,a,f,p){var h=!a||a&&a.schema==t;if(a.schema!=r.schema)return e.call(E,t,a,f,p);var b,A=!0===t.$async,F=s({isTop:!0,schema:t,isRoot:h,baseId:p,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:j,validate:s,util:i,resolve:n,resolveRef:L,usePattern:B,useDefault:z,useCustomRule:U,opts:w,formats:T,logger:E.logger,self:E});F=v(x,g)+v(k,d)+v(D,m)+v(C,y)+F,w.processCode&&(F=w.processCode(F,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",F)(E,j,T,r,x,D,C,c,u,l),x[0]=b}catch(e){throw E.logger.error("Error compiling schema, function code:",F),e}return b.schema=t,b.errors=null,b.refs=S,b.refVal=x,b.root=h?b:a,A&&(b.$async=!0),!0===w.sourceCode&&(b.source={code:F,patterns:k,defaults:D}),b}function L(t,i,o){i=n.url(t,i);var a,s,u=S[i];if(void 0!==u)return M(a=x[u],s="refVal["+u+"]");if(!o&&r.refs){var c=r.refs[i];if(void 0!==c)return M(a=r.refVal[c],s=N(i,a))}s=N(i);var l=n.call(E,R,r,i);if(void 0===l){var f=h&&h[i];f&&(l=n.inlineRef(f,w.inlineRefs)?f:e.call(E,f,r,h,t))}if(void 0!==l)return function(e,t){var r=S[e];x[r]=t}(i,l),M(l,s);!function(e){delete S[e]}(i)}function N(e,t){var r=x.length;return x[r]=t,S[e]=r,"refVal"+r}function M(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function B(e){var t=A[e];return void 0===t&&(t=A[e]=k.length,k[t]=e),"pattern"+t}function z(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),r=F[t];return void 0===r&&(r=F[t]=D.length,D[r]=e),"default"+r}}function U(e,t,r,n){if(!1!==E._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var o=e.definition.validateSchema;if(o)if(!o(t)){var a="keyword schema is invalid: "+E.errorsText(o.errors);if("log"!=E._opts.validateSchema)throw new Error(a);E.logger.error(a)}}var s,u=e.definition.compile,c=e.definition.inline,l=e.definition.macro;if(u)s=u.call(E,t,r,n);else if(l)s=l.call(E,t,r,n),!1!==w.validateSchema&&E.validateSchema(s,!0);else if(c)s=c.call(E,n,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=C.length;return C[f]=s,{code:"customRule"+f,validate:s}}}},29:(e,t,r)=>{"use strict";var n=r(2371),i=r(6471),o=r(5117),a=r(8969),s=r(5127);function u(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return u.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof a)return d(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i,o,s,l=c.call(this,t,r);return l&&(i=l.schema,t=l.root,s=l.baseId),i instanceof a?o=i.validate||e.call(this,i.schema,t,void 0,s):void 0!==i&&(o=d(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,s)),o}function c(e,t){var r=n.parse(t),i=v(r),o=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==o){var s=E(i),u=this._refs[s];if("string"==typeof u)return l.call(this,e,u,r);if(u instanceof a)u.validate||this._compile(u),e=u;else{if(!((u=this._schemas[s])instanceof a))return;if(u.validate||this._compile(u),s==E(t))return{schema:u,root:e,baseId:o};e=u}if(!e.schema)return;o=y(this._getId(e.schema))}return p.call(this,r,o,e.schema,e)}function l(e,t,r){var n=c.call(this,e,t);if(n){var i=n.schema,o=n.baseId;e=n.root;var a=this._getId(i);return a&&(o=w(o,a)),p.call(this,r,o,i,e)}}e.exports=u,u.normalizeId=E,u.fullPath=y,u.url=w,u.ids=function(e){var t=E(this._getId(e)),r={"":t},a={"":y(t,!1)},u={},c=this;return s(e,{allKeys:!0},(function(e,t,s,l,f,p,h){if(""!==t){var d=c._getId(e),m=r[l],g=a[l]+"/"+f;if(void 0!==h&&(g+="/"+("number"==typeof h?h:o.escapeFragment(h))),"string"==typeof d){d=m=E(m?n.resolve(m,d):d);var y=c._refs[d];if("string"==typeof y&&(y=c._refs[y]),y&&y.schema){if(!i(e,y.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=E(g))if("#"==d[0]){if(u[d]&&!i(e,u[d]))throw new Error('id "'+d+'" resolves to more than one schema');u[d]=e}else c._refs[d]=g}r[t]=m,a[t]=g}})),u},u.inlineRef=d,u.schema=c;var f=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function p(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),a=1;a<i.length;a++){var s=i[a];if(s){if(void 0===(r=r[s=o.unescapeFragment(s)]))break;var u;if(!f[s]&&((u=this._getId(r))&&(t=w(t,u)),r.$ref)){var l=w(t,r.$ref),p=c.call(this,n,l);p&&(r=p.schema,n=p.root,t=p.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var h=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?g(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function g(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=g(t)),r==1/0)return 1/0}else for(var i in e){if("$ref"==i)return 1/0;if(h[i])r++;else if("object"==typeof(t=e[i])&&(r+=g(t)+1),r==1/0)return 1/0}return r}function y(e,t){return!1!==t&&(e=E(e)),v(n.parse(e))}function v(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function E(e){return e?e.replace(b,""):""}function w(e,t){return t=E(t),n.resolve(e,t)}},1077:(e,t,r)=>{"use strict";var n=r(9784),i=r(5117).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=i(t),e.types=i(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var i;if("object"==typeof r){var o=Object.keys(r)[0];i=r[o],r=o,i.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:i}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=i(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},8969:(e,t,r)=>{"use strict";var n=r(5117);e.exports=function(e){n.copy(e,this)}},7959:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,i=0;i<n;)r++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<n&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return r}},5117:(e,t,r)=>{"use strict";function n(e,t,r,n){var i=n?" !== ":" === ",o=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(r?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var i="",a=o(e);for(var s in a.array&&a.object&&(i=a.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?" && ":"")+n(s,t,r,!0);return i},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var o=t[n];(i[o]||"array"===e&&"array"===o)&&(r[r.length]=o)}if(r.length)return r}else{if(i[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:o,getProperty:u,escapeQuotes:c,equal:r(6471),ucs2length:r(7959),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:l,getPathExpr:function(e,t,r,n){return h(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=l(r?"/"+d(t):u(t));return h(e,n)},getData:function(e,t,r){var n,i,o,a;if(""===e)return"rootData";if("/"==e[0]){if(!f.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(a=e.match(p)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(i=a[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!i)return o}for(var s=o,c=i.split("/"),l=0;l<c.length;l++){var h=c[l];h&&(o+=u(m(h)),s+=" && "+o)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var i=o(["string","number","integer","boolean","null"]);function o(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function u(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+c(e)+"']"}function c(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+c(e)+"'"}var f=/^\/(?:[^~]|~0|~1)*$/,p=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},3244:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var i,o=r[n].split("/"),a=e;for(i=1;i<o.length;i++)a=a[o[i]];for(i=0;i<t.length;i++){var s=t[i],u=a[s];u&&(a[s]={anyOf:[u,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},6152:(e,t,r)=>{"use strict";var n=r(4222);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},1510:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s;var h="maximum"==t,d=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,y=h?"<":">",v=h?">":"<",b=void 0;if(!p&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var E=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+o,x="exclType"+o,S="exclIsNumber"+o,k="' + "+(F="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+E+"; ",i+=" var "+w+"; var "+x+" = typeof "+(E="schemaExcl"+o)+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ";var A;b=d;(A=A||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var D=i;i=A.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+x+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+E+" "+y+"= "+n+") ? "+f+" "+v+"= "+E+" : "+f+" "+v+" "+n+" ) : ( ("+w+" = "+E+" === true) ? "+f+" "+v+"= "+n+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { var op"+o+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=d,c=e.errSchemaPath+"/"+d,n=E,p=g)}else{k=y;if((S="number"==typeof m)&&p){var F="'"+k+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+f+" "+v+"= "+m+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { "}else{S&&void 0===s?(w=!0,b=d,c=e.errSchemaPath+"/"+d,n=m,v+="="):(S&&(n=Math[h?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=d,c=e.errSchemaPath+"/"+d,v+="="):(w=!1,k+="="));F="'"+k+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+f+" "+v+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(A=A||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+F+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+k+" ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";D=i;return i=A.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i}},1978:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+f+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var h=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},6179:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?i+=" "+f+".length ":i+=" ucs2length("+f+") ",i+=" "+h+" "+n+") { ";var d=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},206:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var h=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},3137:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,u=e.util.copy(e),c="";u.level++;var l="valid"+u.level,f=u.baseId,p=!0,h=i;if(h)for(var d,m=-1,g=h.length-1;m<g;)d=h[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(p=!1,u.schema=d,u.schemaPath=o+"["+m+"]",u.errSchemaPath=a+"/"+m,n+=" "+e.validate(u)+" ",u.baseId=f,s&&(n+=" if ("+l+") { ",c+="}"));return s&&(n+=p?" if (true) { ":" "+c.slice(0,-1)+" "),n}},3229:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e),d="";h.level++;var m="valid"+h.level,g=a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=h.baseId;n+=" var "+p+" = errors; var "+f+" = false; ";var v=e.compositeRule;e.compositeRule=h.compositeRule=!0;var b=a;if(b)for(var E,w=-1,x=b.length-1;w<x;)E=b[w+=1],h.schema=E,h.schemaPath=s+"["+w+"]",h.errSchemaPath=u+"/"+w,n+=" "+e.validate(h)+" ",h.baseId=y,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=h.compositeRule=v,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else c&&(n+=" if (true) { ");return n}},3159:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.schema[t],o=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(i));return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n}},2267:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; "),p||(n+=" var schema"+i+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+i+"); if (!"+f+") { ";var h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=h.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},9629:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e);h.level++;var d="valid"+h.level,m="i"+i,g=h.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+p+" = errors;var "+f+";",b){var E=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=a,h.schemaPath=s,h.errSchemaPath=u,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=l+"["+m+"]";h.dataPathArr[g]=m;var x=e.validate(h);h.baseId=v,e.util.varOccurences(x,y)<2?n+=" "+e.util.varReplace(x,y,w)+" ":n+=" var "+y+" = "+w+"; "+x+" ",n+=" if ("+d+") break; } ",e.compositeRule=h.compositeRule=E,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;return n=S.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},5554:e=>{"use strict";e.exports=function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,u=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,p="data"+(s||""),h="valid"+a,d="errs__"+a,m=e.opts.$data&&u&&u.$data;m?(o+=" var schema"+a+" = "+e.util.getData(u.$data,s,e.dataPathArr)+"; ",i="schema"+a):i=u;var g,y,v,b,E,w=this,x="definition"+a,S=w.definition,k="";if(m&&S.$data){E="keywordValidate"+a;var A=S.validateSchema;o+=" var "+x+" = RULES.custom['"+t+"'].definition; var "+E+" = "+x+".validate;"}else{if(!(b=e.useCustomRule(w,u,e.schema,e)))return;i="validate.schema"+c,E=b.code,g=S.compile,y=S.inline,v=S.macro}var D=E+".errors",F="i"+a,C="ruleErr"+a,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(o+=D+" = null;"),o+="var "+d+" = errors;var "+h+";",m&&S.$data&&(k+="}",o+=" if ("+i+" === undefined) { "+h+" = true; } else { ",A&&(k+="}",o+=" "+h+" = "+x+".validateSchema("+i+"); if ("+h+") { ")),y)S.statements?o+=" "+b.validate+" ":o+=" "+h+" = "+b.validate+"; ";else if(v){var O=e.util.copy(e);k="";O.level++;var T="valid"+O.level;O.schema=b.validate,O.schemaPath="";var j=e.compositeRule;e.compositeRule=O.compositeRule=!0;var _=e.validate(O).replace(/validate\.schema/g,E);e.compositeRule=O.compositeRule=j,o+=" "+_}else{(N=N||[]).push(o),o="",o+=" "+E+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===S.schema?o+=" , "+p+" ":o+=" , "+i+" , "+p+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",R=s?e.dataPathArr[s]:"parentDataProperty",L=o+=" , "+I+" , "+R+" , rootData ) ";o=N.pop(),!1===S.errors?(o+=" "+h+" = ",P&&(o+="await "),o+=L+"; "):o+=P?" var "+(D="customErrors"+a)+" = null; try { "+h+" = await "+L+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+D+" = e.errors; else throw e; } ":" "+D+" = null; "+h+" = "+L+"; "}if(S.modifying&&(o+=" if ("+I+") "+p+" = "+I+"["+R+"];"),o+=""+k,S.valid)f&&(o+=" if (true) { ");else{var N;o+=" if ( ",void 0===S.valid?(o+=" !",o+=v?""+T:""+h):o+=" "+!S.valid+" ",o+=") { ",n=w.keyword,(N=N||[]).push(o),o="",(N=N||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var M=o;o=N.pop(),!e.compositeRule&&f?e.async?o+=" throw new ValidationError(["+M+"]); ":o+=" validate.errors = ["+M+"]; return false; ":o+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var B=o;o=N.pop(),y?S.errors?"full"!=S.errors&&(o+=" for (var "+F+"="+d+"; "+F+"<errors; "+F+"++) { var "+C+" = vErrors["+F+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+p+"; "),o+=" } "):!1===S.errors?o+=" "+B+" ":(o+=" if ("+d+" == errors) { "+B+" } else { for (var "+F+"="+d+"; "+F+"<errors; "+F+"++) { var "+C+" = vErrors["+F+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+p+"; "),o+=" } } "):v?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===S.errors?o+=" "+B+" ":(o+=" if (Array.isArray("+D+")) { if (vErrors === null) vErrors = "+D+"; else vErrors = vErrors.concat("+D+"); errors = vErrors.length; for (var "+F+"="+d+"; "+F+"<errors; "+F+"++) { var "+C+" = vErrors["+F+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; "+C+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+p+"; "),o+=" } } else { "+B+" } "),o+=" } ",f&&(o+=" else { ")}return o}},1915:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,p=e.util.copy(e),h="";p.level++;var d="valid"+p.level,m={},g={},y=e.opts.ownProperties;for(w in a)if("__proto__"!=w){var v=a[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+f+" = errors;";var E=e.errorPath;for(var w in n+="var missing"+i+";",g)if((b=g[w]).length){if(n+=" if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),c){n+=" && ( ";var x=b;if(x)for(var S=-1,k=x.length-1;S<k;){O=x[S+=1],S&&(n+=" || "),n+=" ( ( "+(I=l+(_=e.util.getProperty(O)))+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:_)+") ) "}n+=")) { ";var A="missing"+i,D="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,A,!0):E+" + "+A);var F=F||[];F.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var C=n;n=F.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var P=b;if(P)for(var O,T=-1,j=P.length-1;T<j;){O=P[T+=1];var _=e.util.getProperty(O),I=(D=e.util.escapeQuotes(O),l+_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,O,e.opts.jsonPointers)),n+=" if ( "+I+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",c&&(h+="}",n+=" else { ")}e.errorPath=E;var R=p.baseId;for(var w in m){v=m[w];(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",p.schema=v,p.schemaPath=s+e.util.getProperty(w),p.errSchemaPath=u+"/"+e.util.escapeFragment(w),n+=" "+e.validate(p)+" ",p.baseId=R,n+=" } ",c&&(n+=" if ("+d+") { ",h+="}"))}return c&&(n+=" "+h+" if ("+f+" == errors) {"),n}},734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var h="i"+i,d="schema"+i;p||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",p&&(n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),n+=f+" = false;for (var "+h+"=0; "+h+"<"+d+".length; "+h+"++) if (equal("+l+", "+d+"["+h+"])) { "+f+" = true; break; }",p&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},22:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||"");if(!1===e.opts.format)return c&&(n+=" if (true) { "),n;var f,p=e.opts.$data&&a&&a.$data;p?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a;var h=e.opts.unknownFormats,d=Array.isArray(h);if(p){n+=" var "+(m="format"+i)+" = formats["+f+"]; var "+(g="isObject"+i)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+i)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+i+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",p&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=h&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==h)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(d&&h.indexOf(a)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return c&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(a);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",n+=p?""+f:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=p?"' + "+f+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=p?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var w=n;return n=E.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}},220:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e);h.level++;var d="valid"+h.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=h.baseId;if(y||v){var E;h.createErrors=!1,h.schema=a,h.schemaPath=s,h.errSchemaPath=u,n+=" var "+p+" = errors; var "+f+" = true; ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,n+=" "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=w,y?(n+=" if ("+d+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+i)+" = 'then'; ":E="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+d+") { ",v&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+i)+" = 'else'; ":E="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+E+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+E+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}},9784:(e,t,r)=>{"use strict";e.exports={$ref:r(1618),allOf:r(3137),anyOf:r(3229),$comment:r(3159),const:r(2267),contains:r(9629),dependencies:r(1915),enum:r(734),format:r(22),if:r(220),items:r(4787),maximum:r(1510),minimum:r(1510),maxItems:r(1978),minItems:r(1978),maxLength:r(6179),minLength:r(6179),maxProperties:r(206),minProperties:r(206),multipleOf:r(7086),not:r(4734),oneOf:r(3942),pattern:r(8741),properties:r(1221),propertyNames:r(1874),required:r(6262),uniqueItems:r(7392),validate:r(805)}},4787:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e),d="";h.level++;var m="valid"+h.level,g="i"+i,y=h.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+p+" = errors;var "+f+";",Array.isArray(a)){var E=e.schema.additionalItems;if(!1===E){n+=" "+f+" = "+l+".length <= "+a.length+"; ";var w=u;u=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=x.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u=w,c&&(d+="}",n+=" else { ")}var k=a;if(k)for(var A,D=-1,F=k.length-1;D<F;)if(A=k[D+=1],e.opts.strictKeywords?"object"==typeof A&&Object.keys(A).length>0||!1===A:e.util.schemaHasRules(A,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+D+") { ";var C=l+"["+D+"]";h.schema=A,h.schemaPath=s+"["+D+"]",h.errSchemaPath=u+"/"+D,h.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),h.dataPathArr[y]=D;var P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,C)+" ":n+=" var "+v+" = "+C+"; "+P+" ",n+=" } ",c&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof E&&(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))){h.schema=E,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+l+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);C=l+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,C)+" ":n+=" var "+v+" = "+C+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" } } ",c&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=u,n+=" for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);C=l+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,C)+" ":n+=" var "+v+" = "+C+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" }"}return c&&(n+=" "+d+" if ("+p+" == errors) {"),n}},7086:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="var division"+o+";if (",p&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+o+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",p&&(i+=" ) "),i+=" ) { ";var h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var d=i;return i=h.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},4734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=u,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(d=p.opts.allErrors,p.opts.allErrors=!1),n+=" "+e.validate(p)+" ",p.createErrors=!0,d&&(p.opts.allErrors=d),e.compositeRule=p.compositeRule=m,n+=" if ("+h+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}},3942:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e),d="";h.level++;var m="valid"+h.level,g=h.baseId,y="prevValid"+i,v="passingSchemas"+i;n+="var "+p+" = errors , "+y+" = false , "+f+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var E=a;if(E)for(var w,x=-1,S=E.length-1;x<S;)w=E[x+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(h.schema=w,h.schemaPath=s+"["+x+"]",h.errSchemaPath=u+"/"+x,n+=" "+e.validate(h)+" ",h.baseId=g):n+=" var "+m+" = true; ",x&&(n+=" if ("+m+" && "+y+") { "+f+" = false; "+v+" = ["+v+", "+x+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+y+" = true; "+v+" = "+x+"; }";return e.compositeRule=h.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},8741:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(p?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ",i+=p?""+n:""+e.util.toQuotedString(s),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=p?"' + "+n+" + '":""+e.util.escapeQuotes(s),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+e.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var d=i;return i=h.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},1221:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,p=e.util.copy(e),h="";p.level++;var d="valid"+p.level,m="key"+i,g="idx"+i,y=p.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+i,E=Object.keys(a||{}).filter(_),w=e.schema.patternProperties||{},x=Object.keys(w).filter(_),S=e.schema.additionalProperties,k=E.length||x.length,A=!1===S,D="object"==typeof S&&Object.keys(S).length,F=e.opts.removeAdditional,C=A||D||F,P=e.opts.ownProperties,O=e.baseId,T=e.schema.required;if(T&&(!e.opts.$data||!T.$data)&&T.length<e.opts.loopRequired)var j=e.util.toHash(T);function _(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",P&&(n+=" var "+b+" = undefined;"),C){if(n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",k){if(n+=" var isAdditional"+i+" = !(false ",E.length)if(E.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var I=E;if(I)for(var R=-1,L=I.length-1;R<L;)K=I[R+=1],n+=" || "+m+" == "+e.util.toQuotedString(K)+" "}if(x.length){var N=x;if(N)for(var M=-1,B=N.length-1;M<B;)oe=N[M+=1],n+=" || "+e.usePattern(oe)+".test("+m+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==F)n+=" delete "+l+"["+m+"]; ";else{var z=e.errorPath,U="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),A)if(F)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var $=u;u=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+U+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var q=n;n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=$,c&&(n+=" break; ")}else if(D)if("failing"==F){n+=" var "+f+" = errors; ";var V=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=S,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var H=l+"["+m+"]";p.dataPathArr[y]=m;var G=e.validate(p);p.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,H)+" ":n+=" var "+v+" = "+H+"; "+G+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=p.compositeRule=V}else{p.schema=S,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);H=l+"["+m+"]";p.dataPathArr[y]=m;G=e.validate(p);p.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,H)+" ":n+=" var "+v+" = "+H+"; "+G+" ",c&&(n+=" if (!"+d+") break; ")}e.errorPath=z}k&&(n+=" } "),n+=" } ",c&&(n+=" if ("+d+") { ",h+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(E.length){var Q=E;if(Q)for(var K,Y=-1,X=Q.length-1;Y<X;){var Z=a[K=Q[Y+=1]];if(e.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0||!1===Z:e.util.schemaHasRules(Z,e.RULES.all)){var J=e.util.getProperty(K),ee=(H=l+J,W&&void 0!==Z.default);p.schema=Z,p.schemaPath=s+J,p.errSchemaPath=u+"/"+e.util.escapeFragment(K),p.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),p.dataPathArr[y]=e.util.toQuotedString(K);G=e.validate(p);if(p.baseId=O,e.util.varOccurences(G,v)<2){G=e.util.varReplace(G,v,H);var te=H}else{te=v;n+=" var "+v+" = "+H+"; "}if(ee)n+=" "+G+" ";else{if(j&&j[K]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = false; ";z=e.errorPath,$=u;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(z,K,e.opts.jsonPointers)),u=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";q=n;n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=$,e.errorPath=z,n+=" } else { "}else c?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+G+" } "}}c&&(n+=" if ("+d+") { ",h+="}")}}if(x.length){var ie=x;if(ie)for(var oe,ae=-1,se=ie.length-1;ae<se;){Z=w[oe=ie[ae+=1]];if(e.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0||!1===Z:e.util.schemaHasRules(Z,e.RULES.all)){p.schema=Z,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);H=l+"["+m+"]";p.dataPathArr[y]=m;G=e.validate(p);p.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,H)+" ":n+=" var "+v+" = "+H+"; "+G+" ",c&&(n+=" if (!"+d+") break; "),n+=" } ",c&&(n+=" else "+d+" = true; "),n+=" } ",c&&(n+=" if ("+d+") { ",h+="}")}}}return c&&(n+=" "+h+" if ("+f+" == errors) {"),n}},1874:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=u;var d="key"+i,m="idx"+i,g="i"+i,y="' + "+d+" + '",v="data"+(p.dataLevel=e.dataLevel+1),b="dataProperties"+i,E=e.opts.ownProperties,w=e.baseId;E&&(n+=" var "+b+" = undefined; "),n+=E?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+i+" = errors; ";var x=d,S=e.compositeRule;e.compositeRule=p.compositeRule=!0;var k=e.validate(p);p.baseId=w,e.util.varOccurences(k,v)<2?n+=" "+e.util.varReplace(k,v,x)+" ":n+=" var "+v+" = "+x+"; "+k+" ",e.compositeRule=p.compositeRule=S,n+=" if (!"+h+") { for (var "+g+"=startErrs"+i+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),c&&(n+=" break; "),n+=" } }"}return c&&(n+=" if ("+f+" == errors) {"),n}},1618:e=>{"use strict";e.exports=function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,u=e.schema[t],c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),p="valid"+a;if("#"==u||"#/"==u)e.isRoot?(n=e.async,i="validate"):(n=!0===e.root.schema.$async,i="root.refVal[0]");else{var h=e.resolveRef(e.baseId,u,e.isRoot);if(void 0===h){var d=e.MissingRefError.message(e.baseId,u);if("fail"==e.opts.missingRefs){e.logger.error(d),(v=v||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(u)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(u)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(u)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;o=v.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,u,d);e.logger.warn(d),l&&(o+=" if (true) { ")}}else if(h.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=h.schema,g.schemaPath="",g.errSchemaPath=u,o+=" "+e.validate(g).replace(/validate\.schema/g,h.code)+" ",l&&(o+=" if ("+y+") { ")}else n=!0===h.$async||e.async&&!1!==h.$async,i=h.code}if(i){var v;(v=v||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(o+=" var "+p+"; "),o+=" try { await "+b+"; ",l&&(o+=" "+p+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(o+=" "+p+" = false; "),o+=" } ",l&&(o+=" if ("+p+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",l&&(o+=" else { ")}return o}},6262:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var h="schema"+i;if(!p)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,y=-1,v=m.length-1;y<v;){g=m[y+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=g)}}else d=a;if(p||d.length){var E=e.errorPath,w=p||d.length>=e.opts.loopRequired,x=e.opts.ownProperties;if(c)if(n+=" var missing"+i+"; ",w){p||(n+=" var "+h+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+i+"["+(D="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),n+=" var "+f+" = true; ",p&&(n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),n+=" for (var "+D+" = 0; "+D+" < "+h+".length; "+D+"++) { "+f+" = "+l+"["+h+"["+D+"]] !== undefined ",x&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+h+"["+D+"]) "),n+="; if (!"+f+") break; } ",p&&(n+=" } "),n+=" if (!"+f+") { ",(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;n=C.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var A=d;if(A)for(var D=-1,F=A.length-1;D<F;){T=A[D+=1],D&&(n+=" || "),n+=" ( ( "+(R=l+(I=e.util.getProperty(T)))+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:I)+") ) "}n+=") { ";var C;S="' + "+(P="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,P,!0):E+" + "+P),(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";k=n;n=C.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){p||(n+=" var "+h+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+i+"["+(D="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),p&&(n+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),n+=" for (var "+D+" = 0; "+D+" < "+h+".length; "+D+"++) { if ("+l+"["+h+"["+D+"]] === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+h+"["+D+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(n+=" } ")}else{var O=d;if(O)for(var T,j=-1,_=O.length-1;j<_;){T=O[j+=1];var I=e.util.getProperty(T),R=(S=e.util.escapeQuotes(T),l+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,T,e.opts.jsonPointers)),n+=" if ( "+R+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=E}else c&&(n+=" if (true) {");return n}},7392:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p="valid"+o,h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(i+=" var "+p+"; if ("+n+" === false || "+n+" === undefined) "+p+" = true; else if (typeof "+n+" != 'boolean') "+p+" = false; else { "),i+=" var i = "+f+".length , "+p+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+p+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var g="checkDataType"+(m?"s":"");i+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",h&&(i+=" } "),i+=" if (!"+p+") { ";var y=y||[];y.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i}},805:e=>{"use strict";e.exports=function(e,t,r){var n="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var u="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(u);e.logger.warn(u)}}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var c=e.level,l=e.dataLevel,f=e.schema[t],p=e.schemaPath+e.util.getProperty(t),h=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),g="valid"+c;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=i?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;c=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{c=e.level,m="data"+((l=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}g="valid"+c,d=!e.opts.allErrors;var E="",w="",x=e.schema.type,S=Array.isArray(x);if(x&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==x.indexOf("null")&&(x=x.concat("null")):"null"!=x&&(x=[x,"null"],S=!0)),S&&1==x.length&&(x=x[0],S=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),x){if(e.opts.coerceTypes)var k=e.util.coerceToTypes(e.opts.coerceTypes,x);var A=e.RULES.types[x];if(k||S||!0===A||A&&!X(A)){p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type";var D=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[D](x,m,e.opts.strictNumbers,!0)+") { ",k){var F="dataType"+c,C="coerced"+c;n+=" var "+F+" = typeof "+m+"; var "+C+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+F+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+F+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+C+" = "+m+"; } "),n+=" if ("+C+" !== undefined) ; ";var P=k;if(P)for(var O,T=-1,j=P.length-1;T<j;)"string"==(O=P[T+=1])?n+=" else if ("+F+" == 'number' || "+F+" == 'boolean') "+C+" = '' + "+m+"; else if ("+m+" === null) "+C+" = ''; ":"number"==O||"integer"==O?(n+=" else if ("+F+" == 'boolean' || "+m+" === null || ("+F+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==O&&(n+=" && !("+m+" % 1)"),n+=")) "+C+" = +"+m+"; "):"boolean"==O?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+C+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+C+" = true; ":"null"==O?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+C+" = null; ":"array"==e.opts.coerceTypes&&"array"==O&&(n+=" else if ("+F+" == 'string' || "+F+" == 'number' || "+F+" == 'boolean' || "+m+" == null) "+C+" = ["+m+"]; ");n+=" else { ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+C+" !== undefined) { ";var _=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+C+"; ",l||(n+="if ("+_+" !== undefined)"),n+=" "+_+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+C+"; } "}else{(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=v?"0":"errs_"+c,n+=") { ",w+="}");else{var I=e.RULES;if(I)for(var R=-1,L=I.length-1;R<L;)if(X(A=I[R+=1])){if(A.type&&(n+=" if ("+e.util.checkDataType(A.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==A.type&&e.schema.properties){f=e.schema.properties;var N=Object.keys(f);if(N)for(var M,B=-1,z=N.length-1;B<z;){if(void 0!==(q=f[M=N[B+=1]]).default){var U=m+e.util.getProperty(M);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+U+" === null || "+U+" === '' "),n+=" ) "+U+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(q.default)+" ":n+=" "+JSON.stringify(q.default)+" ",n+="; "}}}else if("array"==A.type&&Array.isArray(e.schema.items)){var $=e.schema.items;if($){T=-1;for(var q,V=$.length-1;T<V;)if(void 0!==(q=$[T+=1]).default){U=m+"["+T+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+U+" === null || "+U+" === '' "),n+=" ) "+U+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(q.default)+" ":n+=" "+JSON.stringify(q.default)+" ",n+="; "}}}var H=A.rules;if(H)for(var G,W=-1,Q=H.length-1;W<Q;)if(Z(G=H[W+=1])){var K=G.code(e,G.keyword,A.type);K&&(n+=" "+K+" ",d&&(E+="}"))}if(d&&(n+=" "+E+" ",E=""),A.type&&(n+=" } ",x&&x===A.type&&!k)){n+=" else { ";var Y;p=e.schemaPath+".type",h=e.errSchemaPath+"/type";(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=v?"0":"errs_"+c,n+=") { ",w+="}")}}function X(e){for(var t=e.rules,r=0;r<t.length;r++)if(Z(t[r]))return!0}function Z(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+w+" "),v?(i?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+c+";",n}},7587:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,i=r(5554),o=r(6152);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var a=0;a<o.length;a++)u(e,o[a],t);else u(e,o,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function u(e,t,n){for(var o,a=0;a<r.length;a++){var s=r[a];if(s.type==t){o=s;break}}o||(o={type:t,rules:[]},r.push(o));var u={keyword:e,definition:n,custom:!0,code:i,implements:n.implements};o.rules.push(u),r.custom[e]=u}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,i=0;i<n.length;i++)if(n[i].keyword==e){n.splice(i,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}},9619:(e,t,r)=>{"use strict";var n=r(7061);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,a,s=r(4922).codes,u=s.ERR_AMBIGUOUS_ARGUMENT,c=s.ERR_INVALID_ARG_TYPE,l=s.ERR_INVALID_ARG_VALUE,f=s.ERR_INVALID_RETURN_VALUE,p=s.ERR_MISSING_ARGS,h=r(7366),d=r(1323).inspect,m=r(1323).types,g=m.isPromise,y=m.isRegExp,v=Object.assign?Object.assign:r(2098).assign,b=Object.is?Object.is:r(3822);new Map;function E(){var e=r(118);o=e.isDeepEqual,a=e.isDeepStrictEqual}var w=!1,x=e.exports=D,S={};function k(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function A(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[D,t.length].concat(t))}x.fail=function e(t,r,i,o,a){var s,u=arguments.length;if(0===u)s="Failed";else if(1===u)i=t,t=void 0;else{if(!1===w){w=!0;var c=n.emitWarning?n.emitWarning:console.warn.bind(console);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===u&&(o="!=")}if(i instanceof Error)throw i;var l={actual:t,expected:r,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==i&&(l.message=i);var f=new h(l);throw s&&(f.message=s,f.generatedMessage=!0),f},x.AssertionError=h,x.ok=D,x.equal=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t!=r&&k({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},x.notEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t==r&&k({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},x.deepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&E(),o(t,r)||k({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},x.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&E(),o(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},x.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&E(),a(t,r)||k({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},x.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&E();a(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},x.strictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");b(t,r)||k({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},x.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");b(t,r)&&k({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var F=function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&y(t[e])&&t[e].test(n[e])?i[e]=n[e]:i[e]=t[e])}))};function C(e,t,r,n,i,o){if(!(r in e)||!a(e[r],t[r])){if(!n){var s=new F(e,i),u=new F(t,i,e),c=new h({actual:s,expected:u,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}k({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}function P(e,t,r,n){if("function"!=typeof t){if(y(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var a=new h({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.name,a}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new l("error",t,"may not be an empty object");return void 0===o&&E(),s.forEach((function(i){"string"==typeof e[i]&&y(t[i])&&t[i].test(e[i])||C(e,t,i,r,s,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return S}function T(e){return g(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!T(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!T(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return S})).catch((function(e){return e}))}))}function _(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===i(t)&&null!==t){if(t.message===r)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(t===S){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";k({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!P(t,r,n,e))throw t}function I(e,t,r,n){if(t!==S){if("string"==typeof r&&(n=r,r=void 0),!r||P(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";k({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[R,t.length].concat(t))}x.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];_.apply(void 0,[e,O(t)].concat(n))},x.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return j(t).then((function(t){return _.apply(void 0,[e,t].concat(n))}))},x.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];I.apply(void 0,[e,O(t)].concat(n))},x.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return j(t).then((function(t){return I.apply(void 0,[e,t].concat(n))}))},x.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=d(t);var n=new h({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},x.strict=v(R,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},7366:(e,t,r)=>{"use strict";var n=r(7061);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},u(e)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,r){return l=c()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&f(i,r.prototype),i},l.apply(null,arguments)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}var d=r(1323).inspect,m=r(4922).codes.ERR_INVALID_ARG_TYPE;function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var y="",v="",b="",E="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function k(e,t,r){var i="",o="",a=0,s="",u=!1,c=S(e),l=c.split("\n"),f=S(t).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===h(e)&&"object"===h(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var m=l[0].length+f[0].length;if(m<=10){if(!("object"===h(e)&&null!==e||"object"===h(t)&&null!==t||0===e&&0===t))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r){if(m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",p),"^"),p=0)}}}for(var x=l[l.length-1],k=f[f.length-1];x===k&&(p++<2?s="\n ".concat(x).concat(s):i=x,l.pop(),f.pop(),0!==l.length&&0!==f.length);)x=l[l.length-1],k=f[f.length-1];var A=Math.max(l.length,f.length);if(0===A){var D=c.split("\n");if(D.length>30)for(D[26]="".concat(y,"...").concat(E);D.length>27;)D.pop();return"".concat(w.notIdentical,"\n\n").concat(D.join("\n"),"\n")}p>3&&(s="\n".concat(y,"...").concat(E).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var F=0,C=w[r]+"\n".concat(v,"+ actual").concat(E," ").concat(b,"- expected").concat(E),P=" ".concat(y,"...").concat(E," Lines skipped");for(p=0;p<A;p++){var O=p-a;if(l.length<p+1)O>1&&p>2&&(O>4?(o+="\n".concat(y,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(f[p-2]),F++),o+="\n ".concat(f[p-1]),F++),a=p,i+="\n".concat(b,"-").concat(E," ").concat(f[p]),F++;else if(f.length<p+1)O>1&&p>2&&(O>4?(o+="\n".concat(y,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(l[p-2]),F++),o+="\n ".concat(l[p-1]),F++),a=p,o+="\n".concat(v,"+").concat(E," ").concat(l[p]),F++;else{var T=f[p],j=l[p],_=j!==T&&(!g(j,",")||j.slice(0,-1)!==T);_&&g(T,",")&&T.slice(0,-1)===j&&(_=!1,j+=","),_?(O>1&&p>2&&(O>4?(o+="\n".concat(y,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(l[p-2]),F++),o+="\n ".concat(l[p-1]),F++),a=p,o+="\n".concat(v,"+").concat(E," ").concat(j),i+="\n".concat(b,"-").concat(E," ").concat(T),F+=2):(o+=i,i="",1!==O&&0!==p||(o+="\n ".concat(j),F++))}if(F>20&&p<A-2)return"".concat(C).concat(P,"\n").concat(o,"\n").concat(y,"...").concat(E).concat(i,"\n")+"".concat(y,"...").concat(E)}return"".concat(C).concat(u?P:"","\n").concat(o).concat(i).concat(s).concat(d)}var A=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==h(e)||null===e)throw new m("options","Object",e);var i=e.message,o=e.operator,u=e.stackStartFn,c=e.actual,l=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=a(this,p(t).call(this,String(i)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",v="",E="",b=""):(y="",v="",E="",b="")),"object"===h(c)&&null!==c&&"object"===h(l)&&null!==l&&"stack"in c&&c instanceof Error&&"stack"in l&&l instanceof Error&&(c=x(c),l=x(l)),"deepStrictEqual"===o||"strictEqual"===o)r=a(this,p(t).call(this,k(c,l,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var d=w[o],g=S(c).split("\n");if("notStrictEqual"===o&&"object"===h(c)&&null!==c&&(d=w.notStrictEqualObject),g.length>30)for(g[26]="".concat(y,"...").concat(E);g.length>27;)g.pop();r=1===g.length?a(this,p(t).call(this,"".concat(d," ").concat(g[0]))):a(this,p(t).call(this,"".concat(d,"\n\n").concat(g.join("\n"),"\n")))}else{var A=S(c),D="",F=w[o];"notDeepEqual"===o||"notEqual"===o?(A="".concat(w[o],"\n\n").concat(A)).length>1024&&(A="".concat(A.slice(0,1021),"...")):(D="".concat(S(l)),A.length>512&&(A="".concat(A.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),"deepEqual"===o||"equal"===o?A="".concat(F,"\n\n").concat(A,"\n\nshould equal\n\n"):D=" ".concat(o," ").concat(D)),r=a(this,p(t).call(this,"".concat(A).concat(D)))}return Error.stackTraceLimit=f,r.generatedMessage=!i,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=l,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),u),r.stack,r.name="AssertionError",a(r)}var r,u,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),r=t,u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){i(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],u&&o(r.prototype,u),c&&o(r,c),t}(u(Error));e.exports=A},4922:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s,u,c={};function l(e,t,r){r||(r=Error);var n=function(r){function n(r,a,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),u=i(this,o(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,a,s))),u.code=e,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,r),n}(r);c[e]=n}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a,u,c;if(void 0===s&&(s=r(9619)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!u||u<0?0:+u,a.length)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(l," ").concat(o," ").concat(f(t,"type"))}return c+=". Received type ".concat(n(i))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=r(1323));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===s&&(s=r(9619)),s(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=c},118:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},u=Object.is?Object.is:r(3822),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4866);function f(e){return e.call.bind(e)}var p=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(1323).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,E=m.isRegExp,w=m.isSet,x=m.isNativeError,S=m.isBoxedPrimitive,k=m.isNumberObject,A=m.isStringObject,D=m.isBooleanObject,F=m.isBigIntObject,C=m.isSymbolObject,P=m.isFloat32Array,O=m.isFloat64Array;function T(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function j(e){return Object.keys(e).filter(T).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
9
+ */if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),c=b("react.forward_ref"),l=b("react.suspense"),f=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),d=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case l:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case p:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===y||e===o||e===l||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===u||e.$$typeof===c||e.$$typeof===g||e.$$typeof===d||e[0]===m)},t.typeOf=E},2348:(e,t,r)=>{"use strict";e.exports=r(7007)},3440:(e,t,r)=>{"use strict";var n=r(2611),i=r(4174),o=r(6725),a=r(6287),s=r(7425),u=r(4249),c=r(3085),l=r(7265),f=r(3314),p=r(469),h=r(9762),d=r(8627),m=r(9531),g=r(58),y=r(7605),v=r(480),b=r(9619),E=r(2493),w=r(6096),x=r(917),S=r(488),k=r(7504),A=r(1559),D=r(3428),F=r(2848),C=r(6156),P=r(4014),O=r(2268),T=r(9715),j=r(5164),_=r(4914),I=r(213),R=r(4206),L=r(1311),N=r(4678);function M(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var B=M(i),z=M(o),U=M(a),$=M(s),q=M(l),V=M(f),H=M(p),G=M(b),W=M(T),Q=M(j),K=M(R),Y=M(L),X=M(N);class Z{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(this.id+":config"),this._config=e}}Z.style=".topwrite/style.css",Z.logo="logo.png";function J(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function ee(e,t){return z.default.encrypt(e,t).toString()}function te(e,t){try{return z.default.decrypt(e,t).toString(U.default)}catch{return""}}var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});class ne{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const t=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!t(e=n.cloneDeep(e)))for(const r of t.errors)e=n.omit(e,r.dataPath.substr(1).split("/"));this.values=e}getValue(e,t){return n.get(this.values,e,t)}setValue(e,t){return n.set(this.values,e,t)}toObject(){const e=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,t,r,i,o,a,s)=>(n.isEqual(e,t)&&(delete o[a],n.isEmpty(o)&&function(e,t){const r=[];let i=e;for(let e=0;e<t.length-1;e++)r.push(i),i=i[t[e]];for(let e=t.length-2;e>=0;e--)n.isEmpty(r[e][t[e]])&&delete r[e][t[e]]}(s,n.toPath(i.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,t,r,i,o,a)=>(this.key&&e&&!J(t)&&o&&a&&n.set(o,a,"@encrypted:"+ee(t,this.key)),!0),modifying:!0,errors:!1});const t=e.compile(this.schema),r=n.cloneDeep(this.values);return t(r),r}static createFromObject(e,t,r){const i=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});i.addKeyword("encrypt",{validate:(e,t,i,o,a,s)=>(r&&e&&J(t)&&a&&s&&n.set(a,s,te(t.substr(11),r)),!0),modifying:!0,errors:!1});const o=i.compile(t);if(!o(e))for(const t of o.errors)e=n.omit(e,t.dataPath.substr(1).split("/"));return new this(e,t,r)}}class ie extends ne{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getStructure(e){return this.getValue(["structure",e])}getPluginConfig(e,t){if(!this.pluginsConfig[e]){const r=this.presetPlugins[e]?this.presetPlugins[e]:this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ne.createFromObject(n.cloneDeep(r),t,this.key+":"+e)}return this.pluginsConfig[e]}setPluginConfig(e,t){const r=t.toObject();n.isEmpty(r)?n.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],r),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,ie.schema)}}ie.file="book.json",ie.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},structure:{type:"object",properties:{langs:{default:"LANGS.md",type:"string",title:"File to use as languages index",pattern:"^[a-zA-Z-._\\d,\\s]+$"},readme:{default:"README.md",type:"string",title:"File to use as preface",pattern:"^[a-zA-Z-._\\d,\\s]+$"},summary:{default:"SUMMARY.md",type:"string",title:"File to use as table of contents",pattern:"^[a-zA-Z-._\\d,\\s]+$"}},default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class oe{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new oe(this.data.slice(0,1))}getParent(){return new oe(this.data.slice(0,-1))}createChild(e){return new oe(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(this.toString()+".")}getNext(){const e=[...this.data];return e[e.length-1]++,new oe(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,i=t.data[r]||0;if(n>i)return 1;if(i>n)return-1}return 0}}class ae{constructor(e){let{title:t,ref:r,path:n,children:i=[]}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.title=t,this.ref=r,this.path=n||s.posix.format({...s.posix.parse(this.ref),ext:".html",base:""}),this.children=i,this.level=new oe}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}static createFromObject(e){var t;const r=null==(t=e.children)?void 0:t.map((e=>ae.createFromObject(e)));return new ae({...e,children:r})}}class se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.id=void 0,this.title=void 0,this.articles=void 0,this.level=new oe,this.id=r,this.title=e,this.articles=t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}static createFormObject(e){var t;return new se(e.title,null==(t=e.articles)?void 0:t.map((e=>ae.createFromObject(e))),e.id)}}const ue={tokenize:function(e,t,r){function n(t){return t===y.codes.rightParenthesis?f(t):x.factoryDestination(e,i,r,g.types.resourceDestination,g.types.resourceDestinationLiteral,g.types.resourceDestinationLiteralMarker,g.types.resourceDestinationRaw,g.types.resourceDestinationString,v.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return S.markdownLineEndingOrSpace(t)?w.factoryWhitespace(e,o)(t):f(t)}function o(t){return t===y.codes.quotationMark||t===y.codes.apostrophe||t===y.codes.leftParenthesis?A.factoryTitle(e,w.factoryWhitespace(e,a),r,g.types.resourceTitle,g.types.resourceTitleMarker,g.types.resourceTitleString)(t):a(t)}function a(t){return t===y.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===y.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),c):t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(g.types.chunkString,{contentType:"string"}),u(t))}function u(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):t===y.codes.lowercaseX?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),c):(e.consume(t),u)}function c(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(g.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===y.codes.rightParenthesis?(e.enter(g.types.resourceMarker),e.consume(n),e.exit(g.types.resourceMarker),e.exit(g.types.resource),t):r(n)}return function(t){return e.enter(g.types.resource),e.enter(g.types.resourceMarker),e.consume(t),e.exit(g.types.resourceMarker),w.factoryWhitespace(e,n)}}},ce={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return G.default.strictEqual(t,y.codes.leftSquareBracket,"expected left bracket"),k.factoryLabel.call(n,e,i,r,g.types.reference,g.types.referenceMarker,g.types.referenceString)(t)}}},le={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(g.types.referenceMarker),e.consume(n),e.exit(g.types.referenceMarker),e.exit(g.types.reference),t):r(n)}return function(t){return e.enter(g.types.reference),e.enter(g.types.referenceMarker),e.consume(t),e.exit(g.types.referenceMarker),n}}};var fe={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if((n.events[a][1].type===g.types.labelImage||n.events[a][1].type===g.types.labelLink)&&!n.events[a][1]._balanced){i=n.events[a][1];break}function s(e){return i._balanced=!0,r(e)}function u(r){return r===y.codes.leftParenthesis?e.attempt(ue,t,o?t:s)(r):r===y.codes.leftSquareBracket?e.attempt(ce,t,o?e.attempt(le,t,s):s)(r):o?t(r):s(r)}return function(t){return G.default(t===y.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(o=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(g.types.labelEnd),e.enter(g.types.labelMarker),e.consume(t),e.exit(g.types.labelMarker),e.exit(g.types.labelEnd),u):r(t)}},resolveTo:m.labelEnd.resolveTo,resolveAll:m.labelEnd.resolveAll};const pe=(e,t,r)=>{const n=d.image(e,t,r);return e.width||e.height?n.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):n};pe.peek=d.image.peek;const he=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},de={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===y.codes.greaterThan){const r=n.containerState;return G.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(g.types.blockQuote,{_container:!0}),r.open=!0),e.enter(g.types.blockQuotePrefix),e.enter(g.types.blockQuoteMarker),e.consume(t),e.exit(g.types.blockQuoteMarker),P.factorySpace(e,i,g.types.whitespace)}return r(t)};function i(t){return t===y.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),o):s(t)}function o(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(g.types.chunkString,{contentType:"string"}),a(t))}function a(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),a)}function s(r){return S.markdownSpace(r)?(e.enter(g.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(g.types.blockQuotePrefixWhitespace),e.exit(g.types.blockQuotePrefix),t):(e.exit(g.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return P.factorySpace(e,e.attempt(de,t,r),g.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:v.constants.tabSize)}},exit:m.blockQuote.exit},me=function(e,t){void 0===t&&(t="text");let r="";return D.visit(e,t,(function(e){r+=e.value})),r},ge=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,ye=c.unified().use(q.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(W.default,["yaml"]).use(V.default).use(H.default).use(_.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){D.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const i={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,i)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const i={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,i)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[y.codes.rightSquareBracket]:fe}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:pe}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:h.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r)=>{const n=F.paragraph(e,t,r);return he(e.align)+n},heading:(e,t,r)=>C.heading(e,t,r).replace(/^#+\s/,"$&"+he(e.align))}}),function(e){D.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=u.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:"align-"+e.align}}:e.data={...e.data,hProperties:{className:"align-"+e.align}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r)=>{const n=O.blockquote(e,t,r);return e.variant?n.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):n}}}),e.micromarkExtensions.push({document:{[y.codes.greaterThan]:de}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){D.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){return function(e){D.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&me(e).match(ge))return r.children.splice(t,1),[D.SKIP,t]}))}}));function ve(e){const t=[];for(const r of e.children){const e=r.children,n=u.select("paragraph:first-child>*",r);if(!n||!n.url)continue;const i=me(n);if(!i)continue;const o=decodeURI(n.url);if(o&&o.match(/[\\:*?"<>|]/))continue;let a={title:i,ref:o};if(e.length>1){const t=e[e.length-1];I.is(t,"list")&&(a.children=ve(t))}t.push(a)}return t}const be=ye();class Ee{constructor(e){void 0===e&&(e=[]),this.parts=void 0,this.parts=e,this.indexLevels()}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new oe(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}static createFromObject(e){return new Ee(e.map((e=>se.createFormObject(e))))}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(I.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={id:me(e,"idString").trim(),title:me(e).trim()}),I.is(e,"list")){const t=ve(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return Ee.createFromObject(t)}static create(e){return"object"==typeof e?Ee.createFromObject(e):Ee.createFromText(e)}}class we{constructor(e){let{host:t,preset:r}=e;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}getBuyUrl(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name}async bought(e,t){try{return await K.default.get(this.host+"/api/bought?book="+e.id+"&plugin="+t.name),!0}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await K.default.get(this.host+"/api/query",{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=["theme-"+t.getValue("theme"),...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await K.default.get(this.host+"/api/installed",{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n.filter((e=>!e.builtin||this.preset&&this.preset[e.name]))}}t.YB=void 0;class xe{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.size/10;e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath();const r=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[r.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new xe(e,t,r)}}const Se=/^(?:\w+:)?\/\/(\S+)$/,ke=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ae=/^[^\s\.]+\.\S{2,}$/;Y.default.attach(),K.default.defaults.maxContentLength=1/0,K.default.defaults.maxBodyLength=1/0,Object.defineProperty(t,"WY",{enumerable:!0,get:function(){return K.default}}),t.l_=ne,t.fy=Z,t.De=ie,t.$B=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,t){return n.get(this.meta,e,t)}relative(e){const t="/"===e.slice(-1);return(e=$.default.posix.relative($.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return $.default.posix.join($.default.posix.dirname(this.path),e)}},t.$q=xe,t.aC=oe,t.ER=Ee,t.oI=ae,t.Lj=se,t.rK=re,t.NC=function(e){return t.YB=new we(e)},t.oe=J,t.CB=function(e){const t=e.match(Se);if(!t)return!1;const r=t[1];return!!r&&(ke.test(r)||Ae.test(r))},t.JH=ye,t.FB=function(e){return X.default(e).toString()}},4174:(e,t,r)=>{"use strict";var n=r(1251),i=r(29),o=r(4390),a=r(8969),s=r(6440),u=r(8506),c=r(1077),l=r(3244),f=r(5117);e.exports=y,y.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);!0!==r.$async&&(this.errors=r.errors);return i},y.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},y.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,r,n);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return S(this,t=i.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,n,!0),this},y.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},y.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(d)?d:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return n},y.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=i.schema.call(e,{schema:{}},t);if(r){var o=r.schema,s=r.root,u=r.baseId,c=n.call(e,o,s,void 0,u);return e._fragments[t]=new a({ref:t,fragment:!0,schema:o,root:s,baseId:u,validate:c}),c}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var o=this._getId(e);o&&(o=i.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},y.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},y.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,i="",o=0;o<e.length;o++){var a=e[o];a&&(i+=n+a.dataPath+" "+a.message+r)}return i.slice(0,-r.length)},y.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,s=o?o(e):e,u=this._cache.get(s);if(u)return u;n=n||!1!==this._opts.addUsedSchema;var c=i.normalizeId(this._getId(e));c&&n&&S(this,c);var l,f=!1!==this._opts.validateSchema&&!t;f&&!(l=c&&c==i.normalizeId(e.$schema))&&this.validateSchema(e,!0);var p=i.ids.call(this,e),h=new a({id:c,schema:e,localRefs:p,cacheKey:s,meta:r});"#"!=c[0]&&n&&(this._refs[c]=h);this._cache.put(s,h),f&&l&&this.validateSchema(e,!0);return h},y.prototype._compile=function(e,t){if(e.compiling)return e.validate=o,o.schema=e.schema,o.errors=null,o.root=t||o,!0===e.schema.$async&&(o.$async=!0),o;var r,i;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{i=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function o(){var t=e.validate,r=t.apply(this,arguments);return o.errors=t.errors,r}},y.prototype.compileAsync=r(1101);var p=r(7587);y.prototype.addKeyword=p.add,y.prototype.getKeyword=p.get,y.prototype.removeKeyword=p.remove,y.prototype.validateKeyword=p.validate;var h=r(24);y.ValidationError=h.Validation,y.MissingRefError=h.MissingRef,y.$dataMetaSchema=l;var d="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=f.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:k,warn:k,error:k};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=u(e.format),this._cache=e.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=c(),this._getId=function(e){switch(e.schemaId){case"auto":return x;case"id":return E;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=f.copy(e._opts),r=0;r<m.length;r++)delete t[m[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=r(3633),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var n=r(4222);e._opts.$data&&(n=l(n,g));e.addMetaSchema(n,d,!0),e._refs["http://json-schema.org/schema"]=d}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function v(e,t){return t=i.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var n in t){var i=t[n];i.meta||r&&!r.test(n)||(e._cache.del(i.cacheKey),delete t[n])}}function E(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function x(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function k(){}},4390:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},1101:(e,t,r)=>{"use strict";var n=r(24).MissingRef;e.exports=function e(t,r,i){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(i=r,r=void 0);var a=s(t).then((function(){var e=o._addSchema(t,void 0,r);return e.validate||u(e)}));i&&a.then((function(e){i(null,e)}),i);return a;function s(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function u(e){try{return o._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(c(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var i=o._loadingSchemas[n];i||(i=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(a,a);return i.then((function(e){if(!c(n))return s(e).then((function(){c(n)||o.addSchema(e,n,void 0,r)}))})).then((function(){return u(e)}));function a(){delete o._loadingSchemas[n]}function c(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}}},24:(e,t,r)=>{"use strict";var n=r(29);function i(e,t,r){this.message=r||i.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(i)},i.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},8506:(e,t,r)=>{"use strict";var n=r(5117),i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,l=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,p=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(i);if(!t)return!1;var r=+t[1],n=+t[2],a=+t[3];return n>=1&&n<=12&&a>=1&&a<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[n])}function y(e,t){var r=e.match(a);if(!r)return!1;var n=r[1],i=r[2],o=r[3],s=r[5];return(n<=23&&i<=59&&o<=59||23==n&&59==i&&60==o)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:l,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":p,"json-pointer-uri-fragment":h,"relative-json-pointer":d},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&u.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:l,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":p,"json-pointer-uri-fragment":h,"relative-json-pointer":d};var v=/t|\s/i;var b=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},1251:(e,t,r)=>{"use strict";var n=r(29),i=r(5117),o=r(24),a=r(6440),s=r(805),u=i.ucs2length,c=r(6471),l=o.Validation;function f(e,t,r){var n=h.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function p(e,t,r){var n=h.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function h(e,t,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==e&&i.root==t&&i.baseId==r)return n}return-1}function d(e,t){return"var pattern"+e+" = new RegExp("+i.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function y(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,h,b){var E=this,w=this._opts,x=[void 0],S={},k=[],A={},D=[],F={},C=[];r=r||{schema:t,refVal:x,refs:S};var P=f.call(this,t,r,b),O=this._compilations[P.index];if(P.compiling)return O.callValidate=function e(){var t=O.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var T=this._formats,j=this.RULES;try{var _=R(t,r,h,b);O.validate=_;var I=O.callValidate;return I&&(I.schema=_.schema,I.errors=null,I.refs=_.refs,I.refVal=_.refVal,I.root=_.root,I.$async=_.$async,w.sourceCode&&(I.source=_.source)),_}finally{p.call(this,t,r,b)}function R(t,a,f,p){var h=!a||a&&a.schema==t;if(a.schema!=r.schema)return e.call(E,t,a,f,p);var b,A=!0===t.$async,F=s({isTop:!0,schema:t,isRoot:h,baseId:p,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:j,validate:s,util:i,resolve:n,resolveRef:L,usePattern:B,useDefault:z,useCustomRule:U,opts:w,formats:T,logger:E.logger,self:E});F=v(x,g)+v(k,d)+v(D,m)+v(C,y)+F,w.processCode&&(F=w.processCode(F,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",F)(E,j,T,r,x,D,C,c,u,l),x[0]=b}catch(e){throw E.logger.error("Error compiling schema, function code:",F),e}return b.schema=t,b.errors=null,b.refs=S,b.refVal=x,b.root=h?b:a,A&&(b.$async=!0),!0===w.sourceCode&&(b.source={code:F,patterns:k,defaults:D}),b}function L(t,i,o){i=n.url(t,i);var a,s,u=S[i];if(void 0!==u)return M(a=x[u],s="refVal["+u+"]");if(!o&&r.refs){var c=r.refs[i];if(void 0!==c)return M(a=r.refVal[c],s=N(i,a))}s=N(i);var l=n.call(E,R,r,i);if(void 0===l){var f=h&&h[i];f&&(l=n.inlineRef(f,w.inlineRefs)?f:e.call(E,f,r,h,t))}if(void 0!==l)return function(e,t){var r=S[e];x[r]=t}(i,l),M(l,s);!function(e){delete S[e]}(i)}function N(e,t){var r=x.length;return x[r]=t,S[e]=r,"refVal"+r}function M(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function B(e){var t=A[e];return void 0===t&&(t=A[e]=k.length,k[t]=e),"pattern"+t}function z(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),r=F[t];return void 0===r&&(r=F[t]=D.length,D[r]=e),"default"+r}}function U(e,t,r,n){if(!1!==E._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var o=e.definition.validateSchema;if(o)if(!o(t)){var a="keyword schema is invalid: "+E.errorsText(o.errors);if("log"!=E._opts.validateSchema)throw new Error(a);E.logger.error(a)}}var s,u=e.definition.compile,c=e.definition.inline,l=e.definition.macro;if(u)s=u.call(E,t,r,n);else if(l)s=l.call(E,t,r,n),!1!==w.validateSchema&&E.validateSchema(s,!0);else if(c)s=c.call(E,n,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=C.length;return C[f]=s,{code:"customRule"+f,validate:s}}}},29:(e,t,r)=>{"use strict";var n=r(2371),i=r(6471),o=r(5117),a=r(8969),s=r(5127);function u(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return u.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof a)return d(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i,o,s,l=c.call(this,t,r);return l&&(i=l.schema,t=l.root,s=l.baseId),i instanceof a?o=i.validate||e.call(this,i.schema,t,void 0,s):void 0!==i&&(o=d(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,s)),o}function c(e,t){var r=n.parse(t),i=v(r),o=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==o){var s=E(i),u=this._refs[s];if("string"==typeof u)return l.call(this,e,u,r);if(u instanceof a)u.validate||this._compile(u),e=u;else{if(!((u=this._schemas[s])instanceof a))return;if(u.validate||this._compile(u),s==E(t))return{schema:u,root:e,baseId:o};e=u}if(!e.schema)return;o=y(this._getId(e.schema))}return p.call(this,r,o,e.schema,e)}function l(e,t,r){var n=c.call(this,e,t);if(n){var i=n.schema,o=n.baseId;e=n.root;var a=this._getId(i);return a&&(o=w(o,a)),p.call(this,r,o,i,e)}}e.exports=u,u.normalizeId=E,u.fullPath=y,u.url=w,u.ids=function(e){var t=E(this._getId(e)),r={"":t},a={"":y(t,!1)},u={},c=this;return s(e,{allKeys:!0},(function(e,t,s,l,f,p,h){if(""!==t){var d=c._getId(e),m=r[l],g=a[l]+"/"+f;if(void 0!==h&&(g+="/"+("number"==typeof h?h:o.escapeFragment(h))),"string"==typeof d){d=m=E(m?n.resolve(m,d):d);var y=c._refs[d];if("string"==typeof y&&(y=c._refs[y]),y&&y.schema){if(!i(e,y.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=E(g))if("#"==d[0]){if(u[d]&&!i(e,u[d]))throw new Error('id "'+d+'" resolves to more than one schema');u[d]=e}else c._refs[d]=g}r[t]=m,a[t]=g}})),u},u.inlineRef=d,u.schema=c;var f=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function p(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),a=1;a<i.length;a++){var s=i[a];if(s){if(void 0===(r=r[s=o.unescapeFragment(s)]))break;var u;if(!f[s]&&((u=this._getId(r))&&(t=w(t,u)),r.$ref)){var l=w(t,r.$ref),p=c.call(this,n,l);p&&(r=p.schema,n=p.root,t=p.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var h=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?g(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function g(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=g(t)),r==1/0)return 1/0}else for(var i in e){if("$ref"==i)return 1/0;if(h[i])r++;else if("object"==typeof(t=e[i])&&(r+=g(t)+1),r==1/0)return 1/0}return r}function y(e,t){return!1!==t&&(e=E(e)),v(n.parse(e))}function v(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function E(e){return e?e.replace(b,""):""}function w(e,t){return t=E(t),n.resolve(e,t)}},1077:(e,t,r)=>{"use strict";var n=r(9784),i=r(5117).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=i(t),e.types=i(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var i;if("object"==typeof r){var o=Object.keys(r)[0];i=r[o],r=o,i.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:i}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=i(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},8969:(e,t,r)=>{"use strict";var n=r(5117);e.exports=function(e){n.copy(e,this)}},7959:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,i=0;i<n;)r++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<n&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return r}},5117:(e,t,r)=>{"use strict";function n(e,t,r,n){var i=n?" !== ":" === ",o=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(r?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var i="",a=o(e);for(var s in a.array&&a.object&&(i=a.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?" && ":"")+n(s,t,r,!0);return i},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var o=t[n];(i[o]||"array"===e&&"array"===o)&&(r[r.length]=o)}if(r.length)return r}else{if(i[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:o,getProperty:u,escapeQuotes:c,equal:r(6471),ucs2length:r(7959),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:l,getPathExpr:function(e,t,r,n){return h(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=l(r?"/"+d(t):u(t));return h(e,n)},getData:function(e,t,r){var n,i,o,a;if(""===e)return"rootData";if("/"==e[0]){if(!f.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(a=e.match(p)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(i=a[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!i)return o}for(var s=o,c=i.split("/"),l=0;l<c.length;l++){var h=c[l];h&&(o+=u(m(h)),s+=" && "+o)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var i=o(["string","number","integer","boolean","null"]);function o(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function u(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+c(e)+"']"}function c(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+c(e)+"'"}var f=/^\/(?:[^~]|~0|~1)*$/,p=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},3244:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var i,o=r[n].split("/"),a=e;for(i=1;i<o.length;i++)a=a[o[i]];for(i=0;i<t.length;i++){var s=t[i],u=a[s];u&&(a[s]={anyOf:[u,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},6152:(e,t,r)=>{"use strict";var n=r(4222);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},1510:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s;var h="maximum"==t,d=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,y=h?"<":">",v=h?">":"<",b=void 0;if(!p&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var E=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+o,x="exclType"+o,S="exclIsNumber"+o,k="' + "+(F="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+E+"; ",i+=" var "+w+"; var "+x+" = typeof "+(E="schemaExcl"+o)+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ";var A;b=d;(A=A||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var D=i;i=A.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+x+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+E+" "+y+"= "+n+") ? "+f+" "+v+"= "+E+" : "+f+" "+v+" "+n+" ) : ( ("+w+" = "+E+" === true) ? "+f+" "+v+"= "+n+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { var op"+o+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=d,c=e.errSchemaPath+"/"+d,n=E,p=g)}else{k=y;if((S="number"==typeof m)&&p){var F="'"+k+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+f+" "+v+"= "+m+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { "}else{S&&void 0===s?(w=!0,b=d,c=e.errSchemaPath+"/"+d,n=m,v+="="):(S&&(n=Math[h?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=d,c=e.errSchemaPath+"/"+d,v+="="):(w=!1,k+="="));F="'"+k+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+f+" "+v+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(A=A||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+F+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+k+" ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";D=i;return i=A.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i}},1978:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+f+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var h=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},6179:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?i+=" "+f+".length ":i+=" ucs2length("+f+") ",i+=" "+h+" "+n+") { ";var d=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},206:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var h=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},3137:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,u=e.util.copy(e),c="";u.level++;var l="valid"+u.level,f=u.baseId,p=!0,h=i;if(h)for(var d,m=-1,g=h.length-1;m<g;)d=h[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(p=!1,u.schema=d,u.schemaPath=o+"["+m+"]",u.errSchemaPath=a+"/"+m,n+=" "+e.validate(u)+" ",u.baseId=f,s&&(n+=" if ("+l+") { ",c+="}"));return s&&(n+=p?" if (true) { ":" "+c.slice(0,-1)+" "),n}},3229:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e),d="";h.level++;var m="valid"+h.level,g=a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=h.baseId;n+=" var "+p+" = errors; var "+f+" = false; ";var v=e.compositeRule;e.compositeRule=h.compositeRule=!0;var b=a;if(b)for(var E,w=-1,x=b.length-1;w<x;)E=b[w+=1],h.schema=E,h.schemaPath=s+"["+w+"]",h.errSchemaPath=u+"/"+w,n+=" "+e.validate(h)+" ",h.baseId=y,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=h.compositeRule=v,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else c&&(n+=" if (true) { ");return n}},3159:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.schema[t],o=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(i));return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n}},2267:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; "),p||(n+=" var schema"+i+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+i+"); if (!"+f+") { ";var h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=h.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},9629:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e);h.level++;var d="valid"+h.level,m="i"+i,g=h.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+p+" = errors;var "+f+";",b){var E=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=a,h.schemaPath=s,h.errSchemaPath=u,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=l+"["+m+"]";h.dataPathArr[g]=m;var x=e.validate(h);h.baseId=v,e.util.varOccurences(x,y)<2?n+=" "+e.util.varReplace(x,y,w)+" ":n+=" var "+y+" = "+w+"; "+x+" ",n+=" if ("+d+") break; } ",e.compositeRule=h.compositeRule=E,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;return n=S.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},5554:e=>{"use strict";e.exports=function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,u=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,p="data"+(s||""),h="valid"+a,d="errs__"+a,m=e.opts.$data&&u&&u.$data;m?(o+=" var schema"+a+" = "+e.util.getData(u.$data,s,e.dataPathArr)+"; ",i="schema"+a):i=u;var g,y,v,b,E,w=this,x="definition"+a,S=w.definition,k="";if(m&&S.$data){E="keywordValidate"+a;var A=S.validateSchema;o+=" var "+x+" = RULES.custom['"+t+"'].definition; var "+E+" = "+x+".validate;"}else{if(!(b=e.useCustomRule(w,u,e.schema,e)))return;i="validate.schema"+c,E=b.code,g=S.compile,y=S.inline,v=S.macro}var D=E+".errors",F="i"+a,C="ruleErr"+a,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(o+=D+" = null;"),o+="var "+d+" = errors;var "+h+";",m&&S.$data&&(k+="}",o+=" if ("+i+" === undefined) { "+h+" = true; } else { ",A&&(k+="}",o+=" "+h+" = "+x+".validateSchema("+i+"); if ("+h+") { ")),y)S.statements?o+=" "+b.validate+" ":o+=" "+h+" = "+b.validate+"; ";else if(v){var O=e.util.copy(e);k="";O.level++;var T="valid"+O.level;O.schema=b.validate,O.schemaPath="";var j=e.compositeRule;e.compositeRule=O.compositeRule=!0;var _=e.validate(O).replace(/validate\.schema/g,E);e.compositeRule=O.compositeRule=j,o+=" "+_}else{(N=N||[]).push(o),o="",o+=" "+E+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===S.schema?o+=" , "+p+" ":o+=" , "+i+" , "+p+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",R=s?e.dataPathArr[s]:"parentDataProperty",L=o+=" , "+I+" , "+R+" , rootData ) ";o=N.pop(),!1===S.errors?(o+=" "+h+" = ",P&&(o+="await "),o+=L+"; "):o+=P?" var "+(D="customErrors"+a)+" = null; try { "+h+" = await "+L+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+D+" = e.errors; else throw e; } ":" "+D+" = null; "+h+" = "+L+"; "}if(S.modifying&&(o+=" if ("+I+") "+p+" = "+I+"["+R+"];"),o+=""+k,S.valid)f&&(o+=" if (true) { ");else{var N;o+=" if ( ",void 0===S.valid?(o+=" !",o+=v?""+T:""+h):o+=" "+!S.valid+" ",o+=") { ",n=w.keyword,(N=N||[]).push(o),o="",(N=N||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var M=o;o=N.pop(),!e.compositeRule&&f?e.async?o+=" throw new ValidationError(["+M+"]); ":o+=" validate.errors = ["+M+"]; return false; ":o+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var B=o;o=N.pop(),y?S.errors?"full"!=S.errors&&(o+=" for (var "+F+"="+d+"; "+F+"<errors; "+F+"++) { var "+C+" = vErrors["+F+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+p+"; "),o+=" } "):!1===S.errors?o+=" "+B+" ":(o+=" if ("+d+" == errors) { "+B+" } else { for (var "+F+"="+d+"; "+F+"<errors; "+F+"++) { var "+C+" = vErrors["+F+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+p+"; "),o+=" } } "):v?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===S.errors?o+=" "+B+" ":(o+=" if (Array.isArray("+D+")) { if (vErrors === null) vErrors = "+D+"; else vErrors = vErrors.concat("+D+"); errors = vErrors.length; for (var "+F+"="+d+"; "+F+"<errors; "+F+"++) { var "+C+" = vErrors["+F+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; "+C+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+p+"; "),o+=" } } else { "+B+" } "),o+=" } ",f&&(o+=" else { ")}return o}},1915:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,p=e.util.copy(e),h="";p.level++;var d="valid"+p.level,m={},g={},y=e.opts.ownProperties;for(w in a)if("__proto__"!=w){var v=a[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+f+" = errors;";var E=e.errorPath;for(var w in n+="var missing"+i+";",g)if((b=g[w]).length){if(n+=" if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),c){n+=" && ( ";var x=b;if(x)for(var S=-1,k=x.length-1;S<k;){O=x[S+=1],S&&(n+=" || "),n+=" ( ( "+(I=l+(_=e.util.getProperty(O)))+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:_)+") ) "}n+=")) { ";var A="missing"+i,D="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,A,!0):E+" + "+A);var F=F||[];F.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var C=n;n=F.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var P=b;if(P)for(var O,T=-1,j=P.length-1;T<j;){O=P[T+=1];var _=e.util.getProperty(O),I=(D=e.util.escapeQuotes(O),l+_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,O,e.opts.jsonPointers)),n+=" if ( "+I+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",c&&(h+="}",n+=" else { ")}e.errorPath=E;var R=p.baseId;for(var w in m){v=m[w];(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",p.schema=v,p.schemaPath=s+e.util.getProperty(w),p.errSchemaPath=u+"/"+e.util.escapeFragment(w),n+=" "+e.validate(p)+" ",p.baseId=R,n+=" } ",c&&(n+=" if ("+d+") { ",h+="}"))}return c&&(n+=" "+h+" if ("+f+" == errors) {"),n}},734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var h="i"+i,d="schema"+i;p||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",p&&(n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),n+=f+" = false;for (var "+h+"=0; "+h+"<"+d+".length; "+h+"++) if (equal("+l+", "+d+"["+h+"])) { "+f+" = true; break; }",p&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},22:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||"");if(!1===e.opts.format)return c&&(n+=" if (true) { "),n;var f,p=e.opts.$data&&a&&a.$data;p?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a;var h=e.opts.unknownFormats,d=Array.isArray(h);if(p){n+=" var "+(m="format"+i)+" = formats["+f+"]; var "+(g="isObject"+i)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+i)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+i+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",p&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=h&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==h)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(d&&h.indexOf(a)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return c&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(a);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",n+=p?""+f:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=p?"' + "+f+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=p?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var w=n;return n=E.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}},220:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e);h.level++;var d="valid"+h.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=h.baseId;if(y||v){var E;h.createErrors=!1,h.schema=a,h.schemaPath=s,h.errSchemaPath=u,n+=" var "+p+" = errors; var "+f+" = true; ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,n+=" "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=w,y?(n+=" if ("+d+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+i)+" = 'then'; ":E="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+d+") { ",v&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+i)+" = 'else'; ":E="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+E+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+E+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}},9784:(e,t,r)=>{"use strict";e.exports={$ref:r(1618),allOf:r(3137),anyOf:r(3229),$comment:r(3159),const:r(2267),contains:r(9629),dependencies:r(1915),enum:r(734),format:r(22),if:r(220),items:r(4787),maximum:r(1510),minimum:r(1510),maxItems:r(1978),minItems:r(1978),maxLength:r(6179),minLength:r(6179),maxProperties:r(206),minProperties:r(206),multipleOf:r(7086),not:r(4734),oneOf:r(3942),pattern:r(8741),properties:r(1221),propertyNames:r(1874),required:r(6262),uniqueItems:r(7392),validate:r(805)}},4787:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e),d="";h.level++;var m="valid"+h.level,g="i"+i,y=h.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+p+" = errors;var "+f+";",Array.isArray(a)){var E=e.schema.additionalItems;if(!1===E){n+=" "+f+" = "+l+".length <= "+a.length+"; ";var w=u;u=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=x.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u=w,c&&(d+="}",n+=" else { ")}var k=a;if(k)for(var A,D=-1,F=k.length-1;D<F;)if(A=k[D+=1],e.opts.strictKeywords?"object"==typeof A&&Object.keys(A).length>0||!1===A:e.util.schemaHasRules(A,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+D+") { ";var C=l+"["+D+"]";h.schema=A,h.schemaPath=s+"["+D+"]",h.errSchemaPath=u+"/"+D,h.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),h.dataPathArr[y]=D;var P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,C)+" ":n+=" var "+v+" = "+C+"; "+P+" ",n+=" } ",c&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof E&&(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))){h.schema=E,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+l+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);C=l+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,C)+" ":n+=" var "+v+" = "+C+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" } } ",c&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=u,n+=" for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);C=l+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,C)+" ":n+=" var "+v+" = "+C+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" }"}return c&&(n+=" "+d+" if ("+p+" == errors) {"),n}},7086:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="var division"+o+";if (",p&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+o+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",p&&(i+=" ) "),i+=" ) { ";var h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var d=i;return i=h.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},4734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=u,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(d=p.opts.allErrors,p.opts.allErrors=!1),n+=" "+e.validate(p)+" ",p.createErrors=!0,d&&(p.opts.allErrors=d),e.compositeRule=p.compositeRule=m,n+=" if ("+h+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}},3942:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p="errs__"+i,h=e.util.copy(e),d="";h.level++;var m="valid"+h.level,g=h.baseId,y="prevValid"+i,v="passingSchemas"+i;n+="var "+p+" = errors , "+y+" = false , "+f+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var E=a;if(E)for(var w,x=-1,S=E.length-1;x<S;)w=E[x+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(h.schema=w,h.schemaPath=s+"["+x+"]",h.errSchemaPath=u+"/"+x,n+=" "+e.validate(h)+" ",h.baseId=g):n+=" var "+m+" = true; ",x&&(n+=" if ("+m+" && "+y+") { "+f+" = false; "+v+" = ["+v+", "+x+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+y+" = true; "+v+" = "+x+"; }";return e.compositeRule=h.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},8741:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(p?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ",i+=p?""+n:""+e.util.toQuotedString(s),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=p?"' + "+n+" + '":""+e.util.escapeQuotes(s),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+e.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var d=i;return i=h.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},1221:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,p=e.util.copy(e),h="";p.level++;var d="valid"+p.level,m="key"+i,g="idx"+i,y=p.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+i,E=Object.keys(a||{}).filter(_),w=e.schema.patternProperties||{},x=Object.keys(w).filter(_),S=e.schema.additionalProperties,k=E.length||x.length,A=!1===S,D="object"==typeof S&&Object.keys(S).length,F=e.opts.removeAdditional,C=A||D||F,P=e.opts.ownProperties,O=e.baseId,T=e.schema.required;if(T&&(!e.opts.$data||!T.$data)&&T.length<e.opts.loopRequired)var j=e.util.toHash(T);function _(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",P&&(n+=" var "+b+" = undefined;"),C){if(n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",k){if(n+=" var isAdditional"+i+" = !(false ",E.length)if(E.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var I=E;if(I)for(var R=-1,L=I.length-1;R<L;)K=I[R+=1],n+=" || "+m+" == "+e.util.toQuotedString(K)+" "}if(x.length){var N=x;if(N)for(var M=-1,B=N.length-1;M<B;)oe=N[M+=1],n+=" || "+e.usePattern(oe)+".test("+m+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==F)n+=" delete "+l+"["+m+"]; ";else{var z=e.errorPath,U="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),A)if(F)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var $=u;u=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+U+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var q=n;n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=$,c&&(n+=" break; ")}else if(D)if("failing"==F){n+=" var "+f+" = errors; ";var V=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=S,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var H=l+"["+m+"]";p.dataPathArr[y]=m;var G=e.validate(p);p.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,H)+" ":n+=" var "+v+" = "+H+"; "+G+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=p.compositeRule=V}else{p.schema=S,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);H=l+"["+m+"]";p.dataPathArr[y]=m;G=e.validate(p);p.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,H)+" ":n+=" var "+v+" = "+H+"; "+G+" ",c&&(n+=" if (!"+d+") break; ")}e.errorPath=z}k&&(n+=" } "),n+=" } ",c&&(n+=" if ("+d+") { ",h+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(E.length){var Q=E;if(Q)for(var K,Y=-1,X=Q.length-1;Y<X;){var Z=a[K=Q[Y+=1]];if(e.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0||!1===Z:e.util.schemaHasRules(Z,e.RULES.all)){var J=e.util.getProperty(K),ee=(H=l+J,W&&void 0!==Z.default);p.schema=Z,p.schemaPath=s+J,p.errSchemaPath=u+"/"+e.util.escapeFragment(K),p.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),p.dataPathArr[y]=e.util.toQuotedString(K);G=e.validate(p);if(p.baseId=O,e.util.varOccurences(G,v)<2){G=e.util.varReplace(G,v,H);var te=H}else{te=v;n+=" var "+v+" = "+H+"; "}if(ee)n+=" "+G+" ";else{if(j&&j[K]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = false; ";z=e.errorPath,$=u;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(z,K,e.opts.jsonPointers)),u=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";q=n;n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=$,e.errorPath=z,n+=" } else { "}else c?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+G+" } "}}c&&(n+=" if ("+d+") { ",h+="}")}}if(x.length){var ie=x;if(ie)for(var oe,ae=-1,se=ie.length-1;ae<se;){Z=w[oe=ie[ae+=1]];if(e.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0||!1===Z:e.util.schemaHasRules(Z,e.RULES.all)){p.schema=Z,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);H=l+"["+m+"]";p.dataPathArr[y]=m;G=e.validate(p);p.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,H)+" ":n+=" var "+v+" = "+H+"; "+G+" ",c&&(n+=" if (!"+d+") break; "),n+=" } ",c&&(n+=" else "+d+" = true; "),n+=" } ",c&&(n+=" if ("+d+") { ",h+="}")}}}return c&&(n+=" "+h+" if ("+f+" == errors) {"),n}},1874:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=u;var d="key"+i,m="idx"+i,g="i"+i,y="' + "+d+" + '",v="data"+(p.dataLevel=e.dataLevel+1),b="dataProperties"+i,E=e.opts.ownProperties,w=e.baseId;E&&(n+=" var "+b+" = undefined; "),n+=E?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+i+" = errors; ";var x=d,S=e.compositeRule;e.compositeRule=p.compositeRule=!0;var k=e.validate(p);p.baseId=w,e.util.varOccurences(k,v)<2?n+=" "+e.util.varReplace(k,v,x)+" ":n+=" var "+v+" = "+x+"; "+k+" ",e.compositeRule=p.compositeRule=S,n+=" if (!"+h+") { for (var "+g+"=startErrs"+i+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),c&&(n+=" break; "),n+=" } }"}return c&&(n+=" if ("+f+" == errors) {"),n}},1618:e=>{"use strict";e.exports=function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,u=e.schema[t],c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),p="valid"+a;if("#"==u||"#/"==u)e.isRoot?(n=e.async,i="validate"):(n=!0===e.root.schema.$async,i="root.refVal[0]");else{var h=e.resolveRef(e.baseId,u,e.isRoot);if(void 0===h){var d=e.MissingRefError.message(e.baseId,u);if("fail"==e.opts.missingRefs){e.logger.error(d),(v=v||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(u)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(u)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(u)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;o=v.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,u,d);e.logger.warn(d),l&&(o+=" if (true) { ")}}else if(h.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=h.schema,g.schemaPath="",g.errSchemaPath=u,o+=" "+e.validate(g).replace(/validate\.schema/g,h.code)+" ",l&&(o+=" if ("+y+") { ")}else n=!0===h.$async||e.async&&!1!==h.$async,i=h.code}if(i){var v;(v=v||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(o+=" var "+p+"; "),o+=" try { await "+b+"; ",l&&(o+=" "+p+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(o+=" "+p+" = false; "),o+=" } ",l&&(o+=" if ("+p+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",l&&(o+=" else { ")}return o}},6262:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var h="schema"+i;if(!p)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,y=-1,v=m.length-1;y<v;){g=m[y+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=g)}}else d=a;if(p||d.length){var E=e.errorPath,w=p||d.length>=e.opts.loopRequired,x=e.opts.ownProperties;if(c)if(n+=" var missing"+i+"; ",w){p||(n+=" var "+h+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+i+"["+(D="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),n+=" var "+f+" = true; ",p&&(n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),n+=" for (var "+D+" = 0; "+D+" < "+h+".length; "+D+"++) { "+f+" = "+l+"["+h+"["+D+"]] !== undefined ",x&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+h+"["+D+"]) "),n+="; if (!"+f+") break; } ",p&&(n+=" } "),n+=" if (!"+f+") { ",(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;n=C.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var A=d;if(A)for(var D=-1,F=A.length-1;D<F;){T=A[D+=1],D&&(n+=" || "),n+=" ( ( "+(R=l+(I=e.util.getProperty(T)))+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:I)+") ) "}n+=") { ";var C;S="' + "+(P="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,P,!0):E+" + "+P),(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";k=n;n=C.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){p||(n+=" var "+h+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+i+"["+(D="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),p&&(n+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),n+=" for (var "+D+" = 0; "+D+" < "+h+".length; "+D+"++) { if ("+l+"["+h+"["+D+"]] === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+h+"["+D+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(n+=" } ")}else{var O=d;if(O)for(var T,j=-1,_=O.length-1;j<_;){T=O[j+=1];var I=e.util.getProperty(T),R=(S=e.util.escapeQuotes(T),l+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,T,e.opts.jsonPointers)),n+=" if ( "+R+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=E}else c&&(n+=" if (true) {");return n}},7392:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),p="valid"+o,h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(i+=" var "+p+"; if ("+n+" === false || "+n+" === undefined) "+p+" = true; else if (typeof "+n+" != 'boolean') "+p+" = false; else { "),i+=" var i = "+f+".length , "+p+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+p+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var g="checkDataType"+(m?"s":"");i+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",h&&(i+=" } "),i+=" if (!"+p+") { ";var y=y||[];y.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i}},805:e=>{"use strict";e.exports=function(e,t,r){var n="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var u="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(u);e.logger.warn(u)}}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var c=e.level,l=e.dataLevel,f=e.schema[t],p=e.schemaPath+e.util.getProperty(t),h=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),g="valid"+c;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=i?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;c=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{c=e.level,m="data"+((l=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}g="valid"+c,d=!e.opts.allErrors;var E="",w="",x=e.schema.type,S=Array.isArray(x);if(x&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==x.indexOf("null")&&(x=x.concat("null")):"null"!=x&&(x=[x,"null"],S=!0)),S&&1==x.length&&(x=x[0],S=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),x){if(e.opts.coerceTypes)var k=e.util.coerceToTypes(e.opts.coerceTypes,x);var A=e.RULES.types[x];if(k||S||!0===A||A&&!X(A)){p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type";var D=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[D](x,m,e.opts.strictNumbers,!0)+") { ",k){var F="dataType"+c,C="coerced"+c;n+=" var "+F+" = typeof "+m+"; var "+C+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+F+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+F+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+C+" = "+m+"; } "),n+=" if ("+C+" !== undefined) ; ";var P=k;if(P)for(var O,T=-1,j=P.length-1;T<j;)"string"==(O=P[T+=1])?n+=" else if ("+F+" == 'number' || "+F+" == 'boolean') "+C+" = '' + "+m+"; else if ("+m+" === null) "+C+" = ''; ":"number"==O||"integer"==O?(n+=" else if ("+F+" == 'boolean' || "+m+" === null || ("+F+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==O&&(n+=" && !("+m+" % 1)"),n+=")) "+C+" = +"+m+"; "):"boolean"==O?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+C+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+C+" = true; ":"null"==O?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+C+" = null; ":"array"==e.opts.coerceTypes&&"array"==O&&(n+=" else if ("+F+" == 'string' || "+F+" == 'number' || "+F+" == 'boolean' || "+m+" == null) "+C+" = ["+m+"]; ");n+=" else { ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+C+" !== undefined) { ";var _=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+C+"; ",l||(n+="if ("+_+" !== undefined)"),n+=" "+_+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+C+"; } "}else{(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=v?"0":"errs_"+c,n+=") { ",w+="}");else{var I=e.RULES;if(I)for(var R=-1,L=I.length-1;R<L;)if(X(A=I[R+=1])){if(A.type&&(n+=" if ("+e.util.checkDataType(A.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==A.type&&e.schema.properties){f=e.schema.properties;var N=Object.keys(f);if(N)for(var M,B=-1,z=N.length-1;B<z;){if(void 0!==(q=f[M=N[B+=1]]).default){var U=m+e.util.getProperty(M);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+U+" === null || "+U+" === '' "),n+=" ) "+U+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(q.default)+" ":n+=" "+JSON.stringify(q.default)+" ",n+="; "}}}else if("array"==A.type&&Array.isArray(e.schema.items)){var $=e.schema.items;if($){T=-1;for(var q,V=$.length-1;T<V;)if(void 0!==(q=$[T+=1]).default){U=m+"["+T+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+U+" === null || "+U+" === '' "),n+=" ) "+U+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(q.default)+" ":n+=" "+JSON.stringify(q.default)+" ",n+="; "}}}var H=A.rules;if(H)for(var G,W=-1,Q=H.length-1;W<Q;)if(Z(G=H[W+=1])){var K=G.code(e,G.keyword,A.type);K&&(n+=" "+K+" ",d&&(E+="}"))}if(d&&(n+=" "+E+" ",E=""),A.type&&(n+=" } ",x&&x===A.type&&!k)){n+=" else { ";var Y;p=e.schemaPath+".type",h=e.errSchemaPath+"/type";(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=v?"0":"errs_"+c,n+=") { ",w+="}")}}function X(e){for(var t=e.rules,r=0;r<t.length;r++)if(Z(t[r]))return!0}function Z(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+w+" "),v?(i?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+c+";",n}},7587:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,i=r(5554),o=r(6152);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var a=0;a<o.length;a++)u(e,o[a],t);else u(e,o,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function u(e,t,n){for(var o,a=0;a<r.length;a++){var s=r[a];if(s.type==t){o=s;break}}o||(o={type:t,rules:[]},r.push(o));var u={keyword:e,definition:n,custom:!0,code:i,implements:n.implements};o.rules.push(u),r.custom[e]=u}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,i=0;i<n.length;i++)if(n[i].keyword==e){n.splice(i,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}},9619:(e,t,r)=>{"use strict";var n=r(7061);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,a,s=r(4922).codes,u=s.ERR_AMBIGUOUS_ARGUMENT,c=s.ERR_INVALID_ARG_TYPE,l=s.ERR_INVALID_ARG_VALUE,f=s.ERR_INVALID_RETURN_VALUE,p=s.ERR_MISSING_ARGS,h=r(7366),d=r(1323).inspect,m=r(1323).types,g=m.isPromise,y=m.isRegExp,v=Object.assign?Object.assign:r(2098).assign,b=Object.is?Object.is:r(3822);new Map;function E(){var e=r(118);o=e.isDeepEqual,a=e.isDeepStrictEqual}var w=!1,x=e.exports=D,S={};function k(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function A(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[D,t.length].concat(t))}x.fail=function e(t,r,i,o,a){var s,u=arguments.length;if(0===u)s="Failed";else if(1===u)i=t,t=void 0;else{if(!1===w){w=!0;var c=n.emitWarning?n.emitWarning:console.warn.bind(console);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===u&&(o="!=")}if(i instanceof Error)throw i;var l={actual:t,expected:r,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==i&&(l.message=i);var f=new h(l);throw s&&(f.message=s,f.generatedMessage=!0),f},x.AssertionError=h,x.ok=D,x.equal=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t!=r&&k({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},x.notEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t==r&&k({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},x.deepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&E(),o(t,r)||k({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},x.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&E(),o(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},x.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&E(),a(t,r)||k({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},x.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&E();a(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},x.strictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");b(t,r)||k({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},x.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");b(t,r)&&k({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var F=function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&y(t[e])&&t[e].test(n[e])?i[e]=n[e]:i[e]=t[e])}))};function C(e,t,r,n,i,o){if(!(r in e)||!a(e[r],t[r])){if(!n){var s=new F(e,i),u=new F(t,i,e),c=new h({actual:s,expected:u,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}k({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}function P(e,t,r,n){if("function"!=typeof t){if(y(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var a=new h({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.name,a}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new l("error",t,"may not be an empty object");return void 0===o&&E(),s.forEach((function(i){"string"==typeof e[i]&&y(t[i])&&t[i].test(e[i])||C(e,t,i,r,s,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return S}function T(e){return g(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!T(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!T(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return S})).catch((function(e){return e}))}))}function _(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===i(t)&&null!==t){if(t.message===r)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(t===S){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";k({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!P(t,r,n,e))throw t}function I(e,t,r,n){if(t!==S){if("string"==typeof r&&(n=r,r=void 0),!r||P(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";k({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[R,t.length].concat(t))}x.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];_.apply(void 0,[e,O(t)].concat(n))},x.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return j(t).then((function(t){return _.apply(void 0,[e,t].concat(n))}))},x.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];I.apply(void 0,[e,O(t)].concat(n))},x.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return j(t).then((function(t){return I.apply(void 0,[e,t].concat(n))}))},x.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=d(t);var n=new h({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},x.strict=v(R,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},7366:(e,t,r)=>{"use strict";var n=r(7061);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},u(e)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,r){return l=c()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&f(i,r.prototype),i},l.apply(null,arguments)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}var d=r(1323).inspect,m=r(4922).codes.ERR_INVALID_ARG_TYPE;function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var y="",v="",b="",E="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function k(e,t,r){var i="",o="",a=0,s="",u=!1,c=S(e),l=c.split("\n"),f=S(t).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===h(e)&&"object"===h(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var m=l[0].length+f[0].length;if(m<=10){if(!("object"===h(e)&&null!==e||"object"===h(t)&&null!==t||0===e&&0===t))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r){if(m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",p),"^"),p=0)}}}for(var x=l[l.length-1],k=f[f.length-1];x===k&&(p++<2?s="\n ".concat(x).concat(s):i=x,l.pop(),f.pop(),0!==l.length&&0!==f.length);)x=l[l.length-1],k=f[f.length-1];var A=Math.max(l.length,f.length);if(0===A){var D=c.split("\n");if(D.length>30)for(D[26]="".concat(y,"...").concat(E);D.length>27;)D.pop();return"".concat(w.notIdentical,"\n\n").concat(D.join("\n"),"\n")}p>3&&(s="\n".concat(y,"...").concat(E).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var F=0,C=w[r]+"\n".concat(v,"+ actual").concat(E," ").concat(b,"- expected").concat(E),P=" ".concat(y,"...").concat(E," Lines skipped");for(p=0;p<A;p++){var O=p-a;if(l.length<p+1)O>1&&p>2&&(O>4?(o+="\n".concat(y,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(f[p-2]),F++),o+="\n ".concat(f[p-1]),F++),a=p,i+="\n".concat(b,"-").concat(E," ").concat(f[p]),F++;else if(f.length<p+1)O>1&&p>2&&(O>4?(o+="\n".concat(y,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(l[p-2]),F++),o+="\n ".concat(l[p-1]),F++),a=p,o+="\n".concat(v,"+").concat(E," ").concat(l[p]),F++;else{var T=f[p],j=l[p],_=j!==T&&(!g(j,",")||j.slice(0,-1)!==T);_&&g(T,",")&&T.slice(0,-1)===j&&(_=!1,j+=","),_?(O>1&&p>2&&(O>4?(o+="\n".concat(y,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(l[p-2]),F++),o+="\n ".concat(l[p-1]),F++),a=p,o+="\n".concat(v,"+").concat(E," ").concat(j),i+="\n".concat(b,"-").concat(E," ").concat(T),F+=2):(o+=i,i="",1!==O&&0!==p||(o+="\n ".concat(j),F++))}if(F>20&&p<A-2)return"".concat(C).concat(P,"\n").concat(o,"\n").concat(y,"...").concat(E).concat(i,"\n")+"".concat(y,"...").concat(E)}return"".concat(C).concat(u?P:"","\n").concat(o).concat(i).concat(s).concat(d)}var A=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==h(e)||null===e)throw new m("options","Object",e);var i=e.message,o=e.operator,u=e.stackStartFn,c=e.actual,l=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=a(this,p(t).call(this,String(i)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",v="",E="",b=""):(y="",v="",E="",b="")),"object"===h(c)&&null!==c&&"object"===h(l)&&null!==l&&"stack"in c&&c instanceof Error&&"stack"in l&&l instanceof Error&&(c=x(c),l=x(l)),"deepStrictEqual"===o||"strictEqual"===o)r=a(this,p(t).call(this,k(c,l,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var d=w[o],g=S(c).split("\n");if("notStrictEqual"===o&&"object"===h(c)&&null!==c&&(d=w.notStrictEqualObject),g.length>30)for(g[26]="".concat(y,"...").concat(E);g.length>27;)g.pop();r=1===g.length?a(this,p(t).call(this,"".concat(d," ").concat(g[0]))):a(this,p(t).call(this,"".concat(d,"\n\n").concat(g.join("\n"),"\n")))}else{var A=S(c),D="",F=w[o];"notDeepEqual"===o||"notEqual"===o?(A="".concat(w[o],"\n\n").concat(A)).length>1024&&(A="".concat(A.slice(0,1021),"...")):(D="".concat(S(l)),A.length>512&&(A="".concat(A.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),"deepEqual"===o||"equal"===o?A="".concat(F,"\n\n").concat(A,"\n\nshould equal\n\n"):D=" ".concat(o," ").concat(D)),r=a(this,p(t).call(this,"".concat(A).concat(D)))}return Error.stackTraceLimit=f,r.generatedMessage=!i,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=l,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),u),r.stack,r.name="AssertionError",a(r)}var r,u,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),r=t,u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){i(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],u&&o(r.prototype,u),c&&o(r,c),t}(u(Error));e.exports=A},4922:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s,u,c={};function l(e,t,r){r||(r=Error);var n=function(r){function n(r,a,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),u=i(this,o(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,a,s))),u.code=e,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,r),n}(r);c[e]=n}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a,u,c;if(void 0===s&&(s=r(9619)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!u||u<0?0:+u,a.length)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(l," ").concat(o," ").concat(f(t,"type"))}return c+=". Received type ".concat(n(i))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=r(1323));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===s&&(s=r(9619)),s(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=c},118:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},u=Object.is?Object.is:r(3822),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4866);function f(e){return e.call.bind(e)}var p=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(1323).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,E=m.isRegExp,w=m.isSet,x=m.isNativeError,S=m.isBoxedPrimitive,k=m.isNumberObject,A=m.isStringObject,D=m.isBooleanObject,F=m.isBigIntObject,C=m.isSymbolObject,P=m.isFloat32Array,O=m.isFloat64Array;function T(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function j(e){return Object.keys(e).filter(T).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
10
10
  /*!
11
11
  * The buffer module from node.js, for the browser.
12
12
  *
@@ -50,7 +50,7 @@ object-assign
50
50
  * LICENSE file in the root directory of this source tree.
51
51
  */r(2525);var n=r(7363),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!u.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:l,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},4246:(e,t,r)=>{"use strict";e.exports=r(1426)},1311:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attach:()=>o,detach:()=>a,shouldRetryRequest:()=>l,getConfig:()=>f});var n=r(4206),i=r.n(n);function o(e){return(e=e||i()).interceptors.response.use(s,c)}function a(e,t){(t=t||i()).interceptors.response.eject(e)}function s(e){return e}function u(e){var t=[];if(e)return Array.isArray(e)?e:("object"==typeof e&&Object.keys(e).forEach((function(r){"number"==typeof r&&(t[r]=e[r])})),t)}function c(e){if(i().isCancel(e))return Promise.reject(e);var t=f(e)||{};if(t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry="number"==typeof t.retry?t.retry:3,t.retryDelay="number"==typeof t.retryDelay?t.retryDelay:100,t.instance=t.instance||i(),t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=u(t.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries="number"==typeof t.noResponseRetries?t.noResponseRetries:2,t.checkRetryAfter="boolean"!=typeof t.checkRetryAfter||t.checkRetryAfter,t.maxRetryAfter="number"==typeof t.maxRetryAfter?t.maxRetryAfter:3e5,t.statusCodesToRetry=u(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||l)(e))return Promise.reject(e);var r=new Promise((function(r,n){var i=0;if(t.checkRetryAfter&&e.response&&e.response.headers["retry-after"]){var o=function(e){var t=Number(e);if(!Number.isNaN(t))return 1e3*t;var r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(e.response.headers["retry-after"]);if(!(o&&o>0&&o<=t.maxRetryAfter))return n(e);i=o}e.config.raxConfig.currentRetryAttempt+=1;var a=e.config.raxConfig.currentRetryAttempt;0===i&&(i="linear"===t.backoffType?1e3*a:"static"===t.backoffType?t.retryDelay:(Math.pow(2,a)-1)/2*1e3,"number"==typeof t.maxRetryDelay&&(i=Math.min(i,t.maxRetryDelay))),setTimeout(r,i)})),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then((function(){return r})).then((function(){return n})).then((function(){return t.instance.request(e.config)}))}function l(e){var t=e.config.raxConfig;if(!t||0===t.retry)return!1;if(!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries)return!1;if(!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,i=t.statusCodesToRetry;n<i.length;n+=1){var o=i[n],a=e.response.status;if(a>=o[0]&&a<=o[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function f(e){if(e&&e.config)return e.config.raxConfig}},4445:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=r?r.call(n,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}},9400:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},9742:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},2371:function(e,t){
52
52
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
53
- !function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i<n;++i)t[i]=t[i].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function a(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",i="[0-9]",o=t(i,"[A-Fa-f]"),a=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",u=t("[\\:\\/\\?\\#\\[\\]\\@]",s),c=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,i,"[\\+\\-\\.]")+"*"),p=r(r(a+"|"+t(l,s,"[\\:]"))+"*"),h=(r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("[1-9]"+i)+"|"+i),r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i)),d=r(h+"\\."+h+"\\."+h+"\\."+h),m=r(o+"{1,4}"),g=r(r(m+"\\:"+m)+"|"+d),y=r(r(m+"\\:")+"{6}"+g),v=r("\\:\\:"+r(m+"\\:")+"{5}"+g),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+g),E=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+g),w=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+g),x=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+g),S=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+g),k=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),A=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),D=r([y,v,b,E,w,x,S,k,A].join("|")),F=r(r(l+"|"+a)+"+"),C=(r(D+"\\%25"+F),r(D+r("\\%25|\\%(?!"+o+"{2})")+F)),P=r("[vV]"+o+"+\\."+t(l,s,"[\\:]")+"+"),O=r("\\["+r(C+"|"+D+"|"+P)+"\\]"),T=r(r(a+"|"+t(l,s))+"*"),j=r(O+"|"+d+"(?!"+T+")|"+T),_=r(i+"*"),I=r(r(p+"@")+"?"+j+r("\\:"+_)+"?"),R=r(a+"|"+t(l,s,"[\\:\\@]")),L=r(R+"*"),N=r(R+"+"),M=r(r(a+"|"+t(l,s,"[\\@]"))+"+"),B=r(r("\\/"+L)+"*"),z=r("\\/"+r(N+B)+"?"),U=r(M+B),$=r(N+B),q="(?!"+R+")",V=(r(B+"|"+z+"|"+U+"|"+$+"|"+q),r(r(R+"|"+t("[\\/\\?]",c))+"*")),H=r(r(R+"|[\\/\\?]")+"*"),G=r(r("\\/\\/"+I+B)+"|"+z+"|"+$+"|"+q),W=r(f+"\\:"+G+r("\\?"+V)+"?"+r("\\#"+H)+"?"),Q=r(r("\\/\\/"+I+B)+"|"+z+"|"+U+"|"+q),K=r(Q+r("\\?"+V)+"?"+r("\\#"+H)+"?");return r(W+"|"+K),r(f+"\\:"+G+r("\\?"+V)+"?"),r(r("\\/\\/("+r("("+p+")@")+"?("+j+")"+r("\\:("+_+")")+"?)")+"?("+B+"|"+z+"|"+$+"|"+q+")"),r("\\?("+V+")"),r("\\#("+H+")"),r(r("\\/\\/("+r("("+p+")@")+"?("+j+")"+r("\\:("+_+")")+"?)")+"?("+B+"|"+z+"|"+U+"|"+q+")"),r("\\?("+V+")"),r("\\#("+H+")"),r(r("\\/\\/("+r("("+p+")@")+"?("+j+")"+r("\\:("+_+")")+"?)")+"?("+B+"|"+z+"|"+$+"|"+q+")"),r("\\?("+V+")"),r("\\#("+H+")"),r("("+p+")@"),r("\\:("+_+")"),{NOT_SCHEME:new RegExp(t("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,s),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,u),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+D+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+F+")")+"?\\]?$")}}var u=s(!1),c=s(!0),l=function(){function e(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},p=2147483647,h=36,d=1,m=26,g=38,y=700,v=72,b=128,E="-",w=/^xn--/,x=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=h-d,D=Math.floor,F=String.fromCharCode;function C(e){throw new RangeError(k[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function T(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t}var j=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:h},_=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},I=function(e,t,r){var n=0;for(e=r?D(e/y):e>>1,e+=D(e/t);e>A*m>>1;n+=h)e=D(e/A);return D(n+(A+1)*e/(e+g))},R=function(e){var t=[],r=e.length,n=0,i=b,o=v,a=e.lastIndexOf(E);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&C("not-basic"),t.push(e.charCodeAt(s));for(var u=a>0?a+1:0;u<r;){for(var c=n,l=1,f=h;;f+=h){u>=r&&C("invalid-input");var g=j(e.charCodeAt(u++));(g>=h||g>D((p-n)/l))&&C("overflow"),n+=g*l;var y=f<=o?d:f>=o+m?m:f-o;if(g<y)break;var w=h-y;l>D(p/w)&&C("overflow"),l*=w}var x=t.length+1;o=I(n-c,x,0==c),D(n/x)>p-i&&C("overflow"),i+=D(n/x),n%=x,t.splice(n++,0,i)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[],r=(e=T(e)).length,n=b,i=0,o=v,a=!0,s=!1,u=void 0;try{for(var c,l=e[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;f<128&&t.push(F(f))}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}var g=t.length,y=g;for(g&&t.push(E);y<r;){var w=p,x=!0,S=!1,k=void 0;try{for(var A,P=e[Symbol.iterator]();!(x=(A=P.next()).done);x=!0){var O=A.value;O>=n&&O<w&&(w=O)}}catch(e){S=!0,k=e}finally{try{!x&&P.return&&P.return()}finally{if(S)throw k}}var j=y+1;w-n>D((p-i)/j)&&C("overflow"),i+=(w-n)*j,n=w;var R=!0,L=!1,N=void 0;try{for(var M,B=e[Symbol.iterator]();!(R=(M=B.next()).done);R=!0){var z=M.value;if(z<n&&++i>p&&C("overflow"),z==n){for(var U=i,$=h;;$+=h){var q=$<=o?d:$>=o+m?m:$-o;if(U<q)break;var V=U-q,H=h-q;t.push(F(_(q+V%H,0))),U=D(V/H)}t.push(F(_(U,0))),o=I(i,j,y==g),i=0,++y}}}catch(e){L=!0,N=e}finally{try{!R&&B.return&&B.return()}finally{if(L)throw N}}++i,++n}return t.join("")},N=function(e){return O(e,(function(e){return w.test(e)?R(e.slice(4).toLowerCase()):e}))},M=function(e){return O(e,(function(e){return x.test(e)?"xn--"+L(e):e}))},B={version:"2.1.0",ucs2:{decode:T,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:R,encode:L,toASCII:M,toUnicode:N},z={};function U(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function $(e){for(var t="",r=0,n=e.length;r<n;){var i=parseInt(e.substr(r+1,2),16);if(i<128)t+=String.fromCharCode(i),r+=3;else if(i>=194&&i<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var a=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function q(e,t){function r(e){var r=$(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,U).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,U).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,U).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,U).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,U).replace(t.PCT_ENCODED,i)),e}function V(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(V).join("."):e}function G(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),i=n[1],o=n[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=l(a,2),u=s[0],c=s[1],f=c?c.split(":").map(V):[],p=u.split(":").map(V),h=t.IPV4ADDRESS.test(p[p.length-1]),d=h?7:8,m=p.length-d,g=Array(d),y=0;y<d;++y)g[y]=f[y]||p[m+y]||"";h&&(g[d-1]=H(g[d-1],t));var v=g.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var E=g.slice(0,v.index),w=g.slice(v.index+v.length);b=E.join(":")+"::"+w.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q=void 0==="".match(/(){0}/)[1];function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?c:u;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(W);if(i){Q?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=G(H(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=z[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)q(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=B.toASCII(r.host.replace(n.PCT_ENCODED,$).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}q(r,u)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?c:u,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(G(H(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var X=/^\.\.?\//,Z=/^\/\.(\/|$)/,J=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Z))e=e.replace(Z,"/");else if(e.match(J))e=e.replace(J,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?c:u,n=[],i=z[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?B.toUnicode(e.host):B.toASCII(e.host.replace(r.PCT_ENCODED,$).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}q(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Y(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var a=e.path;t.absolutePath||i&&i.absolutePath||(a=te(a)),void 0===o&&(a=a.replace(/^\/\//,"/%2F")),n.push(a)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=K(re(e,r),r),t=K(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ie(e,t,r){var n=a({scheme:"null"},r);return re(ne(K(e,n),K(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(K(e,t),t):"object"===n(e)&&(e=K(re(e,t),t)),e}function ae(e,t,r){return"string"==typeof e?e=re(K(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(K(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?c.ESCAPE:u.ESCAPE,U)}function ue(e,t){return e&&e.toString().replace(t&&t.iri?c.PCT_ENCODED:u.PCT_ENCODED,$)}var ce={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var pe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),i=n[0],o=n[1];e.path=i&&"/"!==i?i:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},he={scheme:"wss",domainHost:pe.domainHost,parse:pe.parse,serialize:pe.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ve="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ee="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(me,"g"),xe=new RegExp(ye,"g"),Se=new RegExp(t("[^]",ve,"[\\.]",'[\\"]',be),"g"),ke=new RegExp(t("[^]",me,Ee),"g"),Ae=ke;function De(e){var t=$(e);return t.match(we)?t:e}var Fe={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},a=r.query.split("&"),s=0,u=a.length;s<u;++s){var c=a[s].split("=");switch(c[0]){case"to":for(var l=c[1].split(","),f=0,p=l.length;f<p;++f)n.push(l[f]);break;case"subject":r.subject=ue(c[1],t);break;case"body":r.body=ue(c[1],t);break;default:i=!0,o[ue(c[0],t)]=ue(c[1],t)}}i&&(r.headers=o)}r.query=void 0;for(var h=0,d=n.length;h<d;++h){var m=n[h].split("@");if(m[0]=ue(m[0]),t.unicodeSupport)m[1]=ue(m[1],t).toLowerCase();else try{m[1]=B.toASCII(ue(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[h]=m.join("@")}return r},serialize:function(e,t){var r=e,n=o(e.to);if(n){for(var a=0,s=n.length;a<s;++a){var u=String(n[a]),c=u.lastIndexOf("@"),l=u.slice(0,c).replace(xe,De).replace(xe,i).replace(Se,U),f=u.slice(c+1);try{f=t.iri?B.toUnicode(f):B.toASCII(ue(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=l+"@"+f}r.path=n.join(",")}var p=e.headers=e.headers||{};e.subject&&(p.subject=e.subject),e.body&&(p.body=e.body);var h=[];for(var d in p)p[d]!==de[d]&&h.push(d.replace(xe,De).replace(xe,i).replace(ke,U)+"="+p[d].replace(xe,De).replace(xe,i).replace(Ae,U));return h.length&&(r.query=h.join("&")),r}},Ce=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Ce),n=e;if(r){var i=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),a=r[2],s=i+":"+(t.nid||o),u=z[s];n.nid=o,n.nss=a,n.path=void 0,u&&(n=u.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,i=r+":"+(t.nid||n),o=z[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Te={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};z[ce.scheme]=ce,z[le.scheme]=le,z[pe.scheme]=pe,z[he.scheme]=he,z[Fe.scheme]=Fe,z[Pe.scheme]=Pe,z[Te.scheme]=Te,e.SCHEMES=z,e.pctEncChar=U,e.pctDecChars=$,e.parse=K,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=ie,e.normalize=oe,e.equal=ae,e.escapeComponent=se,e.unescapeComponent=ue,Object.defineProperty(e,"__esModule",{value:!0})}(t)},8884:function(e,t,r){var n;/*! https://mths.be/punycode v1.3.2 by @mathias */e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,u=36,c=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function m(e){throw RangeError(p[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(f,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=d(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=u)e=h(e/35);return h(n+36*e/(e+38))}function x(e){var t,r,n,i,o,a,c,l,f,p,d,g=[],y=e.length,v=0,E=128,x=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&m("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=v,a=1,c=u;i>=y&&m("invalid-input"),((l=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:u)>=u||l>h((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=c<=x?1:c>=x+26?26:c-x));c+=u)a>h(s/(p=u-f))&&m("overflow"),a*=p;x=w(v-o,t=g.length+1,0==o),h(v/t)>s-E&&m("overflow"),E+=h(v/t),v%=t,g.splice(v++,0,E)}return b(g)}function S(e){var t,r,n,i,o,a,c,l,f,p,g,y,b,x,S,k=[];for(y=(e=v(e)).length,t=128,r=0,o=72,a=0;a<y;++a)(g=e[a])<128&&k.push(d(g));for(n=i=k.length,i&&k.push("-");n<y;){for(c=s,a=0;a<y;++a)(g=e[a])>=t&&g<c&&(c=g);for(c-t>h((s-r)/(b=n+1))&&m("overflow"),r+=(c-t)*b,t=c,a=0;a<y;++a)if((g=e[a])<t&&++r>s&&m("overflow"),g==t){for(l=r,f=u;!(l<(p=f<=o?1:f>=o+26?26:f-o));f+=u)S=l-p,x=u-p,k.push(d(E(p+S%x,0))),l=h(S/x);k.push(d(E(l,0))),o=w(r,b,n==i),r=0,++n}++r,++t}return k.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:x,encode:S,toASCII:function(e){return y(e,(function(e){return l.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return y(e,(function(e){return c.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},4760:(e,t,r)=>{"use strict";var n=r(8884),i=r(569);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(6541);function b(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var E=u.exec(b);if(E)return this.path=b,this.href=b,this.pathname=E[1],E[2]?(this.search=E[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,b=b.substr(w.length)}if(r||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===b.substr(0,2);!S||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(S||w&&!y[w])){for(var k,A,D=-1,F=0;F<p.length;F++){-1!==(C=b.indexOf(p[F]))&&(-1===D||C<D)&&(D=C)}-1!==(A=-1===D?b.lastIndexOf("@"):b.lastIndexOf("@",D))&&(k=b.slice(0,A),b=b.slice(A+1),this.auth=decodeURIComponent(k)),D=-1;for(F=0;F<f.length;F++){var C;-1!==(C=b.indexOf(f[F]))&&(-1===D||C<D)&&(D=C)}-1===D&&(D=b.length),this.host=b.slice(0,D),b=b.slice(D),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var O=this.hostname.split(/\./),T=(F=0,O.length);F<T;F++){var j=O[F];if(j&&!j.match(h)){for(var _="",I=0,R=j.length;I<R;I++)j.charCodeAt(I)>127?_+="x":_+=j[I];if(!_.match(h)){var L=O.slice(0,F),N=O.slice(F+1),M=j.match(d);M&&(L.push(M[1]),N.unshift(M[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var B=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+B,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(F=0,T=l.length;F<T;F++){var U=l[F];if(-1!==b.indexOf(U)){var $=encodeURIComponent(U);$===U&&($=escape(U)),b=b.split(U).join($)}}var q=b.indexOf("#");-1!==q&&(this.hash=b.substr(q),b=b.slice(0,q));var V=b.indexOf("?");if(-1!==V?(this.search=b.substr(V),this.query=b.substr(V+1),t&&(this.query=v.parse(this.query)),b=b.slice(0,V)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var H=this.search||"";this.path=B+H}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(r[l]=e[l])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var f=Object.keys(e),p=0;p<f.length;p++){var h=f[p];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),E=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=E||b||r.host&&e.pathname,x=w,S=r.pathname&&r.pathname.split("/")||[],k=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),w=w&&(""===d[0]||""===S[0])),E)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=d;else if(d.length)S||(S=[]),S.pop(),S=S.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(k)r.hostname=r.host=S.shift(),(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=S.slice(-1)[0],D=(r.host||e.host||S.length>1)&&("."===A||".."===A)||""===A,F=0,C=S.length;C>=0;C--)"."===(A=S[C])?S.splice(C,1):".."===A?(S.splice(C,1),F++):F&&(S.splice(C,1),F--);if(!w&&!x)for(;F--;F)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),D&&"/"!==S.join("/").substr(-1)&&S.push("");var P,O=""===S[0]||S[0]&&"/"===S[0].charAt(0);k&&(r.hostname=r.host=O?"":S.length?S.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(w=w||r.host&&S.length)&&!O&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},569:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},6579:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},7673:(e,t,r)=>{"use strict";var n=r(7740),i=r(8265),o=r(2505),a=r(387);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function E(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===l(e)}function k(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},E.working="undefined"!=typeof WeakSet&&E(new WeakSet),t.isWeakSet=function(e){return E(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=x,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function D(e){return"[object SharedArrayBuffer]"===l(e)}function F(e){return void 0!==A&&(void 0===D.working&&(D.working=D(new A)),D.working?D(e):e instanceof A)}function C(e){return g(e,f)}function P(e){return g(e,p)}function O(e){return g(e,h)}function T(e){return u&&g(e,d)}function j(e){return c&&g(e,m)}t.isSharedArrayBuffer=F,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=C,t.isStringObject=P,t.isBooleanObject=O,t.isBigIntObject=T,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return C(e)||P(e)||O(e)||T(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||F(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},1323:(e,t,r)=>{var n=r(7061),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])y(s)||!x(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function f(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return b(i)||(i=p(e,i,n)),i}var o=function(e,t){if(E(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(A(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return h(r)}var c,l="",f=!1,x=["{","}"];(m(r)&&(f=!0,x=["[","]"]),A(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(l=" "+RegExp.prototype.toString.call(r)),S(r)&&(l=" "+Date.prototype.toUTCString.call(r)),k(r)&&(l=" "+h(r)),0!==a.length||f&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=f?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)O(t,String(a))?o.push(d(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return d(e,r,n,s,t,f)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,l,x)):x[0]+l+x[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),O(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(r)?p(e,u.value,null):p(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function E(e){return void 0===e}function w(e){return x(e)&&"[object RegExp]"===D(e)}function x(e){return"object"==typeof e&&null!==e}function S(e){return x(e)&&"[object Date]"===D(e)}function k(e){return x(e)&&("[object Error]"===D(e)||e instanceof Error)}function A(e){return"function"==typeof e}function D(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(7673),t.isArray=m,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=E,t.isRegExp=w,t.types.isRegExp=w,t.isObject=x,t.isDate=S,t.types.isDate=S,t.isError=k,t.types.isNativeError=k,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(6579);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=r(87),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){n.nextTick(a.bind(null,null,e))}),(function(e){n.nextTick(j.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},2505:(e,t,r)=>{"use strict";var n=r(8372),i=r(973),o=r(2737),a=o("Object.prototype.toString"),s=r(698)(),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),l=o("String.prototype.slice"),f={},p=r(8828),h=Object.getPrototypeOf;s&&p&&h&&n(c,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var r=h(t),n=p(r,Symbol.toStringTag);if(!n){var i=h(r);n=p(i,Symbol.toStringTag)}f[e]=n.get}}}));var d=r(387);e.exports=function(e){return!!d(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return n(f,(function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}})),t}(e):l(a(e),8,-1))}},7363:e=>{"use strict";e.exports=React},2611:e=>{"use strict";e.exports=_},429:()=>{},973:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},8828:(e,t,r)=>{"use strict";var n=r(8750)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},9477:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});const n=document.createElement("i");function i(e){const t="&"+e+";";n.innerHTML=t;const r=n.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&(r!==t&&r)}},2268:(e,t,r)=>{"use strict";r.r(t),r.d(t,{blockquote:()=>o});var n=r(5471),i=r(4671);function o(e,t,r){const o=r.enter("blockquote"),s=(0,i.Q)((0,n.K)(e,r),a);return o(),s}function a(e,t,r){return">"+(r?"":" ")+e}},6156:(e,t,r)=>{"use strict";r.r(t),r.d(t,{heading:()=>s});var n=r(3428),i=r(3339),o=r(8717);var a=r(7567);function s(e,t,r){const s=Math.max(Math.min(6,e.depth||1),1);if(function(e,t){let r=!1;return(0,n.visit)(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,i.BK})),Boolean((!e.depth||e.depth<3)&&(0,o.B)(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),i=(0,a.p)(e,r,{before:"\n",after:"\n"});return n(),t(),i+"\n"+(1===s?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const u="#".repeat(s),c=r.enter("headingAtx"),l=r.enter("phrasing");let f=(0,a.p)(e,r,{before:"# ",after:"\n"});return/^[\t ]/.test(f)&&(f="&#x"+f.charCodeAt(0).toString(16).toUpperCase()+";"+f.slice(1)),f=f?u+" "+f:u,r.options.closeAtx&&(f+=" "+u),l(),c(),f}},8627:(e,t,r)=>{"use strict";r.r(t),r.d(t,{image:()=>o});var n=r(1481),i=r(3316);function o(e,t,r){const o=(0,n.l)(r),a='"'===o?"Quote":"Apostrophe",s=r.enter("image");let u=r.enter("label"),c="!["+(0,i.T)(r,e.alt,{before:"[",after:"]"})+"](";return u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),c+="<"+(0,i.T)(r,e.url,{before:"<",after:">"})+">"):(u=r.enter("destinationRaw"),c+=(0,i.T)(r,e.url,{before:"(",after:e.title?" ":")"})),u(),e.title&&(u=r.enter("title"+a),c+=" "+o+(0,i.T)(r,e.title,{before:o,after:o})+o,u()),c+=")",s(),c}o.peek=function(){return"!"}},2848:(e,t,r)=>{"use strict";r.r(t),r.d(t,{paragraph:()=>i});var n=r(7567);function i(e,t,r){const i=r.enter("paragraph"),o=r.enter("phrasing"),a=(0,n.p)(e,r,{before:"\n",after:"\n"});return o(),i(),a}},1481:(e,t,r)=>{"use strict";function n(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}r.d(t,{l:()=>n})},5471:(e,t,r)=>{"use strict";function n(e,t){const r=t.indexStack,n=e.children||[],i=[];let o=-1;for(r.push(-1);++o<n.length;){const s=n[o];r[r.length-1]=o,i.push(t.handle(s,e,t,{before:"\n",after:"\n"})),"list"!==s.type&&(t.bulletLastUsed=void 0),o<n.length-1&&i.push(a(s,n[o+1]))}return r.pop(),i.join("");function a(r,n){let i=t.join.length;for(;i--;){const o=t.join[i](r,n,e,t);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}}r.d(t,{K:()=>n})},7567:(e,t,r)=>{"use strict";function n(e,t,r){const n=t.indexStack,i=e.children||[],o=[];let a=-1,s=r.before;for(n.push(-1);++a<i.length;){const u=i[a];let c;if(n[n.length-1]=a,a+1<i.length){let r=t.handle.handlers[i[a+1].type];r&&r.peek&&(r=r.peek),c=r?r(i[a+1],e,t,{before:"",after:""}).charAt(0):""}else c=r.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===u.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" "),o.push(t.handle(u,e,t,{before:s,after:c})),s=o[o.length-1].slice(-1)}return n.pop(),o.join("")}r.d(t,{p:()=>n})},4671:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});const n=/\r?\n|\r/g;function i(e,t){const r=[];let i,o=0,a=0;for(;i=n.exec(e);)s(e.slice(o,i.index)),r.push(i[0]),o=i.index+i[0].length,a++;return s(e.slice(o)),r.join("");function s(e){r.push(t(e,a,!e))}}},7866:(e,t,r)=>{"use strict";function n(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}r.d(t,{T:()=>n})},3316:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(7866);function i(e,t){return o(e,t.inConstruct,!0)&&!o(e,t.notInConstruct,!1)}function o(e,t,r){if(!t)return r;"string"==typeof t&&(t=[t]);let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function a(e,t,r){const o=(r.before||"")+(t||"")+(r.after||""),a=[],c=[],l={};let f=-1;for(;++f<e.unsafe.length;){const t=e.unsafe[f];if(!i(e.stack,t))continue;const r=(0,n.T)(t);let s;for(;s=r.exec(o);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=s.index+(e?s[1].length:0);a.includes(n)?(l[n].before&&!e&&(l[n].before=!1),l[n].after&&!r&&(l[n].after=!1)):(a.push(n),l[n]={before:e,after:r})}}a.sort(s);let p=r.before?r.before.length:0;const h=o.length-(r.after?r.after.length:0);for(f=-1;++f<a.length;){const e=a[f];e<p||e>=h||(e+1<h&&a[f+1]===e+1&&l[e].after&&!l[e+1].before&&!l[e+1].after||a[f-1]===e-1&&l[e].before&&!l[e-1].before&&!l[e-1].after||(p!==e&&c.push(u(o.slice(p,e),"\\")),p=e,!/[!-/:-@[-`{-~]/.test(o.charAt(e))||r.encode&&r.encode.includes(o.charAt(e))?(c.push("&#x"+o.charCodeAt(e).toString(16).toUpperCase()+";"),p++):c.push("\\")))}return c.push(u(o.slice(p,h),r.after)),c.join("")}function s(e,t){return e-t}function u(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t;let a,s=-1,u=0;for(;a=r.exec(o);)n.push(a.index);for(;++s<n.length;)u!==n[s]&&i.push(e.slice(u,n[s])),i.push("\\"),u=n[s];return i.push(e.slice(u)),i.join("")}},8717:(e,t,r)=>{"use strict";function n(e,t){var{includeImageAlt:r=!0}=t||{};return i(e,r)}function i(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&o(e.children,t)||Array.isArray(e)&&o(e,t))||""}function o(e,t){for(var r=[],n=-1;++n<e.length;)r[n]=i(e[n],t);return r.join("")}r.d(t,{B:()=>n})},9531:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attention:()=>n.v,autolink:()=>i.j,blankLine:()=>o.w,blockQuote:()=>a.m,characterEscape:()=>s.L,characterReference:()=>u.u,codeFenced:()=>c._,codeIndented:()=>l.S,codeText:()=>f.h,content:()=>p.k,definition:()=>h.D,hardBreakEscape:()=>d.R,headingAtx:()=>m.Z,htmlFlow:()=>g.P,htmlText:()=>y.L,labelEnd:()=>v.Z,labelStartImage:()=>b.C,labelStartLink:()=>E.F,lineEnding:()=>w.g,list:()=>x.p,setextUnderline:()=>S.C,thematicBreak:()=>k.C});var n=r(8415),i=r(7444),o=r(2929),a=r(7207),s=r(1687),u=r(2810),c=r(4897),l=r(2535),f=r(5180),p=r(6814),h=r(4882),d=r(6100),m=r(5528),g=r(5198),y=r(5890),v=r(8966),b=r(5365),E=r(5856),w=r(890),x=r(4618),S=r(6263),k=r(8038)},8415:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(8300),i=r(3886),o=r(3879);const a={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=(0,i.r)(n);let a;return function(t){return e.enter("attentionSequence"),a=t,s(t)};function s(u){if(u===a)return e.consume(u),s;const c=e.exit("attentionSequence"),l=(0,i.r)(u),f=!l||2===l&&o||r.includes(u),p=!o||2===o&&l||r.includes(n);return c._open=Boolean(42===a?f:f&&(o||!p)),c._close=Boolean(42===a?p:p&&(l||!f)),t(u)}},resolveAll:function(e,t){let r,i,a,u,c,l,f,p,h=-1;for(;++h<e.length;)if("enter"===e[h][0]&&"attentionSequence"===e[h][1].type&&e[h][1]._close)for(r=h;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[r][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),m=Object.assign({},e[h][1].start);s(d,-l),s(m,l),u={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},c={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[h][1].start),end:m},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[h][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},c.end)},e[r][1].end=Object.assign({},u.start),e[h][1].start=Object.assign({},c.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=(0,n.V)(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=(0,n.V)(f,[["enter",i,t],["enter",u,t],["exit",u,t],["enter",a,t]]),f=(0,n.V)(f,(0,o.C)(t.parser.constructs.insideSpan.null,e.slice(r+1,h),t)),f=(0,n.V)(f,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",i,t]]),e[h][1].end.offset-e[h][1].start.offset?(p=2,f=(0,n.V)(f,[["enter",e[h][1],t],["exit",e[h][1],t]])):p=0,(0,n.d)(e,r-1,h-r+3,f),h=r+f.length-p-2;break}h=-1;for(;++h<e.length;)"attentionSequence"===e[h][1].type&&(e[h][1].type="data");return e}};function s(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}},7444:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(488);const i={name:"autolink",tokenize:function(e,t,r){let i=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return(0,n.asciiAlpha)(t)?(e.consume(t),a):(0,n.asciiAtext)(t)?c(t):r(t)}function a(e){return 43===e||45===e||46===e||(0,n.asciiAlphanumeric)(e)?s(e):c(e)}function s(t){return 58===t?(e.consume(t),u):(43===t||45===t||46===t||(0,n.asciiAlphanumeric)(t))&&i++<32?(e.consume(t),s):c(t)}function u(t){return 62===t?(e.exit("autolinkProtocol"),h(t)):null===t||32===t||60===t||(0,n.asciiControl)(t)?r(t):(e.consume(t),u)}function c(t){return 64===t?(e.consume(t),i=0,l):(0,n.asciiAtext)(t)?(e.consume(t),c):r(t)}function l(e){return(0,n.asciiAlphanumeric)(e)?f(e):r(e)}function f(t){return 46===t?(e.consume(t),i=0,l):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",h(t)):p(t)}function p(t){return(45===t||(0,n.asciiAlphanumeric)(t))&&i++<63?(e.consume(t),45===t?p:f):r(t)}function h(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}}},2929:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(4014),i=r(488);const o={tokenize:function(e,t,r){return(0,n.factorySpace)(e,(function(e){return null===e||(0,i.markdownLineEnding)(e)?t(e):r(e)}),"linePrefix")},partial:!0}},7207:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(4014),i=r(488);const o={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return r(t)};function o(r){return(0,i.markdownSpace)(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return(0,n.factorySpace)(e,e.attempt(o,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}}},1687:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r(488);const i={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return(0,n.asciiPunctuation)(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}}},2810:(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var n=r(9477),i=r(488);const o={name:"characterReference",tokenize:function(e,t,r){const o=this;let a,s,u=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),c};function c(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=i.asciiAlphanumeric,f(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=i.asciiHexDigit,f):(e.enter("characterReferenceValue"),a=7,s=i.asciiDigit,f(t))}function f(c){let l;return 59===c&&u?(l=e.exit("characterReferenceValue"),s!==i.asciiAlphanumeric||(0,n.T)(o.sliceSerialize(l))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(c)):s(c)&&u++<a?(e.consume(c),f):r(c)}}}},4897:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(4014),i=r(488);const o={name:"codeFenced",tokenize:function(e,t,r){const o=this,a={tokenize:function(e,t,r){let o=0;return(0,n.factorySpace)(e,a,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}function s(t){return t===l?(e.consume(t),o++,s):o<f?r(t):(e.exit("codeFencedFenceSequence"),(0,n.factorySpace)(e,u,"whitespace")(t))}function u(n){return null===n||(0,i.markdownLineEnding)(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},s={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},u=this.events[this.events.length-1],c=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0;let l,f=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l=t,p(t)};function p(t){return t===l?(e.consume(t),f++,p):(e.exit("codeFencedFenceSequence"),f<3?r(t):(0,n.factorySpace)(e,h,"whitespace")(t))}function h(t){return null===t||(0,i.markdownLineEnding)(t)?y(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,n.factorySpace)(e,m,"whitespace")(t)):96===t&&t===l?r(t):(e.consume(t),d)}function m(t){return null===t||(0,i.markdownLineEnding)(t)?y(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(t))}function g(t){return null===t||(0,i.markdownLineEnding)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(t)):96===t&&t===l?r(t):(e.consume(t),g)}function y(r){return e.exit("codeFencedFence"),o.interrupt?t(r):v(r)}function v(t){return null===t?E(t):(0,i.markdownLineEnding)(t)?e.attempt(s,e.attempt(a,E,c?(0,n.factorySpace)(e,v,"linePrefix",c+1):v),E)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||(0,i.markdownLineEnding)(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),b)}function E(r){return e.exit("codeFenced"),t(r)}},concrete:!0}},2535:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var n=r(4014),i=r(488);const o={name:"codeIndented",tokenize:function(e,t,r){const o=this;return function(t){return e.enter("codeIndented"),(0,n.factorySpace)(e,s,"linePrefix",5)(t)};function s(e){const t=o.events[o.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?u(e):r(e)}function u(t){return null===t?l(t):(0,i.markdownLineEnding)(t)?e.attempt(a,u,l)(t):(e.enter("codeFlowValue"),c(t))}function c(t){return null===t||(0,i.markdownLineEnding)(t)?(e.exit("codeFlowValue"),u(t)):(e.consume(t),c)}function l(r){return e.exit("codeIndented"),t(r)}}},a={tokenize:function(e,t,r){const o=this;return a;function a(t){return o.parser.lazy[o.now().line]?r(t):(0,i.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(0,n.factorySpace)(e,s,"linePrefix",5)(t)}function s(e){const n=o.events[o.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?t(e):(0,i.markdownLineEnding)(e)?a(e):r(e)}},partial:!0}},5180:(e,t,r)=>{"use strict";r.d(t,{h:()=>i});var n=r(488);const i={name:"codeText",tokenize:function(e,t,r){let i,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?r(t):96===t?(o=e.enter("codeTextSequence"),i=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):(0,n.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||(0,n.markdownLineEnding)(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),i++,l):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(o.type="codeTextData",c(r))}},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}t=i-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},6814:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var n=r(4014),i=r(488),o=r(2988);const a={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?o(t):(0,i.markdownLineEnding)(t)?e.check(s,a,o)(t):(e.consume(t),n)}function o(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return(0,o._)(e),e}},s={tokenize:function(e,t,r){const o=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,a,"linePrefix")};function a(n){if(null===n||(0,i.markdownLineEnding)(n))return r(n);const a=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(n):e.interrupt(o.parser.constructs.flow,r,t)(n)}},partial:!0}},4882:(e,t,r)=>{"use strict";r.d(t,{D:()=>l});var n=r(917),i=r(7504),o=r(4014),a=r(1559),s=r(6096),u=r(2493),c=r(488);const l={name:"definition",tokenize:function(e,t,r){const a=this;let l;return function(t){return e.enter("definition"),i.factoryLabel.call(a,e,p,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function p(t){return l=(0,u.normalizeIdentifier)(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),(0,s.factoryWhitespace)(e,(0,n.factoryDestination)(e,e.attempt(f,(0,o.factorySpace)(e,h,"whitespace"),(0,o.factorySpace)(e,h,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function h(n){return null===n||(0,c.markdownLineEnding)(n)?(e.exit("definition"),a.parser.defined.includes(l)||a.parser.defined.push(l),t(n)):r(n)}}},f={tokenize:function(e,t,r){return function(t){return(0,c.markdownLineEndingOrSpace)(t)?(0,s.factoryWhitespace)(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?(0,a.factoryTitle)(e,(0,o.factorySpace)(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||(0,c.markdownLineEnding)(e)?t(e):r(e)}},partial:!0}},6100:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(488);const i={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),i};function i(i){return(0,n.markdownLineEnding)(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):r(i)}}}},5528:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(4014),i=r(488),o=r(8300);const a={name:"headingAtx",tokenize:function(e,t,r){const o=this;let a=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(t)};function s(n){return 35===n&&a++<6?(e.consume(n),s):null===n||(0,i.markdownLineEndingOrSpace)(n)?(e.exit("atxHeadingSequence"),o.interrupt?t(n):u(n)):r(n)}function u(r){return 35===r?(e.enter("atxHeadingSequence"),c(r)):null===r||(0,i.markdownLineEnding)(r)?(e.exit("atxHeading"),t(r)):(0,i.markdownSpace)(r)?(0,n.factorySpace)(e,u,"whitespace")(r):(e.enter("atxHeadingText"),l(r))}function c(t){return 35===t?(e.consume(t),c):(e.exit("atxHeadingSequence"),u(t))}function l(t){return null===t||35===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit("atxHeadingText"),u(t)):(e.consume(t),l)}},resolve:function(e,t){let r,n,i=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);i-2>a&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4);i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},n={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},(0,o.d)(e,a,i-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}}},5198:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(488);const i=["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"],o=["pre","script","style","textarea"];var a=r(2929);const s={name:"htmlFlow",tokenize:function(e,t,r){const a=this;let s,c,l,f,p;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),h};function h(i){return 33===i?(e.consume(i),d):47===i?(e.consume(i),y):63===i?(e.consume(i),s=3,a.interrupt?t:M):(0,n.asciiAlpha)(i)?(e.consume(i),l=String.fromCharCode(i),c=!0,v):r(i)}function d(i){return 45===i?(e.consume(i),s=2,m):91===i?(e.consume(i),s=5,l="CDATA[",f=0,g):(0,n.asciiAlpha)(i)?(e.consume(i),s=4,a.interrupt?t:M):r(i)}function m(n){return 45===n?(e.consume(n),a.interrupt?t:M):r(n)}function g(n){return n===l.charCodeAt(f++)?(e.consume(n),f===l.length?a.interrupt?t:O:g):r(n)}function y(t){return(0,n.asciiAlpha)(t)?(e.consume(t),l=String.fromCharCode(t),v):r(t)}function v(u){return null===u||47===u||62===u||(0,n.markdownLineEndingOrSpace)(u)?47!==u&&c&&o.includes(l.toLowerCase())?(s=1,a.interrupt?t(u):O(u)):i.includes(l.toLowerCase())?(s=6,47===u?(e.consume(u),b):a.interrupt?t(u):O(u)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(u):c?w(u):E(u)):45===u||(0,n.asciiAlphanumeric)(u)?(e.consume(u),l+=String.fromCharCode(u),v):r(u)}function b(n){return 62===n?(e.consume(n),a.interrupt?t:O):r(n)}function E(t){return(0,n.markdownSpace)(t)?(e.consume(t),E):C(t)}function w(t){return 47===t?(e.consume(t),C):58===t||95===t||(0,n.asciiAlpha)(t)?(e.consume(t),x):(0,n.markdownSpace)(t)?(e.consume(t),w):C(t)}function x(t){return 45===t||46===t||58===t||95===t||(0,n.asciiAlphanumeric)(t)?(e.consume(t),x):S(t)}function S(t){return 61===t?(e.consume(t),k):(0,n.markdownSpace)(t)?(e.consume(t),S):w(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),p=t,A):(0,n.markdownSpace)(t)?(e.consume(t),k):(p=null,D(t))}function A(t){return null===t||(0,n.markdownLineEnding)(t)?r(t):t===p?(e.consume(t),F):(e.consume(t),A)}function D(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||(0,n.markdownLineEndingOrSpace)(t)?S(t):(e.consume(t),D)}function F(e){return 47===e||62===e||(0,n.markdownSpace)(e)?w(e):r(e)}function C(t){return 62===t?(e.consume(t),P):r(t)}function P(t){return(0,n.markdownSpace)(t)?(e.consume(t),P):null===t||(0,n.markdownLineEnding)(t)?O(t):r(t)}function O(t){return 45===t&&2===s?(e.consume(t),I):60===t&&1===s?(e.consume(t),R):62===t&&4===s?(e.consume(t),B):63===t&&3===s?(e.consume(t),M):93===t&&5===s?(e.consume(t),N):!(0,n.markdownLineEnding)(t)||6!==s&&7!==s?null===t||(0,n.markdownLineEnding)(t)?T(t):(e.consume(t),O):e.check(u,B,T)(t)}function T(t){return e.exit("htmlFlowData"),j(t)}function j(t){return null===t?z(t):(0,n.markdownLineEnding)(t)?e.attempt({tokenize:_,partial:!0},j,z)(t):(e.enter("htmlFlowData"),O(t))}function _(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}}function I(t){return 45===t?(e.consume(t),M):O(t)}function R(t){return 47===t?(e.consume(t),l="",L):O(t)}function L(t){return 62===t&&o.includes(l.toLowerCase())?(e.consume(t),B):(0,n.asciiAlpha)(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),L):O(t)}function N(t){return 93===t?(e.consume(t),M):O(t)}function M(t){return 62===t?(e.consume(t),B):45===t&&2===s?(e.consume(t),M):O(t)}function B(t){return null===t||(0,n.markdownLineEnding)(t)?(e.exit("htmlFlowData"),z(t)):(e.consume(t),B)}function z(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},u={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(a.w,t,r)}},partial:!0}},5890:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});var n=r(4014),i=r(488);const o={name:"htmlText",tokenize:function(e,t,r){const o=this;let a,s,u,c;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),f):47===t?(e.consume(t),k):63===t?(e.consume(t),x):(0,i.asciiAlpha)(t)?(e.consume(t),F):r(t)}function f(t){return 45===t?(e.consume(t),p):91===t?(e.consume(t),s="CDATA[",u=0,y):(0,i.asciiAlpha)(t)?(e.consume(t),w):r(t)}function p(t){return 45===t?(e.consume(t),h):r(t)}function h(t){return null===t||62===t?r(t):45===t?(e.consume(t),d):m(t)}function d(e){return null===e||62===e?r(e):m(e)}function m(t){return null===t?r(t):45===t?(e.consume(t),g):(0,i.markdownLineEnding)(t)?(c=m,R(t)):(e.consume(t),m)}function g(t){return 45===t?(e.consume(t),N):m(t)}function y(t){return t===s.charCodeAt(u++)?(e.consume(t),u===s.length?v:y):r(t)}function v(t){return null===t?r(t):93===t?(e.consume(t),b):(0,i.markdownLineEnding)(t)?(c=v,R(t)):(e.consume(t),v)}function b(t){return 93===t?(e.consume(t),E):v(t)}function E(t){return 62===t?N(t):93===t?(e.consume(t),E):v(t)}function w(t){return null===t||62===t?N(t):(0,i.markdownLineEnding)(t)?(c=w,R(t)):(e.consume(t),w)}function x(t){return null===t?r(t):63===t?(e.consume(t),S):(0,i.markdownLineEnding)(t)?(c=x,R(t)):(e.consume(t),x)}function S(e){return 62===e?N(e):x(e)}function k(t){return(0,i.asciiAlpha)(t)?(e.consume(t),A):r(t)}function A(t){return 45===t||(0,i.asciiAlphanumeric)(t)?(e.consume(t),A):D(t)}function D(t){return(0,i.markdownLineEnding)(t)?(c=D,R(t)):(0,i.markdownSpace)(t)?(e.consume(t),D):N(t)}function F(t){return 45===t||(0,i.asciiAlphanumeric)(t)?(e.consume(t),F):47===t||62===t||(0,i.markdownLineEndingOrSpace)(t)?C(t):r(t)}function C(t){return 47===t?(e.consume(t),N):58===t||95===t||(0,i.asciiAlpha)(t)?(e.consume(t),P):(0,i.markdownLineEnding)(t)?(c=C,R(t)):(0,i.markdownSpace)(t)?(e.consume(t),C):N(t)}function P(t){return 45===t||46===t||58===t||95===t||(0,i.asciiAlphanumeric)(t)?(e.consume(t),P):O(t)}function O(t){return 61===t?(e.consume(t),T):(0,i.markdownLineEnding)(t)?(c=O,R(t)):(0,i.markdownSpace)(t)?(e.consume(t),O):C(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),a=t,j):(0,i.markdownLineEnding)(t)?(c=T,R(t)):(0,i.markdownSpace)(t)?(e.consume(t),T):(e.consume(t),a=void 0,I)}function j(t){return t===a?(e.consume(t),_):null===t?r(t):(0,i.markdownLineEnding)(t)?(c=j,R(t)):(e.consume(t),j)}function _(e){return 62===e||47===e||(0,i.markdownLineEndingOrSpace)(e)?C(e):r(e)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||(0,i.markdownLineEndingOrSpace)(t)?C(t):(e.consume(t),I)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function L(t){return e.enter("htmlTextData"),c(t)}function N(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}}},8966:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(917),i=r(7504),o=r(1559),a=r(6096),s=r(488),u=r(8300),c=r(2493),l=r(3879);const f={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){i=n.events[a][1];break}return function(t){if(!i)return r(t);return i._inactive?u(t):(o=n.parser.defined.includes((0,c.normalizeIdentifier)(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(p,t,o?t:u)(r):91===r?e.attempt(h,t,o?e.attempt(d,t,u):u)(r):o?t(r):u(r)}function u(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,o,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=a);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},f={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},p={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",c,t],["enter",f,t]],o=(0,u.V)(o,e.slice(n+1,n+s+3)),o=(0,u.V)(o,[["enter",p,t]]),o=(0,u.V)(o,(0,l.C)(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),o=(0,u.V)(o,[["exit",p,t],e[i-2],e[i-1],["exit",f,t]]),o=(0,u.V)(o,e.slice(i+1)),o=(0,u.V)(o,[["exit",c,t]]),(0,u.d)(e,n,e.length,o),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},p={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),(0,a.factoryWhitespace)(e,i)};function i(t){return 41===t?l(t):(0,n.factoryDestination)(e,u,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function u(t){return(0,s.markdownLineEndingOrSpace)(t)?(0,a.factoryWhitespace)(e,c)(t):l(t)}function c(t){return 34===t||39===t||40===t?(0,o.factoryTitle)(e,(0,a.factoryWhitespace)(e,l),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function l(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},h={tokenize:function(e,t,r){const n=this;return function(t){return i.factoryLabel.call(n,e,o,r,"reference","referenceMarker","referenceString")(t)};function o(e){return n.parser.defined.includes((0,c.normalizeIdentifier)(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},d={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}}},5365:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});const n={name:"labelStartImage",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):r(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:r(8966).Z.resolveAll}},5856:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});const n={name:"labelStartLink",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:r(8966).Z.resolveAll}},890:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(4014);const i={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),(0,n.factorySpace)(e,t,"linePrefix")}}}},4618:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var n=r(4014),i=r(488),o=r(2929),a=r(8038);const s={name:"list",tokenize:function(e,t,r){const n=this,s=n.events[n.events.length-1];let c=s&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,l=0;return function(t){const o=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!n.containerState.marker||t===n.containerState.marker:(0,i.asciiDigit)(t)){if(n.containerState.type||(n.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(a.C,r,p)(t):p(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(t)}return r(t)};function f(t){return(0,i.asciiDigit)(t)&&++l<10?(e.consume(t),f):(!n.interrupt||l<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),p(t)):r(t)}function p(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(o.w,n.interrupt?r:h,e.attempt(u,m,d))}function h(e){return n.containerState.initialBlankLine=!0,c++,m(e)}function d(t){return(0,i.markdownSpace)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),m):r(t)}function m(r){return n.containerState.size=c+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(o.w,(function(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,(0,n.factorySpace)(e,t,"listItemIndent",a.containerState.size+1)(r)}),(function(r){if(a.containerState.furtherBlankLines||!(0,i.markdownSpace)(r))return a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u(r);return a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(c,t,u)(r)}));function u(i){return a.containerState._closeFlow=!0,a.interrupt=void 0,(0,n.factorySpace)(e,e.attempt(s,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},u={tokenize:function(e,t,r){const o=this;return(0,n.factorySpace)(e,(function(e){const n=o.events[o.events.length-1];return!(0,i.markdownSpace)(e)&&n&&"listItemPrefixWhitespace"===n[1].type?t(e):r(e)}),"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},c={tokenize:function(e,t,r){const i=this;return(0,n.factorySpace)(e,(function(e){const n=i.events[i.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===i.containerState.size?t(e):r(e)}),"listItemIndent",i.containerState.size+1)},partial:!0}},6263:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});var n=r(4014),i=r(488);const o={name:"setextUnderline",tokenize:function(e,t,r){const o=this;let a,s,u=o.events.length;for(;u--;)if("lineEnding"!==o.events[u][1].type&&"linePrefix"!==o.events[u][1].type&&"content"!==o.events[u][1].type){s="paragraph"===o.events[u][1].type;break}return function(t){if(!o.parser.lazy[o.now().line]&&(o.interrupt||s))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=t,c(t);return r(t)};function c(t){return t===a?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),(0,n.factorySpace)(e,l,"lineSuffix")(t))}function l(n){return null===n||(0,i.markdownLineEnding)(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}}},8038:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});var n=r(4014),i=r(488);const o={name:"thematicBreak",tokenize:function(e,t,r){let o,a=0;return function(t){return e.enter("thematicBreak"),o=t,s(t)};function s(c){return c===o?(e.enter("thematicBreakSequence"),u(c)):(0,i.markdownSpace)(c)?(0,n.factorySpace)(e,s,"whitespace")(c):a<3||null!==c&&!(0,i.markdownLineEnding)(c)?r(c):(e.exit("thematicBreak"),t(c))}function u(t){return t===o?(e.consume(t),a++,u):(e.exit("thematicBreakSequence"),s(t))}}}},917:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryDestination:()=>i});var n=r(488);function i(e,t,r,i,o,a,s,u,c){const l=c||Number.POSITIVE_INFINITY;let f=0;return function(t){if(60===t)return e.enter(i),e.enter(o),e.enter(a),e.consume(t),e.exit(a),p;if(null===t||41===t||(0,n.asciiControl)(t))return r(t);return e.enter(i),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),m(t)};function p(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(o),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(u),p(t)):null===t||60===t||(0,n.markdownLineEnding)(t)?r(t):(e.consume(t),92===t?d:h)}function d(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function m(o){return 40===o?++f>l?r(o):(e.consume(o),m):41===o?f--?(e.consume(o),m):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(i),t(o)):null===o||(0,n.markdownLineEndingOrSpace)(o)?f?r(o):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(i),t(o)):(0,n.asciiControl)(o)?r(o):(e.consume(o),92===o?g:m)}function g(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}},7504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryLabel:()=>i});var n=r(488);function i(e,t,r,i,o,a){const s=this;let u,c=0;return function(t){return e.enter(i),e.enter(o),e.consume(t),e.exit(o),e.enter(a),l};function l(p){return null===p||91===p||93===p&&!u||94===p&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs||c>999?r(p):93===p?(e.exit(a),e.enter(o),e.consume(p),e.exit(o),e.exit(i),t):(0,n.markdownLineEnding)(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(t){return null===t||91===t||93===t||(0,n.markdownLineEnding)(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),u=u||!(0,n.markdownSpace)(t),92===t?p:f)}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,f):f(t)}}},4014:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factorySpace:()=>i});var n=r(488);function i(e,t,r,i){const o=i?i-1:Number.POSITIVE_INFINITY;let a=0;return function(i){if((0,n.markdownSpace)(i))return e.enter(r),s(i);return t(i)};function s(i){return(0,n.markdownSpace)(i)&&a++<o?(e.consume(i),s):(e.exit(r),t(i))}}},1559:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryTitle:()=>o});var n=r(4014),i=r(488);function o(e,t,r,o,a,s){let u;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),u=40===t?41:t,c};function c(r){return r===u?(e.enter(a),e.consume(r),e.exit(a),e.exit(o),t):(e.enter(s),l(r))}function l(t){return t===u?(e.exit(s),c(u)):null===t?r(t):(0,i.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===u||null===t||(0,i.markdownLineEnding)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?p:f)}function p(t){return t===u||92===t?(e.consume(t),f):f(t)}}},6096:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryWhitespace:()=>o});var n=r(4014),i=r(488);function o(e,t){let r;return function o(a){if((0,i.markdownLineEnding)(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,o;if((0,i.markdownSpace)(a))return(0,n.factorySpace)(e,o,r?"linePrefix":"lineSuffix")(a);return t(a)}}},488:(e,t,r)=>{"use strict";r.r(t),r.d(t,{asciiAlpha:()=>n,asciiAlphanumeric:()=>a,asciiAtext:()=>u,asciiControl:()=>c,asciiDigit:()=>i,asciiHexDigit:()=>o,asciiPunctuation:()=>s,markdownLineEnding:()=>f,markdownLineEndingOrSpace:()=>l,markdownSpace:()=>p,unicodePunctuation:()=>d,unicodeWhitespace:()=>h});const n=m(/[A-Za-z]/),i=m(/\d/),o=m(/[\dA-Fa-f]/),a=m(/[\dA-Za-z]/),s=m(/[!-/:-@[-`{-~]/),u=m(/[#-'*+\--9=?A-Z^-~]/);function c(e){return null!==e&&(e<32||127===e)}function l(e){return null!==e&&(e<0||32===e)}function f(e){return null!==e&&e<-2}function p(e){return-2===e||-1===e||32===e}const h=m(/\s/),d=m(/[!-/:-@[-`{-~\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]/);function m(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}},8300:(e,t,r)=>{"use strict";function n(e,t,r,n){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),[].splice.apply(e,o);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),[].splice.apply(e,o),a+=1e4,t+=1e4}function i(e,t){return e.length>0?(n(e,e.length,0,t),e):t}r.d(t,{d:()=>n,V:()=>i})},3886:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(488);function i(e){return null===e||(0,n.markdownLineEndingOrSpace)(e)||(0,n.unicodeWhitespace)(e)?1:(0,n.unicodePunctuation)(e)?2:void 0}},4666:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(8300);const i={}.hasOwnProperty;function o(e){const t={};let r=-1;for(;++r<e.length;)a(t,e[r]);return t}function a(e,t){let r;for(r in t){const n=(i.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let a;for(a in o){i.call(n,a)||(n[a]=[]);const e=o[a];s(n[a],Array.isArray(e)?e:e?[e]:[])}}}function s(e,t){let r=-1;const i=[];for(;++r<t.length;)("after"===t[r].add?e:i).push(t[r]);(0,n.d)(e,0,0,i)}},8031:(e,t,r)=>{"use strict";function n(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}r.d(t,{o:()=>n})},2116:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(9477),i=r(8031);const o=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function a(e){return e.replace(o,s)}function s(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return(0,i.o)(r.slice(t?2:1),t?16:10)}return(0,n.T)(r)||e}},2493:(e,t,r)=>{"use strict";function n(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r.r(t),r.d(t,{normalizeIdentifier:()=>n})},3879:(e,t,r)=>{"use strict";function n(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}r.d(t,{C:()=>n})},2988:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(8300);function i(e){const t={};let r,i,a,s,u,c,l,f=-1;for(;++f<e.length;){for(;f in t;)f=t[f];if(r=e[f],f&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[f-1][1].type&&(c=r[1]._tokenizer.events,a=0,a<c.length&&"lineEndingBlank"===c[a][1].type&&(a+=2),a<c.length&&"content"===c[a][1].type))for(;++a<c.length&&"content"!==c[a][1].type;)"chunkText"===c[a][1].type&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,o(e,f)),f=t[f],l=!0);else if(r[1]._container){for(a=f,i=void 0;a--&&(s=e[a],"lineEnding"===s[1].type||"lineEndingBlank"===s[1].type);)"enter"===s[0]&&(i&&(e[i][1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},e[i][1].start),u=e.slice(i,f),u.unshift(r),(0,n.d)(e,i,f-i+1,u))}}return!l}function o(e,t){const r=e[t][1],i=e[t][2];let o=t-1;const a=[],s=r._tokenizer||i.parser[r.contentType](r.start),u=s.events,c=[],l={};let f,p,h=-1,d=r,m=0,g=0;const y=[g];for(;d;){for(;e[++o][1]!==d;);a.push(o),d._tokenizer||(f=i.sliceStream(d),d.next||f.push(null),p&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),p=d,d=d.next}for(d=r;++h<u.length;)"exit"===u[h][0]&&"enter"===u[h-1][0]&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(g=h+1,y.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),h=y.length;h--;){const t=u.slice(y[h],y[h+1]),r=a.pop();c.unshift([r,r+t.length-1]),(0,n.d)(e,r,2,t)}for(h=-1;++h<c.length;)l[m+c[h][0]]=m+c[h][1],m+=c[h][1]-c[h][0]-1;return l}},7605:(e,t,r)=>{"use strict";r.r(t),r.d(t,{codes:()=>n});const n={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}},480:(e,t,r)=>{"use strict";r.r(t),r.d(t,{constants:()=>n});const n={attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:3,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}},58:(e,t,r)=>{"use strict";r.r(t),r.d(t,{types:()=>n});const n={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}},469:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(3428);const i=/[\t ]*(?:\r?\n|\r)/g;function o(){return e=>{(0,n.visit)(e,"text",((e,t,r)=>{const n=[];let o=0;i.lastIndex=0;let a=i.exec(e.value);for(;a;){const t=a.index;o!==t&&n.push({type:"text",value:e.value.slice(o,t)}),n.push({type:"break"}),o=t+a[0].length,a=i.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return o<e.value.length&&n.push({type:"text",value:e.value.slice(o)}),r.children.splice(t,1,...n),t+n.length}))}}},4914:(e,t,r)=>{"use strict";r.r(t),r.d(t,{remarkHeadingId:()=>o});var n=r(3428);const i={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};function o(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",{text:{[i.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==i.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==i.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),o)}function o(n){return[i.carriageReturn,i.lineFeed,i.carriageReturnLineFeed,null,i.backslash,i.leftCurlyBrace].includes(n)?r(n):n===i.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),o)}}},t,r)(n)}}}}),t("fromMarkdownExtensions",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){(0,n.visit)(e,"idString",((e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)})),(0,n.visit)(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}}},5164:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>X});var n=r(4014),i=r(488),o=r(6096);function a(e,t,r,a,s,u,c,l,f,p,h,d,m,g,y){let v,b;return function(t){return e.enter(a),e.enter(s),e.consume(t),e.exit(s),E};function E(t){return 35===t?(v=c,w(t)):46===t?(v=l,w(t)):58===t||95===t||(0,i.asciiAlpha)(t)?(e.enter(u),e.enter(f),e.consume(t),k):y&&(0,i.markdownSpace)(t)?(0,n.factorySpace)(e,E,"whitespace")(t):!y&&(0,i.markdownLineEndingOrSpace)(t)?(0,o.factoryWhitespace)(e,E)(t):j(t)}function w(t){return e.enter(u),e.enter(v),e.enter(v+"Marker"),e.consume(t),e.exit(v+"Marker"),x}function x(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||(0,i.markdownLineEndingOrSpace)(t)?r(t):(e.enter(v+"Value"),e.consume(t),S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit(v+"Value"),e.exit(v),e.exit(u),E(t)):(e.consume(t),S)}function k(t){return 45===t||46===t||58===t||95===t||(0,i.asciiAlphanumeric)(t)?(e.consume(t),k):(e.exit(f),y&&(0,i.markdownSpace)(t)?(0,n.factorySpace)(e,A,"whitespace")(t):!y&&(0,i.markdownLineEndingOrSpace)(t)?(0,o.factoryWhitespace)(e,A)(t):A(t))}function A(t){return 61===t?(e.enter(p),e.consume(t),e.exit(p),D):(e.exit(u),E(t))}function D(t){return null===t||60===t||61===t||62===t||96===t||125===t||y&&(0,i.markdownLineEnding)(t)?r(t):34===t||39===t?(e.enter(h),e.enter(m),e.consume(t),e.exit(m),b=t,C):y&&(0,i.markdownSpace)(t)?(0,n.factorySpace)(e,D,"whitespace")(t):!y&&(0,i.markdownLineEndingOrSpace)(t)?(0,o.factoryWhitespace)(e,D)(t):(e.enter(d),e.enter(g),e.consume(t),b=void 0,F)}function F(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit(g),e.exit(d),e.exit(u),E(t)):(e.consume(t),F)}function C(t){return t===b?(e.enter(m),e.consume(t),e.exit(m),e.exit(h),e.exit(u),T):(e.enter(d),P(t))}function P(t){return t===b?(e.exit(d),C(t)):null===t?r(t):(0,i.markdownLineEnding)(t)?y?r(t):(0,o.factoryWhitespace)(e,P)(t):(e.enter(g),e.consume(t),O)}function O(t){return t===b||null===t||(0,i.markdownLineEnding)(t)?(e.exit(g),P(t)):(e.consume(t),O)}function T(e){return 125===e||(0,i.markdownLineEndingOrSpace)(e)?E(e):j(e)}function j(n){return 125===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(a),t):r(n)}}function s(e,t,r,n,o,a,s){let u=0,c=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),l};function l(r){return 93===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(n),t):(e.enter(a),f(r))}function f(t){return null===t||u>999?r(t):93!==t||c--?(0,i.markdownLineEnding)(t)?s?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):(e.enter("chunkText",{contentType:"text"}),p(t)):h(t)}function p(t){return null===t||(0,i.markdownLineEnding)(t)||u>999?(e.exit("chunkText"),f(t)):91===t&&++c>3?r(t):93!==t||c--?(e.consume(t),92===t?d:p):(e.exit("chunkText"),h(t))}function h(r){return e.exit(a),e.enter(o),e.consume(r),e.exit(o),e.exit(n),t}function d(t){return 91===t||92===t||93===t?(e.consume(t),u++,p):p(t)}}function u(e,t,r,n){const o=this;return function(t){if((0,i.asciiAlpha)(t))return e.enter(n),e.consume(t),a;return r(t)};function a(s){return 45===s||95===s||(0,i.asciiAlphanumeric)(s)?(e.consume(s),a):(e.exit(n),45===o.previous||95===o.previous?r(s):t(s))}}const c={tokenize:function(e,t,r){const o=this,a=o.events[o.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let c,h=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),d(t)};function d(t){return 58===t?(e.consume(t),h++,d):h<3?r(t):(e.exit("directiveContainerSequence"),u.call(o,e,m,r,"directiveContainerName")(t))}function m(t){return 91===t?e.attempt(l,g,g)(t):g(t)}function g(t){return 123===t?e.attempt(f,y,y)(t):y(t)}function y(t){return(0,n.factorySpace)(e,v,"whitespace")(t)}function v(n){return e.exit("directiveContainerFence"),null===n?b(n):(0,i.markdownLineEnding)(n)?o.interrupt?t(n):e.attempt(p,E,b)(n):r(n)}function b(r){return e.exit("directiveContainer"),t(r)}function E(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),w(r))}function w(t){return null===t?D(t):e.attempt({tokenize:F,partial:!0},D,s?(0,n.factorySpace)(e,x,"linePrefix",s+1):x)(t)}function x(t){if(null===t)return D(t);const r=e.enter("chunkDocument",{contentType:"document",previous:c});return c&&(c.next=r),c=r,S(t)}function S(t){if(null===t){const r=e.exit("chunkDocument");return o.parser.lazy[r.start.line]=!1,D(t)}return(0,i.markdownLineEnding)(t)?e.check(p,k,A)(t):(e.consume(t),S)}function k(t){e.consume(t);const r=e.exit("chunkDocument");return o.parser.lazy[r.start.line]=!1,w}function A(t){const r=e.exit("chunkDocument");return o.parser.lazy[r.start.line]=!1,D(t)}function D(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function F(e,t,r){let o=0;return(0,n.factorySpace)(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),a(t)}),"linePrefix",4);function a(t){return 58===t?(e.consume(t),o++,a):o<h?r(t):(e.exit("directiveContainerSequence"),(0,n.factorySpace)(e,s,"whitespace")(t))}function s(n){return null===n||(0,i.markdownLineEnding)(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},l={tokenize:function(e,t,r){return s(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},f={tokenize:function(e,t,r){return a(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},p={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const h={tokenize:function(e,t,r){const o=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),a};function a(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),u.call(o,e,s,r,"directiveLeafName")):r(t)}function s(t){return 91===t?e.attempt(d,c,c)(t):c(t)}function c(t){return 123===t?e.attempt(m,l,l)(t):l(t)}function l(t){return(0,n.factorySpace)(e,f,"whitespace")(t)}function f(n){return null===n||(0,i.markdownLineEnding)(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},d={tokenize:function(e,t,r){return s(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},m={tokenize:function(e,t,r){return a(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const g={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),u.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(y,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(v,a,a)(t):a(t)}function a(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},y={tokenize:function(e,t,r){return s(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},v={tokenize:function(e,t,r){return a(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const b=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],E={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function w(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function x(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function S(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||w(e)}var k=r(9477);const A=String.fromCharCode,D=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function F(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let i,o,a=0,s=-1,u="";t.position&&("start"in t.position||"indent"in t.position?(o=t.position.indent,i=t.position.start):i=t.position);let c,l=(i?i.line:0)||1,f=(i?i.column:0)||1,p=d();for(a--;++a<=e.length;)if(10===c&&(f=(o?o[s]:0)||1),c=e.charCodeAt(a),38===c){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||r&&i===r){u+=A(c),f++;continue}const o=a+1;let s,l=o,y=o;if(35===i){y=++l;const t=e.charCodeAt(y);88===t||120===t?(s="hexadecimal",y=++l):s="decimal"}else s="named";let v="",D="",F="";const P="named"===s?S:"decimal"===s?w:x;for(y--;++y<=e.length;){const t=e.charCodeAt(y);if(!P(t))break;F+=A(t),"named"===s&&b.includes(F)&&(v=F,D=(0,k.T)(F))}let O=59===e.charCodeAt(y);if(O){y++;const e="named"===s&&(0,k.T)(F);e&&(v=F,D=e)}let T=1+y-o,j="";if(O||!1!==t.nonTerminated)if(F)if("named"===s){if(O&&!D)m(5,1);else if(v!==F&&(y=l+v.length,T=1+y-l,O=!1),!O){const r=v?1:3;if(t.attribute){const t=e.charCodeAt(y);61===t?(m(r,T),D=""):S(t)?D="":m(r,T)}else m(r,T)}j=D}else{O||m(2,T);let e=Number.parseInt(F,"hexadecimal"===s?16:10);if((h=e)>=55296&&h<=57343||h>1114111)m(7,T),j=A(65533);else if(e in E)m(6,T),j=E[e];else{let t="";C(e)&&m(6,T),e>65535&&(e-=65536,t+=A(e>>>10|55296),e=56320|1023&e),j=t+A(e)}}else"named"!==s&&m(4,T);else;if(j){g(),p=d(),a=y-1,f+=y-o+1,n.push(j);const r=d();r.offset++,t.reference&&t.reference.call(t.referenceContext,j,{start:p,end:r},e.slice(o-1,y)),p=r}else F=e.slice(o-1,y),u+=F,f+=F.length,a=y-1}else 10===c&&(l++,s++,f=0),Number.isNaN(c)?g():(u+=A(c),f++);var h;return n.join("");function d(){return{line:l,column:f,offset:a+((i?i.offset:0)||0)}}function m(e,r){let n;t.warning&&(n=d(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,D[e],n,e))}function g(){u&&(n.push(u),t.text&&t.text.call(t.textContext,u,{start:p,end:d()}),u="")}}function C(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function P(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function O(e){return"&#x"+e.toString(16).toUpperCase()+";"}var T=r(213);const j=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=(0,T.convert)(t),o=n?-1:1;!function e(a,s,u){const c="object"==typeof a&&null!==a?a:{};let l;"string"==typeof c.type&&(l="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(l?"<"+l+">":"")+")"}));return f;function f(){let c,l,f,p=[];if((!t||i(a,s,u[u.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,u)),false===p[0]))return p;if(a.children&&"skip"!==p[0])for(l=(n?a.children.length:-1)+o,f=u.concat(a);l>-1&&l<a.children.length;){if(c=e(a.children[l],l,f)(),false===c[0])return c;l="number"==typeof c[1]?c[1]:l+o}return p}}(e,null,[])()};var _=r(5471),I=r(7567),R=r(1481);const L={}.hasOwnProperty,N=/^[^\t\n\r "#'.<=>`}]+$/;K.peek=function(){return":"};const M={canContainEols:["textDirective"],enter:{directiveContainer:function(e){z.call(this,"containerDirective",e)},directiveContainerAttributes:$,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){z.call(this,"leafDirective",e)},directiveLeafAttributes:$,directiveText:function(e){z.call(this,"textDirective",e)},directiveTextAttributes:$},exit:{directiveContainer:Q,directiveContainerAttributeClassValue:V,directiveContainerAttributeIdValue:q,directiveContainerAttributeName:G,directiveContainerAttributeValue:H,directiveContainerAttributes:W,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:U,directiveLeaf:Q,directiveLeafAttributeClassValue:V,directiveLeafAttributeIdValue:q,directiveLeafAttributeName:G,directiveLeafAttributeValue:H,directiveLeafAttributes:W,directiveLeafName:U,directiveText:Q,directiveTextAttributeClassValue:V,directiveTextAttributeIdValue:q,directiveTextAttributeName:G,directiveTextAttributeValue:H,directiveTextAttributes:W,directiveTextName:U}},B={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:K,leafDirective:K,textDirective:K}};function z(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function U(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function $(){this.setData("directiveAttributes",[]),this.buffer()}function q(e){this.getData("directiveAttributes").push(["id",F(this.sliceSerialize(e))])}function V(e){this.getData("directiveAttributes").push(["class",F(this.sliceSerialize(e))])}function H(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=F(this.sliceSerialize(e))}function G(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function W(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function Q(e){this.exit(e)}function K(e,t,r){const n=function(e){let t=0;"containerDirective"===e.type?(j(e,"containerDirective",r),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t);function r(e,r){let n=r.length,i=0;for(;n--;)"containerDirective"===r[n].type&&i++;i>t&&(t=i)}}(e),i=r.enter(e.type);let o=n+(e.name||"")+function(e,t){let r=e;if("containerDirective"===e.type){const t=(e.children||[])[0];if(!Y(t))return"";r=t}const n=t.enter("label"),i=t.enter(e.type+"Label"),o=(0,I.p)(r,t,{before:"[",after:"]"});return i(),n(),o?"["+o+"]":""}(e,r)+function(e,t){const r=(0,R.l)(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},o=[];let a,s,u,c;for(c in i)if(L.call(i,c)&&void 0!==i[c]&&null!==i[c]){const e=String(i[c]);if("id"===c)u=N.test(e)?"#"+e:l("id",e);else if("class"===c){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(N.test(t[i])?n:r).push(t[i]);a=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else o.push(l(c,e))}a&&o.unshift(a);s&&o.unshift(s);u&&o.unshift(u);return o.length>0?"{"+o.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return P(e,Object.assign({format:O},t))}(t,{subset:n})+r:"")}}(e,r);if("containerDirective"===e.type){const t=function(e,t){Y((e.children||[])[0])&&(e=Object.assign({},e,{children:e.children.slice(1)}));return(0,_.K)(e,t)}(e,r);t&&(o+="\n"+t),o+="\n"+n}return i(),o}function Y(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}function X(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:g},flow:{58:[c,h]}}),t("fromMarkdownExtensions",M),t("toMarkdownExtensions",B)}},9715:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(488),i=r(8326);const o=Object.assign(a(Error),{eval:a(EvalError),range:a(RangeError),reference:a(ReferenceError),syntax:a(SyntaxError),type:a(TypeError),uri:a(URIError)});function a(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?i(t,...r):t;return new e(n)}}const s={}.hasOwnProperty,u={yaml:"-",toml:"+"};function c(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=l(e[r]);return t}function l(e){let t=e;if("string"==typeof t){if(!s.call(u,t))throw o("Missing matter definition for `%s`",t);t={type:t,marker:u[t]}}else if("object"!=typeof t)throw o("Expected matter to be an object, not `%j`",t);if(!s.call(t,"type"))throw o("Missing `type` in matter `%j`",t);if(!s.call(t,"fence")&&!s.call(t,"marker"))throw o("Missing `marker` or `fence` in matter `%j`",t);return t}function f(e){const t=e.type,r=e.anywhere,i=t+"Value",o=t+"Fence",a=o+"Sequence",s={tokenize:function(e,t,r){let i=0;return function(t){if(t===u.charCodeAt(i))return e.enter(o),e.enter(a),s(t);return r(t)};function s(t){return i===u.length?(e.exit(a),(0,n.markdownSpace)(t)?(e.enter("whitespace"),c(t)):l(t)):t===u.charCodeAt(i++)?(e.consume(t),s):r(t)}function c(t){return(0,n.markdownSpace)(t)?(e.consume(t),c):(e.exit("whitespace"),l(t))}function l(i){return null===i||(0,n.markdownLineEnding)(i)?(e.exit(o),t(i)):r(i)}},partial:!0};let u;return{tokenize:function(o,a,c){const l=this;return function(n){const i=l.now();if(1!==i.column||!r&&1!==i.line)return c(n);return o.enter(t),u=p(e,"open"),o.attempt(s,f,c)(n)};function f(t){return u=p(e,"close"),m(t)}function h(e){return null===e||(0,n.markdownLineEnding)(e)?m(e):(o.enter(i),d(e))}function d(e){return null===e||(0,n.markdownLineEnding)(e)?(o.exit(i),m(e)):(o.consume(e),d)}function m(e){return null===e?c(e):(o.enter("lineEnding"),o.consume(e),o.exit("lineEnding"),o.attempt(s,g,h))}function g(e){return o.exit(t),a(e)}},concrete:!0}}function p(e,t){return e.marker?h(e.marker,t).repeat(3):h(e.fence,t)}function h(e,t){return"string"==typeof e?e:e[t]}function d(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function m(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function g(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function y(e){const t=v(e,"open"),r=v(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function v(e,t){return e.marker?b(e.marker,t).repeat(3):b(e.fence,t)}function b(e,t){return"string"==typeof e?e:e[t]}function E(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=c(e),r={};let n,i,o=-1;for(;++o<t.length;)n=t[o],i=p(n,"open").charCodeAt(0),i in r?r[i].push(f(n)):r[i]=[f(n)];return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=c(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=d(e),n[e.type]=m,n[e.type+"Value"]=g}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=c(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=y(e),t.push({atBreak:!0,character:v(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}},3314:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Te});var n=r(4666),i=r(488);const o={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),o):r(t)}function o(t){return 87===t||119===t?(e.consume(t),a):r(t)}function a(t){return 46===t?(e.consume(t),s):r(t)}function s(e){return null===e||(0,i.markdownLineEnding)(e)?r(e):t(e)}},partial:!0},a={tokenize:function(e,t,r){let n,o;return a;function a(t){return 38===t?e.check(c,l,s)(t):46===t||95===t?e.check(u,l,s)(t):null===t||(0,i.asciiControl)(t)||(0,i.unicodeWhitespace)(t)||45!==t&&(0,i.unicodePunctuation)(t)?l(t):(e.consume(t),a)}function s(t){return 46===t?(o=n,n=void 0,e.consume(t),a):(95===t&&(n=!0),e.consume(t),a)}function l(e){return o||n?r(e):t(e)}},partial:!0},s={tokenize:function(e,t){let r=0;return n;function n(a){return 38===a?e.check(c,t,i)(a):(40===a&&r++,41===a?e.check(u,o,i)(a):y(a)?t(a):g(a)?e.check(u,t,i)(a):(e.consume(a),n))}function i(t){return e.consume(t),n}function o(e){return r--,r<0?t(e):i(e)}},partial:!0},u={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return g(i)?(e.consume(i),n):y(i)?t(i):r(i)}},partial:!0},c={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return(0,i.asciiAlpha)(t)?(e.consume(t),n):59===t?(e.consume(t),o):r(t)}function o(e){return y(e)?t(e):r(e)}},partial:!0},l={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!b(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(o,e.attempt(a,e.attempt(s,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:b},f={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!E(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),o};function o(t){return 84===t||116===t?(e.consume(t),u):r(t)}function u(t){return 84===t||116===t?(e.consume(t),c):r(t)}function c(t){return 80===t||112===t?(e.consume(t),l):r(t)}function l(t){return 83===t||115===t?(e.consume(t),f):f(t)}function f(t){return 58===t?(e.consume(t),p):r(t)}function p(t){return 47===t?(e.consume(t),h):r(t)}function h(t){return 47===t?(e.consume(t),d):r(t)}function d(t){return null===t||(0,i.asciiControl)(t)||(0,i.unicodeWhitespace)(t)||(0,i.unicodePunctuation)(t)?r(t):e.attempt(a,e.attempt(s,m),r)(t)}function m(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:E},p={tokenize:function(e,t,r){const n=this;let o,a;return function(t){if(!v(t)||!w(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return v(t)?(e.consume(t),s):64===t?(e.consume(t),c):r(t)}function c(t){return 46===t?e.check(u,h,l)(t):45===t||95===t?e.check(u,r,f)(t):(0,i.asciiAlphanumeric)(t)?(!a&&(0,i.asciiDigit)(t)&&(a=!0),e.consume(t),c):h(t)}function l(t){return e.consume(t),o=!0,a=void 0,c}function f(t){return e.consume(t),p}function p(t){return 46===t?e.check(u,r,l)(t):c(t)}function h(n){return o&&!a?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:w},h={},d={text:h};let m=48;for(;m<123;)h[m]=p,m++,58===m?m=65:91===m&&(m=97);function g(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function y(e){return null===e||60===e||(0,i.markdownLineEndingOrSpace)(e)}function v(e){return 43===e||45===e||46===e||95===e||(0,i.asciiAlphanumeric)(e)}function b(e){return null===e||40===e||42===e||95===e||126===e||(0,i.markdownLineEndingOrSpace)(e)}function E(e){return null===e||!(0,i.asciiAlpha)(e)}function w(e){return 47!==e&&E(e)}function x(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}h[43]=p,h[45]=p,h[46]=p,h[95]=p,h[72]=[p,f],h[104]=[p,f],h[87]=[p,l],h[119]=[p,l];var S=r(2929),k=r(4014),A=r(2493);const D={tokenize:function(e,t,r){const n=this;return(0,k.factorySpace)(e,(function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function F(e,t,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return r(i);const s=(0,A.normalizeIdentifier)(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.charCodeAt(0)||!o.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function C(e,t){let r,n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...u),e}function P(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),u};function u(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){let f;return null===u||91===u||s++>999?r(u):93===u?a?(e.exit("chunkString"),f=e.exit("gfmFootnoteCallString"),o.includes((0,A.normalizeIdentifier)(n.sliceSerialize(f)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(u):r(u)):r(u):(e.consume(u),(0,i.markdownLineEndingOrSpace)(u)||(a=!0),92===u?l:c)}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function O(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s,u=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),l):r(t)}function l(t){let o;return null===t||91===t||u>999?r(t):93===t?s?(o=e.exit("gfmFootnoteDefinitionLabelString"),a=(0,A.normalizeIdentifier)(n.sliceSerialize(o)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h):r(t):(0,i.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u++,l):(e.enter("chunkString").contentType="string",f(t))}function f(t){return null===t||(0,i.markdownLineEnding)(t)||91===t||93===t||u>999?(e.exit("chunkString"),l(t)):((0,i.markdownLineEndingOrSpace)(t)||(s=!0),u++,e.consume(t),92===t?p:f)}function p(t){return 91===t||92===t||93===t?(e.consume(t),u++,f):f(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),(0,k.factorySpace)(e,d,"gfmFootnoteDefinitionWhitespace")):r(t)}function d(e){return o.includes(a)||o.push(a),t(e)}}function T(e,t,r){return e.check(S.w,t,e.attempt(D,t,r))}function j(e){e.exit("gfmFootnoteDefinition")}var _=r(8300),I=r(3886),R=r(3879);function L(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const u=(0,I.r)(i);if(126===o)return a>1?n(o):(e.consume(o),a++,s);if(a<2&&!t)return n(o);const c=e.exit("strikethroughSequenceTemporary"),l=(0,I.r)(o);return c._open=!l||2===l&&Boolean(u),c._close=!u||2===u&&Boolean(l),r(o)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},o={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",o,t]];(0,_.d)(a,a.length,0,(0,R.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),(0,_.d)(a,a.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),(0,_.d)(e,n-1,r-n+3,a),r=n+a.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const N={flow:{null:{tokenize:function(e,t,r){const n=this,o=[];let a,s,u=0;return function(t){if(e.enter("table")._align=o,e.enter("tableHead"),e.enter("tableRow"),124===t)return c(t);return u++,e.enter("temporaryTableCellContent"),p(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l}function l(t){return null===t||(0,i.markdownLineEnding)(t)?function(t){if(null===t)return r(t);e.exit("tableRow"),e.exit("tableHead");const i=n.interrupt;return n.interrupt=!0,e.attempt({tokenize:O,partial:!0},(function(t){return n.interrupt=i,e.enter("tableDelimiterRow"),d(t)}),(function(e){return n.interrupt=i,r(e)}))(t)}(t):(0,i.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),f):(a&&(a=void 0,u++),124===t?c(t):(e.enter("temporaryTableCellContent"),p(t)))}function f(t){return(0,i.markdownSpace)(t)?(e.consume(t),f):(e.exit("whitespace"),l(t))}function p(t){return null===t||124===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?h:p)}function h(t){return 92===t||124===t?(e.consume(t),p):p(t)}function d(t){return null===t||(0,i.markdownLineEnding)(t)?b(t):(0,i.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),m):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,o.push(null),g):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),o.push("left"),y):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):r(t)}function m(t){return(0,i.markdownSpace)(t)?(e.consume(t),m):(e.exit("whitespace"),d(t))}function g(t){return 45===t?(e.consume(t),g):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),o[o.length-1]="left"===o[o.length-1]?"center":"right",v):d(t))}function y(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,g):r(t)}function v(t){return null===t||(0,i.markdownLineEnding)(t)?b(t):(0,i.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),m):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):r(t)}function b(t){return e.exit("tableDelimiterRow"),s&&u===o.length?null===t?E(t):e.check(M,E,e.attempt({tokenize:O,partial:!0},(0,k.factorySpace)(e,w,"linePrefix",4),E))(t):r(t)}function E(r){return e.exit("table"),t(r)}function w(t){return e.enter("tableBody"),x(t)}function x(t){return e.enter("tableRow"),124===t?S(t):(e.enter("temporaryTableCellContent"),F(t))}function S(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||(0,i.markdownLineEnding)(t)?function(t){if(e.exit("tableRow"),null===t)return P(t);return e.check(M,P,e.attempt({tokenize:O,partial:!0},(0,k.factorySpace)(e,x,"linePrefix",4),P))(t)}(t):(0,i.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),D):124===t?S(t):(e.enter("temporaryTableCellContent"),F(t))}function D(t){return(0,i.markdownSpace)(t)?(e.consume(t),D):(e.exit("whitespace"),A(t))}function F(t){return null===t||124===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?C:F)}function C(t){return 92===t||124===t?(e.consume(t),F):F(t)}function P(t){return e.exit("tableBody"),E(t)}function O(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,k.factorySpace)(e,o,"linePrefix")};function o(o){if(n.parser.lazy[n.now().line]||null===o||(0,i.markdownLineEnding)(o))return r(o);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?r(o):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,r(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(o))}}},resolve:function(e,t){let r,n,i,o,a,s,u,c=-1;for(;++c<e.length;){const l=e[c][1];if(i&&("temporaryTableCellContent"===l.type&&(o=o||c,a=c),("tableCellDivider"===l.type||"tableRow"===l.type)&&a)){const r={type:"tableContent",start:e[o][1].start,end:e[a][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(o,a-o+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),c-=a-o-3,o=void 0,a=void 0}if("exit"===e[c][0]&&void 0!==s&&s+(u?0:1)<c&&("tableCellDivider"===l.type||"tableRow"===l.type&&(s+3<c||"whitespace"!==e[s][1].type))){const i={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[c][1].end};e.splice(c+("tableCellDivider"===l.type?1:0),0,["exit",i,t]),e.splice(s,0,["enter",i,t]),c+=2,s=c+1,u=!0}"tableRow"===l.type&&(i="enter"===e[c][0],i&&(s=c+1,u=!1)),"tableDelimiterRow"===l.type&&(n="enter"===e[c][0],n&&(s=c+1,u=!1)),"tableHead"===l.type&&(r="enter"===e[c][0])}return e}}}},M={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),o};function o(a){return-1===a||32===a?(e.consume(a),n++,4===n?t:o):null===a||(0,i.markdownLineEndingOrSpace)(a)?t(a):r(a)}},partial:!0};const B={tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return(0,i.markdownSpace)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:U},t,r)):r(n)}}},z={text:{91:B}};function U(e,t,r){const n=this;return(0,k.factorySpace)(e,(function(e){const o=n.events[n.events.length-1];return o&&"whitespace"===o[1].type&&null!==e&&!(0,i.markdownLineEndingOrSpace)(e)?t(e):r(e)}),"whitespace")}function $(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}var q=r(7918),V=r(213);const H={}.hasOwnProperty,G=function(e,t,r,n){let i,o;"string"==typeof t||t instanceof RegExp?(o=[[t,r]],i=n):(o=t,i=r),i||(i={});const a=(0,V.convert)(i.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([W(e[r][0]),Q(e[r][1])])}else{let r;for(r in e)H.call(e,r)&&t.push([W(r),Q(e[r])])}return t}(o);let u=-1;for(;++u<s.length;)(0,q.S4)(e,"text",c);return e;function c(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(a(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=s[u][0],n=s[u][1];let i,o=0,a=t.children.indexOf(e),c=[];r.lastIndex=0;let l=r.exec(e.value);for(;l;){i=l.index;let t=n(...l,{index:l.index,input:l.input});if("string"==typeof t&&(t=t.length>0?{type:"text",value:t}:void 0),!1!==t&&(o!==i&&c.push({type:"text",value:e.value.slice(o,i)}),Array.isArray(t)?c.push(...t):t&&c.push(t),o=i+l[0].length),!r.global)break;l=r.exec(e.value)}void 0===i?(c=[e],a--):(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),t.children.splice(a,1,...c));return a+c.length+1}(e,r)}};function W(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Q(e){return"function"==typeof e?e:()=>e}const K="phrasing",Y=["autolink","link","image","label"],X={transforms:[function(e){G(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ee],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,te]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:J,literalAutolinkHttp:J,literalAutolinkWww:J},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},Z={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:K,notInConstruct:Y},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:K,notInConstruct:Y},{character:":",before:"[ps]",after:"\\/",inConstruct:K,notInConstruct:Y}]};function J(e){this.config.enter.autolinkProtocol.call(this,e)}function ee(e,t,r,n,i){let o="";if(!re(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(r))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let r,n,i,o;if(t)for(e=e.slice(0,t.index),o=t[0],r=o.indexOf(")"),n=$(e,"("),i=$(e,")");-1!==r&&n>i;)e+=o.slice(0,r+1),o=o.slice(r+1),r=o.indexOf(")"),i++;return[e,o]}(r+n);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function te(e,t,r,n){return!(!re(n,!0)||/[_-\d]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function re(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||(0,i.unicodeWhitespace)(r)||(0,i.unicodePunctuation)(r))&&(!t||47!==r)}var ne=r(2116);function ie(e){return e.label||!e.identifier?e.label||"":(0,ne.v)(e.identifier)}var oe=r(5471),ae=r(4671),se=r(3316),ue=r(3428),ce=r(3339);let le=!1,fe=!1;function pe(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,t,r){const n=r.enter("footnoteDefinition"),i=r.enter("label"),o=(0,se.T)(r,ie(e),{before:"^",after:"]"}),a="[^"+o+"]:";i();const s=(0,ae.Q)((0,oe.K)(e,r),(function(e,t,r){if(t)return(r?"":" ")+e;return(r?a:a+" ")+e}));n(),!le&&o.includes(":")&&(console.warn("[mdast-util-gfm-footnote] Warning: Found a colon in footnote identifier `"+o+"`. GitHub currently crahes on colons in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),le=!0);fe||(0,ue.visit)(e,"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)"),fe=!0,ce.BK)));return s},footnoteReference:e}};function e(e,t,r){const n=r.enter("footnoteReference"),i=r.enter("reference"),o=(0,se.T)(r,ie(e),{before:"^",after:"]"});return i(),n(),"[^"+o+"]"}}var he=r(7567);const de={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},me={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:ge}};function ge(e,t,r){const n=r.enter("emphasis"),i=(0,he.p)(e,r,{before:"~",after:"~"});return n(),"~~"+i+"~~"}ge.peek=function(){return"~"};var ye=r(7866);function ve(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){const e=r.unsafe[o],t=(0,ye.T)(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function be(e){return null==e?"":String(e)}function Ee(e){return e.length}function we(e){const t="string"==typeof e?e.charCodeAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}ve.peek=function(){return"`"};const xe={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t,children:[]},e),this.setData("inTable",!0)},tableData:ke,tableHeader:ke,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Ae));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Se,tableHeader:Se,tableRow:Se}};function Se(e){this.exit(e)}function ke(e){this.enter({type:"tableCell",children:[]},e)}function Ae(e,t){return"|"===t?t:e}function De(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,r){return s(function(e,t){const r=e.children;let n=-1;const i=[],o=t.enter("table");for(;++n<r.length;)i[n]=u(r[n],t);return o(),i}(e,r),e.align)},tableRow:function(e,t,r){const n=s([u(e,r)]);return n.slice(0,n.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=ve(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r){const n=r.enter("tableCell"),i=r.enter("phrasing"),a=(0,he.p)(e,r,{before:o,after:o});return i(),n(),a}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Ee,o=[];let a=-1;const s=[],u=[],c=[];let l,f,p,h,d,m,g,y,v,b=0;for(;++a<e.length;){for(l=-1,f=[],p=[],e[a].length>b&&(b=e[a].length);++l<e[a].length;)d=be(e[a][l]),!1!==r.alignDelimiters&&(h=i(d),p[l]=h,(void 0===c[l]||h>c[l])&&(c[l]=h)),f.push(d);s[a]=f,u[a]=p}if(l=-1,"object"==typeof n&&"length"in n)for(;++l<b;)o[l]=we(n[l]);else for(v=we(n);++l<b;)o[l]=v;for(l=-1,f=[],p=[];++l<b;)v=o[l],g="",y="",99===v?(g=":",y=":"):108===v?g=":":114===v&&(y=":"),h=!1===r.alignDelimiters?1:Math.max(1,c[l]-g.length-y.length),d=g+"-".repeat(h)+y,!1!==r.alignDelimiters&&(h=g.length+h+y.length,h>c[l]&&(c[l]=h),p[l]=h),f[l]=d;s.splice(1,0,f),u.splice(1,0,p),a=-1;const E=[];for(;++a<s.length;){for(f=s[a],p=u[a],l=-1,m=[];++l<b;)d=f[l]||"",g="",y="",!1!==r.alignDelimiters&&(h=c[l]-(p[l]||0),v=o[l],114===v?g=" ".repeat(h):99===v?h%2?(g=" ".repeat(h/2+.5),y=" ".repeat(h/2-.5)):(g=" ".repeat(h/2),y=g):y=" ".repeat(h)),!1===r.delimiterStart||l||m.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===d||!1===r.delimiterStart&&!l||m.push(" "),!1!==r.alignDelimiters&&m.push(g),m.push(d),!1!==r.alignDelimiters&&m.push(y),!1!==r.padding&&m.push(" "),!1===r.delimiterEnd&&l===b-1||m.push("|");E.push(!1===r.delimiterEnd?m.join("").replace(/ +$/,""):m.join(""))}return E.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function u(e,t){const r=e.children;let n=-1;const i=[],o=t.enter("tableRow");for(;++n<r.length;)i[n]=a(r[n],0,t);return o(),i}}function Fe(e,t,r){const n=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let i=r.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let o=i.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const a=r.enter("listItem"),s=(0,ae.Q)((0,oe.K)(e,r),(function(e,t,r){if(t)return(r?"":" ".repeat(o))+e;return(r?i:i+" ".repeat(o-i.length))+e}));return a(),s}const Ce={exit:{taskListCheckValueChecked:Oe,taskListCheckValueUnchecked:Oe,paragraph:function(e){const t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,i=r.children[0];let o,a=-1;if(t&&"listItem"===t.type&&"boolean"==typeof t.checked&&i&&"text"===i.type){for(;++a<n.length;){const e=n[a];if("paragraph"===e.type){o=e;break}}o===r&&(i.value=i.value.slice(1),0===i.value.length?r.children.shift():(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}this.exit(e)}}},Pe={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r){const n=e.children[0];let i=Fe(e,t,r);"boolean"==typeof e.checked&&n&&"paragraph"===n.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}};function Oe(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Te(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return(0,n.W)([d,{document:{91:{tokenize:O,continuation:{tokenize:T},exit:j}},text:{91:{tokenize:P},93:{add:"after",tokenize:F,resolveTo:C}}},L(e),N,z])}(e)),r("fromMarkdownExtensions",[X,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,A.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()},gfmFootnoteCall:function(e){this.exit(e)},gfmFootnoteCallString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,A.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()}}},de,xe,Ce]),r("toMarkdownExtensions",function(e){return{extensions:[Z,pe(),me,De(e),Pe]}}(e))}},7265:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>le});var n={};r.r(n),r.d(n,{attentionMarkers:()=>Y,contentInitial:()=>V,disable:()=>X,document:()=>q,flow:()=>G,flowInitial:()=>H,insideSpan:()=>K,string:()=>W,text:()=>Q});var i=r(8717),o=r(4666),a=r(4014),s=r(488);const u={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),(0,a.factorySpace)(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):(0,s.markdownLineEnding)(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};var c=r(8300);const l={tokenize:function(e){const t=this,r=[];let n,i,o,a=0;return u;function u(n){if(a<r.length){const i=r[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,p)(n)}return p(n)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&w();const r=t.events.length;let i,o=r;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}E(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return(0,c.d)(t.events,o+1,0,t.events.slice(r)),t.events.length=s,p(e)}return u(e)}function p(i){if(a===r.length){if(!n)return m(i);if(n.currentConstruct&&n.currentConstruct.concrete)return y(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(f,h,d)(i)}function h(e){return n&&w(),E(a),m(e)}function d(e){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,y(e)}function m(r){return t.containerState={},e.attempt(f,g,y)(r)}function g(e){return a++,r.push([t.currentConstruct,t.containerState]),m(e)}function y(r){return null===r?(n&&w(),E(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),v(r))}function v(r){return null===r?(b(e.exit("chunkFlow"),!0),E(0),void e.consume(r)):(0,s.markdownLineEnding)(r)?(e.consume(r),b(e.exit("chunkFlow")),a=0,t.interrupt=void 0,u):(e.consume(r),v)}function b(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<o&&(!n.events[e][1].end||n.events[e][1].end.offset>o))return;const r=t.events.length;let i,s,u=r;for(;u--;)if("exit"===t.events[u][0]&&"chunkFlow"===t.events[u][1].type){if(i){s=t.events[u][1].end;break}i=!0}for(E(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;(0,c.d)(t.events,u+1,0,t.events.slice(r)),t.events.length=e}}function E(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function w(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},f={tokenize:function(e,t,r){return(0,a.factorySpace)(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var p=r(2929),h=r(6814);const d={tokenize:function(e){const t=this,r=e.attempt(p.w,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,(0,a.factorySpace)(e,e.attempt(this.parser.constructs.flow,n,e.attempt(h.k,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const m={resolveAll:b()},g=v("string"),y=v("text");function v(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,o,a);return o;function o(e){return u(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function u(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:b("text"===e?E:void 0)}}function b(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function E(e,t){let r=-1;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let o,a=i.length,s=-1,u=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)u++,s--;if(s)break;s=-1}else if(-2===e)o=!0,u++;else if(-1!==e){a++;break}}if(u){const i={type:r===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-u,offset:n.end.offset-u,_index:n.start._index+a,_bufferIndex:a?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},i.start),n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}var w=r(3879);function x(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],u=[],l=!0;const f={consume:function(e){(0,s.markdownLineEnding)(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,S()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++));p.previous=e,l=!0},enter:function(e,t){const r=t||{};return r.type=e,r.start=g(),p.events.push(["enter",r,p]),u.push(r),r},exit:function(e){const t=u.pop();return t.end=g(),p.events.push(["exit",t,p]),t},attempt:E((function(e,t){x(e,t.from)})),check:E(b),interrupt:E(b,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const o=e[r];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,n.push(a)}return n.join("")}(m(e),t)},now:g,defineSkip:function(e){i[e.line]=e.column,S()},write:function(e){if(a=(0,c.V)(a,e),y(),null!==a[a.length-1])return[];return x(t,0),p.events=(0,w.C)(o,p.events,p),p.events}};let h,d=t.tokenize.call(p,f);return t.resolveAll&&o.push(t),p;function m(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;r===i?a=[e[r].slice(n,o)]:(a=e.slice(r,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(e[i].slice(0,o)));return a}(a,e)}function g(){return Object.assign({},n)}function y(){let e;for(;n._index<a.length;){const t=a[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)v(t.charCodeAt(n._bufferIndex));else v(t)}}function v(e){l=void 0,h=e,d=d(e)}function b(e,t){t.restore()}function E(e,t){return function(r,i,o){let a,s,c,h;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return a=e,s=0,0===e.length?o:m(e[s])}function m(e){return function(r){h=function(){const e=g(),t=p.previous,r=p.currentConstruct,i=p.events.length,o=Array.from(u);return{restore:a,from:i};function a(){n=e,p.previous=t,p.currentConstruct=r,p.events.length=i,u=o,S()}}(),c=e,e.partial||(p.currentConstruct=e);if(e.name&&p.parser.constructs.disable.null.includes(e.name))return v(r);return e.tokenize.call(t?Object.assign(Object.create(p),t):p,f,y,v)(r)}}function y(t){return l=!0,e(c,h),i}function v(e){return l=!0,h.restore(),++s<a.length?m(a[s]):o}}}function x(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&(0,c.d)(p.events,t,p.events.length-t,e.resolve(p.events.slice(t),p)),e.resolveTo&&(p.events=e.resolveTo(p.events,p))}function S(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}var S=r(4618),k=r(7207),A=r(4882),D=r(2535),F=r(5528),C=r(8038),P=r(6263),O=r(5198),T=r(4897),j=r(2810),_=r(1687),I=r(890),R=r(5365),L=r(8415),N=r(7444),M=r(5890),B=r(5856),z=r(6100),U=r(8966),$=r(5180);const q={42:S.p,43:S.p,45:S.p,48:S.p,49:S.p,50:S.p,51:S.p,52:S.p,53:S.p,54:S.p,55:S.p,56:S.p,57:S.p,62:k.m},V={91:A.D},H={[-2]:D.S,[-1]:D.S,32:D.S},G={35:F.Z,42:C.C,45:[P.C,C.C],60:O.P,61:P.C,95:C.C,96:T._,126:T._},W={38:j.u,92:_.L},Q={[-5]:I.g,[-4]:I.g,[-3]:I.g,33:R.C,38:j.u,42:L.v,60:[N.j,M.L],91:B.F,92:[z.R,_.L],93:U.Z,95:L.v,96:$.h},K={null:[L.v,m]},Y={null:[42,95]},X={null:[]};const Z=/[\0\t\n\r]/g;var J=r(2988);var ee=r(8031),te=r(2116),re=r(2493),ne=r(9477),ie=r(1513);const oe={}.hasOwnProperty,ae=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e={}){const t=se({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(pe),autolinkProtocol:P,autolinkEmail:P,atxHeading:c(ae),blockQuote:c(K),characterEscape:P,characterReference:P,codeFenced:c(Y),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:c(Y,l),codeText:c(X,l),codeTextData:P,data:P,codeFlowValue:P,definition:c(Z),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:c(J),hardBreakEscape:c(ue),hardBreakTrailing:c(ue),htmlFlow:c(le,l),htmlFlowData:P,htmlText:c(le,l),htmlTextData:P,image:c(fe),label:l,link:c(pe),listItem:c(de),listItemValue:g,listOrdered:c(he,m),listUnordered:c(he),paragraph:c(me),reference:q,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:c(ae),strong:c(ge),thematicBreak:c(ve)},exit:{atxHeading:p(),atxHeadingSequence:A,autolink:p(),autolinkEmail:Q,autolinkProtocol:W,blockQuote:p(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:G,codeFenced:p(E),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:O,codeIndented:p(w),codeText:p(R),codeTextData:O,data:O,definition:p(),definitionDestinationString:k,definitionLabelString:x,definitionTitleString:S,emphasis:p(),hardBreakEscape:p(j),hardBreakTrailing:p(j),htmlFlow:p(_),htmlFlowData:O,htmlText:p(I),htmlTextData:O,image:p(N),label:B,labelText:M,lineEnding:T,link:p(L),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:V,resourceDestinationString:z,resourceTitleString:U,resource:$,setextHeading:p(C),setextHeadingLineSequence:F,setextHeadingText:D,strong:p(),thematicBreak:p()}},e.mdastExtensions||[]),r={};return n;function n(e){let r={type:"root",children:[]};const n=[],i=[],c={stack:[r],tokenStack:n,config:t,enter:f,exit:h,buffer:l,resume:d,setData:a,getData:s};let p=-1;for(;++p<e.length;)if("listOrdered"===e[p][1].type||"listUnordered"===e[p][1].type)if("enter"===e[p][0])i.push(p);else{p=o(e,i.pop(),p)}for(p=-1;++p<e.length;){const r=t[e[p][0]];oe.call(r,e[p][1].type)&&r[e[p][1].type].call(Object.assign({sliceSerialize:e[p][2].sliceSerialize},c),e[p][1])}if(n.length>0){const e=n[n.length-1];(e[1]||ce).call(c,void 0,e[0])}for(r.position={start:u(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:u(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function o(e,t,r){let n,i,o,a,s=t-1,u=-1,c=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?u++:u--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||a||u||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!u&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===u&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,o=void 0,a=!0)}}return e[t][1]._spread=c,r}function a(e,t){r[e]=t}function s(e){return r[e]}function u(e){return{line:e.line,column:e.column,offset:e.offset}}function c(e,t){return r;function r(r){f.call(this,e(r),r),t&&t.call(this,r)}}function l(){this.stack.push({type:"fragment",children:[]})}function f(e,t,r){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:u(t.start)},e}function p(e){return t;function t(t){e&&e.call(this,t),h.call(this,t)}}function h(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+(0,ie.y)({start:e.start,end:e.end})+"): it’s not open");if(n[0].type!==e.type)if(t)t.call(this,e,n[0]);else{(n[1]||ce).call(this,e,n[0])}return r.position.end=u(e.end),r}function d(){return(0,i.B)(this.stack.pop())}function m(){a("expectingFirstListItemValue",!0)}function g(e){if(s("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),a("expectingFirstListItemValue")}}function y(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function b(){s("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function E(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,re.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()}function S(){const e=this.resume();this.stack[this.stack.length-1].title=e}function k(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function D(){a("setextHeadingSlurpLineEnding",!0)}function F(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){a("setextHeadingSlurpLineEnding")}function P(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=ye(),r.position={start:u(e.start)},t.children.push(r)),this.stack.push(r)}function O(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=u(e.end)}function T(e){const r=this.stack[this.stack.length-1];if(s("atHardBreak")){return r.children[r.children.length-1].position.end=u(e.end),void a("atHardBreak")}!s("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(P.call(this,e),O.call(this,e))}function j(){a("atHardBreak",!0)}function _(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function L(){const e=this.stack[this.stack.length-1];s("inReference")?(e.type+="Reference",e.referenceType=s("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function N(){const e=this.stack[this.stack.length-1];s("inReference")?(e.type+="Reference",e.referenceType=s("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function M(e){const t=this.stack[this.stack.length-2],r=this.sliceSerialize(e);t.label=(0,te.v)(r),t.identifier=(0,re.normalizeIdentifier)(r).toLowerCase()}function B(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];a("inReference",!0),"link"===r.type?r.children=e.children:r.alt=t}function z(){const e=this.resume();this.stack[this.stack.length-1].url=e}function U(){const e=this.resume();this.stack[this.stack.length-1].title=e}function $(){a("inReference")}function q(){a("referenceType","collapsed")}function V(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,re.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase(),a("referenceType","full")}function H(e){a("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=s("characterReferenceType");let n;r?(n=(0,ee.o)(t,"characterReferenceMarkerNumeric"===r?10:16),a("characterReferenceType")):n=(0,ne.T)(t);const i=this.stack.pop();i.value+=n,i.position.end=u(e.end)}function W(e){O.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Q(e){O.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function K(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function X(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function ae(){return{type:"heading",depth:void 0,children:[]}}function ue(){return{type:"break"}}function le(){return{type:"html",value:""}}function fe(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function he(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function de(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}(r)(function(e){for(;!(0,J._)(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:(0,o.W)([n].concat(e.extensions||[])),content:r(u),document:r(l),flow:r(d),string:r(g),text:r(y)};return t;function r(e){return function(r){return x(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,o,a){const s=[];let u,c,l,f,p;for(i=r+i.toString(o),l=0,r="",n&&(65279===i.charCodeAt(0)&&l++,n=void 0);l<i.length;){if(Z.lastIndex=l,u=Z.exec(i),f=u&&void 0!==u.index?u.index:i.length,p=i.charCodeAt(f),!u){r=i.slice(l);break}if(10===p&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(i.slice(l,f)),t+=f-l),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function se(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?se(e,n):ue(e,n)}return e}function ue(e,t){let r;for(r in t)if(oe.call(t,r)){const n="canContainEols"===r||"transforms"===r,i=(oe.call(e,r)?e[r]:void 0)||(e[r]=n?[]:{}),o=t[r];o&&(n?e[r]=[...i,...o]:Object.assign(i,o))}}function ce(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+(0,ie.y)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,ie.y)({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+(0,ie.y)({start:t.start,end:t.end})+") is still open")}const le=function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return ae(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}},3085:(e,t,r)=>{"use strict";function n(e){if(e)throw e}r.r(t),r.d(t,{unified:()=>E});var i=r(8809),o=r(229);function a(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(o,...a){const s=e[++r];let u=-1;if(o)n(o);else{for(;++u<t.length;)null!==a[u]&&void 0!==a[u]||(a[u]=t[u]);t=a,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let a;n&&t.push(i);try{a=e(...t)}catch(e){const t=e;if(n&&r)throw t;return i(t)}n||(a instanceof Promise?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...n){r||(r=!0,t(e,...n))}function o(e){i(null,e)}}(s,i)(...a):n(null,...a)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}var u=r(1513);class c extends Error{constructor(e,t,r){var n,i=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};super(),"string"==typeof t&&(r=t,t=null),"string"==typeof r&&(-1===(n=r.indexOf(":"))?i[1]=r:(i[0]=r.slice(0,n),i[1]=r.slice(n+1))),t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=(0,u.y)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.line=o.start.line,this.column=o.start.column,this.source=i[0],this.ruleId=i[1],this.position=o,this.file,this.fatal,this.url,this.note}}c.prototype.file="",c.prototype.name="",c.prototype.reason="",c.prototype.message="",c.prototype.stack="",c.prototype.fatal=null,c.prototype.column=null,c.prototype.line=null,c.prototype.source=null,c.prototype.ruleId=null,c.prototype.position=null;const l={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');f(e);let r,n=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(r){n=o+1;break}}else i<0&&(r=!0,i=o+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(r){n=o+1;break}}else a<0&&(r=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));n===i?i=a:i<0&&(i=e.length);return e.slice(n,i)},dirname:function(e){if(f(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.charCodeAt(0)?"/":".":1===r&&47===e.charCodeAt(0)?"//":e.slice(0,r)},extname:function(e){f(e);let t,r=e.length,n=-1,i=0,o=-1,a=0;for(;r--;){const s=e.charCodeAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?o<0?o=r:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=r+1;break}}if(o<0||n<0||0===a||1===a&&o===n-1&&o===i+1)return"";return e.slice(o,n)},join:function(...e){let t,r=-1;for(;++r<e.length;)f(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){f(e);const t=47===e.charCodeAt(0);let r=function(e,t){let r,n,i="",o=0,a=-1,s=0,u=-1;for(;++u<=e.length;){if(u<e.length)r=e.charCodeAt(u);else{if(47===r)break;r=47}if(47===r){if(a===u-1||1===s);else if(a!==u-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if(n=i.lastIndexOf("/"),n!==i.length-1){n<0?(i="",o=0):(i=i.slice(0,n),o=i.length-1-i.lastIndexOf("/")),a=u,s=0;continue}}else if(i.length>0){i="",o=0,a=u,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,u):i=e.slice(a+1,u),o=u-a-1;a=u,s=0}else 46===r&&s>-1?s++:s=-1}return i}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.charCodeAt(e.length-1)&&(r+="/");return t?"/"+r:r}(t)},sep:"/"};function f(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const p={cwd:function(){return"/"}};function h(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function d(e){if("string"==typeof e)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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let r=-1;for(;++r<t.length;)if(37===t.charCodeAt(r)&&50===t.charCodeAt(r+1)){const e=t.charCodeAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const m=["history","path","basename","stem","extname","dirname"];class g{constructor(e){let t;t=e?"string"==typeof e||i(e)?{value:e}:h(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=p.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<m.length;){const e=m[n];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)m.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){h(e)&&(e=d(e)),v(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?l.dirname(this.path):void 0}set dirname(e){b(this.basename,"dirname"),this.path=l.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?l.basename(this.path):void 0}set basename(e){v(e,"basename"),y(e,"basename"),this.path=l.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?l.extname(this.path):void 0}set extname(e){if(y(e,"extname"),b(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=l.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?l.basename(this.path,this.extname):void 0}set stem(e){v(e,"stem"),y(e,"stem"),this.path=l.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,r){const n=new c(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function y(e,t){if(e&&e.includes(l.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+l.sep+"`")}function v(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function b(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const E=function e(){const t=s(),r=[];let u,c={},l=-1;return f.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(A("data",u),c[e]=t,f):w.call(c,e)&&c[e]||null;if(e)return A("data",u),c=e,f;return c},f.Parser=void 0,f.Compiler=void 0,f.freeze=function(){if(u)return f;for(;++l<r.length;){const[e,...n]=r[l];if(!1===n[0])continue;!0===n[0]&&(n[1]=void 0);const i=e.call(f,...n);"function"==typeof i&&t.use(i)}return u=!0,l=Number.POSITIVE_INFINITY,f},f.attachers=r,f.use=function(e,...t){let n;if(A("use",u),null==e);else if("function"==typeof e)p(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}n&&(c.settings=Object.assign(c.settings||{},n));return f;function i(e){if("function"==typeof e)p(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;p(t,...r)}else s(e)}}function s(e){l(e.plugins),e.settings&&(n=Object.assign(n||{},e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function p(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(a(n[1])&&a(t)&&(t=o(!0,n[1],t)),n[1]=t):r.push([...arguments])}},f.parse=function(e){f.freeze();const t=C(e),r=f.Parser;if(S("parse",r),x(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},f.stringify=function(e,t){f.freeze();const r=C(t),n=f.Compiler;if(k("stringify",n),D(e),x(n,"compile"))return new n(e,r).compile();return n(e,r)},f.run=function(e,r,n){D(e),f.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,o){function a(t,r,a){r=r||e,t?o(t):i?i(r):n(null,r,a)}t.run(e,C(r),a)}i(null,n)},f.runSync=function(e,t){let r,i;return f.run(e,t,o),F("runSync","run",i),r;function o(e,t){n(e),r=t,i=!0}},f.process=function(e,t){if(f.freeze(),S("process",f.Parser),k("process",f.Compiler),!t)return new Promise(r);function r(r,n){const o=C(e);function a(e,i){e||!i?n(e):r?r(i):t(null,i)}f.run(f.parse(o),o,((e,t,r)=>{if(!e&&t&&r){const n=f.stringify(t,r);null==n||(!function(e){return"string"==typeof e||i(e)}(n)?r.result=n:r.value=n),a(e,r)}else a(e)}))}r(null,t)},f.processSync=function(e){let t;f.freeze(),S("processSync",f.Parser),k("processSync",f.Compiler);const r=C(e);return f.process(r,i),F("processSync","process",t),r;function i(e){t=!0,n(e)}},f;function f(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(o(!0,{},c)),t}}().freeze(),w={}.hasOwnProperty;function x(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(w.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function S(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function k(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function A(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 D(e){if(!a(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function F(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function C(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new g(e)}},213:(e,t,r)=>{"use strict";r.r(t),r.d(t,{is:()=>n,convert:()=>i});const n=function e(t,r,n,o,a){const s=i(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==o||e(o)&&o.children))throw new Error("Expected parent node");if(null==o!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(s.call(a,t,n,o))},i=function(e){if(null==e)return a;if("string"==typeof e)return function(e){return o(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=i(e[r]);return o(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return o(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return o(e);throw new Error("Expected function, string, or object as test")};function o(e){return function(...t){return Boolean(e.call(this,...t))}}function a(){return!0}},4249:(e,t,r)=>{"use strict";r.r(t),r.d(t,{matches:()=>I,select:()=>R,selectAll:()=>L});var n={}.hasOwnProperty;function i(e,t){var r=t||{};function i(t){var r=i.invalid,o=i.handlers;if(t&&n.call(t,e)&&(r=n.call(o,t[e])?o[t[e]]:i.unknown),r)return r.apply(this,arguments)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}function o(e){return Array.isArray(e.children)}const a={}.hasOwnProperty,s=i("nestingOperator",{unknown:function(e){throw new Error("Unexpected nesting `"+e.nestingOperator+"`")},invalid:function(e,t,r,n,i){if(n)throw new Error("topScan is supposed to be called from the root node");if(!i.iterator)throw new Error("Expected `iterator` to be defined");if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");i.iterator(e,t,r,n,i),i.shallow||u(e,t,r,n,i)},handlers:{null:u,">":c,"+":function(e,t,r,n,i){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new l(e,n,i).prefillTypeIndex(0,++r).each(r,++r).prefillTypeIndex(r).done()},"~":function(e,t,r,n,i){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new l(e,n,i).prefillTypeIndex(0,++r).each(r).done()}}});function u(e,t,r,n,i){if(!i.iterator)throw new Error("Expected `iterator` to be defined");const o=i.iterator;i.iterator=function e(t,r,n,i,a){if(a.iterator=o,o(t,r,n,i,a),a.iterator=e,a.one&&a.found)return;c(t,r,n,i,a)},c(e,t,r,n,i)}function c(e,t,r,n,i){o(t)&&0!==t.children.length&&new l(e,t,i).each().done()}class l{constructor(e,t,r){this.query=e,this.parent=t,this.state=r,this.typeIndex=r.index?new f:void 0,this.delayed=[]}prefillTypeIndex(e,t){let[r,n]=this.defaults(e,t);if(this.typeIndex)for(;r<n;)this.typeIndex.index(this.parent.children[r]),r++;return this}each(e,t){const[r,n]=this.defaults(e,t),i=this.parent.children[r];let o,a;if(r>=n)return this;if(this.typeIndex)a=this.typeIndex.nodes,o=this.typeIndex.index(i),this.delayed.push((function(){if(!this.typeIndex)throw new TypeError("Expected `typeIndex` to be defined");if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.typeIndex=o,this.state.nodeIndex=a,this.state.typeCount=this.typeIndex.count(i),this.state.nodeCount=this.typeIndex.nodes,this.state.iterator(this.query,i,r,this.parent,this.state)}));else{if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.iterator(this.query,i,r,this.parent,this.state)}return this.state.one&&this.state.found?this:this.each(r+1,n)}done(){let e=-1;for(;++e<this.delayed.length&&(this.delayed[e].call(this),!this.state.one||!this.state.found););return this}defaults(e,t){return(null==e||e<0)&&(e=0),(null==t||t>this.parent.children.length)&&(t=this.parent.children.length),[e,t]}}class f{constructor(){this.counts={},this.nodes=0}index(e){const t=e.type;return this.nodes++,a.call(this.counts,t)||(this.counts[t]=0),this.counts[t]++}count(e){return this.counts[e.type]}}const p=(0,r(213).convert)(),h=i("name",{unknown:function(e){if(e.name)throw new Error("Unknown pseudo-selector `"+e.name+"`");throw new Error("Unexpected pseudo-element or empty pseudo-class")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{any:m,blank:g,empty:g,"first-child":function(e,t,r,n,i){return y(i,e),0===i.nodeIndex},"first-of-type":function(e,t,r,n,i){return y(i,e),0===i.typeIndex},has:function(e,t,r,n,i){const o=i.shallow,a=i.one,s=i.scopeNodes,u=function(e){const t="ruleSet"===e.type?{type:"selectors",selectors:[e]}:e;let r,n=-1;for(;++n<t.selectors.length;)r=t.selectors[n].rule,r.nestingOperator=null,r.pseudos&&1===r.pseudos.length&&"scope"===r.pseudos[0].name||(t.selectors[n]={type:"ruleSet",rule:{type:"rule",rule:r,pseudos:[{name:"scope"}]}});return t}(e.value),c=i.any;i.shallow=!1,i.one=!0,i.scopeNodes=[t];const l=Boolean(c(u,t,i)[0]);return i.shallow=o,i.one=a,i.scopeNodes=s,l},"last-child":function(e,t,r,n,i){return y(i,e),"number"==typeof i.nodeCount&&i.nodeIndex===i.nodeCount-1},"last-of-type":function(e,t,r,n,i){return y(i,e),"number"==typeof i.typeCount&&i.typeIndex===i.typeCount-1},matches:m,not:function(e,t,r,n,i){return!m(e,t,r,n,i)},"nth-child":function(e,t,r,n,i){return y(i,e),"number"==typeof i.nodeIndex&&e.value(i.nodeIndex)},"nth-last-child":function(e,t,r,n,i){return y(i,e),"number"==typeof i.nodeCount&&"number"==typeof i.nodeIndex&&e.value(i.nodeCount-i.nodeIndex-1)},"nth-of-type":function(e,t,r,n,i){return y(i,e),"number"==typeof i.typeIndex&&e.value(i.typeIndex)},"nth-last-of-type":function(e,t,r,n,i){return y(i,e),"number"==typeof i.typeIndex&&"number"==typeof i.typeCount&&e.value(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,r,n,i){return y(i,e),1===i.nodeCount},"only-of-type":function(e,t,r,n,i){return y(i,e),1===i.typeCount},root:function(e,t,r,n){return p(t)&&!n},scope:function(e,t,r,n,i){return p(t)&&void 0!==i.scopeNodes&&i.scopeNodes.includes(t)}}});function d(e,t,r,n,i){const o=e.pseudos;let a=-1;for(;++a<o.length;)if(!h(o[a],t,r,n,i))return!1;return!0}function m(e,t,r,n,i){const o=i.shallow,a=i.one;i.one=!0,i.shallow=!0;const s=i.any(e.value,t,i)[0]===t;return i.shallow=o,i.one=a,s}function g(e,t){return o(t)?0===t.children.length:!("value"in t)}function y(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}d.needsIndex=["first-child","first-of-type","last-child","last-of-type","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];const v=i("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:b,handlers:{"=":function(e,t){return b(e,t)&&String(t[e.name])===e.value},"^=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(0,e.value.length)===e.value},"$=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(-e.value.length)===e.value},"*=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.includes(e.value)},"~=":function(e,t){const r=t[e.name];if(null==r)return!1;if(Array.isArray(r)&&r.includes(e.value))return!0;return String(r)===e.value}}});function b(e,t){return null!==t[e.name]&&void 0!==t[e.name]}function E(e,t,r,n,i){if(e.id)throw new Error("Invalid selector: id");if(e.classNames)throw new Error("Invalid selector: class");return Boolean(t&&(!e.tagName||function(e,t){return"*"===e.tagName||e.tagName===t.type}(e,t))&&(!e.attrs||function(e,t){let r=-1;for(;++r<e.attrs.length;)if(!v(e.attrs[r],t))return!1;return!0}(e,t))&&(!e.pseudos||d(e,t,r,n,i)))}const w=i("type",{unknown:function(e){throw new Error("Unknown type `"+e.type+"`")},invalid:function(){throw new Error("Invalid type")},handlers:{selectors:function(e,t,r){const n=D(r.one);let i=-1;for(;++i<e.selectors.length;)n(S(e.selectors[i],t,r));return n.result},ruleSet:S,rule:k}});function x(e,t,r){return e&&t?w(e,t,r):[]}function S(e,t,r){return k(e.rule,t,r)}function k(e,t,r){const n=D(r.one);if(r.shallow&&e.rule)throw new Error("Expected selector without nesting");var i;return s(e,t,0,null,A(e,{scopeNodes:(i=t,"RootNode"===i.type||"root"===i.type?t.children:[t]),index:!1,iterator:function(e,t,r,i,o){E(e,t,r,i,o)&&(e.rule?s(e.rule,t,r,i,A(e.rule,o)):(n(t),o.found=!0))},one:r.one,shallow:r.shallow,any:r.any})),n.result}function A(e,t){const r=e.pseudos||[];let n=-1;for(;++n<r.length;)if(d.needsIndex.includes(r[n].name)){t.index=!0;break}return t}function D(e){const t=[];let r;return n.result=t,n;function n(e){let t=-1;if("length"in e)for(;++t<e.length;)i(e[t]);else i(e)}function i(n){if(e){if(r)throw new Error("Cannot collect multiple nodes");r=!0}t.includes(n)||t.push(n)}}var F=r(301);const C=r(364).ZP,P=new Set(["nth-child","nth-last-child","nth-of-type","nth-last-of-type"]),O=new F.N;O.registerAttrEqualityMods("~","^","$","*"),O.registerSelectorPseudos("any","matches","not","has"),O.registerNestingOperators(">","+","~");const T=i("type",{handlers:{selectors:function(e){const t=e.selectors;let r=-1;for(;++r<t.length;)T(t[r]);return e},ruleSet:function(e){return _(e.rule)},rule:_}});function j(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return T(O.parse(e))}function _(e){const t=e.pseudos||[];let r,n=-1;for(;++n<t.length;)r=t[n],P.has(r.name)&&(r.value=C(r.value),r.valueType="function");return T(e.rule),e}function I(e,t){return Boolean(x(j(e),t,{one:!0,shallow:!0,any:x})[0])}function R(e,t){return x(j(e),t,{one:!0,any:x})[0]||null}function L(e,t){return x(j(e),t,{any:x})}},1513:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n={}.hasOwnProperty;function i(e){return e&&"object"==typeof e?n.call(e,"position")||n.call(e,"type")?a(e.position):n.call(e,"start")||n.call(e,"end")?a(e):n.call(e,"line")||n.call(e,"column")?o(e):"":""}function o(e){return s(e&&e.line)+":"+s(e&&e.column)}function a(e){return o(e&&e.start)+"-"+o(e&&e.end)}function s(e){return e&&"number"==typeof e?e:1}},7918:(e,t,r)=>{"use strict";r.d(t,{S4:()=>i});var n=r(213);const i=function(e,t,r,i){"function"==typeof t&&"function"!=typeof r&&(i=r,r=t,t=null);var o=(0,n.convert)(t),a=i?-1:1;!function e(n,s,u){var c,l="object"==typeof n&&null!==n?n:{};"string"==typeof l.type&&(c="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(f,"name",{value:"node ("+l.type+(c?"<"+c+">":"")+")"}));return f;function f(){var c,l,f,p=[];if((!t||o(n,s,u[u.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(n,u)),false===p[0]))return p;if(n.children&&"skip"!==p[0])for(l=(i?n.children.length:-1)+a,f=u.concat(n);l>-1&&l<n.children.length;){if(c=e(n.children[l],l,f)(),false===c[0])return c;l="number"==typeof c[1]?c[1]:l+a}return p}}(e,null,[])()}},3428:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONTINUE:()=>n.dR,SKIP:()=>n.AM,EXIT:()=>n.BK,visit:()=>i});var n=r(3339);const i=function(e,t,r,i){"function"==typeof t&&"function"!=typeof r&&(i=r,r=t,t=null),(0,n.S4)(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),i)}},3339:(e,t,r)=>{"use strict";r.d(t,{dR:()=>i,BK:()=>a,AM:()=>o,S4:()=>s});var n=r(213);const i=!0,o="skip",a=!1,s=function(e,t,r,s){"function"==typeof t&&"function"!=typeof r&&(s=r,r=t,t=null);const u=(0,n.convert)(t),c=s?-1:1;!function e(n,l,f){const p="object"==typeof n&&null!==n?n:{};let h;"string"==typeof p.type&&(h="string"==typeof p.tagName?p.tagName:"string"==typeof p.name?p.name:void 0,Object.defineProperty(d,"name",{value:"node ("+p.type+(h?"<"+h+">":"")+")"}));return d;function d(){let p,h,d,m=[];if((!t||u(n,l,f[f.length-1]||null))&&(m=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[i,e];return[e]}(r(n,f)),m[0]===a))return m;if(n.children&&m[0]!==o)for(h=(s?n.children.length:-1)+c,d=f.concat(n);h>-1&&h<n.children.length;){if(p=e(n.children[h],h,d)(),p[0]===a)return p;h="number"==typeof p[1]?p[1]:h+c}return m}}(e,null,[])()}},3633:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},4222:e=>{"use strict";e.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}')},9354:e=>{"use strict";e.exports=JSON.parse('["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]')}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,a.d(i,o),i},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+"-"+{7:"774184",267:"58e681"}[e]+".js",a.miniCssF=e=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@topwrite/reader:",a.l=(e,t,i,o)=>{if(r[e])r[e].push(t);else{var s,u;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var f=c[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+i){s=f;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",n+i),s.src=e),r[e]=[t];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var i=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),u&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={826:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,i,[o,s,u]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(u)u(a)}for(t&&t(r);c<o.length;c++)i=o[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunk_topwrite_reader=self.webpackChunk_topwrite_reader||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var s={};(()=>{"use strict";a.r(s),a.d(s,{Anchor:()=>ic,Article:()=>pc,BaseConfig:()=>t.l_,Book:()=>t.fy,Breadcrumb:()=>Ec,Catalog:()=>bc,CatalogItems:()=>gc,Config:()=>t.De,File:()=>t.$B,Helmet:()=>Vo,InjectedComponent:()=>gs,InjectedComponentSet:()=>ys,IntlContext:()=>Je,LetterAvatar:()=>t.$q,Level:()=>t.aC,Link:()=>tc,Logo:()=>ec,Markdown:()=>lc,Model:()=>Be,Plugin:()=>Gs,PoweredBy:()=>Ju,Summary:()=>t.ER,SummaryArticle:()=>t.oI,SummaryPart:()=>t.Lj,ToFirstArticle:()=>wc,VERSION:()=>yu,aes:()=>t.rK,base64:()=>mu,bootstrap:()=>Ku,createApplication:()=>Bs,createComponentDescriptor:()=>bs,createGlobalStyle:()=>Yi,createStorageSlot:()=>xs,css:()=>Ii,getPayload:()=>du,getPublicPath:()=>Hs,history:()=>Ou,isEncryptedData:()=>t.oe,isMac:()=>gu,isUrl:()=>t.CB,keyframes:()=>Xi,listStorageKeys:()=>Ss,loadjs:()=>Qe(),markdown:()=>t.JH,pluginCenter:()=>t.YB,request:()=>t.WY,styled:()=>Zi,useActions:()=>zs,useArticle:()=>Lu,useAsync:()=>ls,useAsyncCallback:()=>fs,useAsyncEffect:()=>qs,useAsyncFetchMore:()=>ps,useBook:()=>ks,useDebounce:()=>lu,useDocumentTitle:()=>cu,useEventTarget:()=>hu,useFile:()=>Bu,useHotkeys:()=>rs,useIntl:()=>vn,useLockBodyScroll:()=>Zu,useLogo:()=>$u,useModel:()=>$s,useNextArticle:()=>Nu,useOptions:()=>fu,usePrevArticle:()=>Mu,usePrevious:()=>uu,useSelector:()=>Us,useStateWithCallback:()=>Vs,useThemeConfig:()=>As,useThemeContext:()=>Ts,useTitle:()=>Iu,useWindowSize:()=>Xu,windowSizes:()=>Yu});var e={};a.r(e),a.d(e,{book:()=>Tu,page:()=>ju,search:()=>_u}),Date.prototype.format=function(e){const t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(const r in t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e};var t=a(3440),r=a(4760),n=a(4246),i=a(7363),o=a.n(i);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",h=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+h(),REPLACE:"@@redux/REPLACE"+h(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+h()}};function m(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function g(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(f(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(f(1));return r(g)(e,t)}if("function"!=typeof e)throw new Error(f(2));var i=e,o=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function l(){if(u)throw new Error(f(3));return o}function h(e){if("function"!=typeof e)throw new Error(f(4));if(u)throw new Error(f(5));var t=!0;return c(),s.push(e),function(){if(t){if(u)throw new Error(f(6));t=!1,c();var r=s.indexOf(e);s.splice(r,1),a=null}}}function y(e){if(!m(e))throw new Error(f(7));if(void 0===e.type)throw new Error(f(8));if(u)throw new Error(f(9));try{u=!0,o=i(o,e)}finally{u=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}function v(e){if("function"!=typeof e)throw new Error(f(10));i=e,y({type:d.REPLACE})}function b(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(f(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[p]=function(){return this},e}return y({type:d.INIT}),(n={dispatch:y,subscribe:h,getState:l,replaceReducer:v})[p]=b,n}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(f(15))},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return n=y.apply(void 0,o)(r.dispatch),l(l({},r),{},{dispatch:n})}}}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function w(e){return!!e&&!!e[ue]}function x(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&Function.toString.call(r)===ce}(e)||Array.isArray(e)||!!e[se]||!!e.constructor[se]||P(e)||O(e))}function S(e,t,r){void 0===r&&(r=!1),0===k(e)?(r?Object.keys:le)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function k(e){var t=e[ue];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:P(e)?2:O(e)?3:0}function A(e,t){return 2===k(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function D(e,t){return 2===k(e)?e.get(t):e[t]}function F(e,t,r){var n=k(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function C(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function P(e){return ne&&e instanceof Map}function O(e){return ie&&e instanceof Set}function T(e){return e.o||e.t}function j(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=fe(e);delete t[ue];for(var r=le(t),n=0;n<r.length;n++){var i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function _(e,t){return void 0===t&&(t=!1),R(e)||w(e)||!x(e)||(k(e)>1&&(e.set=e.add=e.clear=e.delete=I),Object.freeze(e),t&&S(e,(function(e,t){return _(t,!0)}),!0)),e}function I(){E(2)}function R(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function L(e){var t=pe[e];return t||E(18,e),t}function N(){return te}function M(e,t){t&&(L("Patches"),e.u=[],e.s=[],e.v=t)}function B(e){z(e),e.p.forEach($),e.p=null}function z(e){e===te&&(te=e.l)}function U(e){return te={p:[],l:te,h:e,m:!0,_:0}}function $(e){var t=e[ue];0===t.i||1===t.i?t.j():t.g=!0}function q(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.O||L("ES5").S(t,e,n),n?(r[ue].P&&(B(t),E(4)),x(e)&&(e=V(t,e),t.l||G(t,e)),t.u&&L("Patches").M(r[ue],e,t.u,t.s)):e=V(t,r,[]),B(t),t.u&&t.v(t.u,t.s),e!==ae?e:void 0}function V(e,t,r){if(R(t))return t;var n=t[ue];if(!n)return S(t,(function(i,o){return H(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return G(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=j(n.k):n.o;S(3===n.i?new Set(i):i,(function(t,o){return H(e,n,i,t,o,r)})),G(e,i,!1),r&&e.u&&L("Patches").R(n,r,e.u,e.s)}return n.o}function H(e,t,r,n,i,o){if(w(i)){var a=V(e,i,o&&t&&3!==t.i&&!A(t.D,n)?o.concat(n):void 0);if(F(r,n,a),!w(a))return;e.m=!1}if(x(i)&&!R(i)){if(!e.h.F&&e._<1)return;V(e,i),t&&t.A.l||G(e,i)}}function G(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&_(t,r)}function W(e,t){var r=e[ue];return(r?T(r):e)[t]}function Q(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function K(e){e.P||(e.P=!0,e.l&&K(e.l))}function Y(e){e.o||(e.o=j(e.t))}function X(e,t,r){var n=P(t)?L("MapSet").N(t,r):O(t)?L("MapSet").T(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:N(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=he;r&&(i=[n],o=de);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return n.k=u,n.j=s,u}(t,r):L("ES5").J(t,r);return(r?r.A:N()).p.push(n),n}function Z(e){return w(e)||E(22,e),function e(t){if(!x(t))return t;var r,n=t[ue],i=k(t);if(n){if(!n.P&&(n.i<4||!L("ES5").K(n)))return n.t;n.I=!0,r=J(t,i),n.I=!1}else r=J(t,i);return S(r,(function(t,i){n&&D(n.t,t)===i||F(r,t,e(i))})),3===i?new Set(r):r}(e)}function J(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return j(e)}var ee,te,re="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ne="undefined"!=typeof Map,ie="undefined"!=typeof Set,oe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ae=re?Symbol.for("immer-nothing"):((ee={})["immer-nothing"]=!0,ee),se=re?Symbol.for("immer-draftable"):"__$immer_draftable",ue=re?Symbol.for("immer-state"):"__$immer_state",ce=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),le="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,fe=Object.getOwnPropertyDescriptors||function(e){var t={};return le(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},pe={},he={get:function(e,t){if(t===ue)return e;var r=T(e);if(!A(r,t))return function(e,t,r){var n,i=Q(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!x(n)?n:n===W(e.t,t)?(Y(e),e.o[t]=X(e.A.h,n,e)):n},has:function(e,t){return t in T(e)},ownKeys:function(e){return Reflect.ownKeys(T(e))},set:function(e,t,r){var n=Q(T(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=W(T(e),t),o=null==i?void 0:i[ue];if(o&&o.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(C(r,i)&&(void 0!==r||A(e.t,t)))return!0;Y(e),K(e)}return e.o[t]===r&&"number"!=typeof r||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==W(e.t,t)||t in e.t?(e.D[t]=!1,Y(e),K(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=T(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){E(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){E(12)}},de={};S(he,(function(e,t){de[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),de.deleteProperty=function(e,t){return he.deleteProperty.call(this,e[0],t)},de.set=function(e,t,r){return he.set.call(this,e[0],t,r,e[0])};var me=function(){function e(e){var t=this;this.O=oe,this.F=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var i=r;r=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(a))}))}}var a;if("function"!=typeof r&&E(6),void 0!==n&&"function"!=typeof n&&E(7),x(e)){var s=U(t),u=X(t,e,void 0),c=!0;try{a=r(u),c=!1}finally{c?B(s):z(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return M(s,n),q(e,s)}),(function(e){throw B(s),e})):(M(s,n),q(a,s))}if(!e||"object"!=typeof e){if((a=r(e))===ae)return;return void 0===a&&(a=e),t.F&&_(a,!0),a}E(21,e)},this.produceWithPatches=function(e,r){return"function"==typeof e?function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,r,(function(e,t){n=e,i=t})),n,i];var n,i},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){x(e)||E(8),w(e)&&(e=Z(e));var t=U(this),r=X(this,e,void 0);return r[ue].C=!0,z(t),r},t.finishDraft=function(e,t){var r=(e&&e[ue]).A;return M(r,t),q(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!oe&&E(20),this.O=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var i=L("Patches").$;return w(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(r+1))}))},e}(),ge=new me,ye=ge.produce,ve=(ge.produceWithPatches.bind(ge),ge.setAutoFreeze.bind(ge));ge.setUseProxies.bind(ge),ge.applyPatches.bind(ge),ge.createDraft.bind(ge),ge.finishDraft.bind(ge);var be=a(2611),Ee=o().createContext(null);var we=function(e){e()},xe=function(){return we};var Se={notify:function(){},get:function(){return[]}};function ke(e,t){var r,n=Se;function i(){a.onStateChange&&a.onStateChange()}function o(){r||(r=t?t.addNestedSub(i):e.subscribe(i),n=function(){var e=xe(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(r)},trySubscribe:o,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=Se)},getListeners:function(){return n}};return a}var Ae="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;const De=function(e){var t=e.store,r=e.context,n=e.children,a=(0,i.useMemo)((function(){var e=ke(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=(0,i.useMemo)((function(){return t.getState()}),[t]);Ae((function(){var e=a.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,s]);var u=r||Ee;return o().createElement(u.Provider,{value:a},n)};var Fe=a(5839),Ce=a.n(Fe);a(9272);function Pe(){return(0,i.useContext)(Ee)}var Oe=function(e,t){return e===t};function Te(e){void 0===e&&(e=Ee);var t=e===Ee?Pe:function(){return(0,i.useContext)(e)};return function(e,r){void 0===r&&(r=Oe);var n=t(),o=function(e,t,r,n){var o,a=(0,i.useReducer)((function(e){return e+1}),0)[1],s=(0,i.useMemo)((function(){return ke(r,n)}),[r,n]),u=(0,i.useRef)(),c=(0,i.useRef)(),l=(0,i.useRef)(),f=(0,i.useRef)(),p=r.getState();try{if(e!==c.current||p!==l.current||u.current){var h=e(p);o=void 0!==f.current&&t(h,f.current)?f.current:h}else o=f.current}catch(e){throw u.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),e}return Ae((function(){c.current=e,l.current=p,f.current=o,u.current=void 0})),Ae((function(){function e(){try{var e=r.getState();if(e===l.current)return;var n=c.current(e);if(t(n,f.current))return;f.current=n,l.current=e}catch(e){u.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),o}(e,r,n.store,n.subscription);return(0,i.useDebugValue)(o),o}}var je=Te();const _e=ReactDOM;var Ie,Re=a.n(_e);Ie=_e.unstable_batchedUpdates,we=Ie;const Le="TYPE_SET_STATE",Ne="TYPE_GET_STATE";function Me(e){const t=Object.getPrototypeOf(e);return Object.getOwnPropertyNames(t).filter((e=>!["constructor","onAction","subscription"].includes(e)&&"function"==typeof t[e]&&!e.startsWith("_")))}class Be{constructor(){b(this,"initialState",void 0),b(this,"state",void 0)}*getState(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yield{type:Ne,payload:{models:t}}}setState(e){return{type:Le,payload:{fn:e}}}dispatch(e){}}function ze(e){return e&&"function"==typeof e.next&&"function"==typeof e.throw}ve(!1);const Ue=(e,t,r)=>{for(let n of e)t=n(t,r);return t},$e=(e,t)=>{for(let r in e){let n=e[r];e[r]=function(){let e=n(...arguments);if("function"==typeof e)return e(t)}}return e};function qe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const i={},o={},a={},s={},u={},c={};for(const r in e){const n=e[r];void 0!==n.initialState?"function"==typeof n.initialState?a[r]=n.initialState(t[r],t):a[r]=(0,be.merge)(n.initialState,t[r]):a[r]=t[r],o[r]={},n.onAction&&(c[r]=(e,t)=>n.onAction(e,t,s[r])),n.subscription&&(u[r]=n.subscription),n.dispatch=function(e){if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];s[r][e](...n)}};const l=Me(n);for(let e of l){const t=Object.getPrototypeOf(n)[e],a="".concat(r,"/").concat(e);o[r][e]=function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return async e=>{const{dispatch:s,getState:u}=e;let l=0;const f=Object.entries(c).filter((e=>{let[t]=e;return t!==r})).map((e=>{let[,t]=e;return t}));let p=Ue(f,t.bind(n),a)(...o);const h=async e=>{let t=await e.next();for(;!t.done;){let n,o;if(t.value instanceof Promise)try{n=await t.value}catch(e){o=e}else if(ze(t.value))try{n=await h(t.value)}catch(e){o=e}else{let e=t.value,o=e.payload;switch(e.type){case Ne:const e=u();n=o.models.length>0?o.models.length>1?o.models.map((t=>e[t])):e[o.models[0]]:e;break;case Le:let t="".concat(a,"/@@").concat(++l);i[t]=o.fn,s({type:t,name:r}),delete i[t]}}t=o?await e.throw(o):await e.next(n)}return t.value};await h(p)}}}}const l=function(e,t){return ye(e,(e=>{t.name&&i[t.type]&&("function"==typeof i[t.type]?e[t.name]=ye(e[t.name],i[t.type]):e[t.name]=i[t.type])}))},f=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||y,p=g(r(l),a,f(v(...n))),{getState:h}=p;for(let[e,t]of Object.entries(o))s[e]=$e(t,p);for(let t in u)u[t].call(e[t],s[t],h()[t]);return p.actions=s,p}const Ve=(0,i.createContext)({actions:{}});function He(e){let{store:t,children:r}=e;return(0,n.jsx)(Ve.Provider,{value:{actions:t.actions},children:(0,n.jsx)(De,{store:t,children:r})})}function Ge(e,t){return"string"==typeof e||Array.isArray(e)?je((t=>Array.isArray(e)?e:Array(e).reduce(((e,t)=>e[t]),t)),t):je(e,t)}var We=a(6051),Qe=a.n(We),Ke=a(8891);function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xe=i.createContext(null),Ze=(Xe.Consumer,Xe.Provider),Je=Xe;
53
+ !function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i<n;++i)t[i]=t[i].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function a(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",i="[0-9]",o=t(i,"[A-Fa-f]"),a=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",u=t("[\\:\\/\\?\\#\\[\\]\\@]",s),c=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,i,"[\\+\\-\\.]")+"*"),p=r(r(a+"|"+t(l,s,"[\\:]"))+"*"),h=(r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("[1-9]"+i)+"|"+i),r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i)),d=r(h+"\\."+h+"\\."+h+"\\."+h),m=r(o+"{1,4}"),g=r(r(m+"\\:"+m)+"|"+d),y=r(r(m+"\\:")+"{6}"+g),v=r("\\:\\:"+r(m+"\\:")+"{5}"+g),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+g),E=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+g),w=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+g),x=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+g),S=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+g),k=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),A=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),D=r([y,v,b,E,w,x,S,k,A].join("|")),F=r(r(l+"|"+a)+"+"),C=(r(D+"\\%25"+F),r(D+r("\\%25|\\%(?!"+o+"{2})")+F)),P=r("[vV]"+o+"+\\."+t(l,s,"[\\:]")+"+"),O=r("\\["+r(C+"|"+D+"|"+P)+"\\]"),T=r(r(a+"|"+t(l,s))+"*"),j=r(O+"|"+d+"(?!"+T+")|"+T),_=r(i+"*"),I=r(r(p+"@")+"?"+j+r("\\:"+_)+"?"),R=r(a+"|"+t(l,s,"[\\:\\@]")),L=r(R+"*"),N=r(R+"+"),M=r(r(a+"|"+t(l,s,"[\\@]"))+"+"),B=r(r("\\/"+L)+"*"),z=r("\\/"+r(N+B)+"?"),U=r(M+B),$=r(N+B),q="(?!"+R+")",V=(r(B+"|"+z+"|"+U+"|"+$+"|"+q),r(r(R+"|"+t("[\\/\\?]",c))+"*")),H=r(r(R+"|[\\/\\?]")+"*"),G=r(r("\\/\\/"+I+B)+"|"+z+"|"+$+"|"+q),W=r(f+"\\:"+G+r("\\?"+V)+"?"+r("\\#"+H)+"?"),Q=r(r("\\/\\/"+I+B)+"|"+z+"|"+U+"|"+q),K=r(Q+r("\\?"+V)+"?"+r("\\#"+H)+"?");return r(W+"|"+K),r(f+"\\:"+G+r("\\?"+V)+"?"),r(r("\\/\\/("+r("("+p+")@")+"?("+j+")"+r("\\:("+_+")")+"?)")+"?("+B+"|"+z+"|"+$+"|"+q+")"),r("\\?("+V+")"),r("\\#("+H+")"),r(r("\\/\\/("+r("("+p+")@")+"?("+j+")"+r("\\:("+_+")")+"?)")+"?("+B+"|"+z+"|"+U+"|"+q+")"),r("\\?("+V+")"),r("\\#("+H+")"),r(r("\\/\\/("+r("("+p+")@")+"?("+j+")"+r("\\:("+_+")")+"?)")+"?("+B+"|"+z+"|"+$+"|"+q+")"),r("\\?("+V+")"),r("\\#("+H+")"),r("("+p+")@"),r("\\:("+_+")"),{NOT_SCHEME:new RegExp(t("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,s),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,u),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+D+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+F+")")+"?\\]?$")}}var u=s(!1),c=s(!0),l=function(){function e(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},p=2147483647,h=36,d=1,m=26,g=38,y=700,v=72,b=128,E="-",w=/^xn--/,x=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=h-d,D=Math.floor,F=String.fromCharCode;function C(e){throw new RangeError(k[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function T(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t}var j=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:h},_=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},I=function(e,t,r){var n=0;for(e=r?D(e/y):e>>1,e+=D(e/t);e>A*m>>1;n+=h)e=D(e/A);return D(n+(A+1)*e/(e+g))},R=function(e){var t=[],r=e.length,n=0,i=b,o=v,a=e.lastIndexOf(E);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&C("not-basic"),t.push(e.charCodeAt(s));for(var u=a>0?a+1:0;u<r;){for(var c=n,l=1,f=h;;f+=h){u>=r&&C("invalid-input");var g=j(e.charCodeAt(u++));(g>=h||g>D((p-n)/l))&&C("overflow"),n+=g*l;var y=f<=o?d:f>=o+m?m:f-o;if(g<y)break;var w=h-y;l>D(p/w)&&C("overflow"),l*=w}var x=t.length+1;o=I(n-c,x,0==c),D(n/x)>p-i&&C("overflow"),i+=D(n/x),n%=x,t.splice(n++,0,i)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[],r=(e=T(e)).length,n=b,i=0,o=v,a=!0,s=!1,u=void 0;try{for(var c,l=e[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;f<128&&t.push(F(f))}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}var g=t.length,y=g;for(g&&t.push(E);y<r;){var w=p,x=!0,S=!1,k=void 0;try{for(var A,P=e[Symbol.iterator]();!(x=(A=P.next()).done);x=!0){var O=A.value;O>=n&&O<w&&(w=O)}}catch(e){S=!0,k=e}finally{try{!x&&P.return&&P.return()}finally{if(S)throw k}}var j=y+1;w-n>D((p-i)/j)&&C("overflow"),i+=(w-n)*j,n=w;var R=!0,L=!1,N=void 0;try{for(var M,B=e[Symbol.iterator]();!(R=(M=B.next()).done);R=!0){var z=M.value;if(z<n&&++i>p&&C("overflow"),z==n){for(var U=i,$=h;;$+=h){var q=$<=o?d:$>=o+m?m:$-o;if(U<q)break;var V=U-q,H=h-q;t.push(F(_(q+V%H,0))),U=D(V/H)}t.push(F(_(U,0))),o=I(i,j,y==g),i=0,++y}}}catch(e){L=!0,N=e}finally{try{!R&&B.return&&B.return()}finally{if(L)throw N}}++i,++n}return t.join("")},N=function(e){return O(e,(function(e){return w.test(e)?R(e.slice(4).toLowerCase()):e}))},M=function(e){return O(e,(function(e){return x.test(e)?"xn--"+L(e):e}))},B={version:"2.1.0",ucs2:{decode:T,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:R,encode:L,toASCII:M,toUnicode:N},z={};function U(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function $(e){for(var t="",r=0,n=e.length;r<n;){var i=parseInt(e.substr(r+1,2),16);if(i<128)t+=String.fromCharCode(i),r+=3;else if(i>=194&&i<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var a=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function q(e,t){function r(e){var r=$(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,U).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,U).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,U).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,U).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,U).replace(t.PCT_ENCODED,i)),e}function V(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(V).join("."):e}function G(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),i=n[1],o=n[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=l(a,2),u=s[0],c=s[1],f=c?c.split(":").map(V):[],p=u.split(":").map(V),h=t.IPV4ADDRESS.test(p[p.length-1]),d=h?7:8,m=p.length-d,g=Array(d),y=0;y<d;++y)g[y]=f[y]||p[m+y]||"";h&&(g[d-1]=H(g[d-1],t));var v=g.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var E=g.slice(0,v.index),w=g.slice(v.index+v.length);b=E.join(":")+"::"+w.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q=void 0==="".match(/(){0}/)[1];function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?c:u;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(W);if(i){Q?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=G(H(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=z[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)q(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=B.toASCII(r.host.replace(n.PCT_ENCODED,$).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}q(r,u)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?c:u,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(G(H(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var X=/^\.\.?\//,Z=/^\/\.(\/|$)/,J=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Z))e=e.replace(Z,"/");else if(e.match(J))e=e.replace(J,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?c:u,n=[],i=z[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?B.toUnicode(e.host):B.toASCII(e.host.replace(r.PCT_ENCODED,$).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}q(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Y(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var a=e.path;t.absolutePath||i&&i.absolutePath||(a=te(a)),void 0===o&&(a=a.replace(/^\/\//,"/%2F")),n.push(a)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=K(re(e,r),r),t=K(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ie(e,t,r){var n=a({scheme:"null"},r);return re(ne(K(e,n),K(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(K(e,t),t):"object"===n(e)&&(e=K(re(e,t),t)),e}function ae(e,t,r){return"string"==typeof e?e=re(K(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(K(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?c.ESCAPE:u.ESCAPE,U)}function ue(e,t){return e&&e.toString().replace(t&&t.iri?c.PCT_ENCODED:u.PCT_ENCODED,$)}var ce={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var pe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),i=n[0],o=n[1];e.path=i&&"/"!==i?i:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},he={scheme:"wss",domainHost:pe.domainHost,parse:pe.parse,serialize:pe.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ve="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ee="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(me,"g"),xe=new RegExp(ye,"g"),Se=new RegExp(t("[^]",ve,"[\\.]",'[\\"]',be),"g"),ke=new RegExp(t("[^]",me,Ee),"g"),Ae=ke;function De(e){var t=$(e);return t.match(we)?t:e}var Fe={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},a=r.query.split("&"),s=0,u=a.length;s<u;++s){var c=a[s].split("=");switch(c[0]){case"to":for(var l=c[1].split(","),f=0,p=l.length;f<p;++f)n.push(l[f]);break;case"subject":r.subject=ue(c[1],t);break;case"body":r.body=ue(c[1],t);break;default:i=!0,o[ue(c[0],t)]=ue(c[1],t)}}i&&(r.headers=o)}r.query=void 0;for(var h=0,d=n.length;h<d;++h){var m=n[h].split("@");if(m[0]=ue(m[0]),t.unicodeSupport)m[1]=ue(m[1],t).toLowerCase();else try{m[1]=B.toASCII(ue(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[h]=m.join("@")}return r},serialize:function(e,t){var r=e,n=o(e.to);if(n){for(var a=0,s=n.length;a<s;++a){var u=String(n[a]),c=u.lastIndexOf("@"),l=u.slice(0,c).replace(xe,De).replace(xe,i).replace(Se,U),f=u.slice(c+1);try{f=t.iri?B.toUnicode(f):B.toASCII(ue(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=l+"@"+f}r.path=n.join(",")}var p=e.headers=e.headers||{};e.subject&&(p.subject=e.subject),e.body&&(p.body=e.body);var h=[];for(var d in p)p[d]!==de[d]&&h.push(d.replace(xe,De).replace(xe,i).replace(ke,U)+"="+p[d].replace(xe,De).replace(xe,i).replace(Ae,U));return h.length&&(r.query=h.join("&")),r}},Ce=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Ce),n=e;if(r){var i=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),a=r[2],s=i+":"+(t.nid||o),u=z[s];n.nid=o,n.nss=a,n.path=void 0,u&&(n=u.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,i=r+":"+(t.nid||n),o=z[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Te={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};z[ce.scheme]=ce,z[le.scheme]=le,z[pe.scheme]=pe,z[he.scheme]=he,z[Fe.scheme]=Fe,z[Pe.scheme]=Pe,z[Te.scheme]=Te,e.SCHEMES=z,e.pctEncChar=U,e.pctDecChars=$,e.parse=K,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=ie,e.normalize=oe,e.equal=ae,e.escapeComponent=se,e.unescapeComponent=ue,Object.defineProperty(e,"__esModule",{value:!0})}(t)},8884:function(e,t,r){var n;/*! https://mths.be/punycode v1.3.2 by @mathias */e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,u=36,c=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function m(e){throw RangeError(p[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(f,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=d(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=u)e=h(e/35);return h(n+36*e/(e+38))}function x(e){var t,r,n,i,o,a,c,l,f,p,d,g=[],y=e.length,v=0,E=128,x=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&m("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=v,a=1,c=u;i>=y&&m("invalid-input"),((l=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:u)>=u||l>h((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=c<=x?1:c>=x+26?26:c-x));c+=u)a>h(s/(p=u-f))&&m("overflow"),a*=p;x=w(v-o,t=g.length+1,0==o),h(v/t)>s-E&&m("overflow"),E+=h(v/t),v%=t,g.splice(v++,0,E)}return b(g)}function S(e){var t,r,n,i,o,a,c,l,f,p,g,y,b,x,S,k=[];for(y=(e=v(e)).length,t=128,r=0,o=72,a=0;a<y;++a)(g=e[a])<128&&k.push(d(g));for(n=i=k.length,i&&k.push("-");n<y;){for(c=s,a=0;a<y;++a)(g=e[a])>=t&&g<c&&(c=g);for(c-t>h((s-r)/(b=n+1))&&m("overflow"),r+=(c-t)*b,t=c,a=0;a<y;++a)if((g=e[a])<t&&++r>s&&m("overflow"),g==t){for(l=r,f=u;!(l<(p=f<=o?1:f>=o+26?26:f-o));f+=u)S=l-p,x=u-p,k.push(d(E(p+S%x,0))),l=h(S/x);k.push(d(E(l,0))),o=w(r,b,n==i),r=0,++n}++r,++t}return k.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:x,encode:S,toASCII:function(e){return y(e,(function(e){return l.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return y(e,(function(e){return c.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},4760:(e,t,r)=>{"use strict";var n=r(8884),i=r(569);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(6541);function b(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var E=u.exec(b);if(E)return this.path=b,this.href=b,this.pathname=E[1],E[2]?(this.search=E[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,b=b.substr(w.length)}if(r||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===b.substr(0,2);!S||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(S||w&&!y[w])){for(var k,A,D=-1,F=0;F<p.length;F++){-1!==(C=b.indexOf(p[F]))&&(-1===D||C<D)&&(D=C)}-1!==(A=-1===D?b.lastIndexOf("@"):b.lastIndexOf("@",D))&&(k=b.slice(0,A),b=b.slice(A+1),this.auth=decodeURIComponent(k)),D=-1;for(F=0;F<f.length;F++){var C;-1!==(C=b.indexOf(f[F]))&&(-1===D||C<D)&&(D=C)}-1===D&&(D=b.length),this.host=b.slice(0,D),b=b.slice(D),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var O=this.hostname.split(/\./),T=(F=0,O.length);F<T;F++){var j=O[F];if(j&&!j.match(h)){for(var _="",I=0,R=j.length;I<R;I++)j.charCodeAt(I)>127?_+="x":_+=j[I];if(!_.match(h)){var L=O.slice(0,F),N=O.slice(F+1),M=j.match(d);M&&(L.push(M[1]),N.unshift(M[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var B=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+B,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(F=0,T=l.length;F<T;F++){var U=l[F];if(-1!==b.indexOf(U)){var $=encodeURIComponent(U);$===U&&($=escape(U)),b=b.split(U).join($)}}var q=b.indexOf("#");-1!==q&&(this.hash=b.substr(q),b=b.slice(0,q));var V=b.indexOf("?");if(-1!==V?(this.search=b.substr(V),this.query=b.substr(V+1),t&&(this.query=v.parse(this.query)),b=b.slice(0,V)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var H=this.search||"";this.path=B+H}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(r[l]=e[l])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var f=Object.keys(e),p=0;p<f.length;p++){var h=f[p];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),E=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=E||b||r.host&&e.pathname,x=w,S=r.pathname&&r.pathname.split("/")||[],k=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),w=w&&(""===d[0]||""===S[0])),E)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=d;else if(d.length)S||(S=[]),S.pop(),S=S.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(k)r.hostname=r.host=S.shift(),(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=S.slice(-1)[0],D=(r.host||e.host||S.length>1)&&("."===A||".."===A)||""===A,F=0,C=S.length;C>=0;C--)"."===(A=S[C])?S.splice(C,1):".."===A?(S.splice(C,1),F++):F&&(S.splice(C,1),F--);if(!w&&!x)for(;F--;F)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),D&&"/"!==S.join("/").substr(-1)&&S.push("");var P,O=""===S[0]||S[0]&&"/"===S[0].charAt(0);k&&(r.hostname=r.host=O?"":S.length?S.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(w=w||r.host&&S.length)&&!O&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},569:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},6579:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},7673:(e,t,r)=>{"use strict";var n=r(7740),i=r(8265),o=r(2505),a=r(387);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function E(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===l(e)}function k(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},E.working="undefined"!=typeof WeakSet&&E(new WeakSet),t.isWeakSet=function(e){return E(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=x,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function D(e){return"[object SharedArrayBuffer]"===l(e)}function F(e){return void 0!==A&&(void 0===D.working&&(D.working=D(new A)),D.working?D(e):e instanceof A)}function C(e){return g(e,f)}function P(e){return g(e,p)}function O(e){return g(e,h)}function T(e){return u&&g(e,d)}function j(e){return c&&g(e,m)}t.isSharedArrayBuffer=F,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=C,t.isStringObject=P,t.isBooleanObject=O,t.isBigIntObject=T,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return C(e)||P(e)||O(e)||T(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||F(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},1323:(e,t,r)=>{var n=r(7061),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])y(s)||!x(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function f(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return b(i)||(i=p(e,i,n)),i}var o=function(e,t){if(E(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(A(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return h(r)}var c,l="",f=!1,x=["{","}"];(m(r)&&(f=!0,x=["[","]"]),A(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(l=" "+RegExp.prototype.toString.call(r)),S(r)&&(l=" "+Date.prototype.toUTCString.call(r)),k(r)&&(l=" "+h(r)),0!==a.length||f&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=f?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)O(t,String(a))?o.push(d(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return d(e,r,n,s,t,f)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,l,x)):x[0]+l+x[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),O(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(r)?p(e,u.value,null):p(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function E(e){return void 0===e}function w(e){return x(e)&&"[object RegExp]"===D(e)}function x(e){return"object"==typeof e&&null!==e}function S(e){return x(e)&&"[object Date]"===D(e)}function k(e){return x(e)&&("[object Error]"===D(e)||e instanceof Error)}function A(e){return"function"==typeof e}function D(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(7673),t.isArray=m,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=E,t.isRegExp=w,t.types.isRegExp=w,t.isObject=x,t.isDate=S,t.types.isDate=S,t.isError=k,t.types.isNativeError=k,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(6579);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=r(87),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){n.nextTick(a.bind(null,null,e))}),(function(e){n.nextTick(j.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},2505:(e,t,r)=>{"use strict";var n=r(8372),i=r(973),o=r(2737),a=o("Object.prototype.toString"),s=r(698)(),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),l=o("String.prototype.slice"),f={},p=r(8828),h=Object.getPrototypeOf;s&&p&&h&&n(c,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var r=h(t),n=p(r,Symbol.toStringTag);if(!n){var i=h(r);n=p(i,Symbol.toStringTag)}f[e]=n.get}}}));var d=r(387);e.exports=function(e){return!!d(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return n(f,(function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}})),t}(e):l(a(e),8,-1))}},7363:e=>{"use strict";e.exports=React},2611:e=>{"use strict";e.exports=_},429:()=>{},973:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},8828:(e,t,r)=>{"use strict";var n=r(8750)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},9477:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});const n=document.createElement("i");function i(e){const t="&"+e+";";n.innerHTML=t;const r=n.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&(r!==t&&r)}},2268:(e,t,r)=>{"use strict";r.r(t),r.d(t,{blockquote:()=>o});var n=r(5471),i=r(4671);function o(e,t,r){const o=r.enter("blockquote"),s=(0,i.Q)((0,n.K)(e,r),a);return o(),s}function a(e,t,r){return">"+(r?"":" ")+e}},6156:(e,t,r)=>{"use strict";r.r(t),r.d(t,{heading:()=>s});var n=r(3428),i=r(3339),o=r(8717);var a=r(7567);function s(e,t,r){const s=Math.max(Math.min(6,e.depth||1),1);if(function(e,t){let r=!1;return(0,n.visit)(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,i.BK})),Boolean((!e.depth||e.depth<3)&&(0,o.B)(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),i=(0,a.p)(e,r,{before:"\n",after:"\n"});return n(),t(),i+"\n"+(1===s?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const u="#".repeat(s),c=r.enter("headingAtx"),l=r.enter("phrasing");let f=(0,a.p)(e,r,{before:"# ",after:"\n"});return/^[\t ]/.test(f)&&(f="&#x"+f.charCodeAt(0).toString(16).toUpperCase()+";"+f.slice(1)),f=f?u+" "+f:u,r.options.closeAtx&&(f+=" "+u),l(),c(),f}},8627:(e,t,r)=>{"use strict";r.r(t),r.d(t,{image:()=>o});var n=r(1481),i=r(3316);function o(e,t,r){const o=(0,n.l)(r),a='"'===o?"Quote":"Apostrophe",s=r.enter("image");let u=r.enter("label"),c="!["+(0,i.T)(r,e.alt,{before:"[",after:"]"})+"](";return u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),c+="<"+(0,i.T)(r,e.url,{before:"<",after:">"})+">"):(u=r.enter("destinationRaw"),c+=(0,i.T)(r,e.url,{before:"(",after:e.title?" ":")"})),u(),e.title&&(u=r.enter("title"+a),c+=" "+o+(0,i.T)(r,e.title,{before:o,after:o})+o,u()),c+=")",s(),c}o.peek=function(){return"!"}},2848:(e,t,r)=>{"use strict";r.r(t),r.d(t,{paragraph:()=>i});var n=r(7567);function i(e,t,r){const i=r.enter("paragraph"),o=r.enter("phrasing"),a=(0,n.p)(e,r,{before:"\n",after:"\n"});return o(),i(),a}},1481:(e,t,r)=>{"use strict";function n(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}r.d(t,{l:()=>n})},5471:(e,t,r)=>{"use strict";function n(e,t){const r=t.indexStack,n=e.children||[],i=[];let o=-1;for(r.push(-1);++o<n.length;){const s=n[o];r[r.length-1]=o,i.push(t.handle(s,e,t,{before:"\n",after:"\n"})),"list"!==s.type&&(t.bulletLastUsed=void 0),o<n.length-1&&i.push(a(s,n[o+1]))}return r.pop(),i.join("");function a(r,n){let i=t.join.length;for(;i--;){const o=t.join[i](r,n,e,t);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}}r.d(t,{K:()=>n})},7567:(e,t,r)=>{"use strict";function n(e,t,r){const n=t.indexStack,i=e.children||[],o=[];let a=-1,s=r.before;for(n.push(-1);++a<i.length;){const u=i[a];let c;if(n[n.length-1]=a,a+1<i.length){let r=t.handle.handlers[i[a+1].type];r&&r.peek&&(r=r.peek),c=r?r(i[a+1],e,t,{before:"",after:""}).charAt(0):""}else c=r.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===u.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" "),o.push(t.handle(u,e,t,{before:s,after:c})),s=o[o.length-1].slice(-1)}return n.pop(),o.join("")}r.d(t,{p:()=>n})},4671:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});const n=/\r?\n|\r/g;function i(e,t){const r=[];let i,o=0,a=0;for(;i=n.exec(e);)s(e.slice(o,i.index)),r.push(i[0]),o=i.index+i[0].length,a++;return s(e.slice(o)),r.join("");function s(e){r.push(t(e,a,!e))}}},7866:(e,t,r)=>{"use strict";function n(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}r.d(t,{T:()=>n})},3316:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(7866);function i(e,t){return o(e,t.inConstruct,!0)&&!o(e,t.notInConstruct,!1)}function o(e,t,r){if(!t)return r;"string"==typeof t&&(t=[t]);let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function a(e,t,r){const o=(r.before||"")+(t||"")+(r.after||""),a=[],c=[],l={};let f=-1;for(;++f<e.unsafe.length;){const t=e.unsafe[f];if(!i(e.stack,t))continue;const r=(0,n.T)(t);let s;for(;s=r.exec(o);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=s.index+(e?s[1].length:0);a.includes(n)?(l[n].before&&!e&&(l[n].before=!1),l[n].after&&!r&&(l[n].after=!1)):(a.push(n),l[n]={before:e,after:r})}}a.sort(s);let p=r.before?r.before.length:0;const h=o.length-(r.after?r.after.length:0);for(f=-1;++f<a.length;){const e=a[f];e<p||e>=h||(e+1<h&&a[f+1]===e+1&&l[e].after&&!l[e+1].before&&!l[e+1].after||a[f-1]===e-1&&l[e].before&&!l[e-1].before&&!l[e-1].after||(p!==e&&c.push(u(o.slice(p,e),"\\")),p=e,!/[!-/:-@[-`{-~]/.test(o.charAt(e))||r.encode&&r.encode.includes(o.charAt(e))?(c.push("&#x"+o.charCodeAt(e).toString(16).toUpperCase()+";"),p++):c.push("\\")))}return c.push(u(o.slice(p,h),r.after)),c.join("")}function s(e,t){return e-t}function u(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t;let a,s=-1,u=0;for(;a=r.exec(o);)n.push(a.index);for(;++s<n.length;)u!==n[s]&&i.push(e.slice(u,n[s])),i.push("\\"),u=n[s];return i.push(e.slice(u)),i.join("")}},8717:(e,t,r)=>{"use strict";function n(e,t){var{includeImageAlt:r=!0}=t||{};return i(e,r)}function i(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&o(e.children,t)||Array.isArray(e)&&o(e,t))||""}function o(e,t){for(var r=[],n=-1;++n<e.length;)r[n]=i(e[n],t);return r.join("")}r.d(t,{B:()=>n})},9531:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attention:()=>n.v,autolink:()=>i.j,blankLine:()=>o.w,blockQuote:()=>a.m,characterEscape:()=>s.L,characterReference:()=>u.u,codeFenced:()=>c._,codeIndented:()=>l.S,codeText:()=>f.h,content:()=>p.k,definition:()=>h.D,hardBreakEscape:()=>d.R,headingAtx:()=>m.Z,htmlFlow:()=>g.P,htmlText:()=>y.L,labelEnd:()=>v.Z,labelStartImage:()=>b.C,labelStartLink:()=>E.F,lineEnding:()=>w.g,list:()=>x.p,setextUnderline:()=>S.C,thematicBreak:()=>k.C});var n=r(8415),i=r(7444),o=r(2929),a=r(7207),s=r(1687),u=r(2810),c=r(4897),l=r(2535),f=r(5180),p=r(6814),h=r(4882),d=r(6100),m=r(5528),g=r(5198),y=r(5890),v=r(8966),b=r(5365),E=r(5856),w=r(890),x=r(4618),S=r(6263),k=r(8038)},8415:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(8300),i=r(3886),o=r(3879);const a={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=(0,i.r)(n);let a;return function(t){return e.enter("attentionSequence"),a=t,s(t)};function s(u){if(u===a)return e.consume(u),s;const c=e.exit("attentionSequence"),l=(0,i.r)(u),f=!l||2===l&&o||r.includes(u),p=!o||2===o&&l||r.includes(n);return c._open=Boolean(42===a?f:f&&(o||!p)),c._close=Boolean(42===a?p:p&&(l||!f)),t(u)}},resolveAll:function(e,t){let r,i,a,u,c,l,f,p,h=-1;for(;++h<e.length;)if("enter"===e[h][0]&&"attentionSequence"===e[h][1].type&&e[h][1]._close)for(r=h;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[r][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),m=Object.assign({},e[h][1].start);s(d,-l),s(m,l),u={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},c={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[h][1].start),end:m},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[h][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},c.end)},e[r][1].end=Object.assign({},u.start),e[h][1].start=Object.assign({},c.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=(0,n.V)(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=(0,n.V)(f,[["enter",i,t],["enter",u,t],["exit",u,t],["enter",a,t]]),f=(0,n.V)(f,(0,o.C)(t.parser.constructs.insideSpan.null,e.slice(r+1,h),t)),f=(0,n.V)(f,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",i,t]]),e[h][1].end.offset-e[h][1].start.offset?(p=2,f=(0,n.V)(f,[["enter",e[h][1],t],["exit",e[h][1],t]])):p=0,(0,n.d)(e,r-1,h-r+3,f),h=r+f.length-p-2;break}h=-1;for(;++h<e.length;)"attentionSequence"===e[h][1].type&&(e[h][1].type="data");return e}};function s(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}},7444:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(488);const i={name:"autolink",tokenize:function(e,t,r){let i=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return(0,n.asciiAlpha)(t)?(e.consume(t),a):(0,n.asciiAtext)(t)?c(t):r(t)}function a(e){return 43===e||45===e||46===e||(0,n.asciiAlphanumeric)(e)?s(e):c(e)}function s(t){return 58===t?(e.consume(t),u):(43===t||45===t||46===t||(0,n.asciiAlphanumeric)(t))&&i++<32?(e.consume(t),s):c(t)}function u(t){return 62===t?(e.exit("autolinkProtocol"),h(t)):null===t||32===t||60===t||(0,n.asciiControl)(t)?r(t):(e.consume(t),u)}function c(t){return 64===t?(e.consume(t),i=0,l):(0,n.asciiAtext)(t)?(e.consume(t),c):r(t)}function l(e){return(0,n.asciiAlphanumeric)(e)?f(e):r(e)}function f(t){return 46===t?(e.consume(t),i=0,l):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",h(t)):p(t)}function p(t){return(45===t||(0,n.asciiAlphanumeric)(t))&&i++<63?(e.consume(t),45===t?p:f):r(t)}function h(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}}},2929:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(4014),i=r(488);const o={tokenize:function(e,t,r){return(0,n.factorySpace)(e,(function(e){return null===e||(0,i.markdownLineEnding)(e)?t(e):r(e)}),"linePrefix")},partial:!0}},7207:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(4014),i=r(488);const o={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return r(t)};function o(r){return(0,i.markdownSpace)(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return(0,n.factorySpace)(e,e.attempt(o,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}}},1687:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r(488);const i={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return(0,n.asciiPunctuation)(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}}},2810:(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var n=r(9477),i=r(488);const o={name:"characterReference",tokenize:function(e,t,r){const o=this;let a,s,u=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),c};function c(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=i.asciiAlphanumeric,f(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=i.asciiHexDigit,f):(e.enter("characterReferenceValue"),a=7,s=i.asciiDigit,f(t))}function f(c){let l;return 59===c&&u?(l=e.exit("characterReferenceValue"),s!==i.asciiAlphanumeric||(0,n.T)(o.sliceSerialize(l))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(c)):s(c)&&u++<a?(e.consume(c),f):r(c)}}}},4897:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(4014),i=r(488);const o={name:"codeFenced",tokenize:function(e,t,r){const o=this,a={tokenize:function(e,t,r){let o=0;return(0,n.factorySpace)(e,a,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}function s(t){return t===l?(e.consume(t),o++,s):o<f?r(t):(e.exit("codeFencedFenceSequence"),(0,n.factorySpace)(e,u,"whitespace")(t))}function u(n){return null===n||(0,i.markdownLineEnding)(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},s={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},u=this.events[this.events.length-1],c=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0;let l,f=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l=t,p(t)};function p(t){return t===l?(e.consume(t),f++,p):(e.exit("codeFencedFenceSequence"),f<3?r(t):(0,n.factorySpace)(e,h,"whitespace")(t))}function h(t){return null===t||(0,i.markdownLineEnding)(t)?y(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,n.factorySpace)(e,m,"whitespace")(t)):96===t&&t===l?r(t):(e.consume(t),d)}function m(t){return null===t||(0,i.markdownLineEnding)(t)?y(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(t))}function g(t){return null===t||(0,i.markdownLineEnding)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(t)):96===t&&t===l?r(t):(e.consume(t),g)}function y(r){return e.exit("codeFencedFence"),o.interrupt?t(r):v(r)}function v(t){return null===t?E(t):(0,i.markdownLineEnding)(t)?e.attempt(s,e.attempt(a,E,c?(0,n.factorySpace)(e,v,"linePrefix",c+1):v),E)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||(0,i.markdownLineEnding)(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),b)}function E(r){return e.exit("codeFenced"),t(r)}},concrete:!0}},2535:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var n=r(4014),i=r(488);const o={name:"codeIndented",tokenize:function(e,t,r){const o=this;return function(t){return e.enter("codeIndented"),(0,n.factorySpace)(e,s,"linePrefix",5)(t)};function s(e){const t=o.events[o.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?u(e):r(e)}function u(t){return null===t?l(t):(0,i.markdownLineEnding)(t)?e.attempt(a,u,l)(t):(e.enter("codeFlowValue"),c(t))}function c(t){return null===t||(0,i.markdownLineEnding)(t)?(e.exit("codeFlowValue"),u(t)):(e.consume(t),c)}function l(r){return e.exit("codeIndented"),t(r)}}},a={tokenize:function(e,t,r){const o=this;return a;function a(t){return o.parser.lazy[o.now().line]?r(t):(0,i.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(0,n.factorySpace)(e,s,"linePrefix",5)(t)}function s(e){const n=o.events[o.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?t(e):(0,i.markdownLineEnding)(e)?a(e):r(e)}},partial:!0}},5180:(e,t,r)=>{"use strict";r.d(t,{h:()=>i});var n=r(488);const i={name:"codeText",tokenize:function(e,t,r){let i,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?r(t):96===t?(o=e.enter("codeTextSequence"),i=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):(0,n.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||(0,n.markdownLineEnding)(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),i++,l):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(o.type="codeTextData",c(r))}},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}t=i-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},6814:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var n=r(4014),i=r(488),o=r(2988);const a={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?o(t):(0,i.markdownLineEnding)(t)?e.check(s,a,o)(t):(e.consume(t),n)}function o(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return(0,o._)(e),e}},s={tokenize:function(e,t,r){const o=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,a,"linePrefix")};function a(n){if(null===n||(0,i.markdownLineEnding)(n))return r(n);const a=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(n):e.interrupt(o.parser.constructs.flow,r,t)(n)}},partial:!0}},4882:(e,t,r)=>{"use strict";r.d(t,{D:()=>l});var n=r(917),i=r(7504),o=r(4014),a=r(1559),s=r(6096),u=r(2493),c=r(488);const l={name:"definition",tokenize:function(e,t,r){const a=this;let l;return function(t){return e.enter("definition"),i.factoryLabel.call(a,e,p,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function p(t){return l=(0,u.normalizeIdentifier)(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),(0,s.factoryWhitespace)(e,(0,n.factoryDestination)(e,e.attempt(f,(0,o.factorySpace)(e,h,"whitespace"),(0,o.factorySpace)(e,h,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function h(n){return null===n||(0,c.markdownLineEnding)(n)?(e.exit("definition"),a.parser.defined.includes(l)||a.parser.defined.push(l),t(n)):r(n)}}},f={tokenize:function(e,t,r){return function(t){return(0,c.markdownLineEndingOrSpace)(t)?(0,s.factoryWhitespace)(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?(0,a.factoryTitle)(e,(0,o.factorySpace)(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||(0,c.markdownLineEnding)(e)?t(e):r(e)}},partial:!0}},6100:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(488);const i={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),i};function i(i){return(0,n.markdownLineEnding)(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):r(i)}}}},5528:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(4014),i=r(488),o=r(8300);const a={name:"headingAtx",tokenize:function(e,t,r){const o=this;let a=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(t)};function s(n){return 35===n&&a++<6?(e.consume(n),s):null===n||(0,i.markdownLineEndingOrSpace)(n)?(e.exit("atxHeadingSequence"),o.interrupt?t(n):u(n)):r(n)}function u(r){return 35===r?(e.enter("atxHeadingSequence"),c(r)):null===r||(0,i.markdownLineEnding)(r)?(e.exit("atxHeading"),t(r)):(0,i.markdownSpace)(r)?(0,n.factorySpace)(e,u,"whitespace")(r):(e.enter("atxHeadingText"),l(r))}function c(t){return 35===t?(e.consume(t),c):(e.exit("atxHeadingSequence"),u(t))}function l(t){return null===t||35===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit("atxHeadingText"),u(t)):(e.consume(t),l)}},resolve:function(e,t){let r,n,i=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);i-2>a&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4);i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},n={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},(0,o.d)(e,a,i-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}}},5198:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(488);const i=["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"],o=["pre","script","style","textarea"];var a=r(2929);const s={name:"htmlFlow",tokenize:function(e,t,r){const a=this;let s,c,l,f,p;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),h};function h(i){return 33===i?(e.consume(i),d):47===i?(e.consume(i),y):63===i?(e.consume(i),s=3,a.interrupt?t:M):(0,n.asciiAlpha)(i)?(e.consume(i),l=String.fromCharCode(i),c=!0,v):r(i)}function d(i){return 45===i?(e.consume(i),s=2,m):91===i?(e.consume(i),s=5,l="CDATA[",f=0,g):(0,n.asciiAlpha)(i)?(e.consume(i),s=4,a.interrupt?t:M):r(i)}function m(n){return 45===n?(e.consume(n),a.interrupt?t:M):r(n)}function g(n){return n===l.charCodeAt(f++)?(e.consume(n),f===l.length?a.interrupt?t:O:g):r(n)}function y(t){return(0,n.asciiAlpha)(t)?(e.consume(t),l=String.fromCharCode(t),v):r(t)}function v(u){return null===u||47===u||62===u||(0,n.markdownLineEndingOrSpace)(u)?47!==u&&c&&o.includes(l.toLowerCase())?(s=1,a.interrupt?t(u):O(u)):i.includes(l.toLowerCase())?(s=6,47===u?(e.consume(u),b):a.interrupt?t(u):O(u)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(u):c?w(u):E(u)):45===u||(0,n.asciiAlphanumeric)(u)?(e.consume(u),l+=String.fromCharCode(u),v):r(u)}function b(n){return 62===n?(e.consume(n),a.interrupt?t:O):r(n)}function E(t){return(0,n.markdownSpace)(t)?(e.consume(t),E):C(t)}function w(t){return 47===t?(e.consume(t),C):58===t||95===t||(0,n.asciiAlpha)(t)?(e.consume(t),x):(0,n.markdownSpace)(t)?(e.consume(t),w):C(t)}function x(t){return 45===t||46===t||58===t||95===t||(0,n.asciiAlphanumeric)(t)?(e.consume(t),x):S(t)}function S(t){return 61===t?(e.consume(t),k):(0,n.markdownSpace)(t)?(e.consume(t),S):w(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),p=t,A):(0,n.markdownSpace)(t)?(e.consume(t),k):(p=null,D(t))}function A(t){return null===t||(0,n.markdownLineEnding)(t)?r(t):t===p?(e.consume(t),F):(e.consume(t),A)}function D(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||(0,n.markdownLineEndingOrSpace)(t)?S(t):(e.consume(t),D)}function F(e){return 47===e||62===e||(0,n.markdownSpace)(e)?w(e):r(e)}function C(t){return 62===t?(e.consume(t),P):r(t)}function P(t){return(0,n.markdownSpace)(t)?(e.consume(t),P):null===t||(0,n.markdownLineEnding)(t)?O(t):r(t)}function O(t){return 45===t&&2===s?(e.consume(t),I):60===t&&1===s?(e.consume(t),R):62===t&&4===s?(e.consume(t),B):63===t&&3===s?(e.consume(t),M):93===t&&5===s?(e.consume(t),N):!(0,n.markdownLineEnding)(t)||6!==s&&7!==s?null===t||(0,n.markdownLineEnding)(t)?T(t):(e.consume(t),O):e.check(u,B,T)(t)}function T(t){return e.exit("htmlFlowData"),j(t)}function j(t){return null===t?z(t):(0,n.markdownLineEnding)(t)?e.attempt({tokenize:_,partial:!0},j,z)(t):(e.enter("htmlFlowData"),O(t))}function _(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}}function I(t){return 45===t?(e.consume(t),M):O(t)}function R(t){return 47===t?(e.consume(t),l="",L):O(t)}function L(t){return 62===t&&o.includes(l.toLowerCase())?(e.consume(t),B):(0,n.asciiAlpha)(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),L):O(t)}function N(t){return 93===t?(e.consume(t),M):O(t)}function M(t){return 62===t?(e.consume(t),B):45===t&&2===s?(e.consume(t),M):O(t)}function B(t){return null===t||(0,n.markdownLineEnding)(t)?(e.exit("htmlFlowData"),z(t)):(e.consume(t),B)}function z(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},u={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(a.w,t,r)}},partial:!0}},5890:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});var n=r(4014),i=r(488);const o={name:"htmlText",tokenize:function(e,t,r){const o=this;let a,s,u,c;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),f):47===t?(e.consume(t),k):63===t?(e.consume(t),x):(0,i.asciiAlpha)(t)?(e.consume(t),F):r(t)}function f(t){return 45===t?(e.consume(t),p):91===t?(e.consume(t),s="CDATA[",u=0,y):(0,i.asciiAlpha)(t)?(e.consume(t),w):r(t)}function p(t){return 45===t?(e.consume(t),h):r(t)}function h(t){return null===t||62===t?r(t):45===t?(e.consume(t),d):m(t)}function d(e){return null===e||62===e?r(e):m(e)}function m(t){return null===t?r(t):45===t?(e.consume(t),g):(0,i.markdownLineEnding)(t)?(c=m,R(t)):(e.consume(t),m)}function g(t){return 45===t?(e.consume(t),N):m(t)}function y(t){return t===s.charCodeAt(u++)?(e.consume(t),u===s.length?v:y):r(t)}function v(t){return null===t?r(t):93===t?(e.consume(t),b):(0,i.markdownLineEnding)(t)?(c=v,R(t)):(e.consume(t),v)}function b(t){return 93===t?(e.consume(t),E):v(t)}function E(t){return 62===t?N(t):93===t?(e.consume(t),E):v(t)}function w(t){return null===t||62===t?N(t):(0,i.markdownLineEnding)(t)?(c=w,R(t)):(e.consume(t),w)}function x(t){return null===t?r(t):63===t?(e.consume(t),S):(0,i.markdownLineEnding)(t)?(c=x,R(t)):(e.consume(t),x)}function S(e){return 62===e?N(e):x(e)}function k(t){return(0,i.asciiAlpha)(t)?(e.consume(t),A):r(t)}function A(t){return 45===t||(0,i.asciiAlphanumeric)(t)?(e.consume(t),A):D(t)}function D(t){return(0,i.markdownLineEnding)(t)?(c=D,R(t)):(0,i.markdownSpace)(t)?(e.consume(t),D):N(t)}function F(t){return 45===t||(0,i.asciiAlphanumeric)(t)?(e.consume(t),F):47===t||62===t||(0,i.markdownLineEndingOrSpace)(t)?C(t):r(t)}function C(t){return 47===t?(e.consume(t),N):58===t||95===t||(0,i.asciiAlpha)(t)?(e.consume(t),P):(0,i.markdownLineEnding)(t)?(c=C,R(t)):(0,i.markdownSpace)(t)?(e.consume(t),C):N(t)}function P(t){return 45===t||46===t||58===t||95===t||(0,i.asciiAlphanumeric)(t)?(e.consume(t),P):O(t)}function O(t){return 61===t?(e.consume(t),T):(0,i.markdownLineEnding)(t)?(c=O,R(t)):(0,i.markdownSpace)(t)?(e.consume(t),O):C(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),a=t,j):(0,i.markdownLineEnding)(t)?(c=T,R(t)):(0,i.markdownSpace)(t)?(e.consume(t),T):(e.consume(t),a=void 0,I)}function j(t){return t===a?(e.consume(t),_):null===t?r(t):(0,i.markdownLineEnding)(t)?(c=j,R(t)):(e.consume(t),j)}function _(e){return 62===e||47===e||(0,i.markdownLineEndingOrSpace)(e)?C(e):r(e)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||(0,i.markdownLineEndingOrSpace)(t)?C(t):(e.consume(t),I)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function L(t){return e.enter("htmlTextData"),c(t)}function N(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}}},8966:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(917),i=r(7504),o=r(1559),a=r(6096),s=r(488),u=r(8300),c=r(2493),l=r(3879);const f={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){i=n.events[a][1];break}return function(t){if(!i)return r(t);return i._inactive?u(t):(o=n.parser.defined.includes((0,c.normalizeIdentifier)(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(p,t,o?t:u)(r):91===r?e.attempt(h,t,o?e.attempt(d,t,u):u)(r):o?t(r):u(r)}function u(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,o,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=a);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},f={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},p={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",c,t],["enter",f,t]],o=(0,u.V)(o,e.slice(n+1,n+s+3)),o=(0,u.V)(o,[["enter",p,t]]),o=(0,u.V)(o,(0,l.C)(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),o=(0,u.V)(o,[["exit",p,t],e[i-2],e[i-1],["exit",f,t]]),o=(0,u.V)(o,e.slice(i+1)),o=(0,u.V)(o,[["exit",c,t]]),(0,u.d)(e,n,e.length,o),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},p={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),(0,a.factoryWhitespace)(e,i)};function i(t){return 41===t?l(t):(0,n.factoryDestination)(e,u,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function u(t){return(0,s.markdownLineEndingOrSpace)(t)?(0,a.factoryWhitespace)(e,c)(t):l(t)}function c(t){return 34===t||39===t||40===t?(0,o.factoryTitle)(e,(0,a.factoryWhitespace)(e,l),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function l(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},h={tokenize:function(e,t,r){const n=this;return function(t){return i.factoryLabel.call(n,e,o,r,"reference","referenceMarker","referenceString")(t)};function o(e){return n.parser.defined.includes((0,c.normalizeIdentifier)(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},d={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}}},5365:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});const n={name:"labelStartImage",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):r(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:r(8966).Z.resolveAll}},5856:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});const n={name:"labelStartLink",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:r(8966).Z.resolveAll}},890:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(4014);const i={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),(0,n.factorySpace)(e,t,"linePrefix")}}}},4618:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var n=r(4014),i=r(488),o=r(2929),a=r(8038);const s={name:"list",tokenize:function(e,t,r){const n=this,s=n.events[n.events.length-1];let c=s&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,l=0;return function(t){const o=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!n.containerState.marker||t===n.containerState.marker:(0,i.asciiDigit)(t)){if(n.containerState.type||(n.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(a.C,r,p)(t):p(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(t)}return r(t)};function f(t){return(0,i.asciiDigit)(t)&&++l<10?(e.consume(t),f):(!n.interrupt||l<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),p(t)):r(t)}function p(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(o.w,n.interrupt?r:h,e.attempt(u,m,d))}function h(e){return n.containerState.initialBlankLine=!0,c++,m(e)}function d(t){return(0,i.markdownSpace)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),m):r(t)}function m(r){return n.containerState.size=c+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(o.w,(function(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,(0,n.factorySpace)(e,t,"listItemIndent",a.containerState.size+1)(r)}),(function(r){if(a.containerState.furtherBlankLines||!(0,i.markdownSpace)(r))return a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u(r);return a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(c,t,u)(r)}));function u(i){return a.containerState._closeFlow=!0,a.interrupt=void 0,(0,n.factorySpace)(e,e.attempt(s,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},u={tokenize:function(e,t,r){const o=this;return(0,n.factorySpace)(e,(function(e){const n=o.events[o.events.length-1];return!(0,i.markdownSpace)(e)&&n&&"listItemPrefixWhitespace"===n[1].type?t(e):r(e)}),"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},c={tokenize:function(e,t,r){const i=this;return(0,n.factorySpace)(e,(function(e){const n=i.events[i.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===i.containerState.size?t(e):r(e)}),"listItemIndent",i.containerState.size+1)},partial:!0}},6263:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});var n=r(4014),i=r(488);const o={name:"setextUnderline",tokenize:function(e,t,r){const o=this;let a,s,u=o.events.length;for(;u--;)if("lineEnding"!==o.events[u][1].type&&"linePrefix"!==o.events[u][1].type&&"content"!==o.events[u][1].type){s="paragraph"===o.events[u][1].type;break}return function(t){if(!o.parser.lazy[o.now().line]&&(o.interrupt||s))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=t,c(t);return r(t)};function c(t){return t===a?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),(0,n.factorySpace)(e,l,"lineSuffix")(t))}function l(n){return null===n||(0,i.markdownLineEnding)(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}}},8038:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});var n=r(4014),i=r(488);const o={name:"thematicBreak",tokenize:function(e,t,r){let o,a=0;return function(t){return e.enter("thematicBreak"),o=t,s(t)};function s(c){return c===o?(e.enter("thematicBreakSequence"),u(c)):(0,i.markdownSpace)(c)?(0,n.factorySpace)(e,s,"whitespace")(c):a<3||null!==c&&!(0,i.markdownLineEnding)(c)?r(c):(e.exit("thematicBreak"),t(c))}function u(t){return t===o?(e.consume(t),a++,u):(e.exit("thematicBreakSequence"),s(t))}}}},917:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryDestination:()=>i});var n=r(488);function i(e,t,r,i,o,a,s,u,c){const l=c||Number.POSITIVE_INFINITY;let f=0;return function(t){if(60===t)return e.enter(i),e.enter(o),e.enter(a),e.consume(t),e.exit(a),p;if(null===t||41===t||(0,n.asciiControl)(t))return r(t);return e.enter(i),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),m(t)};function p(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(o),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(u),p(t)):null===t||60===t||(0,n.markdownLineEnding)(t)?r(t):(e.consume(t),92===t?d:h)}function d(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function m(o){return 40===o?++f>l?r(o):(e.consume(o),m):41===o?f--?(e.consume(o),m):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(i),t(o)):null===o||(0,n.markdownLineEndingOrSpace)(o)?f?r(o):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(i),t(o)):(0,n.asciiControl)(o)?r(o):(e.consume(o),92===o?g:m)}function g(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}},7504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryLabel:()=>i});var n=r(488);function i(e,t,r,i,o,a){const s=this;let u,c=0;return function(t){return e.enter(i),e.enter(o),e.consume(t),e.exit(o),e.enter(a),l};function l(p){return null===p||91===p||93===p&&!u||94===p&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs||c>999?r(p):93===p?(e.exit(a),e.enter(o),e.consume(p),e.exit(o),e.exit(i),t):(0,n.markdownLineEnding)(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(t){return null===t||91===t||93===t||(0,n.markdownLineEnding)(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),u=u||!(0,n.markdownSpace)(t),92===t?p:f)}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,f):f(t)}}},4014:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factorySpace:()=>i});var n=r(488);function i(e,t,r,i){const o=i?i-1:Number.POSITIVE_INFINITY;let a=0;return function(i){if((0,n.markdownSpace)(i))return e.enter(r),s(i);return t(i)};function s(i){return(0,n.markdownSpace)(i)&&a++<o?(e.consume(i),s):(e.exit(r),t(i))}}},1559:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryTitle:()=>o});var n=r(4014),i=r(488);function o(e,t,r,o,a,s){let u;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),u=40===t?41:t,c};function c(r){return r===u?(e.enter(a),e.consume(r),e.exit(a),e.exit(o),t):(e.enter(s),l(r))}function l(t){return t===u?(e.exit(s),c(u)):null===t?r(t):(0,i.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===u||null===t||(0,i.markdownLineEnding)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?p:f)}function p(t){return t===u||92===t?(e.consume(t),f):f(t)}}},6096:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryWhitespace:()=>o});var n=r(4014),i=r(488);function o(e,t){let r;return function o(a){if((0,i.markdownLineEnding)(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,o;if((0,i.markdownSpace)(a))return(0,n.factorySpace)(e,o,r?"linePrefix":"lineSuffix")(a);return t(a)}}},488:(e,t,r)=>{"use strict";r.r(t),r.d(t,{asciiAlpha:()=>n,asciiAlphanumeric:()=>a,asciiAtext:()=>u,asciiControl:()=>c,asciiDigit:()=>i,asciiHexDigit:()=>o,asciiPunctuation:()=>s,markdownLineEnding:()=>f,markdownLineEndingOrSpace:()=>l,markdownSpace:()=>p,unicodePunctuation:()=>d,unicodeWhitespace:()=>h});const n=m(/[A-Za-z]/),i=m(/\d/),o=m(/[\dA-Fa-f]/),a=m(/[\dA-Za-z]/),s=m(/[!-/:-@[-`{-~]/),u=m(/[#-'*+\--9=?A-Z^-~]/);function c(e){return null!==e&&(e<32||127===e)}function l(e){return null!==e&&(e<0||32===e)}function f(e){return null!==e&&e<-2}function p(e){return-2===e||-1===e||32===e}const h=m(/\s/),d=m(/[!-/:-@[-`{-~\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]/);function m(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}},8300:(e,t,r)=>{"use strict";function n(e,t,r,n){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),[].splice.apply(e,o);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),[].splice.apply(e,o),a+=1e4,t+=1e4}function i(e,t){return e.length>0?(n(e,e.length,0,t),e):t}r.d(t,{d:()=>n,V:()=>i})},3886:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(488);function i(e){return null===e||(0,n.markdownLineEndingOrSpace)(e)||(0,n.unicodeWhitespace)(e)?1:(0,n.unicodePunctuation)(e)?2:void 0}},4666:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(8300);const i={}.hasOwnProperty;function o(e){const t={};let r=-1;for(;++r<e.length;)a(t,e[r]);return t}function a(e,t){let r;for(r in t){const n=(i.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let a;for(a in o){i.call(n,a)||(n[a]=[]);const e=o[a];s(n[a],Array.isArray(e)?e:e?[e]:[])}}}function s(e,t){let r=-1;const i=[];for(;++r<t.length;)("after"===t[r].add?e:i).push(t[r]);(0,n.d)(e,0,0,i)}},8031:(e,t,r)=>{"use strict";function n(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}r.d(t,{o:()=>n})},2116:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(9477),i=r(8031);const o=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function a(e){return e.replace(o,s)}function s(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return(0,i.o)(r.slice(t?2:1),t?16:10)}return(0,n.T)(r)||e}},2493:(e,t,r)=>{"use strict";function n(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r.r(t),r.d(t,{normalizeIdentifier:()=>n})},3879:(e,t,r)=>{"use strict";function n(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}r.d(t,{C:()=>n})},2988:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(8300);function i(e){const t={};let r,i,a,s,u,c,l,f=-1;for(;++f<e.length;){for(;f in t;)f=t[f];if(r=e[f],f&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[f-1][1].type&&(c=r[1]._tokenizer.events,a=0,a<c.length&&"lineEndingBlank"===c[a][1].type&&(a+=2),a<c.length&&"content"===c[a][1].type))for(;++a<c.length&&"content"!==c[a][1].type;)"chunkText"===c[a][1].type&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,o(e,f)),f=t[f],l=!0);else if(r[1]._container){for(a=f,i=void 0;a--&&(s=e[a],"lineEnding"===s[1].type||"lineEndingBlank"===s[1].type);)"enter"===s[0]&&(i&&(e[i][1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},e[i][1].start),u=e.slice(i,f),u.unshift(r),(0,n.d)(e,i,f-i+1,u))}}return!l}function o(e,t){const r=e[t][1],i=e[t][2];let o=t-1;const a=[],s=r._tokenizer||i.parser[r.contentType](r.start),u=s.events,c=[],l={};let f,p,h=-1,d=r,m=0,g=0;const y=[g];for(;d;){for(;e[++o][1]!==d;);a.push(o),d._tokenizer||(f=i.sliceStream(d),d.next||f.push(null),p&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),p=d,d=d.next}for(d=r;++h<u.length;)"exit"===u[h][0]&&"enter"===u[h-1][0]&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(g=h+1,y.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),h=y.length;h--;){const t=u.slice(y[h],y[h+1]),r=a.pop();c.unshift([r,r+t.length-1]),(0,n.d)(e,r,2,t)}for(h=-1;++h<c.length;)l[m+c[h][0]]=m+c[h][1],m+=c[h][1]-c[h][0]-1;return l}},7605:(e,t,r)=>{"use strict";r.r(t),r.d(t,{codes:()=>n});const n={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}},480:(e,t,r)=>{"use strict";r.r(t),r.d(t,{constants:()=>n});const n={attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:3,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}},58:(e,t,r)=>{"use strict";r.r(t),r.d(t,{types:()=>n});const n={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}},469:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(3428);const i=/[\t ]*(?:\r?\n|\r)/g;function o(){return e=>{(0,n.visit)(e,"text",((e,t,r)=>{const n=[];let o=0;i.lastIndex=0;let a=i.exec(e.value);for(;a;){const t=a.index;o!==t&&n.push({type:"text",value:e.value.slice(o,t)}),n.push({type:"break"}),o=t+a[0].length,a=i.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return o<e.value.length&&n.push({type:"text",value:e.value.slice(o)}),r.children.splice(t,1,...n),t+n.length}))}}},4914:(e,t,r)=>{"use strict";r.r(t),r.d(t,{remarkHeadingId:()=>o});var n=r(3428);const i={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};function o(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",{text:{[i.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==i.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==i.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),o)}function o(n){return[i.carriageReturn,i.lineFeed,i.carriageReturnLineFeed,null,i.backslash,i.leftCurlyBrace].includes(n)?r(n):n===i.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),o)}}},t,r)(n)}}}}),t("fromMarkdownExtensions",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){(0,n.visit)(e,"idString",((e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)})),(0,n.visit)(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}}},5164:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>X});var n=r(4014),i=r(488),o=r(6096);function a(e,t,r,a,s,u,c,l,f,p,h,d,m,g,y){let v,b;return function(t){return e.enter(a),e.enter(s),e.consume(t),e.exit(s),E};function E(t){return 35===t?(v=c,w(t)):46===t?(v=l,w(t)):58===t||95===t||(0,i.asciiAlpha)(t)?(e.enter(u),e.enter(f),e.consume(t),k):y&&(0,i.markdownSpace)(t)?(0,n.factorySpace)(e,E,"whitespace")(t):!y&&(0,i.markdownLineEndingOrSpace)(t)?(0,o.factoryWhitespace)(e,E)(t):j(t)}function w(t){return e.enter(u),e.enter(v),e.enter(v+"Marker"),e.consume(t),e.exit(v+"Marker"),x}function x(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||(0,i.markdownLineEndingOrSpace)(t)?r(t):(e.enter(v+"Value"),e.consume(t),S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit(v+"Value"),e.exit(v),e.exit(u),E(t)):(e.consume(t),S)}function k(t){return 45===t||46===t||58===t||95===t||(0,i.asciiAlphanumeric)(t)?(e.consume(t),k):(e.exit(f),y&&(0,i.markdownSpace)(t)?(0,n.factorySpace)(e,A,"whitespace")(t):!y&&(0,i.markdownLineEndingOrSpace)(t)?(0,o.factoryWhitespace)(e,A)(t):A(t))}function A(t){return 61===t?(e.enter(p),e.consume(t),e.exit(p),D):(e.exit(u),E(t))}function D(t){return null===t||60===t||61===t||62===t||96===t||125===t||y&&(0,i.markdownLineEnding)(t)?r(t):34===t||39===t?(e.enter(h),e.enter(m),e.consume(t),e.exit(m),b=t,C):y&&(0,i.markdownSpace)(t)?(0,n.factorySpace)(e,D,"whitespace")(t):!y&&(0,i.markdownLineEndingOrSpace)(t)?(0,o.factoryWhitespace)(e,D)(t):(e.enter(d),e.enter(g),e.consume(t),b=void 0,F)}function F(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit(g),e.exit(d),e.exit(u),E(t)):(e.consume(t),F)}function C(t){return t===b?(e.enter(m),e.consume(t),e.exit(m),e.exit(h),e.exit(u),T):(e.enter(d),P(t))}function P(t){return t===b?(e.exit(d),C(t)):null===t?r(t):(0,i.markdownLineEnding)(t)?y?r(t):(0,o.factoryWhitespace)(e,P)(t):(e.enter(g),e.consume(t),O)}function O(t){return t===b||null===t||(0,i.markdownLineEnding)(t)?(e.exit(g),P(t)):(e.consume(t),O)}function T(e){return 125===e||(0,i.markdownLineEndingOrSpace)(e)?E(e):j(e)}function j(n){return 125===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(a),t):r(n)}}function s(e,t,r,n,o,a,s){let u=0,c=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),l};function l(r){return 93===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(n),t):(e.enter(a),f(r))}function f(t){return null===t||u>999?r(t):93!==t||c--?(0,i.markdownLineEnding)(t)?s?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):(e.enter("chunkText",{contentType:"text"}),p(t)):h(t)}function p(t){return null===t||(0,i.markdownLineEnding)(t)||u>999?(e.exit("chunkText"),f(t)):91===t&&++c>3?r(t):93!==t||c--?(e.consume(t),92===t?d:p):(e.exit("chunkText"),h(t))}function h(r){return e.exit(a),e.enter(o),e.consume(r),e.exit(o),e.exit(n),t}function d(t){return 91===t||92===t||93===t?(e.consume(t),u++,p):p(t)}}function u(e,t,r,n){const o=this;return function(t){if((0,i.asciiAlpha)(t))return e.enter(n),e.consume(t),a;return r(t)};function a(s){return 45===s||95===s||(0,i.asciiAlphanumeric)(s)?(e.consume(s),a):(e.exit(n),45===o.previous||95===o.previous?r(s):t(s))}}const c={tokenize:function(e,t,r){const o=this,a=o.events[o.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let c,h=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),d(t)};function d(t){return 58===t?(e.consume(t),h++,d):h<3?r(t):(e.exit("directiveContainerSequence"),u.call(o,e,m,r,"directiveContainerName")(t))}function m(t){return 91===t?e.attempt(l,g,g)(t):g(t)}function g(t){return 123===t?e.attempt(f,y,y)(t):y(t)}function y(t){return(0,n.factorySpace)(e,v,"whitespace")(t)}function v(n){return e.exit("directiveContainerFence"),null===n?b(n):(0,i.markdownLineEnding)(n)?o.interrupt?t(n):e.attempt(p,E,b)(n):r(n)}function b(r){return e.exit("directiveContainer"),t(r)}function E(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),w(r))}function w(t){return null===t?D(t):e.attempt({tokenize:F,partial:!0},D,s?(0,n.factorySpace)(e,x,"linePrefix",s+1):x)(t)}function x(t){if(null===t)return D(t);const r=e.enter("chunkDocument",{contentType:"document",previous:c});return c&&(c.next=r),c=r,S(t)}function S(t){if(null===t){const r=e.exit("chunkDocument");return o.parser.lazy[r.start.line]=!1,D(t)}return(0,i.markdownLineEnding)(t)?e.check(p,k,A)(t):(e.consume(t),S)}function k(t){e.consume(t);const r=e.exit("chunkDocument");return o.parser.lazy[r.start.line]=!1,w}function A(t){const r=e.exit("chunkDocument");return o.parser.lazy[r.start.line]=!1,D(t)}function D(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function F(e,t,r){let o=0;return(0,n.factorySpace)(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),a(t)}),"linePrefix",4);function a(t){return 58===t?(e.consume(t),o++,a):o<h?r(t):(e.exit("directiveContainerSequence"),(0,n.factorySpace)(e,s,"whitespace")(t))}function s(n){return null===n||(0,i.markdownLineEnding)(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},l={tokenize:function(e,t,r){return s(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},f={tokenize:function(e,t,r){return a(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},p={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const h={tokenize:function(e,t,r){const o=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),a};function a(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),u.call(o,e,s,r,"directiveLeafName")):r(t)}function s(t){return 91===t?e.attempt(d,c,c)(t):c(t)}function c(t){return 123===t?e.attempt(m,l,l)(t):l(t)}function l(t){return(0,n.factorySpace)(e,f,"whitespace")(t)}function f(n){return null===n||(0,i.markdownLineEnding)(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},d={tokenize:function(e,t,r){return s(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},m={tokenize:function(e,t,r){return a(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const g={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),u.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(y,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(v,a,a)(t):a(t)}function a(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},y={tokenize:function(e,t,r){return s(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},v={tokenize:function(e,t,r){return a(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const b=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],E={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function w(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function x(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function S(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||w(e)}var k=r(9477);const A=String.fromCharCode,D=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function F(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let i,o,a=0,s=-1,u="";t.position&&("start"in t.position||"indent"in t.position?(o=t.position.indent,i=t.position.start):i=t.position);let c,l=(i?i.line:0)||1,f=(i?i.column:0)||1,p=d();for(a--;++a<=e.length;)if(10===c&&(f=(o?o[s]:0)||1),c=e.charCodeAt(a),38===c){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||r&&i===r){u+=A(c),f++;continue}const o=a+1;let s,l=o,y=o;if(35===i){y=++l;const t=e.charCodeAt(y);88===t||120===t?(s="hexadecimal",y=++l):s="decimal"}else s="named";let v="",D="",F="";const P="named"===s?S:"decimal"===s?w:x;for(y--;++y<=e.length;){const t=e.charCodeAt(y);if(!P(t))break;F+=A(t),"named"===s&&b.includes(F)&&(v=F,D=(0,k.T)(F))}let O=59===e.charCodeAt(y);if(O){y++;const e="named"===s&&(0,k.T)(F);e&&(v=F,D=e)}let T=1+y-o,j="";if(O||!1!==t.nonTerminated)if(F)if("named"===s){if(O&&!D)m(5,1);else if(v!==F&&(y=l+v.length,T=1+y-l,O=!1),!O){const r=v?1:3;if(t.attribute){const t=e.charCodeAt(y);61===t?(m(r,T),D=""):S(t)?D="":m(r,T)}else m(r,T)}j=D}else{O||m(2,T);let e=Number.parseInt(F,"hexadecimal"===s?16:10);if((h=e)>=55296&&h<=57343||h>1114111)m(7,T),j=A(65533);else if(e in E)m(6,T),j=E[e];else{let t="";C(e)&&m(6,T),e>65535&&(e-=65536,t+=A(e>>>10|55296),e=56320|1023&e),j=t+A(e)}}else"named"!==s&&m(4,T);else;if(j){g(),p=d(),a=y-1,f+=y-o+1,n.push(j);const r=d();r.offset++,t.reference&&t.reference.call(t.referenceContext,j,{start:p,end:r},e.slice(o-1,y)),p=r}else F=e.slice(o-1,y),u+=F,f+=F.length,a=y-1}else 10===c&&(l++,s++,f=0),Number.isNaN(c)?g():(u+=A(c),f++);var h;return n.join("");function d(){return{line:l,column:f,offset:a+((i?i.offset:0)||0)}}function m(e,r){let n;t.warning&&(n=d(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,D[e],n,e))}function g(){u&&(n.push(u),t.text&&t.text.call(t.textContext,u,{start:p,end:d()}),u="")}}function C(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function P(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function O(e){return"&#x"+e.toString(16).toUpperCase()+";"}var T=r(213);const j=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=(0,T.convert)(t),o=n?-1:1;!function e(a,s,u){const c="object"==typeof a&&null!==a?a:{};let l;"string"==typeof c.type&&(l="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(l?"<"+l+">":"")+")"}));return f;function f(){let c,l,f,p=[];if((!t||i(a,s,u[u.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,u)),false===p[0]))return p;if(a.children&&"skip"!==p[0])for(l=(n?a.children.length:-1)+o,f=u.concat(a);l>-1&&l<a.children.length;){if(c=e(a.children[l],l,f)(),false===c[0])return c;l="number"==typeof c[1]?c[1]:l+o}return p}}(e,null,[])()};var _=r(5471),I=r(7567),R=r(1481);const L={}.hasOwnProperty,N=/^[^\t\n\r "#'.<=>`}]+$/;K.peek=function(){return":"};const M={canContainEols:["textDirective"],enter:{directiveContainer:function(e){z.call(this,"containerDirective",e)},directiveContainerAttributes:$,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){z.call(this,"leafDirective",e)},directiveLeafAttributes:$,directiveText:function(e){z.call(this,"textDirective",e)},directiveTextAttributes:$},exit:{directiveContainer:Q,directiveContainerAttributeClassValue:V,directiveContainerAttributeIdValue:q,directiveContainerAttributeName:G,directiveContainerAttributeValue:H,directiveContainerAttributes:W,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:U,directiveLeaf:Q,directiveLeafAttributeClassValue:V,directiveLeafAttributeIdValue:q,directiveLeafAttributeName:G,directiveLeafAttributeValue:H,directiveLeafAttributes:W,directiveLeafName:U,directiveText:Q,directiveTextAttributeClassValue:V,directiveTextAttributeIdValue:q,directiveTextAttributeName:G,directiveTextAttributeValue:H,directiveTextAttributes:W,directiveTextName:U}},B={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:K,leafDirective:K,textDirective:K}};function z(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function U(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function $(){this.setData("directiveAttributes",[]),this.buffer()}function q(e){this.getData("directiveAttributes").push(["id",F(this.sliceSerialize(e))])}function V(e){this.getData("directiveAttributes").push(["class",F(this.sliceSerialize(e))])}function H(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=F(this.sliceSerialize(e))}function G(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function W(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function Q(e){this.exit(e)}function K(e,t,r){const n=function(e){let t=0;"containerDirective"===e.type?(j(e,"containerDirective",r),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t);function r(e,r){let n=r.length,i=0;for(;n--;)"containerDirective"===r[n].type&&i++;i>t&&(t=i)}}(e),i=r.enter(e.type);let o=n+(e.name||"")+function(e,t){let r=e;if("containerDirective"===e.type){const t=(e.children||[])[0];if(!Y(t))return"";r=t}const n=t.enter("label"),i=t.enter(e.type+"Label"),o=(0,I.p)(r,t,{before:"[",after:"]"});return i(),n(),o?"["+o+"]":""}(e,r)+function(e,t){const r=(0,R.l)(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},o=[];let a,s,u,c;for(c in i)if(L.call(i,c)&&void 0!==i[c]&&null!==i[c]){const e=String(i[c]);if("id"===c)u=N.test(e)?"#"+e:l("id",e);else if("class"===c){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(N.test(t[i])?n:r).push(t[i]);a=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else o.push(l(c,e))}a&&o.unshift(a);s&&o.unshift(s);u&&o.unshift(u);return o.length>0?"{"+o.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return P(e,Object.assign({format:O},t))}(t,{subset:n})+r:"")}}(e,r);if("containerDirective"===e.type){const t=function(e,t){Y((e.children||[])[0])&&(e=Object.assign({},e,{children:e.children.slice(1)}));return(0,_.K)(e,t)}(e,r);t&&(o+="\n"+t),o+="\n"+n}return i(),o}function Y(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}function X(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:g},flow:{58:[c,h]}}),t("fromMarkdownExtensions",M),t("toMarkdownExtensions",B)}},9715:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(488),i=r(8326);const o=Object.assign(a(Error),{eval:a(EvalError),range:a(RangeError),reference:a(ReferenceError),syntax:a(SyntaxError),type:a(TypeError),uri:a(URIError)});function a(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?i(t,...r):t;return new e(n)}}const s={}.hasOwnProperty,u={yaml:"-",toml:"+"};function c(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=l(e[r]);return t}function l(e){let t=e;if("string"==typeof t){if(!s.call(u,t))throw o("Missing matter definition for `%s`",t);t={type:t,marker:u[t]}}else if("object"!=typeof t)throw o("Expected matter to be an object, not `%j`",t);if(!s.call(t,"type"))throw o("Missing `type` in matter `%j`",t);if(!s.call(t,"fence")&&!s.call(t,"marker"))throw o("Missing `marker` or `fence` in matter `%j`",t);return t}function f(e){const t=e.type,r=e.anywhere,i=t+"Value",o=t+"Fence",a=o+"Sequence",s={tokenize:function(e,t,r){let i=0;return function(t){if(t===u.charCodeAt(i))return e.enter(o),e.enter(a),s(t);return r(t)};function s(t){return i===u.length?(e.exit(a),(0,n.markdownSpace)(t)?(e.enter("whitespace"),c(t)):l(t)):t===u.charCodeAt(i++)?(e.consume(t),s):r(t)}function c(t){return(0,n.markdownSpace)(t)?(e.consume(t),c):(e.exit("whitespace"),l(t))}function l(i){return null===i||(0,n.markdownLineEnding)(i)?(e.exit(o),t(i)):r(i)}},partial:!0};let u;return{tokenize:function(o,a,c){const l=this;return function(n){const i=l.now();if(1!==i.column||!r&&1!==i.line)return c(n);return o.enter(t),u=p(e,"open"),o.attempt(s,f,c)(n)};function f(t){return u=p(e,"close"),m(t)}function h(e){return null===e||(0,n.markdownLineEnding)(e)?m(e):(o.enter(i),d(e))}function d(e){return null===e||(0,n.markdownLineEnding)(e)?(o.exit(i),m(e)):(o.consume(e),d)}function m(e){return null===e?c(e):(o.enter("lineEnding"),o.consume(e),o.exit("lineEnding"),o.attempt(s,g,h))}function g(e){return o.exit(t),a(e)}},concrete:!0}}function p(e,t){return e.marker?h(e.marker,t).repeat(3):h(e.fence,t)}function h(e,t){return"string"==typeof e?e:e[t]}function d(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function m(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function g(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function y(e){const t=v(e,"open"),r=v(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function v(e,t){return e.marker?b(e.marker,t).repeat(3):b(e.fence,t)}function b(e,t){return"string"==typeof e?e:e[t]}function E(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=c(e),r={};let n,i,o=-1;for(;++o<t.length;)n=t[o],i=p(n,"open").charCodeAt(0),i in r?r[i].push(f(n)):r[i]=[f(n)];return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=c(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=d(e),n[e.type]=m,n[e.type+"Value"]=g}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=c(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=y(e),t.push({atBreak:!0,character:v(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}},3314:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Te});var n=r(4666),i=r(488);const o={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),o):r(t)}function o(t){return 87===t||119===t?(e.consume(t),a):r(t)}function a(t){return 46===t?(e.consume(t),s):r(t)}function s(e){return null===e||(0,i.markdownLineEnding)(e)?r(e):t(e)}},partial:!0},a={tokenize:function(e,t,r){let n,o;return a;function a(t){return 38===t?e.check(c,l,s)(t):46===t||95===t?e.check(u,l,s)(t):null===t||(0,i.asciiControl)(t)||(0,i.unicodeWhitespace)(t)||45!==t&&(0,i.unicodePunctuation)(t)?l(t):(e.consume(t),a)}function s(t){return 46===t?(o=n,n=void 0,e.consume(t),a):(95===t&&(n=!0),e.consume(t),a)}function l(e){return o||n?r(e):t(e)}},partial:!0},s={tokenize:function(e,t){let r=0;return n;function n(a){return 38===a?e.check(c,t,i)(a):(40===a&&r++,41===a?e.check(u,o,i)(a):y(a)?t(a):g(a)?e.check(u,t,i)(a):(e.consume(a),n))}function i(t){return e.consume(t),n}function o(e){return r--,r<0?t(e):i(e)}},partial:!0},u={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return g(i)?(e.consume(i),n):y(i)?t(i):r(i)}},partial:!0},c={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return(0,i.asciiAlpha)(t)?(e.consume(t),n):59===t?(e.consume(t),o):r(t)}function o(e){return y(e)?t(e):r(e)}},partial:!0},l={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!b(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(o,e.attempt(a,e.attempt(s,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:b},f={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!E(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),o};function o(t){return 84===t||116===t?(e.consume(t),u):r(t)}function u(t){return 84===t||116===t?(e.consume(t),c):r(t)}function c(t){return 80===t||112===t?(e.consume(t),l):r(t)}function l(t){return 83===t||115===t?(e.consume(t),f):f(t)}function f(t){return 58===t?(e.consume(t),p):r(t)}function p(t){return 47===t?(e.consume(t),h):r(t)}function h(t){return 47===t?(e.consume(t),d):r(t)}function d(t){return null===t||(0,i.asciiControl)(t)||(0,i.unicodeWhitespace)(t)||(0,i.unicodePunctuation)(t)?r(t):e.attempt(a,e.attempt(s,m),r)(t)}function m(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:E},p={tokenize:function(e,t,r){const n=this;let o,a;return function(t){if(!v(t)||!w(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return v(t)?(e.consume(t),s):64===t?(e.consume(t),c):r(t)}function c(t){return 46===t?e.check(u,h,l)(t):45===t||95===t?e.check(u,r,f)(t):(0,i.asciiAlphanumeric)(t)?(!a&&(0,i.asciiDigit)(t)&&(a=!0),e.consume(t),c):h(t)}function l(t){return e.consume(t),o=!0,a=void 0,c}function f(t){return e.consume(t),p}function p(t){return 46===t?e.check(u,r,l)(t):c(t)}function h(n){return o&&!a?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:w},h={},d={text:h};let m=48;for(;m<123;)h[m]=p,m++,58===m?m=65:91===m&&(m=97);function g(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function y(e){return null===e||60===e||(0,i.markdownLineEndingOrSpace)(e)}function v(e){return 43===e||45===e||46===e||95===e||(0,i.asciiAlphanumeric)(e)}function b(e){return null===e||40===e||42===e||95===e||126===e||(0,i.markdownLineEndingOrSpace)(e)}function E(e){return null===e||!(0,i.asciiAlpha)(e)}function w(e){return 47!==e&&E(e)}function x(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}h[43]=p,h[45]=p,h[46]=p,h[95]=p,h[72]=[p,f],h[104]=[p,f],h[87]=[p,l],h[119]=[p,l];var S=r(2929),k=r(4014),A=r(2493);const D={tokenize:function(e,t,r){const n=this;return(0,k.factorySpace)(e,(function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function F(e,t,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return r(i);const s=(0,A.normalizeIdentifier)(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.charCodeAt(0)||!o.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function C(e,t){let r,n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...u),e}function P(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),u};function u(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){let f;return null===u||91===u||s++>999?r(u):93===u?a?(e.exit("chunkString"),f=e.exit("gfmFootnoteCallString"),o.includes((0,A.normalizeIdentifier)(n.sliceSerialize(f)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(u):r(u)):r(u):(e.consume(u),(0,i.markdownLineEndingOrSpace)(u)||(a=!0),92===u?l:c)}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function O(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s,u=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),l):r(t)}function l(t){let o;return null===t||91===t||u>999?r(t):93===t?s?(o=e.exit("gfmFootnoteDefinitionLabelString"),a=(0,A.normalizeIdentifier)(n.sliceSerialize(o)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h):r(t):(0,i.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u++,l):(e.enter("chunkString").contentType="string",f(t))}function f(t){return null===t||(0,i.markdownLineEnding)(t)||91===t||93===t||u>999?(e.exit("chunkString"),l(t)):((0,i.markdownLineEndingOrSpace)(t)||(s=!0),u++,e.consume(t),92===t?p:f)}function p(t){return 91===t||92===t||93===t?(e.consume(t),u++,f):f(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),(0,k.factorySpace)(e,d,"gfmFootnoteDefinitionWhitespace")):r(t)}function d(e){return o.includes(a)||o.push(a),t(e)}}function T(e,t,r){return e.check(S.w,t,e.attempt(D,t,r))}function j(e){e.exit("gfmFootnoteDefinition")}var _=r(8300),I=r(3886),R=r(3879);function L(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const u=(0,I.r)(i);if(126===o)return a>1?n(o):(e.consume(o),a++,s);if(a<2&&!t)return n(o);const c=e.exit("strikethroughSequenceTemporary"),l=(0,I.r)(o);return c._open=!l||2===l&&Boolean(u),c._close=!u||2===u&&Boolean(l),r(o)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},o={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",o,t]];(0,_.d)(a,a.length,0,(0,R.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),(0,_.d)(a,a.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),(0,_.d)(e,n-1,r-n+3,a),r=n+a.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const N={flow:{null:{tokenize:function(e,t,r){const n=this,o=[];let a,s,u=0;return function(t){if(e.enter("table")._align=o,e.enter("tableHead"),e.enter("tableRow"),124===t)return c(t);return u++,e.enter("temporaryTableCellContent"),p(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l}function l(t){return null===t||(0,i.markdownLineEnding)(t)?function(t){if(null===t)return r(t);e.exit("tableRow"),e.exit("tableHead");const i=n.interrupt;return n.interrupt=!0,e.attempt({tokenize:O,partial:!0},(function(t){return n.interrupt=i,e.enter("tableDelimiterRow"),d(t)}),(function(e){return n.interrupt=i,r(e)}))(t)}(t):(0,i.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),f):(a&&(a=void 0,u++),124===t?c(t):(e.enter("temporaryTableCellContent"),p(t)))}function f(t){return(0,i.markdownSpace)(t)?(e.consume(t),f):(e.exit("whitespace"),l(t))}function p(t){return null===t||124===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?h:p)}function h(t){return 92===t||124===t?(e.consume(t),p):p(t)}function d(t){return null===t||(0,i.markdownLineEnding)(t)?b(t):(0,i.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),m):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,o.push(null),g):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),o.push("left"),y):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):r(t)}function m(t){return(0,i.markdownSpace)(t)?(e.consume(t),m):(e.exit("whitespace"),d(t))}function g(t){return 45===t?(e.consume(t),g):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),o[o.length-1]="left"===o[o.length-1]?"center":"right",v):d(t))}function y(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,g):r(t)}function v(t){return null===t||(0,i.markdownLineEnding)(t)?b(t):(0,i.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),m):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):r(t)}function b(t){return e.exit("tableDelimiterRow"),s&&u===o.length?null===t?E(t):e.check(M,E,e.attempt({tokenize:O,partial:!0},(0,k.factorySpace)(e,w,"linePrefix",4),E))(t):r(t)}function E(r){return e.exit("table"),t(r)}function w(t){return e.enter("tableBody"),x(t)}function x(t){return e.enter("tableRow"),124===t?S(t):(e.enter("temporaryTableCellContent"),F(t))}function S(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||(0,i.markdownLineEnding)(t)?function(t){if(e.exit("tableRow"),null===t)return P(t);return e.check(M,P,e.attempt({tokenize:O,partial:!0},(0,k.factorySpace)(e,x,"linePrefix",4),P))(t)}(t):(0,i.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),D):124===t?S(t):(e.enter("temporaryTableCellContent"),F(t))}function D(t){return(0,i.markdownSpace)(t)?(e.consume(t),D):(e.exit("whitespace"),A(t))}function F(t){return null===t||124===t||(0,i.markdownLineEndingOrSpace)(t)?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?C:F)}function C(t){return 92===t||124===t?(e.consume(t),F):F(t)}function P(t){return e.exit("tableBody"),E(t)}function O(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,k.factorySpace)(e,o,"linePrefix")};function o(o){if(n.parser.lazy[n.now().line]||null===o||(0,i.markdownLineEnding)(o))return r(o);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?r(o):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,r(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(o))}}},resolve:function(e,t){let r,n,i,o,a,s,u,c=-1;for(;++c<e.length;){const l=e[c][1];if(i&&("temporaryTableCellContent"===l.type&&(o=o||c,a=c),("tableCellDivider"===l.type||"tableRow"===l.type)&&a)){const r={type:"tableContent",start:e[o][1].start,end:e[a][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(o,a-o+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),c-=a-o-3,o=void 0,a=void 0}if("exit"===e[c][0]&&void 0!==s&&s+(u?0:1)<c&&("tableCellDivider"===l.type||"tableRow"===l.type&&(s+3<c||"whitespace"!==e[s][1].type))){const i={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[c][1].end};e.splice(c+("tableCellDivider"===l.type?1:0),0,["exit",i,t]),e.splice(s,0,["enter",i,t]),c+=2,s=c+1,u=!0}"tableRow"===l.type&&(i="enter"===e[c][0],i&&(s=c+1,u=!1)),"tableDelimiterRow"===l.type&&(n="enter"===e[c][0],n&&(s=c+1,u=!1)),"tableHead"===l.type&&(r="enter"===e[c][0])}return e}}}},M={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),o};function o(a){return-1===a||32===a?(e.consume(a),n++,4===n?t:o):null===a||(0,i.markdownLineEndingOrSpace)(a)?t(a):r(a)}},partial:!0};const B={tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return(0,i.markdownSpace)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:U},t,r)):r(n)}}},z={text:{91:B}};function U(e,t,r){const n=this;return(0,k.factorySpace)(e,(function(e){const o=n.events[n.events.length-1];return o&&"whitespace"===o[1].type&&null!==e&&!(0,i.markdownLineEndingOrSpace)(e)?t(e):r(e)}),"whitespace")}function $(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}var q=r(7918),V=r(213);const H={}.hasOwnProperty,G=function(e,t,r,n){let i,o;"string"==typeof t||t instanceof RegExp?(o=[[t,r]],i=n):(o=t,i=r),i||(i={});const a=(0,V.convert)(i.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([W(e[r][0]),Q(e[r][1])])}else{let r;for(r in e)H.call(e,r)&&t.push([W(r),Q(e[r])])}return t}(o);let u=-1;for(;++u<s.length;)(0,q.S4)(e,"text",c);return e;function c(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(a(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=s[u][0],n=s[u][1];let i,o=0,a=t.children.indexOf(e),c=[];r.lastIndex=0;let l=r.exec(e.value);for(;l;){i=l.index;let t=n(...l,{index:l.index,input:l.input});if("string"==typeof t&&(t=t.length>0?{type:"text",value:t}:void 0),!1!==t&&(o!==i&&c.push({type:"text",value:e.value.slice(o,i)}),Array.isArray(t)?c.push(...t):t&&c.push(t),o=i+l[0].length),!r.global)break;l=r.exec(e.value)}void 0===i?(c=[e],a--):(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),t.children.splice(a,1,...c));return a+c.length+1}(e,r)}};function W(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Q(e){return"function"==typeof e?e:()=>e}const K="phrasing",Y=["autolink","link","image","label"],X={transforms:[function(e){G(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ee],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,te]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:J,literalAutolinkHttp:J,literalAutolinkWww:J},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},Z={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:K,notInConstruct:Y},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:K,notInConstruct:Y},{character:":",before:"[ps]",after:"\\/",inConstruct:K,notInConstruct:Y}]};function J(e){this.config.enter.autolinkProtocol.call(this,e)}function ee(e,t,r,n,i){let o="";if(!re(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(r))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let r,n,i,o;if(t)for(e=e.slice(0,t.index),o=t[0],r=o.indexOf(")"),n=$(e,"("),i=$(e,")");-1!==r&&n>i;)e+=o.slice(0,r+1),o=o.slice(r+1),r=o.indexOf(")"),i++;return[e,o]}(r+n);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function te(e,t,r,n){return!(!re(n,!0)||/[_-\d]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function re(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||(0,i.unicodeWhitespace)(r)||(0,i.unicodePunctuation)(r))&&(!t||47!==r)}var ne=r(2116);function ie(e){return e.label||!e.identifier?e.label||"":(0,ne.v)(e.identifier)}var oe=r(5471),ae=r(4671),se=r(3316),ue=r(3428),ce=r(3339);let le=!1,fe=!1;function pe(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,t,r){const n=r.enter("footnoteDefinition"),i=r.enter("label"),o=(0,se.T)(r,ie(e),{before:"^",after:"]"}),a="[^"+o+"]:";i();const s=(0,ae.Q)((0,oe.K)(e,r),(function(e,t,r){if(t)return(r?"":" ")+e;return(r?a:a+" ")+e}));n(),!le&&o.includes(":")&&(console.warn("[mdast-util-gfm-footnote] Warning: Found a colon in footnote identifier `"+o+"`. GitHub currently crahes on colons in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),le=!0);fe||(0,ue.visit)(e,"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)"),fe=!0,ce.BK)));return s},footnoteReference:e}};function e(e,t,r){const n=r.enter("footnoteReference"),i=r.enter("reference"),o=(0,se.T)(r,ie(e),{before:"^",after:"]"});return i(),n(),"[^"+o+"]"}}var he=r(7567);const de={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},me={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:ge}};function ge(e,t,r){const n=r.enter("emphasis"),i=(0,he.p)(e,r,{before:"~",after:"~"});return n(),"~~"+i+"~~"}ge.peek=function(){return"~"};var ye=r(7866);function ve(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){const e=r.unsafe[o],t=(0,ye.T)(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function be(e){return null==e?"":String(e)}function Ee(e){return e.length}function we(e){const t="string"==typeof e?e.charCodeAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}ve.peek=function(){return"`"};const xe={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t,children:[]},e),this.setData("inTable",!0)},tableData:ke,tableHeader:ke,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Ae));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Se,tableHeader:Se,tableRow:Se}};function Se(e){this.exit(e)}function ke(e){this.enter({type:"tableCell",children:[]},e)}function Ae(e,t){return"|"===t?t:e}function De(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,r){return s(function(e,t){const r=e.children;let n=-1;const i=[],o=t.enter("table");for(;++n<r.length;)i[n]=u(r[n],t);return o(),i}(e,r),e.align)},tableRow:function(e,t,r){const n=s([u(e,r)]);return n.slice(0,n.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=ve(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r){const n=r.enter("tableCell"),i=r.enter("phrasing"),a=(0,he.p)(e,r,{before:o,after:o});return i(),n(),a}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Ee,o=[];let a=-1;const s=[],u=[],c=[];let l,f,p,h,d,m,g,y,v,b=0;for(;++a<e.length;){for(l=-1,f=[],p=[],e[a].length>b&&(b=e[a].length);++l<e[a].length;)d=be(e[a][l]),!1!==r.alignDelimiters&&(h=i(d),p[l]=h,(void 0===c[l]||h>c[l])&&(c[l]=h)),f.push(d);s[a]=f,u[a]=p}if(l=-1,"object"==typeof n&&"length"in n)for(;++l<b;)o[l]=we(n[l]);else for(v=we(n);++l<b;)o[l]=v;for(l=-1,f=[],p=[];++l<b;)v=o[l],g="",y="",99===v?(g=":",y=":"):108===v?g=":":114===v&&(y=":"),h=!1===r.alignDelimiters?1:Math.max(1,c[l]-g.length-y.length),d=g+"-".repeat(h)+y,!1!==r.alignDelimiters&&(h=g.length+h+y.length,h>c[l]&&(c[l]=h),p[l]=h),f[l]=d;s.splice(1,0,f),u.splice(1,0,p),a=-1;const E=[];for(;++a<s.length;){for(f=s[a],p=u[a],l=-1,m=[];++l<b;)d=f[l]||"",g="",y="",!1!==r.alignDelimiters&&(h=c[l]-(p[l]||0),v=o[l],114===v?g=" ".repeat(h):99===v?h%2?(g=" ".repeat(h/2+.5),y=" ".repeat(h/2-.5)):(g=" ".repeat(h/2),y=g):y=" ".repeat(h)),!1===r.delimiterStart||l||m.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===d||!1===r.delimiterStart&&!l||m.push(" "),!1!==r.alignDelimiters&&m.push(g),m.push(d),!1!==r.alignDelimiters&&m.push(y),!1!==r.padding&&m.push(" "),!1===r.delimiterEnd&&l===b-1||m.push("|");E.push(!1===r.delimiterEnd?m.join("").replace(/ +$/,""):m.join(""))}return E.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function u(e,t){const r=e.children;let n=-1;const i=[],o=t.enter("tableRow");for(;++n<r.length;)i[n]=a(r[n],0,t);return o(),i}}function Fe(e,t,r){const n=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let i=r.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let o=i.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const a=r.enter("listItem"),s=(0,ae.Q)((0,oe.K)(e,r),(function(e,t,r){if(t)return(r?"":" ".repeat(o))+e;return(r?i:i+" ".repeat(o-i.length))+e}));return a(),s}const Ce={exit:{taskListCheckValueChecked:Oe,taskListCheckValueUnchecked:Oe,paragraph:function(e){const t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,i=r.children[0];let o,a=-1;if(t&&"listItem"===t.type&&"boolean"==typeof t.checked&&i&&"text"===i.type){for(;++a<n.length;){const e=n[a];if("paragraph"===e.type){o=e;break}}o===r&&(i.value=i.value.slice(1),0===i.value.length?r.children.shift():(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}this.exit(e)}}},Pe={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r){const n=e.children[0];let i=Fe(e,t,r);"boolean"==typeof e.checked&&n&&"paragraph"===n.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}};function Oe(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Te(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return(0,n.W)([d,{document:{91:{tokenize:O,continuation:{tokenize:T},exit:j}},text:{91:{tokenize:P},93:{add:"after",tokenize:F,resolveTo:C}}},L(e),N,z])}(e)),r("fromMarkdownExtensions",[X,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,A.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()},gfmFootnoteCall:function(e){this.exit(e)},gfmFootnoteCallString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,A.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()}}},de,xe,Ce]),r("toMarkdownExtensions",function(e){return{extensions:[Z,pe(),me,De(e),Pe]}}(e))}},7265:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>le});var n={};r.r(n),r.d(n,{attentionMarkers:()=>Y,contentInitial:()=>V,disable:()=>X,document:()=>q,flow:()=>G,flowInitial:()=>H,insideSpan:()=>K,string:()=>W,text:()=>Q});var i=r(8717),o=r(4666),a=r(4014),s=r(488);const u={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),(0,a.factorySpace)(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):(0,s.markdownLineEnding)(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};var c=r(8300);const l={tokenize:function(e){const t=this,r=[];let n,i,o,a=0;return u;function u(n){if(a<r.length){const i=r[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,p)(n)}return p(n)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&w();const r=t.events.length;let i,o=r;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}E(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return(0,c.d)(t.events,o+1,0,t.events.slice(r)),t.events.length=s,p(e)}return u(e)}function p(i){if(a===r.length){if(!n)return m(i);if(n.currentConstruct&&n.currentConstruct.concrete)return y(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(f,h,d)(i)}function h(e){return n&&w(),E(a),m(e)}function d(e){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,y(e)}function m(r){return t.containerState={},e.attempt(f,g,y)(r)}function g(e){return a++,r.push([t.currentConstruct,t.containerState]),m(e)}function y(r){return null===r?(n&&w(),E(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),v(r))}function v(r){return null===r?(b(e.exit("chunkFlow"),!0),E(0),void e.consume(r)):(0,s.markdownLineEnding)(r)?(e.consume(r),b(e.exit("chunkFlow")),a=0,t.interrupt=void 0,u):(e.consume(r),v)}function b(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<o&&(!n.events[e][1].end||n.events[e][1].end.offset>o))return;const r=t.events.length;let i,s,u=r;for(;u--;)if("exit"===t.events[u][0]&&"chunkFlow"===t.events[u][1].type){if(i){s=t.events[u][1].end;break}i=!0}for(E(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;(0,c.d)(t.events,u+1,0,t.events.slice(r)),t.events.length=e}}function E(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function w(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},f={tokenize:function(e,t,r){return(0,a.factorySpace)(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var p=r(2929),h=r(6814);const d={tokenize:function(e){const t=this,r=e.attempt(p.w,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,(0,a.factorySpace)(e,e.attempt(this.parser.constructs.flow,n,e.attempt(h.k,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const m={resolveAll:b()},g=v("string"),y=v("text");function v(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,o,a);return o;function o(e){return u(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function u(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:b("text"===e?E:void 0)}}function b(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function E(e,t){let r=-1;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let o,a=i.length,s=-1,u=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)u++,s--;if(s)break;s=-1}else if(-2===e)o=!0,u++;else if(-1!==e){a++;break}}if(u){const i={type:r===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-u,offset:n.end.offset-u,_index:n.start._index+a,_bufferIndex:a?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},i.start),n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}var w=r(3879);function x(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],u=[],l=!0;const f={consume:function(e){(0,s.markdownLineEnding)(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,S()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++));p.previous=e,l=!0},enter:function(e,t){const r=t||{};return r.type=e,r.start=g(),p.events.push(["enter",r,p]),u.push(r),r},exit:function(e){const t=u.pop();return t.end=g(),p.events.push(["exit",t,p]),t},attempt:E((function(e,t){x(e,t.from)})),check:E(b),interrupt:E(b,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const o=e[r];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,n.push(a)}return n.join("")}(m(e),t)},now:g,defineSkip:function(e){i[e.line]=e.column,S()},write:function(e){if(a=(0,c.V)(a,e),y(),null!==a[a.length-1])return[];return x(t,0),p.events=(0,w.C)(o,p.events,p),p.events}};let h,d=t.tokenize.call(p,f);return t.resolveAll&&o.push(t),p;function m(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;r===i?a=[e[r].slice(n,o)]:(a=e.slice(r,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(e[i].slice(0,o)));return a}(a,e)}function g(){return Object.assign({},n)}function y(){let e;for(;n._index<a.length;){const t=a[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)v(t.charCodeAt(n._bufferIndex));else v(t)}}function v(e){l=void 0,h=e,d=d(e)}function b(e,t){t.restore()}function E(e,t){return function(r,i,o){let a,s,c,h;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return a=e,s=0,0===e.length?o:m(e[s])}function m(e){return function(r){h=function(){const e=g(),t=p.previous,r=p.currentConstruct,i=p.events.length,o=Array.from(u);return{restore:a,from:i};function a(){n=e,p.previous=t,p.currentConstruct=r,p.events.length=i,u=o,S()}}(),c=e,e.partial||(p.currentConstruct=e);if(e.name&&p.parser.constructs.disable.null.includes(e.name))return v(r);return e.tokenize.call(t?Object.assign(Object.create(p),t):p,f,y,v)(r)}}function y(t){return l=!0,e(c,h),i}function v(e){return l=!0,h.restore(),++s<a.length?m(a[s]):o}}}function x(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&(0,c.d)(p.events,t,p.events.length-t,e.resolve(p.events.slice(t),p)),e.resolveTo&&(p.events=e.resolveTo(p.events,p))}function S(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}var S=r(4618),k=r(7207),A=r(4882),D=r(2535),F=r(5528),C=r(8038),P=r(6263),O=r(5198),T=r(4897),j=r(2810),_=r(1687),I=r(890),R=r(5365),L=r(8415),N=r(7444),M=r(5890),B=r(5856),z=r(6100),U=r(8966),$=r(5180);const q={42:S.p,43:S.p,45:S.p,48:S.p,49:S.p,50:S.p,51:S.p,52:S.p,53:S.p,54:S.p,55:S.p,56:S.p,57:S.p,62:k.m},V={91:A.D},H={[-2]:D.S,[-1]:D.S,32:D.S},G={35:F.Z,42:C.C,45:[P.C,C.C],60:O.P,61:P.C,95:C.C,96:T._,126:T._},W={38:j.u,92:_.L},Q={[-5]:I.g,[-4]:I.g,[-3]:I.g,33:R.C,38:j.u,42:L.v,60:[N.j,M.L],91:B.F,92:[z.R,_.L],93:U.Z,95:L.v,96:$.h},K={null:[L.v,m]},Y={null:[42,95]},X={null:[]};const Z=/[\0\t\n\r]/g;var J=r(2988);var ee=r(8031),te=r(2116),re=r(2493),ne=r(9477),ie=r(1513);const oe={}.hasOwnProperty,ae=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e={}){const t=se({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(pe),autolinkProtocol:P,autolinkEmail:P,atxHeading:c(ae),blockQuote:c(K),characterEscape:P,characterReference:P,codeFenced:c(Y),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:c(Y,l),codeText:c(X,l),codeTextData:P,data:P,codeFlowValue:P,definition:c(Z),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:c(J),hardBreakEscape:c(ue),hardBreakTrailing:c(ue),htmlFlow:c(le,l),htmlFlowData:P,htmlText:c(le,l),htmlTextData:P,image:c(fe),label:l,link:c(pe),listItem:c(de),listItemValue:g,listOrdered:c(he,m),listUnordered:c(he),paragraph:c(me),reference:q,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:c(ae),strong:c(ge),thematicBreak:c(ve)},exit:{atxHeading:p(),atxHeadingSequence:A,autolink:p(),autolinkEmail:Q,autolinkProtocol:W,blockQuote:p(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:G,codeFenced:p(E),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:O,codeIndented:p(w),codeText:p(R),codeTextData:O,data:O,definition:p(),definitionDestinationString:k,definitionLabelString:x,definitionTitleString:S,emphasis:p(),hardBreakEscape:p(j),hardBreakTrailing:p(j),htmlFlow:p(_),htmlFlowData:O,htmlText:p(I),htmlTextData:O,image:p(N),label:B,labelText:M,lineEnding:T,link:p(L),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:V,resourceDestinationString:z,resourceTitleString:U,resource:$,setextHeading:p(C),setextHeadingLineSequence:F,setextHeadingText:D,strong:p(),thematicBreak:p()}},e.mdastExtensions||[]),r={};return n;function n(e){let r={type:"root",children:[]};const n=[],i=[],c={stack:[r],tokenStack:n,config:t,enter:f,exit:h,buffer:l,resume:d,setData:a,getData:s};let p=-1;for(;++p<e.length;)if("listOrdered"===e[p][1].type||"listUnordered"===e[p][1].type)if("enter"===e[p][0])i.push(p);else{p=o(e,i.pop(),p)}for(p=-1;++p<e.length;){const r=t[e[p][0]];oe.call(r,e[p][1].type)&&r[e[p][1].type].call(Object.assign({sliceSerialize:e[p][2].sliceSerialize},c),e[p][1])}if(n.length>0){const e=n[n.length-1];(e[1]||ce).call(c,void 0,e[0])}for(r.position={start:u(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:u(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function o(e,t,r){let n,i,o,a,s=t-1,u=-1,c=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?u++:u--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||a||u||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!u&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===u&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,o=void 0,a=!0)}}return e[t][1]._spread=c,r}function a(e,t){r[e]=t}function s(e){return r[e]}function u(e){return{line:e.line,column:e.column,offset:e.offset}}function c(e,t){return r;function r(r){f.call(this,e(r),r),t&&t.call(this,r)}}function l(){this.stack.push({type:"fragment",children:[]})}function f(e,t,r){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:u(t.start)},e}function p(e){return t;function t(t){e&&e.call(this,t),h.call(this,t)}}function h(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+(0,ie.y)({start:e.start,end:e.end})+"): it’s not open");if(n[0].type!==e.type)if(t)t.call(this,e,n[0]);else{(n[1]||ce).call(this,e,n[0])}return r.position.end=u(e.end),r}function d(){return(0,i.B)(this.stack.pop())}function m(){a("expectingFirstListItemValue",!0)}function g(e){if(s("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),a("expectingFirstListItemValue")}}function y(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function b(){s("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function E(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,re.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()}function S(){const e=this.resume();this.stack[this.stack.length-1].title=e}function k(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function D(){a("setextHeadingSlurpLineEnding",!0)}function F(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){a("setextHeadingSlurpLineEnding")}function P(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=ye(),r.position={start:u(e.start)},t.children.push(r)),this.stack.push(r)}function O(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=u(e.end)}function T(e){const r=this.stack[this.stack.length-1];if(s("atHardBreak")){return r.children[r.children.length-1].position.end=u(e.end),void a("atHardBreak")}!s("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(P.call(this,e),O.call(this,e))}function j(){a("atHardBreak",!0)}function _(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function L(){const e=this.stack[this.stack.length-1];s("inReference")?(e.type+="Reference",e.referenceType=s("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function N(){const e=this.stack[this.stack.length-1];s("inReference")?(e.type+="Reference",e.referenceType=s("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function M(e){const t=this.stack[this.stack.length-2],r=this.sliceSerialize(e);t.label=(0,te.v)(r),t.identifier=(0,re.normalizeIdentifier)(r).toLowerCase()}function B(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];a("inReference",!0),"link"===r.type?r.children=e.children:r.alt=t}function z(){const e=this.resume();this.stack[this.stack.length-1].url=e}function U(){const e=this.resume();this.stack[this.stack.length-1].title=e}function $(){a("inReference")}function q(){a("referenceType","collapsed")}function V(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,re.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase(),a("referenceType","full")}function H(e){a("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=s("characterReferenceType");let n;r?(n=(0,ee.o)(t,"characterReferenceMarkerNumeric"===r?10:16),a("characterReferenceType")):n=(0,ne.T)(t);const i=this.stack.pop();i.value+=n,i.position.end=u(e.end)}function W(e){O.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Q(e){O.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function K(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function X(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function ae(){return{type:"heading",depth:void 0,children:[]}}function ue(){return{type:"break"}}function le(){return{type:"html",value:""}}function fe(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function he(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function de(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}(r)(function(e){for(;!(0,J._)(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:(0,o.W)([n].concat(e.extensions||[])),content:r(u),document:r(l),flow:r(d),string:r(g),text:r(y)};return t;function r(e){return function(r){return x(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,o,a){const s=[];let u,c,l,f,p;for(i=r+i.toString(o),l=0,r="",n&&(65279===i.charCodeAt(0)&&l++,n=void 0);l<i.length;){if(Z.lastIndex=l,u=Z.exec(i),f=u&&void 0!==u.index?u.index:i.length,p=i.charCodeAt(f),!u){r=i.slice(l);break}if(10===p&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(i.slice(l,f)),t+=f-l),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function se(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?se(e,n):ue(e,n)}return e}function ue(e,t){let r;for(r in t)if(oe.call(t,r)){const n="canContainEols"===r||"transforms"===r,i=(oe.call(e,r)?e[r]:void 0)||(e[r]=n?[]:{}),o=t[r];o&&(n?e[r]=[...i,...o]:Object.assign(i,o))}}function ce(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+(0,ie.y)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,ie.y)({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+(0,ie.y)({start:t.start,end:t.end})+") is still open")}const le=function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return ae(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}},3085:(e,t,r)=>{"use strict";function n(e){if(e)throw e}r.r(t),r.d(t,{unified:()=>E});var i=r(8809),o=r(229);function a(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(o,...a){const s=e[++r];let u=-1;if(o)n(o);else{for(;++u<t.length;)null!==a[u]&&void 0!==a[u]||(a[u]=t[u]);t=a,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let a;n&&t.push(i);try{a=e(...t)}catch(e){const t=e;if(n&&r)throw t;return i(t)}n||(a instanceof Promise?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...n){r||(r=!0,t(e,...n))}function o(e){i(null,e)}}(s,i)(...a):n(null,...a)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}var u=r(1513);class c extends Error{constructor(e,t,r){var n,i=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};super(),"string"==typeof t&&(r=t,t=null),"string"==typeof r&&(-1===(n=r.indexOf(":"))?i[1]=r:(i[0]=r.slice(0,n),i[1]=r.slice(n+1))),t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=(0,u.y)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.line=o.start.line,this.column=o.start.column,this.source=i[0],this.ruleId=i[1],this.position=o,this.file,this.fatal,this.url,this.note}}c.prototype.file="",c.prototype.name="",c.prototype.reason="",c.prototype.message="",c.prototype.stack="",c.prototype.fatal=null,c.prototype.column=null,c.prototype.line=null,c.prototype.source=null,c.prototype.ruleId=null,c.prototype.position=null;const l={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');f(e);let r,n=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(r){n=o+1;break}}else i<0&&(r=!0,i=o+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(r){n=o+1;break}}else a<0&&(r=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));n===i?i=a:i<0&&(i=e.length);return e.slice(n,i)},dirname:function(e){if(f(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.charCodeAt(0)?"/":".":1===r&&47===e.charCodeAt(0)?"//":e.slice(0,r)},extname:function(e){f(e);let t,r=e.length,n=-1,i=0,o=-1,a=0;for(;r--;){const s=e.charCodeAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?o<0?o=r:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=r+1;break}}if(o<0||n<0||0===a||1===a&&o===n-1&&o===i+1)return"";return e.slice(o,n)},join:function(...e){let t,r=-1;for(;++r<e.length;)f(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){f(e);const t=47===e.charCodeAt(0);let r=function(e,t){let r,n,i="",o=0,a=-1,s=0,u=-1;for(;++u<=e.length;){if(u<e.length)r=e.charCodeAt(u);else{if(47===r)break;r=47}if(47===r){if(a===u-1||1===s);else if(a!==u-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if(n=i.lastIndexOf("/"),n!==i.length-1){n<0?(i="",o=0):(i=i.slice(0,n),o=i.length-1-i.lastIndexOf("/")),a=u,s=0;continue}}else if(i.length>0){i="",o=0,a=u,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,u):i=e.slice(a+1,u),o=u-a-1;a=u,s=0}else 46===r&&s>-1?s++:s=-1}return i}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.charCodeAt(e.length-1)&&(r+="/");return t?"/"+r:r}(t)},sep:"/"};function f(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const p={cwd:function(){return"/"}};function h(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function d(e){if("string"==typeof e)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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let r=-1;for(;++r<t.length;)if(37===t.charCodeAt(r)&&50===t.charCodeAt(r+1)){const e=t.charCodeAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const m=["history","path","basename","stem","extname","dirname"];class g{constructor(e){let t;t=e?"string"==typeof e||i(e)?{value:e}:h(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=p.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<m.length;){const e=m[n];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)m.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){h(e)&&(e=d(e)),v(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?l.dirname(this.path):void 0}set dirname(e){b(this.basename,"dirname"),this.path=l.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?l.basename(this.path):void 0}set basename(e){v(e,"basename"),y(e,"basename"),this.path=l.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?l.extname(this.path):void 0}set extname(e){if(y(e,"extname"),b(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=l.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?l.basename(this.path,this.extname):void 0}set stem(e){v(e,"stem"),y(e,"stem"),this.path=l.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,r){const n=new c(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function y(e,t){if(e&&e.includes(l.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+l.sep+"`")}function v(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function b(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const E=function e(){const t=s(),r=[];let u,c={},l=-1;return f.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(A("data",u),c[e]=t,f):w.call(c,e)&&c[e]||null;if(e)return A("data",u),c=e,f;return c},f.Parser=void 0,f.Compiler=void 0,f.freeze=function(){if(u)return f;for(;++l<r.length;){const[e,...n]=r[l];if(!1===n[0])continue;!0===n[0]&&(n[1]=void 0);const i=e.call(f,...n);"function"==typeof i&&t.use(i)}return u=!0,l=Number.POSITIVE_INFINITY,f},f.attachers=r,f.use=function(e,...t){let n;if(A("use",u),null==e);else if("function"==typeof e)p(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}n&&(c.settings=Object.assign(c.settings||{},n));return f;function i(e){if("function"==typeof e)p(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;p(t,...r)}else s(e)}}function s(e){l(e.plugins),e.settings&&(n=Object.assign(n||{},e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function p(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(a(n[1])&&a(t)&&(t=o(!0,n[1],t)),n[1]=t):r.push([...arguments])}},f.parse=function(e){f.freeze();const t=C(e),r=f.Parser;if(S("parse",r),x(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},f.stringify=function(e,t){f.freeze();const r=C(t),n=f.Compiler;if(k("stringify",n),D(e),x(n,"compile"))return new n(e,r).compile();return n(e,r)},f.run=function(e,r,n){D(e),f.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,o){function a(t,r,a){r=r||e,t?o(t):i?i(r):n(null,r,a)}t.run(e,C(r),a)}i(null,n)},f.runSync=function(e,t){let r,i;return f.run(e,t,o),F("runSync","run",i),r;function o(e,t){n(e),r=t,i=!0}},f.process=function(e,t){if(f.freeze(),S("process",f.Parser),k("process",f.Compiler),!t)return new Promise(r);function r(r,n){const o=C(e);function a(e,i){e||!i?n(e):r?r(i):t(null,i)}f.run(f.parse(o),o,((e,t,r)=>{if(!e&&t&&r){const n=f.stringify(t,r);null==n||(!function(e){return"string"==typeof e||i(e)}(n)?r.result=n:r.value=n),a(e,r)}else a(e)}))}r(null,t)},f.processSync=function(e){let t;f.freeze(),S("processSync",f.Parser),k("processSync",f.Compiler);const r=C(e);return f.process(r,i),F("processSync","process",t),r;function i(e){t=!0,n(e)}},f;function f(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(o(!0,{},c)),t}}().freeze(),w={}.hasOwnProperty;function x(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(w.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function S(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function k(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function A(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 D(e){if(!a(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function F(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function C(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new g(e)}},213:(e,t,r)=>{"use strict";r.r(t),r.d(t,{is:()=>n,convert:()=>i});const n=function e(t,r,n,o,a){const s=i(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==o||e(o)&&o.children))throw new Error("Expected parent node");if(null==o!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(s.call(a,t,n,o))},i=function(e){if(null==e)return a;if("string"==typeof e)return function(e){return o(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=i(e[r]);return o(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return o(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return o(e);throw new Error("Expected function, string, or object as test")};function o(e){return function(...t){return Boolean(e.call(this,...t))}}function a(){return!0}},4249:(e,t,r)=>{"use strict";r.r(t),r.d(t,{matches:()=>I,select:()=>R,selectAll:()=>L});var n={}.hasOwnProperty;function i(e,t){var r=t||{};function i(t){var r=i.invalid,o=i.handlers;if(t&&n.call(t,e)&&(r=n.call(o,t[e])?o[t[e]]:i.unknown),r)return r.apply(this,arguments)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}function o(e){return Array.isArray(e.children)}const a={}.hasOwnProperty,s=i("nestingOperator",{unknown:function(e){throw new Error("Unexpected nesting `"+e.nestingOperator+"`")},invalid:function(e,t,r,n,i){if(n)throw new Error("topScan is supposed to be called from the root node");if(!i.iterator)throw new Error("Expected `iterator` to be defined");if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");i.iterator(e,t,r,n,i),i.shallow||u(e,t,r,n,i)},handlers:{null:u,">":c,"+":function(e,t,r,n,i){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new l(e,n,i).prefillTypeIndex(0,++r).each(r,++r).prefillTypeIndex(r).done()},"~":function(e,t,r,n,i){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new l(e,n,i).prefillTypeIndex(0,++r).each(r).done()}}});function u(e,t,r,n,i){if(!i.iterator)throw new Error("Expected `iterator` to be defined");const o=i.iterator;i.iterator=function e(t,r,n,i,a){if(a.iterator=o,o(t,r,n,i,a),a.iterator=e,a.one&&a.found)return;c(t,r,n,i,a)},c(e,t,r,n,i)}function c(e,t,r,n,i){o(t)&&0!==t.children.length&&new l(e,t,i).each().done()}class l{constructor(e,t,r){this.query=e,this.parent=t,this.state=r,this.typeIndex=r.index?new f:void 0,this.delayed=[]}prefillTypeIndex(e,t){let[r,n]=this.defaults(e,t);if(this.typeIndex)for(;r<n;)this.typeIndex.index(this.parent.children[r]),r++;return this}each(e,t){const[r,n]=this.defaults(e,t),i=this.parent.children[r];let o,a;if(r>=n)return this;if(this.typeIndex)a=this.typeIndex.nodes,o=this.typeIndex.index(i),this.delayed.push((function(){if(!this.typeIndex)throw new TypeError("Expected `typeIndex` to be defined");if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.typeIndex=o,this.state.nodeIndex=a,this.state.typeCount=this.typeIndex.count(i),this.state.nodeCount=this.typeIndex.nodes,this.state.iterator(this.query,i,r,this.parent,this.state)}));else{if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.iterator(this.query,i,r,this.parent,this.state)}return this.state.one&&this.state.found?this:this.each(r+1,n)}done(){let e=-1;for(;++e<this.delayed.length&&(this.delayed[e].call(this),!this.state.one||!this.state.found););return this}defaults(e,t){return(null==e||e<0)&&(e=0),(null==t||t>this.parent.children.length)&&(t=this.parent.children.length),[e,t]}}class f{constructor(){this.counts={},this.nodes=0}index(e){const t=e.type;return this.nodes++,a.call(this.counts,t)||(this.counts[t]=0),this.counts[t]++}count(e){return this.counts[e.type]}}const p=(0,r(213).convert)(),h=i("name",{unknown:function(e){if(e.name)throw new Error("Unknown pseudo-selector `"+e.name+"`");throw new Error("Unexpected pseudo-element or empty pseudo-class")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{any:m,blank:g,empty:g,"first-child":function(e,t,r,n,i){return y(i,e),0===i.nodeIndex},"first-of-type":function(e,t,r,n,i){return y(i,e),0===i.typeIndex},has:function(e,t,r,n,i){const o=i.shallow,a=i.one,s=i.scopeNodes,u=function(e){const t="ruleSet"===e.type?{type:"selectors",selectors:[e]}:e;let r,n=-1;for(;++n<t.selectors.length;)r=t.selectors[n].rule,r.nestingOperator=null,r.pseudos&&1===r.pseudos.length&&"scope"===r.pseudos[0].name||(t.selectors[n]={type:"ruleSet",rule:{type:"rule",rule:r,pseudos:[{name:"scope"}]}});return t}(e.value),c=i.any;i.shallow=!1,i.one=!0,i.scopeNodes=[t];const l=Boolean(c(u,t,i)[0]);return i.shallow=o,i.one=a,i.scopeNodes=s,l},"last-child":function(e,t,r,n,i){return y(i,e),"number"==typeof i.nodeCount&&i.nodeIndex===i.nodeCount-1},"last-of-type":function(e,t,r,n,i){return y(i,e),"number"==typeof i.typeCount&&i.typeIndex===i.typeCount-1},matches:m,not:function(e,t,r,n,i){return!m(e,t,r,n,i)},"nth-child":function(e,t,r,n,i){return y(i,e),"number"==typeof i.nodeIndex&&e.value(i.nodeIndex)},"nth-last-child":function(e,t,r,n,i){return y(i,e),"number"==typeof i.nodeCount&&"number"==typeof i.nodeIndex&&e.value(i.nodeCount-i.nodeIndex-1)},"nth-of-type":function(e,t,r,n,i){return y(i,e),"number"==typeof i.typeIndex&&e.value(i.typeIndex)},"nth-last-of-type":function(e,t,r,n,i){return y(i,e),"number"==typeof i.typeIndex&&"number"==typeof i.typeCount&&e.value(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,r,n,i){return y(i,e),1===i.nodeCount},"only-of-type":function(e,t,r,n,i){return y(i,e),1===i.typeCount},root:function(e,t,r,n){return p(t)&&!n},scope:function(e,t,r,n,i){return p(t)&&void 0!==i.scopeNodes&&i.scopeNodes.includes(t)}}});function d(e,t,r,n,i){const o=e.pseudos;let a=-1;for(;++a<o.length;)if(!h(o[a],t,r,n,i))return!1;return!0}function m(e,t,r,n,i){const o=i.shallow,a=i.one;i.one=!0,i.shallow=!0;const s=i.any(e.value,t,i)[0]===t;return i.shallow=o,i.one=a,s}function g(e,t){return o(t)?0===t.children.length:!("value"in t)}function y(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}d.needsIndex=["first-child","first-of-type","last-child","last-of-type","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];const v=i("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:b,handlers:{"=":function(e,t){return b(e,t)&&String(t[e.name])===e.value},"^=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(0,e.value.length)===e.value},"$=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(-e.value.length)===e.value},"*=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.includes(e.value)},"~=":function(e,t){const r=t[e.name];if(null==r)return!1;if(Array.isArray(r)&&r.includes(e.value))return!0;return String(r)===e.value}}});function b(e,t){return null!==t[e.name]&&void 0!==t[e.name]}function E(e,t,r,n,i){if(e.id)throw new Error("Invalid selector: id");if(e.classNames)throw new Error("Invalid selector: class");return Boolean(t&&(!e.tagName||function(e,t){return"*"===e.tagName||e.tagName===t.type}(e,t))&&(!e.attrs||function(e,t){let r=-1;for(;++r<e.attrs.length;)if(!v(e.attrs[r],t))return!1;return!0}(e,t))&&(!e.pseudos||d(e,t,r,n,i)))}const w=i("type",{unknown:function(e){throw new Error("Unknown type `"+e.type+"`")},invalid:function(){throw new Error("Invalid type")},handlers:{selectors:function(e,t,r){const n=D(r.one);let i=-1;for(;++i<e.selectors.length;)n(S(e.selectors[i],t,r));return n.result},ruleSet:S,rule:k}});function x(e,t,r){return e&&t?w(e,t,r):[]}function S(e,t,r){return k(e.rule,t,r)}function k(e,t,r){const n=D(r.one);if(r.shallow&&e.rule)throw new Error("Expected selector without nesting");var i;return s(e,t,0,null,A(e,{scopeNodes:(i=t,"RootNode"===i.type||"root"===i.type?t.children:[t]),index:!1,iterator:function(e,t,r,i,o){E(e,t,r,i,o)&&(e.rule?s(e.rule,t,r,i,A(e.rule,o)):(n(t),o.found=!0))},one:r.one,shallow:r.shallow,any:r.any})),n.result}function A(e,t){const r=e.pseudos||[];let n=-1;for(;++n<r.length;)if(d.needsIndex.includes(r[n].name)){t.index=!0;break}return t}function D(e){const t=[];let r;return n.result=t,n;function n(e){let t=-1;if("length"in e)for(;++t<e.length;)i(e[t]);else i(e)}function i(n){if(e){if(r)throw new Error("Cannot collect multiple nodes");r=!0}t.includes(n)||t.push(n)}}var F=r(301);const C=r(364).ZP,P=new Set(["nth-child","nth-last-child","nth-of-type","nth-last-of-type"]),O=new F.N;O.registerAttrEqualityMods("~","^","$","*"),O.registerSelectorPseudos("any","matches","not","has"),O.registerNestingOperators(">","+","~");const T=i("type",{handlers:{selectors:function(e){const t=e.selectors;let r=-1;for(;++r<t.length;)T(t[r]);return e},ruleSet:function(e){return _(e.rule)},rule:_}});function j(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return T(O.parse(e))}function _(e){const t=e.pseudos||[];let r,n=-1;for(;++n<t.length;)r=t[n],P.has(r.name)&&(r.value=C(r.value),r.valueType="function");return T(e.rule),e}function I(e,t){return Boolean(x(j(e),t,{one:!0,shallow:!0,any:x})[0])}function R(e,t){return x(j(e),t,{one:!0,any:x})[0]||null}function L(e,t){return x(j(e),t,{any:x})}},1513:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n={}.hasOwnProperty;function i(e){return e&&"object"==typeof e?n.call(e,"position")||n.call(e,"type")?a(e.position):n.call(e,"start")||n.call(e,"end")?a(e):n.call(e,"line")||n.call(e,"column")?o(e):"":""}function o(e){return s(e&&e.line)+":"+s(e&&e.column)}function a(e){return o(e&&e.start)+"-"+o(e&&e.end)}function s(e){return e&&"number"==typeof e?e:1}},7918:(e,t,r)=>{"use strict";r.d(t,{S4:()=>i});var n=r(213);const i=function(e,t,r,i){"function"==typeof t&&"function"!=typeof r&&(i=r,r=t,t=null);var o=(0,n.convert)(t),a=i?-1:1;!function e(n,s,u){var c,l="object"==typeof n&&null!==n?n:{};"string"==typeof l.type&&(c="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(f,"name",{value:"node ("+l.type+(c?"<"+c+">":"")+")"}));return f;function f(){var c,l,f,p=[];if((!t||o(n,s,u[u.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(n,u)),false===p[0]))return p;if(n.children&&"skip"!==p[0])for(l=(i?n.children.length:-1)+a,f=u.concat(n);l>-1&&l<n.children.length;){if(c=e(n.children[l],l,f)(),false===c[0])return c;l="number"==typeof c[1]?c[1]:l+a}return p}}(e,null,[])()}},3428:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONTINUE:()=>n.dR,SKIP:()=>n.AM,EXIT:()=>n.BK,visit:()=>i});var n=r(3339);const i=function(e,t,r,i){"function"==typeof t&&"function"!=typeof r&&(i=r,r=t,t=null),(0,n.S4)(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),i)}},3339:(e,t,r)=>{"use strict";r.d(t,{dR:()=>i,BK:()=>a,AM:()=>o,S4:()=>s});var n=r(213);const i=!0,o="skip",a=!1,s=function(e,t,r,s){"function"==typeof t&&"function"!=typeof r&&(s=r,r=t,t=null);const u=(0,n.convert)(t),c=s?-1:1;!function e(n,l,f){const p="object"==typeof n&&null!==n?n:{};let h;"string"==typeof p.type&&(h="string"==typeof p.tagName?p.tagName:"string"==typeof p.name?p.name:void 0,Object.defineProperty(d,"name",{value:"node ("+p.type+(h?"<"+h+">":"")+")"}));return d;function d(){let p,h,d,m=[];if((!t||u(n,l,f[f.length-1]||null))&&(m=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[i,e];return[e]}(r(n,f)),m[0]===a))return m;if(n.children&&m[0]!==o)for(h=(s?n.children.length:-1)+c,d=f.concat(n);h>-1&&h<n.children.length;){if(p=e(n.children[h],h,d)(),p[0]===a)return p;h="number"==typeof p[1]?p[1]:h+c}return m}}(e,null,[])()}},3633:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},4222:e=>{"use strict";e.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}')},9354:e=>{"use strict";e.exports=JSON.parse('["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]')}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,a.d(i,o),i},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+"-"+{7:"774184",267:"58e681"}[e]+".js",a.miniCssF=e=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@topwrite/reader:",a.l=(e,t,i,o)=>{if(r[e])r[e].push(t);else{var s,u;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var f=c[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+i){s=f;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",n+i),s.src=e),r[e]=[t];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var i=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),u&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={826:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,i,[o,s,u]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(u)u(a)}for(t&&t(r);c<o.length;c++)i=o[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunk_topwrite_reader=self.webpackChunk_topwrite_reader||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var s={};(()=>{"use strict";a.r(s),a.d(s,{Anchor:()=>ic,Article:()=>pc,BaseConfig:()=>t.l_,Book:()=>t.fy,Breadcrumb:()=>Ec,Catalog:()=>bc,CatalogItems:()=>gc,Config:()=>t.De,File:()=>t.$B,Helmet:()=>Vo,InjectedComponent:()=>gs,InjectedComponentSet:()=>ys,IntlContext:()=>Je,LetterAvatar:()=>t.$q,Level:()=>t.aC,Link:()=>tc,Logo:()=>ec,Markdown:()=>lc,Model:()=>Be,Plugin:()=>Gs,PoweredBy:()=>Ju,Summary:()=>t.ER,SummaryArticle:()=>t.oI,SummaryPart:()=>t.Lj,ToFirstArticle:()=>wc,VERSION:()=>yu,aes:()=>t.rK,base64:()=>mu,bootstrap:()=>Ku,createApplication:()=>Bs,createComponentDescriptor:()=>bs,createGlobalStyle:()=>Yi,createStorageSlot:()=>xs,css:()=>Ii,getPayload:()=>du,getPublicPath:()=>Hs,history:()=>Ou,isEncryptedData:()=>t.oe,isMac:()=>gu,isUrl:()=>t.CB,keyframes:()=>Xi,listStorageKeys:()=>Ss,loadjs:()=>Qe(),markdown:()=>t.JH,md5:()=>t.FB,pluginCenter:()=>t.YB,request:()=>t.WY,styled:()=>Zi,useActions:()=>zs,useArticle:()=>Lu,useAsync:()=>ls,useAsyncCallback:()=>fs,useAsyncEffect:()=>qs,useAsyncFetchMore:()=>ps,useBook:()=>ks,useDebounce:()=>lu,useDocumentTitle:()=>cu,useEventTarget:()=>hu,useFile:()=>Bu,useHotkeys:()=>rs,useIntl:()=>vn,useLockBodyScroll:()=>Zu,useLogo:()=>$u,useModel:()=>$s,useNextArticle:()=>Nu,useOptions:()=>fu,usePrevArticle:()=>Mu,usePrevious:()=>uu,useSelector:()=>Us,useStateWithCallback:()=>Vs,useThemeConfig:()=>As,useThemeContext:()=>Ts,useTitle:()=>Iu,useWindowSize:()=>Xu,windowSizes:()=>Yu});var e={};a.r(e),a.d(e,{book:()=>Tu,page:()=>ju,search:()=>_u}),Date.prototype.format=function(e){const t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(const r in t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e};var t=a(3440),r=a(4760),n=a(4246),i=a(7363),o=a.n(i);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",h=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+h(),REPLACE:"@@redux/REPLACE"+h(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+h()}};function m(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function g(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(f(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(f(1));return r(g)(e,t)}if("function"!=typeof e)throw new Error(f(2));var i=e,o=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function l(){if(u)throw new Error(f(3));return o}function h(e){if("function"!=typeof e)throw new Error(f(4));if(u)throw new Error(f(5));var t=!0;return c(),s.push(e),function(){if(t){if(u)throw new Error(f(6));t=!1,c();var r=s.indexOf(e);s.splice(r,1),a=null}}}function y(e){if(!m(e))throw new Error(f(7));if(void 0===e.type)throw new Error(f(8));if(u)throw new Error(f(9));try{u=!0,o=i(o,e)}finally{u=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}function v(e){if("function"!=typeof e)throw new Error(f(10));i=e,y({type:d.REPLACE})}function b(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(f(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[p]=function(){return this},e}return y({type:d.INIT}),(n={dispatch:y,subscribe:h,getState:l,replaceReducer:v})[p]=b,n}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(f(15))},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return n=y.apply(void 0,o)(r.dispatch),l(l({},r),{},{dispatch:n})}}}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function w(e){return!!e&&!!e[ue]}function x(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&Function.toString.call(r)===ce}(e)||Array.isArray(e)||!!e[se]||!!e.constructor[se]||P(e)||O(e))}function S(e,t,r){void 0===r&&(r=!1),0===k(e)?(r?Object.keys:le)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function k(e){var t=e[ue];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:P(e)?2:O(e)?3:0}function A(e,t){return 2===k(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function D(e,t){return 2===k(e)?e.get(t):e[t]}function F(e,t,r){var n=k(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function C(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function P(e){return ne&&e instanceof Map}function O(e){return ie&&e instanceof Set}function T(e){return e.o||e.t}function j(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=fe(e);delete t[ue];for(var r=le(t),n=0;n<r.length;n++){var i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function _(e,t){return void 0===t&&(t=!1),R(e)||w(e)||!x(e)||(k(e)>1&&(e.set=e.add=e.clear=e.delete=I),Object.freeze(e),t&&S(e,(function(e,t){return _(t,!0)}),!0)),e}function I(){E(2)}function R(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function L(e){var t=pe[e];return t||E(18,e),t}function N(){return te}function M(e,t){t&&(L("Patches"),e.u=[],e.s=[],e.v=t)}function B(e){z(e),e.p.forEach($),e.p=null}function z(e){e===te&&(te=e.l)}function U(e){return te={p:[],l:te,h:e,m:!0,_:0}}function $(e){var t=e[ue];0===t.i||1===t.i?t.j():t.g=!0}function q(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.O||L("ES5").S(t,e,n),n?(r[ue].P&&(B(t),E(4)),x(e)&&(e=V(t,e),t.l||G(t,e)),t.u&&L("Patches").M(r[ue],e,t.u,t.s)):e=V(t,r,[]),B(t),t.u&&t.v(t.u,t.s),e!==ae?e:void 0}function V(e,t,r){if(R(t))return t;var n=t[ue];if(!n)return S(t,(function(i,o){return H(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return G(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=j(n.k):n.o;S(3===n.i?new Set(i):i,(function(t,o){return H(e,n,i,t,o,r)})),G(e,i,!1),r&&e.u&&L("Patches").R(n,r,e.u,e.s)}return n.o}function H(e,t,r,n,i,o){if(w(i)){var a=V(e,i,o&&t&&3!==t.i&&!A(t.D,n)?o.concat(n):void 0);if(F(r,n,a),!w(a))return;e.m=!1}if(x(i)&&!R(i)){if(!e.h.F&&e._<1)return;V(e,i),t&&t.A.l||G(e,i)}}function G(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&_(t,r)}function W(e,t){var r=e[ue];return(r?T(r):e)[t]}function Q(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function K(e){e.P||(e.P=!0,e.l&&K(e.l))}function Y(e){e.o||(e.o=j(e.t))}function X(e,t,r){var n=P(t)?L("MapSet").N(t,r):O(t)?L("MapSet").T(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:N(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=he;r&&(i=[n],o=de);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return n.k=u,n.j=s,u}(t,r):L("ES5").J(t,r);return(r?r.A:N()).p.push(n),n}function Z(e){return w(e)||E(22,e),function e(t){if(!x(t))return t;var r,n=t[ue],i=k(t);if(n){if(!n.P&&(n.i<4||!L("ES5").K(n)))return n.t;n.I=!0,r=J(t,i),n.I=!1}else r=J(t,i);return S(r,(function(t,i){n&&D(n.t,t)===i||F(r,t,e(i))})),3===i?new Set(r):r}(e)}function J(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return j(e)}var ee,te,re="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ne="undefined"!=typeof Map,ie="undefined"!=typeof Set,oe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ae=re?Symbol.for("immer-nothing"):((ee={})["immer-nothing"]=!0,ee),se=re?Symbol.for("immer-draftable"):"__$immer_draftable",ue=re?Symbol.for("immer-state"):"__$immer_state",ce=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),le="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,fe=Object.getOwnPropertyDescriptors||function(e){var t={};return le(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},pe={},he={get:function(e,t){if(t===ue)return e;var r=T(e);if(!A(r,t))return function(e,t,r){var n,i=Q(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!x(n)?n:n===W(e.t,t)?(Y(e),e.o[t]=X(e.A.h,n,e)):n},has:function(e,t){return t in T(e)},ownKeys:function(e){return Reflect.ownKeys(T(e))},set:function(e,t,r){var n=Q(T(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=W(T(e),t),o=null==i?void 0:i[ue];if(o&&o.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(C(r,i)&&(void 0!==r||A(e.t,t)))return!0;Y(e),K(e)}return e.o[t]===r&&"number"!=typeof r||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==W(e.t,t)||t in e.t?(e.D[t]=!1,Y(e),K(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=T(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){E(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){E(12)}},de={};S(he,(function(e,t){de[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),de.deleteProperty=function(e,t){return he.deleteProperty.call(this,e[0],t)},de.set=function(e,t,r){return he.set.call(this,e[0],t,r,e[0])};var me=function(){function e(e){var t=this;this.O=oe,this.F=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var i=r;r=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(a))}))}}var a;if("function"!=typeof r&&E(6),void 0!==n&&"function"!=typeof n&&E(7),x(e)){var s=U(t),u=X(t,e,void 0),c=!0;try{a=r(u),c=!1}finally{c?B(s):z(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return M(s,n),q(e,s)}),(function(e){throw B(s),e})):(M(s,n),q(a,s))}if(!e||"object"!=typeof e){if((a=r(e))===ae)return;return void 0===a&&(a=e),t.F&&_(a,!0),a}E(21,e)},this.produceWithPatches=function(e,r){return"function"==typeof e?function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,r,(function(e,t){n=e,i=t})),n,i];var n,i},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){x(e)||E(8),w(e)&&(e=Z(e));var t=U(this),r=X(this,e,void 0);return r[ue].C=!0,z(t),r},t.finishDraft=function(e,t){var r=(e&&e[ue]).A;return M(r,t),q(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!oe&&E(20),this.O=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var i=L("Patches").$;return w(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(r+1))}))},e}(),ge=new me,ye=ge.produce,ve=(ge.produceWithPatches.bind(ge),ge.setAutoFreeze.bind(ge));ge.setUseProxies.bind(ge),ge.applyPatches.bind(ge),ge.createDraft.bind(ge),ge.finishDraft.bind(ge);var be=a(2611),Ee=o().createContext(null);var we=function(e){e()},xe=function(){return we};var Se={notify:function(){},get:function(){return[]}};function ke(e,t){var r,n=Se;function i(){a.onStateChange&&a.onStateChange()}function o(){r||(r=t?t.addNestedSub(i):e.subscribe(i),n=function(){var e=xe(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(r)},trySubscribe:o,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=Se)},getListeners:function(){return n}};return a}var Ae="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;const De=function(e){var t=e.store,r=e.context,n=e.children,a=(0,i.useMemo)((function(){var e=ke(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=(0,i.useMemo)((function(){return t.getState()}),[t]);Ae((function(){var e=a.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,s]);var u=r||Ee;return o().createElement(u.Provider,{value:a},n)};var Fe=a(5839),Ce=a.n(Fe);a(9272);function Pe(){return(0,i.useContext)(Ee)}var Oe=function(e,t){return e===t};function Te(e){void 0===e&&(e=Ee);var t=e===Ee?Pe:function(){return(0,i.useContext)(e)};return function(e,r){void 0===r&&(r=Oe);var n=t(),o=function(e,t,r,n){var o,a=(0,i.useReducer)((function(e){return e+1}),0)[1],s=(0,i.useMemo)((function(){return ke(r,n)}),[r,n]),u=(0,i.useRef)(),c=(0,i.useRef)(),l=(0,i.useRef)(),f=(0,i.useRef)(),p=r.getState();try{if(e!==c.current||p!==l.current||u.current){var h=e(p);o=void 0!==f.current&&t(h,f.current)?f.current:h}else o=f.current}catch(e){throw u.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),e}return Ae((function(){c.current=e,l.current=p,f.current=o,u.current=void 0})),Ae((function(){function e(){try{var e=r.getState();if(e===l.current)return;var n=c.current(e);if(t(n,f.current))return;f.current=n,l.current=e}catch(e){u.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),o}(e,r,n.store,n.subscription);return(0,i.useDebugValue)(o),o}}var je=Te();const _e=ReactDOM;var Ie,Re=a.n(_e);Ie=_e.unstable_batchedUpdates,we=Ie;const Le="TYPE_SET_STATE",Ne="TYPE_GET_STATE";function Me(e){const t=Object.getPrototypeOf(e);return Object.getOwnPropertyNames(t).filter((e=>!["constructor","onAction","subscription"].includes(e)&&"function"==typeof t[e]&&!e.startsWith("_")))}class Be{constructor(){b(this,"initialState",void 0),b(this,"state",void 0)}*getState(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yield{type:Ne,payload:{models:t}}}setState(e){return{type:Le,payload:{fn:e}}}dispatch(e){}}function ze(e){return e&&"function"==typeof e.next&&"function"==typeof e.throw}ve(!1);const Ue=(e,t,r)=>{for(let n of e)t=n(t,r);return t},$e=(e,t)=>{for(let r in e){let n=e[r];e[r]=function(){let e=n(...arguments);if("function"==typeof e)return e(t)}}return e};function qe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const i={},o={},a={},s={},u={},c={};for(const r in e){const n=e[r];void 0!==n.initialState?"function"==typeof n.initialState?a[r]=n.initialState(t[r],t):a[r]=(0,be.merge)(n.initialState,t[r]):a[r]=t[r],o[r]={},n.onAction&&(c[r]=(e,t)=>n.onAction(e,t,s[r])),n.subscription&&(u[r]=n.subscription),n.dispatch=function(e){if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];s[r][e](...n)}};const l=Me(n);for(let e of l){const t=Object.getPrototypeOf(n)[e],a="".concat(r,"/").concat(e);o[r][e]=function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return async e=>{const{dispatch:s,getState:u}=e;let l=0;const f=Object.entries(c).filter((e=>{let[t]=e;return t!==r})).map((e=>{let[,t]=e;return t}));let p=Ue(f,t.bind(n),a)(...o);const h=async e=>{let t=await e.next();for(;!t.done;){let n,o;if(t.value instanceof Promise)try{n=await t.value}catch(e){o=e}else if(ze(t.value))try{n=await h(t.value)}catch(e){o=e}else{let e=t.value,o=e.payload;switch(e.type){case Ne:const e=u();n=o.models.length>0?o.models.length>1?o.models.map((t=>e[t])):e[o.models[0]]:e;break;case Le:let t="".concat(a,"/@@").concat(++l);i[t]=o.fn,s({type:t,name:r}),delete i[t]}}t=o?await e.throw(o):await e.next(n)}return t.value};await h(p)}}}}const l=function(e,t){return ye(e,(e=>{t.name&&i[t.type]&&("function"==typeof i[t.type]?e[t.name]=ye(e[t.name],i[t.type]):e[t.name]=i[t.type])}))},f=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||y,p=g(r(l),a,f(v(...n))),{getState:h}=p;for(let[e,t]of Object.entries(o))s[e]=$e(t,p);for(let t in u)u[t].call(e[t],s[t],h()[t]);return p.actions=s,p}const Ve=(0,i.createContext)({actions:{}});function He(e){let{store:t,children:r}=e;return(0,n.jsx)(Ve.Provider,{value:{actions:t.actions},children:(0,n.jsx)(De,{store:t,children:r})})}function Ge(e,t){return"string"==typeof e||Array.isArray(e)?je((t=>Array.isArray(e)?e:Array(e).reduce(((e,t)=>e[t]),t)),t):je(e,t)}var We=a(6051),Qe=a.n(We),Ke=a(8891);function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xe=i.createContext(null),Ze=(Xe.Consumer,Xe.Provider),Je=Xe;
54
54
  /*! *****************************************************************************
55
55
  Copyright (c) Microsoft Corporation.
56
56