1(self.webpackChunk=self.webpackChunk||[]).push([[64747],{253(e,t,r){"use strict";e.exports=n;let s=r(94383),i=r(42354);function n(e,t){t||(t={});let r=0,n=t.blocksize||40960,o=new s;return new Promise((e,t)=>{setImmediate(a,r,n,e,t)});function a(t,r,s,n){if(t>=e.length)try{return s(o.finish())}catch(t){return n(i(t,e))}try{o.parse(e.slice(t,t+r)),setImmediate(a,t+r,r,s,n)}catch(t){n(i(t,e))}}}},3263(e,t,r){"use strict";let s=r(87738);e.exports=(e,t)=>{let r=s(e,t);return r?r.version:null}},4496(e,t,r){"use strict";let s=r(88917);e.exports=(e,t,r)=>0>s(e,t,r)},4786(e,t,r){"use strict";let s=r(56779);e.exports=(e,t,r,i,n)=>{"string"==typeof r&&(n=i,i=r,r=void 0);try{return new s(e instanceof s?e.version:e,r).inc(t,i,n).version}catch(e){return null}}},6012(e,t,r){"use strict";let s=r(69989),i=r.g.Date;class n extends i{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${s(2,this.getUTCMonth()+1)}-${s(2,this.getUTCDate())}`}}e.exports=e=>{let t=new n(e);if(!isNaN(t))return t;throw TypeError("Invalid Datetime")}},7540(e){"use strict";class t{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},8432(e,t,r){"use strict";let s=r(82033);e.exports=(e,t,r)=>s(e,t,"<",r)},9525(e){"use strict";let t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;let s=t.test(e),i=t.test(r);return s&&i&&(e*=1,r*=1),e===r?0:s&&!i?-1:i&&!s?1:e<r?-1:1},s=(e,t)=>r(t,e);e.exports={compareIdentifiers:r,rcompareIdentifiers:s}},9657(e,t,r){"use strict";let s=r(82302);e.exports=(e,t,r)=>(e=new s(e,r),t=new s(t,r),e.intersects(t,r))},10872(e,t,r){"use strict";let s=r(70527),i=r(52445),n=r(56779),o=r(82388),a=r(31089),l=r(84492),c=r(12567),h=r(4786),u=r(37575),p=r(16431),f=r(27435),d=r(34788),g=r(59090),m=r(88917),y=r(31261),v=r(21210),b=r(92640),w=r(43904),E=r(93480),x=r(74951),k=r(4496),S=r(71514),N=r(54942),O=r(27364),$=r(35933),I=r(70902),A=r(33385),T=r(78195),L=r(82302),R=r(22747),j=r(37038),C=r(72761),P=r(20515),D=r(95978),M=r(89361),F=r(69272),_=r(21636),U=r(67645),B=r(9657);e.exports={parse:a,valid:l,clean:c,inc:h,diff:u,major:p,minor:f,patch:d,prerelease:g,compare:m,rcompare:y,compareLoose:v,compareBuild:b,sort:w,rsort:E,gt:x,lt:k,eq:S,neq:N,gte:O,lte:$,cmp:I,coerce:A,Comparator:T,Range:L,satisfies:R,toComparators:j,maxSatisfying:C,minSatisfying:P,minVersion:D,validRange:M,outside:F,gtr:_,ltr:U,intersects:B,simplifyRange:r(73660),subset:r(88129),SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},12567(e,t,r){"use strict";let s=r(31089);e.exports=(e,t)=>{let r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},13344(e,t,r){"use strict";let s=r(87738);e.exports=(e,t)=>{let r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},14768(e,t,r){"use strict";let s=r(96262),i=r(87738),{safeRe:n,t:o}=r(41680);e.exports=(e,t)=>{if(e instanceof s)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let s,i=t.includePrerelease?n[o.COERCERTLFULL]:n[o.COERCERTL];for(;(s=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),i.lastIndex=s.index+s[1].length+s[2].length;i.lastIndex=-1}else r=e.match(t.includePrerelease?n[o.COERCEFULL]:n[o.COERCE]);if(null===r)return null;let a=r[2],l=r[3]||"0",c=r[4]||"0",h=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${a}.${l}.${c}${h}${u}`,t)}},15373(e,t,r){"use strict";let s=r(63623),i=r(95477),n=r(31694),o=r(98327),a=r(27665),l=r(32658);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return s(e,r,c);case"!=":return i(e,r,c);case">":return n(e,r,c);case">=":return o(e,r,c);case"<":return a(e,r,c);case"<=":return l(e,r,c);default:throw TypeError(`Invalid operator: ${t}`)}}},16390(e,t,r){"use strict";let s=r(87738);e.exports=(e,t)=>{let r=s(e,null,!0),i=s(t,null,!0),n=r.compare(i);if(0===n)return null;let o=n>0,a=o?r:i,l=o?i:r,c=!!a.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(a))return l.minor&&!l.patch?"minor":"patch"}let h=c?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},16431(e,t,r){"use strict";let s=r(56779);e.exports=(e,t)=>new s(e,t).major},17516(e,t,r){"use strict";e.exports=r(75756),e.exports.async=r(253),e.exports.stream=r(72377),e.exports.prettyError=r(42354)},19489(e,t,r){"use strict";let s=r(96262);e.exports=(e,t,r,i,n)=>{"string"==typeof r&&(n=i,i=r,r=void 0);try{return new s(e instanceof s?e.version:e,r).inc(t,i,n).version}catch(e){return null}}},20110(e,t,r){"use strict";let s=r(22717),i=r(73274),{ANY:n}=i,o=r(53376),a=r(24774),l=(e,t,r={})=>
1{if(e===t)return!0;e=new s(e,r),t=new s(t,r);let i=!1;e:for(let s of e.set){for(let e of t.set){let t=u(s,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0},c=[new i(">=0.0.0-0")],h=[new i(">=0.0.0")],u=(e,t,r)=>{let s,i,l,u,d,g,m;if(e===t)return!0;if(1===e.length&&e[0].semver===n)if(1===t.length&&t[0].semver===n)return!0;else e=r.includePrerelease?c:h;if(1===t.length&&t[0].semver===n)if(r.includePrerelease)return!0;else t=h;let y=new Set;for(let t of e)">"===t.operator||">="===t.operator?s=p(s,t,r):"<"===t.operator||"<="===t.operator?i=f(i,t,r):y.add(t.semver);if(y.size>1)return null;if(s&&i&&((l=a(s.semver,i.semver,r))>0||0===l&&(">="!==s.operator||"<="!==i.operator)))return null;for(let e of y){if(s&&!o(e,String(s),r)||i&&!o(e,String(i),r))return null;for(let s of t)if(!o(e,String(s),r))return!1;return!0}let v=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,b=!!s&&!r.includePrerelease&&!!s.semver.prerelease.length&&s.semver;for(let e of(v&&1===v.prerelease.length&&"<"===i.operator&&0===v.prerelease[0]&&(v=!1),t)){if(m=m||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,s){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if((u=p(s,e,r))===e&&u!==s)return!1}else if(">="===s.operator&&!o(s.semver,String(e),r))return!1}if(i){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if((d=f(i,e,r))===e&&d!==i)return!1}else if("<="===i.operator&&!o(i.semver,String(e),r))return!1}if(!e.operator&&(i||s)&&0!==l)return!1}return(!s||!g||!!i||0===l)&&(!i||!m||!!s||0===l)&&!b&&!v&&!0},p=(e,t,r)=>{if(!e)return t;let s=a(e.semver,t.semver,r);return s>0?e:s<0||">"===t.operator&&">="===e.operator?t:e},f=(e,t,r)=>{if(!e)return t;let s=a(e.semver,t.semver,r);return s<0?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=l},20515(e,t,r){"use strict";let s=r(56779),i=r(82302);e.exports=(e,t,r)=>{let n=null,o=null,a=null;try{a=new i(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(!n||1===o.compare(e))&&(o=new s(n=e,r))}),n}},21210(e,t,r){"use strict";let s=r(88917);e.exports=(e,t)=>s(e,t,!0)},21636(e,t,r){"use strict";let s=r(69272);e.exports=(e,t,r)=>s(e,t,">",r)},22717(e,t,r){"use strict";let s=/\s+/g;class i{constructor(e,t){if(t=o(t),e instanceof i)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else return new i(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(s," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&g)|(this.options.loose&&m))+":"+e,r=n.get(t);if(r)return r;let s=this.options.loose,i=s?h[u.HYPHENRANGELOOSE]:h[u.HYPHENRANGE];l("hyphen replace",e=e.replace(i,T(this.options.includePrerelease))),l("comparator trim",e=e.replace(h[u.COMPARATORTRIM],p)),l("tilde trim",e=e.replace(h[u.TILDETRIM],f)),l("caret trim",e=e.replace(h[u.CARETTRIM],d));let o=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>A(e,this.options));s&&(o=o.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(h[u.COMPARATORLOOSE])))),l("range list",o);let c=new Map;for(let e of o.map(e=>new a(e,this.options))){if(y(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");let v=[...c.values()];return n.set(t,v),v}intersects(e,t){if(!(e instanceof i))throw TypeError("a Range is required");return this.set.some(r=>b(r,t)&&e.set.some(e=>b(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}
1e.exports=i;let n=new(r(7540)),o=r(93365),a=r(73274),l=r(90202),c=r(96262),{safeRe:h,t:u,comparatorTrimReplace:p,tildeTrimReplace:f,caretTrimReplace:d}=r(41680),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:m}=r(77628),y=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,b=(e,t)=>{let r=!0,s=e.slice(),i=s.pop();for(;r&&s.length;)r=s.every(e=>i.intersects(e,t)),i=s.pop();return r},w=(e,t)=>(l("comp",e=e.replace(h[u.BUILD],""),t),l("caret",e=S(e,t)),l("tildes",e=x(e,t)),l("xrange",e=O(e,t)),l("stars",e=I(e,t)),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(" "),k=(e,t)=>{let r=t.loose?h[u.TILDELOOSE]:h[u.TILDE];return e.replace(r,(t,r,s,i,n)=>{let o;return l("tilde",e,t,r,s,i,n),E(r)?o="":E(s)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:E(i)?o=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:n?(l("replaceTilde pr",n),o=`>=${r}.${s}.${i}-${n} <${r}.${+s+1}.0-0`):o=`>=${r}.${s}.${i} <${r}.${+s+1}.0-0`,l("tilde return",o),o})},S=(e,t)=>e.trim().split(/\s+/).map(e=>N(e,t)).join(" "),N=(e,t)=>{l("caret",e,t);let r=t.loose?h[u.CARETLOOSE]:h[u.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,n,o)=>{let a;return l("caret",e,t,r,i,n,o),E(r)?a="":E(i)?a=`>=${r}.0.0${s} <${+r+1}.0.0-0`:E(n)?a="0"===r?`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${s} <${+r+1}.0.0-0`:o?(l("replaceCaret pr",o),a="0"===r?"0"===i?`>=${r}.${i}.${n}-${o} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n}-${o} <${+r+1}.0.0-0`):(l("no pr"),a="0"===r?"0"===i?`>=${r}.${i}.${n}${s} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n} <${+r+1}.0.0-0`),l("caret return",a),a})},O=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>$(e,t)).join(" ")),$=(e,t)=>{e=e.trim();let r=t.loose?h[u.XRANGELOOSE]:h[u.XRANGE];return e.replace(r,(r,s,i,n,o,a)=>{l("xRange",e,r,s,i,n,o,a);let c=E(i),h=c||E(n),u=h||E(o),p=u;return"="===s&&p&&(s=""),a=t.includePrerelease?"-0":"",c?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&p?(h&&(n=0),o=0,">"===s?(s=">=",h?(i=+i+1,n=0):n=+n+1,o=0):"<="===s&&(s="<",h?i=+i+1:n=+n+1),"<"===s&&(a="-0"),r=`${s+i}.${n}.${o}${a}`):h?r=`>=${i}.0.0${a} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${n}.0${a} <${i}.${+n+1}.0-0`),l("xRange return",r),r})},I=(e,t)=>(l("replaceStars",e,t),e.trim().replace(h[u.STAR],"")),A=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(h[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),T=e=>(t,r,s,i,n,o,a,l,c,h,u,p)=>(r=E(s)?"":E(i)?`>=${s}.0.0${e?"-0":""}`:E(n)?`>=${s}.${i}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`,l=E(c)?"":E(h)?`<${+c+1}.0.0-0`:E(u)?`<${c}.${+h+1}.0-0`:p?`<=${c}.${h}.${u}-${p}`:e?`<${c}.${h}.${+u+1}-0`:`<=${l}`,`${r} ${l}`.trim()),L=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(l(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){let s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}},22747(e,t,r){"use strict";let s=r(82302);e.exports=(e,t,r)=>{try{t=new s(t,r)}catch(e){return!1}return t.test(e)}},24774(e,t,r){"use strict";let s=r(96262);e.exports=(e,t,r)=>new s(e,r).compare(new s(t,r))},24791(e){"use strict";class t{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},27364(e,t,r){"use strict";let s=r(88917);e.exports=(e,t,r)=>s(e,t,r)>=0},27435(e,t,r){"use strict";let s=r(56779);e.exports=(e,t)=>new s(e,t).minor},27665(e,t,r){"use strict";let s=r(24774);e.exports=(e,t,r)=>0>s(e,t,r)},30143(e,t,r){"use strict";let s=r(41680),i=r(77628),n=r(96262),o=r(9525),a=r(87738),l=r(3263),c=r(13344),h=r(19489),u=r(16390),p=r(60040),f=r(64084),d=r(88187),g=r(65179),m=r(24774),y=r(55104),v=r(56413),b=r(90887),w=r(55513),E=r(73399),x=r(31694),k=r(27665),S=r(63623),N=r(95477),O=r(98327),$=r(32658),I=r(15373),A=r(14768),T=r(73274),L=r(22717),R=r(53376),j=r(70205),C=r(87170),P=r(71896),D=r(72259),M=r(80724),F=r(82033),_=r(86761),U=r(8432),B=r(91114);
1e.exports={parse:a,valid:l,clean:c,inc:h,diff:u,major:p,minor:f,patch:d,prerelease:g,compare:m,rcompare:y,compareLoose:v,compareBuild:b,sort:w,rsort:E,gt:x,lt:k,eq:S,neq:N,gte:O,lte:$,cmp:I,coerce:A,Comparator:T,Range:L,satisfies:R,toComparators:j,maxSatisfying:C,minSatisfying:P,minVersion:D,validRange:M,outside:F,gtr:_,ltr:U,intersects:B,simplifyRange:r(51039),subset:r(20110),SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},31089(e,t,r){"use strict";let s=r(56779);e.exports=(e,t,r=!1)=>{if(e instanceof s)return e;try{return new s(e,t)}catch(e){if(!r)return null;throw e}}},31261(e,t,r){"use strict";let s=r(88917);e.exports=(e,t,r)=>s(t,e,r)},31694(e,t,r){"use strict";let s=r(24774);e.exports=(e,t,r)=>s(e,t,r)>0},32658(e,t,r){"use strict";let s=r(24774);e.exports=(e,t,r)=>0>=s(e,t,r)},33194(e,t,r){"use strict";let s=r(69989);class i extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){let e=`${this.getUTCFullYear()}-${s(2,this.getUTCMonth()+1)}-${s(2,this.getUTCDate())}`,t=`${s(2,this.getUTCHours())}:${s(2,this.getUTCMinutes())}:${s(2,this.getUTCSeconds())}.${s(3,this.getUTCMilliseconds())}`;return`${e}T${t}`}}e.exports=e=>{let t=new i(e);if(!isNaN(t))return t;throw TypeError("Invalid Datetime")}},33385(e,t,r){"use strict";let s=r(56779),i=r(31089),{safeRe:n,t:o}=r(70527);e.exports=(e,t)=>{if(e instanceof s)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let s,i=t.includePrerelease?n[o.COERCERTLFULL]:n[o.COERCERTL];for(;(s=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),i.lastIndex=s.index+s[1].length+s[2].length;i.lastIndex=-1}else r=e.match(t.includePrerelease?n[o.COERCEFULL]:n[o.COERCE]);if(null===r)return null;let a=r[2],l=r[3]||"0",c=r[4]||"0",h=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${a}.${l}.${c}${h}${u}`,t)}},34018(e){"use strict";function t(e){return Error("Can only stringify objects, not "+e)}function r(){return Error("Array values can't have mixed types")}function s(e){return Object.keys(e).filter(t=>a(e[t]))}function i(e){return Object.keys(e).filter(t=>!a(e[t]))}function n(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let r of Object.keys(e))!e[r]||"function"!=typeof e[r].toJSON||"toISOString"in e[r]?t[r]=e[r]:t[r]=e[r].toJSON();return t}function o(e,t,r){var o=s(r=n(r)),a=i(r),h=[],u=t||"";o.forEach(e=>{var t=l(r[e]);"undefined"!==t&&"null"!==t&&h.push(u+c(e)+" = "+g(r[e],!0))}),h.length>0&&h.push("");var p=e&&o.length>0?t+" ":"";return a.forEach(t=>{h.push(O(e,p,t,r[t]))}),h.join(` 2`)}function a(e){switch(l(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return 0===e.length||"table"!==l(e[0]);case"table":return 0===Object.keys(e).length;default:return!1}}function l(e){if(void 0===e)return"undefined";if(null===e)return"null";if("bigint"==typeof e||Number.isInteger(e)&&!Object.is(e,-0))return"integer";if("number"==typeof e)return"float";if("boolean"==typeof e)return"boolean";else if("string"==typeof e)return"string";else if("toISOString"in e)return isNaN(e)?"undefined":"datetime";else if(Array.isArray(e))return"array";else return"table"}function c(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:h(t)}function h(e){return'"'+f(e).replace(/"/g,'\\"')+'"'}function u(e){return"'"+e+"'"}function p(e,t){for(;t.length<e;)t="0"+t;return t}function f(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+p(4,e.codePointAt(0).toString(16)))}function d(e){let t=e.split(/\n/).map(e=>f(e).replace(/"(?="")/g,'\\"')).join(` 3`);return'"'===t.slice(-1)&&(t+=`\\ 4`),`""" 5`+t+'"""'}function g(e,t){let r=l(e);return"string"===r&&(t&&/\n/.test(e)?r="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(r="string-literal")),m(e,r)}function m(e,r){switch(!r&&(r=l(e)),r){case"string-multiline":return d(e);case"string":return h(e);case"string-literal":return u(e);case"integer":return y(e);case"float":return v(e);case"boolean":return b(e);case"datetime":return w(e);case"array":return S(e.filter(e=>"null"!==l(e)&&"undefined"!==l(e)&&"nan"!==l(e)));case"table":return N(e);default:throw t(r)}}function y(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function v(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),r=t[0],s=t[1]||0;return y(r)+"."+s}function b(e){return String(e)}function w(e){return e.toISOString()}function E(e){return"float"===e||"integer"===e}function x(e){var t=l(e[0]);return e.every(e=>l(e)===t)?t:e.every(e=>E(l(e)))?"float":"mixed"}function k(e){let t=x(e);if("mixed"===t)throw r();return t}function S(e){let t=k(e=n(e));var r="[",s=e.map(e=>m(e,t));return s.join(", ").length>60||/\n/.test(s)?r+=` 6 `+s.join(`, 7 `)+` 8`:r+=" "+s.join(", ")+(s.length>0?" ":""),r+"]"}function N(e){e=n(e);var t=[];return Object.keys(e).forEach(r=>{t.push(c(r)+" = "+g(e[r],!1))}),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}function O(e,r,s,i){var n=l(i);if("array"===n)return $(e,r,s,i);if("table"===n)return I(e,r,s,i);throw t(n)}function $(e,r,s,i){k(i=n(i));var a=l(i[0]);if("table"!==a)throw t(a);var h=e+c(s),u="";
8return i.forEach(e=>{u.length>0&&(u+=` 9`),u+=r+"[["+h+`]] 10`,u+=o(h+".",r,e)}),u}function I(e,t,r,i){var n=e+c(r),a="";return s(i).length>0&&(a+=t+"["+n+`] 11`),a+o(n+".",t,i)}e.exports=function e(e){if(null===e)throw t("null");if(void 0===e)throw t("undefined");if("object"!=typeof e)throw t(typeof e);if("function"==typeof e.toJSON&&(e=e.toJSON()),null==e)return null;let r=l(e);if("table"!==r)throw t(r);return o("","",e)},e.exports.value=m},34788(e,t,r){"use strict";let s=r(56779);e.exports=(e,t)=>new s(e,t).patch},35933(e,t,r){"use strict";let s=r(88917);e.exports=(e,t,r)=>0>=s(e,t,r)},37038(e,t,r){"use strict";let s=r(82302);e.exports=(e,t)=>new s(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},37575(e,t,r){"use strict";let s=r(31089);e.exports=(e,t)=>{let r=s(e,null,!0),i=s(t,null,!0),n=r.compare(i);if(0===n)return null;let o=n>0,a=o?r:i,l=o?i:r,c=!!a.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(a))return l.minor&&!l.patch?"minor":"patch"}let h=c?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},41680(e,t,r){"use strict";let{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:n}=r(77628),o=r(90202),a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],h=t.safeSrc=[],u=t.t={},p=0,f="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[f,i]],g=e=>{for(let[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},m=(e,t,r)=>{let s=g(t),i=p++;o(e,i,t),u[e]=i,c[i]=t,h[i]=s,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(s,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]}
11)\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},42354(e){"use strict";e.exports=function e(e,t){if(null==e.pos||null==e.line)return e;let r=e.message;if(r+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}: 12`,t&&t.split){let s=t.split(/\n/),i=String(Math.min(s.length,e.line+3)).length,n=" ";for(;n.length<i;)n+=" ";for(let t=Math.max(0,e.line-1);t<Math.min(s.length,e.line+2);++t){let o=String(t+1);if(o.length<i&&(o=" "+o),e.line===t){r+=o+"> "+s[t]+` 13`,r+=n+" ";for(let t=0;t<e.col;++t)r+=" ";r+=`^ 14`}else r+=o+": "+s[t]+` 15`}}return e.message=r+` 16`,e}},43904(e,t,r){"use strict";let s=r(92640);e.exports=(e,t)=>e.sort((e,r)=>s(e,r,t))},47132(e){"use strict";let t=1114112;class r extends Error{constructor(e,t,s){super("[ParserError] "+e,t,s),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,r)}}class s{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class i{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new s(this.parseStart)}parse(e){let t;if(0!==e.length&&null!=e.length){for(this._buf=String(e),this.ii=-1,this.char=-1;!1===t||this.nextChar();)t=this.runOne();this._buf=null}}nextChar(){return 10===this.char&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){let e;this.char=t;do e=this.state.parser,this.runOne();while(this.state.parser!==e)return this.ctx=null,this.state=null,this._buf=null,this.obj}next(e){if("function"!=typeof e)throw new r("Tried to set state to non-existent state: "+JSON.stringify(e));this.state.parser=e}goto(e){return this.next(e),this.runOne()}call(e,t){t&&this.next(t),this.stack.push(this.state),this.state=new s(e)}callNow(e,t){return this.call(e,t),this.runOne()}return(e){if(0===this.stack.length)throw this.error(new r("Stack underflow"));void 0===e&&(e=this.state.buf),this.state=this.stack.pop(),this.state.returned=e}returnNow(e){return this.return(e),this.runOne()}consume(){if(this.char===t)throw this.error(new r("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(e){return e.line=this.line,e.col=this.col,e.pos=this.pos,e}parseStart(){throw new r("Must declare a parseStart method")}}i.END=t,i.Error=r,e.exports=i},48343(e,t,r){"use strict";r(23184),e.exports=()=>{}},51039(e,t,r){"use strict";let s=r(53376),i=r(24774);e.exports=(e,t,r)=>{let n=[],o=null,a=null,l=e.sort((e,t)=>i(e,t,r));for(let e of l)s(e,t,r)?(a=e,o||(o=e)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);let c=[];for(let[e,t]of n)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");let h=c.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return h.length<u.length?h:t}},52325(e,t,r){"use strict";let s=r(69989);class i extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${s(2,this.getUTCHours())}:${s(2,this.getUTCMinutes())}:${s(2,this.getUTCSeconds())}.${s(3,this.getUTCMilliseconds())}`}}e.exports=e=>{let t=new i(e);if(!isNaN(t))return t;throw TypeError("Invalid Datetime")}},52445(e){"use strict";e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},53376(e,t,r){"use strict";let s=r(22717);e.exports=(e,t,r)=>{try{t=new s(t,r)}catch(e){return!1}return t.test(e)}},54942(e,t,r){"use strict";let s=r(88917);e.exports=(e,t,r)=>0!==s(e,t,r)},55104(e,t,r){"use strict";let s=r(24774);e.exports=(e,t,r)=>s(t,e,r)},55513(e,t,r){"use strict";let s=r(90887);e.exports=(e,t)=>e.sort((e,r)=>s(e,r,t))},56413(e,t,r){"use strict";let s=r(24774);e.exports=(e,t)=>s(e,t,!0)},56779(e,t,r){"use strict";let s=r(48343),{MAX_LENGTH:i,MAX_SAFE_INTEGER:n}=r(52445),{safeRe:o,t:a}=r(70527),l=r(66084),{compareIdentifiers:c}=r(82388);class h{constructor(e,t){if(t=l(t),e instanceof h)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);s("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n||this.major<0)throw TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>
16{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<n)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(s("SemVer.compare",this.version,this.options,e),!(e instanceof h)){if("string"==typeof e&&e===this.version)return 0;e=new h(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return(e instanceof h||(e=new h(e,this.options)),this.major<e.major)?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:+(this.patch>e.patch)}comparePre(e){if(e instanceof h||(e=new h(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(s("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return c(r,i)}while(++t)}compareBuild(e){e instanceof h||(e=new h(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(s("build compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return c(r,i)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?o[a.PRERELEASELOOSE]:o[a.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+!!Number(r);if(0===this.prerelease.length)this.prerelease=[e];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let s=[t,e];!1===r&&(s=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=h},59090(e,t,r){"use strict";let s=r(31089);e.exports=(e,t)=>{let r=s(e,t);return r&&r.prerelease.length?r.prerelease:null}},60040(e,t,r){"use strict";let s=r(96262);e.exports=(e,t)=>new s(e,t).major},63623(e,t,r){"use strict";let s=r(24774);e.exports=(e,t,r)=>0===s(e,t,r)},64084(e,t,r){"use strict";let s=r(96262);e.exports=(e,t)=>new s(e,t).minor},64575(e,t,r){"use strict";t.parse=r(17516),r(34018)},65179(e,t,r){"use strict";let s=r(87738);e.exports=(e,t)=>{let r=s(e,t);return r&&r.prerelease.length?r.prerelease:null}},66084(e){"use strict";let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},66689(e){"use strict";e.exports=e=>{let t=new Date(e);if(!isNaN(t))return t;throw TypeError("Invalid Datetime")}},67645(e,t,r){"use strict";let s=r(69272);e.exports=(e,t,r)=>s(e,t,"<",r)},69272(e,t,r){"use strict";let s=r(56779),i=r(78195),{ANY:n}=i,o=r(82302),a=r(22747),l=r(74951),c=r(4496),h=r(35933),u=r(27364);e.exports=(e,t,r,p)=>{let f,d,g,m,y;switch(e=new s(e,p),t=new o(t,p),r){case">":f=l,d=h,g=c,m=">",y=">=";break;case"<":f=c,d=u,g=l,m="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let r=0;r<t.set.length;++r){let s=t.set[r],o=null,a=null;
16if(s.forEach(e=>{e.semver===n&&(e=new i(">=0.0.0")),o=o||e,a=a||e,f(e.semver,o.semver,p)?o=e:g(e.semver,a.semver,p)&&(a=e)}),o.operator===m||o.operator===y||(!a.operator||a.operator===m)&&d(e,a.semver)||a.operator===y&&g(e,a.semver))return!1}return!0}},69989(e){"use strict";e.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}},70205(e,t,r){"use strict";let s=r(22717);e.exports=(e,t)=>new s(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},70527(e,t,r){"use strict";let{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:n}=r(52445),o=r(48343),a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],h=t.safeSrc=[],u=t.t={},p=0,f="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[f,i]],g=e=>{for(let[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},m=(e,t,r)=>{let s=g(t),i=p++;o(e,i,t),u[e]=i,c[i]=t,h[i]=s,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(s,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},70902(e,t,r){"use strict";let s=r(71514),i=r(54942),n=r(74951),o=r(27364),a=r(4496),l=r(35933);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return s(e,r,c);case"!=":return i(e,r,c);case">":return n(e,r,c);case">=":return o(e,r,c);case"<":return a(e,r,c);case"<=":return l(e,r,c);default:throw TypeError(`Invalid operator: ${t}`)}}},71514(e,t,r){"use strict";let s=r(88917);e.exports=(e,t,r)=>0===s(e,t,r)},71896(e,t,r){"use strict";let s=r(96262),i=r(22717);e.exports=(e,t,r)=>{let n=null,o=null,a=null;try{a=new i(t,r)}catch(e){return null}
16return e.forEach(e=>{a.test(e)&&(!n||1===o.compare(e))&&(o=new s(n=e,r))}),n}},72259(e,t,r){"use strict";let s=r(96262),i=r(22717),n=r(31694);e.exports=(e,t)=>{e=new i(e,t);let r=new s("0.0.0");if(e.test(r)||(r=new s("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t<e.set.length;++t){let i=e.set[t],o=null;i.forEach(e=>{let t=new s(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!o||n(t,o))&&(o=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!r||n(r,o))&&(r=o)}return r&&e.test(r)?r:null}},72312(e){e.exports=function(){function e(e,t,r,s,i,n){this.message=e,this.expected=t,this.found=r,this.offset=s,this.line=i,this.column=n,this.name="SyntaxError"}function t(t){var r,s=arguments.length>1?arguments[1]:{},i={},n={start:tS},o=tS,a=function(){return rc},l=i,c="#",h={type:"literal",value:"#",description:'"#"'},u=void 0,p={type:"any",description:"any character"},f="[",d={type:"literal",value:"[",description:'"["'},g="]",m={type:"literal",value:"]",description:'"]"'},y=function(e){ru(rp("ObjectPath",e,tb,tw))},v=function(e){ru(rp("ArrayPath",e,tb,tw))},b=function(e,t){return e.concat(t)},w=function(e){return[e]},E=function(e){return e},x=".",k={type:"literal",value:".",description:'"."'},S="=",N={type:"literal",value:"=",description:'"="'},O=function(e,t){ru(rp("Assign",t,tb,tw,e))},$=function(e){return e.join("")},I=function(e){return e.value},A='"""',T={type:"literal",value:'"""',description:'"\\"\\"\\""'},L=null,R=function(e){return rp("String",e.join(""),tb,tw)},j='"',C={type:"literal",value:'"',description:'"\\""'},P="'''",D={type:"literal",value:"'''",description:"\"'''\""},M="'",F={type:"literal",value:"'",description:'"\'"'},_=function(e){return e},U=function(e){return e},B="\\",G={type:"literal",value:"\\",description:'"\\\\"'},K=function(){return""},W="e",q={type:"literal",value:"e",description:'"e"'},V="E",J={type:"literal",value:"E",description:'"E"'},X=function(e,t){return rp("Float",parseFloat(e+"e"+t),tb,tw)},H=function(e){return rp("Float",parseFloat(e),tb,tw)},Y="+",z={type:"literal",value:"+",description:'"+"'},Z=function(e){return e.join("")},Q="-",ee={type:"literal",value:"-",description:'"-"'},et=function(e){return"-"+e.join("")},er=function(e){return rp("Integer",parseInt(e,10),tb,tw)},es="true",ei={type:"literal",value:"true",description:'"true"'},en=function(){return rp("Boolean",!0,tb,tw)},eo="false",ea={type:"literal",value:"false",description:'"false"'},el=function(){return rp("Boolean",!1,tb,tw)},ec=function(){return rp("Array",[],tb,tw)},eh=function(e){return rp("Array",e?[e]:[],tb,tw)},eu=function(e){return rp("Array",e,tb,tw)},ep=function(e,t){return rp("Array",e.concat(t),tb,tw)},ef=function(e){return e},ed=",",eg={type:"literal",value:",",description:'","'},em="{",ey={type:"literal",value:"{",description:'"{"'},ev="}",eb={type:"literal",value:"}",description:'"}"'},ew=function(e){return rp("InlineTable",e,tb,tw)},eE=function(e,t){return rp("InlineTableValue",t,tb,tw,e)},ex=function(e){return"."+e},ek=function(e){return e.join("")},eS=":",eN={type:"literal",value:":",description:'":"'},eO=function(e){return e.join("")},e$="T",eI={type:"literal",value:"T",description:'"T"'},eA="Z",eT={type:"literal",value:"Z",description:'"Z"'},eL=function(e,t){return rp("Date",new Date(e+"T"+t+"Z"),tb,tw)},eR=function(e,t){return rp("Date",new Date(e+"T"+t),tb,tw)},ej=/^[ \t]/,eC={type:"class",value:"[ \\t]",description:"[ \\t]"},eP=` 17`,eD={type:"literal",value:` 18`,description:'"\\n"'},eM="\r",eF={type:"literal",value:"\r",description:'"\\r"'},e_=/^[0-9a-f]/i,eU={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},eB=/^[0-9]/,eG={type:"class",value:"[0-9]",description:"[0-9]"},eK="_",eW={type:"literal",value:"_",description:'"_"'},eq=function(){return""},eV=/^[A-Za-z0-9_\-]/,eJ={type:"class",value:"[A-Za-z0-9_\\-]",description:"[A-Za-z0-9_\\-]"},eX=function(e){return e.join("")},eH='\\"',eY={type:"literal",value:'\\"',description:'"\\\\\\""'},ez=function(){return'"'},eZ="\\\\",eQ={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},e0=function(){return"\\"},e1="\\b",e2={type:"literal",value:"\\b",description:'"\\\\b"'},e3=function(){return"\b"},e9="\\t",e4={type:"literal",value:"\\t",description:'"\\\\t"'},e7=function(){return" "},e8="\\n",e6={type:"literal",value:"\\n",description:'"\\\\n"'},e5=function(){return` 19`},te="\\f",tt={type:"literal",value:"\\f",description:'"\\\\f"'},tr=function(){return"\f"},ts="\\r",ti={type:"literal",value:"\\r",description:'"\\\\r"'},tn=function(){return"\r"},to="\\U",ta={type:"literal",value:"\\U",description:'"\\\\U"'},tl=function(e){return rf(e.join(""))},tc="\\u",th={type:"literal",value:"\\u",description:'"\\\\u"'},tu=0,tp=0,tf=0,td={line:1,column:1,seenCR:!1},tg=0,tm=[],ty=0,tv={};if("startRule"in s){if(!(s.startRule in n))throw Error("Can't start parsing from rule \""+s.startRule+'".');o=n[s.startRule]}function tb(){return tE(tp).line}function tw(){return tE(tp).column}function tE(e){function r(e,r,s){var i,n;for(i=r;i<s;i++)` 20`===(n=t.charAt(i))?(!e.seenCR&&e.line++,e.column=1,e.seenCR=!1):"\r"===n||"\u2028"===n||"\u2029"===n?(e.line++,e.column=1,e.seenCR=!0):(e.column++,e.seenCR=!1)}return tf!==e&&(tf>e&&(tf=0,td={line:1,column:1,seenCR:!1}),r(td,tf,e),tf=e),td}function tx(e){tu<tg||(tu>tg&&(tg=tu,tm=[]),tm.push(e))}function tk(r,s,i){function n(e){var t=1;for(e.sort(function(e,t){return e.description<t.description?-1:+(e.description>
20t.description)});t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function o(e,t){function r(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var s,i=Array(e.length);for(s=0;s<e.length;s++)i[s]=e[s].description;return"Expected "+(e.length>1?i.slice(0,-1).join(", ")+" or "+i[e.length-1]:i[0])+" but "+(t?'"'+r(t)+'"':"end of input")+" found."}var a=tE(i),l=i<t.length?t.charAt(i):null;return null!==s&&n(s),new e(null!==r?r:o(s,l),s,l,i,a.line,a.column)}function tS(){var e,t,r,s=49*tu+0,n=tv[s];if(n)return tu=n.nextPos,n.result;for(e=tu,t=[],r=tN();r!==i;)t.push(r),r=tN();return t!==i&&(tp=e,t=a()),e=t,tv[s]={nextPos:tu,result:e},e}function tN(){var e,t,r,s,n,o,a,c=49*tu+1,h=tv[c];if(h)return tu=h.nextPos,h.result;for(e=tu,t=[],r=t5();r!==i;)t.push(r),r=t5();if(t!==i)if((r=tO())!==i){for(s=[],n=t5();n!==i;)s.push(n),n=t5();if(s!==i){for(n=[],o=t$();o!==i;)n.push(o),o=t$();if(n!==i){if(o=[],(a=re())!==i)for(;a!==i;)o.push(a),a=re();else o=l;o===i&&(o=rr()),o!==i?e=t=[t,r,s,n,o]:(tu=e,e=l)}else tu=e,e=l}else tu=e,e=l}else tu=e,e=l;else tu=e,e=l;if(e===i){if(e=tu,t=[],(r=t5())!==i)for(;r!==i;)t.push(r),r=t5();else t=l;if(t!==i){if(r=[],(s=re())!==i)for(;s!==i;)r.push(s),s=re();else r=l;r===i&&(r=rr()),r!==i?e=t=[t,r]:(tu=e,e=l)}else tu=e,e=l;e===i&&(e=re())}return tv[c]={nextPos:tu,result:e},e}function tO(){var e,t=49*tu+2,r=tv[t];return r?(tu=r.nextPos,r.result):((e=t$())===i&&(e=tI())===i&&(e=tA())===i&&(e=tj()),tv[t]={nextPos:tu,result:e},e)}function t$(){var e,r,s,n,o,a,f=49*tu+3,d=tv[f];if(d)return tu=d.nextPos,d.result;if(e=tu,35===t.charCodeAt(tu)?(r=c,tu++):(r=i,0===ty&&tx(h)),r!==i){for(s=[],n=tu,o=tu,ty++,(a=re())===i&&(a=rr()),ty--,a===i?o=u:(tu=o,o=l),o!==i?(t.length>tu?(a=t.charAt(tu),tu++):(a=i,0===ty&&tx(p)),a!==i?n=o=[o,a]:(tu=n,n=l)):(tu=n,n=l);n!==i;)s.push(n),n=tu,o=tu,ty++,(a=re())===i&&(a=rr()),ty--,a===i?o=u:(tu=o,o=l),o!==i?(t.length>tu?(a=t.charAt(tu),tu++):(a=i,0===ty&&tx(p)),a!==i?n=o=[o,a]:(tu=n,n=l)):(tu=n,n=l);s!==i?e=r=[r,s]:(tu=e,e=l)}else tu=e,e=l;return tv[f]={nextPos:tu,result:e},e}function tI(){var e,r,s,n,o,a,c=49*tu+4,h=tv[c];if(h)return tu=h.nextPos,h.result;if(e=tu,91===t.charCodeAt(tu)?(r=f,tu++):(r=i,0===ty&&tx(d)),r!==i){for(s=[],n=t5();n!==i;)s.push(n),n=t5();if(s!==i)if((n=tT())!==i){for(o=[],a=t5();a!==i;)o.push(a),a=t5();o!==i?(93===t.charCodeAt(tu)?(a=g,tu++):(a=i,0===ty&&tx(m)),a!==i?(tp=e,e=r=y(n)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;return tv[c]={nextPos:tu,result:e},e}function tA(){var e,r,s,n,o,a,c,h,u=49*tu+5,p=tv[u];if(p)return tu=p.nextPos,p.result;if(e=tu,91===t.charCodeAt(tu)?(r=f,tu++):(r=i,0===ty&&tx(d)),r!==i)if(91===t.charCodeAt(tu)?(s=f,tu++):(s=i,0===ty&&tx(d)),s!==i){for(n=[],o=t5();o!==i;)n.push(o),o=t5();if(n!==i)if((o=tT())!==i){for(a=[],c=t5();c!==i;)a.push(c),c=t5();a!==i?(93===t.charCodeAt(tu)?(c=g,tu++):(c=i,0===ty&&tx(m)),c!==i?(93===t.charCodeAt(tu)?(h=g,tu++):(h=i,0===ty&&tx(m)),h!==i?(tp=e,e=r=v(o)):(tu=e,e=l)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;else tu=e,e=l;return tv[u]={nextPos:tu,result:e},e}function tT(){var e,t,r,s=49*tu+6,n=tv[s];if(n)return tu=n.nextPos,n.result;if(e=tu,t=[],(r=tR())!==i)for(;r!==i;)t.push(r),r=tR();else t=l;return t!==i&&(r=tL())!==i?(tp=e,e=t=b(t,r)):(tu=e,e=l),e===i&&(e=tu,(t=tL())!==i&&(tp=e,t=w(t)),e=t),tv[s]={nextPos:tu,result:e},e}function tL(){var e,t,r,s,n,o=49*tu+7,a=tv[o];if(a)return tu=a.nextPos,a.result;for(e=tu,t=[],r=t5();r!==i;)t.push(r),r=t5();if(t!==i)if((r=tC())!==i){for(s=[],n=t5();n!==i;)s.push(n),n=t5();s!==i?(tp=e,e=t=E(r)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l;if(e===i){for(e=tu,t=[],r=t5();r!==i;)t.push(r),r=t5();if(t!==i)if((r=tP())!==i){for(s=[],n=t5();n!==i;)s.push(n),n=t5();s!==i?(tp=e,e=t=E(r)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}return tv[o]={nextPos:tu,result:e},e}function tR(){var e,r,s,n,o,a,c,h=49*tu+8,u=tv[h];if(u)return tu=u.nextPos,u.result;for(e=tu,r=[],s=t5();s!==i;)r.push(s),s=t5();if(r!==i)if((s=tC())!==i){for(n=[],o=t5();o!==i;)n.push(o),o=t5();if(n!==i)if(46===t.charCodeAt(tu)?(o=x,tu++):(o=i,0===ty&&tx(k)),o!==i){for(a=[],c=t5();c!==i;)a.push(c),c=t5();a!==i?(tp=e,e=r=E(s)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;else tu=e,e=l;if(e===i){for(e=tu,r=[],s=t5();s!==i;)r.push(s),s=t5();if(r!==i)if((s=tP())!==i){for(n=[],o=t5();o!==i;)n.push(o),o=t5();if(n!==i)if(46===t.charCodeAt(tu)?(o=x,tu++):(o=i,0===ty&&tx(k)),o!==i){for(a=[],c=t5();c!==i;)a.push(c),c=t5();a!==i?(tp=e,e=r=E(s)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;else tu=e,e=l}return tv[h]={nextPos:tu,result:e},e}function tj(){var e,r,s,n,o,a,c=49*tu+9,h=tv[c];if(h)return tu=h.nextPos,h.result;if(e=tu,(r=tC())!==i){for(s=[],n=t5();n!==i;)s.push(n),n=t5();if(s!==i)if(61===t.charCodeAt(tu)?(n=S,tu++):(n=i,0===ty&&tx(N)),n!==i){for(o=[],a=t5();a!==i;)o.push(a),a=t5();o!==i&&(a=tD())!==i?(tp=e,e=r=O(r,a)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;if(e===i)if(e=tu,(r=tP())!==i){for(s=[],n=t5();n!==i;)s.push(n),n=t5();if(s!==i)if(61===t.charCodeAt(tu)?(n=S,tu++):(n=i,0===ty&&tx(N)),n!==i){for(o=[],a=t5();a!==i;)o.push(a),a=t5();o!==i&&(a=tD())!==i?(tp=e,e=r=O(r,a)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;return tv[c]={nextPos:tu,result:e},e}function tC(){var e,t,r,s=49*tu+10,n=tv[s];if(n)return tu=n.nextPos,n.result;if(e=tu,t=[],(r=rn())!==i)for(;r!==i;)t.push(r),r=rn();else t=l;return t!==i&&(tp=e,t=$(t)),e=t,tv[s]={nextPos:tu,result:e},e}function tP(){var e,t,r=49*tu+11,s=tv[r];return s?(tu=s.nextPos,s.result):(e=tu,(t=t_())!==i&&(tp=e,t=I(t)),(e=t)===i&&(e=tu,(t=tB())!==i&&(tp=e,t=I(t)),e=t),tv[r]={nextPos:tu,result:e},e)}function tD(){var e,t=49*tu+12,r=tv[t];return r?(tu=r.nextPos,r.result):((e=tM())===i&&(e=t6())===i&&(e=tJ())===i&&(e=tH())===i&&(e=tz())===i&&(e=tZ())===i&&(e=t2()),tv[t]={nextPos:tu,result:e},e)}function tM(){var e,t=49*tu+13,r=tv[t];return r?(tu=r.nextPos,r.result):((e=tF())===i&&(e=t_())===i&&(e=tU())===i&&(e=tB()),tv[t]={nextPos:tu,result:e},e)}function tF(){var e,r,s,n,o,a=49*tu+14,c=tv[a];if(c)return tu=c.nextPos,c.result;if(e=tu,t.substr(tu,3)===A?(r=A,tu+=3):(r=i,0===ty&&tx(T)),r!==i)if((s=re())===i&&(s=L),s!==i){for(n=[],o=tW();o!==i;)n.push(o),o=tW();n!==i?(t.substr(tu,3)===A?(o=A,tu+=3):(o=i,0===ty&&tx(T)),o!==i?(tp=e,e=r=R(n)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l;return tv[a]={nextPos:tu,result:e},e}function t_(){var e,r,s,n,o=49*tu+15,a=tv[o];if(a)return tu=a.nextPos,a.result;if(e=tu,34===t.charCodeAt(tu)?(r=j,tu++):(r=i,0===ty&&tx(C)),r!==i){for(s=[],n=tG();n!==i;)s.push(n),n=tG();s!==i?(34===t.charCodeAt(tu)?(n=j,tu++):(n=i,0===ty&&tx(C)),n!==i?(tp=e,e=r=R(s)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;return tv[o]={nextPos:tu,result:e},e}function tU(){var e,r,s,n,o,a=49*tu+16,c=tv[a];if(c)return tu=c.nextPos,c.result;if(e=tu,t.substr(tu,3)===P?(r=P,tu+=3):(r=i,0===ty&&tx(D)),r!==i)if((s=re())===i&&(s=L),s!==i){for(n=[],o=tV();o!==i;)n.push(o),o=tV();n!==i?(t.substr(tu,3)===P?(o=P,tu+=3):(o=i,0===ty&&tx(D)),o!==i?(tp=e,e=r=R(n)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l;return tv[a]={nextPos:tu,result:e},e}function tB(){var e,r,s,n,o=49*tu+17,a=tv[o];if(a)return tu=a.nextPos,a.result;if(e=tu,39===t.charCodeAt(tu)?(r=M,tu++):(r=i,0===ty&&tx(F)),r!==i){for(s=[],n=tK();n!==i;)s.push(n),n=tK();s!==i?(39===t.charCodeAt(tu)?(n=M,tu++):(n=i,0===ty&&tx(F)),n!==i?(tp=e,e=r=R(s)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;return tv[o]={nextPos:tu,result:e},e}function tG(){var e,r,s,n=49*tu+18,o=tv[n];return o?(tu=o.nextPos,o.result):((e=ra())===i&&(e=tu,r=tu,ty++,34===t.charCodeAt(tu)?(s=j,tu++):(s=i,0===ty&&tx(C)),ty--,s===i?r=u:(tu=r,r=l),r!==i?(t.length>tu?(s=t.charAt(tu),tu++):(s=i,0===ty&&tx(p)),s!==i?(tp=e,e=r=_(s)):(tu=e,e=l)):(tu=e,e=l)),tv[n]={nextPos:tu,result:e},e)}function tK(){var e,r,s,n=49*tu+19,o=tv[n];return o?(tu=o.nextPos,o.result):(e=tu,r=tu,ty++,39===t.charCodeAt(tu)?(s=M,tu++):(s=i,0===ty&&tx(F)),ty--,s===i?r=u:(tu=r,r=l),r!==i?(t.length>tu?(s=t.charAt(tu),tu++):(s=i,0===ty&&tx(p)),s!==i?(tp=e,e=r=_(s)):(tu=e,e=l)):(tu=e,e=l),tv[n]={nextPos:tu,result:e},e)}function tW(){var e,r,s,n=49*tu+20,o=tv[n];return o?(tu=o.nextPos,o.result):((e=ra())===i&&(e=tq())===i&&(e=tu,r=tu,ty++,t.substr(tu,3)===A?(s=A,tu+=3):(s=i,0===ty&&tx(T)),ty--,s===i?r=u:(tu=r,r=l),r!==i?(t.length>tu?(s=t.charAt(tu),tu++):(s=i,0===ty&&tx(p)),s!==i?(tp=e,e=r=U(s)):(tu=e,e=l)):(tu=e,e=l)),tv[n]={nextPos:tu,result:e},e)}function tq(){var e,r,s,n,o=49*tu+21,a=tv[o];if(a)return tu=a.nextPos,a.result;if(e=tu,92===t.charCodeAt(tu)?(r=B,tu++):(r=i,0===ty&&tx(G)),r!==i)if(re()!==i){for(s=[],n=rt();n!==i;)s.push(n),n=rt();s!==i?(tp=e,e=r=K()):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l;return tv[o]={nextPos:tu,result:e},e}function tV(){var e,r,s,n=49*tu+22,o=tv[n];return o?(tu=o.nextPos,o.result):(e=tu,r=tu,ty++,t.substr(tu,3)===P?(s=P,tu+=3):(s=i,0===ty&&tx(D)),ty--,s===i?r=u:(tu=r,r=l),r!==i?(t.length>tu?(s=t.charAt(tu),tu++):(s=i,0===ty&&tx(p)),s!==i?(tp=e,e=r=_(s)):(tu=e,e=l)):(tu=e,e=l),tv[n]={nextPos:tu,result:e},e)}
20function tJ(){var e,r,s,n,o=49*tu+23,a=tv[o];return a?(tu=a.nextPos,a.result):(e=tu,(r=tX())===i&&(r=tY()),r!==i?(101===t.charCodeAt(tu)?(s=W,tu++):(s=i,0===ty&&tx(q)),s===i&&(69===t.charCodeAt(tu)?(s=V,tu++):(s=i,0===ty&&tx(J))),s!==i&&(n=tY())!==i?(tp=e,e=r=X(r,n)):(tu=e,e=l)):(tu=e,e=l),e===i&&(e=tu,(r=tX())!==i&&(tp=e,r=H(r)),e=r),tv[o]={nextPos:tu,result:e},e)}function tX(){var e,r,s,n,o,a,c=49*tu+24,h=tv[c];return h?(tu=h.nextPos,h.result):(e=tu,43===t.charCodeAt(tu)?(r=Y,tu++):(r=i,0===ty&&tx(z)),r===i&&(r=L),r!==i?(s=tu,(n=ro())!==i?(46===t.charCodeAt(tu)?(o=x,tu++):(o=i,0===ty&&tx(k)),o!==i&&(a=ro())!==i?s=n=[n,o,a]:(tu=s,s=l)):(tu=s,s=l),s!==i?(tp=e,e=r=Z(s)):(tu=e,e=l)):(tu=e,e=l),e===i&&(e=tu,45===t.charCodeAt(tu)?(r=Q,tu++):(r=i,0===ty&&tx(ee)),r!==i?(s=tu,(n=ro())!==i?(46===t.charCodeAt(tu)?(o=x,tu++):(o=i,0===ty&&tx(k)),o!==i&&(a=ro())!==i?s=n=[n,o,a]:(tu=s,s=l)):(tu=s,s=l),s!==i?(tp=e,e=r=et(s)):(tu=e,e=l)):(tu=e,e=l)),tv[c]={nextPos:tu,result:e},e)}function tH(){var e,t,r=49*tu+25,s=tv[r];return s?(tu=s.nextPos,s.result):(e=tu,(t=tY())!==i&&(tp=e,t=er(t)),e=t,tv[r]={nextPos:tu,result:e},e)}function tY(){var e,r,s,n,o,a=49*tu+26,c=tv[a];if(c)return tu=c.nextPos,c.result;if(e=tu,43===t.charCodeAt(tu)?(r=Y,tu++):(r=i,0===ty&&tx(z)),r===i&&(r=L),r!==i){if(s=[],(n=ri())!==i)for(;n!==i;)s.push(n),n=ri();else s=l;s!==i?(n=tu,ty++,46===t.charCodeAt(tu)?(o=x,tu++):(o=i,0===ty&&tx(k)),ty--,o===i?n=u:(tu=n,n=l),n!==i?(tp=e,e=r=Z(s)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;if(e===i)if(e=tu,45===t.charCodeAt(tu)?(r=Q,tu++):(r=i,0===ty&&tx(ee)),r!==i){if(s=[],(n=ri())!==i)for(;n!==i;)s.push(n),n=ri();else s=l;s!==i?(n=tu,ty++,46===t.charCodeAt(tu)?(o=x,tu++):(o=i,0===ty&&tx(k)),ty--,o===i?n=u:(tu=n,n=l),n!==i?(tp=e,e=r=et(s)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;return tv[a]={nextPos:tu,result:e},e}function tz(){var e,r,s=49*tu+27,n=tv[s];return n?(tu=n.nextPos,n.result):(e=tu,t.substr(tu,4)===es?(r=es,tu+=4):(r=i,0===ty&&tx(ei)),r!==i&&(tp=e,r=en()),(e=r)===i&&(e=tu,t.substr(tu,5)===eo?(r=eo,tu+=5):(r=i,0===ty&&tx(ea)),r!==i&&(tp=e,r=el()),e=r),tv[s]={nextPos:tu,result:e},e)}function tZ(){var e,r,s,n,o,a=49*tu+28,c=tv[a];if(c)return tu=c.nextPos,c.result;if(e=tu,91===t.charCodeAt(tu)?(r=f,tu++):(r=i,0===ty&&tx(d)),r!==i){for(s=[],n=t1();n!==i;)s.push(n),n=t1();s!==i?(93===t.charCodeAt(tu)?(n=g,tu++):(n=i,0===ty&&tx(m)),n!==i?(tp=e,e=r=ec()):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;if(e===i&&(e=tu,91===t.charCodeAt(tu)?(r=f,tu++):(r=i,0===ty&&tx(d)),r!==i?((s=tQ())===i&&(s=L),s!==i?(93===t.charCodeAt(tu)?(n=g,tu++):(n=i,0===ty&&tx(m)),n!==i?(tp=e,e=r=eh(s)):(tu=e,e=l)):(tu=e,e=l)):(tu=e,e=l),e===i)){if(e=tu,91===t.charCodeAt(tu)?(r=f,tu++):(r=i,0===ty&&tx(d)),r!==i){if(s=[],(n=t0())!==i)for(;n!==i;)s.push(n),n=t0();else s=l;s!==i?(93===t.charCodeAt(tu)?(n=g,tu++):(n=i,0===ty&&tx(m)),n!==i?(tp=e,e=r=eu(s)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l;if(e===i)if(e=tu,91===t.charCodeAt(tu)?(r=f,tu++):(r=i,0===ty&&tx(d)),r!==i){if(s=[],(n=t0())!==i)for(;n!==i;)s.push(n),n=t0();else s=l;s!==i&&(n=tQ())!==i?(93===t.charCodeAt(tu)?(o=g,tu++):(o=i,0===ty&&tx(m)),o!==i?(tp=e,e=r=ep(s,n)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l}return tv[a]={nextPos:tu,result:e},e}function tQ(){var e,t,r,s,n,o=49*tu+29,a=tv[o];if(a)return tu=a.nextPos,a.result;for(e=tu,t=[],r=t1();r!==i;)t.push(r),r=t1();if(t!==i)if((r=tD())!==i){for(s=[],n=t1();n!==i;)s.push(n),n=t1();s!==i?(tp=e,e=t=ef(r)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l;return tv[o]={nextPos:tu,result:e},e}function t0(){var e,r,s,n,o,a,c,h=49*tu+30,u=tv[h];if(u)return tu=u.nextPos,u.result;for(e=tu,r=[],s=t1();s!==i;)r.push(s),s=t1();if(r!==i)if((s=tD())!==i){for(n=[],o=t1();o!==i;)n.push(o),o=t1();if(n!==i)if(44===t.charCodeAt(tu)?(o=ed,tu++):(o=i,0===ty&&tx(eg)),o!==i){for(a=[],c=t1();c!==i;)a.push(c),c=t1();a!==i?(tp=e,e=r=ef(s)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;else tu=e,e=l;return tv[h]={nextPos:tu,result:e},e}function t1(){var e,t=49*tu+31,r=tv[t];return r?(tu=r.nextPos,r.result):((e=t5())===i&&(e=re())===i&&(e=t$()),tv[t]={nextPos:tu,result:e},e)}function t2(){var e,r,s,n,o,a,c=49*tu+32,h=tv[c];if(h)return tu=h.nextPos,h.result;if(e=tu,123===t.charCodeAt(tu)?(r=em,tu++):(r=i,0===ty&&tx(ey)),r!==i){for(s=[],n=t5();n!==i;)s.push(n),n=t5();if(s!==i){for(n=[],o=t3();o!==i;)n.push(o),o=t3();if(n!==i){for(o=[],a=t5();a!==i;)o.push(a),a=t5();o!==i?(125===t.charCodeAt(tu)?(a=ev,tu++):(a=i,0===ty&&tx(eb)),a!==i?(tp=e,e=r=ew(n)):(tu=e,e=l)):(tu=e,e=l)}else tu=e,e=l}else tu=e,e=l}else tu=e,e=l;return tv[c]={nextPos:tu,result:e},e}function t3(){var e,r,s,n,o,a,c,h,u,p,f,d=49*tu+33,g=tv[d];if(g)return tu=g.nextPos,g.result;for(e=tu,r=[],s=t5();s!==i;)r.push(s),s=t5();if(r!==i)if((s=tC())!==i){for(n=[],o=t5();o!==i;)n.push(o),o=t5();if(n!==i)if(61===t.charCodeAt(tu)?(o=S,tu++):(o=i,0===ty&&tx(N)),o!==i){for(a=[],c=t5();c!==i;)a.push(c),c=t5();if(a!==i)if((c=tD())!==i){for(h=[],u=t5();u!==i;)h.push(u),u=t5();if(h!==i)if(44===t.charCodeAt(tu)?(u=ed,tu++):(u=i,0===ty&&tx(eg)),u!==i){for(p=[],f=t5();f!==i;)p.push(f),f=t5();p!==i?(tp=e,e=r=eE(s,c)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;else tu=e,e=l;if(e===i){for(e=tu,r=[],s=t5();s!==i;)r.push(s),s=t5();if(r!==i)if((s=tC())!==i){for(n=[],o=t5();o!==i;)n.push(o),o=t5();if(n!==i)if(61===t.charCodeAt(tu)?(o=S,tu++):(o=i,0===ty&&tx(N)),o!==i){for(a=[],c=t5();c!==i;)a.push(c),c=t5();a!==i&&(c=tD())!==i?(tp=e,e=r=eE(s,c)):(tu=e,e=l)}else tu=e,e=l;else tu=e,e=l}else tu=e,e=l;else tu=e,e=l}return tv[d]={nextPos:tu,result:e},e}function t9(){var e,r,s,n=49*tu+34,o=tv[n];return o?(tu=o.nextPos,o.result):(e=tu,46===t.charCodeAt(tu)?(r=x,tu++):(r=i,0===ty&&tx(k)),r!==i&&(s=ro())!==i?(tp=e,e=r=ex(s)):(tu=e,e=l),tv[n]={nextPos:tu,result:e},e)}function t4(){var e,r,s,n,o,a,c,h,u,p,f,d,g=49*tu+35,m=tv[g];return m?(tu=m.nextPos,m.result):(e=tu,r=tu,(s=ri())!==i&&(n=ri())!==i&&(o=ri())!==i&&(a=ri())!==i?(45===t.charCodeAt(tu)?(c=Q,tu++):(c=i,0===ty&&tx(ee)),c!==i&&(h=ri())!==i&&(u=ri())!==i?(45===t.charCodeAt(tu)?(p=Q,tu++):(p=i,0===ty&&tx(ee)),p!==i&&(f=ri())!==i&&(d=ri())!==i?r=s=[s,n,o,a,c,h,u,p,f,d]:(tu=r,r=l)):(tu=r,r=l)):(tu=r,r=l),r!==i&&(tp=e,r=ek(r)),e=r,tv[g]={nextPos:tu,result:e},e)}function t7(){var e,r,s,n,o,a,c,h,u,p,f,d=49*tu+36,g=tv[d];return g?(tu=g.nextPos,g.result):(e=tu,r=tu,(s=ri())!==i&&(n=ri())!==i?(58===t.charCodeAt(tu)?(o=eS,tu++):(o=i,0===ty&&tx(eN)),o!==i&&(a=ri())!==i&&(c=ri())!==i?(58===t.charCodeAt(tu)?(h=eS,tu++):(h=i,0===ty&&tx(eN)),h!==i&&(u=ri())!==i&&(p=ri())!==i?((f=t9())===i&&(f=L),f!==i?r=s=[s,n,o,a,c,h,u,p,f]:(tu=r,r=l)):(tu=r,r=l)):(tu=r,r=l)):(tu=r,r=l),r!==i&&(tp=e,r=eO(r)),e=r,tv[d]={nextPos:tu,result:e},e)}function t8(){var e,r,s,n,o,a,c,h,u,p,f,d,g,m,y,v,b,w=49*tu+37,E=tv[w];return E?(tu=E.nextPos,E.result):(e=tu,r=tu,(s=ri())!==i&&(n=ri())!==i?(58===t.charCodeAt(tu)?(o=eS,tu++):(o=i,0===ty&&tx(eN)),o!==i&&(a=ri())!==i&&(c=ri())!==i?(58===t.charCodeAt(tu)?(h=eS,tu++):(h=i,0===ty&&tx(eN)),h!==i&&(u=ri())!==i&&(p=ri())!==i?((f=t9())===i&&(f=L),f!==i?(45===t.charCodeAt(tu)?(d=Q,tu++):(d=i,0===ty&&tx(ee)),d===i&&(43===t.charCodeAt(tu)?(d=Y,tu++):(d=i,0===ty&&tx(z))),d!==i&&(g=ri())!==i&&(m=ri())!==i?(58===t.charCodeAt(tu)?(y=eS,tu++):(y=i,0===ty&&tx(eN)),y!==i&&(v=ri())!==i&&(b=ri())!==i?r=s=[s,n,o,a,c,h,u,p,f,d,g,m,y,v,b]:(tu=r,r=l)):(tu=r,r=l)):(tu=r,r=l)):(tu=r,r=l)):(tu=r,r=l)):(tu=r,r=l),r!==i&&(tp=e,r=eO(r)),e=r,tv[w]={nextPos:tu,result:e},e)}function t6(){var e,r,s,n,o,a=49*tu+38,c=tv[a];
20return c?(tu=c.nextPos,c.result):(e=tu,(r=t4())!==i?(84===t.charCodeAt(tu)?(s=e$,tu++):(s=i,0===ty&&tx(eI)),s!==i&&(n=t7())!==i?(90===t.charCodeAt(tu)?(o=eA,tu++):(o=i,0===ty&&tx(eT)),o!==i?(tp=e,e=r=eL(r,n)):(tu=e,e=l)):(tu=e,e=l)):(tu=e,e=l),e===i&&(e=tu,(r=t4())!==i?(84===t.charCodeAt(tu)?(s=e$,tu++):(s=i,0===ty&&tx(eI)),s!==i&&(n=t8())!==i?(tp=e,e=r=eR(r,n)):(tu=e,e=l)):(tu=e,e=l)),tv[a]={nextPos:tu,result:e},e)}function t5(){var e,r=49*tu+39,s=tv[r];return s?(tu=s.nextPos,s.result):(ej.test(t.charAt(tu))?(e=t.charAt(tu),tu++):(e=i,0===ty&&tx(eC)),tv[r]={nextPos:tu,result:e},e)}function re(){var e,r,s,n=49*tu+40,o=tv[n];return o?(tu=o.nextPos,o.result):(10===t.charCodeAt(tu)?(e=eP,tu++):(e=i,0===ty&&tx(eD)),e===i&&(e=tu,13===t.charCodeAt(tu)?(r=eM,tu++):(r=i,0===ty&&tx(eF)),r!==i?(10===t.charCodeAt(tu)?(s=eP,tu++):(s=i,0===ty&&tx(eD)),s!==i?e=r=[r,s]:(tu=e,e=l)):(tu=e,e=l)),tv[n]={nextPos:tu,result:e},e)}function rt(){var e,t=49*tu+41,r=tv[t];return r?(tu=r.nextPos,r.result):((e=re())===i&&(e=t5()),tv[t]={nextPos:tu,result:e},e)}function rr(){var e,r,s=49*tu+42,n=tv[s];return n?(tu=n.nextPos,n.result):(e=tu,ty++,t.length>tu?(r=t.charAt(tu),tu++):(r=i,0===ty&&tx(p)),ty--,r===i?e=u:(tu=e,e=l),tv[s]={nextPos:tu,result:e},e)}function rs(){var e,r=49*tu+43,s=tv[r];return s?(tu=s.nextPos,s.result):(e_.test(t.charAt(tu))?(e=t.charAt(tu),tu++):(e=i,0===ty&&tx(eU)),tv[r]={nextPos:tu,result:e},e)}function ri(){var e,r,s=49*tu+44,n=tv[s];return n?(tu=n.nextPos,n.result):(eB.test(t.charAt(tu))?(e=t.charAt(tu),tu++):(e=i,0===ty&&tx(eG)),e===i&&(e=tu,95===t.charCodeAt(tu)?(r=eK,tu++):(r=i,0===ty&&tx(eW)),r!==i&&(tp=e,r=eq()),e=r),tv[s]={nextPos:tu,result:e},e)}function rn(){var e,r=49*tu+45,s=tv[r];return s?(tu=s.nextPos,s.result):(eV.test(t.charAt(tu))?(e=t.charAt(tu),tu++):(e=i,0===ty&&tx(eJ)),tv[r]={nextPos:tu,result:e},e)}function ro(){var e,t,r,s=49*tu+46,n=tv[s];if(n)return tu=n.nextPos,n.result;if(e=tu,t=[],(r=ri())!==i)for(;r!==i;)t.push(r),r=ri();else t=l;return t!==i&&(tp=e,t=eX(t)),e=t,tv[s]={nextPos:tu,result:e},e}function ra(){var e,r,s=49*tu+47,n=tv[s];return n?(tu=n.nextPos,n.result):(e=tu,t.substr(tu,2)===eH?(r=eH,tu+=2):(r=i,0===ty&&tx(eY)),r!==i&&(tp=e,r=ez()),(e=r)===i&&(e=tu,t.substr(tu,2)===eZ?(r=eZ,tu+=2):(r=i,0===ty&&tx(eQ)),r!==i&&(tp=e,r=e0()),(e=r)===i&&(e=tu,t.substr(tu,2)===e1?(r=e1,tu+=2):(r=i,0===ty&&tx(e2)),r!==i&&(tp=e,r=e3()),(e=r)===i&&(e=tu,t.substr(tu,2)===e9?(r=e9,tu+=2):(r=i,0===ty&&tx(e4)),r!==i&&(tp=e,r=e7()),(e=r)===i&&(e=tu,t.substr(tu,2)===e8?(r=e8,tu+=2):(r=i,0===ty&&tx(e6)),r!==i&&(tp=e,r=e5()),(e=r)===i&&(e=tu,t.substr(tu,2)===te?(r=te,tu+=2):(r=i,0===ty&&tx(tt)),r!==i&&(tp=e,r=tr()),(e=r)===i&&(e=tu,t.substr(tu,2)===ts?(r=ts,tu+=2):(r=i,0===ty&&tx(ti)),r!==i&&(tp=e,r=tn()),(e=r)===i&&(e=rl()))))))),tv[s]={nextPos:tu,result:e},e)}function rl(){var e,r,s,n,o,a,c,h,u,p,f,d=49*tu+48,g=tv[d];return g?(tu=g.nextPos,g.result):(e=tu,t.substr(tu,2)===to?(r=to,tu+=2):(r=i,0===ty&&tx(ta)),r!==i?(s=tu,(n=rs())!==i&&(o=rs())!==i&&(a=rs())!==i&&(c=rs())!==i&&(h=rs())!==i&&(u=rs())!==i&&(p=rs())!==i&&(f=rs())!==i?s=n=[n,o,a,c,h,u,p,f]:(tu=s,s=l),s!==i?(tp=e,e=r=tl(s)):(tu=e,e=l)):(tu=e,e=l),e===i&&(e=tu,t.substr(tu,2)===tc?(r=tc,tu+=2):(r=i,0===ty&&tx(th)),r!==i?(s=tu,(n=rs())!==i&&(o=rs())!==i&&(a=rs())!==i&&(c=rs())!==i?s=n=[n,o,a,c]:(tu=s,s=l),s!==i?(tp=e,e=r=tl(s)):(tu=e,e=l)):(tu=e,e=l)),tv[d]={nextPos:tu,result:e},e)}var rc=[];function rh(e,t,r){var s=Error(e);throw s.line=t,s.column=r,s}function ru(e){rc.push(e)}function rp(e,t,r,s,i){var n={type:e,value:t,line:r(),column:s()};return i&&(n.key=i),n}function rf(e,t,r){var s=parseInt("0x"+e);if(isFinite(s)&&Math.floor(s)==s&&!(s<0)&&!(s>1114111)&&(!(s>55295)||!(s<57344)))return rd(s);rh("Invalid Unicode escape code: "+e,t,r)}function rd(){var e,t,r=16384,s=[],i=-1,n=arguments.length;if(!n)return"";for(var o="";++i<n;){var a=Number(arguments[i]);a<=65535?s.push(a):(a-=65536,e=(a>>10)+55296,t=a%1024+56320,s.push(e,t)),(i+1==n||s.length>r)&&(o+=String.fromCharCode.apply(null,s),s.length=0)}return o}if((r=o())!==i&&tu===t.length)return r;throw r!==i&&tu<t.length&&tx({type:"end",description:"end of input"}),tk(null,tm,tg)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),{SyntaxError:e,parse:t}}()},72377(e,t,r){"use strict";e.exports=n;let s=r(74875),i=r(94383);function n(e){return e?o(e):a(e)}function o(e){let t=new i;return e.setEncoding("utf8"),new Promise((r,s)=>{let i,n=!1,o=!1;function a(){if(n=!0,!i)try{r(t.finish())}catch(e){s(e)}}function l(e){o=!0,s(e)}function c(){let r;for(i=!0;null!==(r=e.read());)try{t.parse(r)}catch(e){return l(e)}if(i=!1,n)return a();o||e.once("readable",c)}e.once("end",a),e.once("error",l),c()})}function a(){let e=new i;return new s.Transform({objectMode:!0,transform(t,r,s){try{e.parse(t.toString(r))}
20catch(e){this.emit("error",e)}s()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}},72761(e,t,r){"use strict";let s=r(56779),i=r(82302);e.exports=(e,t,r)=>{let n=null,o=null,a=null;try{a=new i(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(!n||-1===o.compare(e))&&(o=new s(n=e,r))}),n}},73274(e,t,r){"use strict";let s=Symbol("SemVer ANY");class i{static get ANY(){return s}constructor(e,t){if(t=n(t),e instanceof i)if(!!t.loose===e.loose)return e;else e=e.value;c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===s?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){let t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===s||e===s)return!0;if("string"==typeof e)try{e=new h(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(e.value,t).test(this.value):""===e.operator?""===e.value||new u(this.value,t).test(e.semver):!((t=n(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let n=r(93365),{safeRe:o,t:a}=r(41680),l=r(15373),c=r(90202),h=r(96262),u=r(22717)},73399(e,t,r){"use strict";let s=r(90887);e.exports=(e,t)=>e.sort((e,r)=>s(r,e,t))},73660(e,t,r){"use strict";let s=r(22747),i=r(88917);e.exports=(e,t,r)=>{let n=[],o=null,a=null,l=e.sort((e,t)=>i(e,t,r));for(let e of l)s(e,t,r)?(a=e,o||(o=e)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);let c=[];for(let[e,t]of n)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");let h=c.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return h.length<u.length?h:t}},74951(e,t,r){"use strict";let s=r(88917);e.exports=(e,t,r)=>s(e,t,r)>0},75756(e,t,r){"use strict";e.exports=n;let s=r(94383),i=r(42354);function n(e){r.g.Buffer&&r.g.Buffer.isBuffer(e)&&(e=e.toString("utf8"));let t=new s;try{return t.parse(e),t.finish()}catch(t){throw i(t,e)}}},77628(e){"use strict";e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},78195(e,t,r){"use strict";let s=Symbol("SemVer ANY");class i{static get ANY(){return s}constructor(e,t){if(t=n(t),e instanceof i)if(!!t.loose===e.loose)return e;else e=e.value;c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===s?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){let t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===s||e===s)return!0;if("string"==typeof e)try{e=new h(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(e.value,t).test(this.value):""===e.operator?""===e.value||new u(this.value,t).test(e.semver):!((t=n(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let n=r(66084),{safeRe:o,t:a}=r(70527),l=r(70902),c=r(48343),h=r(56779),u=r(82302)},80724(e,t,r){"use strict";let s=r(22717);e.exports=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}}},82033(e,t,r){"use strict";let s=r(96262),i=r(73274),{ANY:n}=i,o=r(22717),a=r(53376),l=r(31694),c=r(27665),h=r(32658),u=r(98327);e.exports=(e,t,r,p)=>{let f,d,g,m,y;switch(e=new s(e,p),t=new o(t,p),r){case">":f=l,d=h,g=c,m=">",y=">=";break;case"<":f=c,d=u,g=l,m="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let r=0;r<t.set.length;++r){let s=t.set[r],o=null,a=null;
20if(s.forEach(e=>{e.semver===n&&(e=new i(">=0.0.0")),o=o||e,a=a||e,f(e.semver,o.semver,p)?o=e:g(e.semver,a.semver,p)&&(a=e)}),o.operator===m||o.operator===y||(!a.operator||a.operator===m)&&d(e,a.semver)||a.operator===y&&g(e,a.semver))return!1}return!0}},82302(e,t,r){"use strict";let s=/\s+/g;class i{constructor(e,t){if(t=o(t),e instanceof i)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else return new i(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(s," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&g)|(this.options.loose&&m))+":"+e,r=n.get(t);if(r)return r;let s=this.options.loose,i=s?h[u.HYPHENRANGELOOSE]:h[u.HYPHENRANGE];l("hyphen replace",e=e.replace(i,T(this.options.includePrerelease))),l("comparator trim",e=e.replace(h[u.COMPARATORTRIM],p)),l("tilde trim",e=e.replace(h[u.TILDETRIM],f)),l("caret trim",e=e.replace(h[u.CARETTRIM],d));let o=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>A(e,this.options));s&&(o=o.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(h[u.COMPARATORLOOSE])))),l("range list",o);let c=new Map;for(let e of o.map(e=>new a(e,this.options))){if(y(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");let v=[...c.values()];return n.set(t,v),v}intersects(e,t){if(!(e instanceof i))throw TypeError("a Range is required");return this.set.some(r=>b(r,t)&&e.set.some(e=>b(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}e.exports=i;let n=new(r(24791)),o=r(66084),a=r(78195),l=r(48343),c=r(56779),{safeRe:h,t:u,comparatorTrimReplace:p,tildeTrimReplace:f,caretTrimReplace:d}=r(70527),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:m}=r(52445),y=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,b=(e,t)=>{let r=!0,s=e.slice(),i=s.pop();for(;r&&s.length;)r=s.every(e=>i.intersects(e,t)),i=s.pop();return r},w=(e,t)=>(l("comp",e=e.replace(h[u.BUILD],""),t),l("caret",e=S(e,t)),l("tildes",e=x(e,t)),l("xrange",e=O(e,t)),l("stars",e=I(e,t)),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(" "),k=(e,t)=>{let r=t.loose?h[u.TILDELOOSE]:h[u.TILDE];return e.replace(r,(t,r,s,i,n)=>{let o;return l("tilde",e,t,r,s,i,n),E(r)?o="":E(s)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:E(i)?o=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:n?(l("replaceTilde pr",n),o=`>=${r}.${s}.${i}-${n} <${r}.${+s+1}.0-0`):o=`>=${r}.${s}.${i} <${r}.${+s+1}.0-0`,l("tilde return",o),o})},S=(e,t)=>e.trim().split(/\s+/).map(e=>N(e,t)).join(" "),N=(e,t)=>{l("caret",e,t);let r=t.loose?h[u.CARETLOOSE]:h[u.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,n,o)=>{let a;return l("caret",e,t,r,i,n,o),E(r)?a="":E(i)?a=`>=${r}.0.0${s} <${+r+1}.0.0-0`:E(n)?a="0"===r?`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${s} <${+r+1}.0.0-0`:o?(l("replaceCaret pr",o),a="0"===r?"0"===i?`>=${r}.${i}.${n}-${o} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n}-${o} <${+r+1}.0.0-0`):(l("no pr"),a="0"===r?"0"===i?`>=${r}.${i}.${n}${s} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n} <${+r+1}.0.0-0`),l("caret return",a),a})},O=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>$(e,t)).join(" ")),$=(e,t)=>{e=e.trim();let r=t.loose?h[u.XRANGELOOSE]:h[u.XRANGE];return e.replace(r,(r,s,i,n,o,a)=>
20{l("xRange",e,r,s,i,n,o,a);let c=E(i),h=c||E(n),u=h||E(o),p=u;return"="===s&&p&&(s=""),a=t.includePrerelease?"-0":"",c?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&p?(h&&(n=0),o=0,">"===s?(s=">=",h?(i=+i+1,n=0):n=+n+1,o=0):"<="===s&&(s="<",h?i=+i+1:n=+n+1),"<"===s&&(a="-0"),r=`${s+i}.${n}.${o}${a}`):h?r=`>=${i}.0.0${a} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${n}.0${a} <${i}.${+n+1}.0-0`),l("xRange return",r),r})},I=(e,t)=>(l("replaceStars",e,t),e.trim().replace(h[u.STAR],"")),A=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(h[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),T=e=>(t,r,s,i,n,o,a,l,c,h,u,p)=>(r=E(s)?"":E(i)?`>=${s}.0.0${e?"-0":""}`:E(n)?`>=${s}.${i}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`,l=E(c)?"":E(h)?`<${+c+1}.0.0-0`:E(u)?`<${c}.${+h+1}.0-0`:p?`<=${c}.${h}.${u}-${p}`:e?`<${c}.${h}.${+u+1}-0`:`<=${l}`,`${r} ${l}`.trim()),L=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(l(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){let s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}},82388(e){"use strict";let t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;let s=t.test(e),i=t.test(r);return s&&i&&(e*=1,r*=1),e===r?0:s&&!i?-1:i&&!s?1:e<r?-1:1},s=(e,t)=>r(t,e);e.exports={compareIdentifiers:r,rcompareIdentifiers:s}},84492(e,t,r){"use strict";let s=r(31089);e.exports=(e,t)=>{let r=s(e,t);return r?r.version:null}},86761(e,t,r){"use strict";let s=r(82033);e.exports=(e,t,r)=>s(e,t,">",r)},87170(e,t,r){"use strict";let s=r(96262),i=r(22717);e.exports=(e,t,r)=>{let n=null,o=null,a=null;try{a=new i(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(!n||-1===o.compare(e))&&(o=new s(n=e,r))}),n}},87537(e,t,r){"use strict";let s;r.d(t,{Q2:()=>l,MM:()=>nJ,wM:()=>nZ,fj:()=>a}),function(e){e.DEBUG="debug",e.LOG="log",e.INFO="info",e.WARN="warn",e.ERROR="error"}(c||(c={}));class i{logLevel;constructor(e=c.ERROR){this.logLevel=e}shouldLog(e){let t=["debug","log","info","warn","error"];return t.indexOf(e)>=t.indexOf(this.logLevel)}debug(...e){this.shouldLog(c.DEBUG)&&console.debug(...e)}log(...e){this.shouldLog(c.LOG)&&console.log(...e)}info(...e){this.shouldLog(c.INFO)&&console.info(...e)}warn(...e){this.shouldLog(c.WARN)&&console.warn(...e)}error(...e){this.shouldLog(c.ERROR)&&console.error(...e)}}function n(e,t){let r=[];for(let s=0;s<e.length;s++){let i=e[s];i&&"."!==i&&(".."===i?r.length&&".."!==r[r.length-1]?r.pop():t&&r.push(".."):r.push(i))}return r}function o(e){let t=e.startsWith("/"),r=e&&"/"===e[e.length-1];return(e=n(e.split("/"),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),`${t?"/":""}${e}`}function a(...e){let t="";for(let r=0,s=e.length;r<s;r++){if("string"!=typeof e[r])throw TypeError("Arguments to join must be strings");let s=e[r].replace(/\\/gm,"/");s&&(t.length?t+="/"+s:t+=s)}return o(t)}class l{logger=new i("error");cwd="/";basename(e){return this.join(e).split("/").pop()||""}relative(e,t){let r=this.isAbsolute(e)?e:this.join(this.cwd,e),s=this.isAbsolute(t)?t:this.join(this.cwd,t);if(r===s)return"";let i=[];if(s.startsWith(r))return s.substring(r.length).replace(/^\//,"");let n=this.join(r).split("/"),o=this.join(s).split("/");for(let e=0,t=o.length;e<t;e++)if(o[e]===n?.[e])i.push(o[e]);else break;let a=o.length-i.length,l=n.length-i.length,c=Math.max(a,l),h=l>0?Array(c).fill(".."):[];return a>0&&h.push(...o.slice(-a)),h.join("/")}dirname(e){let t=this.join(e).split("/");return(t.pop(),1===t.length&&""===t[0])?"/":t.join("/")}join(...e){return a(...e)}async gracefullyReadFile(e){try{return await this.readFile(e)}catch{return null}}async readJSON(e,t={}){try{return JSON.parse(await this.readFile(e))}catch(s){if(t.fail)throw s;let r=`Could not parse JSON file ${e}`;return s instanceof Error&&(r+=` 21${s.name}: ${s.message} 22${s.stack}`),this.logger.error(r),{}}}async findUp(e,t={}){let r=this.resolve(t.cwd||this.cwd),s=async()=>{let i=Object.entries(await this.readDir(r,!0)).find(([r,s])=>{if("string"==typeof e&&r===e||Array.isArray(e)&&e.includes(r))return t.type&&t.type,r});return i?.[0]?this.join(r,i[0]):"/"===r||t.stopAt&&this.resolve(t.stopAt)===r?void 0:(r=this.join(r,".."),s())};return s()}async findUpMultiple(e,t={}){let r=this.resolve(t.cwd||this.cwd),s=[],i=async()=>{for(let[i,n]of Object.entries(await this.readDir(r,!0)))("string"==typeof e&&i===e||Array.isArray(e)&&e.includes(i))&&(t.type&&t.type===n||!t.type)&&s.push(this.resolve(r,i));return"/"===r||t.stopAt&&this.resolve(t.stopAt)===r?s:(r=this.join(r,".."),i())};return i()}}var c,h,u,p,f=r(10872);let d=["dev","serve","develop","start","run","web"],g=["netlify dev"],m=["build"],y=["netlify build"],v=e=>g.some(t=>e.includes(t)),b=e=>y.some(t=>e.includes(t)),w=(e,t)=>e===t||e.endsWith(`:${t}`),E=e=>-1===e?Number.MAX_SAFE_INTEGER:e,x=e=>(t,r)=>{let s=e.findIndex(e=>w(t,e)),i=e.findIndex(e=>w(r,e));return E(s)-E(i)},k=(e,t)=>d.some(r=>w(e,r)&&!v(t)),S=(e,t)=>m.some(r=>
22w(e,r)&&!b(t));function N(e,t={}){let r=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(x(d));return r.length>0?r:Object.keys(t).filter(e=>k(e,t[e])).sort(x(d))}function O(e,t={}){let r=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(x(m));return r.length>0?r:Object.keys(t).filter(e=>S(e,t[e])).sort(x(m))}function $(e){let t=[];for(let r of e.sort(I))(0===t.length||t[0].detected.accuracy===r.detected.accuracy)&&t.push(r);return t}function I(e,t){let r=t.detected.accuracy-e.detected.accuracy;if(0===r){let r=[h.BackendFramework,h.FrontendFramework,h.BuildTool,h.SSG];return r.indexOf(t.category)-r.indexOf(e.category)}return r}function A(e){let t=e.filter(function(e){return!!e}).sort((e,t)=>e.accuracy>t.accuracy?-1:+(e.accuracy<t.accuracy));if(0!==t.length)return t.slice(1).reduce((e,t)=>(e.config=e.config??t.config,e.configName=e.configName??t.configName,e.package=e.package??t.package,e.packageJSON=e.packageJSON??t.packageJSON,e),t[0])}!function(e){e.BackendFramework="backend_framework",e.FrontendFramework="frontend_framework",e.SSG="static_site_generator",e.BuildTool="build_tool"}(h||(h={})),function(e){e[e.Forced=5]="Forced",e[e.NPM=4]="NPM",e[e.ConfigOnly=3]="ConfigOnly",e[e.Config=2]="Config",e[e.NPMHoisted=1]="NPMHoisted"}(u||(u={})),function(e){e.NodeModules="node_modules",e.PackageJSONPinned="package_json_pinned",e.PackageJSON="package_json"}(p||(p={}));class T{project;path;id;name;category;detected;version;configFiles=[];npmDependencies=[];excludedNpmDependencies=[];plugins=[];staticAssetsDirectory;env={};dev;build={command:"npm run build",directory:"dist"};logo;constructor(e,t){this.project=e,this.path=t,e.packageManager?.runCommand&&(this.build.command=`${e.packageManager.runCommand} build`)}setDetected(e,t){return this.detected={accuracy:e},"string"==typeof t?this.detected.config=t:this.detected.package=t,this}async getVersionFromNodeModules(e){if("browser"!==this.project.fs.getEnvironment())try{let t=await this.project.fs.findUp(this.project.fs.join("node_modules",e,"package.json"),{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t){let{version:e}=await this.project.fs.readJSON(t);if("string"==typeof e)return(0,f.parse)(e)||void 0}}catch{}}async npmDependenciesUsed(e){let t={...e.dependencies??{},...e.devDependencies??{}},r=Object.keys(t).find(e=>this.npmDependencies.includes(e));if(!Object.keys(t).some(e=>this.excludedNpmDependencies.includes(e))&&null!=r){let e=await this.getVersionFromNodeModules(r);if(e)return{name:r,version:e,versionAccuracy:p.NodeModules};let s=t[r],i=(0,f.parse)(s);if(i)return{name:r,version:i,versionAccuracy:p.PackageJSONPinned};let n=(0,f.parse)((0,f.coerce)(s))||void 0;return n?{name:r,version:n,versionAccuracy:p.PackageJSON}:{name:r,version:void 0,versionAccuracy:void 0}}}async detectNpmDependency(){if(this.npmDependencies.length){let e=this.path||this.project.baseDirectory,t=await this.project.getPackageJSON(e),r=await this.npmDependenciesUsed(t);if(r)return this.version=r.version,{accuracy:this.project.fs.join(e,"package.json")===t.pkgPath?u.NPM:u.NPMHoisted,package:r,packageJSON:t}}}async detectConfigFile(e){if(e.length){let t=await this.project.fs.findUp(e,{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t)return{accuracy:0===this.npmDependencies.length?u.ConfigOnly:u.Config,config:t,configName:this.project.fs.basename(t)}}}async detect(){let e=await this.detectNpmDependency(),t=await this.detectConfigFile(this.configFiles??[]);if(this.detected=A([this.detected?.accuracy===u.Forced?this.detected:void 0,e,t]),this.detected)return this}getDevCommands(){if(this.dev?.command===void 0)return[];let e=N(this.dev.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.dev.command]}getBuildCommands(){let e=O(this.build.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.build.command]}toJSON(){return{id:this.id,name:this.name,package:{name:this.detected?.package?.name||this.npmDependencies?.[0],version:this.detected?.package?.version?.raw||"unknown",versionAccuracy:this.detected?.package?.versionAccuracy},category:this.category,dev:{commands:this.getDevCommands(),port:this.dev?.port,pollingStrategies:this.dev?.pollingStrategies},build:{commands:[this.build.command],directory:this.build.directory},staticAssetsDirectory:this.staticAssetsDirectory,env:this.env,logo:this.logo?Object.entries(this.logo).reduce((e,[t,r])=>({...e,[t]:`https://framework-info.netlify.app${r}`}),{}):void 0,plugins:this.plugins}}}class L extends T{id="analog";name="Analog";configFiles=[];npmDependencies=["@analogjs/platform"];category=h.SSG;dev={port:5173,command:"ng serve",pollingStrategies:[{name:"TCP"}]};build={command:"ng build --prod",directory:"dist/analog/public"};logo={default:"/logos/analog/default.svg",light:"/logos/analog/default.svg",dark:"/logos/analog/default.svg"}}class R extends T{id="angular";name="Angular";configFiles=["angular.json"];npmDependencies=["@angular/cli"];excludedNpmDependencies=["@analogjs/platform"];category=h.FrontendFramework;dev={port:4200,command:"ng serve",pollingStrategies:[{name:"TCP"}]};build={command:"ng build --prod",directory:"dist/"};logo={default:"/logos/angular/default.svg",light:"/logos/angular/default.svg",dark:"/logos/angular/default.svg"};async detect(){if(await super.detect(),this.detected){if(this.version&&(0,f.gte)(this.version,"17.0.0-rc")&&1){this.plugins.push("@netlify/angular-runtime");let e=await this.project.fs.gracefullyReadFile("angular.json");if(e){let{projects:t,defaultProject:r}=JSON.parse(e),s=t[r??Object.keys(t)[0]],i=s?.architect?.build?.options?.outputPath;if(i){let e=s?.architect?.build?.builder?.endsWith(":application");this.build.directory=e?this.project.fs.join(i,"browser"):i}}}return this}}}class j extends T{id="assemble";name="Assemble";npmDependencies=["assemble"];category=h.SSG;build={command:"grunt build",directory:"dist"};logo={default:"/logos/assemble/default.png",light:"/logos/assemble/default.png",dark:"/logos/assemble/default.png"}}class C extends T{id="astro";name="Astro";configFiles=["astro.config.mjs"];npmDependencies=["astro"];category=h.SSG;staticAssetsDirectory="public";dev={port:4321,command:"astro dev",pollingStrategies:[{name:"TCP"}]};build={command:"astro build",directory:"dist"};logo={default:"/logos/astro/light.svg",light:"/logos/astro/light.svg",dark:"/logos/astro/dark.svg"};async detect(){if(await super.detect(),this.detected)return this.version&&(0,f.lt)(this.version,"3.0.0")&&(this.dev.port=3e3),this}}class P extends T{id="blitz";name="Blitz.js";npmDependencies=["blitz"];category=h.SSG;dev={command:"blitz dev",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"blitz build",directory:"out"};logo={default:"/logos/blitz/light.svg",light:"/logos/blitz/light.svg",dark:"/logos/blitz/dark.svg"}}class D extends T{id="brunch";name="Brunch";npmDependencies=["brunch"];configFiles=["brunch-config.js"];category=h.BuildTool;dev={command:"brunch watch --server",port:3333,pollingStrategies:[{name:"TCP"}]};build={command:"brunch build",directory:"public"};logo={default:"/logos/brunch/default.svg",light:"/logos/brunch/default.svg",dark:"/logos/brunch/default.svg"}}class M extends T{id="cecil";name="Cecil";configFiles=["config.yml"];category=h.SSG;dev={command:"cecil serve",port:8e3,pollingStrategies:[{name:"TCP"}]};build={command:"cecil build",directory:"_site"};logo={default:"/logos/cecil/default.svg",light:"/logos/cecil/default.svg",dark:"/logos/cecil/default.svg"}}class F extends T{id="docpad";name="DocPad";npmDependencies=["docpad"];category=h.SSG;dev={command:"docpad run",port:9778,pollingStrategies:[{name:"TCP"}]};build={command:"docpad generate",directory:"out"}}class _ extends T{id="docusaurus";name="Docusaurus";configFiles=["docusaurus.config.js","siteConfig.js"];npmDependencies=["@docusaurus/core","docusaurus"];category=h.SSG;staticAssetsDirectory="static";dev={command:"docusaurus start",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"docusaurus build",directory:"build"};logo={default:"/logos/docusaurus/default.svg",light:"/logos/docusaurus/default.svg",dark:"/logos/docusaurus/default.svg"};env={BROWSER:"none"};async detect(){if(await super.detect(),this.detected)return this.isV1(this.detected)&&(this.build.command="docusaurus-build",this.build.directory="build/<project-name>",this.dev.command="docusaurus-start"),this}isV1(e){return e.config?.endsWith("siteConfig.js")||e.package?.name==="docusaurus"}}class U extends T{id="eleventy";name="Eleventy";configFiles=[".eleventy.js","eleventy.config.js","eleventy.config.cjs"];npmDependencies=["@11ty/eleventy"];category=h.SSG;dev={command:"eleventy --serve",port:8080,pollingStrategies:[{name:"TCP"}]};build={command:"eleventy",directory:"_site"};logo={default:"/logos/eleventy/default.svg",light:"/logos/eleventy/light.svg",dark:"/logos/eleventy/dark.svg"}}class B extends T{id="ember";name="Ember.js";configFiles=["ember-cli-build.js"];npmDependencies=["ember-cli"];category=h.FrontendFramework;dev={command:"ember serve",port:4200,pollingStrategies:[{name:"TCP"}]};build={command:"ember build",directory:"dist"};logo={default:"/logos/ember/default.svg",light:"/logos/ember/light.svg",dark:"/logos/ember/dark.svg"}}class G extends T{id="expo";name="Expo";configFiles=["app.json"];npmDependencies=["expo"];category=h.FrontendFramework;dev={command:"expo start --web",port:19006,pollingStrategies:[{name:"TCP"}]};build={command:"expo export -p web",directory:"dist"};logo={default:"/logos/expo/default.svg",light:"/logos/expo/light.svg",dark:"/logos/expo/dark.svg"}}class K extends T{id="gatsby";name="Gatsby";configFiles=["gatsby-config.js","gatsby-config.ts"];npmDependencies=["gatsby"];category=h.SSG;staticAssetsDirectory="static";dev={command:"gatsby develop",port:8e3,pollingStrategies:[{name:"TCP"}]};build={command:"gatsby build",directory:"public"};logo={default:"/logos/gatsby/default.svg",light:"/logos/gatsby/light.svg",dark:"/logos/gatsby/dark.svg"};env={GATSBY_LOGGER:"yurnalist",GATSBY_PRECOMPILE_DEVELOP_FUNCTIONS:"true",AWS_LAMBDA_JS_RUNTIME:"nodejs14.x",NODE_VERSION:"14"};async detect(){if(await super.detect(),this.detected){this.version&&(0,f.gte)(this.version,"5.0.0")&&(this.env.NODE_VERSION="18",this.env.AWS_LAMBDA_JS_RUNTIME="nodejs18.x");let e=await this.project.getCurrentNodeVersion();return e&&(0,f.gte)(e,"12.13.0")&&this.plugins.push("@netlify/plugin-gatsby"),this}}}class W extends T{id="gridsome";name="Gridsome";configFiles=["gridsome.config.js"];npmDependencies=["gridsome"];category=h.SSG;dev={command:"gridsome develop",port:8080,pollingStrategies:[{name:"TCP"}]};build={command:"gridsome build",directory:"dist"};logo={default:"/logos/gridsome/default.svg",light:"/logos/gridsome/light.svg",dark:"/logos/gridsome/dark.svg"}}class q extends T{id="grunt";name="Grunt";npmDependencies=["grunt"];category=h.BuildTool;build={command:"grunt build",directory:"dist"};logo={default:"/logos/grunt/default.svg",light:"/logos/grunt/default.svg",dark:"/logos/grunt/default.svg"}}class V extends T{id="gulp";name="gulp.js";npmDependencies=["gulp"];category=h.BuildTool;build={command:"gulp build",directory:"dist"};logo={default:"/logos/gulp/default.svg",light:"/logos/gulp/default.svg",dark:"/logos/gulp/default.svg"}}class J extends T{id="harp";name="Harp";npmDependencies=["harp"];category=h.SSG;dev={command:"harp server",port:9e3,pollingStrategies:[{name:"TCP"}]};build={command:"harp compile",directory:"www"};logo={default:"/logos/harp/default.svg",light:"/logos/harp/light.svg",dark:"/logos/harp/default.svg"}}class X extends T{id="hexo";name="Hexo";configFiles=["_config.yml"];npmDependencies=["hexo"];category=h.SSG;dev={command:"hexo server",port:4e3,pollingStrategies:[{name:"TCP"}]};build={command:"hexo generate",directory:"public"};logo={default:"/logos/hexo/default.svg",light:"/logos/hexo/light.svg",dark:"/logos/hexo/dark.svg"}}class H extends T{id="hono";name="Hono";npmDependencies=["hono"];category=h.BackendFramework;logo={default:"/logos/hono/default.svg",light:"/logos/hono/default.svg",dark:"/logos/hono/default.svg"}}class Y extends T{id="hugo";name="Hugo";configFiles=["config.json","config.toml","config.yaml","hugo.toml"];category=h.SSG;dev={command:"hugo server -w",port:1313,pollingStrategies:[{name:"TCP"}]};build={command:"hugo",directory:"public"};logo={default:"/logos/hugo/default.svg",light:"/logos/hugo/default.svg",dark:"/logos/hugo/default.svg"}}
22let z=["remix.config.js"],Z={command:'remix dev --manual -c "netlify dev"'},Q={command:"remix build",directory:"public"},ee=["vite.config.js","vite.config.mjs","vite.config.cjs","vite.config.ts","vite.config.mts","vite.config.cts"],et={command:"shopify hydrogen dev",port:5173},er={command:"remix vite:build",directory:"dist/client"};class es extends T{id="hydrogen";name="Hydrogen";npmDependencies=["@shopify/hydrogen"];configFiles=[...ee,...z];category=h.SSG;logo={default:"/logos/hydrogen/default.svg",light:"/logos/hydrogen/default.svg",dark:"/logos/hydrogen/default.svg"};async detect(){if(await super.detect(),this.detected)if(this.detected.configName&&ee.includes(this.detected.configName))return this.dev=et,this.build=er,this;else return this.dev=Z,this.build=Q,this}}class ei extends T{id="jekyll";name="Jekyll";configFiles=["_config.yml","_config.yaml","_config.toml"];category=h.SSG;dev={command:"bundle exec jekyll serve -w",port:4e3,pollingStrategies:[{name:"TCP"}]};build={command:"bundle exec jekyll build",directory:"_site"};logo={default:"/logos/jekyll/dark.svg",light:"/logos/jekyll/light.svg",dark:"/logos/jekyll/dark.svg"}}class en extends T{id="metalsmith";name="Metalsmith";npmDependencies=["metalsmith"];category=h.SSG;build={command:"metalsmith",directory:"build"};logo={default:"/logos/metalsmith/default.svg",light:"/logos/metalsmith/default.svg",dark:"/logos/metalsmith/default.svg"}}class eo extends T{id="middleman";name="Middleman";configFiles=["config.rb"];category=h.SSG;dev={command:"bundle exec middleman server",port:4567,pollingStrategies:[{name:"TCP"}]};build={command:"bundle exec middleman build",directory:"build"};logo={default:"/logos/middleman/default.svg",light:"/logos/middleman/default.svg",dark:"/logos/middleman/default.svg"}}class ea extends T{id="next";name="Next.js";category=h.SSG;npmDependencies=["next"];excludedNpmDependencies=["@nrwl/next"];configFiles=["next.config.js","next.config.mjs","next.config.ts"];dev={command:"next",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"next build",directory:".next"};logo={default:"/logos/nextjs/light.svg",light:"/logos/nextjs/light.svg",dark:"/logos/nextjs/dark.svg"};async detect(){if(await super.detect(),this.detected){let e=await this.project.getCurrentNodeVersion();return e&&(0,f.gte)(e,"10.13.0")&&this.plugins.push("@netlify/plugin-nextjs"),this}}}class el extends T{id="nuxt";name="Nuxt";npmDependencies=["nuxt","nuxt-edge","nuxt3"];category=h.SSG;dev={command:"nuxt dev",port:3e3,pollingStrategies:[{name:"TCP"}],clearPublishDirectory:!0};build={command:"nuxt build",directory:"dist"};logo={default:"/logos/nuxt/default.svg",light:"/logos/nuxt/light.svg",dark:"/logos/nuxt/dark.svg"};async detect(){if(await super.detect(),this.detected)return this.detected.package?.version?.major!==void 0&&this.detected.package.version.major<3&&(this.build.command="nuxt generate",this.dev.command="nuxt"),this}}class ec extends T{id="observable";name="Observable Framework";npmDependencies=["@observablehq/framework"];category=h.SSG;dev={command:"observable preview",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"observable build",directory:"dist"};logo={default:"/logos/observable/default.svg",light:"/logos/observable/default.svg",dark:"/logos/observable/default.svg"}}class eh extends T{id="parcel";name="Parcel";npmDependencies=["parcel-bundler","parcel"];category=h.BuildTool;dev={command:"parcel",port:1234,pollingStrategies:[{name:"TCP"}]};build={command:"parcel build",directory:"dist"};logo={default:"/logos/parcel/default.svg",light:"/logos/parcel/default.svg",dark:"/logos/parcel/default.svg"}}class eu extends T{id="phenomic";name="Phenomic";npmDependencies=["@phenomic/core"];category=h.SSG;dev={command:"phenomic start",port:3333,pollingStrategies:[{name:"TCP"}]};build={command:"phenomic build",directory:"public"};logo={default:"/logos/phenomic/default.svg",light:"/logos/phenomic/default.svg",dark:"/logos/phenomic/default.svg"}}class ep extends T{id="quasar";name="Quasar";npmDependencies=["@quasar/app","quasar-cli"];category=h.FrontendFramework;dev={command:"quasar dev -p 8081",port:8081,pollingStrategies:[{name:"TCP"}]};build={command:"quasar build",directory:"dist/spa"};logo={default:"/logos/quasar/default.svg",light:"/logos/quasar/default.svg",dark:"/logos/quasar/default.svg"};async detect(){if(await super.detect(),this.detected)return this.isV017(this.detected)&&(this.name="Quasar v0.17",this.build.directory=".quasar",this.dev.command="quasar dev -p 8080",this.dev.port=8080),this}isV017(e){return e.package?.name==="quasar-cli"}}class ef extends T{id="qwik";name="Qwik";npmDependencies=["@builder.io/qwik"];category=h.SSG;dev={command:"vite",port:5173,pollingStrategies:[{name:"TCP"}]};logo={default:"/logos/qwik/default.svg",light:"/logos/qwik/default.svg",dark:"/logos/qwik/default.svg"}}class ed extends T{id="react-router";name="React Router";npmDependencies=["@react-router/dev"];configFiles=["react-router.config.ts","react-router.config.js"];category=h.SSG;dev={port:5173,command:"react-router dev"};build={command:"react-router build",directory:"build/client"};logo={default:"/logos/react-router/light.svg",light:"/logos/react-router/light.svg",dark:"/logos/react-router/dark.svg"};async detect(){if((await super.detect(),this.detected)&&!(this.version&&(0,f.lt)(this.version,"7.0.0")))return this}}class eg extends T{id="react-static";name="React Static";npmDependencies=["react-static"];
22configFiles=["static.config.js"];category=h.SSG;dev={command:"react-static start",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"react-static build",directory:"dist"};logo={default:"/logos/react-static/default.png",light:"/logos/react-static/default.png",dark:"/logos/react-static/default.png"}}class em extends T{id="create-react-app";name="Create React App";npmDependencies=["react-scripts"];category=h.FrontendFramework;staticAssetsDirectory="public";dev={command:"react-scripts start",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"react-scripts build",directory:"build"};logo={default:"/logos/create-react-app/default.svg",light:"/logos/create-react-app/default.svg",dark:"/logos/create-react-app/default.svg"};env={BROWSER:"none",PORT:"3000"}}class ey extends T{id="redwoodjs";name="RedwoodJS";npmDependencies=["@redwoodjs/core"];configFiles=["redwood.toml"];category=h.SSG;staticAssetsDirectory="public";dev={command:"yarn rw dev",port:8910,pollingStrategies:[{name:"TCP"}]};build={command:"rw deploy netlify",directory:"web/dist"};env={AWS_LAMBDA_JS_RUNTIME:"nodejs20.x",NODE_VERSION:"20"};logo={default:"/logos/redwoodjs/default.svg",light:"/logos/redwoodjs/default.svg",dark:"/logos/redwoodjs/default.svg"}}let ev=["remix.config.js"],eb={command:"remix watch"},ew={command:"remix build",directory:"public"},eE=["vite.config.js","vite.config.mjs","vite.config.cjs","vite.config.ts","vite.config.mts","vite.config.cts"],ex={command:"remix vite:dev",port:5173},ek={command:"remix vite:build",directory:"build/client"};class eS extends T{id="remix";name="Remix";npmDependencies=["@remix-run/react","@remix-run/dev","@remix-run/server-runtime","@netlify/remix-adapter","@netlify/remix-edge-adapter","@netlify/remix-runtime","remix","@remix-run/netlify","@remix-run/netlify-edge"];excludedNpmDependencies=["@shopify/hydrogen"];configFiles=[...eE,...ev];category=h.SSG;logo={default:"/logos/remix/default.svg",light:"/logos/remix/light.svg",dark:"/logos/remix/dark.svg"};async detect(){if(await super.detect(),this.detected)if(this.detected.configName&&eE.includes(this.detected.configName))return this.dev=ex,this.build=ek,this;else return this.dev=eb,this.build=ew,this}}class eN extends T{id="roots";name="Roots";npmDependencies=["roots"];category=h.SSG;
22dev={command:"roots watch",port:1111,pollingStrategies:[{name:"TCP"}]};build={command:"roots compile",directory:"public"};logo={default:"/logos/roots/default.svg",light:"/logos/roots/default.svg",dark:"/logos/roots/default.svg"}}class eO extends T{id="sapper";name="Sapper";npmDependencies=["sapper"];category=h.FrontendFramework;staticAssetsDirectory="static";dev={command:"sapper dev",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"sapper export",directory:"__sapper__/export"};logo={default:"/logos/sapper/default.svg",light:"/logos/sapper/default.svg",dark:"/logos/sapper/default.svg"}}class e$ extends T{id="solid-js";name="SolidJS";npmDependencies=["solid-js"];excludedNpmDependencies=["solid-start","@solidjs/start","@tanstack/solid-start"];category=h.SSG;dev={command:"vite dev",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"vite build",directory:"dist"};logo={default:"/logos/solid-js/default.svg",light:"/logos/solid-js/default.svg",dark:"/logos/solid-js/dark.svg"}}let eI="solid-start",eA={command:"solid-start dev",port:3e3},eT={command:"solid-start build",directory:"netlify"};class eL extends T{id="solid-start";name="Solid Start";npmDependencies=["solid-start","@solidjs/start"];category=h.SSG;dev={command:"vinxi dev",port:3e3};build={command:"vinxi build",directory:"dist"};logo={default:"/logos/solid-start/default.svg",light:"/logos/solid-start/default.svg",dark:"/logos/solid-start/dark.svg"};async detect(){if(await super.detect(),this.detected)return this.detected.package?.name===eI&&(this.dev=eA,this.build=eT),this}}class eR extends T{id="stencil";name="Stencil";npmDependencies=["@stencil/core"];configFiles=["stencil.config.ts"];category=h.SSG;dev={command:"stencil build --dev --watch --serve",port:3333,pollingStrategies:[{name:"TCP"}]};build={command:"stencil build",directory:"www"};logo={default:"/logos/stencil/light.svg",light:"/logos/stencil/light.svg",dark:"/logos/stencil/dark.svg"};env={BROWSER:"none",PORT:"3000"}}class ej extends T{id="svelte-kit";name="SvelteKit";npmDependencies=["@sveltejs/kit"];category=h.FrontendFramework;staticAssetsDirectory="static";dev={command:"vite dev",port:5173,pollingStrategies:[{name:"TCP"}]};build={command:"vite build",directory:"build"};logo={default:"/logos/svelte-kit/default.svg",light:"/logos/svelte-kit/default.svg",dark:"/logos/svelte-kit/default.svg"}}class eC extends T{id="svelte";name="Svelte";npmDependencies=["svelte"];excludedNpmDependencies=["sapper","@sveltejs/kit"];category=h.FrontendFramework;staticAssetsDirectory="static";dev={command:"npm run dev",port:5e3,pollingStrategies:[{name:"TCP"}]};build={command:"npm run build",directory:"public"};logo={default:"/logos/svelte-kit/default.svg",light:"/logos/svelte-kit/default.svg",dark:"/logos/svelte-kit/default.svg"}}class eP extends T{id="tanstack-router";name="TanStack Router";npmDependencies=["@tanstack/react-router"];excludedNpmDependencies=["@tanstack/start","@tanstack/react-start","@tanstack/solid-start"];category=h.SSG;dev={command:"vite dev",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"vite build",directory:"dist"};logo={default:"/logos/tanstack-router/default.png",light:"/logos/tanstack-router/default.png",dark:"/logos/tanstack-router/default.png"}}class eD extends T{id="tanstack-start";name="TanStack Start";npmDependencies=["@tanstack/start","@tanstack/react-start","@tanstack/solid-start"];category=h.SSG;dev={command:"vite dev",port:3e3,pollingStrategies:[{name:"TCP"}]};build={command:"vite build",directory:"dist/client"};logo={default:"/logos/tanstack-start/default.png",light:"/logos/tanstack-start/default.png",dark:"/logos/tanstack-start/default.png"};async detect(){if(await super.detect(),this.detected)return this.version&&(0,f.lt)(this.version,"1.121.0")&&(this.dev.command="vinxi dev",this.build.command="vinxi build"),this.version&&(0,f.lt)(this.version,"1.132.0")&&(this.build.directory="dist"),this}}class eM extends T{id="vike";name="Vike";npmDependencies=["vike"];category=h.SSG;dev={command:"vike dev",port:3e3};build={command:"vike build",directory:"dist/client"};logo={default:"/logos/vike/light.svg",light:"/logos/vite/light.svg",dark:"/logos/vite/dark.svg"}}class eF extends T{id="vite";name="Vite";npmDependencies=["vite"];excludedNpmDependencies=["@remix-run/react","@remix-run/dev","@remix-run/server-runtime","@shopify/hydrogen","@builder.io/qwik","solid-start","@solidjs/start","solid-js","@tanstack/react-router","@tanstack/start","@sveltejs/kit","@analogjs/platform","@react-router/dev","vike"];category=h.BuildTool;dev={command:"vite",port:5173,pollingStrategies:[{name:"TCP"}]};build={command:"vite build",directory:"dist"};logo={default:"/logos/vite/default.svg",light:"/logos/vite/default.svg",dark:"/logos/vite/default.svg"}}class e_ extends T{id="vue";name="Vue.js";npmDependencies=["@vue/cli-service"];category=h.FrontendFramework;dev={command:"vue-cli-service serve",port:8080,pollingStrategies:[{name:"TCP"}]};build={command:"vue-cli-service build",directory:"dist"};logo={default:"/logos/vue/default.svg",light:"/logos/vue/default.svg",dark:"/logos/vue/default.svg"}}class eU extends T{id="vuepress";name="VuePress";npmDependencies=["vuepress"];category=h.SSG;dev={command:"vuepress dev",port:8080,pollingStrategies:[{name:"TCP"}]};build={command:"vuepress build",directory:".vuepress/dist"};logo={default:"/logos/vuepress/default.svg",light:"/logos/vuepress/default.svg",dark:"/logos/vuepress/default.svg"}}class eB extends T{id="waku";name="Waku";npmDependencies=["waku"];configFiles=["waku.config.ts","waku.config.js"];category=h.SSG;dev={command:"waku dev",port:3e3};build={command:"waku build",directory:"dist/public"};logo={default:"/logos/waku/light.svg",light:"/logos/waku/light.svg",dark:"/logos/waku/dark.svg"}}class eG extends T{id="wintersmith";name="Wintersmith";npmDependencies=["wintersmith"];configFiles=["config.json"];category=h.SSG;dev={command:"wintersmith preview",port:8080,pollingStrategies:[{name:"TCP"}]};build={command:"wintersmith build",directory:"build"};logo={default:"/logos/wintersmith/default.svg",light:"/logos/wintersmith/default.svg",dark:"/logos/wintersmith/default.svg"}}class eK extends T{id="wmr";name="WMR";npmDependencies=["wmr"];category=h.BuildTool;dev={command:"wmr",port:8080,pollingStrategies:[{name:"TCP"}]};build={command:"wmr build",directory:"dist"};logo={default:"/logos/wmr/default.svg",light:"/logos/wmr/default.svg",dark:"/logos/wmr/default.svg"}}class eW extends T{id="zola";name="Zola";configFiles=["config.toml"];category=h.SSG;dev={command:"zola serve",port:1111,pollingStrategies:[{name:"TCP"}]};build={command:"zola build",directory:"public"}}let eq=[C,_,U,K,W,X,Y,es,ei,eo,ea,P,el,eu,ef,ed,eg,ey,eS,e$,eL,eR,eP,eD,eU,j,F,J,en,eN,eG,M,eW,ec,L,eM,eB,H,R,em,B,G,ep,eO,eC,ej,e_,D,eh,V,q,eF,eK];async function eV(e,t){let r=eq.map(e=>new e(t)),s=r.find(({id:t})=>t===e);if(s){s.detected={accuracy:u.Forced};let t=await s.detect();if(t)return t;throw Error(`Forced framework "${e}" was not detected.`)}let i=r.map(({id:e})=>e).sort().join(", ");throw Error(`Invalid framework "${e}". It should be one of: ${i}`)}class eJ{project;id;name;version;configFiles=[];runFromRoot;logo;constructor(e){this.project=e}async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(this.project.fs.dirname(e));return this.version=t.devDependencies?.[this.id],this}}toJSON(){return{id:this.id,name:this.name,version:this.version,logo:this.logo?Object.entries(this.logo).reduce((e,[t,r])=>({...e,[t]:`https://framework-info.netlify.app${r}`}),{}):void 0}}}class eX extends eJ{id="bazel";name="Bazel";configFiles=[".bazelrc","WORKSPACE","WORKSPACE.bazel","BUILD.bazel"];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}}class eH extends eJ{id="buck";name="Buck";configFiles=[".buckconfig","BUCK"];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}}class eY extends eJ{id="gradle";name="Gradle";configFiles=["build.gradle"];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}}class ez extends eJ{id="lage";name="Lage";configFiles=["lage.config.js"]}class eZ extends eJ{id="lerna";name="Lerna";configFiles=["lerna.json"];logo={default:"/logos/lerna/light.svg",light:"/logos/lerna/light.svg",dark:"/logos/lerna/dark.svg"}}class eQ extends eJ{id="moon";name="MoonRepo";configFiles=[".moon"];async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,type:"directory",stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(e);return this.version=t.devDependencies?.[this.id],this}}}class e0 extends eJ{id="nix";name="Nix";configFiles=["default.nix","shell.nix","release.nix"];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}}let e1=Symbol.for("yaml.alias"),e2=Symbol.for("yaml.document"),e3=Symbol.for("yaml.map"),e9=Symbol.for("yaml.pair"),e4=Symbol.for("yaml.scalar"),e7=Symbol.for("yaml.seq"),e8=Symbol.for("yaml.node.type"),e6=e=>!!e&&"object"==typeof e&&e[e8]===e1,e5=e=>!!e&&"object"==typeof e&&e[e8]===e2,te=e=>!!e&&"object"==typeof e&&e[e8]===e3,tt=e=>!!e&&"object"==typeof e&&e[e8]===e9,tr=e=>!!e&&"object"==typeof e&&e[e8]===e4,ts=e=>!!e&&"object"==typeof e&&e[e8]===e7;function ti(e){if(e&&"object"==typeof e)switch(e[e8]){case e3:case e7:return!0}return!1}function tn(e){if(e&&"object"==typeof e)switch(e[e8]){case e1:case e3:case e4:case e7:return!0}return!1}let to=e=>(tr(e)||ti(e))&&!!e.anchor,ta=Symbol("break visit"),tl=Symbol("skip children"),tc=Symbol("remove node");function th(e,t){let r=td(t);e5(e)?tu(null,e.contents,r,Object.freeze([e]))===tc&&(e.contents=null):tu(null,e,r,Object.freeze([]))}function tu(e,t,r,s){let i=tg(e,t,r,s);
22if(tn(i)||tt(i))return tm(e,s,i),tu(e,i,r,s);if("symbol"!=typeof i){if(ti(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let i=tu(e,t.items[e],r,s);if("number"==typeof i)e=i-1;else{if(i===ta)return ta;i===tc&&(t.items.splice(e,1),e-=1)}}}else if(tt(t)){s=Object.freeze(s.concat(t));let e=tu("key",t.key,r,s);if(e===ta)return ta;e===tc&&(t.key=null);let i=tu("value",t.value,r,s);if(i===ta)return ta;i===tc&&(t.value=null)}}return i}async function tp(e,t){let r=td(t);e5(e)?await tf(null,e.contents,r,Object.freeze([e]))===tc&&(e.contents=null):await tf(null,e,r,Object.freeze([]))}async function tf(e,t,r,s){let i=await tg(e,t,r,s);if(tn(i)||tt(i))return tm(e,s,i),tf(e,i,r,s);if("symbol"!=typeof i){if(ti(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let i=await tf(e,t.items[e],r,s);if("number"==typeof i)e=i-1;else{if(i===ta)return ta;i===tc&&(t.items.splice(e,1),e-=1)}}}else if(tt(t)){s=Object.freeze(s.concat(t));let e=await tf("key",t.key,r,s);if(e===ta)return ta;e===tc&&(t.key=null);let i=await tf("value",t.value,r,s);if(i===ta)return ta;i===tc&&(t.value=null)}}return i}function td(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function tg(e,t,r,s){return"function"==typeof r?r(e,t,s):te(t)?r.Map?.(e,t,s):ts(t)?r.Seq?.(e,t,s):tt(t)?r.Pair?.(e,t,s):tr(t)?r.Scalar?.(e,t,s):e6(t)?r.Alias?.(e,t,s):void 0}function tm(e,t,r){let s=t[t.length-1];if(ti(s))s.items[e]=r;else if(tt(s))"key"===e?s.key=r:s.value=r;else if(e5(s))s.contents=r;else{let e=e6(s)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}th.BREAK=ta,th.SKIP=tl,th.REMOVE=tc,tp.BREAK=ta,tp.SKIP=tl,tp.REMOVE=tc;let ty={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},tv=e=>e.replace(/[!,[\]{}]/g,e=>ty[e]);class tb{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},tb.defaultYaml,e),this.tags=Object.assign({},tb.defaultTags,t)}clone(){let e=new tb(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new tb(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:tb.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},tb.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:tb.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},tb.defaultTags),this.atNextDocument=!1);let r=e.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;let[e,s]=r;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=r;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let r=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,r),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}let[,r,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);let i=this.tags[r];if(i)try{return i+decodeURIComponent(s)}catch(e){return t(String(e)),null}return"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+tv(e.substring(r.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);if(e&&s.length>0&&tn(e.contents)){let r={};th(e.contents,(e,t)=>{tn(t)&&t.tag&&(r[t.tag]=!0)}),t=Object.keys(r)}else t=[];for(let[i,n]of s)("!!"!==i||"tag:yaml.org,2002:"!==n)&&(!e||t.some(e=>e.startsWith(n)))&&r.push(`%TAG ${i} ${n}`);return r.join(` 23`)}}function tw(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function tE(e){let t=new Set;return th(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function tx(e,t){for(let r=1;;++r){let s=`${e}${r}`;if(!t.has(s))return s}}function tk(e,t){let r=[],s=new Map,i=null;return{onAnchor:s=>{r.push(s),i??(i=tE(e));let n=tx(t,i);return i.add(n),n},setAnchors:()=>{for(let e of r){let t=s.get(e);if("object"==typeof t&&t.anchor&&(tr(t.node)||ti(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:s}}function tS(e,t,r,s){if(s&&"object"==typeof s)if(Array.isArray(s))for(let t=0,r=s.length;t<r;++t){let r=s[t],i=tS(e,s,String(t),r);void 0===i?delete s[t]:i!==r&&(s[t]=i)}else if(s instanceof Map)for(let t of Array.from(s.keys())){let r=s.get(t),i=tS(e,s,t,r);void 0===i?s.delete(t):i!==r&&s.set(t,i)}else if(s instanceof Set)for(let t of Array.from(s)){let r=tS(e,s,t,t);void 0===r?s.delete(t):r!==t&&(s.delete(t),s.add(r))}else for(let[t,r]of Object.entries(s)){let i=tS(e,s,t,r);void 0===i?delete s[t]:i!==r&&(s[t]=i)}return e.call(t,r,s)}function tN(e,t,r){if(Array.isArray(e))return e.map((e,t)=>tN(e,String(t),r));if(e&&"function"==typeof e.toJSON){if(!r||!to(e))return e.toJSON(t,r);let s={aliasCount:0,count:1,res:void 0};r.anchors.set(e,s),r.onCreate=e=>{s.res=e,delete r.onCreate};let i=e.toJSON(t,r);return r.onCreate&&r.onCreate(i),i}return"bigint"!=typeof e||r?.keep?e:Number(e)}tb.defaultYaml={explicit:!1,version:"1.2"},tb.defaultTags={"!!":"tag:yaml.org,2002:"};class tO{constructor(e){Object.defineProperty(this,e8,{value:e})}
23clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:s,reviver:i}={}){if(!e5(e))throw TypeError("A document argument is required");let n={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},o=tN(this,"",n);if("function"==typeof s)for(let{count:e,res:t}of n.anchors.values())s(t,e);return"function"==typeof i?tS(i,{"":o},"",o):o}}class t$ extends tO{constructor(e){super(e1),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let r,s;for(let i of(t?.aliasResolveCache?r=t.aliasResolveCache:(r=[],th(e,{Node:(e,t)=>{(e6(t)||to(t))&&r.push(t)}}),t&&(t.aliasResolveCache=r)),r)){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(e,t){if(!t)return{source:this.source};let{anchors:r,doc:s,maxAliasCount:i}=t,n=this.resolve(s,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=r.get(n);if(o||(tN(n,null,t),o=r.get(n)),o?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=tI(s,n,r)),o.count*o.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exh
23austion attack");return o.res}toString(e,t,r){let s=`*${this.source}`;if(e){if(tw(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${s} `}return s}}function tI(e,t,r){if(e6(t)){let s=t.resolve(e),i=r&&s&&r.get(s);return i?i.count*i.aliasCount:0}if(ti(t)){let s=0;for(let i of t.items){let t=tI(e,i,r);t>s&&(s=t)}return s}return tt(t)?Math.max(tI(e,t.key,r),tI(e,t.value,r)):1}let tA=e=>!e||"function"!=typeof e&&"object"!=typeof e;class tT extends tO{constructor(e){super(e4),this.value=e}toJSON(e,t){return t?.keep?this.value:tN(this.value,e,t)}toString(){return String(this.value)}}tT.BLOCK_FOLDED="BLOCK_FOLDED",tT.BLOCK_LITERAL="BLOCK_LITERAL",tT.PLAIN="PLAIN",tT.QUOTE_DOUBLE="QUOTE_DOUBLE",tT.QUOTE_SINGLE="QUOTE_SINGLE";let tL="tag:yaml.org,2002:";function tR(e,t,r){if(t){let e=r.filter(e=>e.tag===t),s=e.find(e=>!e.format)??e[0];if(!s)throw Error(`Tag ${t} not found`);return s}return r.find(t=>t.identify?.(e)&&!t.format)}function tj(e,t,r){let s;if(e5(e)&&(e=e.contents),tn(e))return e;if(tt(e)){let t=r.schema[e3].createNode?.(r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:n,onTagObj:o,schema:a,sourceObjects:l}=r;if(i&&e&&"object"==typeof e){if(s=l.get(e))return s.anchor??(s.anchor=n(e)),new t$(s.anchor);s={anchor:null,node:null},l.set(e,s)}t?.startsWith("!!")&&(t=tL+t.slice(2));let c=tR(e,t,a.tags);if(!c){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new tT(e);return s&&(s.node=t),t}c=e instanceof Map?a[e3]:Symbol.iterator in Object(e)?a[e7]:a[e3]}o&&(o(c),delete r.onTagObj);let h=c?.createNode?c.createNode(r.schema,e,r):"function"==typeof c?.nodeClass?.from?c.nodeClass.from(r.schema,e,r):new tT(e);return t?h.tag=t:c.default||(h.tag=c.tag),s&&(s.node=h),h}function tC(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){let r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){let e=[];e[r]=s,s=e}else s=new Map([[r,s]])}return tj(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}let tP=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class tD extends tO{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>tn(t)||tt(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(tP(e))this.add(t);else{let[r,...s]=e,i=this.get(r,!0);if(ti(i))i.addIn(s,t);else if(void 0===i&&this.schema)this.set(r,tC(this.schema,s,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn(e){let[t,...r]=e;if(0===r.length)return this.delete(t);let s=this.get(t,!0);if(ti(s))return s.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...s]=e,i=this.get(r,!0);return 0===s.length?!t&&tr(i)?i.value:i:ti(i)?i.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!tt(t))return!1;let r=t.value;return null==r||e&&tr(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(0===r.length)return this.has(t);let s=this.get(t,!0);return!!ti(s)&&s.hasIn(r)}setIn(e,t){let[r,...s]=e;if(0===s.length)this.set(r,t);else{let e=this.get(r,!0);if(ti(e))e.setIn(s,t);else if(void 0===e&&this.schema)this.set(r,tC(this.schema,s,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}}let tM=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function tF(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let t_=(e,t,r)=>e.endsWith(` 24`)?tF(r,t):r.includes(` 25`)?` 26`+tF(r,t):(e.endsWith(" ")?"":" ")+r,tU="flow",tB="block",tG="quoted";function tK(e,t,r="flow",{indentAtStart:s,lineWidth:i=80,minContentWidth:n=20,onFold:o,onOverflow:a}={}){let l,c,h;if(!i||i<0)return e;i<n&&(n=0);let u=Math.max(1+n,1+i-t.length);if(e.length<=u)return e;let p=[],f={},d=i-t.length;"number"==typeof s&&(s>i-Math.max(2,n)?p.push(0):d=i-s);let g=!1,m=-1,y=-1,v=-1;for(r===tB&&-1!==(m=tW(e,m,t.length))&&(d=m+u);h=e[m+=1];){if(r===tG&&"\\"===h){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if(` 27`===h)r===tB&&(m=tW(e,m,t.length)),d=m+t.length+u,l=void 0;else{if(" "===h&&c&&" "!==c&&` 28`!==c&&" "!==c){let t=e[m+1];t&&" "!==t&&` 29`!==t&&" "!==t&&(l=m)}if(m>=d)if(l)p.push(l),d=l+u,l=void 0;else if(r===tG){for(;" "===c||" "===c;)c=h,h=e[m+=1],g=!0;let t=m>v+1?m-2:y-1;if(f[t])return e;p.push(t),f[t]=!0,d=t+u,l=void 0}else g=!0}c=h}if(g&&a&&a(),0===p.length)return e;o&&o();let b=e.slice(0,p[0]);for(let s=0;s<p.length;++s){let i=p[s],n=p[s+1]||e.length;0===i?b=` 30${t}${e.slice(0,n)}`:(r===tG&&f[i]&&(b+=`${e[i]}\\`),b+=` 31${t}${e.slice(i+1,n)}`)}return b}function tW(e,t,r){let s=t,i=t+1,n=e[i];for(;" "===n||" "===n;)if(t<i+r)n=e[++t];else{do n=e[++t];while(n&&` 32`!==n)s=t,n=e[i=t+1]}return s}let tq=(e,t)=>
32({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),tV=e=>/^(%|---|\.\.\.)/m.test(e);function tJ(e,t,r){if(!t||t<0)return!1;let s=t-r,i=e.length;if(i<=s)return!1;for(let t=0,r=0;t<i;++t)if(` 33`===e[t]){if(t-r>s)return!0;if(i-(r=t+1)<=s)return!1}return!0}function tX(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:s}=t,i=t.options.doubleQuotedMinMultiLineLength,n=t.indent||(tV(e)?" ":""),o="",a=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(o+=r.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{o+=r.slice(a,e);let t=r.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=r.substr(e,6)}e+=5,a=e+1}break;case"n":if(s||'"'===r[e+2]||r.length<i)e+=1;else{for(o+=r.slice(a,e)+` 34 35`;"\\"===r[e+2]&&"n"===r[e+3]&&'"'!==r[e+4];)o+=` 36`,e+=2;o+=n," "===r[e+2]&&(o+="\\"),e+=1,a=e+1}break;default:e+=1}return o=a?o+r.slice(a):r,s?o:tK(o,n,tG,tq(t,!1))}function tH(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes(` 37`)||/[ \t]\n|\n[ \t]/.test(e))return tX(e,t);let r=t.indent||(tV(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$& 38${r}`)+"'";return t.implicitKey?s:tK(s,r,tU,tq(t,!1))}function tY(e,t){let r,{singleQuote:s}=t.options;if(!1===s)r=tX;else{let t=e.includes('"'),i=e.includes("'");r=t&&!i?tH:i&&!t?tX:s?tH:tX}return r(e,t)}try{s=RegExp(`(^|(?<! 39)) 40+(?! 41|$)`,"g")}catch{s=/\n+(?!\n|$)/g}function tz({comment:e,type:t,value:r},i,n,o){let a,l,c,{blockQuote:h,commentString:u,lineWidth:p}=i.options;if(!h||/\n[\t ]+$/.test(r))return tY(r,i);let f=i.indent||(i.forceBlockIndent||tV(r)?" ":""),d="literal"===h||"folded"!==h&&t!==tT.BLOCK_FOLDED&&(t===tT.BLOCK_LITERAL||!tJ(r,p,f.length));if(!r)return d?`| 42`:`> 43`;for(l=r.length;l>0;--l){let e=r[l-1];if(` 44`!==e&&" "!==e&&" "!==e)break}let g=r.substring(l),m=g.indexOf(` 45`);-1===m?a="-":r===g||m!==g.length-1?(a="+",o&&o()):a="",g&&(r=r.slice(0,-g.length),` 46`===g[g.length-1]&&(g=g.slice(0,-1)),g=g.replace(s,`$&${f}`));let y=!1,v=-1;for(c=0;c<r.length;++c){let e=r[c];if(" "===e)y=!0;else if(` 47`===e)v=c;else break}let b=r.substring(0,v<c?v+1:c);b&&(r=r.substring(b.length),b=b.replace(/\n+/g,`$&${f}`));let w=f?"2":"1",E=(y?w:"")+a;if(e&&(E+=" "+u(e.replace(/ ?[\r\n]+/g," ")),n&&n()),!d){let e=r.replace(/\n+/g,` 48$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`),s=!1,n=tq(i,!0);"folded"!==h&&t!==tT.BLOCK_FOLDED&&(n.onOverflow=()=>{s=!0});let o=tK(`${b}${e}${g}`,f,tB,n);if(!s)return`>${E} 49${f}${o}`}return r=r.replace(/\n+/g,`$&${f}`),`|${E} 50${f}${b}${r}${g}`}function tZ(e,t,r,s){let{type:i,value:n}=e,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:h}=t;if(a&&n.includes(` 51`)||h&&/[[\]{},]/.test(n))return tY(n,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(n))return a||h||!n.includes(` 52`)?tY(n,t):tz(e,t,r,s);if(!a&&!h&&i!==tT.PLAIN&&n.includes(` 53`))return tz(e,t,r,s);if(tV(n)){if(""===l)return t.forceBlockIndent=!0,tz(e,t,r,s);else if(a&&l===c)return tY(n,t)}let u=n.replace(/\n+/g,`$& 54${l}`);if(o){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(u),{compat:r,tags:s}=t.doc.schema;if(s.some(e)||r?.some(e))return tY(n,t)}return a?u:tK(u,l,tU,tq(t,!1))}function tQ(e,t,r,s){let{implicitKey:i,inFlow:n}=t,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==tT.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=tT.QUOTE_DOUBLE);let l=e=>{switch(e){case tT.BLOCK_FOLDED:case tT.BLOCK_LITERAL:return i||n?tY(o.value,t):tz(o,t,r,s);case tT.QUOTE_DOUBLE:return tX(o.value,t);case tT.QUOTE_SINGLE:return tH(o.value,t);case tT.PLAIN:return tZ(o,t,r,s);default:return null}},c=l(a);if(null===c){let{defaultKeyType:e,defaultStringType:r}=t.options,s=i&&e||r;if(null===(c=l(s)))throw Error(`Unsupported default string type ${s}`)}return c}function t0(e,t){let r,s=Object.assign({blockQuote:!0,commentString:tM,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(s.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof s.indent?" ".repeat(s.indent):" ",inFlow:r,options:s}}function t1(e,t){let r,s;if(t.tag){let r=e.filter(e=>e.tag===t.tag);if(r.length>0)return r.find(e=>e.format===t.format)??r[0]}if(tr(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}s=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,s=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!s){let e=r?.constructor?.name??(null===r?"null":typeof r);throw Error(`Tag not resolved for ${e} value`)}return s}function t2(e,t,{anchors:r,doc:s}){if(!s.directives)return"";let i=[],n=(tr(e)||ti(e))&&e.anchor;n&&tw(n)&&(r.add(n),i.push(`&${n}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(s.directives.tagString(o)),i.join(" ")}function t3(e,t,r,s){let i;if(tt(e))return e.toString(t,r,s);if(e6(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let n=tn(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??(i=t1(t.doc.schema.tags,n));let o=t2(n,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let a="function"==typeof i.stringify?i.stringify(n,t,r,s):tr(n)?tQ(n,t,r,s):n.toString(t,r,s);
54return o?tr(n)||"{"===a[0]||"["===a[0]?`${o} ${a}`:`${o} 55${t.indent}${a}`:a}function t9({key:e,value:t},r,s,i){let n,o,a,{allNullValues:l,doc:c,indent:h,indentStep:u,options:{commentString:p,indentSeq:f,simpleKeys:d}}=r,g=tn(e)&&e.comment||null;if(d){if(g)throw Error("With simple keys, key nodes cannot have comments");if(ti(e)||!tn(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let m=!d&&(!e||g&&null==t&&!r.inFlow||ti(e)||(tr(e)?e.type===tT.BLOCK_FOLDED||e.type===tT.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!m&&(d||!l),indent:h+u});let y=!1,v=!1,b=t3(e,r,()=>y=!0,()=>v=!0);if(!m&&!r.inFlow&&b.length>1024){if(d)throw Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(r.inFlow){if(l||null==t)return y&&s&&s(),""===b?"?":m?`? ${b}`:b}else if(l&&!d||null==t&&m)return b=`? ${b}`,g&&!y?b+=t_(b,r.indent,p(g)):v&&i&&i(),b;y&&(g=null),m?(g&&(b+=t_(b,r.indent,p(g))),b=`? ${b} 56${h}:`):(b=`${b}:`,g&&(b+=t_(b,r.indent,p(g)))),tn(t)?(n=!!t.spaceBefore,o=t.commentBefore,a=t.comment):(n=!1,o=null,a=null,t&&"object"==typeof t&&(t=c.createNode(t))),r.implicitKey=!1,!m&&!g&&tr(t)&&(r.indentAtStart=b.length+1),v=!1,!(!f&&u.length>=2&&!r.inFlow&&!m&&ts(t))||t.flow||t.tag||t.anchor||(r.indent=r.indent.substring(2));let w=!1,E=t3(t,r,()=>w=!0,()=>v=!0),x=" ";if(g||n||o){if(x=n?` 57`:"",o){let e=p(o);x+=` 58${tF(e,r.indent)}`}""!==E||r.inFlow?x+=` 59${r.indent}`:` 60`===x&&a&&(x=` 61 62`)}else if(!m&&ti(t)){let e=E[0],s=E.indexOf(` 63`),i=-1!==s,n=r.inFlow??t.flow??0===t.items.length;if(i||!n){let t=!1;if(i&&("&"===e||"!"===e)){let r=E.indexOf(" ");"&"===e&&-1!==r&&r<s&&"!"===E[r+1]&&(r=E.indexOf(" ",r+1)),(-1===r||s<r)&&(t=!0)}t||(x=` 64${r.indent}`)}}else(""===E||` 65`===E[0])&&(x="");return b+=x+E,r.inFlow?w&&s&&s():a&&!w?b+=t_(b,r.indent,p(a)):v&&i&&i(),b}function t4(e,t){("debug"===e||"warn"===e)&&console.warn(t)}let t7="<<",t8={identify:e=>e===t7||"symbol"==typeof e&&e.description===t7,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new tT(Symbol(t7)),{addToJSMap:t5}),stringify:()=>t7},t6=(e,t)=>(t8.identify(t)||tr(t)&&(!t.type||t.type===tT.PLAIN)&&t8.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===t8.tag&&e.default);function t5(e,t,r){if(ts(r=e&&e6(r)?r.resolve(e.doc):r))for(let s of r.items)re(e,t,s);else if(Array.isArray(r))for(let s of r)re(e,t,s);else re(e,t,r)}function re(e,t,r){let s=e&&e6(r)?r.resolve(e.doc):r;if(!te(s))throw Error("Merge sources must be maps or map aliases");for(let[r,i]of s.toJSON(null,e,Map))t instanceof Map?t.has(r)||t.set(r,i):t instanceof Set?t.add(r):Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function rt(e,t,{key:r,value:s}){if(tn(r)&&r.addToJSMap)r.addToJSMap(e,t,s);else if(t6(e,r))t5(e,t,s);else{let i=tN(r,"",e);if(t instanceof Map)t.set(i,tN(s,i,e));else if(t instanceof Set)t.add(i);else{let n=rr(r,i,e),o=tN(s,n,e);n in t?Object.defineProperty(t,n,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[n]=o}}return t}function rr(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(tn(e)&&r?.doc){let t=t0(r.doc,{});for(let e of(t.anchors=new Set,r.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let s=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(s);e.length>40&&(e=e.substring(0,36)+'..."'),t4(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return s}return JSON.stringify(t)}function rs(e,t,r){return new ri(tj(e,void 0,r),tj(t,void 0,r))}class ri{constructor(e,t=null){Object.defineProperty(this,e8,{value:e9}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return tn(t)&&(t=t.clone(e)),tn(r)&&(r=r.clone(e)),new ri(t,r)}toJSON(e,t){let r=t?.mapAsMap?new Map:{};return rt(t,r,this)}toString(e,t,r){return e?.doc?t9(this,e,t,r):JSON.stringify(this)}}function rn(e,t,r){return(t.inFlow??e.flow?ra:ro)(e,t,r)}function ro({comment:e,items:t},r,{blockItemPrefix:s,flowChars:i,itemIndent:n,onChompKeep:o,onComment:a}){let l,{indent:c,options:{commentString:h}}=r,u=Object.assign({},r,{indent:n,type:null}),p=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;
65if(tn(i))!p&&i.spaceBefore&&f.push(""),rl(r,f,i.commentBefore,p),i.comment&&(o=i.comment);else if(tt(i)){let e=tn(i.key)?i.key:null;e&&(!p&&e.spaceBefore&&f.push(""),rl(r,f,e.commentBefore,p))}p=!1;let a=t3(i,u,()=>o=null,()=>p=!0);o&&(a+=t_(a,n,h(o))),p&&o&&(p=!1),f.push(s+a)}if(0===f.length)l=i.start+i.end;else{l=f[0];for(let e=1;e<f.length;++e){let t=f[e];l+=t?` 66${c}${t}`:` 67`}}return e?(l+=` 68`+tF(h(e),c),a&&a()):p&&o&&o(),l}function ra({items:e},t,{flowChars:r,itemIndent:s}){let{indent:i,indentStep:n,flowCollectionPadding:o,options:{commentString:a}}=t,l=Object.assign({},t,{indent:s+=n,inFlow:!0,type:null}),c=!1,h=0,u=[];for(let r=0;r<e.length;++r){let i=e[r],n=null;if(tn(i))i.spaceBefore&&u.push(""),rl(t,u,i.commentBefore,!1),i.comment&&(n=i.comment);else if(tt(i)){let e=tn(i.key)?i.key:null;e&&(e.spaceBefore&&u.push(""),rl(t,u,e.commentBefore,!1),e.comment&&(c=!0));let r=tn(i.value)?i.value:null;r?(r.comment&&(n=r.comment),r.commentBefore&&(c=!0)):null==i.value&&e?.comment&&(n=e.comment)}n&&(c=!0);let o=t3(i,l,()=>n=null);r<e.length-1&&(o+=","),n&&(o+=t_(o,s,a(n))),!c&&(u.length>h||o.includes(` 69`))&&(c=!0),u.push(o),h=u.length}let{start:p,end:f}=r;if(0===u.length)return p+f;if(!c){let e=u.reduce((e,t)=>e+t.length+2,2);c=t.options.lineWidth>0&&e>t.options.lineWidth}if(!c)return`${p}${o}${u.join(" ")}${o}${f}`;{let e=p;for(let t of u)e+=t?` 70${n}${i}${t}`:` 71`;return`${e} 72${i}${f}`}}function rl({indent:e,options:{commentString:t}},r,s,i){if(s&&i&&(s=s.replace(/^\n+/,"")),s){let i=tF(t(s),e);r.push(i.trimStart())}}function rc(e,t){let r=tr(t)?t.value:t;for(let s of e)if(tt(s)&&(s.key===t||s.key===r||tr(s.key)&&s.key.value===r))return s}class rh extends tD{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(e3,e),this.items=[]}static from(e,t,r){let{keepUndefined:s,replacer:i}=r,n=new this(e),o=(e,o)=>{if("function"==typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||s)&&n.items.push(rs(e,o,r))};if(t instanceof Map)for(let[e,r]of t)o(e,r);else if(t&&"object"==typeof t)for(let e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&n.items.sort(e.sortMapEntries),n}add(e,t){let r;r=tt(e)?e:e&&"object"==typeof e&&"key"in e?new ri(e.key,e.value):new ri(e,e?.value);let s=rc(this.items,r.key),i=this.schema?.sortMapEntries;if(s){if(!t)throw Error(`Key ${r.key} already set`);tr(s.value)&&tA(r.value)?s.value.value=r.value:s.value=r.value}else if(i){let e=this.items.findIndex(e=>0>i(r,e));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){let t=rc(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let r=rc(this.items,e),s=r?.value;return(!t&&tr(s)?s.value:s)??void 0}has(e){return!!rc(this.items,e)}set(e,t){this.add(new ri(e,t),!0)}toJSON(e,t,r){let s=r?new r:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(s),this.items))rt(t,s,e);return s}toString(e,t,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!tt(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),rn(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}let ru={collection:"map",default:!0,nodeClass:rh,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(te(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,r)=>rh.from(e,t,r)};class rp extends tD{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(e7,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=rf(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let r=rf(e);if("number"!=typeof r)return;let s=this.items[r];return!t&&tr(s)?s.value:s}has(e){let t=rf(e);return"number"==typeof t&&t<this.items.length}set(e,t){let r=rf(e);if("number"!=typeof r)throw Error(`Expected a valid index, not ${e}.`);let s=this.items[r];tr(s)&&tA(t)?s.value=t:this.items[r]=t}toJSON(e,t){let r=[];t?.onCreate&&t.onCreate(r);let s=0;for(let e of this.items)r.push(tN(e,String(s++),t));return r}toString(e,t,r){return e?rn(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,t,r){let{replacer:s}=r,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let n of t){if("function"==typeof s){let r=t instanceof Set?n:String(e++);n=s.call(t,r,n)}i.items.push(tj(n,void 0,r))}}return i}}function rf(e){let t=tr(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let rd={collection:"seq",default:!0,nodeClass:rp,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>
72(ts(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,r)=>rp.from(e,t,r)},rg={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,s)=>tQ(e,t=Object.assign({actualString:!0},t),r,s)},rm={identify:e=>null==e,createNode:()=>new tT(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new tT(null),stringify:({source:e},t)=>"string"==typeof e&&rm.test.test(e)?e:t.options.nullStr},ry={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new tT("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},r)=>e&&ry.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?r.options.trueStr:r.options.falseStr};function rv({format:e,minFractionDigits:t,tag:r,value:s}){if("bigint"==typeof s)return String(s);let i="number"==typeof s?s:Number(s);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let n=Object.is(s,-0)?"-0":JSON.stringify(s);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(n)){let e=n.indexOf(".");e<0&&(e=n.length,n+=".");let r=t-(n.length-e-1);for(;r-- >0;)n+="0"}return n}let rb={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:rv},rw={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():rv(e)}},rE={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new tT(parseFloat(e)),r=e.indexOf(".");return -1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:rv},rx=e=>"bigint"==typeof e||Number.isInteger(e),rk=(e,t,r,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),r);function rS(e,t,r){let{value:s}=e;return rx(s)&&s>=0?r+s.toString(t):rv(e)}let rN={identify:e=>rx(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>rk(e,2,8,r),stringify:e=>rS(e,8,"0o")},rO={identify:rx,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>rk(e,0,10,r),stringify:rv},r$={identify:e=>rx(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>rk(e,2,16,r),stringify:e=>rS(e,16,"0x")},rI=[ru,rd,rg,rm,ry,rN,rO,r$,rb,rw,rE];function rA(e){return"bigint"==typeof e||Number.isInteger(e)}let rT=({value:e})=>JSON.stringify(e),rL=[ru,rd].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:rT},{identify:e=>null==e,createNode:()=>new tT(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:rT},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:rT},{identify:rA,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>rA(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:rT}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),rR={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}},stringify({comment:e,type:t,value:r},s,i,n){let o;if(!r)return"";let a=r;if("function"==typeof btoa){let e="";for(let t=0;t<a.length;++t)e+=String.fromCharCode(a[t]);o=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=tT.BLOCK_LITERAL),t!==tT.QUOTE_DOUBLE){let e=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),r=Math.ceil(o.length/e),i=Array(r);for(let t=0,s=0;t<r;++t,s+=e)i[t]=o.substr(s,e);o=i.join(t===tT.BLOCK_LITERAL?` 73`:" ")}return tQ({comment:e,type:t,value:o},s,i,n)}};function rj(e,t){if(ts(e))for(let r=0;r<e.items.length;++r){let s=e.items[r];if(!tt(s)){if(te(s)){s.items.length>1&&t("Each pair must have its own sequence indicator");let e=s.items[0]||new ri(new tT(null));if(s.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${s.commentBefore} 74${e.key.commentBefore}
74`:s.commentBefore),s.comment){let t=e.value??e.key;t.comment=t.comment?`${s.comment} 75${t.comment}`:s.comment}s=e}e.items[r]=tt(s)?s:new ri(s)}}else t("Expected a sequence for this tag");return e}function rC(e,t,r){let{replacer:s}=r,i=new rp(e);i.tag="tag:yaml.org,2002:pairs";let n=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,a;if("function"==typeof s&&(e=s.call(t,String(n++),e)),Array.isArray(e))if(2===e.length)o=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[o=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(rs(o,a,r))}return i}let rP={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:rj,createNode:rC};class rD extends rp{constructor(){super(),this.add=rh.prototype.add.bind(this),this.delete=rh.prototype.delete.bind(this),this.get=rh.prototype.get.bind(this),this.has=rh.prototype.has.bind(this),this.set=rh.prototype.set.bind(this),this.tag=rD.tag}toJSON(e,t){if(!t)return super.toJSON(e);let r=new Map;for(let e of(t?.onCreate&&t.onCreate(r),this.items)){let s,i;if(tt(e)?(s=tN(e.key,"",t),i=tN(e.value,s,t)):s=tN(e,"",t),r.has(s))throw Error("Ordered maps must not include duplicate keys");r.set(s,i)}return r}static from(e,t,r){let s=rC(e,t,r),i=new this;return i.items=s.items,i}}rD.tag="tag:yaml.org,2002:omap";let rM={collection:"seq",identify:e=>e instanceof Map,nodeClass:rD,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=rj(e,t),s=[];for(let{key:e}of r.items)tr(e)&&(s.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):s.push(e.value));return Object.assign(new rD,r)},createNode:(e,t,r)=>rD.from(e,t,r)};function rF({value:e,source:t},r){let s=e?r_:rU;return t&&s.test.test(t)?t:e?r.options.trueStr:r.options.falseStr}let r_={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new tT(!0),stringify:rF},rU={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new tT(!1),stringify:rF},rB={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:rv},rG={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():rv(e)}},rK={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new tT(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){let s=e.substring(r+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:rv},rW=e=>"bigint"==typeof e||Number.isInteger(e);function rq(e,t,r,{intAsBigInt:s}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let n=parseInt(e,r);return"-"===i?-1*n:n}function rV(e,t,r){let{value:s}=e;if(rW(s)){let e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return rv(e)}let rJ={identify:rW,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>rq(e,2,2,r),stringify:e=>rV(e,2,"0b")},rX={identify:rW,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>rq(e,1,8,r),stringify:e=>rV(e,8,"0")},rH={identify:rW,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>rq(e,0,10,r),stringify:rv},rY={identify:rW,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>rq(e,2,16,r),stringify:e=>rV(e,16,"0x")};class rz extends rh{constructor(e){super(e),this.tag=rz.tag}add(e){let t;t=tt(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ri(e.key,null):new ri(e,null),rc(this.items,t.key)||this.items.push(t)}get(e,t){let r=rc(this.items,e);return!t&&tt(r)?tr(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let r=rc(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new ri(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw Error("Set items must all have null values")}static from(e,t,r){let{replacer:s}=r,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof s&&(e=s.call(t,e,e)),i.items.push(rs(e,null,r));return i}}rz.tag="tag:yaml.org,2002:set";let rZ={collection:"map",identify:e=>e instanceof Set,nodeClass:rz,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>rz.from(e,t,r),resolve(e,t){if(te(e))if(e.hasAllNullValues(!0))return Object.assign(new rz,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function rQ(e,t){let r=e[0],s="-"===r||"+"===r?e.substring(1):e,i=e=>t?BigInt(e):Number(e),n=s.replace(/_/g,"").split(":").reduce((e,t)=>
75e*i(60)+i(t),i(0));return"-"===r?i(-1)*n:n}function r0(e){let{value:t}=e,r=e=>e;if("bigint"==typeof t)r=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return rv(e);let s="";t<0&&(s="-",t*=r(-1));let i=r(60),n=[t%i];return t<60?n.unshift(0):(t=(t-n[0])/i,n.unshift(t%i),t>=60&&(t=(t-n[0])/i,n.unshift(t))),s+n.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let r1={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>rQ(e,r),stringify:r0},r2={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>rQ(e,!1),stringify:r0},r3={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(r3.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,s,i,n,o,a]=t.map(Number),l=Date.UTC(r,s-1,i,n||0,o||0,a||0,t[7]?Number((t[7]+"00").substr(1,3)):0),c=t[8];if(c&&"Z"!==c){let e=rQ(c,!1);30>Math.abs(e)&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},r9=[ru,rd,rg,rm,r_,rU,rJ,rX,rH,rY,rB,rG,rK,rR,t8,rM,rP,rZ,r1,r2,r3],r4=new Map([["core",rI],["failsafe",[ru,rd,rg]],["json",rL],["yaml11",r9],["yaml-1.1",r9]]),r7={binary:rR,bool:ry,float:rE,floatExp:rw,floatNaN:rb,floatTime:r2,int:rO,intHex:r$,intOct:rN,intTime:r1,map:ru,merge:t8,null:rm,omap:rM,pairs:rP,seq:rd,set:rZ,timestamp:r3},r8={"tag:yaml.org,2002:binary":rR,"tag:yaml.org,2002:merge":t8,"tag:yaml.org,2002:omap":rM,"tag:yaml.org,2002:pairs":rP,"tag:yaml.org,2002:set":rZ,"tag:yaml.org,2002:timestamp":r3};function r6(e,t,r){let s=r4.get(t);if(s&&!e)return r&&!s.includes(t8)?s.concat(t8):s.slice();let i=s;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(r4.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else"function"==typeof e&&(i=e(i.slice()));return r&&(i=i.concat(t8)),i.reduce((e,t)=>{let r="string"==typeof t?r7[t]:t;if(!r){let e=JSON.stringify(t),r=Object.keys(r7).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${r}`)}return e.includes(r)||e.push(r),e},[])}let r5=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class se{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:s,schema:i,sortMapEntries:n,toStringDefaults:o}){this.compat=Array.isArray(e)?r6(e,"compat"):e?r6(null,e):null,this.name="string"==typeof i&&i||"core",this.knownTags=s?r8:{},this.tags=r6(t,this.name,r),this.toStringOptions=o??null,Object.defineProperty(this,e3,{value:ru}),Object.defineProperty(this,e4,{value:rg}),Object.defineProperty(this,e7,{value:rd}),this.sortMapEntries="function"==typeof n?n:!0===n?r5:null}clone(){let e=Object.create(se.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function st(e,t){let r=[],s=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(r.push(t),s=!0):e.directives.docStart&&(s=!0)}s&&r.push("---");let i=t0(e,t),{commentString:n}=i.options;if(e.commentBefore){1!==r.length&&r.unshift("");let t=n(e.commentBefore);r.unshift(tF(t,""))}let o=!1,a=null;if(e.contents){if(tn(e.contents)){if(e.contents.spaceBefore&&s&&r.push(""),e.contents.commentBefore){let t=n(e.contents.commentBefore);r.push(tF(t,""))}i.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>o=!0,l=t3(e.contents,i,()=>a=null,t);a&&(l+=t_(l,"",n(a))),("|"===l[0]||">"===l[0])&&"---"===r[r.length-1]?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(t3(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=n(e.comment);t.includes(` 76`)?(r.push("..."),r.push(tF(t,""))):r.push(`... ${t}`)}else r.push("...");else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||a)&&""!==r[r.length-1]&&r.push(""),r.push(tF(n(t),"")))}return r.join(` 77`)+` 78`}class sr{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,e8,{value:e2});let s=null;"function"==typeof t||Array.isArray(t)?s=t:void 0===r&&t&&(r=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:n}=i;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(n=this.directives.yaml.version)):this.directives=new tb({ver
78sion:n}),this.setSchema(n,r),this.contents=void 0===e?null:this.createNode(e,s,r)}clone(){let e=Object.create(sr.prototype,{[e8]:{value:e2}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=tn(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ss(this.contents)&&this.contents.add(e)}addIn(e,t){ss(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let r=tE(this);e.anchor=!t||r.has(t)?tx(t||"a",r):t}return new t$(e.anchor)}createNode(e,t,r){let s;if("function"==typeof t)e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){let e=e=>"number"==typeof e||e instanceof String||e instanceof Number,r=t.filter(e).map(String);r.length>0&&(t=t.concat(r)),s=t}else void 0===r&&t&&(r=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:n,flow:o,keepUndefined:a,onTagObj:l,tag:c}=r??{},{onAnchor:h,setAnchors:u,sourceObjects:p}=tk(this,n||"a"),f={aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:h,onTagObj:l,replacer:s,schema:this.schema,sourceObjects:p},d=tj(e,c,f);return o&&ti(d)&&(d.flow=!0),u(),d}createPair(e,t,r={}){return new ri(this.createNode(e,null,r),this.createNode(t,null,r))}delete(e){return!!ss(this.contents)&&this.contents.delete(e)}deleteIn(e){return tP(e)?null!=this.contents&&(this.contents=null,!0):!!ss(this.contents)&&this.contents.deleteIn(e)}get(e,t){return ti(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return tP(e)?!t&&tr(this.contents)?this.contents.value:this.contents:ti(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!ti(this.contents)&&this.contents.has(e)}hasIn(e){return tP(e)?void 0!==this.contents:!!ti(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=tC(this.schema,[e],t):ss(this.contents)&&this.contents.set(e,t)}setIn(e,t){tP(e)?this.contents=t:null==this.contents?this.contents=tC(this.schema,Array.from(e),t):ss(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new tb({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new tb({version:e}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new se(Object.assign(r,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:s,onAnchor:i,reviver:n}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},a=tN(this.contents,t??"",o);if("function"==typeof i)for(let{count:e,res:t}
78of o.anchors.values())i(t,e);return"function"==typeof n?tS(n,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return st(this,e)}}function ss(e){if(ti(e))return!0;throw Error("Expected a YAML collection as document contents")}class si extends Error{constructor(e,t,r,s){super(),this.name=e,this.code=r,this.message=s,this.pos=t}}class sn extends si{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class so extends si{constructor(e,t,r){super("YAMLWarning",e,t,r)}}let sa=(e,t)=>r=>{if(-1===r.pos[0])return;r.linePos=r.pos.map(e=>t.linePos(e));let{line:s,col:i}=r.linePos[0];r.message+=` at line ${s}, column ${i}`;let n=i-1,o=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(n>=60&&o.length>80){let e=Math.min(n-39,o.length-79);o="…"+o.substring(e),n-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),s>1&&/^ *$/.test(o.substring(0,n))){let r=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);r.length>80&&(r=r.substring(0,79)+`… 79`),o=r+o}if(/[^ ]/.test(o)){let e=1,t=r.linePos[1];t?.line===s&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-n)));let a=" ".repeat(n)+"^".repeat(e);r.message+=`: 80 81${o} 82${a} 83`}};function sl(e,{flow:t,indicator:r,next:s,offset:i,onError:n,parentIndent:o,startOnNewline:a}){let l=!1,c=a,h=a,u="",p="",f=!1,d=!1,g=null,m=null,y=null,v=null,b=null,w=null,E=null;for(let i of e)switch(d&&("space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&n(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),g&&(c&&"comment"!==i.type&&"newline"!==i.type&&n(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),g=null),i.type){case"space":!t&&("doc-start"!==r||s?.type!=="flow-collection")&&i.source.includes(" ")&&(g=i),h=!0;break;case"comment":{h||n(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=i.source.substring(1)||" ";u?u+=p+e:u=e,p="",c=!1;break}case"newline":c?u?u+=i.source:w&&"seq-item-ind"===r||(l=!0):p+=i.source,c=!0,f=!0,(m||y)&&(v=i),h=!0;break;case"anchor":m&&n(i,"MULTIPLE_ANCHORS","A node can have at most one anchor"),i.source.endsWith(":")&&n(i.offset+i.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=i,E??(E=i.offset),c=!1,h=!1,d=!0;break;case"tag":y&&n(i,"MULTIPLE_TAGS","A node can have at most one tag"),y=i,E??(E=i.offset),c=!1,h=!1,d=!0;break;case r:(m||y)&&n(i,"BAD_PROP_ORDER",`Anchors and tags must be after the ${i.source} indicator`),w&&n(i,"UNEXPECTED_TOKEN",`Unexpected ${i.source} in ${t??"collection"}`),w=i,c="seq-item-ind"===r||"explicit-key-ind"===r,h=!1;break;case"comma":if(t){b&&n(i,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=i,c=!1,h=!1;break}default:n(i,"UNEXPECTED_TOKEN",`Unexpected ${i.type} token`),c=!1,h=!1}let x=e[e.length-1],k=x?x.offset+x.source.length:i;return d&&s&&"space"!==s.type&&"newline"!==s.type&&"comma"!==s.type&&("scalar"!==s.type||""!==s.source)&&n(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g&&(c&&g.indent<=o||s?.type==="block-map"||s?.type==="block-seq")&&n(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:b,foun
83d:w,spaceBefore:l,comment:u,hasNewline:f,anchor:m,tag:y,newlineAfterProp:v,end:k,start:E??k}}function sc(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(` 84`))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(sc(t.key)||sc(t.value))return!0}return!1;default:return!0}}function sh(e,t,r){if(t?.type==="flow-collection"){let s=t.end[0];s.indent===e&&("]"===s.source||"}"===s.source)&&sc(t)&&r(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function su(e,t,r){let{uniqueKeys:s}=e.options;if(!1===s)return!1;let i="function"==typeof s?s:(e,t)=>e===t||tr(e)&&tr(t)&&e.value===t.value;return t.some(e=>i(e.key,r))}let sp="All mapping items must start at the same column";function sf({composeNode:e,composeEmptyNode:t},r,s,i,n){let o=new(n?.nodeClass??rh)(r.schema);r.atRoot&&(r.atRoot=!1);let a=s.offset,l=null;for(let n of s.items){let{start:c,key:h,sep:u,value:p}=n,f=sl(c,{indicator:"explicit-key-ind",next:h??u?.[0],offset:a,onError:i,parentIndent:s.indent,startOnNewline:!0}),d=!f.found;if(d){if(h&&("block-seq"===h.type?i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==s.indent&&i(a,"BAD_INDENT",sp)),!f.anchor&&!f.tag&&!u){l=f.end,f.comment&&(o.comment?o.comment+=` 85`+f.comment:o.comment=f.comment);continue}(f.newlineAfterProp||sc(h))&&i(h??c[c.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else f.found?.indent!==s.indent&&i(a,"BAD_INDENT",sp);r.atKey=!0;let g=f.end,m=h?e(r,h,f,i):t(r,g,c,null,f,i);r.schema.compat&&sh(s.indent,h,i),r.atKey=!1,su(r,o.items,m)&&i(g,"DUPLICATE_KEY","Map keys must be unique");let y=sl(u??[],{indicator:"map-value-ind",next:p,offset:m.range[2],onError:i,parentIndent:s.indent,startOnNewline:!h||"block-scalar"===h.type});if(a=y.end,y.found){d&&(p?.type!=="block-map"||y.hasNewline||i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&f.start<y.found.offset-1024&&i(m.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=p?e(r,p,y,i):t(r,a,u,null,y,i);r.schema.compat&&sh(s.indent,p,i),a=l.range[2];let c=new ri(m,l);r.options.keepSourceTokens&&(c.srcToken=n),o.items.push(c)}else{d&&i(m.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(m.comment?m.comment+=` 86`+y.comment:m.comment=y.comment);let e=new ri(m);r.options.keepSourceTokens&&(e.srcToken=n),o.items.push(e)}}return l&&l<a&&i(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[s.offset,a,l??a],o}function sd({composeNode:e,composeEmptyNode:t},r,s,i,n){let o=new(n?.nodeClass??rp)(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let a=s.offset,l=null;for(let{start:n,value:c}of s.items){let h=sl(n,{indicator:"seq-item-ind",next:c,offset:a,onError:i,parentIndent:s.indent,startOnNewline:!0});if(!h.found)if(h.anchor||h.tag||c)c?.type==="block-seq"?i(h.end,"BAD_INDENT","All sequence items must start at the same column"):i(a,"MISSING_CHAR","Sequence item without - indicator");else{l=h.end,h.comment&&(o.comment=h.comment);continue}let u=c?e(r,c,h,i):t(r,h.end,n,null,h,i);r.schema.compat&&sh(s.indent,c,i),a=u.range[2],o.items.push(u)}return o.range=[s.offset,a,l??a],o}function sg(e,t,r,s){let i="";if(e){let n=!1,o="";for(let a of e){let{source:e,type:l}=a;switch(l){case"space":n=!0;break;case"comment":{r&&!n&&s(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";i?i+=o+t:i=t,o="";break}case"newline":i&&(o+=e),n=!0;break;default:s(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:i,offset:t}}let sm="Block collections are not allowed within flow collections",sy=e=>e&&("block-map"===e.type||"block-seq"===e.type);function sv({composeNode:e,composeEmptyNode:t},r,s,i,n){let o="{"===s.start.source,a=o?"flow map":"flow sequence",l=new(n?.nodeClass??
vendor: 1,238 bytes, lines 86-88
86(o?rh:rp))(r.schema);l.flow=!0;let c=r.atRoot;c&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let h=s.offset+s.start.source.length;for(let n=0;n<s.items.length;++n){let c=s.items[n],{start:u,key:p,sep:f,value:d}=c,g=sl(u,{flow:a,indicator:"explicit-key-ind",next:p??f?.[0],offset:h,onError:i,parentIndent:s.indent,startOnNewline:!1});if(!g.found){if(!g.anchor&&!g.tag&&!f&&!d){0===n&&g.comma?i(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):n<s.items.length-1&&i(g.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),g.comment&&(l.comment?l.comment+=` 87`+g.comment:l.comment=g.comment),h=g.end;continue}!o&&r.options.strict&&sc(p)&&i(p,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===n)g.comma&&i(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(g.comma||i(g.start,"MISSING_CHAR",`Missing , between ${a} items`),g.comment){let e="";t:for(let t of u)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break t;default:break t}if(e){let t=l.items[l.items.length-1];tt(t)&&(t=t.value??t.key),t.comment?t.comment+=` 88`+e:t.comment=e,g.comment=g.comment.substring(e.length+1)}}if(o||f||g.found){r.atKey=!0;let n=g.end,m=p?e(r,p,g,i):t(r,n,u,null,g,i);
88sy(p)&&i(m.range,"BLOCK_IN_FLOW",sm),r.atKey=!1;let y=sl(f??[],{flow:a,indicator:"map-value-ind",next:d,offset:m.range[2],onError:i,parentIndent:s.indent,startOnNewline:!1});if(y.found){if(!o&&!g.found&&r.options.strict){if(f)for(let e of f){if(e===y.found)break;if("newline"===e.type){i(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}g.start<y.found.offset-1024&&i(y.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else d&&("source"in d&&d.source?.[0]===":"?i(d,"MISSING_CHAR",`Missing space after : in ${a}`):i(y.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let v=d?e(r,d,y,i):y.found?t(r,y.end,f,null,y,i):null;v?sy(d)&&i(v.range,"BLOCK_IN_FLOW",sm):y.comment&&(m.comment?m.comment+=` 89`+y.comment:m.comment=y.comment);let b=new ri(m,v);if(r.options.keepSourceTokens&&(b.srcToken=c),o){let e=l;su(r,e.items,m)&&i(n,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(b)}else{let e=new rh(r.schema);e.flow=!0,e.items.push(b);let t=(v??m).range;e.range=[m.range[0],t[1],t[2]],l.items.push(e)}h=v?v.range[2]:y.end}else{let s=d?e(r,d,g,i):t(r,g.end,f,null,g,i);l.items.push(s),h=s.range[2],sy(d)&&i(s.range,"BLOCK_IN_FLOW",sm)}}let u=o?"}":"]",[p,...f]=s.end,d=h;if(p?.source===u)d=p.offset+p.source.length;else{let e=a[0].toUpperCase()+a.substring(1),t=c?`${e} must end with a ${u}`:`${e} in block collection must be sufficiently indented and end with a ${u}`;i(h,c?"MISSING_CHAR":"BAD_INDENT",t),p&&1!==p.source.length&&f.unshift(p)}if(f.length>0){let e=sg(f,d,r.options.strict,i);e.comment&&(l.comment?l.comment+=` 90`+e.comment:l.comment=e.comment),l.range=[s.offset,d,e.offset]}else l.range=[s.offset,d,d];return l}function sb(e,t,r,s,i,n){let o="block-map"===r.type?sf(e,t,r,s,n):"block-seq"===r.type?sd(e,t,r,s,n):sv(e,t,r,s,n),a=o.constructor;return"!"===i||i===a.tagName?o.tag=a.tagName:i&&(o.tag=i),o}function sw(e,t,r,s,i){let n=s.tag,o=n?t.directives.tagName(n.source,e=>i(n,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===r.type){let{anchor:e,newlineAfterProp:t}=s,r=e&&n?e.offset>n.offset?e:n:e??n;r&&(!t||t.offset<r.offset)&&i(r,"MISSING_CHAR","Missing newline after block sequence props")}let a="block-map"===r.type?"map":"block-seq"===r.type?"seq":"{"===r.start.source?"map":"seq";if(!n||!o||"!"===o||o===rh.tagName&&"map"===a||o===rp.tagName&&"seq"===a)return sb(e,t,r,i,o);let l=t.schema.tags.find(e=>e.tag===o&&e.collection===a);if(!l){let s=t.schema.knownTags[o];if(s?.collection!==a)return s?i(n,"BAD_COLLECTION_TYPE",`${s.tag} used for ${a} collection, but expects ${s.collection??"scalar"}`,!0):i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),sb(e,t,r,i,o);t.schema.tags.push(Object.assign({},s,{default:!1})),l=s}let c=sb(e,t,r,i,o,l),h=l.resolve?.(c,e=>i(n,"TAG_RESOLVE_FAILED",e),t.options)??c,u=tn(h)?h:new tT(h);return u.range=c.range,u.tag=o,l?.format&&(u.format=l.format),u}function sE(e,t,r){let s=t.offset,i=sx(t,e.options.strict,r);if(!i)return{value:"",type:null,comment:"",range:[s,s,s]};let n=">"===i.mode?tT.BLOCK_FOLDED:tT.BLOCK_LITERAL,o=t.source?sk(t.source):[],a=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(""===t||"\r"===t)a=e;else break}if(0===a){let e="+"===i.chomp&&o.length>0?` 91`.repeat(Math.max(1,o.length-1)):"",r=s+i.length;return t.source&&(r+=t.source.length),{value:e,type:n,comment:i.comment,range:[s,r,r]}}let l=t.indent+i.indent,c=t.offset+i.length,h=0;for(let t=0;t<a;++t){let[s,n]=o[t];if(""===n||"\r"===n)0===i.indent&&s.length>l&&(l=s.length);else{if(s.length<l){let e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";r(c+s.length,"MISSING_CHAR",e)}0===i.indent&&(l=s.length),h=t,0!==l||e.atRoot||r(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=s.length+n.length+1}for(let e=o.length-1;e>=a;--e)o[e][0].length>l&&(a=e+1);let u="",p="",f=!1;for(let e=0;e<h;++e)u+=o[e][0].slice(l)+` 92`;for(let e=h;e<a;++e){let[t,s]=o[e];c+=t.length+s.length+1;let a="\r"===s[s.length-1];if(a&&(s=s.slice(0,-1)),s&&t.length<l){let e=i.indent?"explicit indentation indicator":"first line",n=`Block scalar lines must not be less indented than their ${e}`;r(c-s.length-(a?2:1),"BAD_INDENT",n),t=""}n===tT.BLOCK_LITERAL?(u+=p+t.slice(l)+s,p=` 93`):t.length>l||" "===s[0]?(" "===p?p=` 94`:f||` 95`!==p||(p=` 96 97`),u+=p+t.slice(l)+s,p=` 98`,f=!0):""===s?` 99`===p?u+=` 100`:p=` 101`:(u+=p+s,p=" ",f=!1)}switch(i.chomp){case"-":break;case"+":for(let e=a;
101e<o.length;++e)u+=` 102`+o[e][0].slice(l);` 103`!==u[u.length-1]&&(u+=` 104`);break;default:u+=` 105`}let d=s+i.length+t.source.length;return{value:u,type:n,comment:i.comment,range:[s,d,d]}}function sx({offset:e,props:t},r,s){if("block-scalar-header"!==t[0].type)return s(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],n=i[0],o=0,a="",l=-1;for(let t=1;t<i.length;++t){let r=i[t];if(a||"-"!==r&&"+"!==r){let s=Number(r);!o&&s?o=s:-1===l&&(l=e+t)}else a=r}-1!==l&&s(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,h="",u=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case"space":c=!0;case"newline":u+=i.source.length;break;case"comment":r&&!c&&s(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=i.source.length,h=i.source.substring(1);break;case"error":s(i,"UNEXPECTED_TOKEN",i.message),u+=i.source.length;break;default:{let e=`Unexpected token in block scalar header: ${i.type}`;s(i,"UNEXPECTED_TOKEN",e);let t=i.source;t&&"string"==typeof t&&(u+=t.length)}}}return{mode:n,indent:o,chomp:a,comment:h,length:u}}function sk(e){let t=e.split(/\n( *)/),r=t[0],s=r.match(/^( *)/),i=[s?.[1]?[s[1],r.slice(s[1].length)]:["",r]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function sS(e,t,r){let s,i,{offset:n,type:o,source:a,end:l}=e,c=(e,t,s)=>r(n+e,t,s);switch(o){case"scalar":s=tT.PLAIN,i=sN(a,c);break;case"single-quoted-scalar":s=tT.QUOTE_SINGLE,i=sO(a,c);break;case"double-quoted-scalar":s=tT.QUOTE_DOUBLE,i=sI(a,c);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+a.length,n+a.length]}}let h=n+a.length,u=sg(l,h,t,r);return{value:i,type:s,comment:u.comment,range:[n,h,u.offset]}}function sN(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),s$(e)}function sO(e,t){return("'"!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),s$(e.slice(1,-1)).replace(/''/g,"'")}function s$(e){let t,r;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r? 106`,"sy"),r=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r? 107`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=t.exec(e);if(!s)return e;let i=s[1],n=" ",o=t.lastIndex;for(r.lastIndex=o;s=r.exec(e);)""===s[1]?` 108`===n?i+=n:n=` 109`:(i+=n+s[1],n=" "),o=r.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,s=a.exec(e),i+n+(s?.[1]??"")}function sI(e,t){let r="";for(let s=1;s<e.length-1;++s){let i=e[s];if("\r"!==i||` 110`!==e[s+1])if(` 111`===i){let{fold:t,offset:i}=sA(e,s);r+=t,s=i}else if("\\"===i){let i=e[++s],n=sT[i];if(n)r+=n;else if(` 112`===i)for(i=e[s+1];" "===i||" "===i;)i=e[++s+1];else if("\r"===i&&` 113`===e[s+1])for(i=e[++s+1];" "===i||" "===i;)i=e[++s+1];else if("x"===i||"u"===i||"U"===i){let n={x:2,u:4,U:8}[i];r+=sL(e,s+1,n,t),s+=n}else{let i=e.substr(s-1,2);t(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),r+=i}}else if(" "===i||" "===i){let t=s,n=e[s+1];for(;" "===n||" "===n;)n=e[++s+1];` 114`!==n&&("\r"!==n||` 115`!==e[s+2])&&(r+=s>t?e.slice(t,s+1):i)}else r+=i}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function sA(e,t){let r="",s=e[t+1];for(;(" "===s||" "===s||` 116`===s||"\r"===s)&&("\r"!==s||` 117`===e[t+2]);)` 118`===s&&(r+=` 119`),t+=1,s=e[t+1];return r||(r=" "),{fold:r,offset:t}}let sT={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:` 120`,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function sL(e,t,r,s){let i=e.substr(t,r),n=i.length===r&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(n)){let i=e.substr(t-2,r+2);return s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}return String.fromCodePoint(n)}function sR(e,t,r,s){let i,n,{value:o,type:a,comment:l,range:c}="block-scalar"===t.type?sE(e,t,s):sS(t,e.options.strict,s),h=r?e.directives.tagName(r.source,e=>s(r,"TAG_RESOLVE_FAILED",e)):null;i=e.options.stringKeys&&e.atKey?e.schema[e4]:h?sj(e.schema,o,h,r,s):"scalar"===t.type?sC(e,o,t,s):e.schema[e4];try{let a=i.resolve(o,e=>s(r??t,"TAG_RESOLVE_FAILED",e),e.options);n=tr(a)?a:new tT(a)}catch(e){s(r??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),n=new tT(o)}return n.range=c,n.source=o,a&&(n.type=a),h&&(n.tag=h),i.format&&(n.format=i.format),l&&(n.comment=l),n}function sj(e,t,r,s,i){if("!"===r)return e[e4];let n=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(!t.default||!t.test)return t;else n.push(t);for(let e of n)if(e.test?.test(t))return e;let o=e.knownTags[r];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[e4])}function sC({atKey:e,directives:t,schema:r},s,i,n){let o=r.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(s))||r[e4];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(s))??r[e4];if(o.tag!==e.tag){let r=t.tagString(o.tag),s=t.tagString(e.tag);n(i,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${r} or ${s}`,!0)}}return o}function sP(e,t,r){if(t){r??(r=t.length);for(let s=r-1;s>=0;--s){let r=t[s];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++s];r?.type==="space";)e+=r.source.length,r=t[++s];break}}return e}let sD={composeNode:sM,composeEmptyNode:sF};function sM(e,t,r,s){let i,n=e.atKey,{spaceBefore:o,comment:a,anchor:l,tag:c}=r,h=!0;switch(t.type){case"alias":i=s_(e,t,s),(l||c)&&s(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":i=sR(e,t,c,s),l&&(i.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":i=sw(sD,e,t,r,s),l&&(i.anchor=l.source.substring(1));break;default:{let n="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;s(t,"UNEXPECTED_TOKEN",n),i=sF(e,t.offset,void 0,null,r,s),h=!1}}return l&&""===i.anchor&&s(l,"BAD_ALIAS","Anchor cannot be an empty string"),n&&e.options.stringKeys&&(!tr(i)||"string"!=typeof i.value||i.tag&&"tag:yaml.org,2002:str"!==i.tag)&&s(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(i.spaceBefore=!0),a&&("scalar"===t.type&&""===t.source?i.comment=a:i.commentBefore=a),e.options.keepSourceTokens&&h&&(i.srcToken=t),i}function sF(e,t,r,s,{spaceBefore:i,comment:n,anchor:o,tag:a,end:l},c){let h=sR(e,{type:"scalar",offset:sP(t,r,s),indent:-1,source:""},a,c);return o&&(h.anchor=o.source.substring(1),""===h.anchor&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(h.spaceBefore=!0),n&&(h.comment=n,h.range[2]=l),h}function s_({options:e},{offset:t,source:r,end:s},i){let n=new t$(r.substring(1));""===n.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),n.source.endsWith(":")&&i(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=t+r.length,a=sg(s,o,e.strict,i);return n.range=[t,o,a.offset],a.comment&&(n.comment=a.comment),n}function sU(e,t,{offset:r,start:s,value:i,end:n},o){let a=new sr(void 0,Object.assign({_directives:t},e)),l={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},c=sl(s,{indicator:"doc-start",next:i??n?.[0],offset:r,onError:o,parentIndent:0,startOnNewline:!0});c.found&&(a.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!c.hasNewline&&o(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=i?sM(l,i,c,o):sF(l,c.end,s,null,c,o);let h=a.contents.range[2],u=sg(n,h,!1,o);return u.comment&&(a.comment=u.comment),a.range=[r,h,u.offset],a}function sB(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+("string"==typeof r?r.length:1)]}function sG(e){let t="",r=!1,s=!1;for(let i=0;i<e.length;++i){let n=e[i];switch(n[0]){case"#":t+=(""===t?"":s?` 121 122`:` 123`)+(n.substring(1)||" "),r=!0,s=!1;break;case"%":e[i+1]?.[0]!=="#"&&(i+=1),r=!1;break;default:r||(s=!0),r=!1}}return{comment:t,afterEmptyLine:s}}class sK{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,r,s)=>{let i=sB(e);s?this.warnings.push(new so(i,t,r)):this.errors.push(new sn(i,t,r))}
123,this.directives=new tb({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:r,afterEmptyLine:s}=sG(this.prelude);if(r){let i=e.contents;if(t)e.comment=e.comment?`${e.comment} 124${r}`:r;else if(s||e.directives.docStart||!i)e.commentBefore=r;else if(ti(i)&&!i.flow&&i.items.length>0){let e=i.items[0];tt(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${r} 125${t}`:r}else{let e=i.commentBefore;i.commentBefore=e?`${r} 126${e}`:r}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:sG(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(let t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,r,s)=>{let i=sB(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",r,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=sU(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new sn(sB(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){let t="Unexpected doc-end without preceding document";this.errors.push(new sn(sB(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;let t=sg(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e} 127${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new sn(sB(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new sr(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}let sW=Symbol("break visit"),sq=Symbol("skip children"),sV=Symbol("remove item");function sJ(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),sX(Object.freeze([]),e,t)}function sX(e,t,r){let s=r(t,e);if("symbol"==typeof s)return s;for(let i of["key","value"]){let n=t[i];if(n&&"items"in n){for(let t=0;t<n.items.length;++t){let s=sX(Object.freeze(e.concat([[i,t]])),n.items[t],r);if("number"==typeof s)t=s-1;else{if(s===sW)return sW;s===sV&&(n.items.splice(t,1),t-=1)}}"function"==typeof s&&"key"===i&&(s=s(t,e))}}return"function"==typeof s?s(t,e):s}sJ.BREAK=sW,sJ.SKIP=sq,sJ.REMOVE=sV,sJ.itemAtPath=(e,t)=>{let r=e;for(let[e,s]of t){let t=r?.[e];if(!t||!("items"in t))return;r=t.items[s]}return r},sJ.parentCollection=(e,t)=>{let r=sJ.itemAtPath(e,t.slice(0,-1)),s=t[t.length-1][0],i=r?.[s];if(i&&"items"in i)return i;throw Error("Parent collection not found")};let sH="\uFEFF",sY="\x02",sz="\x18",sZ="\x1f";function sQ(e){switch(e){case sH:return"byte-order-mark";case sY:return"doc-mode";case sz:return"flow-error-end";case sZ:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` 128`:case`\r 129`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function s0(e){switch(e){case void 0:case" ":case` 130`:case"\r":case" ":return!0;default:return!1}}let s1=new Set("0123456789ABCDEFabcdef"),s2=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),s3=new Set(",[]{}"),s9=new Set(` ,[]{} 131\r `),s4=e=>!e||s9.has(e);class s7{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||` 132`===t||"\r"===t&&` 133`===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];
133if(this.indentNext>0){let r=0;for(;" "===t;)t=this.buffer[++r+e];if("\r"===t){let t=this.buffer[r+e+1];if(` 134`===t||!t&&!this.atEnd)return e+r+1}return` 135`!==t&&!(r>=this.indentNext)&&(t||this.atEnd)?-1:e+r}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&s0(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf(` 136`,this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===sH&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,r=e.indexOf("#");for(;-1!==r;){let s=e[r-1];if(" "===s||" "===s){t=r-1;break}r=e.indexOf("#",r+1)}for(;;){let r=e[t-1];if(" "===r||" "===r)t-=1;else break}let s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield sY,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&s0(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!s0(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&s0(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(s4),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,r=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0)let s=this.getLine();if(null===s)return this.setNext("flow");if((-1!==r&&r<this.indentNext&&"#"!==s[0]||0===r&&(s.startsWith("---")||s.startsWith("..."))&&s0(s[3]))&&(r!==this.indentNext-1||1!==this.flowLevel||"]"!==s[0]&&"}"!==s[0]))return this.flowLevel=0,yield sz,yield*this.parseLineStart();let i=0;for(;","===s[i];)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s[i+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(s4),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||s0(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}let r=this.buffer.substring(0,t),s=r.indexOf(` 137`,this.pos);if(-1!==s){for(;-1!==s;){let e=this.continueScalar(s+1);if(-1===e)break;s=r.indexOf(` 138`,e)}-1!==s&&(t=s-("\r"===r[s-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}
138return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>s0(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,r=0;t:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":r+=1;break;case` 139`:t=s,r=0;break;case"\r":{let e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(` 140`===e)break}default:break t}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=r:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf(` 141`,e)}while(-1!==t)if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let s=t+1;for(e=this.buffer[s];" "===e;)e=this.buffer[++s];if(" "===e){for(;" "===e||" "===e||"\r"===e||` 142`===e;)e=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);let i=e;for(;" "===s;)s=this.buffer[--e];if(` 143`===s&&e>=this.pos&&e+1+r>i)t=e;else break}return yield sZ,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,t=this.flowLevel>0,r=this.pos-1,s=this.pos-1;for(;e=this.buffer[++s];)if(":"===e){let e=this.buffer[s+1];if(s0(e)||t&&s3.has(e))break;r=s}else if(s0(e)){let i=this.buffer[s+1];if("\r"===e&&(` 144`===i?(s+=1,e=` 145`,i=this.buffer[s+1]):r=s),"#"===i||t&&s3.has(i))break;if(` 146`===e){let e=this.continueScalar(s+1);if(-1===e)break;s=Math.max(s,e-2)}}else{if(t&&s3.has(e))break;r=s}return e||this.atEnd?(yield sZ,yield*this.pushToIndex(r+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(s4))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(s0(t)||e&&s3.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!s0(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(s2.has(t))t=this.buffer[++e];else if("%"===t&&s1.has(this.buffer[e+1])&&s1.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return` 147`===e?yield*this.pushCount(1):"\r"===e&&` 148`===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,r=this.pos-1;do t=this.buffer[++r];while(" "===t||e&&" "===t)let s=r-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=r),s}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}function s8(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function s6(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return -1}function s5(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function ie(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function it(e){if(0===e.length)return[];let t=e.length;t:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break t}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function ir(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||s8(t.start,"explicit-key-ind")||s8(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,s5(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class is{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new s7,this.onNewLine=e}*parse(e,t=!1){for(let r of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(r);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=sQ(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}
148get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&ir(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(r.sep)r.value=t;else{Object.assign(r,{key:t,sep:[]}),this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{let r=e.items[e.items.length-1];r.value?e.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{let r=e.items[e.items.length-1];!r||r.value?e.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===s6(r.start)&&(0===t.indent||r.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=r.start:e.items.push({start:r.start}),t.items.splice(-1,1))}}else{let e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==s6(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let t,r=it(ie(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(` 149`)+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf(` 150`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let r="end"in t.value?t.value.end:void 0,s=Array.isArray(r)?r[r.length-1]:void 0;s?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let r=e.items[e.items.length-2],s=r?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let r=!this.onKeyLine&&this.indent===e.indent,s=r&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(s&&t.sep&&!t.value){let r=[];for(let s=0;s<t.sep.length;++s){let i=t.sep[s];switch(i.type){case"newline":r.push(s);break;case"space":break;case"comment":i.indent>e.indent&&(r.length=0);break;default:r.length=0}}r.length>=2&&(i=t.sep.splice(r[1]))}switch(this.type){case"anchor":case"tag":s||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?s||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,
150sep:[this.sourceToken]});else if(s8(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(s5(t.key)&&!s8(t.sep,"newline")){let e=it(t.start),r=t.key,s=t.sep;s.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:s}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(s8(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=it(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||s?e.items.push({start:i,key:null,sep:[this.sourceToken]}):s8(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);s||t.value?(e.items.push({start:i,key:r,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(r):(Object.assign(t,{key:r,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(e);if(s){if("block-seq"===s.type){if(!t.explicitKey&&t.sep&&!s8(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else r&&e.items.push({start:i});this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let r="end"in t.value?t.value.end:void 0,s=Array.isArray(r)?r[r.length-1]:void 0;s?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let r=e.items[e.items.length-2],s=r?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||s8(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e?.type==="flow-collection")}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==t.type){let r=it(ie(t));ir(e);let s=e.end.splice(1,e.end.length);s.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(` 151`)+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf(` 152`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.t
152ype);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=it(ie(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=it(ie(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class ii{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t<r;){let s=t+r>>1;this.lineStarts[s]<e?t=s+1:r=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let s=this.lineStarts[t-1];return{line:t,col:e-s+1}}}}function io(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new ii||null,prettyErrors:t}}function ia(e,t={}){let{lineCounter:r,prettyErrors:s}
152=io(t),i=new is(r?.addNewLine),n=new sK(t),o=null;for(let t of n.compose(i.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new sn(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return s&&r&&(o.errors.forEach(sa(e,r)),o.warnings.forEach(sa(e,r))),o}function il(e,t,r){let s;"function"==typeof t?s=t:void 0===r&&t&&"object"==typeof t&&(r=t);let i=ia(e,r);if(!i)return null;if(i.warnings.forEach(e=>t4(i.options.logLevel,e)),i.errors.length>0)if("silent"!==i.options.logLevel)throw i.errors[0];else i.errors=[];return i.toJS(Object.assign({reviver:s},r))}var ic=r(56278);let ih=65536,iu=e=>{if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>ih)throw TypeError("pattern is too long")},ip={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},id=e=>e.replace(/[[\]\\-]/g,"\\$&"),ig=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),im=e=>e.join(""),iy=(e,t)=>{let r=t;if("["!==e.charAt(r))throw Error("not in a brace expression");let s=[],i=[],n=r+1,o=!1,a=!1,l=!1,c=!1,h=r,u="";r:for(;n<e.length;){let t=e.charAt(n);if(("!"===t||"^"===t)&&n===r+1){c=!0,n++;continue}if("]"===t&&o&&!l){h=n+1;break}if(o=!0,"\\"===t&&!l){l=!0,n++;continue}if("["===t&&!l){for(let[t,[o,l,c]]of Object.entries(ip))if(e.startsWith(t,n)){if(u)return["$.",!1,e.length-r,!0];n+=t.length,c?i.push(o):s.push(o),a=a||l;continue r}}if(l=!1,u){t>u?s.push(id(u)+"-"+id(t)):t===u&&s.push(id(t)),u="",n++;continue}if(e.startsWith("-]",n+1)){s.push(id(t+"-")),n+=2;continue}if(e.startsWith("-",n+1)){u=t,n+=2;continue}s.push(id(t)),n++}if(h<n)return["",!1,0,!1];if(!s.length&&!i.length)return["$.",!1,e.length-r,!0];if(0===i.length&&1===s.length&&/^\\?.$/.test(s[0])&&!c)return[ig(2===s[0].length?s[0].slice(-1):s[0]),!1,h-r,!1];let p="["+(c?"^":"")+im(s)+"]",f="["+(c?"":"^")+im(i)+"]";return[s.length&&i.length?"("+p+"|"+f+")":s.length?p:f,a,h-r,!0]},iv=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),ib=new Set(["!","?","+","*","@"]),iw=e=>ib.has(e),iE="(?!(?:^|/)\\.\\.?(?:$|/))",ix="(?!\\.)",ik=new Set(["[","."]),iS=new Set(["..","."]),iN=new Set("().*{}+?[]^$\\!"),iO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i$="[^/]",iI=i$+"*?",iA=i$+"+?";class iT{type;#e;#t;#r=!1;#s=[];#i;#n;#o;#a=!1;#l;#c;#h=!1;constructor(e,t,r={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#l=this.#e===this?r:this.#e.#l,this.#o=this.#e===this?[]:this.#e.#o,"!"!==e||this.#e.#a||this.#o.push(this),this.#n=this.#i?this.#i.#s.length:0}get hasMagic(){if(void 0!==this.#t)return this.#t;for(let e of this.#s)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return void 0!==this.#c?this.#c:this.type?this.#c=this.type+"("+this.#s.map(e=>String(e)).join("|")+")":this.#c=this.#s.map(e=>String(e)).join("")}#u(){let e;if(this!==this.#e)throw Error("should only call on root");if(this.#a)return this;for(this.toString(),this.#a=!0;e=this.#o.pop();){if("!"!==e.type)continue;let t=e,r=t.#i;for(;r;){for(let s=t.#n+1;!r.type&&s<r.#s.length;s++)for(let t of e.#s){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(r.#s[s])}r=(t=r).#i}}return this}push(...e){for(let t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof iT&&t.#i===this))throw Error("invalid part: "+t);this.#s.push(t)}}toJSON(){let e=null===this.type?this.#s.slice().map(e=>"string"==typeof e?e:e.toJSON()):[this.type,...this.#s.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}
152isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(0===this.#n)return!0;let e=this.#i;for(let t=0;t<this.#n;t++){let r=e.#s[t];if(!(r instanceof iT&&"!"===r.type))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type==="!")return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#s.length:0;return this.#n===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){let t=new iT(this.type,e);for(let e of this.#s)t.copyIn(e);return t}static #p(e,t,r,s){let i=!1,n=!1,o=-1,a=!1;if(null===t.type){let l=r,c="";for(;l<e.length;){let r=e.charAt(l++);if(i||"\\"===r){i=!i,c+=r;continue}if(n){l===o+1?("^"===r||"!"===r)&&(a=!0):"]"!==r||l===o+2&&a||(n=!1),c+=r;continue}if("["===r){n=!0,o=l,a=!1,c+=r;continue}if(!s.noext&&iw(r)&&"("===e.charAt(l)){t.push(c),c="";let i=new iT(r,t);l=iT.#p(e,i,l,s),t.push(i);continue}c+=r}return t.push(c),l}let l=r+1,c=new iT(null,t),h=[],u="";for(;l<e.length;){let r=e.charAt(l++);if(i||"\\"===r){i=!i,u+=r;continue}if(n){l===o+1?("^"===r||"!"===r)&&(a=!0):"]"!==r||l===o+2&&a||(n=!1),u+=r;continue}if("["===r){n=!0,o=l,a=!1,u+=r;continue}if(iw(r)&&"("===e.charAt(l)){c.push(u),u="";let t=new iT(r,c);c.push(t),l=iT.#p(e,t,l,s);continue}if("|"===r){c.push(u),u="",h.push(c),c=new iT(null,t);continue}if(")"===r)return""===u&&0===t.#s.length&&(t.#h=!0),c.push(u),u="",t.push(...h,c),l;u+=r}return t.type=null,t.#t=void 0,t.#s=[e.substring(r-1)],l}static fromGlob(e,t={}){let r=new iT(null,void 0,t);return iT.#p(e,r,0,t),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,r,s,i]=this.toRegExpSource();return s||this.#t||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()?Object.assign(RegExp(`^${t}$`,(this.#l.nocase?"i":"")+(i?"u":"")),{_src:t,_glob:e}):r}get options(){return this.#l}toRegExpSource(e){let t=e??!!this.#l.dot;if(this.#e===this&&this.#u(),!this.type){let r=this.isStart()&&this.isEnd(),s=this.#s.map(t=>{let[s,i,n,o]="string"==typeof t?iT.#f(t,this.#t,r):t.toRegExpSource(e);return this.#t=this.#t||n,this.#r=this.#r||o,s}).join(""),i="";if(this.isStart()&&"string"==typeof this.#s[0]&&!(1===this.#s.length&&iS.has(this.#s[0]))){let r=ik,n=t&&r.has(s.charAt(0))||s.startsWith("\\.")&&r.has(s.charAt(2))||s.startsWith("\\.\\.")&&r.has(s.charAt(4)),o=!t&&!e&&r.has(s.charAt(0));i=n?iE:o?ix:""}let n="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(n="(?:$|\\/)"),[i+s+n,iv(s),this.#t=!!this.#t,this.#r]}let r="*"===this.type||"+"===this.type,s="!"===this.type?"(?:(?!(?:":"(?:",i=this.#d(t);if(this.isStart()&&this.isEnd()&&!i&&"!"!==this.type){let e=this.toString();return this.#s=[e],this.type=null,this.#t=void 0,[e,iv(this.toString()),!1,!1]}let n=!r||e||t||!ix?"":this.#d(!0);n===i&&(n=""),n&&(i=`(?:${i})(?:${n})*?`);let o="";return[o="!"===this.type&&this.#h?(this.isStart()&&!t?ix:"")+iA:s+i+("!"===this.type?"))"+(!this.isStart()||t||e?"":ix)+iI+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&n?")":"*"===this.type&&n?")?":`)${this.type}`),iv(i),this.#t=!!this.#t,this.#r]}#d(e){return this.#s.map(t=>{if("string"==typeof t)throw Error("string type in extglob ast??");let[r,s,i,n]=t.toRegExpSource(e);return this.#r=this.#r||n,r}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static #f(e,t,r=!1){let s=!1,i="",n=!1;for(let o=0;o<e.length;o++){let a=e.charAt(o);if(s){s=!1,i+=(iN.has(a)?"\\":"")+a;continue}if("\\"===a){o===e.length-1?i+="\\\\":s=!0;continue}if("["===a){let[r,s,a,l]=iy(e,o);if(a){i+=r,n=n||s,o+=a-1,t=t||l;continue}}if("*"===a){r&&"*"===e?i+=iA:i+=iI,t=!0;continue}if("?"===a){i+=i$,t=!0;continue}i+=iO(a)}return[i,iv(e),!!t,n]}}let iL=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var iR=r(23184);let ij=(e,t,r={})=>(iu(t),(!!r.nocomment||"#"!==t.charAt(0))&&new ns(t,r).match(e)),iC=/^\*+([^+@!?\*\[\(]*)$/,iP=e=>t=>!t.startsWith(".")&&t.endsWith(e),iD=e=>t=>t.endsWith(e),iM=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),iF=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),i_=/^\*+\.\*+$/,iU=e=>!e.startsWith(".")&&e.includes("."),iB=e=>"."!==e&&".."!==e&&e.includes("."),iG=/^\.\*+$/,iK=e=>"."!==e&&".."!==e&&e.startsWith("."),iW=/^\*+$/,iq=e=>0!==e.length&&!e.startsWith("."),iV=e=>0!==e.length&&"."!==e&&".."!==e,iJ=/^\?+([^+@!?\*\[\(]*)?$/,iX=([e,t=""])=>{let r=iZ([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},iH=([e,t=""])=>{let r=iQ([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},iY=([e,t=""])=>{let r=iQ([e]);return t?e=>r(e)&&e.endsWith(t):r},iz=([e,t=""])=>{let r=iZ([e]);return t?e=>r(e)&&e.endsWith(t):r},iZ=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(".")},iQ=([e])=>{let t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},i0="object"==typeof iR&&iR?iR.platform:"posix",i1="\\",i2="/";ij.sep="win32"===i0?i1:i2;let i3=Symbol("globstar **");ij.GLOBSTAR=i3;let i9="[^/]*?",i4="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",i7="(?:(?!(?:\\/|^)\\.).)*?",i8=(e,t={})=>r=>ij(r,e,t);ij.filter=i8;let i6=(e,t={})=>Object.assign({},e,t),i5=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return ij;let t=ij;return Object.assign((r,s,i={})=>t(r,s,i6(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,r={}){super(t,i6(e,r))}static defaults(r){return t.defaults(i6(e,r)).Minimatch}},AST:class extends t.AST{constructor(t,r,s={}){super(t,r,i6(e,s))}static fromGlob(r,s={}){return t.AST.fromGlob(r,i6(e,s))}},unescape:(r,s={})=>t.unescape(r,i6(e,s)),escape:(r,s={})=>t.escape(r,i6(e,s)),filter:(r,s={})=>t.filter(r,i6(e,s)),defaults:r=>t.defaults(i6(e,r)),makeRe:(r,s={})=>t.makeRe(r,i6(e,s)),braceExpand:(r,s={})=>t.braceExpand(r,i6(e,s)),match:(r,s,i={})=>t.match(r,s,i6(e,i)),sep:t.sep,GLOBSTAR:i3})};ij.defaults=i5;let ne=(e,t={})=>(iu(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:ic(e);ij.braceExpand=ne,ij.makeRe=(e,t={})=>new ns(e,t).makeRe(),ij.match=(e,t,r={})=>{let s=new ns(t,r);return e=e.filter(e=>s.match(e)),s.options.nonull&&!e.length&&e.push(t),e};let nt=/[?*]|[+@!]\(.*?\)|\[|\]/,nr=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class ns{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){iu(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||i0,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if("string"!=typeof t)return!0;return!1}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let s=this.globParts.map((e,t,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=""===e[0]&&""===e[1]&&("?"===e[2]||!nt.test(e[2]))&&!nt.test(e[3]),r=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(r)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,s),this.set=s.filter(e=>-1===e.indexOf(!1)),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let r=0;r<e[t].length;r++)"**"===e[t][r]&&(e[t][r]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let r=t;for(;"**"===e[r+1];)r++;r!==t&&e.splice(t,r-t)}return e})}levelOneOptimize(e){return e.map(e=>0===(e=e.reduce((e,t)=>
152{let r=e[e.length-1];return"**"===t&&"**"===r||(".."===t&&r&&".."!==r&&"."!==r&&"**"!==r?e.pop():e.push(t)),e},[])).length?[""]:e)}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){let s=e[r];(1!==r||""!==s||""!==e[0])&&("."===s||""===s)&&(t=!0,e.splice(r,1),r--)}"."===e[0]&&2===e.length&&("."===e[1]||""===e[1])&&(t=!0,e.pop())}let r=0;for(;-1!==(r=e.indexOf("..",r+1));){let s=e[r-1];s&&"."!==s&&".."!==s&&"**"!==s&&(t=!0,e.splice(r-1,2),r-=2)}}while(t)return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do for(let r of(t=!1,e)){let s=-1;for(;-1!==(s=r.indexOf("**",s+1));){let i=s;for(;"**"===r[i+1];)i++;i>s&&r.splice(s+1,i-s);let n=r[s+1],o=r[s+2],a=r[s+3];if(".."!==n||!o||"."===o||".."===o||!a||"."===a||".."===a)continue;t=!0,r.splice(s,1);let l=r.slice(0);l[s]="**",e.push(l),s--}if(!this.preserveMultipleSlashes){for(let e=1;e<r.length-1;e++){let s=r[e];(1!==e||""!==s||""!==r[0])&&("."===s||""===s)&&(t=!0,r.splice(e,1),e--)}"."===r[0]&&2===r.length&&("."===r[1]||""===r[1])&&(t=!0,r.pop())}let i=0;for(;-1!==(i=r.indexOf("..",i+1));){let e=r[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;let e=1===i&&"**"===r[i+1]?["."]:[];r.splice(i-1,2,...e),0===r.length&&r.push(""),i-=2}}}while(t)return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let s=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);s&&(e[t]=s,e[r]=[])}return e.filter(e=>e.length)}partsMatch(e,t,r=!1){let s=0,i=0,n=[],o="";for(;s<e.length&&i<t.length;)if(e[s]===t[i])n.push("b"===o?t[i]:e[s]),s++,i++;else if(r&&"**"===e[s]&&t[i]===e[s+1])n.push(e[s]),s++;else if(r&&"**"===t[i]&&e[s]===t[i+1])n.push(t[i]),i++;else if("*"===e[s]&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&"**"!==t[i]){if("b"===o)return!1;o="a",n.push(e[s]),s++,i++}else{if("*"!==t[i]||!e[s]||!this.options.dot&&e[s].startsWith(".")||"**"===e[s]||"a"===o)return!1;o="b",n.push(t[i]),s++,i++}return e.length===t.length&&n}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let s=0;s<e.length&&"!"===e.charAt(s);s++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r=!1){let s=this.options;if(this.isWindows){let r="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),s=!r&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3]),o=s?3:r?0:void 0,a=n?3:i?0:void 0;if("number"==typeof o&&"number"==typeof a){let[r,s]=[e[o],t[a]];r.toLowerCase()===s.toLowerCase()&&(t[a]=r,a>o?t=t.slice(a):o>a&&(e=e.slice(o)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var n=0,o=0,a=e.length,l=t.length;n<a&&o<l;n++,o++){let i;this.debug("matchOne loop");var c=t[o],h=e[n];if(this.debug(t,c,h),!1===c)return!1;if(c===i3){this.debug("GLOBSTAR",[t,c,h]);var u=n,p=o+1;if(p===l){for(this.debug("** at the end");n<a;n++)if("."===e[n]||".."===e[n]||!s.dot&&"."===e[n].charAt(0))return!1;return!0}for(;u<a;){var f=e[u];if(this.debug(` 153globstar while`,e,u,t,p,f),this.matchOne(e.slice(u),t.slice(p),r))return this.debug("globstar found match!",u,a,f),!0;if("."===f||".."===f||!s.dot&&"."===f.charAt(0)){this.debug("dot detected!",e,u,t,p);break}this.debug("globstar swallow a segment, and continue"),u++}if(r&&(this.debug(` 154>>> no match, partial?`,e,u,t,p),u===a))return!0;return!1}if("string"==typeof c?(i=h===c,this.debug("string match",c,h,i)):(i=c.test(h),this.debug("pattern match",c,h,i)),!i)return!1}if(n===a&&o===l)return!0;if(n===a)return r;if(o===l)return n===a-1&&""===e[n];throw Error("wtf?")}braceExpand(){return ne(this.pattern,this.options)}parse(e){let t;iu(e);let r=this.options;if("**"===e)return i3;if(""===e)return"";let s=null;(t=e.match(iW))?s=r.dot?iV:iq:(t=e.match(iC))?s=(r.nocase?r.dot?iF:iM:r.dot?iD:iP)(t[1]):(t=e.match(iJ))?s=(r.nocase?r.dot?iH:iX:r.dot?iY:iz)(t):(t=e.match(i_))?s=r.dot?iB:iU:(t=e.match(iG))&&(s=iK);let i=iT.fromGlob(e,this.options).toMMPattern();return s&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;
154let t=this.options,r=t.noglobstar?i9:t.dot?i4:i7,s=new Set(t.nocase?["i"]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(""))s.add(t);return"string"==typeof e?nr(e):e===i3?i3:e._src});return t.forEach((e,s)=>{let i=t[s+1],n=t[s-1];e===i3&&n!==i3&&(void 0===n?void 0!==i&&i!==i3?t[s+1]="(?:\\/|"+r+"\\/)?"+i:t[s]=r:void 0===i?t[s-1]=n+"(?:\\/|"+r+")?":i!==i3&&(t[s-1]=n+"(?:\\/|\\/"+r+"\\/)"+i,t[s+1]=i3))}),t.filter(e=>e!==i3).join("/")}).join("|"),[n,o]=e.length>1?["(?:",")"]:["",""];i="^"+n+i+o+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let n=s[s.length-1];if(!n)for(let e=s.length-2;!n&&e>=0;e--)n=s[e];for(let e=0;e<i.length;e++){let o=i[e],a=s;if(r.matchBase&&1===o.length&&(a=[n]),this.matchOne(a,o,t)){if(r.flipNegate)return!0;return!this.negate}}return!r.flipNegate&&this.negate}static defaults(e){return ij.defaults(e).Minimatch}}function ni(e){let t=[],r=e.globParts[0];for(let e=0,s=r.length;e<s;e++){if(r[e].includes("*"))return{dir:t.join("/"),depth:r[e]};t.push(r[e])}return{dir:t.join("/")}}ij.AST=iT,ij.Minimatch=ns,ij.escape=iL,ij.unescape=iv;let nn=async({entry:e,project:t,directory:r,packagePath:s})=>{if("package.json"===e){let i={path:s};try{let{name:s}=await t.fs.readJSON(t.fs.join(r,e));i.name=s}catch{}return i}return null};async function no(e,t,r,s){let i={},n=e.jsWorkspaceRoot?e.fs.resolve(e.jsWorkspaceRoot,t):e.root?e.fs.resolve(e.root,t):e.fs.resolve(t);try{i=await e.fs.readDir(n,!0)}catch{}let o=Object.entries(i).map(async([i,o])=>{let a=await r({entry:i,type:o,packagePath:t,directory:n,project:e});return a?[a]:s&&"directory"===o?no(e,e.fs.join(t,i),r,"**"===s?s:void 0):[]});return(await Promise.all(o)).flat()}async function na(e,t=[]){if(!t?.length)return[];let r=(await Promise.all(t.map(t=>{let r=new ns(t.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,"")));if(r.negate)return;let{dir:s,depth:i}=ni(r);return no(e,s,nn,i)}))).flat().filter(Boolean),s=new Map;for(let i of r)for(let r of t){let t=new ns(r.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,"")));ij(i.path,t.pattern)&&(s.set(e.fs.join(i.path),i),t.negate&&s.delete(e.fs.join(i.path)))}return[...s.values()]}class nl{isRoot;rootDir;packages=[];hasPackage(e){return this.packages.findIndex(({path:t})=>t===e)>-1}getPackage(e){return this.packages.find(({path:t})=>t===e)}}async function nc(e){let t=await e.fs.findUp("pnpm-workspace.yaml",{cwd:e.baseDirectory,stopAt:e.root});if(!t)return[];try{let{packages:r=[]}=il(await e.fs.readFile(t));return r}catch{return[]}}async function nh(e){return Array.isArray(e.workspaces)?e.workspaces||[]:"object"==typeof e.workspaces&&e.workspaces.packages||[]}async function nu(e){if(void 0===e.packageManager)throw Error("Please run the packageManager detection before calling the workspace detection!");if(null===e.packageManager||await e.isRedwoodProject())return null;let t=await e.getRootPackageJSON(),r="pnpm"===e.packageManager.name?await nc(e):await nh(t);if(!r||0===r.length)return null;e.events.emit("detectedWorkspaceGlobs",void 0);let s=new nl;s.rootDir=e.jsWorkspaceRoot,s.packages=await na(e,r),s.isRoot=e.baseDirectory===e.jsWorkspaceRoot;let i=e.fs.relative(e.jsWorkspaceRoot,e.baseDirectory);return s.isRoot||s.hasPackage(i)?s:null}class np extends eJ{id="nx";name="Nx";configFiles=["nx.json"];logo={default:"/logos/nx/light.svg",light:"/logos/nx/light.svg",dark:"/logos/nx/dark.svg"};runFromRoot=!0;isIntegrated=!1;targets=new Map;async getCommands(e){let t=this.project.workspace?.getPackage(e)?.name||"",r=(this.targets.get(e)||[]).map(e=>e.name);try{let s=this.project.resolveFromPackage(e,"package.json"),i=await this.project.fs.readJSON(s,{fail:!0});r.push(...Object.keys(i?.scripts||{})),t=i.name||""}catch{}return 0!==t.length&&0!==r.length?r.map(e=>{let r="unknown";return d.includes(e)&&(r="dev"),m.includes(e)&&(r="build"),{type:r,command:`nx run ${t}:${e}`}}):[]}async getDist(e){return this.isIntegrated?this.getOutputFromTarget(e):null}async getPort(e){if(!this.isIntegrated)return null;let t=this.targets.get(e)?.find(e=>d.includes(e.name)),r=this.getExecutorFromTarget(t);if(!r)return null;switch(r){case"@nxtensions/astro:dev":return 3e3;
154case"@nx/next:server":case"@nrwl/next:server":case"@nrwl/web:dev-server":case"@nx/webpack:dev-server":case"@angular-devkit/build-angular:dev-server":return 4200;case"@nx-plus/vue:dev-server":return 8e3;case"nx:run-commands":case void 0:return null;default:return this.project.report({name:"UndetectedExecutor",message:`Undetected executor for Nx integrated: ${r}`},{metadata:{executor:r}}),null}}async getOutputFromTarget(e){let{getProperty:t}=await r.e(32223).then(r.bind(r,32223));try{let r=this.targets.get(e)?.find(e=>"build"===e.name);if(r){let s="outputs"in r?r.outputs?.[0]:r.options?.outputPath;if(s){let i=this.project.frameworks?.get(e)?.[0],n="";return i?.id==="next"&&(n=i.build.directory),this.project.fs.join(s.replace("{workspaceRoot}/","").replace(/\{(.+)\}/g,(s,i)=>t({...r,projectRoot:e},i)),n)}}}catch{}return this.project.fs.join("dist",e)}getExecutorFromTarget(e){return e&&("executor"in e?e.executor:e.builder)}async detectFramework(e){let t=e.find(e=>m.includes(e.name)),r=this.getExecutorFromTarget(t);if(t&&r)switch(r){case"@nrwl/next:build":case"@nx/next:build":return"next";case"@nxtensions/astro:build":return"astro";case"@nx-plus/vue:browser":return"vue";case"@angular-devkit/build-angular:browser":return"angular";case"@nx/webpack:webpack":case"@nrwl/web:build":if(t.options?.webpackConfig?.includes?.("react"))return"react-static";this.project.report({name:"UndetectedNrwlWeb",message:`Undetected @nrwl/web:build framework: ${JSON.stringify({target:t},null,2)}`});return;case"@nx/cypress:cypress":case"@nrwl/cypress:cypress":case"@nrwl/node:build":case"nx:run-commands":case void 0:return;default:this.project.report({name:"UndetectedExecutor",message:`Undetected executor for Nx integrated: ${r}`},{metadata:{executor:r}})}}async detectWorkspaceFile(){let e=this.project.fs;try{let{projects:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,"workspace.json"),{fail:!0}),r=[];for(let[s,{root:i,projectType:n,architect:o}]of Object.entries(t||{})){if(!i||s.endsWith("-e2e")||"application"!==n)continue;let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),a=await this.detectFramework(t);this.targets.set(e.join(i),t),r.push({name:s,path:e.join(i),forcedFramework:a})}return r}catch{}return[]}async detectProjectJson(){let e=this.project.fs;try{let{workspaceLayout:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,"nx.json"),{fail:!0}),r=t?.appsDir?[t.appsDir]:["apps","packages"],s=async({entry:t,directory:r,packagePath:s})=>{if("project.json"===t&&!s.endsWith("-e2e"))try{let{projectType:i,name:n,targets:o}=await e.readJSON(e.join(r,t));if("application"===i){let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),r=await this.detectFramework(t);return this.targets.set(e.join(s),t),{name:n,path:e.join(s),forcedFramework:r}}}catch{}return null};return(await Promise.all(r.map(async e=>no(this.project,e,s,"*").catch(()=>[])))).flat()}catch{}return[]}async detect(){if(await super.detect()){let e=[...await this.detectWorkspaceFile(),...await this.detectProjectJson()];return e.length&&(this.isIntegrated=!0,this.project.workspace?this.project.workspace.packages.push(...e):(this.project.workspace=new nl,this.project.workspace.isRoot=this.project.jsWorkspaceRoot===this.project.baseDirectory,this.project.workspace.rootDir=this.project.jsWorkspaceRoot,this.project.workspace.packages=e),this.project.events.emit("detectWorkspaces",this.project.workspace)),this}}}class nf extends eJ{id="pnpm";name="PNPM";runFromRoot=!0;async getCommands(e){let{name:t,scripts:r}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,"package.json"));return r&&Object.keys(r).length>0?Object.entries(r).map(([e,r])=>{let s=S(e,r);return{type:k(e,r)?"dev":s?"build":"unknown",command:`pnpm --filter ${t}${s?"...":""} run ${e}`}}):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name==="pnpm")return this}}class nd extends eJ{id="yarn";name="Yarn";runFromRoot=!0;async getCommands(e){let{name:t,scripts:r}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,"package.json"));return r&&Object.keys(r).length>0?Object.entries(r).map(([e,r])=>({type:k(e,r)?"dev":S(e,r)?"build":"unknown",command:`yarn workspace ${t} ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name==="yarn")return this}}class ng extends eJ{id="npm";name="NPM";runFromRoot=!0;async getCommands(e){let{name:t,scripts:r}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,"package.json"));return r&&Object.keys(r).length>0?Object.entries(r).map(([e,r])=>({type:k(e,r)?"dev":S(e,r)?"build":"unknown",command:`npm --workspace ${t} run ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name==="npm")return this}}class nm extends eJ{id="pants";name="Pants";configFiles=["pants.toml"];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}}class ny extends eJ{id="rush";name="Rush";configFiles=["rush.json"];logo={default:"/logos/rush/light.svg",light:"/logos/rush/light.svg",dark:"/logos/rush/dark.svg"}}class nv extends eJ{id="turbo";name="TurboRepo";configFiles=["turbo.json"];runFromRoot=!0;logo={default:"/logos/turbo/light.svg",light:"/logos/turbo/light.svg",dark:"/logos/turbo/dark.svg"};async getCommands(e){let{scripts:t,name:r}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,"package.json"));return r&&t&&Object.values(t).length?Object.keys(t).map(e=>{let t="unknown";return d.includes(e)&&(t="dev"),m.includes(e)&&(t="build"),{type:t,command:`turbo run ${e} --filter ${r}`}}):[]}}let nb=[eX,eH,eY,ez,eZ,eQ,e0,np,nm,ny,nv,nf,ng,nd];
154class nw{callbacks=new Map;on(e,t){if("function"!=typeof t)throw TypeError("Callback parameter has to be a function.");this.callbacks.has(e)||this.callbacks.set(e,[]);let r=this.callbacks.get(e);r?.push(t)}async emit(e,t){for(let r of this.callbacks.get(e)||[])await r(t)}}var nE=r(99895);let{default:nx}=nE,nk=e=>e instanceof Error||"object"==typeof e&&(e.errorClass||e.name)?e:"string"==typeof e?Error(e):"object"==typeof e&&e.message?Error(e.message):Error(`Unexpected error format: ${JSON.stringify(e)}`);function nS(e,t={}){let r=nk(e);(t.client||nx).notify(r,r=>{for(let[e,s]of Object.entries(t.metadata||{}))r.addMetadata(e,s);"object"==typeof e&&"documentation_url"in e&&r.addMetadata("Documentation URL",e.documentation_url),r.context=t.context,r.severity=t.severity||"error",r.context=t.context})}let nN={yarn:{name:"yarn",installCommand:"yarn install",runCommand:"yarn run",localPackageCommand:"yarn",remotePackageCommand:["yarn","dlx"],lockFiles:["yarn.lock"],forceEnvironment:"NETLIFY_USE_YARN"},pnpm:{name:"pnpm",installCommand:"pnpm install",runCommand:"pnpm run",localPackageCommand:"pnpm",remotePackageCommand:["pnpm","dlx"],lockFiles:["pnpm-lock.yaml"],forceEnvironment:"NETLIFY_USE_PNPM"},npm:{name:"npm",installCommand:"npm install",runCommand:"npm run",localPackageCommand:"npx",remotePackageCommand:["npx"],lockFiles:["package-lock.json"]},bun:{name:"bun",installCommand:"bun install",runCommand:"bun run",localPackageCommand:"bunx",remotePackageCommand:["bunx"],lockFiles:["bun.lockb","bun.lock"]}};function nO(e){let t=e.getEnv("npm_config_user_agent");if(void 0!==t){if(t.includes("yarn"))return"yarn";if(t.includes("pnpm"))return"pnpm";if(t.includes("bun"))return"bun";if(t.includes("npm"))return"npm"}}let n$=Object.values(nN).reduce((e,t)=>t.lockFiles.reduce((e,r)=>({...e,[r]:t}),e),{}),nI=async(e,t)=>{let r=t?.enableUserAgentSniffing?nO(e):void 0;try{let t=await e.fs.findUpMultiple("package.json",{cwd:e.baseDirectory,stopAt:e.root});if(!t.length)return r?nN[r]:null;for(let r of t){let{packageManager:t}=await e.fs.readJSON(r);if(t){let[e,r]=t.split("@");if(nN[e]){let t=nN[e];return t.version=(0,f.parse)(r)||void 0,t}}}for(let t of Object.values(nN))if(t.forceEnvironment&&"true"===e.getEnv(t.forceEnvironment))return t;let s=await e.fs.findUp(Object.keys(n$),{cwd:e.baseDirectory,stopAt:e.root});if(s){let t=n$[e.fs.basename(s)];if(!(t.forceEnvironment&&"false"===e.getEnv(t.forceEnvironment)))return t}}catch(t){e.report(t)}return r?nN[r]:nN.npm};class nA{project;id;name;configFiles=[];constructor(e){this.project=e}async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}toJSON(){return{id:this.id,name:this.name}}}class nT extends nA{id="brew";name="Brew";configFiles=["Brewfile.netlify"]}class nL extends nA{id="bun";name="Bun";configFiles=["bun.lock","bun.lockb","bunfig.toml"]}class nR extends nA{id="emacs";name="Emacs";configFiles=["Cask"]}class nj extends nA{id="dotnet";name="Dotnet";configFiles=["Program.cs","appsettings.json"]}class nC extends nA{id="erlang";name="Erlang";configFiles=["rebar.config","rebar.lock"]}class nP extends nA{id="go";name="Go";configFiles=["go.mod",".go-version","go.work"]}class nD extends nA{id="java";name="Java";configFiles=["project.clj","build.boot"]}class nM extends nA{id="node";name="NodeJS";configFiles=[".node-version",".nvmrc","package.json"]}class nF extends nA{id="php";name="Php";configFiles=["composer.json"]}class n_ extends nA{id="python";name="Python";configFiles=["requirements.txt","Pipfile"]}class nU extends nA{id="ruby";name="Ruby";configFiles=[".ruby-version","Gemfile.lock","Gemfile"]}class nB extends nA{id="rust";name="Rust";configFiles=["Cargo.toml","Cargo.lock"]}class nG extends nA{id="swift";name="Swift";configFiles=[".swift-version","Package.swift"]}let nK=[nM,nU,nT,nL,nj,nR,nC,nP,nD,nF,nB,nG,n_];async function nW(e,t,r){let s=t.buildSystems[0],i={...e};if(r&&s){let t=await s.getCommands?.(r)||[],n=t.find(e=>"build"===e.type),o=t.find(e=>"dev"===e.type),a=await s.getDist?.(r),l=await s.getPort?.(r);i.name=`${s.name} + ${e.name} ${r}
154`,n&&(i.buildCommand=n.command),o&&(i.devCommand=o.command),a&&(i.dist=a),null!=l&&(i.frameworkPort=l),s.runFromRoot&&n&&o&&(i.baseDirectory="")}return i}async function nq(e,t,r){let s=e.getDevCommands(),i=e.getBuildCommands(),n={name:e.name,buildCommand:i[0],devCommand:s[0],frameworkPort:e.dev?.port,dist:t.fs.join(r,e.build.directory),env:e.env||{},plugins_from_config_file:[],plugins_recommended:e.plugins||[],framework:{id:e.id,name:e.name},baseDirectory:r,packagePath:r,pollingStrategies:e.dev?.pollingStrategies?.map(({name:e})=>e)||[]};return void 0!==e.dev?.clearPublishDirectory&&(n.clearPublishDirectory=e.dev.clearPublishDirectory),r?.length&&t.workspace?.isRoot&&(n.dist=t.fs.join(r,e.build.directory)),nW(n,t,r)}async function nV(e,t){if(void 0===e.frameworks)throw Error("Please run the framework detection before calling the build settings!");let r=t??e.relativeBaseDirectory??"",s=[];if(e.logger.debug(`[get-build-settings.ts] getBuildSettings for baseDirectory: ${r}`),e.workspace&&e.workspace.packages.length>0&&0===r.length)for(let[t,r]of[...e.frameworks.entries()])for(let i of r)s.push(nq(i,e,t));else for(let t of e.frameworks.get(r)||[])s.push(nq(t,e,r));return(await Promise.all(s)).filter(Boolean)}class nJ{fs;root;baseDirectory;relativeBaseDirectory;packageManager;jsWorkspaceRoot;workspace;buildSystems;settings;frameworks;runtimes;#g={};bugsnag;logger;reportFn=nS;events=new nw;_nodeVersion=null;setNodeVersion(e){return this._nodeVersion=(0,f.parse)((0,f.coerce)(e),{loose:!0}),this}async getCurrentNodeVersion(){if(this._nodeVersion)return this._nodeVersion;let e=(0,f.parse)((0,f.coerce)(this.getEnv("NODE_VERSION")),{loose:!0});if(e)return e;let t=await this.fs.gracefullyReadFile(".nvmrc");if(t)return(0,f.parse)((0,f.coerce)(t,{loose:!0}));let r=await this.fs.gracefullyReadFile(".node_version");return r?(0,f.parse)((0,f.coerce)(r,{loose:!0})):null}async isRedwoodProject(){return await this.fs.fileExists(this.fs.resolve(this.fs.cwd,"redwood.toml"))}constructor(e,t,r){this.fs=e,this.baseDirectory=e.resolve(r||"",void 0!==t?t:e.cwd),this.root=r?e.resolve(e.cwd,r):void 0,this.relativeBaseDirectory=void 0===t||e.isAbsolute(t)?e.relative(this.root||e.cwd,this.baseDirectory):t,this.fs.cwd=this.baseDirectory,this.logger=e.logger}setEnvironment(e){return this.#g=e,this}setReportFn(e){return this.reportFn=e,this}setBugsnag(e){return e&&(this.bugsnag=e),this}getEnv(e){return this.#g[e]}report(e,t={}){this.fs.logger.error(e),this.reportFn(e,{metadata:{build:{baseDirectory:this.baseDirectory,root:this.root},...t.metadata||{}},context:t.context,severity:t.severity,client:this.bugsnag})}getNpmScriptCommand(e){let t=this.packageManager?.runCommand||nN.npm.runCommand;return`${t} ${e}`}async getRootPackageJSON(){let e=(await this.fs.findUpMultiple("package.json",{cwd:this.baseDirectory,stopAt:this.root})).pop();return e?(this.jsWorkspaceRoot=this.fs.dirname(e),this.fs.readJSON(e)):{}}async getPackageJSON(e){let t=await this.fs.findUp("package.json",{cwd:e||this.baseDirectory,stopAt:this.root});return t?Object.assign(await this.fs.readJSON(t),{pkgPath:t}):{pkgPath:null}}resolveFromPackage(e,...t){return this.jsWorkspaceRoot?this.fs.join(this.jsWorkspaceRoot,e,...t):this.baseDirectory.endsWith(e)&&!this.workspace?.isRoot?this.fs.join(this.baseDirectory,...t):this.fs.resolve(e,...t)}async detectPackageManager(e){if(this.logger.debug("[project.ts]: detectPackageManager"),void 0!==this.packageManager)return this.packageManager;try{return this.packageManager=await nI(this,e),await this.events.emit("detectPackageManager",this.packageManager),this.packageManager}catch{return null}}async detectWorkspaces(){if(this.logger.debug("[project.ts]: detectWorkspaces"),void 0!==this.workspace)return this.workspace;await this.detectPackageManager();try{return this.workspace=await nu(this),await this.events.emit("detectWorkspaces",this.workspace),this.workspace}catch(e){return this.report(e),null}}async detectBuildSystem(){if(this.logger.debug("[project.ts]: detectBuildSystem"),void 0!==this.buildSystems)return this.buildSystems;await this.detectWorkspaces();try{return this.buildSystems=(await Promise.all(nb.map(e=>
154new e(this).detect()))).filter(Boolean),await this.events.emit("detectBuildsystems",this.buildSystems),this.buildSystems}catch(e){return this.report(e),[]}}async detectRuntime(){this.logger.debug("[project.ts]: detectRuntime");try{return this.runtimes=(await Promise.all(nK.map(e=>new e(this).detect()))).filter(Boolean),this.events.emit("detectRuntimes",this.runtimes),this.runtimes}catch(e){return this.report(e),[]}}async detectFrameworks(){if(this.logger.debug("[project.ts]: detectFrameworks"),void 0!==this.frameworks)return[...this.frameworks.values()].flat();try{return await this.detectBuildSystem(),this.frameworks=new Map,this.workspace?await Promise.all(this.workspace.packages.map(async({path:e,forcedFramework:t})=>{if(t)try{let r=await eV(t,this);this.frameworks.set(e,[r])}catch{}else if(this.workspace){let t=await this.detectFrameworksInPath(this.fs.join(this.workspace.rootDir,e));this.frameworks.set(e,t)}})):this.frameworks.set("",await this.detectFrameworksInPath()),await this.events.emit("detectFrameworks",this.frameworks),[...this.frameworks.values()].flat()}catch(e){return this.report(e),null}}async detectFrameworksInPath(e){this.logger.debug(`[project.ts]: detectFrameworksInPath - ${e}`);try{let t=(await Promise.all(eq.map(t=>new t(this,e).detect()))).filter(Boolean);return $(t)}catch{return[]}}async getBuildSettings(e){if(this.logger.debug("[project.ts]: getBuildSettings"),void 0!==this.settings)return this.settings;this.settings=[];try{await this.detectFrameworks(),this.settings=await nV(this,e),await this.events.emit("detectSettings",this.settings)}catch(e){this.report(e)}return this.settings}}var nX=r(64575);let{default:{notify:nH}}=nE;function nY(e){try{return(0,nX.parse)(e)}catch(e){return nH(e,e=>{e.context="@netlify/build-info => gracefullyParseToml => toml.parse",e.severity="info"}),{}}}async function nz(e,t){let r=e.join(t,"netlify.toml");try{let t={},{build:s,dev:i,functions:n,template:o,plugins:a}=nY(await e.readFile(r));return t.buildCommand=s?.command??t.buildCommand,t.dist=s?.publish??t.dist,t.devCommand=i?.command??t.devCommand,t.frameworkPort=i?.port??t.frameworkPort,t.plugins_from_config_file=a?.map(e=>e.package)??t.plugins_from_config_file,t.functionsDir=(s?.functions||n?.directory)??t.functionsDir,t.template=o??t.template,t}catch{}}async function nZ(e,t){if(t?.length)return await nz(e.fs,e.fs.dirname(t))||{};let r=await nz(e.fs,e.baseDirectory);return r||e.root&&await nz(e.fs,e.root)||{}}},87738(e,t,r){"use strict";let s=r(96262);e.exports=(e,t,r=!1)=>{if(e instanceof s)return e;try{return new s(e,t)}catch(e){if(!r)return null;throw e}}},88129(e,t,r){"use strict";let s=r(82302),i=r(78195),{ANY:n}=i,o=r(22747),a=r(88917),l=(e,t,r={})=>{if(e===t)return!0;e=new s(e,r),t=new s(t,r);let i=!1;e:for(let s of e.set){for(let e of t.set){let t=u(s,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0},c=[new i(">=0.0.0-0")],h=[new i(">=0.0.0")],u=(e,t,r)=>{let s,i,l,u,d,g,m;if(e===t)return!0;if(1===e.length&&e[0].semver===n)if(1===t.length&&t[0].semver===n)return!0;else e=r.includePrerelease?c:h;if(1===t.length&&t[0].semver===n)if(r.includePrerelease)return!0;else t=h;let y=new Set;for(let t of e)">"===t.operator||">="===t.operator?s=p(s,t,r):"<"===t.operator||"<="===t.operator?i=f(i,t,r):y.add(t.semver);if(y.size>1)return null;if(s&&i&&((l=a(s.semver,i.semver,r))>0||0===l&&(">="!==s.operator||"<="!==i.operator)))return null;for(let e of y){if(s&&!o(e,String(s),r)||i&&!o(e,String(i),r))return null;for(let s of t)if(!o(e,String(s),r))return!1;return!0}let v=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,b=!!s&&!r.includePrerelease&&!!s.semver.prerelease.length&&s.semver;for(let e of(v&&1===v.prerelease.length&&"<"===i.operator&&0===v.prerelease[0]&&(v=!1),t)){if(m=m||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,s){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if((u=p(s,e,r))===e&&u!==s)return!1}else if(">="===s.operator&&!o(s.semver,String(e),r))return!1}if(i){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if((d=f(i,e,r))===e&&d!==i)return!1}else if("<="===i.operator&&!o(i.semver,String(e),r))return!1}if(!e.operator&&(i||s)&&0!==l)return!1}return(!s||!g||!!i||0===l)&&(!i||!m||!!s||0===l)&&!b&&!v&&!0},p=(e,t,r)=>{if(!e)return t;let s=a(e.semver,t.semver,r);return s>0?e:s<0||">"===t.operator&&">="===e.operator?t:e},f=(e,t,r)=>{if(!e)return t;let s=a(e.semver,t.semver,r);return s<0?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=l},88187(e,t,r){"use strict";let s=r(96262);e.exports=(e,t)=>new s(e,t).patch},88917(e,t,r){"use strict";let s=r(56779);e.exports=(e,t,r)=>new s(e,r).compare(new s(t,r))},89361(e,t,r){"use strict";let s=r(82302);e.exports=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}}},90202(e,t,r){"use strict";r(23184),e.exports=()=>{}},90887(e,t,r){"use strict";let s=r(96262);e.exports=(e,t,r)=>{let i=new s(e,r),n=new s(t,r);return i.compare(n)||i.compareBuild(n)}},91114(e,t,r){"use strict";let s=r(22717);e.exports=(e,t,r)=>(e=new s(e,r),t=new s(t,r),e.intersects(t,r))},91626(e){"use strict";e.exports={compile:function(e){var t=[],r=[],s="",i=Object.create(null),n=i;return o(e);function o(e){for(var t,r=0;r<e.length;r++)switch((t=e[r]).type){case"Assign":l(t);break;case"ObjectPath":p(t);break;case"ArrayPath":f(t)}return i}function a(e,t,r){var s=Error(e);throw s.line=t,s.column=r,s}function l(e){var i,o=e.key,l=e.value,u=e.line,p=e.column;i=s?s+"."+o:o,void 0!==n[o]&&a("Cannot redefine existing key '"+i+"'.",u,p),n[o]=h(l),c(i)||(t.push(i),r.push(i))}function c(e){return -1!==t.indexOf(e)}function h(e){return"Array"===e.type?g(e.value):"InlineTable"===e.type?u(e.value):e.value}function u(e){for(var t=Object.create(null),r=0;r<e.length;r++){var s=e[r];"InlineTable"===s.value.type?t[s.key]=u(s.value.value):"InlineTableValue"===s.type&&(t[s.key]=h(s.value))}return t}function p(e){var r=e.value,o=r.map(m).join("."),l=e.line,h=e.column;c(o)&&a("Cannot redefine existing key '"+r+"'.",l,h),t.push(o),n=d(i,r,Object.create(null),l,h),s=r}function f(e){var r=e.value,o=r.map(m).join("."),l=e.line,h=e.column;
154if(c(o)||t.push(o),(t=t.filter(function(e){return 0!==e.indexOf(o)})).push(o),n=d(i,r,[],l,h),s=o,n instanceof Array){var u=Object.create(null);n.push(u),n=u}else a("Cannot redefine existing key '"+r+"'.",l,h)}function d(e,t,s,i,n){var o=[],l="";t.join(".");for(var c=e,h=0;h<t.length;h++){var u=t[h];o.push(u),l=o.join("."),void 0===c[u]?h===t.length-1?c[u]=s:c[u]=Object.create(null):h!==t.length-1&&r.indexOf(l)>-1&&a("Cannot redefine existing key '"+l+"'.",i,n),(c=c[u])instanceof Array&&c.length&&h<t.length-1&&(c=c[c.length-1])}return c}function g(e){for(var t=null,r=0;r<e.length;r++){var s=e[r];null===t?t=s.type:s.type!==t&&a("Cannot add value of type "+s.type+" to array of type "+t+".",s.line,s.column)}return e.map(h)}function m(e){return e.indexOf(".")>-1?'"'+e+'"':e}}}},92640(e,t,r){"use strict";let s=r(56779);e.exports=(e,t,r)=>{let i=new s(e,r),n=new s(t,r);return i.compare(n)||i.compareBuild(n)}},93365(e){"use strict";let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},93480(e,t,r){"use strict";let s=r(92640);e.exports=(e,t)=>e.sort((e,r)=>s(r,e,t))},94383(module,__unused_webpack_exports,__webpack_require__){"use strict";let _custom;module.exports=makeParserClass(__webpack_require__(47132)),module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=e=>{let t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t},module.exports.TomlError=TomlError;let createDateTime=__webpack_require__(66689),createDateTimeFloat=__webpack_require__(33194),createDate=__webpack_require__(6012),createTime=__webpack_require__(52325),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:` 155`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}let _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return!!hasOwnProperty.call(e,t)||("__proto__"===t&&defineProperty(e,"__proto__",descriptor),!1)}let INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_TABLE}let TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return null!==e&&"object"==typeof e&&e[_type]===TABLE}let _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_LIST}let LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return null!==e&&"object"==typeof e&&e[_type]===LIST}try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(_){}let _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=__webpack_require__.g.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return null===this.value}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}let INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return(Object.is(t,-0)&&(t=0),__webpack_require__.g.BigInt&&!Number.isSafeInteger(t))?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}}
vendor: 5,623 bytes, line 155
155)}function isInteger(e){return null!==e&&"object"==typeof e&&e[_type]===INTEGER}let FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return null!==e&&"object"==typeof e&&e[_type]===FLOAT}function tomlType(e){let t=typeof e;if("object"===t){if(null===e)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){class t extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);else throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx,r=e.key.pop();for(let r of e.key){if(hasKey(t,r)&&(!isTable(t[r])||t[r][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[r]=t[r]||Table()}if(hasKey(t,r))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[r]=e.value.valueOf():t[r]=e.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){return this.state.resultTable?this.state.resultTable.push(e):this.state.resultTable=[e],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){return this.char===CHAR_PERIOD?this.next(this.parseAssignKeywordPostDot):this.char!==CHAR_SP&&this.char!==CTRL_I?this.goto(this.parseAssignEqual):void 0}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do if(this.char===e.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char!==CHAR_LSQB)return this.goto(this.parseTable);this.next(this.parseList)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[e]=this.ctx[e]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e))if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else throw this.error(new TomlError("Can't redefine existing key"));else this.ctx=this.ctx[e]=Table();return this.next(this.parseTableNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)||(this.ctx[e]=List()),isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[e])){let t=Table();this.ctx[e].push(t),this.ctx=t}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e))if(isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));else if(isInlineTable(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline table"));else if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else throw this.error(new TomlError("Can't redefine an existing key"));else this.ctx=this.ctx[e]=Table();return this.next(this.parseListNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(e){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Ke
155y without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);else if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);else if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);else if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);else throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)if("-"===this.state.buf)return this.return(-1/0);else return this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else if(0!==this.state.buf.length)return this.returnNow();else throw this.error(new TomlError("Empty bare keys are not allowed"))}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();else this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();else this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();else this.consume()}while(this.nextChar())}recordEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();else this.consume()}while(this.nextChar())}errorControlCharInString(){let e="\\u00";return this.char<16&&(e+="0"),e+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}
vendor: 7,448 bytes, line 155
155parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(e){try{let t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);let e=Integer(this.state.buf);if(!e.isNaN())return this.returnNow(e);throw this.error(new TomlError("Invalid number"))}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);else return this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);else return this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);else if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);else if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);else if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);else return this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4)if(isDigit(this.char))return this.consume();else if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);else throw this.error(new TomlError("Expected digit while parsing year part of a date"));if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}parseNumberBaseOrDateTime(){if(this.char===CHAR_b)return this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin);if(this.char===CHAR_o)return this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct);if(this.char===CHAR_x)return this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex);if(this.char===CHAR_PERIOD)return this.goto(this.parseNumberInteger);if(isDigit(this.char))return this.goto(this.parseDateTimeOnly);else return this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);let e=Integer(this.state.buf);if(!e.isNaN())return this.returnNow(e);throw this.error(new TomlError("Invalid number"))}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);let e=Integer(this.state.buf);if(!e.isNaN())return this.returnNow(e);throw this.error(new TomlError("Invalid number"))}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);let e=Integer(this.state.buf);if(!e.isNaN())return this.returnNow(e);throw this.error(new TomlError("Invalid number"))}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}
155parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);else throw this.error(new TomlError("Incomplete datetime"))}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),2===this.state.buf.length)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),2===this.state.buf.length)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char!==CHAR_PERIOD)return this.return(createTime(this.state.result));this.state.buf="",this.next(this.parseOnlyTimeFraction)}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(0===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));else if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else if(1===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));else if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){return this.char===CHAR_t?(this.consume(),this.next(this.parseTrue_r)):this.char===CHAR_f?(this.consume(),this.next(this.parseFalse_a)):void 0}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(e){if(this.state.resultArr){let t=this.state.resultArr[_contentType],r=tomlType(e);if(t!==r)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${r}`))}else this.state.resultArr=InlineList(tomlType(e));return isFloat(e)||isInteger(e)?this.state.resultArr.push(e.valueOf()):this.state.resultArr.push(e),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(e){let t=this.state.resultTable,r=e.key.pop();for(let r of e.key){if(hasKey(t,r)&&(!isTable(t[r])||t[r][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[r]=t[r]||Table()}if(hasKey(t,r))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[r]=e.value.valueOf():t[r]=e.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return t}},95477(e,t,r){"use strict";let s=r(24774);e.exports=(e,t,r)=>0!==s(e,t,r)},95978(e,t,r){"use strict";let s=r(56779),i=r(82302),n=r(74951);e.exports=(e,t)=>{e=new i(e,t);let r=new s("0.0.0");if(e.test(r)||(r=new s("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t<e.set.length;++t){let i=e.set[t],o=null;
155i.forEach(e=>{let t=new s(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!o||n(t,o))&&(o=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!r||n(r,o))&&(r=o)}return r&&e.test(r)?r:null}},96262(e,t,r){"use strict";let s=r(90202),{MAX_LENGTH:i,MAX_SAFE_INTEGER:n}=r(77628),{safeRe:o,t:a}=r(41680),l=r(93365),{compareIdentifiers:c}=r(9525);class h{constructor(e,t){if(t=l(t),e instanceof h)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);s("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n||this.major<0)throw TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<n)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(s("SemVer.compare",this.version,this.options,e),!(e instanceof h)){if("string"==typeof e&&e===this.version)return 0;e=new h(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return(e instanceof h||(e=new h(e,this.options)),this.major<e.major)?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:+(this.patch>e.patch)}comparePre(e){if(e instanceof h||(e=new h(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(s("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return c(r,i)}while(++t)}compareBuild(e){e instanceof h||(e=new h(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(s("build compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return c(r,i)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?o[a.PRERELEASELOOSE]:o[a.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+!!Number(r);if(0===this.prerelease.length)this.prerelease=[e];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let s=[t,e];!1===r&&(s=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}
155e.exports=h},96359(e,t,r){var s=r(72312),i=r(91626);e.exports={parse:function(e){var t=s.parse(e.toString());return i.compile(t)}}},98327(e,t,r){"use strict";let s=r(24774);e.exports=(e,t,r)=>s(e,t,r)>=0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.