this.length){throw new RangeError("Offset plus length of array is out of range")}f=this.byteOffset+o*this.BYTES_PER_ELEMENT;p=n.length*this.BYTES_PER_ELEMENT;if(n.buffer===this.buffer){h=[];for(l=0,u=n.byteOffset;lthis.length){throw new RangeError("Offset plus length of array is out of range")}for(l=0;ln?n:e}e=s.ToInt32(e);t=s.ToInt32(t);if(arguments.length<1){e=0}if(arguments.length<2){t=this.length}if(e<0){e=this.length+e}if(t<0){t=this.length+t}e=clamp(e,0,this.length);t=clamp(t,0,this.length);var n=t-e;if(n<0){n=0}return new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)};return l}var o=makeConstructor(1,packI8,unpackI8);var a=makeConstructor(1,packU8,unpackU8);var l=makeConstructor(1,packU8Clamped,unpackU8);var u=makeConstructor(2,packI16,unpackI16);var c=makeConstructor(2,packU16,unpackU16);var f=makeConstructor(4,packI32,unpackI32);var p=makeConstructor(4,packU32,unpackU32);var h=makeConstructor(4,packF32,unpackF32);var d=makeConstructor(8,packF64,unpackF64);t.iq=t.iq||o;t.U2=t.U2||a;t.we=t.we||l;t.M2=t.M2||u;t.HA=t.HA||c;t.ZV=t.ZV||f;t._R=t._R||p;t.$L=t.$L||h;t.I=t.I||d})();(function(){function r(e,t){return s.IsCallable(e.get)?e.get(t):e[t]}var e=function(){var e=new t.HA([4660]),n=new t.U2(e.buffer);return r(n,0)===18}();var n=function DataView(e,n,i){if(arguments.length===0){e=new t.eT(0)}else if(!(e instanceof t.eT||s.Class(e)==="ArrayBuffer")){throw new TypeError("TypeError")}this.buffer=e||new t.eT(0);this.byteOffset=s.ToUint32(n);if(this.byteOffset>this.buffer.byteLength){throw new RangeError("byteOffset out of range")}if(arguments.length<3){this.byteLength=this.buffer.byteLength-this.byteOffset}else{this.byteLength=s.ToUint32(i)}if(this.byteOffset+this.byteLength>this.buffer.byteLength){throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}configureProperties(this)};function makeGetter(n){return function(i,o){i=s.ToUint32(i);if(i+n.BYTES_PER_ELEMENT>this.byteLength){throw new RangeError("Array index out of range")}i+=this.byteOffset;var a=new t.U2(this.buffer,i,n.BYTES_PER_ELEMENT),l=[],u;for(u=0;uthis.byteLength){throw new RangeError("Array index out of range")}var l=new n([o]),u=new t.U2(l.buffer),c=[],f,p;for(f=0;f{e.exports=n(1669).deprecate},2524:(e,t,n)=>{var i=n(1620);var s=n(2372);var o="license should be "+'a valid SPDX license expression (without "LicenseRef"), '+'"UNLICENSED", or '+'"SEE LICENSE IN "';var a=/^SEE LICEN[CS]E IN (.+)$/;function startsWith(e,t){return t.slice(0,e.length)===e}function usesLicenseRef(e){if(e.hasOwnProperty("license")){var t=e.license;return startsWith("LicenseRef",t)||startsWith("DocumentRef",t)}else{return usesLicenseRef(e.left)||usesLicenseRef(e.right)}}e.exports=function(e){var t;try{t=i(e)}catch(t){var n;if(e==="UNLICENSED"||e==="UNLICENCED"){return{validForOldPackages:true,validForNewPackages:true,unlicensed:true}}else if(n=a.exec(e)){return{validForOldPackages:true,validForNewPackages:true,inFile:n[1]}}else{var l={validForOldPackages:false,validForNewPackages:false,warnings:[o]};if(e.trim().length!==0){var u=s(e);if(u){l.warnings.push('license is similar to the valid expression "'+u+'"')}}return l}}if(usesLicenseRef(t)){return{validForNewPackages:false,validForOldPackages:false,spdx:true,warnings:[o]}}else{return{validForNewPackages:true,validForOldPackages:true,spdx:true}}}},4091:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},665:(e,t,n)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var n=0,i=arguments.length;n1){n=t}else if(this.head){i=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=0;i!==null;s++){n=e(n,i.value,s);i=i.next}return n};Yallist.prototype.reduceReverse=function(e,t){var n;var i=this.tail;if(arguments.length>1){n=t}else if(this.tail){i=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=this.length-1;i!==null;s--){n=e(n,i.value,s);i=i.prev}return n};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,n=this.head;n!==null;t++){e[t]=n.value;n=n.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,n=this.tail;n!==null;t++){e[t]=n.value;n=n.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var n=new Yallist;if(tthis.length){t=this.length}for(var i=0,s=this.head;s!==null&&ithis.length){t=this.length}for(var i=this.length,s=this.tail;s!==null&&i>t;i--){s=s.prev}for(;s!==null&&i>e;i--,s=s.prev){n.push(s.value)}return n};Yallist.prototype.splice=function(e,t,...n){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var i=0,s=this.head;s!==null&&i{"use strict";var i=n(5215);var s=n(4227);var o=n(8021);const a={anchorPrefix:"a",customTags:null,indent:2,indentSeq:true,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};const l={get binary(){return s.binaryOptions},set binary(e){Object.assign(s.binaryOptions,e)},get bool(){return s.boolOptions},set bool(e){Object.assign(s.boolOptions,e)},get int(){return s.intOptions},set int(e){Object.assign(s.intOptions,e)},get null(){return s.nullOptions},set null(e){Object.assign(s.nullOptions,e)},get str(){return s.strOptions},set str(e){Object.assign(s.strOptions,e)}};const u={"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:i.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultTagPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultTagPrefix}]}};function stringifyTag(e,t){if((e.version||e.options.version)==="1.0"){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>t.indexOf(e.prefix)===0));if(!n){const i=e.getDefaults().tagPrefixes;n=i&&i.find((e=>t.indexOf(e.prefix)===0))}if(!n)return t[0]==="!"?t:`!<${t}>`;const i=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+i}function getTagObject(e,t){if(t instanceof s.Alias)return s.Alias;if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let n,i;if(t instanceof s.Scalar){i=t.value;const s=e.filter((e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class));n=s.find((e=>e.format===t.format))||s.find((e=>!e.format))}else{i=t;n=e.find((e=>e.nodeClass&&i instanceof e.nodeClass))}if(!n){const e=i&&i.constructor?i.constructor.name:typeof i;throw new Error(`Tag not resolved for ${e} value`)}return n}function stringifyProps(e,t,{anchors:n,doc:i}){const s=[];const o=i.anchors.getName(e);if(o){n[o]=e;s.push(`&${o}`)}if(e.tag){s.push(stringifyTag(i,e.tag))}else if(!t.default){s.push(stringifyTag(i,t.tag))}return s.join(" ")}function stringify(e,t,n,i){const{anchors:o,schema:a}=t.doc;let l;if(!(e instanceof s.Node)){const t={aliasNodes:[],onTagObj:e=>l=e,prevObjects:new Map};e=a.createNode(e,true,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);if(!t){t=o.newName();o.map[t]=e.source}}}if(e instanceof s.Pair)return e.toString(t,n,i);if(!l)l=getTagObject(a.tags,e);const u=stringifyProps(e,l,t);if(u.length>0)t.indentAtStart=(t.indentAtStart||0)+u.length+1;const c=typeof l.stringify==="function"?l.stringify(e,t,n,i):e instanceof s.Scalar?s.stringifyString(e,t,n,i):e.toString(t,n,i);if(!u)return c;return e instanceof s.Scalar||c[0]==="{"||c[0]==="["?`${u} ${c}`:`${u}\n${t.indent}${c}`}class Anchors{static validAnchorNode(e){return e instanceof s.Scalar||e instanceof s.YAMLSeq||e instanceof s.YAMLMap}constructor(e){i._defineProperty(this,"map",Object.create(null));this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new s.Alias(e)}createMergePair(...e){const t=new s.Merge;t.value.items=e.map((e=>{if(e instanceof s.Alias){if(e.source instanceof s.YAMLMap)return e}else if(e instanceof s.YAMLMap){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")}));return t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let n=1;true;++n){const i=`${e}${n}`;if(!t.includes(i))return i}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved}));t.forEach((e=>{e.source=e.source.resolved}));delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:n}=this;const i=e&&Object.keys(n).find((t=>n[t]===e));if(i){if(!t){return i}else if(i!==t){delete n[i];n[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const visit=(e,t)=>{if(e&&typeof e==="object"){const{tag:n}=e;if(e instanceof s.Collection){if(n)t[n]=true;e.items.forEach((e=>visit(e,t)))}else if(e instanceof s.Pair){visit(e.key,t);visit(e.value,t)}else if(e instanceof s.Scalar){if(n)t[n]=true}}return t};const listTagNames=e=>Object.keys(visit(e,{}));function parseContents(e,t){const n={before:[],after:[]};let o=undefined;let a=false;for(const l of t){if(l.valueRange){if(o!==undefined){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new i.YAMLSyntaxError(l,t));break}const t=s.resolveNode(e,l);if(a){t.spaceBefore=true;a=false}o=t}else if(l.comment!==null){const e=o===undefined?n.before:n.after;e.push(l.comment)}else if(l.type===i.Type.BLANK_LINE){a=true;if(o===undefined&&n.before.length>0&&!e.commentBefore){e.commentBefore=n.before.join("\n");n.before=[]}}}e.contents=o||null;if(!o){e.comment=n.before.concat(n.after).join("\n")||null}else{const t=n.before.join("\n");if(t){const e=o instanceof s.Collection&&o.items[0]?o.items[0]:o;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=n.after.join("\n")||null}}function resolveTagDirective({tagPrefixes:e},t){const[n,s]=t.parameters;if(!n||!s){const e="Insufficient parameters given for %TAG directive";throw new i.YAMLSemanticError(t,e)}if(e.some((e=>e.handle===n))){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new i.YAMLSemanticError(t,e)}return{handle:n,prefix:s}}function resolveYamlDirective(e,t){let[n]=t.parameters;if(t.name==="YAML:1.0")n="1.0";if(!n){const e="Insufficient parameters given for %YAML directive";throw new i.YAMLSemanticError(t,e)}if(!u[n]){const s=e.version||e.options.version;const o=`Document will be parsed as YAML ${s} rather than YAML ${n}`;e.warnings.push(new i.YAMLWarning(t,o))}return n}function parseDirectives(e,t,n){const s=[];let o=false;for(const n of t){const{comment:t,name:a}=n;switch(a){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,n))}catch(t){e.errors.push(t)}o=true;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new i.YAMLSemanticError(n,t))}try{e.version=resolveYamlDirective(e,n)}catch(t){e.errors.push(t)}o=true;break;default:if(a){const t=`YAML only supports %TAG and %YAML directives, and not %${a}`;e.warnings.push(new i.YAMLWarning(n,t))}}if(t)s.push(t)}if(n&&!o&&"1.1"===(e.version||n.version||e.options.version)){const copyTagPrefix=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=n.tagPrefixes.map(copyTagPrefix);e.version=n.version}e.commentBefore=s.join("\n")||null}function assertCollection(e){if(e instanceof s.Collection)return true;throw new Error("Expected a YAML collection as document contents")}class Document{constructor(e){this.anchors=new Anchors(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}add(e){assertCollection(this.contents);return this.contents.add(e)}addIn(e,t){assertCollection(this.contents);this.contents.addIn(e,t)}delete(e){assertCollection(this.contents);return this.contents.delete(e)}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}assertCollection(this.contents);return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof s.Collection?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&this.contents instanceof s.Scalar?this.contents.value:this.contents;return this.contents instanceof s.Collection?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof s.Collection?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return this.contents instanceof s.Collection?this.contents.hasIn(e):false}set(e,t){assertCollection(this.contents);this.contents.set(e,t)}setIn(e,t){if(s.isEmptyPath(e))this.contents=t;else{assertCollection(this.contents);this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const n=Object.assign({},this.getDefaults(),this.options);this.schema=new o.Schema(n)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:n=[],contents:s=[],directivesEndMarker:o,error:a,valueRange:l}=e;if(a){if(!a.source)a.source=this;this.errors.push(a)}parseDirectives(this,n,t);if(o)this.directivesEndMarker=true;this.range=l?[l.start,l.end]:null;this.setSchema();this.anchors._cstAliases=[];parseContents(this,s);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof i.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof i.YAMLError)e.makePretty()}return this}listNonDefaultTags(){return listTagNames(this.contents).filter((e=>e.indexOf(o.Schema.defaultPrefix)!==0))}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));if(n)n.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}}toJSON(e,t){const{keepBlobsInJSON:n,mapAsMap:i,maxAliasCount:o}=this.options;const a=n&&(typeof e!=="string"||!(this.contents instanceof s.Scalar));const l={doc:this,indentStep:" ",keep:a,mapAsMap:a&&!!i,maxAliasCount:o,stringify:stringify};const u=Object.keys(this.anchors.map);if(u.length>0)l.anchors=new Map(u.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}])));const c=s.toJSON(this.contents,e,l);if(typeof t==="function"&&l.anchors)for(const{count:e,res:n}of l.anchors.values())t(n,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let n=false;if(this.version){let e="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")e="%YAML:1.0";else if(this.version==="1.1")e="%YAML 1.1"}t.push(e);n=true}const i=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:s})=>{if(i.some((e=>e.indexOf(s)===0))){t.push(`%TAG ${e} ${s}`);n=true}}));if(n||this.directivesEndMarker)t.push("---");if(this.commentBefore){if(n||!this.directivesEndMarker)t.unshift("");t.unshift(this.commentBefore.replace(/^/gm,"#"))}const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:stringify};let a=false;let l=null;if(this.contents){if(this.contents instanceof s.Node){if(this.contents.spaceBefore&&(n||this.directivesEndMarker))t.push("");if(this.contents.commentBefore)t.push(this.contents.commentBefore.replace(/^/gm,"#"));o.forceBlockIndent=!!this.comment;l=this.contents.comment}const e=l?null:()=>a=true;const i=stringify(this.contents,o,(()=>l=null),e);t.push(s.addComment(i,"",l))}else if(this.contents!==undefined){t.push(stringify(this.contents,o))}if(this.comment){if((!a||l)&&t[t.length-1]!=="")t.push("");t.push(this.comment.replace(/^/gm,"#"))}return t.join("\n")+"\n"}}i._defineProperty(Document,"defaults",u);t.Document=Document;t.defaultOptions=a;t.scalarOptions=l},5215:(e,t)=>{"use strict";const n={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};const i={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};const s="tag:yaml.org,2002:";const o={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function findLineStarts(e){const t=[0];let n=e.indexOf("\n");while(n!==-1){n+=1;t.push(n);n=e.indexOf("\n",n)}return t}function getSrcInfo(e){let t,n;if(typeof e==="string"){t=findLineStarts(e);n=e}else{if(Array.isArray(e))e=e[0];if(e&&e.context){if(!e.lineStarts)e.lineStarts=findLineStarts(e.context.src);t=e.lineStarts;n=e.context.src}}return{lineStarts:t,src:n}}function getLinePos(e,t){if(typeof e!=="number"||e<0)return null;const{lineStarts:n,src:i}=getSrcInfo(t);if(!n||!i||e>i.length)return null;for(let t=0;t=1)||e>n.length)return null;const s=n[e-1];let o=n[e];while(o&&o>s&&i[o-1]==="\n")--o;return i.slice(s,o)}function getPrettyContext({start:e,end:t},n,i=80){let s=getLine(e.line,n);if(!s)return null;let{col:o}=e;if(s.length>i){if(o<=i-10){s=s.substr(0,i-1)+"…"}else{const e=Math.round(i/2);if(s.length>o+e)s=s.substr(0,o+e-1)+"…";o-=s.length-i;s="…"+s.substr(1-i)}}let a=1;let l="";if(t){if(t.line===e.line&&o+(t.col-e.col)<=i+1){a=t.col-e.col}else{a=Math.min(s.length+1,i)-o;l="…"}}const u=o>1?" ".repeat(o-1):"";const c="^".repeat(a);return`${s}\n${u}${c}${l}`}class Range{static copy(e){return new Range(e.start,e.end)}constructor(e,t){this.start=e;this.end=t||e}isEmpty(){return typeof this.start!=="number"||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:i}=this;if(e.length===0||i<=e[0]){this.origStart=n;this.origEnd=i;return t}let s=t;while(sn)break;else++s}this.origStart=n+s;const o=s;while(s=i)break;else++s}this.origEnd=i+s;return o}}class Node{static addStringTerminator(e,t,n){if(n[n.length-1]==="\n")return n;const i=Node.endOfWhiteSpace(e,t);return i>=e.length||e[i]==="\n"?n+"\n":n}static atDocumentBoundary(e,t,i){const s=e[t];if(!s)return true;const o=e[t-1];if(o&&o!=="\n")return false;if(i){if(s!==i)return false}else{if(s!==n.DIRECTIVES_END&&s!==n.DOCUMENT_END)return false}const a=e[t+1];const l=e[t+2];if(a!==s||l!==s)return false;const u=e[t+3];return!u||u==="\n"||u==="\t"||u===" "}static endOfIdentifier(e,t){let n=e[t];const i=n==="<";const s=i?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(n&&s.indexOf(n)===-1)n=e[t+=1];if(i&&n===">")t+=1;return t}static endOfIndent(e,t){let n=e[t];while(n===" ")n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];while(n&&n!=="\n")n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];while(n==="\t"||n===" ")n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if(n==="\n")return t;while(n&&n!=="\n")n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const i=Node.endOfIndent(e,n);if(i>n+t){return i}else{const t=Node.endOfWhiteSpace(e,i);const n=e[t];if(!n||n==="\n")return t}return null}static atBlank(e,t,n){const i=e[t];return i==="\n"||i==="\t"||i===" "||n&&!i}static nextNodeIsIndented(e,t,n){if(!e||t<0)return false;if(t>0)return true;return n&&e==="-"}static normalizeOffset(e,t){const n=e[t];return!n?t:n!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,n){let i=0;let s=false;let o="";let a=e[t+1];while(a===" "||a==="\t"||a==="\n"){switch(a){case"\n":i=0;t+=1;o+="\n";break;case"\t":if(i<=n)s=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":i+=1;t+=1;break}a=e[t+1]}if(!o)o=" ";if(a&&i<=n)s=true;return{fold:o,offset:t,error:s}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:true});this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:i}=this.context;const s=this.props[e];return s&&i[s.start]===t?i.slice(s.start+(n?1:0),s.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:n}=this.valueRange;return e!==n||Node.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tn.setOrigRange(e,t)));return t}toString(){const{context:{src:e},range:t,value:n}=this;if(n!=null)return n;const i=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,i)}}class YAMLError extends Error{constructor(e,t,n){if(!n||!(t instanceof Node))throw new Error(`Invalid arguments for new ${e}`);super();this.name=e;this.message=n;this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new Range(this.offset,this.offset+1);const t=e&&getLinePos(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else{this.range=this.source.range;this.linePos=this.source.rangeAsLinePos}if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const i=e&&getPrettyContext(this.linePos,e);if(i)this.message+=`:\n\n${i}\n`}delete this.source}}class YAMLReferenceError extends YAMLError{constructor(e,t){super("YAMLReferenceError",e,t)}}class YAMLSemanticError extends YAMLError{constructor(e,t){super("YAMLSemanticError",e,t)}}class YAMLSyntaxError extends YAMLError{constructor(e,t){super("YAMLSyntaxError",e,t)}}class YAMLWarning extends YAMLError{constructor(e,t){super("YAMLWarning",e,t)}}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}class PlainValue extends Node{static endOfLine(e,t,n){let i=e[t];let s=t;while(i&&i!=="\n"){if(n&&(i==="["||i==="]"||i==="{"||i==="}"||i===","))break;const t=e[s+1];if(i===":"&&(!t||t==="\n"||t==="\t"||t===" "||n&&t===","))break;if((i===" "||i==="\t")&&t==="#")break;s+=1;i=t}return s}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let i=n[t-1];while(eo?n.slice(o,i+1):e}else{s+=e}}const o=n[e];switch(o){case"\t":{const e="Plain value cannot start with a tab character";const t=[new YAMLSemanticError(this,e)];return{errors:t,str:s}}case"@":case"`":{const e=`Plain value cannot start with reserved character ${o}`;const t=[new YAMLSemanticError(this,e)];return{errors:t,str:s}}default:return s}}parseBlockValue(e){const{indent:t,inFlow:n,src:i}=this.context;let s=e;let o=e;for(let e=i[s];e==="\n";e=i[s]){if(Node.atDocumentBoundary(i,s+1))break;const e=Node.endOfBlockIndent(i,t,s+1);if(e===null||i[e]==="#")break;if(i[e]==="\n"){s=e}else{o=PlainValue.endOfLine(i,e,n);s=o}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=o;return o}parse(e,t){this.context=e;const{inFlow:n,src:i}=e;let s=t;const o=i[s];if(o&&o!=="#"&&o!=="\n"){s=PlainValue.endOfLine(i,t,n)}this.valueRange=new Range(t,s);s=Node.endOfWhiteSpace(i,s);s=this.parseComment(s);if(!this.hasComment||this.valueRange.isEmpty()){s=this.parseBlockValue(s)}return s}}t.Char=n;t.Node=Node;t.PlainValue=PlainValue;t.Range=Range;t.Type=i;t.YAMLError=YAMLError;t.YAMLReferenceError=YAMLReferenceError;t.YAMLSemanticError=YAMLSemanticError;t.YAMLSyntaxError=YAMLSyntaxError;t.YAMLWarning=YAMLWarning;t._defineProperty=_defineProperty;t.defaultTagPrefix=s;t.defaultTags=o},8021:(e,t,n)=>{"use strict";var i=n(5215);var s=n(4227);var o=n(6003);function createMap(e,t,n){const i=new s.YAMLMap(e);if(t instanceof Map){for(const[s,o]of t)i.items.push(e.createPair(s,o,n))}else if(t&&typeof t==="object"){for(const s of Object.keys(t))i.items.push(e.createPair(s,t[s],n))}if(typeof e.sortMapEntries==="function"){i.items.sort(e.sortMapEntries)}return i}const a={createNode:createMap,default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:s.resolveMap};function createSeq(e,t,n){const i=new s.YAMLSeq(e);if(t&&t[Symbol.iterator]){for(const s of t){const t=e.createNode(s,n.wrapScalars,null,n);i.items.push(t)}}return i}const l={createNode:createSeq,default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:s.resolveSeq};const u={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:s.resolveString,stringify(e,t,n,i){t=Object.assign({actualString:true},t);return s.stringifyString(e,t,n,i)},options:s.strOptions};const c=[a,l,u];const intIdentify$2=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve$1=(e,t,n)=>s.intOptions.asBigInt?BigInt(e):parseInt(t,n);function intStringify$1(e,t,n){const{value:i}=e;if(intIdentify$2(i)&&i>=0)return n+i.toString(t);return s.stringifyNumber(e)}const f={identify:e=>e==null,createNode:(e,t,n)=>n.wrapScalars?new s.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s.nullOptions,stringify:()=>s.nullOptions.nullStr};const p={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:s.boolOptions,stringify:({value:e})=>e?s.boolOptions.trueStr:s.boolOptions.falseStr};const h={identify:e=>intIdentify$2(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>intResolve$1(e,t,8),options:s.intOptions,stringify:e=>intStringify$1(e,8,"0o")};const d={identify:intIdentify$2,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>intResolve$1(e,e,10),options:s.intOptions,stringify:s.stringifyNumber};const m={identify:e=>intIdentify$2(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>intResolve$1(e,t,16),options:s.intOptions,stringify:e=>intStringify$1(e,16,"0x")};const g={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const y={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};const v={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const i=t||n;const o=new s.Scalar(parseFloat(e));if(i&&i[i.length-1]==="0")o.minFractionDigits=i.length;return o},stringify:s.stringifyNumber};const b=c.concat([f,p,h,d,m,g,y,v]);const intIdentify$1=e=>typeof e==="bigint"||Number.isInteger(e);const stringifyJSON=({value:e})=>JSON.stringify(e);const w=[a,l,{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:s.resolveString,stringify:stringifyJSON},{identify:e=>e==null,createNode:(e,t,n)=>n.wrapScalars?new s.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify$1,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>s.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify$1(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];w.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const boolStringify=({value:e})=>e?s.boolOptions.trueStr:s.boolOptions.falseStr;const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,n){let i=t.replace(/_/g,"");if(s.intOptions.asBigInt){switch(n){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}const t=BigInt(i);return e==="-"?BigInt(-1)*t:t}const o=parseInt(i,n);return e==="-"?-1*o:o}function intStringify(e,t,n){const{value:i}=e;if(intIdentify(i)){const e=i.toString(t);return i<0?"-"+n+e.substr(1):n+e}return s.stringifyNumber(e)}const S=c.concat([{identify:e=>e==null,createNode:(e,t,n)=>n.wrapScalars?new s.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s.nullOptions,stringify:()=>s.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:s.boolOptions,stringify:boolStringify},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:s.boolOptions,stringify:boolStringify},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>intResolve(t,n,2),stringify:e=>intStringify(e,2,"0b")},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>intResolve(t,n,8),stringify:e=>intStringify(e,8,"0")},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>intResolve(t,n,10),stringify:s.stringifyNumber},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>intResolve(t,n,16),stringify:e=>intStringify(e,16,"0x")},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber},{identify:e=>typeof e==="number",default:true,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:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new s.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");if(e[e.length-1]==="0")n.minFractionDigits=e.length}return n},stringify:s.stringifyNumber}],o.binary,o.omap,o.pairs,o.set,o.intTime,o.floatTime,o.timestamp);const E={core:b,failsafe:c,json:w,yaml11:S};const _={binary:o.binary,bool:p,float:v,floatExp:y,floatNaN:g,floatTime:o.floatTime,int:d,intHex:m,intOct:h,intTime:o.intTime,map:a,null:f,omap:o.omap,pairs:o.pairs,seq:l,set:o.set,timestamp:o.timestamp};function findTagObject(e,t,n){if(t){const e=n.filter((e=>e.tag===t));const i=e.find((e=>!e.format))||e[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}function createNode(e,t,n){if(e instanceof s.Node)return e;const{defaultPrefix:i,onTagObj:o,prevObjects:u,schema:c,wrapScalars:f}=n;if(t&&t.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,c.tags);if(!p){if(typeof e.toJSON==="function")e=e.toJSON();if(!e||typeof e!=="object")return f?new s.Scalar(e):e;p=e instanceof Map?a:e[Symbol.iterator]?l:a}if(o){o(p);delete n.onTagObj}const h={value:undefined,node:undefined};if(e&&typeof e==="object"&&u){const t=u.get(e);if(t){const e=new s.Alias(t);n.aliasNodes.push(e);return e}h.value=e;u.set(e,h)}h.node=p.createNode?p.createNode(n.schema,e,n):f?new s.Scalar(e):e;if(t&&h.node instanceof s.Node)h.node.tag=t;return h.node}function getSchemaTags(e,t,n,i){let s=e[i.replace(/\W/g,"")];if(!s){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${i}"; use one of ${t}`)}if(Array.isArray(n)){for(const e of n)s=s.concat(e)}else if(typeof n==="function"){s=n(s.slice())}for(let e=0;eJSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}s[e]=i}}return s}const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({customTags:e,merge:t,schema:n,sortMapEntries:i,tags:s}){this.merge=!!t;this.name=n;this.sortMapEntries=i===true?sortMapEntriesByKey:i||null;if(!e&&s)o.warnOptionDeprecation("tags","customTags");this.tags=getSchemaTags(E,_,e||s,n)}createNode(e,t,n,i){const s={defaultPrefix:Schema.defaultPrefix,schema:this,wrapScalars:t};const o=i?Object.assign(i,s):s;return createNode(e,n,o)}createPair(e,t,n){if(!n)n={wrapScalars:true};const i=this.createNode(e,n.wrapScalars,null,n);const o=this.createNode(t,n.wrapScalars,null,n);return new s.Pair(i,o)}}i._defineProperty(Schema,"defaultPrefix",i.defaultTagPrefix);i._defineProperty(Schema,"defaultTags",i.defaultTags);t.Schema=Schema},5065:(e,t,n)=>{"use strict";var i=n(445);var s=n(5506);var o=n(8021);var a=n(5215);var l=n(6003);n(4227);function createNode(e,t=true,n){if(n===undefined&&typeof t==="string"){n=t;t=true}const i=Object.assign({},s.Document.defaults[s.defaultOptions.version],s.defaultOptions);const a=new o.Schema(i);return a.createNode(e,t,n)}class Document extends s.Document{constructor(e){super(Object.assign({},s.defaultOptions,e))}}function parseAllDocuments(e,t){const n=[];let s;for(const o of i.parse(e)){const e=new Document(t);e.parse(o,s);n.push(e);s=e}return n}function parseDocument(e,t){const n=i.parse(e);const s=new Document(t).parse(n[0]);if(n.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new a.YAMLSemanticError(n[1],e))}return s}function parse(e,t){const n=parseDocument(e,t);n.warnings.forEach((e=>l.warn(e)));if(n.errors.length>0)throw n.errors[0];return n.toJSON()}function stringify(e,t){const n=new Document(t);n.contents=e;return String(n)}const u={createNode:createNode,defaultOptions:s.defaultOptions,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:i.parse,parseDocument:parseDocument,scalarOptions:s.scalarOptions,stringify:stringify};t.YAML=u},445:(e,t,n)=>{"use strict";var i=n(5215);class BlankLine extends i.Node{constructor(){super(i.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;this.range=new i.Range(t,t+1);return t+1}}class CollectionItem extends i.Node{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:n,src:s}=e;let{atLineStart:o,lineStart:a}=e;if(!o&&this.type===i.Type.SEQ_ITEM)this.error=new i.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const l=o?t-a:e.indent;let u=i.Node.endOfWhiteSpace(s,t+1);let c=s[u];const f=c==="#";const p=[];let h=null;while(c==="\n"||c==="#"){if(c==="#"){const e=i.Node.endOfLine(s,u+1);p.push(new i.Range(u,e));u=e}else{o=true;a=u+1;const e=i.Node.endOfWhiteSpace(s,a);if(s[e]==="\n"&&p.length===0){h=new BlankLine;a=h.parse({src:s},a)}u=i.Node.endOfIndent(s,a)}c=s[u]}if(i.Node.nextNodeIsIndented(c,u-(a+l),this.type!==i.Type.SEQ_ITEM)){this.node=n({atLineStart:o,inCollection:false,indent:l,lineStart:a,parent:this},u)}else if(c&&a>t+1){u=a-1}if(this.node){if(h){const t=e.parent.items||e.parent.contents;if(t)t.push(h)}if(p.length)Array.prototype.push.apply(this.props,p);u=this.node.range.end}else{if(f){const e=p[0];this.props.push(e);u=e.end}else{u=i.Node.endOfLine(s,t+1)}}const d=this.node?this.node.valueRange.end:u;this.valueRange=new i.Range(t,d);return u}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:s}=this;if(s!=null)return s;const o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return i.Node.addStringTerminator(e,n.end,o)}}class Comment extends i.Node{constructor(){super(i.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);this.range=new i.Range(t,n);return n}}function grabCollectionEndComments(e){let t=e;while(t instanceof CollectionItem)t=t.node;if(!(t instanceof Collection))return null;const n=t.items.length;let s=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===i.Type.COMMENT){const{indent:t,lineStart:i}=n.context;if(t>0&&n.range.start>=i+t)break;s=e}else if(n.type===i.Type.BLANK_LINE)s=e;else break}if(s===-1)return null;const o=t.items.splice(s,n-s);const a=o[0].range.start;while(true){t.range.end=a;if(t.valueRange&&t.valueRange.end>a)t.valueRange.end=a;if(t===e)break;t=t.context.parent}return o}class Collection extends i.Node{static nextContentHasIndent(e,t,n){const s=i.Node.endOfLine(e,t)+1;t=i.Node.endOfWhiteSpace(e,s);const o=e[t];if(!o)return false;if(t>=s+n)return true;if(o!=="#"&&o!=="\n")return false;return Collection.nextContentHasIndent(e,t,n)}constructor(e){super(e.type===i.Type.SEQ_ITEM?i.Type.SEQ:i.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:n,src:s}=e;let o=i.Node.startOfLine(s,t);const a=this.items[0];a.context.parent=this;this.valueRange=i.Range.copy(a.valueRange);const l=a.range.start-a.context.lineStart;let u=t;u=i.Node.normalizeOffset(s,u);let c=s[u];let f=i.Node.endOfWhiteSpace(s,o)===u;let p=false;while(c){while(c==="\n"||c==="#"){if(f&&c==="\n"&&!p){const e=new BlankLine;u=e.parse({src:s},u);this.valueRange.end=u;if(u>=s.length){c=null;break}this.items.push(e);u-=1}else if(c==="#"){if(u=s.length){c=null;break}}o=u+1;u=i.Node.endOfIndent(s,o);if(i.Node.atBlank(s,u)){const e=i.Node.endOfWhiteSpace(s,u);const t=s[e];if(!t||t==="\n"||t==="#"){u=e}}c=s[u];f=true}if(!c){break}if(u!==o+l&&(f||c!==":")){if(ut)u=o;break}else if(!this.error){const e="All collection items must start at the same column";this.error=new i.YAMLSyntaxError(this,e)}}if(a.type===i.Type.SEQ_ITEM){if(c!=="-"){if(o>t)u=o;break}}else if(c==="-"&&!this.error){const e=s[u+1];if(!e||e==="\n"||e==="\t"||e===" "){const e="A collection cannot be both a mapping and a sequence";this.error=new i.YAMLSyntaxError(this,e)}}const e=n({atLineStart:f,inCollection:true,indent:l,lineStart:o,parent:this},u);if(!e)return u;this.items.push(e);this.valueRange.end=e.valueRange.end;u=i.Node.normalizeOffset(s,e.range.end);c=s[u];f=false;p=e.includesTrailingLines;if(c){let e=u-1;let t=s[e];while(t===" "||t==="\t")t=s[--e];if(t==="\n"){o=e+1;f=true}}const h=grabCollectionEndComments(e);if(h)Array.prototype.push.apply(this.items,h)}return u}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach((n=>{t=n.setOrigRanges(e,t)}));return t}toString(){const{context:{src:e},items:t,range:n,value:s}=this;if(s!=null)return s;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e0){this.contents=this.directives;this.directives=[]}return o}}if(t[o]){this.directivesEndMarker=new i.Range(o,o+3);return o+3}if(s){this.error=new i.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return o}parseContents(e){const{parseNode:t,src:n}=this.context;if(!this.contents)this.contents=[];let s=e;while(n[s-1]==="-")s-=1;let o=i.Node.endOfWhiteSpace(n,e);let a=s===e;this.valueRange=new i.Range(o);while(!i.Node.atDocumentBoundary(n,o,i.Char.DOCUMENT_END)){switch(n[o]){case"\n":if(a){const e=new BlankLine;o=e.parse({src:n},o);if(o{t=n.setOrigRanges(e,t)}));if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach((n=>{t=n.setOrigRanges(e,t)}));if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:n}=this;if(n!=null)return n;let s=t.join("");if(e.length>0){if(t.length>0||e[0].type===i.Type.COMMENT)s+="---\n";s+=e.join("")}if(s[s.length-1]!=="\n")s+="\n";return s}}class Alias extends i.Node{parse(e,t){this.context=e;const{src:n}=e;let s=i.Node.endOfIdentifier(n,t+1);this.valueRange=new i.Range(t+1,s);s=i.Node.endOfWhiteSpace(n,s);s=this.parseComment(s);return s}}const s={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};class BlockValue extends i.Node{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=s.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===s.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:n,src:o}=this.context;if(this.valueRange.isEmpty())return"";let a=null;let l=o[t-1];while(l==="\n"||l==="\t"||l===" "){t-=1;if(t<=e){if(this.chomping===s.KEEP)break;else return""}if(l==="\n")a=t;l=o[t-1]}let u=t+1;if(a){if(this.chomping===s.KEEP){u=a;t=this.valueRange.end}else{t=a}}const c=n+this.blockIndent;const f=this.type===i.Type.BLOCK_FOLDED;let p=true;let h="";let d="";let m=false;for(let n=e;nu){u=c}}else if(s&&s!=="\n"&&c{if(n instanceof i.Node){t=n.setOrigRanges(e,t)}else if(e.length===0){n.origOffset=n.offset}else{let i=t;while(in.offset)break;else++i}n.origOffset=n.offset+i;t=i}}));return t}toString(){const{context:{src:e},items:t,range:n,value:s}=this;if(s!=null)return s;const o=t.filter((e=>e instanceof i.Node));let a="";let l=n.start;o.forEach((t=>{const n=e.slice(l,t.range.start);l=t.range.end;a+=n+String(t);if(a[a.length-1]==="\n"&&e[l-1]!=="\n"&&e[l]==="\n"){l+=1}}));a+=e.slice(l,n.end);return i.Node.addStringTerminator(e,n.end,a)}}class QuoteDouble extends i.Node{static endOfQuote(e,t){let n=e[t];while(n&&n!=='"'){t+=n==="\\"?2:1;n=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:n}=this.valueRange;const{indent:s,src:o}=this.context;if(o[n-1]!=='"')e.push(new i.YAMLSyntaxError(this,'Missing closing "quote'));let a="";for(let l=t+1;le?o.slice(e,l+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parseCharCode(e,t,n){const{src:s}=this.context;const o=s.substr(e,t);const a=o.length===t&&/^[0-9a-fA-F]+$/.test(o);const l=a?parseInt(o,16):NaN;if(isNaN(l)){n.push(new i.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,t+2)}`));return s.substr(e-2,t+2)}return String.fromCodePoint(l)}parse(e,t){this.context=e;const{src:n}=e;let s=QuoteDouble.endOfQuote(n,t+1);this.valueRange=new i.Range(t,s);s=i.Node.endOfWhiteSpace(n,s);s=this.parseComment(s);return s}}class QuoteSingle extends i.Node{static endOfQuote(e,t){let n=e[t];while(n){if(n==="'"){if(e[t+1]!=="'")break;n=e[t+=2]}else{n=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:n}=this.valueRange;const{indent:s,src:o}=this.context;if(o[n-1]!=="'")e.push(new i.YAMLSyntaxError(this,"Missing closing 'quote"));let a="";for(let l=t+1;le?o.slice(e,l+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parse(e,t){this.context=e;const{src:n}=e;let s=QuoteSingle.endOfQuote(n,t+1);this.valueRange=new i.Range(t,s);s=i.Node.endOfWhiteSpace(n,s);s=this.parseComment(s);return s}}function createNewNode(e,t){switch(e){case i.Type.ALIAS:return new Alias(e,t);case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return new BlockValue(e,t);case i.Type.FLOW_MAP:case i.Type.FLOW_SEQ:return new FlowCollection(e,t);case i.Type.MAP_KEY:case i.Type.MAP_VALUE:case i.Type.SEQ_ITEM:return new CollectionItem(e,t);case i.Type.COMMENT:case i.Type.PLAIN:return new i.PlainValue(e,t);case i.Type.QUOTE_DOUBLE:return new QuoteDouble(e,t);case i.Type.QUOTE_SINGLE:return new QuoteSingle(e,t);default:return null}}class ParseContext{static parseType(e,t,n){switch(e[t]){case"*":return i.Type.ALIAS;case">":return i.Type.BLOCK_FOLDED;case"|":return i.Type.BLOCK_LITERAL;case"{":return i.Type.FLOW_MAP;case"[":return i.Type.FLOW_SEQ;case"?":return!n&&i.Node.atBlank(e,t+1,true)?i.Type.MAP_KEY:i.Type.PLAIN;case":":return!n&&i.Node.atBlank(e,t+1,true)?i.Type.MAP_VALUE:i.Type.PLAIN;case"-":return!n&&i.Node.atBlank(e,t+1,true)?i.Type.SEQ_ITEM:i.Type.PLAIN;case'"':return i.Type.QUOTE_DOUBLE;case"'":return i.Type.QUOTE_SINGLE;default:return i.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:n,inFlow:s,indent:o,lineStart:a,parent:l}={}){i._defineProperty(this,"parseNode",((e,t)=>{if(i.Node.atDocumentBoundary(this.src,t))return null;const n=new ParseContext(this,e);const{props:s,type:o,valueStart:a}=n.parseProps(t);const l=createNewNode(o,s);let u=l.parse(n,a);l.range=new i.Range(t,u);if(u<=t){l.error=new Error(`Node#parse consumed no characters`);l.error.parseEnd=u;l.error.source=l;l.range.end=t+1}if(n.nodeStartsCollection(l)){if(!l.error&&!n.atLineStart&&n.parent.type===i.Type.DOCUMENT){l.error=new i.YAMLSyntaxError(l,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new Collection(l);u=e.parse(new ParseContext(n),u);e.range=new i.Range(t,u);return e}return l}));this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=n!=null?n:e.inCollection||false;this.inFlow=s!=null?s:e.inFlow||false;this.indent=o!=null?o:e.indent;this.lineStart=a!=null?a:e.lineStart;this.parent=l!=null?l:e.parent||{};this.root=e.root;this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:s}=this;if(t||n)return false;if(e instanceof CollectionItem)return true;let o=e.range.end;if(s[o]==="\n"||s[o-1]==="\n")return false;o=i.Node.endOfWhiteSpace(s,o);return s[o]===":"}parseProps(e){const{inFlow:t,parent:n,src:s}=this;const o=[];let a=false;e=this.atLineStart?i.Node.endOfIndent(s,e):i.Node.endOfWhiteSpace(s,e);let l=s[e];while(l===i.Char.ANCHOR||l===i.Char.COMMENT||l===i.Char.TAG||l==="\n"){if(l==="\n"){let t=e;let o;do{o=t+1;t=i.Node.endOfIndent(s,o)}while(s[t]==="\n");const l=t-(o+this.indent);const u=n.type===i.Type.SEQ_ITEM&&n.context.atLineStart;if(s[t]!=="#"&&!i.Node.nextNodeIsIndented(s[t],l,!u))break;this.atLineStart=true;this.lineStart=o;a=false;e=t}else if(l===i.Char.COMMENT){const t=i.Node.endOfLine(s,e+1);o.push(new i.Range(e,t));e=t}else{let t=i.Node.endOfIdentifier(s,e+1);if(l===i.Char.TAG&&s[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,t+13))){t=i.Node.endOfIdentifier(s,t+5)}o.push(new i.Range(e,t));a=true;e=i.Node.endOfWhiteSpace(s,t)}l=s[e]}if(a&&l===":"&&i.Node.atBlank(s,e+1,true))e-=1;const u=ParseContext.parseType(s,e,t);return{props:o,type:u,valueStart:e}}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,((e,n)=>{if(e.length>1)t.push(n);return"\n"}))}const n=[];let i=0;do{const t=new Document;const s=new ParseContext({src:e});i=t.parse(s,i);n.push(t)}while(i{if(t.length===0)return false;for(let e=1;en.join("...\n");return n}t.parse=parse},4227:(e,t,n)=>{"use strict";var i=n(5215);function addCommentBefore(e,t,n){if(!n)return e;const i=n.replace(/[\s\S]^/gm,`$&${t}#`);return`#${i}\n${t}${e}`}function addComment(e,t,n){return!n?e:n.indexOf("\n")===-1?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`)}class Node{}function toJSON(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>toJSON(e,String(t),n)));if(e&&typeof e.toJSON==="function"){const i=n&&n.anchors&&n.anchors.get(e);if(i)n.onCreate=e=>{i.res=e;delete n.onCreate};const s=e.toJSON(t,n);if(i&&n.onCreate)n.onCreate(s);return s}if((!n||!n.keep)&&typeof e==="bigint")return Number(e);return e}class Scalar extends Node{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:toJSON(this.value,e,t)}toString(){return String(this.value)}}function collectionFromPath(e,t,n){let i=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=i;i=e}else{const e={};Object.defineProperty(e,n,{value:i,writable:true,enumerable:true,configurable:true});i=e}}return e.createNode(i,false)}const isEmptyPath=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;class Collection extends Node{constructor(e){super();i._defineProperty(this,"items",[]);this.schema=e}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[n,...i]=e;const s=this.get(n,true);if(s instanceof Collection)s.addIn(i,t);else if(s===undefined&&this.schema)this.set(n,collectionFromPath(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const n=this.get(e,true);if(n instanceof Collection)return n.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const i=this.get(e,true);if(t.length===0)return!n&&i instanceof Scalar?i.value:i;else return i instanceof Collection?i.getIn(t,n):undefined}hasAllNullValues(){return this.items.every((e=>{if(!e||e.type!=="PAIR")return false;const t=e.value;return t==null||t instanceof Scalar&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(t.length===0)return this.has(e);const n=this.get(e,true);return n instanceof Collection?n.hasIn(t):false}setIn([e,...t],n){if(t.length===0){this.set(e,n)}else{const i=this.get(e,true);if(i instanceof Collection)i.setIn(t,n);else if(i===undefined&&this.schema)this.set(e,collectionFromPath(this.schema,t,n));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:n,isMap:s,itemIndent:o},a,l){const{indent:u,indentStep:c,stringify:f}=e;const p=this.type===i.Type.FLOW_MAP||this.type===i.Type.FLOW_SEQ||e.inFlow;if(p)o+=c;const h=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:o,inFlow:p,type:null});let d=false;let m=false;const g=this.items.reduce(((t,n,i)=>{let s;if(n){if(!d&&n.spaceBefore)t.push({type:"comment",str:""});if(n.commentBefore)n.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:`#${e}`})}));if(n.comment)s=n.comment;if(p&&(!d&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment)))m=true}d=false;let a=f(n,e,(()=>s=null),(()=>d=true));if(p&&!m&&a.includes("\n"))m=true;if(p&&ie.str));if(m||i.reduce(((e,t)=>e+t.length+2),2)>Collection.maxFlowStringSingleLineLength){y=e;for(const e of i){y+=e?`\n${c}${u}${e}`:"\n"}y+=`\n${u}${t}`}else{y=`${e} ${i.join(" ")} ${t}`}}else{const e=g.map(t);y=e.shift();for(const t of e)y+=t?`\n${u}${t}`:"\n"}if(this.comment){y+="\n"+this.comment.replace(/^/gm,`${u}#`);if(a)a()}else if(d&&l)l();return y}}i._defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){let t=e instanceof Scalar?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends Collection{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const n=this.items.splice(t,1);return n.length>0}get(e,t){const n=asItemIndex(e);if(typeof n!=="number")return undefined;const i=this.items[n];return!t&&i instanceof Scalar?i.value:i}has(e){const t=asItemIndex(e);return typeof t==="number"&&te.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,n)}}const stringifyKey=(e,t,n)=>{if(t===null)return"";if(typeof t!=="object")return String(t);if(e instanceof Node&&n&&n.doc)return e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:true,inStringifyKey:true,stringify:n.stringify});return JSON.stringify(t)};class Pair extends Node{constructor(e,t=null){super();this.key=e;this.value=t;this.type=Pair.Type.PAIR}get commentBefore(){return this.key instanceof Node?this.key.commentBefore:undefined}set commentBefore(e){if(this.key==null)this.key=new Scalar(null);if(this.key instanceof Node)this.key.commentBefore=e;else{const e="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(e)}}addToJSMap(e,t){const n=toJSON(this.key,"",e);if(t instanceof Map){const i=toJSON(this.value,n,e);t.set(n,i)}else if(t instanceof Set){t.add(n)}else{const i=stringifyKey(this.key,n,e);const s=toJSON(this.value,i,e);if(i in t)Object.defineProperty(t,i,{value:s,writable:true,enumerable:true,configurable:true});else t[i]=s}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,n){if(!e||!e.doc)return JSON.stringify(this);const{indent:s,indentSeq:o,simpleKeys:a}=e.doc.options;let{key:l,value:u}=this;let c=l instanceof Node&&l.comment;if(a){if(c){throw new Error("With simple keys, key nodes cannot have comments")}if(l instanceof Collection){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let f=!a&&(!l||c||(l instanceof Node?l instanceof Collection||l.type===i.Type.BLOCK_FOLDED||l.type===i.Type.BLOCK_LITERAL:typeof l==="object"));const{doc:p,indent:h,indentStep:d,stringify:m}=e;e=Object.assign({},e,{implicitKey:!f,indent:h+d});let g=false;let y=m(l,e,(()=>c=null),(()=>g=true));y=addComment(y,e.indent,c);if(!f&&y.length>1024){if(a)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=true}if(e.allNullValues&&!a){if(this.comment){y=addComment(y,e.indent,this.comment);if(t)t()}else if(g&&!c&&n)n();return e.inFlow&&!f?y:`? ${y}`}y=f?`? ${y}\n${h}:`:`${y}:`;if(this.comment){y=addComment(y,e.indent,this.comment);if(t)t()}let v="";let b=null;if(u instanceof Node){if(u.spaceBefore)v="\n";if(u.commentBefore){const t=u.commentBefore.replace(/^/gm,`${e.indent}#`);v+=`\n${t}`}b=u.comment}else if(u&&typeof u==="object"){u=p.schema.createNode(u,true)}e.implicitKey=false;if(!f&&!this.comment&&u instanceof Scalar)e.indentAtStart=y.length+1;g=false;if(!o&&s>=2&&!e.inFlow&&!f&&u instanceof YAMLSeq&&u.type!==i.Type.FLOW_SEQ&&!u.tag&&!p.anchors.getName(u)){e.indent=e.indent.substr(2)}const w=m(u,e,(()=>b=null),(()=>g=true));let S=" ";if(v||this.comment){S=`${v}\n${e.indent}`}else if(!f&&u instanceof Collection){const t=w[0]==="["||w[0]==="{";if(!t||w.includes("\n"))S=`\n${e.indent}`}else if(w[0]==="\n")S="";if(g&&!b&&n)n();return addComment(y+S+w,e.indent,b)}}i._defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const getAliasCount=(e,t)=>{if(e instanceof Alias){const n=t.get(e.source);return n.count*n.aliasCount}else if(e instanceof Collection){let n=0;for(const i of e.items){const e=getAliasCount(i,t);if(e>n)n=e}return n}else if(e instanceof Pair){const n=getAliasCount(e.key,t);const i=getAliasCount(e.value,t);return Math.max(n,i)}return 1};class Alias extends Node{static stringify({range:e,source:t},{anchors:n,doc:i,implicitKey:s,inStringifyKey:o}){let a=Object.keys(n).find((e=>n[e]===t));if(!a&&o)a=i.anchors.getName(t)||i.anchors.newName();if(a)return`*${a}${s?" ":""}`;const l=i.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${l} [${e}]`)}constructor(e){super();this.source=e;this.type=i.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return toJSON(this.source,e,t);const{anchors:n,maxAliasCount:s}=t;const o=n.get(this.source);if(!o||o.res===undefined){const e="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}if(s>=0){o.count+=1;if(o.aliasCount===0)o.aliasCount=getAliasCount(this.source,n);if(o.count*o.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}}return o.res}toString(e){return Alias.stringify(this,e)}}i._defineProperty(Alias,"default",true);function findPair(e,t){const n=t instanceof Scalar?t.value:t;for(const i of e){if(i instanceof Pair){if(i.key===t||i.key===n)return i;if(i.key&&i.key.value===n)return i}}return undefined}class YAMLMap extends Collection{add(e,t){if(!e)e=new Pair(e);else if(!(e instanceof Pair))e=new Pair(e.key||e,e.value);const n=findPair(this.items,e.key);const i=this.schema&&this.schema.sortMapEntries;if(n){if(t)n.value=e.value;else throw new Error(`Key ${e.key} already set`)}else if(i){const t=this.items.findIndex((t=>i(e,t)<0));if(t===-1)this.items.push(e);else this.items.splice(t,0,e)}else{this.items.push(e)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const n=this.items.splice(this.items.indexOf(t),1);return n.length>0}get(e,t){const n=findPair(this.items,e);const i=n&&n.value;return!t&&i instanceof Scalar?i.value:i}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new Pair(e,t),true)}toJSON(e,t,n){const i=n?new n:t&&t.mapAsMap?new Map:{};if(t&&t.onCreate)t.onCreate(i);for(const e of this.items)e.addToJSMap(t,i);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof Pair))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,n)}}const s="<<";class Merge extends Pair{constructor(e){if(e instanceof Pair){let t=e.value;if(!(t instanceof YAMLSeq)){t=new YAMLSeq;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new Scalar(s),new YAMLSeq)}this.type=Pair.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof YAMLMap))throw new Error("Merge sources must be maps");const i=n.toJSON(null,e,Map);for(const[e,n]of i){if(t instanceof Map){if(!t.has(e))t.set(e,n)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:n,writable:true,enumerable:true,configurable:true})}}}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const i=super.toString(e,t);this.value=n;return i}}const o={defaultType:i.Type.BLOCK_LITERAL,lineWidth:76};const a={trueStr:"true",falseStr:"false"};const l={asBigInt:false};const u={nullStr:"null"};const c={defaultType:i.Type.PLAIN,doubleQuoted:{jsonEncoding:false,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,t,n){for(const{format:n,test:i,resolve:s}of t){if(i){const t=e.match(i);if(t){let e=s.apply(null,t);if(!(e instanceof Scalar))e=new Scalar(e);if(n)e.format=n;return e}}}if(n)e=n(e);return new Scalar(e)}const f="flow";const p="block";const h="quoted";const consumeMoreIndentedLines=(e,t)=>{let n=e[t+1];while(n===" "||n==="\t"){do{n=e[t+=1]}while(n&&n!=="\n");n=e[t+1]}return t};function foldFlowLines(e,t,n,{indentAtStart:i,lineWidth:s=80,minContentWidth:o=20,onFold:a,onOverflow:l}){if(!s||s<0)return e;const u=Math.max(1+o,1+s-t.length);if(e.length<=u)return e;const c=[];const f={};let d=s-t.length;if(typeof i==="number"){if(i>s-Math.max(2,o))c.push(0);else d=s-i}let m=undefined;let g=undefined;let y=false;let v=-1;let b=-1;let w=-1;if(n===p){v=consumeMoreIndentedLines(e,v);if(v!==-1)d=v+u}for(let t;t=e[v+=1];){if(n===h&&t==="\\"){b=v;switch(e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}w=v}if(t==="\n"){if(n===p)v=consumeMoreIndentedLines(e,v);d=v+u;m=undefined}else{if(t===" "&&g&&g!==" "&&g!=="\n"&&g!=="\t"){const t=e[v+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")m=v}if(v>=d){if(m){c.push(m);d=m+u;m=undefined}else if(n===h){while(g===" "||g==="\t"){g=t;t=e[v+=1];y=true}const n=v>w+1?v-2:b-1;if(f[n])return e;c.push(n);f[n]=true;d=n+u;m=undefined}else{y=true}}}g=t}if(y&&l)l();if(c.length===0)return e;if(a)a();let S=e.slice(0,c[0]);for(let i=0;ie?Object.assign({indentAtStart:e},c.fold):c.fold;const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,n){if(!t||t<0)return false;const i=t-n;const s=e.length;if(s<=i)return false;for(let t=0,n=0;ti)return true;n=t+1;if(s-n<=i)return false}}return true}function doubleQuotedString(e,t){const{implicitKey:n}=t;const{jsonEncoding:i,minMultiLineLength:s}=c.doubleQuoted;const o=JSON.stringify(e);if(i)return o;const a=t.indent||(containsDocumentMarker(e)?" ":"");let l="";let u=0;for(let e=0,t=o[e];t;t=o[++e]){if(t===" "&&o[e+1]==="\\"&&o[e+2]==="n"){l+=o.slice(u,e)+"\\ ";e+=1;u=e;t="\\"}if(t==="\\")switch(o[e+1]){case"u":{l+=o.slice(u,e);const t=o.substr(e+2,4);switch(t){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:if(t.substr(0,2)==="00")l+="\\x"+t.substr(2);else l+=o.substr(e,6)}e+=5;u=e+1}break;case"n":if(n||o[e+2]==='"'||o.length";if(!n)return h+"\n";let d="";let m="";n=n.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");if(t===-1){h+="-"}else if(n===e||t!==e.length-1){h+="+";if(a)a()}m=e.replace(/\n$/,"");return""})).replace(/^[\n ]*/,(e=>{if(e.indexOf(" ")!==-1)h+=u;const t=e.match(/ +$/);if(t){d=e.slice(0,-t[0].length);return t[0]}else{d=e;return""}}));if(m)m=m.replace(/\n+(?!\n|$)/g,`$&${l}`);if(d)d=d.replace(/\n+/g,`$&${l}`);if(e){h+=" #"+e.replace(/ ?[\r\n]+/g," ");if(o)o()}if(!n)return`${h}${u}\n${l}${m}`;if(f){n=n.replace(/\n+/g,`$&${l}`);return`${h}\n${l}${d}${n}${m}`}n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const g=foldFlowLines(`${d}${n}${m}`,l,p,c.fold);return`${h}\n${l}${g}`}function plainString(e,t,n,s){const{comment:o,type:a,value:l}=e;const{actualString:u,implicitKey:c,indent:p,inFlow:h}=t;if(c&&/[\n[\]{},]/.test(l)||h&&/[[\]{},]/.test(l)){return doubleQuotedString(l,t)}if(!l||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l)){return c||h||l.indexOf("\n")===-1?l.indexOf('"')!==-1&&l.indexOf("'")===-1?singleQuotedString(l,t):doubleQuotedString(l,t):blockString(e,t,n,s)}if(!c&&!h&&a!==i.Type.PLAIN&&l.indexOf("\n")!==-1){return blockString(e,t,n,s)}if(p===""&&containsDocumentMarker(l)){t.forceBlockIndent=true;return blockString(e,t,n,s)}const d=l.replace(/\n+/g,`$&\n${p}`);if(u){const{tags:e}=t.doc.schema;const n=resolveScalar(d,e,e.scalarFallback).value;if(typeof n!=="string")return doubleQuotedString(l,t)}const m=c?d:foldFlowLines(d,p,f,getFoldOptions(t));if(o&&!h&&(m.indexOf("\n")!==-1||o.indexOf("\n")!==-1)){if(n)n();return addCommentBefore(m,p,o)}return m}function stringifyString(e,t,n,s){const{defaultType:o}=c;const{implicitKey:a,inFlow:l}=t;let{type:u,value:f}=e;if(typeof f!=="string"){f=String(f);e=Object.assign({},e,{value:f})}const _stringify=o=>{switch(o){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return blockString(e,t,n,s);case i.Type.QUOTE_DOUBLE:return doubleQuotedString(f,t);case i.Type.QUOTE_SINGLE:return singleQuotedString(f,t);case i.Type.PLAIN:return plainString(e,t,n,s);default:return null}};if(u!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(f)){u=i.Type.QUOTE_DOUBLE}else if((a||l)&&(u===i.Type.BLOCK_FOLDED||u===i.Type.BLOCK_LITERAL)){u=i.Type.QUOTE_DOUBLE}let p=_stringify(u);if(p===null){p=_stringify(o);if(p===null)throw new Error(`Unsupported default string type ${o}`)}return p}function stringifyNumber({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i==="bigint")return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let e=s.indexOf(".");if(e<0){e=s.length;s+="."}let n=t-(s.length-e-1);while(n-- >0)s+="0"}return s}function checkFlowCollectionEnd(e,t){let n,s;switch(t.type){case i.Type.FLOW_MAP:n="}";s="flow map";break;case i.Type.FLOW_SEQ:n="]";s="flow sequence";break;default:e.push(new i.YAMLSemanticError(t,"Not a flow collection!?"));return}let o;for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==i.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const a=`Expected ${s} to end with ${n}`;let l;if(typeof o.offset==="number"){l=new i.YAMLSemanticError(t,a);l.offset=o.offset+1}else{l=new i.YAMLSemanticError(o,a);if(o.range&&o.range.end)l.offset=o.range.end-o.range.start}e.push(l)}}function checkFlowCommentSpace(e,t){const n=t.context.src[t.range.start-1];if(n!=="\n"&&n!=="\t"&&n!==" "){const n="Comments must be separated from other tokens by white space characters";e.push(new i.YAMLSemanticError(t,n))}}function getLongKeyError(e,t){const n=String(t);const s=n.substr(0,8)+"..."+n.substr(-8);return new i.YAMLSemanticError(e,`The "${s}" key is too long`)}function resolveComments(e,t){for(const{afterKey:n,before:i,comment:s}of t){let t=e.items[i];if(!t){if(s!==undefined){if(e.comment)e.comment+="\n"+s;else e.comment=s}}else{if(n&&t.value)t=t.value;if(s===undefined){if(n||!t.commentBefore)t.spaceBefore=true}else{if(t.commentBefore)t.commentBefore+="\n"+s;else t.commentBefore=s}}}}function resolveString(e,t){const n=t.strValue;if(!n)return"";if(typeof n==="string")return n;n.errors.forEach((n=>{if(!n.source)n.source=t;e.errors.push(n)}));return n.str}function resolveTagHandle(e,t){const{handle:n,suffix:s}=t.tag;let o=e.tagPrefixes.find((e=>e.handle===n));if(!o){const s=e.getDefaults().tagPrefixes;if(s)o=s.find((e=>e.handle===n));if(!o)throw new i.YAMLSemanticError(t,`The ${n} tag handle is non-default and was not declared.`)}if(!s)throw new i.YAMLSemanticError(t,`The ${n} tag has no suffix.`);if(n==="!"&&(e.version||e.options.version)==="1.0"){if(s[0]==="^"){e.warnings.push(new i.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported"));return s}if(/[:/]/.test(s)){const e=s.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${s}`}}return o.prefix+decodeURIComponent(s)}function resolveTagName(e,t){const{tag:n,type:s}=t;let o=false;if(n){const{handle:s,suffix:a,verbatim:l}=n;if(l){if(l!=="!"&&l!=="!!")return l;const n=`Verbatim tags aren't resolved, so ${l} is invalid.`;e.errors.push(new i.YAMLSemanticError(t,n))}else if(s==="!"&&!a){o=true}else{try{return resolveTagHandle(e,t)}catch(t){e.errors.push(t)}}}switch(s){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:case i.Type.QUOTE_DOUBLE:case i.Type.QUOTE_SINGLE:return i.defaultTags.STR;case i.Type.FLOW_MAP:case i.Type.MAP:return i.defaultTags.MAP;case i.Type.FLOW_SEQ:case i.Type.SEQ:return i.defaultTags.SEQ;case i.Type.PLAIN:return o?i.defaultTags.STR:null;default:return null}}function resolveByTagName(e,t,n){const{tags:i}=e.schema;const s=[];for(const o of i){if(o.tag===n){if(o.test)s.push(o);else{const n=o.resolve(e,t);return n instanceof Collection?n:new Scalar(n)}}}const o=resolveString(e,t);if(typeof o==="string"&&s.length>0)return resolveScalar(o,s,i.scalarFallback);return null}function getFallbackTagName({type:e}){switch(e){case i.Type.FLOW_MAP:case i.Type.MAP:return i.defaultTags.MAP;case i.Type.FLOW_SEQ:case i.Type.SEQ:return i.defaultTags.SEQ;default:return i.defaultTags.STR}}function resolveTag(e,t,n){try{const i=resolveByTagName(e,t,n);if(i){if(n&&t.tag)i.tag=n;return i}}catch(n){if(!n.source)n.source=t;e.errors.push(n);return null}try{const s=getFallbackTagName(t);if(!s)throw new Error(`The tag ${n} is unavailable`);const o=`The tag ${n} is unavailable, falling back to ${s}`;e.warnings.push(new i.YAMLWarning(t,o));const a=resolveByTagName(e,t,s);a.tag=n;return a}catch(n){const s=new i.YAMLReferenceError(t,n.message);s.stack=n.stack;e.errors.push(s);return null}}const isCollectionItem=e=>{if(!e)return false;const{type:t}=e;return t===i.Type.MAP_KEY||t===i.Type.MAP_VALUE||t===i.Type.SEQ_ITEM};function resolveNodeProps(e,t){const n={before:[],after:[]};let s=false;let o=false;const a=isCollectionItem(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:l,end:u}of a){switch(t.context.src[l]){case i.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(l)){const n="Comments must be separated from other tokens by white space characters";e.push(new i.YAMLSemanticError(t,n))}const{header:s,valueRange:o}=t;const a=o&&(l>o.start||s&&l>s.start)?n.after:n.before;a.push(t.context.src.slice(l+1,u));break}case i.Char.ANCHOR:if(s){const n="A node can have at most one anchor";e.push(new i.YAMLSemanticError(t,n))}s=true;break;case i.Char.TAG:if(o){const n="A node can have at most one tag";e.push(new i.YAMLSemanticError(t,n))}o=true;break}}return{comments:n,hasAnchor:s,hasTag:o}}function resolveNodeValue(e,t){const{anchors:n,errors:s,schema:o}=e;if(t.type===i.Type.ALIAS){const e=t.rawValue;const o=n.getNode(e);if(!o){const n=`Aliased anchor not found: ${e}`;s.push(new i.YAMLReferenceError(t,n));return null}const a=new Alias(o);n._cstAliases.push(a);return a}const a=resolveTagName(e,t);if(a)return resolveTag(e,t,a);if(t.type!==i.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;s.push(new i.YAMLSyntaxError(t,e));return null}try{const n=resolveString(e,t);return resolveScalar(n,o.tags,o.tags.scalarFallback)}catch(e){if(!e.source)e.source=t;s.push(e);return null}}function resolveNode(e,t){if(!t)return null;if(t.error)e.errors.push(t.error);const{comments:n,hasAnchor:s,hasTag:o}=resolveNodeProps(e.errors,t);if(s){const{anchors:n}=e;const i=t.anchor;const s=n.getNode(i);if(s)n.map[n.newName(i)]=s;n.map[i]=t}if(t.type===i.Type.ALIAS&&(s||o)){const n="An alias node must not specify any properties";e.errors.push(new i.YAMLSemanticError(t,n))}const a=resolveNodeValue(e,t);if(a){a.range=[t.range.start,t.range.end];if(e.options.keepCstNodes)a.cstNode=t;if(e.options.keepNodeTypes)a.type=t.type;const i=n.before.join("\n");if(i){a.commentBefore=a.commentBefore?`${a.commentBefore}\n${i}`:i}const s=n.after.join("\n");if(s)a.comment=a.comment?`${a.comment}\n${s}`:s}return t.resolved=a}function resolveMap(e,t){if(t.type!==i.Type.MAP&&t.type!==i.Type.FLOW_MAP){const n=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new i.YAMLSyntaxError(t,n));return null}const{comments:n,items:o}=t.type===i.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const a=new YAMLMap;a.items=o;resolveComments(a,n);let l=false;for(let n=0;n{if(e instanceof Alias){const{type:t}=e.source;if(t===i.Type.MAP||t===i.Type.FLOW_MAP)return false;return a="Merge nodes aliases can only point to maps"}return a="Merge nodes can only have Alias nodes as values"}));if(a)e.errors.push(new i.YAMLSemanticError(t,a))}else{for(let s=n+1;s{if(s.length===0)return false;const{start:o}=s[0];if(t&&o>t.valueRange.start)return false;if(n[o]!==i.Char.COMMENT)return false;for(let t=e;t0){n=new i.PlainValue(i.Type.PLAIN,[]);n.context={parent:u,src:u.context.src};const e=u.range.start+1;n.range={start:e,end:e};n.valueRange={start:e,end:e};if(typeof u.range.origStart==="number"){const e=u.range.origStart+1;n.range.origStart=n.range.origEnd=e;n.valueRange.origStart=n.valueRange.origEnd=e}}const l=new Pair(o,resolveNode(e,n));resolvePairComment(u,l);s.push(l);if(o&&typeof a==="number"){if(u.range.start>a+1024)e.errors.push(getLongKeyError(t,o))}o=undefined;a=null}break;default:if(o!==undefined)s.push(new Pair(o));o=resolveNode(e,u);a=u.range.start;if(u.error)e.errors.push(u.error);e:for(let n=l+1;;++n){const s=t.items[n];switch(s&&s.type){case i.Type.BLANK_LINE:case i.Type.COMMENT:continue e;case i.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new i.YAMLSemanticError(u,t));break e}}}if(u.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new i.YAMLSemanticError(u,t))}}}if(o!==undefined)s.push(new Pair(o));return{comments:n,items:s}}function resolveFlowMapItems(e,t){const n=[];const s=[];let o=undefined;let a=false;let l="{";for(let u=0;ue instanceof Pair&&e.key instanceof Collection))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new i.YAMLWarning(t,n))}t.resolved=o;return o}function resolveBlockSeqItems(e,t){const n=[];const s=[];for(let o=0;ol+1024)e.errors.push(getLongKeyError(t,a));const{src:s}=c.context;for(let t=l;t{"use strict";var i=n(5215);var s=n(4227);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=s.resolveString(e,t);if(typeof Buffer==="function"){return Buffer.from(n,"base64")}else if(typeof atob==="function"){const e=atob(n.replace(/[\n\r]/g,""));const t=new Uint8Array(e.length);for(let n=0;n{let u;if(typeof Buffer==="function"){u=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t1){const e="Each pair must have its own sequence indicator";throw new i.YAMLSemanticError(t,e)}const e=o.items[0]||new s.Pair;if(o.commentBefore)e.commentBefore=e.commentBefore?`${o.commentBefore}\n${e.commentBefore}`:o.commentBefore;if(o.comment)e.comment=e.comment?`${o.comment}\n${e.comment}`:o.comment;o=e}n.items[e]=o instanceof s.Pair?o:new s.Pair(o)}return n}function createPairs(e,t,n){const i=new s.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";for(const s of t){let t,o;if(Array.isArray(s)){if(s.length===2){t=s[0];o=s[1]}else throw new TypeError(`Expected [key, value] tuple: ${s}`)}else if(s&&s instanceof Object){const e=Object.keys(s);if(e.length===1){t=e[0];o=s[t]}else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else{t=s}const a=e.createPair(t,o,n);i.items.push(a)}return i}const a={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs};class YAMLOMap extends s.YAMLSeq{constructor(){super();i._defineProperty(this,"add",s.YAMLMap.prototype.add.bind(this));i._defineProperty(this,"delete",s.YAMLMap.prototype.delete.bind(this));i._defineProperty(this,"get",s.YAMLMap.prototype.get.bind(this));i._defineProperty(this,"has",s.YAMLMap.prototype.has.bind(this));i._defineProperty(this,"set",s.YAMLMap.prototype.set.bind(this));this.tag=YAMLOMap.tag}toJSON(e,t){const n=new Map;if(t&&t.onCreate)t.onCreate(n);for(const e of this.items){let i,o;if(e instanceof s.Pair){i=s.toJSON(e.key,"",t);o=s.toJSON(e.value,i,t)}else{i=s.toJSON(e,"",t)}if(n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}}i._defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,t){const n=parsePairs(e,t);const o=[];for(const{key:e}of n.items){if(e instanceof s.Scalar){if(o.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new i.YAMLSemanticError(t,e)}else{o.push(e.value)}}}return Object.assign(new YAMLOMap,n)}function createOMap(e,t,n){const i=createPairs(e,t,n);const s=new YAMLOMap;s.items=i.items;return s}const l={identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap};class YAMLSet extends s.YAMLMap{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof s.Pair?e:new s.Pair(e);const n=s.findPair(this.items,t.key);if(!n)this.items.push(t)}get(e,t){const n=s.findPair(this.items,e);return!t&&n instanceof s.Pair?n.key instanceof s.Scalar?n.key.value:n.key:n}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=s.findPair(this.items,e);if(n&&!t){this.items.splice(this.items.indexOf(n),1)}else if(!n&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);else throw new Error("Set items must all have null values")}}i._defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const n=s.resolveMap(e,t);if(!n.hasAllNullValues())throw new i.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,n)}function createSet(e,t,n){const i=new YAMLSet;for(const s of t)i.items.push(e.createPair(s,null,n));return i}const u={identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet};const parseSexagesimal=(e,t)=>{const n=t.split(":").reduce(((e,t)=>e*60+Number(t)),0);return e==="-"?-n:n};const stringifySexagesimal=({value:e})=>{if(isNaN(e)||!isFinite(e))return s.stringifyNumber(e);let t="";if(e<0){t="-";e=Math.abs(e)}const n=[e%60];if(e<60){n.unshift(0)}else{e=Math.round((e-n[0])/60);n.unshift(e%60);if(e>=60){e=Math.round((e-n[0])/60);n.unshift(e)}}return t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")};const c={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>parseSexagesimal(t,n.replace(/_/g,"")),stringify:stringifySexagesimal};const f={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>parseSexagesimal(t,n.replace(/_/g,"")),stringify:stringifySexagesimal};const p={identify:e=>e instanceof Date,default:true,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,t,n,i,s,o,a,l,u)=>{if(l)l=(l+"00").substr(1,3);let c=Date.UTC(t,n-1,i,s||0,o||0,a||0,l||0);if(u&&u!=="Z"){let e=parseSexagesimal(u[0],u.slice(1));if(Math.abs(e)<30)e*=60;c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function shouldWarn(e){const t=typeof process!=="undefined"&&process.env||{};if(e){if(typeof YAML_SILENCE_DEPRECATION_WARNINGS!=="undefined")return!YAML_SILENCE_DEPRECATION_WARNINGS;return!t.YAML_SILENCE_DEPRECATION_WARNINGS}if(typeof YAML_SILENCE_WARNINGS!=="undefined")return!YAML_SILENCE_WARNINGS;return!t.YAML_SILENCE_WARNINGS}function warn(e,t){if(shouldWarn(false)){const n=typeof process!=="undefined"&&process.emitWarning;if(n)n(e,t);else{console.warn(t?`${t}: ${e}`:e)}}}function warnFileDeprecation(e){if(shouldWarn(true)){const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");warn(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}}const h={};function warnOptionDeprecation(e,t){if(!h[e]&&shouldWarn(true)){h[e]=true;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".";warn(n,"DeprecationWarning")}}t.binary=o;t.floatTime=f;t.intTime=c;t.omap=l;t.pairs=a;t.set=u;t.timestamp=p;t.warn=warn;t.warnFileDeprecation=warnFileDeprecation;t.warnOptionDeprecation=warnOptionDeprecation},3552:(e,t,n)=>{e.exports=n(5065).YAML},1581:(e,t,n)=>{const i=n(2186);const s=n(1383).valid;const o=n(4492);e.exports=async(e,t)=>{let n,a,l;if(t){[n,a,l]=t.split(".");switch(e){case"major":n=parseInt(n,10)+1;a=0;l=0;break;case"minor":a=parseInt(a,10)+1;l=0;break;default:l=parseInt(l,10)+1}}else{let e=s(i.getInput("fallback-version"));if(e){[n,a,l]=e.split(".")}else{n=0;a=1;l=0}i.info(`The version could not be detected, using fallback version '${n}.${a}.${l}'.`)}const u=i.getInput("pre-changelog-generation");let c=`${n}.${a}.${l}`;if(u){const e=o(u);if(e&&e.preVersionGeneration){const t=await e.preVersionGeneration(c);if(t){i.info(`Using modified version "${t}"`);c=t}}}return c}},1749:(e,t,n)=>{const i=n(5747);const s=n(9461);const getChangelogStream=(e,t,n,i,o)=>s({preset:t,releaseCount:parseInt(i,10),tagPrefix:e,config:o},{version:n,currentTag:`${e}${n}`},{},o&&o.parserOpts,o&&o.writerOpts);e.exports=getChangelogStream;e.exports.generateStringChangelog=(e,t,n,i,s)=>new Promise(((o,a)=>{const l=getChangelogStream(e,t,n,i,s);let u="";l.on("data",(e=>{u+=e.toString()})).on("end",(()=>o(u)))}));e.exports.generateFileChangelog=(e,t,n,s,o,a)=>new Promise((l=>{const u=getChangelogStream(e,t,n,o,a);u.pipe(i.createWriteStream(s)).on("finish",l)}))},4881:(e,t,n)=>{const i=n(2186);const s=n(1514);const o=n(2357);const{GITHUB_REPOSITORY:a,GITHUB_REF:l,ENV:u}=process.env;const c=l.replace("refs/heads/","");e.exports=new class Git{commandsRun=[];constructor(){const e=i.getInput("github-token");i.setSecret(e);const t=i.getInput("git-user-name");const n=i.getInput("git-user-email");if(u==="dont-use-git"){this.exec=e=>{const t=`git ${e}`;console.log(`Skipping "${t}" because of test env`);if(!t.includes("git remote set-url origin")){this.commandsRun.push(t)}}}this.config("user.name",t);this.config("user.email",n);if(e){this.updateOrigin(`https://x-access-token:${e}@github.com/${a}.git`)}}exec=e=>new Promise((async(t,n)=>{let i="";const o={listeners:{stdout:e=>{i+=e.toString()}}};const a=await s.exec(`git ${e}`,null,o);if(a===0){t(i)}else{n(`Command "git ${e}" exited with code ${a}.`)}}));config=(e,t)=>this.exec(`config ${e} "${t}"`);add=e=>this.exec(`add ${e}`);commit=e=>this.exec(`commit -m "${e}"`);pull=async()=>{const e=["pull"];if(await this.isShallow()){e.push("--unshallow")}e.push("--tags");e.push(i.getInput("git-pull-method"));return this.exec(e.join(" "))};push=()=>this.exec(`push origin ${c} --follow-tags`);isShallow=async()=>{if(u==="dont-use-git"){return false}const e=await this.exec("rev-parse --is-shallow-repository");return e.trim().replace("\n","")==="true"};updateOrigin=e=>this.exec(`remote set-url origin ${e}`);createTag=e=>this.exec(`tag -a ${e} -m "${e}"`);testHistory=()=>{if(u==="dont-use-git"){const{EXPECTED_TAG:e,SKIPPED_COMMIT:t,EXPECTED_NO_PUSH:n}=process.env;const i=['git config user.name "Conventional Changelog Action"','git config user.email "conventional.changelog.action@github.com"',"git pull --tags --ff-only"];if(!t){i.push("git add .");i.push(`git commit -m "chore(release): ${e}"`)}i.push(`git tag -a ${e} -m "${e}"`);if(!n){i.push(`git push origin ${c} --follow-tags`)}o.deepStrictEqual(this.commandsRun,i)}}}},4492:(e,t,n)=>{const i=n(2186);const s=n(5622);const o=n(5747);e.exports=e=>{const t=s.resolve(process.cwd(),e);if(o.existsSync(t)){i.info(`Loading "${t}" script`);return require(t)}i.error(`Tried to load "${t}" script but it does not exists!`);return undefined}},3030:(e,t,n)=>{const i=n(2186);const s=n(5747);e.exports=class BaseVersioning{fileLocation=null;versionPath=null;newVersion=null;init=(e,t)=>{this.fileLocation=e;this.versionPath=t};read=()=>{if(s.existsSync(this.fileLocation)){return s.readFileSync(this.fileLocation,"utf8")}i.warning(`Tried to read "${this.fileLocation}" but file does not exist!`);return""};bump=e=>{throw new Error("Implement bump logic in class!")};update=e=>s.writeFileSync(this.fileLocation,e)}},1230:(e,t,n)=>{const i=n(2186);const s=n(2408);const o=n(3030);const a=n(1581);e.exports=class Git extends o{bump=e=>new Promise((t=>{const n=i.getInput("tag-prefix");s({tagPrefix:n},(async(i,s)=>{const o=s.length>0?s.shift().replace(n,""):null;this.newVersion=await a(e,o);t()}))}))}},6286:(e,t,n)=>{const i=n(757);const s=n(1230);const o=n(5731);const a=n(3636);e.exports=e=>{switch(e.toLowerCase()){case"json":return new i;case"yaml":case"yml":return new o;case"toml":return new a;case"git":return new s;default:return null}}},757:(e,t,n)=>{const i=n(2186);const s=n(7934);const o=n(3030);const a=n(1581);e.exports=class Json extends o{bump=async e=>{const t=this.read();let n;try{n=JSON.parse(t)}catch(e){i.startGroup(`Error when parsing the file '${this.fileLocation}'`);i.info(`File-Content: ${t}`);i.info(e);i.endGroup();n={}}const o=s.get(n,this.versionPath,null);this.newVersion=await a(e,o);i.info(`Bumped file "${this.fileLocation}" from "${o}" to "${this.newVersion}"`);s.set(n,this.versionPath,this.newVersion);this.update(JSON.stringify(n,null,2))}}},3636:(e,t,n)=>{const i=n(2186);const s=n(7934);const o=n(2901);const a=n(3030);const l=n(1581);e.exports=class Toml extends a{bump=async e=>{const t=this.read();const n=o.parse(t);const a=s.get(n,this.versionPath,null);this.newVersion=await l(e,a);if(a){const e=this.versionPath.split(".").pop();i.info(`Bumped file "${this.fileLocation}" from "${a}" to "${this.newVersion}"`);this.update(t.replace(`${e} = "${a}"`,`${e} = "${this.newVersion}"`))}else{s.set(n,this.versionPath,this.newVersion);this.update(o.stringify(n))}}}},5731:(e,t,n)=>{const i=n(2186);const s=n(7934);const o=n(3552);const a=n(3030);const l=n(1581);e.exports=class Yaml extends a{bump=async e=>{const t=this.read();const n=o.parse(t)||{};const a=s.get(n,this.versionPath,null);this.newVersion=await l(e,a);if(a){const e=this.versionPath.split(".").pop();i.info(`Bumped file "${this.fileLocation}" from "${a}" to "${this.newVersion}"`);this.update(t.replace(`${e}: '${a}'`,`${e}: '${this.newVersion}'`).replace(`${e}: "${a}"`,`${e}: "${this.newVersion}"`).replace(`${e}: ${a}`,`${e}: ${this.newVersion}`))}else{s.set(n,this.versionPath,this.newVersion);this.update(o.stringify(n))}}}},6035:e=>{"use strict";e.exports=JSON.parse('{"issue":"issue","commit":"commits","referenceActions":["close","closes","closed","closing","fix","fixes","fixed","fixing","resolve","resolves","resolved","resolving"],"issuePrefixes":["#"]}')},8560:e=>{"use strict";e.exports=JSON.parse('{"issue":"issues","commit":"commit","referenceActions":["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],"issuePrefixes":["#","gh-"]}')},130:e=>{"use strict";e.exports=JSON.parse('{"issue":"issues","commit":"commit","referenceActions":["close","closes","closed","closing","fix","fixes","fixed","fixing"],"issuePrefixes":["#"]}')},3991:e=>{"use strict";e.exports=JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16","async_hooks":">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],"buffer_ieee754":"< 0.9.7","buffer":true,"node:buffer":[">= 14.18 && < 15",">= 16"],"child_process":true,"node:child_process":[">= 14.18 && < 15",">= 16"],"cluster":true,"node:cluster":[">= 14.18 && < 15",">= 16"],"console":true,"node:console":[">= 14.18 && < 15",">= 16"],"constants":true,"node:constants":[">= 14.18 && < 15",">= 16"],"crypto":true,"node:crypto":[">= 14.18 && < 15",">= 16"],"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"node:dgram":[">= 14.18 && < 15",">= 16"],"diagnostics_channel":[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],"dns":true,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16","domain":">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],"events":true,"node:events":[">= 14.18 && < 15",">= 16"],"freelist":"< 6","fs":true,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],"_http_agent":">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],"_http_client":">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],"_http_common":">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],"_http_incoming":">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],"_http_outgoing":">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],"_http_server":">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],"http":true,"node:http":[">= 14.18 && < 15",">= 16"],"http2":">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],"https":true,"node:https":[">= 14.18 && < 15",">= 16"],"inspector":">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"_linklist":"< 8","module":true,"node:module":[">= 14.18 && < 15",">= 16"],"net":true,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12","os":true,"node:os":[">= 14.18 && < 15",">= 16"],"path":true,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16","perf_hooks":">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],"process":">= 1","node:process":[">= 14.18 && < 15",">= 16"],"punycode":true,"node:punycode":[">= 14.18 && < 15",">= 16"],"querystring":true,"node:querystring":[">= 14.18 && < 15",">= 16"],"readline":true,"node:readline":[">= 14.18 && < 15",">= 16"],"repl":true,"node:repl":[">= 14.18 && < 15",">= 16"],"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],"_stream_transform":">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],"_stream_wrap":">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],"_stream_passthrough":">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],"_stream_readable":">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],"_stream_writable":">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],"stream":true,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5","string_decoder":true,"node:string_decoder":[">= 14.18 && < 15",">= 16"],"sys":[">= 0.6 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"timers":true,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16","_tls_common":">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],"_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],"tls":true,"node:tls":[">= 14.18 && < 15",">= 16"],"trace_events":">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],"tty":true,"node:tty":[">= 14.18 && < 15",">= 16"],"url":true,"node:url":[">= 14.18 && < 15",">= 16"],"util":true,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8":">= 1","node:v8":[">= 14.18 && < 15",">= 16"],"vm":true,"node:vm":[">= 14.18 && < 15",">= 16"],"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],"zlib":true,"node:zlib":[">= 14.18 && < 15",">= 16"]}')},9043:e=>{"use strict";e.exports=JSON.parse('{"topLevel":{"dependancies":"dependencies","dependecies":"dependencies","depdenencies":"dependencies","devEependencies":"devDependencies","depends":"dependencies","dev-dependencies":"devDependencies","devDependences":"devDependencies","devDepenencies":"devDependencies","devdependencies":"devDependencies","repostitory":"repository","repo":"repository","prefereGlobal":"preferGlobal","hompage":"homepage","hampage":"homepage","autohr":"author","autor":"author","contributers":"contributors","publicationConfig":"publishConfig","script":"scripts"},"bugs":{"web":"url","name":"url"},"script":{"server":"start","tests":"test"}}')},8402:e=>{"use strict";e.exports=JSON.parse('{"repositories":"\'repositories\' (plural) Not supported. Please pick one as the \'repository\' field","missingRepository":"No repository field.","brokenGitUrl":"Probably broken git url: %s","nonObjectScripts":"scripts must be an object","nonStringScript":"script values must be string commands","nonArrayFiles":"Invalid \'files\' member","invalidFilename":"Invalid filename in \'files\' list: %s","nonArrayBundleDependencies":"Invalid \'bundleDependencies\' list. Must be array of package names","nonStringBundleDependency":"Invalid bundleDependencies member: %s","nonDependencyBundleDependency":"Non-dependency in bundleDependencies: %s","nonObjectDependencies":"%s field must be an object","nonStringDependency":"Invalid dependency: %s %s","deprecatedArrayDependencies":"specifying %s as array is deprecated","deprecatedModules":"modules field is deprecated","nonArrayKeywords":"keywords should be an array of strings","nonStringKeyword":"keywords should be an array of strings","conflictingName":"%s is also the name of a node core module.","nonStringDescription":"\'description\' field should be a string","missingDescription":"No description","missingReadme":"No README data","missingLicense":"No license field.","nonEmailUrlBugsString":"Bug string field must be url, email, or {email,url}","nonUrlBugsUrlField":"bugs.url field must be a string url. Deleted.","nonEmailBugsEmailField":"bugs.email field must be a string email. Deleted.","emptyNormalizedBugs":"Normalized value of bugs field is an empty object. Deleted.","nonUrlHomepage":"homepage field must be a string url. Deleted.","invalidLicense":"license should be a valid SPDX license expression","typo":"%s should probably be %s."}')},6659:e=>{"use strict";e.exports=JSON.parse('{"topLevel":{"dependancies":"dependencies","dependecies":"dependencies","depdenencies":"dependencies","devEependencies":"devDependencies","depends":"dependencies","dev-dependencies":"devDependencies","devDependences":"devDependencies","devDepenencies":"devDependencies","devdependencies":"devDependencies","repostitory":"repository","repo":"repository","prefereGlobal":"preferGlobal","hompage":"homepage","hampage":"homepage","autohr":"author","autor":"author","contributers":"contributors","publicationConfig":"publishConfig","script":"scripts"},"bugs":{"web":"url","name":"url"},"script":{"server":"start","tests":"test"}}')},4136:e=>{"use strict";e.exports=JSON.parse('{"repositories":"\'repositories\' (plural) Not supported. Please pick one as the \'repository\' field","missingRepository":"No repository field.","brokenGitUrl":"Probably broken git url: %s","nonObjectScripts":"scripts must be an object","nonStringScript":"script values must be string commands","nonArrayFiles":"Invalid \'files\' member","invalidFilename":"Invalid filename in \'files\' list: %s","nonArrayBundleDependencies":"Invalid \'bundleDependencies\' list. Must be array of package names","nonStringBundleDependency":"Invalid bundleDependencies member: %s","nonDependencyBundleDependency":"Non-dependency in bundleDependencies: %s","nonObjectDependencies":"%s field must be an object","nonStringDependency":"Invalid dependency: %s %s","deprecatedArrayDependencies":"specifying %s as array is deprecated","deprecatedModules":"modules field is deprecated","nonArrayKeywords":"keywords should be an array of strings","nonStringKeyword":"keywords should be an array of strings","conflictingName":"%s is also the name of a node core module.","nonStringDescription":"\'description\' field should be a string","missingDescription":"No description","missingReadme":"No README data","missingLicense":"No license field.","nonEmailUrlBugsString":"Bug string field must be url, email, or {email,url}","nonUrlBugsUrlField":"bugs.url field must be a string url. Deleted.","nonEmailBugsEmailField":"bugs.email field must be a string email. Deleted.","emptyNormalizedBugs":"Normalized value of bugs field is an empty object. Deleted.","nonUrlHomepage":"homepage field must be a string url. Deleted.","invalidLicense":"license should be a valid SPDX license expression","typo":"%s should probably be %s."}')},5537:e=>{"use strict";e.exports=JSON.parse('{"assert":true,"assert/strict":">= 15","async_hooks":">= 8","buffer_ieee754":"< 0.9.7","buffer":true,"child_process":true,"cluster":true,"console":true,"constants":true,"crypto":true,"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"diagnostics_channel":">= 15.1","dns":true,"dns/promises":">= 15","domain":">= 0.7.12","events":true,"freelist":"< 6","fs":true,"fs/promises":[">= 10 && < 10.1",">= 14"],"_http_agent":">= 0.11.1","_http_client":">= 0.11.1","_http_common":">= 0.11.1","_http_incoming":">= 0.11.1","_http_outgoing":">= 0.11.1","_http_server":">= 0.11.1","http":true,"http2":">= 8.8","https":true,"inspector":">= 8.0.0","_linklist":"< 8","module":true,"net":true,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12","os":true,"path":true,"path/posix":">= 15.3","path/win32":">= 15.3","perf_hooks":">= 8.5","process":">= 1","punycode":true,"querystring":true,"readline":true,"repl":true,"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","_stream_transform":">= 0.9.4","_stream_wrap":">= 1.4.1","_stream_passthrough":">= 0.9.4","_stream_readable":">= 0.9.4","_stream_writable":">= 0.9.4","stream":true,"stream/promises":">= 15","string_decoder":true,"sys":[">= 0.6 && < 0.7",">= 0.8"],"timers":true,"timers/promises":">= 15","_tls_common":">= 0.11.13","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","tls":true,"trace_events":">= 10","tty":true,"url":true,"util":true,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8":">= 1","vm":true,"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","zlib":true}')},9752:e=>{"use strict";e.exports=JSON.parse('["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"]')},4185:e=>{"use strict";e.exports=JSON.parse('["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","eCos-2.0","wxWindows"]')},2172:e=>{"use strict";e.exports=JSON.parse('["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","BlueOak-1.0.0","Borceux","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Condor-1.1","Crossword","CrystalStacker","Cube","D-FSL-1.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Entessa","ErlPL-1.1","Eurosym","FSFAP","FSFUL","FSFULLR","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","HPND","HPND-sell-variant","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IJG","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPNIC","JSON","JasPer-2.0","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-PL","MS-RL","MTLL","MakeIndex","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","QPL-1.0","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TU-Berlin-1.0","TU-Berlin-2.0","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.5","bzip2-1.0.6","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","mpich2","psfrag","psutils","xinetd","xpp","zlib-acknowledgement"]')},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1765:e=>{"use strict";e.exports=require("process")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},8213:e=>{"use strict";e.exports=require("timers")},4016:e=>{"use strict";e.exports=require("tls")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var n=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var i=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete __webpack_module_cache__[e]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{const e=__nccwpck_require__(2186);const t=__nccwpck_require__(7011);const n=__nccwpck_require__(5622);__nccwpck_require__(8143);const i=__nccwpck_require__(6286);const s=__nccwpck_require__(4881);const o=__nccwpck_require__(1749);const a=__nccwpck_require__(4492);async function handleVersioningByExtension(e,t,s,o){const a=i(e);if(a===null){throw new Error(`File extension "${e}" from file "${t}" is not supported`)}a.init(n.resolve(process.cwd(),t),s);await a.bump(o);return a}async function run(){try{const n=e.getInput("git-message");const i=e.getInput("git-user-name");const l=e.getInput("git-user-email");const u=e.getInput("git-push").toLowerCase()==="true";const c=e.getInput("tag-prefix");const f=!e.getInput("config-file-path")?e.getInput("preset"):"";const p=e.getInput("pre-commit");const h=e.getInput("output-file");const d=e.getInput("release-count");const m=e.getInput("version-file");const g=e.getInput("version-path");const y=e.getInput("skip-version-file").toLowerCase()==="true";const v=e.getInput("skip-commit").toLowerCase()==="true";const b=e.getInput("skip-on-empty").toLowerCase()==="true";const w=e.getInput("config-file-path");const S=e.getInput("pre-changelog-generation");e.info(`Using "${f}" preset`);e.info(`Using "${n}" as commit message`);e.info(`Using "${i}" as git user.name`);e.info(`Using "${l}" as git user.email`);e.info(`Using "${d}" release count`);e.info(`Using "${m}" as version file`);e.info(`Using "${g}" as version path`);e.info(`Using "${c}" as tag prefix`);e.info(`Using "${h}" as output file`);e.info(`Using "${w}" as config file`);if(p){e.info(`Using "${p}" as pre-commit script`)}if(S){e.info(`Using "${S}" as pre-changelog-generation script`)}e.info(`Skipping empty releases is "${b?"enabled":"disabled"}"`);e.info(`Skipping the update of the version file is "${y?"enabled":"disabled"}"`);e.info("Pull to make sure we have the full git history");await s.pull();const E=w&&a(w);t({preset:f,tagPrefix:c,config:E},(async(t,i)=>{if(t){e.setFailed(t.message);return}e.info(`Recommended release type: ${i.releaseType}`);if(i.reason){e.info(`Because: ${i.reason}`)}let l;if(y||v){e.info("Using GIT to determine the new version");const t=await handleVersioningByExtension("git",m,g,i.releaseType);l=t.newVersion}else{const t=m.split(",").map((e=>e.trim()));e.info(`Files to bump: ${t.join(", ")}`);const n=await Promise.all(t.map((t=>{const n=t.split(".").pop();e.info(`Bumping version to file "${t}" with extension "${n}"`);return handleVersioningByExtension(n,t,g,i.releaseType)})));l=n[0].newVersion}let w=`${c}${l}`;if(S){const t=a(S);if(t&&t.preTagGeneration){const n=await t.preTagGeneration(w);if(n){e.info(`Using modified tag "${n}"`);w=n}}}const _=await o.generateStringChangelog(c,f,l,1,E);e.info("Changelog generated");e.info(_);const O=_.split("\n").slice(3).join("\n").trim();if(b&&O===""){e.info("Generated changelog is empty and skip-on-empty has been activated so we skip this step");e.setOutput("skipped","true");return}e.info(`New version: ${l}`);if(h!=="false"){await o.generateFileChangelog(c,f,l,h,d,E)}if(!v){if(p){const e=a(p);if(e&&e.preCommit){await e.preCommit({tag:w,version:l})}}await s.add(".");await s.commit(n.replace("{version}",w))}await s.createTag(w);if(u){try{e.info("Push all changes");await s.push()}catch(t){console.error(t);e.setFailed(t);return}}else{e.info("We not going to push the GIT changes")}e.setOutput("changelog",_);e.setOutput("clean_changelog",O);e.setOutput("version",l);e.setOutput("tag",w);e.setOutput("skipped","false");try{s.testHistory()}catch(t){console.error(t);e.setFailed(t)}}))}catch(t){e.setFailed(t)}}run()})();module.exports=__webpack_exports__})();
\ No newline at end of file
+var i=n(4293);var s=i.Buffer;function copyProps(e,t){for(var n in e){t[n]=e[n]}}if(s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,n){return s(e,t,n)}SafeBuffer.prototype=Object.create(s.prototype);copyProps(s,SafeBuffer);SafeBuffer.from=function(e,t,n){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return s(e,t,n)};SafeBuffer.alloc=function(e,t,n){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=s(e);if(t!==undefined){if(typeof n==="string"){i.fill(t,n)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},1532:(e,t,n)=>{const i=Symbol("SemVer ANY");class Comparator{static get ANY(){return i}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}u("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===i){this.value=""}else{this.value=this.operator+this.semver.version}u("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=i}else{this.semver=new c(n[2],this.options.loose)}}toString(){return this.value}test(e){u("Comparator.test",e,this.options.loose);if(this.semver===i||e===i){return true}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new f(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new f(this.value,t).test(e.semver)}const n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const s=this.semver.version===e.semver.version;const o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const a=l(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const u=l(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&o||a||u}}e.exports=Comparator;const s=n(785);const{re:o,t:a}=n(9523);const l=n(5098);const u=n(427);const c=n(8088);const f=n(9828)},9828:(e,t,n)=>{class Range{constructor(e,t){t=o(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof a){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0)this.set=[e];else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const n=`parseRange:${t}:${e}`;const i=s.get(n);if(i)return i;const o=this.options.loose;const u=o?c[f.HYPHENRANGELOOSE]:c[f.HYPHENRANGE];e=e.replace(u,hyphenReplace(this.options.includePrerelease));l("hyphen replace",e);e=e.replace(c[f.COMPARATORTRIM],p);l("comparator trim",e,c[f.COMPARATORTRIM]);e=e.replace(c[f.TILDETRIM],h);e=e.replace(c[f.CARETTRIM],d);e=e.split(/\s+/).join(" ");const m=o?c[f.COMPARATORLOOSE]:c[f.COMPARATOR];const g=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options))).filter(this.options.loose?e=>!!e.match(m):()=>true).map((e=>new a(e,this.options)));const y=g.length;const v=new Map;for(const e of g){if(isNullSet(e))return[e];v.set(e.value,e)}if(v.size>1&&v.has(""))v.delete("");const b=[...v.values()];s.set(n,b);return b}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const i=e.slice();let s=i.pop();while(n&&i.length){n=i.every((e=>s.intersects(e,t)));s=i.pop()}return n};const parseComparator=(e,t)=>{l("comp",e,t);e=replaceCarets(e,t);l("caret",e);e=replaceTildes(e,t);l("tildes",e);e=replaceXRanges(e,t);l("xrange",e);e=replaceStars(e,t);l("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?c[f.TILDELOOSE]:c[f.TILDE];return e.replace(n,((t,n,i,s,o)=>{l("tilde",e,t,n,i,s,o);let a;if(isX(n)){a=""}else if(isX(i)){a=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(s)){a=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`}else if(o){l("replaceTilde pr",o);a=`>=${n}.${i}.${s}-${o} <${n}.${+i+1}.0-0`}else{a=`>=${n}.${i}.${s} <${n}.${+i+1}.0-0`}l("tilde return",a);return a}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{l("caret",e,t);const n=t.loose?c[f.CARETLOOSE]:c[f.CARET];const i=t.includePrerelease?"-0":"";return e.replace(n,((t,n,s,o,a)=>{l("caret",e,t,n,s,o,a);let u;if(isX(n)){u=""}else if(isX(s)){u=`>=${n}.0.0${i} <${+n+1}.0.0-0`}else if(isX(o)){if(n==="0"){u=`>=${n}.${s}.0${i} <${n}.${+s+1}.0-0`}else{u=`>=${n}.${s}.0${i} <${+n+1}.0.0-0`}}else if(a){l("replaceCaret pr",a);if(n==="0"){if(s==="0"){u=`>=${n}.${s}.${o}-${a} <${n}.${s}.${+o+1}-0`}else{u=`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`}}else{u=`>=${n}.${s}.${o}-${a} <${+n+1}.0.0-0`}}else{l("no pr");if(n==="0"){if(s==="0"){u=`>=${n}.${s}.${o}${i} <${n}.${s}.${+o+1}-0`}else{u=`>=${n}.${s}.${o}${i} <${n}.${+s+1}.0-0`}}else{u=`>=${n}.${s}.${o} <${+n+1}.0.0-0`}}l("caret return",u);return u}))};const replaceXRanges=(e,t)=>{l("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?c[f.XRANGELOOSE]:c[f.XRANGE];return e.replace(n,((n,i,s,o,a,u)=>{l("xRange",e,n,i,s,o,a,u);const c=isX(s);const f=c||isX(o);const p=f||isX(a);const h=p;if(i==="="&&h){i=""}u=t.includePrerelease?"-0":"";if(c){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&h){if(f){o=0}a=0;if(i===">"){i=">=";if(f){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(i==="<="){i="<";if(f){s=+s+1}else{o=+o+1}}if(i==="<")u="-0";n=`${i+s}.${o}.${a}${u}`}else if(f){n=`>=${s}.0.0${u} <${+s+1}.0.0-0`}else if(p){n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`}l("xRange return",n);return n}))};const replaceStars=(e,t)=>{l("replaceStars",e,t);return e.trim().replace(c[f.STAR],"")};const replaceGTE0=(e,t)=>{l("replaceGTE0",e,t);return e.trim().replace(c[t.includePrerelease?f.GTE0PRE:f.GTE0],"")};const hyphenReplace=e=>(t,n,i,s,o,a,l,u,c,f,p,h,d)=>{if(isX(i)){n=""}else if(isX(s)){n=`>=${i}.0.0${e?"-0":""}`}else if(isX(o)){n=`>=${i}.${s}.0${e?"-0":""}`}else if(a){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(c)){u=""}else if(isX(f)){u=`<${+c+1}.0.0-0`}else if(isX(p)){u=`<${c}.${+f+1}.0-0`}else if(h){u=`<=${c}.${f}.${p}-${h}`}else if(e){u=`<${c}.${f}.${+p+1}-0`}else{u=`<=${u}`}return`${n} ${u}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}},8088:(e,t,n)=>{const i=n(427);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=n(2293);const{re:a,t:l}=n(9523);const u=n(785);const{compareIdentifiers:c}=n(2463);class SemVer{constructor(e,t){t=u(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}i("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},8848:(e,t,n)=>{const i=n(5925);const clean=(e,t)=>{const n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},5098:(e,t,n)=>{const i=n(1898);const s=n(6017);const o=n(4123);const a=n(5522);const l=n(194);const u=n(7520);const cmp=(e,t,n,c)=>{switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return i(e,n,c);case"!=":return s(e,n,c);case">":return o(e,n,c);case">=":return a(e,n,c);case"<":return l(e,n,c);case"<=":return u(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},3466:(e,t,n)=>{const i=n(8088);const s=n(5925);const{re:o,t:a}=n(9523);const coerce=(e,t)=>{if(e instanceof i){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(o[a.COERCE])}else{let t;while((t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||t.index+t[0].length!==n.index+n[0].length){n=t}o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}o[a.COERCERTL].lastIndex=-1}if(n===null)return null;return s(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};e.exports=coerce},2156:(e,t,n)=>{const i=n(8088);const compareBuild=(e,t,n)=>{const s=new i(e,n);const o=new i(t,n);return s.compare(o)||s.compareBuild(o)};e.exports=compareBuild},2804:(e,t,n)=>{const i=n(4309);const compareLoose=(e,t)=>i(e,t,true);e.exports=compareLoose},4309:(e,t,n)=>{const i=n(8088);const compare=(e,t,n)=>new i(e,n).compare(new i(t,n));e.exports=compare},4297:(e,t,n)=>{const i=n(5925);const s=n(1898);const diff=(e,t)=>{if(s(e,t)){return null}else{const n=i(e);const s=i(t);const o=n.prerelease.length||s.prerelease.length;const a=o?"pre":"";const l=o?"prerelease":"";for(const e in n){if(e==="major"||e==="minor"||e==="patch"){if(n[e]!==s[e]){return a+e}}}return l}};e.exports=diff},1898:(e,t,n)=>{const i=n(4309);const eq=(e,t,n)=>i(e,t,n)===0;e.exports=eq},4123:(e,t,n)=>{const i=n(4309);const gt=(e,t,n)=>i(e,t,n)>0;e.exports=gt},5522:(e,t,n)=>{const i=n(4309);const gte=(e,t,n)=>i(e,t,n)>=0;e.exports=gte},900:(e,t,n)=>{const i=n(8088);const inc=(e,t,n,s)=>{if(typeof n==="string"){s=n;n=undefined}try{return new i(e,n).inc(t,s).version}catch(e){return null}};e.exports=inc},194:(e,t,n)=>{const i=n(4309);const lt=(e,t,n)=>i(e,t,n)<0;e.exports=lt},7520:(e,t,n)=>{const i=n(4309);const lte=(e,t,n)=>i(e,t,n)<=0;e.exports=lte},6688:(e,t,n)=>{const i=n(8088);const major=(e,t)=>new i(e,t).major;e.exports=major},8447:(e,t,n)=>{const i=n(8088);const minor=(e,t)=>new i(e,t).minor;e.exports=minor},6017:(e,t,n)=>{const i=n(4309);const neq=(e,t,n)=>i(e,t,n)!==0;e.exports=neq},5925:(e,t,n)=>{const{MAX_LENGTH:i}=n(2293);const{re:s,t:o}=n(9523);const a=n(8088);const l=n(785);const parse=(e,t)=>{t=l(t);if(e instanceof a){return e}if(typeof e!=="string"){return null}if(e.length>i){return null}const n=t.loose?s[o.LOOSE]:s[o.FULL];if(!n.test(e)){return null}try{return new a(e,t)}catch(e){return null}};e.exports=parse},2866:(e,t,n)=>{const i=n(8088);const patch=(e,t)=>new i(e,t).patch;e.exports=patch},6014:(e,t,n)=>{const i=n(5925);const prerelease=(e,t)=>{const n=i(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},6417:(e,t,n)=>{const i=n(4309);const rcompare=(e,t,n)=>i(t,e,n);e.exports=rcompare},8701:(e,t,n)=>{const i=n(2156);const rsort=(e,t)=>e.sort(((e,n)=>i(n,e,t)));e.exports=rsort},6055:(e,t,n)=>{const i=n(9828);const satisfies=(e,t,n)=>{try{t=new i(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},1426:(e,t,n)=>{const i=n(2156);const sort=(e,t)=>e.sort(((e,n)=>i(e,n,t)));e.exports=sort},9601:(e,t,n)=>{const i=n(5925);const valid=(e,t)=>{const n=i(e,t);return n?n.version:null};e.exports=valid},1383:(e,t,n)=>{const i=n(9523);e.exports={re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:n(2293).SEMVER_SPEC_VERSION,SemVer:n(8088),compareIdentifiers:n(2463).compareIdentifiers,rcompareIdentifiers:n(2463).rcompareIdentifiers,parse:n(5925),valid:n(9601),clean:n(8848),inc:n(900),diff:n(4297),major:n(6688),minor:n(8447),patch:n(2866),prerelease:n(6014),compare:n(4309),rcompare:n(6417),compareLoose:n(2804),compareBuild:n(2156),sort:n(1426),rsort:n(8701),gt:n(4123),lt:n(194),eq:n(1898),neq:n(6017),gte:n(5522),lte:n(7520),cmp:n(5098),coerce:n(3466),Comparator:n(1532),Range:n(9828),satisfies:n(6055),toComparators:n(2706),maxSatisfying:n(579),minSatisfying:n(832),minVersion:n(4179),validRange:n(2098),outside:n(420),gtr:n(9380),ltr:n(3323),intersects:n(7008),simplifyRange:n(5297),subset:n(7863)}},2293:e=>{const t="2.0.0";const n=256;const i=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:n,MAX_SAFE_INTEGER:i,MAX_SAFE_COMPONENT_LENGTH:s}},427:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},2463:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{const i=t.test(e);const s=t.test(n);if(i&&s){e=+e;n=+n}return e===n?0:i&&!s?-1:s&&!i?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},785:e=>{const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},9523:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:i}=n(2293);const s=n(427);t=e.exports={};const o=t.re=[];const a=t.src=[];const l=t.t={};let u=0;const createToken=(e,t,n)=>{const i=u++;s(i,t);l[e]=i;a[i]=t;o[i]=new RegExp(t,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${a[l.NUMERICIDENTIFIER]})\\.`+`(${a[l.NUMERICIDENTIFIER]})\\.`+`(${a[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${a[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${a[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${a[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${a[l.NUMERICIDENTIFIER]}|${a[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${a[l.NUMERICIDENTIFIERLOOSE]}|${a[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${a[l.PRERELEASEIDENTIFIER]}(?:\\.${a[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${a[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${a[l.BUILDIDENTIFIER]}(?:\\.${a[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${a[l.MAINVERSION]}${a[l.PRERELEASE]}?${a[l.BUILD]}?`);createToken("FULL",`^${a[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${a[l.MAINVERSIONLOOSE]}${a[l.PRERELEASELOOSE]}?${a[l.BUILD]}?`);createToken("LOOSE",`^${a[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${a[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${a[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${a[l.XRANGEIDENTIFIER]})`+`(?:\\.(${a[l.XRANGEIDENTIFIER]})`+`(?:\\.(${a[l.XRANGEIDENTIFIER]})`+`(?:${a[l.PRERELEASE]})?${a[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${a[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${a[l.PRERELEASELOOSE]})?${a[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${a[l.GTLT]}\\s*${a[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${a[l.GTLT]}\\s*${a[l.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${i}})`+`(?:\\.(\\d{1,${i}}))?`+`(?:\\.(\\d{1,${i}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",a[l.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${a[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${a[l.LONETILDE]}${a[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${a[l.LONETILDE]}${a[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${a[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${a[l.LONECARET]}${a[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${a[l.LONECARET]}${a[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${a[l.GTLT]}\\s*(${a[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]}|${a[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${a[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${a[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${a[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${a[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},9380:(e,t,n)=>{const i=n(420);const gtr=(e,t,n)=>i(e,t,">",n);e.exports=gtr},7008:(e,t,n)=>{const i=n(9828);const intersects=(e,t,n)=>{e=new i(e,n);t=new i(t,n);return e.intersects(t)};e.exports=intersects},3323:(e,t,n)=>{const i=n(420);const ltr=(e,t,n)=>i(e,t,"<",n);e.exports=ltr},579:(e,t,n)=>{const i=n(8088);const s=n(9828);const maxSatisfying=(e,t,n)=>{let o=null;let a=null;let l=null;try{l=new s(t,n)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!o||a.compare(e)===-1){o=e;a=new i(o,n)}}}));return o};e.exports=maxSatisfying},832:(e,t,n)=>{const i=n(8088);const s=n(9828);const minSatisfying=(e,t,n)=>{let o=null;let a=null;let l=null;try{l=new s(t,n)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!o||a.compare(e)===1){o=e;a=new i(o,n)}}}));return o};e.exports=minSatisfying},4179:(e,t,n)=>{const i=n(8088);const s=n(9828);const o=n(4123);const minVersion=(e,t)=>{e=new s(e,t);let n=new i("0.0.0");if(e.test(n)){return n}n=new i("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t{const t=new i(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!a||o(t,a)){a=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(a&&(!n||o(n,a)))n=a}if(n&&e.test(n)){return n}return null};e.exports=minVersion},420:(e,t,n)=>{const i=n(8088);const s=n(1532);const{ANY:o}=s;const a=n(9828);const l=n(6055);const u=n(4123);const c=n(194);const f=n(7520);const p=n(5522);const outside=(e,t,n,h)=>{e=new i(e,h);t=new a(t,h);let d,m,g,y,v;switch(n){case">":d=u;m=f;g=c;y=">";v=">=";break;case"<":d=c;m=p;g=u;y="<";v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(e,t,h)){return false}for(let n=0;n{if(e.semver===o){e=new s(">=0.0.0")}a=a||e;l=l||e;if(d(e.semver,a.semver,h)){a=e}else if(g(e.semver,l.semver,h)){l=e}}));if(a.operator===y||a.operator===v){return false}if((!l.operator||l.operator===y)&&m(e,l.semver)){return false}else if(l.operator===v&&g(e,l.semver)){return false}}return true};e.exports=outside},5297:(e,t,n)=>{const i=n(6055);const s=n(4309);e.exports=(e,t,n)=>{const o=[];let a=null;let l=null;const u=e.sort(((e,t)=>s(e,t,n)));for(const e of u){const s=i(e,t,n);if(s){l=e;if(!a)a=e}else{if(l){o.push([a,l])}l=null;a=null}}if(a)o.push([a,null]);const c=[];for(const[e,t]of o){if(e===t)c.push(e);else if(!t&&e===u[0])c.push("*");else if(!t)c.push(`>=${e}`);else if(e===u[0])c.push(`<=${t}`);else c.push(`${e} - ${t}`)}const f=c.join(" || ");const p=typeof t.raw==="string"?t.raw:String(t);return f.length{const i=n(9828);const s=n(1532);const{ANY:o}=s;const a=n(6055);const l=n(4309);const subset=(e,t,n={})=>{if(e===t)return true;e=new i(e,n);t=new i(t,n);let s=false;e:for(const i of e.set){for(const e of t.set){const t=simpleSubset(i,e,n);s=s||t!==null;if(t)continue e}if(s)return false}return true};const simpleSubset=(e,t,n)=>{if(e===t)return true;if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o)return true;else if(n.includePrerelease)e=[new s(">=0.0.0-0")];else e=[new s(">=0.0.0")]}if(t.length===1&&t[0].semver===o){if(n.includePrerelease)return true;else t=[new s(">=0.0.0")]}const i=new Set;let u,c;for(const t of e){if(t.operator===">"||t.operator===">=")u=higherGT(u,t,n);else if(t.operator==="<"||t.operator==="<=")c=lowerLT(c,t,n);else i.add(t.semver)}if(i.size>1)return null;let f;if(u&&c){f=l(u.semver,c.semver,n);if(f>0)return null;else if(f===0&&(u.operator!==">="||c.operator!=="<="))return null}for(const e of i){if(u&&!a(e,String(u),n))return null;if(c&&!a(e,String(c),n))return null;for(const i of t){if(!a(e,String(i),n))return false}return true}let p,h;let d,m;let g=c&&!n.includePrerelease&&c.semver.prerelease.length?c.semver:false;let y=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:false;if(g&&g.prerelease.length===1&&c.operator==="<"&&g.prerelease[0]===0){g=false}for(const e of t){m=m||e.operator===">"||e.operator===">=";d=d||e.operator==="<"||e.operator==="<=";if(u){if(y){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch){y=false}}if(e.operator===">"||e.operator===">="){p=higherGT(u,e,n);if(p===e&&p!==u)return false}else if(u.operator===">="&&!a(u.semver,String(e),n))return false}if(c){if(g){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch){g=false}}if(e.operator==="<"||e.operator==="<="){h=lowerLT(c,e,n);if(h===e&&h!==c)return false}else if(c.operator==="<="&&!a(c.semver,String(e),n))return false}if(!e.operator&&(c||u)&&f!==0)return false}if(u&&d&&!c&&f!==0)return false;if(c&&m&&!u&&f!==0)return false;if(y||g)return false;return true};const higherGT=(e,t,n)=>{if(!e)return t;const i=l(e.semver,t.semver,n);return i>0?e:i<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e)return t;const i=l(e.semver,t.semver,n);return i<0?e:i>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},2706:(e,t,n)=>{const i=n(9828);const toComparators=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},2098:(e,t,n)=>{const i=n(9828);const validRange=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}};e.exports=validRange},6375:(e,t,n)=>{var i=n(2344);var s=Object.prototype.hasOwnProperty;var o=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=o?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var n=new ArraySet;for(var i=0,s=e.length;i=0){return t}}else{var n=i.toSetString(e);if(s.call(this._set,n)){return this._set[n]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e{var i=n(6156);var s=5;var o=1<>1;return t?-n:n}t.encode=function base64VLQ_encode(e){var t="";var n;var o=toVLQSigned(e);do{n=o&a;o>>>=s;if(o>0){n|=l}t+=i.encode(n)}while(o>0);return t};t.decode=function base64VLQ_decode(e,t,n){var o=e.length;var u=0;var c=0;var f,p;do{if(t>=o){throw new Error("Expected more digits in base 64 VLQ value.")}p=i.decode(e.charCodeAt(t++));if(p===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}f=!!(p&l);p&=a;u=u+(p<{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,n,i,s,o,a){var l=Math.floor((n-e)/2)+e;var u=o(i,s[l],true);if(u===0){return l}else if(u>0){if(n-l>1){return recursiveSearch(l,n,i,s,o,a)}if(a==t.LEAST_UPPER_BOUND){return n1){return recursiveSearch(e,l,i,s,o,a)}if(a==t.LEAST_UPPER_BOUND){return l}else{return e<0?-1:e}}}t.search=function search(e,n,i,s){if(n.length===0){return-1}var o=recursiveSearch(-1,n.length,e,n,i,s||t.GREATEST_LOWER_BOUND);if(o<0){return-1}while(o-1>=0){if(i(n[o],n[o-1],true)!==0){break}--o}return o}},6817:(e,t,n)=>{var i=n(2344);function generatedPositionAfter(e,t){var n=e.generatedLine;var s=t.generatedLine;var o=e.generatedColumn;var a=t.generatedColumn;return s>n||s==n&&a>=o||i.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(i.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},3254:(e,t)=>{function swap(e,t,n){var i=e[t];e[t]=e[n];e[n]=i}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,i){if(n{var i;var s=n(2344);var o=n(3600);var a=n(6375).I;var l=n(5807);var u=n(3254).U;function SourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=s.parseSourceMapInput(e)}return n.sections!=null?new IndexedSourceMapConsumer(n,t):new BasicSourceMapConsumer(n,t)}SourceMapConsumer.fromSourceMap=function(e,t){return BasicSourceMapConsumer.fromSourceMap(e,t)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,t){var n=e.charAt(t);return n===";"||n===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,t,n){var i=t||null;var o=n||SourceMapConsumer.GENERATED_ORDER;var a;switch(o){case SourceMapConsumer.GENERATED_ORDER:a=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;a.map((function(e){var t=e.source===null?null:this._sources.at(e.source);t=s.computeSourceURL(l,t,this._sourceMapURL);return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}}),this).forEach(e,i)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var t=s.getArg(e,"line");var n={source:s.getArg(e,"source"),originalLine:t,originalColumn:s.getArg(e,"column",0)};n.source=this._findSourceIndex(n.source);if(n.source<0){return[]}var i=[];var a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(a>=0){var l=this._originalMappings[a];if(e.column===undefined){var u=l.originalLine;while(l&&l.originalLine===u){i.push({line:s.getArg(l,"generatedLine",null),column:s.getArg(l,"generatedColumn",null),lastColumn:s.getArg(l,"lastGeneratedColumn",null)});l=this._originalMappings[++a]}}else{var c=l.originalColumn;while(l&&l.originalLine===t&&l.originalColumn==c){i.push({line:s.getArg(l,"generatedLine",null),column:s.getArg(l,"generatedColumn",null),lastColumn:s.getArg(l,"lastGeneratedColumn",null)});l=this._originalMappings[++a]}}}return i};t.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=s.parseSourceMapInput(e)}var i=s.getArg(n,"version");var o=s.getArg(n,"sources");var l=s.getArg(n,"names",[]);var u=s.getArg(n,"sourceRoot",null);var c=s.getArg(n,"sourcesContent",null);var f=s.getArg(n,"mappings");var p=s.getArg(n,"file",null);if(i!=this._version){throw new Error("Unsupported version: "+i)}if(u){u=s.normalize(u)}o=o.map(String).map(s.normalize).map((function(e){return u&&s.isAbsolute(u)&&s.isAbsolute(e)?s.relative(u,e):e}));this._names=a.fromArray(l.map(String),true);this._sources=a.fromArray(o,true);this._absoluteSources=this._sources.toArray().map((function(e){return s.computeSourceURL(u,e,t)}));this.sourceRoot=u;this.sourcesContent=c;this._mappings=f;this._sourceMapURL=t;this.file=p}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null){t=s.relative(this.sourceRoot,t)}if(this._sources.has(t)){return this._sources.indexOf(t)}var n;for(n=0;n1){v.source=c+w[1];c+=w[1];v.originalLine=o+w[2];o=v.originalLine;v.originalLine+=1;v.originalColumn=a+w[3];a=v.originalColumn;if(w.length>4){v.name=f+w[4];f+=w[4]}}y.push(v);if(typeof v.originalLine==="number"){g.push(v)}}}u(y,s.compareByGeneratedPositionsDeflated);this.__generatedMappings=y;u(g,s.compareByOriginalPositions);this.__originalMappings=g};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,t,n,i,s,a){if(e[n]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[n])}if(e[i]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[i])}return o.search(e,t,s,a)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=s.getArg(i,"source",null);if(o!==null){o=this._sources.at(o);o=s.computeSourceURL(this.sourceRoot,o,this._sourceMapURL)}var a=s.getArg(i,"name",null);if(a!==null){a=this._names.at(a)}return{source:o,line:s.getArg(i,"originalLine",null),column:s.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return e==null}))};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,t){if(!this.sourcesContent){return null}var n=this._findSourceIndex(e);if(n>=0){return this.sourcesContent[n]}var i=e;if(this.sourceRoot!=null){i=s.relative(this.sourceRoot,i)}var o;if(this.sourceRoot!=null&&(o=s.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a)){return this.sourcesContent[this._sources.indexOf(a)]}if((!o.path||o.path=="/")&&this._sources.has("/"+i)){return this.sourcesContent[this._sources.indexOf("/"+i)]}}if(t){return null}else{throw new Error('"'+i+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var t=s.getArg(e,"source");t=this._findSourceIndex(t);if(t<0){return{line:null,column:null,lastColumn:null}}var n={source:t,originalLine:s.getArg(e,"line"),originalColumn:s.getArg(e,"column")};var i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source){return{line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};i=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=s.parseSourceMapInput(e)}var i=s.getArg(n,"version");var o=s.getArg(n,"sections");if(i!=this._version){throw new Error("Unsupported version: "+i)}this._sources=new a;this._names=new a;var l={line:-1,column:0};this._sections=o.map((function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var n=s.getArg(e,"offset");var i=s.getArg(n,"line");var o=s.getArg(n,"column");if(i{var i=n(5807);var s=n(2344);var o=n(6375).I;var a=n(6817).H;function SourceMapGenerator(e){if(!e){e={}}this._file=s.getArg(e,"file",null);this._sourceRoot=s.getArg(e,"sourceRoot",null);this._skipValidation=s.getArg(e,"skipValidation",false);this._sources=new o;this._names=new o;this._mappings=new a;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var n=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping((function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){i.source=e.source;if(t!=null){i.source=s.relative(t,i.source)}i.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){i.name=e.name}}n.addMapping(i)}));e.sources.forEach((function(i){var o=i;if(t!==null){o=s.relative(t,i)}if(!n._sources.has(o)){n._sources.add(o)}var a=e.sourceContentFor(i);if(a!=null){n.setSourceContent(i,a)}}));return n};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=s.getArg(e,"generated");var n=s.getArg(e,"original",null);var i=s.getArg(e,"source",null);var o=s.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,n,i,o)}if(i!=null){i=String(i);if(!this._sources.has(i)){this._sources.add(i)}}if(o!=null){o=String(o);if(!this._names.has(o)){this._names.add(o)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var n=e;if(this._sourceRoot!=null){n=s.relative(this._sourceRoot,n)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[s.toSetString(n)]=t}else if(this._sourcesContents){delete this._sourcesContents[s.toSetString(n)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,n){var i=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}i=e.file}var a=this._sourceRoot;if(a!=null){i=s.relative(a,i)}var l=new o;var u=new o;this._mappings.unsortedForEach((function(t){if(t.source===i&&t.originalLine!=null){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(o.source!=null){t.source=o.source;if(n!=null){t.source=s.join(n,t.source)}if(a!=null){t.source=s.relative(a,t.source)}t.originalLine=o.line;t.originalColumn=o.column;if(o.name!=null){t.name=o.name}}}var c=t.source;if(c!=null&&!l.has(c)){l.add(c)}var f=t.name;if(f!=null&&!u.has(f)){u.add(f)}}),this);this._sources=l;this._names=u;e.sources.forEach((function(t){var i=e.sourceContentFor(t);if(i!=null){if(n!=null){t=s.join(n,t)}if(a!=null){t=s.relative(a,t)}this.setSourceContent(t,i)}}),this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,n,i){if(t&&typeof t.line!=="number"&&typeof t.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!i){return}else if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:i}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var n=0;var o=0;var a=0;var l=0;var u="";var c;var f;var p;var h;var d=this._mappings.toArray();for(var m=0,g=d.length;m0){if(!s.compareByGeneratedPositionsInflated(f,d[m-1])){continue}c+=","}}c+=i.encode(f.generatedColumn-e);e=f.generatedColumn;if(f.source!=null){h=this._sources.indexOf(f.source);c+=i.encode(h-l);l=h;c+=i.encode(f.originalLine-1-o);o=f.originalLine-1;c+=i.encode(f.originalColumn-n);n=f.originalColumn;if(f.name!=null){p=this._names.indexOf(f.name);c+=i.encode(p-a);a=p}}u+=c}return u};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents){return null}if(t!=null){e=s.relative(t,e)}var n=s.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.SourceMapGenerator=SourceMapGenerator},2616:(e,t,n)=>{var i=n(9425).SourceMapGenerator;var s=n(2344);var o=/(\r?\n)/;var a=10;var l="$$$isSourceNode$$$";function SourceNode(e,t,n,i,s){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=n==null?null:n;this.name=s==null?null:s;this[l]=true;if(i!=null)this.add(i)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,t,n){var i=new SourceNode;var a=e.split(o);var l=0;var shiftNextLine=function(){var e=getNextLine();var t=getNextLine()||"";return e+t;function getNextLine(){return l=0;t--){this.prepend(e[t])}}else if(e[l]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var t;for(var n=0,i=this.children.length;n0){t=[];for(n=0;n