UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

8 lines (7 loc) 122 kB
var Za=Object.create;var _t=Object.defineProperty;var eo=Object.getOwnPropertyDescriptor;var to=Object.getOwnPropertyNames;var ro=Object.getPrototypeOf,no=Object.prototype.hasOwnProperty;var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),io=(t,e)=>{for(var r in e)_t(t,r,{get:e[r],enumerable:!0})},ln=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of to(e))!no.call(t,i)&&i!==r&&_t(t,i,{get:()=>e[i],enumerable:!(n=eo(e,i))||n.enumerable});return t};var bt=(t,e,r)=>(r=t!=null?Za(ro(t)):{},ln(e||!t||!t.__esModule?_t(r,"default",{value:t,enumerable:!0}):r,t)),ao=t=>ln(_t({},"__esModule",{value:!0}),t);var cn=L((Xt,Zt)=>{(function(t,e){typeof Xt=="object"&&typeof Zt<"u"?Zt.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Xt,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",a="minute",o="hour",s="day",u="week",l="month",c="quarter",p="year",f="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var S=["th","st","nd","rd"],g=C%100;return"["+C+(S[(g-20)%10]||S[g]||S[0])+"]"}},b=function(C,S,g){var E=String(C);return!E||E.length>=S?C:""+Array(S+1-E.length).join(g)+C},O={s:b,z:function(C){var S=-C.utcOffset(),g=Math.abs(S),E=Math.floor(g/60),v=g%60;return(S<=0?"+":"-")+b(E,2,"0")+":"+b(v,2,"0")},m:function C(S,g){if(S.date()<g.date())return-C(g,S);var E=12*(g.year()-S.year())+(g.month()-S.month()),v=S.clone().add(E,l),m=g-v<0,y=S.clone().add(E+(m?-1:1),l);return+(-(E+(g-v)/(m?v-y:y-v))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:l,y:p,w:u,d:s,D:f,h:o,m:a,s:i,ms:n,Q:c}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},$="en",T={};T[$]=R;var N="$isDayjsObject",Y=function(C){return C instanceof B||!(!C||!C[N])},P=function C(S,g,E){var v;if(!S)return $;if(typeof S=="string"){var m=S.toLowerCase();T[m]&&(v=m),g&&(T[m]=g,v=m);var y=S.split("-");if(!v&&y.length>1)return C(y[0])}else{var w=S.name;T[w]=S,v=w}return!E&&v&&($=v),v||!E&&$},x=function(C,S){if(Y(C))return C.clone();var g=typeof S=="object"?S:{};return g.date=C,g.args=arguments,new B(g)},A=O;A.l=P,A.i=Y,A.w=function(C,S){return x(C,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var B=function(){function C(g){this.$L=P(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[N]=!0}var S=C.prototype;return S.parse=function(g){this.$d=function(E){var v=E.date,m=E.utc;if(v===null)return new Date(NaN);if(A.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var y=v.match(h);if(y){var w=y[2]-1||0,k=(y[7]||"0").substring(0,3);return m?new Date(Date.UTC(y[1],w,y[3]||1,y[4]||0,y[5]||0,y[6]||0,k)):new Date(y[1],w,y[3]||1,y[4]||0,y[5]||0,y[6]||0,k)}}return new Date(v)}(g),this.init()},S.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},S.$utils=function(){return A},S.isValid=function(){return this.$d.toString()!==d},S.isSame=function(g,E){var v=x(g);return this.startOf(E)<=v&&v<=this.endOf(E)},S.isAfter=function(g,E){return x(g)<this.startOf(E)},S.isBefore=function(g,E){return this.endOf(E)<x(g)},S.$g=function(g,E,v){return A.u(g)?this[E]:this.set(v,g)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(g,E){var v=this,m=!!A.u(E)||E,y=A.p(g),w=function(se,H){var ie=A.w(v.$u?Date.UTC(v.$y,H,se):new Date(v.$y,H,se),v);return m?ie:ie.endOf(s)},k=function(se,H){return A.w(v.toDate()[se].apply(v.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(H)),v)},F=this.$W,U=this.$M,ee=this.$D,ye="set"+(this.$u?"UTC":"");switch(y){case p:return m?w(1,0):w(31,11);case l:return m?w(1,U):w(0,U+1);case u:var ce=this.$locale().weekStart||0,De=(F<ce?F+7:F)-ce;return w(m?ee-De:ee+(6-De),U);case s:case f:return k(ye+"Hours",0);case o:return k(ye+"Minutes",1);case a:return k(ye+"Seconds",2);case i:return k(ye+"Milliseconds",3);default:return this.clone()}},S.endOf=function(g){return this.startOf(g,!1)},S.$set=function(g,E){var v,m=A.p(g),y="set"+(this.$u?"UTC":""),w=(v={},v[s]=y+"Date",v[f]=y+"Date",v[l]=y+"Month",v[p]=y+"FullYear",v[o]=y+"Hours",v[a]=y+"Minutes",v[i]=y+"Seconds",v[n]=y+"Milliseconds",v)[m],k=m===s?this.$D+(E-this.$W):E;if(m===l||m===p){var F=this.clone().set(f,1);F.$d[w](k),F.init(),this.$d=F.set(f,Math.min(this.$D,F.daysInMonth())).$d}else w&&this.$d[w](k);return this.init(),this},S.set=function(g,E){return this.clone().$set(g,E)},S.get=function(g){return this[A.p(g)]()},S.add=function(g,E){var v,m=this;g=Number(g);var y=A.p(E),w=function(U){var ee=x(m);return A.w(ee.date(ee.date()+Math.round(U*g)),m)};if(y===l)return this.set(l,this.$M+g);if(y===p)return this.set(p,this.$y+g);if(y===s)return w(1);if(y===u)return w(7);var k=(v={},v[a]=e,v[o]=r,v[i]=t,v)[y]||1,F=this.$d.getTime()+g*k;return A.w(F,this)},S.subtract=function(g,E){return this.add(-1*g,E)},S.format=function(g){var E=this,v=this.$locale();if(!this.isValid())return v.invalidDate||d;var m=g||"YYYY-MM-DDTHH:mm:ssZ",y=A.z(this),w=this.$H,k=this.$m,F=this.$M,U=v.weekdays,ee=v.months,ye=v.meridiem,ce=function(H,ie,fe,Se){return H&&(H[ie]||H(E,m))||fe[ie].slice(0,Se)},De=function(H){return A.s(w%12||12,H,"0")},se=ye||function(H,ie,fe){var Se=H<12?"AM":"PM";return fe?Se.toLowerCase():Se};return m.replace(_,function(H,ie){return ie||function(fe){switch(fe){case"YY":return String(E.$y).slice(-2);case"YYYY":return A.s(E.$y,4,"0");case"M":return F+1;case"MM":return A.s(F+1,2,"0");case"MMM":return ce(v.monthsShort,F,ee,3);case"MMMM":return ce(ee,F);case"D":return E.$D;case"DD":return A.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return ce(v.weekdaysMin,E.$W,U,2);case"ddd":return ce(v.weekdaysShort,E.$W,U,3);case"dddd":return U[E.$W];case"H":return String(w);case"HH":return A.s(w,2,"0");case"h":return De(1);case"hh":return De(2);case"a":return se(w,k,!0);case"A":return se(w,k,!1);case"m":return String(k);case"mm":return A.s(k,2,"0");case"s":return String(E.$s);case"ss":return A.s(E.$s,2,"0");case"SSS":return A.s(E.$ms,3,"0");case"Z":return y}return null}(H)||y.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(g,E,v){var m,y=this,w=A.p(E),k=x(g),F=(k.utcOffset()-this.utcOffset())*e,U=this-k,ee=function(){return A.m(y,k)};switch(w){case p:m=ee()/12;break;case l:m=ee();break;case c:m=ee()/3;break;case u:m=(U-F)/6048e5;break;case s:m=(U-F)/864e5;break;case o:m=U/r;break;case a:m=U/e;break;case i:m=U/t;break;default:m=U}return v?m:A.a(m)},S.daysInMonth=function(){return this.endOf(l).$D},S.$locale=function(){return T[this.$L]},S.locale=function(g,E){if(!g)return this.$L;var v=this.clone(),m=P(g,E,!0);return m&&(v.$L=m),v},S.clone=function(){return A.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},C}(),M=B.prototype;return x.prototype=M,[["$ms",n],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",p],["$D",f]].forEach(function(C){M[C[1]]=function(S){return this.$g(S,C[0],C[1])}}),x.extend=function(C,S){return C.$i||(C(S,B,x),C.$i=!0),x},x.locale=P,x.isDayjs=Y,x.unix=function(C){return x(1e3*C)},x.en=T[$],x.Ls=T,x.p={},x})});var fn=L((er,tr)=>{(function(t,e){typeof er=="object"&&typeof tr<"u"?tr.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(er,function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(h){return(h=+h)+(h>68?1900:2e3)},u=function(h){return function(_){this[h]=+_}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var R=_.match(/([+-]|\d\d)/g),b=60*R[1]+(+R[2]||0);return b===0?0:R[0]==="+"?-b:b}(h)}],c=function(h){var _=o[h];return _&&(_.indexOf?_:_.s.concat(_.f))},p=function(h,_){var R,b=o.meridiem;if(b){for(var O=1;O<=24;O+=1)if(h.indexOf(b(O,0,_))>-1){R=O>12;break}}else R=h===(_?"pm":"PM");return R},f={A:[a,function(h){this.afternoon=p(h,!1)}],a:[a,function(h){this.afternoon=p(h,!0)}],Q:[r,function(h){this.month=3*(h-1)+1}],S:[r,function(h){this.milliseconds=100*+h}],SS:[n,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[n,u("day")],Do:[a,function(h){var _=o.ordinal,R=h.match(/\d+/);if(this.day=R[0],_)for(var b=1;b<=31;b+=1)_(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],w:[i,u("week")],ww:[n,u("week")],M:[i,u("month")],MM:[n,u("month")],MMM:[a,function(h){var _=c("months"),R=(c("monthsShort")||_.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[a,function(h){var _=c("months").indexOf(h)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(h){this.year=s(h)}],YYYY:[/\d{4}/,u("year")],Z:l,ZZ:l};function d(h){var _,R;_=h,R=o&&o.formats;for(var b=(h=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,A,B){var M=B&&B.toUpperCase();return A||R[B]||t[B]||R[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,S,g){return S||g.slice(1)})})).match(e),O=b.length,$=0;$<O;$+=1){var T=b[$],N=f[T],Y=N&&N[0],P=N&&N[1];b[$]=P?{regex:Y,parser:P}:T.replace(/^\[|\]$/g,"")}return function(x){for(var A={},B=0,M=0;B<O;B+=1){var C=b[B];if(typeof C=="string")M+=C.length;else{var S=C.regex,g=C.parser,E=x.slice(M),v=S.exec(E)[0];g.call(A,v),x=x.replace(v,"")}}return function(m){var y=m.afternoon;if(y!==void 0){var w=m.hours;y?w<12&&(m.hours+=12):w===12&&(m.hours=0),delete m.afternoon}}(A),A}}return function(h,_,R){R.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(s=h.parseTwoDigitYear);var b=_.prototype,O=b.parse;b.parse=function($){var T=$.date,N=$.utc,Y=$.args;this.$u=N;var P=Y[1];if(typeof P=="string"){var x=Y[2]===!0,A=Y[3]===!0,B=x||A,M=Y[2];A&&(M=Y[2]),o=this.$locale(),!x&&M&&(o=R.Ls[M]),this.$d=function(E,v,m,y){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1e3:1)*E);var w=d(v)(E),k=w.year,F=w.month,U=w.day,ee=w.hours,ye=w.minutes,ce=w.seconds,De=w.milliseconds,se=w.zone,H=w.week,ie=new Date,fe=U||(k||F?1:ie.getDate()),Se=k||ie.getFullYear(),yt=0;k&&!F||(yt=F>0?F-1:ie.getMonth());var St,Ht=ee||0,Kt=ye||0,Jt=ce||0,Vt=De||0;return se?new Date(Date.UTC(Se,yt,fe,Ht,Kt,Jt,Vt+60*se.offset*1e3)):m?new Date(Date.UTC(Se,yt,fe,Ht,Kt,Jt,Vt)):(St=new Date(Se,yt,fe,Ht,Kt,Jt,Vt),H&&(St=y(St).week(H).toDate()),St)}catch{return new Date("")}}(T,P,N,R),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),B&&T!=this.format(P)&&(this.$d=new Date("")),o={}}else if(P instanceof Array)for(var C=P.length,S=1;S<=C;S+=1){Y[1]=P[S-1];var g=R.apply(this,Y);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}S===C&&(this.$d=new Date(""))}else O.call(this,$)}}})});var mn=L((Lu,rr)=>{var lo=Object.prototype.hasOwnProperty;function hn(t){return"[Throws: "+(t?t.message:"?")+"]"}function co(t,e){if(lo.call(t,e))try{return t[e]}catch(r){return hn(r)}return t[e]}function dn(t){var e=[];function r(n){if(n===null||typeof n!="object")return n;if(e.indexOf(n)!==-1)return"[Circular]";if(e.push(n),typeof n.toJSON=="function")try{var i=r(n.toJSON());return e.pop(),i}catch(s){return hn(s)}if(Array.isArray(n)){var a=n.map(r);return e.pop(),a}var o=Object.keys(n).reduce(function(s,u){return s[u]=r(co(n,u)),s},{});return e.pop(),o}return r(t)}rr.exports=function(t,e,r){return JSON.stringify(dn(t),e,r)};rr.exports.ensureProperties=dn});var gn=L((Nu,pn)=>{var Z=require("fs"),Je=require("path");pn.exports=wt;wt.ncp=wt;function wt(t,e,r,n){var i=n;n||(i=r,r={});var a=process.cwd(),o=Je.resolve(a,t),s=Je.resolve(a,e),u=r.filter,l=r.rename,c=r.transform,p=r.clobber!==!1,f=r.modified,d=r.dereference,h=null,_=0,R=0,b=0,O=r.limit||wt.limit||16;O=O<1?1:O>512?512:O,$(o);function $(m){if(_++,u){if(u instanceof RegExp){if(!u.test(m))return v(!0)}else if(typeof u=="function"&&!u(m))return v(!0)}return T(m)}function T(m){var y=d?Z.stat:Z.lstat;if(b>=O)return setImmediate(function(){T(m)});b++,y(m,function(w,k){var F={};if(w)return E(w);if(F.name=m,F.mode=k.mode,F.mtime=k.mtime,F.atime=k.atime,k.isDirectory())return x(F);if(k.isFile())return N(F);if(k.isSymbolicLink())return M(m)})}function N(m){var y=m.name.replace(o,s);l&&(y=l(y)),g(y,function(w){if(w)return Y(m,y);if(p&&P(y,function(){Y(m,y)}),f){var k=d?Z.stat:Z.lstat;k(y,function(F,U){if(m.mtime.getTime()>U.mtime.getTime())Y(m,y);else return v()})}else return v()})}function Y(m,y){var w=Z.createReadStream(m.name),k=Z.createWriteStream(y,{mode:m.mode});w.on("error",E),k.on("error",E),c?c(w,k,m):k.on("open",function(){w.pipe(k)}),k.once("finish",function(){f&&Z.utimesSync(y,m.atime,m.mtime),v()})}function P(m,y){Z.unlink(m,function(w){return w?E(w):y()})}function x(m){var y=m.name.replace(o,s);g(y,function(w){if(w)return A(m,y);B(m.name)})}function A(m,y){Z.mkdir(y,m.mode,function(w){if(w)return E(w);B(m.name)})}function B(m){Z.readdir(m,function(y,w){return y?E(y):(w.forEach(function(k){$(Je.join(m,k))}),v())})}function M(m){var y=m.replace(o,s);Z.readlink(m,function(w,k){if(w)return E(w);C(k,y)})}function C(m,y){d&&(m=Je.resolve(a,m)),g(y,function(w){if(w)return S(m,y);Z.readlink(y,function(k,F){return k?E(k):(d&&(F=Je.resolve(a,F)),F===m?v():P(y,function(){S(m,y)}))})})}function S(m,y){Z.symlink(m,y,function(w){return w?E(w):v()})}function g(m,y){Z.lstat(m,function(w){return w&&w.code==="ENOENT"?y(!0):y(!1)})}function E(m){return r.stopOnError?i(m):(!h&&r.errs?h=Z.createWriteStream(r.errs):h||(h=[]),typeof h.write>"u"?h.push(m):h.write(m.stack+` `),v())}function v(m){if(m||b--,R++,_===R&&b===0&&i!==void 0)return i(h||null)}}});var yn=L((xu,vn)=>{vn.exports=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=e(t[n],n);fo(i)?r.push.apply(r,i):r.push(i)}return r};var fo=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var En=L((Fu,wn)=>{"use strict";wn.exports=_n;function _n(t,e,r){t instanceof RegExp&&(t=Sn(t,r)),e instanceof RegExp&&(e=Sn(e,r));var n=bn(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}function Sn(t,e){var r=e.match(t);return r?r[0]:null}_n.range=bn;function bn(t,e,r){var n,i,a,o,s,u=r.indexOf(t),l=r.indexOf(e,u+1),c=u;if(u>=0&&l>0){if(t===e)return[u,l];for(n=[],a=r.length;c>=0&&!s;)c==u?(n.push(c),u=r.indexOf(t,c+1)):n.length==1?s=[n.pop(),l]:(i=n.pop(),i<a&&(a=i,o=l),l=r.indexOf(e,c+1)),c=u<l&&u>=0?u:l;n.length&&(s=[a,o])}return s}});var kn=L(($u,Rn)=>{var ho=yn(),Cn=En();Rn.exports=go;var Dn="\0SLASH"+Math.random()+"\0",On="\0OPEN"+Math.random()+"\0",ir="\0CLOSE"+Math.random()+"\0",An="\0COMMA"+Math.random()+"\0",Mn="\0PERIOD"+Math.random()+"\0";function nr(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function mo(t){return t.split("\\\\").join(Dn).split("\\{").join(On).split("\\}").join(ir).split("\\,").join(An).split("\\.").join(Mn)}function po(t){return t.split(Dn).join("\\").split(On).join("{").split(ir).join("}").split(An).join(",").split(Mn).join(".")}function Tn(t){if(!t)return[""];var e=[],r=Cn("{","}",t);if(!r)return t.split(",");var n=r.pre,i=r.body,a=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var s=Tn(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),e.push.apply(e,o),e}function go(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),xe(mo(t),!0).map(po)):[]}function vo(t){return"{"+t+"}"}function yo(t){return/^-?0\d/.test(t)}function So(t,e){return t<=e}function _o(t,e){return t>=e}function xe(t,e){var r=[],n=Cn("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),o=i||a,s=n.body.indexOf(",")>=0;if(!o&&!s)return n.post.match(/,.*\}/)?(t=n.pre+"{"+n.body+ir+n.post,xe(t)):[t];var u;if(o)u=n.body.split(/\.\./);else if(u=Tn(n.body),u.length===1&&(u=xe(u[0],!1).map(vo),u.length===1)){var c=n.post.length?xe(n.post,!1):[""];return c.map(function(M){return n.pre+u[0]+M})}var l=n.pre,c=n.post.length?xe(n.post,!1):[""],p;if(o){var f=nr(u[0]),d=nr(u[1]),h=Math.max(u[0].length,u[1].length),_=u.length==3?Math.abs(nr(u[2])):1,R=So,b=d<f;b&&(_*=-1,R=_o);var O=u.some(yo);p=[];for(var $=f;R($,d);$+=_){var T;if(a)T=String.fromCharCode($),T==="\\"&&(T="");else if(T=String($),O){var N=h-T.length;if(N>0){var Y=new Array(N+1).join("0");$<0?T="-"+Y+T.slice(1):T=Y+T}}p.push(T)}}else p=ho(u,function(B){return xe(B,!1)});for(var P=0;P<p.length;P++)for(var x=0;x<c.length;x++){var A=l+p[P]+c[x];(!e||o||A)&&r.push(A)}return r}});var Dt=L((ju,$n)=>{$n.exports=te;te.Minimatch=K;var Ve=function(){try{return require("path")}catch{}}()||{sep:"/"};te.sep=Ve.sep;var sr=te.GLOBSTAR=K.GLOBSTAR={},bo=kn(),Ln={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ar="[^/]",or=ar+"*?",wo="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Eo="(?:(?!(?:\\/|^)\\.).)*?",Nn=Co("().*{}+?[]^$\\!");function Co(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var xn=/\/+/;te.filter=Do;function Do(t,e){return e=e||{},function(r,n,i){return te(r,t,e)}}function _e(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(n){r[n]=t[n]}),Object.keys(e).forEach(function(n){r[n]=e[n]}),r}te.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return te;var e=te,r=function(i,a,o){return e(i,a,_e(t,o))};return r.Minimatch=function(i,a){return new e.Minimatch(i,_e(t,a))},r.Minimatch.defaults=function(i){return e.defaults(_e(t,i)).Minimatch},r.filter=function(i,a){return e.filter(i,_e(t,a))},r.defaults=function(i){return e.defaults(_e(t,i))},r.makeRe=function(i,a){return e.makeRe(i,_e(t,a))},r.braceExpand=function(i,a){return e.braceExpand(i,_e(t,a))},r.match=function(n,i,a){return e.match(n,i,_e(t,a))},r};K.defaults=function(t){return te.defaults(t).Minimatch};function te(t,e,r){return Ct(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new K(e,r).match(t)}function K(t,e){if(!(this instanceof K))return new K(t,e);Ct(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&Ve.sep!=="/"&&(t=t.split(Ve.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}K.prototype.debug=function(){};K.prototype.make=Oo;function Oo(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(xn)}),this.debug(this.pattern,r),r=r.map(function(n,i,a){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}K.prototype.parseNegate=Ao;function Ao(){var t=this.pattern,e=!1,r=this.options,n=0;if(!r.nonegate){for(var i=0,a=t.length;i<a&&t.charAt(i)==="!";i++)e=!e,n++;n&&(this.pattern=t.substr(n)),this.negate=e}}te.braceExpand=function(t,e){return Fn(t,e)};K.prototype.braceExpand=Fn;function Fn(t,e){return e||(this instanceof K?e=this.options:e={}),t=typeof t>"u"?this.pattern:t,Ct(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:bo(t)}var Mo=1024*64,Ct=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Mo)throw new TypeError("pattern is too long")};K.prototype.parse=To;var Et={};function To(t,e){Ct(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return sr;if(t==="")return"";var n="",i=!!r.nocase,a=!1,o=[],s=[],u,l=!1,c=-1,p=-1,f=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(u){switch(u){case"*":n+=or,i=!0;break;case"?":n+=ar,i=!0;break;default:n+="\\"+u;break}d.debug("clearStateChar %j %j",u,n),u=!1}}for(var _=0,R=t.length,b;_<R&&(b=t.charAt(_));_++){if(this.debug("%s %s %s %j",t,_,n,b),a&&Nn[b]){n+="\\"+b,a=!1;continue}switch(b){case"/":return!1;case"\\":h(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,_,n,b),l){this.debug(" in class"),b==="!"&&_===p+1&&(b="^"),n+=b;continue}d.debug("call clearStateChar %j",u),h(),u=b,r.noext&&h();continue;case"(":if(l){n+="(";continue}if(!u){n+="\\(";continue}o.push({type:u,start:_-1,reStart:n.length,open:Ln[u].open,close:Ln[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(l||!o.length){n+="\\)";continue}h(),i=!0;var O=o.pop();n+=O.close,O.type==="!"&&s.push(O),O.reEnd=n.length;continue;case"|":if(l||!o.length||a){n+="\\|",a=!1;continue}h(),n+="|";continue;case"[":if(h(),l){n+="\\"+b;continue}l=!0,p=_,c=n.length,n+=b;continue;case"]":if(_===p+1||!l){n+="\\"+b,a=!1;continue}var $=t.substring(p+1,_);try{RegExp("["+$+"]")}catch{var T=this.parse($,Et);n=n.substr(0,c)+"\\["+T[0]+"\\]",i=i||T[1],l=!1;continue}i=!0,l=!1,n+=b;continue;default:h(),a?a=!1:Nn[b]&&!(b==="^"&&l)&&(n+="\\"),n+=b}}for(l&&($=t.substr(p+1),T=this.parse($,Et),n=n.substr(0,c)+"\\["+T[0],i=i||T[1]),O=o.pop();O;O=o.pop()){var N=n.slice(O.reStart+O.open.length);this.debug("setting tail",n,O),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(k,F,U){return U||(U="\\"),F+F+U+"|"}),this.debug(`tail=%j %s`,N,N,O,n);var Y=O.type==="*"?or:O.type==="?"?ar:"\\"+O.type;i=!0,n=n.slice(0,O.reStart)+Y+"\\("+N}h(),a&&(n+="\\\\");var P=!1;switch(n.charAt(0)){case"[":case".":case"(":P=!0}for(var x=s.length-1;x>-1;x--){var A=s[x],B=n.slice(0,A.reStart),M=n.slice(A.reStart,A.reEnd-8),C=n.slice(A.reEnd-8,A.reEnd),S=n.slice(A.reEnd);C+=S;var g=B.split("(").length-1,E=S;for(_=0;_<g;_++)E=E.replace(/\)[+*?]?/,"");S=E;var v="";S===""&&e!==Et&&(v="$");var m=B+M+S+v+C;n=m}if(n!==""&&i&&(n="(?=.)"+n),P&&(n=f+n),e===Et)return[n,i];if(!i)return ko(t);var y=r.nocase?"i":"";try{var w=new RegExp("^"+n+"$",y)}catch{return new RegExp("$.")}return w._glob=t,w._src=n,w}te.makeRe=function(t,e){return new K(t,e||{}).makeRe()};K.prototype.makeRe=Ro;function Ro(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?or:e.dot?wo:Eo,n=e.nocase?"i":"",i=t.map(function(a){return a.map(function(o){return o===sr?r:typeof o=="string"?Lo(o):o._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}te.match=function(t,e,r){r=r||{};var n=new K(e,r);return t=t.filter(function(i){return n.match(i)}),n.options.nonull&&!t.length&&t.push(e),t};K.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;Ve.sep!=="/"&&(e=e.split(Ve.sep).join("/")),e=e.split(xn),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var a,o;for(o=e.length-1;o>=0&&(a=e[o],!a);o--);for(o=0;o<i.length;o++){var s=i[o],u=e;n.matchBase&&s.length===1&&(u=[a]);var l=this.matchOne(u,s,r);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};K.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,a=0,o=t.length,s=e.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var u=e[a],l=t[i];if(this.debug(e,u,l),u===!1)return!1;if(u===sr){this.debug("GLOBSTAR",[e,u,l]);var c=i,p=a+1;if(p===s){for(this.debug("** at the end");i<o;i++)if(t[i]==="."||t[i]===".."||!n.dot&&t[i].charAt(0)===".")return!1;return!0}for(;c<o;){var f=t[c];if(this.debug(` globstar while`,t,c,e,p,f),this.matchOne(t.slice(c),e.slice(p),r))return this.debug("globstar found match!",c,o,f),!0;if(f==="."||f===".."||!n.dot&&f.charAt(0)==="."){this.debug("dot detected!",t,c,e,p);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(r&&(this.debug(` >>> no match, partial?`,t,c,e,p),c===o))}var d;if(typeof u=="string"?(d=l===u,this.debug("string match",u,l,d)):(d=l.match(u),this.debug("pattern match",u,l,d)),!d)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&t[i]==="";throw new Error("wtf?")};function ko(t){return t.replace(/\\(.)/g,"$1")}function Lo(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var jn=L((Iu,ur)=>{typeof Object.create=="function"?ur.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ur.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var In=L((Pu,cr)=>{try{if(lr=require("util"),typeof lr.inherits!="function")throw"";cr.exports=lr.inherits}catch{cr.exports=jn()}var lr});var At=L((Bu,Ot)=>{"use strict";function Pn(t){return t.charAt(0)==="/"}function Bn(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=e.exec(t),n=r[1]||"",i=!!(n&&n.charAt(1)!==":");return!!(r[2]||i)}Ot.exports=process.platform==="win32"?Bn:Pn;Ot.exports.posix=Pn;Ot.exports.win32=Bn});var dr=L(ue=>{ue.alphasort=qn;ue.alphasorti=Gn;ue.setopts=jo;ue.ownProp=Yn;ue.makeAbs=hr;ue.finish=Io;ue.mark=Po;ue.isIgnored=Un;ue.childrenIgnored=Bo;function Yn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Fe=require("path"),No=Dt(),xo=At(),fr=No.Minimatch;function Gn(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function qn(t,e){return t.localeCompare(e)}function Fo(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map($o))}function $o(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new fr(r,{dot:!0})}return{matcher:new fr(t,{dot:!0}),gmatcher:e}}function jo(t,e,r){if(r||(r={}),r.matchBase&&e.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!r.silent,t.pattern=e,t.strict=r.strict!==!1,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0),t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),Fo(t,r),t.changedCwd=!1;var n=process.cwd();Yn(r,"cwd")?(t.cwd=r.cwd,t.changedCwd=Fe.resolve(r.cwd)!==n):t.cwd=n,t.root=r.root||Fe.resolve(t.cwd,"/"),t.root=Fe.resolve(t.root),process.platform==="win32"&&(t.root=t.root.replace(/\\/g,"/")),t.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,t.minimatch=new fr(e,r),t.options=t.minimatch.options}function Io(t){for(var e=t.nounique,r=e?[]:Object.create(null),n=0,i=t.matches.length;n<i;n++){var a=t.matches[n];if(!a||Object.keys(a).length===0){if(t.nonull){var o=t.minimatch.globSet[n];e?r.push(o):r[o]=!0}}else{var s=Object.keys(a);e?r.push.apply(r,s):s.forEach(function(u){r[u]=!0})}}if(e||(r=Object.keys(r)),t.nosort||(r=r.sort(t.nocase?Gn:qn)),t.mark){for(var n=0;n<r.length;n++)r[n]=t._mark(r[n]);t.nodir&&(r=r.filter(function(u){return!/\/$/.test(u)}))}t.ignore.length&&(r=r.filter(function(u){return!Un(t,u)})),t.found=r}function Po(t,e){var r=hr(t,e),n=t.cache[r],i=e;if(n){var a=n==="DIR"||Array.isArray(n),o=e.slice(-1)==="/";if(a&&!o?i+="/":!a&&o&&(i=i.slice(0,-1)),i!==e){var s=hr(t,i);t.statCache[s]=t.statCache[r],t.cache[s]=t.cache[r]}}return i}function hr(t,e){var r=e;return e.charAt(0)==="/"?r=Fe.join(t.root,e):xo(e)||e===""?r=e:t.changedCwd?r=Fe.resolve(t.cwd,e):r=Fe.resolve(e),r}function Un(t,e){return t.ignore.length?t.ignore.some(function(r){return r.matcher.match(e)||!!(r.gmatcher&&r.gmatcher.match(e))}):!1}function Bo(t,e){return t.ignore.length?t.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(e))}):!1}});var Jn=L((Hu,Kn)=>{Kn.exports=Hn;Hn.GlobSync=W;var Qe=require("fs"),zn=Dt(),Gu=zn.Minimatch,qu=gr().Glob,Uu=require("util"),mr=require("path"),Wn=require("assert"),Mt=At(),be=dr(),zu=be.alphasort,Wu=be.alphasorti,Yo=be.setopts,pr=be.ownProp,Go=be.childrenIgnored;function Hn(t,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);return new W(t,e).found}function W(t,e){if(!t)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof W))return new W(t,e);if(Yo(this,t,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}W.prototype._finish=function(){if(Wn(this instanceof W),this.realpath){var t=this;this.matches.forEach(function(e,r){var n=t.matches[r]=Object.create(null);for(var i in e)try{i=t._makeAbs(i);var a=Qe.realpathSync(i,t.realpathCache);n[a]=!0}catch(o){if(o.syscall==="stat")n[t._makeAbs(i)]=!0;else throw o}})}be.finish(this)};W.prototype._process=function(t,e,r){Wn(this instanceof W);for(var n=0;typeof t[n]=="string";)n++;var i;switch(n){case t.length:this._processSimple(t.join("/"),e);return;case 0:i=null;break;default:i=t.slice(0,n).join("/");break}var a=t.slice(n),o;i===null?o=".":((Mt(i)||Mt(t.join("/")))&&(!i||!Mt(i))&&(i="/"+i),o=i);var s=this._makeAbs(o);if(!Go(this,o)){var u=a[0]===zn.GLOBSTAR;u?this._processGlobStar(i,o,s,a,e,r):this._processReaddir(i,o,s,a,e,r)}};W.prototype._processReaddir=function(t,e,r,n,i,a){var o=this._readdir(r,a);if(o){for(var s=n[0],u=!!this.minimatch.negate,l=s._glob,c=this.dot||l.charAt(0)===".",p=[],f=0;f<o.length;f++){var d=o[f];if(d.charAt(0)!=="."||c){var h;u&&!t?h=!d.match(s):h=d.match(s),h&&p.push(d)}}var _=p.length;if(_!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<_;f++){var d=p[f];t&&(t.slice(-1)!=="/"?d=t+"/"+d:d=t+d),d.charAt(0)==="/"&&!this.nomount&&(d=mr.join(this.root,d)),this.matches[i][d]=!0}return}n.shift();for(var f=0;f<_;f++){var d=p[f],R;t?R=[t,d]:R=[d],this._process(R.concat(n),i,a)}}}};W.prototype._emitMatch=function(t,e){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),!this.matches[t][e]){if(this.nodir){var n=this.cache[this._makeAbs(e)];if(n==="DIR"||Array.isArray(n))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}};W.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r,n;try{r=Qe.lstatSync(t)}catch{return null}var i=r.isSymbolicLink();return this.symlinks[t]=i,!i&&!r.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};W.prototype._readdir=function(t,e){var r;if(e&&!pr(this.symlinks,t))return this._readdirInGlobStar(t);if(pr(this.cache,t)){var n=this.cache[t];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(t,Qe.readdirSync(t))}catch(i){return this._readdirError(t,i),null}};W.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var n=e[r];t==="/"?n=t+n:n=t+"/"+n,this.cache[n]=!0}return this.cache[t]=e,e};W.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(t)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};W.prototype._processGlobStar=function(t,e,r,n,i,a){var o=this._readdir(r,a);if(o){var s=n.slice(1),u=t?[t]:[],l=u.concat(s);this._process(l,i,!1);var c=o.length,p=this.symlinks[r];if(!(p&&a))for(var f=0;f<c;f++){var d=o[f];if(!(d.charAt(0)==="."&&!this.dot)){var h=u.concat(o[f],s);this._process(h,i,!0);var _=u.concat(o[f],n);this._process(_,i,!0)}}}};W.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(t&&Mt(t)&&!this.nomount){var n=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=mr.join(this.root,t):(t=mr.resolve(this.root,t),n&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this.matches[e][t]=!0}};W.prototype._stat=function(t){var e=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&pr(this.cache,e)){var o=this.cache[e];if(Array.isArray(o)&&(o="DIR"),!r||o==="DIR")return o;if(r&&o==="FILE")return!1}var n,i=this.statCache[e];if(!i){var a;try{a=Qe.lstatSync(e)}catch{return!1}if(a.isSymbolicLink())try{i=Qe.statSync(e)}catch{i=a}else i=a}this.statCache[e]=i;var o=i.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||o,r&&o!=="DIR"?!1:o};W.prototype._mark=function(t){return be.mark(this,t)};W.prototype._makeAbs=function(t){return be.makeAbs(this,t)}});var vr=L((Ku,Qn)=>{Qn.exports=Vn;function Vn(t,e){if(t&&e)return Vn(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var a=t.apply(this,n),o=n[n.length-1];return typeof a=="function"&&a!==o&&Object.keys(o).forEach(function(s){a[s]=o[s]}),a}}});var Sr=L((Ju,yr)=>{var Xn=vr();yr.exports=Xn(Tt);yr.exports.strict=Xn(Zn);Tt.proto=Tt(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Tt(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Zn(this)},configurable:!0})});function Tt(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Zn(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var ti=L((Vu,ei)=>{var qo=vr(),Xe=Object.create(null),Uo=Sr();ei.exports=qo(zo);function zo(t,e){return Xe[t]?(Xe[t].push(e),null):(Xe[t]=[e],Wo(t))}function Wo(t){return Uo(function e(){var r=Xe[t],n=r.length,i=Ho(arguments);try{for(var a=0;a<n;a++)r[a].apply(null,i)}finally{r.length>n?(r.splice(0,n),process.nextTick(function(){e.apply(null,i)})):delete Xe[t]}})}function Ho(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n]=t[n];return r}});var gr=L((tl,ni)=>{ni.exports=Oe;var Ze=require("fs"),ri=Dt(),Qu=ri.Minimatch,Ko=In(),Jo=require("events").EventEmitter,_r=require("path"),br=require("assert"),Rt=At(),Er=Jn(),he=dr(),Xu=he.alphasort,Zu=he.alphasorti,Vo=he.setopts,wr=he.ownProp,Cr=ti(),el=require("util"),Qo=he.childrenIgnored,Xo=he.isIgnored,Zo=Sr();function Oe(t,e,r){if(typeof e=="function"&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return Er(t,e)}return new I(t,e,r)}Oe.sync=Er;var es=Oe.GlobSync=Er.GlobSync;Oe.glob=Oe;function ts(t,e){if(e===null||typeof e!="object")return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}Oe.hasMagic=function(t,e){var r=ts({},e);r.noprocess=!0;var n=new I(t,r),i=n.minimatch.set;if(i.length>1)return!0;for(var a=0;a<i[0].length;a++)if(typeof i[0][a]!="string")return!0;return!1};Oe.Glob=I;Ko(I,Jo);function I(t,e,r){if(typeof e=="function"&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new es(t,e)}if(!(this instanceof I))return new I(t,e,r);Vo(this,t,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof r=="function"&&(r=Zo(r),this.on("error",r),this.on("end",function(s){r(null,s)}));var n=this,i=this.minimatch.set.length;if(this._processing=0,this.matches=new Array(i),this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(i===0)return o();for(var a=0;a<i;a++)this._process(this.minimatch.set[a],a,!1,o);function o(){--n._processing,n._processing<=0&&n._finish()}}I.prototype._finish=function(){if(br(this instanceof I),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();he.finish(this),this.emit("end",this.found)}};I.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var t=this.matches.length;if(t===0)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--t===0&&e._finish()}};I.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r),i=this,a=n.length;if(a===0)return e();var o=this.matches[t]=Object.create(null);n.forEach(function(s,u){s=i._makeAbs(s),Ze.realpath(s,i.realpathCache,function(l,c){l?l.syscall==="stat"?o[s]=!0:i.emit("error",l):o[c]=!0,--a===0&&(i.matches[t]=o,e())})})};I.prototype._mark=function(t){return he.mark(this,t)};I.prototype._makeAbs=function(t){return he.makeAbs(this,t)};I.prototype.abort=function(){this.aborted=!0,this.emit("abort")};I.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};I.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<n.length;e++){var i=n[e];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};I.prototype._process=function(t,e,r,n){if(br(this instanceof I),br(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,r,n]);return}for(var i=0;typeof t[i]=="string";)i++;var a;switch(i){case t.length:this._processSimple(t.join("/"),e,n);return;case 0:a=null;break;default:a=t.slice(0,i).join("/");break}var o=t.slice(i),s;a===null?s=".":((Rt(a)||Rt(t.join("/")))&&(!a||!Rt(a))&&(a="/"+a),s=a);var u=this._makeAbs(s);if(Qo(this,s))return n();var l=o[0]===ri.GLOBSTAR;l?this._processGlobStar(a,s,u,o,e,r,n):this._processReaddir(a,s,u,o,e,r,n)}};I.prototype._processReaddir=function(t,e,r,n,i,a,o){var s=this;this._readdir(r,a,function(u,l){return s._processReaddir2(t,e,r,n,i,a,l,o)})};I.prototype._processReaddir2=function(t,e,r,n,i,a,o,s){if(!o)return s();for(var u=n[0],l=!!this.minimatch.negate,c=u._glob,p=this.dot||c.charAt(0)===".",f=[],d=0;d<o.length;d++){var h=o[d];if(h.charAt(0)!=="."||p){var _;l&&!t?_=!h.match(u):_=h.match(u),_&&f.push(h)}}var R=f.length;if(R===0)return s();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<R;d++){var h=f[d];t&&(t!=="/"?h=t+"/"+h:h=t+h),h.charAt(0)==="/"&&!this.nomount&&(h=_r.join(this.root,h)),this._emitMatch(i,h)}return s()}n.shift();for(var d=0;d<R;d++){var h=f[d],b;t&&(t!=="/"?h=t+"/"+h:h=t+h),this._process([h].concat(n),i,a,s)}s()};I.prototype._emitMatch=function(t,e){if(!this.aborted&&!this.matches[t][e]&&!Xo(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var r=this._makeAbs(e);if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.mark&&(e=this._mark(e)),this.matches[t][e]=!0;var i=this.statCache[r];i&&this.emit("stat",e,i),this.emit("match",e)}};I.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var r="lstat\0"+t,n=this,i=Cr(r,a);i&&Ze.lstat(t,i);function a(o,s){if(o)return e();var u=s.isSymbolicLink();n.symlinks[t]=u,!u&&!s.isDirectory()?(n.cache[t]="FILE",e()):n._readdir(t,!1,e)}};I.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=Cr("readdir\0"+t+"\0"+e,r),!!r)){if(e&&!wr(this.symlinks,t))return this._readdirInGlobStar(t,r);if(wr(this.cache,t)){var n=this.cache[t];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;Ze.readdir(t,rs(this,t,r))}};function rs(t,e,r){return function(n,i){n?t._readdirError(e,n,r):t._readdirEntries(e,i,r)}}I.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var i=e[n];t==="/"?i=t+i:i=t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,r(null,e)}};I.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(t)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return r()}};I.prototype._processGlobStar=function(t,e,r,n,i,a,o){var s=this;this._readdir(r,a,function(u,l){s._processGlobStar2(t,e,r,n,i,a,l,o)})};I.prototype._processGlobStar2=function(t,e,r,n,i,a,o,s){if(!o)return s();var u=n.slice(1),l=t?[t]:[],c=l.concat(u);this._process(c,i,!1,s);var p=this.symlinks[r],f=o.length;if(p&&a)return s();for(var d=0;d<f;d++){var h=o[d];if(!(h.charAt(0)==="."&&!this.dot)){var _=l.concat(o[d],u);this._process(_,i,!0,s);var R=l.concat(o[d],n);this._process(R,i,!0,s)}}s()};I.prototype._processSimple=function(t,e,r){var n=this;this._stat(t,function(i,a){n._processSimple2(t,e,i,a,r)})};I.prototype._processSimple2=function(t,e,r,n,i){if(this.matches[e]||(this.matches[e]=Object.create(null)),!n)return i();if(t&&Rt(t)&&!this.nomount){var a=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=_r.join(this.root,t):(t=_r.resolve(this.root,t),a&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),i()};I.prototype._stat=function(t,e){var r=this._makeAbs(t),n=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&wr(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return e(null,i);if(n&&i==="FILE")return e()}var a,o=this.statCache[r];if(o!==void 0){if(o===!1)return e(null,o);var s=o.isDirectory()?"DIR":"FILE";return n&&s==="FILE"?e():e(null,s,o)}var u=this,l=Cr("stat\0"+r,c);l&&Ze.lstat(r,l);function c(p,f){if(f&&f.isSymbolicLink())return Ze.stat(r,function(d,h){d?u._stat2(t,r,null,f,e):u._stat2(t,r,d,h,e)});u._stat2(t,r,p,f,e)}};I.prototype._stat2=function(t,e,r,n,i){if(r)return this.statCache[e]=!1,i();var a=t.slice(-1)==="/";if(this.statCache[e]=n,e.slice(-1)==="/"&&!n.isDirectory())return i(null,!1,n);var o=n.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||o,a&&o!=="DIR"?i():i(null,o,n)}});var li=L((rl,ui)=>{ui.exports=Mr;Mr.sync=si;var j=require("assert"),ii=require("path"),Nt=require("fs"),xt=gr(),ai={nosort:!0,nocomment:!0,nonegate:!0,silent:!0},Dr=0,Ar=process.platform==="win32";function oi(t){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(function(r){t[r]=t[r]||Nt[r],r=r+"Sync",t[r]=t[r]||Nt[r]}),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,t.disableGlob=t.disableGlob||!1}function Mr(t,e,r){typeof e=="function"&&(r=e,e={}),j(t,"rimraf: missing path"),j.equal(typeof t,"string","rimraf: path should be a string"),j(e,"rimraf: missing options"),j.equal(typeof e,"object","rimraf: options should be object"),j.equal(typeof r,"function","rimraf: callback function required"),oi(e);var n=0,i=null,a=0;if(e.disableGlob||!xt.hasMagic(t))return s(null,[t]);Nt.lstat(t,function(u,l){if(!u)return s(null,[t]);xt(t,ai,s)});function o(u){i=i||u,--a===0&&r(i)}function s(u,l){if(u)return r(u);if(a=l.length,a===0)return r();l.forEach(function(c){Or(c,e,function p(f){if(f){if(Ar&&(f.code==="EBUSY"||f.code==="ENOTEMPTY"||f.code==="EPERM")&&n<e.maxBusyTries){n++;var d=n*100;return setTimeout(function(){Or(c,e,p)},d)}if(f.code==="EMFILE"&&Dr<e.emfileWait)return setTimeout(function(){Or(c,e,p)},Dr++);f.code==="ENOENT"&&(f=null)}Dr=0,o(f)})})}}function Or(t,e,r){j(t),j(e),j(typeof r=="function"),e.lstat(t,function(n,i){if(n&&n.code==="ENOENT")return r(null);if(i&&i.isDirectory())return kt(t,e,n,r);e.unlink(t,function(a){if(a){if(a.code==="ENOENT")return r(null);if(a.code==="EPERM")return Ar?ns(t,e,a,r):kt(t,e,a,r);if(a.code==="EISDIR")return kt(t,e,a,r)}return r(a)})})}function ns(t,e,r,n){j(t),j(e),j(typeof n=="function"),r&&j(r instanceof Error),e.chmod(t,666,function(i){i?n(i.code==="ENOENT"?null:r):e.stat(t,function(a,o){a?n(a.code==="ENOENT"?null:r):o.isDirectory()?kt(t,e,r,n):e.unlink(t,n)})})}function is(t,e,r){j(t),j(e),r&&j(r instanceof Error);try{e.chmodSync(t,666)}catch(i){if(i.code==="ENOENT")return;throw r}try{var n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Lt(t,e,r):e.unlinkSync(t)}function kt(t,e,r,n){j(t),j(e),r&&j(r instanceof Error),j(typeof n=="function"),e.rmdir(t,function(i){i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?as(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function as(t,e,r){j(t),j(e),j(typeof r=="function"),e.readdir(t,function(n,i){if(n)return r(n);var a=i.length;if(a===0)return e.rmdir(t,r);var o;i.forEach(function(s){Mr(ii.join(t,s),e,function(u){if(!o){if(u)return r(o=u);--a===0&&e.rmdir(t,r)}})})})}function si(t,e){e=e||{},oi(e),j(t,"rimraf: missing path"),j.equal(typeof t,"string","rimraf: path should be a string"),j(e,"rimraf: missing options"),j.equal(typeof e,"object","rimraf: options should be object");var r;if(e.disableGlob||!xt.hasMagic(t))r=[t];else try{Nt.lstatSync(t),r=[t]}catch{r=xt.sync(t,ai)}if(r.length)for(var n=0;n<r.length;n++){var t=r[n];try{var i=e.lstatSync(t)}catch(o){if(o.code==="ENOENT")return}try{i&&i.isDirectory()?Lt(t,e,null):e.unlinkSync(t)}catch(o){if(o.code==="ENOENT")return;if(o.code==="EPERM")return Ar?is(t,e,o):Lt(t,e,o);if(o.code!=="EISDIR")throw o;Lt(t,e,o)}}}function Lt(t,e,r){j(t),j(e),r&&j(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")&&os(t,e)}}function os(t,e){j(t),j(e),e.readdirSync(t).forEach(function(r){si(ii.join(t,r),e)}),e.rmdirSync(t,e)}});var di=L((nl,hi)=>{var et=require("path"),ci=require("fs"),fi=parseInt("0777",8);hi.exports=$e.mkdirp=$e.mkdirP=$e;function $e(t,e,r,n){typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,a=e.fs||ci;i===void 0&&(i=fi),n||(n=null);var o=r||function(){};t=et.resolve(t),a.mkdir(t,i,function(s){if(!s)return n=n||t,o(null,n);switch(s.code){case"ENOENT":if(et.dirname(t)===t)return o(s);$e(et.dirname(t),e,function(u,l){u?o(u,l):$e(t,e,o,l)});break;default:a.stat(t,function(u,l){u||!l.isDirectory()?o(s,n):o(null,n)});break}})}$e.sync=function t(e,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,a=r.fs||ci;i===void 0&&(i=fi),n||(n=null),e=et.resolve(e);try{a.mkdirSync(e,i),n=n||e}catch(s){switch(s.code){case"ENOENT":n=t(et.dirname(e),r,n),t(e,r,n);break;default:var o;try{o=a.statSync(e)}catch{throw s}if(!o.isDirectory())throw s;break}}return n}});var yi=L((il,vi)=>{var je=require("fs"),ss=gn().ncp,us=require("path"),mi=li(),ls=di();vi.exports=cs;function cs(t,e,r,n){typeof r=="function"&&(n=r,r={});var i=!!r.mkdirp,a=r.clobber!==!1,o=r.limit||16;i?s():u();function s(){ls(us.dirname(e),function(l){if(l)return n(l);u()})}function u(){a?je.rename(t,e,function(l){if(!l)return n();if(l.code!=="EXDEV")return n(l);pi(t,e,a,o,n)}):je.link(t,e,function(l){if(l){if(l.code==="EXDEV"){pi(t,e,a,o,n);return}if(l.code==="EISDIR"||l.code==="EPERM"){gi(t,e,a,o,n);return}n(l);return}je.unlink(t,n)})}}function pi(t,e,r,n,i){var a=r?"w":"wx",o=je.createReadStream(t),s=je.createWriteStream(e,{flags:a});o.on("error",function(l){o.destroy(),s.destroy(),s.removeListener("close",u),l.code==="EISDIR"||l.code==="EPERM"?gi(t,e,r,n,i):i(l)}),s.on("error",function(l){o.destroy(),s.destroy(),s.removeListener("close",u),i(l)}),s.once("close",u),o.pipe(s);function u(){je.unlink(t,i)}}function gi(t,e,r,n,i){var a={stopOnErr:!0,clobber:!1,limit:n};r?mi(e,{disableGlob:!0},function(s){if(s)return i(s);o()}):o();function o(){ss(t,e,a,function(s){if(s)return i(s[0]);mi(t,{disableGlob:!0},i)})}}});var _i=L(Tr=>{var Si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Tr.encode=function(t){if(0<=t&&t<Si.length)return Si[t];throw new TypeError("Must be between 0 and 63: "+t)};Tr.decode=function(t){var e=65,r=90,n=97,i=122,a=48,o=57,s=43,u=47,l=26,c=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+l:a<=t&&t<=o?t-a+c:t==s?62:t==u?63:-1}});var Lr=L(kr=>{var bi=_i(),Rr=5,wi=1<<Rr,Ei=wi-1,Ci=wi;function fs(t){return t<0?(-t<<1)+1:(t<<1)+0}function hs(t){var e=(t&1)===1,r=t>>1;return e?-r:r}kr.encode=function(e){var r="",n,i=fs(e);do n=i&Ei,i>>>=Rr,i>0&&(n|=Ci),r+=bi.encode(n);while(i>0);return r};kr.decode=function(e,r,n){var i=e.length,a=0,o=0,s,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=bi.decode(e.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));s=!!(u&Ci),u&=Ei,a=a+(u<<o),o+=Rr}while(s);n.value=hs(a),n.rest=r}});var Be=L(X=>{function ds(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}X.getArg=ds;var Di=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ms=/^data:.+\,.+$/;function tt(t){var e=t.match(Di);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}X.urlPars