diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..fabe83a1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +deploy/ +.git/ +.github/ +.DS_Store/ +Dockerfile +.dockerignore +.prettierignore +README* +LICENSE* \ No newline at end of file diff --git a/.yarn/plugins/@ojkelly/plugin-build.cjs b/.yarn/plugins/@ojkelly/plugin-build.cjs new file mode 100644 index 00000000..e89e70e1 --- /dev/null +++ b/.yarn/plugins/@ojkelly/plugin-build.cjs @@ -0,0 +1,163 @@ +/* eslint-disable */ +//prettier-ignore +module.exports = { +name: "@ojkelly/plugin-build", +factory: function (require) { +var plugin=(()=>{var Aa=Object.create,tt=Object.defineProperty,Ra=Object.defineProperties,_a=Object.getOwnPropertyDescriptor,Ea=Object.getOwnPropertyDescriptors,wa=Object.getOwnPropertyNames,xn=Object.getOwnPropertySymbols,Sa=Object.getPrototypeOf,bn=Object.prototype.hasOwnProperty,Ta=Object.prototype.propertyIsEnumerable;var Cn=(e,t,r)=>t in e?tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t)=>{for(var r in t||(t={}))bn.call(t,r)&&Cn(e,r,t[r]);if(xn)for(var r of xn(t))Ta.call(t,r)&&Cn(e,r,t[r]);return e},Y=(e,t)=>Ra(e,Ea(t)),ka=e=>tt(e,"__esModule",{value:!0});var M=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ia=(e,t)=>{for(var r in t)tt(e,r,{get:t[r],enumerable:!0})},La=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wa(t))!bn.call(e,n)&&n!=="default"&&tt(e,n,{get:()=>t[n],enumerable:!(r=_a(t,n))||r.enumerable});return e},$=e=>La(ka(tt(e!=null?Aa(Sa(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var St=R(me=>{"use strict";me.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;me.find=(e,t)=>e.nodes.find(r=>r.type===t);me.exceedsLimit=(e,t,r=1,n)=>n===!1||!me.isInteger(e)||!me.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;me.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};me.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0==0?(e.invalid=!0,!0):!1;me.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0==0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;me.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;me.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);me.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i{"use strict";var vn=St();An.exports=(e,t={})=>{let r=(n,i={})=>{let o=t.escapeInvalid&&vn.isInvalidBrace(i),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(o||s)&&vn.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var _n=R((Kf,Rn)=>{"use strict";Rn.exports=function(e){return typeof e=="number"?e-e==0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Pn=R((Qf,On)=>{"use strict";var En=_n(),Pe=(e,t,r)=>{if(En(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(En(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n=I({relaxZeros:!0},r);typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),o=String(n.shorthand),s=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+o+s+a;if(Pe.cache.hasOwnProperty(u))return Pe.cache[u].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let y=e+"|"+t;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let f=Ln(e)||Ln(t),p={min:e,max:t,a:c,b:l},m=[],x=[];if(f&&(p.isPadded=f,p.maxLen=String(p.max).length),c<0){let y=l<0?Math.abs(l):1;x=wn(y,Math.abs(c),p,n),c=p.a=0}return l>=0&&(m=wn(c,l,p,n)),p.negatives=x,p.positives=m,p.result=Oa(x,m,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&m.length+x.length>1&&(p.result=`(?:${p.result})`),Pe.cache[u]=p,p.result};function Oa(e,t,r){let n=nr(e,t,"-",!1,r)||[],i=nr(t,e,"",!1,r)||[],o=nr(e,t,"-?",!0,r)||[];return n.concat(o).concat(i).join("|")}function Pa(e,t){let r=1,n=1,i=Tn(e,r),o=new Set([t]);for(;e<=i&&i<=t;)o.add(i),r+=1,i=Tn(e,r);for(i=kn(t+1,n)-1;e1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+In(a.count),s=c+1;continue}r.isPadded&&(f=Ma(c,r,n)),l.string=f+l.pattern+In(l.count),o.push(l),s=c+1,a=l}return o}function nr(e,t,r,n,i){let o=[];for(let s of e){let{string:a}=s;!n&&!Sn(t,"string",a)&&o.push(r+a),n&&Sn(t,"string",a)&&o.push(r+a)}return o}function $a(e,t){let r=[];for(let n=0;nt?1:t>e?-1:0}function Sn(e,t,r){return e.some(n=>n[t]===r)}function Tn(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function kn(e,t){return e-e%Math.pow(10,t)}function In(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Da(e,t,r){return`[${e}${t-e==1?"":"-"}${t}]`}function Ln(e){return/^-?(0+)\d/.test(e)}function Ma(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Pe.cache={};Pe.clearCache=()=>Pe.cache={};On.exports=Pe});var sr=R((zf,qn)=>{"use strict";var Ha=M("util"),Nn=Pn(),$n=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ba=e=>t=>e===!0?Number(t):String(t),ir=e=>typeof e=="number"||typeof e=="string"&&e!=="",rt=e=>Number.isInteger(+e),or=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},qa=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Ua=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Fn=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length{e.negatives.sort((s,a)=>sa?1:0),e.positives.sort((s,a)=>sa?1:0);let r=t.capture?"":"?:",n="",i="",o;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?o=`${n}|${i}`:o=n||i,t.wrap?`(${r}${o})`:o},Dn=(e,t,r,n)=>{if(r)return Nn(e,t,I({wrap:!1},n));let i=String.fromCharCode(e);if(e===t)return i;let o=String.fromCharCode(t);return`[${i}-${o}]`},Mn=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Nn(e,t,r)},Hn=(...e)=>new RangeError("Invalid range arguments: "+Ha.inspect(...e)),Bn=(e,t,r)=>{if(r.strictRanges===!0)throw Hn([e,t]);return[]},Wa=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Ga=(e,t,r=1,n={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(n.strictRanges===!0)throw Hn([e,t]);return[]}i===0&&(i=0),o===0&&(o=0);let s=i>o,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=or(a)||or(u)||or(c),f=l?Math.max(a.length,u.length,c.length):0,p=l===!1&&qa(e,t,n)===!1,m=n.transform||Ba(p);if(n.toRegex&&r===1)return Dn(Fn(e,f),Fn(t,f),!0,n);let x={negatives:[],positives:[]},y=v=>x[v<0?"negatives":"positives"].push(Math.abs(v)),C=[],w=0;for(;s?i>=o:i<=o;)n.toRegex===!0&&r>1?y(i):C.push(Ua(m(i,w),f,p)),i=s?i-r:i+r,w++;return n.toRegex===!0?r>1?ja(x,n):Mn(C,null,I({wrap:!1},n)):C},Ya=(e,t,r=1,n={})=>{if(!rt(e)&&e.length>1||!rt(t)&&t.length>1)return Bn(e,t,n);let i=n.transform||(p=>String.fromCharCode(p)),o=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=o>s,u=Math.min(o,s),c=Math.max(o,s);if(n.toRegex&&r===1)return Dn(u,c,!1,n);let l=[],f=0;for(;a?o>=s:o<=s;)l.push(i(o,f)),o=a?o-r:o+r,f++;return n.toRegex===!0?Mn(l,null,{wrap:!1,options:n}):l},kt=(e,t,r,n={})=>{if(t==null&&ir(e))return[e];if(!ir(e)||!ir(t))return Bn(e,t,n);if(typeof r=="function")return kt(e,t,1,{transform:r});if($n(r))return kt(e,t,0,r);let i=I({},n);return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,rt(r)?rt(e)&&rt(t)?Ga(e,t,r,i):Ya(e,t,Math.max(Math.abs(r),1),i):r!=null&&!$n(r)?Wa(r,i):kt(e,t,1,r)};qn.exports=kt});var Wn=R((Xf,jn)=>{"use strict";var Ka=sr(),Un=St(),Qa=(e,t={})=>{let r=(n,i={})=>{let o=Un.isInvalidBrace(i),s=n.invalid===!0&&t.escapeInvalid===!0,a=o===!0||s===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Un.reduce(n.nodes),f=Ka(...l,Y(I({},t),{wrap:!1,toRegex:!0}));if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(e)};jn.exports=Qa});var Kn=R((Zf,Yn)=>{"use strict";var za=sr(),Gn=Tt(),Be=St(),Ne=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Be.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let o of i)n.push(Ne(o,t,r));else for(let o of t)r===!0&&typeof o=="string"&&(o=`{${o}}`),n.push(Array.isArray(o)?Ne(i,o,r):i+o);return Be.flatten(n)},Xa=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,o={})=>{i.queue=[];let s=o,a=o.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(i.invalid||i.dollar){a.push(Ne(a.pop(),Gn(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Ne(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=Be.reduce(i.nodes);if(Be.exceedsLimit(...f,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=za(...f,t);p.length===0&&(p=Gn(i,t)),a.push(Ne(a.pop(),p)),i.nodes=[];return}let u=Be.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f{"use strict";Qn.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:` +`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var ei=R((Jf,Jn)=>{"use strict";var Za=Tt(),{MAX_LENGTH:Xn,CHAR_BACKSLASH:ar,CHAR_BACKTICK:Va,CHAR_COMMA:Ja,CHAR_DOT:eu,CHAR_LEFT_PARENTHESES:tu,CHAR_RIGHT_PARENTHESES:ru,CHAR_LEFT_CURLY_BRACE:nu,CHAR_RIGHT_CURLY_BRACE:iu,CHAR_LEFT_SQUARE_BRACKET:Zn,CHAR_RIGHT_SQUARE_BRACKET:Vn,CHAR_DOUBLE_QUOTE:ou,CHAR_SINGLE_QUOTE:su,CHAR_NO_BREAK_SPACE:au,CHAR_ZERO_WIDTH_NOBREAK_SPACE:uu}=zn(),lu=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Xn,r.maxLength):Xn;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},o=[i],s=i,a=i,u=0,c=e.length,l=0,f=0,p,m={},x=()=>e[l++],y=C=>{if(C.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&C.type==="text"){a.value+=C.value;return}return s.nodes.push(C),C.parent=s,C.prev=a,a=C,C};for(y({type:"bos"});l0){if(s.ranges>0){s.ranges=0;let C=s.nodes.shift();s.nodes=[C,{type:"text",value:Za(s)}]}y({type:"comma",value:p}),s.commas++;continue}if(p===eu&&f>0&&s.commas===0){let C=s.nodes;if(f===0||C.length===0){y({type:"text",value:p});continue}if(a.type==="dot"){if(s.range=[],a.value+=p,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){C.pop();let w=C[C.length-1];w.value+=a.value+p,a=w,s.ranges--;continue}y({type:"dot",value:p});continue}y({type:"text",value:p})}do if(s=o.pop(),s.type!=="root"){s.nodes.forEach(v=>{v.nodes||(v.type==="open"&&(v.isOpen=!0),v.type==="close"&&(v.isClose=!0),v.nodes||(v.type="text"),v.invalid=!0)});let C=o[o.length-1],w=C.nodes.indexOf(s);C.nodes.splice(w,1,...s.nodes)}while(o.length>0);return y({type:"eos"}),i};Jn.exports=lu});var ni=R((ep,ri)=>{"use strict";var ti=Tt(),cu=Wn(),fu=Kn(),pu=ei(),fe=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=fe.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(fe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};fe.parse=(e,t={})=>pu(e,t);fe.stringify=(e,t={})=>typeof e=="string"?ti(fe.parse(e,t),t):ti(e,t);fe.compile=(e,t={})=>(typeof e=="string"&&(e=fe.parse(e,t)),cu(e,t));fe.expand=(e,t={})=>{typeof e=="string"&&(e=fe.parse(e,t));let r=fu(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};fe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?fe.compile(e,t):fe.expand(e,t);ri.exports=fe});var nt=R((tp,ui)=>{"use strict";var hu=M("path"),Ae="\\\\/",ii=`[^${Ae}]`,Se="\\.",du="\\+",mu="\\?",It="\\/",gu="(?=.)",oi="[^/]",ur=`(?:${It}|$)`,si=`(?:^|${It})`,lr=`${Se}{1,2}${ur}`,yu=`(?!${Se})`,xu=`(?!${si}${lr})`,bu=`(?!${Se}{0,1}${ur})`,Cu=`(?!${lr})`,vu=`[^.${It}]`,Au=`${oi}*?`,ai={DOT_LITERAL:Se,PLUS_LITERAL:du,QMARK_LITERAL:mu,SLASH_LITERAL:It,ONE_CHAR:gu,QMARK:oi,END_ANCHOR:ur,DOTS_SLASH:lr,NO_DOT:yu,NO_DOTS:xu,NO_DOT_SLASH:bu,NO_DOTS_SLASH:Cu,QMARK_NO_DOT:vu,STAR:Au,START_ANCHOR:si},Ru=Y(I({},ai),{SLASH_LITERAL:`[${Ae}]`,QMARK:ii,STAR:`${ii}*?`,DOTS_SLASH:`${Se}{1,2}(?:[${Ae}]|$)`,NO_DOT:`(?!${Se})`,NO_DOTS:`(?!(?:^|[${Ae}])${Se}{1,2}(?:[${Ae}]|$))`,NO_DOT_SLASH:`(?!${Se}{0,1}(?:[${Ae}]|$))`,NO_DOTS_SLASH:`(?!${Se}{1,2}(?:[${Ae}]|$))`,QMARK_NO_DOT:`[^.${Ae}]`,START_ANCHOR:`(?:^|[${Ae}])`,END_ANCHOR:`(?:[${Ae}]|$)`}),_u={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};ui.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:_u,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:hu.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Ru:ai}}});var it=R(ue=>{"use strict";var Eu=M("path"),wu=process.platform==="win32",{REGEX_BACKSLASH:Su,REGEX_REMOVE_BACKSLASH:Tu,REGEX_SPECIAL_CHARS:ku,REGEX_SPECIAL_CHARS_GLOBAL:Iu}=nt();ue.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ue.hasRegexChars=e=>ku.test(e);ue.isRegexChar=e=>e.length===1&&ue.hasRegexChars(e);ue.escapeRegex=e=>e.replace(Iu,"\\$1");ue.toPosixSlashes=e=>e.replace(Su,"/");ue.removeBackslashes=e=>e.replace(Tu,t=>t==="\\"?"":t);ue.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ue.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:wu===!0||Eu.sep==="\\";ue.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ue.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ue.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ue.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",o=`${n}(?:${e})${i}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var gi=R((np,mi)=>{"use strict";var li=it(),{CHAR_ASTERISK:cr,CHAR_AT:Lu,CHAR_BACKWARD_SLASH:ot,CHAR_COMMA:Ou,CHAR_DOT:fr,CHAR_EXCLAMATION_MARK:pr,CHAR_FORWARD_SLASH:ci,CHAR_LEFT_CURLY_BRACE:hr,CHAR_LEFT_PARENTHESES:dr,CHAR_LEFT_SQUARE_BRACKET:Pu,CHAR_PLUS:Nu,CHAR_QUESTION_MARK:fi,CHAR_RIGHT_CURLY_BRACE:$u,CHAR_RIGHT_PARENTHESES:pi,CHAR_RIGHT_SQUARE_BRACKET:Fu}=nt(),hi=e=>e===ci||e===ot,di=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?Infinity:1)},Du=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,o=[],s=[],a=[],u=e,c=-1,l=0,f=0,p=!1,m=!1,x=!1,y=!1,C=!1,w=!1,v=!1,P=!1,te=!1,D=!1,ae=0,H,T,_={value:"",depth:0,isGlob:!1},Q=()=>c>=n,g=()=>u.charCodeAt(c+1),U=()=>(H=T,u.charCodeAt(++c));for(;c0&&(ke=u.slice(0,l),u=u.slice(l),f-=l),B&&x===!0&&f>0?(B=u.slice(0,f),h=u.slice(f)):x===!0?(B="",h=u):B=u,B&&B!==""&&B!=="/"&&B!==u&&hi(B.charCodeAt(B.length-1))&&(B=B.slice(0,-1)),r.unescape===!0&&(h&&(h=li.removeBackslashes(h)),B&&v===!0&&(B=li.removeBackslashes(B)));let d={prefix:ke,input:e,start:l,base:B,glob:h,isBrace:p,isBracket:m,isGlob:x,isExtglob:y,isGlobstar:C,negated:P,negatedExtglob:te};if(r.tokens===!0&&(d.maxDepth=0,hi(T)||s.push(_),d.tokens=s),r.parts===!0||r.tokens===!0){let re;for(let N=0;N{"use strict";var Lt=nt(),pe=it(),{MAX_LENGTH:Ot,POSIX_REGEX_SOURCE:Mu,REGEX_NON_SPECIAL_CHARS:Hu,REGEX_SPECIAL_CHARS_BACKREF:Bu,REPLACEMENTS:yi}=Lt,qu=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(i=>pe.escapeRegex(i)).join("..")}return r},qe=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,xi=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=yi[e]||e;let r=I({},t),n=typeof r.maxLength=="number"?Math.min(Ot,r.maxLength):Ot,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let o={type:"bos",value:"",output:r.prepend||""},s=[o],a=r.capture?"":"?:",u=pe.isWindows(t),c=Lt.globChars(u),l=Lt.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:m,ONE_CHAR:x,DOTS_SLASH:y,NO_DOT:C,NO_DOT_SLASH:w,NO_DOTS_SLASH:v,QMARK:P,QMARK_NO_DOT:te,STAR:D,START_ANCHOR:ae}=c,H=A=>`(${a}(?:(?!${ae}${A.dot?y:f}).)*?)`,T=r.dot?"":C,_=r.dot?P:te,Q=r.bash===!0?H(r):D;r.capture&&(Q=`(${Q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let g={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=pe.removePrefix(e,g),i=e.length;let U=[],B=[],ke=[],h=o,d,re=()=>g.index===i-1,N=g.peek=(A=1)=>e[g.index+A],Ce=g.advance=()=>e[++g.index]||"",ve=()=>e.slice(g.index+1),ce=(A="",q=0)=>{g.consumed+=A,g.index+=q},Rt=A=>{g.output+=A.output!=null?A.output:A.value,ce(A.value)},Ca=()=>{let A=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)Ce(),g.start++,A++;return A%2==0?!1:(g.negated=!0,g.start++,!0)},_t=A=>{g[A]++,ke.push(A)},Oe=A=>{g[A]--,ke.pop()},O=A=>{if(h.type==="globstar"){let q=g.braces>0&&(A.type==="comma"||A.type==="brace"),b=A.extglob===!0||U.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!q&&!b&&(g.output=g.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=Q,g.output+=h.output)}if(U.length&&A.type!=="paren"&&(U[U.length-1].inner+=A.value),(A.value||A.output)&&Rt(A),h&&h.type==="text"&&A.type==="text"){h.value+=A.value,h.output=(h.output||"")+A.value;return}A.prev=h,s.push(A),h=A},Et=(A,q)=>{let b=Y(I({},l[q]),{conditions:1,inner:""});b.prev=h,b.parens=g.parens,b.output=g.output;let L=(r.capture?"(":"")+b.open;_t("parens"),O({type:A,value:q,output:g.output?"":x}),O({type:"paren",extglob:!0,value:Ce(),output:L}),U.push(b)},va=A=>{let q=A.close+(r.capture?")":""),b;if(A.type==="negate"){let L=Q;A.inner&&A.inner.length>1&&A.inner.includes("/")&&(L=H(r)),(L!==Q||re()||/^\)+$/.test(ve()))&&(q=A.close=`)$))${L}`),A.inner.includes("*")&&(b=ve())&&/^\.[^\\/.]+$/.test(b)&&(q=A.close=`)${b})${L})`),A.prev.type==="bos"&&(g.negatedExtglob=!0)}O({type:"paren",extglob:!0,value:d,output:q}),Oe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let A=!1,q=e.replace(Bu,(b,L,G,ne,X,rr)=>ne==="\\"?(A=!0,b):ne==="?"?L?L+ne+(X?P.repeat(X.length):""):rr===0?_+(X?P.repeat(X.length):""):P.repeat(G.length):ne==="."?f.repeat(G.length):ne==="*"?L?L+ne+(X?Q:""):Q:L?b:`\\${b}`);return A===!0&&(r.unescape===!0?q=q.replace(/\\/g,""):q=q.replace(/\\+/g,b=>b.length%2==0?"\\\\":b?"\\":"")),q===e&&r.contains===!0?(g.output=e,g):(g.output=pe.wrapOutput(q,g,t),g)}for(;!re();){if(d=Ce(),d==="\0")continue;if(d==="\\"){let b=N();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){d+="\\",O({type:"text",value:d});continue}let L=/^\\+/.exec(ve()),G=0;if(L&&L[0].length>2&&(G=L[0].length,g.index+=G,G%2!=0&&(d+="\\")),r.unescape===!0?d=Ce():d+=Ce(),g.brackets===0){O({type:"text",value:d});continue}}if(g.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(r.posix!==!1&&d===":"){let b=h.value.slice(1);if(b.includes("[")&&(h.posix=!0,b.includes(":"))){let L=h.value.lastIndexOf("["),G=h.value.slice(0,L),ne=h.value.slice(L+2),X=Mu[ne];if(X){h.value=G+X,g.backtrack=!0,Ce(),!o.output&&s.indexOf(h)===1&&(o.output=x);continue}}}(d==="["&&N()!==":"||d==="-"&&N()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),r.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,Rt({value:d});continue}if(g.quotes===1&&d!=='"'){d=pe.escapeRegex(d),h.value+=d,Rt({value:d});continue}if(d==='"'){g.quotes=g.quotes===1?0:1,r.keepQuotes===!0&&O({type:"text",value:d});continue}if(d==="("){_t("parens"),O({type:"paren",value:d});continue}if(d===")"){if(g.parens===0&&r.strictBrackets===!0)throw new SyntaxError(qe("opening","("));let b=U[U.length-1];if(b&&g.parens===b.parens+1){va(U.pop());continue}O({type:"paren",value:d,output:g.parens?")":"\\)"}),Oe("parens");continue}if(d==="["){if(r.nobracket===!0||!ve().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(qe("closing","]"));d=`\\${d}`}else _t("brackets");O({type:"bracket",value:d});continue}if(d==="]"){if(r.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){O({type:"text",value:d,output:`\\${d}`});continue}if(g.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(qe("opening","["));O({type:"text",value:d,output:`\\${d}`});continue}Oe("brackets");let b=h.value.slice(1);if(h.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(d=`/${d}`),h.value+=d,Rt({value:d}),r.literalBrackets===!1||pe.hasRegexChars(b))continue;let L=pe.escapeRegex(h.value);if(g.output=g.output.slice(0,-h.value.length),r.literalBrackets===!0){g.output+=L,h.value=L;continue}h.value=`(${a}${L}|${h.value})`,g.output+=h.value;continue}if(d==="{"&&r.nobrace!==!0){_t("braces");let b={type:"brace",value:d,output:"(",outputIndex:g.output.length,tokensIndex:g.tokens.length};B.push(b),O(b);continue}if(d==="}"){let b=B[B.length-1];if(r.nobrace===!0||!b){O({type:"text",value:d,output:d});continue}let L=")";if(b.dots===!0){let G=s.slice(),ne=[];for(let X=G.length-1;X>=0&&(s.pop(),G[X].type!=="brace");X--)G[X].type!=="dots"&&ne.unshift(G[X].value);L=qu(ne,r),g.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let G=g.output.slice(0,b.outputIndex),ne=g.tokens.slice(b.tokensIndex);b.value=b.output="\\{",d=L="\\}",g.output=G;for(let X of ne)g.output+=X.output||X.value}O({type:"brace",value:d,output:L}),Oe("braces"),B.pop();continue}if(d==="|"){U.length>0&&U[U.length-1].conditions++,O({type:"text",value:d});continue}if(d===","){let b=d,L=B[B.length-1];L&&ke[ke.length-1]==="braces"&&(L.comma=!0,b="|"),O({type:"comma",value:d,output:b});continue}if(d==="/"){if(h.type==="dot"&&g.index===g.start+1){g.start=g.index+1,g.consumed="",g.output="",s.pop(),h=o;continue}O({type:"slash",value:d,output:m});continue}if(d==="."){if(g.braces>0&&h.type==="dot"){h.value==="."&&(h.output=f);let b=B[B.length-1];h.type="dots",h.output+=d,h.value+=d,b.dots=!0;continue}if(g.braces+g.parens===0&&h.type!=="bos"&&h.type!=="slash"){O({type:"text",value:d,output:f});continue}O({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(h&&h.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Et("qmark",d);continue}if(h&&h.type==="paren"){let L=N(),G=d;if(L==="<"&&!pe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(L)||L==="<"&&!/<([!=]|\w+>)/.test(ve()))&&(G=`\\${d}`),O({type:"text",value:d,output:G});continue}if(r.dot!==!0&&(h.type==="slash"||h.type==="bos")){O({type:"qmark",value:d,output:te});continue}O({type:"qmark",value:d,output:P});continue}if(d==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){Et("negate",d);continue}if(r.nonegate!==!0&&g.index===0){Ca();continue}}if(d==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Et("plus",d);continue}if(h&&h.value==="("||r.regex===!1){O({type:"plus",value:d,output:p});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||g.parens>0){O({type:"plus",value:d});continue}O({type:"plus",value:p});continue}if(d==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){O({type:"at",extglob:!0,value:d,output:""});continue}O({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);let b=Hu.exec(ve());b&&(d+=b[0],g.index+=b[0].length),O({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=Q,g.backtrack=!0,g.globstar=!0,ce(d);continue}let A=ve();if(r.noextglob!==!0&&/^\([^?]/.test(A)){Et("star",d);continue}if(h.type==="star"){if(r.noglobstar===!0){ce(d);continue}let b=h.prev,L=b.prev,G=b.type==="slash"||b.type==="bos",ne=L&&(L.type==="star"||L.type==="globstar");if(r.bash===!0&&(!G||A[0]&&A[0]!=="/")){O({type:"star",value:d,output:""});continue}let X=g.braces>0&&(b.type==="comma"||b.type==="brace"),rr=U.length&&(b.type==="pipe"||b.type==="paren");if(!G&&b.type!=="paren"&&!X&&!rr){O({type:"star",value:d,output:""});continue}for(;A.slice(0,3)==="/**";){let wt=e[g.index+4];if(wt&&wt!=="/")break;A=A.slice(3),ce("/**",3)}if(b.type==="bos"&&re()){h.type="globstar",h.value+=d,h.output=H(r),g.output=h.output,g.globstar=!0,ce(d);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!ne&&re()){g.output=g.output.slice(0,-(b.output+h.output).length),b.output=`(?:${b.output}`,h.type="globstar",h.output=H(r)+(r.strictSlashes?")":"|$)"),h.value+=d,g.globstar=!0,g.output+=b.output+h.output,ce(d);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&A[0]==="/"){let wt=A[1]!==void 0?"|$":"";g.output=g.output.slice(0,-(b.output+h.output).length),b.output=`(?:${b.output}`,h.type="globstar",h.output=`${H(r)}${m}|${m}${wt})`,h.value+=d,g.output+=b.output+h.output,g.globstar=!0,ce(d+Ce()),O({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&A[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${m}|${H(r)}${m})`,g.output=h.output,g.globstar=!0,ce(d+Ce()),O({type:"slash",value:"/",output:""});continue}g.output=g.output.slice(0,-h.output.length),h.type="globstar",h.output=H(r),h.value+=d,g.output+=h.output,g.globstar=!0,ce(d);continue}let q={type:"star",value:d,output:Q};if(r.bash===!0){q.output=".*?",(h.type==="bos"||h.type==="slash")&&(q.output=T+q.output),O(q);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&r.regex===!0){q.output=d,O(q);continue}(g.index===g.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(g.output+=w,h.output+=w):r.dot===!0?(g.output+=v,h.output+=v):(g.output+=T,h.output+=T),N()!=="*"&&(g.output+=x,h.output+=x)),O(q)}for(;g.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(qe("closing","]"));g.output=pe.escapeLast(g.output,"["),Oe("brackets")}for(;g.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(qe("closing",")"));g.output=pe.escapeLast(g.output,"("),Oe("parens")}for(;g.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(qe("closing","}"));g.output=pe.escapeLast(g.output,"{"),Oe("braces")}if(r.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&O({type:"maybe_slash",value:"",output:`${m}?`}),g.backtrack===!0){g.output="";for(let A of g.tokens)g.output+=A.output!=null?A.output:A.value,A.suffix&&(g.output+=A.suffix)}return g};xi.fastpaths=(e,t)=>{let r=I({},t),n=typeof r.maxLength=="number"?Math.min(Ot,r.maxLength):Ot,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=yi[e]||e;let o=pe.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:m,START_ANCHOR:x}=Lt.globChars(o),y=r.dot?f:l,C=r.dot?p:l,w=r.capture?"":"?:",v={negated:!1,prefix:""},P=r.bash===!0?".*?":m;r.capture&&(P=`(${P})`);let te=T=>T.noglobstar===!0?P:`(${w}(?:(?!${x}${T.dot?c:s}).)*?)`,D=T=>{switch(T){case"*":return`${y}${u}${P}`;case".*":return`${s}${u}${P}`;case"*.*":return`${y}${P}${s}${u}${P}`;case"*/*":return`${y}${P}${a}${u}${C}${P}`;case"**":return y+te(r);case"**/*":return`(?:${y}${te(r)}${a})?${C}${u}${P}`;case"**/*.*":return`(?:${y}${te(r)}${a})?${C}${P}${s}${u}${P}`;case"**/.*":return`(?:${y}${te(r)}${a})?${s}${u}${P}`;default:{let _=/^(.*?)\.(\w+)$/.exec(T);if(!_)return;let Q=D(_[1]);return Q?Q+s+_[2]:void 0}}},ae=pe.removePrefix(e,v),H=D(ae);return H&&r.strictSlashes!==!0&&(H+=`${a}?`),H};bi.exports=xi});var Ai=R((op,vi)=>{"use strict";var Uu=M("path"),ju=gi(),mr=Ci(),gr=it(),Wu=nt(),Gu=e=>e&&typeof e=="object"&&!Array.isArray(e),K=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(p=>K(p,t,r));return p=>{for(let m of l){let x=m(p);if(x)return x}return!1}}let n=Gu(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},o=gr.isWindows(t),s=n?K.compileRe(e,t):K.makeRe(e,t,!1,!0),a=s.state;delete s.state;let u=()=>!1;if(i.ignore){let l=Y(I({},t),{ignore:null,onMatch:null,onResult:null});u=K(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:p,match:m,output:x}=K.test(l,s,t,{glob:e,posix:o}),y={glob:e,state:a,regex:s,posix:o,input:l,output:x,match:m,isMatch:p};return typeof i.onResult=="function"&&i.onResult(y),p===!1?(y.isMatch=!1,f?y:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,f?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),f?y:!0)};return r&&(c.state=a),c};K.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let o=r||{},s=o.format||(i?gr.toPosixSlashes:null),a=e===n,u=a&&s?s(e):e;return a===!1&&(u=s?s(e):e,a=u===n),(a===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?a=K.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:Boolean(a),match:a,output:u}};K.matchBase=(e,t,r,n=gr.isWindows(r))=>(t instanceof RegExp?t:K.makeRe(t,r)).test(Uu.basename(e));K.isMatch=(e,t,r)=>K(t,r)(e);K.parse=(e,t)=>Array.isArray(e)?e.map(r=>K.parse(r,t)):mr(e,Y(I({},t),{fastpaths:!1}));K.scan=(e,t)=>ju(e,t);K.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},o=i.contains?"":"^",s=i.contains?"":"$",a=`${o}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=K.toRegex(a,t);return n===!0&&(u.state=e),u};K.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=mr.fastpaths(e,t)),i.output||(i=mr(e,t)),K.compileRe(i,t,r,n)};K.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};K.constants=Wu;vi.exports=K});var _i=R((sp,Ri)=>{"use strict";Ri.exports=Ai()});var xr=R((ap,Ti)=>{"use strict";var Ei=M("util"),wi=ni(),Re=_i(),yr=it(),Si=e=>e===""||e==="./",j=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,o=new Set,s=0,a=l=>{o.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return c};j.match=j;j.matcher=(e,t)=>Re(e,t);j.isMatch=(e,t,r)=>Re(t,r)(e);j.any=j.isMatch;j.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],o=a=>{r.onResult&&r.onResult(a),i.push(a.output)},s=j(e,t,Y(I({},r),{onResult:o}));for(let a of i)s.includes(a)||n.add(a);return[...n]};j.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ei.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>j.contains(e,n,r));if(typeof t=="string"){if(Si(e)||Si(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return j.isMatch(e,t,Y(I({},r),{contains:!0}))};j.matchKeys=(e,t,r)=>{if(!yr.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=j(Object.keys(e),t,r),i={};for(let o of n)i[o]=e[o];return i};j.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let o=Re(String(i),r);if(n.some(s=>o(s)))return!0}return!1};j.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let o=Re(String(i),r);if(!n.every(s=>o(s)))return!1}return!0};j.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ei.inspect(e)}"`);return[].concat(t).every(n=>Re(n,r)(e))};j.capture=(e,t,r)=>{let n=yr.isWindows(r),o=Re.makeRe(String(e),Y(I({},r),{capture:!0})).exec(n?yr.toPosixSlashes(t):t);if(o)return o.slice(1).map(s=>s===void 0?"":s)};j.makeRe=(...e)=>Re.makeRe(...e);j.scan=(...e)=>Re.scan(...e);j.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of wi(String(n),t))r.push(Re.parse(i,t));return r};j.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:wi(e,t)};j.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return j.braces(e,Y(I({},t),{expand:!0}))};Ti.exports=j});var Ue=R((up,$e)=>{"use strict";function ki(e){return typeof e=="undefined"||e===null}function Yu(e){return typeof e=="object"&&e!==null}function Ku(e){return Array.isArray(e)?e:ki(e)?[]:[e]}function Qu(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r{"use strict";function Ii(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=` + +`+e.mark.snippet),n+" "+r):n}function st(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ii(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}st.prototype=Object.create(Error.prototype);st.prototype.constructor=st;st.prototype.toString=function(t){return this.name+": "+Ii(this,t)};Li.exports=st});var Pi=R((cp,Oi)=>{"use strict";var at=Ue();function br(e,t,r,n,i){var o="",s="",a=Math.floor(i/2)-1;return n-t>a&&(o=" ... ",t=n-a+o.length),r-n>a&&(s=" ...",r=n+a-s.length),{str:o+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+o.length}}function Cr(e,t){return at.repeat(" ",t-e.length)+e}function Zu(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],o,s=-1;o=r.exec(e.buffer);)i.push(o.index),n.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var a="",u,c,l=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)c=br(e.buffer,n[s-u],i[s-u],e.position-(n[s]-n[s-u]),f),a=at.repeat(" ",t.indent)+Cr((e.line-u+1).toString(),l)+" | "+c.str+` +`+a;for(c=br(e.buffer,n[s],i[s],e.position,f),a+=at.repeat(" ",t.indent)+Cr((e.line+1).toString(),l)+" | "+c.str+` +`,a+=at.repeat("-",t.indent+l+3+c.pos)+`^ +`,u=1;u<=t.linesAfter&&!(s+u>=i.length);u++)c=br(e.buffer,n[s+u],i[s+u],e.position-(n[s]-n[s+u]),f),a+=at.repeat(" ",t.indent)+Cr((e.line+u+1).toString(),l)+" | "+c.str+` +`;return a.replace(/\n$/,"")}Oi.exports=Zu});var V=R((fp,$i)=>{"use strict";var Ni=je(),Vu=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ju=["scalar","sequence","mapping"];function el(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function tl(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Vu.indexOf(r)===-1)throw new Ni('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=el(t.styleAliases||null),Ju.indexOf(this.kind)===-1)throw new Ni('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}$i.exports=tl});var Rr=R((pp,Di)=>{"use strict";var ut=je(),vr=V();function Fi(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(o,s){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(i=s)}),r[i]=n}),r}function rl(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t{"use strict";var nl=V();Mi.exports=new nl("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Er=R((dp,Hi)=>{"use strict";var il=V();Hi.exports=new il("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var wr=R((mp,Bi)=>{"use strict";var ol=V();Bi.exports=new ol("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Sr=R((gp,qi)=>{"use strict";var sl=Rr();qi.exports=new sl({explicit:[_r(),Er(),wr()]})});var Tr=R((yp,Ui)=>{"use strict";var al=V();function ul(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function ll(){return null}function cl(e){return e===null}Ui.exports=new al("tag:yaml.org,2002:null",{kind:"scalar",resolve:ul,construct:ll,predicate:cl,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var kr=R((xp,ji)=>{"use strict";var fl=V();function pl(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function hl(e){return e==="true"||e==="True"||e==="TRUE"}function dl(e){return Object.prototype.toString.call(e)==="[object Boolean]"}ji.exports=new fl("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pl,construct:hl,predicate:dl,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Ir=R((bp,Wi)=>{"use strict";var ml=Ue(),gl=V();function yl(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function xl(e){return 48<=e&&e<=55}function bl(e){return 48<=e&&e<=57}function Cl(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Lr=R((Cp,Yi)=>{"use strict";var Gi=Ue(),Rl=V(),_l=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function El(e){return!(e===null||!_l.test(e)||e[e.length-1]==="_")}function wl(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var Sl=/^[-+]?[0-9]+e/;function Tl(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Gi.isNegativeZero(e))return"-0.0";return r=e.toString(10),Sl.test(r)?r.replace("e",".e"):r}function kl(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!=0||Gi.isNegativeZero(e))}Yi.exports=new Rl("tag:yaml.org,2002:float",{kind:"scalar",resolve:El,construct:wl,predicate:kl,represent:Tl,defaultStyle:"lowercase"})});var Or=R((vp,Ki)=>{"use strict";Ki.exports=Sr().extend({implicit:[Tr(),kr(),Ir(),Lr()]})});var Pr=R((Ap,Qi)=>{"use strict";Qi.exports=Or()});var Nr=R((Rp,Zi)=>{"use strict";var Il=V(),zi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Xi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ll(e){return e===null?!1:zi.exec(e)!==null||Xi.exec(e)!==null}function Ol(e){var t,r,n,i,o,s,a,u=0,c=null,l,f,p;if(t=zi.exec(e),t===null&&(t=Xi.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=+t[10],f=+(t[11]||0),c=(l*60+f)*6e4,t[9]==="-"&&(c=-c)),p=new Date(Date.UTC(r,n,i,o,s,a,u)),c&&p.setTime(p.getTime()-c),p}function Pl(e){return e.toISOString()}Zi.exports=new Il("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ll,construct:Ol,instanceOf:Date,represent:Pl})});var $r=R((_p,Vi)=>{"use strict";var Nl=V();function $l(e){return e==="<<"||e===null}Vi.exports=new Nl("tag:yaml.org,2002:merge",{kind:"scalar",resolve:$l})});var Dr=R((Ep,Ji)=>{"use strict";var Fl=V(),Fr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function Dl(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Fr;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8==0}function Ml(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Fr,s=0,a=[];for(t=0;t>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),new Uint8Array(a)}function Hl(e){var t="",r=0,n,i,o=e.length,s=Fr;for(n=0;n>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function Bl(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}Ji.exports=new Fl("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Dl,construct:Ml,predicate:Bl,represent:Hl})});var Mr=R((wp,eo)=>{"use strict";var ql=V(),Ul=Object.prototype.hasOwnProperty,jl=Object.prototype.toString;function Wl(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r{"use strict";var Yl=V(),Kl=Object.prototype.toString;function Ql(e){if(e===null)return!0;var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t{"use strict";var Xl=V(),Zl=Object.prototype.hasOwnProperty;function Vl(e){if(e===null)return!0;var t,r=e;for(t in r)if(Zl.call(r,t)&&r[t]!==null)return!1;return!0}function Jl(e){return e!==null?e:{}}ro.exports=new Xl("tag:yaml.org,2002:set",{kind:"mapping",resolve:Vl,construct:Jl})});var Pt=R((kp,no)=>{"use strict";no.exports=Pr().extend({implicit:[Nr(),$r()],explicit:[Dr(),Mr(),Hr(),Br()]})});var Co=R((Ip,Wr)=>{"use strict";var Fe=Ue(),io=je(),ec=Pi(),tc=Pt(),Ie=Object.prototype.hasOwnProperty,Nt=1,oo=2,so=3,$t=4,qr=1,rc=2,ao=3,nc=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ic=/[\x85\u2028\u2029]/,oc=/[,\[\]\{\}]/,uo=/^(?:!|!!|![a-z\-]+!)$/i,lo=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function co(e){return Object.prototype.toString.call(e)}function _e(e){return e===10||e===13}function De(e){return e===9||e===32}function le(e){return e===9||e===32||e===10||e===13}function We(e){return e===44||e===91||e===93||e===123||e===125}function sc(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function ac(e){return e===120?2:e===117?4:e===85?8:0}function uc(e){return 48<=e&&e<=57?e-48:-1}function fo(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` +`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function lc(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var po=new Array(256),ho=new Array(256);for(var Ge=0;Ge<256;Ge++)po[Ge]=fo(Ge)?1:0,ho[Ge]=fo(Ge);function cc(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tc,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function mo(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=ec(r),new io(t,r)}function S(e,t){throw mo(e,t)}function Ft(e,t){e.onWarning&&e.onWarning.call(null,mo(e,t))}var go={YAML:function(t,r,n){var i,o,s;t.version!==null&&S(t,"duplication of %YAML directive"),n.length!==1&&S(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&S(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&S(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Ft(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&S(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],uo.test(i)||S(t,"ill-formed tag handle (first argument) of the TAG directive"),Ie.call(t.tagMap,i)&&S(t,'there is a previously declared suffix for "'+i+'" tag handle'),lo.test(o)||S(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(s){S(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function Le(e,t,r,n){var i,o,s,a;if(t1&&(e.result+=Fe.repeat(` +`,t-1))}function fc(e,t,r){var n,i,o,s,a,u,c,l,f=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),le(m)||We(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),le(i)||r&&We(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),le(i)||r&&We(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),le(n))break}else{if(e.position===e.lineStart&&Dt(e)||r&&We(m))break;if(_e(m))if(u=e.line,c=e.lineStart,l=e.lineIndent,z(e,!1,-1),e.lineIndent>=t){a=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=c,e.lineIndent=l;break}}a&&(Le(e,o,s,!1),jr(e,e.line-u),o=s=e.position,a=!1),De(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Le(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function pc(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Le(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else _e(r)?(Le(e,n,i,!0),jr(e,z(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Dt(e)?S(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);S(e,"unexpected end of the stream within a single quoted scalar")}function hc(e,t){var r,n,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Le(e,r,e.position,!0),e.position++,!0;if(a===92){if(Le(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),_e(a))z(e,!1,t);else if(a<256&&po[a])e.result+=ho[a],e.position++;else if((s=ac(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=sc(a))>=0?o=(o<<4)+s:S(e,"expected hexadecimal character");e.result+=lc(o),e.position++}else S(e,"unknown escape sequence");r=n=e.position}else _e(a)?(Le(e,r,n,!0),jr(e,z(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Dt(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}S(e,"unexpected end of the stream within a double quoted scalar")}function dc(e,t){var r=!0,n,i,o,s=e.tag,a,u=e.anchor,c,l,f,p,m,x=Object.create(null),y,C,w,v;if(v=e.input.charCodeAt(e.position),v===91)l=93,m=!1,a=[];else if(v===123)l=125,m=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),v=e.input.charCodeAt(++e.position);v!==0;){if(z(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=s,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=a,!0;r?v===44&&S(e,"expected the node content, but found ','"):S(e,"missed comma between flow collection entries"),C=y=w=null,f=p=!1,v===63&&(c=e.input.charCodeAt(e.position+1),le(c)&&(f=p=!0,e.position++,z(e,!0,t))),n=e.line,i=e.lineStart,o=e.position,Ke(e,t,Nt,!1,!0),C=e.tag,y=e.result,z(e,!0,t),v=e.input.charCodeAt(e.position),(p||e.line===n)&&v===58&&(f=!0,v=e.input.charCodeAt(++e.position),z(e,!0,t),Ke(e,t,Nt,!1,!0),w=e.result),m?Ye(e,a,x,C,y,w,n,i,o):f?a.push(Ye(e,null,x,C,y,w,n,i,o)):a.push(y),z(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}S(e,"unexpected end of the stream within a flow collection")}function mc(e,t){var r,n,i=qr,o=!1,s=!1,a=t,u=0,c=!1,l,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)qr===i?i=f===43?ao:rc:S(e,"repeat of a chomping mode identifier");else if((l=uc(f))>=0)l===0?S(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?S(e,"repeat of an indentation width identifier"):(a=t+l-1,s=!0);else break;if(De(f)){do f=e.input.charCodeAt(++e.position);while(De(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!_e(f)&&f!==0)}for(;f!==0;){for(Ur(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndenta&&(a=e.lineIndent),_e(f)){u++;continue}if(e.lineIndentt)&&u!==0)S(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(C&&(s=e.line,a=e.lineStart,u=e.position),Ke(e,t,$t,!0,i)&&(C?x=e.result:y=e.result),C||(Ye(e,f,p,m,x,y,s,a,u),m=x=y=null),z(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&v!==0)S(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f"),e.result!==null&&x.kind!==e.kind&&S(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):S(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function Cc(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(z(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!le(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&S(e,"directive name must not be less than one character in length");s!==0;){for(;De(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!_e(s));break}if(_e(s))break;for(r=e.position;s!==0&&!le(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Ur(e),Ie.call(go,n)?go[n](e,n,i):Ft(e,'unknown document directive "'+n+'"')}if(z(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,z(e,!0,-1)):o&&S(e,"directives end mark is expected"),Ke(e,e.lineIndent-1,$t,!1,!0),z(e,!0,-1),e.checkLineBreaks&&ic.test(e.input.slice(t,e.position))&&Ft(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Dt(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,z(e,!0,-1));return}if(e.position{"use strict";var Mt=Ue(),lt=je(),Rc=Pt(),vo=Object.prototype.toString,Ao=Object.prototype.hasOwnProperty,Gr=65279,_c=9,ct=10,Ec=13,wc=32,Sc=33,Tc=34,Yr=35,kc=37,Ic=38,Lc=39,Oc=42,Ro=44,Pc=45,Ht=58,Nc=61,$c=62,Fc=63,Dc=64,_o=91,Eo=93,Mc=96,wo=123,Hc=124,So=125,J={};J[0]="\\0";J[7]="\\a";J[8]="\\b";J[9]="\\t";J[10]="\\n";J[11]="\\v";J[12]="\\f";J[13]="\\r";J[27]="\\e";J[34]='\\"';J[92]="\\\\";J[133]="\\N";J[160]="\\_";J[8232]="\\L";J[8233]="\\P";var Bc=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],qc=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Uc(e,t){var r,n,i,o,s,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i=55296&&r<=56319&&t+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Lo(e){var t=/^\n* /;return t.test(e)}var Oo=1,Qr=2,Po=3,No=4,Qe=5;function zc(e,t,r,n,i,o,s,a){var u,c=0,l=null,f=!1,p=!1,m=n!==-1,x=-1,y=Kc(ht(e,0))&&Qc(ht(e,e.length-1));if(t||s)for(u=0;u=65536?u+=2:u++){if(c=ht(e,u),!pt(c))return Qe;y=y&&Io(c,l,a),l=c}else{for(u=0;u=65536?u+=2:u++){if(c=ht(e,u),c===ct)f=!0,m&&(p=p||u-x-1>n&&e[x+1]!==" ",x=u);else if(!pt(c))return Qe;y=y&&Io(c,l,a),l=c}p=p||m&&u-x-1>n&&e[x+1]!==" "}return!f&&!p?y&&!s&&!i(e)?Oo:o===ft?Qe:Qr:r>9&&Lo(e)?Qe:s?o===ft?Qe:Qr:p?No:Po}function Xc(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===ft?'""':"''";if(!e.noCompatMode&&(Bc.indexOf(t)!==-1||qc.test(t)))return e.quotingType===ft?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return Yc(e,c)}switch(zc(t,a,e.indent,s,u,e.quotingType,e.forceQuotes&&!n,i)){case Oo:return t;case Qr:return"'"+t.replace(/'/g,"''")+"'";case Po:return"|"+$o(t,e.indent)+Fo(To(t,o));case No:return">"+$o(t,e.indent)+Fo(To(Zc(t,s),o));case Qe:return'"'+Vc(t,s)+'"';default:throw new lt("impossible error: invalid scalar style")}}()}function $o(e,t){var r=Lo(e)?String(t):"",n=e[e.length-1]===` +`,i=n&&(e[e.length-2]===` +`||e===` +`),o=i?"+":n?"":"-";return r+o+` +`}function Fo(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function Zc(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(` +`);return c=c!==-1?c:e.length,r.lastIndex=c,Do(e.slice(0,c),t)}(),i=e[0]===` +`||e[0]===" ",o,s;s=r.exec(e);){var a=s[1],u=s[2];o=u[0]===" ",n+=a+(!i&&!o&&u!==""?` +`:"")+Do(u,t),i=o}return n}function Do(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,s=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(o=s>i?s:a,u+=` +`+e.slice(i,o),i=o+1),s=a;return u+=` +`,e.length-i>t&&s>i?u+=e.slice(i,s)+` +`+e.slice(s+1):u+=e.slice(i),u.slice(1)}function Vc(e){for(var t="",r=0,n,i=0;i=65536?i+=2:i++)r=ht(e,i),n=J[r],!n&&pt(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||jc(r);return t}function Jc(e,t,r){var n="",i=e.tag,o,s,a;for(o=0,s=r.length;o1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),!!Te(e,t,c,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function tf(e,t,r,n){var i="",o=e.tag,s=Object.keys(r),a,u,c,l,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new lt("sortKeys must be a boolean or a function");for(a=0,u=s.length;a1024,f&&(e.dump&&ct===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Kr(e,t)),!!Te(e,t+1,l,!0,f)&&(e.dump&&ct===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function Ho(e,t,r){var n,i,o,s,a,u;for(i=r?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function Te(e,t,r,n,i,o,s){e.tag=null,e.dump=r,Ho(e,r,!1)||Ho(e,r,!0);var a=vo.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var l=a==="[object Object]"||a==="[object Array]",f,p;if(l&&(f=e.duplicates.indexOf(r),p=f!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(l&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(tf(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(ef(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Mo(e,t-1,e.dump,i):Mo(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(Jc(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&Xc(e,e.dump,t,o,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new lt("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function rf(e,t){var r=[],n=[],i,o;for(zr(e,r,n),i=0,o=n.length;i{"use strict";var Uo=Co(),of=qo();function Xr(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}ie.exports.Type=V();ie.exports.Schema=Rr();ie.exports.FAILSAFE_SCHEMA=Sr();ie.exports.JSON_SCHEMA=Or();ie.exports.CORE_SCHEMA=Pr();ie.exports.DEFAULT_SCHEMA=Pt();ie.exports.load=Uo.load;ie.exports.loadAll=Uo.loadAll;ie.exports.dump=of.dump;ie.exports.YAMLException=je();ie.exports.types={binary:Dr(),float:Lr(),map:wr(),null:Tr(),pairs:Hr(),set:Br(),timestamp:Nr(),bool:kr(),int:Ir(),merge:$r(),omap:Mr(),seq:Er(),str:_r()};ie.exports.safeLoad=Xr("safeLoad","load");ie.exports.safeLoadAll=Xr("safeLoadAll","loadAll");ie.exports.safeDump=Xr("safeDump","dump")});var Go=R((Fp,lf)=>{lf.exports=[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY_BUILD_BASE",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}}]});var Qo=R(he=>{"use strict";var Yo=Go(),Ee=process.env;Object.defineProperty(he,"_vendors",{value:Yo.map(function(e){return e.constant})});he.name=null;he.isPR=null;Yo.forEach(function(e){var t=Array.isArray(e.env)?e.env:[e.env],r=t.every(function(n){return Ko(n)});if(he[e.constant]=r,r)switch(he.name=e.name,typeof e.pr){case"string":he.isPR=!!Ee[e.pr];break;case"object":"env"in e.pr?he.isPR=e.pr.env in Ee&&Ee[e.pr.env]!==e.pr.ne:"any"in e.pr?he.isPR=e.pr.any.some(function(n){return!!Ee[n]}):he.isPR=Ko(e.pr);break;default:he.isPR=null}});he.isCI=!!(Ee.CI||Ee.CONTINUOUS_INTEGRATION||Ee.BUILD_NUMBER||Ee.RUN_ID||he.name);function Ko(e){return typeof e=="string"?!!Ee[e]:Object.keys(e).every(function(t){return Ee[t]===e[t]})}});var Xo=R((Mp,zo)=>{"use strict";zo.exports=Qo().isCI});var Vo=R((Hp,Jr)=>{"use strict";var cf=Object.prototype.hasOwnProperty,oe="~";function mt(){}Object.create&&(mt.prototype=Object.create(null),new mt().__proto__||(oe=!1));function ff(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function Zo(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new ff(r,n||e,i),s=oe?oe+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function Ut(e,t){--e._eventsCount==0?e._events=new mt:delete e._events[t]}function ee(){this._events=new mt,this._eventsCount=0}ee.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)cf.call(r,n)&&t.push(oe?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};ee.prototype.listeners=function(t){var r=oe?oe+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i{"use strict";Jo.exports=(e,t)=>(t=t||(()=>{}),e.then(r=>new Promise(n=>{n(t())}).then(()=>r),r=>new Promise(n=>{n(t())}).then(()=>{throw r})))});var rs=R((qp,jt)=>{"use strict";var pf=es(),en=class extends Error{constructor(t){super(t);this.name="TimeoutError"}},ts=(e,t,r)=>new Promise((n,i)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===Infinity){n(e);return}let o=setTimeout(()=>{if(typeof r=="function"){try{n(r())}catch(u){i(u)}return}let s=typeof r=="string"?r:`Promise timed out after ${t} milliseconds`,a=r instanceof Error?r:new en(s);typeof e.cancel=="function"&&e.cancel(),i(a)},t);pf(e.then(n,i),()=>{clearTimeout(o)})});jt.exports=ts;jt.exports.default=ts;jt.exports.TimeoutError=en});var ns=R(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});function hf(e,t,r){let n=0,i=e.length;for(;i>0;){let o=i/2|0,s=n+o;r(e[s],t)<=0?(n=++s,i-=o+1):i=o}return n}tn.default=hf});var os=R(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});var df=ns(),is=class{constructor(){this._queue=[]}enqueue(t,r){r=Object.assign({priority:0},r);let n={priority:r.priority,run:t};if(this.size&&this._queue[this.size-1].priority>=r.priority){this._queue.push(n);return}let i=df.default(this._queue,n,(o,s)=>s.priority-o.priority);this._queue.splice(i,0,n)}dequeue(){let t=this._queue.shift();return t==null?void 0:t.run}filter(t){return this._queue.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this._queue.length}};rn.default=is});var us=R(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});var mf=Vo(),ss=rs(),gf=os(),Wt=()=>{},yf=new ss.TimeoutError,as=class extends mf{constructor(t){var r,n,i,o;super();if(this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=Wt,this._resolveIdle=Wt,t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:Infinity,interval:0,concurrency:Infinity,autoStart:!0,queueClass:gf.default},t),!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(n=(r=t.intervalCap)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(o=(i=t.interval)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""}\` (${typeof t.interval})`);this._carryoverConcurrencyCount=t.carryoverConcurrencyCount,this._isIntervalIgnored=t.intervalCap===Infinity||t.interval===0,this._intervalCap=t.intervalCap,this._interval=t.interval,this._queue=new t.queueClass,this._queueClass=t.queueClass,this.concurrency=t.concurrency,this._timeout=t.timeout,this._throwOnTimeout=t.throwOnTimeout===!0,this._isPaused=t.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount{this._onResumeInterval()},r)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){let t=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let r=this._queue.dequeue();return r?(this.emit("active"),r(),t&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this._concurrency=t,this._processQueue()}async add(t,r={}){return new Promise((n,i)=>{let o=async()=>{this._pendingCount++,this._intervalCount++;try{let s=this._timeout===void 0&&r.timeout===void 0?t():ss.default(Promise.resolve(t()),r.timeout===void 0?this._timeout:r.timeout,()=>{(r.throwOnTimeout===void 0?this._throwOnTimeout:r.throwOnTimeout)&&i(yf)});n(await s)}catch(s){i(s)}this._next()};this._queue.enqueue(o,r),this._tryToStartAnother(),this.emit("add")})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(t=>{let r=this._resolveEmpty;this._resolveEmpty=()=>{r(),t()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(t=>{let r=this._resolveIdle;this._resolveIdle=()=>{r(),t()}})}get size(){return this._queue.size}sizeBy(t){return this._queue.filter(t).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(t){this._timeout=t}};nn.default=as});var cs=R((Gp,on)=>{"use strict";var ls=(e,...t)=>new Promise(r=>{r(e(...t))});on.exports=ls;on.exports.default=ls});var ps=R((Yp,sn)=>{"use strict";var xf=cs(),fs=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()()},i=(a,u,...c)=>{r++;let l=xf(a,...c);u(l),l.then(n,n)},o=(a,u,...c)=>{rnew Promise(c=>o(a,c,...u));return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),s};sn.exports=fs;sn.exports.default=fs});var ds=R(un=>{"use strict";var an=class{constructor(t){this.tasks=[],this.count=t}sched(){if(this.count>0&&this.tasks.length>0){this.count--;let t=this.tasks.shift();if(t===void 0)throw"Unexpected undefined value in tasks list";t()}}acquire(){return new Promise((t,r)=>{var n=()=>{var i=!1;t(()=>{i||(i=!0,this.count++,this.sched())})};this.tasks.push(n),process&&process.nextTick?process.nextTick(this.sched.bind(this)):setImmediate(this.sched.bind(this))})}use(t){return this.acquire().then(r=>t().then(n=>(r(),n)).catch(n=>{throw r(),n}))}};un.Semaphore=an;var hs=class extends an{constructor(){super(1)}};un.Mutex=hs});var gs=R((Qp,ms)=>{"use strict";ms.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var ln=R((zp,ys)=>{"use strict";var bf=gs();ys.exports=e=>typeof e=="string"?e.replace(bf(),""):e});var bs=R((Xp,cn)=>{"use strict";var xs=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);cn.exports=xs;cn.exports.default=xs});var As=R((Zp,vs)=>{"use strict";var Cs="[\uD800-\uDBFF][\uDC00-\uDFFF]",Cf=e=>e&&e.exact?new RegExp(`^${Cs}$`):new RegExp(Cs,"g");vs.exports=Cf});var _s=R((Vp,Rs)=>{"use strict";Rs.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var fn=R((Jp,ws)=>{var gt=_s(),Es={};for(let e of Object.keys(gt))Es[gt[e]]=e;var E={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};ws.exports=E;for(let e of Object.keys(E)){if(!("channels"in E[e]))throw new Error("missing channels property: "+e);if(!("labels"in E[e]))throw new Error("missing channel labels property: "+e);if(E[e].labels.length!==E[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=E[e];delete E[e].channels,delete E[e].labels,Object.defineProperty(E[e],"channels",{value:t}),Object.defineProperty(E[e],"labels",{value:r})}E.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=o-i,a,u;o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+o)/2;return o===i?u=0:c<=.5?u=s/(o+i):u=s/(2-o-i),[a,u*100,c*100]};E.rgb.hsv=function(e){let t,r,n,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),f=function(p){return(c-p)/6/l+1/2};return l===0?(i=0,o=0):(o=l/c,t=f(s),r=f(a),n=f(u),s===c?i=n-r:a===c?i=1/3+t-n:u===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,c*100]};E.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=E.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};E.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function vf(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}E.rgb.keyword=function(e){let t=Es[e];if(t)return t;let r=Infinity,n;for(let i of Object.keys(gt)){let o=gt[i],s=vf(e,o);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};E.rgb.lab=function(e){let t=E.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};E.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,u[c]=s*255;return u};E.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[t,a*100,s*100]};E.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}};E.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,o*100,s*100]};E.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*t),a=1-n;o=6*t-s,(s&1)!=0&&(o=1-o);let u=r+o*(a-r),c,l,f;switch(s){default:case 6:case 0:c=a,l=u,f=r;break;case 1:c=u,l=a,f=r;break;case 2:c=r,l=a,f=u;break;case 3:c=r,l=u,f=a;break;case 4:c=u,l=r,f=a;break;case 5:c=a,l=r,f=u;break}return[c*255,l*255,f*255]};E.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};E.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};E.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(t-r),s=200*(r-n);return[i,o,s]};E.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;let a=o**3,u=i**3,c=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};E.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+n*n);return[t,s,i]};E.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[t,o,s]};E.rgb.ansi16=function(e,t=null){let[r,n,i]=e,o=t===null?E.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};E.hsv.ansi16=function(e){return E.rgb.ansi16(E.hsv.rgb(e),e[2])};E.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};E.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]};E.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};E.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};E.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),s=i-o,a,u;return s<1?a=o/(1-s):a=0,s<=0?u=0:i===t?u=(r-n)/s%6:i===r?u=2+(n-t)/s:u=4+(t-r)/s,u/=6,u%=1,[u*360,s*100,a*100]};E.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};E.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};E.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=t%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};E.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};E.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};E.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};E.hwb.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};E.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};E.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};E.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};E.gray.hsl=function(e){return[0,0,e[0]]};E.gray.hsv=E.gray.hsl;E.gray.hwb=function(e){return[0,100,e[0]]};E.gray.cmyk=function(e){return[0,0,0,e[0]]};E.gray.lab=function(e){return[e[0],0,0]};E.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Ts=R((eh,Ss)=>{var Gt=fn();function Af(){let e={},t=Object.keys(Gt);for(let r=t.length,n=0;n{var pn=fn(),wf=Ts(),ze={},Sf=Object.keys(pn);function Tf(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function kf(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let o=i.length,s=0;s{ze[e]={},Object.defineProperty(ze[e],"channels",{value:pn[e].channels}),Object.defineProperty(ze[e],"labels",{value:pn[e].labels});let t=wf(e);Object.keys(t).forEach(n=>{let i=t[n];ze[e][n]=kf(i),ze[e][n].raw=Tf(i)})});ks.exports=ze});var Fs=R((rh,$s)=>{"use strict";var Ls=(e,t)=>(...r)=>`[${e(...r)+t}m`,Os=(e,t)=>(...r)=>{let n=e(...r);return`[${38+t};5;${n}m`},Ps=(e,t)=>(...r)=>{let n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`},Yt=e=>e,Ns=(e,t,r)=>[e,t,r],Xe=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},hn,Ze=(e,t,r,n)=>{hn===void 0&&(hn=Is());let i=n?10:0,o={};for(let[s,a]of Object.entries(hn)){let u=s==="ansi16"?"ansi":s;s===t?o[u]=e(r,i):typeof a=="object"&&(o[u]=e(a[t],i))}return o};function If(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",Xe(t.color,"ansi",()=>Ze(Ls,"ansi16",Yt,!1)),Xe(t.color,"ansi256",()=>Ze(Os,"ansi256",Yt,!1)),Xe(t.color,"ansi16m",()=>Ze(Ps,"rgb",Ns,!1)),Xe(t.bgColor,"ansi",()=>Ze(Ls,"ansi16",Yt,!0)),Xe(t.bgColor,"ansi256",()=>Ze(Os,"ansi256",Yt,!0)),Xe(t.bgColor,"ansi16m",()=>Ze(Ps,"rgb",Ns,!0)),t}Object.defineProperty($s,"exports",{enumerable:!0,get:If})});var qs=R((nh,Bs)=>{"use strict";var Lf=bs(),Of=As(),Ds=Fs(),Ms=["","\x9B"],Kt=e=>`${Ms[0]}[${e}m`,Hs=(e,t,r)=>{let n=[];e=[...e];for(let i of e){let o=i;i.includes(";")&&(i=i.split(";")[0][0]+"0");let s=Ds.codes.get(Number.parseInt(i,10));if(s){let a=e.indexOf(s.toString());a===-1?n.push(Kt(t?s:o)):e.splice(a,1)}else if(t){n.push(Kt(0));break}else n.push(Kt(o))}if(t&&(n=n.filter((i,o)=>n.indexOf(i)===o),r!==void 0)){let i=Kt(Ds.codes.get(Number.parseInt(r,10)));n=n.reduce((o,s)=>s===i?[s,...o]:[...o,s],[])}return n.join("")};Bs.exports=(e,t,r)=>{let n=[...e],i=[],o=typeof r=="number"?r:n.length,s=!1,a,u=0,c="";for(let[l,f]of n.entries()){let p=!1;if(Ms.includes(f)){let m=/\d[^m]*/.exec(e.slice(l,l+18));a=m&&m.length>0?m[0]:void 0,ut&&u<=o)c+=f;else if(u===t&&!s&&a!==void 0)c=Hs(i);else if(u>=o){c+=Hs(i,!0,a);break}}return c}});var jf={};Ia(jf,{default:()=>Uf});var Jt=$(M("@yarnpkg/cli")),se=$(M("@yarnpkg/core")),Z=$(M("clipanion")),yn=$(M("path")),xt=$(xr());var dt=$(M("@yarnpkg/fslib")),F=$(M("typanion")),qt=$(jo()),sf=".yarnbuildrc.yml",af=".bundleignore",Zr=F.isObject({folders:F.isObject({input:F.isOneOf([F.isString(),F.isArray(F.isString())]),output:F.isOneOf([F.isString(),F.isArray(F.isString())])}),exclude:F.isArray(F.isString()),bail:F.isBoolean(),hideYarnBuildBadge:F.isBoolean(),ignoreFile:F.isString(),maxConcurrency:F.isOptional(F.applyCascade(F.isNumber(),[F.isInteger(),F.isInInclusiveRange(1,128)]))}),Vr={folders:{input:".",output:["build","node_modules"]},exclude:[],bail:!0,hideYarnBuildBadge:!1,ignoreFile:af,maxConcurrency:8};async function uf(e){let t=sf,r=dt.ppath.join(e.projectCwd||e.startingCwd,t);if(dt.xfs.existsSync(r)){let n=await dt.xfs.readFilePromise(r,"utf8"),i=[];try{let o=(0,qt.load)(n,{schema:qt.JSON_SCHEMA});if(Zr(o,{errors:i}))return o;console.warn(i)}catch(o){let s="";throw n.match(/^\s+(?!-)[^:]+\s+\S+/m)&&(s=" (config is corrupted, please check it matches the shape in the yarn.build readme."),new Error(`Parse error when loading ${r}; please check it's proper Yaml${s}`)}}return Vr}async function Wo(e){var r;let t=await uf(e);return Y(I(I({},Vr),t),{folders:I(I({},Vr.folders),(r=t.folders)!=null?r:{})})}var k=$(M("@yarnpkg/core")),ge=$(Xo()),Ks=$(M("os")),xe=$(M("@yarnpkg/fslib"));var Qs=$(xr()),zs=$(M("events")),Xs=$(us()),Xt=$(M("path")),Zs=$(ps()),mn=$(ds()),Zt=$(ln()),Vt=$(qs());var Je=class{constructor(){this.nodes={};this.size=0;this.runSize=0;this.ran=new Set;this.dryRunCallback=()=>{}}addNode(t){if(this.nodes[t])return this.nodes[t];let r=new Ve(t);return this.nodes[t]=r,this.size=Object.keys(this.nodes).length,this.checkCyclical(r),r}addRunCallback(t,r){let n=t;this.nodes[t.id]||(n=this.addNode(t.id)),n.runCallback||(n.addRunCallback(r),this.runSize++)}getNode(t){if(this.nodes[t])return this.nodes[t]}resetRuns(){this.ran=new Set}checkCyclical(t){let r=new Set,n=new Set;this.resolveNode(t,r,n)}resolveNode(t,r,n){n.add(t.id),Object.keys(t.dependencies).forEach(i=>{let o=t.dependencies[i];if(!r.has(o.id)){if(n.has(o.id))throw new Qt(t.id,o.id);this.resolveNode(o,r,n)}}),r.add(t.id),n.delete(t.id)}async run(t,r=!1){let n=new Set,i=new Set,o={};for(let s of t)this.resolveQueue(s,n,o);return r?(await this.dryRunLoop(n,o,i,0),o):(await new Promise(s=>{this.workLoop(n,o,i,s)}),o)}async dryRunLoop(t,r,n,i=0){if(n.forEach((o,s)=>{this.dryRunCallback(o,i-1),r[o.id]={success:!0,done:!0},n.delete(s)}),t.size!==0&&t.forEach(o=>{var s;o.canStart(r)&&((s=o==null?void 0:o.node)==null?void 0:s.runCallback)&&(n.add(o.node),t.delete(o))}),n.size!=0)return await this.dryRunLoop(t,r,n,i+1)}workLoop(t,r,n,i){if(t.size!==0&&t.forEach(o=>{var s,a;o.canStart(r)&&(((s=o==null?void 0:o.node)==null?void 0:s.runCallback)?((a=o==null?void 0:o.node)==null||a.runCallback(r),n.add(o.node)):r[o.node.id]={success:!0,done:!0},t.delete(o))}),n.forEach((o,s)=>{r[o.id].done&&n.delete(s)}),Object.keys(r).map(o=>{var s,a;return(a=(s=r[o])==null?void 0:s.done)!=null?a:!0}).every(o=>o===!0)){i();return}setTimeout(()=>this.workLoop(t,r,n,i),30)}resolveQueue(t,r,n){let i=[];if(Object.keys(t.dependencies).forEach(o=>{let s=t.dependencies[o];if(i.push(s.id),!n[s.id]&&s.runCallback){n[s.id]=I({},Je.RunLogInit);let a=this.resolveQueue(s,r,n),u={node:s,canStart:Je.QueueItemCanStart(a)};r.add(u)}}),!n[t.id]&&t.runCallback){n[t.id]=I({},Je.RunLogInit);let o={node:t,canStart:Je.QueueItemCanStart(i)};r.add(o)}return i}},yt=Je;yt.RunLogInit={success:!1,done:!1},yt.QueueItemCanStart=t=>r=>t.map(n=>{var i,o;return(o=(i=r[n])==null?void 0:i.done)!=null?o:!0}).every(n=>n===!0);var Ve=class{constructor(t){this.cancelled=!1;this.skip=!1;this.id=t,this.dependencies={}}addDependency(t){return this.dependencies[t.id]||(this.dependencies[t.id]=t),this}addRunCallback(t){return this.runCallback?this:(this.runCallback=r=>{if(!this.cancelled)return t(Ve.cancelDependentJobs(this)).then(n=>{r[this.id]={done:!0,success:n}})},this)}static cancelDependentJobs(t){return()=>{typeof t.dependencies!="undefined"&&Object.keys(t.dependencies).forEach(r=>{let n=t.dependencies[r];n.cancelled=!0})}}},Qt=class extends Error{constructor(t,r){super("");this.name="CyclicDependencyError",this.code="YN0003",this.node=t,this.dep=r}};var Us=$(ln()),Pf="",de=Pf+"[",dn=class{static pad(t=1){for(let r=0;r{process.stdin.setRawMode(!0),process.stdin.once("data",r=>{process.stdin.setRawMode(!1),process.stdin.pause();let[n,i]=r.slice(2,r.length-1).toString().split(";").map(Number);t({x:i,y:n})}),process.stdout.write(de+"6n")})}static setScrollableRegion(t,r){process.stdout.write(de+`${t};${r}r`)}static resetScrollableRegion(){process.stdout.write(de+"r")}static moveTo(t){process.stdout.write(de+`${t.y};${t.x}H`)}static cursorHome(){process.stdout.write(de+"H")}static alternateScreen(){process.stdout.write(de+"?1049h")}static mainScreen(){process.stdout.write(de+"?1049l")}static linesRequired(t,r){var o;let n=new RegExp(`([^ +]{0,${r}})( +)?`,"gm");return((o=(0,Us.default)(t).match(n))!=null?o:[""]).length-1}},ye=dn;ye.row=0,ye.column=0;var Ws=$(M("child_process")),Gs=$(M("util"));var js=()=>process.platform==="win32"?"windows":"unix";var Nf=(0,Gs.promisify)(Ws.exec),Ys=async e=>{let t=js(),r=(({platform:i,pid:o})=>{switch(i){case"unix":return`pgrep "-P ${o}"`;case"windows":return`wmic process where (ParentProcessId=${o}) get ProcessId`;default:throw new Error("Unable to find parent process")}})({platform:t,pid:e}),n=[];try{let{stdout:i}=await Nf(r);n=i.split(` +`).filter(Boolean).map(o=>parseInt(o,10)).filter(o=>!isNaN(o))}catch(i){}return n};var et={hasBeenTerminated:!1,callId:0},zt=async(e=0)=>{if(e!==et.callId||et.hasBeenTerminated)return;let t=process.pid;(await Ys(t)).forEach(i=>{try{process.kill(i,"SIGKILL")}catch(o){}});let n=et.callId+1;et.callId=n,setTimeout(async()=>{zt(n)},50)};var $f="yarn.build.json",Vs=80,Ff="-".repeat(Vs),we;(function(o){o.pending="pending",o.skipped="skipped",o.inProgress="inProgress",o.failed="failed",o.succeeded="succeeded"})(we||(we={}));var W;(function(l){l.pending="pending",l.start="start",l.info="info",l.error="error",l.skipped="skipped",l.ignored="ignored",l.success="success",l.fail="fail",l.finish="finish",l.forceQuit="force-quit"})(W||(W={}));var Js=class{constructor({project:t,report:r,runCommand:n,cli:i,configuration:o,pluginConfiguration:s,dryRun:a,ignoreRunCache:u,verbose:c,concurrency:l,continueOnError:f,excludeWorkspacePredicate:p}){this.runGraph=new yt;this.runLength=0;this.runTargets=[];this.runMutexes={};this.dryRun=!1;this.ignoreRunCache=!1;this.verbose=!1;this.continueOnError=!1;this.entrypoints=new Set;this.excluded=new Set;this.runReporter=new zs.EventEmitter;this.runReport={mutex:new mn.Mutex,totalJobs:0,skipCount:0,previousOutput:"",successCount:0,failCount:0,ignoredCount:0,workspaces:{},done:!1};this.header="";this.nextUnitOfWork=[];this.hasSetup=!1;this.setupRunReporter=()=>{this.runReporter.on(W.pending,(t,r,n)=>{this.runReport.mutex.acquire().then(i=>{this.runReport.workspaces[t]={name:n,stdout:[],stderr:[],done:!1,fail:!1,locator:r},i()})}),this.runReporter.on(W.start,(t,r,n,i)=>{this.runReport.mutex.acquire().then(o=>{this.runReport.workspaces[t]=Y(I({},this.runReport.workspaces[t]),{start:Date.now(),runScript:i,name:n,locator:r}),o()})}),this.runReporter.on(W.info,(t,r)=>{this.runReport.mutex.acquire().then(n=>{typeof r!="undefined"&&this.runReport.workspaces[t].stdout.push(r),n()})}),this.runReporter.on(W.error,(t,r)=>{this.runReport.mutex.acquire().then(n=>{typeof r!="undefined"&&this.runReport.workspaces[t].stderr.push(r),n()})}),this.runReporter.on(W.success,t=>{this.runReport.mutex.acquire().then(r=>{var i;this.runReport.workspaces[t]=Y(I({},this.runReport.workspaces[t]),{done:!0}),this.runReport.successCount++;let n=this.runReport.workspaces[t];ge.default&&process.stdout.write(`[success] ${n.name.padEnd(60," ")}${Me(0,(i=n.runtimeSeconds)!=null?i:0).padStart(10)} +`),r()})}),this.runReporter.on(W.skipped,t=>{this.runReport.mutex.acquire().then(r=>{this.runReport.workspaces[t].done=!0,this.runReport.workspaces[t].skipped=!0,this.runReport.skipCount++,r()})}),this.runReporter.on(W.ignored,t=>{this.runReport.mutex.acquire().then(r=>{this.runReport.workspaces[t].done=!0,this.runReport.workspaces[t].ignored=!0,this.runReport.ignoredCount++,r()})}),this.runReporter.on(W.fail,(t,r)=>{this.runReport.mutex.acquire().then(n=>{var s,a;typeof r!="undefined"&&this.runReport.workspaces[t].stderr.push(r),this.runReport.workspaces[t].done=!0,this.runReport.workspaces[t].fail=!0,this.runReport.failCount++,n();let i=this.runReport.workspaces[t],o=(s=this.runLog)==null?void 0:s.get(`${t}#${this.runCommand}`);ge.default&&process.stdout.write(`=> [fail${(o==null?void 0:o.exitCode)?`: ${o==null?void 0:o.exitCode}`:""}] ${i.name.padEnd(60," ")}${Me(0,(a=i.runtimeSeconds)!=null?a:0).padStart(10)} +`)})})};this.getDependenciesCount=async t=>{let r=0;for(let n of k.Manifest.hardDependencies)for(let i of t.manifest.getForScope(n).values())this.project.tryWorkspaceByDescriptor(i)!==null&&(r+=1);return r};this.plan=async(t,r)=>{var o,s,a,u,c;if(!t)throw new Error("Internal error: lost reference to parent workspace. Please open an issue.");this.runGraph.checkCyclical(t);let n=!1;this.runMutexes[r.relativeCwd]=new mn.Mutex;for(let l of k.Manifest.hardDependencies)for(let f of r.manifest.getForScope(l).values()){let p=this.project.tryWorkspaceByDescriptor(f);if(p===null||this.excludeWorkspacePredicate(p))continue;let m=this.runGraph.addNode(p.relativeCwd);this.runGraph.addRunCallback(m,this.createRunItem(p)),t.addDependency(m),this.runGraph.checkCyclical(m);let x=await this.plan(m,p),y=!1;p!==this.project.topLevelWorkspace&&(y=await this.checkIfRunIsRequired(p)),(y||x)&&(n=!0,this.removeFromExcluded(p))}let i=!1;if(r!==this.project.topLevelWorkspace&&(i=await this.checkIfRunIsRequired(r)),this.runReporter.emit(W.pending,r.relativeCwd,r.locator),n||i){this.runReporter.emit(W.pending,r.relativeCwd,r.locator,`${((o=r.manifest.name)==null?void 0:o.scope)?`@${(s=r.manifest.name)==null?void 0:s.scope}/`:""}${(a=r.manifest.name)==null?void 0:a.name}`),this.runGraph.addRunCallback(t,this.createRunItem(r)),this.removeFromExcluded(r),this.entrypoints.add(t),this.runTargets.push(r);return}else{let l=(u=this.runLog)==null?void 0:u.get(`${r.relativeCwd}#${this.runCommand}`);l&&((c=this.runLog)==null||c.set(`${r.relativeCwd}#${this.runCommand}`,{lastModified:l.lastModified,status:we.succeeded,haveCheckedForRerun:!0,rerun:!1,command:this.runCommand}))}};this.performDryRun=async()=>{let t=this.concurrency;this.concurrency=1;let r="",n={1:[]};this.runGraph.dryRunCallback=(s,a)=>{n[a]?n[a].push(s.id):n[a]=[s.id]},await this.runGraph.run(Array.from(this.entrypoints),!0);let i=(s,a,u,c)=>{let l=c&&u?"\u2514\u2500":u?"\u2514\u2500\u252C":"\u251C\u2500";return`${s==0?"":" ".repeat(s)}${l} ${a}`},o=Object.keys(n);return o.forEach((s,a)=>{let u=parseInt(s),c=n[u],l=a==o.length-1;c.forEach((f,p)=>{let m=this.runGraph.getNode(f);r+=i(u,f,p==c.length-1,l),m instanceof Ve&&m.skip&&(r+="(skip)"),r+=` +`})}),this.concurrency=t,r};this.run=async()=>{var i,o;let t="";if(this.hasSetup===!1)throw new Error("RunSupervisor is not setup, you need to call await supervisor.setup()");if(this.runReport.runStart=Date.now(),(ge.default||this.dryRun)&&(t+=`${this.formatHeader("Run Order")+` +`}`,t+=await this.performDryRun(),ge.default||(t+=`${this.formatHeader(`Dry Run / Command: ${this.runCommand} / Total: ${this.runGraph.runSize}`,0,!0)+` +`}`),process.stdout.write(t),t="",this.dryRun))return!0;ge.default||ye.pad(this.concurrency+3),ge.default&&process.stdout.write(` +${this.formatHeader(`Run / Command: ${this.runCommand} / Concurrency: ${this.concurrency}`,0,!1)+` +`}`),this.raf(this.waitUntilDone),this.currentRunTarget=this.runTargets.length>1?"All":(o=(i=this.runTargets[0])==null?void 0:i.relativeCwd)!=null?o:"Nothing to run",ge.default||process.stderr.write(` +`),this.header=this.generateHeaderString(),await this.runGraph.run(Array.from(this.entrypoints));let r=await this.runReport.mutex.acquire();this.runReport.done=!0,r();let n=this.generateFinalReport();return typeof n=="string"&&process.stdout.write(` +${n} +`),await this.saveRunLog(),this.runReport.failCount===0};this.raf=t=>{setImmediate(()=>t(Date.now()))};this.waitUntilDone=t=>{if(this.runReport.done)return;let r=90,n="";ge.default?this.updateProgressCI(t):(n=this.generateProgressString(t),ye.cursorUp(ye.linesRequired(this.runReport.previousOutput,process.stdout.columns)),ye.clearScreenDown()),typeof n!="undefined"&&typeof n=="string"&&process.stdout.write(n),this.runReport.previousOutput=n,Df(r).then(()=>{this.raf(this.waitUntilDone)})};this.grey=t=>k.formatUtils.pretty(this.configuration,t,"grey");this.generateRunCountString=t=>{let r="";if(this.runReport.runStart){let n=k.formatUtils.pretty(this.configuration,`${this.runReport.successCount}`,"green"),i=k.formatUtils.pretty(this.configuration,`${this.runReport.failCount}`,"red"),o=k.formatUtils.pretty(this.configuration,`${this.runGraph.runSize}`,"white");r+=this.formatHeader(`${n}:${i}/${o} ${Me(this.runReport.runStart,t)}`,0,!0)+` +`}return r};this.generateFinalReport=()=>{var o;ge.default||(ye.cursorUp(ye.linesRequired(this.runReport.previousOutput,process.stdout.columns)),ye.clearScreenDown());let t=!1,r="";if(this.runReport.failCount!==0&&(t=!0),this.verbose&&(t=!0),ge.default&&(t=!0),t){let s=[];r+=`${this.formatHeader(this.header)+` +`}`;for(let a in this.runReport.workspaces){let u=this.runReport.workspaces[a];u.fail&&s.push(a),!(this.runReport.failCount!==0&&u.fail===!1)&&((u.stdout.length!==0||u.stderr.length!==0)&&(r+=` +${this.formatHeader(`Output: ${k.formatUtils.pretty(this.configuration,a,k.FormatType.PATH)}`,2)+` +`}`),u.stdout.length!==0&&u.stdout.forEach(c=>{c.split(` +`).forEach(f=>{typeof f!="undefined"&&f.length!==0&&(r+=`${f+` +`}`)})}),u.stderr.length!==0&&(r+=` +${"[stderr]"+` +`}`,u.stderr.forEach(l=>{(l instanceof Error?l.toString():`${l}`).split(` +`).forEach(m=>{typeof m!="undefined"&&m.length!==0&&(r+=`${m+` +`}`)})})))}s.length>=2&&(r+=`${this.grey(Ff)+` +`}`,r+=`${this.grey(`ERROR for script ${this.header} +The following packages returned an error. +`)}`,s.forEach(u=>{r+=`${`- ${k.formatUtils.pretty(this.configuration,u,k.FormatType.PATH)}`+` +`}`}))}let n=this.formatHeader(`${k.formatUtils.pretty(this.configuration,`${this.runCommand} finished`,this.runReport.failCount===0?"green":"red")}${this.runReport.failCount!=0?k.formatUtils.pretty(this.configuration,` with ${this.runReport.failCount} errors`,"red"):""}`,0,!0)+` +`;if(r+=` +`+this.formatHeader("Summary")+` +`,this.runReport.runStart){let{successCount:s,failCount:a,ignoredCount:u,skipCount:c}=this.runReport,l=this.runGraph.runSize-u,f=l-a-s-c,p=k.formatUtils.pretty(this.configuration,`Success: ${s}`,"green"),m=k.formatUtils.pretty(this.configuration,`Fail: ${a}`,"red"),x=k.formatUtils.pretty(this.configuration,`Skipped: ${c}`,"white"),y=k.formatUtils.pretty(this.configuration,`Excluded: ${this.excluded.size}`,"white"),C=k.formatUtils.pretty(this.configuration,`Up to date: ${f}`,"white"),w=k.formatUtils.pretty(this.configuration,`Total: ${l}`,"white");if(r+=p+` +`,r+=C+` +`,r+=m+` +`,this.verbose&&a>0&&Object.keys(this.runReport.workspaces).forEach(v=>{let P=this.runReport.workspaces[v];P.fail&&(r+=` - ${k.formatUtils.pretty(this.configuration,v,"grey")}${k.formatUtils.pretty(this.configuration,P.locator,"IDENT")} +`)}),r+=x+` +`,this.verbose&&c>0&&Object.keys(this.runReport.workspaces).forEach(v=>{let P=this.runReport.workspaces[v];P.skipped&&(r+=` - ${k.formatUtils.pretty(this.configuration,v,"grey")}${k.formatUtils.pretty(this.configuration,P.locator,"IDENT")} +`)}),r+=y+` +`,this.verbose&&this.excluded.size>0)for(let v of this.excluded)r+=` - ${k.formatUtils.pretty(this.configuration,v.relativeCwd,"grey")}${k.formatUtils.pretty(this.configuration,v.locator,"IDENT")} +`;r+=w+` +`+this.grey("---")+` +`}let i=50;for(let s in this.runReport.workspaces)i+=(o=this.runReport.workspaces[s].runtimeSeconds)!=null?o:0;if(!!this.runReport.runStart&&this.runGraph.runSize>1){let s=i,u=Date.now()-this.runReport.runStart,c=Me(u,s);ge.default||(r+=`Cumulative: (cpu): ${Me(0,i)} +`,r+=`Saved: ${c} +`)}return this.runReport.runStart&&(r+="Runtime (wall): "+Me(Date.now(),this.runReport.runStart)+` +`),r+=n,r+=` +`,r};this.createRunItem=t=>async r=>await this.limit(async()=>{var s,a,u,c,l,f,p,m;let n=t.relativeCwd,i=t.manifest.scripts.get(this.runCommand),o=(s=this.runLog)==null?void 0:s.get(`${t.relativeCwd}#${this.runCommand}`);if(this.runReporter.emit(W.start,t.relativeCwd,t.locator,`${((a=t.manifest.name)==null?void 0:a.scope)?`@${(u=t.manifest.name)==null?void 0:u.scope}/`:""}${(c=t.manifest.name)==null?void 0:c.name}`,i),!i)return this.verbose&&this.runReporter.emit(W.info,t.relativeCwd,`[skip] No \`${this.runCommand}\` script in manifest.`),this.runReporter.emit(W.ignored,t.relativeCwd),!0;try{if(this.runReport.failCount!==0&&(this.runReporter.emit(W.skipped,t.relativeCwd),(l=this.runLog)==null||l.set(`${t.relativeCwd}#${this.runCommand}`,{lastModified:o==null?void 0:o.lastModified,status:we.skipped,haveCheckedForRerun:!0,rerun:!1,command:this.runCommand}),this.continueOnError===!1))return!1;let x=await this.cli(this.runCommand,t.cwd,this.runReporter,n);if(x!==0)return this.runReporter.emit(W.fail,t.relativeCwd),(f=this.runLog)==null||f.set(`${t.relativeCwd}#${this.runCommand}`,{lastModified:o==null?void 0:o.lastModified,status:we.failed,haveCheckedForRerun:!0,rerun:!1,command:this.runCommand,exitCode:`${x}`}),this.continueOnError===!1&&zt(),!1;(p=this.runLog)==null||p.set(`${t.relativeCwd}#${this.runCommand}`,{lastModified:o==null?void 0:o.lastModified,status:we.succeeded,haveCheckedForRerun:!0,rerun:!1,command:this.runCommand}),this.runReporter.emit(W.success,t.relativeCwd)}catch(x){return this.runReporter.emit(W.fail,t.relativeCwd,x),(m=this.runLog)==null||m.set(`${t.relativeCwd}#${this.runCommand}`,{lastModified:o==null?void 0:o.lastModified,status:we.failed,haveCheckedForRerun:!0,rerun:!1,command:this.runCommand}),this.continueOnError===!1&&(r(),zt()),!1}return!1});let m=l!=null?l:Math.max(1,(0,Ks.cpus)().length);this.configuration=o,this.pluginConfiguration=s,this.project=t,this.report=r,this.runCommand=n,this.cli=i,this.dryRun=a,this.ignoreRunCache=u,this.verbose=c,this.concurrency=m,this.continueOnError=f,this.limit=(0,Zs.default)(m),this.queue=new Xs.default({concurrency:m,carryoverConcurrencyCount:!0,timeout:5e4,throwOnTimeout:!0,autoStart:!0}),this.excludeWorkspacePredicate=p,this.verbose&&(this.errorLogFile=xe.xfs.createWriteStream(this.getRunErrorPath(),{flags:"a"}))}async setup(){this.runLog=await this.readRunLog(),this.setupRunReporter(),this.hasSetup=!0}getRunErrorPath(){return xe.ppath.resolve(this.project.cwd,"yarn.build-error.log")}getRunLogPath(){return xe.ppath.resolve(this.project.cwd,".yarn",$f)}async readRunLog(){let t=new Map;try{let r=await xe.xfs.readJsonPromise(this.getRunLogPath());if(r&&r.packages)for(let n in r.packages)t.set(n,{lastModified:r.packages[n].lastModified,status:r.packages[n].status,haveCheckedForRerun:!1,rerun:!0,command:this.runCommand})}catch{}return t}async saveRunLog(){if(!this.runLog)return;let t;try{t=await xe.xfs.readJsonPromise(this.getRunLogPath())}catch{}let r={comment:"This is an auto-generated file, it keeps track of whats been built. This is a local file, don't store this in version control.",packages:I({},t&&t.packages)};for(let[n,i]of this.runLog)i.status===we.succeeded&&(r.packages[n]=I(I({},r.packages[n]),this.runLog.get(n)));await xe.xfs.writeJsonPromise(this.getRunLogPath(),r)}removeFromExcluded(t){this.excluded.has(t)&&this.excluded.delete(t)}async addRunTarget(t){if(this.excluded.has(t))return;if(this.excludeWorkspacePredicate(t)){this.excluded.add(t);return}let r=this.runGraph.addNode(t.relativeCwd);await this.plan(r,t)}getWorkspaceConfig(t){let r=[],n=Y(I({},this.pluginConfiguration),{folders:I(I({},this.pluginConfiguration.folders),t==null?void 0:t.manifest.raw["yarn.build"])});return Zr(n,{errors:r})?n:(console.warn(r),this.pluginConfiguration)}async checkIfRunIsRequired(t){var f,p,m,x,y,C,w,v,P,te,D,ae,H,T;if(this.ignoreRunCache===!0)return!0;if(typeof t.manifest.scripts.get(this.runCommand)!="string")return!1;let r=!1,n=xe.ppath.resolve(t.project.cwd,t.relativeCwd),i=this.getWorkspaceConfig(t),o=Array.isArray(i.folders.output)?[...i.folders.output]:[i.folders.output];typeof((p=(f=t==null?void 0:t.manifest)==null?void 0:f.raw)==null?void 0:p.bin)=="string"?o.push(t.manifest.raw.bin):typeof((y=(x=(m=t==null?void 0:t.manifest)==null?void 0:m.raw)==null?void 0:x.directories)==null?void 0:y.bin)=="string"?o.push(t.manifest.raw.directories.bin):typeof((w=(C=t==null?void 0:t.manifest)==null?void 0:C.raw)==null?void 0:w.files)=="string"?o.push(t.manifest.raw.files):Array.isArray((P=(v=t==null?void 0:t.manifest)==null?void 0:v.raw)==null?void 0:P.files)?o.push(...t.manifest.raw.files):typeof((D=(te=t==null?void 0:t.manifest)==null?void 0:te.raw)==null?void 0:D.main)=="string"&&o.push(t.manifest.raw.main);let s=o.map(_=>`${n}${Xt.default.posix.sep}${_}`),a=i.folders.input,u=typeof a=="string"?[a]:a,c=u==null?void 0:u.map(_=>`${n}${Xt.default.posix.sep}${_}`).map(_=>(_==null?void 0:_.endsWith("/."))?_.substring(0,_.length-2):_),l=await this.runReport.mutex.acquire();try{let _=(ae=this.runLog)==null?void 0:ae.get(`${t.relativeCwd}#${this.runCommand}`);if(_==null?void 0:_.haveCheckedForRerun)return(H=_==null?void 0:_.rerun)!=null?H:!0;let Q=await ea(c!=null?c:[n],s);(_==null?void 0:_.lastModified)!==Q&&(r=!0),(T=this.runLog)==null||T.set(`${t.relativeCwd}#${this.runCommand}`,{lastModified:Q,status:r?we.succeeded:we.pending,haveCheckedForRerun:!0,rerun:r,command:this.runCommand})}catch(_){this.runReport.workspaces[t.relativeCwd].stderr.push(new Error(`${t.relativeCwd}: failed to get lastModified (${_})`))}finally{l()}return r}formatHeader(t,r=0,n=!1){let i=`${this.grey("-".repeat(r)+"[")} ${t} ${this.grey("]")}`,o=(0,Zt.default)(i).length,s=n?"[ yarn.build ]":"",a=Vs-o;return n&&(a-=s.length),i+this.grey("-".repeat(a))+this.grey(s)}generateHeaderString(){return`${k.formatUtils.pretty(this.configuration,`${this.runCommand}`,k.FormatType.CODE)} for ${k.formatUtils.pretty(this.configuration,this.currentRunTarget?this.currentRunTarget:"",k.FormatType.SCOPE)}${this.dryRun?k.formatUtils.pretty(this.configuration," --dry-run",k.FormatType.NAME):""}`}updateRuntime(t){for(let r in this.runReport.workspaces){let n=this.runReport.workspaces[r];!n||!n.start||n.done||this.runReport.runStart&&(this.runReport.workspaces[r].runtimeSeconds=t-this.runReport.runStart)}}updateProgressCI(t){this.updateRuntime(t)}generateProgressString(t){let r="",n=s=>this.grey(`[${s}]`),i=k.formatUtils.pretty(this.configuration,"IDLE","grey");r+=this.formatHeader(this.generateHeaderString())+` +`,this.updateRuntime(t);let o=1;for(let s in this.runReport.workspaces){let a=this.runReport.workspaces[s];if(!a||!a.start||a.done)continue;let u=k.formatUtils.pretty(this.configuration,s,k.FormatType.PATH),c=k.formatUtils.pretty(this.configuration,`(${a.runScript})`,k.FormatType.REFERENCE),l=a.start?k.formatUtils.pretty(this.configuration,Me(a.start,t),k.FormatType.RANGE):"",f=n(o++),p=" ".repeat(f.length-1),m=k.formatUtils.pretty(this.configuration,a.name,k.FormatType.NAME),x=`${f} ${m}${k.formatUtils.pretty(this.configuration,"@","grey")}${u} ${c} ${l} +`,y="",C="",w="";(0,Zt.default)(x).length>=process.stdout.columns&&(y=`${f} ${u}${m} +`,C=`${p} ${c} ${l} +`,(0,Zt.default)(y).length>=process.stdout.columns&&(y=(0,Vt.default)(`${f} ${u} +`,0,process.stdout.columns),C=(0,Vt.default)(`${p} ${m} +`,0,process.stdout.columns),w=(0,Vt.default)(`${p} ${c} ${l} +`,0,process.stdout.columns)),x=y+C+w),r+=x}for(o;o{let r=await Promise.all(e.map(async n=>{if((t==null?void 0:t.some(o=>n.startsWith(o)))||(t==null?void 0:t.some(o=>Qs.default.isMatch(n,o))))return 0;let i=await xe.xfs.statPromise(n);if(i.isFile())return i.mtimeMs;if(i.isDirectory()){let o=await xe.xfs.readdirPromise(n);return await ea(o.map(s=>`${n}${Xt.default.posix.sep}${s}`),t)}return 0}));return Math.max(...r)},Me=(e,t)=>{let r=Math.abs(t-e),n="",i=Math.trunc(r/6e4);return i&&(n+=`${i}m`,r-=i*6e4),r&&(i&&(n+=" "),n+=`${(r/1e3).toFixed(2)}s`),n};function Df(e){return new Promise(t=>setTimeout(t,e))}var ta=Js;var ra=$(M("child_process"));async function gn(e){return new Promise((t,r)=>{let n="";if(e.commit&&(n=`git diff --name-only ..${e.commit}`),e.sinceBranch&&e.sinceBranch.length>0&&(n=`git diff --name-only ${e.sinceBranch}...`),n.length===0)throw new Error("Unable to determine how to detect changes.");(0,ra.exec)(n,(i,o,s)=>{if(i&&r(i),o){let a=o.split(` +`),c=[...e.root.workspacesCwds].map(l=>{if(a.some(f=>f.startsWith(l.replace(`${e.root.cwd}/`,""))))return l}).filter(l=>!!l).map(l=>!!l&&e.root.project.workspacesByCwd.get(l)).filter(l=>!!l);t(c)}s&&t([])})})}var He=$(M("@yarnpkg/core"));var na=(e,t)=>{let r=[];for(let n of e.workspacesCwds){let i=t.workspacesByCwd.get(n);i&&r.push(i,...na(i,t))}return r},ia=async({targetWorkspace:e,project:t,supervisor:r})=>{try{if(e.workspacesCwds.size!==0){let n=na(e,t);for(let i of n)for(let o of He.Manifest.hardDependencies){for(let s of i.manifest.getForScope(o).values()){let a=t.tryWorkspaceByDescriptor(s);a!==null&&await r.addRunTarget(a)}await r.addRunTarget(i)}await r.addRunTarget(e)}else await r.addRunTarget(e)}catch(n){if(n instanceof Qt){let i=`${r.formatHeader("FATAL")} + +You have a cyclic dependency.`,o=n.node.lengthn.dep.length+4?"\u2934":"";i+=` + +${He.formatUtils.pretty(r.configuration,n.node,"white")} ${o} + \u21B3 ${He.formatUtils.pretty(r.configuration,n.dep,"red")} ${s} + +`,i+=He.formatUtils.pretty(r.configuration,` +--- + +To fix this error you must remove the cyclic dependency. + +Workspaces cannot directly or indirectly depend on each other. When running +the provided command yarn.build uses a parallelsied topological sort. This +maximises throughput (saving you time) while ensuring dependencies are run in +the order declared. + +In a cyclic dependency A depends on B, which depends on A. Or in an indirect cyclic +dependency, A depends on B, which depends on C, and C depends on A. + +In both cases A cannot be built, because to we cannot determine which one goes +first. + +--- +While some tooling may adapt to cyclic dependencies yarn.build cannot. Doing so +is unsound and unpredictable which goes against the stated goals of the tool. + +In most cases this issue occurs by accident when you delcare a dependency on the +wrong package. + +In some cases yuo may actually want the cyclic dependency. As that's not +possible, find the parts that are shared and move them to their own package +that both packages can depend on. +--- + +`,"grey"),i+=He.formatUtils.pretty(r.configuration,"FATAL: You have a cyclic dependency.","red"),console.error(i),process.exit(2)}else console.error("An error occured in yarn.build.",n)}};var bt=class extends Jt.BaseCommand{constructor(){super(...arguments);this.json=Z.Option.Boolean("--json",!1,{description:`flag is set the output will follow a JSON-stream output + also known as NDJSON (https://github.com/ndjson/ndjson-spec).`});this.all=Z.Option.Boolean("-A,--all",!1,{description:"run for all workspaces of a project"});this.buildCommand=Z.Option.String("-c,--build-command","build",{description:'the command to be run in each package (if available), defaults to "build"'});this.interlaced=Z.Option.Boolean("-i,--interlaced",!0,{description:"If false it will instead buffer the output from each process and print the resulting buffers only after their source processes have exited. Defaults to false."});this.verbose=Z.Option.Boolean("-v,--verbose",!1,{description:"more information will be logged to stdout than normal."});this.dryRun=Z.Option.Boolean("-d,--dry-run",!1,{description:"simulate running a build, but not actually run it"});this.ignoreBuildCache=Z.Option.Boolean("-r,--ignore-cache",!1,{description:"every package will be built, regardless of whether is has changed or not."});this.maxConcurrency=Z.Option.String("-m,--max-concurrency",{description:"is the maximum number of builds that can run at a time, defaults to the number of logical CPUs on the current machine. Will override the global config option."});this.continueOnError=Z.Option.Boolean("--continue-on-error",!1,{description:"if a build fails, continue with the rest"});this.exclude=Z.Option.Array("--exclude",{description:"exclude specifc packages or glob paths from being built, including their dependencies."});this.excludeCurrent=Z.Option.Boolean("--exclude-current",!1,{description:"build this workspaces dependencies, but not this workspace. Useful for running as part of a `dev` command."});this.onlyGitChanges=Z.Option.Boolean("--changes",!1,{description:"only build packages that were changed in the last commit"});this.onlyGitChangesSinceCommit=Z.Option.String("--since",{description:"only build packages that were changed since the given commit"});this.onlyGitChangesSinceBranch=Z.Option.String("--since-branch",{description:"only build packages that have changes compared to the give branch. Uses 'git diff --name-only branch...'",arity:1});this.onlyCurrent=Z.Option.Boolean("--only-current",!1,{description:"only build the current workspace"});this.buildTargets=Z.Option.Rest({name:"workspaceNames"});this.forceQuit=!1;this.buildLog={}}async execute(){var m,x;let t=await se.Configuration.find(this.context.cwd,this.context.plugins),{project:r,workspace:n}=await se.Project.find(t,this.context.cwd);if(!n)throw new Jt.WorkspaceRequiredError(r.cwd,this.context.cwd);let i=this.all?r.topLevelWorkspace:n,o=!1;i==r.topLevelWorkspace&&(o=!0);let s=[i,...this.buildTargets.length>0?i.getRecursiveWorkspaceChildren():[]];typeof this.onlyGitChangesSinceBranch=="string"?s=await gn({root:r.topLevelWorkspace,sinceBranch:this.onlyGitChangesSinceBranch}):(this.onlyGitChanges||this.onlyGitChangesSinceCommit)&&(s=await gn({root:r.topLevelWorkspace,commit:(m=this.onlyGitChangesSinceCommit)!=null?m:"1"})),Array.isArray(this.exclude)||(this.exclude=[]),this.excludeCurrent&&this.exclude.push(se.structUtils.stringifyIdent(n.locator)),!o&&this.onlyCurrent&&(this.maxConcurrency="1");let a=y=>{var C,w;return!o&&this.onlyCurrent?y!=n:(w=(C=this.exclude)==null?void 0:C.some(v=>xt.default.isMatch(se.structUtils.stringifyIdent(y.locator),v)||xt.default.isMatch(y.cwd,`${t.projectCwd}${yn.default.posix.sep}${v}`)))!=null?w:!1},u=y=>!o&&this.onlyCurrent?y==n:this.buildTargets.some(C=>xt.default.isMatch(se.structUtils.stringifyIdent(y.locator),C)||xt.default.isMatch(y.cwd,`${t.projectCwd}${yn.default.posix.sep}${C}`)),c=this.buildTargets.length>0?s.filter(u):s,l=await Wo(t);this.continueOnError=(x=this.continueOnError)!=null?x:!!l.bail;let f=this.maxConcurrency===void 0?l.maxConcurrency:parseInt(this.maxConcurrency),p=await se.StreamReport.start({configuration:t,json:this.json,stdout:this.context.stdout,includeLogs:!0},async y=>{let C=async(P,te,D,ae)=>{let H=new se.miscUtils.BufferStream;H.on("data",_=>D==null?void 0:D.emit(W.info,ae,_&&_.toString()));let T=new se.miscUtils.BufferStream;if(T.on("data",_=>D==null?void 0:D.emit(W.error,ae,_&&_.toString())),this.forceQuit)return H.destroy(),T.destroy(),H.end(),T.end(),2;try{let _=await this.cli.run(["run",P],{cwd:te,stdout:H,stderr:T})||0;return H.end(),T.end(),_}catch(_){H.end(),T.end()}return 2},w=new ta({project:r,configuration:t,pluginConfiguration:l,report:y,runCommand:this.buildCommand,cli:C,dryRun:this.dryRun,ignoreRunCache:this.ignoreBuildCache,verbose:this.verbose,concurrency:f,continueOnError:this.continueOnError,excludeWorkspacePredicate:a});w.runReporter.on(W.forceQuit,()=>{this.forceQuit=!0}),await w.setup();for(let P of c)await ia({targetWorkspace:P,project:r,supervisor:w});await w.run()===!1&&y.reportError(se.MessageName.BUILD_FAILED,"Build failed")});return et.hasBeenTerminated=!0,p.exitCode()}};bt.paths=[["build"]],bt.usage=Z.Command.Usage({category:"Build commands",description:"build a package and all its dependencies",details:` + In a monorepo with internal packages that depend on others, this command + will traverse the dependency graph and efficiently ensure, the packages + are built in the right order. + + `});var oa=bt;var ga=$(M("@yarnpkg/cli")),ya=$(M("@yarnpkg/core")),tr=$(M("@yarnpkg/core")),xa=$(M("clipanion"));var be=e=>{if(e==null)throw new Error("Invalid name");return e.scope?`@${e.scope}/${e.name}`:e.name};var sa=({workspace:e,project:t})=>{let r=Array.from(e.manifest.dependencies.values()).map(i=>be(i)),n=Array.from(t.workspaces.values()).map(i=>be(i.manifest.name));return r.filter(i=>n.includes(i))};var aa=({project:e,workspaceName:t})=>e.workspaces.find(n=>be(n.manifest.name)===t);var la=$(M("@yarnpkg/core"));var Mf={firstCharacters:"\u27A4 ",tabString:"\u2502 "},ua="gray",Ct=({format:e,padding:t,step:r=5,characters:n=Mf})=>{let{firstCharacters:i,tabString:o}=n,s=o.split("");for(let a=0;al{if(t){Ct({format:e,padding:s+1}),process.stdout.write(e(r,Hf)),process.stdout.write(e(" -> circular dependency",ca)),process.stdout.write(` +`);return}let a=aa({project:o,workspaceName:r});if(!a){Ct({format:e,padding:s+1}),process.stdout.write(r),process.stdout.write(e("-> incorrect dependency",ca)),process.stdout.write(` +`);return}er({format:e,project:o,parent:i,parents:[...n,i],padding:s+1,workspace:a})};var pa=({format:e,workspace:t,parent:r,parents:n,project:i,padding:o=0})=>{let s=sa({workspace:t,project:i});for(let a of s)fa({format:e,workspace:t,project:i,padding:o,parent:r,parents:n,current:be(t.manifest.name),circular:r===a||n.includes(a),dependency:a})};var ha=$(M("@yarnpkg/core"));var Bf=ha.FormatType.NAME,da=({format:e,workspace:t,padding:r=0})=>{let{name:n}=t.manifest,i=be(n);Ct({format:e,padding:r}),process.stdout.write(e(i,Bf)),process.stdout.write(` +`)};var er=({format:e,workspace:t,project:r,parents:n,padding:i=0,parent:o})=>{da({workspace:t,padding:i,format:e}),pa({parents:n,workspace:t,project:r,padding:i,parent:o,format:e})};var vt=({padding:e})=>{for(let t=0;t{let r=be(e.manifest.name);process.stdout.write(`Build query for package: ${t(r,"bold")}`),vt({padding:1})};var At=class extends ga.BaseCommand{async execute(){let t=await tr.Configuration.find(this.context.cwd,this.context.plugins),{project:r,workspace:n}=await tr.Project.find(t,this.context.cwd);if(!n)return 0;let i=(o,s)=>ya.formatUtils.pretty(t,o,s);return vt({padding:1}),ma({workspace:n,format:i}),er({parents:[],workspace:n,project:r,format:i}),vt({padding:2}),0}};At.paths=[["build","query"]],At.usage=xa.Command.Usage({category:"Build commands",description:"prints out dependency graph for current package",details:` + In a monorepo with internal packages that depend on others, this command + will traverse the dependency graph and efficiently ensure, the packages + are built in the right order. + + `});var ba=At;var qf={commands:[oa,ba]},Uf=qf;return jf;})(); +/*! + * fill-range + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Licensed under the MIT License. + */ +/*! + * is-number + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Released under the MIT License. + */ +/*! + * to-regex-range + * + * Copyright (c) 2015-present, Jon Schlinkert. + * Released under the MIT License. + */ +return plugin; +} +}; diff --git a/.yarn/plugins/@ojkelly/plugin-bundle.cjs b/.yarn/plugins/@ojkelly/plugin-bundle.cjs new file mode 100644 index 00000000..7e2a65d3 --- /dev/null +++ b/.yarn/plugins/@ojkelly/plugin-bundle.cjs @@ -0,0 +1,75 @@ +/* eslint-disable */ +//prettier-ignore +module.exports = { +name: "@ojkelly/plugin-bundle", +factory: function (require) { +var plugin=(()=>{var ro=Object.create,Ye=Object.defineProperty;var io=Object.getOwnPropertyDescriptor;var no=Object.getOwnPropertyNames;var to=Object.getPrototypeOf,oo=Object.prototype.hasOwnProperty;var ao=e=>Ye(e,"__esModule",{value:!0});var k=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var w=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),so=(e,r)=>{for(var i in r)Ye(e,i,{get:r[i],enumerable:!0})},lo=(e,r,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of no(r))!oo.call(e,n)&&n!=="default"&&Ye(e,n,{get:()=>r[n],enumerable:!(i=io(r,n))||i.enumerable});return e},j=e=>lo(ao(Ye(e!=null?ro(to(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Ni=w((eu,Li)=>{function ki(e){return Array.isArray(e)?e:[e]}var Ci="",Si=" ",lr="\\",uo=/^\s+$/,co=/^\\!/,fo=/^\\#/,ho=/\r?\n/g,po=/^\.*\/|^\.+$/,ur="/",Fi=typeof Symbol!="undefined"?Symbol.for("node-ignore"):"node-ignore",mo=(e,r,i)=>Object.defineProperty(e,r,{value:i}),go=/([0-z])-([0-z])/g,vo=e=>e.replace(go,(r,i,n)=>i.charCodeAt(0)<=n.charCodeAt(0)?r:Ci),yo=e=>{let{length:r}=e;return e.slice(0,r-r%2)},xo=[[/\\?\s+$/,e=>e.indexOf("\\")===0?Si:Ci],[/\\\s/g,()=>Si],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,r,i)=>r+6`${r}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>lr],[/\\\\/g,()=>lr],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,r,i,n,t)=>r===lr?`\\[${i}${yo(n)}${t}`:t==="]"&&n.length%2==0?`[${vo(i)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,r)=>`${r?`${r}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Oi=Object.create(null),wo=(e,r,i)=>{let n=Oi[e];if(n)return n;let t=xo.reduce((a,o)=>a.replace(o[0],o[1].bind(e)),e);return Oi[e]=i?new RegExp(t,"i"):new RegExp(t)},cr=e=>typeof e=="string",bo=e=>e&&cr(e)&&!uo.test(e)&&e.indexOf("#")!==0,Ao=e=>e.split(ho),Ii=class{constructor(r,i,n,t){this.origin=r,this.pattern=i,this.negative=n,this.regex=t}},_o=(e,r)=>{let i=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(co,"!").replace(fo,"#");let t=wo(e,n,r);return new Ii(i,e,n,t)},Eo=(e,r)=>{throw new r(e)},z=(e,r,i)=>cr(e)?e?z.isNotRelative(e)?i(`path should be a \`path.relative()\`d string, but got "${r}"`,RangeError):!0:i("path must not be empty",TypeError):i(`path must be a string, but got \`${r}\``,TypeError),Ti=e=>po.test(e);z.isNotRelative=Ti;z.convert=e=>e;var Pi=class{constructor({ignorecase:r=!0}={}){this._rules=[],this._ignorecase=r,mo(this,Fi,!0),this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(r){if(r&&r[Fi]){this._rules=this._rules.concat(r._rules),this._added=!0;return}if(bo(r)){let i=_o(r,this._ignorecase);this._added=!0,this._rules.push(i)}}add(r){return this._added=!1,ki(cr(r)?Ao(r):r).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(r){return this.add(r)}_testOne(r,i){let n=!1,t=!1;return this._rules.forEach(a=>{let{negative:o}=a;if(t===o&&n!==t||o&&!n&&!t&&!i)return;a.regex.test(r)&&(n=!o,t=o)}),{ignored:n,unignored:t}}_test(r,i,n,t){let a=r&&z.convert(r);return z(a,r,Eo),this._t(a,i,n,t)}_t(r,i,n,t){if(r in i)return i[r];if(t||(t=r.split(ur)),t.pop(),!t.length)return i[r]=this._testOne(r,n);let a=this._t(t.join(ur)+ur,i,n,t);return i[r]=a.ignored?a:this._testOne(r,n)}ignores(r){return this._test(r,this._ignoreCache,!1).ignored}createFilter(){return r=>!this.ignores(r)}filter(r){return ki(r).filter(this.createFilter())}test(r){return this._test(r,this._testCache,!0)}},$e=e=>new Pi(e),ko=()=>!1,Co=e=>z(e&&z.convert(e),e,ko);$e.isPathValid=Co;$e.default=$e;Li.exports=$e;if(typeof process!="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=i=>/^\\\\\?\\/.test(i)||/["<>|\u0000-\u001F]+/u.test(i)?i:i.replace(/\\/g,"/");z.convert=e;let r=/^[a-z]:\//i;z.isNotRelative=i=>r.test(i)||Ti(i)}});var Ri=w(fr=>{var te=k("path"),V=process.platform==="win32",Z=k("fs"),So=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Fo(){var e;if(So){var r=new Error;e=i}else e=n;return e;function i(t){t&&(r.message=t.message,t=r,n(t))}function n(t){if(t){if(process.throwDeprecation)throw t;if(!process.noDeprecation){var a="fs: missing callback "+(t.stack||t.message);process.traceDeprecation?console.trace(a):console.error(a)}}}}function Oo(e){return typeof e=="function"?e:Fo()}var ru=te.normalize;V?Q=/(.*?)(?:[\/\\]+|$)/g:Q=/(.*?)(?:[\/]+|$)/g;var Q;V?ke=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:ke=/^[\/]*/;var ke;fr.realpathSync=function(r,i){if(r=te.resolve(r),i&&Object.prototype.hasOwnProperty.call(i,r))return i[r];var n=r,t={},a={},o,s,l,u;c();function c(){var v=ke.exec(r);o=v[0].length,s=v[0],l=v[0],u="",V&&!a[l]&&(Z.lstatSync(l),a[l]=!0)}for(;o=r.length)return i&&(i[t]=r),n(null,r);Q.lastIndex=s;var v=Q.exec(r);return c=l,l+=v[0],u=c+v[1],s=Q.lastIndex,o[u]||i&&i[u]===u?process.nextTick(p):i&&Object.prototype.hasOwnProperty.call(i,u)?m(i[u]):Z.lstat(u,h)}function h(v,x){if(v)return n(v);if(!x.isSymbolicLink())return o[u]=!0,i&&(i[u]=u),process.nextTick(p);if(!V){var g=x.dev.toString(32)+":"+x.ino.toString(32);if(a.hasOwnProperty(g))return d(null,a[g],u)}Z.stat(u,function(S){if(S)return n(S);Z.readlink(u,function(C,R){V||(a[g]=R),d(C,R)})})}function d(v,x,g){if(v)return n(v);var S=te.resolve(c,x);i&&(i[g]=S),m(S)}function m(v){r=te.resolve(v,r.slice(s)),f()}}});var mr=w((nu,Mi)=>{Mi.exports=J;J.realpath=J;J.sync=dr;J.realpathSync=dr;J.monkeypatch=To;J.unmonkeypatch=Po;var de=k("fs"),hr=de.realpath,pr=de.realpathSync,Io=process.version,ji=/^v[0-5]\./.test(Io),Di=Ri();function qi(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function J(e,r,i){if(ji)return hr(e,r,i);typeof r=="function"&&(i=r,r=null),hr(e,r,function(n,t){qi(n)?Di.realpath(e,r,i):i(n,t)})}function dr(e,r){if(ji)return pr(e,r);try{return pr(e,r)}catch(i){if(qi(i))return Di.realpathSync(e,r);throw i}}function To(){de.realpath=J,de.realpathSync=dr}function Po(){de.realpath=hr,de.realpathSync=pr}});var Yi=w((tu,Bi)=>{Bi.exports=function(e,r){for(var i=[],n=0;n{"use strict";Ui.exports=$i;function $i(e,r,i){e instanceof RegExp&&(e=Gi(e,i)),r instanceof RegExp&&(r=Gi(r,i));var n=Hi(e,r,i);return n&&{start:n[0],end:n[1],pre:i.slice(0,n[0]),body:i.slice(n[0]+e.length,n[1]),post:i.slice(n[1]+r.length)}}function Gi(e,r){var i=r.match(e);return i?i[0]:null}$i.range=Hi;function Hi(e,r,i){var n,t,a,o,s,l=i.indexOf(e),u=i.indexOf(r,l+1),c=l;if(l>=0&&u>0){if(e===r)return[l,u];for(n=[],a=i.length;c>=0&&!s;)c==l?(n.push(c),l=i.indexOf(e,c+1)):n.length==1?s=[n.pop(),u]:(t=n.pop(),t=0?l:u;n.length&&(s=[a,o])}return s}});var en=w((au,Ji)=>{var No=Yi(),Ki=Wi();Ji.exports=Do;var zi="\0SLASH"+Math.random()+"\0",Qi="\0OPEN"+Math.random()+"\0",gr="\0CLOSE"+Math.random()+"\0",Xi="\0COMMA"+Math.random()+"\0",Vi="\0PERIOD"+Math.random()+"\0";function vr(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Ro(e){return e.split("\\\\").join(zi).split("\\{").join(Qi).split("\\}").join(gr).split("\\,").join(Xi).split("\\.").join(Vi)}function jo(e){return e.split(zi).join("\\").split(Qi).join("{").split(gr).join("}").split(Xi).join(",").split(Vi).join(".")}function Zi(e){if(!e)return[""];var r=[],i=Ki("{","}",e);if(!i)return e.split(",");var n=i.pre,t=i.body,a=i.post,o=n.split(",");o[o.length-1]+="{"+t+"}";var s=Zi(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),r.push.apply(r,o),r}function Do(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),me(Ro(e),!0).map(jo)):[]}function qo(e){return"{"+e+"}"}function Mo(e){return/^-?0\d/.test(e)}function Bo(e,r){return e<=r}function Yo(e,r){return e>=r}function me(e,r){var i=[],n=Ki("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var t=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),o=t||a,s=n.body.indexOf(",")>=0;if(!o&&!s)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+gr+n.post,me(e)):[e];var l;if(o)l=n.body.split(/\.\./);else if(l=Zi(n.body),l.length===1&&(l=me(l[0],!1).map(qo),l.length===1)){var c=n.post.length?me(n.post,!1):[""];return c.map(function(E){return n.pre+l[0]+E})}var u=n.pre,c=n.post.length?me(n.post,!1):[""],f;if(o){var p=vr(l[0]),h=vr(l[1]),d=Math.max(l[0].length,l[1].length),m=l.length==3?Math.abs(vr(l[2])):1,v=Bo,x=h0){var Ee=new Array(R+1).join("0");S<0?C="-"+Ee+C.slice(1):C=Ee+C}}f.push(C)}}else f=No(l,function(ne){return me(ne,!1)});for(var K=0;K{sn.exports=M;M.Minimatch=I;var Ce={sep:"/"};try{Ce=k("path")}catch(e){}var yr=M.GLOBSTAR=I.GLOBSTAR={},$o=en(),rn={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},xr="[^/]",wr=xr+"*?",Go="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Ho="(?:(?!(?:\\/|^)\\.).)*?",nn=Uo("().*{}+?[]^$\\!");function Uo(e){return e.split("").reduce(function(r,i){return r[i]=!0,r},{})}var tn=/\/+/;M.filter=Wo;function Wo(e,r){return r=r||{},function(i,n,t){return M(i,e,r)}}function on(e,r){e=e||{},r=r||{};var i={};return Object.keys(r).forEach(function(n){i[n]=r[n]}),Object.keys(e).forEach(function(n){i[n]=e[n]}),i}M.defaults=function(e){if(!e||!Object.keys(e).length)return M;var r=M,i=function(t,a,o){return r.minimatch(t,a,on(e,o))};return i.Minimatch=function(t,a){return new r.Minimatch(t,on(e,a))},i};I.defaults=function(e){return!e||!Object.keys(e).length?I:M.defaults(e).Minimatch};function M(e,r,i){if(typeof r!="string")throw new TypeError("glob pattern string required");return i||(i={}),!i.nocomment&&r.charAt(0)==="#"?!1:r.trim()===""?e==="":new I(r,i).match(e)}function I(e,r){if(!(this instanceof I))return new I(e,r);if(typeof e!="string")throw new TypeError("glob pattern string required");r||(r={}),e=e.trim(),Ce.sep!=="/"&&(e=e.split(Ce.sep).join("/")),this.options=r,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}I.prototype.debug=function(){};I.prototype.make=Ko;function Ko(){if(!this._made){var e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var i=this.globSet=this.braceExpand();r.debug&&(this.debug=console.error),this.debug(this.pattern,i),i=this.globParts=i.map(function(n){return n.split(tn)}),this.debug(this.pattern,i),i=i.map(function(n,t,a){return n.map(this.parse,this)},this),this.debug(this.pattern,i),i=i.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,i),this.set=i}}I.prototype.parseNegate=zo;function zo(){var e=this.pattern,r=!1,i=this.options,n=0;if(!i.nonegate){for(var t=0,a=e.length;t1024*64)throw new TypeError("pattern is too long");var i=this.options;if(!i.noglobstar&&e==="**")return yr;if(e==="")return"";var n="",t=!!i.nocase,a=!1,o=[],s=[],l,u=!1,c=-1,f=-1,p=e.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",h=this;function d(){if(l){switch(l){case"*":n+=wr,t=!0;break;case"?":n+=xr,t=!0;break;default:n+="\\"+l;break}h.debug("clearStateChar %j %j",l,n),l=!1}}for(var m=0,v=e.length,x;m-1;Y--){var q=s[Y],ne=n.slice(0,q.reStart),E=n.slice(q.reStart,q.reEnd-8),$=n.slice(q.reEnd-8,q.reEnd),G=n.slice(q.reEnd);$+=G;var pe=ne.split("(").length-1,or=G;for(m=0;m=0&&(t=e[a],!t);a--);for(a=0;a>> no match, partial?`,e,c,r,f),c===o))}var h;if(typeof l=="string"?(n.nocase?h=u.toLowerCase()===l.toLowerCase():h=u===l,this.debug("string match",l,u,h)):(h=u.match(l),this.debug("pattern match",l,u,h)),!h)return!1}if(t===o&&a===s)return!0;if(t===o)return i;if(a===s){var d=t===o-1&&e[t]==="";return d}throw new Error("wtf?")};function Zo(e){return e.replace(/\\(.)/g,"$1")}function Jo(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ln=w((lu,br)=>{typeof Object.create=="function"?br.exports=function(r,i){i&&(r.super_=i,r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:br.exports=function(r,i){if(i){r.super_=i;var n=function(){};n.prototype=i.prototype,r.prototype=new n,r.prototype.constructor=r}}});var un=w((uu,_r)=>{try{if(Ar=k("util"),typeof Ar.inherits!="function")throw"";_r.exports=Ar.inherits}catch(e){_r.exports=ln()}var Ar});var We=w((cu,Ue)=>{"use strict";function cn(e){return e.charAt(0)==="/"}function fn(e){var r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,i=r.exec(e),n=i[1]||"",t=Boolean(n&&n.charAt(1)!==":");return Boolean(i[2]||t)}Ue.exports=process.platform==="win32"?fn:cn;Ue.exports.posix=cn;Ue.exports.win32=fn});var kr=w(ee=>{ee.setopts=oa;ee.ownProp=hn;ee.makeAbs=Se;ee.finish=aa;ee.mark=sa;ee.isIgnored=dn;ee.childrenIgnored=la;function hn(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var ea=k("fs"),ge=k("path"),ra=He(),pn=We(),Er=ra.Minimatch;function ia(e,r){return e.localeCompare(r,"en")}function na(e,r){e.ignore=r.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(ta))}function ta(e){var r=null;if(e.slice(-3)==="/**"){var i=e.replace(/(\/\*\*)+$/,"");r=new Er(i,{dot:!0})}return{matcher:new Er(e,{dot:!0}),gmatcher:r}}function oa(e,r,i){if(i||(i={}),i.matchBase&&r.indexOf("/")===-1){if(i.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}e.silent=!!i.silent,e.pattern=r,e.strict=i.strict!==!1,e.realpath=!!i.realpath,e.realpathCache=i.realpathCache||Object.create(null),e.follow=!!i.follow,e.dot=!!i.dot,e.mark=!!i.mark,e.nodir=!!i.nodir,e.nodir&&(e.mark=!0),e.sync=!!i.sync,e.nounique=!!i.nounique,e.nonull=!!i.nonull,e.nosort=!!i.nosort,e.nocase=!!i.nocase,e.stat=!!i.stat,e.noprocess=!!i.noprocess,e.absolute=!!i.absolute,e.fs=i.fs||ea,e.maxLength=i.maxLength||Infinity,e.cache=i.cache||Object.create(null),e.statCache=i.statCache||Object.create(null),e.symlinks=i.symlinks||Object.create(null),na(e,i),e.changedCwd=!1;var n=process.cwd();hn(i,"cwd")?(e.cwd=ge.resolve(i.cwd),e.changedCwd=e.cwd!==n):e.cwd=n,e.root=i.root||ge.resolve(e.cwd,"/"),e.root=ge.resolve(e.root),process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=pn(e.cwd)?e.cwd:Se(e,e.cwd),process.platform==="win32"&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!i.nomount,i.nonegate=!0,i.nocomment=!0,e.minimatch=new Er(r,i),e.options=e.minimatch.options}function aa(e){for(var r=e.nounique,i=r?[]:Object.create(null),n=0,t=e.matches.length;n{yn.exports=vn;vn.GlobSync=O;var ua=mr(),mn=He(),hu=mn.Minimatch,pu=Fr().Glob,du=k("util"),Cr=k("path"),gn=k("assert"),Ke=We(),oe=kr(),ca=oe.setopts,Sr=oe.ownProp,fa=oe.childrenIgnored,ha=oe.isIgnored;function vn(e,r){if(typeof r=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob +See: https://github.com/isaacs/node-glob/issues/167`);return new O(e,r).found}function O(e,r){if(!e)throw new Error("must provide pattern");if(typeof r=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob +See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof O))return new O(e,r);if(ca(this,e,r),this.noprocess)return this;var i=this.minimatch.set.length;this.matches=new Array(i);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&Sr(this.cache,r)){var o=this.cache[r];if(Array.isArray(o)&&(o="DIR"),!i||o==="DIR")return o;if(i&&o==="FILE")return!1}var n,t=this.statCache[r];if(!t){var a;try{a=this.fs.lstatSync(r)}catch(s){if(s&&(s.code==="ENOENT"||s.code==="ENOTDIR"))return this.statCache[r]=!1,!1}if(a&&a.isSymbolicLink())try{t=this.fs.statSync(r)}catch(s){t=a}else t=a}this.statCache[r]=t;var o=!0;return t&&(o=t.isDirectory()?"DIR":"FILE"),this.cache[r]=this.cache[r]||o,i&&o==="FILE"?!1:o};O.prototype._mark=function(e){return oe.mark(this,e)};O.prototype._makeAbs=function(e){return oe.makeAbs(this,e)}});var Or=w((gu,bn)=>{bn.exports=wn;function wn(e,r){if(e&&r)return wn(e)(r);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){i[n]=e[n]}),i;function i(){for(var n=new Array(arguments.length),t=0;t{var An=Or();Ir.exports=An(ze);Ir.exports.strict=An(_n);ze.proto=ze(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ze(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return _n(this)},configurable:!0})});function ze(e){var r=function(){return r.called?r.value:(r.called=!0,r.value=e.apply(this,arguments))};return r.called=!1,r}function _n(e){var r=function(){if(r.called)throw new Error(r.onceError);return r.called=!0,r.value=e.apply(this,arguments)},i=e.name||"Function wrapped with `once`";return r.onceError=i+" shouldn't be called more than once",r.called=!1,r}});var kn=w((yu,En)=>{var pa=Or(),Fe=Object.create(null),da=Tr();En.exports=pa(ma);function ma(e,r){return Fe[e]?(Fe[e].push(r),null):(Fe[e]=[r],ga(e))}function ga(e){return da(function r(){var i=Fe[e],n=i.length,t=va(arguments);try{for(var a=0;an?(i.splice(0,n),process.nextTick(function(){r.apply(null,t)})):delete Fe[e]}})}function va(e){for(var r=e.length,i=[],n=0;n{Sn.exports=se;var ya=mr(),Cn=He(),xu=Cn.Minimatch,xa=un(),wa=k("events").EventEmitter,Pr=k("path"),Lr=k("assert"),Oe=We(),Nr=xn(),ae=kr(),ba=ae.setopts,Rr=ae.ownProp,jr=kn(),wu=k("util"),Aa=ae.childrenIgnored,_a=ae.isIgnored,Ea=Tr();function se(e,r,i){if(typeof r=="function"&&(i=r,r={}),r||(r={}),r.sync){if(i)throw new TypeError("callback provided to sync glob");return Nr(e,r)}return new b(e,r,i)}se.sync=Nr;var ka=se.GlobSync=Nr.GlobSync;se.glob=se;function Ca(e,r){if(r===null||typeof r!="object")return e;for(var i=Object.keys(r),n=i.length;n--;)e[i[n]]=r[i[n]];return e}se.hasMagic=function(e,r){var i=Ca({},r);i.noprocess=!0;var n=new b(e,i),t=n.minimatch.set;if(!e)return!1;if(t.length>1)return!0;for(var a=0;athis.maxLength)return r();if(!this.stat&&Rr(this.cache,i)){var t=this.cache[i];if(Array.isArray(t)&&(t="DIR"),!n||t==="DIR")return r(null,t);if(n&&t==="FILE")return r()}var a,o=this.statCache[i];if(o!==void 0){if(o===!1)return r(null,o);var s=o.isDirectory()?"DIR":"FILE";return n&&s==="FILE"?r():r(null,s,o)}var l=this,u=jr("stat\0"+i,c);u&&l.fs.lstat(i,u);function c(f,p){if(p&&p.isSymbolicLink())return l.fs.stat(i,function(h,d){h?l._stat2(e,i,null,p,r):l._stat2(e,i,h,d,r)});l._stat2(e,i,f,p,r)}};b.prototype._stat2=function(e,r,i,n,t){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR"))return this.statCache[r]=!1,t();var a=e.slice(-1)==="/";if(this.statCache[r]=n,r.slice(-1)==="/"&&n&&!n.isDirectory())return t(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[r]=this.cache[r]||o,a&&o==="FILE"?t():t(null,o,n)}});var On=w((Au,le)=>{var Ie=Fr(),Fn=function(e,r){return new Promise((i,n)=>{Ie(e,r,(t,a)=>t===null?i(a):n(t))})};le.exports=Fn;le.exports.glob=Ie;le.exports.Glob=Ie.Glob;le.exports.hasMagic=Ie.hasMagic;le.exports.promise=Fn;le.exports.sync=Ie.sync});var ve=w((Nu,ue)=>{"use strict";function Rn(e){return typeof e=="undefined"||e===null}function Ia(e){return typeof e=="object"&&e!==null}function Ta(e){return Array.isArray(e)?e:Rn(e)?[]:[e]}function Pa(e,r){var i,n,t,a;if(r)for(a=Object.keys(r),i=0,n=a.length;i{"use strict";function jn(e,r){var i="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(i+=` + +`+e.mark.snippet),n+" "+i):n}function Te(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=jn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Te.prototype=Object.create(Error.prototype);Te.prototype.constructor=Te;Te.prototype.toString=function(r){return this.name+": "+jn(this,r)};Dn.exports=Te});var Mn=w((ju,qn)=>{"use strict";var Pe=ve();function qr(e,r,i,n,t){var a="",o="",s=Math.floor(t/2)-1;return n-r>s&&(a=" ... ",r=n-s+a.length),i-n>s&&(o=" ...",i=n+s-o.length),{str:a+e.slice(r,i).replace(/\t/g,"\u2192")+o,pos:n-r+a.length}}function Mr(e,r){return Pe.repeat(" ",r-e.length)+e}function Ra(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var i=/\r?\n|\r|\0/g,n=[0],t=[],a,o=-1;a=i.exec(e.buffer);)t.push(a.index),n.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var s="",l,u,c=Math.min(e.line+r.linesAfter,t.length).toString().length,f=r.maxLength-(r.indent+c+3);for(l=1;l<=r.linesBefore&&!(o-l<0);l++)u=qr(e.buffer,n[o-l],t[o-l],e.position-(n[o]-n[o-l]),f),s=Pe.repeat(" ",r.indent)+Mr((e.line-l+1).toString(),c)+" | "+u.str+` +`+s;for(u=qr(e.buffer,n[o],t[o],e.position,f),s+=Pe.repeat(" ",r.indent)+Mr((e.line+1).toString(),c)+" | "+u.str+` +`,s+=Pe.repeat("-",r.indent+c+3+u.pos)+`^ +`,l=1;l<=r.linesAfter&&!(o+l>=t.length);l++)u=qr(e.buffer,n[o+l],t[o+l],e.position-(n[o]-n[o+l]),f),s+=Pe.repeat(" ",r.indent)+Mr((e.line+l+1).toString(),c)+" | "+u.str+` +`;return s.replace(/\n$/,"")}qn.exports=Ra});var T=w((Du,Yn)=>{"use strict";var Bn=ye(),ja=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Da=["scalar","sequence","mapping"];function qa(e){var r={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(n){r[String(n)]=i})}),r}function Ma(e,r){if(r=r||{},Object.keys(r).forEach(function(i){if(ja.indexOf(i)===-1)throw new Bn('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(i){return i},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=qa(r.styleAliases||null),Da.indexOf(this.kind)===-1)throw new Bn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}Yn.exports=Ma});var $r=w((qu,Gn)=>{"use strict";var Le=ye(),Br=T();function $n(e,r){var i=[];return e[r].forEach(function(n){var t=i.length;i.forEach(function(a,o){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(t=o)}),i[t]=n}),i}function Ba(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,i;function n(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(r=0,i=arguments.length;r{"use strict";var Ya=T();Hn.exports=new Ya("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Hr=w((Bu,Un)=>{"use strict";var $a=T();Un.exports=new $a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Ur=w((Yu,Wn)=>{"use strict";var Ga=T();Wn.exports=new Ga("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Wr=w(($u,Kn)=>{"use strict";var Ha=$r();Kn.exports=new Ha({explicit:[Gr(),Hr(),Ur()]})});var Kr=w((Gu,zn)=>{"use strict";var Ua=T();function Wa(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Ka(){return null}function za(e){return e===null}zn.exports=new Ua("tag:yaml.org,2002:null",{kind:"scalar",resolve:Wa,construct:Ka,predicate:za,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var zr=w((Hu,Qn)=>{"use strict";var Qa=T();function Xa(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Va(e){return e==="true"||e==="True"||e==="TRUE"}function Za(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Qn.exports=new Qa("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Xa,construct:Va,predicate:Za,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Qr=w((Uu,Xn)=>{"use strict";var Ja=ve(),es=T();function rs(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function is(e){return 48<=e&&e<=55}function ns(e){return 48<=e&&e<=57}function ts(e){if(e===null)return!1;var r=e.length,i=0,n=!1,t;if(!r)return!1;if(t=e[i],(t==="-"||t==="+")&&(t=e[++i]),t==="0"){if(i+1===r)return!0;if(t=e[++i],t==="b"){for(i++;i=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Xr=w((Wu,Zn)=>{"use strict";var Vn=ve(),ss=T(),ls=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function us(e){return!(e===null||!ls.test(e)||e[e.length-1]==="_")}function cs(e){var r,i;return r=e.replace(/_/g,"").toLowerCase(),i=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:i*parseFloat(r,10)}var fs=/^[-+]?[0-9]+e/;function hs(e,r){var i;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Vn.isNegativeZero(e))return"-0.0";return i=e.toString(10),fs.test(i)?i.replace("e",".e"):i}function ps(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!=0||Vn.isNegativeZero(e))}Zn.exports=new ss("tag:yaml.org,2002:float",{kind:"scalar",resolve:us,construct:cs,predicate:ps,represent:hs,defaultStyle:"lowercase"})});var Vr=w((Ku,Jn)=>{"use strict";Jn.exports=Wr().extend({implicit:[Kr(),zr(),Qr(),Xr()]})});var Zr=w((zu,et)=>{"use strict";et.exports=Vr()});var Jr=w((Qu,nt)=>{"use strict";var ds=T(),rt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),it=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ms(e){return e===null?!1:rt.exec(e)!==null||it.exec(e)!==null}function gs(e){var r,i,n,t,a,o,s,l=0,u=null,c,f,p;if(r=rt.exec(e),r===null&&(r=it.exec(e)),r===null)throw new Error("Date resolve error");if(i=+r[1],n=+r[2]-1,t=+r[3],!r[4])return new Date(Date.UTC(i,n,t));if(a=+r[4],o=+r[5],s=+r[6],r[7]){for(l=r[7].slice(0,3);l.length<3;)l+="0";l=+l}return r[9]&&(c=+r[10],f=+(r[11]||0),u=(c*60+f)*6e4,r[9]==="-"&&(u=-u)),p=new Date(Date.UTC(i,n,t,a,o,s,l)),u&&p.setTime(p.getTime()-u),p}function vs(e){return e.toISOString()}nt.exports=new ds("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ms,construct:gs,instanceOf:Date,represent:vs})});var ei=w((Xu,tt)=>{"use strict";var ys=T();function xs(e){return e==="<<"||e===null}tt.exports=new ys("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xs})});var ii=w((Vu,ot)=>{"use strict";var ws=T(),ri=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function bs(e){if(e===null)return!1;var r,i,n=0,t=e.length,a=ri;for(i=0;i64)){if(r<0)return!1;n+=6}return n%8==0}function As(e){var r,i,n=e.replace(/[\r\n=]/g,""),t=n.length,a=ri,o=0,s=[];for(r=0;r>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(n.charAt(r));return i=t%4*6,i===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):i===18?(s.push(o>>10&255),s.push(o>>2&255)):i===12&&s.push(o>>4&255),new Uint8Array(s)}function _s(e){var r="",i=0,n,t,a=e.length,o=ri;for(n=0;n>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[i&63]),i=(i<<8)+e[n];return t=a%3,t===0?(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[i&63]):t===2?(r+=o[i>>10&63],r+=o[i>>4&63],r+=o[i<<2&63],r+=o[64]):t===1&&(r+=o[i>>2&63],r+=o[i<<4&63],r+=o[64],r+=o[64]),r}function Es(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}ot.exports=new ws("tag:yaml.org,2002:binary",{kind:"scalar",resolve:bs,construct:As,predicate:Es,represent:_s})});var ni=w((Zu,at)=>{"use strict";var ks=T(),Cs=Object.prototype.hasOwnProperty,Ss=Object.prototype.toString;function Fs(e){if(e===null)return!0;var r=[],i,n,t,a,o,s=e;for(i=0,n=s.length;i{"use strict";var Is=T(),Ts=Object.prototype.toString;function Ps(e){if(e===null)return!0;var r,i,n,t,a,o=e;for(a=new Array(o.length),r=0,i=o.length;r{"use strict";var Ns=T(),Rs=Object.prototype.hasOwnProperty;function js(e){if(e===null)return!0;var r,i=e;for(r in i)if(Rs.call(i,r)&&i[r]!==null)return!1;return!0}function Ds(e){return e!==null?e:{}}lt.exports=new Ns("tag:yaml.org,2002:set",{kind:"mapping",resolve:js,construct:Ds})});var Xe=w((rc,ut)=>{"use strict";ut.exports=Zr().extend({implicit:[Jr(),ei()],explicit:[ii(),ni(),ti(),oi()]})});var kt=w((ic,ui)=>{"use strict";var ce=ve(),ct=ye(),qs=Mn(),Ms=Xe(),re=Object.prototype.hasOwnProperty,Ve=1,ft=2,ht=3,Ze=4,ai=1,Bs=2,pt=3,Ys=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$s=/[\x85\u2028\u2029]/,Gs=/[,\[\]\{\}]/,dt=/^(?:!|!!|![a-z\-]+!)$/i,mt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gt(e){return Object.prototype.toString.call(e)}function H(e){return e===10||e===13}function fe(e){return e===9||e===32}function D(e){return e===9||e===32||e===10||e===13}function xe(e){return e===44||e===91||e===93||e===123||e===125}function Hs(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function Us(e){return e===120?2:e===117?4:e===85?8:0}function Ws(e){return 48<=e&&e<=57?e-48:-1}function vt(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` +`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Ks(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var yt=new Array(256),xt=new Array(256);for(var we=0;we<256;we++)yt[we]=vt(we)?1:0,xt[we]=vt(we);function zs(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||Ms,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function wt(e,r){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=qs(i),new ct(r,i)}function y(e,r){throw wt(e,r)}function Je(e,r){e.onWarning&&e.onWarning.call(null,wt(e,r))}var bt={YAML:function(r,i,n){var t,a,o;r.version!==null&&y(r,"duplication of %YAML directive"),n.length!==1&&y(r,"YAML directive accepts exactly one argument"),t=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),t===null&&y(r,"ill-formed argument of the YAML directive"),a=parseInt(t[1],10),o=parseInt(t[2],10),a!==1&&y(r,"unacceptable YAML version of the document"),r.version=n[0],r.checkLineBreaks=o<2,o!==1&&o!==2&&Je(r,"unsupported YAML version of the document")},TAG:function(r,i,n){var t,a;n.length!==2&&y(r,"TAG directive accepts exactly two arguments"),t=n[0],a=n[1],dt.test(t)||y(r,"ill-formed tag handle (first argument) of the TAG directive"),re.call(r.tagMap,t)&&y(r,'there is a previously declared suffix for "'+t+'" tag handle'),mt.test(a)||y(r,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(o){y(r,"tag prefix is malformed: "+a)}r.tagMap[t]=a}};function ie(e,r,i,n){var t,a,o,s;if(r1&&(e.result+=ce.repeat(` +`,r-1))}function Qs(e,r,i){var n,t,a,o,s,l,u,c,f=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),D(h)||xe(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(t=e.input.charCodeAt(e.position+1),D(t)||i&&xe(t)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;h!==0;){if(h===58){if(t=e.input.charCodeAt(e.position+1),D(t)||i&&xe(t))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),D(n))break}else{if(e.position===e.lineStart&&er(e)||i&&xe(h))break;if(H(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,F(e,!1,-1),e.lineIndent>=r){s=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=u,e.lineIndent=c;break}}s&&(ie(e,a,o,!1),li(e,e.line-l),a=o=e.position,s=!1),fe(h)||(o=e.position+1),h=e.input.charCodeAt(++e.position)}return ie(e,a,o,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function Xs(e,r){var i,n,t;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=t=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(ie(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,t=e.position;else return!0;else H(i)?(ie(e,n,t,!0),li(e,F(e,!1,r)),n=t=e.position):e.position===e.lineStart&&er(e)?y(e,"unexpected end of the document within a single quoted scalar"):(e.position++,t=e.position);y(e,"unexpected end of the stream within a single quoted scalar")}function Vs(e,r){var i,n,t,a,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ie(e,i,e.position,!0),e.position++,!0;if(s===92){if(ie(e,i,e.position,!0),s=e.input.charCodeAt(++e.position),H(s))F(e,!1,r);else if(s<256&&yt[s])e.result+=xt[s],e.position++;else if((o=Us(s))>0){for(t=o,a=0;t>0;t--)s=e.input.charCodeAt(++e.position),(o=Hs(s))>=0?a=(a<<4)+o:y(e,"expected hexadecimal character");e.result+=Ks(a),e.position++}else y(e,"unknown escape sequence");i=n=e.position}else H(s)?(ie(e,i,n,!0),li(e,F(e,!1,r)),i=n=e.position):e.position===e.lineStart&&er(e)?y(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}y(e,"unexpected end of the stream within a double quoted scalar")}function Zs(e,r){var i=!0,n,t,a,o=e.tag,s,l=e.anchor,u,c,f,p,h,d=Object.create(null),m,v,x,g;if(g=e.input.charCodeAt(e.position),g===91)c=93,h=!1,s=[];else if(g===123)c=125,h=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(F(e,!0,r),g=e.input.charCodeAt(e.position),g===c)return e.position++,e.tag=o,e.anchor=l,e.kind=h?"mapping":"sequence",e.result=s,!0;i?g===44&&y(e,"expected the node content, but found ','"):y(e,"missed comma between flow collection entries"),v=m=x=null,f=p=!1,g===63&&(u=e.input.charCodeAt(e.position+1),D(u)&&(f=p=!0,e.position++,F(e,!0,r))),n=e.line,t=e.lineStart,a=e.position,Ae(e,r,Ve,!1,!0),v=e.tag,m=e.result,F(e,!0,r),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(f=!0,g=e.input.charCodeAt(++e.position),F(e,!0,r),Ae(e,r,Ve,!1,!0),x=e.result),h?be(e,s,d,v,m,x,n,t,a):f?s.push(be(e,null,d,v,m,x,n,t,a)):s.push(m),F(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(i=!0,g=e.input.charCodeAt(++e.position)):i=!1}y(e,"unexpected end of the stream within a flow collection")}function Js(e,r){var i,n,t=ai,a=!1,o=!1,s=r,l=0,u=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)ai===t?t=f===43?pt:Bs:y(e,"repeat of a chomping mode identifier");else if((c=Ws(f))>=0)c===0?y(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?y(e,"repeat of an indentation width identifier"):(s=r+c-1,o=!0);else break;if(fe(f)){do f=e.input.charCodeAt(++e.position);while(fe(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!H(f)&&f!==0)}for(;f!==0;){for(si(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),H(f)){l++;continue}if(e.lineIndentr)&&l!==0)y(e,"bad indentation of a sequence entry");else if(e.lineIndentr)&&(v&&(o=e.line,s=e.lineStart,l=e.position),Ae(e,r,Ze,!0,t)&&(v?d=e.result:m=e.result),v||(be(e,f,p,h,d,m,o,s,l),h=d=m=null),F(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>r)&&g!==0)y(e,"bad indentation of a mapping entry");else if(e.lineIndentr?l=1:e.lineIndent===r?l=0:e.lineIndentr?l=1:e.lineIndent===r?l=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f"),e.result!==null&&d.kind!==e.kind&&y(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):y(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function tl(e){var r=e.position,i,n,t,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(F(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),i=e.position;o!==0&&!D(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(i,e.position),t=[],n.length<1&&y(e,"directive name must not be less than one character in length");o!==0;){for(;fe(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!H(o));break}if(H(o))break;for(i=e.position;o!==0&&!D(o);)o=e.input.charCodeAt(++e.position);t.push(e.input.slice(i,e.position))}o!==0&&si(e),re.call(bt,n)?bt[n](e,n,t):Je(e,'unknown document directive "'+n+'"')}if(F(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,F(e,!0,-1)):a&&y(e,"directives end mark is expected"),Ae(e,e.lineIndent-1,Ze,!1,!0),F(e,!0,-1),e.checkLineBreaks&&$s.test(e.input.slice(r,e.position))&&Je(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&er(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,F(e,!0,-1));return}if(e.position{"use strict";var rr=ve(),Ne=ye(),sl=Xe(),Ct=Object.prototype.toString,St=Object.prototype.hasOwnProperty,ci=65279,ll=9,Re=10,ul=13,cl=32,fl=33,hl=34,fi=35,pl=37,dl=38,ml=39,gl=42,Ft=44,vl=45,ir=58,yl=61,xl=62,wl=63,bl=64,Ot=91,It=93,Al=96,Tt=123,_l=124,Pt=125,P={};P[0]="\\0";P[7]="\\a";P[8]="\\b";P[9]="\\t";P[10]="\\n";P[11]="\\v";P[12]="\\f";P[13]="\\r";P[27]="\\e";P[34]='\\"';P[92]="\\\\";P[133]="\\N";P[160]="\\_";P[8232]="\\L";P[8233]="\\P";var El=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],kl=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Cl(e,r){var i,n,t,a,o,s,l;if(r===null)return{};for(i={},n=Object.keys(r),t=0,a=n.length;t=55296&&i<=56319&&r+1=56320&&n<=57343)?(i-55296)*1024+n-56320+65536:i}function jt(e){var r=/^\n* /;return r.test(e)}var Dt=1,pi=2,qt=3,Mt=4,_e=5;function Ll(e,r,i,n,t,a,o,s){var l,u=0,c=null,f=!1,p=!1,h=n!==-1,d=-1,m=Tl(qe(e,0))&&Pl(qe(e,e.length-1));if(r||o)for(l=0;l=65536?l+=2:l++){if(u=qe(e,l),!De(u))return _e;m=m&&Rt(u,c,s),c=u}else{for(l=0;l=65536?l+=2:l++){if(u=qe(e,l),u===Re)f=!0,h&&(p=p||l-d-1>n&&e[d+1]!==" ",d=l);else if(!De(u))return _e;m=m&&Rt(u,c,s),c=u}p=p||h&&l-d-1>n&&e[d+1]!==" "}return!f&&!p?m&&!o&&!t(e)?Dt:a===je?_e:pi:i>9&&jt(e)?_e:o?a===je?_e:pi:p?Mt:qt}function Nl(e,r,i,n,t){e.dump=function(){if(r.length===0)return e.quotingType===je?'""':"''";if(!e.noCompatMode&&(El.indexOf(r)!==-1||kl.test(r)))return e.quotingType===je?'"'+r+'"':"'"+r+"'";var a=e.indent*Math.max(1,i),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=n||e.flowLevel>-1&&i>=e.flowLevel;function l(u){return Il(e,u)}switch(Ll(r,s,e.indent,o,l,e.quotingType,e.forceQuotes&&!n,t)){case Dt:return r;case pi:return"'"+r.replace(/'/g,"''")+"'";case qt:return"|"+Bt(r,e.indent)+Yt(Lt(r,a));case Mt:return">"+Bt(r,e.indent)+Yt(Lt(Rl(r,o),a));case _e:return'"'+jl(r,o)+'"';default:throw new Ne("impossible error: invalid scalar style")}}()}function Bt(e,r){var i=jt(e)?String(r):"",n=e[e.length-1]===` +`,t=n&&(e[e.length-2]===` +`||e===` +`),a=t?"+":n?"":"-";return i+a+` +`}function Yt(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function Rl(e,r){for(var i=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(` +`);return u=u!==-1?u:e.length,i.lastIndex=u,$t(e.slice(0,u),r)}(),t=e[0]===` +`||e[0]===" ",a,o;o=i.exec(e);){var s=o[1],l=o[2];a=l[0]===" ",n+=s+(!t&&!a&&l!==""?` +`:"")+$t(l,r),t=a}return n}function $t(e,r){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,n,t=0,a,o=0,s=0,l="";n=i.exec(e);)s=n.index,s-t>r&&(a=o>t?o:s,l+=` +`+e.slice(t,a),t=a+1),o=s;return l+=` +`,e.length-t>r&&o>t?l+=e.slice(t,o)+` +`+e.slice(o+1):l+=e.slice(t),l.slice(1)}function jl(e){for(var r="",i=0,n,t=0;t=65536?t+=2:t++)i=qe(e,t),n=P[i],!n&&De(i)?(r+=e[t],i>=65536&&(r+=e[t+1])):r+=n||Sl(i);return r}function Dl(e,r,i){var n="",t=e.tag,a,o,s;for(a=0,o=i.length;a1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),!!X(e,r,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=t,e.dump="{"+n+"}"}function Ml(e,r,i,n){var t="",a=e.tag,o=Object.keys(i),s,l,u,c,f,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Ne("sortKeys must be a boolean or a function");for(s=0,l=o.length;s1024,f&&(e.dump&&Re===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=hi(e,r)),!!X(e,r+1,c,!0,f)&&(e.dump&&Re===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,t+=p));e.tag=a,e.dump=t||"{}"}function Ht(e,r,i){var n,t,a,o,s,l;for(t=i?e.explicitTypes:e.implicitTypes,a=0,o=t.length;a tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function X(e,r,i,n,t,a,o){e.tag=null,e.dump=i,Ht(e,i,!1)||Ht(e,i,!0);var s=Ct.call(e.dump),l=n,u;n&&(n=e.flowLevel<0||e.flowLevel>r);var c=s==="[object Object]"||s==="[object Array]",f,p;if(c&&(f=e.duplicates.indexOf(i),p=f!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&r>0)&&(t=!1),p&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(c&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(Ml(e,r,e.dump,t),p&&(e.dump="&ref_"+f+e.dump)):(ql(e,r,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&r>0?Gt(e,r-1,e.dump,t):Gt(e,r,e.dump,t),p&&(e.dump="&ref_"+f+e.dump)):(Dl(e,r,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&Nl(e,e.dump,r,a,l);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ne("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function Bl(e,r){var i=[],n=[],t,a;for(di(e,i,n),t=0,a=n.length;t{"use strict";var Kt=kt(),$l=Wt();function mi(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}L.exports.Type=T();L.exports.Schema=$r();L.exports.FAILSAFE_SCHEMA=Wr();L.exports.JSON_SCHEMA=Vr();L.exports.CORE_SCHEMA=Zr();L.exports.DEFAULT_SCHEMA=Xe();L.exports.load=Kt.load;L.exports.loadAll=Kt.loadAll;L.exports.dump=$l.dump;L.exports.YAMLException=ye();L.exports.types={binary:ii(),float:Xr(),map:Ur(),null:Kr(),pairs:ti(),set:oi(),timestamp:Jr(),bool:zr(),int:Qr(),merge:ei(),omap:ni(),seq:Hr(),str:Gr()};L.exports.safeLoad=mi("safeLoad","load");L.exports.safeLoadAll=mi("safeLoadAll","loadAll");L.exports.safeDump=mi("safeDump","dump")});var Xl={};so(Xl,{default:()=>Ql});var he=j(k("@yarnpkg/cli")),N=j(k("@yarnpkg/core")),Xt=j(k("@yarnpkg/libzip")),_=j(k("@yarnpkg/fslib")),B=j(k("clipanion")),vi=j(k("path"));var bi=j(k("fs")),Ai=async e=>{try{return(0,bi.readFileSync)(e,"utf-8").split(` +`)}catch(r){return[]}};var _i=j(k("path")),Ei=({ignoreFile:e,cwd:r})=>(0,_i.join)(r,e);var Pn=j(Ni());var In=j(On()),Tn=async({cwd:e})=>{try{return(await(0,In.default)(`${e}/**/*`,{dot:!0})).map(i=>{var n;return(n=i.split(`${e}/`)[1])!=null?n:""}).filter(Boolean)}catch(r){return[]}};var Dr=async({exclude:e,ignoreFile:r,cwd:i})=>{let n=Ei({ignoreFile:r,cwd:i}),t=(0,Pn.default)().add([...e,...await Ai(n)]);return(await Tn({cwd:i})).filter(s=>t.ignores(s)).map(s=>`${i}/${s}`)};var Ln=["package.json","package.yaml","package.yml"];var Qe=j(k("path")),Fa={directory:({cwd:e})=>[e],parentDirectories:({cwd:e,rootDir:r})=>{if(!e.startsWith(r))throw new Error("Package directory not in rootDir. This should never happen");let i=e,n=[];for(;;){if(i===r||i.lengthLn.map(r=>(0,Qe.join)(e,r))},Oa=({cwd:e,rootDir:r})=>[...new Set(...[Object.values(Fa).map(i=>i({cwd:e,rootDir:r})).flat()])],Nn=({workspaces:e,rootDir:r})=>Array.from(e).map(({cwd:i})=>Oa({cwd:i,rootDir:r})).flat();var Me=j(k("@yarnpkg/fslib")),A=j(k("typanion")),tr=j(zt()),Gl=".yarnbuildrc.yml",gi=".bundleignore",Hl=A.isObject({folders:A.isObject({input:A.isOneOf([A.isString(),A.isArray(A.isString())]),output:A.isOneOf([A.isString(),A.isArray(A.isString())])}),exclude:A.isArray(A.isString()),bail:A.isBoolean(),hideYarnBuildBadge:A.isBoolean(),ignoreFile:A.isString(),maxConcurrency:A.isOptional(A.applyCascade(A.isNumber(),[A.isInteger(),A.isInInclusiveRange(1,128)]))}),Ul={folders:{input:".",output:["build","node_modules"]},exclude:[],bail:!0,hideYarnBuildBadge:!1,ignoreFile:gi,maxConcurrency:8};async function Wl(e){let r=Gl,i=Me.ppath.join(e.projectCwd||e.startingCwd,r);if(Me.xfs.existsSync(i)){let n=await Me.xfs.readFilePromise(i,"utf8"),t=[];try{let a=(0,tr.load)(n,{schema:tr.JSON_SCHEMA});if(Hl(a,{errors:t}))return a;console.warn(t)}catch(a){let o="";throw n.match(/^\s+(?!-)[^:]+\s+\S+/m)&&(o=" (config is corrupted, please check it matches the shape in the yarn.build readme."),new Error(`Parse error when loading ${i}; please check it's proper Yaml${o}`)}}return Ul}async function Qt(e){return await Wl(e)}var U;(function(a){a.Info="YB1000",a.RemoveUnusedPackages="YB1001",a.RemoveEmptyDirectories="YB1002",a.RemoveExcluded="YB1003",a.AddedEntryPoint="YB1004"})(U||(U={}));var W;(function(n){n.Start=" \u250C ",n.Progress=" \u2502 ",n.End=" \u2514 "})(W||(W={}));var Be=class extends he.BaseCommand{constructor(){super(...arguments);this.json=B.Option.Boolean("--json",!1,{description:"flag is set the output will follow a JSON-stream output also known as NDJSON (https://github.com/ndjson/ndjson-spec)"});this.quiet=B.Option.Boolean("-q,--quiet",!1,{description:"suppress progess messages"});this.temporaryDirectory=B.Option.String("--temporary-directory",{description:"superseeds --output-directory and --no-compress, when set the temporary directory used for bundling is written to a file you pass here "});this.outputDirectory=B.Option.String("-o,--output-directory",{description:"sets the output directory, this should be outside your source input directory."});this.noCompress=B.Option.Boolean("--no-compress",!1,{description:"set this with --output-directory to skip zipping your bundle, when this is set your output directory must be outside your project root"});this.archiveName=B.Option.String("-a,--archive-name","bundle.zip",{description:"sets the name of the archive. Any files matching this, will be excluded from subsequent archives. Defaults to ./bundle.zip"});this.exclude=B.Option.Array("--exclude",[],{arity:1,description:"Exclude specific paths from the final bundle."});this.ignoreFile=B.Option.String("--ignore-file",gi,{description:"set the name of ignore file. Files matching this in workspace root and package root will be used to indicate which files will be excluded from bundle."})}progress(r,i,n){console.info(`\u27A4 ${r}:${i}${n}`)}async removeUnusedPackages(r,i,n){var u;let{project:t,workspace:a}=await N.Project.find(n,i);if(!a)throw new he.WorkspaceRequiredError(t.cwd,i);let o=await N.Project.find(n,r);if(!o.workspace)throw new he.WorkspaceRequiredError(o.project.cwd,r);let s=new Set([a,o.workspace]),l=await Qt(n);this.exclude=l.exclude?[...this.exclude,...l.exclude]:this.exclude,this.ignoreFile=(u=l==null?void 0:l.ignoreFile)!=null?u:this.ignoreFile;for(let c of s)for(let f of N.Manifest.allDependencies)for(let p of c.manifest.getForScope(f).values()){let h=t.tryWorkspaceByDescriptor(p);h!==null&&(s.add(h),this.progress(U.RemoveUnusedPackages,W.Progress,`required: ${h.relativeCwd}`))}for(let c of t.workspaces)s.has(c)||c.cwd!==r&&(await _.xfs.removePromise(c.cwd),this.progress(U.RemoveUnusedPackages,W.Progress,`unused: ${c.relativeCwd}`))}async removeEmptyDirectories({tmpDir:r,cwd:i}){if(!_.xfs.statSync(i).isDirectory())return!1;let t=await _.xfs.readdirPromise(i);for(let a of t)await this.removeEmptyDirectories({tmpDir:r,cwd:_.ppath.join(i,a)});return t=await _.xfs.readdirPromise(i),t.length===0?(await _.xfs.removePromise(i),this.progress(U.RemoveEmptyDirectories,W.Progress,`empty: ${i.replace(r+"/","")}`),!0):!1}async removeExcluded({tmpDir:r,excluded:i,nonRemovableFiles:n,yarnDirectory:t,cacheDirectory:a,shouldRemoveEmptyDirectories:o=!1}){let s=`${r}/.git`;try{await _.xfs.lstatPromise(s)&&await _.xfs.removePromise(s)}catch(l){}await Promise.all(i.map(async l=>{if(!l.startsWith(t)&&!l.startsWith(a)&&!n.includes(l)&&!!l.startsWith(r))try{await _.xfs.lstatPromise(l)&&await _.xfs.removePromise(l)}catch(u){}})),o&&await this.removeEmptyDirectories({tmpDir:r,cwd:r})}async execute(){this.progress(U.Info,W.Start,`Prepare ${this.context.cwd} for bundling`),this.progress(U.Info,W.Progress,"Preparing temporary directory");let r=async i=>{var K,Y,q,ne;let n=`${this.context.cwd}`,t=_.ppath.join(n,this.archiveName);if(typeof this.outputDirectory=="string"){let E=Vt(this.outputDirectory);if(_.xfs.existsSync(E)||await _.xfs.mkdirPromise(E),_.xfs.readdirSync(E).length!=0)return console.error("ERROR: --output-directory is not empty"),1;t=_.ppath.join(E,this.archiveName)}let a=await N.Configuration.find(this.context.cwd,this.context.plugins);if(a.projectCwd===null)throw new Error("Can't find project directory");let o=n.replace(a.projectCwd,""),s=!1,l;if(this.noCompress===!0){if(typeof this.outputDirectory!="string")return console.error("ERROR: you set --no-compress, but did not specify --output-directory"),1;if(l=Vt(this.outputDirectory),l.startsWith(a.projectCwd))return console.error(`ERROR: --output-directory is inside project root with --no-compress set. +This is no allowed to prevent you destroying your project`),1;s=!0}let u=new _.NodeFS;this.progress(U.Info,W.Progress,"Copying repo to temporary directory"),await _.xfs.copyPromise(i,a.projectCwd,{baseFs:u});let c=`${i}${o}`,f=`${c}/${this.archiveName}`,p=this.exclude;try{await _.xfs.lstatPromise(f)&&p.push(f)}catch(E){}let h=await N.Configuration.find(c,this.context.plugins);h.use("",{enableNetwork:!1},c);let d=await N.Cache.find(h),m=`${i}/.yarn`,v=d.cwd;this.progress(U.Info,W.Progress,"Removing unused and excluded workspaces, folders and files"),await this.removeUnusedPackages(i,c,h);let{project:x,workspace:g}=await N.Project.find(h,c);if(!g)throw new he.WorkspaceRequiredError(x.cwd,c);let S=await N.Project.find(h,i);if(!S.workspace)throw new he.WorkspaceRequiredError(S.project.cwd,i);let C=new Set([g,S.workspace]),R=Nn({workspaces:C,rootDir:i});p=await Dr({cwd:i,ignoreFile:this.ignoreFile,exclude:p});for(let E of C)for(let $ of N.Manifest.allDependencies)for(let G of E.manifest.getForScope($).values()){let pe=x.tryWorkspaceByDescriptor(G);pe!==null&&C.add(pe)}for(let E of C){let $=await Dr({cwd:E.cwd,ignoreFile:this.ignoreFile,exclude:p});await this.removeExcluded({tmpDir:i,excluded:$,nonRemovableFiles:R,yarnDirectory:m,cacheDirectory:v,shouldRemoveEmptyDirectories:!1})}await this.removeExcluded({tmpDir:i,excluded:p,nonRemovableFiles:R,yarnDirectory:m,cacheDirectory:v,shouldRemoveEmptyDirectories:!0});for(let E of x.workspaces)E.manifest.devDependencies.clear(),!C.has(E)&&(E.manifest.dependencies.clear(),E.manifest.peerDependencies.clear());if((Y=(K=g==null?void 0:g.manifest)==null?void 0:K.raw)==null?void 0:Y.main){let E=g.relativeCwd+vi.default.posix.sep+((ne=(q=g==null?void 0:g.manifest)==null?void 0:q.raw)==null?void 0:ne.main),$=".pnp.cjs";_.xfs.writeFilePromise(`${i}${vi.default.posix.sep}entrypoint.js`,Kl(E,$))}return this.progress(U.Info,W.End,"Completed"),(await N.StreamReport.start({configuration:h,json:this.json,stdout:this.context.stdout,includeLogs:!0},async E=>{if(await x.install({cache:d,report:E}),typeof this.temporaryDirectory=="undefined")if(s&&typeof l!="undefined")E.reportInfo(null,"Moving build to output directory"),await u.copyPromise(l,i);else{let $=await(0,Xt.getLibzipPromise)();E.reportInfo(null,"Creating archive");let G=new _.ZipFS(t,{create:!0,libzip:$}),pe="bundle";E.reportInfo(null,"Copying files to archive"),await G.copyPromise(pe,i,{baseFs:u}),G.saveAndClose(),E.reportJson({name:"ArchiveSuccess",message:"Archive created successfuly at ",outputArchive:t})}})).exitCode()};return typeof this.temporaryDirectory!="undefined"?await r(this.temporaryDirectory):await _.xfs.mktempPromise(r)}};Be.paths=[["bundle"]],Be.usage=B.Command.Usage({category:"Build commands",description:"bundle a workspace package into a deployable archive",details:` + This command will bundle up the source of the target package along with + its dependencies into an archive. + + This is designed to be used for deployment, not for publishing, so + everything to run except for a runtime (ie node) is bundled into + the archive. + + Call this after you have run your build step (if any). + + This is designed to work best with zero-install configurations. If you + don't have that, run \`yarn install\` before this command. + + Why not just compile like we do on the front-end? + Some dependencies may use require in interesting ways, or be or call + binaries. It's safest not to transpile them. + `});var Zt=Be,Kl=(e,r)=>` +"use strict"; + +const path = require("path"); + +const pnp = require(path.normalize(path.resolve( __dirname, "${r}"))).setup(); + +const index = require(path.normalize(path.resolve( __dirname,"${e}"))); + +Object.defineProperty(exports, "__esModule", { value: true }); + +exports.default = index; +`;function Vt(e){let r=_.npath.toPortablePath(e);return _.ppath.resolve(r)}var zl={commands:[Zt]},Ql=zl;return Xl;})(); +return plugin; +} +}; diff --git a/.yarn/plugins/@yarnpkg/plugin-typescript.cjs b/.yarn/plugins/@yarnpkg/plugin-typescript.cjs new file mode 100644 index 00000000..5c1859e0 --- /dev/null +++ b/.yarn/plugins/@yarnpkg/plugin-typescript.cjs @@ -0,0 +1,9 @@ +/* eslint-disable */ +//prettier-ignore +module.exports = { +name: "@yarnpkg/plugin-typescript", +factory: function (require) { +var plugin=(()=>{var Ft=Object.create,H=Object.defineProperty,Bt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,$t=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var Re=(e,t,r)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))ne.call(t,r)&&Re(e,r,t[r]);if(Q)for(var r of Q(t))De.call(t,r)&&Re(e,r,t[r]);return e},g=(e,t)=>Bt(e,zt(t)),Lt=e=>H(e,"__esModule",{value:!0});var R=(e,t)=>{var r={};for(var s in e)ne.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&Q)for(var s of Q(e))t.indexOf(s)<0&&De.call(e,s)&&(r[s]=e[s]);return r};var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vt=(e,t)=>{for(var r in t)H(e,r,{get:t[r],enumerable:!0})},Qt=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Gt(t))!ne.call(e,s)&&s!=="default"&&H(e,s,{get:()=>t[s],enumerable:!(r=Kt(t,s))||r.enumerable});return e},C=e=>Qt(Lt(H(e!=null?Ft($t(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var xe=I(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});function _(e){let t=[...e.caches],r=t.shift();return r===void 0?ve():{get(s,n,a={miss:()=>Promise.resolve()}){return r.get(s,n,a).catch(()=>_({caches:t}).get(s,n,a))},set(s,n){return r.set(s,n).catch(()=>_({caches:t}).set(s,n))},delete(s){return r.delete(s).catch(()=>_({caches:t}).delete(s))},clear(){return r.clear().catch(()=>_({caches:t}).clear())}}}function ve(){return{get(e,t,r={miss:()=>Promise.resolve()}){return t().then(n=>Promise.all([n,r.miss(n)])).then(([n])=>n)},set(e,t){return Promise.resolve(t)},delete(e){return Promise.resolve()},clear(){return Promise.resolve()}}}J.createFallbackableCache=_;J.createNullCache=ve});var Ee=I(($s,qe)=>{qe.exports=xe()});var Te=I(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});function Jt(e={serializable:!0}){let t={};return{get(r,s,n={miss:()=>Promise.resolve()}){let a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);let o=s(),d=n&&n.miss||(()=>Promise.resolve());return o.then(y=>d(y)).then(()=>o)},set(r,s){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)},delete(r){return delete t[JSON.stringify(r)],Promise.resolve()},clear(){return t={},Promise.resolve()}}}ae.createInMemoryCache=Jt});var we=I((Vs,Me)=>{Me.exports=Te()});var Ce=I(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});function Xt(e,t,r){let s={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers(){return e===oe.WithinHeaders?s:{}},queryParameters(){return e===oe.WithinQueryParameters?s:{}}}}function Yt(e){let t=0,r=()=>(t++,new Promise(s=>{setTimeout(()=>{s(e(r))},Math.min(100*t,1e3))}));return e(r)}function ke(e,t=(r,s)=>Promise.resolve()){return Object.assign(e,{wait(r){return ke(e.then(s=>Promise.all([t(s,r),s])).then(s=>s[1]))}})}function Zt(e){let t=e.length-1;for(t;t>0;t--){let r=Math.floor(Math.random()*(t+1)),s=e[t];e[t]=e[r],e[r]=s}return e}function er(e,t){return Object.keys(t!==void 0?t:{}).forEach(r=>{e[r]=t[r](e)}),e}function tr(e,...t){let r=0;return e.replace(/%s/g,()=>encodeURIComponent(t[r++]))}var rr="4.2.0",sr=e=>()=>e.transporter.requester.destroy(),oe={WithinQueryParameters:0,WithinHeaders:1};M.AuthMode=oe;M.addMethods=er;M.createAuth=Xt;M.createRetryablePromise=Yt;M.createWaitablePromise=ke;M.destroy=sr;M.encode=tr;M.shuffle=Zt;M.version=rr});var F=I((Js,Ue)=>{Ue.exports=Ce()});var Ne=I(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});var nr={Delete:"DELETE",Get:"GET",Post:"POST",Put:"PUT"};ie.MethodEnum=nr});var B=I((Ys,We)=>{We.exports=Ne()});var Ze=I(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});var He=B();function ce(e,t){let r=e||{},s=r.data||{};return Object.keys(r).forEach(n=>{["timeout","headers","queryParameters","data","cacheable"].indexOf(n)===-1&&(s[n]=r[n])}),{data:Object.entries(s).length>0?s:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var X={Read:1,Write:2,Any:3},U={Up:1,Down:2,Timeouted:3},_e=2*60*1e3;function ue(e,t=U.Up){return g(u({},e),{status:t,lastUpdate:Date.now()})}function Fe(e){return e.status===U.Up||Date.now()-e.lastUpdate>_e}function Be(e){return e.status===U.Timeouted&&Date.now()-e.lastUpdate<=_e}function le(e){return{protocol:e.protocol||"https",url:e.url,accept:e.accept||X.Any}}function ar(e,t){return Promise.all(t.map(r=>e.get(r,()=>Promise.resolve(ue(r))))).then(r=>{let s=r.filter(d=>Fe(d)),n=r.filter(d=>Be(d)),a=[...s,...n],o=a.length>0?a.map(d=>le(d)):t;return{getTimeout(d,y){return(n.length===0&&d===0?1:n.length+3+d)*y},statelessHosts:o}})}var or=({isTimedOut:e,status:t})=>!e&&~~t==0,ir=e=>{let t=e.status;return e.isTimedOut||or(e)||~~(t/100)!=2&&~~(t/100)!=4},cr=({status:e})=>~~(e/100)==2,ur=(e,t)=>ir(e)?t.onRetry(e):cr(e)?t.onSucess(e):t.onFail(e);function Qe(e,t,r,s){let n=[],a=$e(r,s),o=Le(e,s),d=r.method,y=r.method!==He.MethodEnum.Get?{}:u(u({},r.data),s.data),b=u(u(u({"x-algolia-agent":e.userAgent.value},e.queryParameters),y),s.queryParameters),f=0,p=(h,S)=>{let O=h.pop();if(O===void 0)throw Ve(de(n));let P={data:a,headers:o,method:d,url:Ge(O,r.path,b),connectTimeout:S(f,e.timeouts.connect),responseTimeout:S(f,s.timeout)},x=j=>{let T={request:P,response:j,host:O,triesLeft:h.length};return n.push(T),T},v={onSucess:j=>Ke(j),onRetry(j){let T=x(j);return j.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",pe(T)),e.hostsCache.set(O,ue(O,j.isTimedOut?U.Timeouted:U.Down))]).then(()=>p(h,S))},onFail(j){throw x(j),ze(j,de(n))}};return e.requester.send(P).then(j=>ur(j,v))};return ar(e.hostsCache,t).then(h=>p([...h.statelessHosts].reverse(),h.getTimeout))}function lr(e){let{hostsCache:t,logger:r,requester:s,requestsCache:n,responsesCache:a,timeouts:o,userAgent:d,hosts:y,queryParameters:b,headers:f}=e,p={hostsCache:t,logger:r,requester:s,requestsCache:n,responsesCache:a,timeouts:o,userAgent:d,headers:f,queryParameters:b,hosts:y.map(h=>le(h)),read(h,S){let O=ce(S,p.timeouts.read),P=()=>Qe(p,p.hosts.filter(j=>(j.accept&X.Read)!=0),h,O);if((O.cacheable!==void 0?O.cacheable:h.cacheable)!==!0)return P();let v={request:h,mappedRequestOptions:O,transporter:{queryParameters:p.queryParameters,headers:p.headers}};return p.responsesCache.get(v,()=>p.requestsCache.get(v,()=>p.requestsCache.set(v,P()).then(j=>Promise.all([p.requestsCache.delete(v),j]),j=>Promise.all([p.requestsCache.delete(v),Promise.reject(j)])).then(([j,T])=>T)),{miss:j=>p.responsesCache.set(v,j)})},write(h,S){return Qe(p,p.hosts.filter(O=>(O.accept&X.Write)!=0),h,ce(S,p.timeouts.write))}};return p}function dr(e){let t={value:`Algolia for JavaScript (${e})`,add(r){let s=`; ${r.segment}${r.version!==void 0?` (${r.version})`:""}`;return t.value.indexOf(s)===-1&&(t.value=`${t.value}${s}`),t}};return t}function Ke(e){try{return JSON.parse(e.content)}catch(t){throw Je(t.message,e)}}function ze({content:e,status:t},r){let s=e;try{s=JSON.parse(e).message}catch(n){}return Xe(s,t,r)}function pr(e,...t){let r=0;return e.replace(/%s/g,()=>encodeURIComponent(t[r++]))}function Ge(e,t,r){let s=Ye(r),n=`${e.protocol}://${e.url}/${t.charAt(0)==="/"?t.substr(1):t}`;return s.length&&(n+=`?${s}`),n}function Ye(e){let t=r=>Object.prototype.toString.call(r)==="[object Object]"||Object.prototype.toString.call(r)==="[object Array]";return Object.keys(e).map(r=>pr("%s=%s",r,t(e[r])?JSON.stringify(e[r]):e[r])).join("&")}function $e(e,t){if(e.method===He.MethodEnum.Get||e.data===void 0&&t.data===void 0)return;let r=Array.isArray(e.data)?e.data:u(u({},e.data),t.data);return JSON.stringify(r)}function Le(e,t){let r=u(u({},e.headers),t.headers),s={};return Object.keys(r).forEach(n=>{let a=r[n];s[n.toLowerCase()]=a}),s}function de(e){return e.map(t=>pe(t))}function pe(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return g(u({},e),{request:g(u({},e.request),{headers:u(u({},e.request.headers),t)})})}function Xe(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}function Je(e,t){return{name:"DeserializationError",message:e,response:t}}function Ve(e){return{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:e}}A.CallEnum=X;A.HostStatusEnum=U;A.createApiError=Xe;A.createDeserializationError=Je;A.createMappedRequestOptions=ce;A.createRetryError=Ve;A.createStatefulHost=ue;A.createStatelessHost=le;A.createTransporter=lr;A.createUserAgent=dr;A.deserializeFailure=ze;A.deserializeSuccess=Ke;A.isStatefulHostTimeouted=Be;A.isStatefulHostUp=Fe;A.serializeData=$e;A.serializeHeaders=Le;A.serializeQueryParameters=Ye;A.serializeUrl=Ge;A.stackFrameWithoutCredentials=pe;A.stackTraceWithoutCredentials=de});var K=I((en,et)=>{et.exports=Ze()});var tt=I(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var N=F(),mr=K(),z=B(),hr=e=>{let t=e.region||"us",r=N.createAuth(N.AuthMode.WithinHeaders,e.appId,e.apiKey),s=mr.createTransporter(g(u({hosts:[{url:`analytics.${t}.algolia.com`}]},e),{headers:u(g(u({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:u(u({},r.queryParameters()),e.queryParameters)})),n=e.appId;return N.addMethods({appId:n,transporter:s},e.methods)},yr=e=>(t,r)=>e.transporter.write({method:z.MethodEnum.Post,path:"2/abtests",data:t},r),gr=e=>(t,r)=>e.transporter.write({method:z.MethodEnum.Delete,path:N.encode("2/abtests/%s",t)},r),fr=e=>(t,r)=>e.transporter.read({method:z.MethodEnum.Get,path:N.encode("2/abtests/%s",t)},r),br=e=>t=>e.transporter.read({method:z.MethodEnum.Get,path:"2/abtests"},t),Pr=e=>(t,r)=>e.transporter.write({method:z.MethodEnum.Post,path:N.encode("2/abtests/%s/stop",t)},r);w.addABTest=yr;w.createAnalyticsClient=hr;w.deleteABTest=gr;w.getABTest=fr;w.getABTests=br;w.stopABTest=Pr});var st=I((rn,rt)=>{rt.exports=tt()});var at=I(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});var me=F(),jr=K(),nt=B(),Or=e=>{let t=e.region||"us",r=me.createAuth(me.AuthMode.WithinHeaders,e.appId,e.apiKey),s=jr.createTransporter(g(u({hosts:[{url:`recommendation.${t}.algolia.com`}]},e),{headers:u(g(u({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:u(u({},r.queryParameters()),e.queryParameters)}));return me.addMethods({appId:e.appId,transporter:s},e.methods)},Ir=e=>t=>e.transporter.read({method:nt.MethodEnum.Get,path:"1/strategies/personalization"},t),Ar=e=>(t,r)=>e.transporter.write({method:nt.MethodEnum.Post,path:"1/strategies/personalization",data:t},r);G.createRecommendationClient=Or;G.getPersonalizationStrategy=Ir;G.setPersonalizationStrategy=Ar});var it=I((nn,ot)=>{ot.exports=at()});var jt=I(i=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var l=F(),q=K(),m=B(),Sr=require("crypto");function Y(e){let t=r=>e.request(r).then(s=>{if(e.batch!==void 0&&e.batch(s.hits),!e.shouldStop(s))return s.cursor?t({cursor:s.cursor}):t({page:(r.page||0)+1})});return t({})}var Dr=e=>{let t=e.appId,r=l.createAuth(e.authMode!==void 0?e.authMode:l.AuthMode.WithinHeaders,t,e.apiKey),s=q.createTransporter(g(u({hosts:[{url:`${t}-dsn.algolia.net`,accept:q.CallEnum.Read},{url:`${t}.algolia.net`,accept:q.CallEnum.Write}].concat(l.shuffle([{url:`${t}-1.algolianet.com`},{url:`${t}-2.algolianet.com`},{url:`${t}-3.algolianet.com`}]))},e),{headers:u(g(u({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:u(u({},r.queryParameters()),e.queryParameters)})),n={transporter:s,appId:t,addAlgoliaAgent(a,o){s.userAgent.add({segment:a,version:o})},clearCache(){return Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>{})}};return l.addMethods(n,e.methods)};function ct(){return{name:"MissingObjectIDError",message:"All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option."}}function ut(){return{name:"ObjectNotFoundError",message:"Object not found."}}function lt(){return{name:"ValidUntilNotFoundError",message:"ValidUntil not found in given secured api key."}}var Rr=e=>(t,r)=>{let d=r||{},{queryParameters:s}=d,n=R(d,["queryParameters"]),a=u({acl:t},s!==void 0?{queryParameters:s}:{}),o=(y,b)=>l.createRetryablePromise(f=>$(e)(y.key,b).catch(p=>{if(p.status!==404)throw p;return f()}));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:"1/keys",data:a},n),o)},vr=e=>(t,r,s)=>{let n=q.createMappedRequestOptions(s);return n.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:m.MethodEnum.Post,path:"1/clusters/mapping",data:{cluster:r}},n)},xr=e=>(t,r,s)=>e.transporter.write({method:m.MethodEnum.Post,path:"1/clusters/mapping/batch",data:{users:t,cluster:r}},s),Z=e=>(t,r,s)=>{let n=(a,o)=>L(e)(t,{methods:{waitTask:D}}).waitTask(a.taskID,o);return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/operation",t),data:{operation:"copy",destination:r}},s),n)},qr=e=>(t,r,s)=>Z(e)(t,r,g(u({},s),{scope:[ee.Rules]})),Er=e=>(t,r,s)=>Z(e)(t,r,g(u({},s),{scope:[ee.Settings]})),Tr=e=>(t,r,s)=>Z(e)(t,r,g(u({},s),{scope:[ee.Synonyms]})),Mr=e=>(t,r)=>{let s=(n,a)=>l.createRetryablePromise(o=>$(e)(t,a).then(o).catch(d=>{if(d.status!==404)throw d}));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Delete,path:l.encode("1/keys/%s",t)},r),s)},wr=()=>(e,t)=>{let r=q.serializeQueryParameters(t),s=Sr.createHmac("sha256",e).update(r).digest("hex");return Buffer.from(s+r).toString("base64")},$=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/keys/%s",t)},r),kr=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/logs"},t),Cr=()=>e=>{let t=Buffer.from(e,"base64").toString("ascii"),r=/validUntil=(\d+)/,s=t.match(r);if(s===null)throw lt();return parseInt(s[1],10)-Math.round(new Date().getTime()/1e3)},Ur=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/clusters/mapping/top"},t),Nr=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/clusters/mapping/%s",t)},r),Wr=e=>t=>{let n=t||{},{retrieveMappings:r}=n,s=R(n,["retrieveMappings"]);return r===!0&&(s.getClusters=!0),e.transporter.read({method:m.MethodEnum.Get,path:"1/clusters/mapping/pending"},s)},L=e=>(t,r={})=>{let s={transporter:e.transporter,appId:e.appId,indexName:t};return l.addMethods(s,r.methods)},Hr=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/keys"},t),_r=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/clusters"},t),Fr=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/indexes"},t),Br=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/clusters/mapping"},t),Kr=e=>(t,r,s)=>{let n=(a,o)=>L(e)(t,{methods:{waitTask:D}}).waitTask(a.taskID,o);return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/operation",t),data:{operation:"move",destination:r}},s),n)},zr=e=>(t,r)=>{let s=(n,a)=>Promise.all(Object.keys(n.taskID).map(o=>L(e)(o,{methods:{waitTask:D}}).waitTask(n.taskID[o],a)));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:"1/indexes/*/batch",data:{requests:t}},r),s)},Gr=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:"1/indexes/*/objects",data:{requests:t}},r),$r=e=>(t,r)=>{let s=t.map(n=>g(u({},n),{params:q.serializeQueryParameters(n.params||{})}));return e.transporter.read({method:m.MethodEnum.Post,path:"1/indexes/*/queries",data:{requests:s},cacheable:!0},r)},Lr=e=>(t,r)=>Promise.all(t.map(s=>{let d=s.params,{facetName:n,facetQuery:a}=d,o=R(d,["facetName","facetQuery"]);return L(e)(s.indexName,{methods:{searchForFacetValues:dt}}).searchForFacetValues(n,a,u(u({},r),o))})),Vr=e=>(t,r)=>{let s=q.createMappedRequestOptions(r);return s.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:m.MethodEnum.Delete,path:"1/clusters/mapping"},s)},Qr=e=>(t,r)=>{let s=(n,a)=>l.createRetryablePromise(o=>$(e)(t,a).catch(d=>{if(d.status!==404)throw d;return o()}));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/keys/%s/restore",t)},r),s)},Jr=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:"1/clusters/mapping/search",data:{query:t}},r),Xr=e=>(t,r)=>{let s=Object.assign({},r),f=r||{},{queryParameters:n}=f,a=R(f,["queryParameters"]),o=n?{queryParameters:n}:{},d=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"],y=p=>Object.keys(s).filter(h=>d.indexOf(h)!==-1).every(h=>p[h]===s[h]),b=(p,h)=>l.createRetryablePromise(S=>$(e)(t,h).then(O=>y(O)?Promise.resolve():S()));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Put,path:l.encode("1/keys/%s",t),data:o},a),b)},pt=e=>(t,r)=>{let s=(n,a)=>D(e)(n.taskID,a);return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/batch",e.indexName),data:{requests:t}},r),s)},Yr=e=>t=>Y(g(u({},t),{shouldStop:r=>r.cursor===void 0,request:r=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/browse",e.indexName),data:r},t)})),Zr=e=>t=>{let r=u({hitsPerPage:1e3},t);return Y(g(u({},r),{shouldStop:s=>s.hits.lengthg(u({},n),{hits:n.hits.map(a=>(delete a._highlightResult,a))}))}}))},es=e=>t=>{let r=u({hitsPerPage:1e3},t);return Y(g(u({},r),{shouldStop:s=>s.hits.lengthg(u({},n),{hits:n.hits.map(a=>(delete a._highlightResult,a))}))}}))},te=e=>(t,r,s)=>{let y=s||{},{batchSize:n}=y,a=R(y,["batchSize"]),o={taskIDs:[],objectIDs:[]},d=(b=0)=>{let f=[],p;for(p=b;p({action:r,body:h})),a).then(h=>(o.objectIDs=o.objectIDs.concat(h.objectIDs),o.taskIDs.push(h.taskID),p++,d(p)))};return l.createWaitablePromise(d(),(b,f)=>Promise.all(b.taskIDs.map(p=>D(e)(p,f))))},ts=e=>t=>l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/clear",e.indexName)},t),(r,s)=>D(e)(r.taskID,s)),rs=e=>t=>{let a=t||{},{forwardToReplicas:r}=a,s=R(a,["forwardToReplicas"]),n=q.createMappedRequestOptions(s);return r&&(n.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/rules/clear",e.indexName)},n),(o,d)=>D(e)(o.taskID,d))},ss=e=>t=>{let a=t||{},{forwardToReplicas:r}=a,s=R(a,["forwardToReplicas"]),n=q.createMappedRequestOptions(s);return r&&(n.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/synonyms/clear",e.indexName)},n),(o,d)=>D(e)(o.taskID,d))},ns=e=>(t,r)=>l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/deleteByQuery",e.indexName),data:t},r),(s,n)=>D(e)(s.taskID,n)),as=e=>t=>l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Delete,path:l.encode("1/indexes/%s",e.indexName)},t),(r,s)=>D(e)(r.taskID,s)),os=e=>(t,r)=>l.createWaitablePromise(yt(e)([t],r).then(s=>({taskID:s.taskIDs[0]})),(s,n)=>D(e)(s.taskID,n)),yt=e=>(t,r)=>{let s=t.map(n=>({objectID:n}));return te(e)(s,k.DeleteObject,r)},is=e=>(t,r)=>{let o=r||{},{forwardToReplicas:s}=o,n=R(o,["forwardToReplicas"]),a=q.createMappedRequestOptions(n);return s&&(a.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Delete,path:l.encode("1/indexes/%s/rules/%s",e.indexName,t)},a),(d,y)=>D(e)(d.taskID,y))},cs=e=>(t,r)=>{let o=r||{},{forwardToReplicas:s}=o,n=R(o,["forwardToReplicas"]),a=q.createMappedRequestOptions(n);return s&&(a.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Delete,path:l.encode("1/indexes/%s/synonyms/%s",e.indexName,t)},a),(d,y)=>D(e)(d.taskID,y))},us=e=>t=>gt(e)(t).then(()=>!0).catch(r=>{if(r.status!==404)throw r;return!1}),ls=e=>(t,r)=>{let y=r||{},{query:s,paginate:n}=y,a=R(y,["query","paginate"]),o=0,d=()=>ft(e)(s||"",g(u({},a),{page:o})).then(b=>{for(let[f,p]of Object.entries(b.hits))if(t(p))return{object:p,position:parseInt(f,10),page:o};if(o++,n===!1||o>=b.nbPages)throw ut();return d()});return d()},ds=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/%s",e.indexName,t)},r),ps=()=>(e,t)=>{for(let[r,s]of Object.entries(e.hits))if(s.objectID===t)return parseInt(r,10);return-1},ms=e=>(t,r)=>{let o=r||{},{attributesToRetrieve:s}=o,n=R(o,["attributesToRetrieve"]),a=t.map(d=>u({indexName:e.indexName,objectID:d},s?{attributesToRetrieve:s}:{}));return e.transporter.read({method:m.MethodEnum.Post,path:"1/indexes/*/objects",data:{requests:a}},n)},hs=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/rules/%s",e.indexName,t)},r),gt=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/settings",e.indexName),data:{getVersion:2}},t),ys=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/synonyms/%s",e.indexName,t)},r),bt=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/task/%s",e.indexName,t.toString())},r),gs=e=>(t,r)=>l.createWaitablePromise(Pt(e)([t],r).then(s=>({objectID:s.objectIDs[0],taskID:s.taskIDs[0]})),(s,n)=>D(e)(s.taskID,n)),Pt=e=>(t,r)=>{let o=r||{},{createIfNotExists:s}=o,n=R(o,["createIfNotExists"]),a=s?k.PartialUpdateObject:k.PartialUpdateObjectNoCreate;return te(e)(t,a,n)},fs=e=>(t,r)=>{let O=r||{},{safe:s,autoGenerateObjectIDIfNotExist:n,batchSize:a}=O,o=R(O,["safe","autoGenerateObjectIDIfNotExist","batchSize"]),d=(P,x,v,j)=>l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/operation",P),data:{operation:v,destination:x}},j),(T,V)=>D(e)(T.taskID,V)),y=Math.random().toString(36).substring(7),b=`${e.indexName}_tmp_${y}`,f=he({appId:e.appId,transporter:e.transporter,indexName:b}),p=[],h=d(e.indexName,b,"copy",g(u({},o),{scope:["settings","synonyms","rules"]}));p.push(h);let S=(s?h.wait(o):h).then(()=>{let P=f(t,g(u({},o),{autoGenerateObjectIDIfNotExist:n,batchSize:a}));return p.push(P),s?P.wait(o):P}).then(()=>{let P=d(b,e.indexName,"move",o);return p.push(P),s?P.wait(o):P}).then(()=>Promise.all(p)).then(([P,x,v])=>({objectIDs:x.objectIDs,taskIDs:[P.taskID,...x.taskIDs,v.taskID]}));return l.createWaitablePromise(S,(P,x)=>Promise.all(p.map(v=>v.wait(x))))},bs=e=>(t,r)=>ye(e)(t,g(u({},r),{clearExistingRules:!0})),Ps=e=>(t,r)=>ge(e)(t,g(u({},r),{replaceExistingSynonyms:!0})),js=e=>(t,r)=>l.createWaitablePromise(he(e)([t],r).then(s=>({objectID:s.objectIDs[0],taskID:s.taskIDs[0]})),(s,n)=>D(e)(s.taskID,n)),he=e=>(t,r)=>{let o=r||{},{autoGenerateObjectIDIfNotExist:s}=o,n=R(o,["autoGenerateObjectIDIfNotExist"]),a=s?k.AddObject:k.UpdateObject;if(a===k.UpdateObject){for(let d of t)if(d.objectID===void 0)return l.createWaitablePromise(Promise.reject(ct()))}return te(e)(t,a,n)},Os=e=>(t,r)=>ye(e)([t],r),ye=e=>(t,r)=>{let d=r||{},{forwardToReplicas:s,clearExistingRules:n}=d,a=R(d,["forwardToReplicas","clearExistingRules"]),o=q.createMappedRequestOptions(a);return s&&(o.queryParameters.forwardToReplicas=1),n&&(o.queryParameters.clearExistingRules=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/rules/batch",e.indexName),data:t},o),(y,b)=>D(e)(y.taskID,b))},Is=e=>(t,r)=>ge(e)([t],r),ge=e=>(t,r)=>{let d=r||{},{forwardToReplicas:s,replaceExistingSynonyms:n}=d,a=R(d,["forwardToReplicas","replaceExistingSynonyms"]),o=q.createMappedRequestOptions(a);return s&&(o.queryParameters.forwardToReplicas=1),n&&(o.queryParameters.replaceExistingSynonyms=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/synonyms/batch",e.indexName),data:t},o),(y,b)=>D(e)(y.taskID,b))},ft=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r),dt=e=>(t,r,s)=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},s),mt=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/rules/search",e.indexName),data:{query:t}},r),ht=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/synonyms/search",e.indexName),data:{query:t}},r),As=e=>(t,r)=>{let o=r||{},{forwardToReplicas:s}=o,n=R(o,["forwardToReplicas"]),a=q.createMappedRequestOptions(n);return s&&(a.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Put,path:l.encode("1/indexes/%s/settings",e.indexName),data:t},a),(d,y)=>D(e)(d.taskID,y))},D=e=>(t,r)=>l.createRetryablePromise(s=>bt(e)(t,r).then(n=>n.status!=="published"?s():void 0)),Ss={AddObject:"addObject",Analytics:"analytics",Browser:"browse",DeleteIndex:"deleteIndex",DeleteObject:"deleteObject",EditSettings:"editSettings",ListIndexes:"listIndexes",Logs:"logs",Recommendation:"recommendation",Search:"search",SeeUnretrievableAttributes:"seeUnretrievableAttributes",Settings:"settings",Usage:"usage"},k={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject"},ee={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},Ds={None:"none",StopIfEnoughMatches:"stopIfEnoughMatches"},Rs={Synonym:"synonym",OneWaySynonym:"oneWaySynonym",AltCorrection1:"altCorrection1",AltCorrection2:"altCorrection2",Placeholder:"placeholder"};i.ApiKeyACLEnum=Ss;i.BatchActionEnum=k;i.ScopeEnum=ee;i.StrategyEnum=Ds;i.SynonymEnum=Rs;i.addApiKey=Rr;i.assignUserID=vr;i.assignUserIDs=xr;i.batch=pt;i.browseObjects=Yr;i.browseRules=Zr;i.browseSynonyms=es;i.chunkedBatch=te;i.clearObjects=ts;i.clearRules=rs;i.clearSynonyms=ss;i.copyIndex=Z;i.copyRules=qr;i.copySettings=Er;i.copySynonyms=Tr;i.createBrowsablePromise=Y;i.createMissingObjectIDError=ct;i.createObjectNotFoundError=ut;i.createSearchClient=Dr;i.createValidUntilNotFoundError=lt;i.deleteApiKey=Mr;i.deleteBy=ns;i.deleteIndex=as;i.deleteObject=os;i.deleteObjects=yt;i.deleteRule=is;i.deleteSynonym=cs;i.exists=us;i.findObject=ls;i.generateSecuredApiKey=wr;i.getApiKey=$;i.getLogs=kr;i.getObject=ds;i.getObjectPosition=ps;i.getObjects=ms;i.getRule=hs;i.getSecuredApiKeyRemainingValidity=Cr;i.getSettings=gt;i.getSynonym=ys;i.getTask=bt;i.getTopUserIDs=Ur;i.getUserID=Nr;i.hasPendingMappings=Wr;i.initIndex=L;i.listApiKeys=Hr;i.listClusters=_r;i.listIndices=Fr;i.listUserIDs=Br;i.moveIndex=Kr;i.multipleBatch=zr;i.multipleGetObjects=Gr;i.multipleQueries=$r;i.multipleSearchForFacetValues=Lr;i.partialUpdateObject=gs;i.partialUpdateObjects=Pt;i.removeUserID=Vr;i.replaceAllObjects=fs;i.replaceAllRules=bs;i.replaceAllSynonyms=Ps;i.restoreApiKey=Qr;i.saveObject=js;i.saveObjects=he;i.saveRule=Os;i.saveRules=ye;i.saveSynonym=Is;i.saveSynonyms=ge;i.search=ft;i.searchForFacetValues=dt;i.searchRules=mt;i.searchSynonyms=ht;i.searchUserIDs=Jr;i.setSettings=As;i.updateApiKey=Xr;i.waitTask=D});var It=I((on,Ot)=>{Ot.exports=jt()});var At=I(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});function vs(){return{debug(e,t){return Promise.resolve()},info(e,t){return Promise.resolve()},error(e,t){return Promise.resolve()}}}var xs={Debug:1,Info:2,Error:3};re.LogLevelEnum=xs;re.createNullLogger=vs});var Dt=I((un,St)=>{St.exports=At()});var xt=I(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});var Rt=require("http"),vt=require("https"),qs=require("url");function Es(){let e={keepAlive:!0},t=new Rt.Agent(e),r=new vt.Agent(e);return{send(s){return new Promise(n=>{let a=qs.parse(s.url),o=a.query===null?a.pathname:`${a.pathname}?${a.query}`,d=u({agent:a.protocol==="https:"?r:t,hostname:a.hostname,path:o,method:s.method,headers:s.headers},a.port!==void 0?{port:a.port||""}:{}),y=(a.protocol==="https:"?vt:Rt).request(d,h=>{let S="";h.on("data",O=>S+=O),h.on("end",()=>{clearTimeout(f),clearTimeout(p),n({status:h.statusCode||0,content:S,isTimedOut:!1})})}),b=(h,S)=>setTimeout(()=>{y.abort(),n({status:0,content:S,isTimedOut:!0})},h*1e3),f=b(s.connectTimeout,"Connection timeout"),p;y.on("error",h=>{clearTimeout(f),clearTimeout(p),n({status:0,content:h.message,isTimedOut:!1})}),y.once("response",()=>{clearTimeout(f),p=b(s.responseTimeout,"Socket timeout")}),s.data!==void 0&&y.write(s.data),y.end()})},destroy(){return t.destroy(),r.destroy(),Promise.resolve()}}}fe.createNodeHttpRequester=Es});var Et=I((dn,qt)=>{qt.exports=xt()});var kt=I((pn,Tt)=>{"use strict";var Mt=Ee(),Ts=we(),W=st(),be=F(),Pe=it(),c=It(),Ms=Dt(),ws=Et(),ks=K();function wt(e,t,r){let s={appId:e,apiKey:t,timeouts:{connect:2,read:5,write:30},requester:ws.createNodeHttpRequester(),logger:Ms.createNullLogger(),responsesCache:Mt.createNullCache(),requestsCache:Mt.createNullCache(),hostsCache:Ts.createInMemoryCache(),userAgent:ks.createUserAgent(be.version).add({segment:"Node.js",version:process.versions.node})};return c.createSearchClient(g(u(u({},s),r),{methods:{search:c.multipleQueries,searchForFacetValues:c.multipleSearchForFacetValues,multipleBatch:c.multipleBatch,multipleGetObjects:c.multipleGetObjects,multipleQueries:c.multipleQueries,copyIndex:c.copyIndex,copySettings:c.copySettings,copyRules:c.copyRules,copySynonyms:c.copySynonyms,moveIndex:c.moveIndex,listIndices:c.listIndices,getLogs:c.getLogs,listClusters:c.listClusters,multipleSearchForFacetValues:c.multipleSearchForFacetValues,getApiKey:c.getApiKey,addApiKey:c.addApiKey,listApiKeys:c.listApiKeys,updateApiKey:c.updateApiKey,deleteApiKey:c.deleteApiKey,restoreApiKey:c.restoreApiKey,assignUserID:c.assignUserID,assignUserIDs:c.assignUserIDs,getUserID:c.getUserID,searchUserIDs:c.searchUserIDs,listUserIDs:c.listUserIDs,getTopUserIDs:c.getTopUserIDs,removeUserID:c.removeUserID,hasPendingMappings:c.hasPendingMappings,generateSecuredApiKey:c.generateSecuredApiKey,getSecuredApiKeyRemainingValidity:c.getSecuredApiKeyRemainingValidity,destroy:be.destroy,initIndex:n=>a=>c.initIndex(n)(a,{methods:{batch:c.batch,delete:c.deleteIndex,getObject:c.getObject,getObjects:c.getObjects,saveObject:c.saveObject,saveObjects:c.saveObjects,search:c.search,searchForFacetValues:c.searchForFacetValues,waitTask:c.waitTask,setSettings:c.setSettings,getSettings:c.getSettings,partialUpdateObject:c.partialUpdateObject,partialUpdateObjects:c.partialUpdateObjects,deleteObject:c.deleteObject,deleteObjects:c.deleteObjects,deleteBy:c.deleteBy,clearObjects:c.clearObjects,browseObjects:c.browseObjects,getObjectPosition:c.getObjectPosition,findObject:c.findObject,exists:c.exists,saveSynonym:c.saveSynonym,saveSynonyms:c.saveSynonyms,getSynonym:c.getSynonym,searchSynonyms:c.searchSynonyms,browseSynonyms:c.browseSynonyms,deleteSynonym:c.deleteSynonym,clearSynonyms:c.clearSynonyms,replaceAllObjects:c.replaceAllObjects,replaceAllSynonyms:c.replaceAllSynonyms,searchRules:c.searchRules,getRule:c.getRule,deleteRule:c.deleteRule,saveRule:c.saveRule,saveRules:c.saveRules,replaceAllRules:c.replaceAllRules,browseRules:c.browseRules,clearRules:c.clearRules}}),initAnalytics:()=>n=>W.createAnalyticsClient(g(u(u({},s),n),{methods:{addABTest:W.addABTest,getABTest:W.getABTest,getABTests:W.getABTests,stopABTest:W.stopABTest,deleteABTest:W.deleteABTest}})),initRecommendation:()=>n=>Pe.createRecommendationClient(g(u(u({},s),n),{methods:{getPersonalizationStrategy:Pe.getPersonalizationStrategy,setPersonalizationStrategy:Pe.setPersonalizationStrategy}}))}}))}wt.version=be.version;Tt.exports=wt});var Ut=I((mn,je)=>{var Ct=kt();je.exports=Ct;je.exports.default=Ct});var Ws={};Vt(Ws,{default:()=>Ks});var Oe=C(require("@yarnpkg/core")),E=C(require("@yarnpkg/core")),Ie=C(require("@yarnpkg/plugin-essentials")),Ht=C(require("semver"));var se=C(require("@yarnpkg/core")),Nt=C(Ut()),Cs="e8e1bd300d860104bb8c58453ffa1eb4",Us="OFCNCOG2CU",Wt=async(e,t)=>{var a;let r=se.structUtils.stringifyIdent(e),n=Ns(t).initIndex("npm-search");try{return((a=(await n.getObject(r,{attributesToRetrieve:["types"]})).types)==null?void 0:a.ts)==="definitely-typed"}catch(o){return!1}},Ns=e=>(0,Nt.default)(Us,Cs,{requester:{async send(r){try{let s=await se.httpUtils.request(r.url,r.data||null,{configuration:e,headers:r.headers});return{content:s.body,isTimedOut:!1,status:s.statusCode}}catch(s){return{content:s.response.body,isTimedOut:!1,status:s.response.statusCode}}}}});var _t=e=>e.scope?`${e.scope}__${e.name}`:`${e.name}`,Hs=async(e,t,r,s)=>{if(r.scope==="types")return;let{project:n}=e,{configuration:a}=n,o=a.makeResolver(),d={project:n,resolver:o,report:new E.ThrowReport};if(!await Wt(r,a))return;let b=_t(r),f=E.structUtils.parseRange(r.range).selector;if(!E.semverUtils.validRange(f)){let P=await o.getCandidates(r,new Map,d);f=E.structUtils.parseRange(P[0].reference).selector}let p=Ht.default.coerce(f);if(p===null)return;let h=`${Ie.suggestUtils.Modifier.CARET}${p.major}`,S=E.structUtils.makeDescriptor(E.structUtils.makeIdent("types",b),h),O=E.miscUtils.mapAndFind(n.workspaces,P=>{var T,V;let x=(T=P.manifest.dependencies.get(r.identHash))==null?void 0:T.descriptorHash,v=(V=P.manifest.devDependencies.get(r.identHash))==null?void 0:V.descriptorHash;if(x!==r.descriptorHash&&v!==r.descriptorHash)return E.miscUtils.mapAndFind.skip;let j=[];for(let Ae of Oe.Manifest.allDependencies){let Se=P.manifest[Ae].get(S.identHash);typeof Se!="undefined"&&j.push([Ae,Se])}return j.length===0?E.miscUtils.mapAndFind.skip:j});if(typeof O!="undefined")for(let[P,x]of O)e.manifest[P].set(x.identHash,x);else{try{if((await o.getCandidates(S,new Map,d)).length===0)return}catch{return}e.manifest[Ie.suggestUtils.Target.DEVELOPMENT].set(S.identHash,S)}},_s=async(e,t,r)=>{if(r.scope==="types")return;let s=_t(r),n=E.structUtils.makeIdent("types",s);for(let a of Oe.Manifest.allDependencies)typeof e.manifest[a].get(n.identHash)!="undefined"&&e.manifest[a].delete(n.identHash)},Fs=(e,t)=>{t.publishConfig&&t.publishConfig.typings&&(t.typings=t.publishConfig.typings),t.publishConfig&&t.publishConfig.types&&(t.types=t.publishConfig.types)},Bs={hooks:{afterWorkspaceDependencyAddition:Hs,afterWorkspaceDependencyRemoval:_s,beforeWorkspacePacking:Fs}},Ks=Bs;return Ws;})(); +return plugin; +} +}; diff --git a/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs b/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs new file mode 100644 index 00000000..b9044a01 --- /dev/null +++ b/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs @@ -0,0 +1,28 @@ +/* eslint-disable */ +//prettier-ignore +module.exports = { +name: "@yarnpkg/plugin-workspace-tools", +factory: function (require) { +var plugin=(()=>{var wr=Object.create,me=Object.defineProperty,Sr=Object.defineProperties,vr=Object.getOwnPropertyDescriptor,Hr=Object.getOwnPropertyDescriptors,$r=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,kr=Object.getPrototypeOf,tt=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable;var rt=(e,t,r)=>t in e?me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,B=(e,t)=>{for(var r in t||(t={}))tt.call(t,r)&&rt(e,r,t[r]);if(et)for(var r of et(t))Tr.call(t,r)&&rt(e,r,t[r]);return e},Q=(e,t)=>Sr(e,Hr(t)),Lr=e=>me(e,"__esModule",{value:!0});var K=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Or=(e,t)=>{for(var r in t)me(e,r,{get:t[r],enumerable:!0})},Nr=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $r(t))!tt.call(e,n)&&n!=="default"&&me(e,n,{get:()=>t[n],enumerable:!(r=vr(t,n))||r.enumerable});return e},X=e=>Nr(Lr(me(e!=null?wr(kr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var $e=K(te=>{"use strict";te.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;te.find=(e,t)=>e.nodes.find(r=>r.type===t);te.exceedsLimit=(e,t,r=1,n)=>n===!1||!te.isInteger(e)||!te.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;te.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};te.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0==0?(e.invalid=!0,!0):!1;te.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0==0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;te.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;te.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);te.flatten=(...e)=>{let t=[],r=n=>{for(let s=0;s{"use strict";var it=$e();at.exports=(e,t={})=>{let r=(n,s={})=>{let a=t.escapeInvalid&&it.isInvalidBrace(s),i=n.invalid===!0&&t.escapeInvalid===!0,o="";if(n.value)return(a||i)&&it.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let h of n.nodes)o+=r(h);return o};return r(e)}});var ct=K((os,ot)=>{"use strict";ot.exports=function(e){return typeof e=="number"?e-e==0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var At=K((cs,ut)=>{"use strict";var lt=ct(),pe=(e,t,r)=>{if(lt(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(lt(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n=B({relaxZeros:!0},r);typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),a=String(n.shorthand),i=String(n.capture),o=String(n.wrap),h=e+":"+t+"="+s+a+i+o;if(pe.cache.hasOwnProperty(h))return pe.cache[h].result;let g=Math.min(e,t),f=Math.max(e,t);if(Math.abs(g-f)===1){let R=e+"|"+t;return n.capture?`(${R})`:n.wrap===!1?R:`(?:${R})`}let A=ft(e)||ft(t),p={min:e,max:t,a:g,b:f},k=[],y=[];if(A&&(p.isPadded=A,p.maxLen=String(p.max).length),g<0){let R=f<0?Math.abs(f):1;y=pt(R,Math.abs(g),p,n),g=p.a=0}return f>=0&&(k=pt(g,f,p,n)),p.negatives=y,p.positives=k,p.result=Ir(y,k,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&k.length+y.length>1&&(p.result=`(?:${p.result})`),pe.cache[h]=p,p.result};function Ir(e,t,r){let n=Pe(e,t,"-",!1,r)||[],s=Pe(t,e,"",!1,r)||[],a=Pe(e,t,"-?",!0,r)||[];return n.concat(a).concat(s).join("|")}function Mr(e,t){let r=1,n=1,s=ht(e,r),a=new Set([t]);for(;e<=s&&s<=t;)a.add(s),r+=1,s=ht(e,r);for(s=dt(t+1,n)-1;e1&&o.count.pop(),o.count.push(f.count[0]),o.string=o.pattern+gt(o.count),i=g+1;continue}r.isPadded&&(A=Gr(g,r,n)),f.string=A+f.pattern+gt(f.count),a.push(f),i=g+1,o=f}return a}function Pe(e,t,r,n,s){let a=[];for(let i of e){let{string:o}=i;!n&&!mt(t,"string",o)&&a.push(r+o),n&&mt(t,"string",o)&&a.push(r+o)}return a}function Pr(e,t){let r=[];for(let n=0;nt?1:t>e?-1:0}function mt(e,t,r){return e.some(n=>n[t]===r)}function ht(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function dt(e,t){return e-e%Math.pow(10,t)}function gt(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Dr(e,t,r){return`[${e}${t-e==1?"":"-"}${t}]`}function ft(e){return/^-?(0+)\d/.test(e)}function Gr(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}pe.cache={};pe.clearCache=()=>pe.cache={};ut.exports=pe});var Ge=K((us,Rt)=>{"use strict";var qr=require("util"),yt=At(),bt=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Kr=e=>t=>e===!0?Number(t):String(t),De=e=>typeof e=="number"||typeof e=="string"&&e!=="",Re=e=>Number.isInteger(+e),Ue=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Wr=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,jr=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},_t=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length{e.negatives.sort((i,o)=>io?1:0),e.positives.sort((i,o)=>io?1:0);let r=t.capture?"":"?:",n="",s="",a;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(s=`-(${r}${e.negatives.join("|")})`),n&&s?a=`${n}|${s}`:a=n||s,t.wrap?`(${r}${a})`:a},Et=(e,t,r,n)=>{if(r)return yt(e,t,B({wrap:!1},n));let s=String.fromCharCode(e);if(e===t)return s;let a=String.fromCharCode(t);return`[${s}-${a}]`},xt=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return yt(e,t,r)},Ct=(...e)=>new RangeError("Invalid range arguments: "+qr.inspect(...e)),wt=(e,t,r)=>{if(r.strictRanges===!0)throw Ct([e,t]);return[]},Qr=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Xr=(e,t,r=1,n={})=>{let s=Number(e),a=Number(t);if(!Number.isInteger(s)||!Number.isInteger(a)){if(n.strictRanges===!0)throw Ct([e,t]);return[]}s===0&&(s=0),a===0&&(a=0);let i=s>a,o=String(e),h=String(t),g=String(r);r=Math.max(Math.abs(r),1);let f=Ue(o)||Ue(h)||Ue(g),A=f?Math.max(o.length,h.length,g.length):0,p=f===!1&&Wr(e,t,n)===!1,k=n.transform||Kr(p);if(n.toRegex&&r===1)return Et(_t(e,A),_t(t,A),!0,n);let y={negatives:[],positives:[]},R=T=>y[T<0?"negatives":"positives"].push(Math.abs(T)),_=[],x=0;for(;i?s>=a:s<=a;)n.toRegex===!0&&r>1?R(s):_.push(jr(k(s,x),A,p)),s=i?s-r:s+r,x++;return n.toRegex===!0?r>1?Fr(y,n):xt(_,null,B({wrap:!1},n)):_},Zr=(e,t,r=1,n={})=>{if(!Re(e)&&e.length>1||!Re(t)&&t.length>1)return wt(e,t,n);let s=n.transform||(p=>String.fromCharCode(p)),a=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),o=a>i,h=Math.min(a,i),g=Math.max(a,i);if(n.toRegex&&r===1)return Et(h,g,!1,n);let f=[],A=0;for(;o?a>=i:a<=i;)f.push(s(a,A)),a=o?a-r:a+r,A++;return n.toRegex===!0?xt(f,null,{wrap:!1,options:n}):f},Te=(e,t,r,n={})=>{if(t==null&&De(e))return[e];if(!De(e)||!De(t))return wt(e,t,n);if(typeof r=="function")return Te(e,t,1,{transform:r});if(bt(r))return Te(e,t,0,r);let s=B({},n);return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,Re(r)?Re(e)&&Re(t)?Xr(e,t,r,s):Zr(e,t,Math.max(Math.abs(r),1),s):r!=null&&!bt(r)?Qr(r,s):Te(e,t,1,r)};Rt.exports=Te});var Ht=K((ls,St)=>{"use strict";var Yr=Ge(),vt=$e(),zr=(e,t={})=>{let r=(n,s={})=>{let a=vt.isInvalidBrace(s),i=n.invalid===!0&&t.escapeInvalid===!0,o=a===!0||i===!0,h=t.escapeInvalid===!0?"\\":"",g="";if(n.isOpen===!0||n.isClose===!0)return h+n.value;if(n.type==="open")return o?h+n.value:"(";if(n.type==="close")return o?h+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":o?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=vt.reduce(n.nodes),A=Yr(...f,Q(B({},t),{wrap:!1,toRegex:!0}));if(A.length!==0)return f.length>1&&A.length>1?`(${A})`:A}if(n.nodes)for(let f of n.nodes)g+=r(f,n);return g};return r(e)};St.exports=zr});var Tt=K((ps,$t)=>{"use strict";var Vr=Ge(),kt=ke(),he=$e(),fe=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?he.flatten(t).map(s=>`{${s}}`):t;for(let s of e)if(Array.isArray(s))for(let a of s)n.push(fe(a,t,r));else for(let a of t)r===!0&&typeof a=="string"&&(a=`{${a}}`),n.push(Array.isArray(a)?fe(s,a,r):s+a);return he.flatten(n)},Jr=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(s,a={})=>{s.queue=[];let i=a,o=a.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,o=i.queue;if(s.invalid||s.dollar){o.push(fe(o.pop(),kt(s,t)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){o.push(fe(o.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let A=he.reduce(s.nodes);if(he.exceedsLimit(...A,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=Vr(...A,t);p.length===0&&(p=kt(s,t)),o.push(fe(o.pop(),p)),s.nodes=[];return}let h=he.encloseBrace(s),g=s.queue,f=s;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,g=f.queue;for(let A=0;A{"use strict";Lt.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:` +`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Pt=K((hs,Nt)=>{"use strict";var en=ke(),{MAX_LENGTH:It,CHAR_BACKSLASH:qe,CHAR_BACKTICK:tn,CHAR_COMMA:rn,CHAR_DOT:nn,CHAR_LEFT_PARENTHESES:sn,CHAR_RIGHT_PARENTHESES:an,CHAR_LEFT_CURLY_BRACE:on,CHAR_RIGHT_CURLY_BRACE:cn,CHAR_LEFT_SQUARE_BRACKET:Bt,CHAR_RIGHT_SQUARE_BRACKET:Mt,CHAR_DOUBLE_QUOTE:un,CHAR_SINGLE_QUOTE:ln,CHAR_NO_BREAK_SPACE:pn,CHAR_ZERO_WIDTH_NOBREAK_SPACE:fn}=Ot(),hn=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(It,r.maxLength):It;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let s={type:"root",input:e,nodes:[]},a=[s],i=s,o=s,h=0,g=e.length,f=0,A=0,p,k={},y=()=>e[f++],R=_=>{if(_.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&_.type==="text"){o.value+=_.value;return}return i.nodes.push(_),_.parent=i,_.prev=o,o=_,_};for(R({type:"bos"});f0){if(i.ranges>0){i.ranges=0;let _=i.nodes.shift();i.nodes=[_,{type:"text",value:en(i)}]}R({type:"comma",value:p}),i.commas++;continue}if(p===nn&&A>0&&i.commas===0){let _=i.nodes;if(A===0||_.length===0){R({type:"text",value:p});continue}if(o.type==="dot"){if(i.range=[],o.value+=p,o.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,o.type="text";continue}i.ranges++,i.args=[];continue}if(o.type==="range"){_.pop();let x=_[_.length-1];x.value+=o.value+p,o=x,i.ranges--;continue}R({type:"dot",value:p});continue}R({type:"text",value:p})}do if(i=a.pop(),i.type!=="root"){i.nodes.forEach(T=>{T.nodes||(T.type==="open"&&(T.isOpen=!0),T.type==="close"&&(T.isClose=!0),T.nodes||(T.type="text"),T.invalid=!0)});let _=a[a.length-1],x=_.nodes.indexOf(i);_.nodes.splice(x,1,...i.nodes)}while(a.length>0);return R({type:"eos"}),s};Nt.exports=hn});var Gt=K((ds,Dt)=>{"use strict";var Ut=ke(),dn=Ht(),gn=Tt(),mn=Pt(),V=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let s=V.create(n,t);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(V.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};V.parse=(e,t={})=>mn(e,t);V.stringify=(e,t={})=>typeof e=="string"?Ut(V.parse(e,t),t):Ut(e,t);V.compile=(e,t={})=>(typeof e=="string"&&(e=V.parse(e,t)),dn(e,t));V.expand=(e,t={})=>{typeof e=="string"&&(e=V.parse(e,t));let r=gn(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};V.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?V.compile(e,t):V.expand(e,t);Dt.exports=V});var ye=K((gs,qt)=>{"use strict";var An=require("path"),ie="\\\\/",Kt=`[^${ie}]`,ce="\\.",Rn="\\+",yn="\\?",Le="\\/",bn="(?=.)",Wt="[^/]",Ke=`(?:${Le}|$)`,jt=`(?:^|${Le})`,We=`${ce}{1,2}${Ke}`,_n=`(?!${ce})`,En=`(?!${jt}${We})`,xn=`(?!${ce}{0,1}${Ke})`,Cn=`(?!${We})`,wn=`[^.${Le}]`,Sn=`${Wt}*?`,Ft={DOT_LITERAL:ce,PLUS_LITERAL:Rn,QMARK_LITERAL:yn,SLASH_LITERAL:Le,ONE_CHAR:bn,QMARK:Wt,END_ANCHOR:Ke,DOTS_SLASH:We,NO_DOT:_n,NO_DOTS:En,NO_DOT_SLASH:xn,NO_DOTS_SLASH:Cn,QMARK_NO_DOT:wn,STAR:Sn,START_ANCHOR:jt},vn=Q(B({},Ft),{SLASH_LITERAL:`[${ie}]`,QMARK:Kt,STAR:`${Kt}*?`,DOTS_SLASH:`${ce}{1,2}(?:[${ie}]|$)`,NO_DOT:`(?!${ce})`,NO_DOTS:`(?!(?:^|[${ie}])${ce}{1,2}(?:[${ie}]|$))`,NO_DOT_SLASH:`(?!${ce}{0,1}(?:[${ie}]|$))`,NO_DOTS_SLASH:`(?!${ce}{1,2}(?:[${ie}]|$))`,QMARK_NO_DOT:`[^.${ie}]`,START_ANCHOR:`(?:^|[${ie}])`,END_ANCHOR:`(?:[${ie}]|$)`}),Hn={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};qt.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Hn,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:An.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?vn:Ft}}});var be=K(Z=>{"use strict";var $n=require("path"),kn=process.platform==="win32",{REGEX_BACKSLASH:Tn,REGEX_REMOVE_BACKSLASH:Ln,REGEX_SPECIAL_CHARS:On,REGEX_SPECIAL_CHARS_GLOBAL:Nn}=ye();Z.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Z.hasRegexChars=e=>On.test(e);Z.isRegexChar=e=>e.length===1&&Z.hasRegexChars(e);Z.escapeRegex=e=>e.replace(Nn,"\\$1");Z.toPosixSlashes=e=>e.replace(Tn,"/");Z.removeBackslashes=e=>e.replace(Ln,t=>t==="\\"?"":t);Z.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Z.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:kn===!0||$n.sep==="\\";Z.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Z.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Z.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Z.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",a=`${n}(?:${e})${s}`;return t.negated===!0&&(a=`(?:^(?!${a}).*$)`),a}});var er=K((As,Qt)=>{"use strict";var Xt=be(),{CHAR_ASTERISK:je,CHAR_AT:In,CHAR_BACKWARD_SLASH:_e,CHAR_COMMA:Bn,CHAR_DOT:Fe,CHAR_EXCLAMATION_MARK:Qe,CHAR_FORWARD_SLASH:Zt,CHAR_LEFT_CURLY_BRACE:Xe,CHAR_LEFT_PARENTHESES:Ze,CHAR_LEFT_SQUARE_BRACKET:Mn,CHAR_PLUS:Pn,CHAR_QUESTION_MARK:Yt,CHAR_RIGHT_CURLY_BRACE:Dn,CHAR_RIGHT_PARENTHESES:zt,CHAR_RIGHT_SQUARE_BRACKET:Un}=ye(),Vt=e=>e===Zt||e===_e,Jt=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?Infinity:1)},Gn=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,a=[],i=[],o=[],h=e,g=-1,f=0,A=0,p=!1,k=!1,y=!1,R=!1,_=!1,x=!1,T=!1,O=!1,W=!1,G=!1,ne=0,E,b,C={value:"",depth:0,isGlob:!1},M=()=>g>=n,l=()=>h.charCodeAt(g+1),H=()=>(E=b,h.charCodeAt(++g));for(;g0&&(j=h.slice(0,f),h=h.slice(f),A-=f),w&&y===!0&&A>0?(w=h.slice(0,A),c=h.slice(A)):y===!0?(w="",c=h):w=h,w&&w!==""&&w!=="/"&&w!==h&&Vt(w.charCodeAt(w.length-1))&&(w=w.slice(0,-1)),r.unescape===!0&&(c&&(c=Xt.removeBackslashes(c)),w&&T===!0&&(w=Xt.removeBackslashes(w)));let u={prefix:j,input:e,start:f,base:w,glob:c,isBrace:p,isBracket:k,isGlob:y,isExtglob:R,isGlobstar:_,negated:O,negatedExtglob:W};if(r.tokens===!0&&(u.maxDepth=0,Vt(b)||i.push(C),u.tokens=i),r.parts===!0||r.tokens===!0){let I;for(let $=0;${"use strict";var Oe=ye(),J=be(),{MAX_LENGTH:Ne,POSIX_REGEX_SOURCE:qn,REGEX_NON_SPECIAL_CHARS:Kn,REGEX_SPECIAL_CHARS_BACKREF:Wn,REPLACEMENTS:rr}=Oe,jn=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(s=>J.escapeRegex(s)).join("..")}return r},de=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,nr=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=rr[e]||e;let r=B({},t),n=typeof r.maxLength=="number"?Math.min(Ne,r.maxLength):Ne,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let a={type:"bos",value:"",output:r.prepend||""},i=[a],o=r.capture?"":"?:",h=J.isWindows(t),g=Oe.globChars(h),f=Oe.extglobChars(g),{DOT_LITERAL:A,PLUS_LITERAL:p,SLASH_LITERAL:k,ONE_CHAR:y,DOTS_SLASH:R,NO_DOT:_,NO_DOT_SLASH:x,NO_DOTS_SLASH:T,QMARK:O,QMARK_NO_DOT:W,STAR:G,START_ANCHOR:ne}=g,E=m=>`(${o}(?:(?!${ne}${m.dot?R:A}).)*?)`,b=r.dot?"":_,C=r.dot?O:W,M=r.bash===!0?E(r):G;r.capture&&(M=`(${M})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let l={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=J.removePrefix(e,l),s=e.length;let H=[],w=[],j=[],c=a,u,I=()=>l.index===s-1,$=l.peek=(m=1)=>e[l.index+m],ee=l.advance=()=>e[++l.index]||"",se=()=>e.slice(l.index+1),z=(m="",L=0)=>{l.consumed+=m,l.index+=L},Ce=m=>{l.output+=m.output!=null?m.output:m.value,z(m.value)},xr=()=>{let m=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)ee(),l.start++,m++;return m%2==0?!1:(l.negated=!0,l.start++,!0)},we=m=>{l[m]++,j.push(m)},ue=m=>{l[m]--,j.pop()},v=m=>{if(c.type==="globstar"){let L=l.braces>0&&(m.type==="comma"||m.type==="brace"),d=m.extglob===!0||H.length&&(m.type==="pipe"||m.type==="paren");m.type!=="slash"&&m.type!=="paren"&&!L&&!d&&(l.output=l.output.slice(0,-c.output.length),c.type="star",c.value="*",c.output=M,l.output+=c.output)}if(H.length&&m.type!=="paren"&&(H[H.length-1].inner+=m.value),(m.value||m.output)&&Ce(m),c&&c.type==="text"&&m.type==="text"){c.value+=m.value,c.output=(c.output||"")+m.value;return}m.prev=c,i.push(m),c=m},Se=(m,L)=>{let d=Q(B({},f[L]),{conditions:1,inner:""});d.prev=c,d.parens=l.parens,d.output=l.output;let S=(r.capture?"(":"")+d.open;we("parens"),v({type:m,value:L,output:l.output?"":y}),v({type:"paren",extglob:!0,value:ee(),output:S}),H.push(d)},Cr=m=>{let L=m.close+(r.capture?")":""),d;if(m.type==="negate"){let S=M;m.inner&&m.inner.length>1&&m.inner.includes("/")&&(S=E(r)),(S!==M||I()||/^\)+$/.test(se()))&&(L=m.close=`)$))${S}`),m.inner.includes("*")&&(d=se())&&/^\.[^\\/.]+$/.test(d)&&(L=m.close=`)${d})${S})`),m.prev.type==="bos"&&(l.negatedExtglob=!0)}v({type:"paren",extglob:!0,value:u,output:L}),ue("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let m=!1,L=e.replace(Wn,(d,S,P,F,q,Me)=>F==="\\"?(m=!0,d):F==="?"?S?S+F+(q?O.repeat(q.length):""):Me===0?C+(q?O.repeat(q.length):""):O.repeat(P.length):F==="."?A.repeat(P.length):F==="*"?S?S+F+(q?M:""):M:S?d:`\\${d}`);return m===!0&&(r.unescape===!0?L=L.replace(/\\/g,""):L=L.replace(/\\+/g,d=>d.length%2==0?"\\\\":d?"\\":"")),L===e&&r.contains===!0?(l.output=e,l):(l.output=J.wrapOutput(L,l,t),l)}for(;!I();){if(u=ee(),u==="\0")continue;if(u==="\\"){let d=$();if(d==="/"&&r.bash!==!0||d==="."||d===";")continue;if(!d){u+="\\",v({type:"text",value:u});continue}let S=/^\\+/.exec(se()),P=0;if(S&&S[0].length>2&&(P=S[0].length,l.index+=P,P%2!=0&&(u+="\\")),r.unescape===!0?u=ee():u+=ee(),l.brackets===0){v({type:"text",value:u});continue}}if(l.brackets>0&&(u!=="]"||c.value==="["||c.value==="[^")){if(r.posix!==!1&&u===":"){let d=c.value.slice(1);if(d.includes("[")&&(c.posix=!0,d.includes(":"))){let S=c.value.lastIndexOf("["),P=c.value.slice(0,S),F=c.value.slice(S+2),q=qn[F];if(q){c.value=P+q,l.backtrack=!0,ee(),!a.output&&i.indexOf(c)===1&&(a.output=y);continue}}}(u==="["&&$()!==":"||u==="-"&&$()==="]")&&(u=`\\${u}`),u==="]"&&(c.value==="["||c.value==="[^")&&(u=`\\${u}`),r.posix===!0&&u==="!"&&c.value==="["&&(u="^"),c.value+=u,Ce({value:u});continue}if(l.quotes===1&&u!=='"'){u=J.escapeRegex(u),c.value+=u,Ce({value:u});continue}if(u==='"'){l.quotes=l.quotes===1?0:1,r.keepQuotes===!0&&v({type:"text",value:u});continue}if(u==="("){we("parens"),v({type:"paren",value:u});continue}if(u===")"){if(l.parens===0&&r.strictBrackets===!0)throw new SyntaxError(de("opening","("));let d=H[H.length-1];if(d&&l.parens===d.parens+1){Cr(H.pop());continue}v({type:"paren",value:u,output:l.parens?")":"\\)"}),ue("parens");continue}if(u==="["){if(r.nobracket===!0||!se().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(de("closing","]"));u=`\\${u}`}else we("brackets");v({type:"bracket",value:u});continue}if(u==="]"){if(r.nobracket===!0||c&&c.type==="bracket"&&c.value.length===1){v({type:"text",value:u,output:`\\${u}`});continue}if(l.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(de("opening","["));v({type:"text",value:u,output:`\\${u}`});continue}ue("brackets");let d=c.value.slice(1);if(c.posix!==!0&&d[0]==="^"&&!d.includes("/")&&(u=`/${u}`),c.value+=u,Ce({value:u}),r.literalBrackets===!1||J.hasRegexChars(d))continue;let S=J.escapeRegex(c.value);if(l.output=l.output.slice(0,-c.value.length),r.literalBrackets===!0){l.output+=S,c.value=S;continue}c.value=`(${o}${S}|${c.value})`,l.output+=c.value;continue}if(u==="{"&&r.nobrace!==!0){we("braces");let d={type:"brace",value:u,output:"(",outputIndex:l.output.length,tokensIndex:l.tokens.length};w.push(d),v(d);continue}if(u==="}"){let d=w[w.length-1];if(r.nobrace===!0||!d){v({type:"text",value:u,output:u});continue}let S=")";if(d.dots===!0){let P=i.slice(),F=[];for(let q=P.length-1;q>=0&&(i.pop(),P[q].type!=="brace");q--)P[q].type!=="dots"&&F.unshift(P[q].value);S=jn(F,r),l.backtrack=!0}if(d.comma!==!0&&d.dots!==!0){let P=l.output.slice(0,d.outputIndex),F=l.tokens.slice(d.tokensIndex);d.value=d.output="\\{",u=S="\\}",l.output=P;for(let q of F)l.output+=q.output||q.value}v({type:"brace",value:u,output:S}),ue("braces"),w.pop();continue}if(u==="|"){H.length>0&&H[H.length-1].conditions++,v({type:"text",value:u});continue}if(u===","){let d=u,S=w[w.length-1];S&&j[j.length-1]==="braces"&&(S.comma=!0,d="|"),v({type:"comma",value:u,output:d});continue}if(u==="/"){if(c.type==="dot"&&l.index===l.start+1){l.start=l.index+1,l.consumed="",l.output="",i.pop(),c=a;continue}v({type:"slash",value:u,output:k});continue}if(u==="."){if(l.braces>0&&c.type==="dot"){c.value==="."&&(c.output=A);let d=w[w.length-1];c.type="dots",c.output+=u,c.value+=u,d.dots=!0;continue}if(l.braces+l.parens===0&&c.type!=="bos"&&c.type!=="slash"){v({type:"text",value:u,output:A});continue}v({type:"dot",value:u,output:A});continue}if(u==="?"){if(!(c&&c.value==="(")&&r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Se("qmark",u);continue}if(c&&c.type==="paren"){let S=$(),P=u;if(S==="<"&&!J.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(c.value==="("&&!/[!=<:]/.test(S)||S==="<"&&!/<([!=]|\w+>)/.test(se()))&&(P=`\\${u}`),v({type:"text",value:u,output:P});continue}if(r.dot!==!0&&(c.type==="slash"||c.type==="bos")){v({type:"qmark",value:u,output:W});continue}v({type:"qmark",value:u,output:O});continue}if(u==="!"){if(r.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){Se("negate",u);continue}if(r.nonegate!==!0&&l.index===0){xr();continue}}if(u==="+"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Se("plus",u);continue}if(c&&c.value==="("||r.regex===!1){v({type:"plus",value:u,output:p});continue}if(c&&(c.type==="bracket"||c.type==="paren"||c.type==="brace")||l.parens>0){v({type:"plus",value:u});continue}v({type:"plus",value:p});continue}if(u==="@"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){v({type:"at",extglob:!0,value:u,output:""});continue}v({type:"text",value:u});continue}if(u!=="*"){(u==="$"||u==="^")&&(u=`\\${u}`);let d=Kn.exec(se());d&&(u+=d[0],l.index+=d[0].length),v({type:"text",value:u});continue}if(c&&(c.type==="globstar"||c.star===!0)){c.type="star",c.star=!0,c.value+=u,c.output=M,l.backtrack=!0,l.globstar=!0,z(u);continue}let m=se();if(r.noextglob!==!0&&/^\([^?]/.test(m)){Se("star",u);continue}if(c.type==="star"){if(r.noglobstar===!0){z(u);continue}let d=c.prev,S=d.prev,P=d.type==="slash"||d.type==="bos",F=S&&(S.type==="star"||S.type==="globstar");if(r.bash===!0&&(!P||m[0]&&m[0]!=="/")){v({type:"star",value:u,output:""});continue}let q=l.braces>0&&(d.type==="comma"||d.type==="brace"),Me=H.length&&(d.type==="pipe"||d.type==="paren");if(!P&&d.type!=="paren"&&!q&&!Me){v({type:"star",value:u,output:""});continue}for(;m.slice(0,3)==="/**";){let ve=e[l.index+4];if(ve&&ve!=="/")break;m=m.slice(3),z("/**",3)}if(d.type==="bos"&&I()){c.type="globstar",c.value+=u,c.output=E(r),l.output=c.output,l.globstar=!0,z(u);continue}if(d.type==="slash"&&d.prev.type!=="bos"&&!F&&I()){l.output=l.output.slice(0,-(d.output+c.output).length),d.output=`(?:${d.output}`,c.type="globstar",c.output=E(r)+(r.strictSlashes?")":"|$)"),c.value+=u,l.globstar=!0,l.output+=d.output+c.output,z(u);continue}if(d.type==="slash"&&d.prev.type!=="bos"&&m[0]==="/"){let ve=m[1]!==void 0?"|$":"";l.output=l.output.slice(0,-(d.output+c.output).length),d.output=`(?:${d.output}`,c.type="globstar",c.output=`${E(r)}${k}|${k}${ve})`,c.value+=u,l.output+=d.output+c.output,l.globstar=!0,z(u+ee()),v({type:"slash",value:"/",output:""});continue}if(d.type==="bos"&&m[0]==="/"){c.type="globstar",c.value+=u,c.output=`(?:^|${k}|${E(r)}${k})`,l.output=c.output,l.globstar=!0,z(u+ee()),v({type:"slash",value:"/",output:""});continue}l.output=l.output.slice(0,-c.output.length),c.type="globstar",c.output=E(r),c.value+=u,l.output+=c.output,l.globstar=!0,z(u);continue}let L={type:"star",value:u,output:M};if(r.bash===!0){L.output=".*?",(c.type==="bos"||c.type==="slash")&&(L.output=b+L.output),v(L);continue}if(c&&(c.type==="bracket"||c.type==="paren")&&r.regex===!0){L.output=u,v(L);continue}(l.index===l.start||c.type==="slash"||c.type==="dot")&&(c.type==="dot"?(l.output+=x,c.output+=x):r.dot===!0?(l.output+=T,c.output+=T):(l.output+=b,c.output+=b),$()!=="*"&&(l.output+=y,c.output+=y)),v(L)}for(;l.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(de("closing","]"));l.output=J.escapeLast(l.output,"["),ue("brackets")}for(;l.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(de("closing",")"));l.output=J.escapeLast(l.output,"("),ue("parens")}for(;l.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(de("closing","}"));l.output=J.escapeLast(l.output,"{"),ue("braces")}if(r.strictSlashes!==!0&&(c.type==="star"||c.type==="bracket")&&v({type:"maybe_slash",value:"",output:`${k}?`}),l.backtrack===!0){l.output="";for(let m of l.tokens)l.output+=m.output!=null?m.output:m.value,m.suffix&&(l.output+=m.suffix)}return l};nr.fastpaths=(e,t)=>{let r=B({},t),n=typeof r.maxLength=="number"?Math.min(Ne,r.maxLength):Ne,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=rr[e]||e;let a=J.isWindows(t),{DOT_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:h,DOTS_SLASH:g,NO_DOT:f,NO_DOTS:A,NO_DOTS_SLASH:p,STAR:k,START_ANCHOR:y}=Oe.globChars(a),R=r.dot?A:f,_=r.dot?p:f,x=r.capture?"":"?:",T={negated:!1,prefix:""},O=r.bash===!0?".*?":k;r.capture&&(O=`(${O})`);let W=b=>b.noglobstar===!0?O:`(${x}(?:(?!${y}${b.dot?g:i}).)*?)`,G=b=>{switch(b){case"*":return`${R}${h}${O}`;case".*":return`${i}${h}${O}`;case"*.*":return`${R}${O}${i}${h}${O}`;case"*/*":return`${R}${O}${o}${h}${_}${O}`;case"**":return R+W(r);case"**/*":return`(?:${R}${W(r)}${o})?${_}${h}${O}`;case"**/*.*":return`(?:${R}${W(r)}${o})?${_}${O}${i}${h}${O}`;case"**/.*":return`(?:${R}${W(r)}${o})?${i}${h}${O}`;default:{let C=/^(.*?)\.(\w+)$/.exec(b);if(!C)return;let M=G(C[1]);return M?M+i+C[2]:void 0}}},ne=J.removePrefix(e,T),E=G(ne);return E&&r.strictSlashes!==!0&&(E+=`${o}?`),E};tr.exports=nr});var ir=K((ys,ar)=>{"use strict";var Fn=require("path"),Qn=er(),Ye=sr(),ze=be(),Xn=ye(),Zn=e=>e&&typeof e=="object"&&!Array.isArray(e),D=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(p=>D(p,t,r));return p=>{for(let k of f){let y=k(p);if(y)return y}return!1}}let n=Zn(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let s=t||{},a=ze.isWindows(t),i=n?D.compileRe(e,t):D.makeRe(e,t,!1,!0),o=i.state;delete i.state;let h=()=>!1;if(s.ignore){let f=Q(B({},t),{ignore:null,onMatch:null,onResult:null});h=D(s.ignore,f,r)}let g=(f,A=!1)=>{let{isMatch:p,match:k,output:y}=D.test(f,i,t,{glob:e,posix:a}),R={glob:e,state:o,regex:i,posix:a,input:f,output:y,match:k,isMatch:p};return typeof s.onResult=="function"&&s.onResult(R),p===!1?(R.isMatch=!1,A?R:!1):h(f)?(typeof s.onIgnore=="function"&&s.onIgnore(R),R.isMatch=!1,A?R:!1):(typeof s.onMatch=="function"&&s.onMatch(R),A?R:!0)};return r&&(g.state=o),g};D.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let a=r||{},i=a.format||(s?ze.toPosixSlashes:null),o=e===n,h=o&&i?i(e):e;return o===!1&&(h=i?i(e):e,o=h===n),(o===!1||a.capture===!0)&&(a.matchBase===!0||a.basename===!0?o=D.matchBase(e,t,r,s):o=t.exec(h)),{isMatch:Boolean(o),match:o,output:h}};D.matchBase=(e,t,r,n=ze.isWindows(r))=>(t instanceof RegExp?t:D.makeRe(t,r)).test(Fn.basename(e));D.isMatch=(e,t,r)=>D(t,r)(e);D.parse=(e,t)=>Array.isArray(e)?e.map(r=>D.parse(r,t)):Ye(e,Q(B({},t),{fastpaths:!1}));D.scan=(e,t)=>Qn(e,t);D.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},a=s.contains?"":"^",i=s.contains?"":"$",o=`${a}(?:${e.output})${i}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let h=D.toRegex(o,t);return n===!0&&(h.state=e),h};D.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(s.output=Ye.fastpaths(e,t)),s.output||(s=Ye(e,t)),D.compileRe(s,t,r,n)};D.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};D.constants=Xn;ar.exports=D});var cr=K((bs,or)=>{"use strict";or.exports=ir()});var hr=K((_s,ur)=>{"use strict";var lr=require("util"),pr=Gt(),oe=cr(),Ve=be(),fr=e=>e===""||e==="./",N=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,s=new Set,a=new Set,i=0,o=f=>{a.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f!n.has(f));if(r&&g.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return g};N.match=N;N.matcher=(e,t)=>oe(e,t);N.isMatch=(e,t,r)=>oe(t,r)(e);N.any=N.isMatch;N.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,s=[],a=o=>{r.onResult&&r.onResult(o),s.push(o.output)},i=N(e,t,Q(B({},r),{onResult:a}));for(let o of s)i.includes(o)||n.add(o);return[...n]};N.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${lr.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>N.contains(e,n,r));if(typeof t=="string"){if(fr(e)||fr(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return N.isMatch(e,t,Q(B({},r),{contains:!0}))};N.matchKeys=(e,t,r)=>{if(!Ve.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=N(Object.keys(e),t,r),s={};for(let a of n)s[a]=e[a];return s};N.some=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let a=oe(String(s),r);if(n.some(i=>a(i)))return!0}return!1};N.every=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let a=oe(String(s),r);if(!n.every(i=>a(i)))return!1}return!0};N.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${lr.inspect(e)}"`);return[].concat(t).every(n=>oe(n,r)(e))};N.capture=(e,t,r)=>{let n=Ve.isWindows(r),a=oe.makeRe(String(e),Q(B({},r),{capture:!0})).exec(n?Ve.toPosixSlashes(t):t);if(a)return a.slice(1).map(i=>i===void 0?"":i)};N.makeRe=(...e)=>oe.makeRe(...e);N.scan=(...e)=>oe.scan(...e);N.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let s of pr(String(n),t))r.push(oe.parse(s,t));return r};N.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:pr(e,t)};N.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return N.braces(e,Q(B({},t),{expand:!0}))};ur.exports=N});var gr=K((Es,dr)=>{"use strict";dr.exports=(e,...t)=>new Promise(r=>{r(e(...t))})});var Ar=K((xs,Je)=>{"use strict";var Yn=gr(),mr=e=>{if(e<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()()},s=(o,h,...g)=>{r++;let f=Yn(o,...g);h(f),f.then(n,n)},a=(o,h,...g)=>{rnew Promise(g=>a(o,g,...h));return Object.defineProperties(i,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length}}),i};Je.exports=mr;Je.exports.default=mr});var Vn={};Or(Vn,{default:()=>es});var He=X(require("@yarnpkg/cli")),ae=X(require("@yarnpkg/core")),nt=X(require("@yarnpkg/core")),le=X(require("clipanion")),Ae=class extends He.BaseCommand{constructor(){super(...arguments);this.json=le.Option.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.production=le.Option.Boolean("--production",!1,{description:"Only install regular dependencies by omitting dev dependencies"});this.all=le.Option.Boolean("-A,--all",!1,{description:"Install the entire project"});this.workspaces=le.Option.Rest()}async execute(){let t=await ae.Configuration.find(this.context.cwd,this.context.plugins),{project:r,workspace:n}=await ae.Project.find(t,this.context.cwd),s=await ae.Cache.find(t);await r.restoreInstallState({restoreResolutions:!1});let a;if(this.all)a=new Set(r.workspaces);else if(this.workspaces.length===0){if(!n)throw new He.WorkspaceRequiredError(r.cwd,this.context.cwd);a=new Set([n])}else a=new Set(this.workspaces.map(o=>r.getWorkspaceByIdent(nt.structUtils.parseIdent(o))));for(let o of a)for(let h of this.production?["dependencies"]:ae.Manifest.hardDependencies)for(let g of o.manifest.getForScope(h).values()){let f=r.tryWorkspaceByDescriptor(g);f!==null&&a.add(f)}for(let o of r.workspaces)a.has(o)?this.production&&o.manifest.devDependencies.clear():(o.manifest.installConfig=o.manifest.installConfig||{},o.manifest.installConfig.selfReferences=!1,o.manifest.dependencies.clear(),o.manifest.devDependencies.clear(),o.manifest.peerDependencies.clear(),o.manifest.scripts.clear());return(await ae.StreamReport.start({configuration:t,json:this.json,stdout:this.context.stdout,includeLogs:!0},async o=>{await r.install({cache:s,report:o,persistProject:!1})})).exitCode()}};Ae.paths=[["workspaces","focus"]],Ae.usage=le.Command.Usage({category:"Workspace-related commands",description:"install a single workspace and its dependencies",details:"\n This command will run an install as if the specified workspaces (and all other workspaces they depend on) were the only ones in the project. If no workspaces are explicitly listed, the active one will be assumed.\n\n Note that this command is only very moderately useful when using zero-installs, since the cache will contain all the packages anyway - meaning that the only difference between a full install and a focused install would just be a few extra lines in the `.pnp.cjs` file, at the cost of introducing an extra complexity.\n\n If the `-A,--all` flag is set, the entire project will be installed. Combine with `--production` to replicate the old `yarn install --production`.\n "});var st=Ae;var Ie=X(require("@yarnpkg/cli")),ge=X(require("@yarnpkg/core")),Ee=X(require("@yarnpkg/core")),Y=X(require("@yarnpkg/core")),Rr=X(require("@yarnpkg/plugin-git")),U=X(require("clipanion")),Be=X(hr()),yr=X(require("os")),br=X(Ar()),re=X(require("typanion")),xe=class extends Ie.BaseCommand{constructor(){super(...arguments);this.recursive=U.Option.Boolean("-R,--recursive",!1,{description:"Find packages via dependencies/devDependencies instead of using the workspaces field"});this.from=U.Option.Array("--from",[],{description:"An array of glob pattern idents from which to base any recursion"});this.all=U.Option.Boolean("-A,--all",!1,{description:"Run the command on all workspaces of a project"});this.verbose=U.Option.Boolean("-v,--verbose",!1,{description:"Prefix each output line with the name of the originating workspace"});this.parallel=U.Option.Boolean("-p,--parallel",!1,{description:"Run the commands in parallel"});this.interlaced=U.Option.Boolean("-i,--interlaced",!1,{description:"Print the output of commands in real-time instead of buffering it"});this.jobs=U.Option.String("-j,--jobs",{description:"The maximum number of parallel tasks that the execution will be limited to; or `unlimited`",validator:re.isOneOf([re.isEnum(["unlimited"]),re.applyCascade(re.isNumber(),[re.isInteger(),re.isAtLeast(1)])])});this.topological=U.Option.Boolean("-t,--topological",!1,{description:"Run the command after all workspaces it depends on (regular) have finished"});this.topologicalDev=U.Option.Boolean("--topological-dev",!1,{description:"Run the command after all workspaces it depends on (regular + dev) have finished"});this.include=U.Option.Array("--include",[],{description:"An array of glob pattern idents; only matching workspaces will be traversed"});this.exclude=U.Option.Array("--exclude",[],{description:"An array of glob pattern idents; matching workspaces won't be traversed"});this.publicOnly=U.Option.Boolean("--no-private",{description:"Avoid running the command on private workspaces"});this.since=U.Option.String("--since",{description:"Only include workspaces that have been changed since the specified ref.",tolerateBoolean:!0});this.commandName=U.Option.String();this.args=U.Option.Proxy()}async execute(){let t=await ge.Configuration.find(this.context.cwd,this.context.plugins),{project:r,workspace:n}=await ge.Project.find(t,this.context.cwd);if(!this.all&&!n)throw new Ie.WorkspaceRequiredError(r.cwd,this.context.cwd);await r.restoreInstallState();let s=this.cli.process([this.commandName,...this.args]),a=s.path.length===1&&s.path[0]==="run"&&typeof s.scriptName!="undefined"?s.scriptName:null;if(s.path.length===0)throw new U.UsageError("Invalid subcommand name for iteration - use the 'run' keyword if you wish to execute a script");let i=this.all?r.topLevelWorkspace:n,o=this.since?Array.from(await Rr.gitUtils.fetchChangedWorkspaces({ref:this.since,project:r})):[i,...this.from.length>0?i.getRecursiveWorkspaceChildren():[]],h=E=>Be.default.isMatch(Y.structUtils.stringifyIdent(E.locator),this.from),g=this.from.length>0?o.filter(h):o,f=new Set([...g,...g.map(E=>[...this.recursive?this.since?E.getRecursiveWorkspaceDependents():E.getRecursiveWorkspaceDependencies():E.getRecursiveWorkspaceChildren()]).flat()]),A=[],p=!1;if(a==null?void 0:a.includes(":")){for(let E of r.workspaces)if(E.manifest.scripts.has(a)&&(p=!p,p===!1))break}for(let E of f)a&&!E.manifest.scripts.has(a)&&!p&&!(await ge.scriptUtils.getWorkspaceAccessibleBinaries(E)).has(a)||a===process.env.npm_lifecycle_event&&E.cwd===n.cwd||this.include.length>0&&!Be.default.isMatch(Y.structUtils.stringifyIdent(E.locator),this.include)||this.exclude.length>0&&Be.default.isMatch(Y.structUtils.stringifyIdent(E.locator),this.exclude)||this.publicOnly&&E.manifest.private===!0||A.push(E);let k=this.parallel?this.jobs==="unlimited"?Infinity:this.jobs||Math.max(1,(0,yr.cpus)().length/2):1,y=k===1?!1:this.parallel,R=y?this.interlaced:!0,_=(0,br.default)(k),x=new Map,T=new Set,O=0,W=null,G=!1,ne=await Ee.StreamReport.start({configuration:t,stdout:this.context.stdout},async E=>{let b=async(C,{commandIndex:M})=>{if(G)return-1;!y&&this.verbose&&M>1&&E.reportSeparator();let l=zn(C,{configuration:t,verbose:this.verbose,commandIndex:M}),[H,w]=_r(E,{prefix:l,interlaced:R}),[j,c]=_r(E,{prefix:l,interlaced:R});try{this.verbose&&E.reportInfo(null,`${l} Process started`);let u=Date.now(),I=await this.cli.run([this.commandName,...this.args],{cwd:C.cwd,stdout:H,stderr:j})||0;H.end(),j.end(),await w,await c;let $=Date.now();if(this.verbose){let ee=t.get("enableTimers")?`, completed in ${Y.formatUtils.pretty(t,$-u,Y.formatUtils.Type.DURATION)}`:"";E.reportInfo(null,`${l} Process exited (exit code ${I})${ee}`)}return I===130&&(G=!0,W=I),I}catch(u){throw H.end(),j.end(),await w,await c,u}};for(let C of A)x.set(C.anchoredLocator.locatorHash,C);for(;x.size>0&&!E.hasErrors();){let C=[];for(let[H,w]of x){if(T.has(w.anchoredDescriptor.descriptorHash))continue;let j=!0;if(this.topological||this.topologicalDev){let c=this.topologicalDev?new Map([...w.manifest.dependencies,...w.manifest.devDependencies]):w.manifest.dependencies;for(let u of c.values()){let I=r.tryWorkspaceByDescriptor(u);if(j=I===null||!x.has(I.anchoredLocator.locatorHash),!j)break}}if(!!j&&(T.add(w.anchoredDescriptor.descriptorHash),C.push(_(async()=>{let c=await b(w,{commandIndex:++O});return x.delete(H),T.delete(w.anchoredDescriptor.descriptorHash),c})),!y))break}if(C.length===0){let H=Array.from(x.values()).map(w=>Y.structUtils.prettyLocator(t,w.anchoredLocator)).join(", ");E.reportError(Ee.MessageName.CYCLIC_DEPENDENCIES,`Dependency cycle detected (${H})`);return}let l=(await Promise.all(C)).find(H=>H!==0);W===null&&(W=typeof l!="undefined"?1:W),(this.topological||this.topologicalDev)&&typeof l!="undefined"&&E.reportError(Ee.MessageName.UNNAMED,"The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph")}});return W!==null?W:ne.exitCode()}};xe.paths=[["workspaces","foreach"]],xe.usage=U.Command.Usage({category:"Workspace-related commands",description:"run a command on all workspaces",details:"\n This command will run a given sub-command on current and all its descendant workspaces. Various flags can alter the exact behavior of the command:\n\n - If `-p,--parallel` is set, the commands will be ran in parallel; they'll by default be limited to a number of parallel tasks roughly equal to half your core number, but that can be overridden via `-j,--jobs`, or disabled by setting `-j unlimited`.\n\n - If `-p,--parallel` and `-i,--interlaced` are both set, Yarn will print the lines from the output as it receives them. If `-i,--interlaced` wasn't set, it would instead buffer the output from each process and print the resulting buffers only after their source processes have exited.\n\n - If `-t,--topological` is set, Yarn will only run the command after all workspaces that it depends on through the `dependencies` field have successfully finished executing. If `--topological-dev` is set, both the `dependencies` and `devDependencies` fields will be considered when figuring out the wait points.\n\n - If `-A,--all` is set, Yarn will run the command on all the workspaces of a project. By default yarn runs the command only on current and all its descendant workspaces.\n\n - If `-R,--recursive` is set, Yarn will find workspaces to run the command on by recursively evaluating `dependencies` and `devDependencies` fields, instead of looking at the `workspaces` fields.\n\n - If `--from` is set, Yarn will use the packages matching the 'from' glob as the starting point for any recursive search.\n\n - If `--since` is set, Yarn will only run the command on workspaces that have been modified since the specified ref. By default Yarn will use the refs specified by the `changesetBaseRefs` configuration option.\n\n - The command may apply to only some workspaces through the use of `--include` which acts as a whitelist. The `--exclude` flag will do the opposite and will be a list of packages that mustn't execute the script. Both flags accept glob patterns (if valid Idents and supported by [micromatch](https://github.com/micromatch/micromatch)). Make sure to escape the patterns, to prevent your own shell from trying to expand them.\n\n Adding the `-v,--verbose` flag will cause Yarn to print more information; in particular the name of the workspace that generated the output will be printed at the front of each line.\n\n If the command is `run` and the script being run does not exist the child workspace will be skipped without error.\n ",examples:[["Publish current and all descendant packages","yarn workspaces foreach npm publish --tolerate-republish"],["Run build script on current and all descendant packages","yarn workspaces foreach run build"],["Run build script on current and all descendant packages in parallel, building package dependencies first","yarn workspaces foreach -pt run build"],["Run build script on several packages and all their dependencies, building dependencies first","yarn workspaces foreach -ptR --from '{workspace-a,workspace-b}' run build"]]});var Er=xe;function _r(e,{prefix:t,interlaced:r}){let n=e.createStreamReporter(t),s=new Y.miscUtils.DefaultStream;s.pipe(n,{end:!1}),s.on("finish",()=>{n.end()});let a=new Promise(o=>{n.on("finish",()=>{o(s.active)})});if(r)return[s,a];let i=new Y.miscUtils.BufferStream;return i.pipe(s,{end:!1}),i.on("finish",()=>{s.end()}),[i,a]}function zn(e,{configuration:t,commandIndex:r,verbose:n}){if(!n)return null;let s=Y.structUtils.convertToIdent(e.locator),i=`[${Y.structUtils.stringifyIdent(s)}]:`,o=["#2E86AB","#A23B72","#F18F01","#C73E1D","#CCE2A3"],h=o[r%o.length];return Y.formatUtils.pretty(t,i,h)}var Jn={commands:[st,Er]},es=Jn;return Vn;})(); +/*! + * fill-range + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Licensed under the MIT License. + */ +/*! + * is-number + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Released under the MIT License. + */ +/*! + * to-regex-range + * + * Copyright (c) 2015-present, Jon Schlinkert. + * Released under the MIT License. + */ +return plugin; +} +}; diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 00000000..6f2cfc91 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1,22 @@ +nodeLinker: pnp +pnpMode: strict + +plugins: + - path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs + spec: "@yarnpkg/plugin-typescript" + - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs + spec: "@yarnpkg/plugin-workspace-tools" + - path: .yarn/plugins/@ojkelly/plugin-build.cjs + spec: "https://yarn.build/latest/build" + - path: .yarn/plugins/@ojkelly/plugin-bundle.cjs + spec: "https://yarn.build/latest/bundle" + +packageExtensions: + react-dev-utils@*: + peerDependencies: + typescript: "*" + webpack: "*" + eslint-config-react-app@*: + peerDependencies: + "@babel/plugin-syntax-flow": "*" + "@babel/plugin-transform-react-jsx": "*" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..2ba956b7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:17-alpine as node +RUN corepack enable + +FROM node as base +WORKDIR /builder +COPY . . +RUN yarn install --immutable + +FROM base as dbmigrate-builder +WORKDIR /builder/home2-dbmigrate +RUN mkdir -p /app +RUN yarn bundle --output-directory /app --no-compress + +FROM node as dbmigrate +COPY --from=dbmigrate-builder /app/ /app +WORKDIR /app/home2-dbmigrate +ENTRYPOINT ["yarn", "run"] +CMD ["migrate:status"] \ No newline at end of file diff --git a/home2-dbmigrate/Dockerfile b/home2-dbmigrate/Dockerfile deleted file mode 100644 index 9dc9b3dc..00000000 --- a/home2-dbmigrate/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM node:17-alpine -COPY ./ ./ -RUN npm ci -ENTRYPOINT ["npm", "run"] -CMD ["status"] diff --git a/home2-dbmigrate/package-lock.json b/home2-dbmigrate/package-lock.json deleted file mode 100644 index e7cce4ef..00000000 --- a/home2-dbmigrate/package-lock.json +++ /dev/null @@ -1,1233 +0,0 @@ -{ - "name": "home2-dbmigrate", - "version": "0.0.1", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "home2-dbmigrate", - "version": "0.0.1", - "dependencies": { - "migrate-mongo": "^8.2.2", - "mongodb": "^4.3.1", - "uuid": "^8.3.0", - "wait-on": "^6.0.0" - }, - "devDependencies": { - "@types/migrate-mongo": "^8.1.3" - } - }, - "node_modules/@hapi/hoek": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz", - "integrity": "sha512-gfta+H8aziZsm8pZa0vj04KO6biEiisppNgA1kbJvFrrWu9Vm7eaUEy76DIxsuTaWvti5fkJVhllWc6ZTE+Mdw==" - }, - "node_modules/@hapi/topo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", - "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@sideway/address": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.3.tgz", - "integrity": "sha512-8ncEUtmnTsMmL7z1YPB47kPUq7LpKWJNFPsRzHiIajGC5uXlWGn+AmkYPcHNl8S4tcEGx+cnORnNYaw2wvL+LQ==", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@sideway/formula": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz", - "integrity": "sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==" - }, - "node_modules/@sideway/pinpoint": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", - "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" - }, - "node_modules/@types/bson": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@types/bson/-/bson-4.2.0.tgz", - "integrity": "sha512-ELCPqAdroMdcuxqwMgUpifQyRoTpyYCNr1V9xKyF40VsBobsj+BbWNRvwGchMgBPGqkw655ypkjj2MEF5ywVwg==", - "deprecated": "This is a stub types definition. bson provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "bson": "*" - } - }, - "node_modules/@types/migrate-mongo": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/@types/migrate-mongo/-/migrate-mongo-8.1.3.tgz", - "integrity": "sha512-oK9ykWQtxOuRbowLWHDQlBjlx6VB6EIGjh8cWsJTZNm8kBXm/1wUYv1Bifp+I1vTRj1b8PqCMgc8LmEPB9WhzA==", - "dev": true, - "dependencies": { - "@types/mongodb": "^3.6.20" - } - }, - "node_modules/@types/mongodb": { - "version": "3.6.20", - "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.20.tgz", - "integrity": "sha512-WcdpPJCakFzcWWD9juKoZbRtQxKIMYF/JIAM4JrNHrMcnJL6/a2NWjXxW7fo9hxboxxkg+icff8d7+WIEvKgYQ==", - "dev": true, - "dependencies": { - "@types/bson": "*", - "@types/node": "*" - } - }, - "node_modules/@types/node": { - "version": "17.0.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.13.tgz", - "integrity": "sha512-Y86MAxASe25hNzlDbsviXl8jQHb0RDvKt4c40ZJQ1Don0AAL0STLZSs4N+6gLEO55pedy7r2cLwS+ZDxPm/2Bw==" - }, - "node_modules/@types/webidl-conversions": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz", - "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q==" - }, - "node_modules/@types/whatwg-url": { - "version": "8.2.1", - "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz", - "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==", - "dependencies": { - "@types/node": "*", - "@types/webidl-conversions": "*" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", - "dependencies": { - "follow-redirects": "^1.14.0" - } - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/bl": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz", - "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==", - "dependencies": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/bson": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/bson/-/bson-4.6.1.tgz", - "integrity": "sha512-I1LQ7Hz5zgwR4QquilLNZwbhPw0Apx7i7X9kGMBTsqPdml/03Q9NBtD9nt/19ahjlphktQImrnderxqpzeVDjw==", - "dependencies": { - "buffer": "^5.6.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/cli-table3": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.0.tgz", - "integrity": "sha512-gnB85c3MGC7Nm9I/FkiasNBOKjOiO1RNuXXarQms37q4QMpWdlbBgD/VnOStA2faG1dpXMv31RFApjX1/QdgWQ==", - "dependencies": { - "object-assign": "^4.1.0", - "string-width": "^4.2.0" - }, - "engines": { - "node": "10.* || >= 12.*" - }, - "optionalDependencies": { - "colors": "^1.1.2" - } - }, - "node_modules/colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "optional": true, - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, - "node_modules/date-fns": { - "version": "2.21.3", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.21.3.tgz", - "integrity": "sha512-HeYdzCaFflc1i4tGbj7JKMjM4cKGYoyxwcIIkHzNgCkX8xXDNJDZXgDDVchIWpN4eQc3lH37WarduXFZJOtxfw==", - "engines": { - "node": ">=0.11" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/date-fns" - } - }, - "node_modules/denque": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz", - "integrity": "sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/fn-args": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/fn-args/-/fn-args-5.0.0.tgz", - "integrity": "sha512-CtbfI3oFFc3nbdIoHycrfbrxiGgxXBXXuyOl49h47JawM1mYrqpiRqnH5CB2mBatdXvHHOUO6a+RiAuuvKt0lw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/follow-redirects": { - "version": "1.14.8", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz", - "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", - "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==" - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=" - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" - }, - "node_modules/joi": { - "version": "17.6.0", - "resolved": "https://registry.npmjs.org/joi/-/joi-17.6.0.tgz", - "integrity": "sha512-OX5dG6DTbcr/kbMFj0KGYxuew69HPcAE3K/sZpEV2nP6e/j/C0HV+HNiBPCASxdx5T7DMoa0s8UeHWMnb6n2zw==", - "dependencies": { - "@hapi/hoek": "^9.0.0", - "@hapi/topo": "^5.0.0", - "@sideway/address": "^4.1.3", - "@sideway/formula": "^3.0.0", - "@sideway/pinpoint": "^2.0.0" - } - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/memory-pager": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", - "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", - "optional": true - }, - "node_modules/migrate-mongo": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/migrate-mongo/-/migrate-mongo-8.2.2.tgz", - "integrity": "sha512-RK8zE9QGzaDZ8xN+Cyb/mUhSIA1pkj1Q/aNYeH4QB9U2UNfKej1lmxh20Ot1xFl1C62ro3hqiaZ9QErzCN3qPw==", - "dependencies": { - "cli-table3": "^0.6.0", - "commander": "^7.1.0", - "date-fns": "^2.19.0", - "fn-args": "^5.0.0", - "fs-extra": "^9.1.0", - "lodash": "^4.17.21", - "mongodb": "^3.6.4", - "p-each-series": "^2.2.0" - }, - "bin": { - "migrate-mongo": "bin/migrate-mongo.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/migrate-mongo/node_modules/bson": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz", - "integrity": "sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==", - "engines": { - "node": ">=0.6.19" - } - }, - "node_modules/migrate-mongo/node_modules/denque": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz", - "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/migrate-mongo/node_modules/mongodb": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.7.3.tgz", - "integrity": "sha512-Psm+g3/wHXhjBEktkxXsFMZvd3nemI0r3IPsE0bU+4//PnvNWKkzhZcEsbPcYiWqe8XqXJJEg4Tgtr7Raw67Yw==", - "dependencies": { - "bl": "^2.2.1", - "bson": "^1.1.4", - "denque": "^1.4.1", - "optional-require": "^1.1.8", - "safe-buffer": "^5.1.2" - }, - "engines": { - "node": ">=4" - }, - "optionalDependencies": { - "saslprep": "^1.0.0" - }, - "peerDependenciesMeta": { - "aws4": { - "optional": true - }, - "bson-ext": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "mongodb-extjson": { - "optional": true - }, - "snappy": { - "optional": true - } - } - }, - "node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" - }, - "node_modules/mongodb": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.3.1.tgz", - "integrity": "sha512-sNa8APSIk+r4x31ZwctKjuPSaeKuvUeNb/fu/3B6dRM02HpEgig7hTHM8A/PJQTlxuC/KFWlDlQjhsk/S43tBg==", - "dependencies": { - "bson": "^4.6.1", - "denque": "^2.0.1", - "mongodb-connection-string-url": "^2.4.1", - "socks": "^2.6.1" - }, - "engines": { - "node": ">=12.9.0" - }, - "optionalDependencies": { - "saslprep": "^1.0.3" - } - }, - "node_modules/mongodb-connection-string-url": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.4.1.tgz", - "integrity": "sha512-d5Kd2bVsKcSA7YI/yo57fSTtMwRQdFkvc5IZwod1RRxJtECeWPPSo7zqcUGJELifRA//Igs4spVtYAmvFCatug==", - "dependencies": { - "@types/whatwg-url": "^8.2.1", - "whatwg-url": "^11.0.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/optional-require": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/optional-require/-/optional-require-1.1.8.tgz", - "integrity": "sha512-jq83qaUb0wNg9Krv1c5OQ+58EK+vHde6aBPzLvPPqJm89UQWsvSuFy9X/OSNJnFeSOKo7btE0n8Nl2+nE+z5nA==", - "dependencies": { - "require-at": "^1.0.6" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-each-series": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", - "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/readable-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/require-at": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/require-at/-/require-at-1.0.6.tgz", - "integrity": "sha512-7i1auJbMUrXEAZCOQ0VNJgmcT2VOKPRl2YGJwgpHpC9CE91Mv4/4UYIUm4chGJaI381ZDq1JUicFii64Hapd8g==", - "engines": { - "node": ">=4" - } - }, - "node_modules/rxjs": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.2.tgz", - "integrity": "sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w==", - "dependencies": { - "tslib": "^2.1.0" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/saslprep": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", - "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", - "optional": true, - "dependencies": { - "sparse-bitfield": "^3.0.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.1.tgz", - "integrity": "sha512-kLQ9N5ucj8uIcxrDwjm0Jsqk06xdpBjGNQtpXy4Q8/QY2k+fY7nZH8CARy+hkbG+SGAovmzzuauCpBlb8FrnBA==", - "dependencies": { - "ip": "^1.1.5", - "smart-buffer": "^4.1.0" - }, - "engines": { - "node": ">= 10.13.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/sparse-bitfield": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", - "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", - "optional": true, - "dependencies": { - "memory-pager": "^1.0.2" - } - }, - "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" - }, - "node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - }, - "node_modules/uuid": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.0.tgz", - "integrity": "sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/wait-on": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-6.0.0.tgz", - "integrity": "sha512-tnUJr9p5r+bEYXPUdRseolmz5XqJTTj98JgOsfBn7Oz2dxfE2g3zw1jE+Mo8lopM3j3et/Mq1yW7kKX6qw7RVw==", - "dependencies": { - "axios": "^0.21.1", - "joi": "^17.4.0", - "lodash": "^4.17.21", - "minimist": "^1.2.5", - "rxjs": "^7.1.0" - }, - "bin": { - "wait-on": "bin/wait-on" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", - "dependencies": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - } - }, - "dependencies": { - "@hapi/hoek": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz", - "integrity": "sha512-gfta+H8aziZsm8pZa0vj04KO6biEiisppNgA1kbJvFrrWu9Vm7eaUEy76DIxsuTaWvti5fkJVhllWc6ZTE+Mdw==" - }, - "@hapi/topo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", - "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", - "requires": { - "@hapi/hoek": "^9.0.0" - } - }, - "@sideway/address": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.3.tgz", - "integrity": "sha512-8ncEUtmnTsMmL7z1YPB47kPUq7LpKWJNFPsRzHiIajGC5uXlWGn+AmkYPcHNl8S4tcEGx+cnORnNYaw2wvL+LQ==", - "requires": { - "@hapi/hoek": "^9.0.0" - } - }, - "@sideway/formula": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz", - "integrity": "sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==" - }, - "@sideway/pinpoint": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", - "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" - }, - "@types/bson": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@types/bson/-/bson-4.2.0.tgz", - "integrity": "sha512-ELCPqAdroMdcuxqwMgUpifQyRoTpyYCNr1V9xKyF40VsBobsj+BbWNRvwGchMgBPGqkw655ypkjj2MEF5ywVwg==", - "dev": true, - "requires": { - "bson": "*" - } - }, - "@types/migrate-mongo": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/@types/migrate-mongo/-/migrate-mongo-8.1.3.tgz", - "integrity": "sha512-oK9ykWQtxOuRbowLWHDQlBjlx6VB6EIGjh8cWsJTZNm8kBXm/1wUYv1Bifp+I1vTRj1b8PqCMgc8LmEPB9WhzA==", - "dev": true, - "requires": { - "@types/mongodb": "^3.6.20" - } - }, - "@types/mongodb": { - "version": "3.6.20", - "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.20.tgz", - "integrity": "sha512-WcdpPJCakFzcWWD9juKoZbRtQxKIMYF/JIAM4JrNHrMcnJL6/a2NWjXxW7fo9hxboxxkg+icff8d7+WIEvKgYQ==", - "dev": true, - "requires": { - "@types/bson": "*", - "@types/node": "*" - } - }, - "@types/node": { - "version": "17.0.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.13.tgz", - "integrity": "sha512-Y86MAxASe25hNzlDbsviXl8jQHb0RDvKt4c40ZJQ1Don0AAL0STLZSs4N+6gLEO55pedy7r2cLwS+ZDxPm/2Bw==" - }, - "@types/webidl-conversions": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz", - "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q==" - }, - "@types/whatwg-url": { - "version": "8.2.1", - "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz", - "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==", - "requires": { - "@types/node": "*", - "@types/webidl-conversions": "*" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" - }, - "axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", - "requires": { - "follow-redirects": "^1.14.0" - } - }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - }, - "bl": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz", - "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==", - "requires": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" - } - }, - "bson": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/bson/-/bson-4.6.1.tgz", - "integrity": "sha512-I1LQ7Hz5zgwR4QquilLNZwbhPw0Apx7i7X9kGMBTsqPdml/03Q9NBtD9nt/19ahjlphktQImrnderxqpzeVDjw==", - "requires": { - "buffer": "^5.6.0" - } - }, - "buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "cli-table3": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.0.tgz", - "integrity": "sha512-gnB85c3MGC7Nm9I/FkiasNBOKjOiO1RNuXXarQms37q4QMpWdlbBgD/VnOStA2faG1dpXMv31RFApjX1/QdgWQ==", - "requires": { - "colors": "^1.1.2", - "object-assign": "^4.1.0", - "string-width": "^4.2.0" - } - }, - "colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "optional": true - }, - "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" - }, - "core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, - "date-fns": { - "version": "2.21.3", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.21.3.tgz", - "integrity": "sha512-HeYdzCaFflc1i4tGbj7JKMjM4cKGYoyxwcIIkHzNgCkX8xXDNJDZXgDDVchIWpN4eQc3lH37WarduXFZJOtxfw==" - }, - "denque": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz", - "integrity": "sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==" - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "fn-args": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/fn-args/-/fn-args-5.0.0.tgz", - "integrity": "sha512-CtbfI3oFFc3nbdIoHycrfbrxiGgxXBXXuyOl49h47JawM1mYrqpiRqnH5CB2mBatdXvHHOUO6a+RiAuuvKt0lw==" - }, - "follow-redirects": { - "version": "1.14.8", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz", - "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==" - }, - "fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "graceful-fs": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", - "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==" - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" - }, - "joi": { - "version": "17.6.0", - "resolved": "https://registry.npmjs.org/joi/-/joi-17.6.0.tgz", - "integrity": "sha512-OX5dG6DTbcr/kbMFj0KGYxuew69HPcAE3K/sZpEV2nP6e/j/C0HV+HNiBPCASxdx5T7DMoa0s8UeHWMnb6n2zw==", - "requires": { - "@hapi/hoek": "^9.0.0", - "@hapi/topo": "^5.0.0", - "@sideway/address": "^4.1.3", - "@sideway/formula": "^3.0.0", - "@sideway/pinpoint": "^2.0.0" - } - }, - "jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "memory-pager": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", - "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", - "optional": true - }, - "migrate-mongo": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/migrate-mongo/-/migrate-mongo-8.2.2.tgz", - "integrity": "sha512-RK8zE9QGzaDZ8xN+Cyb/mUhSIA1pkj1Q/aNYeH4QB9U2UNfKej1lmxh20Ot1xFl1C62ro3hqiaZ9QErzCN3qPw==", - "requires": { - "cli-table3": "^0.6.0", - "commander": "^7.1.0", - "date-fns": "^2.19.0", - "fn-args": "^5.0.0", - "fs-extra": "^9.1.0", - "lodash": "^4.17.21", - "mongodb": "^3.6.4", - "p-each-series": "^2.2.0" - }, - "dependencies": { - "bson": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz", - "integrity": "sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==" - }, - "denque": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz", - "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==" - }, - "mongodb": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.7.3.tgz", - "integrity": "sha512-Psm+g3/wHXhjBEktkxXsFMZvd3nemI0r3IPsE0bU+4//PnvNWKkzhZcEsbPcYiWqe8XqXJJEg4Tgtr7Raw67Yw==", - "requires": { - "bl": "^2.2.1", - "bson": "^1.1.4", - "denque": "^1.4.1", - "optional-require": "^1.1.8", - "safe-buffer": "^5.1.2", - "saslprep": "^1.0.0" - } - } - } - }, - "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" - }, - "mongodb": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.3.1.tgz", - "integrity": "sha512-sNa8APSIk+r4x31ZwctKjuPSaeKuvUeNb/fu/3B6dRM02HpEgig7hTHM8A/PJQTlxuC/KFWlDlQjhsk/S43tBg==", - "requires": { - "bson": "^4.6.1", - "denque": "^2.0.1", - "mongodb-connection-string-url": "^2.4.1", - "saslprep": "^1.0.3", - "socks": "^2.6.1" - } - }, - "mongodb-connection-string-url": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.4.1.tgz", - "integrity": "sha512-d5Kd2bVsKcSA7YI/yo57fSTtMwRQdFkvc5IZwod1RRxJtECeWPPSo7zqcUGJELifRA//Igs4spVtYAmvFCatug==", - "requires": { - "@types/whatwg-url": "^8.2.1", - "whatwg-url": "^11.0.0" - } - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" - }, - "optional-require": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/optional-require/-/optional-require-1.1.8.tgz", - "integrity": "sha512-jq83qaUb0wNg9Krv1c5OQ+58EK+vHde6aBPzLvPPqJm89UQWsvSuFy9X/OSNJnFeSOKo7btE0n8Nl2+nE+z5nA==", - "requires": { - "require-at": "^1.0.6" - } - }, - "p-each-series": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", - "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==" - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" - }, - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } - } - }, - "require-at": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/require-at/-/require-at-1.0.6.tgz", - "integrity": "sha512-7i1auJbMUrXEAZCOQ0VNJgmcT2VOKPRl2YGJwgpHpC9CE91Mv4/4UYIUm4chGJaI381ZDq1JUicFii64Hapd8g==" - }, - "rxjs": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.2.tgz", - "integrity": "sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w==", - "requires": { - "tslib": "^2.1.0" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "saslprep": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", - "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", - "optional": true, - "requires": { - "sparse-bitfield": "^3.0.3" - } - }, - "smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" - }, - "socks": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.1.tgz", - "integrity": "sha512-kLQ9N5ucj8uIcxrDwjm0Jsqk06xdpBjGNQtpXy4Q8/QY2k+fY7nZH8CARy+hkbG+SGAovmzzuauCpBlb8FrnBA==", - "requires": { - "ip": "^1.1.5", - "smart-buffer": "^4.1.0" - } - }, - "sparse-bitfield": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", - "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", - "optional": true, - "requires": { - "memory-pager": "^1.0.2" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } - } - }, - "string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "requires": { - "ansi-regex": "^5.0.0" - } - }, - "tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "requires": { - "punycode": "^2.1.1" - } - }, - "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" - }, - "universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - }, - "uuid": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.0.tgz", - "integrity": "sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ==" - }, - "wait-on": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-6.0.0.tgz", - "integrity": "sha512-tnUJr9p5r+bEYXPUdRseolmz5XqJTTj98JgOsfBn7Oz2dxfE2g3zw1jE+Mo8lopM3j3et/Mq1yW7kKX6qw7RVw==", - "requires": { - "axios": "^0.21.1", - "joi": "^17.4.0", - "lodash": "^4.17.21", - "minimist": "^1.2.5", - "rxjs": "^7.1.0" - } - }, - "webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==" - }, - "whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", - "requires": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - } - } - } -}