@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) • 124 kB
JavaScript
var to=Object.create;var wt=Object.defineProperty;var ro=Object.getOwnPropertyDescriptor;var no=Object.getOwnPropertyNames;var io=Object.getPrototypeOf,ao=Object.prototype.hasOwnProperty;var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),oo=(t,e)=>{for(var r in e)wt(t,r,{get:e[r],enumerable:!0})},cn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of no(e))!ao.call(t,i)&&i!==r&&wt(t,i,{get:()=>e[i],enumerable:!(n=ro(e,i))||n.enumerable});return t};var Dt=(t,e,r)=>(r=t!=null?to(io(t)):{},cn(e||!t||!t.__esModule?wt(r,"default",{value:t,enumerable:!0}):r,t)),so=t=>cn(wt({},"__esModule",{value:!0}),t);var fn=L((Zt,er)=>{(function(t,e){typeof Zt=="object"&&typeof er<"u"?er.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Zt,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",a="minute",o="hour",u="day",s="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+)?$/,b=/\[([^\]]+)]|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])+"]"}},_=function(C,S,g){var D=String(C);return!D||D.length>=S?C:""+Array(S+1-D.length).join(g)+C},A={s:_,z:function(C){var S=-C.utcOffset(),g=Math.abs(S),D=Math.floor(g/60),v=g%60;return(S<=0?"+":"-")+_(D,2,"0")+":"+_(v,2,"0")},m:function C(S,g){if(S.date()<g.date())return-C(g,S);var D=12*(g.year()-S.year())+(g.month()-S.month()),v=S.clone().add(D,l),m=g-v<0,y=S.clone().add(D+(m?-1:1),l);return+(-(D+(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:s,d:u,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",M={};M[$]=R;var N="$isDayjsObject",Y=function(C){return C instanceof B||!(!C||!C[N])},P=function C(S,g,D){var v;if(!S)return $;if(typeof S=="string"){var m=S.toLowerCase();M[m]&&(v=m),g&&(M[m]=g,v=m);var y=S.split("-");if(!v&&y.length>1)return C(y[0])}else{var w=S.name;M[w]=S,v=w}return!D&&v&&($=v),v||!D&&$},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)},T=A;T.l=P,T.i=Y,T.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(D){var v=D.date,m=D.utc;if(v===null)return new Date(NaN);if(T.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 T},S.isValid=function(){return this.$d.toString()!==d},S.isSame=function(g,D){var v=x(g);return this.startOf(D)<=v&&v<=this.endOf(D)},S.isAfter=function(g,D){return x(g)<this.startOf(D)},S.isBefore=function(g,D){return this.endOf(D)<x(g)},S.$g=function(g,D,v){return T.u(g)?this[D]:this.set(v,g)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(g,D){var v=this,m=!!T.u(D)||D,y=T.p(g),w=function(ue,W){var ie=T.w(v.$u?Date.UTC(v.$y,W,ue):new Date(v.$y,W,ue),v);return m?ie:ie.endOf(u)},k=function(ue,W){return T.w(v.toDate()[ue].apply(v.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(W)),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 s:var fe=this.$locale().weekStart||0,Ee=(F<fe?F+7:F)-fe;return w(m?ee-Ee:ee+(6-Ee),U);case u: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,D){var v,m=T.p(g),y="set"+(this.$u?"UTC":""),w=(v={},v[u]=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===u?this.$D+(D-this.$W):D;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,D){return this.clone().$set(g,D)},S.get=function(g){return this[T.p(g)]()},S.add=function(g,D){var v,m=this;g=Number(g);var y=T.p(D),w=function(U){var ee=x(m);return T.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===u)return w(1);if(y===s)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 T.w(F,this)},S.subtract=function(g,D){return this.add(-1*g,D)},S.format=function(g){var D=this,v=this.$locale();if(!this.isValid())return v.invalidDate||d;var m=g||"YYYY-MM-DDTHH:mm:ssZ",y=T.z(this),w=this.$H,k=this.$m,F=this.$M,U=v.weekdays,ee=v.months,ye=v.meridiem,fe=function(W,ie,he,Se){return W&&(W[ie]||W(D,m))||he[ie].slice(0,Se)},Ee=function(W){return T.s(w%12||12,W,"0")},ue=ye||function(W,ie,he){var Se=W<12?"AM":"PM";return he?Se.toLowerCase():Se};return m.replace(b,function(W,ie){return ie||function(he){switch(he){case"YY":return String(D.$y).slice(-2);case"YYYY":return T.s(D.$y,4,"0");case"M":return F+1;case"MM":return T.s(F+1,2,"0");case"MMM":return fe(v.monthsShort,F,ee,3);case"MMMM":return fe(ee,F);case"D":return D.$D;case"DD":return T.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return fe(v.weekdaysMin,D.$W,U,2);case"ddd":return fe(v.weekdaysShort,D.$W,U,3);case"dddd":return U[D.$W];case"H":return String(w);case"HH":return T.s(w,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return ue(w,k,!0);case"A":return ue(w,k,!1);case"m":return String(k);case"mm":return T.s(k,2,"0");case"s":return String(D.$s);case"ss":return T.s(D.$s,2,"0");case"SSS":return T.s(D.$ms,3,"0");case"Z":return y}return null}(W)||y.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(g,D,v){var m,y=this,w=T.p(D),k=x(g),F=(k.utcOffset()-this.utcOffset())*e,U=this-k,ee=function(){return T.m(y,k)};switch(w){case p:m=ee()/12;break;case l:m=ee();break;case c:m=ee()/3;break;case s:m=(U-F)/6048e5;break;case u: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:T.a(m)},S.daysInMonth=function(){return this.endOf(l).$D},S.$locale=function(){return M[this.$L]},S.locale=function(g,D){if(!g)return this.$L;var v=this.clone(),m=P(g,D,!0);return m&&(v.$L=m),v},S.clone=function(){return T.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}(),O=B.prototype;return x.prototype=O,[["$ms",n],["$s",i],["$m",a],["$H",o],["$W",u],["$M",l],["$y",p],["$D",f]].forEach(function(C){O[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=M[$],x.Ls=M,x.p={},x})});var hn=L((tr,rr)=>{(function(t,e){typeof tr=="object"&&typeof rr<"u"?rr.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(tr,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={},u=function(h){return(h=+h)+(h>68?1900:2e3)},s=function(h){return function(b){this[h]=+b}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var R=b.match(/([+-]|\d\d)/g),_=60*R[1]+(+R[2]||0);return _===0?0:R[0]==="+"?-_:_}(h)}],c=function(h){var b=o[h];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(h,b){var R,_=o.meridiem;if(_){for(var A=1;A<=24;A+=1)if(h.indexOf(_(A,0,b))>-1){R=A>12;break}}else R=h===(b?"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,s("seconds")],ss:[i,s("seconds")],m:[i,s("minutes")],mm:[i,s("minutes")],H:[i,s("hours")],h:[i,s("hours")],HH:[i,s("hours")],hh:[i,s("hours")],D:[i,s("day")],DD:[n,s("day")],Do:[a,function(h){var b=o.ordinal,R=h.match(/\d+/);if(this.day=R[0],b)for(var _=1;_<=31;_+=1)b(_).replace(/\[|\]/g,"")===h&&(this.day=_)}],w:[i,s("week")],ww:[n,s("week")],M:[i,s("month")],MM:[n,s("month")],MMM:[a,function(h){var b=c("months"),R=(c("monthsShort")||b.map(function(_){return _.slice(0,3)})).indexOf(h)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[a,function(h){var b=c("months").indexOf(h)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(h){this.year=u(h)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function d(h){var b,R;b=h,R=o&&o.formats;for(var _=(h=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,T,B){var O=B&&B.toUpperCase();return T||R[B]||t[B]||R[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,S,g){return S||g.slice(1)})})).match(e),A=_.length,$=0;$<A;$+=1){var M=_[$],N=f[M],Y=N&&N[0],P=N&&N[1];_[$]=P?{regex:Y,parser:P}:M.replace(/^\[|\]$/g,"")}return function(x){for(var T={},B=0,O=0;B<A;B+=1){var C=_[B];if(typeof C=="string")O+=C.length;else{var S=C.regex,g=C.parser,D=x.slice(O),v=S.exec(D)[0];g.call(T,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}}(T),T}}return function(h,b,R){R.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var _=b.prototype,A=_.parse;_.parse=function($){var M=$.date,N=$.utc,Y=$.args;this.$u=N;var P=Y[1];if(typeof P=="string"){var x=Y[2]===!0,T=Y[3]===!0,B=x||T,O=Y[2];T&&(O=Y[2]),o=this.$locale(),!x&&O&&(o=R.Ls[O]),this.$d=function(D,v,m,y){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1e3:1)*D);var w=d(v)(D),k=w.year,F=w.month,U=w.day,ee=w.hours,ye=w.minutes,fe=w.seconds,Ee=w.milliseconds,ue=w.zone,W=w.week,ie=new Date,he=U||(k||F?1:ie.getDate()),Se=k||ie.getFullYear(),bt=0;k&&!F||(bt=F>0?F-1:ie.getMonth());var _t,Kt=ee||0,Jt=ye||0,Vt=fe||0,Qt=Ee||0;return ue?new Date(Date.UTC(Se,bt,he,Kt,Jt,Vt,Qt+60*ue.offset*1e3)):m?new Date(Date.UTC(Se,bt,he,Kt,Jt,Vt,Qt)):(_t=new Date(Se,bt,he,Kt,Jt,Vt,Qt),W&&(_t=y(_t).week(W).toDate()),_t)}catch{return new Date("")}}(M,P,N,R),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),B&&M!=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 A.call(this,$)}}})});var pn=L((Pu,nr)=>{var fo=Object.prototype.hasOwnProperty;function dn(t){return"[Throws: "+(t?t.message:"?")+"]"}function ho(t,e){if(fo.call(t,e))try{return t[e]}catch(r){return dn(r)}return t[e]}function mn(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(u){return dn(u)}if(Array.isArray(n)){var a=n.map(r);return e.pop(),a}var o=Object.keys(n).reduce(function(u,s){return u[s]=r(ho(n,s)),u},{});return e.pop(),o}return r(t)}nr.exports=function(t,e,r){return JSON.stringify(mn(t),e,r)};nr.exports.ensureProperties=mn});var vn=L((Bu,gn)=>{var Z=require("fs"),Ze=require("path");gn.exports=Ct;Ct.ncp=Ct;function Ct(t,e,r,n){var i=n;n||(i=r,r={});var a=process.cwd(),o=Ze.resolve(a,t),u=Ze.resolve(a,e),s=r.filter,l=r.rename,c=r.transform,p=r.clobber!==!1,f=r.modified,d=r.dereference,h=null,b=0,R=0,_=0,A=r.limit||Ct.limit||16;A=A<1?1:A>512?512:A,$(o);function $(m){if(b++,s){if(s instanceof RegExp){if(!s.test(m))return v(!0)}else if(typeof s=="function"&&!s(m))return v(!0)}return M(m)}function M(m){var y=d?Z.stat:Z.lstat;if(_>=A)return setImmediate(function(){M(m)});_++,y(m,function(w,k){var F={};if(w)return D(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 O(m)})}function N(m){var y=m.name.replace(o,u);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",D),k.on("error",D),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?D(w):y()})}function x(m){var y=m.name.replace(o,u);g(y,function(w){if(w)return T(m,y);B(m.name)})}function T(m,y){Z.mkdir(y,m.mode,function(w){if(w)return D(w);B(m.name)})}function B(m){Z.readdir(m,function(y,w){return y?D(y):(w.forEach(function(k){$(Ze.join(m,k))}),v())})}function O(m){var y=m.replace(o,u);Z.readlink(m,function(w,k){if(w)return D(w);C(k,y)})}function C(m,y){d&&(m=Ze.resolve(a,m)),g(y,function(w){if(w)return S(m,y);Z.readlink(y,function(k,F){return k?D(k):(d&&(F=Ze.resolve(a,F)),F===m?v():P(y,function(){S(m,y)}))})})}function S(m,y){Z.symlink(m,y,function(w){return w?D(w):v()})}function g(m,y){Z.lstat(m,function(w){return w&&w.code==="ENOENT"?y(!0):y(!1)})}function D(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||_--,R++,b===R&&_===0&&i!==void 0)return i(h||null)}}});var Sn=L((Yu,yn)=>{yn.exports=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=e(t[n],n);mo(i)?r.push.apply(r,i):r.push(i)}return r};var mo=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var Cn=L((Gu,Dn)=>{"use strict";Dn.exports=_n;function _n(t,e,r){t instanceof RegExp&&(t=bn(t,r)),e instanceof RegExp&&(e=bn(e,r));var n=wn(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 bn(t,e){var r=e.match(t);return r?r[0]:null}_n.range=wn;function wn(t,e,r){var n,i,a,o,u,s=r.indexOf(t),l=r.indexOf(e,s+1),c=s;if(s>=0&&l>0){if(t===e)return[s,l];for(n=[],a=r.length;c>=0&&!u;)c==s?(n.push(c),s=r.indexOf(t,c+1)):n.length==1?u=[n.pop(),l]:(i=n.pop(),i<a&&(a=i,o=l),l=r.indexOf(e,c+1)),c=s<l&&s>=0?s:l;n.length&&(u=[a,o])}return u}});var Ln=L((qu,kn)=>{var po=Sn(),En=Cn();kn.exports=yo;var An="\0SLASH"+Math.random()+"\0",Tn="\0OPEN"+Math.random()+"\0",ar="\0CLOSE"+Math.random()+"\0",On="\0COMMA"+Math.random()+"\0",Mn="\0PERIOD"+Math.random()+"\0";function ir(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function go(t){return t.split("\\\\").join(An).split("\\{").join(Tn).split("\\}").join(ar).split("\\,").join(On).split("\\.").join(Mn)}function vo(t){return t.split(An).join("\\").split(Tn).join("{").split(ar).join("}").split(On).join(",").split(Mn).join(".")}function Rn(t){if(!t)return[""];var e=[],r=En("{","}",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 u=Rn(a);return a.length&&(o[o.length-1]+=u.shift(),o.push.apply(o,u)),e.push.apply(e,o),e}function yo(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),je(go(t),!0).map(vo)):[]}function So(t){return"{"+t+"}"}function bo(t){return/^-?0\d/.test(t)}function _o(t,e){return t<=e}function wo(t,e){return t>=e}function je(t,e){var r=[],n=En("{","}",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,u=n.body.indexOf(",")>=0;if(!o&&!u)return n.post.match(/,.*\}/)?(t=n.pre+"{"+n.body+ar+n.post,je(t)):[t];var s;if(o)s=n.body.split(/\.\./);else if(s=Rn(n.body),s.length===1&&(s=je(s[0],!1).map(So),s.length===1)){var c=n.post.length?je(n.post,!1):[""];return c.map(function(O){return n.pre+s[0]+O})}var l=n.pre,c=n.post.length?je(n.post,!1):[""],p;if(o){var f=ir(s[0]),d=ir(s[1]),h=Math.max(s[0].length,s[1].length),b=s.length==3?Math.abs(ir(s[2])):1,R=_o,_=d<f;_&&(b*=-1,R=wo);var A=s.some(bo);p=[];for(var $=f;R($,d);$+=b){var M;if(a)M=String.fromCharCode($),M==="\\"&&(M="");else if(M=String($),A){var N=h-M.length;if(N>0){var Y=new Array(N+1).join("0");$<0?M="-"+Y+M.slice(1):M=Y+M}}p.push(M)}}else p=po(s,function(B){return je(B,!1)});for(var P=0;P<p.length;P++)for(var x=0;x<c.length;x++){var T=l+p[P]+c[x];(!e||o||T)&&r.push(T)}return r}});var Tt=L((Uu,jn)=>{jn.exports=te;te.Minimatch=K;var et=function(){try{return require("path")}catch{}}()||{sep:"/"};te.sep=et.sep;var ur=te.GLOBSTAR=K.GLOBSTAR={},Do=Ln(),Nn={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},or="[^/]",sr=or+"*?",Co="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Eo="(?:(?!(?:\\/|^)\\.).)*?",xn=Ao("().*{}+?[]^$\\!");function Ao(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var Fn=/\/+/;te.filter=To;function To(t,e){return e=e||{},function(r,n,i){return te(r,t,e)}}function be(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,be(t,o))};return r.Minimatch=function(i,a){return new e.Minimatch(i,be(t,a))},r.Minimatch.defaults=function(i){return e.defaults(be(t,i)).Minimatch},r.filter=function(i,a){return e.filter(i,be(t,a))},r.defaults=function(i){return e.defaults(be(t,i))},r.makeRe=function(i,a){return e.makeRe(i,be(t,a))},r.braceExpand=function(i,a){return e.braceExpand(i,be(t,a))},r.match=function(n,i,a){return e.match(n,i,be(t,a))},r};K.defaults=function(t){return te.defaults(t).Minimatch};function te(t,e,r){return At(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);At(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&et.sep!=="/"&&(t=t.split(et.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(Fn)}),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=Mo;function Mo(){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 $n(t,e)};K.prototype.braceExpand=$n;function $n(t,e){return e||(this instanceof K?e=this.options:e={}),t=typeof t>"u"?this.pattern:t,At(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Do(t)}var Ro=1024*64,At=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Ro)throw new TypeError("pattern is too long")};K.prototype.parse=ko;var Et={};function ko(t,e){At(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return ur;if(t==="")return"";var n="",i=!!r.nocase,a=!1,o=[],u=[],s,l=!1,c=-1,p=-1,f=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(s){switch(s){case"*":n+=sr,i=!0;break;case"?":n+=or,i=!0;break;default:n+="\\"+s;break}d.debug("clearStateChar %j %j",s,n),s=!1}}for(var b=0,R=t.length,_;b<R&&(_=t.charAt(b));b++){if(this.debug("%s %s %s %j",t,b,n,_),a&&xn[_]){n+="\\"+_,a=!1;continue}switch(_){case"/":return!1;case"\\":h(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,b,n,_),l){this.debug(" in class"),_==="!"&&b===p+1&&(_="^"),n+=_;continue}d.debug("call clearStateChar %j",s),h(),s=_,r.noext&&h();continue;case"(":if(l){n+="(";continue}if(!s){n+="\\(";continue}o.push({type:s,start:b-1,reStart:n.length,open:Nn[s].open,close:Nn[s].close}),n+=s==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",s,n),s=!1;continue;case")":if(l||!o.length){n+="\\)";continue}h(),i=!0;var A=o.pop();n+=A.close,A.type==="!"&&u.push(A),A.reEnd=n.length;continue;case"|":if(l||!o.length||a){n+="\\|",a=!1;continue}h(),n+="|";continue;case"[":if(h(),l){n+="\\"+_;continue}l=!0,p=b,c=n.length,n+=_;continue;case"]":if(b===p+1||!l){n+="\\"+_,a=!1;continue}var $=t.substring(p+1,b);try{RegExp("["+$+"]")}catch{var M=this.parse($,Et);n=n.substr(0,c)+"\\["+M[0]+"\\]",i=i||M[1],l=!1;continue}i=!0,l=!1,n+=_;continue;default:h(),a?a=!1:xn[_]&&!(_==="^"&&l)&&(n+="\\"),n+=_}}for(l&&($=t.substr(p+1),M=this.parse($,Et),n=n.substr(0,c)+"\\["+M[0],i=i||M[1]),A=o.pop();A;A=o.pop()){var N=n.slice(A.reStart+A.open.length);this.debug("setting tail",n,A),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(k,F,U){return U||(U="\\"),F+F+U+"|"}),this.debug(`tail=%j
%s`,N,N,A,n);var Y=A.type==="*"?sr:A.type==="?"?or:"\\"+A.type;i=!0,n=n.slice(0,A.reStart)+Y+"\\("+N}h(),a&&(n+="\\\\");var P=!1;switch(n.charAt(0)){case"[":case".":case"(":P=!0}for(var x=u.length-1;x>-1;x--){var T=u[x],B=n.slice(0,T.reStart),O=n.slice(T.reStart,T.reEnd-8),C=n.slice(T.reEnd-8,T.reEnd),S=n.slice(T.reEnd);C+=S;var g=B.split("(").length-1,D=S;for(b=0;b<g;b++)D=D.replace(/\)[+*?]?/,"");S=D;var v="";S===""&&e!==Et&&(v="$");var m=B+O+S+v+C;n=m}if(n!==""&&i&&(n="(?=.)"+n),P&&(n=f+n),e===Et)return[n,i];if(!i)return No(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=Lo;function Lo(){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?sr:e.dot?Co:Eo,n=e.nocase?"i":"",i=t.map(function(a){return a.map(function(o){return o===ur?r:typeof o=="string"?xo(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;et.sep!=="/"&&(e=e.split(et.sep).join("/")),e=e.split(Fn),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 u=i[o],s=e;n.matchBase&&u.length===1&&(s=[a]);var l=this.matchOne(s,u,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,u=e.length;i<o&&a<u;i++,a++){this.debug("matchOne loop");var s=e[a],l=t[i];if(this.debug(e,s,l),s===!1)return!1;if(s===ur){this.debug("GLOBSTAR",[e,s,l]);var c=i,p=a+1;if(p===u){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 s=="string"?(d=l===s,this.debug("string match",s,l,d)):(d=l.match(s),this.debug("pattern match",s,l,d)),!d)return!1}if(i===o&&a===u)return!0;if(i===o)return r;if(a===u)return i===o-1&&t[i]==="";throw new Error("wtf?")};function No(t){return t.replace(/\\(.)/g,"$1")}function xo(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var In=L((zu,lr)=>{typeof Object.create=="function"?lr.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:lr.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 Pn=L((Hu,fr)=>{try{if(cr=require("util"),typeof cr.inherits!="function")throw"";fr.exports=cr.inherits}catch{fr.exports=In()}var cr});var Mt=L((Wu,Ot)=>{"use strict";function Bn(t){return t.charAt(0)==="/"}function Yn(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"?Yn:Bn;Ot.exports.posix=Bn;Ot.exports.win32=Yn});var mr=L(le=>{le.alphasort=Un;le.alphasorti=qn;le.setopts=Po;le.ownProp=Gn;le.makeAbs=dr;le.finish=Bo;le.mark=Yo;le.isIgnored=zn;le.childrenIgnored=Go;function Gn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Ie=require("path"),Fo=Tt(),$o=Mt(),hr=Fo.Minimatch;function qn(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function Un(t,e){return t.localeCompare(e)}function jo(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map(Io))}function Io(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new hr(r,{dot:!0})}return{matcher:new hr(t,{dot:!0}),gmatcher:e}}function Po(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),jo(t,r),t.changedCwd=!1;var n=process.cwd();Gn(r,"cwd")?(t.cwd=r.cwd,t.changedCwd=Ie.resolve(r.cwd)!==n):t.cwd=n,t.root=r.root||Ie.resolve(t.cwd,"/"),t.root=Ie.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 hr(e,r),t.options=t.minimatch.options}function Bo(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 u=Object.keys(a);e?r.push.apply(r,u):u.forEach(function(s){r[s]=!0})}}if(e||(r=Object.keys(r)),t.nosort||(r=r.sort(t.nocase?qn:Un)),t.mark){for(var n=0;n<r.length;n++)r[n]=t._mark(r[n]);t.nodir&&(r=r.filter(function(s){return!/\/$/.test(s)}))}t.ignore.length&&(r=r.filter(function(s){return!zn(t,s)})),t.found=r}function Yo(t,e){var r=dr(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 u=dr(t,i);t.statCache[u]=t.statCache[r],t.cache[u]=t.cache[r]}}return i}function dr(t,e){var r=e;return e.charAt(0)==="/"?r=Ie.join(t.root,e):$o(e)||e===""?r=e:t.changedCwd?r=Ie.resolve(t.cwd,e):r=Ie.resolve(e),r}function zn(t,e){return t.ignore.length?t.ignore.some(function(r){return r.matcher.match(e)||!!(r.gmatcher&&r.gmatcher.match(e))}):!1}function Go(t,e){return t.ignore.length?t.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(e))}):!1}});var Vn=L((el,Jn)=>{Jn.exports=Kn;Kn.GlobSync=H;var tt=require("fs"),Hn=Tt(),Ju=Hn.Minimatch,Vu=vr().Glob,Qu=require("util"),pr=require("path"),Wn=require("assert"),Rt=Mt(),_e=mr(),Xu=_e.alphasort,Zu=_e.alphasorti,qo=_e.setopts,gr=_e.ownProp,Uo=_e.childrenIgnored;function Kn(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 H(t,e).found}function H(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 H))return new H(t,e);if(qo(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()}H.prototype._finish=function(){if(Wn(this instanceof H),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=tt.realpathSync(i,t.realpathCache);n[a]=!0}catch(o){if(o.syscall==="stat")n[t._makeAbs(i)]=!0;else throw o}})}_e.finish(this)};H.prototype._process=function(t,e,r){Wn(this instanceof H);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=".":((Rt(i)||Rt(t.join("/")))&&(!i||!Rt(i))&&(i="/"+i),o=i);var u=this._makeAbs(o);if(!Uo(this,o)){var s=a[0]===Hn.GLOBSTAR;s?this._processGlobStar(i,o,u,a,e,r):this._processReaddir(i,o,u,a,e,r)}};H.prototype._processReaddir=function(t,e,r,n,i,a){var o=this._readdir(r,a);if(o){for(var u=n[0],s=!!this.minimatch.negate,l=u._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;s&&!t?h=!d.match(u):h=d.match(u),h&&p.push(d)}}var b=p.length;if(b!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<b;f++){var d=p[f];t&&(t.slice(-1)!=="/"?d=t+"/"+d:d=t+d),d.charAt(0)==="/"&&!this.nomount&&(d=pr.join(this.root,d)),this.matches[i][d]=!0}return}n.shift();for(var f=0;f<b;f++){var d=p[f],R;t?R=[t,d]:R=[d],this._process(R.concat(n),i,a)}}}};H.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)}};H.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r,n;try{r=tt.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};H.prototype._readdir=function(t,e){var r;if(e&&!gr(this.symlinks,t))return this._readdirInGlobStar(t);if(gr(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,tt.readdirSync(t))}catch(i){return this._readdirError(t,i),null}};H.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};H.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}};H.prototype._processGlobStar=function(t,e,r,n,i,a){var o=this._readdir(r,a);if(o){var u=n.slice(1),s=t?[t]:[],l=s.concat(u);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=s.concat(o[f],u);this._process(h,i,!0);var b=s.concat(o[f],n);this._process(b,i,!0)}}}};H.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(t&&Rt(t)&&!this.nomount){var n=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=pr.join(this.root,t):(t=pr.resolve(this.root,t),n&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this.matches[e][t]=!0}};H.prototype._stat=function(t){var e=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&gr(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=tt.lstatSync(e)}catch{return!1}if(a.isSymbolicLink())try{i=tt.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};H.prototype._mark=function(t){return _e.mark(this,t)};H.prototype._makeAbs=function(t){return _e.makeAbs(this,t)}});var yr=L((tl,Xn)=>{Xn.exports=Qn;function Qn(t,e){if(t&&e)return Qn(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(u){a[u]=o[u]}),a}}});var br=L((rl,Sr)=>{var Zn=yr();Sr.exports=Zn(kt);Sr.exports.strict=Zn(ei);kt.proto=kt(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return kt(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return ei(this)},configurable:!0})});function kt(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function ei(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 ri=L((nl,ti)=>{var zo=yr(),rt=Object.create(null),Ho=br();ti.exports=zo(Wo);function Wo(t,e){return rt[t]?(rt[t].push(e),null):(rt[t]=[e],Ko(t))}function Ko(t){return Ho(function e(){var r=rt[t],n=r.length,i=Jo(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 rt[t]}})}function Jo(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n]=t[n];return r}});var vr=L((ul,ii)=>{ii.exports=Ae;var nt=require("fs"),ni=Tt(),il=ni.Minimatch,Vo=Pn(),Qo=require("events").EventEmitter,_r=require("path"),wr=require("assert"),Lt=Mt(),Cr=Vn(),de=mr(),al=de.alphasort,ol=de.alphasorti,Xo=de.setopts,Dr=de.ownProp,Er=ri(),sl=require("util"),Zo=de.childrenIgnored,es=de.isIgnored,ts=br();function Ae(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 Cr(t,e)}return new I(t,e,r)}Ae.sync=Cr;var rs=Ae.GlobSync=Cr.GlobSync;Ae.glob=Ae;function ns(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}Ae.hasMagic=function(t,e){var r=ns({},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};Ae.Glob=I;Vo(I,Qo);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 rs(t,e)}if(!(this instanceof I))return new I(t,e,r);Xo(this,t,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof r=="function"&&(r=ts(r),this.on("error",r),this.on("end",function(u){r(null,u)}));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(wr(this instanceof I),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();de.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(u,s){u=i._makeAbs(u),nt.realpath(u,i.realpathCache,function(l,c){l?l.syscall==="stat"?o[u]=!0:i.emit("error",l):o[c]=!0,--a===0&&(i.matches[t]=o,e())})})};I.prototype._mark=function(t){return de.mark(this,t)};I.prototype._makeAbs=function(t){return de.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(wr(this instanceof I),wr(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),u;a===null?u=".":((Lt(a)||Lt(t.join("/")))&&(!a||!Lt(a))&&(a="/"+a),u=a);var s=this._makeAbs(u);if(Zo(this,u))return n();var l=o[0]===ni.GLOBSTAR;l?this._processGlobStar(a,u,s,o,e,r,n):this._processReaddir(a,u,s,o,e,r,n)}};I.prototype._processReaddir=function(t,e,r,n,i,a,o){var u=this;this._readdir(r,a,function(s,l){return u._processReaddir2(t,e,r,n,i,a,l,o)})};I.prototype._processReaddir2=function(t,e,r,n,i,a,o,u){if(!o)return u();for(var s=n[0],l=!!this.minimatch.negate,c=s._glob,p=this.dot||c.charAt(0)===".",f=[],d=0;d<o.length;d++){var h=o[d];if(h.charAt(0)!=="."||p){var b;l&&!t?b=!h.match(s):b=h.match(s),b&&f.push(h)}}var R=f.length;if(R===0)return u();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 u()}n.shift();for(var d=0;d<R;d++){var h=f[d],_;t&&(t!=="/"?h=t+"/"+h:h=t+h),this._process([h].concat(n),i,a,u)}u()};I.prototype._emitMatch=function(t,e){if(!this.aborted&&!this.matches[t][e]&&!es(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=Er(r,a);i&&nt.lstat(t,i);function a(o,u){if(o)return e();var s=u.isSymbolicLink();n.symlinks[t]=s,!s&&!u.isDirectory()?(n.cache[t]="FILE",e()):n._readdir(t,!1,e)}};I.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=Er("readdir\0"+t+"\0"+e,r),!!r)){if(e&&!Dr(this.symlinks,t))return this._readdirInGlobStar(t,r);if(Dr(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;nt.readdir(t,is(this,t,r))}};function is(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 u=this;this._readdir(r,a,function(s,l){u._processGlobStar2(t,e,r,n,i,a,l,o)})};I.prototype._processGlobStar2=function(t,e,r,n,i,a,o,u){if(!o)return u();var s=n.slice(1),l=t?[t]:[],c=l.concat(s);this._process(c,i,!1,u);var p=this.symlinks[r],f=o.length;if(p&&a)return u();for(var d=0;d<f;d++){var h=o[d];if(!(h.charAt(0)==="."&&!this.dot)){var b=l.concat(o[d],s);this._process(b,i,!0,u);var R=l.concat(o[d],n);this._process(R,i,!0,u)}}u()};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&&Lt(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&&Dr(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 u=o.isDirectory()?"DIR":"FILE";return n&&u==="FILE"?e():e(null,u,o)}var s=this,l=Er("stat\0"+r,c);l&&nt.lstat(r,l);function c(p,f){if(f&&f.isSymbolicLink())return nt.stat(r,function(d,h){d?s._stat2(t,r,null,f,e):s._stat2(t,r,d,h,e)});s._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 ci=L((ll,li)=>{li.exports=Mr;Mr.sync=ui;var j=require("assert"),ai=require("path"),Ft=require("fs"),$t=vr(),oi={nosort:!0,nocomment:!0,nonegate:!0,silent:!0},Ar=0,Or=process.platform==="win32";function si(t){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(function(r){t[r]=t[r]||Ft[r],r=r+"Sync",t[r]=t[r]||Ft[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"),si(e);var n=0,i=null,a=0;if(e.disableGlob||!$t.hasMagic(t))return u(null,[t]);Ft.lstat(t,function(s,l){if(!s)return u(null,[t]);$t(t,oi,u)});function o(s){i=i||s,--a===0&&r(i)}function u(s,l){if(s)return r(s);if(a=l.length,a===0)return r();l.forEach(function(c){Tr(c,e,function p(f){if(f){if(Or&&(f.code==="EBUSY"||f.code==="ENOTEMPTY"||f.code==="EPERM")&&n<e.maxBusyTries){n++;var d=n*100;return setTimeout(function(){Tr(c,e,p)},d)}if(f.code==="EMFILE"&&Ar<e.emfileWait)return setTimeout(function(){Tr(c,e,p)},Ar++);f.code==="ENOENT"&&(f=null)}Ar=0,o(f)})})}}function Tr(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 Nt(t,e,n,r);e.unlink(t,function(a){if(a){if(a.code==="ENOENT")return r(null);if(a.code==="EPERM")return Or?as(t,e,a,r):Nt(t,e,a,r);if(a.code==="EISDIR")return Nt(t,e,a,r)}return r(a)})})}function as(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()?Nt(t,e,r,n):e.unlink(t,n)})})}function os(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()?xt(t,e,r):e.unlinkSync(t)}function Nt(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")?ss(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function ss(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(u){Mr(ai.join(t,u),e,function(s){if(!o){if(s)return r(o=s);--a===0&&e.rmdir(t,r)}})})})}function ui(t,e){e=e||{},si(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||!$t.hasMagic(t))r=[t];else try{Ft.lstatSync(t),r=[t]}catch{r=$t.sync(t,oi)}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()?xt(t,e,null):e.unlinkSync(t)}catch(o){if(o.code==="ENOENT")return;if(o.code==="EPERM")return Or?os(t,e,o):xt(t,e,o);if(o.code!=="EISDIR")throw o;xt(t,e,o)}}}function xt(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")&&us(t,e)}}function us(t,e){j(t),j(e),e.readdirSync(t).forEach(function(r){ui(ai.join(t,r),e)}),e.rmdirSync(t,e)}});var mi=L((cl,di)=>{var it=require("path"),fi=require("fs"),hi=parseInt("0777",8);di.exports=Pe.mkdirp=Pe.mkdirP=Pe;function Pe(t,e,r,n){typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,a=e.fs||fi;i===void 0&&(i=hi),n||(n=null);var o=r||function(){};t=it.resolve(t),a.mkdir(t,i,function(u){if(!u)return n=n||t,o(null,n);switch(u.code){case"ENOENT":if(it.dirname(t)===t)return o(u);Pe(it.dirname(t),e,function(s,l){s?o(s,l):Pe(t,e,o,l)});break;default:a.stat(t,function(s,l){s||!l.isDirectory()?o(u,n):o(null,n)});break}})}Pe.sync=function t(e,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,a=r.fs||fi;i===void 0&&(i=hi),n||(n=null),e=it.resolve(e);try{a.mkdirSync(e,i),n=n||e}catch(u){switch(u.code){case"ENOENT":n=t(it.dirname(e),r,n),t(e,r,n);break;default:var o;try{o=a.statSync(e)}catch{throw u}if(!o.isDirectory())throw u;break}}return n}});var Si=L((fl,yi)=>{var Be=require("fs"),ls=vn().ncp,cs=require("path"),pi=ci(),fs=mi();yi.exports=hs;function hs(t,e,r,n){typeof r=="function"&&(n=r,r={});var i=!!r.mkdirp,a=r.clobber!==!1,o=r.limit||16;i?u():s();function u(){fs(cs.dirname(e),function(l){if(l)return n(l);s()})}function s(){a?Be.rename(t,e,function(l){if(!l)return n();if(l.code!=="EXDEV")return n(l);gi(t,e,a,o,n)}):Be.link(t,e,function(l){if(l){if(l.code==="EXDEV"){gi(t,e,a,o,n);return}if(l.code==="EISDIR"||l.code==="EPERM"){vi(t,e,a,o,n);return}n(l);return}Be.unlink(t,n)})}}function gi(t,e,r,n,i){var a=r?"w":"wx",o=Be.createReadStream(t),u=Be.createWriteStream(e,{flags:a});o.on("error",function(l){o.destroy(),u.destroy(),u.removeListener("close",s),l.code==="EISDIR"||l.code==="EPERM"?vi(t,e,r,n,i):i(l)}),u.on("error",function(l){o.destroy(),u.destroy(),u.removeListener("close",s),i(l)}),u.once("close",s),o.pipe(u);function s(){Be.unlink(t,i)}}function vi(t,e,r,n,i){var a={stopOnErr:!0,clobber:!1,limit:n};r?pi(e,{disableGlob:!0},function(u){if(u)return i(u);o()}):o();function o(){ls(t,e,a,function(u){if(u)return i(u[0]);pi(t,{disableGlob:!0},i)})}}});var _i=L(Rr=>{var bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Rr.encode=function(t){if(0<=t&&t<bi.length)return bi[t];throw new TypeError("Must be between 0 and 63: "+t)};Rr.decode=function(t){var e=65,r=90,n=97,i=122,a=48,o=57,u=43,s=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==u?62:t==s?63:-1}});var Nr=L(Lr=>{var wi=_i(),kr=5,Di=1<<kr,Ci=Di-1,Ei=Di;function ds(t){return t<0?(-t<<1)+1:(t<<1)+0}function ms(t){var e=(t&1)===1,r=t>>1;return e?-r:r}Lr.encode=function(e){var r="",n,i=ds(e);do n=i&Ci,i>>>=kr,i>0&&(n|=Ei),r+=wi.encode(n);while(i>0);return r};Lr.decode=function(e,r,n){var i=e.length,a=0,o=0,u,s;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(s=wi.decode(e.charCodeAt(r++)),s===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));u=!!(s&Ei),s&=Ci,a=a+(s<<o),o+=kr}while(u);n.value=ms(a),n.rest=r}});var qe=L(X=>{function ps(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=ps;var Ai=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,gs=/^data:.+\,.+$/;function at(t){var e=t.match(Ai);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}X.urlPars