@appshell/config 0.1.5-alpha.0 → 0.1.6-alpha.0

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/main.js CHANGED
@@ -5,4 +5,4 @@
5
5
  || ${a} === "boolean" || ${o} === null`).assign(c,i._`[${o}]`)}}n.else(),p(e),n.endIf(),n.if(i._`${c} !== undefined`,(()=>{n.assign(o,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(i._`${t} !== undefined`,(()=>e.assign(i._`${t}[${r}]`,n)))}(e,c)}))}(e,t,a):p(e)}))}return u};const l=new Set(["string","number","integer","boolean","null"]);function f(e,t,r,n=c.Correct){const o=n===c.Correct?i.operators.EQ:i.operators.NEQ;let s;switch(e){case"null":return i._`${t} ${o} null`;case"array":s=i._`Array.isArray(${t})`;break;case"object":s=i._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a(i._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return i._`typeof ${t} ${o} ${e}`}return n===c.Correct?s:(0,i.not)(s);function a(e=i.nil){return(0,i.and)(i._`typeof ${t} == "number"`,e,r?i._`isFinite(${t})`:i.nil)}}function d(e,t,r,n){if(1===e.length)return f(e[0],t,r,n);let o;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=i._`typeof ${t} != "object"`;o=s.null?e:i._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else o=i.nil;s.number&&delete s.integer;for(const e in s)o=(0,i.and)(o,f(e,t,r,n));return o}t.checkDataType=f,t.checkDataTypes=d;const h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?i._`{type: ${e}}`:i._`{type: ${t}}`};function p(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,s.reportError)(t,h)}t.reportTypeError=p},8046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(1986),o=r(8719);function s(e,t,r){const{gen:s,compositeRule:i,data:a,opts:c}=e;if(void 0===r)return;const u=n._`${a}${(0,n.getProperty)(t)}`;if(i)return void(0,o.checkStrictMode)(e,`default is ignored for: ${u}`);let l=n._`${u} === undefined`;"empty"===c.useDefaults&&(l=n._`${l} || ${u} === null || ${u} === ""`),s.if(l,n._`${u} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const t in r)s(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>s(e,r,t.default)))}},8313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(2558),o=r(8433),s=r(8525),i=r(8433),a=r(8046),c=r(7940),u=r(3121),l=r(1986),f=r(3806),d=r(9234),h=r(8719),p=r(1429);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,l._`${f.default.data}, ${f.default.valCxt}`,n.$async,(()=>{e.code(l._`"use strict"; ${y(r,o)}`),function(e,t){e.if(f.default.valCxt,(()=>{e.var(f.default.instancePath,l._`${f.default.valCxt}.${f.default.instancePath}`),e.var(f.default.parentData,l._`${f.default.valCxt}.${f.default.parentData}`),e.var(f.default.parentDataProperty,l._`${f.default.valCxt}.${f.default.parentDataProperty}`),e.var(f.default.rootData,l._`${f.default.valCxt}.${f.default.rootData}`),t.dynamicRef&&e.var(f.default.dynamicAnchors,l._`${f.default.valCxt}.${f.default.dynamicAnchors}`)}),(()=>{e.var(f.default.instancePath,l._`""`),e.var(f.default.parentData,l._`undefined`),e.var(f.default.parentDataProperty,l._`undefined`),e.var(f.default.rootData,f.default.data),t.dynamicRef&&e.var(f.default.dynamicAnchors,l._`{}`)}))}(e,o),e.code(s)})):e.func(t,l._`${f.default.data}, ${function(e){return l._`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${e.dynamicRef?l._`, ${f.default.dynamicAnchors}={}`:l.nil}}={}`}(o)}`,n.$async,(()=>e.code(y(r,o)).code(s)))}function y(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?l._`/*# sourceURL=${r} */`:l.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,h.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function _(e,t){if(e.opts.jtd)return $(e,[],!1,t);const r=(0,o.getSchemaTypes)(e.schema);$(e,r,!(0,o.coerceAndCheckDataType)(e,r),t)}function w({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const s=r.$comment;if(!0===o.$comment)e.code(l._`${f.default.self}.logger.log(${s})`);else if("function"==typeof o.$comment){const r=l.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(l._`${f.default.self}.opts.$comment(${s}, ${r}, ${o}.schema)`)}}function $(e,t,r,n){const{gen:o,schema:a,data:c,allErrors:u,opts:d,self:p}=e,{RULES:m}=p;function y(h){(0,s.shouldUseGroup)(a,h)&&(h.type?(o.if((0,i.checkDataType)(h.type,c,d.strictNumbers)),S(e,h),1===t.length&&t[0]===h.type&&r&&(o.else(),(0,i.reportTypeError)(e)),o.endIf()):S(e,h),u||o.if(l._`${f.default.errors} === ${n||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{E(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)E(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if("object"==typeof o&&(0,s.shouldUseRule)(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some((e=>{return n=e,(r=t).includes(n)||"number"===n&&r.includes("integer");var r,n}))&&k(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes))}(e,t),o.block((()=>{for(const e of m.rules)y(e);y(m.post)}))):o.block((()=>O(e,"$ref",m.all.$ref.definition)))}function S(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,a.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,s.shouldUseRule)(n,r)&&O(e,r.keyword,r.definition,t.type)}))}function E(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),g(e))?function(e){const{schema:t,opts:r,gen:n}=e;m(e,(()=>{r.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(f.default.vErrors,null),n.let(f.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",l._`${r}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,(()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`))),t.if(l._`${e.evaluated}.dynamicItems`,(()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),_(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if(l._`${f.default.errors} === 0`,(()=>t.return(f.default.data)),(()=>t.throw(l._`new ${o}(${f.default.vErrors})`))):(t.assign(l._`${n}.errors`,f.default.vErrors),s.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof l.Name&&e.assign(l._`${t}.props`,r),n instanceof l.Name&&e.assign(l._`${t}.items`,n)}(e),t.return(l._`${f.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,n.topBoolOrEmptySchema)(e)))};class P{constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",A(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",f.default.errors))}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=l.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:s}=this;r.if((0,l.or)(l._`${n} === undefined`,t)),e!==l.nil&&r.assign(e,!0),(o.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return(0,l.or)(function(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return l._`${(0,i.checkDataTypes)(e,t,o.opts.strictNumbers,i.DataType.Wrong)}`}return l.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return l._`!${r}(${t})`}return l.nil}())}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e),(0,u.extendSubschemaMode)(r,e);const o={...this.it,...r,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),g(e))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&w(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const s=n.const("_errs",f.default.errors);_(e,s),n.var(t,l._`${s} === ${f.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}(o,t),o}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,l.Name))),!0}}function O(e,t,r,n){const o=new P(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,c.funcKeywordCode)(o,r):"macro"in r?(0,c.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(o,r)}t.KeywordCxt=P;const N=/^\/(?:[^~]|~0|~1)*$/,x=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function A(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(""===e)return f.default.rootData;if("/"===e[0]){if(!N.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=f.default.rootData}else{const i=x.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+i[1];if(o=i[2],"#"===o){if(a>=t)throw new Error(c("property/index",a));return n[t-a]}if(a>t)throw new Error(c("data",a));if(s=r[t-a],!o)return s}let i=s;const a=o.split("/");for(const e of a)e&&(s=l._`${s}${(0,l.getProperty)((0,h.unescapeJsonPointer)(e))}`,i=l._`${i} && ${s}`);return i;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=A},7940:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(1986),o=r(3806),s=r(4392),i=r(1429);function a(e){const{gen:t,data:r,it:o}=e;t.if(o.parentData,(()=>t.assign(r,n._`${o.parentData}[${o.parentDataProperty}]`)))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:o,schema:s,parentSchema:i,it:a}=e,u=t.macro.call(a.self,s,i,a),l=c(r,o,u);!1!==a.opts.validateSchema&&a.self.validateSchema(u,!0);const f=r.name("valid");e.subschema({schema:u,schemaPath:n.nil,errSchemaPath:`${a.errSchemaPath}/${o}`,topSchemaRef:l,compositeRule:!0},f),e.pass(f,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:u,keyword:l,schema:f,parentSchema:d,$data:h,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(p,t);const m=!h&&t.compile?t.compile.call(p.self,f,d,p):t.validate,y=c(u,l,m),g=u.let("valid");function v(r=(t.async?n._`await `:n.nil)){const i=p.opts.passContext?o.default.this:o.default.self,a=!("compile"in t&&!h||!1===t.schema);u.assign(g,n._`${r}${(0,s.callValidateCode)(e,y,i,a)}`,t.modifying)}function b(e){var r;u.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const r=t.async?function(){const e=u.let("ruleErrs",null);return u.try((()=>v(n._`await `)),(t=>u.assign(g,!1).if(n._`${t} instanceof ${p.ValidationError}`,(()=>u.assign(e,n._`${t}.errors`)),(()=>u.throw(t))))),e}():function(){const e=n._`${y}.errors`;return u.assign(e,null),v(n.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,(()=>{r.assign(o.default.vErrors,n._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`).assign(o.default.errors,n._`${o.default.vErrors}.length`),(0,i.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:g)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[s])){const e=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},3121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(1986),o=r(8719);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:s,schemaPath:i,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==s)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const s=e.schema[t];return void 0===r?{schema:s,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,o.escapeFragment)(r)}`}}if(void 0!==s){if(void 0===i||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:i,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:s,data:i,dataTypes:a,propertyName:c}){if(void 0!==i&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==r){const{errorPath:i,dataPathArr:a,opts:c}=t;l(u.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${i}${(0,o.getErrorPath)(r,s,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}function l(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==i&&(l(i instanceof n.Name?i:u.let("data",i,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:s}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==s&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}},9649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(8313);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var o=r(1986);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const s=r(4081),i=r(8343),a=r(6075),c=r(3837),u=r(1986),l=r(9234),f=r(8433),d=r(8719),h=r(6623),p=r(7308),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=200;function w(e){var t,r,n,o,s,i,a,c,u,l,f,d,h,y,g,v,b,w,$,S,E,k,P,O,N;const x=e.strict,A=null===(t=e.code)||void 0===t?void 0:t.optimize,j=!0===A||void 0===A?1:A||0,C=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:m,T=null!==(o=e.uriResolver)&&void 0!==o?o:p.default;return{strictSchema:null===(i=null!==(s=e.strictSchema)&&void 0!==s?s:x)||void 0===i||i,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:x)||void 0===c||c,strictTypes:null!==(l=null!==(u=e.strictTypes)&&void 0!==u?u:x)&&void 0!==l?l:"log",strictTuples:null!==(d=null!==(f=e.strictTuples)&&void 0!==f?f:x)&&void 0!==d?d:"log",strictRequired:null!==(y=null!==(h=e.strictRequired)&&void 0!==h?h:x)&&void 0!==y&&y,code:e.code?{...e.code,optimize:j,regExp:C}:{optimize:j,regExp:C},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:_,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:_,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(S=e.schemaId)&&void 0!==S?S:"$id",addUsedSchema:null===(E=e.addUsedSchema)||void 0===E||E,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(P=e.validateFormats)||void 0===P||P,unicodeRegExp:null===(O=e.unicodeRegExp)||void 0===O||O,int32range:null===(N=e.int32range)||void 0===N||N,uriResolver:T}}class ${constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function(e){if(!1===e)return x;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,v,e,"NOT SUPPORTED"),S.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=N.call(this),e.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&O.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),k.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=h;"id"===r&&(n={...h},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await o.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||s.call(this,r)}async function o(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function s(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return a.call(this,t),await c.call(this,t.missingSchema),s.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await u.call(this,e);this.refs[e]||await o.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=E.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=E.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(j.call(this,r,t),!t)return(0,d.eachItem)(r,(e=>C.call(this,e))),this;I.call(this,t);const n={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(r,0===n.type.length?e=>C.call(this,e,n):e=>n.type.forEach((t=>C.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,s=o[e];n&&s&&(o[e]=D(s))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let s;const{schemaId:i}=this.opts;if("object"==typeof e)s=e[i];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;r=(0,l.normalizeId)(s||r);const u=l.getSchemaRefs.call(this,e,r);return a=new c.SchemaEnv({schema:e,schemaId:i,meta:t,baseId:r,localRefs:u}),this._cache.set(a.schema,a),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),n&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function S(e,t,r,n="error"){for(const o in e){const s=o;s in t&&this.logger[n](`${r}: option ${o}. ${e[s]}`)}}function E(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function k(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function P(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function O(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function N(){const e={...this.opts};for(const t of y)delete e[t];return e}t.default=$,$.ValidationError=s.default,$.MissingRefError=i.default;const x={log(){},warn(){},error(){}},A=/^[a-z_$][a-z0-9_$:-]*$/i;function j(e,t){const{RULES:r}=this;if((0,d.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!A.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function C(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:s}=this;let i=o?s.post:s.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},s.rules.push(i)),s.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?T.call(this,i,a,t.before):i.rules.push(a),s.all[e]=a,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function T(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function I(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=D(t)),e.validateSchema=this.compile(t,!0))}const M={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function D(e){return{anyOf:[e,M]}}},8410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9378);n.code='require("ajv/dist/runtime/equal").default',t.default=n},4982:(e,t)=>{"use strict";function r(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},7308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2854);n.code='require("ajv/dist/runtime/uri").default',t.default=n},4081:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},8187:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const n=r(1986),o=r(8719),s={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?i(e,n):(0,o.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function i(e,t){const{gen:r,schema:s,data:i,keyword:a,it:c}=e;c.items=!0;const u=r.const("len",n._`${i}.length`);if(!1===s)e.setParams({len:t.length}),e.pass(n._`${u} <= ${t.length}`);else if("object"==typeof s&&!(0,o.alwaysValidSchema)(c,s)){const s=r.var("valid",n._`${u} <= ${t.length}`);r.if((0,n.not)(s),(()=>function(s){r.forRange("i",t.length,u,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:o.Type.Num},s),c.allErrors||r.if((0,n.not)(s),(()=>r.break()))}))}(s))),e.ok(s)}}t.validateAdditionalItems=i,t.default=s},7025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4392),o=r(1986),s=r(3806),i=r(8719),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>o._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:f,opts:d}=l;if(l.props=!0,"all"!==d.removeAdditional&&(0,i.alwaysValidSchema)(l,r))return;const h=(0,n.allSchemaProperties)(a.properties),p=(0,n.allSchemaProperties)(a.patternProperties);function m(e){t.code(o._`delete ${c}[${e}]`)}function y(n){if("all"===d.removeAdditional||d.removeAdditional&&!1===r)m(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(f||t.break());if("object"==typeof r&&!(0,i.alwaysValidSchema)(l,r)){const r=t.name("valid");"failing"===d.removeAdditional?(g(n,r,!1),t.if((0,o.not)(r),(()=>{e.reset(),m(n)}))):(g(n,r),f||t.if((0,o.not)(r),(()=>t.break())))}}}function g(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:i.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",c,(r=>{h.length||p.length?t.if(function(r){let s;if(h.length>8){const e=(0,i.schemaRefOrVal)(l,a.properties,"properties");s=(0,n.isOwnProperty)(t,e,r)}else s=h.length?(0,o.or)(...h.map((e=>o._`${r} === ${e}`))):o.nil;return p.length&&(s=(0,o.or)(s,...p.map((t=>o._`${(0,n.usePattern)(e,t)}.test(${r})`)))),(0,o.not)(s)}(r),(()=>y(r))):y(r)})),e.ok(o._`${u} === ${s.default.errors}`)}};t.default=a},3555:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8719),o={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(o,t))return;const i=e.subschema({keyword:"allOf",schemaProp:r},s);e.ok(s),e.mergeEvaluated(i)}))}};t.default=o},3324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(4392).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},2126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?n.str`must contain at least ${e} valid item(s)`:n.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?n._`{minContains: ${e}}`:n._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:s,data:i,it:a}=e;let c,u;const{minContains:l,maxContains:f}=s;a.opts.next?(c=void 0===l?1:l,u=f):c=1;const d=t.const("len",n._`${i}.length`);if(e.setParams({min:c,max:u}),void 0===u&&0===c)return void(0,o.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&c>u)return(0,o.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,o.alwaysValidSchema)(a,r)){let t=n._`${d} >= ${c}`;return void 0!==u&&(t=n._`${t} && ${d} <= ${u}`),void e.pass(t)}a.items=!0;const h=t.name("valid");function p(){const e=t.name("_valid"),r=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(n._`${e}++`),void 0===u?t.if(n._`${e} >= ${c}`,(()=>t.assign(h,!0).break())):(t.if(n._`${e} > ${u}`,(()=>t.assign(h,!1).break())),1===c?t.assign(h,!0):t.if(n._`${e} >= ${c}`,(()=>t.assign(h,!0))))}(r)))))}function m(r,n){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:o.Type.Num,compositeRule:!0},r),n()}))}void 0===u&&1===c?m(h,(()=>t.if(h,(()=>t.break())))):0===c?(t.let(h,!0),void 0!==u&&t.if(n._`${i}.length > 0`,p)):(t.let(h,!1),p()),e.result(h,(()=>e.reset()))}};t.default=s},9114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(1986),o=r(8719),s=r(4392);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const o=1===t?"property":"properties";return n.str`must have ${o} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:o}})=>n._`{property: ${e},
6
6
  missingProperty: ${o},
7
7
  depsCount: ${t},
8
- deps: ${r}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);a(e,t),c(e,r)}};function a(e,t=e.schema){const{gen:r,data:o,it:i}=e;if(0===Object.keys(t).length)return;const a=r.let("missing");for(const c in t){const u=t[c];if(0===u.length)continue;const l=(0,s.propertyInData)(r,o,c,i.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(l,(()=>{for(const t of u)(0,s.checkReportMissingProp)(e,t)})):(r.if(n._`${l} && (${(0,s.checkMissingProp)(e,u,a)})`),(0,s.reportMissingProp)(e,a),r.else())}}function c(e,t=e.schema){const{gen:r,data:n,keyword:i,it:a}=e,c=r.name("valid");for(const u in t)(0,o.alwaysValidSchema)(a,t[u])||(r.if((0,s.propertyInData)(r,n,u,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=i},3312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>n.str`must match "${e.ifClause}" schema`,params:({params:e})=>n._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:s}=e;void 0===r.then&&void 0===r.else&&(0,o.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const a=i(s,"then"),c=i(s,"else");if(!a&&!c)return;const u=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(l,f("then",r),f("else",r))}else a?t.if(l,f("then")):t.if((0,n.not)(l),f("else"));function f(r,o){return()=>{const s=e.subschema({keyword:r},l);t.assign(u,l),e.mergeValidEvaluated(s,u),o?t.assign(o,n._`${r}`):e.setParams({ifClause:r})}}e.pass(u,(()=>e.error(!0)))}};function i(e,t){const r=e.schema[t];return void 0!==r&&!(0,o.alwaysValidSchema)(e,r)}t.default=s},7914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8187),o=r(6685),s=r(3113),i=r(763),a=r(2126),c=r(9114),u=r(9622),l=r(7025),f=r(9867),d=r(2008),h=r(6054),p=r(3324),m=r(5943),y=r(3555),g=r(3312),v=r(3212);t.default=function(e=!1){const t=[h.default,p.default,m.default,y.default,g.default,v.default,u.default,l.default,c.default,f.default,d.default];return e?t.push(o.default,i.default):t.push(n.default,s.default),t.push(a.default),t}},3113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(1986),o=r(8719),s=r(4392),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return a(e,"additionalItems",t);r.items=!0,(0,o.alwaysValidSchema)(r,t)||e.ok((0,s.validateArray)(e))}};function a(e,t,r=e.schema){const{gen:s,parentSchema:i,data:a,keyword:c,it:u}=e;!function(e){const{opts:n,errSchemaPath:s}=u,i=r.length,a=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(n.strictTuples&&!a){const e=`"${c}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${s}"`;(0,o.checkStrictMode)(u,e,n.strictTuples)}}(i),u.opts.unevaluated&&r.length&&!0!==u.items&&(u.items=o.mergeEvaluated.items(s,r.length,u.items));const l=s.name("valid"),f=s.const("len",n._`${a}.length`);r.forEach(((t,r)=>{(0,o.alwaysValidSchema)(u,t)||(s.if(n._`${f} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},l))),e.ok(l))}))}t.validateTuple=a,t.default=i},763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s=r(4392),i=r(8187),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,(0,o.alwaysValidSchema)(n,t)||(a?(0,i.validateAdditionalItems)(e,a):e.ok((0,s.validateArray)(e)))}};t.default=a},6054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8719),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:o}=e;if((0,n.alwaysValidSchema)(o,r))return void e.fail();const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=o},5943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>n._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:s,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&s.discriminator)return;const a=r,c=t.let("valid",!1),u=t.let("passing",null),l=t.name("_valid");e.setParams({passing:u}),t.block((function(){a.forEach(((r,s)=>{let a;(0,o.alwaysValidSchema)(i,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:s,compositeRule:!0},l),s>0&&t.if(n._`${l} && ${c}`).assign(c,!1).assign(u,n._`[${u}, ${s}]`).else(),t.if(l,(()=>{t.assign(c,!0),t.assign(u,s),a&&e.mergeEvaluated(a,n.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=s},2008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4392),o=r(1986),s=r(8719),i=r(8719),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:c,it:u}=e,{opts:l}=u,f=(0,n.allSchemaProperties)(r),d=f.filter((e=>(0,s.alwaysValidSchema)(u,r[e])));if(0===f.length||d.length===f.length&&(!u.opts.unevaluated||!0===u.props))return;const h=l.strictSchema&&!l.allowMatchingProperties&&c.properties,p=t.name("valid");!0===u.props||u.props instanceof o.Name||(u.props=(0,i.evaluatedPropsToName)(t,u.props));const{props:m}=u;function y(e){for(const t in h)new RegExp(e).test(t)&&(0,s.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",a,(s=>{t.if(o._`${(0,n.usePattern)(e,r)}.test(${s})`,(()=>{const n=d.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:s,dataPropType:i.Type.Str},p),u.opts.unevaluated&&!0!==m?t.assign(o._`${m}[${s}]`,!0):n||u.allErrors||t.if((0,o.not)(p),(()=>t.break()))}))}))}!function(){for(const e of f)h&&y(e),u.allErrors?g(e):(t.var(p,!0),g(e),t.if(p))}()}};t.default=a},6685:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3113),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=o},9867:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8313),o=r(4392),s=r(8719),i=r(7025),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:c,it:u}=e;"all"===u.opts.removeAdditional&&void 0===a.additionalProperties&&i.default.code(new n.KeywordCxt(u,i.default,"additionalProperties"));const l=(0,o.allSchemaProperties)(r);for(const e of l)u.definedProperties.add(e);u.opts.unevaluated&&l.length&&!0!==u.props&&(u.props=s.mergeEvaluated.props(t,(0,s.toHash)(l),u.props));const f=l.filter((e=>!(0,s.alwaysValidSchema)(u,r[e])));if(0===f.length)return;const d=t.name("valid");for(const r of f)h(r)?p(r):(t.if((0,o.propertyInData)(t,c,r,u.opts.ownProperties)),p(r),u.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(d);function h(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==r[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},9622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:s,it:i}=e;if((0,o.alwaysValidSchema)(i,r))return;const a=t.name("valid");t.forIn("key",s,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,n.not)(a),(()=>{e.error(!0),i.allErrors||t.break()}))})),e.ok(a)}};t.default=s},3212:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8719),o={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=o},4392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(1986),o=r(8719),s=r(3806),i=r(8719);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return n._`${a(e)}.call(${t}, ${r})`}function u(e,t,r,o){const s=n._`${t}${(0,n.getProperty)(r)} === undefined`;return o?(0,n.or)(s,(0,n.not)(c(e,t,r))):s}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:o,it:s}=e;r.if(u(r,o,t,s.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},o,s){return(0,n.or)(...o.map((o=>(0,n.and)(u(e,t,o,r.ownProperties),n._`${s} = ${o}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,r,o){const s=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return o?n._`${s} && ${c(e,t,r)}`:s},t.noPropertyInData=u,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter((r=>!(0,o.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:o,schemaPath:i,errorPath:a},it:c},u,l,f){const d=f?n._`${e}, ${t}, ${o}${i}`:t,h=[[s.default.instancePath,(0,n.strConcat)(s.default.instancePath,a)],[s.default.parentData,c.parentData],[s.default.parentDataProperty,c.parentDataProperty],[s.default.rootData,s.default.rootData]];c.opts.dynamicRef&&h.push([s.default.dynamicAnchors,s.default.dynamicAnchors]);const p=n._`${d}, ${r.object(...h)}`;return l!==n.nil?n._`${u}.call(${l}, ${p})`:n._`${u}(${p})`};const f=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const o=t.unicodeRegExp?"u":"",{regExp:s}=t.code,a=s(r,o);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:n._`${"new RegExp"===s.code?f:(0,i.useFunc)(e,s)}(${r}, ${o})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:s,it:i}=e,a=t.name("valid");if(i.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(i){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:s,dataProp:r,dataPropType:o.Type.Num},a),t.if((0,n.not)(a),i)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:s,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,o.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const i=e.subschema({keyword:s,schemaProp:o,compositeRule:!0},c);t.assign(a,n._`${a} || ${c}`),e.mergeValidEvaluated(i,c)||t.if((0,n.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},9731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},9160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9731),o=r(19),s=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,o.default];t.default=s},19:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(8343),o=r(4392),s=r(1986),i=r(3806),a=r(3837),c=r(8719),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:o}=e,{baseId:i,schemaEnv:c,validateName:u,opts:d,self:h}=o,{root:p}=c;if(("#"===r||"#/"===r)&&i===p.baseId)return function(){if(c===p)return f(e,u,c,c.$async);const r=t.scopeValue("root",{ref:p});return f(e,s._`${r}.validate`,p,p.$async)}();const m=a.resolveRef.call(h,p,i,r);if(void 0===m)throw new n.default(o.opts.uriResolver,i,r);return m instanceof a.SchemaEnv?function(t){const r=l(e,t);f(e,r,t,t.$async)}(m):function(n){const o=t.scopeValue("schema",!0===d.code.source?{ref:n,code:(0,s.stringify)(n)}:{ref:n}),i=t.name("valid"),a=e.subschema({schema:n,dataTypes:[],schemaPath:s.nil,topSchemaRef:o,errSchemaPath:r},i);e.mergeEvaluated(a),e.ok(i)}(m)}};function l(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):s._`${r.scopeValue("wrapper",{ref:t})}.validate`}function f(e,t,r,n){const{gen:a,it:u}=e,{allErrors:l,schemaEnv:f,opts:d}=u,h=d.passContext?i.default.this:s.nil;function p(e){const t=s._`${e}.errors`;a.assign(i.default.vErrors,s._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),a.assign(i.default.errors,s._`${i.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(n&&!n.dynamicProps)void 0!==n.props&&(u.props=c.mergeEvaluated.props(a,n.props,u.props));else{const t=a.var("props",s._`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(a,t,u.props,s.Name)}if(!0!==u.items)if(n&&!n.dynamicItems)void 0!==n.items&&(u.items=c.mergeEvaluated.items(a,n.items,u.items));else{const t=a.var("items",s._`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(a,t,u.items,s.Name)}}n?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const r=a.let("valid");a.try((()=>{a.code(s._`await ${(0,o.callValidateCode)(e,t,h)}`),m(t),l||a.assign(r,!0)}),(e=>{a.if(s._`!(${e} instanceof ${u.ValidationError})`,(()=>a.throw(e))),p(e),l||a.assign(r,!1)})),e.ok(r)}():e.result((0,o.callValidateCode)(e,t,h),(()=>m(t)),(()=>p(t)))}t.getValidate=l,t.callRef=f,t.default=u},7168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8690),s=r(3837),i=r(8719),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===o.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>n._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:a,parentSchema:c,it:u}=e,{oneOf:l}=c;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=a.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),h=t.const("tag",n._`${r}${(0,n.getProperty)(f)}`);function p(r){const o=t.name("valid"),s=e.subschema({keyword:"oneOf",schemaProp:r},o);return e.mergeEvaluated(s,n.Name),o}t.if(n._`typeof ${h} == "string"`,(()=>function(){const r=function(){var e;const t={},r=o(c);let n=!0;for(let t=0;t<l.length;t++){let c=l[t];(null==c?void 0:c.$ref)&&!(0,i.schemaHasRulesButRef)(c,u.self.RULES)&&(c=s.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,null==c?void 0:c.$ref),c instanceof s.SchemaEnv&&(c=c.schema));const d=null===(e=null==c?void 0:c.properties)||void 0===e?void 0:e[f];if("object"!=typeof d)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||o(c)),a(d,t)}if(!n)throw new Error(`discriminator: "${f}" must be required`);return t;function o({required:e}){return Array.isArray(e)&&e.includes(f)}function a(e,t){if(e.const)d(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const r of e.enum)d(r,t)}}function d(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(n._`${h} === ${e}`),t.assign(d,p(r[e]));t.else(),e.error(!1,{discrError:o.DiscrError.Mapping,tag:h,tagName:f}),t.endIf()}()),(()=>e.error(!1,{discrError:o.DiscrError.Tag,tag:h,tagName:f}))),e.ok(d)}};t.default=a},8690:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(r=t.DiscrError||(t.DiscrError={})).Tag="tag",r.Mapping="mapping"},9222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9160),o=r(1437),s=r(7914),i=r(8284),a=r(4015),c=[n.default,o.default,(0,s.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},3844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match format "${e}"`,params:({schemaCode:e})=>n._`{format: ${e}}`},code(e,t){const{gen:r,data:o,$data:s,schema:i,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:f,self:d}=c;u.validateFormats&&(s?function(){const s=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),i=r.const("fDef",n._`${s}[${a}]`),c=r.let("fType"),l=r.let("format");r.if(n._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,(()=>r.assign(c,n._`${i}.type || "string"`).assign(l,n._`${i}.validate`)),(()=>r.assign(c,n._`"string"`).assign(l,i))),e.fail$data((0,n.or)(!1===u.strictSchema?n.nil:n._`${a} && !${l}`,function(){const e=f.$async?n._`(${i}.async ? await ${l}(${o}) : ${l}(${o}))`:n._`${l}(${o})`,r=n._`(typeof ${l} == "function" ? ${e} : ${l}.test(${o}))`;return n._`${l} && ${l} !== true && ${c} === ${t} && !${r}`}()))}():function(){const s=d.formats[i];if(!s)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${i}" ignored in schema at path "${l}"`}d.logger.warn(e())}();if(!0===s)return;const[a,c,h]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):u.code.formats?n._`${u.code.formats}${(0,n.getProperty)(i)}`:void 0,o=r.scopeValue("formats",{key:i,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,o]:[e.type||"string",e.validate,n._`${o}.validate`]}(s);a===t&&e.pass(function(){if("object"==typeof s&&!(s instanceof RegExp)&&s.async){if(!f.$async)throw new Error("async format in sync schema");return n._`await ${h}(${o})`}return"function"==typeof c?n._`${h}(${o})`:n._`${h}.test(${o})`}())}())}};t.default=o},8284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(3844).default];t.default=n},4015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},8249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s=r(8410),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>n._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:i,schemaCode:a,schema:c}=e;i||c&&"object"==typeof c?e.fail$data(n._`!${(0,o.useFunc)(t,s.default)}(${r}, ${a})`):e.fail(n._`${c} !== ${r}`)}};t.default=i},297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s=r(8410),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:i,schema:a,schemaCode:c,it:u}=e;if(!i&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=u.opts.loopEnum;let f;const d=()=>null!=f?f:f=(0,o.useFunc)(t,s.default);let h;if(l||i)h=t.let("valid"),e.block$data(h,(function(){t.assign(h,!1),t.forOf("v",c,(e=>t.if(n._`${d()}(${r}, ${e})`,(()=>t.assign(h,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,n.or)(...a.map(((t,o)=>function(e,t){const o=a[t];return"object"==typeof o&&null!==o?n._`${d()}(${r}, ${e}[${t}])`:n._`${r} === ${o}`}(e,o))))}e.pass(h)}};t.default=i},1437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1754),o=r(801),s=r(6130),i=r(3362),a=r(3952),c=r(6208),u=r(804),l=r(4710),f=r(8249),d=r(297),h=[n.default,o.default,s.default,i.default,a.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,d.default];t.default=h},804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,s="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${s} ${o}`)}};t.default=o},6130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s=r(4982),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i,it:a}=e,c="maxLength"===t?n.operators.GT:n.operators.LT,u=!1===a.opts.unicode?n._`${r}.length`:n._`${(0,o.useFunc)(e.gen,s.default)}(${r})`;e.fail$data(n._`${u} ${c} ${i}`)}};t.default=i},1754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=n.operators,s={maximum:{okStr:"<=",ok:o.LTE,fail:o.GT},minimum:{okStr:">=",ok:o.GTE,fail:o.LT},exclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},exclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},i={message:({keyword:e,schemaCode:t})=>n.str`must be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${s[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(s),type:"number",schemaType:"number",$data:!0,error:i,code(e){const{keyword:t,data:r,schemaCode:o}=e;e.fail$data(n._`${r} ${s[t].fail} ${o} || isNaN(${r})`)}};t.default=a},3952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,s="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${s} ${o}`)}};t.default=o},801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>n.str`must be multiple of ${e}`,params:({schemaCode:e})=>n._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:o,it:s}=e,i=s.opts.multipleOfPrecision,a=t.let("res"),c=i?n._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:n._`${a} !== parseInt(${a})`;e.fail$data(n._`(${o} === 0 || (${a} = ${r}/${o}, ${c}))`)}};t.default=o},3362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4392),o=r(1986),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:s,schemaCode:i,it:a}=e,c=a.opts.unicodeRegExp?"u":"",u=r?o._`(new RegExp(${i}, ${c}))`:(0,n.usePattern)(e,s);e.fail$data(o._`!${u}.test(${t})`)}};t.default=s},6208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4392),o=r(1986),s=r(8719),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>o.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>o._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:i,data:a,$data:c,it:u}=e,{opts:l}=u;if(!c&&0===r.length)return;const f=r.length>=l.loopRequired;if(u.allErrors?function(){if(f||c)e.block$data(o.nil,d);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const s=t.let("missing");if(f||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,s){e.setParams({missingProperty:r}),t.forOf(r,i,(()=>{t.assign(s,(0,n.propertyInData)(t,a,r,l.ownProperties)),t.if((0,o.not)(s),(()=>{e.error(),t.break()}))}),o.nil)}(s,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,s)),(0,n.reportMissingProp)(e,s),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,s.checkStrictMode)(u,t,u.opts.strictRequired)}}function d(){t.forOf("prop",i,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,a,r,l.ownProperties),(()=>e.error()))}))}}};t.default=i},4710:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8433),o=r(1986),s=r(8719),i=r(8410),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>o.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>o._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:c,parentSchema:u,schemaCode:l,it:f}=e;if(!a&&!c)return;const d=t.let("valid"),h=u.items?(0,n.getSchemaTypes)(u.items):[];function p(s,i){const a=t.name("item"),c=(0,n.checkDataTypes)(h,a,f.opts.strictNumbers,n.DataType.Wrong),u=t.const("indices",o._`{}`);t.for(o._`;${s}--;`,(()=>{t.let(a,o._`${r}[${s}]`),t.if(c,o._`continue`),h.length>1&&t.if(o._`typeof ${a} == "string"`,o._`${a} += "_"`),t.if(o._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(i,o._`${u}[${a}]`),e.error(),t.assign(d,!1).break()})).code(o._`${u}[${a}] = ${s}`)}))}function m(n,a){const c=(0,s.useFunc)(t,i.default),u=t.name("outer");t.label(u).for(o._`;${n}--;`,(()=>t.for(o._`${a} = ${n}; ${a}--;`,(()=>t.if(o._`${c}(${r}[${n}], ${r}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(u)}))))))}e.block$data(d,(function(){const n=t.let("i",o._`${r}.length`),s=t.let("j");e.setParams({i:n,j:s}),t.assign(d,!0),t.if(o._`${n} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?p:m)(n,s)))}),o._`${l} === false`),e.ok(d)}};t.default=a},1817:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,o,s,i,a,c,u,l,f){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var d in n(s,i,a,c,u,l,f),s){var h=s[d];if(Array.isArray(h)){if(d in t.arrayKeywords)for(var p=0;p<h.length;p++)r(e,n,o,h[p],i+"/"+d+"/"+p,a,i,d,s,p)}else if(d in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)r(e,n,o,h[m],i+"/"+d+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),a,i,d,s,m)}else(d in t.keywords||e.allKeys&&!(d in t.skipKeywords))&&r(e,n,o,h,i+"/"+d,a,i,d,s)}o(s,i,a,c,u,l,f)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},2854:function(e,t){!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,o=1;o<n;++o)t[o]=t[o].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 o(e){return e.toUpperCase()}function s(e){var n="[A-Za-z]",o="[0-9]",s=t(o,"[A-Fa-f]"),i=r(r("%[EFef]"+s+"%"+s+s+"%"+s+s)+"|"+r("%[89A-Fa-f]"+s+"%"+s+s)+"|"+r("%"+s+s)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",a),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,o,"[\\+\\-\\.]")+"*"),d=r(r(i+"|"+t(l,a,"[\\:]"))+"*"),h=(r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("[1-9]"+o)+"|"+o),r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o)),p=r(h+"\\."+h+"\\."+h+"\\."+h),m=r(s+"{1,4}"),y=r(r(m+"\\:"+m)+"|"+p),g=r(r(m+"\\:")+"{6}"+y),v=r("\\:\\:"+r(m+"\\:")+"{5}"+y),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+y),_=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+y),w=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+y),$=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+y),S=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+y),E=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),k=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),P=r([g,v,b,_,w,$,S,E,k].join("|")),O=r(r(l+"|"+i)+"+"),N=(r(P+"\\%25"+O),r(P+r("\\%25|\\%(?!"+s+"{2})")+O)),x=r("[vV]"+s+"+\\."+t(l,a,"[\\:]")+"+"),A=r("\\["+r(N+"|"+P+"|"+x)+"\\]"),j=r(r(i+"|"+t(l,a))+"*"),C=r(A+"|"+p+"(?!"+j+")|"+j),T=r(o+"*"),I=r(r(d+"@")+"?"+C+r("\\:"+T)+"?"),M=r(i+"|"+t(l,a,"[\\:\\@]")),D=r(M+"*"),L=r(M+"+"),R=r(r(i+"|"+t(l,a,"[\\@]"))+"+"),q=r(r("\\/"+D)+"*"),F=r("\\/"+r(L+q)+"?"),U=r(R+q),B=r(L+q),K="(?!"+M+")",V=(r(q+"|"+F+"|"+U+"|"+B+"|"+K),r(r(M+"|"+t("[\\/\\?]",u))+"*")),z=r(r(M+"|[\\/\\?]")+"*"),J=r(r("\\/\\/"+I+q)+"|"+F+"|"+B+"|"+K),W=r(f+"\\:"+J+r("\\?"+V)+"?"+r("\\#"+z)+"?"),G=r(r("\\/\\/"+I+q)+"|"+F+"|"+U+"|"+K),Y=r(G+r("\\?"+V)+"?"+r("\\#"+z)+"?");return r(W+"|"+Y),r(f+"\\:"+J+r("\\?"+V)+"?"),r(r("\\/\\/("+r("("+d+")@")+"?("+C+")"+r("\\:("+T+")")+"?)")+"?("+q+"|"+F+"|"+B+"|"+K+")"),r("\\?("+V+")"),r("\\#("+z+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+C+")"+r("\\:("+T+")")+"?)")+"?("+q+"|"+F+"|"+U+"|"+K+")"),r("\\?("+V+")"),r("\\#("+z+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+C+")"+r("\\:("+T+")")+"?)")+"?("+q+"|"+F+"|"+B+"|"+K+")"),r("\\?("+V+")"),r("\\#("+z+")"),r("("+d+")@"),r("\\:("+T+")"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,a),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,a),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,a),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,a),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,a,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,a),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+P+")"+r(r("\\%25|\\%(?!"+s+"{2})")+"("+O+")")+"?\\]?$")}}var i=s(!1),a=s(!0),c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,s=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw s}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=2147483647,l=36,f=/^xn--/,d=/[^\0-\x7E]/,h=/[\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"},m=Math.floor,y=String.fromCharCode;function g(e){throw new RangeError(p[e])}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(h,".")).split("."),t).join(".")}function b(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var s=e.charCodeAt(r++);56320==(64512&s)?t.push(((1023&o)<<10)+(1023&s)+65536):(t.push(o),r--)}else t.push(o)}return t}var _=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},w=function(e,t,r){var n=0;for(e=r?m(e/700):e>>1,e+=m(e/t);e>455;n+=l)e=m(e/35);return m(n+36*e/(e+38))},$=function(e){var t,r=[],n=e.length,o=0,s=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var c=0;c<a;++c)e.charCodeAt(c)>=128&&g("not-basic"),r.push(e.charCodeAt(c));for(var f=a>0?a+1:0;f<n;){for(var d=o,h=1,p=l;;p+=l){f>=n&&g("invalid-input");var y=(t=e.charCodeAt(f++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:l;(y>=l||y>m((u-o)/h))&&g("overflow"),o+=y*h;var v=p<=i?1:p>=i+26?26:p-i;if(y<v)break;var b=l-v;h>m(u/b)&&g("overflow"),h*=b}var _=r.length+1;i=w(o-d,_,0==d),m(o/_)>u-s&&g("overflow"),s+=m(o/_),o%=_,r.splice(o++,0,s)}return String.fromCodePoint.apply(String,r)},S=function(e){var t=[],r=(e=b(e)).length,n=128,o=0,s=72,i=!0,a=!1,c=void 0;try{for(var f,d=e[Symbol.iterator]();!(i=(f=d.next()).done);i=!0){var h=f.value;h<128&&t.push(y(h))}}catch(e){a=!0,c=e}finally{try{!i&&d.return&&d.return()}finally{if(a)throw c}}var p=t.length,v=p;for(p&&t.push("-");v<r;){var $=u,S=!0,E=!1,k=void 0;try{for(var P,O=e[Symbol.iterator]();!(S=(P=O.next()).done);S=!0){var N=P.value;N>=n&&N<$&&($=N)}}catch(e){E=!0,k=e}finally{try{!S&&O.return&&O.return()}finally{if(E)throw k}}var x=v+1;$-n>m((u-o)/x)&&g("overflow"),o+=($-n)*x,n=$;var A=!0,j=!1,C=void 0;try{for(var T,I=e[Symbol.iterator]();!(A=(T=I.next()).done);A=!0){var M=T.value;if(M<n&&++o>u&&g("overflow"),M==n){for(var D=o,L=l;;L+=l){var R=L<=s?1:L>=s+26?26:L-s;if(D<R)break;var q=D-R,F=l-R;t.push(y(_(R+q%F,0))),D=m(q/F)}t.push(y(_(D,0))),s=w(o,x,v==p),o=0,++v}}}catch(e){j=!0,C=e}finally{try{!A&&I.return&&I.return()}finally{if(j)throw C}}++o,++n}return t.join("")},E={version:"2.1.0",ucs2:{decode:b,encode:function(e){return String.fromCodePoint.apply(String,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)}(e))}},decode:$,encode:S,toASCII:function(e){return v(e,(function(e){return d.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return v(e,(function(e){return f.test(e)?$(e.slice(4).toLowerCase()):e}))}},k={};function P(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 O(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var s=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&s)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&a)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function N(e,t){function r(e){var r=O(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,P).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,P).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,P).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,P).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,P).replace(t.PCT_ENCODED,o)),e}function x(e){return e.replace(/^0*(.*)/,"$1")||"0"}function A(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(x).join("."):e}function j(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),o=n[1],s=n[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),a=c(i,2),u=a[0],l=a[1],f=l?l.split(":").map(x):[],d=u.split(":").map(x),h=t.IPV4ADDRESS.test(d[d.length-1]),p=h?7:8,m=d.length-p,y=Array(p),g=0;g<p;++g)y[g]=f[g]||d[m+g]||"";h&&(y[p-1]=A(y[p-1],t));var v=y.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 _=y.slice(0,v.index),w=y.slice(v.index+v.length);b=_.join(":")+"::"+w.join(":")}else b=y.join(":");return s&&(b+="%"+s),b}return e}var C=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,T=void 0==="".match(/(){0}/)[1];function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?a:i;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(C);if(o){T?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=j(A(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 s=k[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||s&&s.unicodeSupport)N(r,n);else{if(r.host&&(t.domainHost||s&&s.domainHost))try{r.host=E.toASCII(r.host.replace(n.PCT_ENCODED,O).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}N(r,i)}s&&s.parse&&s.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var M=/^\.\.?\//,D=/^\/\.(\/|$)/,L=/^\/\.\.(\/|$)/,R=/^\/?(?:.|\n)*?(?=\/|$)/;function q(e){for(var t=[];e.length;)if(e.match(M))e=e.replace(M,"");else if(e.match(D))e=e.replace(D,"/");else if(e.match(L))e=e.replace(L,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(R);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 F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?a:i,n=[],o=k[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?E.toUnicode(e.host):E.toASCII(e.host.replace(r.PCT_ENCODED,O).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}N(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var s=function(e,t){var r=!1!==t.iri?a:i,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(j(A(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}(e,t);if(void 0!==s&&("suffix"!==t.reference&&n.push("//"),n.push(s),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||o&&o.absolutePath||(c=q(c)),void 0===s&&(c=c.replace(/^\/\//,"/%2F")),n.push(c)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function U(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=I(F(e,r),r),t=I(F(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=q(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=q(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=q(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=q(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 B(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:i.PCT_ENCODED,O)}var K={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}},V={scheme:"https",domainHost:K.domainHost,parse:K.parse,serialize:K.serialize};function z(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var J={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=z(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!==(z(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=c(r,2),o=n[0],s=n[1];e.path=o&&"/"!==o?o:void 0,e.query=s,e.resourceName=void 0}return e.fragment=void 0,e}},W={scheme:"wss",domainHost:J.domainHost,parse:J.parse,serialize:J.serialize},G={},Y="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",H="[0-9A-Fa-f]",Q=r(r("%[EFef]"+H+"%"+H+H+"%"+H+H)+"|"+r("%[89A-Fa-f]"+H+"%"+H+H)+"|"+r("%"+H+H)),X=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Z=new RegExp(Y,"g"),ee=new RegExp(Q,"g"),te=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',X),"g"),re=new RegExp(t("[^]",Y,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ne=re;function oe(e){var t=O(e);return t.match(Z)?t:e}var se={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 o=!1,s={},i=r.query.split("&"),a=0,c=i.length;a<c;++a){var u=i[a].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,d=l.length;f<d;++f)n.push(l[f]);break;case"subject":r.subject=B(u[1],t);break;case"body":r.body=B(u[1],t);break;default:o=!0,s[B(u[0],t)]=B(u[1],t)}}o&&(r.headers=s)}r.query=void 0;for(var h=0,p=n.length;h<p;++h){var m=n[h].split("@");if(m[0]=B(m[0]),t.unicodeSupport)m[1]=B(m[1],t).toLowerCase();else try{m[1]=E.toASCII(B(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,n=e,s=null!=(r=e.to)?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(s){for(var i=0,a=s.length;i<a;++i){var c=String(s[i]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(ee,oe).replace(ee,o).replace(te,P),f=c.slice(u+1);try{f=t.iri?E.toUnicode(f):E.toASCII(B(f,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}s[i]=l+"@"+f}n.path=s.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var h=[];for(var p in d)d[p]!==G[p]&&h.push(p.replace(ee,oe).replace(ee,o).replace(re,P)+"="+d[p].replace(ee,oe).replace(ee,o).replace(ne,P));return h.length&&(n.query=h.join("&")),n}},ie=/^([^\:]+)\:(.*)/,ae={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(ie),n=e;if(r){var o=t.scheme||n.scheme||"urn",s=r[1].toLowerCase(),i=r[2],a=o+":"+(t.nid||s),c=k[a];n.nid=s,n.nss=i,n.path=void 0,c&&(n=c.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,o=r+":"+(t.nid||n),s=k[o];s&&(e=s.serialize(e,t));var i=e,a=e.nss;return i.path=(n||t.nid)+":"+a,i}},ce=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ue={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(ce)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};k[K.scheme]=K,k[V.scheme]=V,k[J.scheme]=J,k[W.scheme]=W,k[se.scheme]=se,k[ae.scheme]=ae,k[ue.scheme]=ue,e.SCHEMES=k,e.pctEncChar=P,e.pctDecChars=O,e.parse=I,e.removeDotSegments=q,e.serialize=F,e.resolveComponents=U,e.resolve=function(e,t,r){var n=function(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}({scheme:"null"},r);return F(U(I(e,n),I(t,n),n,!0),n)},e.normalize=function(e,t){return"string"==typeof e?e=F(I(e,t),t):"object"===n(e)&&(e=I(F(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=F(I(e,r),r):"object"===n(e)&&(e=F(e,r)),"string"==typeof t?t=F(I(t,r),r):"object"===n(t)&&(t=F(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?a.ESCAPE:i.ESCAPE,P)},e.unescapeComponent=B,Object.defineProperty(e,"__esModule",{value:!0})}(t)},7889:(e,t,r)=>{"use strict";var n=r(7384),o=r(5738),s=r(1373),i=r(8864),a=r(7058);t.composeCollection=function(e,t,r,c,u){let l;switch(r.type){case"block-map":l=s.resolveBlockMap(e,t,r,u);break;case"block-seq":l=i.resolveBlockSeq(e,t,r,u);break;case"flow-collection":l=a.resolveFlowCollection(e,t,r,u)}if(!c)return l;const f=t.directives.tagName(c.source,(e=>u(c,"TAG_RESOLVE_FAILED",e)));if(!f)return l;const d=l.constructor;if("!"===f||f===d.tagName)return l.tag=d.tagName,l;const h=n.isMap(l)?"map":"seq";let p=t.schema.tags.find((e=>e.collection===h&&e.tag===f));if(!p){const e=t.schema.knownTags[f];if(!e||e.collection!==h)return u(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${f}`,!0),l.tag=f,l;t.schema.tags.push(Object.assign({},e,{default:!1})),p=e}const m=p.resolve(l,(e=>u(c,"TAG_RESOLVE_FAILED",e)),t.options),y=n.isNode(m)?m:new o.Scalar(m);return y.range=l.range,y.tag=f,p?.format&&(y.format=p.format),y}},104:(e,t,r)=>{"use strict";var n=r(505),o=r(3223),s=r(9516),i=r(814);t.composeDoc=function(e,t,{offset:r,start:a,value:c,end:u},l){const f=Object.assign({_directives:t},e),d=new n.Document(void 0,f),h={atRoot:!0,directives:d.directives,options:d.options,schema:d.schema},p=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:l,startOnNewline:!0});p.found&&(d.directives.docStart=!0,!c||"block-map"!==c.type&&"block-seq"!==c.type||p.hasNewline||l(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),d.contents=c?o.composeNode(h,c,p,l):o.composeEmptyNode(h,p.end,a,null,p,l);const m=d.contents.range[2],y=s.resolveEnd(u,m,!1,l);return y.comment&&(d.comment=y.comment),d.range=[r,m,y.offset],d}},3223:(e,t,r)=>{"use strict";var n=r(366),o=r(7889),s=r(6491),i=r(9516),a=r(3576);const c={composeNode:u,composeEmptyNode:l};function u(e,t,r,a){const{spaceBefore:u,comment:f,anchor:d,tag:h}=r;let p,m=!0;switch(t.type){case"alias":p=function({options:e},{offset:t,source:r,end:o},s){const a=new n.Alias(r.substring(1));""===a.source&&s(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&s(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+r.length,u=i.resolveEnd(o,c,e.strict,s);return a.range=[t,c,u.offset],u.comment&&(a.comment=u.comment),a}(e,t,a),(d||h)&&a(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=s.composeScalar(e,t,h,a),d&&(p.anchor=d.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=o.composeCollection(c,e,t,h,a),d&&(p.anchor=d.source.substring(1));break;default:a(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),p=l(e,t.offset,void 0,null,r,a),m=!1}return d&&""===p.anchor&&a(d,"BAD_ALIAS","Anchor cannot be an empty string"),u&&(p.spaceBefore=!0),f&&("scalar"===t.type&&""===t.source?p.comment=f:p.commentBefore=f),e.options.keepSourceTokens&&m&&(p.srcToken=t),p}function l(e,t,r,n,{spaceBefore:o,comment:i,anchor:c,tag:u,end:l},f){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""},h=s.composeScalar(e,d,u,f);return c&&(h.anchor=c.source.substring(1),""===h.anchor&&f(c,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),i&&(h.comment=i,h.range[2]=l),h}t.composeEmptyNode=l,t.composeNode=u},6491:(e,t,r)=>{"use strict";var n=r(7384),o=r(5738),s=r(1070),i=r(5147);t.composeScalar=function(e,t,r,a){const{value:c,type:u,comment:l,range:f}="block-scalar"===t.type?s.resolveBlockScalar(t,e.options.strict,a):i.resolveFlowScalar(t,e.options.strict,a),d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null,h=r&&d?function(e,t,r,o,s){if("!"===r)return e[n.SCALAR];const i=[];for(const t of e.tags)if(!t.collection&&t.tag===r){if(!t.default||!t.test)return t;i.push(t)}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(s(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[n.SCALAR])}(e.schema,c,d,r,a):"scalar"===t.type?function({directives:e,schema:t},r,o,s){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];i.tag!==a.tag&&s(o,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(i.tag)} or ${e.tagString(a.tag)}`,!0)}return i}(e,c,t,a):e.schema[n.SCALAR];let p;try{const s=h.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);p=n.isScalar(s)?s:new o.Scalar(s)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n),p=new o.Scalar(c)}return p.range=f,p.source=c,u&&(p.type=u),d&&(p.tag=d),h.format&&(p.format=h.format),l&&(p.comment=l),p}},1294:(e,t,r)=>{"use strict";var n=r(3848),o=r(505),s=r(2981),i=r(7384),a=r(104),c=r(9516);function u(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+("string"==typeof r?r.length:1)]}function l(e){let t="",r=!1,n=!1;for(let o=0;o<e.length;++o){const s=e[o];switch(s[0]){case"#":t+=(""===t?"":n?"\n\n":"\n")+(s.substring(1)||" "),r=!0,n=!1;break;case"%":"#"!==e[o+1]?.[0]&&(o+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}t.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,r,n)=>{const o=u(e);n?this.warnings.push(new s.YAMLWarning(o,t,r)):this.errors.push(new s.YAMLParseError(o,t,r))},this.directives=new n.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=l(this.prelude);if(r){const o=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${r}`:r;else if(n||e.directives.docStart||!o)e.commentBefore=r;else if(i.isCollection(o)&&!o.flow&&o.items.length>0){let e=o.items[0];i.isPair(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=o.commentBefore;o.commentBefore=e?`${r}\n${e}`:r}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:l(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){switch(process.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const o=u(e);o[0]+=t,this.onError(o,"BAD_DIRECTIVE",r,n)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new s.YAMLParseError(u(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new s.YAMLParseError(u(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new s.YAMLParseError(u(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),r=new o.Document(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,t,t],this.decorate(r,!1),yield r}}}},1373:(e,t,r)=>{"use strict";var n=r(7356),o=r(8228),s=r(814),i=r(7627),a=r(7049),c=r(434);const u="All mapping items must start at the same column";t.resolveBlockMap=function({composeNode:e,composeEmptyNode:t},r,l,f){const d=new o.YAMLMap(r.schema);r.atRoot&&(r.atRoot=!1);let h=l.offset,p=null;for(const o of l.items){const{start:m,key:y,sep:g,value:v}=o,b=s.resolveProps(m,{indicator:"explicit-key-ind",next:y??g?.[0],offset:h,onError:f,startOnNewline:!0}),_=!b.found;if(_){if(y&&("block-seq"===y.type?f(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in y&&y.indent!==l.indent&&f(h,"BAD_INDENT",u)),!b.anchor&&!b.tag&&!g){p=b.end,b.comment&&(d.comment?d.comment+="\n"+b.comment:d.comment=b.comment);continue}(b.hasNewlineAfterProp||i.containsNewline(y))&&f(y??m[m.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else b.found?.indent!==l.indent&&f(h,"BAD_INDENT",u);const w=b.end,$=y?e(r,y,b,f):t(r,w,m,null,b,f);r.schema.compat&&a.flowIndentCheck(l.indent,y,f),c.mapIncludes(r,d.items,$)&&f(w,"DUPLICATE_KEY","Map keys must be unique");const S=s.resolveProps(g??[],{indicator:"map-value-ind",next:v,offset:$.range[2],onError:f,startOnNewline:!y||"block-scalar"===y.type});if(h=S.end,S.found){_&&("block-map"!==v?.type||S.hasNewline||f(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&b.start<S.found.offset-1024&&f($.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const s=v?e(r,v,S,f):t(r,h,g,null,S,f);r.schema.compat&&a.flowIndentCheck(l.indent,v,f),h=s.range[2];const i=new n.Pair($,s);r.options.keepSourceTokens&&(i.srcToken=o),d.items.push(i)}else{_&&f($.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&($.comment?$.comment+="\n"+S.comment:$.comment=S.comment);const e=new n.Pair($);r.options.keepSourceTokens&&(e.srcToken=o),d.items.push(e)}}return p&&p<h&&f(p,"IMPOSSIBLE","Map comment with trailing content"),d.range=[l.offset,h,p??h],d}},1070:(e,t,r)=>{"use strict";var n=r(5738);t.resolveBlockScalar=function(e,t,r){const o=e.offset,s=function({offset:e,props:t},r,n){if("block-scalar-header"!==t[0].type)return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],s=o[0];let i=0,a="",c=-1;for(let t=1;t<o.length;++t){const r=o[t];if(a||"-"!==r&&"+"!==r){const n=Number(r);!i&&n?i=n:-1===c&&(c=e+t)}else a=r}-1!==c&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let u=!1,l="",f=o.length;for(let e=1;e<t.length;++e){const o=t[e];switch(o.type){case"space":u=!0;case"newline":f+=o.source.length;break;case"comment":r&&!u&&n(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=o.source.length,l=o.source.substring(1);break;case"error":n(o,"UNEXPECTED_TOKEN",o.message),f+=o.source.length;break;default:{n(o,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${o.type}`);const e=o.source;e&&"string"==typeof e&&(f+=e.length)}}}return{mode:s,indent:i,chomp:a,comment:l,length:f}}(e,t,r);if(!s)return{value:"",type:null,comment:"",range:[o,o,o]};const i=">"===s.mode?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL,a=e.source?function(e){const t=e.split(/\n( *)/),r=t[0],n=r.match(/^( *)/),o=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let e=1;e<t.length;e+=2)o.push([t[e],t[e+1]]);return o}(e.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(""!==t&&"\r"!==t)break;c=e}if(0===c){const t="+"===s.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=o+s.length;return e.source&&(r+=e.source.length),{value:t,type:i,comment:s.comment,range:[o,r,r]}}let u=e.indent+s.indent,l=e.offset+s.length,f=0;for(let e=0;e<c;++e){const[t,n]=a[e];if(""!==n&&"\r"!==n){if(t.length<u){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";r(l+t.length,"MISSING_CHAR",e)}0===s.indent&&(u=t.length),f=e;break}0===s.indent&&t.length>u&&(u=t.length),l+=t.length+n.length+1}for(let e=a.length-1;e>=c;--e)a[e][0].length>u&&(c=e+1);let d="",h="",p=!1;for(let e=0;e<f;++e)d+=a[e][0].slice(u)+"\n";for(let e=f;e<c;++e){let[t,o]=a[e];l+=t.length+o.length+1;const c="\r"===o[o.length-1];if(c&&(o=o.slice(0,-1)),o&&t.length<u){const e="Block scalar lines must not be less indented than their "+(s.indent?"explicit indentation indicator":"first line");r(l-o.length-(c?2:1),"BAD_INDENT",e),t=""}i===n.Scalar.BLOCK_LITERAL?(d+=h+t.slice(u)+o,h="\n"):t.length>u||"\t"===o[0]?(" "===h?h="\n":p||"\n"!==h||(h="\n\n"),d+=h+t.slice(u)+o,h="\n",p=!0):""===o?"\n"===h?d+="\n":h="\n":(d+=h+o,h=" ",p=!1)}switch(s.chomp){case"-":break;case"+":for(let e=c;e<a.length;++e)d+="\n"+a[e][0].slice(u);"\n"!==d[d.length-1]&&(d+="\n");break;default:d+="\n"}const m=o+s.length+e.source.length;return{value:d,type:i,comment:s.comment,range:[o,m,m]}}},8864:(e,t,r)=>{"use strict";var n=r(9248),o=r(814),s=r(7049);t.resolveBlockSeq=function({composeNode:e,composeEmptyNode:t},r,i,a){const c=new n.YAMLSeq(r.schema);r.atRoot&&(r.atRoot=!1);let u=i.offset,l=null;for(const{start:n,value:f}of i.items){const d=o.resolveProps(n,{indicator:"seq-item-ind",next:f,offset:u,onError:a,startOnNewline:!0});if(!d.found){if(!(d.anchor||d.tag||f)){l=d.end,d.comment&&(c.comment=d.comment);continue}f&&"block-seq"===f.type?a(d.end,"BAD_INDENT","All sequence items must start at the same column"):a(u,"MISSING_CHAR","Sequence item without - indicator")}const h=f?e(r,f,d,a):t(r,d.end,n,null,d,a);r.schema.compat&&s.flowIndentCheck(i.indent,f,a),u=h.range[2],c.items.push(h)}return c.range=[i.offset,u,l??u],c}},9516:(e,t)=>{"use strict";t.resolveEnd=function(e,t,r,n){let o="";if(e){let s=!1,i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{r&&!s&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";o?o+=i+t:o=t,i="";break}case"newline":o&&(i+=e),s=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:o,offset:t}}},7058:(e,t,r)=>{"use strict";var n=r(7384),o=r(7356),s=r(8228),i=r(9248),a=r(9516),c=r(814),u=r(7627),l=r(434);const f="Block collections are not allowed within flow collections",d=e=>e&&("block-map"===e.type||"block-seq"===e.type);t.resolveFlowCollection=function({composeNode:e,composeEmptyNode:t},r,h,p){const m="{"===h.start.source,y=m?"flow map":"flow sequence",g=m?new s.YAMLMap(r.schema):new i.YAMLSeq(r.schema);g.flow=!0;const v=r.atRoot;v&&(r.atRoot=!1);let b=h.offset+h.start.source.length;for(let i=0;i<h.items.length;++i){const a=h.items[i],{start:v,key:_,sep:w,value:$}=a,S=c.resolveProps(v,{flow:y,indicator:"explicit-key-ind",next:_??w?.[0],offset:b,onError:p,startOnNewline:!1});if(!S.found){if(!(S.anchor||S.tag||w||$)){0===i&&S.comma?p(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`):i<h.items.length-1&&p(S.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${y}`),S.comment&&(g.comment?g.comment+="\n"+S.comment:g.comment=S.comment),b=S.end;continue}!m&&r.options.strict&&u.containsNewline(_)&&p(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)S.comma&&p(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`);else if(S.comma||p(S.start,"MISSING_CHAR",`Missing , between ${y} items`),S.comment){let e="";e:for(const t of v)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=g.items[g.items.length-1];n.isPair(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,S.comment=S.comment.substring(e.length+1)}}if(m||w||S.found){const n=S.end,i=_?e(r,_,S,p):t(r,n,v,null,S,p);d(_)&&p(i.range,"BLOCK_IN_FLOW",f);const u=c.resolveProps(w??[],{flow:y,indicator:"map-value-ind",next:$,offset:i.range[2],onError:p,startOnNewline:!1});if(u.found){if(!m&&!S.found&&r.options.strict){if(w)for(const e of w){if(e===u.found)break;if("newline"===e.type){p(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}S.start<u.found.offset-1024&&p(u.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else $&&("source"in $&&$.source&&":"===$.source[0]?p($,"MISSING_CHAR",`Missing space after : in ${y}`):p(u.start,"MISSING_CHAR",`Missing , or : between ${y} items`));const h=$?e(r,$,u,p):u.found?t(r,u.end,w,null,u,p):null;h?d($)&&p(h.range,"BLOCK_IN_FLOW",f):u.comment&&(i.comment?i.comment+="\n"+u.comment:i.comment=u.comment);const E=new o.Pair(i,h);if(r.options.keepSourceTokens&&(E.srcToken=a),m){const e=g;l.mapIncludes(r,e.items,i)&&p(n,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(E)}else{const e=new s.YAMLMap(r.schema);e.flow=!0,e.items.push(E),g.items.push(e)}b=h?h.range[2]:u.end}else{const n=$?e(r,$,S,p):t(r,S.end,w,null,S,p);g.items.push(n),b=n.range[2],d($)&&p(n.range,"BLOCK_IN_FLOW",f)}}const _=m?"}":"]",[w,...$]=h.end;let S=b;if(w&&w.source===_)S=w.offset+w.source.length;else{const e=y[0].toUpperCase()+y.substring(1);p(b,v?"MISSING_CHAR":"BAD_INDENT",v?`${e} must end with a ${_}`:`${e} in block collection must be sufficiently indented and end with a ${_}`),w&&1!==w.source.length&&$.unshift(w)}if($.length>0){const e=a.resolveEnd($,S,r.options.strict,p);e.comment&&(g.comment?g.comment+="\n"+e.comment:g.comment=e.comment),g.range=[h.offset,S,e.offset]}else g.range=[h.offset,S,S];return g}},5147:(e,t,r)=>{"use strict";var n=r(5738),o=r(9516);function s(e){let t,r;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),r=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(e){t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=t.exec(e);if(!n)return e;let o=n[1],s=" ",i=t.lastIndex;for(r.lastIndex=i;n=r.exec(e);)""===n[1]?"\n"===s?o+=s:s="\n":(o+=s+n[1],s=" "),i=r.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=i,n=a.exec(e),o+s+(n?.[1]??"")}function i(e,t){let r="",n=e[t+1];for(;!(" "!==n&&"\t"!==n&&"\n"!==n&&"\r"!==n||"\r"===n&&"\n"!==e[t+2]);)"\n"===n&&(r+="\n"),n=e[(t+=1)+1];return r||(r=" "),{fold:r,offset:t}}const a={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function c(e,t,r,n){const o=e.substr(t,r),s=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const o=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(s)}t.resolveFlowScalar=function(e,t,r){const{offset:u,type:l,source:f,end:d}=e;let h,p;const m=(e,t,n)=>r(u+e,t,n);switch(l){case"scalar":h=n.Scalar.PLAIN,p=function(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),s(e)}(f,m);break;case"single-quoted-scalar":h=n.Scalar.QUOTE_SINGLE,p=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),s(e.slice(1,-1)).replace(/''/g,"'")}(f,m);break;case"double-quoted-scalar":h=n.Scalar.QUOTE_DOUBLE,p=function(e,t){let r="";for(let n=1;n<e.length-1;++n){const o=e[n];if("\r"!==o||"\n"!==e[n+1])if("\n"===o){const{fold:t,offset:o}=i(e,n);r+=t,n=o}else if("\\"===o){let o=e[++n];const s=a[o];if(s)r+=s;else if("\n"===o)for(o=e[n+1];" "===o||"\t"===o;)o=e[1+ ++n];else if("\r"===o&&"\n"===e[n+1])for(o=e[1+ ++n];" "===o||"\t"===o;)o=e[1+ ++n];else if("x"===o||"u"===o||"U"===o){const s={x:2,u:4,U:8}[o];r+=c(e,n+1,s,t),n+=s}else{const o=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),r+=o}}else if(" "===o||"\t"===o){const t=n;let s=e[n+1];for(;" "===s||"\t"===s;)s=e[1+ ++n];"\n"===s||"\r"===s&&"\n"===e[n+2]||(r+=n>t?e.slice(t,n+1):o)}else r+=o}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}(f,m);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${l}`),{value:"",type:null,comment:"",range:[u,u+f.length,u+f.length]}}const y=u+f.length,g=o.resolveEnd(d,y,t,r);return{value:p,type:h,comment:g.comment,range:[u,y,g.offset]}}},814:(e,t)=>{"use strict";t.resolveProps=function(e,{flow:t,indicator:r,next:n,offset:o,onError:s,startOnNewline:i}){let a=!1,c=i,u=i,l="",f="",d=!1,h=!1,p=!1,m=null,y=null,g=null,v=null,b=null;for(const n of e)switch(p&&("space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),n.type){case"space":!t&&c&&"doc-start"!==r&&"\t"===n.source[0]&&s(n,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||s(n,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=n.source.substring(1)||" ";l?l+=f+e:l=e,f="",c=!1;break}case"newline":c?l?l+=n.source:a=!0:f+=n.source,c=!0,d=!0,(m||y)&&(h=!0),u=!0;break;case"anchor":m&&s(n,"MULTIPLE_ANCHORS","A node can have at most one anchor"),n.source.endsWith(":")&&s(n.offset+n.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=n,null===b&&(b=n.offset),c=!1,u=!1,p=!0;break;case"tag":y&&s(n,"MULTIPLE_TAGS","A node can have at most one tag"),y=n,null===b&&(b=n.offset),c=!1,u=!1,p=!0;break;case r:(m||y)&&s(n,"BAD_PROP_ORDER",`Anchors and tags must be after the ${n.source} indicator`),v&&s(n,"UNEXPECTED_TOKEN",`Unexpected ${n.source} in ${t??"collection"}`),v=n,c=!1,u=!1;break;case"comma":if(t){g&&s(n,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),g=n,c=!1,u=!1;break}default:s(n,"UNEXPECTED_TOKEN",`Unexpected ${n.type} token`),c=!1,u=!1}const _=e[e.length-1],w=_?_.offset+_.source.length:o;return p&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:g,found:v,spaceBefore:a,comment:l,hasNewline:d,hasNewlineAfterProp:h,anchor:m,tag:y,end:w,start:b??w}}},7627:(e,t)=>{"use strict";t.containsNewline=function e(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end)for(const e of t.end)if("newline"===e.type)return!0;return!1;case"flow-collection":for(const r of t.items){for(const e of r.start)if("newline"===e.type)return!0;if(r.sep)for(const e of r.sep)if("newline"===e.type)return!0;if(e(r.key)||e(r.value))return!0}return!1;default:return!0}}},3576:(e,t)=>{"use strict";t.emptyScalarPosition=function(e,t,r){if(t){null===r&&(r=t.length);for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++n];"space"===r?.type;)e+=r.source.length,r=t[++n];break}}return e}},7049:(e,t,r)=>{"use strict";var n=r(7627);t.flowIndentCheck=function(e,t,r){if("flow-collection"===t?.type){const o=t.end[0];o.indent!==e||"]"!==o.source&&"}"!==o.source||!n.containsNewline(t)||r(o,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}},434:(e,t,r)=>{"use strict";var n=r(7384);t.mapIncludes=function(e,t,r){const{uniqueKeys:o}=e.options;if(!1===o)return!1;const s="function"==typeof o?o:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>s(e.key,r)))}},505:(e,t,r)=>{"use strict";var n=r(366),o=r(1928),s=r(7384),i=r(7356),a=r(5805),c=r(9442),u=r(121),l=r(7763),f=r(5157),d=r(6791),h=r(9534),p=r(3848);class m{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,s.NODE_TYPE,{value:s.DOC});let n=null;"function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t,t=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=o;let{version:i}=o;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new p.Directives({version:i}),this.setSchema(i,r),this.contents=void 0===e?null:this.createNode(e,n,r)}clone(){const e=Object.create(m.prototype,{[s.NODE_TYPE]:{value:s.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=s.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){y(this.contents)&&this.contents.add(e)}addIn(e,t){y(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=f.anchorNames(this);e.anchor=!t||r.has(t)?f.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n;if("function"==typeof t)e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,r=t.filter(e).map(String);r.length>0&&(t=t.concat(r)),n=t}else void 0===r&&t&&(r=t,t=void 0);const{aliasDuplicateObjects:o,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{},{onAnchor:d,setAnchors:p,sourceObjects:m}=f.createNodeAnchors(this,i||"a"),y={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:m},g=h.createNode(e,l,y);return a&&s.isCollection(g)&&(g.flow=!0),p(),g}createPair(e,t,r={}){const n=this.createNode(e,null,r),o=this.createNode(t,null,r);return new i.Pair(n,o)}delete(e){return!!y(this.contents)&&this.contents.delete(e)}deleteIn(e){return o.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!y(this.contents)&&this.contents.deleteIn(e)}get(e,t){return s.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return o.isEmptyPath(e)?!t&&s.isScalar(this.contents)?this.contents.value:this.contents:s.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!s.isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return o.isEmptyPath(e)?void 0!==this.contents:!!s.isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=o.collectionFromPath(this.schema,[e],t):y(this.contents)&&this.contents.set(e,t)}setIn(e,t){o.isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=o.collectionFromPath(this.schema,Array.from(e),t):y(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new p.Directives({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new p.Directives({version:e}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!r)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new c.Schema(Object.assign(r,t))}}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:s}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100,stringify:u.stringify},c=a.toJS(this.contents,t??"",i);if("function"==typeof o)for(const{count:e,res:t}of i.anchors.values())o(t,e);return"function"==typeof s?d.applyReviver(s,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return l.stringifyDocument(this,e)}}function y(e){if(s.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}t.Document=m},5157:(e,t,r)=>{"use strict";var n=r(7384),o=r(9303);function s(e){const t=new Set;return o.visit(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function i(e,t){for(let r=1;;++r){const n=`${e}${r}`;if(!t.has(n))return n}}t.anchorIsValid=function(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0},t.anchorNames=s,t.createNodeAnchors=function(e,t){const r=[],o=new Map;let a=null;return{onAnchor:n=>{r.push(n),a||(a=s(e));const o=i(t,a);return a.add(o),o},setAnchors:()=>{for(const e of r){const t=o.get(e);if("object"!=typeof t||!t.anchor||!n.isScalar(t.node)&&!n.isCollection(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:o}},t.findNewAnchor=i},6791:(e,t)=>{"use strict";t.applyReviver=function e(t,r,n,o){if(o&&"object"==typeof o)if(Array.isArray(o))for(let r=0,n=o.length;r<n;++r){const n=o[r],s=e(t,o,String(r),n);void 0===s?delete o[r]:s!==n&&(o[r]=s)}else if(o instanceof Map)for(const r of Array.from(o.keys())){const n=o.get(r),s=e(t,o,r,n);void 0===s?o.delete(r):s!==n&&o.set(r,s)}else if(o instanceof Set)for(const r of Array.from(o)){const n=e(t,o,r,r);void 0===n?o.delete(r):n!==r&&(o.delete(r),o.add(n))}else for(const[r,n]of Object.entries(o)){const s=e(t,o,r,n);void 0===s?delete o[r]:s!==n&&(o[r]=s)}return t.call(r,n,o)}},9534:(e,t,r)=>{"use strict";var n=r(366),o=r(7384),s=r(5738);t.createNode=function(e,t,r){if(o.isDocument(e)&&(e=e.contents),o.isNode(e))return e;if(o.isPair(e)){const t=r.schema[o.MAP].createNode?.(r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:a,onTagObj:c,schema:u,sourceObjects:l}=r;let f;if(i&&e&&"object"==typeof e){if(f=l.get(e),f)return f.anchor||(f.anchor=a(e)),new n.Alias(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,r){if(t){const e=r.filter((e=>e.tag===t)),n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}(e,t,u.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new s.Scalar(e);return f&&(f.node=t),t}d=e instanceof Map?u[o.MAP]:Symbol.iterator in Object(e)?u[o.SEQ]:u[o.MAP]}c&&(c(d),delete r.onTagObj);const h=d?.createNode?d.createNode(r.schema,e,r):new s.Scalar(e);return t&&(h.tag=t),f&&(f.node=h),h}},3848:(e,t,r)=>{"use strict";var n=r(7384),o=r(9303);const s={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class i{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},i.defaultYaml,e),this.tags=Object.assign({},i.defaultTags,t)}clone(){const e=new i(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new i(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:i.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},i.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:i.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},i.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),n=r.shift();switch(n){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[e,n]=r;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=r;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}const[,r,n]=e.match(/^(.*!)([^!]*)$/);n||t(`The ${e} tag has no suffix`);const o=this.tags[r];return o?o+decodeURIComponent(n):"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+e.substring(r.length).replace(/[!,[\]{}]/g,(e=>s[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let s;if(e&&r.length>0&&n.isNode(e.contents)){const t={};o.visit(e.contents,((e,r)=>{n.isNode(r)&&r.tag&&(t[r.tag]=!0)})),s=Object.keys(t)}else s=[];for(const[n,o]of r)"!!"===n&&"tag:yaml.org,2002:"===o||e&&!s.some((e=>e.startsWith(o)))||t.push(`%TAG ${n} ${o}`);return t.join("\n")}}i.defaultYaml={explicit:!1,version:"1.2"},i.defaultTags={"!!":"tag:yaml.org,2002:"},t.Directives=i},2981:(e,t)=>{"use strict";class r extends Error{constructor(e,t,r,n){super(),this.name=e,this.code=r,this.message=n,this.pos=t}}t.YAMLError=r,t.YAMLParseError=class extends r{constructor(e,t,r){super("YAMLParseError",e,t,r)}},t.YAMLWarning=class extends r{constructor(e,t,r){super("YAMLWarning",e,t,r)}},t.prettifyError=(e,t)=>r=>{if(-1===r.pos[0])return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let s=o-1,i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const e=Math.min(s-39,i.length-79);i="…"+i.substring(e),s-=e-1}if(i.length>80&&(i=i.substring(0,79)+"…"),n>1&&/^ *$/.test(i.substring(0,s))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);r.length>80&&(r=r.substring(0,79)+"…\n"),i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];t&&t.line===n&&t.col>o&&(e=Math.min(t.col-o,80-s));const a=" ".repeat(s)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}}},4667:(e,t,r)=>{"use strict";var n=r(1294),o=r(505),s=r(9442),i=r(2981),a=r(366),c=r(7384),u=r(7356),l=r(5738),f=r(8228),d=r(9248),h=r(8575),p=r(5757),m=r(862),y=r(654),g=r(3769),v=r(9303);t.Composer=n.Composer,t.Document=o.Document,t.Schema=s.Schema,t.YAMLError=i.YAMLError,t.YAMLParseError=i.YAMLParseError,t.YAMLWarning=i.YAMLWarning,t.Alias=a.Alias,t.isAlias=c.isAlias,t.isCollection=c.isCollection,t.isDocument=c.isDocument,t.isMap=c.isMap,t.isNode=c.isNode,t.isPair=c.isPair,t.isScalar=c.isScalar,t.isSeq=c.isSeq,t.Pair=u.Pair,t.Scalar=l.Scalar,t.YAMLMap=f.YAMLMap,t.YAMLSeq=d.YAMLSeq,t.CST=h,t.Lexer=p.Lexer,t.LineCounter=m.LineCounter,t.Parser=y.Parser,t.parse=g.parse,t.parseAllDocuments=g.parseAllDocuments,t.parseDocument=g.parseDocument,t.stringify=g.stringify,t.visit=v.visit,t.visitAsync=v.visitAsync},4774:(e,t)=>{"use strict";t.debug=function(e,...t){"debug"===e&&console.log(...t)},t.warn=function(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}},366:(e,t,r)=>{"use strict";var n=r(5157),o=r(9303),s=r(7384);class i extends s.NodeBase{constructor(e){super(s.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return o.visit(e,{Node:(e,r)=>{if(r===this)return o.visit.BREAK;r.anchor===this.source&&(t=r)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:o}=t,s=this.resolve(n);if(!s){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const i=r.get(s);if(!i||void 0===i.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=a(n,s,r)),i.count*i.aliasCount>o))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return i.res}toString(e,t,r){const o=`*${this.source}`;if(e){if(n.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${o} `}return o}}function a(e,t,r){if(s.isAlias(t)){const n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}if(s.isCollection(t)){let n=0;for(const o of t.items){const t=a(e,o,r);t>n&&(n=t)}return n}if(s.isPair(t)){const n=a(e,t.key,r),o=a(e,t.value,r);return Math.max(n,o)}return 1}t.Alias=i},1928:(e,t,r)=>{"use strict";var n=r(9534),o=r(7384);function s(e,t,r){let o=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){const e=[];e[r]=o,o=e}else o=new Map([[r,o]])}return n.createNode(o,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const i=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class a extends o.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>o.isNode(t)||o.isPair(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(i(e))this.add(t);else{const[r,...n]=e,i=this.get(r,!0);if(o.isCollection(i))i.addIn(n,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`);this.set(r,s(this.schema,n,t))}}}deleteIn(e){const[t,...r]=e;if(0===r.length)return this.delete(t);const n=this.get(t,!0);if(o.isCollection(n))return n.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e,s=this.get(r,!0);return 0===n.length?!t&&o.isScalar(s)?s.value:s:o.isCollection(s)?s.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!o.isPair(t))return!1;const r=t.value;return null==r||e&&o.isScalar(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(0===r.length)return this.has(t);const n=this.get(t,!0);return!!o.isCollection(n)&&n.hasIn(r)}setIn(e,t){const[r,...n]=e;if(0===n.length)this.set(r,t);else{const e=this.get(r,!0);if(o.isCollection(e))e.setIn(n,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`);this.set(r,s(this.schema,n,t))}}}}a.maxFlowStringSingleLineLength=60,t.Collection=a,t.collectionFromPath=s,t.isEmptyPath=i},7384:(e,t)=>{"use strict";const r=Symbol.for("yaml.alias"),n=Symbol.for("yaml.document"),o=Symbol.for("yaml.map"),s=Symbol.for("yaml.pair"),i=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),u=e=>!!e&&"object"==typeof e&&e[c]===i;function l(e){if(e&&"object"==typeof e)switch(e[c]){case o:case a:return!0}return!1}t.ALIAS=r,t.DOC=n,t.MAP=o,t.NODE_TYPE=c,t.NodeBase=class{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}},t.PAIR=s,t.SCALAR=i,t.SEQ=a,t.hasAnchor=e=>(u(e)||l(e))&&!!e.anchor,t.isAlias=e=>!!e&&"object"==typeof e&&e[c]===r,t.isCollection=l,t.isDocument=e=>!!e&&"object"==typeof e&&e[c]===n,t.isMap=e=>!!e&&"object"==typeof e&&e[c]===o,t.isNode=function(e){if(e&&"object"==typeof e)switch(e[c]){case r:case o:case i:case a:return!0}return!1},t.isPair=e=>!!e&&"object"==typeof e&&e[c]===s,t.isScalar=u,t.isSeq=e=>!!e&&"object"==typeof e&&e[c]===a},7356:(e,t,r)=>{"use strict";var n=r(9534),o=r(4418),s=r(6434),i=r(7384);class a{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return i.isNode(t)&&(t=t.clone(e)),i.isNode(r)&&(r=r.clone(e)),new a(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return s.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?o.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=a,t.createPair=function(e,t,r){const o=n.createNode(e,void 0,r),s=n.createNode(t,void 0,r);return new a(o,s)}},5738:(e,t,r)=>{"use strict";var n=r(7384),o=r(5805);class s extends n.NodeBase{constructor(e){super(n.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}s.BLOCK_FOLDED="BLOCK_FOLDED",s.BLOCK_LITERAL="BLOCK_LITERAL",s.PLAIN="PLAIN",s.QUOTE_DOUBLE="QUOTE_DOUBLE",s.QUOTE_SINGLE="QUOTE_SINGLE",t.Scalar=s,t.isScalarValue=e=>!e||"function"!=typeof e&&"object"!=typeof e},8228:(e,t,r)=>{"use strict";var n=r(2970),o=r(6434),s=r(1928),i=r(7384),a=r(7356),c=r(5738);function u(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e)if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}class l extends s.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e),this.items=[]}add(e,t){let r;r=i.isPair(e)?e:e&&"object"==typeof e&&"key"in e?new a.Pair(e.key,e.value):new a.Pair(e,e?.value);const n=u(this.items,r.key),o=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);i.isScalar(n.value)&&c.isScalarValue(r.value)?n.value.value=r.value:n.value=r.value}else if(o){const e=this.items.findIndex((e=>o(r,e)<0));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){const t=u(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const r=u(this.items,e),n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!u(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(n);for(const e of this.items)o.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items)if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=l,t.findPair=u},9248:(e,t,r)=>{"use strict";var n=r(2970),o=r(1928),s=r(7384),i=r(5738),a=r(5805);class c extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(s.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=u(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const r=u(e);if("number"!=typeof r)return;const n=this.items[r];return!t&&s.isScalar(n)?n.value:n}has(e){const t=u(e);return"number"==typeof t&&t<this.items.length}set(e,t){const r=u(e);if("number"!=typeof r)throw new Error(`Expected a valid index, not ${e}.`);const n=this.items[r];s.isScalar(n)&&i.isScalarValue(t)?n.value=t:this.items[r]=t}toJSON(e,t){const r=[];t?.onCreate&&t.onCreate(r);let n=0;for(const e of this.items)r.push(a.toJS(e,String(n++),t));return r}toString(e,t,r){return e?n.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}}function u(e){let t=s.isScalar(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}t.YAMLSeq=c},6434:(e,t,r)=>{"use strict";var n=r(4774),o=r(121),s=r(7384),i=r(5738),a=r(5805);function c(e,t,r){const n=e&&s.isAlias(r)?r.resolve(e.doc):r;if(!s.isMap(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,e,Map);for(const[e,r]of o)t instanceof Map?t.has(e)||t.set(e,r):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0});return t}t.addPairToJSMap=function(e,t,{key:r,value:u}){if(e?.doc.schema.merge&&(e=>"<<"===e||s.isScalar(e)&&"<<"===e.value&&(!e.type||e.type===i.Scalar.PLAIN))(r))if(u=s.isAlias(u)?u.resolve(e.doc):u,s.isSeq(u))for(const r of u.items)c(e,t,r);else if(Array.isArray(u))for(const r of u)c(e,t,r);else c(e,t,u);else{const i=a.toJS(r,"",e);if(t instanceof Map)t.set(i,a.toJS(u,i,e));else if(t instanceof Set)t.add(i);else{const c=function(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(s.isNode(e)&&r&&r.doc){const t=o.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const s=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(s);e.length>40&&(e=e.substring(0,36)+'..."'),n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return s}return JSON.stringify(t)}(r,i,e),l=a.toJS(u,c,e);c in t?Object.defineProperty(t,c,{value:l,writable:!0,enumerable:!0,configurable:!0}):t[c]=l}}return t}},5805:(e,t,r)=>{"use strict";var n=r(7384);t.toJS=function e(t,r,o){if(Array.isArray(t))return t.map(((t,r)=>e(t,String(r),o)));if(t&&"function"==typeof t.toJSON){if(!o||!n.hasAnchor(t))return t.toJSON(r,o);const e={aliasCount:0,count:1,res:void 0};o.anchors.set(t,e),o.onCreate=t=>{e.res=t,delete o.onCreate};const s=t.toJSON(r,o);return o.onCreate&&o.onCreate(s),s}return"bigint"!=typeof t||o?.keep?t:Number(t)}},1771:(e,t,r)=>{"use strict";var n=r(1070),o=r(5147),s=r(2981),i=r(3955);function a(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function c(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let o=t.length;"block-scalar-header"===e.props[0].type&&(o-=e.props[0].source.length);for(const e of n)e.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:r,source:t,end:[n]});break}default:{const n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}t.createScalarToken=function(e,t){const{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:s=-1,type:c="PLAIN"}=t,u=i.stringifyString({type:c,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(u[0]){case"|":case">":{const e=u.indexOf("\n"),t=u.substring(0,e),r=u.substring(e+1)+"\n",o=[{type:"block-scalar-header",offset:s,indent:n,source:t}];return a(o,l)||o.push({type:"newline",offset:-1,indent:n,source:"\n"}),{type:"block-scalar",offset:s,indent:n,props:o,source:r}}case'"':return{type:"double-quoted-scalar",offset:s,indent:n,source:u,end:l};case"'":return{type:"single-quoted-scalar",offset:s,indent:n,source:u,end:l};default:return{type:"scalar",offset:s,indent:n,source:u,end:l}}},t.resolveAsScalar=function(e,t=!0,r){if(e){const i=(e,t,n)=>{const o="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!r)throw new s.YAMLParseError([o,o+1],t,n);r(o,t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return o.resolveFlowScalar(e,t,i);case"block-scalar":return n.resolveBlockScalar(e,t,i)}}return null},t.setScalarValue=function(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:s=!1,type:u}=r,l="indent"in e?e.indent:null;if(n&&"number"==typeof l&&(l+=2),!u)switch(e.type){case"single-quoted-scalar":u="QUOTE_SINGLE";break;case"double-quoted-scalar":u="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");u=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:u="PLAIN"}const f=i.stringifyString({type:u,value:t},{implicitKey:o||null===l,indent:null!==l&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(f[0]){case"|":case">":!function(e,t){const r=t.indexOf("\n"),n=t.substring(0,r),o=t.substring(r+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=n,e.source=o}else{const{offset:t}=e,r="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:t,indent:r,source:n}];a(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:s,source:o})}}(e,f);break;case'"':c(e,f,"double-quoted-scalar");break;case"'":c(e,f,"single-quoted-scalar");break;default:c(e,f,"scalar")}}},896:(e,t)=>{"use strict";function r(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=r(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=n(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=n(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=n(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function n({start:e,key:t,sep:n,value:o}){let s="";for(const t of e)s+=t.source;if(t&&(s+=r(t)),n)for(const e of n)s+=e.source;return o&&(s+=r(o)),s}t.stringify=e=>"type"in e?r(e):n(e)},5340:(e,t)=>{"use strict";const r=Symbol("break visit"),n=Symbol("skip children"),o=Symbol("remove item");function s(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),i(Object.freeze([]),e,t)}function i(e,t,n){let s=n(t,e);if("symbol"==typeof s)return s;for(const a of["key","value"]){const c=t[a];if(c&&"items"in c){for(let t=0;t<c.items.length;++t){const s=i(Object.freeze(e.concat([[a,t]])),c.items[t],n);if("number"==typeof s)t=s-1;else{if(s===r)return r;s===o&&(c.items.splice(t,1),t-=1)}}"function"==typeof s&&"key"===a&&(s=s(t,e))}}return"function"==typeof s?s(t,e):s}s.BREAK=r,s.SKIP=n,s.REMOVE=o,s.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(!t||!("items"in t))return;r=t.items[n]}return r},s.parentCollection=(e,t)=>{const r=s.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r?.[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")},t.visit=s},8575:(e,t,r)=>{"use strict";var n=r(1771),o=r(896),s=r(5340);t.createScalarToken=n.createScalarToken,t.resolveAsScalar=n.resolveAsScalar,t.setScalarValue=n.setScalarValue,t.stringify=o.stringify,t.visit=s.visit,t.BOM="\ufeff",t.DOCUMENT="",t.FLOW_END="",t.SCALAR="",t.isCollection=e=>!!e&&"items"in e,t.isScalar=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),t.prettyToken=function(e){switch(e){case"\ufeff":return"<BOM>";case"":return"<DOC>";case"":return"<FLOW_END>";case"":return"<SCALAR>";default:return JSON.stringify(e)}},t.tokenType=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}},5757:(e,t,r)=>{"use strict";var n=r(8575);function o(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const s="0123456789ABCDEFabcdef".split(""),i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),a=",[]{}".split(""),c=" ,[]{}\n\r\t".split(""),u=e=>!e||c.includes(e);t.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;" "===t;)t=this.buffer[++r+e];if("\r"===t){const t=this.buffer[r+e+1];if("\n"===t||!t&&!this.atEnd)return e+r+1}return"\n"===t||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&o(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===n.BOM&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const r=e.indexOf("#");if(-1!==r){const n=e[r-1];" "!==n&&"\t"!==n||(t=r-1)}for(;;){const r=e[t-1];if(" "!==r&&"\t"!==r)break;t-=1}const n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield n.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if("---"===e&&o(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&o(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!o(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&o(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(u),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,r=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const s=this.getLine();if(null===s)return this.setNext("flow");if((-1!==r&&r<this.indentNext&&"#"!==s[0]||0===r&&(s.startsWith("---")||s.startsWith("..."))&&o(s[3]))&&(r!==this.indentNext-1||1!==this.flowLevel||"]"!==s[0]&&"}"!==s[0]))return this.flowLevel=0,yield n.FLOW_END,yield*this.parseLineStart();let i=0;for(;","===s[i];)i+=(yield*this.pushCount(1)),i+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i+=(yield*this.pushIndicators()),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(u),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||o(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const r=this.buffer.substring(0,t);let n=r.indexOf("\n",this.pos);if(-1!==n){for(;-1!==n;){const e=this.continueScalar(n+1);if(-1===e)break;n=r.indexOf("\n",e)}-1!==n&&(t=n-("\r"===r[n-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>o(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,r=0;e:for(let n=this.pos;e=this.buffer[n];++n)switch(e){case" ":r+=1;break;case"\n":t=n,r=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=r:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,n=this.buffer[e];"\r"===n&&(n=this.buffer[--e]);const o=e;for(;" "===n||"\t"===n;)n=this.buffer[--e];if(!("\n"===n&&e>=this.pos&&e+1+r>o))break;t=e}return yield n.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,r=this.pos-1,s=this.pos-1;for(;t=this.buffer[++s];)if(":"===t){const t=this.buffer[s+1];if(o(t)||e&&","===t)break;r=s}else if(o(t)){let n=this.buffer[s+1];if("\r"===t&&("\n"===n?(s+=1,t="\n",n=this.buffer[s+1]):r=s),"#"===n||e&&a.includes(n))break;if("\n"===t){const e=this.continueScalar(s+1);if(-1===e)break;s=Math.max(s,e-2)}}else{if(e&&a.includes(t))break;r=s}return t||this.atEnd?(yield n.SCALAR,yield*this.pushToIndex(r+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(u))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(o(t)||e&&a.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!o(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.includes(t))t=this.buffer[++e];else{if("%"!==t||!s.includes(this.buffer[e+1])||!s.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,r=this.pos-1;do{t=this.buffer[++r]}while(" "===t||e&&"\t"===t);const n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}},862:(e,t)=>{"use strict";t.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t<r;){const n=t+r>>1;this.lineStarts[n]<e?t=n+1:r=n}return this.lineStarts[t]===e?{line:t+1,col:1}:0===t?{line:0,col:e}:{line:t,col:e-this.lineStarts[t-1]+1}}}}},654:(e,t,r)=>{"use strict";var n=r(8575),o=r(5757);function s(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function i(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function a(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function c(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function u(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function l(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||s(t.start,"explicit-key-ind")||s(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,a(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}t.Parser=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new o.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);t||(yield*this.end())}*next(e){if(this.source=e,process.env.LOG_TOKENS&&console.log("|",n.prettyToken(e)),this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=n.tokenType(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&l(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!r.sep)return Object.assign(r,{key:t,sep:[]}),void(this.onKeyLine=!s(r.start,"explicit-key-ind"));r.value=t;break}case"block-seq":{const r=e.items[e.items.length-1];r.value?e.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];return void(!r||r.value?e.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===i(r.start)&&(0===t.indent||r.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=r.start:e.items.push({start:r.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==i(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=u(c(this.peek(2)));let r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const r="end"in t.value?t.value.end:void 0,n=Array.isArray(r)?r[r.length-1]:void 0;"comment"===n?.type?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],n=r?.value?.end;if(Array.isArray(n))return Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent&&t.sep;let n=[];if(r&&t.sep&&!t.value){const r=[];for(let n=0;n<t.sep.length;++n){const o=t.sep[n];switch(o.type){case"newline":r.push(n);break;case"space":break;case"comment":o.indent>e.indent&&(r.length=0);break;default:r.length=0}}r.length>=2&&(n=t.sep.splice(r[1]))}switch(this.type){case"anchor":case"tag":return void(r||t.value?(n.push(this.sourceToken),e.items.push({start:n}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||s(t.start,"explicit-key-ind")?r||t.value?(n.push(this.sourceToken),e.items.push({start:n})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(s(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(s(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]});else if(a(t.key)&&!s(t.sep,"newline")){const e=u(t.start),r=t.key,n=t.sep;n.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else n.length>0?t.sep=t.sep.concat(n,this.sourceToken):t.sep.push(this.sourceToken);else if(s(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=u(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||r?e.items.push({start:n,key:null,sep:[this.sourceToken]}):s(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);return void(r||t.value?(e.items.push({start:n,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0))}default:{const o=this.startBlockValue(e);if(o)return r&&"block-seq"!==o.type&&s(t.start,"explicit-key-ind")&&e.items.push({start:n}),void this.stack.push(o)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:void 0,n=Array.isArray(r)?r[r.length-1]:void 0;"comment"===n?.type?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],n=r?.value?.end;if(Array.isArray(n))return Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||s(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const r=u(c(t));l(e);const n=e.end.splice(1,e.end.length);n.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=u(c(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=u(c(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}},3769:(e,t,r)=>{"use strict";var n=r(1294),o=r(505),s=r(2981),i=r(4774),a=r(862),c=r(654);function u(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new a.LineCounter||null,prettyErrors:t}}function l(e,t={}){const{lineCounter:r,prettyErrors:o}=u(t),i=new c.Parser(r?.addNewLine),a=new n.Composer(t);let l=null;for(const t of a.compose(i.parse(e),!0,e.length))if(l){if("silent"!==l.options.logLevel){l.errors.push(new s.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else l=t;return o&&r&&(l.errors.forEach(s.prettifyError(e,r)),l.warnings.forEach(s.prettifyError(e,r))),l}t.parse=function(e,t,r){let n;"function"==typeof t?n=t:void 0===r&&t&&"object"==typeof t&&(r=t);const o=l(e,r);if(!o)return null;if(o.warnings.forEach((e=>i.warn(o.options.logLevel,e))),o.errors.length>0){if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))},t.parseAllDocuments=function(e,t={}){const{lineCounter:r,prettyErrors:o}=u(t),i=new c.Parser(r?.addNewLine),a=new n.Composer(t),l=Array.from(a.compose(i.parse(e)));if(o&&r)for(const t of l)t.errors.forEach(s.prettifyError(e,r)),t.warnings.forEach(s.prettifyError(e,r));return l.length>0?l:Object.assign([],{empty:!0},a.streamInfo())},t.parseDocument=l,t.stringify=function(e,t,r){let n=null;if("function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t),"string"==typeof r&&(r=r.length),"number"==typeof r){const e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=r??t??{};if(!e)return}return new o.Document(e,n,r).toString(r)}},9442:(e,t,r)=>{"use strict";var n=r(7384),o=r(4457),s=r(4284),i=r(5077),a=r(8927);const c=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class u{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:u,schema:l,sortMapEntries:f,toStringDefaults:d}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null,this.merge=!!r,this.name="string"==typeof l&&l||"core",this.knownTags=u?a.coreKnownTags:{},this.tags=a.getTags(t,this.name),this.toStringOptions=d??null,Object.defineProperty(this,n.MAP,{value:o.map}),Object.defineProperty(this,n.SCALAR,{value:i.string}),Object.defineProperty(this,n.SEQ,{value:s.seq}),this.sortMapEntries="function"==typeof f?f:!0===f?c:null}clone(){const e=Object.create(u.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}t.Schema=u},4457:(e,t,r)=>{"use strict";var n=r(7384),o=r(7356),s=r(8228);const i={collection:"map",createNode:function(e,t,r){const{keepUndefined:n,replacer:i}=r,a=new s.YAMLMap(e),c=(e,s)=>{if("function"==typeof i)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==s||n)&&a.items.push(o.createPair(e,s,r))};if(t instanceof Map)for(const[e,r]of t)c(e,r);else if(t&&"object"==typeof t)for(const e of Object.keys(t))c(e,t[e]);return"function"==typeof e.sortMapEntries&&a.items.sort(e.sortMapEntries),a},default:!0,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(n.isMap(e)||t("Expected a mapping for this tag"),e)};t.map=i},4556:(e,t,r)=>{"use strict";var n=r(5738);const o={identify:e=>null==e,createNode:()=>new n.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&o.test.test(e)?e:t.options.nullStr};t.nullTag=o},4284:(e,t,r)=>{"use strict";var n=r(9534),o=r(7384),s=r(9248);const i={collection:"seq",createNode:function(e,t,r){const{replacer:o}=r,i=new s.YAMLSeq(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"==typeof o){const r=t instanceof Set?s:String(e++);s=o.call(t,r,s)}i.items.push(n.createNode(s,void 0,r))}}return i},default:!0,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(o.isSeq(e)||t("Expected a sequence for this tag"),e)};t.seq=i},5077:(e,t,r)=>{"use strict";var n=r(3955);const o={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,o)=>(t=Object.assign({actualString:!0},t),n.stringifyString(e,t,r,o))};t.string=o},9882:(e,t,r)=>{"use strict";var n=r(5738);const o={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},r)=>e&&o.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?r.options.trueStr:r.options.falseStr};t.boolTag=o},2612:(e,t,r)=>{"use strict";var n=r(5738),o=r(6592);const s={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:o.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():o.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e)),r=e.indexOf(".");return-1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:o.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=s},8893:(e,t,r)=>{"use strict";var n=r(6592);const o=e=>"bigint"==typeof e||Number.isInteger(e),s=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function i(e,t,r){const{value:s}=e;return o(s)&&s>=0?r+s.toString(t):n.stringifyNumber(e)}const a={identify:e=>o(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>s(e,2,8,r),stringify:e=>i(e,8,"0o")},c={identify:o,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>s(e,0,10,r),stringify:n.stringifyNumber},u={identify:e=>o(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>s(e,2,16,r),stringify:e=>i(e,16,"0x")};t.int=c,t.intHex=u,t.intOct=a},3156:(e,t,r)=>{"use strict";var n=r(4457),o=r(4556),s=r(4284),i=r(5077),a=r(9882),c=r(2612),u=r(8893);const l=[n.map,s.seq,i.string,o.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=l},3535:(e,t,r)=>{"use strict";var n=r(5738),o=r(4457),s=r(4284);function i(e){return"bigint"==typeof e||Number.isInteger(e)}const a=({value:e})=>JSON.stringify(e),c=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:a},{identify:e=>null==e,createNode:()=>new n.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:a},{identify:i,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}],u={default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)},l=[o.map,s.seq].concat(c,u);t.schema=l},8927:(e,t,r)=>{"use strict";var n=r(4457),o=r(4556),s=r(4284),i=r(5077),a=r(9882),c=r(2612),u=r(8893),l=r(3156),f=r(3535),d=r(8062),h=r(9497),p=r(6780),m=r(2321),y=r(1114),g=r(4849);const v=new Map([["core",l.schema],["failsafe",[n.map,s.seq,i.string]],["json",f.schema],["yaml11",m.schema],["yaml-1.1",m.schema]]),b={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:g.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:g.intTime,map:n.map,null:o.nullTag,omap:h.omap,pairs:p.pairs,seq:s.seq,set:y.set,timestamp:g.timestamp},_={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":h.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":y.set,"tag:yaml.org,2002:timestamp":g.timestamp};t.coreKnownTags=_,t.getTags=function(e,t){let r=v.get(t);if(!r){if(!Array.isArray(e)){const e=Array.from(v.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}r=[]}if(Array.isArray(e))for(const t of e)r=r.concat(t);else"function"==typeof e&&(r=e(r.slice()));return r.map((e=>{if("string"!=typeof e)return e;const t=b[e];if(t)return t;const r=Object.keys(b).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}},8062:(e,t,r)=>{"use strict";var n=r(5738),o=r(3955);const s={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},s,i,a){const c=r;let u;if("function"==typeof Buffer)u=c instanceof Buffer?c.toString("base64"):Buffer.from(c.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<c.length;++t)e+=String.fromCharCode(c[t]);u=btoa(e)}}if(t||(t=n.Scalar.BLOCK_LITERAL),t!==n.Scalar.QUOTE_DOUBLE){const e=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),r=Math.ceil(u.length/e),o=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)o[t]=u.substr(n,e);u=o.join(t===n.Scalar.BLOCK_LITERAL?"\n":" ")}return o.stringifyString({comment:e,type:t,value:u},s,i,a)}};t.binary=s},601:(e,t,r)=>{"use strict";var n=r(5738);function o({value:e,source:t},r){return t&&(e?s:i).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const s={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(!0),stringify:o},i={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new n.Scalar(!1),stringify:o};t.falseTag=i,t.trueTag=s},7381:(e,t,r)=>{"use strict";var n=r(5738),o=r(6592);const s={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:o.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():o.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){const n=e.substring(r+1).replace(/_/g,"");"0"===n[n.length-1]&&(t.minFractionDigits=n.length)}return t},stringify:o.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=s},8861:(e,t,r)=>{"use strict";var n=r(6592);const o=e=>"bigint"==typeof e||Number.isInteger(e);function s(e,t,r,{intAsBigInt:n}){const o=e[0];if("-"!==o&&"+"!==o||(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===o?BigInt(-1)*t:t}const s=parseInt(e,r);return"-"===o?-1*s:s}function i(e,t,r){const{value:s}=e;if(o(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const a={identify:o,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>s(e,2,2,r),stringify:e=>i(e,2,"0b")},c={identify:o,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>s(e,1,8,r),stringify:e=>i(e,8,"0")},u={identify:o,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>s(e,0,10,r),stringify:n.stringifyNumber},l={identify:o,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>s(e,2,16,r),stringify:e=>i(e,16,"0x")};t.int=u,t.intBin=a,t.intHex=l,t.intOct=c},9497:(e,t,r)=>{"use strict";var n=r(9248),o=r(5805),s=r(7384),i=r(8228),a=r(6780);class c extends n.YAMLSeq{constructor(){super(),this.add=i.YAMLMap.prototype.add.bind(this),this.delete=i.YAMLMap.prototype.delete.bind(this),this.get=i.YAMLMap.prototype.get.bind(this),this.has=i.YAMLMap.prototype.has.bind(this),this.set=i.YAMLMap.prototype.set.bind(this),this.tag=c.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;t?.onCreate&&t.onCreate(r);for(const e of this.items){let n,i;if(s.isPair(e)?(n=o.toJS(e.key,"",t),i=o.toJS(e.value,n,t)):n=o.toJS(e,"",t),r.has(n))throw new Error("Ordered maps must not include duplicate keys");r.set(n,i)}return r}}c.tag="tag:yaml.org,2002:omap";const u={collection:"seq",identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t),n=[];for(const{key:e}of r.items)s.isScalar(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new c,r)},createNode(e,t,r){const n=a.createPairs(e,t,r),o=new c;return o.items=n.items,o}};t.YAMLOMap=c,t.omap=u},6780:(e,t,r)=>{"use strict";var n=r(7384),o=r(7356),s=r(5738),i=r(9248);function a(e,t){if(n.isSeq(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!n.isPair(i)){if(n.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const e=i.items[0]||new o.Pair(new s.Scalar(null));if(i.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore),i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new o.Pair(i)}}else t("Expected a sequence for this tag");return e}function c(e,t,r){const{replacer:n}=r,s=new i.YAMLSeq(e);s.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let i,c;if("function"==typeof n&&(e=n.call(t,String(a++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);i=e[0],c=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);i=t[0],c=e[i]}else i=e;s.items.push(o.createPair(i,c,r))}return s}const u={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:c};t.createPairs=c,t.pairs=u,t.resolvePairs=a},2321:(e,t,r)=>{"use strict";var n=r(4457),o=r(4556),s=r(4284),i=r(5077),a=r(8062),c=r(601),u=r(7381),l=r(8861),f=r(9497),d=r(6780),h=r(1114),p=r(4849);const m=[n.map,s.seq,i.string,o.nullTag,c.trueTag,c.falseTag,l.intBin,l.intOct,l.int,l.intHex,u.floatNaN,u.floatExp,u.float,a.binary,f.omap,d.pairs,h.set,p.intTime,p.floatTime,p.timestamp];t.schema=m},1114:(e,t,r)=>{"use strict";var n=r(7384),o=r(7356),s=r(8228);class i extends s.YAMLMap{constructor(e){super(e),this.tag=i.tag}add(e){let t;t=n.isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new o.Pair(e.key,null):new o.Pair(e,null),s.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const r=s.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const r=s.findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new o.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw new Error("Set items must all have null values")}}i.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,r){const{replacer:n}=r,s=new i(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof n&&(e=n.call(t,e,e)),s.items.push(o.createPair(e,null,r));return s}};t.YAMLSet=i,t.set=a},4849:(e,t,r)=>{"use strict";var n=r(6592);function o(e,t){const r=e[0],n="-"===r||"+"===r?e.substring(1):e,o=e=>t?BigInt(e):Number(e),s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*o(60)+o(t)),o(0));return"-"===r?o(-1)*s:s}function s(e){let{value:t}=e,r=e=>e;if("bigint"==typeof t)r=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let o="";t<0&&(o="-",t*=r(-1));const s=r(60),i=[t%s];return t<60?i.unshift(0):(t=(t-i[0])/s,i.unshift(t%s),t>=60&&(t=(t-i[0])/s,i.unshift(t))),o+i.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const i={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>o(e,r),stringify:s},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>o(e,!1),stringify:s},c={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(c.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,i,a,u]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(r,n-1,s,i||0,a||0,u||0,l);const d=t[8];if(d&&"Z"!==d){let e=o(d,!1);Math.abs(e)<30&&(e*=60),f-=6e4*e}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=a,t.intTime=i,t.timestamp=c},4168:(e,t)=>{"use strict";const r="block",n="quoted";function o(e,t){let r=e[t+1];for(;" "===r||"\t"===r;){do{r=e[t+=1]}while(r&&"\n"!==r);r=e[t+1]}return t}t.FOLD_BLOCK=r,t.FOLD_FLOW="flow",t.FOLD_QUOTED=n,t.foldFlowLines=function(e,t,s="flow",{indentAtStart:i,lineWidth:a=80,minContentWidth:c=20,onFold:u,onOverflow:l}={}){if(!a||a<0)return e;const f=Math.max(1+c,1+a-t.length);if(e.length<=f)return e;const d=[],h={};let p,m,y=a-t.length;"number"==typeof i&&(i>a-Math.max(2,c)?d.push(0):y=a-i);let g=!1,v=-1,b=-1,_=-1;s===r&&(v=o(e,v),-1!==v&&(y=v+f));for(let t;t=e[v+=1];){if(s===n&&"\\"===t){switch(b=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}_=v}if("\n"===t)s===r&&(v=o(e,v)),y=v+f,p=void 0;else{if(" "===t&&m&&" "!==m&&"\n"!==m&&"\t"!==m){const t=e[v+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=v)}if(v>=y)if(p)d.push(p),y=p+f,p=void 0;else if(s===n){for(;" "===m||"\t"===m;)m=t,t=e[v+=1],g=!0;const r=v>_+1?v-2:b-1;if(h[r])return e;d.push(r),h[r]=!0,y=r+f,p=void 0}else g=!0}m=t}if(g&&l&&l(),0===d.length)return e;u&&u();let w=e.slice(0,d[0]);for(let r=0;r<d.length;++r){const o=d[r],i=d[r+1]||e.length;0===o?w=`\n${t}${e.slice(0,i)}`:(s===n&&h[o]&&(w+=`${e[o]}\\`),w+=`\n${t}${e.slice(o+1,i)}`)}return w}},121:(e,t,r)=>{"use strict";var n=r(5157),o=r(7384),s=r(1705),i=r(3955);t.createStringifyContext=function(e,t){const r=Object.assign({blockQuote:!0,commentString:s.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}},t.stringify=function(e,t,r,s){if(o.isPair(e))return e.toString(t,r,s);if(o.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let a;const c=o.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>a=e});a||(a=function(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r,n;if(o.isScalar(t)){n=t.value;const o=e.filter((e=>e.identify?.(n)));r=o.find((e=>e.format===t.format))??o.find((e=>!e.format))}else n=t,r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass));if(!r)throw new Error(`Tag not resolved for ${n?.constructor?.name??typeof n} value`);return r}(t.doc.schema.tags,c));const u=function(e,t,{anchors:r,doc:s}){if(!s.directives)return"";const i=[],a=(o.isScalar(e)||o.isCollection(e))&&e.anchor;a&&n.anchorIsValid(a)&&(r.add(a),i.push(`&${a}`));const c=e.tag?e.tag:t.default?null:t.tag;return c&&i.push(s.directives.tagString(c)),i.join(" ")}(c,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l="function"==typeof a.stringify?a.stringify(c,t,r,s):o.isScalar(c)?i.stringifyString(c,t,r,s):c.toString(t,r,s);return u?o.isScalar(c)||"{"===l[0]||"["===l[0]?`${u} ${l}`:`${u}\n${t.indent}${l}`:l}},2970:(e,t,r)=>{"use strict";var n=r(1928),o=r(7384),s=r(121),i=r(1705);function a({comment:e,items:t},r,{blockItemPrefix:n,flowChars:a,itemIndent:c,onChompKeep:l,onComment:f}){const{indent:d,options:{commentString:h}}=r,p=Object.assign({},r,{indent:c,type:null});let m=!1;const y=[];for(let e=0;e<t.length;++e){const a=t[e];let l=null;if(o.isNode(a))!m&&a.spaceBefore&&y.push(""),u(r,y,a.commentBefore,m),a.comment&&(l=a.comment);else if(o.isPair(a)){const e=o.isNode(a.key)?a.key:null;e&&(!m&&e.spaceBefore&&y.push(""),u(r,y,e.commentBefore,m))}m=!1;let f=s.stringify(a,p,(()=>l=null),(()=>m=!0));l&&(f+=i.lineComment(f,c,h(l))),m&&l&&(m=!1),y.push(n+f)}let g;if(0===y.length)g=a.start+a.end;else{g=y[0];for(let e=1;e<y.length;++e){const t=y[e];g+=t?`\n${d}${t}`:"\n"}}return e?(g+="\n"+i.indentComment(h(e),d),f&&f()):m&&l&&l(),g}function c({comment:e,items:t},r,{flowChars:a,itemIndent:c,onComment:l}){const{indent:f,indentStep:d,flowCollectionPadding:h,options:{commentString:p}}=r;c+=d;const m=Object.assign({},r,{indent:c,inFlow:!0,type:null});let y=!1,g=0;const v=[];for(let e=0;e<t.length;++e){const n=t[e];let a=null;if(o.isNode(n))n.spaceBefore&&v.push(""),u(r,v,n.commentBefore,!1),n.comment&&(a=n.comment);else if(o.isPair(n)){const e=o.isNode(n.key)?n.key:null;e&&(e.spaceBefore&&v.push(""),u(r,v,e.commentBefore,!1),e.comment&&(y=!0));const t=o.isNode(n.value)?n.value:null;t?(t.comment&&(a=t.comment),t.commentBefore&&(y=!0)):null==n.value&&e&&e.comment&&(a=e.comment)}a&&(y=!0);let l=s.stringify(n,m,(()=>a=null));e<t.length-1&&(l+=","),a&&(l+=i.lineComment(l,c,p(a))),!y&&(v.length>g||l.includes("\n"))&&(y=!0),v.push(l),g=v.length}let b;const{start:_,end:w}=a;if(0===v.length)b=_+w;else if(y||(y=v.reduce(((e,t)=>e+t.length+2),2)>n.Collection.maxFlowStringSingleLineLength),y){b=_;for(const e of v)b+=e?`\n${d}${f}${e}`:"\n";b+=`\n${f}${w}`}else b=`${_}${h}${v.join(" ")}${h}${w}`;return e&&(b+=i.lineComment(b,p(e),f),l&&l()),b}function u({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const o=i.indentComment(t(n),e);r.push(o.trimStart())}}t.stringifyCollection=function(e,t,r){return(t.inFlow??e.flow?c:a)(e,t,r)}},1705:(e,t)=>{"use strict";function r(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}t.indentComment=r,t.lineComment=(e,t,n)=>e.endsWith("\n")?r(n,t):n.includes("\n")?"\n"+r(n,t):(e.endsWith(" ")?"":" ")+n,t.stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#")},7763:(e,t,r)=>{"use strict";var n=r(7384),o=r(121),s=r(1705);t.stringifyDocument=function(e,t){const r=[];let i=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(r.push(t),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");const a=o.createStringifyContext(e,t),{commentString:c}=a.options;if(e.commentBefore){1!==r.length&&r.unshift("");const t=c(e.commentBefore);r.unshift(s.indentComment(t,""))}let u=!1,l=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(s.indentComment(t,""))}a.forceBlockIndent=!!e.comment,l=e.contents.comment}const t=l?void 0:()=>u=!0;let f=o.stringify(e.contents,a,(()=>l=null),t);l&&(f+=s.lineComment(f,"",c(l))),"|"!==f[0]&&">"!==f[0]||"---"!==r[r.length-1]?r.push(f):r[r.length-1]=`--- ${f}`}else r.push(o.stringify(e.contents,a));if(e.directives?.docEnd)if(e.comment){const t=c(e.comment);t.includes("\n")?(r.push("..."),r.push(s.indentComment(t,""))):r.push(`... ${t}`)}else r.push("...");else{let t=e.comment;t&&u&&(t=t.replace(/^\n+/,"")),t&&(u&&!l||""===r[r.length-1]||r.push(""),r.push(s.indentComment(c(t),"")))}return r.join("\n")+"\n"}},6592:(e,t)=>{"use strict";t.stringifyNumber=function({format:e,minFractionDigits:t,tag:r,value:n}){if("bigint"==typeof n)return String(n);const o="number"==typeof n?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(n);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let r=t-(s.length-e-1);for(;r-- >0;)s+="0"}return s}},4418:(e,t,r)=>{"use strict";var n=r(7384),o=r(5738),s=r(121),i=r(1705);t.stringifyPair=function({key:e,value:t},r,a,c){const{allNullValues:u,doc:l,indent:f,indentStep:d,options:{commentString:h,indentSeq:p,simpleKeys:m}}=r;let y=n.isNode(e)&&e.comment||null;if(m){if(y)throw new Error("With simple keys, key nodes cannot have comments");if(n.isCollection(e))throw new Error("With simple keys, collection cannot be used as a key value")}let g=!m&&(!e||y&&null==t&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===o.Scalar.BLOCK_FOLDED||e.type===o.Scalar.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!g&&(m||!u),indent:f+d});let v,b,_,w=!1,$=!1,S=s.stringify(e,r,(()=>w=!0),(()=>$=!0));if(!g&&!r.inFlow&&S.length>1024){if(m)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(r.inFlow){if(u||null==t)return w&&a&&a(),""===S?"?":g?`? ${S}`:S}else if(u&&!m||null==t&&g)return S=`? ${S}`,y&&!w?S+=i.lineComment(S,r.indent,h(y)):$&&c&&c(),S;w&&(y=null),g?(y&&(S+=i.lineComment(S,r.indent,h(y))),S=`? ${S}\n${f}:`):(S=`${S}:`,y&&(S+=i.lineComment(S,r.indent,h(y)))),n.isNode(t)?(v=!!t.spaceBefore,b=t.commentBefore,_=t.comment):(v=!1,b=null,_=null,t&&"object"==typeof t&&(t=l.createNode(t))),r.implicitKey=!1,g||y||!n.isScalar(t)||(r.indentAtStart=S.length+1),$=!1,p||!(d.length>=2)||r.inFlow||g||!n.isSeq(t)||t.flow||t.tag||t.anchor||(r.indent=r.indent.substring(2));let E=!1;const k=s.stringify(t,r,(()=>E=!0),(()=>$=!0));let P=" ";if(y||v||b){if(P=v?"\n":"",b){const e=h(b);P+=`\n${i.indentComment(e,r.indent)}`}""!==k||r.inFlow?P+=`\n${r.indent}`:"\n"===P&&(P="\n\n")}else if(!g&&n.isCollection(t)){const e=k[0],n=k.indexOf("\n"),o=-1!==n,s=r.inFlow??t.flow??0===t.items.length;if(o||!s){let t=!1;if(o&&("&"===e||"!"===e)){let r=k.indexOf(" ");"&"===e&&-1!==r&&r<n&&"!"===k[r+1]&&(r=k.indexOf(" ",r+1)),(-1===r||n<r)&&(t=!0)}t||(P=`\n${r.indent}`)}}else""!==k&&"\n"!==k[0]||(P="");return S+=P+k,r.inFlow?E&&a&&a():_&&!E?S+=i.lineComment(S,r.indent,h(_)):$&&c&&c(),S}},3955:(e,t,r)=>{"use strict";var n=r(5738),o=r(4168);const s=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t,a=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?" ":"");let u="",l=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(u+=r.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{u+=r.slice(l,e);const t=r.substr(e+2,4);switch(t){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:"00"===t.substr(0,2)?u+="\\x"+t.substr(2):u+=r.substr(e,6)}e+=5,l=e+1}break;case"n":if(n||'"'===r[e+2]||r.length<a)e+=1;else{for(u+=r.slice(l,e)+"\n\n";"\\"===r[e+2]&&"n"===r[e+3]&&'"'!==r[e+4];)u+="\n",e+=2;u+=c," "===r[e+2]&&(u+="\\"),e+=1,l=e+1}break;default:e+=1}return u=l?u+r.slice(l):r,n?u:o.foldFlowLines(u,c,o.FOLD_QUOTED,s(t))}function c(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return a(e,t);const r=t.indent||(i(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${r}`)+"'";return t.implicitKey?n:o.foldFlowLines(n,r,o.FOLD_FLOW,s(t))}function u(e,t){const{singleQuote:r}=t.options;let n;if(!1===r)n=a;else{const t=e.includes('"'),o=e.includes("'");n=t&&!o?c:o&&!t?a:r?c:a}return n(e,t)}function l({comment:e,type:t,value:r},a,c,l){const{blockQuote:f,commentString:d,lineWidth:h}=a.options;if(!f||/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return u(r,a);const p=a.indent||(a.forceBlockIndent||i(r)?" ":""),m="literal"===f||"folded"!==f&&t!==n.Scalar.BLOCK_FOLDED&&(t===n.Scalar.BLOCK_LITERAL||!function(e,t,r){if(!t||t<0)return!1;const n=t-r,o=e.length;if(o<=n)return!1;for(let t=0,r=0;t<o;++t)if("\n"===e[t]){if(t-r>n)return!0;if(r=t+1,o-r<=n)return!1}return!0}(r,h,p.length));if(!r)return m?"|\n":">\n";let y,g;for(g=r.length;g>0;--g){const e=r[g-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let v=r.substring(g);const b=v.indexOf("\n");-1===b?y="-":r===v||b!==v.length-1?(y="+",l&&l()):y="",v&&(r=r.slice(0,-v.length),"\n"===v[v.length-1]&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${p}`));let _,w=!1,$=-1;for(_=0;_<r.length;++_){const e=r[_];if(" "===e)w=!0;else{if("\n"!==e)break;$=_}}let S=r.substring(0,$<_?$+1:_);S&&(r=r.substring(S.length),S=S.replace(/\n+/g,`$&${p}`));let E=(m?"|":">")+(w?p?"2":"1":"")+y;return e&&(E+=" "+d(e.replace(/ ?[\r\n]+/g," ")),c&&c()),m?`${E}\n${p}${S}${r=r.replace(/\n+/g,`$&${p}`)}${v}`:(r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),`${E}\n${p}${o.foldFlowLines(`${S}${r}${v}`,p,o.FOLD_BLOCK,s(a))}`)}t.stringifyString=function(e,t,r,f){const{implicitKey:d,inFlow:h}=t,p="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:m}=e;m!==n.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(p.value)&&(m=n.Scalar.QUOTE_DOUBLE);const y=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return d||h?u(p.value,t):l(p,t,r,f);case n.Scalar.QUOTE_DOUBLE:return a(p.value,t);case n.Scalar.QUOTE_SINGLE:return c(p.value,t);case n.Scalar.PLAIN:return function(e,t,r,a){const{type:c,value:f}=e,{actualString:d,implicitKey:h,indent:p,indentStep:m,inFlow:y}=t;if(h&&/[\n[\]{},]/.test(f)||y&&/[[\]{},]/.test(f))return u(f,t);if(!f||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f))return h||y||!f.includes("\n")?u(f,t):l(e,t,r,a);if(!h&&!y&&c!==n.Scalar.PLAIN&&f.includes("\n"))return l(e,t,r,a);if(i(f)){if(""===p)return t.forceBlockIndent=!0,l(e,t,r,a);if(h&&p===m)return u(f,t)}const g=f.replace(/\n+/g,`$&\n${p}`);if(d){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(g),{compat:r,tags:n}=t.doc.schema;if(n.some(e)||r?.some(e))return u(f,t)}return h?g:o.foldFlowLines(g,p,o.FOLD_FLOW,s(t))}(p,t,r,f);default:return null}};let g=y(m);if(null===g){const{defaultKeyType:e,defaultStringType:r}=t.options,n=d&&e||r;if(g=y(n),null===g)throw new Error(`Unsupported default string type ${n}`)}return g}},9303:(e,t,r)=>{"use strict";var n=r(7384);const o=Symbol("break visit"),s=Symbol("skip children"),i=Symbol("remove node");function a(e,t){const r=f(t);n.isDocument(e)?c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):c(null,e,r,Object.freeze([]))}function c(e,t,r,s){const a=d(e,t,r,s);if(n.isNode(a)||n.isPair(a))return h(e,s,a),c(e,a,r,s);if("symbol"!=typeof a)if(n.isCollection(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){const n=c(e,t.items[e],r,s);if("number"==typeof n)e=n-1;else{if(n===o)return o;n===i&&(t.items.splice(e,1),e-=1)}}}else if(n.isPair(t)){s=Object.freeze(s.concat(t));const e=c("key",t.key,r,s);if(e===o)return o;e===i&&(t.key=null);const n=c("value",t.value,r,s);if(n===o)return o;n===i&&(t.value=null)}return a}async function u(e,t){const r=f(t);n.isDocument(e)?await l(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):await l(null,e,r,Object.freeze([]))}async function l(e,t,r,s){const a=await d(e,t,r,s);if(n.isNode(a)||n.isPair(a))return h(e,s,a),l(e,a,r,s);if("symbol"!=typeof a)if(n.isCollection(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){const n=await l(e,t.items[e],r,s);if("number"==typeof n)e=n-1;else{if(n===o)return o;n===i&&(t.items.splice(e,1),e-=1)}}}else if(n.isPair(t)){s=Object.freeze(s.concat(t));const e=await l("key",t.key,r,s);if(e===o)return o;e===i&&(t.key=null);const n=await l("value",t.value,r,s);if(n===o)return o;n===i&&(t.value=null)}return a}function f(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function d(e,t,r,o){return"function"==typeof r?r(e,t,o):n.isMap(t)?r.Map?.(e,t,o):n.isSeq(t)?r.Seq?.(e,t,o):n.isPair(t)?r.Pair?.(e,t,o):n.isScalar(t)?r.Scalar?.(e,t,o):n.isAlias(t)?r.Alias?.(e,t,o):void 0}function h(e,t,r){const o=t[t.length-1];if(n.isCollection(o))o.items[e]=r;else if(n.isPair(o))"key"===e?o.key=r:o.value=r;else{if(!n.isDocument(o)){const e=n.isAlias(o)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}o.contents=r}}a.BREAK=o,a.SKIP=s,a.REMOVE=i,u.BREAK=o,u.SKIP=s,u.REMOVE=i,t.visit=a,t.visitAsync=u},6623:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},3864: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}')}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{configmap:()=>f,generate:()=>Re,utils:()=>e,validators:()=>t});var e={};r.r(e),r.d(e,{copy:()=>Se,list:()=>ke,load:()=>xe,loadAll:()=>Ne,merge:()=>je});var t={};r.r(t),r.d(t,{appshell_config:()=>Be,appshell_manifest:()=>De});var o=r(6635);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 a=/^(\${.*})/,c=/[^\w @]/g,u=function(e){var t;return null===(t=e.split(a).find((function(e){return e.match(a)})))||void 0===t?void 0:t.replace(c,"")},l=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.values)(t).reduce((function(t,r){if("string"==typeof r){var n=u(r);return n?(0,o.set)(t,n,process.env[n]):t}return"object"===i(r)?e(r,t):t}),r)};const f={apply:function e(t,r){return(0,o.entries)(t).forEach((function(n){var a,c,l=(c=2,function(e){if(Array.isArray(e))return e}(a=n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,s,i,a=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=s.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}(a,c)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(a,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=l[0],d=l[1];if("string"==typeof d){var h=u(d);if(h){var p=r[h];p||console.log("warning: value for ".concat(h," is ").concat(p)),(0,o.set)(t,f,d.replace("${".concat(h,"}"),r[h]))}}else"object"===i(d)&&e(d,r)})),t},create:function(e){return l(e)}},d=require("fs");var h=r.n(d);const p=Symbol.for("__strategy__"),m=Symbol.for("__mappings__"),y=Symbol.for("__metadata_map__"),g=Symbol.for("__metadata_object_map__"),v=Symbol.for("__error_handler__"),b=Symbol.for("__naming_conventions__"),_=Symbol.for("__recursive_depth__"),w=Symbol.for("__recursive_count__"),$=Symbol.for("__profile_configuration_context__"),S=Symbol.for("nodejs.util.inspect.custom");function E(e){return e[v]}function k(e){return e[m]}function P(e){return e[y]}function O(e){return e[g]}function N(e){return e[_]}function x(e){return e[p]}function A(e){let t=e.toString();return e.name&&(t=e.name),t}function j(e,t=[]){if(!t.length)return;let r;const n=t.length;for(r=0;r<n&&null!=e;r++)e=e[t[r]];return r&&r==n?e:void 0}function C(e,t,r,n=!1){var o;const s="string"==typeof t?Symbol.for(t):t,i="string"==typeof r?Symbol.for(r):r,a=null===(o=k(e).get(s))||void 0===o?void 0:o.get(i);if(null==a&&!n){const n=E(e),o=`Mapping is not found for ${String(t)} and ${String(r)}`;throw n.handle(o),new Error(o)}return a}function T(e){return Object.getPrototypeOf(e)===Date||e===Date}function I(e){return Array.isArray(e)?!e.length:"object"!=typeof e&&"function"!=typeof e?!e:!Object.keys(e).length}function M(e,t){return e.length===t.length&&e.every(((e,r)=>t[r]===e))}function D(e){if(null==e)return!0;const t=Object.getPrototypeOf(e);return t===String||t===Number||t===Boolean||e===String||e===Number||e===Boolean}function L(e,t,r){const{decomposedPath:n,base:o}=q(t);return void 0===o?e:(F(e,o),r=n.length<=1?r:L(e[o],n.slice(1),r),Object.assign(e,{[o]:r}))}function R(e,t,r){const{decomposedPath:n,base:o}=q(t);void 0!==o&&(F(e,o),n.length<=1?e[o]=r:R(e[o],n.slice(1),r))}function q(e){if(e.length<1)return{base:"",decomposedPath:[]};const t=e;return{base:e[0],decomposedPath:t}}function F(e,t){e.hasOwnProperty(t)||(e[t]={})}function U(e,t,r,n,o,s,i,a){let c;const u=e[0],l=e[1],f=!(D(i)||D(a)||T(i)||T(a));switch(u){case 1:case 5:c=l(t);break;case 3:c=l();break;case 4:c=l(t,s,o?{extraArgs:()=>o}:void 0);break;case 2:case 7:case 8:c=l(t,n),f&&null!=c&&(c=Array.isArray(c)?s.mapArray(c,i,a):s.map(c,i,a));break;case 9:c=l(t,o||{});break;case 10:c=U(l(t),t,r,n,o,s,i,a)}return c}function B(e,t){return r=>{t&&(t=L(t,e,r))}}function K(e,t,r,n=!1){return W({mapping:e,sourceObject:t,options:r,setMemberFn:B,isMapArray:n})}function V(e){return t=>r=>{void 0!==r&&R(e,t,r)}}function z(e){return t=>j(e,t)}function J(e,t,r,n,o=!1){W({sourceObject:t,mapping:e,setMemberFn:V(r),getMemberFn:z(r),options:n,isMapArray:o})}function W({mapping:e,sourceObject:t,options:r,setMemberFn:n,getMemberFn:o,isMapArray:s=!1}){const[[i,a],[,c],u,,l,f,,[d,h]=[]]=e,{beforeMap:p,afterMap:m,destinationConstructor:y=f,extraArgs:g}=null!=r?r:{},v=E(l),b=P(l),_=y(t,a),w=null==g?void 0:g(e,_),$=[];if(!s){const e=null!=p?p:d;e&&e(t,_,w)}for(let e=0,r=u.length;e<r;e++){const[r,[,[s,[i,c]=[]]],[f,d]=[]]=u[e];let h=!(D(f)||T(f)||D(d)||T(d)||d!==f);h&&(h=!C(l,d,f,!0));const p=e=>{var t,o;try{return n(r,_)(e())}catch(e){const n=`\nError at "${r}" on ${(null===(o=null===(t=a.prototype)||void 0===t?void 0:t.constructor)||void 0===o?void 0:o.name)||a.toString()} (${JSON.stringify(_)})\n---------------------------------------------------------------------\nOriginal error: ${e}`;throw v.handle(n),new Error(n)}};if($.push(r[0]),!i||i(t))if(6!==s[0])p((()=>U(s,t,_,r,w,l,d,f)));else{const e=b.get(a),n=e&&null===e.find((e=>M(e[0],r))),i=s[1](t),c=s[2];if(null==i||i instanceof Date||"File"===Object.prototype.toString.call(i).slice(8,-1)||n||h||c){p((()=>i));continue}if(Array.isArray(i)){const[e]=i;if("object"!=typeof e||e instanceof Date||"File"===Object.prototype.toString.call(e).slice(8,-1)){p((()=>i.slice()));continue}if(I(e)){p((()=>[]));continue}if(D(f))continue;p((()=>i.map((e=>K(C(l,d,f),e,{extraArgs:g})))));continue}if("object"==typeof i){const e=C(l,d,f);if(o){const t=o(r);void 0!==t&&W({sourceObject:i,mapping:e,options:{extraArgs:g},setMemberFn:V(t),getMemberFn:z(t)});continue}p((()=>W({mapping:e,sourceObject:i,options:{extraArgs:g},setMemberFn:B})));continue}p((()=>i))}else p((()=>c))}if(!s){const e=null!=m?m:h;e&&e(t,_,w)}return function(e,t,r,n,o,s){const i=Object.keys(t).reduce(((n,o)=>{var s;const i=o in e,a=r.some((e=>e===o)),c=!0===(null===(s=Object.getOwnPropertyDescriptor(t,o))||void 0===s?void 0:s.writable);return a||i||!c||void 0!==e[o]||n.push(o),n}),[]),a=A(n),c=A(o);if(i.length){const e=`${a} -> ${c}`;s.handle(`\nUnmapped properties for ${e}:\n-------------------\n${i.join(",\n")}\n`)}}(_,c,$,i,a,v),_}class G{static configure(e={}){this.configured||(this.configured=!0,Object.entries(e).forEach((([e,t])=>{void 0!==t&&(this[e]=t)})))}static log(e){console.log.bind(console,this.AUTOMAPPER_PREFIX,e)}static warn(e){console.warn.bind(console,this.AUTOMAPPER_PREFIX,e)}static error(e){console.error.bind(console,this.AUTOMAPPER_PREFIX,e)}static info(e){console.info.bind(console,this.AUTOMAPPER_PREFIX,e)}}G.AUTOMAPPER_PREFIX="[AutoMapper]: ",G.configured=!1;const Y=Symbol("__recursive_data__");function H(e,t,r){const n=e.get(t);return n?function(e,t){let r=e;for(const e of t)if(r=r.get(e),!r)return;return r.get(Y)}(n,r):void 0}function Q(e,t,r,n){if(!e.has(t))return void e.set(t,X(new Map,r,n));const o=e.get(t);(function(e,t){let r=e;for(const e of t){const t=r.get(e);if(!t)return!1;r=t}return r.has(Y)})(o,r)||X(o,r,n)}function X(e,t,r){let n=e;for(const e of t){let t=n.get(e);t||(t=new Map,n.set(e,t)),n=t}return n.set(Y,r),e}const Z={applyMetadata:function(e){const t=e.mapper,r=P(t),n=O(t),o=function(e){return e[w]}(t),s=N(t);return function e(t,i,a=!0,c=!1){var u;const l=r.get(t),f={};if(I(l)||!l)return f;for(let r=0,u=l.length;r<u;r++){const u=l[r][0],d=l[r][1],h=l[r][2];if(l[r][3]&&1===i)continue;const p=d();if(h){R(f,u,[]);continue}if(D(p)||null===p){R(f,u,void 0);continue}if(T(p)){R(f,u,new Date);continue}const m=H(s,t,u),y=H(o,t,u)||0;if(0===m){R(f,u,{});continue}if(m===y){!a&&c||Q(o,t,u,0),R(f,u,{});continue}Q(o,t,u,y+1);const g=n.get(p);R(f,u,(null==g?void 0:g[i])||e(p,i,!1,p===t))}return!a&&c||null===(u=o.get(t))||void 0===u||u.clear(),f}},preMap:e=>e,postMap:(e,t)=>t};function ee(e){return[6,t=>j(t,e)]}function te(e,[t,r]){const n=e.map((e=>e.split(r.splittingExpression).filter(Boolean))).filter((e=>e.length>0));return n.length?n.map((e=>t.transformPropertyName(e))):e}function re(e,t,r){const[n]=r,o=[].concat(...t.map((e=>e.split(n.splittingExpression).filter(Boolean)))),[s,...i]=o.slice(0,o.length-1);let a=s,c=0,u=ne(e,a);if(!u)for(let t=0,r=i.length;t<r;t++)if(a=n.transformPropertyName([a,i[t]]),ne(e,a)){c=t+1,u=!0;break}if(!u)return t;const l=o.slice(c+1,o.length+1),f=n.transformPropertyName(l);return l.length>1&&!ne(e[a],f)&&ne(e[a],n.transformPropertyName([l[0]]))?[a,...re(e[a],te([f],r),r)]:[a,n.transformPropertyName(o.slice(c+1,o.length+1))]}function ne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function oe(e,t){if(e.length!==t.length)return!1;for(let r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}const se=["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"];function ie(e,t=[],r=[]){const n=r;let o=!1;const s=Array.from(new Set([...Object.getOwnPropertyNames(e)].filter((e=>!se.includes(e)))));for(let r=0,i=s.length;r<i;r++){const i=s[r],a=[...t,i],c=e[i];if("function"!=typeof c&&(n.push(a),"object"==typeof c)){const e=Array.isArray(c)?c:[c];for(const t of e){const e=ie(t,a);e&&(o=!0,n.push(...e))}}}return o?function(e){const t=[];for(let r=0,n=e.length;r<n;r++){const n=e[r];t.some((e=>oe(e,n)))||t.push(n)}return t}(n):n}function ae(e,t,r,n=[]){const o=x(e),s=o.applyMetadata.bind(o),i=o.destinationConstructor.bind(o),a=O(e),c=a.get(t),u=a.get(r),l=(null==u?void 0:u[1])||s(r,1);u?u[1]=l:a.set(r,[void 0,l]);const f=(null==c?void 0:c[0])||s(t,0);c?c[0]=f:a.set(t,[f]);const d=[[t,r],[f,l],[],[],e,i];d[8]=function(e){const t=e[b];if(t)return function(e){return"source"in e&&"destination"in e?[e.source,e.destination]:[e,e]}(t)}(e);for(let e=0,t=n.length;e<t;e++)n[e](d);const h=ie(l),p=d[2],m=d[3],y=m.length>0,g=d[8],v=P(e),_=v.get(r)||[],w=v.get(t)||[];for(let e=0,t=h.length;e<t;e++){const t=h[e];if(y&&m.some((e=>M(e[0],t))))continue;const r=_.find((e=>M(e[0],t)));let n=t;if(g&&(n=re(f,te(t,g),g)),!(n[0]in f))continue;const o=w.find((e=>M(e[0],n)));let s;if(!o&&!r)continue;o&&r&&(s=[r[1](),o[1]()]);const i=[ee(n)];if(s){let e;const t=o[2],n=r[2],a=d[6];if(a){const[r,o]=a.get(s[1])||[],[i,c]=(t?null==o?void 0:o.get(s[0]):null==r?void 0:r.get(s[0]))||[];e=n?c:i}if(e){const t=i[0][1];i[0][1]=r=>e(t(r)),i[0][2]=!0}}p.push([t,[t,i],s])}for(const e of m)p.push(e);return d}const ce=()=>{},ue=function e(t,r=[]){return new Proxy(t,{get(t,n){const o=r.slice();return o.push(n),e(ce,o)},apply:()=>r})}(ce);function le(e,...t){let[r,n]=t;const o=function(e){const t=e(ue);if("function"!=typeof t)return null;const r=t();return 0===r.length||r.some((e=>"string"!=typeof e))?null:r}(e)||[];null==n&&(n=r,r=void 0);const s=[o,[n,r]];return e=>{const[t,r]=e[0],n=e[4],i=e[8],[a]=e[1],c=P(n),u=c.get(r)||[],l=c.get(t)||[];let f;const d=u.find((e=>M(e[0],o)));let h=o;if(i&&(h=re(a,te(o,i),i)),!(h[0]in a))return void e[3].push([o,s,f]);const p=l.find((e=>M(e[0],h)));p&&d&&(f=[d[1](),p[1]()]),e[3].push([o,s,f])}}function fe(e){return"resolve"in e}class de{static reset(){this.metadataStorage=new Map}static create(e,t={}){var r;const n="string"==typeof e?Symbol.for(e):e,o=Object.entries(t);if(o.length)for(let e=0,t=o.length;e<t;e++){const[t,s]=o[e],i=this.normalizePojoMetadata(s);this.metadataStorage.has(n)||this.metadataStorage.set(n,[]),null===(r=this.metadataStorage.get(n))||void 0===r||r.push([t,i])}}static retrieve(e){const t=this.metadataStorage.get(e);return t?t.map((([e,{type:t,depth:r}])=>{const n=t(),o=Array.isArray(n);return[e,{type:o?()=>n[0]:()=>n,isArray:o,depth:r}]})):[]}static normalizePojoMetadata(e){if("string"==typeof e||"symbol"==typeof e||"function"==typeof e||Array.isArray(e))return{type:()=>this.toSymbol(e),depth:1};const t=e;return t.type=this.toSymbol(t.type),{type:()=>t.type,depth:t.depth}}static toSymbol(e){return"string"==typeof e?Symbol.for(e):Array.isArray(e)&&"string"==typeof e[0]?Symbol.for(e[0]):e}}function he(e){return he="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},he(e)}function pe(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 me(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==he(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==he(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===he(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}de.metadataStorage=new Map;var ge,ve,be=function({strategyInitializer:e,errorHandler:t,namingConventions:r}){let n,o,s,i,a,c,u;function l(e,t,r){if(t&&r)return{destinationIdentifier:t,mapOptions:r};let n=e;if(t&&!r){const e=typeof t;"string"===e||"function"===e?n=t:r=t}return{destinationIdentifier:n,mapOptions:r}}return new Proxy({[S]:()=>"\nMapper {} is an empty Object as a Proxy. The following methods are available to use with a Mapper:\n- Mapper#map(Array)(Async), Mapper#mutate(Array)(Async)\n- createMap()\n- addProfile()\n- getMapping()\n- getMappings()\n "},{get:(f,d,h)=>d===p?(n||(n=e(h)),n):d===$?(u||(u=new Set),u):d===m?(o||(o=new Map),o):d===y?(s||(s=new Map),s):d===g?(i||(i=new Map),i):d===v?(t||(t={handle:G.error?G.error.bind(G):()=>{}}),t):d===b?r:d===_?(a||(a=new Map),a):d===w?(c||(c=new Map),c):"dispose"===d?()=>{null==o||o.clear(),null==i||i.clear(),null==a||a.clear(),null==c||c.clear(),null==u||u.clear()}:"map"===d?(e,t,r,o)=>{if(null==e)return e;const{destinationIdentifier:s,mapOptions:i}=l(t,r,o),a=C(h,t,s),c=K(a,e=n.preMap(e,a),i||{});return n.postMap(e,c,a)}:"mapAsync"===d?(e,t,r,n)=>{const o=h.map(e,t,r,n);return new Promise((e=>{setTimeout(e,0,o)}))}:"mapArray"===d?(e,t,r,o)=>{if(!e.length)return[];const{destinationIdentifier:s,mapOptions:i}=l(t,r,o),a=C(h,t,s),{beforeMap:c,afterMap:u,extraArgs:f}=i||{};c&&c(e,[]);const d=[];for(let t=0,r=e.length;t<r;t++){let r=e[t];r=n.preMap(r,a);const o=K(a,r,{extraArgs:f},!0);d.push(n.postMap(r,o,a))}return u&&u(e,d),d}:"mapArrayAsync"===d?(e,t,r,n)=>{const o=h.mapArray(e,t,r,n);return new Promise((e=>{setTimeout(e,0,o)}))}:"mutate"===d?(e,t,r,o,s)=>{if(null==e)return;const{destinationIdentifier:i,mapOptions:a}=l(r,o,s),c=C(h,r,i);J(c,e=n.preMap(e,c),t,a||{}),n.postMap(e,t,c)}:"mutateAsync"===d?(e,t,r,n,o)=>new Promise((s=>{h.mutate(e,t,r,n,o),setTimeout(s,0)})):"mutateArray"===d?(e,t,r,o,s)=>{if(!e.length)return;const{destinationIdentifier:i,mapOptions:a}=l(r,o,s),c=C(h,r,i),{beforeMap:u,afterMap:f,extraArgs:d}=a||{};u&&u(e,t);for(let r=0,o=e.length;r<o;r++){let o=e[r];o=n.preMap(o,c),J(c,o,t[r]||{},{extraArgs:d},!0),n.postMap(o,t[r],c)}f&&f(e,t)}:"mutateArrayAsync"===d?(e,t,r,n,o)=>new Promise((s=>{h.mutateArray(e,t,r,n,o),setTimeout(s,0)})):Reflect.get(f,d,h)})}({strategyInitializer:function(e={}){const{destinationConstructor:t=(()=>({})),applyMetadata:r,postMap:n,preMap:o}=Object.assign(Object.assign({},Z),e);return e=>({destinationConstructor:t,mapper:e,get applyMetadata(){return r(this)},retrieveMetadata(...e){const t=new Map;for(let r=0,n=e.length;r<n;r++){const n=e[r];t.set(n,de.retrieve(n))}return t},preMap:o,postMap:n})}()});de.create("AppshellConfig",{}),de.create("AppshellManifest",{}),function(e,t,...r){var n;const o="string"==typeof t?Symbol.for(t):t;let s=o;const[i,...a]=r||[];i&&("string"==typeof i?s=Symbol.for(i):"function"==typeof i&&void 0!==i.prototype?s=i:(a||[]).push(i));const c=k(e);let u=null===(n=c.get(o))||void 0===n?void 0:n.get(s);u?E(e).handle(`Mapping for source ${String(t)} and destination ${String(i)} already exists`):(x(e).retrieveMetadata(o,s).forEach(((t,r)=>{!function(e,t,r){if(!function(e,t=!1){return t?void 0!==e:null!=e}(r))return;const n=P(e);if(!n.has(t))for(const[o,{isGetterOnly:s,type:i,depth:a,isArray:c}]of r)n.set(t,[...n.get(t)||[],[[o],i,c,s]]),null!=a&&Q(N(e),t,[o],a)}(e,r,t)})),u=ae(e,o,s,(a||[]).concat(...function(e){return e[$]}(e).values()).filter((e=>null!=e))),c.has(o)?c.get(o).set(s,u):c.set(o,new Map([[s,u]])))}(be,"AppshellConfig","AppshellManifest",le((function(e){return e.remotes}),fe(ve=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(r),!0).forEach((function(t){me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},function(e){return(0,o.entries)(e.remotes).reduce((function(t,r){var n,o,s=(o=2,function(e){if(Array.isArray(e))return e}(n=r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,s,i,a=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=s.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}(n,o)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ye(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[0],a=s[1];return t[i]=function(e,t,r){var n=t.replace(/\/.+/,""),o=t.replace(n,".");return{id:r.id,url:r.url,scope:n,module:o,shareScope:e.module.shareScope,metadata:r.metadata}}(e,i,a),t}),{})}(e))})?[9,ve.resolve.bind(ve)]:[9,ve]),le((function(e){return e.modules}),fe(ge=function(e){return me({},e.module.name||"unknown",e.module)})?[1,ge.resolve.bind(ge)]:[1,ge]));var _e=function(e,t){var r=be.map(e,"AppshellConfig","AppshellManifest");return f.apply(r,t)};const we=require("path");var $e=r.n(we);const Se=function(e){h().existsSync(e.from)&&(h().existsSync($e().dirname(e.to))||h().mkdirSync($e().dirname(e.to)),h().copyFileSync(e.from,e.to))};var Ee=function e(t,r,n,o){var s=h().readdirSync(t);return n>0&&s.forEach((function(s){h().statSync($e().join(t,s)).isDirectory()?r=e($e().join(t,s),r,n-1,o):o&&!$e().basename(s).match(o)||r.push($e().join(t,s))})),r};const ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/.*/;if(!h().existsSync(e))return[];var n=r instanceof RegExp?r:new RegExp("^(".concat(r,")$"));return Ee(e,[],t,n)};var Pe=r(4667),Oe=function(e){if(!h().existsSync(e))throw new Error("Config file does not exist, using default config. __dirname: ".concat(__dirname," Path: ").concat(e));var t=h().readFileSync(e).toString();return Pe.parse(t)},Ne=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.map((function(e){return Oe(e)}))};const xe=Oe;var Ae=function(e,t){if((0,o.isArray)(e))return e.concat(t)};const je=function(e){if(!e)throw new Error("No validator provided");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r.forEach((function(t){return e.validate(t)})),e.validate.apply(e,r);var s=r.reduce((function(e,t){return(0,o.mergeWith)(e,t,Ae)}),{});return e.validate(s),s};var Ce=r(1192);const Te=JSON.parse('{"title":"AppshellManifest","type":"object","properties":{"remotes":{"description":"Collection of remote entrypoints","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/definitions/Entrypoint"}]}},"modules":{"description":"Module federation configuration","type":"object"}},"required":["remotes","modules"],"definitions":{"Entrypoint":{"title":"Module entrypoint","type":"object","properties":{"id":{"description":"ID of the remote app","type":"string"},"url":{"description":"Url of the remote app","type":"string"},"scope":{"description":"Scope key of the remote app","type":"string"},"module":{"description":"Module key of the remote app","type":"string"},"shareScope":{"description":"Share scope","type":"string"},"metadata":{"description":"Metadata associated with the remote app","type":"object","additionalProperties":true}},"required":["url"],"additionalProperties":false}},"additionalProperties":false}');var Ie=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.flatMap((function(e){return(0,o.values)(e.remotes).map((function(e){return e.id}))}));return(0,o.uniq)(n).length!==n.length},Me=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.flatMap((function(e){return(0,o.keys)(e.remotes)}));return(0,o.uniq)(n).length!==n.length};const De={validate:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.forEach((function(e){return(0,Ce.validate)(Te,e)})),Ie.apply(void 0,t))throw new Error("Multiple routes with the same ID");if(Me.apply(void 0,t))throw new Error("Multiple remotes with the same key")}};function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Re=function(e){var t,r=ke(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1).map((function(e){if(!h().existsSync(e))throw new Error("Configuration not found at ".concat(e));var t=JSON.parse(h().readFileSync(e).toString()),r=f.create(t);return _e(t,r)}));return je.apply(void 0,[De].concat(function(e){if(Array.isArray(e))return Le(e)}(t=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Le(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))},qe=JSON.parse('{"title":"AppshellConfig","type":"object","properties":{"name":{"description":"Name of the module","type":"string"},"remotes":{"description":"Collection of remote entrypoints","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/definitions/Entrypoint"}]}},"module":{"description":"Module federation configuration","type":"object"}},"definitions":{"Entrypoint":{"title":"Module entrypoint","type":"object","properties":{"id":{"description":"ID of the remote app","type":"string"},"url":{"description":"Url of the remote app","type":"string"},"metadata":{"description":"Metadata associated with the remote app","type":"object","additionalProperties":true}},"required":["url"],"additionalProperties":false}},"additionalProperties":false}');var Fe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(0,o.compact)(t.flatMap((function(e){return(0,o.values)(e.remotes)})));return(0,o.uniqBy)(n,(function(e){return e.id})).length!==n.length},Ue=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.flatMap((function(e){return(0,o.keys)(e.remotes)}));return(0,o.uniq)(n).length!==n.length};const Be={validate:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.forEach((function(e){return(0,Ce.validate)(qe,e)})),Fe.apply(void 0,t))throw new Error("Multiple remotes with the same ID");if(Ue.apply(void 0,t))throw new Error("Multiple remotes with the same key")}}})(),n})()));
8
+ deps: ${r}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);a(e,t),c(e,r)}};function a(e,t=e.schema){const{gen:r,data:o,it:i}=e;if(0===Object.keys(t).length)return;const a=r.let("missing");for(const c in t){const u=t[c];if(0===u.length)continue;const l=(0,s.propertyInData)(r,o,c,i.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(l,(()=>{for(const t of u)(0,s.checkReportMissingProp)(e,t)})):(r.if(n._`${l} && (${(0,s.checkMissingProp)(e,u,a)})`),(0,s.reportMissingProp)(e,a),r.else())}}function c(e,t=e.schema){const{gen:r,data:n,keyword:i,it:a}=e,c=r.name("valid");for(const u in t)(0,o.alwaysValidSchema)(a,t[u])||(r.if((0,s.propertyInData)(r,n,u,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=i},3312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>n.str`must match "${e.ifClause}" schema`,params:({params:e})=>n._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:s}=e;void 0===r.then&&void 0===r.else&&(0,o.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const a=i(s,"then"),c=i(s,"else");if(!a&&!c)return;const u=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(l,f("then",r),f("else",r))}else a?t.if(l,f("then")):t.if((0,n.not)(l),f("else"));function f(r,o){return()=>{const s=e.subschema({keyword:r},l);t.assign(u,l),e.mergeValidEvaluated(s,u),o?t.assign(o,n._`${r}`):e.setParams({ifClause:r})}}e.pass(u,(()=>e.error(!0)))}};function i(e,t){const r=e.schema[t];return void 0!==r&&!(0,o.alwaysValidSchema)(e,r)}t.default=s},7914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8187),o=r(6685),s=r(3113),i=r(763),a=r(2126),c=r(9114),u=r(9622),l=r(7025),f=r(9867),d=r(2008),h=r(6054),p=r(3324),m=r(5943),y=r(3555),g=r(3312),v=r(3212);t.default=function(e=!1){const t=[h.default,p.default,m.default,y.default,g.default,v.default,u.default,l.default,c.default,f.default,d.default];return e?t.push(o.default,i.default):t.push(n.default,s.default),t.push(a.default),t}},3113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(1986),o=r(8719),s=r(4392),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return a(e,"additionalItems",t);r.items=!0,(0,o.alwaysValidSchema)(r,t)||e.ok((0,s.validateArray)(e))}};function a(e,t,r=e.schema){const{gen:s,parentSchema:i,data:a,keyword:c,it:u}=e;!function(e){const{opts:n,errSchemaPath:s}=u,i=r.length,a=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(n.strictTuples&&!a){const e=`"${c}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${s}"`;(0,o.checkStrictMode)(u,e,n.strictTuples)}}(i),u.opts.unevaluated&&r.length&&!0!==u.items&&(u.items=o.mergeEvaluated.items(s,r.length,u.items));const l=s.name("valid"),f=s.const("len",n._`${a}.length`);r.forEach(((t,r)=>{(0,o.alwaysValidSchema)(u,t)||(s.if(n._`${f} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},l))),e.ok(l))}))}t.validateTuple=a,t.default=i},763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s=r(4392),i=r(8187),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,(0,o.alwaysValidSchema)(n,t)||(a?(0,i.validateAdditionalItems)(e,a):e.ok((0,s.validateArray)(e)))}};t.default=a},6054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8719),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:o}=e;if((0,n.alwaysValidSchema)(o,r))return void e.fail();const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=o},5943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>n._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:s,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&s.discriminator)return;const a=r,c=t.let("valid",!1),u=t.let("passing",null),l=t.name("_valid");e.setParams({passing:u}),t.block((function(){a.forEach(((r,s)=>{let a;(0,o.alwaysValidSchema)(i,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:s,compositeRule:!0},l),s>0&&t.if(n._`${l} && ${c}`).assign(c,!1).assign(u,n._`[${u}, ${s}]`).else(),t.if(l,(()=>{t.assign(c,!0),t.assign(u,s),a&&e.mergeEvaluated(a,n.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=s},2008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4392),o=r(1986),s=r(8719),i=r(8719),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:c,it:u}=e,{opts:l}=u,f=(0,n.allSchemaProperties)(r),d=f.filter((e=>(0,s.alwaysValidSchema)(u,r[e])));if(0===f.length||d.length===f.length&&(!u.opts.unevaluated||!0===u.props))return;const h=l.strictSchema&&!l.allowMatchingProperties&&c.properties,p=t.name("valid");!0===u.props||u.props instanceof o.Name||(u.props=(0,i.evaluatedPropsToName)(t,u.props));const{props:m}=u;function y(e){for(const t in h)new RegExp(e).test(t)&&(0,s.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",a,(s=>{t.if(o._`${(0,n.usePattern)(e,r)}.test(${s})`,(()=>{const n=d.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:s,dataPropType:i.Type.Str},p),u.opts.unevaluated&&!0!==m?t.assign(o._`${m}[${s}]`,!0):n||u.allErrors||t.if((0,o.not)(p),(()=>t.break()))}))}))}!function(){for(const e of f)h&&y(e),u.allErrors?g(e):(t.var(p,!0),g(e),t.if(p))}()}};t.default=a},6685:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3113),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=o},9867:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8313),o=r(4392),s=r(8719),i=r(7025),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:c,it:u}=e;"all"===u.opts.removeAdditional&&void 0===a.additionalProperties&&i.default.code(new n.KeywordCxt(u,i.default,"additionalProperties"));const l=(0,o.allSchemaProperties)(r);for(const e of l)u.definedProperties.add(e);u.opts.unevaluated&&l.length&&!0!==u.props&&(u.props=s.mergeEvaluated.props(t,(0,s.toHash)(l),u.props));const f=l.filter((e=>!(0,s.alwaysValidSchema)(u,r[e])));if(0===f.length)return;const d=t.name("valid");for(const r of f)h(r)?p(r):(t.if((0,o.propertyInData)(t,c,r,u.opts.ownProperties)),p(r),u.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(d);function h(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==r[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},9622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:s,it:i}=e;if((0,o.alwaysValidSchema)(i,r))return;const a=t.name("valid");t.forIn("key",s,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,n.not)(a),(()=>{e.error(!0),i.allErrors||t.break()}))})),e.ok(a)}};t.default=s},3212:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8719),o={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=o},4392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(1986),o=r(8719),s=r(3806),i=r(8719);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return n._`${a(e)}.call(${t}, ${r})`}function u(e,t,r,o){const s=n._`${t}${(0,n.getProperty)(r)} === undefined`;return o?(0,n.or)(s,(0,n.not)(c(e,t,r))):s}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:o,it:s}=e;r.if(u(r,o,t,s.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},o,s){return(0,n.or)(...o.map((o=>(0,n.and)(u(e,t,o,r.ownProperties),n._`${s} = ${o}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,r,o){const s=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return o?n._`${s} && ${c(e,t,r)}`:s},t.noPropertyInData=u,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter((r=>!(0,o.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:o,schemaPath:i,errorPath:a},it:c},u,l,f){const d=f?n._`${e}, ${t}, ${o}${i}`:t,h=[[s.default.instancePath,(0,n.strConcat)(s.default.instancePath,a)],[s.default.parentData,c.parentData],[s.default.parentDataProperty,c.parentDataProperty],[s.default.rootData,s.default.rootData]];c.opts.dynamicRef&&h.push([s.default.dynamicAnchors,s.default.dynamicAnchors]);const p=n._`${d}, ${r.object(...h)}`;return l!==n.nil?n._`${u}.call(${l}, ${p})`:n._`${u}(${p})`};const f=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const o=t.unicodeRegExp?"u":"",{regExp:s}=t.code,a=s(r,o);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:n._`${"new RegExp"===s.code?f:(0,i.useFunc)(e,s)}(${r}, ${o})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:s,it:i}=e,a=t.name("valid");if(i.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(i){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:s,dataProp:r,dataPropType:o.Type.Num},a),t.if((0,n.not)(a),i)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:s,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,o.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const i=e.subschema({keyword:s,schemaProp:o,compositeRule:!0},c);t.assign(a,n._`${a} || ${c}`),e.mergeValidEvaluated(i,c)||t.if((0,n.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},9731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},9160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9731),o=r(19),s=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,o.default];t.default=s},19:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(8343),o=r(4392),s=r(1986),i=r(3806),a=r(3837),c=r(8719),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:o}=e,{baseId:i,schemaEnv:c,validateName:u,opts:d,self:h}=o,{root:p}=c;if(("#"===r||"#/"===r)&&i===p.baseId)return function(){if(c===p)return f(e,u,c,c.$async);const r=t.scopeValue("root",{ref:p});return f(e,s._`${r}.validate`,p,p.$async)}();const m=a.resolveRef.call(h,p,i,r);if(void 0===m)throw new n.default(o.opts.uriResolver,i,r);return m instanceof a.SchemaEnv?function(t){const r=l(e,t);f(e,r,t,t.$async)}(m):function(n){const o=t.scopeValue("schema",!0===d.code.source?{ref:n,code:(0,s.stringify)(n)}:{ref:n}),i=t.name("valid"),a=e.subschema({schema:n,dataTypes:[],schemaPath:s.nil,topSchemaRef:o,errSchemaPath:r},i);e.mergeEvaluated(a),e.ok(i)}(m)}};function l(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):s._`${r.scopeValue("wrapper",{ref:t})}.validate`}function f(e,t,r,n){const{gen:a,it:u}=e,{allErrors:l,schemaEnv:f,opts:d}=u,h=d.passContext?i.default.this:s.nil;function p(e){const t=s._`${e}.errors`;a.assign(i.default.vErrors,s._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),a.assign(i.default.errors,s._`${i.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(n&&!n.dynamicProps)void 0!==n.props&&(u.props=c.mergeEvaluated.props(a,n.props,u.props));else{const t=a.var("props",s._`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(a,t,u.props,s.Name)}if(!0!==u.items)if(n&&!n.dynamicItems)void 0!==n.items&&(u.items=c.mergeEvaluated.items(a,n.items,u.items));else{const t=a.var("items",s._`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(a,t,u.items,s.Name)}}n?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const r=a.let("valid");a.try((()=>{a.code(s._`await ${(0,o.callValidateCode)(e,t,h)}`),m(t),l||a.assign(r,!0)}),(e=>{a.if(s._`!(${e} instanceof ${u.ValidationError})`,(()=>a.throw(e))),p(e),l||a.assign(r,!1)})),e.ok(r)}():e.result((0,o.callValidateCode)(e,t,h),(()=>m(t)),(()=>p(t)))}t.getValidate=l,t.callRef=f,t.default=u},7168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8690),s=r(3837),i=r(8719),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===o.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>n._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:a,parentSchema:c,it:u}=e,{oneOf:l}=c;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=a.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),h=t.const("tag",n._`${r}${(0,n.getProperty)(f)}`);function p(r){const o=t.name("valid"),s=e.subschema({keyword:"oneOf",schemaProp:r},o);return e.mergeEvaluated(s,n.Name),o}t.if(n._`typeof ${h} == "string"`,(()=>function(){const r=function(){var e;const t={},r=o(c);let n=!0;for(let t=0;t<l.length;t++){let c=l[t];(null==c?void 0:c.$ref)&&!(0,i.schemaHasRulesButRef)(c,u.self.RULES)&&(c=s.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,null==c?void 0:c.$ref),c instanceof s.SchemaEnv&&(c=c.schema));const d=null===(e=null==c?void 0:c.properties)||void 0===e?void 0:e[f];if("object"!=typeof d)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||o(c)),a(d,t)}if(!n)throw new Error(`discriminator: "${f}" must be required`);return t;function o({required:e}){return Array.isArray(e)&&e.includes(f)}function a(e,t){if(e.const)d(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const r of e.enum)d(r,t)}}function d(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(n._`${h} === ${e}`),t.assign(d,p(r[e]));t.else(),e.error(!1,{discrError:o.DiscrError.Mapping,tag:h,tagName:f}),t.endIf()}()),(()=>e.error(!1,{discrError:o.DiscrError.Tag,tag:h,tagName:f}))),e.ok(d)}};t.default=a},8690:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(r=t.DiscrError||(t.DiscrError={})).Tag="tag",r.Mapping="mapping"},9222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9160),o=r(1437),s=r(7914),i=r(8284),a=r(4015),c=[n.default,o.default,(0,s.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},3844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match format "${e}"`,params:({schemaCode:e})=>n._`{format: ${e}}`},code(e,t){const{gen:r,data:o,$data:s,schema:i,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:f,self:d}=c;u.validateFormats&&(s?function(){const s=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),i=r.const("fDef",n._`${s}[${a}]`),c=r.let("fType"),l=r.let("format");r.if(n._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,(()=>r.assign(c,n._`${i}.type || "string"`).assign(l,n._`${i}.validate`)),(()=>r.assign(c,n._`"string"`).assign(l,i))),e.fail$data((0,n.or)(!1===u.strictSchema?n.nil:n._`${a} && !${l}`,function(){const e=f.$async?n._`(${i}.async ? await ${l}(${o}) : ${l}(${o}))`:n._`${l}(${o})`,r=n._`(typeof ${l} == "function" ? ${e} : ${l}.test(${o}))`;return n._`${l} && ${l} !== true && ${c} === ${t} && !${r}`}()))}():function(){const s=d.formats[i];if(!s)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${i}" ignored in schema at path "${l}"`}d.logger.warn(e())}();if(!0===s)return;const[a,c,h]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):u.code.formats?n._`${u.code.formats}${(0,n.getProperty)(i)}`:void 0,o=r.scopeValue("formats",{key:i,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,o]:[e.type||"string",e.validate,n._`${o}.validate`]}(s);a===t&&e.pass(function(){if("object"==typeof s&&!(s instanceof RegExp)&&s.async){if(!f.$async)throw new Error("async format in sync schema");return n._`await ${h}(${o})`}return"function"==typeof c?n._`${h}(${o})`:n._`${h}.test(${o})`}())}())}};t.default=o},8284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(3844).default];t.default=n},4015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},8249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s=r(8410),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>n._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:i,schemaCode:a,schema:c}=e;i||c&&"object"==typeof c?e.fail$data(n._`!${(0,o.useFunc)(t,s.default)}(${r}, ${a})`):e.fail(n._`${c} !== ${r}`)}};t.default=i},297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s=r(8410),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:i,schema:a,schemaCode:c,it:u}=e;if(!i&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=u.opts.loopEnum;let f;const d=()=>null!=f?f:f=(0,o.useFunc)(t,s.default);let h;if(l||i)h=t.let("valid"),e.block$data(h,(function(){t.assign(h,!1),t.forOf("v",c,(e=>t.if(n._`${d()}(${r}, ${e})`,(()=>t.assign(h,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,n.or)(...a.map(((t,o)=>function(e,t){const o=a[t];return"object"==typeof o&&null!==o?n._`${d()}(${r}, ${e}[${t}])`:n._`${r} === ${o}`}(e,o))))}e.pass(h)}};t.default=i},1437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1754),o=r(801),s=r(6130),i=r(3362),a=r(3952),c=r(6208),u=r(804),l=r(4710),f=r(8249),d=r(297),h=[n.default,o.default,s.default,i.default,a.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,d.default];t.default=h},804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,s="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${s} ${o}`)}};t.default=o},6130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=r(8719),s=r(4982),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i,it:a}=e,c="maxLength"===t?n.operators.GT:n.operators.LT,u=!1===a.opts.unicode?n._`${r}.length`:n._`${(0,o.useFunc)(e.gen,s.default)}(${r})`;e.fail$data(n._`${u} ${c} ${i}`)}};t.default=i},1754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o=n.operators,s={maximum:{okStr:"<=",ok:o.LTE,fail:o.GT},minimum:{okStr:">=",ok:o.GTE,fail:o.LT},exclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},exclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},i={message:({keyword:e,schemaCode:t})=>n.str`must be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${s[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(s),type:"number",schemaType:"number",$data:!0,error:i,code(e){const{keyword:t,data:r,schemaCode:o}=e;e.fail$data(n._`${r} ${s[t].fail} ${o} || isNaN(${r})`)}};t.default=a},3952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,s="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${s} ${o}`)}};t.default=o},801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1986),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>n.str`must be multiple of ${e}`,params:({schemaCode:e})=>n._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:o,it:s}=e,i=s.opts.multipleOfPrecision,a=t.let("res"),c=i?n._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:n._`${a} !== parseInt(${a})`;e.fail$data(n._`(${o} === 0 || (${a} = ${r}/${o}, ${c}))`)}};t.default=o},3362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4392),o=r(1986),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:s,schemaCode:i,it:a}=e,c=a.opts.unicodeRegExp?"u":"",u=r?o._`(new RegExp(${i}, ${c}))`:(0,n.usePattern)(e,s);e.fail$data(o._`!${u}.test(${t})`)}};t.default=s},6208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4392),o=r(1986),s=r(8719),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>o.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>o._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:i,data:a,$data:c,it:u}=e,{opts:l}=u;if(!c&&0===r.length)return;const f=r.length>=l.loopRequired;if(u.allErrors?function(){if(f||c)e.block$data(o.nil,d);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const s=t.let("missing");if(f||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,s){e.setParams({missingProperty:r}),t.forOf(r,i,(()=>{t.assign(s,(0,n.propertyInData)(t,a,r,l.ownProperties)),t.if((0,o.not)(s),(()=>{e.error(),t.break()}))}),o.nil)}(s,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,s)),(0,n.reportMissingProp)(e,s),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,s.checkStrictMode)(u,t,u.opts.strictRequired)}}function d(){t.forOf("prop",i,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,a,r,l.ownProperties),(()=>e.error()))}))}}};t.default=i},4710:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8433),o=r(1986),s=r(8719),i=r(8410),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>o.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>o._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:c,parentSchema:u,schemaCode:l,it:f}=e;if(!a&&!c)return;const d=t.let("valid"),h=u.items?(0,n.getSchemaTypes)(u.items):[];function p(s,i){const a=t.name("item"),c=(0,n.checkDataTypes)(h,a,f.opts.strictNumbers,n.DataType.Wrong),u=t.const("indices",o._`{}`);t.for(o._`;${s}--;`,(()=>{t.let(a,o._`${r}[${s}]`),t.if(c,o._`continue`),h.length>1&&t.if(o._`typeof ${a} == "string"`,o._`${a} += "_"`),t.if(o._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(i,o._`${u}[${a}]`),e.error(),t.assign(d,!1).break()})).code(o._`${u}[${a}] = ${s}`)}))}function m(n,a){const c=(0,s.useFunc)(t,i.default),u=t.name("outer");t.label(u).for(o._`;${n}--;`,(()=>t.for(o._`${a} = ${n}; ${a}--;`,(()=>t.if(o._`${c}(${r}[${n}], ${r}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(u)}))))))}e.block$data(d,(function(){const n=t.let("i",o._`${r}.length`),s=t.let("j");e.setParams({i:n,j:s}),t.assign(d,!0),t.if(o._`${n} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?p:m)(n,s)))}),o._`${l} === false`),e.ok(d)}};t.default=a},1817:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,o,s,i,a,c,u,l,f){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var d in n(s,i,a,c,u,l,f),s){var h=s[d];if(Array.isArray(h)){if(d in t.arrayKeywords)for(var p=0;p<h.length;p++)r(e,n,o,h[p],i+"/"+d+"/"+p,a,i,d,s,p)}else if(d in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)r(e,n,o,h[m],i+"/"+d+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),a,i,d,s,m)}else(d in t.keywords||e.allKeys&&!(d in t.skipKeywords))&&r(e,n,o,h,i+"/"+d,a,i,d,s)}o(s,i,a,c,u,l,f)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},2854:function(e,t){!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,o=1;o<n;++o)t[o]=t[o].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 o(e){return e.toUpperCase()}function s(e){var n="[A-Za-z]",o="[0-9]",s=t(o,"[A-Fa-f]"),i=r(r("%[EFef]"+s+"%"+s+s+"%"+s+s)+"|"+r("%[89A-Fa-f]"+s+"%"+s+s)+"|"+r("%"+s+s)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",a),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,o,"[\\+\\-\\.]")+"*"),d=r(r(i+"|"+t(l,a,"[\\:]"))+"*"),h=(r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("[1-9]"+o)+"|"+o),r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o)),p=r(h+"\\."+h+"\\."+h+"\\."+h),m=r(s+"{1,4}"),y=r(r(m+"\\:"+m)+"|"+p),g=r(r(m+"\\:")+"{6}"+y),v=r("\\:\\:"+r(m+"\\:")+"{5}"+y),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+y),_=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+y),w=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+y),$=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+y),S=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+y),E=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),k=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),P=r([g,v,b,_,w,$,S,E,k].join("|")),O=r(r(l+"|"+i)+"+"),N=(r(P+"\\%25"+O),r(P+r("\\%25|\\%(?!"+s+"{2})")+O)),x=r("[vV]"+s+"+\\."+t(l,a,"[\\:]")+"+"),A=r("\\["+r(N+"|"+P+"|"+x)+"\\]"),j=r(r(i+"|"+t(l,a))+"*"),C=r(A+"|"+p+"(?!"+j+")|"+j),T=r(o+"*"),I=r(r(d+"@")+"?"+C+r("\\:"+T)+"?"),M=r(i+"|"+t(l,a,"[\\:\\@]")),D=r(M+"*"),L=r(M+"+"),R=r(r(i+"|"+t(l,a,"[\\@]"))+"+"),q=r(r("\\/"+D)+"*"),F=r("\\/"+r(L+q)+"?"),U=r(R+q),B=r(L+q),K="(?!"+M+")",V=(r(q+"|"+F+"|"+U+"|"+B+"|"+K),r(r(M+"|"+t("[\\/\\?]",u))+"*")),z=r(r(M+"|[\\/\\?]")+"*"),J=r(r("\\/\\/"+I+q)+"|"+F+"|"+B+"|"+K),W=r(f+"\\:"+J+r("\\?"+V)+"?"+r("\\#"+z)+"?"),G=r(r("\\/\\/"+I+q)+"|"+F+"|"+U+"|"+K),Y=r(G+r("\\?"+V)+"?"+r("\\#"+z)+"?");return r(W+"|"+Y),r(f+"\\:"+J+r("\\?"+V)+"?"),r(r("\\/\\/("+r("("+d+")@")+"?("+C+")"+r("\\:("+T+")")+"?)")+"?("+q+"|"+F+"|"+B+"|"+K+")"),r("\\?("+V+")"),r("\\#("+z+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+C+")"+r("\\:("+T+")")+"?)")+"?("+q+"|"+F+"|"+U+"|"+K+")"),r("\\?("+V+")"),r("\\#("+z+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+C+")"+r("\\:("+T+")")+"?)")+"?("+q+"|"+F+"|"+B+"|"+K+")"),r("\\?("+V+")"),r("\\#("+z+")"),r("("+d+")@"),r("\\:("+T+")"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,a),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,a),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,a),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,a),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,a,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,a),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+P+")"+r(r("\\%25|\\%(?!"+s+"{2})")+"("+O+")")+"?\\]?$")}}var i=s(!1),a=s(!0),c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,s=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw s}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=2147483647,l=36,f=/^xn--/,d=/[^\0-\x7E]/,h=/[\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"},m=Math.floor,y=String.fromCharCode;function g(e){throw new RangeError(p[e])}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(h,".")).split("."),t).join(".")}function b(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var s=e.charCodeAt(r++);56320==(64512&s)?t.push(((1023&o)<<10)+(1023&s)+65536):(t.push(o),r--)}else t.push(o)}return t}var _=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},w=function(e,t,r){var n=0;for(e=r?m(e/700):e>>1,e+=m(e/t);e>455;n+=l)e=m(e/35);return m(n+36*e/(e+38))},$=function(e){var t,r=[],n=e.length,o=0,s=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var c=0;c<a;++c)e.charCodeAt(c)>=128&&g("not-basic"),r.push(e.charCodeAt(c));for(var f=a>0?a+1:0;f<n;){for(var d=o,h=1,p=l;;p+=l){f>=n&&g("invalid-input");var y=(t=e.charCodeAt(f++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:l;(y>=l||y>m((u-o)/h))&&g("overflow"),o+=y*h;var v=p<=i?1:p>=i+26?26:p-i;if(y<v)break;var b=l-v;h>m(u/b)&&g("overflow"),h*=b}var _=r.length+1;i=w(o-d,_,0==d),m(o/_)>u-s&&g("overflow"),s+=m(o/_),o%=_,r.splice(o++,0,s)}return String.fromCodePoint.apply(String,r)},S=function(e){var t=[],r=(e=b(e)).length,n=128,o=0,s=72,i=!0,a=!1,c=void 0;try{for(var f,d=e[Symbol.iterator]();!(i=(f=d.next()).done);i=!0){var h=f.value;h<128&&t.push(y(h))}}catch(e){a=!0,c=e}finally{try{!i&&d.return&&d.return()}finally{if(a)throw c}}var p=t.length,v=p;for(p&&t.push("-");v<r;){var $=u,S=!0,E=!1,k=void 0;try{for(var P,O=e[Symbol.iterator]();!(S=(P=O.next()).done);S=!0){var N=P.value;N>=n&&N<$&&($=N)}}catch(e){E=!0,k=e}finally{try{!S&&O.return&&O.return()}finally{if(E)throw k}}var x=v+1;$-n>m((u-o)/x)&&g("overflow"),o+=($-n)*x,n=$;var A=!0,j=!1,C=void 0;try{for(var T,I=e[Symbol.iterator]();!(A=(T=I.next()).done);A=!0){var M=T.value;if(M<n&&++o>u&&g("overflow"),M==n){for(var D=o,L=l;;L+=l){var R=L<=s?1:L>=s+26?26:L-s;if(D<R)break;var q=D-R,F=l-R;t.push(y(_(R+q%F,0))),D=m(q/F)}t.push(y(_(D,0))),s=w(o,x,v==p),o=0,++v}}}catch(e){j=!0,C=e}finally{try{!A&&I.return&&I.return()}finally{if(j)throw C}}++o,++n}return t.join("")},E={version:"2.1.0",ucs2:{decode:b,encode:function(e){return String.fromCodePoint.apply(String,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)}(e))}},decode:$,encode:S,toASCII:function(e){return v(e,(function(e){return d.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return v(e,(function(e){return f.test(e)?$(e.slice(4).toLowerCase()):e}))}},k={};function P(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 O(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var s=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&s)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&a)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function N(e,t){function r(e){var r=O(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,P).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,P).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,P).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,P).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,P).replace(t.PCT_ENCODED,o)),e}function x(e){return e.replace(/^0*(.*)/,"$1")||"0"}function A(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(x).join("."):e}function j(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),o=n[1],s=n[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),a=c(i,2),u=a[0],l=a[1],f=l?l.split(":").map(x):[],d=u.split(":").map(x),h=t.IPV4ADDRESS.test(d[d.length-1]),p=h?7:8,m=d.length-p,y=Array(p),g=0;g<p;++g)y[g]=f[g]||d[m+g]||"";h&&(y[p-1]=A(y[p-1],t));var v=y.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 _=y.slice(0,v.index),w=y.slice(v.index+v.length);b=_.join(":")+"::"+w.join(":")}else b=y.join(":");return s&&(b+="%"+s),b}return e}var C=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,T=void 0==="".match(/(){0}/)[1];function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?a:i;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(C);if(o){T?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=j(A(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 s=k[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||s&&s.unicodeSupport)N(r,n);else{if(r.host&&(t.domainHost||s&&s.domainHost))try{r.host=E.toASCII(r.host.replace(n.PCT_ENCODED,O).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}N(r,i)}s&&s.parse&&s.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var M=/^\.\.?\//,D=/^\/\.(\/|$)/,L=/^\/\.\.(\/|$)/,R=/^\/?(?:.|\n)*?(?=\/|$)/;function q(e){for(var t=[];e.length;)if(e.match(M))e=e.replace(M,"");else if(e.match(D))e=e.replace(D,"/");else if(e.match(L))e=e.replace(L,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(R);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 F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?a:i,n=[],o=k[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?E.toUnicode(e.host):E.toASCII(e.host.replace(r.PCT_ENCODED,O).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}N(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var s=function(e,t){var r=!1!==t.iri?a:i,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(j(A(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}(e,t);if(void 0!==s&&("suffix"!==t.reference&&n.push("//"),n.push(s),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||o&&o.absolutePath||(c=q(c)),void 0===s&&(c=c.replace(/^\/\//,"/%2F")),n.push(c)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function U(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=I(F(e,r),r),t=I(F(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=q(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=q(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=q(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=q(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 B(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:i.PCT_ENCODED,O)}var K={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}},V={scheme:"https",domainHost:K.domainHost,parse:K.parse,serialize:K.serialize};function z(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var J={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=z(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!==(z(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=c(r,2),o=n[0],s=n[1];e.path=o&&"/"!==o?o:void 0,e.query=s,e.resourceName=void 0}return e.fragment=void 0,e}},W={scheme:"wss",domainHost:J.domainHost,parse:J.parse,serialize:J.serialize},G={},Y="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",H="[0-9A-Fa-f]",Q=r(r("%[EFef]"+H+"%"+H+H+"%"+H+H)+"|"+r("%[89A-Fa-f]"+H+"%"+H+H)+"|"+r("%"+H+H)),X=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Z=new RegExp(Y,"g"),ee=new RegExp(Q,"g"),te=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',X),"g"),re=new RegExp(t("[^]",Y,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ne=re;function oe(e){var t=O(e);return t.match(Z)?t:e}var se={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 o=!1,s={},i=r.query.split("&"),a=0,c=i.length;a<c;++a){var u=i[a].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,d=l.length;f<d;++f)n.push(l[f]);break;case"subject":r.subject=B(u[1],t);break;case"body":r.body=B(u[1],t);break;default:o=!0,s[B(u[0],t)]=B(u[1],t)}}o&&(r.headers=s)}r.query=void 0;for(var h=0,p=n.length;h<p;++h){var m=n[h].split("@");if(m[0]=B(m[0]),t.unicodeSupport)m[1]=B(m[1],t).toLowerCase();else try{m[1]=E.toASCII(B(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,n=e,s=null!=(r=e.to)?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(s){for(var i=0,a=s.length;i<a;++i){var c=String(s[i]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(ee,oe).replace(ee,o).replace(te,P),f=c.slice(u+1);try{f=t.iri?E.toUnicode(f):E.toASCII(B(f,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}s[i]=l+"@"+f}n.path=s.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var h=[];for(var p in d)d[p]!==G[p]&&h.push(p.replace(ee,oe).replace(ee,o).replace(re,P)+"="+d[p].replace(ee,oe).replace(ee,o).replace(ne,P));return h.length&&(n.query=h.join("&")),n}},ie=/^([^\:]+)\:(.*)/,ae={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(ie),n=e;if(r){var o=t.scheme||n.scheme||"urn",s=r[1].toLowerCase(),i=r[2],a=o+":"+(t.nid||s),c=k[a];n.nid=s,n.nss=i,n.path=void 0,c&&(n=c.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,o=r+":"+(t.nid||n),s=k[o];s&&(e=s.serialize(e,t));var i=e,a=e.nss;return i.path=(n||t.nid)+":"+a,i}},ce=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ue={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(ce)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};k[K.scheme]=K,k[V.scheme]=V,k[J.scheme]=J,k[W.scheme]=W,k[se.scheme]=se,k[ae.scheme]=ae,k[ue.scheme]=ue,e.SCHEMES=k,e.pctEncChar=P,e.pctDecChars=O,e.parse=I,e.removeDotSegments=q,e.serialize=F,e.resolveComponents=U,e.resolve=function(e,t,r){var n=function(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}({scheme:"null"},r);return F(U(I(e,n),I(t,n),n,!0),n)},e.normalize=function(e,t){return"string"==typeof e?e=F(I(e,t),t):"object"===n(e)&&(e=I(F(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=F(I(e,r),r):"object"===n(e)&&(e=F(e,r)),"string"==typeof t?t=F(I(t,r),r):"object"===n(t)&&(t=F(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?a.ESCAPE:i.ESCAPE,P)},e.unescapeComponent=B,Object.defineProperty(e,"__esModule",{value:!0})}(t)},7889:(e,t,r)=>{"use strict";var n=r(7384),o=r(5738),s=r(1373),i=r(8864),a=r(7058);t.composeCollection=function(e,t,r,c,u){let l;switch(r.type){case"block-map":l=s.resolveBlockMap(e,t,r,u);break;case"block-seq":l=i.resolveBlockSeq(e,t,r,u);break;case"flow-collection":l=a.resolveFlowCollection(e,t,r,u)}if(!c)return l;const f=t.directives.tagName(c.source,(e=>u(c,"TAG_RESOLVE_FAILED",e)));if(!f)return l;const d=l.constructor;if("!"===f||f===d.tagName)return l.tag=d.tagName,l;const h=n.isMap(l)?"map":"seq";let p=t.schema.tags.find((e=>e.collection===h&&e.tag===f));if(!p){const e=t.schema.knownTags[f];if(!e||e.collection!==h)return u(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${f}`,!0),l.tag=f,l;t.schema.tags.push(Object.assign({},e,{default:!1})),p=e}const m=p.resolve(l,(e=>u(c,"TAG_RESOLVE_FAILED",e)),t.options),y=n.isNode(m)?m:new o.Scalar(m);return y.range=l.range,y.tag=f,p?.format&&(y.format=p.format),y}},104:(e,t,r)=>{"use strict";var n=r(505),o=r(3223),s=r(9516),i=r(814);t.composeDoc=function(e,t,{offset:r,start:a,value:c,end:u},l){const f=Object.assign({_directives:t},e),d=new n.Document(void 0,f),h={atRoot:!0,directives:d.directives,options:d.options,schema:d.schema},p=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:l,startOnNewline:!0});p.found&&(d.directives.docStart=!0,!c||"block-map"!==c.type&&"block-seq"!==c.type||p.hasNewline||l(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),d.contents=c?o.composeNode(h,c,p,l):o.composeEmptyNode(h,p.end,a,null,p,l);const m=d.contents.range[2],y=s.resolveEnd(u,m,!1,l);return y.comment&&(d.comment=y.comment),d.range=[r,m,y.offset],d}},3223:(e,t,r)=>{"use strict";var n=r(366),o=r(7889),s=r(6491),i=r(9516),a=r(3576);const c={composeNode:u,composeEmptyNode:l};function u(e,t,r,a){const{spaceBefore:u,comment:f,anchor:d,tag:h}=r;let p,m=!0;switch(t.type){case"alias":p=function({options:e},{offset:t,source:r,end:o},s){const a=new n.Alias(r.substring(1));""===a.source&&s(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&s(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+r.length,u=i.resolveEnd(o,c,e.strict,s);return a.range=[t,c,u.offset],u.comment&&(a.comment=u.comment),a}(e,t,a),(d||h)&&a(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=s.composeScalar(e,t,h,a),d&&(p.anchor=d.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=o.composeCollection(c,e,t,h,a),d&&(p.anchor=d.source.substring(1));break;default:a(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),p=l(e,t.offset,void 0,null,r,a),m=!1}return d&&""===p.anchor&&a(d,"BAD_ALIAS","Anchor cannot be an empty string"),u&&(p.spaceBefore=!0),f&&("scalar"===t.type&&""===t.source?p.comment=f:p.commentBefore=f),e.options.keepSourceTokens&&m&&(p.srcToken=t),p}function l(e,t,r,n,{spaceBefore:o,comment:i,anchor:c,tag:u,end:l},f){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""},h=s.composeScalar(e,d,u,f);return c&&(h.anchor=c.source.substring(1),""===h.anchor&&f(c,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),i&&(h.comment=i,h.range[2]=l),h}t.composeEmptyNode=l,t.composeNode=u},6491:(e,t,r)=>{"use strict";var n=r(7384),o=r(5738),s=r(1070),i=r(5147);t.composeScalar=function(e,t,r,a){const{value:c,type:u,comment:l,range:f}="block-scalar"===t.type?s.resolveBlockScalar(t,e.options.strict,a):i.resolveFlowScalar(t,e.options.strict,a),d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null,h=r&&d?function(e,t,r,o,s){if("!"===r)return e[n.SCALAR];const i=[];for(const t of e.tags)if(!t.collection&&t.tag===r){if(!t.default||!t.test)return t;i.push(t)}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(s(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[n.SCALAR])}(e.schema,c,d,r,a):"scalar"===t.type?function({directives:e,schema:t},r,o,s){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];i.tag!==a.tag&&s(o,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(i.tag)} or ${e.tagString(a.tag)}`,!0)}return i}(e,c,t,a):e.schema[n.SCALAR];let p;try{const s=h.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);p=n.isScalar(s)?s:new o.Scalar(s)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n),p=new o.Scalar(c)}return p.range=f,p.source=c,u&&(p.type=u),d&&(p.tag=d),h.format&&(p.format=h.format),l&&(p.comment=l),p}},1294:(e,t,r)=>{"use strict";var n=r(3848),o=r(505),s=r(2981),i=r(7384),a=r(104),c=r(9516);function u(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+("string"==typeof r?r.length:1)]}function l(e){let t="",r=!1,n=!1;for(let o=0;o<e.length;++o){const s=e[o];switch(s[0]){case"#":t+=(""===t?"":n?"\n\n":"\n")+(s.substring(1)||" "),r=!0,n=!1;break;case"%":"#"!==e[o+1]?.[0]&&(o+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}t.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,r,n)=>{const o=u(e);n?this.warnings.push(new s.YAMLWarning(o,t,r)):this.errors.push(new s.YAMLParseError(o,t,r))},this.directives=new n.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=l(this.prelude);if(r){const o=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${r}`:r;else if(n||e.directives.docStart||!o)e.commentBefore=r;else if(i.isCollection(o)&&!o.flow&&o.items.length>0){let e=o.items[0];i.isPair(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=o.commentBefore;o.commentBefore=e?`${r}\n${e}`:r}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:l(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){switch(process.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const o=u(e);o[0]+=t,this.onError(o,"BAD_DIRECTIVE",r,n)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new s.YAMLParseError(u(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new s.YAMLParseError(u(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new s.YAMLParseError(u(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),r=new o.Document(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,t,t],this.decorate(r,!1),yield r}}}},1373:(e,t,r)=>{"use strict";var n=r(7356),o=r(8228),s=r(814),i=r(7627),a=r(7049),c=r(434);const u="All mapping items must start at the same column";t.resolveBlockMap=function({composeNode:e,composeEmptyNode:t},r,l,f){const d=new o.YAMLMap(r.schema);r.atRoot&&(r.atRoot=!1);let h=l.offset,p=null;for(const o of l.items){const{start:m,key:y,sep:g,value:v}=o,b=s.resolveProps(m,{indicator:"explicit-key-ind",next:y??g?.[0],offset:h,onError:f,startOnNewline:!0}),_=!b.found;if(_){if(y&&("block-seq"===y.type?f(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in y&&y.indent!==l.indent&&f(h,"BAD_INDENT",u)),!b.anchor&&!b.tag&&!g){p=b.end,b.comment&&(d.comment?d.comment+="\n"+b.comment:d.comment=b.comment);continue}(b.hasNewlineAfterProp||i.containsNewline(y))&&f(y??m[m.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else b.found?.indent!==l.indent&&f(h,"BAD_INDENT",u);const w=b.end,$=y?e(r,y,b,f):t(r,w,m,null,b,f);r.schema.compat&&a.flowIndentCheck(l.indent,y,f),c.mapIncludes(r,d.items,$)&&f(w,"DUPLICATE_KEY","Map keys must be unique");const S=s.resolveProps(g??[],{indicator:"map-value-ind",next:v,offset:$.range[2],onError:f,startOnNewline:!y||"block-scalar"===y.type});if(h=S.end,S.found){_&&("block-map"!==v?.type||S.hasNewline||f(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&b.start<S.found.offset-1024&&f($.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const s=v?e(r,v,S,f):t(r,h,g,null,S,f);r.schema.compat&&a.flowIndentCheck(l.indent,v,f),h=s.range[2];const i=new n.Pair($,s);r.options.keepSourceTokens&&(i.srcToken=o),d.items.push(i)}else{_&&f($.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&($.comment?$.comment+="\n"+S.comment:$.comment=S.comment);const e=new n.Pair($);r.options.keepSourceTokens&&(e.srcToken=o),d.items.push(e)}}return p&&p<h&&f(p,"IMPOSSIBLE","Map comment with trailing content"),d.range=[l.offset,h,p??h],d}},1070:(e,t,r)=>{"use strict";var n=r(5738);t.resolveBlockScalar=function(e,t,r){const o=e.offset,s=function({offset:e,props:t},r,n){if("block-scalar-header"!==t[0].type)return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],s=o[0];let i=0,a="",c=-1;for(let t=1;t<o.length;++t){const r=o[t];if(a||"-"!==r&&"+"!==r){const n=Number(r);!i&&n?i=n:-1===c&&(c=e+t)}else a=r}-1!==c&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let u=!1,l="",f=o.length;for(let e=1;e<t.length;++e){const o=t[e];switch(o.type){case"space":u=!0;case"newline":f+=o.source.length;break;case"comment":r&&!u&&n(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=o.source.length,l=o.source.substring(1);break;case"error":n(o,"UNEXPECTED_TOKEN",o.message),f+=o.source.length;break;default:{n(o,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${o.type}`);const e=o.source;e&&"string"==typeof e&&(f+=e.length)}}}return{mode:s,indent:i,chomp:a,comment:l,length:f}}(e,t,r);if(!s)return{value:"",type:null,comment:"",range:[o,o,o]};const i=">"===s.mode?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL,a=e.source?function(e){const t=e.split(/\n( *)/),r=t[0],n=r.match(/^( *)/),o=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let e=1;e<t.length;e+=2)o.push([t[e],t[e+1]]);return o}(e.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(""!==t&&"\r"!==t)break;c=e}if(0===c){const t="+"===s.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=o+s.length;return e.source&&(r+=e.source.length),{value:t,type:i,comment:s.comment,range:[o,r,r]}}let u=e.indent+s.indent,l=e.offset+s.length,f=0;for(let e=0;e<c;++e){const[t,n]=a[e];if(""!==n&&"\r"!==n){if(t.length<u){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";r(l+t.length,"MISSING_CHAR",e)}0===s.indent&&(u=t.length),f=e;break}0===s.indent&&t.length>u&&(u=t.length),l+=t.length+n.length+1}for(let e=a.length-1;e>=c;--e)a[e][0].length>u&&(c=e+1);let d="",h="",p=!1;for(let e=0;e<f;++e)d+=a[e][0].slice(u)+"\n";for(let e=f;e<c;++e){let[t,o]=a[e];l+=t.length+o.length+1;const c="\r"===o[o.length-1];if(c&&(o=o.slice(0,-1)),o&&t.length<u){const e="Block scalar lines must not be less indented than their "+(s.indent?"explicit indentation indicator":"first line");r(l-o.length-(c?2:1),"BAD_INDENT",e),t=""}i===n.Scalar.BLOCK_LITERAL?(d+=h+t.slice(u)+o,h="\n"):t.length>u||"\t"===o[0]?(" "===h?h="\n":p||"\n"!==h||(h="\n\n"),d+=h+t.slice(u)+o,h="\n",p=!0):""===o?"\n"===h?d+="\n":h="\n":(d+=h+o,h=" ",p=!1)}switch(s.chomp){case"-":break;case"+":for(let e=c;e<a.length;++e)d+="\n"+a[e][0].slice(u);"\n"!==d[d.length-1]&&(d+="\n");break;default:d+="\n"}const m=o+s.length+e.source.length;return{value:d,type:i,comment:s.comment,range:[o,m,m]}}},8864:(e,t,r)=>{"use strict";var n=r(9248),o=r(814),s=r(7049);t.resolveBlockSeq=function({composeNode:e,composeEmptyNode:t},r,i,a){const c=new n.YAMLSeq(r.schema);r.atRoot&&(r.atRoot=!1);let u=i.offset,l=null;for(const{start:n,value:f}of i.items){const d=o.resolveProps(n,{indicator:"seq-item-ind",next:f,offset:u,onError:a,startOnNewline:!0});if(!d.found){if(!(d.anchor||d.tag||f)){l=d.end,d.comment&&(c.comment=d.comment);continue}f&&"block-seq"===f.type?a(d.end,"BAD_INDENT","All sequence items must start at the same column"):a(u,"MISSING_CHAR","Sequence item without - indicator")}const h=f?e(r,f,d,a):t(r,d.end,n,null,d,a);r.schema.compat&&s.flowIndentCheck(i.indent,f,a),u=h.range[2],c.items.push(h)}return c.range=[i.offset,u,l??u],c}},9516:(e,t)=>{"use strict";t.resolveEnd=function(e,t,r,n){let o="";if(e){let s=!1,i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{r&&!s&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";o?o+=i+t:o=t,i="";break}case"newline":o&&(i+=e),s=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:o,offset:t}}},7058:(e,t,r)=>{"use strict";var n=r(7384),o=r(7356),s=r(8228),i=r(9248),a=r(9516),c=r(814),u=r(7627),l=r(434);const f="Block collections are not allowed within flow collections",d=e=>e&&("block-map"===e.type||"block-seq"===e.type);t.resolveFlowCollection=function({composeNode:e,composeEmptyNode:t},r,h,p){const m="{"===h.start.source,y=m?"flow map":"flow sequence",g=m?new s.YAMLMap(r.schema):new i.YAMLSeq(r.schema);g.flow=!0;const v=r.atRoot;v&&(r.atRoot=!1);let b=h.offset+h.start.source.length;for(let i=0;i<h.items.length;++i){const a=h.items[i],{start:v,key:_,sep:w,value:$}=a,S=c.resolveProps(v,{flow:y,indicator:"explicit-key-ind",next:_??w?.[0],offset:b,onError:p,startOnNewline:!1});if(!S.found){if(!(S.anchor||S.tag||w||$)){0===i&&S.comma?p(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`):i<h.items.length-1&&p(S.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${y}`),S.comment&&(g.comment?g.comment+="\n"+S.comment:g.comment=S.comment),b=S.end;continue}!m&&r.options.strict&&u.containsNewline(_)&&p(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)S.comma&&p(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`);else if(S.comma||p(S.start,"MISSING_CHAR",`Missing , between ${y} items`),S.comment){let e="";e:for(const t of v)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=g.items[g.items.length-1];n.isPair(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,S.comment=S.comment.substring(e.length+1)}}if(m||w||S.found){const n=S.end,i=_?e(r,_,S,p):t(r,n,v,null,S,p);d(_)&&p(i.range,"BLOCK_IN_FLOW",f);const u=c.resolveProps(w??[],{flow:y,indicator:"map-value-ind",next:$,offset:i.range[2],onError:p,startOnNewline:!1});if(u.found){if(!m&&!S.found&&r.options.strict){if(w)for(const e of w){if(e===u.found)break;if("newline"===e.type){p(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}S.start<u.found.offset-1024&&p(u.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else $&&("source"in $&&$.source&&":"===$.source[0]?p($,"MISSING_CHAR",`Missing space after : in ${y}`):p(u.start,"MISSING_CHAR",`Missing , or : between ${y} items`));const h=$?e(r,$,u,p):u.found?t(r,u.end,w,null,u,p):null;h?d($)&&p(h.range,"BLOCK_IN_FLOW",f):u.comment&&(i.comment?i.comment+="\n"+u.comment:i.comment=u.comment);const E=new o.Pair(i,h);if(r.options.keepSourceTokens&&(E.srcToken=a),m){const e=g;l.mapIncludes(r,e.items,i)&&p(n,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(E)}else{const e=new s.YAMLMap(r.schema);e.flow=!0,e.items.push(E),g.items.push(e)}b=h?h.range[2]:u.end}else{const n=$?e(r,$,S,p):t(r,S.end,w,null,S,p);g.items.push(n),b=n.range[2],d($)&&p(n.range,"BLOCK_IN_FLOW",f)}}const _=m?"}":"]",[w,...$]=h.end;let S=b;if(w&&w.source===_)S=w.offset+w.source.length;else{const e=y[0].toUpperCase()+y.substring(1);p(b,v?"MISSING_CHAR":"BAD_INDENT",v?`${e} must end with a ${_}`:`${e} in block collection must be sufficiently indented and end with a ${_}`),w&&1!==w.source.length&&$.unshift(w)}if($.length>0){const e=a.resolveEnd($,S,r.options.strict,p);e.comment&&(g.comment?g.comment+="\n"+e.comment:g.comment=e.comment),g.range=[h.offset,S,e.offset]}else g.range=[h.offset,S,S];return g}},5147:(e,t,r)=>{"use strict";var n=r(5738),o=r(9516);function s(e){let t,r;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),r=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(e){t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=t.exec(e);if(!n)return e;let o=n[1],s=" ",i=t.lastIndex;for(r.lastIndex=i;n=r.exec(e);)""===n[1]?"\n"===s?o+=s:s="\n":(o+=s+n[1],s=" "),i=r.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=i,n=a.exec(e),o+s+(n?.[1]??"")}function i(e,t){let r="",n=e[t+1];for(;!(" "!==n&&"\t"!==n&&"\n"!==n&&"\r"!==n||"\r"===n&&"\n"!==e[t+2]);)"\n"===n&&(r+="\n"),n=e[(t+=1)+1];return r||(r=" "),{fold:r,offset:t}}const a={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function c(e,t,r,n){const o=e.substr(t,r),s=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const o=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(s)}t.resolveFlowScalar=function(e,t,r){const{offset:u,type:l,source:f,end:d}=e;let h,p;const m=(e,t,n)=>r(u+e,t,n);switch(l){case"scalar":h=n.Scalar.PLAIN,p=function(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),s(e)}(f,m);break;case"single-quoted-scalar":h=n.Scalar.QUOTE_SINGLE,p=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),s(e.slice(1,-1)).replace(/''/g,"'")}(f,m);break;case"double-quoted-scalar":h=n.Scalar.QUOTE_DOUBLE,p=function(e,t){let r="";for(let n=1;n<e.length-1;++n){const o=e[n];if("\r"!==o||"\n"!==e[n+1])if("\n"===o){const{fold:t,offset:o}=i(e,n);r+=t,n=o}else if("\\"===o){let o=e[++n];const s=a[o];if(s)r+=s;else if("\n"===o)for(o=e[n+1];" "===o||"\t"===o;)o=e[1+ ++n];else if("\r"===o&&"\n"===e[n+1])for(o=e[1+ ++n];" "===o||"\t"===o;)o=e[1+ ++n];else if("x"===o||"u"===o||"U"===o){const s={x:2,u:4,U:8}[o];r+=c(e,n+1,s,t),n+=s}else{const o=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),r+=o}}else if(" "===o||"\t"===o){const t=n;let s=e[n+1];for(;" "===s||"\t"===s;)s=e[1+ ++n];"\n"===s||"\r"===s&&"\n"===e[n+2]||(r+=n>t?e.slice(t,n+1):o)}else r+=o}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}(f,m);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${l}`),{value:"",type:null,comment:"",range:[u,u+f.length,u+f.length]}}const y=u+f.length,g=o.resolveEnd(d,y,t,r);return{value:p,type:h,comment:g.comment,range:[u,y,g.offset]}}},814:(e,t)=>{"use strict";t.resolveProps=function(e,{flow:t,indicator:r,next:n,offset:o,onError:s,startOnNewline:i}){let a=!1,c=i,u=i,l="",f="",d=!1,h=!1,p=!1,m=null,y=null,g=null,v=null,b=null;for(const n of e)switch(p&&("space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),n.type){case"space":!t&&c&&"doc-start"!==r&&"\t"===n.source[0]&&s(n,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||s(n,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=n.source.substring(1)||" ";l?l+=f+e:l=e,f="",c=!1;break}case"newline":c?l?l+=n.source:a=!0:f+=n.source,c=!0,d=!0,(m||y)&&(h=!0),u=!0;break;case"anchor":m&&s(n,"MULTIPLE_ANCHORS","A node can have at most one anchor"),n.source.endsWith(":")&&s(n.offset+n.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=n,null===b&&(b=n.offset),c=!1,u=!1,p=!0;break;case"tag":y&&s(n,"MULTIPLE_TAGS","A node can have at most one tag"),y=n,null===b&&(b=n.offset),c=!1,u=!1,p=!0;break;case r:(m||y)&&s(n,"BAD_PROP_ORDER",`Anchors and tags must be after the ${n.source} indicator`),v&&s(n,"UNEXPECTED_TOKEN",`Unexpected ${n.source} in ${t??"collection"}`),v=n,c=!1,u=!1;break;case"comma":if(t){g&&s(n,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),g=n,c=!1,u=!1;break}default:s(n,"UNEXPECTED_TOKEN",`Unexpected ${n.type} token`),c=!1,u=!1}const _=e[e.length-1],w=_?_.offset+_.source.length:o;return p&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:g,found:v,spaceBefore:a,comment:l,hasNewline:d,hasNewlineAfterProp:h,anchor:m,tag:y,end:w,start:b??w}}},7627:(e,t)=>{"use strict";t.containsNewline=function e(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end)for(const e of t.end)if("newline"===e.type)return!0;return!1;case"flow-collection":for(const r of t.items){for(const e of r.start)if("newline"===e.type)return!0;if(r.sep)for(const e of r.sep)if("newline"===e.type)return!0;if(e(r.key)||e(r.value))return!0}return!1;default:return!0}}},3576:(e,t)=>{"use strict";t.emptyScalarPosition=function(e,t,r){if(t){null===r&&(r=t.length);for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++n];"space"===r?.type;)e+=r.source.length,r=t[++n];break}}return e}},7049:(e,t,r)=>{"use strict";var n=r(7627);t.flowIndentCheck=function(e,t,r){if("flow-collection"===t?.type){const o=t.end[0];o.indent!==e||"]"!==o.source&&"}"!==o.source||!n.containsNewline(t)||r(o,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}},434:(e,t,r)=>{"use strict";var n=r(7384);t.mapIncludes=function(e,t,r){const{uniqueKeys:o}=e.options;if(!1===o)return!1;const s="function"==typeof o?o:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>s(e.key,r)))}},505:(e,t,r)=>{"use strict";var n=r(366),o=r(1928),s=r(7384),i=r(7356),a=r(5805),c=r(9442),u=r(121),l=r(7763),f=r(5157),d=r(6791),h=r(9534),p=r(3848);class m{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,s.NODE_TYPE,{value:s.DOC});let n=null;"function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t,t=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=o;let{version:i}=o;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new p.Directives({version:i}),this.setSchema(i,r),this.contents=void 0===e?null:this.createNode(e,n,r)}clone(){const e=Object.create(m.prototype,{[s.NODE_TYPE]:{value:s.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=s.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){y(this.contents)&&this.contents.add(e)}addIn(e,t){y(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=f.anchorNames(this);e.anchor=!t||r.has(t)?f.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n;if("function"==typeof t)e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,r=t.filter(e).map(String);r.length>0&&(t=t.concat(r)),n=t}else void 0===r&&t&&(r=t,t=void 0);const{aliasDuplicateObjects:o,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{},{onAnchor:d,setAnchors:p,sourceObjects:m}=f.createNodeAnchors(this,i||"a"),y={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:m},g=h.createNode(e,l,y);return a&&s.isCollection(g)&&(g.flow=!0),p(),g}createPair(e,t,r={}){const n=this.createNode(e,null,r),o=this.createNode(t,null,r);return new i.Pair(n,o)}delete(e){return!!y(this.contents)&&this.contents.delete(e)}deleteIn(e){return o.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!y(this.contents)&&this.contents.deleteIn(e)}get(e,t){return s.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return o.isEmptyPath(e)?!t&&s.isScalar(this.contents)?this.contents.value:this.contents:s.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!s.isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return o.isEmptyPath(e)?void 0!==this.contents:!!s.isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=o.collectionFromPath(this.schema,[e],t):y(this.contents)&&this.contents.set(e,t)}setIn(e,t){o.isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=o.collectionFromPath(this.schema,Array.from(e),t):y(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new p.Directives({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new p.Directives({version:e}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!r)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new c.Schema(Object.assign(r,t))}}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:s}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100,stringify:u.stringify},c=a.toJS(this.contents,t??"",i);if("function"==typeof o)for(const{count:e,res:t}of i.anchors.values())o(t,e);return"function"==typeof s?d.applyReviver(s,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return l.stringifyDocument(this,e)}}function y(e){if(s.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}t.Document=m},5157:(e,t,r)=>{"use strict";var n=r(7384),o=r(9303);function s(e){const t=new Set;return o.visit(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function i(e,t){for(let r=1;;++r){const n=`${e}${r}`;if(!t.has(n))return n}}t.anchorIsValid=function(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0},t.anchorNames=s,t.createNodeAnchors=function(e,t){const r=[],o=new Map;let a=null;return{onAnchor:n=>{r.push(n),a||(a=s(e));const o=i(t,a);return a.add(o),o},setAnchors:()=>{for(const e of r){const t=o.get(e);if("object"!=typeof t||!t.anchor||!n.isScalar(t.node)&&!n.isCollection(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:o}},t.findNewAnchor=i},6791:(e,t)=>{"use strict";t.applyReviver=function e(t,r,n,o){if(o&&"object"==typeof o)if(Array.isArray(o))for(let r=0,n=o.length;r<n;++r){const n=o[r],s=e(t,o,String(r),n);void 0===s?delete o[r]:s!==n&&(o[r]=s)}else if(o instanceof Map)for(const r of Array.from(o.keys())){const n=o.get(r),s=e(t,o,r,n);void 0===s?o.delete(r):s!==n&&o.set(r,s)}else if(o instanceof Set)for(const r of Array.from(o)){const n=e(t,o,r,r);void 0===n?o.delete(r):n!==r&&(o.delete(r),o.add(n))}else for(const[r,n]of Object.entries(o)){const s=e(t,o,r,n);void 0===s?delete o[r]:s!==n&&(o[r]=s)}return t.call(r,n,o)}},9534:(e,t,r)=>{"use strict";var n=r(366),o=r(7384),s=r(5738);t.createNode=function(e,t,r){if(o.isDocument(e)&&(e=e.contents),o.isNode(e))return e;if(o.isPair(e)){const t=r.schema[o.MAP].createNode?.(r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:a,onTagObj:c,schema:u,sourceObjects:l}=r;let f;if(i&&e&&"object"==typeof e){if(f=l.get(e),f)return f.anchor||(f.anchor=a(e)),new n.Alias(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,r){if(t){const e=r.filter((e=>e.tag===t)),n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}(e,t,u.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new s.Scalar(e);return f&&(f.node=t),t}d=e instanceof Map?u[o.MAP]:Symbol.iterator in Object(e)?u[o.SEQ]:u[o.MAP]}c&&(c(d),delete r.onTagObj);const h=d?.createNode?d.createNode(r.schema,e,r):new s.Scalar(e);return t&&(h.tag=t),f&&(f.node=h),h}},3848:(e,t,r)=>{"use strict";var n=r(7384),o=r(9303);const s={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class i{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},i.defaultYaml,e),this.tags=Object.assign({},i.defaultTags,t)}clone(){const e=new i(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new i(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:i.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},i.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:i.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},i.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),n=r.shift();switch(n){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[e,n]=r;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=r;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}const[,r,n]=e.match(/^(.*!)([^!]*)$/);n||t(`The ${e} tag has no suffix`);const o=this.tags[r];return o?o+decodeURIComponent(n):"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+e.substring(r.length).replace(/[!,[\]{}]/g,(e=>s[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let s;if(e&&r.length>0&&n.isNode(e.contents)){const t={};o.visit(e.contents,((e,r)=>{n.isNode(r)&&r.tag&&(t[r.tag]=!0)})),s=Object.keys(t)}else s=[];for(const[n,o]of r)"!!"===n&&"tag:yaml.org,2002:"===o||e&&!s.some((e=>e.startsWith(o)))||t.push(`%TAG ${n} ${o}`);return t.join("\n")}}i.defaultYaml={explicit:!1,version:"1.2"},i.defaultTags={"!!":"tag:yaml.org,2002:"},t.Directives=i},2981:(e,t)=>{"use strict";class r extends Error{constructor(e,t,r,n){super(),this.name=e,this.code=r,this.message=n,this.pos=t}}t.YAMLError=r,t.YAMLParseError=class extends r{constructor(e,t,r){super("YAMLParseError",e,t,r)}},t.YAMLWarning=class extends r{constructor(e,t,r){super("YAMLWarning",e,t,r)}},t.prettifyError=(e,t)=>r=>{if(-1===r.pos[0])return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let s=o-1,i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const e=Math.min(s-39,i.length-79);i="…"+i.substring(e),s-=e-1}if(i.length>80&&(i=i.substring(0,79)+"…"),n>1&&/^ *$/.test(i.substring(0,s))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);r.length>80&&(r=r.substring(0,79)+"…\n"),i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];t&&t.line===n&&t.col>o&&(e=Math.min(t.col-o,80-s));const a=" ".repeat(s)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}}},4667:(e,t,r)=>{"use strict";var n=r(1294),o=r(505),s=r(9442),i=r(2981),a=r(366),c=r(7384),u=r(7356),l=r(5738),f=r(8228),d=r(9248),h=r(8575),p=r(5757),m=r(862),y=r(654),g=r(3769),v=r(9303);t.Composer=n.Composer,t.Document=o.Document,t.Schema=s.Schema,t.YAMLError=i.YAMLError,t.YAMLParseError=i.YAMLParseError,t.YAMLWarning=i.YAMLWarning,t.Alias=a.Alias,t.isAlias=c.isAlias,t.isCollection=c.isCollection,t.isDocument=c.isDocument,t.isMap=c.isMap,t.isNode=c.isNode,t.isPair=c.isPair,t.isScalar=c.isScalar,t.isSeq=c.isSeq,t.Pair=u.Pair,t.Scalar=l.Scalar,t.YAMLMap=f.YAMLMap,t.YAMLSeq=d.YAMLSeq,t.CST=h,t.Lexer=p.Lexer,t.LineCounter=m.LineCounter,t.Parser=y.Parser,t.parse=g.parse,t.parseAllDocuments=g.parseAllDocuments,t.parseDocument=g.parseDocument,t.stringify=g.stringify,t.visit=v.visit,t.visitAsync=v.visitAsync},4774:(e,t)=>{"use strict";t.debug=function(e,...t){"debug"===e&&console.log(...t)},t.warn=function(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}},366:(e,t,r)=>{"use strict";var n=r(5157),o=r(9303),s=r(7384);class i extends s.NodeBase{constructor(e){super(s.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return o.visit(e,{Node:(e,r)=>{if(r===this)return o.visit.BREAK;r.anchor===this.source&&(t=r)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:o}=t,s=this.resolve(n);if(!s){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const i=r.get(s);if(!i||void 0===i.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=a(n,s,r)),i.count*i.aliasCount>o))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return i.res}toString(e,t,r){const o=`*${this.source}`;if(e){if(n.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${o} `}return o}}function a(e,t,r){if(s.isAlias(t)){const n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}if(s.isCollection(t)){let n=0;for(const o of t.items){const t=a(e,o,r);t>n&&(n=t)}return n}if(s.isPair(t)){const n=a(e,t.key,r),o=a(e,t.value,r);return Math.max(n,o)}return 1}t.Alias=i},1928:(e,t,r)=>{"use strict";var n=r(9534),o=r(7384);function s(e,t,r){let o=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){const e=[];e[r]=o,o=e}else o=new Map([[r,o]])}return n.createNode(o,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const i=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class a extends o.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>o.isNode(t)||o.isPair(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(i(e))this.add(t);else{const[r,...n]=e,i=this.get(r,!0);if(o.isCollection(i))i.addIn(n,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`);this.set(r,s(this.schema,n,t))}}}deleteIn(e){const[t,...r]=e;if(0===r.length)return this.delete(t);const n=this.get(t,!0);if(o.isCollection(n))return n.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e,s=this.get(r,!0);return 0===n.length?!t&&o.isScalar(s)?s.value:s:o.isCollection(s)?s.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!o.isPair(t))return!1;const r=t.value;return null==r||e&&o.isScalar(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(0===r.length)return this.has(t);const n=this.get(t,!0);return!!o.isCollection(n)&&n.hasIn(r)}setIn(e,t){const[r,...n]=e;if(0===n.length)this.set(r,t);else{const e=this.get(r,!0);if(o.isCollection(e))e.setIn(n,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`);this.set(r,s(this.schema,n,t))}}}}a.maxFlowStringSingleLineLength=60,t.Collection=a,t.collectionFromPath=s,t.isEmptyPath=i},7384:(e,t)=>{"use strict";const r=Symbol.for("yaml.alias"),n=Symbol.for("yaml.document"),o=Symbol.for("yaml.map"),s=Symbol.for("yaml.pair"),i=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),u=e=>!!e&&"object"==typeof e&&e[c]===i;function l(e){if(e&&"object"==typeof e)switch(e[c]){case o:case a:return!0}return!1}t.ALIAS=r,t.DOC=n,t.MAP=o,t.NODE_TYPE=c,t.NodeBase=class{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}},t.PAIR=s,t.SCALAR=i,t.SEQ=a,t.hasAnchor=e=>(u(e)||l(e))&&!!e.anchor,t.isAlias=e=>!!e&&"object"==typeof e&&e[c]===r,t.isCollection=l,t.isDocument=e=>!!e&&"object"==typeof e&&e[c]===n,t.isMap=e=>!!e&&"object"==typeof e&&e[c]===o,t.isNode=function(e){if(e&&"object"==typeof e)switch(e[c]){case r:case o:case i:case a:return!0}return!1},t.isPair=e=>!!e&&"object"==typeof e&&e[c]===s,t.isScalar=u,t.isSeq=e=>!!e&&"object"==typeof e&&e[c]===a},7356:(e,t,r)=>{"use strict";var n=r(9534),o=r(4418),s=r(6434),i=r(7384);class a{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return i.isNode(t)&&(t=t.clone(e)),i.isNode(r)&&(r=r.clone(e)),new a(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return s.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?o.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=a,t.createPair=function(e,t,r){const o=n.createNode(e,void 0,r),s=n.createNode(t,void 0,r);return new a(o,s)}},5738:(e,t,r)=>{"use strict";var n=r(7384),o=r(5805);class s extends n.NodeBase{constructor(e){super(n.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}s.BLOCK_FOLDED="BLOCK_FOLDED",s.BLOCK_LITERAL="BLOCK_LITERAL",s.PLAIN="PLAIN",s.QUOTE_DOUBLE="QUOTE_DOUBLE",s.QUOTE_SINGLE="QUOTE_SINGLE",t.Scalar=s,t.isScalarValue=e=>!e||"function"!=typeof e&&"object"!=typeof e},8228:(e,t,r)=>{"use strict";var n=r(2970),o=r(6434),s=r(1928),i=r(7384),a=r(7356),c=r(5738);function u(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e)if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}class l extends s.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e),this.items=[]}add(e,t){let r;r=i.isPair(e)?e:e&&"object"==typeof e&&"key"in e?new a.Pair(e.key,e.value):new a.Pair(e,e?.value);const n=u(this.items,r.key),o=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);i.isScalar(n.value)&&c.isScalarValue(r.value)?n.value.value=r.value:n.value=r.value}else if(o){const e=this.items.findIndex((e=>o(r,e)<0));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){const t=u(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const r=u(this.items,e),n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!u(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(n);for(const e of this.items)o.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items)if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=l,t.findPair=u},9248:(e,t,r)=>{"use strict";var n=r(2970),o=r(1928),s=r(7384),i=r(5738),a=r(5805);class c extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(s.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=u(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const r=u(e);if("number"!=typeof r)return;const n=this.items[r];return!t&&s.isScalar(n)?n.value:n}has(e){const t=u(e);return"number"==typeof t&&t<this.items.length}set(e,t){const r=u(e);if("number"!=typeof r)throw new Error(`Expected a valid index, not ${e}.`);const n=this.items[r];s.isScalar(n)&&i.isScalarValue(t)?n.value=t:this.items[r]=t}toJSON(e,t){const r=[];t?.onCreate&&t.onCreate(r);let n=0;for(const e of this.items)r.push(a.toJS(e,String(n++),t));return r}toString(e,t,r){return e?n.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}}function u(e){let t=s.isScalar(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}t.YAMLSeq=c},6434:(e,t,r)=>{"use strict";var n=r(4774),o=r(121),s=r(7384),i=r(5738),a=r(5805);function c(e,t,r){const n=e&&s.isAlias(r)?r.resolve(e.doc):r;if(!s.isMap(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,e,Map);for(const[e,r]of o)t instanceof Map?t.has(e)||t.set(e,r):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0});return t}t.addPairToJSMap=function(e,t,{key:r,value:u}){if(e?.doc.schema.merge&&(e=>"<<"===e||s.isScalar(e)&&"<<"===e.value&&(!e.type||e.type===i.Scalar.PLAIN))(r))if(u=s.isAlias(u)?u.resolve(e.doc):u,s.isSeq(u))for(const r of u.items)c(e,t,r);else if(Array.isArray(u))for(const r of u)c(e,t,r);else c(e,t,u);else{const i=a.toJS(r,"",e);if(t instanceof Map)t.set(i,a.toJS(u,i,e));else if(t instanceof Set)t.add(i);else{const c=function(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(s.isNode(e)&&r&&r.doc){const t=o.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const s=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(s);e.length>40&&(e=e.substring(0,36)+'..."'),n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return s}return JSON.stringify(t)}(r,i,e),l=a.toJS(u,c,e);c in t?Object.defineProperty(t,c,{value:l,writable:!0,enumerable:!0,configurable:!0}):t[c]=l}}return t}},5805:(e,t,r)=>{"use strict";var n=r(7384);t.toJS=function e(t,r,o){if(Array.isArray(t))return t.map(((t,r)=>e(t,String(r),o)));if(t&&"function"==typeof t.toJSON){if(!o||!n.hasAnchor(t))return t.toJSON(r,o);const e={aliasCount:0,count:1,res:void 0};o.anchors.set(t,e),o.onCreate=t=>{e.res=t,delete o.onCreate};const s=t.toJSON(r,o);return o.onCreate&&o.onCreate(s),s}return"bigint"!=typeof t||o?.keep?t:Number(t)}},1771:(e,t,r)=>{"use strict";var n=r(1070),o=r(5147),s=r(2981),i=r(3955);function a(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function c(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let o=t.length;"block-scalar-header"===e.props[0].type&&(o-=e.props[0].source.length);for(const e of n)e.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:r,source:t,end:[n]});break}default:{const n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}t.createScalarToken=function(e,t){const{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:s=-1,type:c="PLAIN"}=t,u=i.stringifyString({type:c,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(u[0]){case"|":case">":{const e=u.indexOf("\n"),t=u.substring(0,e),r=u.substring(e+1)+"\n",o=[{type:"block-scalar-header",offset:s,indent:n,source:t}];return a(o,l)||o.push({type:"newline",offset:-1,indent:n,source:"\n"}),{type:"block-scalar",offset:s,indent:n,props:o,source:r}}case'"':return{type:"double-quoted-scalar",offset:s,indent:n,source:u,end:l};case"'":return{type:"single-quoted-scalar",offset:s,indent:n,source:u,end:l};default:return{type:"scalar",offset:s,indent:n,source:u,end:l}}},t.resolveAsScalar=function(e,t=!0,r){if(e){const i=(e,t,n)=>{const o="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!r)throw new s.YAMLParseError([o,o+1],t,n);r(o,t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return o.resolveFlowScalar(e,t,i);case"block-scalar":return n.resolveBlockScalar(e,t,i)}}return null},t.setScalarValue=function(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:s=!1,type:u}=r,l="indent"in e?e.indent:null;if(n&&"number"==typeof l&&(l+=2),!u)switch(e.type){case"single-quoted-scalar":u="QUOTE_SINGLE";break;case"double-quoted-scalar":u="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");u=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:u="PLAIN"}const f=i.stringifyString({type:u,value:t},{implicitKey:o||null===l,indent:null!==l&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(f[0]){case"|":case">":!function(e,t){const r=t.indexOf("\n"),n=t.substring(0,r),o=t.substring(r+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=n,e.source=o}else{const{offset:t}=e,r="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:t,indent:r,source:n}];a(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:s,source:o})}}(e,f);break;case'"':c(e,f,"double-quoted-scalar");break;case"'":c(e,f,"single-quoted-scalar");break;default:c(e,f,"scalar")}}},896:(e,t)=>{"use strict";function r(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=r(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=n(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=n(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=n(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function n({start:e,key:t,sep:n,value:o}){let s="";for(const t of e)s+=t.source;if(t&&(s+=r(t)),n)for(const e of n)s+=e.source;return o&&(s+=r(o)),s}t.stringify=e=>"type"in e?r(e):n(e)},5340:(e,t)=>{"use strict";const r=Symbol("break visit"),n=Symbol("skip children"),o=Symbol("remove item");function s(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),i(Object.freeze([]),e,t)}function i(e,t,n){let s=n(t,e);if("symbol"==typeof s)return s;for(const a of["key","value"]){const c=t[a];if(c&&"items"in c){for(let t=0;t<c.items.length;++t){const s=i(Object.freeze(e.concat([[a,t]])),c.items[t],n);if("number"==typeof s)t=s-1;else{if(s===r)return r;s===o&&(c.items.splice(t,1),t-=1)}}"function"==typeof s&&"key"===a&&(s=s(t,e))}}return"function"==typeof s?s(t,e):s}s.BREAK=r,s.SKIP=n,s.REMOVE=o,s.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(!t||!("items"in t))return;r=t.items[n]}return r},s.parentCollection=(e,t)=>{const r=s.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r?.[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")},t.visit=s},8575:(e,t,r)=>{"use strict";var n=r(1771),o=r(896),s=r(5340);t.createScalarToken=n.createScalarToken,t.resolveAsScalar=n.resolveAsScalar,t.setScalarValue=n.setScalarValue,t.stringify=o.stringify,t.visit=s.visit,t.BOM="\ufeff",t.DOCUMENT="",t.FLOW_END="",t.SCALAR="",t.isCollection=e=>!!e&&"items"in e,t.isScalar=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),t.prettyToken=function(e){switch(e){case"\ufeff":return"<BOM>";case"":return"<DOC>";case"":return"<FLOW_END>";case"":return"<SCALAR>";default:return JSON.stringify(e)}},t.tokenType=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}},5757:(e,t,r)=>{"use strict";var n=r(8575);function o(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const s="0123456789ABCDEFabcdef".split(""),i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),a=",[]{}".split(""),c=" ,[]{}\n\r\t".split(""),u=e=>!e||c.includes(e);t.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;" "===t;)t=this.buffer[++r+e];if("\r"===t){const t=this.buffer[r+e+1];if("\n"===t||!t&&!this.atEnd)return e+r+1}return"\n"===t||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&o(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===n.BOM&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const r=e.indexOf("#");if(-1!==r){const n=e[r-1];" "!==n&&"\t"!==n||(t=r-1)}for(;;){const r=e[t-1];if(" "!==r&&"\t"!==r)break;t-=1}const n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield n.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if("---"===e&&o(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&o(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!o(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&o(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(u),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,r=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const s=this.getLine();if(null===s)return this.setNext("flow");if((-1!==r&&r<this.indentNext&&"#"!==s[0]||0===r&&(s.startsWith("---")||s.startsWith("..."))&&o(s[3]))&&(r!==this.indentNext-1||1!==this.flowLevel||"]"!==s[0]&&"}"!==s[0]))return this.flowLevel=0,yield n.FLOW_END,yield*this.parseLineStart();let i=0;for(;","===s[i];)i+=(yield*this.pushCount(1)),i+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i+=(yield*this.pushIndicators()),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(u),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||o(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const r=this.buffer.substring(0,t);let n=r.indexOf("\n",this.pos);if(-1!==n){for(;-1!==n;){const e=this.continueScalar(n+1);if(-1===e)break;n=r.indexOf("\n",e)}-1!==n&&(t=n-("\r"===r[n-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>o(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,r=0;e:for(let n=this.pos;e=this.buffer[n];++n)switch(e){case" ":r+=1;break;case"\n":t=n,r=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=r:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,n=this.buffer[e];"\r"===n&&(n=this.buffer[--e]);const o=e;for(;" "===n||"\t"===n;)n=this.buffer[--e];if(!("\n"===n&&e>=this.pos&&e+1+r>o))break;t=e}return yield n.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,r=this.pos-1,s=this.pos-1;for(;t=this.buffer[++s];)if(":"===t){const t=this.buffer[s+1];if(o(t)||e&&","===t)break;r=s}else if(o(t)){let n=this.buffer[s+1];if("\r"===t&&("\n"===n?(s+=1,t="\n",n=this.buffer[s+1]):r=s),"#"===n||e&&a.includes(n))break;if("\n"===t){const e=this.continueScalar(s+1);if(-1===e)break;s=Math.max(s,e-2)}}else{if(e&&a.includes(t))break;r=s}return t||this.atEnd?(yield n.SCALAR,yield*this.pushToIndex(r+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(u))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(o(t)||e&&a.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!o(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.includes(t))t=this.buffer[++e];else{if("%"!==t||!s.includes(this.buffer[e+1])||!s.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,r=this.pos-1;do{t=this.buffer[++r]}while(" "===t||e&&"\t"===t);const n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}},862:(e,t)=>{"use strict";t.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t<r;){const n=t+r>>1;this.lineStarts[n]<e?t=n+1:r=n}return this.lineStarts[t]===e?{line:t+1,col:1}:0===t?{line:0,col:e}:{line:t,col:e-this.lineStarts[t-1]+1}}}}},654:(e,t,r)=>{"use strict";var n=r(8575),o=r(5757);function s(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function i(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function a(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function c(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function u(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function l(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||s(t.start,"explicit-key-ind")||s(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,a(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}t.Parser=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new o.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);t||(yield*this.end())}*next(e){if(this.source=e,process.env.LOG_TOKENS&&console.log("|",n.prettyToken(e)),this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=n.tokenType(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&l(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!r.sep)return Object.assign(r,{key:t,sep:[]}),void(this.onKeyLine=!s(r.start,"explicit-key-ind"));r.value=t;break}case"block-seq":{const r=e.items[e.items.length-1];r.value?e.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];return void(!r||r.value?e.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===i(r.start)&&(0===t.indent||r.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=r.start:e.items.push({start:r.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==i(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=u(c(this.peek(2)));let r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const r="end"in t.value?t.value.end:void 0,n=Array.isArray(r)?r[r.length-1]:void 0;"comment"===n?.type?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],n=r?.value?.end;if(Array.isArray(n))return Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent&&t.sep;let n=[];if(r&&t.sep&&!t.value){const r=[];for(let n=0;n<t.sep.length;++n){const o=t.sep[n];switch(o.type){case"newline":r.push(n);break;case"space":break;case"comment":o.indent>e.indent&&(r.length=0);break;default:r.length=0}}r.length>=2&&(n=t.sep.splice(r[1]))}switch(this.type){case"anchor":case"tag":return void(r||t.value?(n.push(this.sourceToken),e.items.push({start:n}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||s(t.start,"explicit-key-ind")?r||t.value?(n.push(this.sourceToken),e.items.push({start:n})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(s(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(s(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]});else if(a(t.key)&&!s(t.sep,"newline")){const e=u(t.start),r=t.key,n=t.sep;n.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else n.length>0?t.sep=t.sep.concat(n,this.sourceToken):t.sep.push(this.sourceToken);else if(s(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=u(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||r?e.items.push({start:n,key:null,sep:[this.sourceToken]}):s(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);return void(r||t.value?(e.items.push({start:n,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0))}default:{const o=this.startBlockValue(e);if(o)return r&&"block-seq"!==o.type&&s(t.start,"explicit-key-ind")&&e.items.push({start:n}),void this.stack.push(o)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:void 0,n=Array.isArray(r)?r[r.length-1]:void 0;"comment"===n?.type?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],n=r?.value?.end;if(Array.isArray(n))return Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||s(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const r=u(c(t));l(e);const n=e.end.splice(1,e.end.length);n.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=u(c(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=u(c(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}},3769:(e,t,r)=>{"use strict";var n=r(1294),o=r(505),s=r(2981),i=r(4774),a=r(862),c=r(654);function u(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new a.LineCounter||null,prettyErrors:t}}function l(e,t={}){const{lineCounter:r,prettyErrors:o}=u(t),i=new c.Parser(r?.addNewLine),a=new n.Composer(t);let l=null;for(const t of a.compose(i.parse(e),!0,e.length))if(l){if("silent"!==l.options.logLevel){l.errors.push(new s.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else l=t;return o&&r&&(l.errors.forEach(s.prettifyError(e,r)),l.warnings.forEach(s.prettifyError(e,r))),l}t.parse=function(e,t,r){let n;"function"==typeof t?n=t:void 0===r&&t&&"object"==typeof t&&(r=t);const o=l(e,r);if(!o)return null;if(o.warnings.forEach((e=>i.warn(o.options.logLevel,e))),o.errors.length>0){if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))},t.parseAllDocuments=function(e,t={}){const{lineCounter:r,prettyErrors:o}=u(t),i=new c.Parser(r?.addNewLine),a=new n.Composer(t),l=Array.from(a.compose(i.parse(e)));if(o&&r)for(const t of l)t.errors.forEach(s.prettifyError(e,r)),t.warnings.forEach(s.prettifyError(e,r));return l.length>0?l:Object.assign([],{empty:!0},a.streamInfo())},t.parseDocument=l,t.stringify=function(e,t,r){let n=null;if("function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t),"string"==typeof r&&(r=r.length),"number"==typeof r){const e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=r??t??{};if(!e)return}return new o.Document(e,n,r).toString(r)}},9442:(e,t,r)=>{"use strict";var n=r(7384),o=r(4457),s=r(4284),i=r(5077),a=r(8927);const c=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class u{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:u,schema:l,sortMapEntries:f,toStringDefaults:d}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null,this.merge=!!r,this.name="string"==typeof l&&l||"core",this.knownTags=u?a.coreKnownTags:{},this.tags=a.getTags(t,this.name),this.toStringOptions=d??null,Object.defineProperty(this,n.MAP,{value:o.map}),Object.defineProperty(this,n.SCALAR,{value:i.string}),Object.defineProperty(this,n.SEQ,{value:s.seq}),this.sortMapEntries="function"==typeof f?f:!0===f?c:null}clone(){const e=Object.create(u.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}t.Schema=u},4457:(e,t,r)=>{"use strict";var n=r(7384),o=r(7356),s=r(8228);const i={collection:"map",createNode:function(e,t,r){const{keepUndefined:n,replacer:i}=r,a=new s.YAMLMap(e),c=(e,s)=>{if("function"==typeof i)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==s||n)&&a.items.push(o.createPair(e,s,r))};if(t instanceof Map)for(const[e,r]of t)c(e,r);else if(t&&"object"==typeof t)for(const e of Object.keys(t))c(e,t[e]);return"function"==typeof e.sortMapEntries&&a.items.sort(e.sortMapEntries),a},default:!0,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(n.isMap(e)||t("Expected a mapping for this tag"),e)};t.map=i},4556:(e,t,r)=>{"use strict";var n=r(5738);const o={identify:e=>null==e,createNode:()=>new n.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&o.test.test(e)?e:t.options.nullStr};t.nullTag=o},4284:(e,t,r)=>{"use strict";var n=r(9534),o=r(7384),s=r(9248);const i={collection:"seq",createNode:function(e,t,r){const{replacer:o}=r,i=new s.YAMLSeq(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"==typeof o){const r=t instanceof Set?s:String(e++);s=o.call(t,r,s)}i.items.push(n.createNode(s,void 0,r))}}return i},default:!0,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(o.isSeq(e)||t("Expected a sequence for this tag"),e)};t.seq=i},5077:(e,t,r)=>{"use strict";var n=r(3955);const o={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,o)=>(t=Object.assign({actualString:!0},t),n.stringifyString(e,t,r,o))};t.string=o},9882:(e,t,r)=>{"use strict";var n=r(5738);const o={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},r)=>e&&o.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?r.options.trueStr:r.options.falseStr};t.boolTag=o},2612:(e,t,r)=>{"use strict";var n=r(5738),o=r(6592);const s={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:o.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():o.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e)),r=e.indexOf(".");return-1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:o.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=s},8893:(e,t,r)=>{"use strict";var n=r(6592);const o=e=>"bigint"==typeof e||Number.isInteger(e),s=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function i(e,t,r){const{value:s}=e;return o(s)&&s>=0?r+s.toString(t):n.stringifyNumber(e)}const a={identify:e=>o(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>s(e,2,8,r),stringify:e=>i(e,8,"0o")},c={identify:o,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>s(e,0,10,r),stringify:n.stringifyNumber},u={identify:e=>o(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>s(e,2,16,r),stringify:e=>i(e,16,"0x")};t.int=c,t.intHex=u,t.intOct=a},3156:(e,t,r)=>{"use strict";var n=r(4457),o=r(4556),s=r(4284),i=r(5077),a=r(9882),c=r(2612),u=r(8893);const l=[n.map,s.seq,i.string,o.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=l},3535:(e,t,r)=>{"use strict";var n=r(5738),o=r(4457),s=r(4284);function i(e){return"bigint"==typeof e||Number.isInteger(e)}const a=({value:e})=>JSON.stringify(e),c=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:a},{identify:e=>null==e,createNode:()=>new n.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:a},{identify:i,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}],u={default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)},l=[o.map,s.seq].concat(c,u);t.schema=l},8927:(e,t,r)=>{"use strict";var n=r(4457),o=r(4556),s=r(4284),i=r(5077),a=r(9882),c=r(2612),u=r(8893),l=r(3156),f=r(3535),d=r(8062),h=r(9497),p=r(6780),m=r(2321),y=r(1114),g=r(4849);const v=new Map([["core",l.schema],["failsafe",[n.map,s.seq,i.string]],["json",f.schema],["yaml11",m.schema],["yaml-1.1",m.schema]]),b={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:g.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:g.intTime,map:n.map,null:o.nullTag,omap:h.omap,pairs:p.pairs,seq:s.seq,set:y.set,timestamp:g.timestamp},_={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":h.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":y.set,"tag:yaml.org,2002:timestamp":g.timestamp};t.coreKnownTags=_,t.getTags=function(e,t){let r=v.get(t);if(!r){if(!Array.isArray(e)){const e=Array.from(v.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}r=[]}if(Array.isArray(e))for(const t of e)r=r.concat(t);else"function"==typeof e&&(r=e(r.slice()));return r.map((e=>{if("string"!=typeof e)return e;const t=b[e];if(t)return t;const r=Object.keys(b).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}},8062:(e,t,r)=>{"use strict";var n=r(5738),o=r(3955);const s={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},s,i,a){const c=r;let u;if("function"==typeof Buffer)u=c instanceof Buffer?c.toString("base64"):Buffer.from(c.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<c.length;++t)e+=String.fromCharCode(c[t]);u=btoa(e)}}if(t||(t=n.Scalar.BLOCK_LITERAL),t!==n.Scalar.QUOTE_DOUBLE){const e=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),r=Math.ceil(u.length/e),o=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)o[t]=u.substr(n,e);u=o.join(t===n.Scalar.BLOCK_LITERAL?"\n":" ")}return o.stringifyString({comment:e,type:t,value:u},s,i,a)}};t.binary=s},601:(e,t,r)=>{"use strict";var n=r(5738);function o({value:e,source:t},r){return t&&(e?s:i).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const s={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(!0),stringify:o},i={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new n.Scalar(!1),stringify:o};t.falseTag=i,t.trueTag=s},7381:(e,t,r)=>{"use strict";var n=r(5738),o=r(6592);const s={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:o.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():o.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){const n=e.substring(r+1).replace(/_/g,"");"0"===n[n.length-1]&&(t.minFractionDigits=n.length)}return t},stringify:o.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=s},8861:(e,t,r)=>{"use strict";var n=r(6592);const o=e=>"bigint"==typeof e||Number.isInteger(e);function s(e,t,r,{intAsBigInt:n}){const o=e[0];if("-"!==o&&"+"!==o||(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===o?BigInt(-1)*t:t}const s=parseInt(e,r);return"-"===o?-1*s:s}function i(e,t,r){const{value:s}=e;if(o(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const a={identify:o,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>s(e,2,2,r),stringify:e=>i(e,2,"0b")},c={identify:o,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>s(e,1,8,r),stringify:e=>i(e,8,"0")},u={identify:o,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>s(e,0,10,r),stringify:n.stringifyNumber},l={identify:o,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>s(e,2,16,r),stringify:e=>i(e,16,"0x")};t.int=u,t.intBin=a,t.intHex=l,t.intOct=c},9497:(e,t,r)=>{"use strict";var n=r(9248),o=r(5805),s=r(7384),i=r(8228),a=r(6780);class c extends n.YAMLSeq{constructor(){super(),this.add=i.YAMLMap.prototype.add.bind(this),this.delete=i.YAMLMap.prototype.delete.bind(this),this.get=i.YAMLMap.prototype.get.bind(this),this.has=i.YAMLMap.prototype.has.bind(this),this.set=i.YAMLMap.prototype.set.bind(this),this.tag=c.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;t?.onCreate&&t.onCreate(r);for(const e of this.items){let n,i;if(s.isPair(e)?(n=o.toJS(e.key,"",t),i=o.toJS(e.value,n,t)):n=o.toJS(e,"",t),r.has(n))throw new Error("Ordered maps must not include duplicate keys");r.set(n,i)}return r}}c.tag="tag:yaml.org,2002:omap";const u={collection:"seq",identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t),n=[];for(const{key:e}of r.items)s.isScalar(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new c,r)},createNode(e,t,r){const n=a.createPairs(e,t,r),o=new c;return o.items=n.items,o}};t.YAMLOMap=c,t.omap=u},6780:(e,t,r)=>{"use strict";var n=r(7384),o=r(7356),s=r(5738),i=r(9248);function a(e,t){if(n.isSeq(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!n.isPair(i)){if(n.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const e=i.items[0]||new o.Pair(new s.Scalar(null));if(i.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore),i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new o.Pair(i)}}else t("Expected a sequence for this tag");return e}function c(e,t,r){const{replacer:n}=r,s=new i.YAMLSeq(e);s.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let i,c;if("function"==typeof n&&(e=n.call(t,String(a++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);i=e[0],c=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);i=t[0],c=e[i]}else i=e;s.items.push(o.createPair(i,c,r))}return s}const u={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:c};t.createPairs=c,t.pairs=u,t.resolvePairs=a},2321:(e,t,r)=>{"use strict";var n=r(4457),o=r(4556),s=r(4284),i=r(5077),a=r(8062),c=r(601),u=r(7381),l=r(8861),f=r(9497),d=r(6780),h=r(1114),p=r(4849);const m=[n.map,s.seq,i.string,o.nullTag,c.trueTag,c.falseTag,l.intBin,l.intOct,l.int,l.intHex,u.floatNaN,u.floatExp,u.float,a.binary,f.omap,d.pairs,h.set,p.intTime,p.floatTime,p.timestamp];t.schema=m},1114:(e,t,r)=>{"use strict";var n=r(7384),o=r(7356),s=r(8228);class i extends s.YAMLMap{constructor(e){super(e),this.tag=i.tag}add(e){let t;t=n.isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new o.Pair(e.key,null):new o.Pair(e,null),s.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const r=s.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const r=s.findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new o.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw new Error("Set items must all have null values")}}i.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,r){const{replacer:n}=r,s=new i(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof n&&(e=n.call(t,e,e)),s.items.push(o.createPair(e,null,r));return s}};t.YAMLSet=i,t.set=a},4849:(e,t,r)=>{"use strict";var n=r(6592);function o(e,t){const r=e[0],n="-"===r||"+"===r?e.substring(1):e,o=e=>t?BigInt(e):Number(e),s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*o(60)+o(t)),o(0));return"-"===r?o(-1)*s:s}function s(e){let{value:t}=e,r=e=>e;if("bigint"==typeof t)r=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let o="";t<0&&(o="-",t*=r(-1));const s=r(60),i=[t%s];return t<60?i.unshift(0):(t=(t-i[0])/s,i.unshift(t%s),t>=60&&(t=(t-i[0])/s,i.unshift(t))),o+i.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const i={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>o(e,r),stringify:s},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>o(e,!1),stringify:s},c={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(c.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,i,a,u]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(r,n-1,s,i||0,a||0,u||0,l);const d=t[8];if(d&&"Z"!==d){let e=o(d,!1);Math.abs(e)<30&&(e*=60),f-=6e4*e}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=a,t.intTime=i,t.timestamp=c},4168:(e,t)=>{"use strict";const r="block",n="quoted";function o(e,t){let r=e[t+1];for(;" "===r||"\t"===r;){do{r=e[t+=1]}while(r&&"\n"!==r);r=e[t+1]}return t}t.FOLD_BLOCK=r,t.FOLD_FLOW="flow",t.FOLD_QUOTED=n,t.foldFlowLines=function(e,t,s="flow",{indentAtStart:i,lineWidth:a=80,minContentWidth:c=20,onFold:u,onOverflow:l}={}){if(!a||a<0)return e;const f=Math.max(1+c,1+a-t.length);if(e.length<=f)return e;const d=[],h={};let p,m,y=a-t.length;"number"==typeof i&&(i>a-Math.max(2,c)?d.push(0):y=a-i);let g=!1,v=-1,b=-1,_=-1;s===r&&(v=o(e,v),-1!==v&&(y=v+f));for(let t;t=e[v+=1];){if(s===n&&"\\"===t){switch(b=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}_=v}if("\n"===t)s===r&&(v=o(e,v)),y=v+f,p=void 0;else{if(" "===t&&m&&" "!==m&&"\n"!==m&&"\t"!==m){const t=e[v+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=v)}if(v>=y)if(p)d.push(p),y=p+f,p=void 0;else if(s===n){for(;" "===m||"\t"===m;)m=t,t=e[v+=1],g=!0;const r=v>_+1?v-2:b-1;if(h[r])return e;d.push(r),h[r]=!0,y=r+f,p=void 0}else g=!0}m=t}if(g&&l&&l(),0===d.length)return e;u&&u();let w=e.slice(0,d[0]);for(let r=0;r<d.length;++r){const o=d[r],i=d[r+1]||e.length;0===o?w=`\n${t}${e.slice(0,i)}`:(s===n&&h[o]&&(w+=`${e[o]}\\`),w+=`\n${t}${e.slice(o+1,i)}`)}return w}},121:(e,t,r)=>{"use strict";var n=r(5157),o=r(7384),s=r(1705),i=r(3955);t.createStringifyContext=function(e,t){const r=Object.assign({blockQuote:!0,commentString:s.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}},t.stringify=function(e,t,r,s){if(o.isPair(e))return e.toString(t,r,s);if(o.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let a;const c=o.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>a=e});a||(a=function(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r,n;if(o.isScalar(t)){n=t.value;const o=e.filter((e=>e.identify?.(n)));r=o.find((e=>e.format===t.format))??o.find((e=>!e.format))}else n=t,r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass));if(!r)throw new Error(`Tag not resolved for ${n?.constructor?.name??typeof n} value`);return r}(t.doc.schema.tags,c));const u=function(e,t,{anchors:r,doc:s}){if(!s.directives)return"";const i=[],a=(o.isScalar(e)||o.isCollection(e))&&e.anchor;a&&n.anchorIsValid(a)&&(r.add(a),i.push(`&${a}`));const c=e.tag?e.tag:t.default?null:t.tag;return c&&i.push(s.directives.tagString(c)),i.join(" ")}(c,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l="function"==typeof a.stringify?a.stringify(c,t,r,s):o.isScalar(c)?i.stringifyString(c,t,r,s):c.toString(t,r,s);return u?o.isScalar(c)||"{"===l[0]||"["===l[0]?`${u} ${l}`:`${u}\n${t.indent}${l}`:l}},2970:(e,t,r)=>{"use strict";var n=r(1928),o=r(7384),s=r(121),i=r(1705);function a({comment:e,items:t},r,{blockItemPrefix:n,flowChars:a,itemIndent:c,onChompKeep:l,onComment:f}){const{indent:d,options:{commentString:h}}=r,p=Object.assign({},r,{indent:c,type:null});let m=!1;const y=[];for(let e=0;e<t.length;++e){const a=t[e];let l=null;if(o.isNode(a))!m&&a.spaceBefore&&y.push(""),u(r,y,a.commentBefore,m),a.comment&&(l=a.comment);else if(o.isPair(a)){const e=o.isNode(a.key)?a.key:null;e&&(!m&&e.spaceBefore&&y.push(""),u(r,y,e.commentBefore,m))}m=!1;let f=s.stringify(a,p,(()=>l=null),(()=>m=!0));l&&(f+=i.lineComment(f,c,h(l))),m&&l&&(m=!1),y.push(n+f)}let g;if(0===y.length)g=a.start+a.end;else{g=y[0];for(let e=1;e<y.length;++e){const t=y[e];g+=t?`\n${d}${t}`:"\n"}}return e?(g+="\n"+i.indentComment(h(e),d),f&&f()):m&&l&&l(),g}function c({comment:e,items:t},r,{flowChars:a,itemIndent:c,onComment:l}){const{indent:f,indentStep:d,flowCollectionPadding:h,options:{commentString:p}}=r;c+=d;const m=Object.assign({},r,{indent:c,inFlow:!0,type:null});let y=!1,g=0;const v=[];for(let e=0;e<t.length;++e){const n=t[e];let a=null;if(o.isNode(n))n.spaceBefore&&v.push(""),u(r,v,n.commentBefore,!1),n.comment&&(a=n.comment);else if(o.isPair(n)){const e=o.isNode(n.key)?n.key:null;e&&(e.spaceBefore&&v.push(""),u(r,v,e.commentBefore,!1),e.comment&&(y=!0));const t=o.isNode(n.value)?n.value:null;t?(t.comment&&(a=t.comment),t.commentBefore&&(y=!0)):null==n.value&&e&&e.comment&&(a=e.comment)}a&&(y=!0);let l=s.stringify(n,m,(()=>a=null));e<t.length-1&&(l+=","),a&&(l+=i.lineComment(l,c,p(a))),!y&&(v.length>g||l.includes("\n"))&&(y=!0),v.push(l),g=v.length}let b;const{start:_,end:w}=a;if(0===v.length)b=_+w;else if(y||(y=v.reduce(((e,t)=>e+t.length+2),2)>n.Collection.maxFlowStringSingleLineLength),y){b=_;for(const e of v)b+=e?`\n${d}${f}${e}`:"\n";b+=`\n${f}${w}`}else b=`${_}${h}${v.join(" ")}${h}${w}`;return e&&(b+=i.lineComment(b,p(e),f),l&&l()),b}function u({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const o=i.indentComment(t(n),e);r.push(o.trimStart())}}t.stringifyCollection=function(e,t,r){return(t.inFlow??e.flow?c:a)(e,t,r)}},1705:(e,t)=>{"use strict";function r(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}t.indentComment=r,t.lineComment=(e,t,n)=>e.endsWith("\n")?r(n,t):n.includes("\n")?"\n"+r(n,t):(e.endsWith(" ")?"":" ")+n,t.stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#")},7763:(e,t,r)=>{"use strict";var n=r(7384),o=r(121),s=r(1705);t.stringifyDocument=function(e,t){const r=[];let i=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(r.push(t),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");const a=o.createStringifyContext(e,t),{commentString:c}=a.options;if(e.commentBefore){1!==r.length&&r.unshift("");const t=c(e.commentBefore);r.unshift(s.indentComment(t,""))}let u=!1,l=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(s.indentComment(t,""))}a.forceBlockIndent=!!e.comment,l=e.contents.comment}const t=l?void 0:()=>u=!0;let f=o.stringify(e.contents,a,(()=>l=null),t);l&&(f+=s.lineComment(f,"",c(l))),"|"!==f[0]&&">"!==f[0]||"---"!==r[r.length-1]?r.push(f):r[r.length-1]=`--- ${f}`}else r.push(o.stringify(e.contents,a));if(e.directives?.docEnd)if(e.comment){const t=c(e.comment);t.includes("\n")?(r.push("..."),r.push(s.indentComment(t,""))):r.push(`... ${t}`)}else r.push("...");else{let t=e.comment;t&&u&&(t=t.replace(/^\n+/,"")),t&&(u&&!l||""===r[r.length-1]||r.push(""),r.push(s.indentComment(c(t),"")))}return r.join("\n")+"\n"}},6592:(e,t)=>{"use strict";t.stringifyNumber=function({format:e,minFractionDigits:t,tag:r,value:n}){if("bigint"==typeof n)return String(n);const o="number"==typeof n?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(n);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let r=t-(s.length-e-1);for(;r-- >0;)s+="0"}return s}},4418:(e,t,r)=>{"use strict";var n=r(7384),o=r(5738),s=r(121),i=r(1705);t.stringifyPair=function({key:e,value:t},r,a,c){const{allNullValues:u,doc:l,indent:f,indentStep:d,options:{commentString:h,indentSeq:p,simpleKeys:m}}=r;let y=n.isNode(e)&&e.comment||null;if(m){if(y)throw new Error("With simple keys, key nodes cannot have comments");if(n.isCollection(e))throw new Error("With simple keys, collection cannot be used as a key value")}let g=!m&&(!e||y&&null==t&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===o.Scalar.BLOCK_FOLDED||e.type===o.Scalar.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!g&&(m||!u),indent:f+d});let v,b,_,w=!1,$=!1,S=s.stringify(e,r,(()=>w=!0),(()=>$=!0));if(!g&&!r.inFlow&&S.length>1024){if(m)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(r.inFlow){if(u||null==t)return w&&a&&a(),""===S?"?":g?`? ${S}`:S}else if(u&&!m||null==t&&g)return S=`? ${S}`,y&&!w?S+=i.lineComment(S,r.indent,h(y)):$&&c&&c(),S;w&&(y=null),g?(y&&(S+=i.lineComment(S,r.indent,h(y))),S=`? ${S}\n${f}:`):(S=`${S}:`,y&&(S+=i.lineComment(S,r.indent,h(y)))),n.isNode(t)?(v=!!t.spaceBefore,b=t.commentBefore,_=t.comment):(v=!1,b=null,_=null,t&&"object"==typeof t&&(t=l.createNode(t))),r.implicitKey=!1,g||y||!n.isScalar(t)||(r.indentAtStart=S.length+1),$=!1,p||!(d.length>=2)||r.inFlow||g||!n.isSeq(t)||t.flow||t.tag||t.anchor||(r.indent=r.indent.substring(2));let E=!1;const k=s.stringify(t,r,(()=>E=!0),(()=>$=!0));let P=" ";if(y||v||b){if(P=v?"\n":"",b){const e=h(b);P+=`\n${i.indentComment(e,r.indent)}`}""!==k||r.inFlow?P+=`\n${r.indent}`:"\n"===P&&(P="\n\n")}else if(!g&&n.isCollection(t)){const e=k[0],n=k.indexOf("\n"),o=-1!==n,s=r.inFlow??t.flow??0===t.items.length;if(o||!s){let t=!1;if(o&&("&"===e||"!"===e)){let r=k.indexOf(" ");"&"===e&&-1!==r&&r<n&&"!"===k[r+1]&&(r=k.indexOf(" ",r+1)),(-1===r||n<r)&&(t=!0)}t||(P=`\n${r.indent}`)}}else""!==k&&"\n"!==k[0]||(P="");return S+=P+k,r.inFlow?E&&a&&a():_&&!E?S+=i.lineComment(S,r.indent,h(_)):$&&c&&c(),S}},3955:(e,t,r)=>{"use strict";var n=r(5738),o=r(4168);const s=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t,a=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?" ":"");let u="",l=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(u+=r.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{u+=r.slice(l,e);const t=r.substr(e+2,4);switch(t){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:"00"===t.substr(0,2)?u+="\\x"+t.substr(2):u+=r.substr(e,6)}e+=5,l=e+1}break;case"n":if(n||'"'===r[e+2]||r.length<a)e+=1;else{for(u+=r.slice(l,e)+"\n\n";"\\"===r[e+2]&&"n"===r[e+3]&&'"'!==r[e+4];)u+="\n",e+=2;u+=c," "===r[e+2]&&(u+="\\"),e+=1,l=e+1}break;default:e+=1}return u=l?u+r.slice(l):r,n?u:o.foldFlowLines(u,c,o.FOLD_QUOTED,s(t))}function c(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return a(e,t);const r=t.indent||(i(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${r}`)+"'";return t.implicitKey?n:o.foldFlowLines(n,r,o.FOLD_FLOW,s(t))}function u(e,t){const{singleQuote:r}=t.options;let n;if(!1===r)n=a;else{const t=e.includes('"'),o=e.includes("'");n=t&&!o?c:o&&!t?a:r?c:a}return n(e,t)}function l({comment:e,type:t,value:r},a,c,l){const{blockQuote:f,commentString:d,lineWidth:h}=a.options;if(!f||/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return u(r,a);const p=a.indent||(a.forceBlockIndent||i(r)?" ":""),m="literal"===f||"folded"!==f&&t!==n.Scalar.BLOCK_FOLDED&&(t===n.Scalar.BLOCK_LITERAL||!function(e,t,r){if(!t||t<0)return!1;const n=t-r,o=e.length;if(o<=n)return!1;for(let t=0,r=0;t<o;++t)if("\n"===e[t]){if(t-r>n)return!0;if(r=t+1,o-r<=n)return!1}return!0}(r,h,p.length));if(!r)return m?"|\n":">\n";let y,g;for(g=r.length;g>0;--g){const e=r[g-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let v=r.substring(g);const b=v.indexOf("\n");-1===b?y="-":r===v||b!==v.length-1?(y="+",l&&l()):y="",v&&(r=r.slice(0,-v.length),"\n"===v[v.length-1]&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${p}`));let _,w=!1,$=-1;for(_=0;_<r.length;++_){const e=r[_];if(" "===e)w=!0;else{if("\n"!==e)break;$=_}}let S=r.substring(0,$<_?$+1:_);S&&(r=r.substring(S.length),S=S.replace(/\n+/g,`$&${p}`));let E=(m?"|":">")+(w?p?"2":"1":"")+y;return e&&(E+=" "+d(e.replace(/ ?[\r\n]+/g," ")),c&&c()),m?`${E}\n${p}${S}${r=r.replace(/\n+/g,`$&${p}`)}${v}`:(r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),`${E}\n${p}${o.foldFlowLines(`${S}${r}${v}`,p,o.FOLD_BLOCK,s(a))}`)}t.stringifyString=function(e,t,r,f){const{implicitKey:d,inFlow:h}=t,p="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:m}=e;m!==n.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(p.value)&&(m=n.Scalar.QUOTE_DOUBLE);const y=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return d||h?u(p.value,t):l(p,t,r,f);case n.Scalar.QUOTE_DOUBLE:return a(p.value,t);case n.Scalar.QUOTE_SINGLE:return c(p.value,t);case n.Scalar.PLAIN:return function(e,t,r,a){const{type:c,value:f}=e,{actualString:d,implicitKey:h,indent:p,indentStep:m,inFlow:y}=t;if(h&&/[\n[\]{},]/.test(f)||y&&/[[\]{},]/.test(f))return u(f,t);if(!f||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f))return h||y||!f.includes("\n")?u(f,t):l(e,t,r,a);if(!h&&!y&&c!==n.Scalar.PLAIN&&f.includes("\n"))return l(e,t,r,a);if(i(f)){if(""===p)return t.forceBlockIndent=!0,l(e,t,r,a);if(h&&p===m)return u(f,t)}const g=f.replace(/\n+/g,`$&\n${p}`);if(d){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(g),{compat:r,tags:n}=t.doc.schema;if(n.some(e)||r?.some(e))return u(f,t)}return h?g:o.foldFlowLines(g,p,o.FOLD_FLOW,s(t))}(p,t,r,f);default:return null}};let g=y(m);if(null===g){const{defaultKeyType:e,defaultStringType:r}=t.options,n=d&&e||r;if(g=y(n),null===g)throw new Error(`Unsupported default string type ${n}`)}return g}},9303:(e,t,r)=>{"use strict";var n=r(7384);const o=Symbol("break visit"),s=Symbol("skip children"),i=Symbol("remove node");function a(e,t){const r=f(t);n.isDocument(e)?c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):c(null,e,r,Object.freeze([]))}function c(e,t,r,s){const a=d(e,t,r,s);if(n.isNode(a)||n.isPair(a))return h(e,s,a),c(e,a,r,s);if("symbol"!=typeof a)if(n.isCollection(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){const n=c(e,t.items[e],r,s);if("number"==typeof n)e=n-1;else{if(n===o)return o;n===i&&(t.items.splice(e,1),e-=1)}}}else if(n.isPair(t)){s=Object.freeze(s.concat(t));const e=c("key",t.key,r,s);if(e===o)return o;e===i&&(t.key=null);const n=c("value",t.value,r,s);if(n===o)return o;n===i&&(t.value=null)}return a}async function u(e,t){const r=f(t);n.isDocument(e)?await l(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):await l(null,e,r,Object.freeze([]))}async function l(e,t,r,s){const a=await d(e,t,r,s);if(n.isNode(a)||n.isPair(a))return h(e,s,a),l(e,a,r,s);if("symbol"!=typeof a)if(n.isCollection(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){const n=await l(e,t.items[e],r,s);if("number"==typeof n)e=n-1;else{if(n===o)return o;n===i&&(t.items.splice(e,1),e-=1)}}}else if(n.isPair(t)){s=Object.freeze(s.concat(t));const e=await l("key",t.key,r,s);if(e===o)return o;e===i&&(t.key=null);const n=await l("value",t.value,r,s);if(n===o)return o;n===i&&(t.value=null)}return a}function f(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function d(e,t,r,o){return"function"==typeof r?r(e,t,o):n.isMap(t)?r.Map?.(e,t,o):n.isSeq(t)?r.Seq?.(e,t,o):n.isPair(t)?r.Pair?.(e,t,o):n.isScalar(t)?r.Scalar?.(e,t,o):n.isAlias(t)?r.Alias?.(e,t,o):void 0}function h(e,t,r){const o=t[t.length-1];if(n.isCollection(o))o.items[e]=r;else if(n.isPair(o))"key"===e?o.key=r:o.value=r;else{if(!n.isDocument(o)){const e=n.isAlias(o)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}o.contents=r}}a.BREAK=o,a.SKIP=s,a.REMOVE=i,u.BREAK=o,u.SKIP=s,u.REMOVE=i,t.visit=a,t.visitAsync=u},6623:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},3864: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}')}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{configmap:()=>f,generate:()=>Re,utils:()=>e,validators:()=>t});var e={};r.r(e),r.d(e,{copy:()=>Se,list:()=>ke,load:()=>xe,loadAll:()=>Ne,merge:()=>je});var t={};r.r(t),r.d(t,{appshell_config:()=>Be,appshell_manifest:()=>De});var o=r(6635);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 a=/^(\${.*})/,c=/[^\w @]/g,u=function(e){var t;return null===(t=e.split(a).find((function(e){return e.match(a)})))||void 0===t?void 0:t.replace(c,"")},l=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.values)(t).reduce((function(t,r){if("string"==typeof r){var n=u(r);return n?(0,o.set)(t,n,process.env[n]):t}return"object"===i(r)?e(r,t):t}),r)};const f={apply:function e(t,r){return(0,o.entries)(t).forEach((function(n){var a,c,l=(c=2,function(e){if(Array.isArray(e))return e}(a=n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,s,i,a=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=s.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}(a,c)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(a,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=l[0],d=l[1];if("string"==typeof d){var h=u(d);if(h){var p=r[h];p||console.log("warning: value for ".concat(h," is ").concat(p)),(0,o.set)(t,f,d.replace("${".concat(h,"}"),r[h]))}}else"object"===i(d)&&e(d,r)})),t},create:function(e){return l(e)}},d=require("fs");var h=r.n(d);const p=Symbol.for("__strategy__"),m=Symbol.for("__mappings__"),y=Symbol.for("__metadata_map__"),g=Symbol.for("__metadata_object_map__"),v=Symbol.for("__error_handler__"),b=Symbol.for("__naming_conventions__"),_=Symbol.for("__recursive_depth__"),w=Symbol.for("__recursive_count__"),$=Symbol.for("__profile_configuration_context__"),S=Symbol.for("nodejs.util.inspect.custom");function E(e){return e[v]}function k(e){return e[m]}function P(e){return e[y]}function O(e){return e[g]}function N(e){return e[_]}function x(e){return e[p]}function A(e){let t=e.toString();return e.name&&(t=e.name),t}function j(e,t=[]){if(!t.length)return;let r;const n=t.length;for(r=0;r<n&&null!=e;r++)e=e[t[r]];return r&&r==n?e:void 0}function C(e,t,r,n=!1){var o;const s="string"==typeof t?Symbol.for(t):t,i="string"==typeof r?Symbol.for(r):r,a=null===(o=k(e).get(s))||void 0===o?void 0:o.get(i);if(null==a&&!n){const n=E(e),o=`Mapping is not found for ${String(t)} and ${String(r)}`;throw n.handle(o),new Error(o)}return a}function T(e){return Object.getPrototypeOf(e)===Date||e===Date}function I(e){return Array.isArray(e)?!e.length:"object"!=typeof e&&"function"!=typeof e?!e:!Object.keys(e).length}function M(e,t){return e.length===t.length&&e.every(((e,r)=>t[r]===e))}function D(e){if(null==e)return!0;const t=Object.getPrototypeOf(e);return t===String||t===Number||t===Boolean||e===String||e===Number||e===Boolean}function L(e,t,r){const{decomposedPath:n,base:o}=q(t);return void 0===o?e:(F(e,o),r=n.length<=1?r:L(e[o],n.slice(1),r),Object.assign(e,{[o]:r}))}function R(e,t,r){const{decomposedPath:n,base:o}=q(t);void 0!==o&&(F(e,o),n.length<=1?e[o]=r:R(e[o],n.slice(1),r))}function q(e){if(e.length<1)return{base:"",decomposedPath:[]};const t=e;return{base:e[0],decomposedPath:t}}function F(e,t){e.hasOwnProperty(t)||(e[t]={})}function U(e,t,r,n,o,s,i,a){let c;const u=e[0],l=e[1],f=!(D(i)||D(a)||T(i)||T(a));switch(u){case 1:case 5:c=l(t);break;case 3:c=l();break;case 4:c=l(t,s,o?{extraArgs:()=>o}:void 0);break;case 2:case 7:case 8:c=l(t,n),f&&null!=c&&(c=Array.isArray(c)?s.mapArray(c,i,a):s.map(c,i,a));break;case 9:c=l(t,o||{});break;case 10:c=U(l(t),t,r,n,o,s,i,a)}return c}function B(e,t){return r=>{t&&(t=L(t,e,r))}}function K(e,t,r,n=!1){return W({mapping:e,sourceObject:t,options:r,setMemberFn:B,isMapArray:n})}function V(e){return t=>r=>{void 0!==r&&R(e,t,r)}}function z(e){return t=>j(e,t)}function J(e,t,r,n,o=!1){W({sourceObject:t,mapping:e,setMemberFn:V(r),getMemberFn:z(r),options:n,isMapArray:o})}function W({mapping:e,sourceObject:t,options:r,setMemberFn:n,getMemberFn:o,isMapArray:s=!1}){const[[i,a],[,c],u,,l,f,,[d,h]=[]]=e,{beforeMap:p,afterMap:m,destinationConstructor:y=f,extraArgs:g}=null!=r?r:{},v=E(l),b=P(l),_=y(t,a),w=null==g?void 0:g(e,_),$=[];if(!s){const e=null!=p?p:d;e&&e(t,_,w)}for(let e=0,r=u.length;e<r;e++){const[r,[,[s,[i,c]=[]]],[f,d]=[]]=u[e];let h=!(D(f)||T(f)||D(d)||T(d)||d!==f);h&&(h=!C(l,d,f,!0));const p=e=>{var t,o;try{return n(r,_)(e())}catch(e){const n=`\nError at "${r}" on ${(null===(o=null===(t=a.prototype)||void 0===t?void 0:t.constructor)||void 0===o?void 0:o.name)||a.toString()} (${JSON.stringify(_)})\n---------------------------------------------------------------------\nOriginal error: ${e}`;throw v.handle(n),new Error(n)}};if($.push(r[0]),!i||i(t))if(6!==s[0])p((()=>U(s,t,_,r,w,l,d,f)));else{const e=b.get(a),n=e&&null===e.find((e=>M(e[0],r))),i=s[1](t),c=s[2];if(null==i||i instanceof Date||"File"===Object.prototype.toString.call(i).slice(8,-1)||n||h||c){p((()=>i));continue}if(Array.isArray(i)){const[e]=i;if("object"!=typeof e||e instanceof Date||"File"===Object.prototype.toString.call(e).slice(8,-1)){p((()=>i.slice()));continue}if(I(e)){p((()=>[]));continue}if(D(f))continue;p((()=>i.map((e=>K(C(l,d,f),e,{extraArgs:g})))));continue}if("object"==typeof i){const e=C(l,d,f);if(o){const t=o(r);void 0!==t&&W({sourceObject:i,mapping:e,options:{extraArgs:g},setMemberFn:V(t),getMemberFn:z(t)});continue}p((()=>W({mapping:e,sourceObject:i,options:{extraArgs:g},setMemberFn:B})));continue}p((()=>i))}else p((()=>c))}if(!s){const e=null!=m?m:h;e&&e(t,_,w)}return function(e,t,r,n,o,s){const i=Object.keys(t).reduce(((n,o)=>{var s;const i=o in e,a=r.some((e=>e===o)),c=!0===(null===(s=Object.getOwnPropertyDescriptor(t,o))||void 0===s?void 0:s.writable);return a||i||!c||void 0!==e[o]||n.push(o),n}),[]),a=A(n),c=A(o);if(i.length){const e=`${a} -> ${c}`;s.handle(`\nUnmapped properties for ${e}:\n-------------------\n${i.join(",\n")}\n`)}}(_,c,$,i,a,v),_}class G{static configure(e={}){this.configured||(this.configured=!0,Object.entries(e).forEach((([e,t])=>{void 0!==t&&(this[e]=t)})))}static log(e){console.log.bind(console,this.AUTOMAPPER_PREFIX,e)}static warn(e){console.warn.bind(console,this.AUTOMAPPER_PREFIX,e)}static error(e){console.error.bind(console,this.AUTOMAPPER_PREFIX,e)}static info(e){console.info.bind(console,this.AUTOMAPPER_PREFIX,e)}}G.AUTOMAPPER_PREFIX="[AutoMapper]: ",G.configured=!1;const Y=Symbol("__recursive_data__");function H(e,t,r){const n=e.get(t);return n?function(e,t){let r=e;for(const e of t)if(r=r.get(e),!r)return;return r.get(Y)}(n,r):void 0}function Q(e,t,r,n){if(!e.has(t))return void e.set(t,X(new Map,r,n));const o=e.get(t);(function(e,t){let r=e;for(const e of t){const t=r.get(e);if(!t)return!1;r=t}return r.has(Y)})(o,r)||X(o,r,n)}function X(e,t,r){let n=e;for(const e of t){let t=n.get(e);t||(t=new Map,n.set(e,t)),n=t}return n.set(Y,r),e}const Z={applyMetadata:function(e){const t=e.mapper,r=P(t),n=O(t),o=function(e){return e[w]}(t),s=N(t);return function e(t,i,a=!0,c=!1){var u;const l=r.get(t),f={};if(I(l)||!l)return f;for(let r=0,u=l.length;r<u;r++){const u=l[r][0],d=l[r][1],h=l[r][2];if(l[r][3]&&1===i)continue;const p=d();if(h){R(f,u,[]);continue}if(D(p)||null===p){R(f,u,void 0);continue}if(T(p)){R(f,u,new Date);continue}const m=H(s,t,u),y=H(o,t,u)||0;if(0===m){R(f,u,{});continue}if(m===y){!a&&c||Q(o,t,u,0),R(f,u,{});continue}Q(o,t,u,y+1);const g=n.get(p);R(f,u,(null==g?void 0:g[i])||e(p,i,!1,p===t))}return!a&&c||null===(u=o.get(t))||void 0===u||u.clear(),f}},preMap:e=>e,postMap:(e,t)=>t};function ee(e){return[6,t=>j(t,e)]}function te(e,[t,r]){const n=e.map((e=>e.split(r.splittingExpression).filter(Boolean))).filter((e=>e.length>0));return n.length?n.map((e=>t.transformPropertyName(e))):e}function re(e,t,r){const[n]=r,o=[].concat(...t.map((e=>e.split(n.splittingExpression).filter(Boolean)))),[s,...i]=o.slice(0,o.length-1);let a=s,c=0,u=ne(e,a);if(!u)for(let t=0,r=i.length;t<r;t++)if(a=n.transformPropertyName([a,i[t]]),ne(e,a)){c=t+1,u=!0;break}if(!u)return t;const l=o.slice(c+1,o.length+1),f=n.transformPropertyName(l);return l.length>1&&!ne(e[a],f)&&ne(e[a],n.transformPropertyName([l[0]]))?[a,...re(e[a],te([f],r),r)]:[a,n.transformPropertyName(o.slice(c+1,o.length+1))]}function ne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function oe(e,t){if(e.length!==t.length)return!1;for(let r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}const se=["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"];function ie(e,t=[],r=[]){const n=r;let o=!1;const s=Array.from(new Set([...Object.getOwnPropertyNames(e)].filter((e=>!se.includes(e)))));for(let r=0,i=s.length;r<i;r++){const i=s[r],a=[...t,i],c=e[i];if("function"!=typeof c&&(n.push(a),"object"==typeof c)){const e=Array.isArray(c)?c:[c];for(const t of e){const e=ie(t,a);e&&(o=!0,n.push(...e))}}}return o?function(e){const t=[];for(let r=0,n=e.length;r<n;r++){const n=e[r];t.some((e=>oe(e,n)))||t.push(n)}return t}(n):n}function ae(e,t,r,n=[]){const o=x(e),s=o.applyMetadata.bind(o),i=o.destinationConstructor.bind(o),a=O(e),c=a.get(t),u=a.get(r),l=(null==u?void 0:u[1])||s(r,1);u?u[1]=l:a.set(r,[void 0,l]);const f=(null==c?void 0:c[0])||s(t,0);c?c[0]=f:a.set(t,[f]);const d=[[t,r],[f,l],[],[],e,i];d[8]=function(e){const t=e[b];if(t)return function(e){return"source"in e&&"destination"in e?[e.source,e.destination]:[e,e]}(t)}(e);for(let e=0,t=n.length;e<t;e++)n[e](d);const h=ie(l),p=d[2],m=d[3],y=m.length>0,g=d[8],v=P(e),_=v.get(r)||[],w=v.get(t)||[];for(let e=0,t=h.length;e<t;e++){const t=h[e];if(y&&m.some((e=>M(e[0],t))))continue;const r=_.find((e=>M(e[0],t)));let n=t;if(g&&(n=re(f,te(t,g),g)),!(n[0]in f))continue;const o=w.find((e=>M(e[0],n)));let s;if(!o&&!r)continue;o&&r&&(s=[r[1](),o[1]()]);const i=[ee(n)];if(s){let e;const t=o[2],n=r[2],a=d[6];if(a){const[r,o]=a.get(s[1])||[],[i,c]=(t?null==o?void 0:o.get(s[0]):null==r?void 0:r.get(s[0]))||[];e=n?c:i}if(e){const t=i[0][1];i[0][1]=r=>e(t(r)),i[0][2]=!0}}p.push([t,[t,i],s])}for(const e of m)p.push(e);return d}const ce=()=>{},ue=function e(t,r=[]){return new Proxy(t,{get(t,n){const o=r.slice();return o.push(n),e(ce,o)},apply:()=>r})}(ce);function le(e,...t){let[r,n]=t;const o=function(e){const t=e(ue);if("function"!=typeof t)return null;const r=t();return 0===r.length||r.some((e=>"string"!=typeof e))?null:r}(e)||[];null==n&&(n=r,r=void 0);const s=[o,[n,r]];return e=>{const[t,r]=e[0],n=e[4],i=e[8],[a]=e[1],c=P(n),u=c.get(r)||[],l=c.get(t)||[];let f;const d=u.find((e=>M(e[0],o)));let h=o;if(i&&(h=re(a,te(o,i),i)),!(h[0]in a))return void e[3].push([o,s,f]);const p=l.find((e=>M(e[0],h)));p&&d&&(f=[d[1](),p[1]()]),e[3].push([o,s,f])}}function fe(e){return"resolve"in e}class de{static reset(){this.metadataStorage=new Map}static create(e,t={}){var r;const n="string"==typeof e?Symbol.for(e):e,o=Object.entries(t);if(o.length)for(let e=0,t=o.length;e<t;e++){const[t,s]=o[e],i=this.normalizePojoMetadata(s);this.metadataStorage.has(n)||this.metadataStorage.set(n,[]),null===(r=this.metadataStorage.get(n))||void 0===r||r.push([t,i])}}static retrieve(e){const t=this.metadataStorage.get(e);return t?t.map((([e,{type:t,depth:r}])=>{const n=t(),o=Array.isArray(n);return[e,{type:o?()=>n[0]:()=>n,isArray:o,depth:r}]})):[]}static normalizePojoMetadata(e){if("string"==typeof e||"symbol"==typeof e||"function"==typeof e||Array.isArray(e))return{type:()=>this.toSymbol(e),depth:1};const t=e;return t.type=this.toSymbol(t.type),{type:()=>t.type,depth:t.depth}}static toSymbol(e){return"string"==typeof e?Symbol.for(e):Array.isArray(e)&&"string"==typeof e[0]?Symbol.for(e[0]):e}}function he(e){return he="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},he(e)}function pe(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 me(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==he(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==he(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===he(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}de.metadataStorage=new Map;var ge,ve,be=function({strategyInitializer:e,errorHandler:t,namingConventions:r}){let n,o,s,i,a,c,u;function l(e,t,r){if(t&&r)return{destinationIdentifier:t,mapOptions:r};let n=e;if(t&&!r){const e=typeof t;"string"===e||"function"===e?n=t:r=t}return{destinationIdentifier:n,mapOptions:r}}return new Proxy({[S]:()=>"\nMapper {} is an empty Object as a Proxy. The following methods are available to use with a Mapper:\n- Mapper#map(Array)(Async), Mapper#mutate(Array)(Async)\n- createMap()\n- addProfile()\n- getMapping()\n- getMappings()\n "},{get:(f,d,h)=>d===p?(n||(n=e(h)),n):d===$?(u||(u=new Set),u):d===m?(o||(o=new Map),o):d===y?(s||(s=new Map),s):d===g?(i||(i=new Map),i):d===v?(t||(t={handle:G.error?G.error.bind(G):()=>{}}),t):d===b?r:d===_?(a||(a=new Map),a):d===w?(c||(c=new Map),c):"dispose"===d?()=>{null==o||o.clear(),null==i||i.clear(),null==a||a.clear(),null==c||c.clear(),null==u||u.clear()}:"map"===d?(e,t,r,o)=>{if(null==e)return e;const{destinationIdentifier:s,mapOptions:i}=l(t,r,o),a=C(h,t,s),c=K(a,e=n.preMap(e,a),i||{});return n.postMap(e,c,a)}:"mapAsync"===d?(e,t,r,n)=>{const o=h.map(e,t,r,n);return new Promise((e=>{setTimeout(e,0,o)}))}:"mapArray"===d?(e,t,r,o)=>{if(!e.length)return[];const{destinationIdentifier:s,mapOptions:i}=l(t,r,o),a=C(h,t,s),{beforeMap:c,afterMap:u,extraArgs:f}=i||{};c&&c(e,[]);const d=[];for(let t=0,r=e.length;t<r;t++){let r=e[t];r=n.preMap(r,a);const o=K(a,r,{extraArgs:f},!0);d.push(n.postMap(r,o,a))}return u&&u(e,d),d}:"mapArrayAsync"===d?(e,t,r,n)=>{const o=h.mapArray(e,t,r,n);return new Promise((e=>{setTimeout(e,0,o)}))}:"mutate"===d?(e,t,r,o,s)=>{if(null==e)return;const{destinationIdentifier:i,mapOptions:a}=l(r,o,s),c=C(h,r,i);J(c,e=n.preMap(e,c),t,a||{}),n.postMap(e,t,c)}:"mutateAsync"===d?(e,t,r,n,o)=>new Promise((s=>{h.mutate(e,t,r,n,o),setTimeout(s,0)})):"mutateArray"===d?(e,t,r,o,s)=>{if(!e.length)return;const{destinationIdentifier:i,mapOptions:a}=l(r,o,s),c=C(h,r,i),{beforeMap:u,afterMap:f,extraArgs:d}=a||{};u&&u(e,t);for(let r=0,o=e.length;r<o;r++){let o=e[r];o=n.preMap(o,c),J(c,o,t[r]||{},{extraArgs:d},!0),n.postMap(o,t[r],c)}f&&f(e,t)}:"mutateArrayAsync"===d?(e,t,r,n,o)=>new Promise((s=>{h.mutateArray(e,t,r,n,o),setTimeout(s,0)})):Reflect.get(f,d,h)})}({strategyInitializer:function(e={}){const{destinationConstructor:t=(()=>({})),applyMetadata:r,postMap:n,preMap:o}=Object.assign(Object.assign({},Z),e);return e=>({destinationConstructor:t,mapper:e,get applyMetadata(){return r(this)},retrieveMetadata(...e){const t=new Map;for(let r=0,n=e.length;r<n;r++){const n=e[r];t.set(n,de.retrieve(n))}return t},preMap:o,postMap:n})}()});de.create("AppshellConfig",{}),de.create("AppshellManifest",{}),function(e,t,...r){var n;const o="string"==typeof t?Symbol.for(t):t;let s=o;const[i,...a]=r||[];i&&("string"==typeof i?s=Symbol.for(i):"function"==typeof i&&void 0!==i.prototype?s=i:(a||[]).push(i));const c=k(e);let u=null===(n=c.get(o))||void 0===n?void 0:n.get(s);u?E(e).handle(`Mapping for source ${String(t)} and destination ${String(i)} already exists`):(x(e).retrieveMetadata(o,s).forEach(((t,r)=>{!function(e,t,r){if(!function(e,t=!1){return t?void 0!==e:null!=e}(r))return;const n=P(e);if(!n.has(t))for(const[o,{isGetterOnly:s,type:i,depth:a,isArray:c}]of r)n.set(t,[...n.get(t)||[],[[o],i,c,s]]),null!=a&&Q(N(e),t,[o],a)}(e,r,t)})),u=ae(e,o,s,(a||[]).concat(...function(e){return e[$]}(e).values()).filter((e=>null!=e))),c.has(o)?c.get(o).set(s,u):c.set(o,new Map([[s,u]])))}(be,"AppshellConfig","AppshellManifest",le((function(e){return e.remotes}),fe(ve=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(r),!0).forEach((function(t){me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},function(e){return(0,o.entries)(e.remotes).reduce((function(t,r){var n,o,s=(o=2,function(e){if(Array.isArray(e))return e}(n=r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,s,i,a=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=s.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}(n,o)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ye(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[0],a=s[1];return t[i]=function(e,t,r){var n=t.replace(/\/.+/,""),o=t.replace(n,".");return{id:r.id,url:r.url,scope:n,module:o,shareScope:e.module.shareScope,metadata:r.metadata}}(e,i,a),t}),{})}(e))})?[9,ve.resolve.bind(ve)]:[9,ve]),le((function(e){return e.modules}),fe(ge=function(e){return me({},e.module.name||"unknown",e.module)})?[1,ge.resolve.bind(ge)]:[1,ge]));var _e=function(e,t){var r=be.map(e,"AppshellConfig","AppshellManifest");return f.apply(r,t)};const we=require("path");var $e=r.n(we);const Se=function(e){h().existsSync(e.from)&&(h().existsSync($e().dirname(e.to))||h().mkdirSync($e().dirname(e.to)),h().copyFileSync(e.from,e.to))};var Ee=function e(t,r,n,o){var s=h().readdirSync(t);return n>0&&s.forEach((function(s){h().statSync($e().join(t,s)).isDirectory()?r=e($e().join(t,s),r,n-1,o):o&&!$e().basename(s).match(o)||r.push($e().join(t,s))})),r};const ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/.*/;if(!h().existsSync(e))return[];var n=r instanceof RegExp?r:new RegExp("^(".concat(r,")$"));return Ee(e,[],t,n)};var Pe=r(4667),Oe=function(e){if(!h().existsSync(e))throw new Error("Config file does not exist, using default config. __dirname: ".concat(__dirname," Path: ").concat(e));var t=h().readFileSync(e).toString();return Pe.parse(t)},Ne=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.map((function(e){return Oe(e)}))};const xe=Oe;var Ae=function(e,t){if((0,o.isArray)(e))return e.concat(t)};const je=function(e){if(!e)throw new Error("No validator provided");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r.forEach((function(t){return e.validate(t)})),e.validate.apply(e,r);var s=r.reduce((function(e,t){return(0,o.mergeWith)(e,t,Ae)}),{});return e.validate(s),s};var Ce=r(1192);const Te=JSON.parse('{"title":"AppshellManifest","type":"object","properties":{"remotes":{"description":"Collection of remote entrypoints","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/definitions/Entrypoint"}]}},"modules":{"description":"Module federation configuration","type":"object"}},"required":["remotes","modules"],"definitions":{"Entrypoint":{"title":"Module entrypoint","type":"object","properties":{"id":{"description":"ID of the remote app","type":"string"},"url":{"description":"Url of the remote app","type":"string"},"scope":{"description":"Scope key of the remote app","type":"string"},"module":{"description":"Module key of the remote app","type":"string"},"shareScope":{"description":"Share scope","type":"string"},"metadata":{"description":"Metadata associated with the remote app","type":"object","additionalProperties":true}},"required":["url"],"additionalProperties":false}},"additionalProperties":false}');var Ie=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.flatMap((function(e){return(0,o.values)(e.remotes).map((function(e){return e.id}))}));return(0,o.uniq)(n).length!==n.length},Me=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.flatMap((function(e){return(0,o.keys)(e.remotes)}));return(0,o.uniq)(n).length!==n.length};const De={validate:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.forEach((function(e){return(0,Ce.validate)(Te,e)})),Ie.apply(void 0,t))throw new Error("Multiple remotes with the same ID");if(Me.apply(void 0,t))throw new Error("Multiple remotes with the same key")}};function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Re=function(e){var t,r=ke(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1).map((function(e){if(!h().existsSync(e))throw new Error("Configuration not found at ".concat(e));var t=JSON.parse(h().readFileSync(e).toString()),r=f.create(t);return _e(t,r)}));return je.apply(void 0,[De].concat(function(e){if(Array.isArray(e))return Le(e)}(t=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Le(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))},qe=JSON.parse('{"title":"AppshellConfig","type":"object","properties":{"name":{"description":"Name of the module","type":"string"},"remotes":{"description":"Collection of remote entrypoints","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/definitions/Entrypoint"}]}},"module":{"description":"Module federation configuration","type":"object"}},"definitions":{"Entrypoint":{"title":"Module entrypoint","type":"object","properties":{"id":{"description":"ID of the remote app","type":"string"},"url":{"description":"Url of the remote app","type":"string"},"metadata":{"description":"Metadata associated with the remote app","type":"object","additionalProperties":true}},"required":["url"],"additionalProperties":false}},"additionalProperties":false}');var Fe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(0,o.compact)(t.flatMap((function(e){return(0,o.values)(e.remotes)})));return(0,o.uniqBy)(n,(function(e){return e.id})).length!==n.length},Ue=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.flatMap((function(e){return(0,o.keys)(e.remotes)}));return(0,o.uniq)(n).length!==n.length};const Be={validate:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.forEach((function(e){return(0,Ce.validate)(qe,e)})),Fe.apply(void 0,t))throw new Error("Multiple remotes with the same ID");if(Ue.apply(void 0,t))throw new Error("Multiple remotes with the same key")}}})(),n})()));