@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) • 169 kB
JavaScript
var eu=Object.create;var Wt=Object.defineProperty;var tu=Object.getOwnPropertyDescriptor;var ru=Object.getOwnPropertyNames;var nu=Object.getPrototypeOf,iu=Object.prototype.hasOwnProperty;var k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),au=(e,t)=>{for(var r in t)Wt(e,r,{get:t[r],enumerable:!0})},ii=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ru(t))!iu.call(e,i)&&i!==r&&Wt(e,i,{get:()=>t[i],enumerable:!(n=tu(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?eu(nu(e)):{},ii(t||!e||!e.__esModule?Wt(r,"default",{value:e,enumerable:!0}):r,e)),su=e=>ii(Wt({},"__esModule",{value:!0}),e);var Tr=k((bd,Cr)=>{"use strict";var si=require("url"),ai=si.parse,zt=si.Url;Cr.exports=oi;Cr.exports.original=ou;function oi(e){var t=e.url;if(t!==void 0){var r=e._parsedUrl;return li(t,r)?r:(r=ui(t),r._raw=t,e._parsedUrl=r)}}function ou(e){var t=e.originalUrl;if(typeof t!="string")return oi(e);var r=e._parsedOriginalUrl;return li(t,r)?r:(r=ui(t),r._raw=t,e._parsedOriginalUrl=r)}function ui(e){if(typeof e!="string"||e.charCodeAt(0)!==47)return ai(e);for(var t=e,r=null,n=null,i=1;i<e.length;i++)switch(e.charCodeAt(i)){case 63:n===null&&(t=e.substring(0,i),r=e.substring(i+1),n=e.substring(i));break;case 9:case 10:case 12:case 13:case 32:case 35:case 160:case 65279:return ai(e)}var a=zt!==void 0?new zt:{};return a.path=e,a.href=e,a.pathname=t,n!==null&&(a.query=r,a.search=n),a}function li(e,t){return typeof t=="object"&&t!==null&&(zt===void 0||t instanceof zt)&&t._raw===e}});var vt=k((xr,Fr)=>{(function(e,t){typeof xr=="object"&&typeof Fr<"u"?Fr.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(xr,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",a="minute",s="hour",o="day",u="week",l="month",f="quarter",g="year",d="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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(D){var A=["th","st","nd","rd"],c=D%100;return"["+D+(A[(c-20)%10]||A[c]||A[0])+"]"}},w=function(D,A,c){var _=String(D);return!_||_.length>=A?D:""+Array(A+1-_.length).join(c)+D},p={s:w,z:function(D){var A=-D.utcOffset(),c=Math.abs(A),_=Math.floor(c/60),y=c%60;return(A<=0?"+":"-")+w(_,2,"0")+":"+w(y,2,"0")},m:function D(A,c){if(A.date()<c.date())return-D(c,A);var _=12*(c.year()-A.year())+(c.month()-A.month()),y=A.clone().add(_,l),v=c-y<0,b=A.clone().add(_+(v?-1:1),l);return+(-(_+(c-y)/(v?y-b:b-y))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:l,y:g,w:u,d:o,D:d,h:s,m:a,s:i,ms:n,Q:f}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},L="en",C={};C[L]=R;var M="$isDayjsObject",E=function(D){return D instanceof V||!(!D||!D[M])},$=function D(A,c,_){var y;if(!A)return L;if(typeof A=="string"){var v=A.toLowerCase();C[v]&&(y=v),c&&(C[v]=c,y=v);var b=A.split("-");if(!y&&b.length>1)return D(b[0])}else{var O=A.name;C[O]=A,y=O}return!_&&y&&(L=y),y||!_&&L},N=function(D,A){if(E(D))return D.clone();var c=typeof A=="object"?A:{};return c.date=D,c.args=arguments,new V(c)},T=p;T.l=$,T.i=E,T.w=function(D,A){return N(D,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var V=function(){function D(c){this.$L=$(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[M]=!0}var A=D.prototype;return A.parse=function(c){this.$d=function(_){var y=_.date,v=_.utc;if(y===null)return new Date(NaN);if(T.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var b=y.match(m);if(b){var O=b[2]-1||0,I=(b[7]||"0").substring(0,3);return v?new Date(Date.UTC(b[1],O,b[3]||1,b[4]||0,b[5]||0,b[6]||0,I)):new Date(b[1],O,b[3]||1,b[4]||0,b[5]||0,b[6]||0,I)}}return new Date(y)}(c),this.init()},A.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},A.$utils=function(){return T},A.isValid=function(){return this.$d.toString()!==h},A.isSame=function(c,_){var y=N(c);return this.startOf(_)<=y&&y<=this.endOf(_)},A.isAfter=function(c,_){return N(c)<this.startOf(_)},A.isBefore=function(c,_){return this.endOf(_)<N(c)},A.$g=function(c,_,y){return T.u(c)?this[_]:this.set(y,c)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(c,_){var y=this,v=!!T.u(_)||_,b=T.p(c),O=function(he,J){var ce=T.w(y.$u?Date.UTC(y.$y,J,he):new Date(y.$y,J,he),y);return v?ce:ce.endOf(o)},I=function(he,J){return T.w(y.toDate()[he].apply(y.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(J)),y)},P=this.$W,B=this.$M,ee=this.$D,le="set"+(this.$u?"UTC":"");switch(b){case g:return v?O(1,0):O(31,11);case l:return v?O(1,B):O(0,B+1);case u:var _e=this.$locale().weekStart||0,Ye=(P<_e?P+7:P)-_e;return O(v?ee-Ye:ee+(6-Ye),B);case o:case d:return I(le+"Hours",0);case s:return I(le+"Minutes",1);case a:return I(le+"Seconds",2);case i:return I(le+"Milliseconds",3);default:return this.clone()}},A.endOf=function(c){return this.startOf(c,!1)},A.$set=function(c,_){var y,v=T.p(c),b="set"+(this.$u?"UTC":""),O=(y={},y[o]=b+"Date",y[d]=b+"Date",y[l]=b+"Month",y[g]=b+"FullYear",y[s]=b+"Hours",y[a]=b+"Minutes",y[i]=b+"Seconds",y[n]=b+"Milliseconds",y)[v],I=v===o?this.$D+(_-this.$W):_;if(v===l||v===g){var P=this.clone().set(d,1);P.$d[O](I),P.init(),this.$d=P.set(d,Math.min(this.$D,P.daysInMonth())).$d}else O&&this.$d[O](I);return this.init(),this},A.set=function(c,_){return this.clone().$set(c,_)},A.get=function(c){return this[T.p(c)]()},A.add=function(c,_){var y,v=this;c=Number(c);var b=T.p(_),O=function(B){var ee=N(v);return T.w(ee.date(ee.date()+Math.round(B*c)),v)};if(b===l)return this.set(l,this.$M+c);if(b===g)return this.set(g,this.$y+c);if(b===o)return O(1);if(b===u)return O(7);var I=(y={},y[a]=t,y[s]=r,y[i]=e,y)[b]||1,P=this.$d.getTime()+c*I;return T.w(P,this)},A.subtract=function(c,_){return this.add(-1*c,_)},A.format=function(c){var _=this,y=this.$locale();if(!this.isValid())return y.invalidDate||h;var v=c||"YYYY-MM-DDTHH:mm:ssZ",b=T.z(this),O=this.$H,I=this.$m,P=this.$M,B=y.weekdays,ee=y.months,le=y.meridiem,_e=function(J,ce,be,Le){return J&&(J[ce]||J(_,v))||be[ce].slice(0,Le)},Ye=function(J){return T.s(O%12||12,J,"0")},he=le||function(J,ce,be){var Le=J<12?"AM":"PM";return be?Le.toLowerCase():Le};return v.replace(S,function(J,ce){return ce||function(be){switch(be){case"YY":return String(_.$y).slice(-2);case"YYYY":return T.s(_.$y,4,"0");case"M":return P+1;case"MM":return T.s(P+1,2,"0");case"MMM":return _e(y.monthsShort,P,ee,3);case"MMMM":return _e(ee,P);case"D":return _.$D;case"DD":return T.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return _e(y.weekdaysMin,_.$W,B,2);case"ddd":return _e(y.weekdaysShort,_.$W,B,3);case"dddd":return B[_.$W];case"H":return String(O);case"HH":return T.s(O,2,"0");case"h":return Ye(1);case"hh":return Ye(2);case"a":return he(O,I,!0);case"A":return he(O,I,!1);case"m":return String(I);case"mm":return T.s(I,2,"0");case"s":return String(_.$s);case"ss":return T.s(_.$s,2,"0");case"SSS":return T.s(_.$ms,3,"0");case"Z":return b}return null}(J)||b.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(c,_,y){var v,b=this,O=T.p(_),I=N(c),P=(I.utcOffset()-this.utcOffset())*t,B=this-I,ee=function(){return T.m(b,I)};switch(O){case g:v=ee()/12;break;case l:v=ee();break;case f:v=ee()/3;break;case u:v=(B-P)/6048e5;break;case o:v=(B-P)/864e5;break;case s:v=B/r;break;case a:v=B/t;break;case i:v=B/e;break;default:v=B}return y?v:T.a(v)},A.daysInMonth=function(){return this.endOf(l).$D},A.$locale=function(){return C[this.$L]},A.locale=function(c,_){if(!c)return this.$L;var y=this.clone(),v=$(c,_,!0);return v&&(y.$L=v),y},A.clone=function(){return T.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},D}(),x=V.prototype;return N.prototype=x,[["$ms",n],["$s",i],["$m",a],["$H",s],["$W",o],["$M",l],["$y",g],["$D",d]].forEach(function(D){x[D[1]]=function(A){return this.$g(A,D[0],D[1])}}),N.extend=function(D,A){return D.$i||(D(A,V,N),D.$i=!0),N},N.locale=$,N.isDayjs=E,N.unix=function(D){return N(1e3*D)},N.en=C[L],N.Ls=C,N.p={},N})});var yt=k((Nr,kr)=>{(function(e,t){typeof Nr=="object"&&typeof kr<"u"?kr.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(Nr,function(){"use strict";var e={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"},t=/(\[[^[]*\])|([-_:/.,()\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]+/,s={},o=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(S){this[m]=+S}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var R=S.match(/([+-]|\d\d)/g),w=60*R[1]+(+R[2]||0);return w===0?0:R[0]==="+"?-w:w}(m)}],f=function(m){var S=s[m];return S&&(S.indexOf?S:S.s.concat(S.f))},g=function(m,S){var R,w=s.meridiem;if(w){for(var p=1;p<=24;p+=1)if(m.indexOf(w(p,0,S))>-1){R=p>12;break}}else R=m===(S?"pm":"PM");return R},d={A:[a,function(m){this.afternoon=g(m,!1)}],a:[a,function(m){this.afternoon=g(m,!0)}],Q:[r,function(m){this.month=3*(m-1)+1}],S:[r,function(m){this.milliseconds=100*+m}],SS:[n,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],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(m){var S=s.ordinal,R=m.match(/\d+/);if(this.day=R[0],S)for(var w=1;w<=31;w+=1)S(w).replace(/\[|\]/g,"")===m&&(this.day=w)}],w:[i,u("week")],ww:[n,u("week")],M:[i,u("month")],MM:[n,u("month")],MMM:[a,function(m){var S=f("months"),R=(f("monthsShort")||S.map(function(w){return w.slice(0,3)})).indexOf(m)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[a,function(m){var S=f("months").indexOf(m)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(m){this.year=o(m)}],YYYY:[/\d{4}/,u("year")],Z:l,ZZ:l};function h(m){var S,R;S=m,R=s&&s.formats;for(var w=(m=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,T,V){var x=V&&V.toUpperCase();return T||R[V]||e[V]||R[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,A,c){return A||c.slice(1)})})).match(t),p=w.length,L=0;L<p;L+=1){var C=w[L],M=d[C],E=M&&M[0],$=M&&M[1];w[L]=$?{regex:E,parser:$}:C.replace(/^\[|\]$/g,"")}return function(N){for(var T={},V=0,x=0;V<p;V+=1){var D=w[V];if(typeof D=="string")x+=D.length;else{var A=D.regex,c=D.parser,_=N.slice(x),y=A.exec(_)[0];c.call(T,y),N=N.replace(y,"")}}return function(v){var b=v.afternoon;if(b!==void 0){var O=v.hours;b?O<12&&(v.hours+=12):O===12&&(v.hours=0),delete v.afternoon}}(T),T}}return function(m,S,R){R.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(o=m.parseTwoDigitYear);var w=S.prototype,p=w.parse;w.parse=function(L){var C=L.date,M=L.utc,E=L.args;this.$u=M;var $=E[1];if(typeof $=="string"){var N=E[2]===!0,T=E[3]===!0,V=N||T,x=E[2];T&&(x=E[2]),s=this.$locale(),!N&&x&&(s=R.Ls[x]),this.$d=function(_,y,v,b){try{if(["x","X"].indexOf(y)>-1)return new Date((y==="X"?1e3:1)*_);var O=h(y)(_),I=O.year,P=O.month,B=O.day,ee=O.hours,le=O.minutes,_e=O.seconds,Ye=O.milliseconds,he=O.zone,J=O.week,ce=new Date,be=B||(I||P?1:ce.getDate()),Le=I||ce.getFullYear(),Ht=0;I&&!P||(Ht=P>0?P-1:ce.getMonth());var Gt,Ar=ee||0,Or=le||0,Rr=_e||0,Lr=Ye||0;return he?new Date(Date.UTC(Le,Ht,be,Ar,Or,Rr,Lr+60*he.offset*1e3)):v?new Date(Date.UTC(Le,Ht,be,Ar,Or,Rr,Lr)):(Gt=new Date(Le,Ht,be,Ar,Or,Rr,Lr),J&&(Gt=b(Gt).week(J).toDate()),Gt)}catch{return new Date("")}}(C,$,M,R),this.init(),x&&x!==!0&&(this.$L=this.locale(x).$L),V&&C!=this.format($)&&(this.$d=new Date("")),s={}}else if($ instanceof Array)for(var D=$.length,A=1;A<=D;A+=1){E[1]=$[A-1];var c=R.apply(this,E);if(c.isValid()){this.$d=c.$d,this.$L=c.$L,this.init();break}A===D&&(this.$d=new Date(""))}else p.call(this,L)}}})});var vi=k((Ir,$r)=>{(function(e,t){typeof Ir=="object"&&typeof $r<"u"?$r.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isBetween=t()})(Ir,function(){"use strict";return function(e,t,r){t.prototype.isBetween=function(n,i,a,s){var o=r(n),u=r(i),l=(s=s||"()")[0]==="(",f=s[1]===")";return(l?this.isAfter(o,a):!this.isBefore(o,a))&&(f?this.isBefore(u,a):!this.isAfter(u,a))||(l?this.isBefore(o,a):!this.isAfter(o,a))&&(f?this.isAfter(u,a):!this.isBefore(u,a))}}})});var ji=k((_h,Gr)=>{var sl=Object.prototype.hasOwnProperty;function Pi(e){return"[Throws: "+(e?e.message:"?")+"]"}function ol(e,t){if(sl.call(e,t))try{return e[t]}catch(r){return Pi(r)}return e[t]}function Yi(e){var t=[];function r(n){if(n===null||typeof n!="object")return n;if(t.indexOf(n)!==-1)return"[Circular]";if(t.push(n),typeof n.toJSON=="function")try{var i=r(n.toJSON());return t.pop(),i}catch(o){return Pi(o)}if(Array.isArray(n)){var a=n.map(r);return t.pop(),a}var s=Object.keys(n).reduce(function(o,u){return o[u]=r(ol(n,u)),o},{});return t.pop(),s}return r(e)}Gr.exports=function(e,t,r){return JSON.stringify(Yi(e),t,r)};Gr.exports.ensureProperties=Yi});var Ui=k((bh,Vi)=>{var re=require("fs"),bt=require("path");Vi.exports=Kt;Kt.ncp=Kt;function Kt(e,t,r,n){var i=n;n||(i=r,r={});var a=process.cwd(),s=bt.resolve(a,e),o=bt.resolve(a,t),u=r.filter,l=r.rename,f=r.transform,g=r.clobber!==!1,d=r.modified,h=r.dereference,m=null,S=0,R=0,w=0,p=r.limit||Kt.limit||16;p=p<1?1:p>512?512:p,L(s);function L(v){if(S++,u){if(u instanceof RegExp){if(!u.test(v))return y(!0)}else if(typeof u=="function"&&!u(v))return y(!0)}return C(v)}function C(v){var b=h?re.stat:re.lstat;if(w>=p)return setImmediate(function(){C(v)});w++,b(v,function(O,I){var P={};if(O)return _(O);if(P.name=v,P.mode=I.mode,P.mtime=I.mtime,P.atime=I.atime,I.isDirectory())return N(P);if(I.isFile())return M(P);if(I.isSymbolicLink())return x(v)})}function M(v){var b=v.name.replace(s,o);l&&(b=l(b)),c(b,function(O){if(O)return E(v,b);if(g&&$(b,function(){E(v,b)}),d){var I=h?re.stat:re.lstat;I(b,function(P,B){if(v.mtime.getTime()>B.mtime.getTime())E(v,b);else return y()})}else return y()})}function E(v,b){var O=re.createReadStream(v.name),I=re.createWriteStream(b,{mode:v.mode});O.on("error",_),I.on("error",_),f?f(O,I,v):I.on("open",function(){O.pipe(I)}),I.once("finish",function(){d&&re.utimesSync(b,v.atime,v.mtime),y()})}function $(v,b){re.unlink(v,function(O){return O?_(O):b()})}function N(v){var b=v.name.replace(s,o);c(b,function(O){if(O)return T(v,b);V(v.name)})}function T(v,b){re.mkdir(b,v.mode,function(O){if(O)return _(O);V(v.name)})}function V(v){re.readdir(v,function(b,O){return b?_(b):(O.forEach(function(I){L(bt.join(v,I))}),y())})}function x(v){var b=v.replace(s,o);re.readlink(v,function(O,I){if(O)return _(O);D(I,b)})}function D(v,b){h&&(v=bt.resolve(a,v)),c(b,function(O){if(O)return A(v,b);re.readlink(b,function(I,P){return I?_(I):(h&&(P=bt.resolve(a,P)),P===v?y():$(b,function(){A(v,b)}))})})}function A(v,b){re.symlink(v,b,function(O){return O?_(O):y()})}function c(v,b){re.lstat(v,function(O){return O&&O.code==="ENOENT"?b(!0):b(!1)})}function _(v){return r.stopOnError?i(v):(!m&&r.errs?m=re.createWriteStream(r.errs):m||(m=[]),typeof m.write>"u"?m.push(v):m.write(v.stack+`
`),y())}function y(v){if(v||w--,R++,S===R&&w===0&&i!==void 0)return i(m||null)}}});var Bi=k((Dh,qi)=>{qi.exports=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);ul(i)?r.push.apply(r,i):r.push(i)}return r};var ul=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}});var Ji=k((wh,zi)=>{"use strict";zi.exports=Gi;function Gi(e,t,r){e instanceof RegExp&&(e=Hi(e,r)),t instanceof RegExp&&(t=Hi(t,r));var n=Wi(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function Hi(e,t){var r=t.match(e);return r?r[0]:null}Gi.range=Wi;function Wi(e,t,r){var n,i,a,s,o,u=r.indexOf(e),l=r.indexOf(t,u+1),f=u;if(u>=0&&l>0){if(e===t)return[u,l];for(n=[],a=r.length;f>=0&&!o;)f==u?(n.push(f),u=r.indexOf(e,f+1)):n.length==1?o=[n.pop(),l]:(i=n.pop(),i<a&&(a=i,s=l),l=r.indexOf(t,f+1)),f=u<l&&u>=0?u:l;n.length&&(o=[a,s])}return o}});var na=k((Eh,ra)=>{var ll=Bi(),Xi=Ji();ra.exports=dl;var Qi="\0SLASH"+Math.random()+"\0",Ki="\0OPEN"+Math.random()+"\0",zr="\0CLOSE"+Math.random()+"\0",Zi="\0COMMA"+Math.random()+"\0",ea="\0PERIOD"+Math.random()+"\0";function Wr(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function cl(e){return e.split("\\\\").join(Qi).split("\\{").join(Ki).split("\\}").join(zr).split("\\,").join(Zi).split("\\.").join(ea)}function fl(e){return e.split(Qi).join("\\").split(Ki).join("{").split(zr).join("}").split(Zi).join(",").split(ea).join(".")}function ta(e){if(!e)return[""];var t=[],r=Xi("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,a=r.post,s=n.split(",");s[s.length-1]+="{"+i+"}";var o=ta(a);return a.length&&(s[s.length-1]+=o.shift(),s.push.apply(s,o)),t.push.apply(t,s),t}function dl(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Qe(cl(e),!0).map(fl)):[]}function hl(e){return"{"+e+"}"}function ml(e){return/^-?0\d/.test(e)}function pl(e,t){return e<=t}function gl(e,t){return e>=t}function Qe(e,t){var r=[],n=Xi("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=i||a,o=n.body.indexOf(",")>=0;if(!s&&!o)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+zr+n.post,Qe(e)):[e];var u;if(s)u=n.body.split(/\.\./);else if(u=ta(n.body),u.length===1&&(u=Qe(u[0],!1).map(hl),u.length===1)){var f=n.post.length?Qe(n.post,!1):[""];return f.map(function(x){return n.pre+u[0]+x})}var l=n.pre,f=n.post.length?Qe(n.post,!1):[""],g;if(s){var d=Wr(u[0]),h=Wr(u[1]),m=Math.max(u[0].length,u[1].length),S=u.length==3?Math.abs(Wr(u[2])):1,R=pl,w=h<d;w&&(S*=-1,R=gl);var p=u.some(ml);g=[];for(var L=d;R(L,h);L+=S){var C;if(a)C=String.fromCharCode(L),C==="\\"&&(C="");else if(C=String(L),p){var M=m-C.length;if(M>0){var E=new Array(M+1).join("0");L<0?C="-"+E+C.slice(1):C=E+C}}g.push(C)}}else g=ll(u,function(V){return Qe(V,!1)});for(var $=0;$<g.length;$++)for(var N=0;N<f.length;N++){var T=l+g[$]+f[N];(!t||s||T)&&r.push(T)}return r}});var tr=k((Ah,ua)=>{ua.exports=se;se.Minimatch=X;var Dt=function(){try{return require("path")}catch{}}()||{sep:"/"};se.sep=Dt.sep;var Qr=se.GLOBSTAR=X.GLOBSTAR={},vl=na(),ia={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Jr="[^/]",Xr=Jr+"*?",yl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Sl="(?:(?!(?:\\/|^)\\.).)*?",aa=_l("().*{}+?[]^$\\!");function _l(e){return e.split("").reduce(function(t,r){return t[r]=!0,t},{})}var sa=/\/+/;se.filter=bl;function bl(e,t){return t=t||{},function(r,n,i){return se(r,e,t)}}function Te(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(n){r[n]=e[n]}),Object.keys(t).forEach(function(n){r[n]=t[n]}),r}se.defaults=function(e){if(!e||typeof e!="object"||!Object.keys(e).length)return se;var t=se,r=function(i,a,s){return t(i,a,Te(e,s))};return r.Minimatch=function(i,a){return new t.Minimatch(i,Te(e,a))},r.Minimatch.defaults=function(i){return t.defaults(Te(e,i)).Minimatch},r.filter=function(i,a){return t.filter(i,Te(e,a))},r.defaults=function(i){return t.defaults(Te(e,i))},r.makeRe=function(i,a){return t.makeRe(i,Te(e,a))},r.braceExpand=function(i,a){return t.braceExpand(i,Te(e,a))},r.match=function(n,i,a){return t.match(n,i,Te(e,a))},r};X.defaults=function(e){return se.defaults(e).Minimatch};function se(e,t,r){return er(t),r||(r={}),!r.nocomment&&t.charAt(0)==="#"?!1:new X(t,r).match(e)}function X(e,t){if(!(this instanceof X))return new X(e,t);er(e),t||(t={}),e=e.trim(),!t.allowWindowsEscape&&Dt.sep!=="/"&&(e=e.split(Dt.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}X.prototype.debug=function(){};X.prototype.make=Dl;function Dl(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(sa)}),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}X.prototype.parseNegate=wl;function wl(){var e=this.pattern,t=!1,r=this.options,n=0;if(!r.nonegate){for(var i=0,a=e.length;i<a&&e.charAt(i)==="!";i++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}}se.braceExpand=function(e,t){return oa(e,t)};X.prototype.braceExpand=oa;function oa(e,t){return t||(this instanceof X?t=this.options:t={}),e=typeof e>"u"?this.pattern:e,er(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:vl(e)}var El=1024*64,er=function(e){if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>El)throw new TypeError("pattern is too long")};X.prototype.parse=Al;var Zt={};function Al(e,t){er(e);var r=this.options;if(e==="**")if(r.noglobstar)e="*";else return Qr;if(e==="")return"";var n="",i=!!r.nocase,a=!1,s=[],o=[],u,l=!1,f=-1,g=-1,d=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",h=this;function m(){if(u){switch(u){case"*":n+=Xr,i=!0;break;case"?":n+=Jr,i=!0;break;default:n+="\\"+u;break}h.debug("clearStateChar %j %j",u,n),u=!1}}for(var S=0,R=e.length,w;S<R&&(w=e.charAt(S));S++){if(this.debug("%s %s %s %j",e,S,n,w),a&&aa[w]){n+="\\"+w,a=!1;continue}switch(w){case"/":return!1;case"\\":m(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,S,n,w),l){this.debug(" in class"),w==="!"&&S===g+1&&(w="^"),n+=w;continue}h.debug("call clearStateChar %j",u),m(),u=w,r.noext&&m();continue;case"(":if(l){n+="(";continue}if(!u){n+="\\(";continue}s.push({type:u,start:S-1,reStart:n.length,open:ia[u].open,close:ia[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(l||!s.length){n+="\\)";continue}m(),i=!0;var p=s.pop();n+=p.close,p.type==="!"&&o.push(p),p.reEnd=n.length;continue;case"|":if(l||!s.length||a){n+="\\|",a=!1;continue}m(),n+="|";continue;case"[":if(m(),l){n+="\\"+w;continue}l=!0,g=S,f=n.length,n+=w;continue;case"]":if(S===g+1||!l){n+="\\"+w,a=!1;continue}var L=e.substring(g+1,S);try{RegExp("["+L+"]")}catch{var C=this.parse(L,Zt);n=n.substr(0,f)+"\\["+C[0]+"\\]",i=i||C[1],l=!1;continue}i=!0,l=!1,n+=w;continue;default:m(),a?a=!1:aa[w]&&!(w==="^"&&l)&&(n+="\\"),n+=w}}for(l&&(L=e.substr(g+1),C=this.parse(L,Zt),n=n.substr(0,f)+"\\["+C[0],i=i||C[1]),p=s.pop();p;p=s.pop()){var M=n.slice(p.reStart+p.open.length);this.debug("setting tail",n,p),M=M.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(I,P,B){return B||(B="\\"),P+P+B+"|"}),this.debug(`tail=%j
%s`,M,M,p,n);var E=p.type==="*"?Xr:p.type==="?"?Jr:"\\"+p.type;i=!0,n=n.slice(0,p.reStart)+E+"\\("+M}m(),a&&(n+="\\\\");var $=!1;switch(n.charAt(0)){case"[":case".":case"(":$=!0}for(var N=o.length-1;N>-1;N--){var T=o[N],V=n.slice(0,T.reStart),x=n.slice(T.reStart,T.reEnd-8),D=n.slice(T.reEnd-8,T.reEnd),A=n.slice(T.reEnd);D+=A;var c=V.split("(").length-1,_=A;for(S=0;S<c;S++)_=_.replace(/\)[+*?]?/,"");A=_;var y="";A===""&&t!==Zt&&(y="$");var v=V+x+A+y+D;n=v}if(n!==""&&i&&(n="(?=.)"+n),$&&(n=d+n),t===Zt)return[n,i];if(!i)return Rl(e);var b=r.nocase?"i":"";try{var O=new RegExp("^"+n+"$",b)}catch{return new RegExp("$.")}return O._glob=e,O._src=n,O}se.makeRe=function(e,t){return new X(e,t||{}).makeRe()};X.prototype.makeRe=Ol;function Ol(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?Xr:t.dot?yl:Sl,n=t.nocase?"i":"",i=e.map(function(a){return a.map(function(s){return s===Qr?r:typeof s=="string"?Ll(s):s._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}se.match=function(e,t,r){r=r||{};var n=new X(t,r);return e=e.filter(function(i){return n.match(i)}),n.options.nonull&&!e.length&&e.push(t),e};X.prototype.match=function(t,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;var n=this.options;Dt.sep!=="/"&&(t=t.split(Dt.sep).join("/")),t=t.split(sa),this.debug(this.pattern,"split",t);var i=this.set;this.debug(this.pattern,"set",i);var a,s;for(s=t.length-1;s>=0&&(a=t[s],!a);s--);for(s=0;s<i.length;s++){var o=i[s],u=t;n.matchBase&&o.length===1&&(u=[a]);var l=this.matchOne(u,o,r);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};X.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,s=e.length,o=t.length;i<s&&a<o;i++,a++){this.debug("matchOne loop");var u=t[a],l=e[i];if(this.debug(t,u,l),u===!1)return!1;if(u===Qr){this.debug("GLOBSTAR",[t,u,l]);var f=i,g=a+1;if(g===o){for(this.debug("** at the end");i<s;i++)if(e[i]==="."||e[i]===".."||!n.dot&&e[i].charAt(0)===".")return!1;return!0}for(;f<s;){var d=e[f];if(this.debug(`
globstar while`,e,f,t,g,d),this.matchOne(e.slice(f),t.slice(g),r))return this.debug("globstar found match!",f,s,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,f,t,g);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(r&&(this.debug(`
>>> no match, partial?`,e,f,t,g),f===s))}var h;if(typeof u=="string"?(h=l===u,this.debug("string match",u,l,h)):(h=l.match(u),this.debug("pattern match",u,l,h)),!h)return!1}if(i===s&&a===o)return!0;if(i===s)return r;if(a===o)return i===s-1&&e[i]==="";throw new Error("wtf?")};function Rl(e){return e.replace(/\\(.)/g,"$1")}function Ll(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var la=k((Oh,Kr)=>{typeof Object.create=="function"?Kr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Kr.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var ca=k((Rh,en)=>{try{if(Zr=require("util"),typeof Zr.inherits!="function")throw"";en.exports=Zr.inherits}catch{en.exports=la()}var Zr});var nr=k((Lh,rr)=>{"use strict";function fa(e){return e.charAt(0)==="/"}function da(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=t.exec(e),n=r[1]||"",i=!!(n&&n.charAt(1)!==":");return!!(r[2]||i)}rr.exports=process.platform==="win32"?da:fa;rr.exports.posix=fa;rr.exports.win32=da});var nn=k(pe=>{pe.alphasort=pa;pe.alphasorti=ma;pe.setopts=Fl;pe.ownProp=ha;pe.makeAbs=rn;pe.finish=Nl;pe.mark=kl;pe.isIgnored=ga;pe.childrenIgnored=Il;function ha(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ke=require("path"),Cl=tr(),Tl=nr(),tn=Cl.Minimatch;function ma(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function pa(e,t){return e.localeCompare(t)}function Ml(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(xl))}function xl(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new tn(r,{dot:!0})}return{matcher:new tn(e,{dot:!0}),gmatcher:t}}function Fl(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),Ml(e,r),e.changedCwd=!1;var n=process.cwd();ha(r,"cwd")?(e.cwd=r.cwd,e.changedCwd=Ke.resolve(r.cwd)!==n):e.cwd=n,e.root=r.root||Ke.resolve(e.cwd,"/"),e.root=Ke.resolve(e.root),process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new tn(t,r),e.options=e.minimatch.options}function Nl(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(!a||Object.keys(a).length===0){if(e.nonull){var s=e.minimatch.globSet[n];t?r.push(s):r[s]=!0}}else{var o=Object.keys(a);t?r.push.apply(r,o):o.forEach(function(u){r[u]=!0})}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(e.nocase?ma:pa)),e.mark){for(var n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter(function(u){return!/\/$/.test(u)}))}e.ignore.length&&(r=r.filter(function(u){return!ga(e,u)})),e.found=r}function kl(e,t){var r=rn(e,t),n=e.cache[r],i=t;if(n){var a=n==="DIR"||Array.isArray(n),s=t.slice(-1)==="/";if(a&&!s?i+="/":!a&&s&&(i=i.slice(0,-1)),i!==t){var o=rn(e,i);e.statCache[o]=e.statCache[r],e.cache[o]=e.cache[r]}}return i}function rn(e,t){var r=t;return t.charAt(0)==="/"?r=Ke.join(e.root,t):Tl(t)||t===""?r=t:e.changedCwd?r=Ke.resolve(e.cwd,t):r=Ke.resolve(t),r}function ga(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function Il(e,t){return e.ignore.length?e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var ba=k((kh,_a)=>{_a.exports=Sa;Sa.GlobSync=z;var wt=require("fs"),va=tr(),Th=va.Minimatch,Mh=on().Glob,xh=require("util"),an=require("path"),ya=require("assert"),ir=nr(),Me=nn(),Fh=Me.alphasort,Nh=Me.alphasorti,$l=Me.setopts,sn=Me.ownProp,Pl=Me.childrenIgnored;function Sa(e,t){if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);return new z(e,t).found}function z(e,t){if(!e)throw new Error("must provide pattern");if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof z))return new z(e,t);if($l(this,e,t),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()}z.prototype._finish=function(){if(ya(this instanceof z),this.realpath){var e=this;this.matches.forEach(function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i);var a=wt.realpathSync(i,e.realpathCache);n[a]=!0}catch(s){if(s.syscall==="stat")n[e._makeAbs(i)]=!0;else throw s}})}Me.finish(this)};z.prototype._process=function(e,t,r){ya(this instanceof z);for(var n=0;typeof e[n]=="string";)n++;var i;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,n).join("/");break}var a=e.slice(n),s;i===null?s=".":((ir(i)||ir(e.join("/")))&&(!i||!ir(i))&&(i="/"+i),s=i);var o=this._makeAbs(s);if(!Pl(this,s)){var u=a[0]===va.GLOBSTAR;u?this._processGlobStar(i,s,o,a,t,r):this._processReaddir(i,s,o,a,t,r)}};z.prototype._processReaddir=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(s){for(var o=n[0],u=!!this.minimatch.negate,l=o._glob,f=this.dot||l.charAt(0)===".",g=[],d=0;d<s.length;d++){var h=s[d];if(h.charAt(0)!=="."||f){var m;u&&!e?m=!h.match(o):m=h.match(o),m&&g.push(h)}}var S=g.length;if(S!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<S;d++){var h=g[d];e&&(e.slice(-1)!=="/"?h=e+"/"+h:h=e+h),h.charAt(0)==="/"&&!this.nomount&&(h=an.join(this.root,h)),this.matches[i][h]=!0}return}n.shift();for(var d=0;d<S;d++){var h=g[d],R;e?R=[e,h]:R=[h],this._process(R.concat(n),i,a)}}}};z.prototype._emitMatch=function(e,t){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),!this.matches[e][t]){if(this.nodir){var n=this.cache[this._makeAbs(t)];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}};z.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r,n;try{r=wt.lstatSync(e)}catch{return null}var i=r.isSymbolicLink();return this.symlinks[e]=i,!i&&!r.isDirectory()?this.cache[e]="FILE":t=this._readdir(e,!1),t};z.prototype._readdir=function(e,t){var r;if(t&&!sn(this.symlinks,e))return this._readdirInGlobStar(e);if(sn(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,wt.readdirSync(e))}catch(i){return this._readdirError(e,i),null}};z.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];e==="/"?n=e+n:n=e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t};z.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(e)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t);break}};z.prototype._processGlobStar=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(s){var o=n.slice(1),u=e?[e]:[],l=u.concat(o);this._process(l,i,!1);var f=s.length,g=this.symlinks[r];if(!(g&&a))for(var d=0;d<f;d++){var h=s[d];if(!(h.charAt(0)==="."&&!this.dot)){var m=u.concat(s[d],o);this._process(m,i,!0);var S=u.concat(s[d],n);this._process(S,i,!0)}}}};z.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!r){if(e&&ir(e)&&!this.nomount){var n=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=an.join(this.root,e):(e=an.resolve(this.root,e),n&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this.matches[t][e]=!0}};z.prototype._stat=function(e){var t=this._makeAbs(e),r=e.slice(-1)==="/";if(e.length>this.maxLength)return!1;if(!this.stat&&sn(this.cache,t)){var s=this.cache[t];if(Array.isArray(s)&&(s="DIR"),!r||s==="DIR")return s;if(r&&s==="FILE")return!1}var n,i=this.statCache[t];if(!i){var a;try{a=wt.lstatSync(t)}catch{return!1}if(a.isSymbolicLink())try{i=wt.statSync(t)}catch{i=a}else i=a}this.statCache[t]=i;var s=i.isDirectory()?"DIR":"FILE";return this.cache[t]=this.cache[t]||s,r&&s!=="DIR"?!1:s};z.prototype._mark=function(e){return Me.mark(this,e)};z.prototype._makeAbs=function(e){return Me.makeAbs(this,e)}});var un=k((Ih,wa)=>{wa.exports=Da;function Da(e,t){if(e&&t)return Da(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var a=e.apply(this,n),s=n[n.length-1];return typeof a=="function"&&a!==s&&Object.keys(s).forEach(function(o){a[o]=s[o]}),a}}});var cn=k(($h,ln)=>{var Ea=un();ln.exports=Ea(ar);ln.exports.strict=Ea(Aa);ar.proto=ar(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ar(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Aa(this)},configurable:!0})});function ar(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Aa(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var Ra=k((Ph,Oa)=>{var Yl=un(),Et=Object.create(null),jl=cn();Oa.exports=Yl(Vl);function Vl(e,t){return Et[e]?(Et[e].push(t),null):(Et[e]=[t],Ul(e))}function Ul(e){return jl(function t(){var r=Et[e],n=r.length,i=ql(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(){t.apply(null,i)})):delete Et[e]}})}function ql(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}});var on=k((qh,Ca)=>{Ca.exports=Ve;var At=require("fs"),La=tr(),Yh=La.Minimatch,Bl=ca(),Hl=require("events").EventEmitter,fn=require("path"),dn=require("assert"),sr=nr(),mn=ba(),we=nn(),jh=we.alphasort,Vh=we.alphasorti,Gl=we.setopts,hn=we.ownProp,pn=Ra(),Uh=require("util"),Wl=we.childrenIgnored,zl=we.isIgnored,Jl=cn();function Ve(e,t,r){if(typeof t=="function"&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return mn(e,t)}return new q(e,t,r)}Ve.sync=mn;var Xl=Ve.GlobSync=mn.GlobSync;Ve.glob=Ve;function Ql(e,t){if(t===null||typeof t!="object")return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}Ve.hasMagic=function(e,t){var r=Ql({},t);r.noprocess=!0;var n=new q(e,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};Ve.Glob=q;Bl(q,Hl);function q(e,t,r){if(typeof t=="function"&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new Xl(e,t)}if(!(this instanceof q))return new q(e,t,r);Gl(this,e,t),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof r=="function"&&(r=Jl(r),this.on("error",r),this.on("end",function(o){r(null,o)}));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 s();for(var a=0;a<i;a++)this._process(this.minimatch.set[a],a,!1,s);function s(){--n._processing,n._processing<=0&&n._finish()}}q.prototype._finish=function(){if(dn(this instanceof q),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();we.finish(this),this.emit("end",this.found)}};q.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--e===0&&t._finish()}};q.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,a=n.length;if(a===0)return t();var s=this.matches[e]=Object.create(null);n.forEach(function(o,u){o=i._makeAbs(o),At.realpath(o,i.realpathCache,function(l,f){l?l.syscall==="stat"?s[o]=!0:i.emit("error",l):s[f]=!0,--a===0&&(i.matches[e]=s,t())})})};q.prototype._mark=function(e){return we.mark(this,e)};q.prototype._makeAbs=function(e){return we.makeAbs(this,e)};q.prototype.abort=function(){this.aborted=!0,this.emit("abort")};q.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};q.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};q.prototype._process=function(e,t,r,n){if(dn(this instanceof q),dn(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([e,t,r,n]);return}for(var i=0;typeof e[i]=="string";)i++;var a;switch(i){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:a=null;break;default:a=e.slice(0,i).join("/");break}var s=e.slice(i),o;a===null?o=".":((sr(a)||sr(e.join("/")))&&(!a||!sr(a))&&(a="/"+a),o=a);var u=this._makeAbs(o);if(Wl(this,o))return n();var l=s[0]===La.GLOBSTAR;l?this._processGlobStar(a,o,u,s,t,r,n):this._processReaddir(a,o,u,s,t,r,n)}};q.prototype._processReaddir=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,function(u,l){return o._processReaddir2(e,t,r,n,i,a,l,s)})};q.prototype._processReaddir2=function(e,t,r,n,i,a,s,o){if(!s)return o();for(var u=n[0],l=!!this.minimatch.negate,f=u._glob,g=this.dot||f.charAt(0)===".",d=[],h=0;h<s.length;h++){var m=s[h];if(m.charAt(0)!=="."||g){var S;l&&!e?S=!m.match(u):S=m.match(u),S&&d.push(m)}}var R=d.length;if(R===0)return o();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var h=0;h<R;h++){var m=d[h];e&&(e!=="/"?m=e+"/"+m:m=e+m),m.charAt(0)==="/"&&!this.nomount&&(m=fn.join(this.root,m)),this._emitMatch(i,m)}return o()}n.shift();for(var h=0;h<R;h++){var m=d[h],w;e&&(e!=="/"?m=e+"/"+m:m=e+m),this._process([m].concat(n),i,a,o)}o()};q.prototype._emitMatch=function(e,t){if(!this.aborted&&!this.matches[e][t]&&!zl(this,t)){if(this.paused){this._emitQueue.push([e,t]);return}var r=this._makeAbs(t);if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.mark&&(t=this._mark(t)),this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}};q.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var r="lstat\0"+e,n=this,i=pn(r,a);i&&At.lstat(e,i);function a(s,o){if(s)return t();var u=o.isSymbolicLink();n.symlinks[e]=u,!u&&!o.isDirectory()?(n.cache[e]="FILE",t()):n._readdir(e,!1,t)}};q.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=pn("readdir\0"+e+"\0"+t,r),!!r)){if(t&&!hn(this.symlinks,e))return this._readdirInGlobStar(e,r);if(hn(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;At.readdir(e,Kl(this,e,r))}};function Kl(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}q.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];e==="/"?i=e+i:i=e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}};q.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(e)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t);break}return r()}};q.prototype._processGlobStar=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,function(u,l){o._processGlobStar2(e,t,r,n,i,a,l,s)})};q.prototype._processGlobStar2=function(e,t,r,n,i,a,s,o){if(!s)return o();var u=n.slice(1),l=e?[e]:[],f=l.concat(u);this._process(f,i,!1,o);var g=this.symlinks[r],d=s.length;if(g&&a)return o();for(var h=0;h<d;h++){var m=s[h];if(!(m.charAt(0)==="."&&!this.dot)){var S=l.concat(s[h],u);this._process(S,i,!0,o);var R=l.concat(s[h],n);this._process(R,i,!0,o)}}o()};q.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,a){n._processSimple2(e,t,i,a,r)})};q.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&sr(e)&&!this.nomount){var a=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=fn.join(this.root,e):(e=fn.resolve(this.root,e),a&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()};q.prototype._stat=function(e,t){var r=this._makeAbs(e),n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&hn(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var a,s=this.statCache[r];if(s!==void 0){if(s===!1)return t(null,s);var o=s.isDirectory()?"DIR":"FILE";return n&&o==="FILE"?t():t(null,o,s)}var u=this,l=pn("stat\0"+r,f);l&&At.lstat(r,l);function f(g,d){if(d&&d.isSymbolicLink())return At.stat(r,function(h,m){h?u._stat2(e,r,null,d,t):u._stat2(e,r,h,m,t)});u._stat2(e,r,g,d,t)}};q.prototype._stat2=function(e,t,r,n,i){if(r)return this.statCache[t]=!1,i();var a=e.slice(-1)==="/";if(this.statCache[t]=n,t.slice(-1)==="/"&&!n.isDirectory())return i(null,!1,n);var s=n.isDirectory()?"DIR":"FILE";return this.cache[t]=this.cache[t]||s,a&&s!=="DIR"?i():i(null,s,n)}});var ka=k((Bh,Na)=>{Na.exports=Sn;Sn.sync=Fa;var U=require("assert"),Ta=require("path"),lr=require("fs"),cr=on(),Ma={nosort:!0,nocomment:!0,nonegate:!0,silent:!0},gn=0,yn=process.platform==="win32";function xa(e){var t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(function(r){e[r]=e[r]||lr[r],r=r+"Sync",e[r]=e[r]||lr[r]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,e.disableGlob=e.disableGlob||!1}function Sn(e,t,r){typeof t=="function"&&(r=t,t={}),U(e,"rimraf: missing path"),U.equal(typeof e,"string","rimraf: path should be a string"),U(t,"rimraf: missing options"),U.equal(typeof t,"object","rimraf: options should be object"),U.equal(typeof r,"function","rimraf: callback function required"),xa(t);var n=0,i=null,a=0;if(t.disableGlob||!cr.hasMagic(e))return o(null,[e]);lr.lstat(e,function(u,l){if(!u)return o(null,[e]);cr(e,Ma,o)});function s(u){i=i||u,--a===0&&r(i)}function o(u,l){if(u)return r(u);if(a=l.length,a===0)return r();l.forEach(function(f){vn(f,t,function g(d){if(d){if(yn&&(d.code==="EBUSY"||d.code==="ENOTEMPTY"||d.code==="EPERM")&&n<t.maxBusyTries){n++;var h=n*100;return setTimeout(function(){vn(f,t,g)},h)}if(d.code==="EMFILE"&&gn<t.emfileWait)return setTimeout(function(){vn(f,t,g)},gn++);d.code==="ENOENT"&&(d=null)}gn=0,s(d)})})}}function vn(e,t,r){U(e),U(t),U(typeof r=="function"),t.lstat(e,function(n,i){if(n&&n.code==="ENOENT")return r(null);if(i&&i.isDirectory())return or(e,t,n,r);t.unlink(e,function(a){if(a){if(a.code==="ENOENT")return r(null);if(a.code==="EPERM")return yn?Zl(e,t,a,r):or(e,t,a,r);if(a.code==="EISDIR")return or(e,t,a,r)}return r(a)})})}function Zl(e,t,r,n){U(e),U(t),U(typeof n=="function"),r&&U(r instanceof Error),t.chmod(e,666,function(i){i?n(i.code==="ENOENT"?null:r):t.stat(e,function(a,s){a?n(a.code==="ENOENT"?null:r):s.isDirectory()?or(e,t,r,n):t.unlink(e,n)})})}function ec(e,t,r){U(e),U(t),r&&U(r instanceof Error);try{t.chmodSync(e,666)}catch(i){if(i.code==="ENOENT")return;throw r}try{var n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?ur(e,t,r):t.unlinkSync(e)}function or(e,t,r,n){U(e),U(t),r&&U(r instanceof Error),U(typeof n=="function"),t.rmdir(e,function(i){i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?tc(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function tc(e,t,r){U(e),U(t),U(typeof r=="function"),t.readdir(e,function(n,i){if(n)return r(n);var a=i.length;if(a===0)return t.rmdir(e,r);var s;i.forEach(function(o){Sn(Ta.join(e,o),t,function(u){if(!s){if(u)return r(s=u);--a===0&&t.rmdir(e,r)}})})})}function Fa(e,t){t=t||{},xa(t),U(e,"rimraf: missing path"),U.equal(typeof e,"string","rimraf: path should be a string"),U(t,"rimraf: missing options"),U.equal(typeof t,"object","rimraf: options should be object");var r;if(t.disableGlob||!cr.hasMagic(e))r=[e];else try{lr.lstatSync(e),r=[e]}catch{r=cr.sync(e,Ma)}if(r.length)for(var n=0;n<r.length;n++){var e=r[n];try{var i=t.lstatSync(e)}catch(s){if(s.code==="ENOENT")return}try{i&&i.isDirectory()?ur(e,t,null):t.unlinkSync(e)}catch(s){if(s.code==="ENOENT")return;if(s.code==="EPERM")return yn?ec(e,t,s):ur(e,t,s);if(s.code!=="EISDIR")throw s;ur(e,t,s)}}}function ur(e,t,r){U(e),U(t),r&&U(r instanceof Error);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")&&rc(e,t)}}function rc(e,t){U(e),U(t),t.readdirSync(e).forEach(function(r){Fa(Ta.join(e,r),t)}),t.rmdirSync(e,t)}});var Ya=k((Hh,Pa)=>{var Ot=require("path"),Ia=require("fs"),$a=parseInt("0777",8);Pa.exports=Ze.mkdirp=Ze.mkdirP=Ze;function Ze(e,t,r,n){typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t});var i=t.mode,a=t.fs||Ia;i===void 0&&(i=$a),n||(n=null);var s=r||function(){};e=Ot.resolve(e),a.mkdir(e,i,function(o){if(!o)return n=n||e,s(null,n);switch(o.code){case"ENOENT":if(Ot.dirname(e)===e)return s(o);Ze(Ot.dirname(e),t,function(u,l){u?s(u,l):Ze(e,t,s,l)});break;default:a.stat(e,function(u,l){u||!l.isDirectory()?s(o,n):s(null,n)});break}})}Ze.sync=function e(t,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,a=r.fs||Ia;i===void 0&&(i=$a),n||(n=null),t=Ot.resolve(t);try{a.mkdirSync(t,i),n=n||t}catch(o){switch(o.code){case"ENOENT":n=e(Ot.dirname(t),r,n),e(t,r,n);break;default:var s;try{s=a.statSync(t)}catch{throw o}if(!s.isDirectory())throw o;break}}return n}});var Ba=k((Gh,qa)=>{var et=require("fs"),nc=Ui().ncp,ic=require("path"),ja=ka(),ac=Ya();qa.exports=sc;function sc(e,t,r,n){typeof r=="function"&&(n=r,r={});var i=!!r.mkdirp,a=r.clobber!==!1,s=r.limit||16;i?o():u();function o(){ac(ic.dirname(t),function(l){if(l)return n(l);u()})}function u(){a?et.rename(e,t,function(l){if(!l)return n();if(l.code!=="EXDEV")return n(l);Va(e,t,a,s,n)}):et.link(e,t,function(l){if(l){if(l.code==="EXDEV"){Va(e,t,a,s,n);return}if(l.code==="EISDIR"||l.code==="EPERM"){Ua(e,t,a,s,n);return}n(l);return}et.unlink(e,n)})}}function Va(e,t,r,n,i){var a=r?"w":"wx",s=et.createReadStream(e),o=et.createWriteStream(t,{flags:a});s.on("error",function(l){s.destroy(),o.destroy(),o.removeListener("close",u),l.code==="EISDIR"||l.code==="EPERM"?Ua(e,t,r,n,i):i(l)}),o.on("error",function(l){s.destroy(),o.destroy(),o.removeListener("close",u),i(l)}),o.once("close",u),s.pipe(o);function u(){et.unlink(e,i)}}function Ua(e,t,r,n,i){var a={stopOnErr:!0