builder.io 1.6.108 → 1.6.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/server/index.cjs CHANGED
@@ -11,15 +11,15 @@
11
11
  `+h+"}"}}return i.pop(),a=h,y}function m(g){if(g.length===0)return l(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!mp.isIdStartChar(h))return l(g,!0);for(let x=h.length;x<g.length;x++)if(!mp.isIdContinueChar(String.fromCodePoint(g.codePointAt(x))))return l(g,!0);return g}function f(g){if(i.indexOf(g)>=0)throw TypeError("Converting circular structure to JSON5");i.push(g);let h=a;a=a+c;let x=[];for(let y=0;y<g.length;y++){let F=p(String(y),g);x.push(F!==void 0?F:"null")}let w;if(x.length===0)w="[]";else if(c==="")w="["+x.join(",")+"]";else{let y=`,
12
12
  `+a,F=x.join(y);w=`[
13
13
  `+a+F+`,
14
- `+h+"]"}return i.pop(),a=h,w}}});var cv=v((hV,sv)=>{var QF=iv(),YF=av(),XF={parse:QF,stringify:YF};sv.exports=XF});var xp=v(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.throwUnsupportedData=Gr.throwUnknownDataType=Gr.getType=void 0;function Ev(e){return Object.prototype.toString.call(e)}Gr.getType=Ev;function E6(e){throw new TypeError("unsupported data type: "+Ev(e))}Gr.throwUnknownDataType=E6;function S6(e){throw new TypeError("unsupported data type: "+e)}Gr.throwUnsupportedData=S6});var Cp=v(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.s_to_num=Ve.int_str_to_s=Ve.num_to_s=Ve.big_int_to_s=Ve.int_to_s=Ve.s_to_big_int=Ve.s_to_int=void 0;var _r="";for(let e=0;e<10;e++){let t=String.fromCharCode(48+e);_r+=t}for(let e=0;e<26;e++){let t=String.fromCharCode(65+e);_r+=t}for(let e=0;e<26;e++){let t=String.fromCharCode(97+e);_r+=t}var ai=_r.length,bp={};for(let e=0;e<ai;e++){let t=_r[e];bp[t]=e}function Dp(e){let t=0,r=1;for(let n=e.length-1;n>=0;n--){let i=e[n],a=bp[i];a*=r,t+=a,r*=ai}return t}Ve.s_to_int=Dp;function Sv(e){let t=BigInt(0),r=BigInt(1),n=BigInt(ai);for(let i=e.length-1;i>=0;i--){let a=e[i],o=BigInt(bp[a]);o*=r,t+=o,r*=n}return t}Ve.s_to_big_int=Sv;function wp(e){if(e===0)return _r[0];let t=[];for(;e!==0;){let r=e%ai,n=_r[r];t.push(n),e-=r,e/=ai}return t.reverse().join("")}Ve.int_to_s=wp;function Av(e){let t=BigInt(0),r=BigInt(ai);if(e===t)return _r[0];let n=[];for(;e!==t;){let i=e%r,a=_r[Number(i)];n.push(a),e/=r}return n.reverse().join("")}Ve.big_int_to_s=Av;function Fv(e){return e.split("").reverse().join("")}function Pv(e){if(e<0)return"-"+Pv(-e);let[t,r]=e.toString().split(".");if(!r)if(t.includes("e")){let[a,o]=t.split("e");t=a,r="0e"+o}else return wp(e);let n;r&&([r,n]=r.split("e")),t=xs(t),r=Fv(r),r=xs(r);let i=t+"."+r;if(n){switch(i+=".",n[0]){case"+":n=n.slice(1);break;case"-":i+="-",n=n.slice(1);break}n=xs(n),i+=n}return i}Ve.num_to_s=Pv;function xs(e){let t=+e;return t.toString()===e&&t+1!==t&&t-1!==t?wp(t):":"+Av(BigInt(e))}Ve.int_str_to_s=xs;function yp(e){return e[0]===":"?Sv(e.substring(1)).toString():Dp(e).toString()}function Tv(e){if(e[0]==="-")return-Tv(e.substr(1));let[t,r,n]=e.split(".");if(!r)return Dp(t);t=yp(t),r=yp(r),r=Fv(r);let i=t+"."+r;if(n){i+="e";let a=!1;n[0]==="-"&&(a=!0,n=n.slice(1)),n=yp(n),i+=a?-n:+n}return+i}Ve.s_to_num=Tv});var Sp=v(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.decodeStr=Ke.encodeStr=Ke.decodeBool=Ke.encodeBool=Ke.decodeKey=Ke.decodeNum=Ke.encodeNum=void 0;var Ep=Cp();function A6(e){return"n|"+(0,Ep.num_to_s)(e)}Ke.encodeNum=A6;function F6(e){return e=e.replace("n|",""),(0,Ep.s_to_num)(e)}Ke.decodeNum=F6;function P6(e){return typeof e=="number"?e:(0,Ep.s_to_int)(e)}Ke.decodeKey=P6;function T6(e){return e?"b|T":"b|F"}Ke.encodeBool=T6;function k6(e){switch(e){case"b|T":return!0;case"b|F":return!1}return!!e}Ke.decodeBool=k6;function I6(e){switch(e[0]+e[1]){case"b|":case"o|":case"n|":case"a|":case"s|":e="s|"+e}return e}Ke.encodeStr=I6;function R6(e){return e[0]+e[1]==="s|"?e.substr(2):e}Ke.decodeStr=R6});var Ap=v(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.config=void 0;ys.config={sort_key:!1,error_on_nan:!1,error_on_infinite:!1}});var kp=v(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.addValue=Nt.makeInMemoryMemory=Nt.makeInMemoryCache=Nt.makeInMemoryStore=Nt.memToValues=void 0;var Tp=Ap(),Fp=xp(),Pp=Sp(),_6=Cp();function B6(e){return e.store.toArray()}Nt.memToValues=B6;function kv(){let e=[];return{forEach(t){for(let r=0;r<e.length;r++)if(t(e[r])==="break")return},add(t){e.push(t)},toArray(){return e}}}Nt.makeInMemoryStore=kv;function Iv(){let e=Object.create(null),t=Object.create(null);return{getValue(r){return e[r]},getSchema(r){return t[r]},forEachValue(r){for(let[n,i]of Object.entries(e))if(r(n,i)==="break")return},forEachSchema(r){for(let[n,i]of Object.entries(t))if(r(n,i)==="break")return},setValue(r,n){e[r]=n},setSchema(r,n){t[r]=n},hasValue(r){return r in e},hasSchema(r){return r in t}}}Nt.makeInMemoryCache=Iv;function O6(){return{store:kv(),cache:Iv(),keyCount:0}}Nt.makeInMemoryMemory=O6;function bn(e,t){if(e.cache.hasValue(t))return e.cache.getValue(t);let r=e.keyCount++,n=(0,_6.num_to_s)(r);return e.store.add(t),e.cache.setValue(t,n),n}function N6(e,t){Tp.config.sort_key&&t.sort();let r=t.join(",");if(e.cache.hasSchema(r))return e.cache.getSchema(r);let n=yo(e,t,void 0);return e.cache.setSchema(r,n),n}function yo(e,t,r){if(t===null)return"";switch(typeof t){case"undefined":if(Array.isArray(r))return yo(e,null,r);break;case"object":if(t===null)return bn(e,null);if(Array.isArray(t)){let n="a";for(let i=0;i<t.length;i++){let a=t[i],o=a===null?"_":yo(e,a,t);n+="|"+o}return n==="a"&&(n="a|"),bn(e,n)}else{let n=Object.keys(t);if(n.length===0)return bn(e,"o|");let i="o",a=N6(e,n);i+="|"+a;for(let o of n){let s=t[o],c=yo(e,s,t);i+="|"+c}return bn(e,i)}case"boolean":return bn(e,(0,Pp.encodeBool)(t));case"number":return Number.isNaN(t)?(Tp.config.error_on_nan&&(0,Fp.throwUnsupportedData)("[number NaN]"),""):Number.POSITIVE_INFINITY===t||Number.NEGATIVE_INFINITY===t?(Tp.config.error_on_infinite&&(0,Fp.throwUnsupportedData)("[number Infinity]"),""):bn(e,(0,Pp.encodeNum)(t));case"string":return bn(e,(0,Pp.encodeStr)(t))}return(0,Fp.throwUnknownDataType)(t)}Nt.addValue=yo});var Rp=v(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.decompress=Wr.decode=Wr.compress=void 0;var $6=xp(),bs=Sp(),Ip=kp();function L6(e){let t=(0,Ip.makeInMemoryMemory)(),r=(0,Ip.addValue)(t,e,void 0);return[(0,Ip.memToValues)(t),r]}Wr.compress=L6;function j6(e,t){if(t==="o|")return{};let r={},n=t.split("|"),i=n[1],a=bo(e,i),o=n.length;o-2===1&&!Array.isArray(a)&&(a=[a]);for(let s=2;s<o;s++){let c=a[s-2],u=n[s];u=bo(e,u),r[c]=u}return r}function M6(e,t){if(t==="a|")return[];let r=t.split("|"),n=r.length-1,i=new Array(n);for(let a=0;a<n;a++){let o=r[a+1];o=bo(e,o),i[a]=o}return i}function bo(e,t){if(t===""||t==="_")return null;let r=(0,bs.decodeKey)(t),n=e[r];if(n===null)return n;switch(typeof n){case"undefined":return n;case"number":return n;case"string":switch(n[0]+n[1]){case"b|":return(0,bs.decodeBool)(n);case"o|":return j6(e,n);case"n|":return(0,bs.decodeNum)(n);case"a|":return M6(e,n);default:return(0,bs.decodeStr)(n)}}return(0,$6.throwUnknownDataType)(n)}Wr.decode=bo;function q6(e){let[t,r]=e;return bo(t,r)}Wr.decompress=q6});var _v=v(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.trimUndefinedRecursively=si.trimUndefined=void 0;function U6(e){for(let t in e)e[t]===void 0&&delete e[t]}si.trimUndefined=U6;function z6(e){Rv(e,new Set)}si.trimUndefinedRecursively=z6;function Rv(e,t){t.add(e);for(let r in e)if(e[r]===void 0)delete e[r];else{let n=e[r];n&&typeof n=="object"&&!t.has(n)&&Rv(n,t)}}});var Nv=v(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.config=Ge.trimUndefinedRecursively=Ge.trimUndefined=Ge.addValue=Ge.decode=Ge.decompress=Ge.compress=void 0;var Bv=Rp();Object.defineProperty(Ge,"compress",{enumerable:!0,get:function(){return Bv.compress}});Object.defineProperty(Ge,"decompress",{enumerable:!0,get:function(){return Bv.decompress}});var H6=Rp();Object.defineProperty(Ge,"decode",{enumerable:!0,get:function(){return H6.decode}});var V6=kp();Object.defineProperty(Ge,"addValue",{enumerable:!0,get:function(){return V6.addValue}});var Ov=_v();Object.defineProperty(Ge,"trimUndefined",{enumerable:!0,get:function(){return Ov.trimUndefined}});Object.defineProperty(Ge,"trimUndefinedRecursively",{enumerable:!0,get:function(){return Ov.trimUndefinedRecursively}});var K6=Ap();Object.defineProperty(Ge,"config",{enumerable:!0,get:function(){return K6.config}})});var i0=v((SJ,Gp)=>{"use strict";var x3=Object.prototype.hasOwnProperty,Ze="~";function Fo(){}Object.create&&(Fo.prototype=Object.create(null),new Fo().__proto__||(Ze=!1));function y3(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function n0(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new y3(r,n||e,i),o=Ze?Ze+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function ks(e,t){--e._eventsCount===0?e._events=new Fo:delete e._events[t]}function We(){this._events=new Fo,this._eventsCount=0}We.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)x3.call(r,n)&&t.push(Ze?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};We.prototype.listeners=function(t){var r=Ze?Ze+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o};We.prototype.listenerCount=function(t){var r=Ze?Ze+t:t,n=this._events[r];return n?n.fn?1:n.length:0};We.prototype.emit=function(t,r,n,i,a,o){var s=Ze?Ze+t:t;if(!this._events[s])return!1;var c=this._events[s],u=arguments.length,p,l;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,r),!0;case 3:return c.fn.call(c.context,r,n),!0;case 4:return c.fn.call(c.context,r,n,i),!0;case 5:return c.fn.call(c.context,r,n,i,a),!0;case 6:return c.fn.call(c.context,r,n,i,a,o),!0}for(l=1,p=new Array(u-1);l<u;l++)p[l-1]=arguments[l];c.fn.apply(c.context,p)}else{var d=c.length,m;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),u){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,r);break;case 3:c[l].fn.call(c[l].context,r,n);break;case 4:c[l].fn.call(c[l].context,r,n,i);break;default:if(!p)for(m=1,p=new Array(u-1);m<u;m++)p[m-1]=arguments[m];c[l].fn.apply(c[l].context,p)}}return!0};We.prototype.on=function(t,r,n){return n0(this,t,r,n,!1)};We.prototype.once=function(t,r,n){return n0(this,t,r,n,!0)};We.prototype.removeListener=function(t,r,n,i){var a=Ze?Ze+t:t;if(!this._events[a])return this;if(!r)return ks(this,a),this;var o=this._events[a];if(o.fn)o.fn===r&&(!i||o.once)&&(!n||o.context===n)&&ks(this,a);else{for(var s=0,c=[],u=o.length;s<u;s++)(o[s].fn!==r||i&&!o[s].once||n&&o[s].context!==n)&&c.push(o[s]);c.length?this._events[a]=c.length===1?c[0]:c:ks(this,a)}return this};We.prototype.removeAllListeners=function(t){var r;return t?(r=Ze?Ze+t:t,this._events[r]&&ks(this,r)):(this._events=new Fo,this._eventsCount=0),this};We.prototype.off=We.prototype.removeListener;We.prototype.addListener=We.prototype.on;We.prefixed=Ze;We.EventEmitter=We;typeof Gp<"u"&&(Gp.exports=We)});var a0=v((AJ,o0)=>{"use strict";o0.exports=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}});var Is=v(c0=>{var $r=c0,b3=require("url"),s0=require("util")._extend,D3=a0(),w3=/(^|,)\s*upgrade\s*($|,)/i,Wp=/^https|wss/;$r.isSSL=Wp;$r.setupOutgoing=function(e,t,r,n){e.port=t[n||"target"].port||(Wp.test(t[n||"target"].protocol)?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"].forEach(function(s){e[s]=t[n||"target"][s]}),e.method=t.method||r.method,e.headers=s0({},r.headers),t.headers&&s0(e.headers,t.headers),t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),Wp.test(t[n||"target"].protocol)&&(e.rejectUnauthorized=typeof t.secure>"u"?!0:t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},(typeof e.headers.connection!="string"||!w3.test(e.headers.connection))&&(e.headers.connection="close"));var i=t[n||"target"],a=i&&t.prependPath!==!1&&i.path||"",o=t.toProxy?r.url:b3.parse(r.url).path||"";return o=t.ignorePath?"":o,e.path=$r.urlJoin(a,o),t.changeOrigin&&(e.headers.host=D3(e.port,t[n||"target"].protocol)&&!C3(e.host)?e.host+":"+e.port:e.host),e};$r.setupSocket=function(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e};$r.getPort=function(e){var t=e.headers.host?e.headers.host.match(/:(\d+)/):"";return t?t[1]:$r.hasEncryptedConnection(e)?"443":"80"};$r.hasEncryptedConnection=function(e){return!!(e.connection.encrypted||e.connection.pair)};$r.urlJoin=function(){var e=Array.prototype.slice.call(arguments),t=e.length-1,r=e[t],n=r.split("?"),i;return e[t]=n.shift(),i=[e.filter(Boolean).join("/").replace(/\/+/g,"/").replace("http:/","http://").replace("https:/","https://")],i.push.apply(i,n),i.join("?")};$r.rewriteCookieProperty=function e(t,r,n){return Array.isArray(t)?t.map(function(i){return e(i,r,n)}):t.replace(new RegExp("(;\\s*"+n+"=)([^;]+)","i"),function(i,a,o){var s;if(o in r)s=r[o];else if("*"in r)s=r["*"];else return i;return s?a+s:""})};function C3(e){return!!~e.indexOf(":")}});var d0=v((PJ,l0)=>{var u0=require("url"),p0=Is(),E3=/^201|30(1|2|7|8)$/;l0.exports={removeChunked:function(t,r,n){t.httpVersion==="1.0"&&delete n.headers["transfer-encoding"]},setConnection:function(t,r,n){t.httpVersion==="1.0"?n.headers.connection=t.headers.connection||"close":t.httpVersion!=="2.0"&&!n.headers.connection&&(n.headers.connection=t.headers.connection||"keep-alive")},setRedirectHostRewrite:function(t,r,n,i){if((i.hostRewrite||i.autoRewrite||i.protocolRewrite)&&n.headers.location&&E3.test(n.statusCode)){var a=u0.parse(i.target),o=u0.parse(n.headers.location);if(a.host!=o.host)return;i.hostRewrite?o.host=i.hostRewrite:i.autoRewrite&&(o.host=t.headers.host),i.protocolRewrite&&(o.protocol=i.protocolRewrite),n.headers.location=o.format()}},writeHeaders:function(t,r,n,i){var a=i.cookieDomainRewrite,o=i.cookiePathRewrite,s=i.preserveHeaderKeyCase,c,u=function(d,m){m!=null&&(a&&d.toLowerCase()==="set-cookie"&&(m=p0.rewriteCookieProperty(m,a,"domain")),o&&d.toLowerCase()==="set-cookie"&&(m=p0.rewriteCookieProperty(m,o,"path")),r.setHeader(String(d).trim(),m))};if(typeof a=="string"&&(a={"*":a}),typeof o=="string"&&(o={"*":o}),s&&n.rawHeaders!=null){c={};for(var p=0;p<n.rawHeaders.length;p+=2){var l=n.rawHeaders[p];c[l.toLowerCase()]=l}}Object.keys(n.headers).forEach(function(d){var m=n.headers[d];s&&c&&(d=c[d]||d),u(d,m)})},writeStatusCode:function(t,r,n){n.statusMessage?(r.statusCode=n.statusCode,r.statusMessage=n.statusMessage):r.statusCode=n.statusCode}}});var Jp=v((TJ,f0)=>{var ui=1e3,pi=ui*60,li=pi*60,Dn=li*24,S3=Dn*7,A3=Dn*365.25;f0.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return F3(e);if(r==="number"&&isFinite(e))return t.long?T3(e):P3(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function F3(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*A3;case"weeks":case"week":case"w":return r*S3;case"days":case"day":case"d":return r*Dn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*li;case"minutes":case"minute":case"mins":case"min":case"m":return r*pi;case"seconds":case"second":case"secs":case"sec":case"s":return r*ui;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function P3(e){var t=Math.abs(e);return t>=Dn?Math.round(e/Dn)+"d":t>=li?Math.round(e/li)+"h":t>=pi?Math.round(e/pi)+"m":t>=ui?Math.round(e/ui)+"s":e+"ms"}function T3(e){var t=Math.abs(e);return t>=Dn?Rs(e,t,Dn,"day"):t>=li?Rs(e,t,li,"hour"):t>=pi?Rs(e,t,pi,"minute"):t>=ui?Rs(e,t,ui,"second"):e+" ms"}function Rs(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Qp=v((kJ,m0)=>{function k3(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=s,r.humanize=Jp(),r.destroy=u,Object.keys(e).forEach(p=>{r[p]=e[p]}),r.names=[],r.skips=[],r.formatters={};function t(p){let l=0;for(let d=0;d<p.length;d++)l=(l<<5)-l+p.charCodeAt(d),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=t;function r(p){let l,d=null,m,f;function g(...h){if(!g.enabled)return;let x=g,w=Number(new Date),y=w-(l||w);x.diff=y,x.prev=l,x.curr=w,l=w,h[0]=r.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let F=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(S,I)=>{if(S==="%%")return"%";F++;let k=r.formatters[I];if(typeof k=="function"){let R=h[F];S=k.call(x,R),h.splice(F,1),F--}return S}),r.formatArgs.call(x,h),(x.log||r.log).apply(x,h)}return g.namespace=p,g.useColors=r.useColors(),g.color=r.selectColor(p),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(m!==r.namespaces&&(m=r.namespaces,f=r.enabled(p)),f),set:h=>{d=h}}),typeof r.init=="function"&&r.init(g),g}function n(p,l){let d=r(this.namespace+(typeof l>"u"?":":l)+p);return d.log=this.log,d}function i(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];let l=(typeof p=="string"?p:"").trim().replace(" ",",").split(",").filter(Boolean);for(let d of l)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function a(p,l){let d=0,m=0,f=-1,g=0;for(;d<p.length;)if(m<l.length&&(l[m]===p[d]||l[m]==="*"))l[m]==="*"?(f=m,g=d,m++):(d++,m++);else if(f!==-1)m=f+1,g++,d=g;else return!1;for(;m<l.length&&l[m]==="*";)m++;return m===l.length}function o(){let p=[...r.names,...r.skips.map(l=>"-"+l)].join(",");return r.enable(""),p}function s(p){for(let l of r.skips)if(a(p,l))return!1;for(let l of r.names)if(a(p,l))return!0;return!1}function c(p){return p instanceof Error?p.stack||p.message:p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}m0.exports=k3});var g0=v((At,_s)=>{At.formatArgs=R3;At.save=_3;At.load=B3;At.useColors=I3;At.storage=O3();At.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();At.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function I3(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function R3(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+_s.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}At.log=console.debug||console.log||(()=>{});function _3(e){try{e?At.storage.setItem("debug",e):At.storage.removeItem("debug")}catch{}}function B3(){let e;try{e=At.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function O3(){try{return localStorage}catch{}}_s.exports=Qp()(At);var{formatters:N3}=_s.exports;N3.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var v0=v((IJ,h0)=>{"use strict";h0.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var b0=v((RJ,y0)=>{"use strict";var $3=require("os"),x0=require("tty"),$t=v0(),{env:$e}=process,Yr;$t("no-color")||$t("no-colors")||$t("color=false")||$t("color=never")?Yr=0:($t("color")||$t("colors")||$t("color=true")||$t("color=always"))&&(Yr=1);"FORCE_COLOR"in $e&&($e.FORCE_COLOR==="true"?Yr=1:$e.FORCE_COLOR==="false"?Yr=0:Yr=$e.FORCE_COLOR.length===0?1:Math.min(parseInt($e.FORCE_COLOR,10),3));function Yp(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Xp(e,t){if(Yr===0)return 0;if($t("color=16m")||$t("color=full")||$t("color=truecolor"))return 3;if($t("color=256"))return 2;if(e&&!t&&Yr===void 0)return 0;let r=Yr||0;if($e.TERM==="dumb")return r;if(process.platform==="win32"){let n=$3.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in $e)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in $e)||$e.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in $e)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($e.TEAMCITY_VERSION)?1:0;if($e.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $e){let n=parseInt(($e.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($e.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($e.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($e.TERM)||"COLORTERM"in $e?1:r}function L3(e){let t=Xp(e,e&&e.isTTY);return Yp(t)}y0.exports={supportsColor:L3,stdout:Yp(Xp(!0,x0.isatty(1))),stderr:Yp(Xp(!0,x0.isatty(2)))}});var w0=v((Le,Os)=>{var j3=require("tty"),Bs=require("util");Le.init=K3;Le.log=z3;Le.formatArgs=q3;Le.save=H3;Le.load=V3;Le.useColors=M3;Le.destroy=Bs.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Le.colors=[6,2,3,4,5,1];try{let e=b0();e&&(e.stderr||e).level>=2&&(Le.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Le.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,a)=>a.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function M3(){return"colors"in Le.inspectOpts?!!Le.inspectOpts.colors:j3.isatty(process.stderr.fd)}function q3(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),a=` ${i};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
14
+ `+h+"]"}return i.pop(),a=h,w}}});var cv=v((hV,sv)=>{var QF=iv(),YF=av(),XF={parse:QF,stringify:YF};sv.exports=XF});var xp=v(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.throwUnsupportedData=Gr.throwUnknownDataType=Gr.getType=void 0;function Ev(e){return Object.prototype.toString.call(e)}Gr.getType=Ev;function E6(e){throw new TypeError("unsupported data type: "+Ev(e))}Gr.throwUnknownDataType=E6;function S6(e){throw new TypeError("unsupported data type: "+e)}Gr.throwUnsupportedData=S6});var Cp=v(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.s_to_num=Ve.int_str_to_s=Ve.num_to_s=Ve.big_int_to_s=Ve.int_to_s=Ve.s_to_big_int=Ve.s_to_int=void 0;var _r="";for(let e=0;e<10;e++){let t=String.fromCharCode(48+e);_r+=t}for(let e=0;e<26;e++){let t=String.fromCharCode(65+e);_r+=t}for(let e=0;e<26;e++){let t=String.fromCharCode(97+e);_r+=t}var ai=_r.length,bp={};for(let e=0;e<ai;e++){let t=_r[e];bp[t]=e}function Dp(e){let t=0,r=1;for(let n=e.length-1;n>=0;n--){let i=e[n],a=bp[i];a*=r,t+=a,r*=ai}return t}Ve.s_to_int=Dp;function Sv(e){let t=BigInt(0),r=BigInt(1),n=BigInt(ai);for(let i=e.length-1;i>=0;i--){let a=e[i],o=BigInt(bp[a]);o*=r,t+=o,r*=n}return t}Ve.s_to_big_int=Sv;function wp(e){if(e===0)return _r[0];let t=[];for(;e!==0;){let r=e%ai,n=_r[r];t.push(n),e-=r,e/=ai}return t.reverse().join("")}Ve.int_to_s=wp;function Av(e){let t=BigInt(0),r=BigInt(ai);if(e===t)return _r[0];let n=[];for(;e!==t;){let i=e%r,a=_r[Number(i)];n.push(a),e/=r}return n.reverse().join("")}Ve.big_int_to_s=Av;function Fv(e){return e.split("").reverse().join("")}function Pv(e){if(e<0)return"-"+Pv(-e);let[t,r]=e.toString().split(".");if(!r)if(t.includes("e")){let[a,o]=t.split("e");t=a,r="0e"+o}else return wp(e);let n;r&&([r,n]=r.split("e")),t=xs(t),r=Fv(r),r=xs(r);let i=t+"."+r;if(n){switch(i+=".",n[0]){case"+":n=n.slice(1);break;case"-":i+="-",n=n.slice(1);break}n=xs(n),i+=n}return i}Ve.num_to_s=Pv;function xs(e){let t=+e;return t.toString()===e&&t+1!==t&&t-1!==t?wp(t):":"+Av(BigInt(e))}Ve.int_str_to_s=xs;function yp(e){return e[0]===":"?Sv(e.substring(1)).toString():Dp(e).toString()}function Tv(e){if(e[0]==="-")return-Tv(e.substr(1));let[t,r,n]=e.split(".");if(!r)return Dp(t);t=yp(t),r=yp(r),r=Fv(r);let i=t+"."+r;if(n){i+="e";let a=!1;n[0]==="-"&&(a=!0,n=n.slice(1)),n=yp(n),i+=a?-n:+n}return+i}Ve.s_to_num=Tv});var Sp=v(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.decodeStr=Ke.encodeStr=Ke.decodeBool=Ke.encodeBool=Ke.decodeKey=Ke.decodeNum=Ke.encodeNum=void 0;var Ep=Cp();function A6(e){return"n|"+(0,Ep.num_to_s)(e)}Ke.encodeNum=A6;function F6(e){return e=e.replace("n|",""),(0,Ep.s_to_num)(e)}Ke.decodeNum=F6;function P6(e){return typeof e=="number"?e:(0,Ep.s_to_int)(e)}Ke.decodeKey=P6;function T6(e){return e?"b|T":"b|F"}Ke.encodeBool=T6;function k6(e){switch(e){case"b|T":return!0;case"b|F":return!1}return!!e}Ke.decodeBool=k6;function I6(e){switch(e[0]+e[1]){case"b|":case"o|":case"n|":case"a|":case"s|":e="s|"+e}return e}Ke.encodeStr=I6;function R6(e){return e[0]+e[1]==="s|"?e.substr(2):e}Ke.decodeStr=R6});var Ap=v(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.config=void 0;ys.config={sort_key:!1,error_on_nan:!1,error_on_infinite:!1}});var kp=v(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.addValue=Nt.makeInMemoryMemory=Nt.makeInMemoryCache=Nt.makeInMemoryStore=Nt.memToValues=void 0;var Tp=Ap(),Fp=xp(),Pp=Sp(),_6=Cp();function B6(e){return e.store.toArray()}Nt.memToValues=B6;function kv(){let e=[];return{forEach(t){for(let r=0;r<e.length;r++)if(t(e[r])==="break")return},add(t){e.push(t)},toArray(){return e}}}Nt.makeInMemoryStore=kv;function Iv(){let e=Object.create(null),t=Object.create(null);return{getValue(r){return e[r]},getSchema(r){return t[r]},forEachValue(r){for(let[n,i]of Object.entries(e))if(r(n,i)==="break")return},forEachSchema(r){for(let[n,i]of Object.entries(t))if(r(n,i)==="break")return},setValue(r,n){e[r]=n},setSchema(r,n){t[r]=n},hasValue(r){return r in e},hasSchema(r){return r in t}}}Nt.makeInMemoryCache=Iv;function O6(){return{store:kv(),cache:Iv(),keyCount:0}}Nt.makeInMemoryMemory=O6;function bn(e,t){if(e.cache.hasValue(t))return e.cache.getValue(t);let r=e.keyCount++,n=(0,_6.num_to_s)(r);return e.store.add(t),e.cache.setValue(t,n),n}function N6(e,t){Tp.config.sort_key&&t.sort();let r=t.join(",");if(e.cache.hasSchema(r))return e.cache.getSchema(r);let n=yo(e,t,void 0);return e.cache.setSchema(r,n),n}function yo(e,t,r){if(t===null)return"";switch(typeof t){case"undefined":if(Array.isArray(r))return yo(e,null,r);break;case"object":if(t===null)return bn(e,null);if(Array.isArray(t)){let n="a";for(let i=0;i<t.length;i++){let a=t[i],o=a===null?"_":yo(e,a,t);n+="|"+o}return n==="a"&&(n="a|"),bn(e,n)}else{let n=Object.keys(t);if(n.length===0)return bn(e,"o|");let i="o",a=N6(e,n);i+="|"+a;for(let o of n){let s=t[o],c=yo(e,s,t);i+="|"+c}return bn(e,i)}case"boolean":return bn(e,(0,Pp.encodeBool)(t));case"number":return Number.isNaN(t)?(Tp.config.error_on_nan&&(0,Fp.throwUnsupportedData)("[number NaN]"),""):Number.POSITIVE_INFINITY===t||Number.NEGATIVE_INFINITY===t?(Tp.config.error_on_infinite&&(0,Fp.throwUnsupportedData)("[number Infinity]"),""):bn(e,(0,Pp.encodeNum)(t));case"string":return bn(e,(0,Pp.encodeStr)(t))}return(0,Fp.throwUnknownDataType)(t)}Nt.addValue=yo});var Rp=v(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.decompress=Wr.decode=Wr.compress=void 0;var $6=xp(),bs=Sp(),Ip=kp();function L6(e){let t=(0,Ip.makeInMemoryMemory)(),r=(0,Ip.addValue)(t,e,void 0);return[(0,Ip.memToValues)(t),r]}Wr.compress=L6;function j6(e,t){if(t==="o|")return{};let r={},n=t.split("|"),i=n[1],a=bo(e,i),o=n.length;o-2===1&&!Array.isArray(a)&&(a=[a]);for(let s=2;s<o;s++){let c=a[s-2],u=n[s];u=bo(e,u),r[c]=u}return r}function M6(e,t){if(t==="a|")return[];let r=t.split("|"),n=r.length-1,i=new Array(n);for(let a=0;a<n;a++){let o=r[a+1];o=bo(e,o),i[a]=o}return i}function bo(e,t){if(t===""||t==="_")return null;let r=(0,bs.decodeKey)(t),n=e[r];if(n===null)return n;switch(typeof n){case"undefined":return n;case"number":return n;case"string":switch(n[0]+n[1]){case"b|":return(0,bs.decodeBool)(n);case"o|":return j6(e,n);case"n|":return(0,bs.decodeNum)(n);case"a|":return M6(e,n);default:return(0,bs.decodeStr)(n)}}return(0,$6.throwUnknownDataType)(n)}Wr.decode=bo;function q6(e){let[t,r]=e;return bo(t,r)}Wr.decompress=q6});var _v=v(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.trimUndefinedRecursively=si.trimUndefined=void 0;function U6(e){for(let t in e)e[t]===void 0&&delete e[t]}si.trimUndefined=U6;function z6(e){Rv(e,new Set)}si.trimUndefinedRecursively=z6;function Rv(e,t){t.add(e);for(let r in e)if(e[r]===void 0)delete e[r];else{let n=e[r];n&&typeof n=="object"&&!t.has(n)&&Rv(n,t)}}});var Nv=v(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.config=Ge.trimUndefinedRecursively=Ge.trimUndefined=Ge.addValue=Ge.decode=Ge.decompress=Ge.compress=void 0;var Bv=Rp();Object.defineProperty(Ge,"compress",{enumerable:!0,get:function(){return Bv.compress}});Object.defineProperty(Ge,"decompress",{enumerable:!0,get:function(){return Bv.decompress}});var H6=Rp();Object.defineProperty(Ge,"decode",{enumerable:!0,get:function(){return H6.decode}});var V6=kp();Object.defineProperty(Ge,"addValue",{enumerable:!0,get:function(){return V6.addValue}});var Ov=_v();Object.defineProperty(Ge,"trimUndefined",{enumerable:!0,get:function(){return Ov.trimUndefined}});Object.defineProperty(Ge,"trimUndefinedRecursively",{enumerable:!0,get:function(){return Ov.trimUndefinedRecursively}});var K6=Ap();Object.defineProperty(Ge,"config",{enumerable:!0,get:function(){return K6.config}})});var i0=v((SJ,Gp)=>{"use strict";var xP=Object.prototype.hasOwnProperty,Ze="~";function Fo(){}Object.create&&(Fo.prototype=Object.create(null),new Fo().__proto__||(Ze=!1));function yP(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function n0(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new yP(r,n||e,i),o=Ze?Ze+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function ks(e,t){--e._eventsCount===0?e._events=new Fo:delete e._events[t]}function We(){this._events=new Fo,this._eventsCount=0}We.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)xP.call(r,n)&&t.push(Ze?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};We.prototype.listeners=function(t){var r=Ze?Ze+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o};We.prototype.listenerCount=function(t){var r=Ze?Ze+t:t,n=this._events[r];return n?n.fn?1:n.length:0};We.prototype.emit=function(t,r,n,i,a,o){var s=Ze?Ze+t:t;if(!this._events[s])return!1;var c=this._events[s],u=arguments.length,p,l;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,r),!0;case 3:return c.fn.call(c.context,r,n),!0;case 4:return c.fn.call(c.context,r,n,i),!0;case 5:return c.fn.call(c.context,r,n,i,a),!0;case 6:return c.fn.call(c.context,r,n,i,a,o),!0}for(l=1,p=new Array(u-1);l<u;l++)p[l-1]=arguments[l];c.fn.apply(c.context,p)}else{var d=c.length,m;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),u){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,r);break;case 3:c[l].fn.call(c[l].context,r,n);break;case 4:c[l].fn.call(c[l].context,r,n,i);break;default:if(!p)for(m=1,p=new Array(u-1);m<u;m++)p[m-1]=arguments[m];c[l].fn.apply(c[l].context,p)}}return!0};We.prototype.on=function(t,r,n){return n0(this,t,r,n,!1)};We.prototype.once=function(t,r,n){return n0(this,t,r,n,!0)};We.prototype.removeListener=function(t,r,n,i){var a=Ze?Ze+t:t;if(!this._events[a])return this;if(!r)return ks(this,a),this;var o=this._events[a];if(o.fn)o.fn===r&&(!i||o.once)&&(!n||o.context===n)&&ks(this,a);else{for(var s=0,c=[],u=o.length;s<u;s++)(o[s].fn!==r||i&&!o[s].once||n&&o[s].context!==n)&&c.push(o[s]);c.length?this._events[a]=c.length===1?c[0]:c:ks(this,a)}return this};We.prototype.removeAllListeners=function(t){var r;return t?(r=Ze?Ze+t:t,this._events[r]&&ks(this,r)):(this._events=new Fo,this._eventsCount=0),this};We.prototype.off=We.prototype.removeListener;We.prototype.addListener=We.prototype.on;We.prefixed=Ze;We.EventEmitter=We;typeof Gp<"u"&&(Gp.exports=We)});var a0=v((AJ,o0)=>{"use strict";o0.exports=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}});var Is=v(c0=>{var $r=c0,bP=require("url"),s0=require("util")._extend,DP=a0(),wP=/(^|,)\s*upgrade\s*($|,)/i,Wp=/^https|wss/;$r.isSSL=Wp;$r.setupOutgoing=function(e,t,r,n){e.port=t[n||"target"].port||(Wp.test(t[n||"target"].protocol)?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"].forEach(function(s){e[s]=t[n||"target"][s]}),e.method=t.method||r.method,e.headers=s0({},r.headers),t.headers&&s0(e.headers,t.headers),t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),Wp.test(t[n||"target"].protocol)&&(e.rejectUnauthorized=typeof t.secure>"u"?!0:t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},(typeof e.headers.connection!="string"||!wP.test(e.headers.connection))&&(e.headers.connection="close"));var i=t[n||"target"],a=i&&t.prependPath!==!1&&i.path||"",o=t.toProxy?r.url:bP.parse(r.url).path||"";return o=t.ignorePath?"":o,e.path=$r.urlJoin(a,o),t.changeOrigin&&(e.headers.host=DP(e.port,t[n||"target"].protocol)&&!CP(e.host)?e.host+":"+e.port:e.host),e};$r.setupSocket=function(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e};$r.getPort=function(e){var t=e.headers.host?e.headers.host.match(/:(\d+)/):"";return t?t[1]:$r.hasEncryptedConnection(e)?"443":"80"};$r.hasEncryptedConnection=function(e){return!!(e.connection.encrypted||e.connection.pair)};$r.urlJoin=function(){var e=Array.prototype.slice.call(arguments),t=e.length-1,r=e[t],n=r.split("?"),i;return e[t]=n.shift(),i=[e.filter(Boolean).join("/").replace(/\/+/g,"/").replace("http:/","http://").replace("https:/","https://")],i.push.apply(i,n),i.join("?")};$r.rewriteCookieProperty=function e(t,r,n){return Array.isArray(t)?t.map(function(i){return e(i,r,n)}):t.replace(new RegExp("(;\\s*"+n+"=)([^;]+)","i"),function(i,a,o){var s;if(o in r)s=r[o];else if("*"in r)s=r["*"];else return i;return s?a+s:""})};function CP(e){return!!~e.indexOf(":")}});var d0=v((PJ,l0)=>{var u0=require("url"),p0=Is(),EP=/^201|30(1|2|7|8)$/;l0.exports={removeChunked:function(t,r,n){t.httpVersion==="1.0"&&delete n.headers["transfer-encoding"]},setConnection:function(t,r,n){t.httpVersion==="1.0"?n.headers.connection=t.headers.connection||"close":t.httpVersion!=="2.0"&&!n.headers.connection&&(n.headers.connection=t.headers.connection||"keep-alive")},setRedirectHostRewrite:function(t,r,n,i){if((i.hostRewrite||i.autoRewrite||i.protocolRewrite)&&n.headers.location&&EP.test(n.statusCode)){var a=u0.parse(i.target),o=u0.parse(n.headers.location);if(a.host!=o.host)return;i.hostRewrite?o.host=i.hostRewrite:i.autoRewrite&&(o.host=t.headers.host),i.protocolRewrite&&(o.protocol=i.protocolRewrite),n.headers.location=o.format()}},writeHeaders:function(t,r,n,i){var a=i.cookieDomainRewrite,o=i.cookiePathRewrite,s=i.preserveHeaderKeyCase,c,u=function(d,m){m!=null&&(a&&d.toLowerCase()==="set-cookie"&&(m=p0.rewriteCookieProperty(m,a,"domain")),o&&d.toLowerCase()==="set-cookie"&&(m=p0.rewriteCookieProperty(m,o,"path")),r.setHeader(String(d).trim(),m))};if(typeof a=="string"&&(a={"*":a}),typeof o=="string"&&(o={"*":o}),s&&n.rawHeaders!=null){c={};for(var p=0;p<n.rawHeaders.length;p+=2){var l=n.rawHeaders[p];c[l.toLowerCase()]=l}}Object.keys(n.headers).forEach(function(d){var m=n.headers[d];s&&c&&(d=c[d]||d),u(d,m)})},writeStatusCode:function(t,r,n){n.statusMessage?(r.statusCode=n.statusCode,r.statusMessage=n.statusMessage):r.statusCode=n.statusCode}}});var Jp=v((TJ,f0)=>{var ui=1e3,pi=ui*60,li=pi*60,Dn=li*24,SP=Dn*7,AP=Dn*365.25;f0.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return FP(e);if(r==="number"&&isFinite(e))return t.long?TP(e):PP(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function FP(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*AP;case"weeks":case"week":case"w":return r*SP;case"days":case"day":case"d":return r*Dn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*li;case"minutes":case"minute":case"mins":case"min":case"m":return r*pi;case"seconds":case"second":case"secs":case"sec":case"s":return r*ui;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function PP(e){var t=Math.abs(e);return t>=Dn?Math.round(e/Dn)+"d":t>=li?Math.round(e/li)+"h":t>=pi?Math.round(e/pi)+"m":t>=ui?Math.round(e/ui)+"s":e+"ms"}function TP(e){var t=Math.abs(e);return t>=Dn?Rs(e,t,Dn,"day"):t>=li?Rs(e,t,li,"hour"):t>=pi?Rs(e,t,pi,"minute"):t>=ui?Rs(e,t,ui,"second"):e+" ms"}function Rs(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Qp=v((kJ,m0)=>{function kP(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=s,r.humanize=Jp(),r.destroy=u,Object.keys(e).forEach(p=>{r[p]=e[p]}),r.names=[],r.skips=[],r.formatters={};function t(p){let l=0;for(let d=0;d<p.length;d++)l=(l<<5)-l+p.charCodeAt(d),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=t;function r(p){let l,d=null,m,f;function g(...h){if(!g.enabled)return;let x=g,w=Number(new Date),y=w-(l||w);x.diff=y,x.prev=l,x.curr=w,l=w,h[0]=r.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let F=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(S,I)=>{if(S==="%%")return"%";F++;let k=r.formatters[I];if(typeof k=="function"){let R=h[F];S=k.call(x,R),h.splice(F,1),F--}return S}),r.formatArgs.call(x,h),(x.log||r.log).apply(x,h)}return g.namespace=p,g.useColors=r.useColors(),g.color=r.selectColor(p),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(m!==r.namespaces&&(m=r.namespaces,f=r.enabled(p)),f),set:h=>{d=h}}),typeof r.init=="function"&&r.init(g),g}function n(p,l){let d=r(this.namespace+(typeof l>"u"?":":l)+p);return d.log=this.log,d}function i(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];let l=(typeof p=="string"?p:"").trim().replace(" ",",").split(",").filter(Boolean);for(let d of l)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function a(p,l){let d=0,m=0,f=-1,g=0;for(;d<p.length;)if(m<l.length&&(l[m]===p[d]||l[m]==="*"))l[m]==="*"?(f=m,g=d,m++):(d++,m++);else if(f!==-1)m=f+1,g++,d=g;else return!1;for(;m<l.length&&l[m]==="*";)m++;return m===l.length}function o(){let p=[...r.names,...r.skips.map(l=>"-"+l)].join(",");return r.enable(""),p}function s(p){for(let l of r.skips)if(a(p,l))return!1;for(let l of r.names)if(a(p,l))return!0;return!1}function c(p){return p instanceof Error?p.stack||p.message:p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}m0.exports=kP});var g0=v((At,_s)=>{At.formatArgs=RP;At.save=_P;At.load=BP;At.useColors=IP;At.storage=OP();At.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();At.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function IP(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function RP(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+_s.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}At.log=console.debug||console.log||(()=>{});function _P(e){try{e?At.storage.setItem("debug",e):At.storage.removeItem("debug")}catch{}}function BP(){let e;try{e=At.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function OP(){try{return localStorage}catch{}}_s.exports=Qp()(At);var{formatters:NP}=_s.exports;NP.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var v0=v((IJ,h0)=>{"use strict";h0.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var b0=v((RJ,y0)=>{"use strict";var $P=require("os"),x0=require("tty"),$t=v0(),{env:$e}=process,Yr;$t("no-color")||$t("no-colors")||$t("color=false")||$t("color=never")?Yr=0:($t("color")||$t("colors")||$t("color=true")||$t("color=always"))&&(Yr=1);"FORCE_COLOR"in $e&&($e.FORCE_COLOR==="true"?Yr=1:$e.FORCE_COLOR==="false"?Yr=0:Yr=$e.FORCE_COLOR.length===0?1:Math.min(parseInt($e.FORCE_COLOR,10),3));function Yp(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Xp(e,t){if(Yr===0)return 0;if($t("color=16m")||$t("color=full")||$t("color=truecolor"))return 3;if($t("color=256"))return 2;if(e&&!t&&Yr===void 0)return 0;let r=Yr||0;if($e.TERM==="dumb")return r;if(process.platform==="win32"){let n=$P.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in $e)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in $e)||$e.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in $e)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($e.TEAMCITY_VERSION)?1:0;if($e.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $e){let n=parseInt(($e.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($e.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($e.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($e.TERM)||"COLORTERM"in $e?1:r}function LP(e){let t=Xp(e,e&&e.isTTY);return Yp(t)}y0.exports={supportsColor:LP,stdout:Yp(Xp(!0,x0.isatty(1))),stderr:Yp(Xp(!0,x0.isatty(2)))}});var w0=v((Le,Os)=>{var jP=require("tty"),Bs=require("util");Le.init=KP;Le.log=zP;Le.formatArgs=qP;Le.save=HP;Le.load=VP;Le.useColors=MP;Le.destroy=Bs.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Le.colors=[6,2,3,4,5,1];try{let e=b0();e&&(e.stderr||e).level>=2&&(Le.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Le.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,a)=>a.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function MP(){return"colors"in Le.inspectOpts?!!Le.inspectOpts.colors:jP.isatty(process.stderr.fd)}function qP(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),a=` ${i};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
15
15
  `).join(`
16
- `+a),e.push(i+"m+"+Os.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=U3()+t+" "+e[0]}function U3(){return Le.inspectOpts.hideDate?"":new Date().toISOString()+" "}function z3(...e){return process.stderr.write(Bs.formatWithOptions(Le.inspectOpts,...e)+`
17
- `)}function H3(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function V3(){return process.env.DEBUG}function K3(e){e.inspectOpts={};let t=Object.keys(Le.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Le.inspectOpts[t[r]]}Os.exports=Qp()(Le);var{formatters:D0}=Os.exports;D0.o=function(e){return this.inspectOpts.colors=this.useColors,Bs.inspect(e,this.inspectOpts).split(`
18
- `).map(t=>t.trim()).join(" ")};D0.O=function(e){return this.inspectOpts.colors=this.useColors,Bs.inspect(e,this.inspectOpts)}});var C0=v((_J,Zp)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zp.exports=g0():Zp.exports=w0()});var S0=v((BJ,E0)=>{var Po;E0.exports=function(){if(!Po){try{Po=C0()("follow-redirects")}catch{}typeof Po!="function"&&(Po=function(){})}Po.apply(null,arguments)}});var k0=v((OJ,ll)=>{var ko=require("url"),To=ko.URL,G3=require("http"),W3=require("https"),il=require("stream").Writable,ol=require("assert"),A0=S0();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=Cn(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var al=!1;try{ol(new To(""))}catch(e){al=e.code==="ERR_INVALID_URL"}var J3=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],sl=["abort","aborted","connect","error","socket","timeout"],cl=Object.create(null);sl.forEach(function(e){cl[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var tl=Io("ERR_INVALID_URL","Invalid URL",TypeError),rl=Io("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Q3=Io("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",rl),Y3=Io("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),X3=Io("ERR_STREAM_WRITE_AFTER_END","write after end"),Z3=il.prototype.destroy||P0;function pt(e,t){il.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(i){r.emit("error",i instanceof rl?i:new rl({cause:i}))}},this._performRequest()}pt.prototype=Object.create(il.prototype);pt.prototype.abort=function(){pl(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};pt.prototype.destroy=function(e){return pl(this._currentRequest,e),Z3.call(this,e),this};pt.prototype.write=function(e,t,r){if(this._ending)throw new X3;if(!wn(e)&&!rP(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Cn(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Y3),this.abort())};pt.prototype.end=function(e,t,r){if(Cn(e)?(r=e,e=t=null):Cn(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};pt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};pt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};pt.prototype.setTimeout=function(e,t){var r=this;function n(o){o.setTimeout(e),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),a()},e),n(o)}function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),r.removeListener("close",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",a),this.on("error",a),this.on("response",a),this.on("close",a),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){pt.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(pt.prototype,e,{get:function(){return this._currentRequest[e]}})});pt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};pt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of sl)n.on(i,cl[i]);if(this._currentUrl=/^\//.test(this._options.path)?ko.format(this._options):this._options.path,this._isRedirect){var a=0,o=this,s=this._requestBodyBuffers;(function c(u){if(n===o._currentRequest)if(u)o.emit("error",u);else if(a<s.length){var p=s[a++];n.finished||n.write(p.data,p.encoding,c)}else o._ended&&n.end()})()}};pt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(pl(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Q3;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],el(/^content-/i,this._options.headers));var o=el(/^host$/i,this._options.headers),s=ul(this._currentUrl),c=o||s.host,u=/^\w+:/.test(r)?this._currentUrl:ko.format(Object.assign(s,{host:c})),p=eP(r,u);if(A0("redirecting to",p.href),this._isRedirect=!0,nl(p,this._options),(p.protocol!==s.protocol&&p.protocol!=="https:"||p.host!==c&&!tP(p.host,c))&&el(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Cn(i)){var l={headers:e.headers,statusCode:t},d={url:u,method:a,headers:n};i(this._options,l,d),this._sanitizeOptions(this._options)}this._performRequest()};function F0(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",a=r[i]=e[n],o=t[n]=Object.create(a);function s(u,p,l){return nP(u)?u=nl(u):wn(u)?u=nl(ul(u)):(l=p,p=T0(u),u={protocol:i}),Cn(p)&&(l=p,p=null),p=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},u,p),p.nativeProtocols=r,!wn(p.host)&&!wn(p.hostname)&&(p.hostname="::1"),ol.equal(p.protocol,i,"protocol mismatch"),A0("options",p),new pt(p,l)}function c(u,p,l){var d=o.request(u,p,l);return d.end(),d}Object.defineProperties(o,{request:{value:s,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function P0(){}function ul(e){var t;if(al)t=new To(e);else if(t=T0(ko.parse(e)),!wn(t.protocol))throw new tl({input:e});return t}function eP(e,t){return al?new To(e,t):ul(ko.resolve(t,e))}function T0(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new tl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new tl({input:e.href||e});return e}function nl(e,t){var r=t||{};for(var n of J3)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function el(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Io(e,t,r){function n(i){Cn(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function pl(e,t){for(var r of sl)e.removeListener(r,cl[r]);e.on("error",P0),e.destroy(t)}function tP(e,t){ol(wn(e)&&wn(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function wn(e){return typeof e=="string"||e instanceof String}function Cn(e){return typeof e=="function"}function rP(e){return typeof e=="object"&&"length"in e}function nP(e){return To&&e instanceof To}ll.exports=F0({http:G3,https:W3});ll.exports.wrap=F0});var R0=v((NJ,I0)=>{var iP=require("http"),oP=require("https"),Ro=d0(),Ns=Is(),aP=k0();Ro=Object.keys(Ro).map(function(e){return Ro[e]});var sP={http:iP,https:oP};I0.exports={deleteLength:function(t,r,n){(t.method==="DELETE"||t.method==="OPTIONS")&&!t.headers["content-length"]&&(t.headers["content-length"]="0",delete t.headers["transfer-encoding"])},timeout:function(t,r,n){n.timeout&&t.socket.setTimeout(n.timeout)},XHeaders:function(t,r,n){if(n.xfwd){var i=t.isSpdy||Ns.hasEncryptedConnection(t),a={for:t.connection.remoteAddress||t.socket.remoteAddress,port:Ns.getPort(t),proto:i?"https":"http"};["for","port","proto"].forEach(function(o){t.headers["x-forwarded-"+o]=(t.headers["x-forwarded-"+o]||"")+(t.headers["x-forwarded-"+o]?",":"")+a[o]}),t.headers["x-forwarded-host"]=t.headers["x-forwarded-host"]||t.headers.host||""}},stream:function(t,r,n,i,a,o){a.emit("start",t,r,n.target||n.forward);var s=n.followRedirects?aP:sP,c=s.http,u=s.https;if(n.forward){var p=(n.forward.protocol==="https:"?u:c).request(Ns.setupOutgoing(n.ssl||{},n,t,"forward")),l=f(p,n.forward);if(t.on("error",l),p.on("error",l),(n.buffer||t).pipe(p),!n.target)return r.end()}var d=(n.target.protocol==="https:"?u:c).request(Ns.setupOutgoing(n.ssl||{},n,t));d.on("socket",function(g){a&&!d.getHeader("expect")&&a.emit("proxyReq",d,t,r,n)}),n.proxyTimeout&&d.setTimeout(n.proxyTimeout,function(){d.abort()}),t.on("aborted",function(){d.abort()});var m=f(d,n.target);t.on("error",m),d.on("error",m);function f(g,h){return function(w){if(t.socket.destroyed&&w.code==="ECONNRESET")return a.emit("econnreset",w,t,r,h),g.abort();o?o(w,t,r,h):a.emit("error",w,t,r,h)}}(n.buffer||t).pipe(d),d.on("response",function(g){if(a&&a.emit("proxyRes",g,t,r),!r.headersSent&&!n.selfHandleResponse)for(var h=0;h<Ro.length&&!Ro[h](t,r,g,n);h++);r.finished?a&&a.emit("end",t,r,g):(g.on("end",function(){a&&a.emit("end",t,r,g)}),n.selfHandleResponse||g.pipe(r))})}}});var B0=v(($J,_0)=>{var cP=require("http"),uP=require("https"),di=Is();_0.exports={checkMethodAndHeader:function(t,r){if(t.method!=="GET"||!t.headers.upgrade||t.headers.upgrade.toLowerCase()!=="websocket")return r.destroy(),!0},XHeaders:function(t,r,n){if(n.xfwd){var i={for:t.connection.remoteAddress||t.socket.remoteAddress,port:di.getPort(t),proto:di.hasEncryptedConnection(t)?"wss":"ws"};["for","port","proto"].forEach(function(a){t.headers["x-forwarded-"+a]=(t.headers["x-forwarded-"+a]||"")+(t.headers["x-forwarded-"+a]?",":"")+i[a]})}},stream:function(t,r,n,i,a,o){var s=function(p,l){return Object.keys(l).reduce(function(d,m){var f=l[m];if(!Array.isArray(f))return d.push(m+": "+f),d;for(var g=0;g<f.length;g++)d.push(m+": "+f[g]);return d},[p]).join(`\r
16
+ `+a),e.push(i+"m+"+Os.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=UP()+t+" "+e[0]}function UP(){return Le.inspectOpts.hideDate?"":new Date().toISOString()+" "}function zP(...e){return process.stderr.write(Bs.formatWithOptions(Le.inspectOpts,...e)+`
17
+ `)}function HP(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function VP(){return process.env.DEBUG}function KP(e){e.inspectOpts={};let t=Object.keys(Le.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Le.inspectOpts[t[r]]}Os.exports=Qp()(Le);var{formatters:D0}=Os.exports;D0.o=function(e){return this.inspectOpts.colors=this.useColors,Bs.inspect(e,this.inspectOpts).split(`
18
+ `).map(t=>t.trim()).join(" ")};D0.O=function(e){return this.inspectOpts.colors=this.useColors,Bs.inspect(e,this.inspectOpts)}});var C0=v((_J,Zp)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zp.exports=g0():Zp.exports=w0()});var S0=v((BJ,E0)=>{var Po;E0.exports=function(){if(!Po){try{Po=C0()("follow-redirects")}catch{}typeof Po!="function"&&(Po=function(){})}Po.apply(null,arguments)}});var k0=v((OJ,ll)=>{var ko=require("url"),To=ko.URL,GP=require("http"),WP=require("https"),il=require("stream").Writable,ol=require("assert"),A0=S0();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=Cn(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var al=!1;try{ol(new To(""))}catch(e){al=e.code==="ERR_INVALID_URL"}var JP=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],sl=["abort","aborted","connect","error","socket","timeout"],cl=Object.create(null);sl.forEach(function(e){cl[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var tl=Io("ERR_INVALID_URL","Invalid URL",TypeError),rl=Io("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),QP=Io("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",rl),YP=Io("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),XP=Io("ERR_STREAM_WRITE_AFTER_END","write after end"),ZP=il.prototype.destroy||P0;function pt(e,t){il.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(i){r.emit("error",i instanceof rl?i:new rl({cause:i}))}},this._performRequest()}pt.prototype=Object.create(il.prototype);pt.prototype.abort=function(){pl(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};pt.prototype.destroy=function(e){return pl(this._currentRequest,e),ZP.call(this,e),this};pt.prototype.write=function(e,t,r){if(this._ending)throw new XP;if(!wn(e)&&!r3(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Cn(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new YP),this.abort())};pt.prototype.end=function(e,t,r){if(Cn(e)?(r=e,e=t=null):Cn(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};pt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};pt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};pt.prototype.setTimeout=function(e,t){var r=this;function n(o){o.setTimeout(e),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),a()},e),n(o)}function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),r.removeListener("close",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",a),this.on("error",a),this.on("response",a),this.on("close",a),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){pt.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(pt.prototype,e,{get:function(){return this._currentRequest[e]}})});pt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};pt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of sl)n.on(i,cl[i]);if(this._currentUrl=/^\//.test(this._options.path)?ko.format(this._options):this._options.path,this._isRedirect){var a=0,o=this,s=this._requestBodyBuffers;(function c(u){if(n===o._currentRequest)if(u)o.emit("error",u);else if(a<s.length){var p=s[a++];n.finished||n.write(p.data,p.encoding,c)}else o._ended&&n.end()})()}};pt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(pl(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new QP;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],el(/^content-/i,this._options.headers));var o=el(/^host$/i,this._options.headers),s=ul(this._currentUrl),c=o||s.host,u=/^\w+:/.test(r)?this._currentUrl:ko.format(Object.assign(s,{host:c})),p=e3(r,u);if(A0("redirecting to",p.href),this._isRedirect=!0,nl(p,this._options),(p.protocol!==s.protocol&&p.protocol!=="https:"||p.host!==c&&!t3(p.host,c))&&el(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Cn(i)){var l={headers:e.headers,statusCode:t},d={url:u,method:a,headers:n};i(this._options,l,d),this._sanitizeOptions(this._options)}this._performRequest()};function F0(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",a=r[i]=e[n],o=t[n]=Object.create(a);function s(u,p,l){return n3(u)?u=nl(u):wn(u)?u=nl(ul(u)):(l=p,p=T0(u),u={protocol:i}),Cn(p)&&(l=p,p=null),p=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},u,p),p.nativeProtocols=r,!wn(p.host)&&!wn(p.hostname)&&(p.hostname="::1"),ol.equal(p.protocol,i,"protocol mismatch"),A0("options",p),new pt(p,l)}function c(u,p,l){var d=o.request(u,p,l);return d.end(),d}Object.defineProperties(o,{request:{value:s,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function P0(){}function ul(e){var t;if(al)t=new To(e);else if(t=T0(ko.parse(e)),!wn(t.protocol))throw new tl({input:e});return t}function e3(e,t){return al?new To(e,t):ul(ko.resolve(t,e))}function T0(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new tl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new tl({input:e.href||e});return e}function nl(e,t){var r=t||{};for(var n of JP)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function el(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Io(e,t,r){function n(i){Cn(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function pl(e,t){for(var r of sl)e.removeListener(r,cl[r]);e.on("error",P0),e.destroy(t)}function t3(e,t){ol(wn(e)&&wn(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function wn(e){return typeof e=="string"||e instanceof String}function Cn(e){return typeof e=="function"}function r3(e){return typeof e=="object"&&"length"in e}function n3(e){return To&&e instanceof To}ll.exports=F0({http:GP,https:WP});ll.exports.wrap=F0});var R0=v((NJ,I0)=>{var i3=require("http"),o3=require("https"),Ro=d0(),Ns=Is(),a3=k0();Ro=Object.keys(Ro).map(function(e){return Ro[e]});var s3={http:i3,https:o3};I0.exports={deleteLength:function(t,r,n){(t.method==="DELETE"||t.method==="OPTIONS")&&!t.headers["content-length"]&&(t.headers["content-length"]="0",delete t.headers["transfer-encoding"])},timeout:function(t,r,n){n.timeout&&t.socket.setTimeout(n.timeout)},XHeaders:function(t,r,n){if(n.xfwd){var i=t.isSpdy||Ns.hasEncryptedConnection(t),a={for:t.connection.remoteAddress||t.socket.remoteAddress,port:Ns.getPort(t),proto:i?"https":"http"};["for","port","proto"].forEach(function(o){t.headers["x-forwarded-"+o]=(t.headers["x-forwarded-"+o]||"")+(t.headers["x-forwarded-"+o]?",":"")+a[o]}),t.headers["x-forwarded-host"]=t.headers["x-forwarded-host"]||t.headers.host||""}},stream:function(t,r,n,i,a,o){a.emit("start",t,r,n.target||n.forward);var s=n.followRedirects?a3:s3,c=s.http,u=s.https;if(n.forward){var p=(n.forward.protocol==="https:"?u:c).request(Ns.setupOutgoing(n.ssl||{},n,t,"forward")),l=f(p,n.forward);if(t.on("error",l),p.on("error",l),(n.buffer||t).pipe(p),!n.target)return r.end()}var d=(n.target.protocol==="https:"?u:c).request(Ns.setupOutgoing(n.ssl||{},n,t));d.on("socket",function(g){a&&!d.getHeader("expect")&&a.emit("proxyReq",d,t,r,n)}),n.proxyTimeout&&d.setTimeout(n.proxyTimeout,function(){d.abort()}),t.on("aborted",function(){d.abort()});var m=f(d,n.target);t.on("error",m),d.on("error",m);function f(g,h){return function(w){if(t.socket.destroyed&&w.code==="ECONNRESET")return a.emit("econnreset",w,t,r,h),g.abort();o?o(w,t,r,h):a.emit("error",w,t,r,h)}}(n.buffer||t).pipe(d),d.on("response",function(g){if(a&&a.emit("proxyRes",g,t,r),!r.headersSent&&!n.selfHandleResponse)for(var h=0;h<Ro.length&&!Ro[h](t,r,g,n);h++);r.finished?a&&a.emit("end",t,r,g):(g.on("end",function(){a&&a.emit("end",t,r,g)}),n.selfHandleResponse||g.pipe(r))})}}});var B0=v(($J,_0)=>{var c3=require("http"),u3=require("https"),di=Is();_0.exports={checkMethodAndHeader:function(t,r){if(t.method!=="GET"||!t.headers.upgrade||t.headers.upgrade.toLowerCase()!=="websocket")return r.destroy(),!0},XHeaders:function(t,r,n){if(n.xfwd){var i={for:t.connection.remoteAddress||t.socket.remoteAddress,port:di.getPort(t),proto:di.hasEncryptedConnection(t)?"wss":"ws"};["for","port","proto"].forEach(function(a){t.headers["x-forwarded-"+a]=(t.headers["x-forwarded-"+a]||"")+(t.headers["x-forwarded-"+a]?",":"")+i[a]})}},stream:function(t,r,n,i,a,o){var s=function(p,l){return Object.keys(l).reduce(function(d,m){var f=l[m];if(!Array.isArray(f))return d.push(m+": "+f),d;for(var g=0;g<f.length;g++)d.push(m+": "+f[g]);return d},[p]).join(`\r
19
19
  `)+`\r
20
20
  \r
21
- `};di.setupSocket(r),i&&i.length&&r.unshift(i);var c=(di.isSSL.test(n.target.protocol)?uP:cP).request(di.setupOutgoing(n.ssl||{},n,t));return a&&a.emit("proxyReqWs",c,t,r,n,i),c.on("error",u),c.on("response",function(p){p.upgrade||(r.write(s("HTTP/"+p.httpVersion+" "+p.statusCode+" "+p.statusMessage,p.headers)),p.pipe(r))}),c.on("upgrade",function(p,l,d){l.on("error",u),l.on("end",function(){a.emit("close",p,l,d)}),r.on("error",function(){l.end()}),di.setupSocket(l),d&&d.length&&l.unshift(d),r.write(s("HTTP/1.1 101 Switching Protocols",p.headers)),l.pipe(r).pipe(l),a.emit("open",l),a.emit("proxySocket",l)}),c.end();function u(p){o?o(p,t,r):a.emit("error",p,t,r),r.end()}}}});var q0=v((LJ,M0)=>{var L0=M0.exports,O0=require("util")._extend,pP=require("url").parse,j0=i0(),lP=require("http"),dP=require("https"),N0=R0(),$0=B0();L0.Server=En;function dl(e){return function(t){return function(r,n){var i=e==="ws"?this.wsPasses:this.webPasses,a=[].slice.call(arguments),o=a.length-1,s,c;typeof a[o]=="function"&&(c=a[o],o--);var u=t;if(!(a[o]instanceof Buffer)&&a[o]!==n&&(u=O0({},t),O0(u,a[o]),o--),a[o]instanceof Buffer&&(s=a[o]),["target","forward"].forEach(function(l){typeof u[l]=="string"&&(u[l]=pP(u[l]))}),!u.target&&!u.forward)return this.emit("error",new Error("Must provide a proper URL as target"));for(var p=0;p<i.length&&!i[p](r,n,u,s,this,c);p++);}}}L0.createRightProxy=dl;function En(e){j0.call(this),e=e||{},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=dl("web")(e),this.ws=this.proxyWebsocketRequest=dl("ws")(e),this.options=e,this.webPasses=Object.keys(N0).map(function(t){return N0[t]}),this.wsPasses=Object.keys($0).map(function(t){return $0[t]}),this.on("error",this.onError,this)}require("util").inherits(En,j0);En.prototype.onError=function(e){if(this.listeners("error").length===1)throw e};En.prototype.listen=function(e,t){var r=this,n=function(i,a){r.web(i,a)};return this._server=this.options.ssl?dP.createServer(this.options.ssl,n):lP.createServer(n),this.options.ws&&this._server.on("upgrade",function(i,a,o){r.ws(i,a,o)}),this._server.listen(e,t),this};En.prototype.close=function(e){var t=this;this._server&&this._server.close(r);function r(){t._server=null,e&&e.apply(null,arguments)}};En.prototype.before=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,i=!1;if(n.forEach(function(a,o){a.name===t&&(i=o)}),i===!1)throw new Error("No such pass");n.splice(i,0,r)};En.prototype.after=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,i=!1;if(n.forEach(function(a,o){a.name===t&&(i=o)}),i===!1)throw new Error("No such pass");n.splice(i++,0,r)}});var z0=v((jJ,U0)=>{var _o=q0().Server;function fl(e){return new _o(e)}_o.createProxyServer=fl;_o.createServer=fl;_o.createProxy=fl;U0.exports=_o});var V0=v((MJ,H0)=>{H0.exports=z0()});var $s=v((qJ,K0)=>{"use strict";K0.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var Ls=v(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ERRORS=void 0;var fP;(function(e){e.ERR_CONFIG_FACTORY_TARGET_MISSING='[HPM] Missing "target" option. Example: {target: "http://www.example.org"}',e.ERR_CONTEXT_MATCHER_GENERIC='[HPM] Invalid context. Expecting something like: "/api" or ["/api", "/ajax"]',e.ERR_CONTEXT_MATCHER_INVALID_ARRAY='[HPM] Invalid context. Expecting something like: ["/api", "/ajax"] or ["/api/**", "!**.html"]',e.ERR_PATH_REWRITER_CONFIG="[HPM] Invalid pathRewrite config. Expecting object with pathRewrite config or a rewrite function"})(fP=Bo.ERRORS||(Bo.ERRORS={}))});var mi=v(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.getArrow=fi.getInstance=void 0;var mP=require("util"),ml,G0={log:console.log,debug:console.log,info:console.info,warn:console.warn,error:console.error},Oo;(function(e){e[e.debug=10]="debug",e[e.info=20]="info",e[e.warn=30]="warn",e[e.error=50]="error",e[e.silent=80]="silent"})(Oo||(Oo={}));function gP(){return ml||(ml=new gl),ml}fi.getInstance=gP;var gl=class{constructor(){this.setLevel("info"),this.setProvider(()=>G0)}log(){this.provider.log(this._interpolate.apply(null,arguments))}debug(){this._showLevel("debug")&&this.provider.debug(this._interpolate.apply(null,arguments))}info(){this._showLevel("info")&&this.provider.info(this._interpolate.apply(null,arguments))}warn(){this._showLevel("warn")&&this.provider.warn(this._interpolate.apply(null,arguments))}error(){this._showLevel("error")&&this.provider.error(this._interpolate.apply(null,arguments))}setLevel(t){this.isValidLevel(t)&&(this.logLevel=t)}setProvider(t){t&&this.isValidProvider(t)&&(this.provider=t(G0))}isValidProvider(t){if(t&&typeof t!="function")throw new Error("[HPM] Log provider config error. Expecting a function.");return!0}isValidLevel(t){let n=Object.keys(Oo).includes(t);if(!n)throw new Error("[HPM] Log level error. Invalid logLevel.");return n}_showLevel(t){let r=!1,n=Oo[this.logLevel];return n&&n<=Oo[t]&&(r=!0),r}_interpolate(t,...r){return mP.format(t,...r)}};function hP(e,t,r,n){let i=[">"],a=r!==n,o=e!==t;return o&&!a?i.unshift("~"):!o&&a?i.unshift("="):o&&a?i.unshift("\u2248"):i.unshift("-"),i.join("")}fi.getArrow=hP});var Q0=v(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.createConfig=void 0;var vP=$s(),J0=require("url"),xP=Ls(),yP=mi(),W0=(0,yP.getInstance)();function bP(e,t){let r={context:void 0,options:{}};if(wP(e,t))r.context="/",r.options=Object.assign(r.options,e);else if(DP(e)){let n=J0.parse(e),i=[n.protocol,"//",n.host].join("");r.context=n.pathname||"/",r.options=Object.assign(r.options,{target:i},t),(n.protocol==="ws:"||n.protocol==="wss:")&&(r.options.ws=!0)}else r.context=e,r.options=Object.assign(r.options,t);if(CP(r.options),!r.options.target&&!r.options.router)throw new Error(xP.ERRORS.ERR_CONFIG_FACTORY_TARGET_MISSING);return r}js.createConfig=bP;function DP(e){if(typeof e=="string")return!!J0.parse(e).host}function wP(e,t){return vP(e)&&(t==null||Object.keys(t).length===0)}function CP(e){e.logLevel&&W0.setLevel(e.logLevel),e.logProvider&&W0.setProvider(e.logProvider)}});var X0=v((VJ,Y0)=>{Y0.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var tx=v((KJ,ex)=>{var EP=X0(),Z0={"{":"}","(":")","[":"]"},SP=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,a=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||a!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(a=e.indexOf(")",t),a>t&&(o=e.indexOf("\\",t),o===-1||o>a))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(a=e.indexOf(")",r),a>r&&(o=e.indexOf("\\",r),o===-1||o>a))))return!0;if(e[t]==="\\"){var s=e[t+1];t+=2;var c=Z0[s];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},AP=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Z0[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};ex.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(EP(t))return!0;var n=SP;return r&&r.strict===!1&&(n=AP),n(t)}});var Ms=v(Lt=>{"use strict";Lt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Lt.find=(e,t)=>e.nodes.find(r=>r.type===t);Lt.exceedsLimit=(e,t,r=1,n)=>n===!1||!Lt.isInteger(e)||!Lt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Lt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Lt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Lt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Lt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Lt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Lt.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let a=n[i];if(Array.isArray(a)){r(a);continue}a!==void 0&&t.push(a)}return t};return r(e),t}});var qs=v((WJ,nx)=>{"use strict";var rx=Ms();nx.exports=(e,t={})=>{let r=(n,i={})=>{let a=t.escapeInvalid&&rx.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,s="";if(n.value)return(a||o)&&rx.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)s+=r(c);return s};return r(e)}});var ox=v((JJ,ix)=>{"use strict";ix.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var mx=v((QJ,fx)=>{"use strict";var ax=ox(),Sn=(e,t,r)=>{if(ax(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ax(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),a=String(n.shorthand),o=String(n.capture),s=String(n.wrap),c=e+":"+t+"="+i+a+o+s;if(Sn.cache.hasOwnProperty(c))return Sn.cache[c].result;let u=Math.min(e,t),p=Math.max(e,t);if(Math.abs(u-p)===1){let g=e+"|"+t;return n.capture?`(${g})`:n.wrap===!1?g:`(?:${g})`}let l=dx(e)||dx(t),d={min:e,max:t,a:u,b:p},m=[],f=[];if(l&&(d.isPadded=l,d.maxLen=String(d.max).length),u<0){let g=p<0?Math.abs(p):1;f=sx(g,Math.abs(u),d,n),u=d.a=0}return p>=0&&(m=sx(u,p,d,n)),d.negatives=f,d.positives=m,d.result=FP(f,m,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&m.length+f.length>1&&(d.result=`(?:${d.result})`),Sn.cache[c]=d,d.result};function FP(e,t,r){let n=hl(e,t,"-",!1,r)||[],i=hl(t,e,"",!1,r)||[],a=hl(e,t,"-?",!0,r)||[];return n.concat(a).concat(i).join("|")}function PP(e,t){let r=1,n=1,i=ux(e,r),a=new Set([t]);for(;e<=i&&i<=t;)a.add(i),r+=1,i=ux(e,r);for(i=px(t+1,n)-1;e<i&&i<=t;)a.add(i),n+=1,i=px(t+1,n)-1;return a=[...a],a.sort(IP),a}function TP(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=kP(e,t),i=n.length,a="",o=0;for(let s=0;s<i;s++){let[c,u]=n[s];c===u?a+=c:c!=="0"||u!=="9"?a+=RP(c,u,r):o++}return o&&(a+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:a,count:[o],digits:i}}function sx(e,t,r,n){let i=PP(e,t),a=[],o=e,s;for(let c=0;c<i.length;c++){let u=i[c],p=TP(String(o),String(u),n),l="";if(!r.isPadded&&s&&s.pattern===p.pattern){s.count.length>1&&s.count.pop(),s.count.push(p.count[0]),s.string=s.pattern+lx(s.count),o=u+1;continue}r.isPadded&&(l=_P(u,r,n)),p.string=l+p.pattern+lx(p.count),a.push(p),o=u+1,s=p}return a}function hl(e,t,r,n,i){let a=[];for(let o of e){let{string:s}=o;!n&&!cx(t,"string",s)&&a.push(r+s),n&&cx(t,"string",s)&&a.push(r+s)}return a}function kP(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function IP(e,t){return e>t?1:t>e?-1:0}function cx(e,t,r){return e.some(n=>n[t]===r)}function ux(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function px(e,t){return e-e%Math.pow(10,t)}function lx(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function RP(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function dx(e){return/^-?(0+)\d/.test(e)}function _P(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Sn.cache={};Sn.clearCache=()=>Sn.cache={};fx.exports=Sn});var yl=v((YJ,Dx)=>{"use strict";var BP=require("util"),hx=mx(),gx=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),OP=e=>t=>e===!0?Number(t):String(t),vl=e=>typeof e=="number"||typeof e=="string"&&e!=="",No=e=>Number.isInteger(+e),xl=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},NP=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,$P=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},zs=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},LP=(e,t,r)=>{e.negatives.sort((s,c)=>s<c?-1:s>c?1:0),e.positives.sort((s,c)=>s<c?-1:s>c?1:0);let n=t.capture?"":"?:",i="",a="",o;return e.positives.length&&(i=e.positives.map(s=>zs(String(s),r)).join("|")),e.negatives.length&&(a=`-(${n}${e.negatives.map(s=>zs(String(s),r)).join("|")})`),i&&a?o=`${i}|${a}`:o=i||a,t.wrap?`(${n}${o})`:o},vx=(e,t,r,n)=>{if(r)return hx(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let a=String.fromCharCode(t);return`[${i}-${a}]`},xx=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return hx(e,t,r)},yx=(...e)=>new RangeError("Invalid range arguments: "+BP.inspect(...e)),bx=(e,t,r)=>{if(r.strictRanges===!0)throw yx([e,t]);return[]},jP=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},MP=(e,t,r=1,n={})=>{let i=Number(e),a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(n.strictRanges===!0)throw yx([e,t]);return[]}i===0&&(i=0),a===0&&(a=0);let o=i>a,s=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let p=xl(s)||xl(c)||xl(u),l=p?Math.max(s.length,c.length,u.length):0,d=p===!1&&NP(e,t,n)===!1,m=n.transform||OP(d);if(n.toRegex&&r===1)return vx(zs(e,l),zs(t,l),!0,n);let f={negatives:[],positives:[]},g=w=>f[w<0?"negatives":"positives"].push(Math.abs(w)),h=[],x=0;for(;o?i>=a:i<=a;)n.toRegex===!0&&r>1?g(i):h.push($P(m(i,x),l,d)),i=o?i-r:i+r,x++;return n.toRegex===!0?r>1?LP(f,n,l):xx(h,null,{wrap:!1,...n}):h},qP=(e,t,r=1,n={})=>{if(!No(e)&&e.length>1||!No(t)&&t.length>1)return bx(e,t,n);let i=n.transform||(d=>String.fromCharCode(d)),a=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),s=a>o,c=Math.min(a,o),u=Math.max(a,o);if(n.toRegex&&r===1)return vx(c,u,!1,n);let p=[],l=0;for(;s?a>=o:a<=o;)p.push(i(a,l)),a=s?a-r:a+r,l++;return n.toRegex===!0?xx(p,null,{wrap:!1,options:n}):p},Us=(e,t,r,n={})=>{if(t==null&&vl(e))return[e];if(!vl(e)||!vl(t))return bx(e,t,n);if(typeof r=="function")return Us(e,t,1,{transform:r});if(gx(r))return Us(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,No(r)?No(e)&&No(t)?MP(e,t,r,i):qP(e,t,Math.max(Math.abs(r),1),i):r!=null&&!gx(r)?jP(r,i):Us(e,t,1,r)};Dx.exports=Us});var Ex=v((XJ,Cx)=>{"use strict";var UP=yl(),wx=Ms(),zP=(e,t={})=>{let r=(n,i={})=>{let a=wx.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,s=a===!0||o===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return s?c+n.value:"(";if(n.type==="close")return s?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let p=wx.reduce(n.nodes),l=UP(...p,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(l.length!==0)return p.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let p of n.nodes)u+=r(p,n);return u};return r(e)};Cx.exports=zP});var Fx=v((ZJ,Ax)=>{"use strict";var HP=yl(),Sx=qs(),gi=Ms(),An=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?gi.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let a of i)n.push(An(a,t,r));else for(let a of t)r===!0&&typeof a=="string"&&(a=`{${a}}`),n.push(Array.isArray(a)?An(i,a,r):i+a);return gi.flatten(n)},VP=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,a={})=>{i.queue=[];let o=a,s=a.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,s=o.queue;if(i.invalid||i.dollar){s.push(An(s.pop(),Sx(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(An(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=gi.reduce(i.nodes);if(gi.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=HP(...l,t);d.length===0&&(d=Sx(i,t)),s.push(An(s.pop(),d)),i.nodes=[];return}let c=gi.encloseBrace(i),u=i.queue,p=i;for(;p.type!=="brace"&&p.type!=="root"&&p.parent;)p=p.parent,u=p.queue;for(let l=0;l<i.nodes.length;l++){let d=i.nodes[l];if(d.type==="comma"&&i.type==="brace"){l===1&&u.push(""),u.push("");continue}if(d.type==="close"){s.push(An(s.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(An(u.pop(),d.value));continue}d.nodes&&n(d,i)}return u};return gi.flatten(n(e))};Ax.exports=VP});var Tx=v((eQ,Px)=>{"use strict";Px.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
22
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Bx=v((tQ,_x)=>{"use strict";var KP=qs(),{MAX_LENGTH:kx,CHAR_BACKSLASH:bl,CHAR_BACKTICK:GP,CHAR_COMMA:WP,CHAR_DOT:JP,CHAR_LEFT_PARENTHESES:QP,CHAR_RIGHT_PARENTHESES:YP,CHAR_LEFT_CURLY_BRACE:XP,CHAR_RIGHT_CURLY_BRACE:ZP,CHAR_LEFT_SQUARE_BRACKET:Ix,CHAR_RIGHT_SQUARE_BRACKET:Rx,CHAR_DOUBLE_QUOTE:eT,CHAR_SINGLE_QUOTE:tT,CHAR_NO_BREAK_SPACE:rT,CHAR_ZERO_WIDTH_NOBREAK_SPACE:nT}=Tx(),iT=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(kx,r.maxLength):kx;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},a=[i],o=i,s=i,c=0,u=e.length,p=0,l=0,d,m=()=>e[p++],f=g=>{if(g.type==="text"&&s.type==="dot"&&(s.type="text"),s&&s.type==="text"&&g.type==="text"){s.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=s,s=g,g};for(f({type:"bos"});p<u;)if(o=a[a.length-1],d=m(),!(d===nT||d===rT)){if(d===bl){f({type:"text",value:(t.keepEscaping?d:"")+m()});continue}if(d===Rx){f({type:"text",value:"\\"+d});continue}if(d===Ix){c++;let g;for(;p<u&&(g=m());){if(d+=g,g===Ix){c++;continue}if(g===bl){d+=m();continue}if(g===Rx&&(c--,c===0))break}f({type:"text",value:d});continue}if(d===QP){o=f({type:"paren",nodes:[]}),a.push(o),f({type:"text",value:d});continue}if(d===YP){if(o.type!=="paren"){f({type:"text",value:d});continue}o=a.pop(),f({type:"text",value:d}),o=a[a.length-1];continue}if(d===eT||d===tT||d===GP){let g=d,h;for(t.keepQuotes!==!0&&(d="");p<u&&(h=m());){if(h===bl){d+=h+m();continue}if(h===g){t.keepQuotes===!0&&(d+=h);break}d+=h}f({type:"text",value:d});continue}if(d===XP){l++;let h={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=f(h),a.push(o),f({type:"open",value:d});continue}if(d===ZP){if(o.type!=="brace"){f({type:"text",value:d});continue}let g="close";o=a.pop(),o.close=!0,f({type:g,value:d}),l--,o=a[a.length-1];continue}if(d===WP&&l>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:KP(o)}]}f({type:"comma",value:d}),o.commas++;continue}if(d===JP&&l>0&&o.commas===0){let g=o.nodes;if(l===0||g.length===0){f({type:"text",value:d});continue}if(s.type==="dot"){if(o.range=[],s.value+=d,s.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,s.type="text";continue}o.ranges++,o.args=[];continue}if(s.type==="range"){g.pop();let h=g[g.length-1];h.value+=s.value+d,s=h,o.ranges--;continue}f({type:"dot",value:d});continue}f({type:"text",value:d})}do if(o=a.pop(),o.type!=="root"){o.nodes.forEach(x=>{x.nodes||(x.type==="open"&&(x.isOpen=!0),x.type==="close"&&(x.isClose=!0),x.nodes||(x.type="text"),x.invalid=!0)});let g=a[a.length-1],h=g.nodes.indexOf(o);g.nodes.splice(h,1,...o.nodes)}while(a.length>0);return f({type:"eos"}),i};_x.exports=iT});var $x=v((rQ,Nx)=>{"use strict";var Ox=qs(),oT=Ex(),aT=Fx(),sT=Bx(),Ft=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Ft.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Ft.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Ft.parse=(e,t={})=>sT(e,t);Ft.stringify=(e,t={})=>Ox(typeof e=="string"?Ft.parse(e,t):e,t);Ft.compile=(e,t={})=>(typeof e=="string"&&(e=Ft.parse(e,t)),oT(e,t));Ft.expand=(e,t={})=>{typeof e=="string"&&(e=Ft.parse(e,t));let r=aT(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Ft.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Ft.compile(e,t):Ft.expand(e,t);Nx.exports=Ft});var $o=v((nQ,Ux)=>{"use strict";var cT=require("path"),fr="\\\\/",Lx=`[^${fr}]`,Lr="\\.",uT="\\+",pT="\\?",Hs="\\/",lT="(?=.)",jx="[^/]",Dl=`(?:${Hs}|$)`,Mx=`(?:^|${Hs})`,wl=`${Lr}{1,2}${Dl}`,dT=`(?!${Lr})`,fT=`(?!${Mx}${wl})`,mT=`(?!${Lr}{0,1}${Dl})`,gT=`(?!${wl})`,hT=`[^.${Hs}]`,vT=`${jx}*?`,qx={DOT_LITERAL:Lr,PLUS_LITERAL:uT,QMARK_LITERAL:pT,SLASH_LITERAL:Hs,ONE_CHAR:lT,QMARK:jx,END_ANCHOR:Dl,DOTS_SLASH:wl,NO_DOT:dT,NO_DOTS:fT,NO_DOT_SLASH:mT,NO_DOTS_SLASH:gT,QMARK_NO_DOT:hT,STAR:vT,START_ANCHOR:Mx},xT={...qx,SLASH_LITERAL:`[${fr}]`,QMARK:Lx,STAR:`${Lx}*?`,DOTS_SLASH:`${Lr}{1,2}(?:[${fr}]|$)`,NO_DOT:`(?!${Lr})`,NO_DOTS:`(?!(?:^|[${fr}])${Lr}{1,2}(?:[${fr}]|$))`,NO_DOT_SLASH:`(?!${Lr}{0,1}(?:[${fr}]|$))`,NO_DOTS_SLASH:`(?!${Lr}{1,2}(?:[${fr}]|$))`,QMARK_NO_DOT:`[^.${fr}]`,START_ANCHOR:`(?:^|[${fr}])`,END_ANCHOR:`(?:[${fr}]|$)`},yT={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Ux.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:yT,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:cT.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?xT:qx}}});var Lo=v(lt=>{"use strict";var bT=require("path"),DT=process.platform==="win32",{REGEX_BACKSLASH:wT,REGEX_REMOVE_BACKSLASH:CT,REGEX_SPECIAL_CHARS:ET,REGEX_SPECIAL_CHARS_GLOBAL:ST}=$o();lt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);lt.hasRegexChars=e=>ET.test(e);lt.isRegexChar=e=>e.length===1&&lt.hasRegexChars(e);lt.escapeRegex=e=>e.replace(ST,"\\$1");lt.toPosixSlashes=e=>e.replace(wT,"/");lt.removeBackslashes=e=>e.replace(CT,t=>t==="\\"?"":t);lt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};lt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:DT===!0||bT.sep==="\\";lt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?lt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};lt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};lt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",a=`${n}(?:${e})${i}`;return t.negated===!0&&(a=`(?:^(?!${a}).*$)`),a}});var Qx=v((oQ,Jx)=>{"use strict";var zx=Lo(),{CHAR_ASTERISK:Cl,CHAR_AT:AT,CHAR_BACKWARD_SLASH:jo,CHAR_COMMA:FT,CHAR_DOT:El,CHAR_EXCLAMATION_MARK:Sl,CHAR_FORWARD_SLASH:Wx,CHAR_LEFT_CURLY_BRACE:Al,CHAR_LEFT_PARENTHESES:Fl,CHAR_LEFT_SQUARE_BRACKET:PT,CHAR_PLUS:TT,CHAR_QUESTION_MARK:Hx,CHAR_RIGHT_CURLY_BRACE:kT,CHAR_RIGHT_PARENTHESES:Vx,CHAR_RIGHT_SQUARE_BRACKET:IT}=$o(),Kx=e=>e===Wx||e===jo,Gx=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},RT=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,a=[],o=[],s=[],c=e,u=-1,p=0,l=0,d=!1,m=!1,f=!1,g=!1,h=!1,x=!1,w=!1,y=!1,F=!1,E=!1,S=0,I,k,R={value:"",depth:0,isGlob:!1},P=()=>u>=n,b=()=>c.charCodeAt(u+1),O=()=>(I=k,c.charCodeAt(++u));for(;u<n;){k=O();let ue;if(k===jo){w=R.backslashes=!0,k=O(),k===Al&&(x=!0);continue}if(x===!0||k===Al){for(S++;P()!==!0&&(k=O());){if(k===jo){w=R.backslashes=!0,O();continue}if(k===Al){S++;continue}if(x!==!0&&k===El&&(k=O())===El){if(d=R.isBrace=!0,f=R.isGlob=!0,E=!0,i===!0)continue;break}if(x!==!0&&k===FT){if(d=R.isBrace=!0,f=R.isGlob=!0,E=!0,i===!0)continue;break}if(k===kT&&(S--,S===0)){x=!1,d=R.isBrace=!0,E=!0;break}}if(i===!0)continue;break}if(k===Wx){if(a.push(u),o.push(R),R={value:"",depth:0,isGlob:!1},E===!0)continue;if(I===El&&u===p+1){p+=2;continue}l=u+1;continue}if(r.noext!==!0&&(k===TT||k===AT||k===Cl||k===Hx||k===Sl)===!0&&b()===Fl){if(f=R.isGlob=!0,g=R.isExtglob=!0,E=!0,k===Sl&&u===p&&(F=!0),i===!0){for(;P()!==!0&&(k=O());){if(k===jo){w=R.backslashes=!0,k=O();continue}if(k===Vx){f=R.isGlob=!0,E=!0;break}}continue}break}if(k===Cl){if(I===Cl&&(h=R.isGlobstar=!0),f=R.isGlob=!0,E=!0,i===!0)continue;break}if(k===Hx){if(f=R.isGlob=!0,E=!0,i===!0)continue;break}if(k===PT){for(;P()!==!0&&(ue=O());){if(ue===jo){w=R.backslashes=!0,O();continue}if(ue===IT){m=R.isBracket=!0,f=R.isGlob=!0,E=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&k===Sl&&u===p){y=R.negated=!0,p++;continue}if(r.noparen!==!0&&k===Fl){if(f=R.isGlob=!0,i===!0){for(;P()!==!0&&(k=O());){if(k===Fl){w=R.backslashes=!0,k=O();continue}if(k===Vx){E=!0;break}}continue}break}if(f===!0){if(E=!0,i===!0)continue;break}}r.noext===!0&&(g=!1,f=!1);let N=c,K="",D="";p>0&&(K=c.slice(0,p),c=c.slice(p),l-=p),N&&f===!0&&l>0?(N=c.slice(0,l),D=c.slice(l)):f===!0?(N="",D=c):N=c,N&&N!==""&&N!=="/"&&N!==c&&Kx(N.charCodeAt(N.length-1))&&(N=N.slice(0,-1)),r.unescape===!0&&(D&&(D=zx.removeBackslashes(D)),N&&w===!0&&(N=zx.removeBackslashes(N)));let C={prefix:K,input:e,start:p,base:N,glob:D,isBrace:d,isBracket:m,isGlob:f,isExtglob:g,isGlobstar:h,negated:y,negatedExtglob:F};if(r.tokens===!0&&(C.maxDepth=0,Kx(k)||o.push(R),C.tokens=o),r.parts===!0||r.tokens===!0){let ue;for(let G=0;G<a.length;G++){let vt=ue?ue+1:p,ot=a[G],xt=e.slice(vt,ot);r.tokens&&(G===0&&p!==0?(o[G].isPrefix=!0,o[G].value=K):o[G].value=xt,Gx(o[G]),C.maxDepth+=o[G].depth),(G!==0||xt!=="")&&s.push(xt),ue=ot}if(ue&&ue+1<e.length){let G=e.slice(ue+1);s.push(G),r.tokens&&(o[o.length-1].value=G,Gx(o[o.length-1]),C.maxDepth+=o[o.length-1].depth)}C.slashes=a,C.parts=s}return C};Jx.exports=RT});var Zx=v((aQ,Xx)=>{"use strict";var Vs=$o(),Pt=Lo(),{MAX_LENGTH:Ks,POSIX_REGEX_SOURCE:_T,REGEX_NON_SPECIAL_CHARS:BT,REGEX_SPECIAL_CHARS_BACKREF:OT,REPLACEMENTS:Yx}=Vs,NT=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>Pt.escapeRegex(i)).join("..")}return r},hi=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Pl=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Yx[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Ks,r.maxLength):Ks,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let a={type:"bos",value:"",output:r.prepend||""},o=[a],s=r.capture?"":"?:",c=Pt.isWindows(t),u=Vs.globChars(c),p=Vs.extglobChars(u),{DOT_LITERAL:l,PLUS_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:f,DOTS_SLASH:g,NO_DOT:h,NO_DOT_SLASH:x,NO_DOTS_SLASH:w,QMARK:y,QMARK_NO_DOT:F,STAR:E,START_ANCHOR:S}=u,I=B=>`(${s}(?:(?!${S}${B.dot?g:l}).)*?)`,k=r.dot?"":h,R=r.dot?y:F,P=r.bash===!0?I(r):E;r.capture&&(P=`(${P})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let b={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Pt.removePrefix(e,b),i=e.length;let O=[],N=[],K=[],D=a,C,ue=()=>b.index===i-1,G=b.peek=(B=1)=>e[b.index+B],vt=b.advance=()=>e[++b.index]||"",ot=()=>e.slice(b.index+1),xt=(B="",ge=0)=>{b.consumed+=B,b.index+=ge},qa=B=>{b.output+=B.output!=null?B.output:B.value,xt(B.value)},E2=()=>{let B=1;for(;G()==="!"&&(G(2)!=="("||G(3)==="?");)vt(),b.start++,B++;return B%2===0?!1:(b.negated=!0,b.start++,!0)},Ua=B=>{b[B]++,K.push(B)},pn=B=>{b[B]--,K.pop()},z=B=>{if(D.type==="globstar"){let ge=b.braces>0&&(B.type==="comma"||B.type==="brace"),_=B.extglob===!0||O.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!ge&&!_&&(b.output=b.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=P,b.output+=D.output)}if(O.length&&B.type!=="paren"&&(O[O.length-1].inner+=B.value),(B.value||B.output)&&qa(B),D&&D.type==="text"&&B.type==="text"){D.value+=B.value,D.output=(D.output||"")+B.value;return}B.prev=D,o.push(B),D=B},za=(B,ge)=>{let _={...p[ge],conditions:1,inner:""};_.prev=D,_.parens=b.parens,_.output=b.output;let U=(r.capture?"(":"")+_.open;Ua("parens"),z({type:B,value:ge,output:b.output?"":f}),z({type:"paren",extglob:!0,value:vt(),output:U}),O.push(_)},S2=B=>{let ge=B.close+(r.capture?")":""),_;if(B.type==="negate"){let U=P;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(U=I(r)),(U!==P||ue()||/^\)+$/.test(ot()))&&(ge=B.close=`)$))${U}`),B.inner.includes("*")&&(_=ot())&&/^\.[^\\/.]+$/.test(_)){let be=Pl(_,{...t,fastpaths:!1}).output;ge=B.close=`)${be})${U})`}B.prev.type==="bos"&&(b.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:C,output:ge}),pn("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let B=!1,ge=e.replace(OT,(_,U,be,Je,ke,wu)=>Je==="\\"?(B=!0,_):Je==="?"?U?U+Je+(ke?y.repeat(ke.length):""):wu===0?R+(ke?y.repeat(ke.length):""):y.repeat(be.length):Je==="."?l.repeat(be.length):Je==="*"?U?U+Je+(ke?P:""):P:U?_:`\\${_}`);return B===!0&&(r.unescape===!0?ge=ge.replace(/\\/g,""):ge=ge.replace(/\\+/g,_=>_.length%2===0?"\\\\":_?"\\":"")),ge===e&&r.contains===!0?(b.output=e,b):(b.output=Pt.wrapOutput(ge,b,t),b)}for(;!ue();){if(C=vt(),C==="\0")continue;if(C==="\\"){let _=G();if(_==="/"&&r.bash!==!0||_==="."||_===";")continue;if(!_){C+="\\",z({type:"text",value:C});continue}let U=/^\\+/.exec(ot()),be=0;if(U&&U[0].length>2&&(be=U[0].length,b.index+=be,be%2!==0&&(C+="\\")),r.unescape===!0?C=vt():C+=vt(),b.brackets===0){z({type:"text",value:C});continue}}if(b.brackets>0&&(C!=="]"||D.value==="["||D.value==="[^")){if(r.posix!==!1&&C===":"){let _=D.value.slice(1);if(_.includes("[")&&(D.posix=!0,_.includes(":"))){let U=D.value.lastIndexOf("["),be=D.value.slice(0,U),Je=D.value.slice(U+2),ke=_T[Je];if(ke){D.value=be+ke,b.backtrack=!0,vt(),!a.output&&o.indexOf(D)===1&&(a.output=f);continue}}}(C==="["&&G()!==":"||C==="-"&&G()==="]")&&(C=`\\${C}`),C==="]"&&(D.value==="["||D.value==="[^")&&(C=`\\${C}`),r.posix===!0&&C==="!"&&D.value==="["&&(C="^"),D.value+=C,qa({value:C});continue}if(b.quotes===1&&C!=='"'){C=Pt.escapeRegex(C),D.value+=C,qa({value:C});continue}if(C==='"'){b.quotes=b.quotes===1?0:1,r.keepQuotes===!0&&z({type:"text",value:C});continue}if(C==="("){Ua("parens"),z({type:"paren",value:C});continue}if(C===")"){if(b.parens===0&&r.strictBrackets===!0)throw new SyntaxError(hi("opening","("));let _=O[O.length-1];if(_&&b.parens===_.parens+1){S2(O.pop());continue}z({type:"paren",value:C,output:b.parens?")":"\\)"}),pn("parens");continue}if(C==="["){if(r.nobracket===!0||!ot().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));C=`\\${C}`}else Ua("brackets");z({type:"bracket",value:C});continue}if(C==="]"){if(r.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){z({type:"text",value:C,output:`\\${C}`});continue}if(b.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(hi("opening","["));z({type:"text",value:C,output:`\\${C}`});continue}pn("brackets");let _=D.value.slice(1);if(D.posix!==!0&&_[0]==="^"&&!_.includes("/")&&(C=`/${C}`),D.value+=C,qa({value:C}),r.literalBrackets===!1||Pt.hasRegexChars(_))continue;let U=Pt.escapeRegex(D.value);if(b.output=b.output.slice(0,-D.value.length),r.literalBrackets===!0){b.output+=U,D.value=U;continue}D.value=`(${s}${U}|${D.value})`,b.output+=D.value;continue}if(C==="{"&&r.nobrace!==!0){Ua("braces");let _={type:"brace",value:C,output:"(",outputIndex:b.output.length,tokensIndex:b.tokens.length};N.push(_),z(_);continue}if(C==="}"){let _=N[N.length-1];if(r.nobrace===!0||!_){z({type:"text",value:C,output:C});continue}let U=")";if(_.dots===!0){let be=o.slice(),Je=[];for(let ke=be.length-1;ke>=0&&(o.pop(),be[ke].type!=="brace");ke--)be[ke].type!=="dots"&&Je.unshift(be[ke].value);U=NT(Je,r),b.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){let be=b.output.slice(0,_.outputIndex),Je=b.tokens.slice(_.tokensIndex);_.value=_.output="\\{",C=U="\\}",b.output=be;for(let ke of Je)b.output+=ke.output||ke.value}z({type:"brace",value:C,output:U}),pn("braces"),N.pop();continue}if(C==="|"){O.length>0&&O[O.length-1].conditions++,z({type:"text",value:C});continue}if(C===","){let _=C,U=N[N.length-1];U&&K[K.length-1]==="braces"&&(U.comma=!0,_="|"),z({type:"comma",value:C,output:_});continue}if(C==="/"){if(D.type==="dot"&&b.index===b.start+1){b.start=b.index+1,b.consumed="",b.output="",o.pop(),D=a;continue}z({type:"slash",value:C,output:m});continue}if(C==="."){if(b.braces>0&&D.type==="dot"){D.value==="."&&(D.output=l);let _=N[N.length-1];D.type="dots",D.output+=C,D.value+=C,_.dots=!0;continue}if(b.braces+b.parens===0&&D.type!=="bos"&&D.type!=="slash"){z({type:"text",value:C,output:l});continue}z({type:"dot",value:C,output:l});continue}if(C==="?"){if(!(D&&D.value==="(")&&r.noextglob!==!0&&G()==="("&&G(2)!=="?"){za("qmark",C);continue}if(D&&D.type==="paren"){let U=G(),be=C;if(U==="<"&&!Pt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(U)||U==="<"&&!/<([!=]|\w+>)/.test(ot()))&&(be=`\\${C}`),z({type:"text",value:C,output:be});continue}if(r.dot!==!0&&(D.type==="slash"||D.type==="bos")){z({type:"qmark",value:C,output:F});continue}z({type:"qmark",value:C,output:y});continue}if(C==="!"){if(r.noextglob!==!0&&G()==="("&&(G(2)!=="?"||!/[!=<:]/.test(G(3)))){za("negate",C);continue}if(r.nonegate!==!0&&b.index===0){E2();continue}}if(C==="+"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){za("plus",C);continue}if(D&&D.value==="("||r.regex===!1){z({type:"plus",value:C,output:d});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||b.parens>0){z({type:"plus",value:C});continue}z({type:"plus",value:d});continue}if(C==="@"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){z({type:"at",extglob:!0,value:C,output:""});continue}z({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);let _=BT.exec(ot());_&&(C+=_[0],b.index+=_[0].length),z({type:"text",value:C});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=C,D.output=P,b.backtrack=!0,b.globstar=!0,xt(C);continue}let B=ot();if(r.noextglob!==!0&&/^\([^?]/.test(B)){za("star",C);continue}if(D.type==="star"){if(r.noglobstar===!0){xt(C);continue}let _=D.prev,U=_.prev,be=_.type==="slash"||_.type==="bos",Je=U&&(U.type==="star"||U.type==="globstar");if(r.bash===!0&&(!be||B[0]&&B[0]!=="/")){z({type:"star",value:C,output:""});continue}let ke=b.braces>0&&(_.type==="comma"||_.type==="brace"),wu=O.length&&(_.type==="pipe"||_.type==="paren");if(!be&&_.type!=="paren"&&!ke&&!wu){z({type:"star",value:C,output:""});continue}for(;B.slice(0,3)==="/**";){let Ha=e[b.index+4];if(Ha&&Ha!=="/")break;B=B.slice(3),xt("/**",3)}if(_.type==="bos"&&ue()){D.type="globstar",D.value+=C,D.output=I(r),b.output=D.output,b.globstar=!0,xt(C);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!Je&&ue()){b.output=b.output.slice(0,-(_.output+D.output).length),_.output=`(?:${_.output}`,D.type="globstar",D.output=I(r)+(r.strictSlashes?")":"|$)"),D.value+=C,b.globstar=!0,b.output+=_.output+D.output,xt(C);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&B[0]==="/"){let Ha=B[1]!==void 0?"|$":"";b.output=b.output.slice(0,-(_.output+D.output).length),_.output=`(?:${_.output}`,D.type="globstar",D.output=`${I(r)}${m}|${m}${Ha})`,D.value+=C,b.output+=_.output+D.output,b.globstar=!0,xt(C+vt()),z({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&B[0]==="/"){D.type="globstar",D.value+=C,D.output=`(?:^|${m}|${I(r)}${m})`,b.output=D.output,b.globstar=!0,xt(C+vt()),z({type:"slash",value:"/",output:""});continue}b.output=b.output.slice(0,-D.output.length),D.type="globstar",D.output=I(r),D.value+=C,b.output+=D.output,b.globstar=!0,xt(C);continue}let ge={type:"star",value:C,output:P};if(r.bash===!0){ge.output=".*?",(D.type==="bos"||D.type==="slash")&&(ge.output=k+ge.output),z(ge);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&r.regex===!0){ge.output=C,z(ge);continue}(b.index===b.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(b.output+=x,D.output+=x):r.dot===!0?(b.output+=w,D.output+=w):(b.output+=k,D.output+=k),G()!=="*"&&(b.output+=f,D.output+=f)),z(ge)}for(;b.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));b.output=Pt.escapeLast(b.output,"["),pn("brackets")}for(;b.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing",")"));b.output=Pt.escapeLast(b.output,"("),pn("parens")}for(;b.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing","}"));b.output=Pt.escapeLast(b.output,"{"),pn("braces")}if(r.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&z({type:"maybe_slash",value:"",output:`${m}?`}),b.backtrack===!0){b.output="";for(let B of b.tokens)b.output+=B.output!=null?B.output:B.value,B.suffix&&(b.output+=B.suffix)}return b};Pl.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Ks,r.maxLength):Ks,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Yx[e]||e;let a=Pt.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:p,NO_DOTS:l,NO_DOTS_SLASH:d,STAR:m,START_ANCHOR:f}=Vs.globChars(a),g=r.dot?l:p,h=r.dot?d:p,x=r.capture?"":"?:",w={negated:!1,prefix:""},y=r.bash===!0?".*?":m;r.capture&&(y=`(${y})`);let F=k=>k.noglobstar===!0?y:`(${x}(?:(?!${f}${k.dot?u:o}).)*?)`,E=k=>{switch(k){case"*":return`${g}${c}${y}`;case".*":return`${o}${c}${y}`;case"*.*":return`${g}${y}${o}${c}${y}`;case"*/*":return`${g}${y}${s}${c}${h}${y}`;case"**":return g+F(r);case"**/*":return`(?:${g}${F(r)}${s})?${h}${c}${y}`;case"**/*.*":return`(?:${g}${F(r)}${s})?${h}${y}${o}${c}${y}`;case"**/.*":return`(?:${g}${F(r)}${s})?${o}${c}${y}`;default:{let R=/^(.*?)\.(\w+)$/.exec(k);if(!R)return;let P=E(R[1]);return P?P+o+R[2]:void 0}}},S=Pt.removePrefix(e,w),I=E(S);return I&&r.strictSlashes!==!0&&(I+=`${s}?`),I};Xx.exports=Pl});var ty=v((sQ,ey)=>{"use strict";var $T=require("path"),LT=Qx(),Tl=Zx(),kl=Lo(),jT=$o(),MT=e=>e&&typeof e=="object"&&!Array.isArray(e),Fe=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(d=>Fe(d,t,r));return d=>{for(let m of p){let f=m(d);if(f)return f}return!1}}let n=MT(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},a=kl.isWindows(t),o=n?Fe.compileRe(e,t):Fe.makeRe(e,t,!1,!0),s=o.state;delete o.state;let c=()=>!1;if(i.ignore){let p={...t,ignore:null,onMatch:null,onResult:null};c=Fe(i.ignore,p,r)}let u=(p,l=!1)=>{let{isMatch:d,match:m,output:f}=Fe.test(p,o,t,{glob:e,posix:a}),g={glob:e,state:s,regex:o,posix:a,input:p,output:f,match:m,isMatch:d};return typeof i.onResult=="function"&&i.onResult(g),d===!1?(g.isMatch=!1,l?g:!1):c(p)?(typeof i.onIgnore=="function"&&i.onIgnore(g),g.isMatch=!1,l?g:!1):(typeof i.onMatch=="function"&&i.onMatch(g),l?g:!0)};return r&&(u.state=s),u};Fe.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let a=r||{},o=a.format||(i?kl.toPosixSlashes:null),s=e===n,c=s&&o?o(e):e;return s===!1&&(c=o?o(e):e,s=c===n),(s===!1||a.capture===!0)&&(a.matchBase===!0||a.basename===!0?s=Fe.matchBase(e,t,r,i):s=t.exec(c)),{isMatch:!!s,match:s,output:c}};Fe.matchBase=(e,t,r,n=kl.isWindows(r))=>(t instanceof RegExp?t:Fe.makeRe(t,r)).test($T.basename(e));Fe.isMatch=(e,t,r)=>Fe(t,r)(e);Fe.parse=(e,t)=>Array.isArray(e)?e.map(r=>Fe.parse(r,t)):Tl(e,{...t,fastpaths:!1});Fe.scan=(e,t)=>LT(e,t);Fe.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},a=i.contains?"":"^",o=i.contains?"":"$",s=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let c=Fe.toRegex(s,t);return n===!0&&(c.state=e),c};Fe.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Tl.fastpaths(e,t)),i.output||(i=Tl(e,t)),Fe.compileRe(i,t,r,n)};Fe.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Fe.constants=jT;ey.exports=Fe});var ny=v((cQ,ry)=>{"use strict";ry.exports=ty()});var Rl=v((uQ,cy)=>{"use strict";var oy=require("util"),ay=$x(),mr=ny(),Il=Lo(),iy=e=>e===""||e==="./",sy=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},xe=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,a=new Set,o=0,s=p=>{a.add(p.output),r&&r.onResult&&r.onResult(p)};for(let p=0;p<t.length;p++){let l=mr(String(t[p]),{...r,onResult:s},!0),d=l.state.negated||l.state.negatedExtglob;d&&o++;for(let m of e){let f=l(m,!0);(d?!f.isMatch:f.isMatch)&&(d?n.add(f.output):(n.delete(f.output),i.add(f.output)))}}let u=(o===t.length?[...a]:[...i]).filter(p=>!n.has(p));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(p=>p.replace(/\\/g,"")):t}return u};xe.match=xe;xe.matcher=(e,t)=>mr(e,t);xe.isMatch=(e,t,r)=>mr(t,r)(e);xe.any=xe.isMatch;xe.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],a=s=>{r.onResult&&r.onResult(s),i.push(s.output)},o=new Set(xe(e,t,{...r,onResult:a}));for(let s of i)o.has(s)||n.add(s);return[...n]};xe.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${oy.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>xe.contains(e,n,r));if(typeof t=="string"){if(iy(e)||iy(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return xe.isMatch(e,t,{...r,contains:!0})};xe.matchKeys=(e,t,r)=>{if(!Il.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=xe(Object.keys(e),t,r),i={};for(let a of n)i[a]=e[a];return i};xe.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let a=mr(String(i),r);if(n.some(o=>a(o)))return!0}return!1};xe.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let a=mr(String(i),r);if(!n.every(o=>a(o)))return!1}return!0};xe.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${oy.inspect(e)}"`);return[].concat(t).every(n=>mr(n,r)(e))};xe.capture=(e,t,r)=>{let n=Il.isWindows(r),a=mr.makeRe(String(e),{...r,capture:!0}).exec(n?Il.toPosixSlashes(t):t);if(a)return a.slice(1).map(o=>o===void 0?"":o)};xe.makeRe=(...e)=>mr.makeRe(...e);xe.scan=(...e)=>mr.scan(...e);xe.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of ay(String(n),t))r.push(mr.parse(i,t));return r};xe.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!sy(e)?[e]:ay(e,t)};xe.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return xe.braces(e,{...t,expand:!0})};xe.hasBraces=sy;cy.exports=xe});var gy=v(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.match=void 0;var dy=tx(),qT=Rl(),UT=require("url"),uy=Ls();function zT(e,t,r){if(py(e))return fy(e,t);if(ly(e))return my(e,t);if(Array.isArray(e)){if(e.every(py))return VT(e,t);if(e.every(ly))return HT(e,t);throw new Error(uy.ERRORS.ERR_CONTEXT_MATCHER_INVALID_ARRAY)}if(typeof e=="function"){let n=_l(t);return e(n,r)}throw new Error(uy.ERRORS.ERR_CONTEXT_MATCHER_GENERIC)}Gs.match=zT;function fy(e,t){return _l(t).indexOf(e)===0}function my(e,t){let r=_l(t),n=qT([r],e);return n&&n.length>0}function HT(e,t){return my(e,t)}function VT(e,t){let r=!1;for(let n of e)if(fy(n,t)){r=!0;break}return r}function _l(e){return e&&UT.parse(e).pathname}function py(e){return typeof e=="string"&&!dy(e)}function ly(e){return dy(e)}});var vy=v(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.getHandlers=vi.init=void 0;var KT=mi(),Ws=(0,KT.getInstance)();function GT(e,t){let r=hy(t);for(let n of Object.keys(r))e.on(n,r[n]);e.on("econnreset",(n,i,a,o)=>{Ws.error("[HPM] ECONNRESET: %O",n)}),e.on("proxyReqWs",(n,i,a,o,s)=>{a.on("error",c=>{Ws.error("[HPM] WebSocket error: %O",c)})}),Ws.debug("[HPM] Subscribed to http-proxy events:",Object.keys(r))}vi.init=GT;function hy(e){let t={error:"onError",proxyReq:"onProxyReq",proxyReqWs:"onProxyReqWs",proxyRes:"onProxyRes",open:"onOpen",close:"onClose"},r={};for(let[n,i]of Object.entries(t)){let a=e?e[i]:null;typeof a=="function"&&(r[n]=a)}return typeof r.error!="function"&&(r.error=WT),typeof r.close!="function"&&(r.close=JT),r}vi.getHandlers=hy;function WT(e,t,r){if(!t&&!r)throw e;let n=t.headers&&t.headers.host,i=e.code;if(r.writeHead&&!r.headersSent)if(/HPE_INVALID/.test(i))r.writeHead(502);else switch(i){case"ECONNRESET":case"ENOTFOUND":case"ECONNREFUSED":case"ETIMEDOUT":r.writeHead(504);break;default:r.writeHead(500)}r.end(`Error occurred while trying to proxy: ${n}${t.url}`)}function JT(e,t,r){Ws.info("[HPM] Client disconnected")}});var by=v(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.createPathRewriter=void 0;var xy=$s(),QT=Ls(),YT=mi(),yy=(0,YT.getInstance)();function XT(e){let t;if(!ZT(e))return;if(typeof e=="function")return e;return t=e5(e),r;function r(n){let i=n;for(let a of t)if(a.regex.test(n)){i=i.replace(a.regex,a.value),yy.debug('[HPM] Rewriting path from "%s" to "%s"',n,i);break}return i}}Js.createPathRewriter=XT;function ZT(e){if(typeof e=="function")return!0;if(xy(e))return Object.keys(e).length!==0;if(e==null)return!1;throw new Error(QT.ERRORS.ERR_PATH_REWRITER_CONFIG)}function e5(e){let t=[];if(xy(e))for(let[r]of Object.entries(e))t.push({regex:new RegExp(r),value:e[r]}),yy.info('[HPM] Proxy rewrite rule created: "%s" ~> "%s"',r,e[r]);return t}});var wy=v(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.getTarget=void 0;var t5=$s(),r5=mi(),Dy=(0,r5.getInstance)();async function n5(e,t){let r,n=t.router;return t5(n)?r=i5(e,n):typeof n=="function"&&(r=await n(e)),r}Qs.getTarget=n5;function i5(e,t){let r,n=e.headers.host,i=e.url,a=n+i;for(let[o]of Object.entries(t))if(o5(o)){if(a.indexOf(o)>-1){r=t[o],Dy.debug('[HPM] Router table match: "%s"',o);break}}else if(o===n){r=t[o],Dy.debug('[HPM] Router table match: "%s"',n);break}return r}function o5(e){return e.indexOf("/")>-1}});var Ey=v(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.HttpProxyMiddleware=void 0;var a5=V0(),s5=Q0(),c5=gy(),u5=vy(),Cy=mi(),p5=by(),l5=wy(),Bl=class{constructor(t,r){this.logger=(0,Cy.getInstance)(),this.wsInternalSubscribed=!1,this.serverOnCloseSubscribed=!1,this.middleware=async(n,i,a)=>{var o,s;if(this.shouldProxy(this.config.context,n))try{let u=await this.prepareProxyRequest(n);this.proxy.web(n,i,u)}catch(u){a(u)}else a();let c=(s=(o=n.socket)!==null&&o!==void 0?o:n.connection)===null||s===void 0?void 0:s.server;c&&!this.serverOnCloseSubscribed&&(c.on("close",()=>{this.logger.info("[HPM] server close signal received: closing proxy server"),this.proxy.close()}),this.serverOnCloseSubscribed=!0),this.proxyOptions.ws===!0&&this.catchUpgradeRequest(c)},this.catchUpgradeRequest=n=>{this.wsInternalSubscribed||(n.on("upgrade",this.handleUpgrade),this.wsInternalSubscribed=!0)},this.handleUpgrade=async(n,i,a)=>{if(this.shouldProxy(this.config.context,n)){let o=await this.prepareProxyRequest(n);this.proxy.ws(n,i,a,o),this.logger.info("[HPM] Upgrading to WebSocket")}},this.shouldProxy=(n,i)=>{try{let a=i.originalUrl||i.url;return c5.match(n,a,i)}catch(a){return this.logger.error(a),!1}},this.prepareProxyRequest=async n=>{n.url=n.originalUrl||n.url;let i=n.url,a=Object.assign({},this.proxyOptions);if(await this.applyRouter(n,a),await this.applyPathRewrite(n,this.pathRewriter),this.proxyOptions.logLevel==="debug"){let o=(0,Cy.getArrow)(i,n.url,this.proxyOptions.target,a.target);this.logger.debug("[HPM] %s %s %s %s",n.method,i,o,a.target)}return a},this.applyRouter=async(n,i)=>{let a;i.router&&(a=await l5.getTarget(n,i),a&&(this.logger.debug('[HPM] Router new target: %s -> "%s"',i.target,a),i.target=a))},this.applyPathRewrite=async(n,i)=>{if(i){let a=await i(n.url,n);typeof a=="string"?n.url=a:this.logger.info("[HPM] pathRewrite: No rewritten path found. (%s)",n.url)}},this.logError=(n,i,a,o)=>{var s;let u=`${((s=i.headers)===null||s===void 0?void 0:s.host)||i.hostname||i.host}${i.url}`,p=`${o?.href}`;this.logger.error("[HPM] Error occurred while proxying request %s to %s [%s] (%s)",u,p,n.code||n,"https://nodejs.org/api/errors.html#errors_common_system_errors")},this.config=(0,s5.createConfig)(t,r),this.proxyOptions=this.config.options,this.proxy=a5.createProxyServer({}),this.logger.info(`[HPM] Proxy created: ${this.config.context} -> ${this.proxyOptions.target}`),this.pathRewriter=p5.createPathRewriter(this.proxyOptions.pathRewrite),u5.init(this.proxy,this.proxyOptions),this.proxy.on("error",this.logError),this.middleware.upgrade=(n,i,a)=>{this.wsInternalSubscribed||this.handleUpgrade(n,i,a)}}};Ys.HttpProxyMiddleware=Bl});var Sy=v(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.responseInterceptor=void 0;var Ol=require("zlib");function d5(e){return async function(t,r,n){let i=t,a=Buffer.from("","utf8"),o=f5(t,t.headers["content-encoding"]);o.on("data",s=>a=Buffer.concat([a,s])),o.on("end",async()=>{m5(t,n);let s=Buffer.from(await e(a,i,r,n));n.setHeader("content-length",Buffer.byteLength(s,"utf8")),n.write(s),n.end()}),o.on("error",s=>{n.end(`Error fetching proxied request: ${s.message}`)})}}Xs.responseInterceptor=d5;function f5(e,t){let r=e,n;switch(t){case"gzip":n=Ol.createGunzip();break;case"br":n=Ol.createBrotliDecompress();break;case"deflate":n=Ol.createInflate();break;default:break}return n&&(r.pipe(n),r=n),r}function m5(e,t){if(t.statusCode=e.statusCode,t.statusMessage=e.statusMessage,t.setHeader){let r=Object.keys(e.headers);r=r.filter(n=>!["content-encoding","transfer-encoding"].includes(n)),r.forEach(n=>{let i=e.headers[n];n==="set-cookie"&&(i=Array.isArray(i)?i:[i],i=i.map(a=>a.replace(/Domain=[^;]+?/i,""))),t.setHeader(n,i)})}else t.headers=e.headers}});var Ay=v(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.fixRequestBody=void 0;var g5=require("querystring");function h5(e,t){let r=t.body;if(!r)return;let n=e.getHeader("Content-Type"),i=a=>{e.setHeader("Content-Length",Buffer.byteLength(a)),e.write(a)};n&&n.includes("application/json")&&i(JSON.stringify(r)),n&&n.includes("application/x-www-form-urlencoded")&&i(g5.stringify(r))}Zs.fixRequestBody=h5});var Fy=v(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.fixRequestBody=xi.responseInterceptor=void 0;var v5=Sy();Object.defineProperty(xi,"responseInterceptor",{enumerable:!0,get:function(){return v5.responseInterceptor}});var x5=Ay();Object.defineProperty(xi,"fixRequestBody",{enumerable:!0,get:function(){return x5.fixRequestBody}})});var Py=v(Fn=>{"use strict";var y5=Fn&&Fn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),b5=Fn&&Fn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&y5(t,e,r)};Object.defineProperty(Fn,"__esModule",{value:!0});b5(Fy(),Fn)});var Nl=v(jr=>{"use strict";var D5=jr&&jr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),w5=jr&&jr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&D5(t,e,r)};Object.defineProperty(jr,"__esModule",{value:!0});jr.createProxyMiddleware=void 0;var C5=Ey();function E5(e,t){let{middleware:r}=new C5.HttpProxyMiddleware(e,t);return r}jr.createProxyMiddleware=E5;w5(Py(),jr)});var By=v((bQ,_y)=>{"use strict";var Ry=require("child_process"),Ty=Ry.spawn,S5=Ry.exec;_y.exports=function(e,t,r){if(typeof t=="function"&&r===void 0&&(r=t,t=void 0),e=parseInt(e),Number.isNaN(e)){if(r)return r(new Error("pid must be a number"));throw new Error("pid must be a number")}var n={},i={};switch(n[e]=[],i[e]=1,process.platform){case"win32":S5("taskkill /pid "+e+" /T /F",r);break;case"darwin":$l(e,n,i,function(a){return Ty("pgrep",["-P",a])},function(){ky(n,t,r)});break;default:$l(e,n,i,function(a){return Ty("ps",["-o","pid","--no-headers","--ppid",a])},function(){ky(n,t,r)});break}};function ky(e,t,r){var n={};try{Object.keys(e).forEach(function(i){e[i].forEach(function(a){n[a]||(Iy(a,t),n[a]=1)}),n[i]||(Iy(i,t),n[i]=1)})}catch(i){if(r)return r(i);throw i}if(r)return r()}function Iy(e,t){try{process.kill(parseInt(e,10),t)}catch(r){if(r.code!=="ESRCH")throw r}}function $l(e,t,r,n,i){var a=n(e),o="";a.stdout.on("data",function(u){var u=u.toString("ascii");o+=u});var s=function(c){if(delete r[e],c!=0){Object.keys(r).length==0&&i();return}o.match(/\d+/g).forEach(function(u){u=parseInt(u,10),t[e].push(u),t[u]=[],r[u]=1,$l(u,t,r,n,i)})};a.on("close",s)}});var gr=v((DQ,Ly)=>{var A5=require("path").relative;Ly.exports=I5;var F5=process.cwd();function Ny(e,t){for(var r=e.split(/[ ,]+/),n=String(t).toLowerCase(),i=0;i<r.length;i++){var a=r[i];if(a&&(a==="*"||a.toLowerCase()===n))return!0}return!1}function P5(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t),i=n.value;return n.get=function(){return i},n.writable&&(n.set=function(o){return i=o}),delete n.value,delete n.writable,Object.defineProperty(e,t,n),n}function T5(e){for(var t="",r=0;r<e;r++)t+=", arg"+r;return t.substr(2)}function k5(e){var t=this.name+": "+this.namespace;this.message&&(t+=" deprecated "+this.message);for(var r=0;r<e.length;r++)t+=`
21
+ `};di.setupSocket(r),i&&i.length&&r.unshift(i);var c=(di.isSSL.test(n.target.protocol)?u3:c3).request(di.setupOutgoing(n.ssl||{},n,t));return a&&a.emit("proxyReqWs",c,t,r,n,i),c.on("error",u),c.on("response",function(p){p.upgrade||(r.write(s("HTTP/"+p.httpVersion+" "+p.statusCode+" "+p.statusMessage,p.headers)),p.pipe(r))}),c.on("upgrade",function(p,l,d){l.on("error",u),l.on("end",function(){a.emit("close",p,l,d)}),r.on("error",function(){l.end()}),di.setupSocket(l),d&&d.length&&l.unshift(d),r.write(s("HTTP/1.1 101 Switching Protocols",p.headers)),l.pipe(r).pipe(l),a.emit("open",l),a.emit("proxySocket",l)}),c.end();function u(p){o?o(p,t,r):a.emit("error",p,t,r),r.end()}}}});var q0=v((LJ,M0)=>{var L0=M0.exports,O0=require("util")._extend,p3=require("url").parse,j0=i0(),l3=require("http"),d3=require("https"),N0=R0(),$0=B0();L0.Server=En;function dl(e){return function(t){return function(r,n){var i=e==="ws"?this.wsPasses:this.webPasses,a=[].slice.call(arguments),o=a.length-1,s,c;typeof a[o]=="function"&&(c=a[o],o--);var u=t;if(!(a[o]instanceof Buffer)&&a[o]!==n&&(u=O0({},t),O0(u,a[o]),o--),a[o]instanceof Buffer&&(s=a[o]),["target","forward"].forEach(function(l){typeof u[l]=="string"&&(u[l]=p3(u[l]))}),!u.target&&!u.forward)return this.emit("error",new Error("Must provide a proper URL as target"));for(var p=0;p<i.length&&!i[p](r,n,u,s,this,c);p++);}}}L0.createRightProxy=dl;function En(e){j0.call(this),e=e||{},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=dl("web")(e),this.ws=this.proxyWebsocketRequest=dl("ws")(e),this.options=e,this.webPasses=Object.keys(N0).map(function(t){return N0[t]}),this.wsPasses=Object.keys($0).map(function(t){return $0[t]}),this.on("error",this.onError,this)}require("util").inherits(En,j0);En.prototype.onError=function(e){if(this.listeners("error").length===1)throw e};En.prototype.listen=function(e,t){var r=this,n=function(i,a){r.web(i,a)};return this._server=this.options.ssl?d3.createServer(this.options.ssl,n):l3.createServer(n),this.options.ws&&this._server.on("upgrade",function(i,a,o){r.ws(i,a,o)}),this._server.listen(e,t),this};En.prototype.close=function(e){var t=this;this._server&&this._server.close(r);function r(){t._server=null,e&&e.apply(null,arguments)}};En.prototype.before=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,i=!1;if(n.forEach(function(a,o){a.name===t&&(i=o)}),i===!1)throw new Error("No such pass");n.splice(i,0,r)};En.prototype.after=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,i=!1;if(n.forEach(function(a,o){a.name===t&&(i=o)}),i===!1)throw new Error("No such pass");n.splice(i++,0,r)}});var z0=v((jJ,U0)=>{var _o=q0().Server;function fl(e){return new _o(e)}_o.createProxyServer=fl;_o.createServer=fl;_o.createProxy=fl;U0.exports=_o});var V0=v((MJ,H0)=>{H0.exports=z0()});var $s=v((qJ,K0)=>{"use strict";K0.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var Ls=v(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ERRORS=void 0;var f3;(function(e){e.ERR_CONFIG_FACTORY_TARGET_MISSING='[HPM] Missing "target" option. Example: {target: "http://www.example.org"}',e.ERR_CONTEXT_MATCHER_GENERIC='[HPM] Invalid context. Expecting something like: "/api" or ["/api", "/ajax"]',e.ERR_CONTEXT_MATCHER_INVALID_ARRAY='[HPM] Invalid context. Expecting something like: ["/api", "/ajax"] or ["/api/**", "!**.html"]',e.ERR_PATH_REWRITER_CONFIG="[HPM] Invalid pathRewrite config. Expecting object with pathRewrite config or a rewrite function"})(f3=Bo.ERRORS||(Bo.ERRORS={}))});var mi=v(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.getArrow=fi.getInstance=void 0;var m3=require("util"),ml,G0={log:console.log,debug:console.log,info:console.info,warn:console.warn,error:console.error},Oo;(function(e){e[e.debug=10]="debug",e[e.info=20]="info",e[e.warn=30]="warn",e[e.error=50]="error",e[e.silent=80]="silent"})(Oo||(Oo={}));function g3(){return ml||(ml=new gl),ml}fi.getInstance=g3;var gl=class{constructor(){this.setLevel("info"),this.setProvider(()=>G0)}log(){this.provider.log(this._interpolate.apply(null,arguments))}debug(){this._showLevel("debug")&&this.provider.debug(this._interpolate.apply(null,arguments))}info(){this._showLevel("info")&&this.provider.info(this._interpolate.apply(null,arguments))}warn(){this._showLevel("warn")&&this.provider.warn(this._interpolate.apply(null,arguments))}error(){this._showLevel("error")&&this.provider.error(this._interpolate.apply(null,arguments))}setLevel(t){this.isValidLevel(t)&&(this.logLevel=t)}setProvider(t){t&&this.isValidProvider(t)&&(this.provider=t(G0))}isValidProvider(t){if(t&&typeof t!="function")throw new Error("[HPM] Log provider config error. Expecting a function.");return!0}isValidLevel(t){let n=Object.keys(Oo).includes(t);if(!n)throw new Error("[HPM] Log level error. Invalid logLevel.");return n}_showLevel(t){let r=!1,n=Oo[this.logLevel];return n&&n<=Oo[t]&&(r=!0),r}_interpolate(t,...r){return m3.format(t,...r)}};function h3(e,t,r,n){let i=[">"],a=r!==n,o=e!==t;return o&&!a?i.unshift("~"):!o&&a?i.unshift("="):o&&a?i.unshift("\u2248"):i.unshift("-"),i.join("")}fi.getArrow=h3});var Q0=v(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.createConfig=void 0;var v3=$s(),J0=require("url"),x3=Ls(),y3=mi(),W0=(0,y3.getInstance)();function b3(e,t){let r={context:void 0,options:{}};if(w3(e,t))r.context="/",r.options=Object.assign(r.options,e);else if(D3(e)){let n=J0.parse(e),i=[n.protocol,"//",n.host].join("");r.context=n.pathname||"/",r.options=Object.assign(r.options,{target:i},t),(n.protocol==="ws:"||n.protocol==="wss:")&&(r.options.ws=!0)}else r.context=e,r.options=Object.assign(r.options,t);if(C3(r.options),!r.options.target&&!r.options.router)throw new Error(x3.ERRORS.ERR_CONFIG_FACTORY_TARGET_MISSING);return r}js.createConfig=b3;function D3(e){if(typeof e=="string")return!!J0.parse(e).host}function w3(e,t){return v3(e)&&(t==null||Object.keys(t).length===0)}function C3(e){e.logLevel&&W0.setLevel(e.logLevel),e.logProvider&&W0.setProvider(e.logProvider)}});var X0=v((VJ,Y0)=>{Y0.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var tx=v((KJ,ex)=>{var E3=X0(),Z0={"{":"}","(":")","[":"]"},S3=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,a=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||a!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(a=e.indexOf(")",t),a>t&&(o=e.indexOf("\\",t),o===-1||o>a))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(a=e.indexOf(")",r),a>r&&(o=e.indexOf("\\",r),o===-1||o>a))))return!0;if(e[t]==="\\"){var s=e[t+1];t+=2;var c=Z0[s];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},A3=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Z0[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};ex.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(E3(t))return!0;var n=S3;return r&&r.strict===!1&&(n=A3),n(t)}});var Ms=v(Lt=>{"use strict";Lt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Lt.find=(e,t)=>e.nodes.find(r=>r.type===t);Lt.exceedsLimit=(e,t,r=1,n)=>n===!1||!Lt.isInteger(e)||!Lt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Lt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Lt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Lt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Lt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Lt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Lt.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let a=n[i];if(Array.isArray(a)){r(a);continue}a!==void 0&&t.push(a)}return t};return r(e),t}});var qs=v((WJ,nx)=>{"use strict";var rx=Ms();nx.exports=(e,t={})=>{let r=(n,i={})=>{let a=t.escapeInvalid&&rx.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,s="";if(n.value)return(a||o)&&rx.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)s+=r(c);return s};return r(e)}});var ox=v((JJ,ix)=>{"use strict";ix.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var mx=v((QJ,fx)=>{"use strict";var ax=ox(),Sn=(e,t,r)=>{if(ax(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ax(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),a=String(n.shorthand),o=String(n.capture),s=String(n.wrap),c=e+":"+t+"="+i+a+o+s;if(Sn.cache.hasOwnProperty(c))return Sn.cache[c].result;let u=Math.min(e,t),p=Math.max(e,t);if(Math.abs(u-p)===1){let g=e+"|"+t;return n.capture?`(${g})`:n.wrap===!1?g:`(?:${g})`}let l=dx(e)||dx(t),d={min:e,max:t,a:u,b:p},m=[],f=[];if(l&&(d.isPadded=l,d.maxLen=String(d.max).length),u<0){let g=p<0?Math.abs(p):1;f=sx(g,Math.abs(u),d,n),u=d.a=0}return p>=0&&(m=sx(u,p,d,n)),d.negatives=f,d.positives=m,d.result=F3(f,m,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&m.length+f.length>1&&(d.result=`(?:${d.result})`),Sn.cache[c]=d,d.result};function F3(e,t,r){let n=hl(e,t,"-",!1,r)||[],i=hl(t,e,"",!1,r)||[],a=hl(e,t,"-?",!0,r)||[];return n.concat(a).concat(i).join("|")}function P3(e,t){let r=1,n=1,i=ux(e,r),a=new Set([t]);for(;e<=i&&i<=t;)a.add(i),r+=1,i=ux(e,r);for(i=px(t+1,n)-1;e<i&&i<=t;)a.add(i),n+=1,i=px(t+1,n)-1;return a=[...a],a.sort(I3),a}function T3(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=k3(e,t),i=n.length,a="",o=0;for(let s=0;s<i;s++){let[c,u]=n[s];c===u?a+=c:c!=="0"||u!=="9"?a+=R3(c,u,r):o++}return o&&(a+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:a,count:[o],digits:i}}function sx(e,t,r,n){let i=P3(e,t),a=[],o=e,s;for(let c=0;c<i.length;c++){let u=i[c],p=T3(String(o),String(u),n),l="";if(!r.isPadded&&s&&s.pattern===p.pattern){s.count.length>1&&s.count.pop(),s.count.push(p.count[0]),s.string=s.pattern+lx(s.count),o=u+1;continue}r.isPadded&&(l=_3(u,r,n)),p.string=l+p.pattern+lx(p.count),a.push(p),o=u+1,s=p}return a}function hl(e,t,r,n,i){let a=[];for(let o of e){let{string:s}=o;!n&&!cx(t,"string",s)&&a.push(r+s),n&&cx(t,"string",s)&&a.push(r+s)}return a}function k3(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function I3(e,t){return e>t?1:t>e?-1:0}function cx(e,t,r){return e.some(n=>n[t]===r)}function ux(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function px(e,t){return e-e%Math.pow(10,t)}function lx(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function R3(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function dx(e){return/^-?(0+)\d/.test(e)}function _3(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Sn.cache={};Sn.clearCache=()=>Sn.cache={};fx.exports=Sn});var yl=v((YJ,Dx)=>{"use strict";var B3=require("util"),hx=mx(),gx=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),O3=e=>t=>e===!0?Number(t):String(t),vl=e=>typeof e=="number"||typeof e=="string"&&e!=="",No=e=>Number.isInteger(+e),xl=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},N3=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,$3=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},zs=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},L3=(e,t,r)=>{e.negatives.sort((s,c)=>s<c?-1:s>c?1:0),e.positives.sort((s,c)=>s<c?-1:s>c?1:0);let n=t.capture?"":"?:",i="",a="",o;return e.positives.length&&(i=e.positives.map(s=>zs(String(s),r)).join("|")),e.negatives.length&&(a=`-(${n}${e.negatives.map(s=>zs(String(s),r)).join("|")})`),i&&a?o=`${i}|${a}`:o=i||a,t.wrap?`(${n}${o})`:o},vx=(e,t,r,n)=>{if(r)return hx(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let a=String.fromCharCode(t);return`[${i}-${a}]`},xx=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return hx(e,t,r)},yx=(...e)=>new RangeError("Invalid range arguments: "+B3.inspect(...e)),bx=(e,t,r)=>{if(r.strictRanges===!0)throw yx([e,t]);return[]},j3=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},M3=(e,t,r=1,n={})=>{let i=Number(e),a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(n.strictRanges===!0)throw yx([e,t]);return[]}i===0&&(i=0),a===0&&(a=0);let o=i>a,s=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let p=xl(s)||xl(c)||xl(u),l=p?Math.max(s.length,c.length,u.length):0,d=p===!1&&N3(e,t,n)===!1,m=n.transform||O3(d);if(n.toRegex&&r===1)return vx(zs(e,l),zs(t,l),!0,n);let f={negatives:[],positives:[]},g=w=>f[w<0?"negatives":"positives"].push(Math.abs(w)),h=[],x=0;for(;o?i>=a:i<=a;)n.toRegex===!0&&r>1?g(i):h.push($3(m(i,x),l,d)),i=o?i-r:i+r,x++;return n.toRegex===!0?r>1?L3(f,n,l):xx(h,null,{wrap:!1,...n}):h},q3=(e,t,r=1,n={})=>{if(!No(e)&&e.length>1||!No(t)&&t.length>1)return bx(e,t,n);let i=n.transform||(d=>String.fromCharCode(d)),a=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),s=a>o,c=Math.min(a,o),u=Math.max(a,o);if(n.toRegex&&r===1)return vx(c,u,!1,n);let p=[],l=0;for(;s?a>=o:a<=o;)p.push(i(a,l)),a=s?a-r:a+r,l++;return n.toRegex===!0?xx(p,null,{wrap:!1,options:n}):p},Us=(e,t,r,n={})=>{if(t==null&&vl(e))return[e];if(!vl(e)||!vl(t))return bx(e,t,n);if(typeof r=="function")return Us(e,t,1,{transform:r});if(gx(r))return Us(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,No(r)?No(e)&&No(t)?M3(e,t,r,i):q3(e,t,Math.max(Math.abs(r),1),i):r!=null&&!gx(r)?j3(r,i):Us(e,t,1,r)};Dx.exports=Us});var Ex=v((XJ,Cx)=>{"use strict";var U3=yl(),wx=Ms(),z3=(e,t={})=>{let r=(n,i={})=>{let a=wx.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,s=a===!0||o===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return s?c+n.value:"(";if(n.type==="close")return s?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let p=wx.reduce(n.nodes),l=U3(...p,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(l.length!==0)return p.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let p of n.nodes)u+=r(p,n);return u};return r(e)};Cx.exports=z3});var Fx=v((ZJ,Ax)=>{"use strict";var H3=yl(),Sx=qs(),gi=Ms(),An=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?gi.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let a of i)n.push(An(a,t,r));else for(let a of t)r===!0&&typeof a=="string"&&(a=`{${a}}`),n.push(Array.isArray(a)?An(i,a,r):i+a);return gi.flatten(n)},V3=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,a={})=>{i.queue=[];let o=a,s=a.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,s=o.queue;if(i.invalid||i.dollar){s.push(An(s.pop(),Sx(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(An(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=gi.reduce(i.nodes);if(gi.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=H3(...l,t);d.length===0&&(d=Sx(i,t)),s.push(An(s.pop(),d)),i.nodes=[];return}let c=gi.encloseBrace(i),u=i.queue,p=i;for(;p.type!=="brace"&&p.type!=="root"&&p.parent;)p=p.parent,u=p.queue;for(let l=0;l<i.nodes.length;l++){let d=i.nodes[l];if(d.type==="comma"&&i.type==="brace"){l===1&&u.push(""),u.push("");continue}if(d.type==="close"){s.push(An(s.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(An(u.pop(),d.value));continue}d.nodes&&n(d,i)}return u};return gi.flatten(n(e))};Ax.exports=V3});var Tx=v((eQ,Px)=>{"use strict";Px.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
22
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Bx=v((tQ,_x)=>{"use strict";var K3=qs(),{MAX_LENGTH:kx,CHAR_BACKSLASH:bl,CHAR_BACKTICK:G3,CHAR_COMMA:W3,CHAR_DOT:J3,CHAR_LEFT_PARENTHESES:Q3,CHAR_RIGHT_PARENTHESES:Y3,CHAR_LEFT_CURLY_BRACE:X3,CHAR_RIGHT_CURLY_BRACE:Z3,CHAR_LEFT_SQUARE_BRACKET:Ix,CHAR_RIGHT_SQUARE_BRACKET:Rx,CHAR_DOUBLE_QUOTE:eT,CHAR_SINGLE_QUOTE:tT,CHAR_NO_BREAK_SPACE:rT,CHAR_ZERO_WIDTH_NOBREAK_SPACE:nT}=Tx(),iT=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(kx,r.maxLength):kx;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},a=[i],o=i,s=i,c=0,u=e.length,p=0,l=0,d,m=()=>e[p++],f=g=>{if(g.type==="text"&&s.type==="dot"&&(s.type="text"),s&&s.type==="text"&&g.type==="text"){s.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=s,s=g,g};for(f({type:"bos"});p<u;)if(o=a[a.length-1],d=m(),!(d===nT||d===rT)){if(d===bl){f({type:"text",value:(t.keepEscaping?d:"")+m()});continue}if(d===Rx){f({type:"text",value:"\\"+d});continue}if(d===Ix){c++;let g;for(;p<u&&(g=m());){if(d+=g,g===Ix){c++;continue}if(g===bl){d+=m();continue}if(g===Rx&&(c--,c===0))break}f({type:"text",value:d});continue}if(d===Q3){o=f({type:"paren",nodes:[]}),a.push(o),f({type:"text",value:d});continue}if(d===Y3){if(o.type!=="paren"){f({type:"text",value:d});continue}o=a.pop(),f({type:"text",value:d}),o=a[a.length-1];continue}if(d===eT||d===tT||d===G3){let g=d,h;for(t.keepQuotes!==!0&&(d="");p<u&&(h=m());){if(h===bl){d+=h+m();continue}if(h===g){t.keepQuotes===!0&&(d+=h);break}d+=h}f({type:"text",value:d});continue}if(d===X3){l++;let h={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=f(h),a.push(o),f({type:"open",value:d});continue}if(d===Z3){if(o.type!=="brace"){f({type:"text",value:d});continue}let g="close";o=a.pop(),o.close=!0,f({type:g,value:d}),l--,o=a[a.length-1];continue}if(d===W3&&l>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:K3(o)}]}f({type:"comma",value:d}),o.commas++;continue}if(d===J3&&l>0&&o.commas===0){let g=o.nodes;if(l===0||g.length===0){f({type:"text",value:d});continue}if(s.type==="dot"){if(o.range=[],s.value+=d,s.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,s.type="text";continue}o.ranges++,o.args=[];continue}if(s.type==="range"){g.pop();let h=g[g.length-1];h.value+=s.value+d,s=h,o.ranges--;continue}f({type:"dot",value:d});continue}f({type:"text",value:d})}do if(o=a.pop(),o.type!=="root"){o.nodes.forEach(x=>{x.nodes||(x.type==="open"&&(x.isOpen=!0),x.type==="close"&&(x.isClose=!0),x.nodes||(x.type="text"),x.invalid=!0)});let g=a[a.length-1],h=g.nodes.indexOf(o);g.nodes.splice(h,1,...o.nodes)}while(a.length>0);return f({type:"eos"}),i};_x.exports=iT});var $x=v((rQ,Nx)=>{"use strict";var Ox=qs(),oT=Ex(),aT=Fx(),sT=Bx(),Ft=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Ft.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Ft.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Ft.parse=(e,t={})=>sT(e,t);Ft.stringify=(e,t={})=>Ox(typeof e=="string"?Ft.parse(e,t):e,t);Ft.compile=(e,t={})=>(typeof e=="string"&&(e=Ft.parse(e,t)),oT(e,t));Ft.expand=(e,t={})=>{typeof e=="string"&&(e=Ft.parse(e,t));let r=aT(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Ft.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Ft.compile(e,t):Ft.expand(e,t);Nx.exports=Ft});var $o=v((nQ,Ux)=>{"use strict";var cT=require("path"),fr="\\\\/",Lx=`[^${fr}]`,Lr="\\.",uT="\\+",pT="\\?",Hs="\\/",lT="(?=.)",jx="[^/]",Dl=`(?:${Hs}|$)`,Mx=`(?:^|${Hs})`,wl=`${Lr}{1,2}${Dl}`,dT=`(?!${Lr})`,fT=`(?!${Mx}${wl})`,mT=`(?!${Lr}{0,1}${Dl})`,gT=`(?!${wl})`,hT=`[^.${Hs}]`,vT=`${jx}*?`,qx={DOT_LITERAL:Lr,PLUS_LITERAL:uT,QMARK_LITERAL:pT,SLASH_LITERAL:Hs,ONE_CHAR:lT,QMARK:jx,END_ANCHOR:Dl,DOTS_SLASH:wl,NO_DOT:dT,NO_DOTS:fT,NO_DOT_SLASH:mT,NO_DOTS_SLASH:gT,QMARK_NO_DOT:hT,STAR:vT,START_ANCHOR:Mx},xT={...qx,SLASH_LITERAL:`[${fr}]`,QMARK:Lx,STAR:`${Lx}*?`,DOTS_SLASH:`${Lr}{1,2}(?:[${fr}]|$)`,NO_DOT:`(?!${Lr})`,NO_DOTS:`(?!(?:^|[${fr}])${Lr}{1,2}(?:[${fr}]|$))`,NO_DOT_SLASH:`(?!${Lr}{0,1}(?:[${fr}]|$))`,NO_DOTS_SLASH:`(?!${Lr}{1,2}(?:[${fr}]|$))`,QMARK_NO_DOT:`[^.${fr}]`,START_ANCHOR:`(?:^|[${fr}])`,END_ANCHOR:`(?:[${fr}]|$)`},yT={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Ux.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:yT,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:cT.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?xT:qx}}});var Lo=v(lt=>{"use strict";var bT=require("path"),DT=process.platform==="win32",{REGEX_BACKSLASH:wT,REGEX_REMOVE_BACKSLASH:CT,REGEX_SPECIAL_CHARS:ET,REGEX_SPECIAL_CHARS_GLOBAL:ST}=$o();lt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);lt.hasRegexChars=e=>ET.test(e);lt.isRegexChar=e=>e.length===1&&lt.hasRegexChars(e);lt.escapeRegex=e=>e.replace(ST,"\\$1");lt.toPosixSlashes=e=>e.replace(wT,"/");lt.removeBackslashes=e=>e.replace(CT,t=>t==="\\"?"":t);lt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};lt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:DT===!0||bT.sep==="\\";lt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?lt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};lt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};lt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",a=`${n}(?:${e})${i}`;return t.negated===!0&&(a=`(?:^(?!${a}).*$)`),a}});var Qx=v((oQ,Jx)=>{"use strict";var zx=Lo(),{CHAR_ASTERISK:Cl,CHAR_AT:AT,CHAR_BACKWARD_SLASH:jo,CHAR_COMMA:FT,CHAR_DOT:El,CHAR_EXCLAMATION_MARK:Sl,CHAR_FORWARD_SLASH:Wx,CHAR_LEFT_CURLY_BRACE:Al,CHAR_LEFT_PARENTHESES:Fl,CHAR_LEFT_SQUARE_BRACKET:PT,CHAR_PLUS:TT,CHAR_QUESTION_MARK:Hx,CHAR_RIGHT_CURLY_BRACE:kT,CHAR_RIGHT_PARENTHESES:Vx,CHAR_RIGHT_SQUARE_BRACKET:IT}=$o(),Kx=e=>e===Wx||e===jo,Gx=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},RT=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,a=[],o=[],s=[],c=e,u=-1,p=0,l=0,d=!1,m=!1,f=!1,g=!1,h=!1,x=!1,w=!1,y=!1,F=!1,E=!1,S=0,I,k,R={value:"",depth:0,isGlob:!1},P=()=>u>=n,b=()=>c.charCodeAt(u+1),O=()=>(I=k,c.charCodeAt(++u));for(;u<n;){k=O();let ue;if(k===jo){w=R.backslashes=!0,k=O(),k===Al&&(x=!0);continue}if(x===!0||k===Al){for(S++;P()!==!0&&(k=O());){if(k===jo){w=R.backslashes=!0,O();continue}if(k===Al){S++;continue}if(x!==!0&&k===El&&(k=O())===El){if(d=R.isBrace=!0,f=R.isGlob=!0,E=!0,i===!0)continue;break}if(x!==!0&&k===FT){if(d=R.isBrace=!0,f=R.isGlob=!0,E=!0,i===!0)continue;break}if(k===kT&&(S--,S===0)){x=!1,d=R.isBrace=!0,E=!0;break}}if(i===!0)continue;break}if(k===Wx){if(a.push(u),o.push(R),R={value:"",depth:0,isGlob:!1},E===!0)continue;if(I===El&&u===p+1){p+=2;continue}l=u+1;continue}if(r.noext!==!0&&(k===TT||k===AT||k===Cl||k===Hx||k===Sl)===!0&&b()===Fl){if(f=R.isGlob=!0,g=R.isExtglob=!0,E=!0,k===Sl&&u===p&&(F=!0),i===!0){for(;P()!==!0&&(k=O());){if(k===jo){w=R.backslashes=!0,k=O();continue}if(k===Vx){f=R.isGlob=!0,E=!0;break}}continue}break}if(k===Cl){if(I===Cl&&(h=R.isGlobstar=!0),f=R.isGlob=!0,E=!0,i===!0)continue;break}if(k===Hx){if(f=R.isGlob=!0,E=!0,i===!0)continue;break}if(k===PT){for(;P()!==!0&&(ue=O());){if(ue===jo){w=R.backslashes=!0,O();continue}if(ue===IT){m=R.isBracket=!0,f=R.isGlob=!0,E=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&k===Sl&&u===p){y=R.negated=!0,p++;continue}if(r.noparen!==!0&&k===Fl){if(f=R.isGlob=!0,i===!0){for(;P()!==!0&&(k=O());){if(k===Fl){w=R.backslashes=!0,k=O();continue}if(k===Vx){E=!0;break}}continue}break}if(f===!0){if(E=!0,i===!0)continue;break}}r.noext===!0&&(g=!1,f=!1);let N=c,K="",D="";p>0&&(K=c.slice(0,p),c=c.slice(p),l-=p),N&&f===!0&&l>0?(N=c.slice(0,l),D=c.slice(l)):f===!0?(N="",D=c):N=c,N&&N!==""&&N!=="/"&&N!==c&&Kx(N.charCodeAt(N.length-1))&&(N=N.slice(0,-1)),r.unescape===!0&&(D&&(D=zx.removeBackslashes(D)),N&&w===!0&&(N=zx.removeBackslashes(N)));let C={prefix:K,input:e,start:p,base:N,glob:D,isBrace:d,isBracket:m,isGlob:f,isExtglob:g,isGlobstar:h,negated:y,negatedExtglob:F};if(r.tokens===!0&&(C.maxDepth=0,Kx(k)||o.push(R),C.tokens=o),r.parts===!0||r.tokens===!0){let ue;for(let G=0;G<a.length;G++){let vt=ue?ue+1:p,ot=a[G],xt=e.slice(vt,ot);r.tokens&&(G===0&&p!==0?(o[G].isPrefix=!0,o[G].value=K):o[G].value=xt,Gx(o[G]),C.maxDepth+=o[G].depth),(G!==0||xt!=="")&&s.push(xt),ue=ot}if(ue&&ue+1<e.length){let G=e.slice(ue+1);s.push(G),r.tokens&&(o[o.length-1].value=G,Gx(o[o.length-1]),C.maxDepth+=o[o.length-1].depth)}C.slashes=a,C.parts=s}return C};Jx.exports=RT});var Zx=v((aQ,Xx)=>{"use strict";var Vs=$o(),Pt=Lo(),{MAX_LENGTH:Ks,POSIX_REGEX_SOURCE:_T,REGEX_NON_SPECIAL_CHARS:BT,REGEX_SPECIAL_CHARS_BACKREF:OT,REPLACEMENTS:Yx}=Vs,NT=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>Pt.escapeRegex(i)).join("..")}return r},hi=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Pl=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Yx[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Ks,r.maxLength):Ks,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let a={type:"bos",value:"",output:r.prepend||""},o=[a],s=r.capture?"":"?:",c=Pt.isWindows(t),u=Vs.globChars(c),p=Vs.extglobChars(u),{DOT_LITERAL:l,PLUS_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:f,DOTS_SLASH:g,NO_DOT:h,NO_DOT_SLASH:x,NO_DOTS_SLASH:w,QMARK:y,QMARK_NO_DOT:F,STAR:E,START_ANCHOR:S}=u,I=B=>`(${s}(?:(?!${S}${B.dot?g:l}).)*?)`,k=r.dot?"":h,R=r.dot?y:F,P=r.bash===!0?I(r):E;r.capture&&(P=`(${P})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let b={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Pt.removePrefix(e,b),i=e.length;let O=[],N=[],K=[],D=a,C,ue=()=>b.index===i-1,G=b.peek=(B=1)=>e[b.index+B],vt=b.advance=()=>e[++b.index]||"",ot=()=>e.slice(b.index+1),xt=(B="",ge=0)=>{b.consumed+=B,b.index+=ge},qa=B=>{b.output+=B.output!=null?B.output:B.value,xt(B.value)},E2=()=>{let B=1;for(;G()==="!"&&(G(2)!=="("||G(3)==="?");)vt(),b.start++,B++;return B%2===0?!1:(b.negated=!0,b.start++,!0)},Ua=B=>{b[B]++,K.push(B)},pn=B=>{b[B]--,K.pop()},z=B=>{if(D.type==="globstar"){let ge=b.braces>0&&(B.type==="comma"||B.type==="brace"),_=B.extglob===!0||O.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!ge&&!_&&(b.output=b.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=P,b.output+=D.output)}if(O.length&&B.type!=="paren"&&(O[O.length-1].inner+=B.value),(B.value||B.output)&&qa(B),D&&D.type==="text"&&B.type==="text"){D.value+=B.value,D.output=(D.output||"")+B.value;return}B.prev=D,o.push(B),D=B},za=(B,ge)=>{let _={...p[ge],conditions:1,inner:""};_.prev=D,_.parens=b.parens,_.output=b.output;let U=(r.capture?"(":"")+_.open;Ua("parens"),z({type:B,value:ge,output:b.output?"":f}),z({type:"paren",extglob:!0,value:vt(),output:U}),O.push(_)},S2=B=>{let ge=B.close+(r.capture?")":""),_;if(B.type==="negate"){let U=P;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(U=I(r)),(U!==P||ue()||/^\)+$/.test(ot()))&&(ge=B.close=`)$))${U}`),B.inner.includes("*")&&(_=ot())&&/^\.[^\\/.]+$/.test(_)){let be=Pl(_,{...t,fastpaths:!1}).output;ge=B.close=`)${be})${U})`}B.prev.type==="bos"&&(b.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:C,output:ge}),pn("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let B=!1,ge=e.replace(OT,(_,U,be,Je,ke,wu)=>Je==="\\"?(B=!0,_):Je==="?"?U?U+Je+(ke?y.repeat(ke.length):""):wu===0?R+(ke?y.repeat(ke.length):""):y.repeat(be.length):Je==="."?l.repeat(be.length):Je==="*"?U?U+Je+(ke?P:""):P:U?_:`\\${_}`);return B===!0&&(r.unescape===!0?ge=ge.replace(/\\/g,""):ge=ge.replace(/\\+/g,_=>_.length%2===0?"\\\\":_?"\\":"")),ge===e&&r.contains===!0?(b.output=e,b):(b.output=Pt.wrapOutput(ge,b,t),b)}for(;!ue();){if(C=vt(),C==="\0")continue;if(C==="\\"){let _=G();if(_==="/"&&r.bash!==!0||_==="."||_===";")continue;if(!_){C+="\\",z({type:"text",value:C});continue}let U=/^\\+/.exec(ot()),be=0;if(U&&U[0].length>2&&(be=U[0].length,b.index+=be,be%2!==0&&(C+="\\")),r.unescape===!0?C=vt():C+=vt(),b.brackets===0){z({type:"text",value:C});continue}}if(b.brackets>0&&(C!=="]"||D.value==="["||D.value==="[^")){if(r.posix!==!1&&C===":"){let _=D.value.slice(1);if(_.includes("[")&&(D.posix=!0,_.includes(":"))){let U=D.value.lastIndexOf("["),be=D.value.slice(0,U),Je=D.value.slice(U+2),ke=_T[Je];if(ke){D.value=be+ke,b.backtrack=!0,vt(),!a.output&&o.indexOf(D)===1&&(a.output=f);continue}}}(C==="["&&G()!==":"||C==="-"&&G()==="]")&&(C=`\\${C}`),C==="]"&&(D.value==="["||D.value==="[^")&&(C=`\\${C}`),r.posix===!0&&C==="!"&&D.value==="["&&(C="^"),D.value+=C,qa({value:C});continue}if(b.quotes===1&&C!=='"'){C=Pt.escapeRegex(C),D.value+=C,qa({value:C});continue}if(C==='"'){b.quotes=b.quotes===1?0:1,r.keepQuotes===!0&&z({type:"text",value:C});continue}if(C==="("){Ua("parens"),z({type:"paren",value:C});continue}if(C===")"){if(b.parens===0&&r.strictBrackets===!0)throw new SyntaxError(hi("opening","("));let _=O[O.length-1];if(_&&b.parens===_.parens+1){S2(O.pop());continue}z({type:"paren",value:C,output:b.parens?")":"\\)"}),pn("parens");continue}if(C==="["){if(r.nobracket===!0||!ot().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));C=`\\${C}`}else Ua("brackets");z({type:"bracket",value:C});continue}if(C==="]"){if(r.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){z({type:"text",value:C,output:`\\${C}`});continue}if(b.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(hi("opening","["));z({type:"text",value:C,output:`\\${C}`});continue}pn("brackets");let _=D.value.slice(1);if(D.posix!==!0&&_[0]==="^"&&!_.includes("/")&&(C=`/${C}`),D.value+=C,qa({value:C}),r.literalBrackets===!1||Pt.hasRegexChars(_))continue;let U=Pt.escapeRegex(D.value);if(b.output=b.output.slice(0,-D.value.length),r.literalBrackets===!0){b.output+=U,D.value=U;continue}D.value=`(${s}${U}|${D.value})`,b.output+=D.value;continue}if(C==="{"&&r.nobrace!==!0){Ua("braces");let _={type:"brace",value:C,output:"(",outputIndex:b.output.length,tokensIndex:b.tokens.length};N.push(_),z(_);continue}if(C==="}"){let _=N[N.length-1];if(r.nobrace===!0||!_){z({type:"text",value:C,output:C});continue}let U=")";if(_.dots===!0){let be=o.slice(),Je=[];for(let ke=be.length-1;ke>=0&&(o.pop(),be[ke].type!=="brace");ke--)be[ke].type!=="dots"&&Je.unshift(be[ke].value);U=NT(Je,r),b.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){let be=b.output.slice(0,_.outputIndex),Je=b.tokens.slice(_.tokensIndex);_.value=_.output="\\{",C=U="\\}",b.output=be;for(let ke of Je)b.output+=ke.output||ke.value}z({type:"brace",value:C,output:U}),pn("braces"),N.pop();continue}if(C==="|"){O.length>0&&O[O.length-1].conditions++,z({type:"text",value:C});continue}if(C===","){let _=C,U=N[N.length-1];U&&K[K.length-1]==="braces"&&(U.comma=!0,_="|"),z({type:"comma",value:C,output:_});continue}if(C==="/"){if(D.type==="dot"&&b.index===b.start+1){b.start=b.index+1,b.consumed="",b.output="",o.pop(),D=a;continue}z({type:"slash",value:C,output:m});continue}if(C==="."){if(b.braces>0&&D.type==="dot"){D.value==="."&&(D.output=l);let _=N[N.length-1];D.type="dots",D.output+=C,D.value+=C,_.dots=!0;continue}if(b.braces+b.parens===0&&D.type!=="bos"&&D.type!=="slash"){z({type:"text",value:C,output:l});continue}z({type:"dot",value:C,output:l});continue}if(C==="?"){if(!(D&&D.value==="(")&&r.noextglob!==!0&&G()==="("&&G(2)!=="?"){za("qmark",C);continue}if(D&&D.type==="paren"){let U=G(),be=C;if(U==="<"&&!Pt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(U)||U==="<"&&!/<([!=]|\w+>)/.test(ot()))&&(be=`\\${C}`),z({type:"text",value:C,output:be});continue}if(r.dot!==!0&&(D.type==="slash"||D.type==="bos")){z({type:"qmark",value:C,output:F});continue}z({type:"qmark",value:C,output:y});continue}if(C==="!"){if(r.noextglob!==!0&&G()==="("&&(G(2)!=="?"||!/[!=<:]/.test(G(3)))){za("negate",C);continue}if(r.nonegate!==!0&&b.index===0){E2();continue}}if(C==="+"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){za("plus",C);continue}if(D&&D.value==="("||r.regex===!1){z({type:"plus",value:C,output:d});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||b.parens>0){z({type:"plus",value:C});continue}z({type:"plus",value:d});continue}if(C==="@"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){z({type:"at",extglob:!0,value:C,output:""});continue}z({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);let _=BT.exec(ot());_&&(C+=_[0],b.index+=_[0].length),z({type:"text",value:C});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=C,D.output=P,b.backtrack=!0,b.globstar=!0,xt(C);continue}let B=ot();if(r.noextglob!==!0&&/^\([^?]/.test(B)){za("star",C);continue}if(D.type==="star"){if(r.noglobstar===!0){xt(C);continue}let _=D.prev,U=_.prev,be=_.type==="slash"||_.type==="bos",Je=U&&(U.type==="star"||U.type==="globstar");if(r.bash===!0&&(!be||B[0]&&B[0]!=="/")){z({type:"star",value:C,output:""});continue}let ke=b.braces>0&&(_.type==="comma"||_.type==="brace"),wu=O.length&&(_.type==="pipe"||_.type==="paren");if(!be&&_.type!=="paren"&&!ke&&!wu){z({type:"star",value:C,output:""});continue}for(;B.slice(0,3)==="/**";){let Ha=e[b.index+4];if(Ha&&Ha!=="/")break;B=B.slice(3),xt("/**",3)}if(_.type==="bos"&&ue()){D.type="globstar",D.value+=C,D.output=I(r),b.output=D.output,b.globstar=!0,xt(C);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!Je&&ue()){b.output=b.output.slice(0,-(_.output+D.output).length),_.output=`(?:${_.output}`,D.type="globstar",D.output=I(r)+(r.strictSlashes?")":"|$)"),D.value+=C,b.globstar=!0,b.output+=_.output+D.output,xt(C);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&B[0]==="/"){let Ha=B[1]!==void 0?"|$":"";b.output=b.output.slice(0,-(_.output+D.output).length),_.output=`(?:${_.output}`,D.type="globstar",D.output=`${I(r)}${m}|${m}${Ha})`,D.value+=C,b.output+=_.output+D.output,b.globstar=!0,xt(C+vt()),z({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&B[0]==="/"){D.type="globstar",D.value+=C,D.output=`(?:^|${m}|${I(r)}${m})`,b.output=D.output,b.globstar=!0,xt(C+vt()),z({type:"slash",value:"/",output:""});continue}b.output=b.output.slice(0,-D.output.length),D.type="globstar",D.output=I(r),D.value+=C,b.output+=D.output,b.globstar=!0,xt(C);continue}let ge={type:"star",value:C,output:P};if(r.bash===!0){ge.output=".*?",(D.type==="bos"||D.type==="slash")&&(ge.output=k+ge.output),z(ge);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&r.regex===!0){ge.output=C,z(ge);continue}(b.index===b.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(b.output+=x,D.output+=x):r.dot===!0?(b.output+=w,D.output+=w):(b.output+=k,D.output+=k),G()!=="*"&&(b.output+=f,D.output+=f)),z(ge)}for(;b.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));b.output=Pt.escapeLast(b.output,"["),pn("brackets")}for(;b.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing",")"));b.output=Pt.escapeLast(b.output,"("),pn("parens")}for(;b.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing","}"));b.output=Pt.escapeLast(b.output,"{"),pn("braces")}if(r.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&z({type:"maybe_slash",value:"",output:`${m}?`}),b.backtrack===!0){b.output="";for(let B of b.tokens)b.output+=B.output!=null?B.output:B.value,B.suffix&&(b.output+=B.suffix)}return b};Pl.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Ks,r.maxLength):Ks,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Yx[e]||e;let a=Pt.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:p,NO_DOTS:l,NO_DOTS_SLASH:d,STAR:m,START_ANCHOR:f}=Vs.globChars(a),g=r.dot?l:p,h=r.dot?d:p,x=r.capture?"":"?:",w={negated:!1,prefix:""},y=r.bash===!0?".*?":m;r.capture&&(y=`(${y})`);let F=k=>k.noglobstar===!0?y:`(${x}(?:(?!${f}${k.dot?u:o}).)*?)`,E=k=>{switch(k){case"*":return`${g}${c}${y}`;case".*":return`${o}${c}${y}`;case"*.*":return`${g}${y}${o}${c}${y}`;case"*/*":return`${g}${y}${s}${c}${h}${y}`;case"**":return g+F(r);case"**/*":return`(?:${g}${F(r)}${s})?${h}${c}${y}`;case"**/*.*":return`(?:${g}${F(r)}${s})?${h}${y}${o}${c}${y}`;case"**/.*":return`(?:${g}${F(r)}${s})?${o}${c}${y}`;default:{let R=/^(.*?)\.(\w+)$/.exec(k);if(!R)return;let P=E(R[1]);return P?P+o+R[2]:void 0}}},S=Pt.removePrefix(e,w),I=E(S);return I&&r.strictSlashes!==!0&&(I+=`${s}?`),I};Xx.exports=Pl});var ty=v((sQ,ey)=>{"use strict";var $T=require("path"),LT=Qx(),Tl=Zx(),kl=Lo(),jT=$o(),MT=e=>e&&typeof e=="object"&&!Array.isArray(e),Fe=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(d=>Fe(d,t,r));return d=>{for(let m of p){let f=m(d);if(f)return f}return!1}}let n=MT(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},a=kl.isWindows(t),o=n?Fe.compileRe(e,t):Fe.makeRe(e,t,!1,!0),s=o.state;delete o.state;let c=()=>!1;if(i.ignore){let p={...t,ignore:null,onMatch:null,onResult:null};c=Fe(i.ignore,p,r)}let u=(p,l=!1)=>{let{isMatch:d,match:m,output:f}=Fe.test(p,o,t,{glob:e,posix:a}),g={glob:e,state:s,regex:o,posix:a,input:p,output:f,match:m,isMatch:d};return typeof i.onResult=="function"&&i.onResult(g),d===!1?(g.isMatch=!1,l?g:!1):c(p)?(typeof i.onIgnore=="function"&&i.onIgnore(g),g.isMatch=!1,l?g:!1):(typeof i.onMatch=="function"&&i.onMatch(g),l?g:!0)};return r&&(u.state=s),u};Fe.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let a=r||{},o=a.format||(i?kl.toPosixSlashes:null),s=e===n,c=s&&o?o(e):e;return s===!1&&(c=o?o(e):e,s=c===n),(s===!1||a.capture===!0)&&(a.matchBase===!0||a.basename===!0?s=Fe.matchBase(e,t,r,i):s=t.exec(c)),{isMatch:!!s,match:s,output:c}};Fe.matchBase=(e,t,r,n=kl.isWindows(r))=>(t instanceof RegExp?t:Fe.makeRe(t,r)).test($T.basename(e));Fe.isMatch=(e,t,r)=>Fe(t,r)(e);Fe.parse=(e,t)=>Array.isArray(e)?e.map(r=>Fe.parse(r,t)):Tl(e,{...t,fastpaths:!1});Fe.scan=(e,t)=>LT(e,t);Fe.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},a=i.contains?"":"^",o=i.contains?"":"$",s=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let c=Fe.toRegex(s,t);return n===!0&&(c.state=e),c};Fe.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Tl.fastpaths(e,t)),i.output||(i=Tl(e,t)),Fe.compileRe(i,t,r,n)};Fe.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Fe.constants=jT;ey.exports=Fe});var ny=v((cQ,ry)=>{"use strict";ry.exports=ty()});var Rl=v((uQ,cy)=>{"use strict";var oy=require("util"),ay=$x(),mr=ny(),Il=Lo(),iy=e=>e===""||e==="./",sy=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},xe=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,a=new Set,o=0,s=p=>{a.add(p.output),r&&r.onResult&&r.onResult(p)};for(let p=0;p<t.length;p++){let l=mr(String(t[p]),{...r,onResult:s},!0),d=l.state.negated||l.state.negatedExtglob;d&&o++;for(let m of e){let f=l(m,!0);(d?!f.isMatch:f.isMatch)&&(d?n.add(f.output):(n.delete(f.output),i.add(f.output)))}}let u=(o===t.length?[...a]:[...i]).filter(p=>!n.has(p));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(p=>p.replace(/\\/g,"")):t}return u};xe.match=xe;xe.matcher=(e,t)=>mr(e,t);xe.isMatch=(e,t,r)=>mr(t,r)(e);xe.any=xe.isMatch;xe.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],a=s=>{r.onResult&&r.onResult(s),i.push(s.output)},o=new Set(xe(e,t,{...r,onResult:a}));for(let s of i)o.has(s)||n.add(s);return[...n]};xe.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${oy.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>xe.contains(e,n,r));if(typeof t=="string"){if(iy(e)||iy(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return xe.isMatch(e,t,{...r,contains:!0})};xe.matchKeys=(e,t,r)=>{if(!Il.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=xe(Object.keys(e),t,r),i={};for(let a of n)i[a]=e[a];return i};xe.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let a=mr(String(i),r);if(n.some(o=>a(o)))return!0}return!1};xe.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let a=mr(String(i),r);if(!n.every(o=>a(o)))return!1}return!0};xe.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${oy.inspect(e)}"`);return[].concat(t).every(n=>mr(n,r)(e))};xe.capture=(e,t,r)=>{let n=Il.isWindows(r),a=mr.makeRe(String(e),{...r,capture:!0}).exec(n?Il.toPosixSlashes(t):t);if(a)return a.slice(1).map(o=>o===void 0?"":o)};xe.makeRe=(...e)=>mr.makeRe(...e);xe.scan=(...e)=>mr.scan(...e);xe.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of ay(String(n),t))r.push(mr.parse(i,t));return r};xe.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!sy(e)?[e]:ay(e,t)};xe.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return xe.braces(e,{...t,expand:!0})};xe.hasBraces=sy;cy.exports=xe});var gy=v(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.match=void 0;var dy=tx(),qT=Rl(),UT=require("url"),uy=Ls();function zT(e,t,r){if(py(e))return fy(e,t);if(ly(e))return my(e,t);if(Array.isArray(e)){if(e.every(py))return VT(e,t);if(e.every(ly))return HT(e,t);throw new Error(uy.ERRORS.ERR_CONTEXT_MATCHER_INVALID_ARRAY)}if(typeof e=="function"){let n=_l(t);return e(n,r)}throw new Error(uy.ERRORS.ERR_CONTEXT_MATCHER_GENERIC)}Gs.match=zT;function fy(e,t){return _l(t).indexOf(e)===0}function my(e,t){let r=_l(t),n=qT([r],e);return n&&n.length>0}function HT(e,t){return my(e,t)}function VT(e,t){let r=!1;for(let n of e)if(fy(n,t)){r=!0;break}return r}function _l(e){return e&&UT.parse(e).pathname}function py(e){return typeof e=="string"&&!dy(e)}function ly(e){return dy(e)}});var vy=v(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.getHandlers=vi.init=void 0;var KT=mi(),Ws=(0,KT.getInstance)();function GT(e,t){let r=hy(t);for(let n of Object.keys(r))e.on(n,r[n]);e.on("econnreset",(n,i,a,o)=>{Ws.error("[HPM] ECONNRESET: %O",n)}),e.on("proxyReqWs",(n,i,a,o,s)=>{a.on("error",c=>{Ws.error("[HPM] WebSocket error: %O",c)})}),Ws.debug("[HPM] Subscribed to http-proxy events:",Object.keys(r))}vi.init=GT;function hy(e){let t={error:"onError",proxyReq:"onProxyReq",proxyReqWs:"onProxyReqWs",proxyRes:"onProxyRes",open:"onOpen",close:"onClose"},r={};for(let[n,i]of Object.entries(t)){let a=e?e[i]:null;typeof a=="function"&&(r[n]=a)}return typeof r.error!="function"&&(r.error=WT),typeof r.close!="function"&&(r.close=JT),r}vi.getHandlers=hy;function WT(e,t,r){if(!t&&!r)throw e;let n=t.headers&&t.headers.host,i=e.code;if(r.writeHead&&!r.headersSent)if(/HPE_INVALID/.test(i))r.writeHead(502);else switch(i){case"ECONNRESET":case"ENOTFOUND":case"ECONNREFUSED":case"ETIMEDOUT":r.writeHead(504);break;default:r.writeHead(500)}r.end(`Error occurred while trying to proxy: ${n}${t.url}`)}function JT(e,t,r){Ws.info("[HPM] Client disconnected")}});var by=v(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.createPathRewriter=void 0;var xy=$s(),QT=Ls(),YT=mi(),yy=(0,YT.getInstance)();function XT(e){let t;if(!ZT(e))return;if(typeof e=="function")return e;return t=e5(e),r;function r(n){let i=n;for(let a of t)if(a.regex.test(n)){i=i.replace(a.regex,a.value),yy.debug('[HPM] Rewriting path from "%s" to "%s"',n,i);break}return i}}Js.createPathRewriter=XT;function ZT(e){if(typeof e=="function")return!0;if(xy(e))return Object.keys(e).length!==0;if(e==null)return!1;throw new Error(QT.ERRORS.ERR_PATH_REWRITER_CONFIG)}function e5(e){let t=[];if(xy(e))for(let[r]of Object.entries(e))t.push({regex:new RegExp(r),value:e[r]}),yy.info('[HPM] Proxy rewrite rule created: "%s" ~> "%s"',r,e[r]);return t}});var wy=v(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.getTarget=void 0;var t5=$s(),r5=mi(),Dy=(0,r5.getInstance)();async function n5(e,t){let r,n=t.router;return t5(n)?r=i5(e,n):typeof n=="function"&&(r=await n(e)),r}Qs.getTarget=n5;function i5(e,t){let r,n=e.headers.host,i=e.url,a=n+i;for(let[o]of Object.entries(t))if(o5(o)){if(a.indexOf(o)>-1){r=t[o],Dy.debug('[HPM] Router table match: "%s"',o);break}}else if(o===n){r=t[o],Dy.debug('[HPM] Router table match: "%s"',n);break}return r}function o5(e){return e.indexOf("/")>-1}});var Ey=v(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.HttpProxyMiddleware=void 0;var a5=V0(),s5=Q0(),c5=gy(),u5=vy(),Cy=mi(),p5=by(),l5=wy(),Bl=class{constructor(t,r){this.logger=(0,Cy.getInstance)(),this.wsInternalSubscribed=!1,this.serverOnCloseSubscribed=!1,this.middleware=async(n,i,a)=>{var o,s;if(this.shouldProxy(this.config.context,n))try{let u=await this.prepareProxyRequest(n);this.proxy.web(n,i,u)}catch(u){a(u)}else a();let c=(s=(o=n.socket)!==null&&o!==void 0?o:n.connection)===null||s===void 0?void 0:s.server;c&&!this.serverOnCloseSubscribed&&(c.on("close",()=>{this.logger.info("[HPM] server close signal received: closing proxy server"),this.proxy.close()}),this.serverOnCloseSubscribed=!0),this.proxyOptions.ws===!0&&this.catchUpgradeRequest(c)},this.catchUpgradeRequest=n=>{this.wsInternalSubscribed||(n.on("upgrade",this.handleUpgrade),this.wsInternalSubscribed=!0)},this.handleUpgrade=async(n,i,a)=>{if(this.shouldProxy(this.config.context,n)){let o=await this.prepareProxyRequest(n);this.proxy.ws(n,i,a,o),this.logger.info("[HPM] Upgrading to WebSocket")}},this.shouldProxy=(n,i)=>{try{let a=i.originalUrl||i.url;return c5.match(n,a,i)}catch(a){return this.logger.error(a),!1}},this.prepareProxyRequest=async n=>{n.url=n.originalUrl||n.url;let i=n.url,a=Object.assign({},this.proxyOptions);if(await this.applyRouter(n,a),await this.applyPathRewrite(n,this.pathRewriter),this.proxyOptions.logLevel==="debug"){let o=(0,Cy.getArrow)(i,n.url,this.proxyOptions.target,a.target);this.logger.debug("[HPM] %s %s %s %s",n.method,i,o,a.target)}return a},this.applyRouter=async(n,i)=>{let a;i.router&&(a=await l5.getTarget(n,i),a&&(this.logger.debug('[HPM] Router new target: %s -> "%s"',i.target,a),i.target=a))},this.applyPathRewrite=async(n,i)=>{if(i){let a=await i(n.url,n);typeof a=="string"?n.url=a:this.logger.info("[HPM] pathRewrite: No rewritten path found. (%s)",n.url)}},this.logError=(n,i,a,o)=>{var s;let u=`${((s=i.headers)===null||s===void 0?void 0:s.host)||i.hostname||i.host}${i.url}`,p=`${o?.href}`;this.logger.error("[HPM] Error occurred while proxying request %s to %s [%s] (%s)",u,p,n.code||n,"https://nodejs.org/api/errors.html#errors_common_system_errors")},this.config=(0,s5.createConfig)(t,r),this.proxyOptions=this.config.options,this.proxy=a5.createProxyServer({}),this.logger.info(`[HPM] Proxy created: ${this.config.context} -> ${this.proxyOptions.target}`),this.pathRewriter=p5.createPathRewriter(this.proxyOptions.pathRewrite),u5.init(this.proxy,this.proxyOptions),this.proxy.on("error",this.logError),this.middleware.upgrade=(n,i,a)=>{this.wsInternalSubscribed||this.handleUpgrade(n,i,a)}}};Ys.HttpProxyMiddleware=Bl});var Sy=v(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.responseInterceptor=void 0;var Ol=require("zlib");function d5(e){return async function(t,r,n){let i=t,a=Buffer.from("","utf8"),o=f5(t,t.headers["content-encoding"]);o.on("data",s=>a=Buffer.concat([a,s])),o.on("end",async()=>{m5(t,n);let s=Buffer.from(await e(a,i,r,n));n.setHeader("content-length",Buffer.byteLength(s,"utf8")),n.write(s),n.end()}),o.on("error",s=>{n.end(`Error fetching proxied request: ${s.message}`)})}}Xs.responseInterceptor=d5;function f5(e,t){let r=e,n;switch(t){case"gzip":n=Ol.createGunzip();break;case"br":n=Ol.createBrotliDecompress();break;case"deflate":n=Ol.createInflate();break;default:break}return n&&(r.pipe(n),r=n),r}function m5(e,t){if(t.statusCode=e.statusCode,t.statusMessage=e.statusMessage,t.setHeader){let r=Object.keys(e.headers);r=r.filter(n=>!["content-encoding","transfer-encoding"].includes(n)),r.forEach(n=>{let i=e.headers[n];n==="set-cookie"&&(i=Array.isArray(i)?i:[i],i=i.map(a=>a.replace(/Domain=[^;]+?/i,""))),t.setHeader(n,i)})}else t.headers=e.headers}});var Ay=v(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.fixRequestBody=void 0;var g5=require("querystring");function h5(e,t){let r=t.body;if(!r)return;let n=e.getHeader("Content-Type"),i=a=>{e.setHeader("Content-Length",Buffer.byteLength(a)),e.write(a)};n&&n.includes("application/json")&&i(JSON.stringify(r)),n&&n.includes("application/x-www-form-urlencoded")&&i(g5.stringify(r))}Zs.fixRequestBody=h5});var Fy=v(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.fixRequestBody=xi.responseInterceptor=void 0;var v5=Sy();Object.defineProperty(xi,"responseInterceptor",{enumerable:!0,get:function(){return v5.responseInterceptor}});var x5=Ay();Object.defineProperty(xi,"fixRequestBody",{enumerable:!0,get:function(){return x5.fixRequestBody}})});var Py=v(Fn=>{"use strict";var y5=Fn&&Fn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),b5=Fn&&Fn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&y5(t,e,r)};Object.defineProperty(Fn,"__esModule",{value:!0});b5(Fy(),Fn)});var Nl=v(jr=>{"use strict";var D5=jr&&jr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),w5=jr&&jr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&D5(t,e,r)};Object.defineProperty(jr,"__esModule",{value:!0});jr.createProxyMiddleware=void 0;var C5=Ey();function E5(e,t){let{middleware:r}=new C5.HttpProxyMiddleware(e,t);return r}jr.createProxyMiddleware=E5;w5(Py(),jr)});var By=v((bQ,_y)=>{"use strict";var Ry=require("child_process"),Ty=Ry.spawn,S5=Ry.exec;_y.exports=function(e,t,r){if(typeof t=="function"&&r===void 0&&(r=t,t=void 0),e=parseInt(e),Number.isNaN(e)){if(r)return r(new Error("pid must be a number"));throw new Error("pid must be a number")}var n={},i={};switch(n[e]=[],i[e]=1,process.platform){case"win32":S5("taskkill /pid "+e+" /T /F",r);break;case"darwin":$l(e,n,i,function(a){return Ty("pgrep",["-P",a])},function(){ky(n,t,r)});break;default:$l(e,n,i,function(a){return Ty("ps",["-o","pid","--no-headers","--ppid",a])},function(){ky(n,t,r)});break}};function ky(e,t,r){var n={};try{Object.keys(e).forEach(function(i){e[i].forEach(function(a){n[a]||(Iy(a,t),n[a]=1)}),n[i]||(Iy(i,t),n[i]=1)})}catch(i){if(r)return r(i);throw i}if(r)return r()}function Iy(e,t){try{process.kill(parseInt(e,10),t)}catch(r){if(r.code!=="ESRCH")throw r}}function $l(e,t,r,n,i){var a=n(e),o="";a.stdout.on("data",function(u){var u=u.toString("ascii");o+=u});var s=function(c){if(delete r[e],c!=0){Object.keys(r).length==0&&i();return}o.match(/\d+/g).forEach(function(u){u=parseInt(u,10),t[e].push(u),t[u]=[],r[u]=1,$l(u,t,r,n,i)})};a.on("close",s)}});var gr=v((DQ,Ly)=>{var A5=require("path").relative;Ly.exports=I5;var F5=process.cwd();function Ny(e,t){for(var r=e.split(/[ ,]+/),n=String(t).toLowerCase(),i=0;i<r.length;i++){var a=r[i];if(a&&(a==="*"||a.toLowerCase()===n))return!0}return!1}function P5(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t),i=n.value;return n.get=function(){return i},n.writable&&(n.set=function(o){return i=o}),delete n.value,delete n.writable,Object.defineProperty(e,t,n),n}function T5(e){for(var t="",r=0;r<e;r++)t+=", arg"+r;return t.substr(2)}function k5(e){var t=this.name+": "+this.namespace;this.message&&(t+=" deprecated "+this.message);for(var r=0;r<e.length;r++)t+=`
23
23
  at `+e[r].toString();return t}function I5(e){if(!e)throw new TypeError("argument namespace is required");var t=tc(),r=yi(t[1]),n=r[0];function i(a){ec.call(i,a)}return i._file=n,i._ignored=_5(e),i._namespace=e,i._traced=B5(e),i._warned=Object.create(null),i.function=L5,i.property=j5,i}function R5(e,t){var r=typeof e.listenerCount!="function"?e.listeners(t).length:e.listenerCount(t);return r>0}function _5(e){if(process.noDeprecation)return!0;var t=process.env.NO_DEPRECATION||"";return Ny(t,e)}function B5(e){if(process.traceDeprecation)return!0;var t=process.env.TRACE_DEPRECATION||"";return Ny(t,e)}function ec(e,t){var r=R5(process,"deprecation");if(!(!r&&this._ignored)){var n,i,a,o,s=0,c=!1,u=tc(),p=this._file;for(t?(o=t,a=yi(u[1]),a.name=o.name,p=a[0]):(s=2,o=yi(u[s]),a=o);s<u.length;s++)if(n=yi(u[s]),i=n[0],i===p)c=!0;else if(i===this._file)p=this._file;else if(c)break;var l=n?o.join(":")+"__"+n.join(":"):void 0;if(!(l!==void 0&&l in this._warned)){this._warned[l]=!0;var d=e;if(d||(d=a===o||!a.name?Oy(o):Oy(a)),r){var m=$y(this._namespace,d,u.slice(s));process.emit("deprecation",m);return}var f=process.stderr.isTTY?N5:O5,g=f.call(this,d,n,u.slice(s));process.stderr.write(g+`
24
24
  `,"utf8")}}}function yi(e){var t=e.getFileName()||"<anonymous>",r=e.getLineNumber(),n=e.getColumnNumber();e.isEval()&&(t=e.getEvalOrigin()+", "+t);var i=[t,r,n];return i.callSite=e,i.name=e.getFunctionName(),i}function Oy(e){var t=e.callSite,r=e.name;r||(r="<anonymous@"+Ll(e)+">");var n=t.getThis(),i=n&&t.getTypeName();return i==="Object"&&(i=void 0),i==="Function"&&(i=n.name||i),i&&t.getMethodName()?i+"."+r:r}function O5(e,t,r){var n=new Date().toUTCString(),i=n+" "+this._namespace+" deprecated "+e;if(this._traced){for(var a=0;a<r.length;a++)i+=`
25
25
  at `+r[a].toString();return i}return t&&(i+=" at "+Ll(t)),i}function N5(e,t,r){var n="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+e+"\x1B[39m";if(this._traced){for(var i=0;i<r.length;i++)n+=`
@@ -86,7 +86,7 @@ Please see the 3.x to 4.x migration guide for details on how to update your app.
86
86
  <pre>`+t+`</pre>
87
87
  </body>
88
88
  </html>
89
- `}function OL(){return function(){this.error(404)}}function NL(){return function(t){if(this.hasTrailingSlash()){this.error(404);return}var r=Em.original(this.req);r.path=null,r.pathname=_L(r.pathname+"/");var n=PL(IL.format(r)),i=BL("Redirecting","Redirecting to "+TL(n));t.statusCode=301,t.setHeader("Content-Type","text/html; charset=UTF-8"),t.setHeader("Content-Length",Buffer.byteLength(i)),t.setHeader("Content-Security-Policy","default-src 'none'"),t.setHeader("X-Content-Type-Options","nosniff"),t.setHeader("Location",n),t.end(i)}}});var e2=v((ht,ZS)=>{"use strict";var bu=zC(),$L=require("events").EventEmitter,JS=VC(),QS=iS(),LL=Uf(),jL=Hf(),YS=kS(),XS=KS();ht=ZS.exports=ML;function ML(){var e=function(t,r,n){e.handle(t,r,n)};return JS(e,$L.prototype,!1),JS(e,QS,!1),e.request=Object.create(YS,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(XS,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}ht.application=QS;ht.request=YS;ht.response=XS;ht.Route=LL;ht.Router=jL;ht.json=bu.json;ht.query=Vf();ht.raw=bu.raw;ht.static=WS();ht.text=bu.text;ht.urlencoded=bu.urlencoded;var qL=["bodyParser","compress","cookieSession","session","logger","cookieParser","favicon","responseTime","errorHandler","timeout","methodOverride","vhost","csrf","directory","limit","multipart","staticCache"];qL.forEach(function(e){Object.defineProperty(ht,e,{get:function(){throw new Error("Most middleware (like "+e+") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.")},configurable:!0})})});var r2=v((xZ,t2)=>{"use strict";t2.exports=e2()});var o2=v(Am=>{"use strict";Am.parse=WL;Am.serialize=JL;var UL=Object.prototype.toString,zL=Object.prototype.hasOwnProperty,HL=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,VL=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,KL=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,GL=/^[\u0020-\u003A\u003D-\u007E]*$/;function WL(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var r={},n=e.length;if(n<2)return r;var i=t&&t.decode||QL,a=0,o=0,s=0;do{if(o=e.indexOf("=",a),o===-1)break;if(s=e.indexOf(";",a),s===-1)s=n;else if(o>s){a=e.lastIndexOf(";",o-1)+1;continue}var c=n2(e,a,o),u=i2(e,o,c),p=e.slice(c,u);if(!zL.call(r,p)){var l=n2(e,o+1,s),d=i2(e,s,l);e.charCodeAt(l)===34&&e.charCodeAt(d-1)===34&&(l++,d--);var m=e.slice(l,d);r[p]=XL(m,i)}a=s+1}while(a<n);return r}function n2(e,t,r){do{var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}while(++t<r);return r}function i2(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(n!==32&&n!==9)return t+1}return r}function JL(e,t,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!HL.test(e))throw new TypeError("argument name is invalid");var i=n(t);if(!VL.test(i))throw new TypeError("argument val is invalid");var a=e+"="+i;if(!r)return a;if(r.maxAge!=null){var o=Math.floor(r.maxAge);if(!isFinite(o))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+o}if(r.domain){if(!KL.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain="+r.domain}if(r.path){if(!GL.test(r.path))throw new TypeError("option path is invalid");a+="; Path="+r.path}if(r.expires){var s=r.expires;if(!YL(s)||isNaN(s.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+s.toUTCString()}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.partitioned&&(a+="; Partitioned"),r.priority){var c=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(c){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var u=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(u){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a}function QL(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function YL(e){return UL.call(e)==="[object Date]"}function XL(e,t){try{return t(e)}catch{return e}}});var u2=v((bZ,Ji)=>{"use strict";var ZL=o2(),ej=bm();Ji.exports=tj;Ji.exports.JSONCookie=a2;Ji.exports.JSONCookies=Fm;Ji.exports.signedCookie=s2;Ji.exports.signedCookies=c2;function tj(e,t){var r=!e||Array.isArray(e)?e||[]:[e];return function(i,a,o){if(i.cookies)return o();var s=i.headers.cookie;if(i.secret=r[0],i.cookies=Object.create(null),i.signedCookies=Object.create(null),!s)return o();i.cookies=ZL.parse(s,t),r.length!==0&&(i.signedCookies=c2(i.cookies,r),i.signedCookies=Fm(i.signedCookies)),i.cookies=Fm(i.cookies),o()}}function a2(e){if(!(typeof e!="string"||e.substr(0,2)!=="j:"))try{return JSON.parse(e.slice(2))}catch{return}}function Fm(e){for(var t=Object.keys(e),r,n,i=0;i<t.length;i++)r=t[i],n=a2(e[r]),n&&(e[r]=n);return e}function s2(e,t){if(typeof e=="string"){if(e.substr(0,2)!=="s:")return e;for(var r=!t||Array.isArray(t)?t||[]:[t],n=0;n<r.length;n++){var i=ej.unsign(e.slice(2),r[n]);if(i!==!1)return i}return!1}}function c2(e,t){for(var r=Object.keys(e),n,i,a=Object.create(null),o,s=0;s<r.length;s++)i=r[s],o=e[i],n=s2(o,t),o!==n&&(a[i]=n,delete e[i]);return a}});var _j={};I2(_j,{createDevToolsServer:()=>jp,version:()=>_m});module.exports=R2(_j);var _2="1.6.108",at=process.env.OVERRIDE_VERSION??_2;var Du=require("http");var Cu="preview-url";var Hn="framework",Ka="platform",Ga="node",Om="/~builder-connect",ln="/~builder-connected",Eu="/~builder-dev-tools",Su="/~builder-dev-tools.js",dn="/~builder-dev-tools-close",Nm="/mappings";function W(e,t=""){return e.ts.createSourceFile("module.tsx",typeof t=="string"?t:"",e.ts.ScriptTarget.Latest,void 0)}function Wa(e,t=""){let r=W(e,t?.trim());if(r.statements.length===0)throw new Error(`No statements found in code: ${t}`);return r.statements[0]}function Be(e,t,r){if(t){let n=e.ts.createPrinter({newLine:e.ts.NewLineKind.LineFeed,removeComments:r});return e.ts.isSourceFile(t)?n.printFile(t).trim()+`
89
+ `}function OL(){return function(){this.error(404)}}function NL(){return function(t){if(this.hasTrailingSlash()){this.error(404);return}var r=Em.original(this.req);r.path=null,r.pathname=_L(r.pathname+"/");var n=PL(IL.format(r)),i=BL("Redirecting","Redirecting to "+TL(n));t.statusCode=301,t.setHeader("Content-Type","text/html; charset=UTF-8"),t.setHeader("Content-Length",Buffer.byteLength(i)),t.setHeader("Content-Security-Policy","default-src 'none'"),t.setHeader("X-Content-Type-Options","nosniff"),t.setHeader("Location",n),t.end(i)}}});var e2=v((ht,ZS)=>{"use strict";var bu=zC(),$L=require("events").EventEmitter,JS=VC(),QS=iS(),LL=Uf(),jL=Hf(),YS=kS(),XS=KS();ht=ZS.exports=ML;function ML(){var e=function(t,r,n){e.handle(t,r,n)};return JS(e,$L.prototype,!1),JS(e,QS,!1),e.request=Object.create(YS,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(XS,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}ht.application=QS;ht.request=YS;ht.response=XS;ht.Route=LL;ht.Router=jL;ht.json=bu.json;ht.query=Vf();ht.raw=bu.raw;ht.static=WS();ht.text=bu.text;ht.urlencoded=bu.urlencoded;var qL=["bodyParser","compress","cookieSession","session","logger","cookieParser","favicon","responseTime","errorHandler","timeout","methodOverride","vhost","csrf","directory","limit","multipart","staticCache"];qL.forEach(function(e){Object.defineProperty(ht,e,{get:function(){throw new Error("Most middleware (like "+e+") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.")},configurable:!0})})});var r2=v((xZ,t2)=>{"use strict";t2.exports=e2()});var o2=v(Am=>{"use strict";Am.parse=WL;Am.serialize=JL;var UL=Object.prototype.toString,zL=Object.prototype.hasOwnProperty,HL=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,VL=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,KL=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,GL=/^[\u0020-\u003A\u003D-\u007E]*$/;function WL(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var r={},n=e.length;if(n<2)return r;var i=t&&t.decode||QL,a=0,o=0,s=0;do{if(o=e.indexOf("=",a),o===-1)break;if(s=e.indexOf(";",a),s===-1)s=n;else if(o>s){a=e.lastIndexOf(";",o-1)+1;continue}var c=n2(e,a,o),u=i2(e,o,c),p=e.slice(c,u);if(!zL.call(r,p)){var l=n2(e,o+1,s),d=i2(e,s,l);e.charCodeAt(l)===34&&e.charCodeAt(d-1)===34&&(l++,d--);var m=e.slice(l,d);r[p]=XL(m,i)}a=s+1}while(a<n);return r}function n2(e,t,r){do{var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}while(++t<r);return r}function i2(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(n!==32&&n!==9)return t+1}return r}function JL(e,t,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!HL.test(e))throw new TypeError("argument name is invalid");var i=n(t);if(!VL.test(i))throw new TypeError("argument val is invalid");var a=e+"="+i;if(!r)return a;if(r.maxAge!=null){var o=Math.floor(r.maxAge);if(!isFinite(o))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+o}if(r.domain){if(!KL.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain="+r.domain}if(r.path){if(!GL.test(r.path))throw new TypeError("option path is invalid");a+="; Path="+r.path}if(r.expires){var s=r.expires;if(!YL(s)||isNaN(s.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+s.toUTCString()}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.partitioned&&(a+="; Partitioned"),r.priority){var c=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(c){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var u=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(u){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a}function QL(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function YL(e){return UL.call(e)==="[object Date]"}function XL(e,t){try{return t(e)}catch{return e}}});var u2=v((bZ,Ji)=>{"use strict";var ZL=o2(),ej=bm();Ji.exports=tj;Ji.exports.JSONCookie=a2;Ji.exports.JSONCookies=Fm;Ji.exports.signedCookie=s2;Ji.exports.signedCookies=c2;function tj(e,t){var r=!e||Array.isArray(e)?e||[]:[e];return function(i,a,o){if(i.cookies)return o();var s=i.headers.cookie;if(i.secret=r[0],i.cookies=Object.create(null),i.signedCookies=Object.create(null),!s)return o();i.cookies=ZL.parse(s,t),r.length!==0&&(i.signedCookies=c2(i.cookies,r),i.signedCookies=Fm(i.signedCookies)),i.cookies=Fm(i.cookies),o()}}function a2(e){if(!(typeof e!="string"||e.substr(0,2)!=="j:"))try{return JSON.parse(e.slice(2))}catch{return}}function Fm(e){for(var t=Object.keys(e),r,n,i=0;i<t.length;i++)r=t[i],n=a2(e[r]),n&&(e[r]=n);return e}function s2(e,t){if(typeof e=="string"){if(e.substr(0,2)!=="s:")return e;for(var r=!t||Array.isArray(t)?t||[]:[t],n=0;n<r.length;n++){var i=ej.unsign(e.slice(2),r[n]);if(i!==!1)return i}return!1}}function c2(e,t){for(var r=Object.keys(e),n,i,a=Object.create(null),o,s=0;s<r.length;s++)i=r[s],o=e[i],n=s2(o,t),o!==n&&(a[i]=n,delete e[i]);return a}});var _j={};I2(_j,{createDevToolsServer:()=>jp,version:()=>_m});module.exports=R2(_j);var _2="1.6.109",at=process.env.OVERRIDE_VERSION??_2;var Du=require("http");var Cu="preview-url";var Hn="framework",Ka="platform",Ga="node",Om="/~builder-connect",ln="/~builder-connected",Eu="/~builder-dev-tools",Su="/~builder-dev-tools.js",dn="/~builder-dev-tools-close",Nm="/mappings";function W(e,t=""){return e.ts.createSourceFile("module.tsx",typeof t=="string"?t:"",e.ts.ScriptTarget.Latest,void 0)}function Wa(e,t=""){let r=W(e,t?.trim());if(r.statements.length===0)throw new Error(`No statements found in code: ${t}`);return r.statements[0]}function Be(e,t,r){if(t){let n=e.ts.createPrinter({newLine:e.ts.NewLineKind.LineFeed,removeComments:r});return e.ts.isSourceFile(t)?n.printFile(t).trim()+`
90
90
  `:n.printNode(e.ts.EmitHint.Unspecified,t,e.ts.createSourceFile("module.tsx","",e.ts.ScriptTarget.Latest)).trim()+`
91
91
  `}return""}var Mm=L(Lm(),1);function yt(e){return e.endsWith(".mapper.tsx")||e.endsWith(".mapper.jsx")||e.endsWith(".mapper.ts")||e.endsWith(".mapper.js")||e.endsWith(".mapper.mjs")}function J(e,t,r){t=Ht(t),r=Ht(r),t=e.dirname(t);let n=e.basename(r,e.extname(r));r=e.dirname(r);let i;return n==="index"?i=e.relative(t,r):i=e.relative(t,e.join(r,n)),i=Ht(e.normalize(i)),i.startsWith(".")||(i="./"+i),i}function Ht(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}function fn(e,t){let r=e.extname(t),n=e.basename(t,r).split(/[\/\\]/),i=n[n.length-1];return jm(i==="index"?e.basename(e.dirname(t)):i)}function jm(e){return de(e).replace(/ /g,"")}function It(e,t){let r=e.extname(t),n=Ht(e.basename(t,r)).split("/").pop();return de(n==="index"?e.basename(e.dirname(t)):n)}function fe(e,t){let r=Ht(e.relative(e.getAppRootDir(),t));r=r.split("/").filter(i=>i!=="."&&i!==".."&&i!=="").join("/"),r.endsWith(".tsx")||r.endsWith(".jsx")?r=r.slice(0,-4):(r.endsWith(".ts")||r.endsWith(".js"))&&(r=r.slice(0,-3));let n=e.getFrameworks();return r.startsWith("src/")&&(r=r.slice(4)),n.some(i=>i.name.includes("next"))?"@/"+r:"~/"+r}function X(e,t){let r=t,n=[];for(let i=0;i<2;i++){let a=e.basename(r);if(!a||a==="components")break;n.unshift(a),r=e.dirname(r)}return n.join("/")}function de(e){for(e=e.replace(/([A-Z])/g," $1").replace(/\./g," ").replace(/_/g," ").replace(/-/g," ").replace(/\s/g," ").trim();e.includes(" ");)e=e.replace(/ /g," ");return e.split(" ").map(t=>t.length>2?t[0].toUpperCase()+t.slice(1):t).join("").trim()}function st(e){return e.sort((t,r)=>t.name.toLocaleLowerCase().localeCompare(r.name.toLocaleLowerCase()))}async function pe(e,t,r,n){if(typeof r!="string"||r==="")throw new Error(`getComponentId(), exportName must be a non-empty string, received: ${r}, ${t}`);return n&&(t=n),t=e.normalize(t),(await e.hash(t+"#"+r)).substring(0,8)}async function qm(e){return(await e.hash(e.getAppRootDir())).substring(0,8)}function Yi(e){return typeof e=="number"}function Vn(e){return typeof e=="boolean"}function Qe(e){return typeof e=="string"}function Kn(e){return typeof e=="string"?/^[A-Z][A-Za-z0-9]*$/.test(e):!1}function bt(e){return JSON.parse(JSON.stringify(e))}function Ja(e,t,r){for(let n of t)if(e.dirname(r).includes(n))return!0;return!1}function Um(){try{let e=(0,Mm.default)();if(e?.name)return e.name}catch{}return"npm"}function O2(){return process.platform.startsWith("win")}function Dt(){return O2()?'"@builder.io/dev-tools"':"builder.io"}function Ye(e){let t=e.join(e.getAppRootDir(),"tsconfig.json");return e.exists(t)}var N2=["node_modules","dist","build","public"];async function ct(e,t){async function r(i,a){if(a>10)return;let o=await e.readdir(i);for(let s of o){if(N2.includes(s))continue;let c=e.join(i,s),u=await e.stat(c);if(u){if(u.isFile()&&s.startsWith("builder-registry."))return c;if(u.isDirectory()){let p=await r(c,a+1);if(p)return p}}}}let n=await r(e.getAppRootDir(),0);if(!n){let a=`builder-registry.${await Ye(e)?"ts":"js"}`;return e.join(t,a)}return n}async function zr(e,t){let r=e.resolve("/");for(let n=0;n<20;n++){let i=e.join(t,"package.json"),a=await e.readFile(i);if(a)return JSON.parse(a);if(t===r)break;t=e.dirname(t)}return null}async function zm(e,t){for(let r=0;r<20;r++){let n=e.dirname(t),i=e.join(n,"node_modules");if(await e.exists(i))return i;if(t===e.getAppRootDir())break;t=e.dirname(t)}return e.join(e.getAppRootDir(),"node_modules")}async function Xi(e,t,r){let n=await e.readdir(t);return n.includes(r)?e.join(t,r):(await Promise.all(n.map(async a=>{if(a.startsWith(".")||a==="node_modules")return;let o=e.join(t,a);if((await e.stat(o)).isDirectory()){let c=await Xi(e,o,r);if(c)return c}}))).find(a=>typeof a=="string")}async function Ie(e,t,r){if(!Array.isArray(t)||t.length===0)throw new Error(`createTsProgram() Invalid filePaths: ${t}`);let n=await zm(e,t[0]),i=e.join(n,"typescript","lib"),a=new Map,o={fileExists:s=>{if(s=e.normalize(s),s.includes("node_modules")){let c=Zi.get(s);if(!c){try{e.statSync(s).isFile()?c={exists:!0,content:e.readFileSync(s)}:c={exists:!1}}catch{c={exists:!1}}Zi.set(s,c)}return c.exists}if(!a.has(s))if(e.existsSync(s)){let u=e.statSync(s);a.set(s,u.isFile())}else a.set(s,!1);return a.get(s)},getCanonicalFileName:s=>e.normalize(s),getCurrentDirectory:()=>e.cwd(),getDefaultLibFileName:()=>e.join(i,"lib.d.ts"),getDefaultLibLocation:()=>i,getNewLine:()=>`
92
92
  `,getSourceFile:s=>{if(s=e.normalize(s),s.includes("node_modules")){let u=Zi.get(s);if(u)return W(e,u.content)}let c;try{c=e.readFileSync(s)}catch{console.error(`Could not read: ${s}`),c==null}if(c==null){let u=e.basename(s),p=e.extname(u).toLowerCase();if(s.startsWith(i)&&p===".ts"&&(c=Vm.get(u),c==null&&typeof self<"u"&&typeof fetch=="function"))throw new Ya(u)}return s.includes("node_modules")&&(c?Zi.set(s,{exists:!0,content:c}):Zi.set(s,{exists:!1})),W(e,c)},readFile:s=>{let c=e.readFileSync(s);return typeof c=="string"?c:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return $2(e,o,t,r)}catch(s){if(s instanceof Ya){await L2(e,s.libName);continue}throw e.Sentry?.captureException(s),new Error(`createTsProgram() Could not create program for: ${t[0]}`,{cause:s})}}function $2(e,t,r,n){let i={rootNames:[...r],host:t,options:{}},a=e.ts.findConfigFile(e.dirname(r[0]),o=>e.existsSync(o));if(a){let o=Hm.get(a);if(!o){let s=e.ts.readConfigFile(a,c=>{let u=e.readFileSync(c);return typeof u=="string"?u:void 0});s.error?e.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:s.error,tsConfigPath:a}}):(o=e.ts.parseJsonConfigFileContent(s.config,e.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(u,p)=>e.readdirSync(u),fileExists:u=>e.existsSync(u),readFile:u=>e.readFileSync(u)||void 0},e.dirname(a),void 0,a).options,Hm.set(a,o))}o&&(i.options=bt(o))}return i.options.noEmit=!0,i.options.isolatedModules=!1,i.options.strict=!1,i.options.jsx=e.ts.JsxEmit.Preserve,i.options.allowJs=!0,Object.assign(i.options,n),e.ts.createProgram(i)}async function Gn(e,t,r){r||(r=await Ie(e,[t]));let n=r.getSourceFile(t);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${t}`);return{typeChecker:r.getTypeChecker(),sourceFile:n}}var Ya=class{constructor(t){this.libName=t}};async function L2(e,t){let r=`https://cdn.jsdelivr.net/npm/typescript@${e.ts.version}/lib/${t}`;Qa.has(t)||Qa.set(t,fetch(r).then(n=>n.text()).then(n=>{Vm.set(t,n)})),await Qa.get(t),Qa.delete(t)}var Vm=new Map,Qa=new Map,Zi=new Map,Hm=new Map;async function Km(e,t){let r=await e.readFile(t.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${t.filePath}`}],code:null,output:null}:Au(e,{code:r,filePath:t.filePath,compilerOptions:t.compilerOptions})}function Au(e,t){let r={diagnostics:[],code:t.code,output:null};try{let n=e.ts.transpileModule(t.code,{compilerOptions:t.compilerOptions,fileName:t.filePath??"module.tsx",reportDiagnostics:!0});n.diagnostics?.forEach(i=>{r.diagnostics.push({messageText:String(i.messageText)})}),r.output=n.outputText}catch(n){console.error("transpileModule",n),r.diagnostics.push({messageText:String(n)})}return r}var Xt=require("fs/promises");var Pu=require("os"),Tu=L(require("path"),1),M2=L(require("typescript"),1),q2=L(require("launch-editor"),1);async function Wn(e){let t=[],r=await zr(e,e.getRepoRootDir());if(r){let n=await Wm(r,e);t.push(...n)}return t}async function Wm(e,t){let r=[];if(e&&typeof e=="object"){let n=new Set(Object.keys({...e.dependencies,...e.devDependencies}));for(let i of j2)if(n.has(i)&&!r.some(a=>a.name===i)){let a={name:i};Gm.has(i)&&(a.version=await Gm.get(i)(t)),r.push(a)}}return r}function Fu(e){let t=parseInt(e);return Number.isNaN(t)?void 0:t}var Gm=new Map([["next",async e=>{if(!e.spawnSync)return;let t=Um(),r=t==="npm"?"npx":t,{stdout:n}=e.spawnSync(r,["next","-v"],{encoding:"utf8"});if(!n)return;let i=n.match(/(Next.js v)([\d.]+)/g);if(!i)return;let a=i[0].split("Next.js v")[1],[o,s,c]=a.split(".");return{major:Fu(o),minor:Fu(s),patch:Fu(c)}}]]),j2=["@shopify/remix-oxygen","@shopify/hydrogen","@builder.io/qwik-city","@remix-run/react","@sveltejs/kit","astro","gatsby","next","nuxt","@builder.io/qwik","@angular/core","react","solid-js","svelte","vue"];var U2=L(require("@sentry/node"),1);var z2=L(require("prettier"),1);function Jm(){let e=(0,Pu.homedir)();return Tu.default.join(e,".config","builder","dev-tools.json")}function ku(e,t){return typeof e=="object"&&e!=null&&t in e}async function Jn(){let e=Jm();try{let t=await(0,Xt.readFile)(e,"utf-8");if(typeof t=="string")return JSON.parse(t)}catch(t){if(t.code==="ENOENT")return null}return null}async function Iu(e){let t=Jm();e=typeof e=="object"&&e!=null?e:{},await(0,Xt.mkdir)(Tu.default.dirname(t),{recursive:!0}),await(0,Xt.writeFile)(t,JSON.stringify(e??{},null,2))}var $={gen1:"Gen 1",gen2:"Gen 2"},eo={CMS:"cms",VCP:"vcp",HYBRID:"hybrid"};var Qm=require("console"),Ym=require("http"),Xm=require("https");function Qn(e){let t=Date.now();return new Promise((r,n)=>{let a=H2(e.url)({protocol:e.url.protocol,host:e.url.host,port:e.url.port,path:e.url.pathname+e.url.search,method:e.method,headers:e.headers},o=>{let s="";o.on("data",c=>{s+=c}),o.on("end",()=>{if((0,Qm.debug)(`${e.method} ${e.url.href}, duration: ${Date.now()-t}ms`),typeof o.statusCode=="number"&&o.statusCode>=200&&o.statusCode<300)if(typeof o.headers["content-type"]!="string"||!o.headers["content-type"].includes("application/json"))n(`Response from ${e.url.href} content-type is ${o.headers["content-type"]}`);else try{r(JSON.parse(s))}catch(c){n(`Response from ${e.url.href} is not valid JSON: ${s}
@@ -108,7 +108,7 @@ Restarting server after Builder Devtools update...
108
108
  <h3>How's Devtools working for you?</h3>
109
109
  <p>We'd love your feedback!</p>
110
110
  </div>
111
- \`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.6.108"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
111
+ \`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.6.109"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
112
112
  </style>\`,Dt=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=lo+\`<main>
113
113
  <aside>
114
114
  <div class="logo"></div>
@@ -147,7 +147,7 @@ Restarting server after Builder Devtools update...
147
147
  </nav>
148
148
  </section>
149
149
  </main>
150
- \`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.6.108"),document.body.appendChild(t));let e=document.querySelector("builder-dev-tools-edit");e||(e=document.createElement("builder-dev-tools-edit"),document.body.appendChild(e));let r=document.getElementById("builder-dev-tools-style");r||(r=document.createElement("style"),r.id="builder-dev-tools-style",r.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(r)),li(),Jn()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v1.6.108"),mo());})();`)}async function pg(e){return lg(e,`<!doctype html>
150
+ \`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.6.109"),document.body.appendChild(t));let e=document.querySelector("builder-dev-tools-edit");e||(e=document.createElement("builder-dev-tools-edit"),document.body.appendChild(e));let r=document.getElementById("builder-dev-tools-style");r||(r=document.createElement("style"),r.id="builder-dev-tools-style",r.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(r)),li(),Jn()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v1.6.109"),mo());})();`)}async function pg(e){return lg(e,`<!doctype html>
151
151
  <html lang="en" dir="ltr">
152
152
  <head>
153
153
  <meta charset="utf-8" />
@@ -1353,13 +1353,13 @@ module.exports = nextConfig
1353
1353
 
1354
1354
  `)):i.warn((0,Jv.yellow)(`${i.status} ${s}
1355
1355
 
1356
- `)),await Br(1)}return i}catch(n){if(n instanceof Error&&n.name==="AbortError")throw n;let i=typeof e=="string"?e:e instanceof URL?e.toString():e.url,a=t?.method||"GET",o=n instanceof Error?n.message:String(n),s=new Error(`Fetch failed for ${a} ${i}: ${o}`);throw n instanceof Error&&(s.cause=n),s.requestContext={url:i,method:a,headers:t?.headers},s}};function Z6(){let t={darwin:"Macintosh",win32:"Windows NT",linux:"Linux",android:"Android",ios:"iPhone"}[$p.default.platform]||"Unknown",r=$p.default.platform==="win32"?"10.0":"";return{"User-Agent":`Mozilla/5.0 (${t}${r?"; "+r:""}) builder-cli/${Kv}`,"Sec-Ch-Ua-Platform":t}}var e3=L(require("@sentry/node"),1);var Sr=L(Fr(),1);var t3=L(require("prettier"),1);var o3=L(require("chokidar"),1),a3=L(require("ignore"),1);var Mp=L(require("process"),1);function qp(){let{env:e}=Mp.default,{TERM:t,TERM_PROGRAM:r}=e;return Mp.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Up=L(Fr(),1),Or=L(Xa(),1),As=require("process"),Qr=L(require("readline"),1),So=L(Fr(),1),Fs=()=>{let e=zp?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],t=zp?80:120,r,n,i=!1,a="",o="",s="",c=x=>{let w=x>1?"Something went wrong":"Canceled";i&&f(w,x)},u=(x,w)=>{console.error(w,x),c(2)},p=()=>c(1),l=()=>{process.on("uncaughtExceptionMonitor",u),process.on("unhandledRejection",u),process.on("SIGINT",p),process.on("SIGTERM",p),process.on("exit",c)},d=()=>{process.removeListener("uncaughtExceptionMonitor",u),process.removeListener("unhandledRejection",u),process.removeListener("SIGINT",p),process.removeListener("SIGTERM",p),process.removeListener("exit",c)},m=(x="")=>{i=!0,r=d3(),a=x.replace(/\.+$/,""),process.stdout.write(`${Up.default.gray(s3)}
1356
+ `)),await Br(1)}return i}catch(n){if(n instanceof Error&&n.name==="AbortError")throw n;let i=typeof e=="string"?e:e instanceof URL?e.toString():e.url,a=t?.method||"GET",o=n instanceof Error?n.message:String(n),s=new Error(`Fetch failed for ${a} ${i}: ${o}`);throw n instanceof Error&&(s.cause=n),s.requestContext={url:i,method:a,headers:t?.headers},s}};function Z6(){let t={darwin:"Macintosh",win32:"Windows NT",linux:"Linux",android:"Android",ios:"iPhone"}[$p.default.platform]||"Unknown",r=$p.default.platform==="win32"?"10.0":"";return{"User-Agent":`Mozilla/5.0 (${t}${r?"; "+r:""}) builder-cli/${Kv}`,"Sec-Ch-Ua-Platform":t}}var eP=L(require("@sentry/node"),1);var Sr=L(Fr(),1);var tP=L(require("prettier"),1);var oP=L(require("chokidar"),1),aP=L(require("ignore"),1);var Mp=L(require("process"),1);function qp(){let{env:e}=Mp.default,{TERM:t,TERM_PROGRAM:r}=e;return Mp.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Up=L(Fr(),1),Or=L(Xa(),1),As=require("process"),Qr=L(require("readline"),1),So=L(Fr(),1),Fs=()=>{let e=zp?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],t=zp?80:120,r,n,i=!1,a="",o="",s="",c=x=>{let w=x>1?"Something went wrong":"Canceled";i&&f(w,x)},u=(x,w)=>{console.error(w,x),c(2)},p=()=>c(1),l=()=>{process.on("uncaughtExceptionMonitor",u),process.on("unhandledRejection",u),process.on("SIGINT",p),process.on("SIGTERM",p),process.on("exit",c)},d=()=>{process.removeListener("uncaughtExceptionMonitor",u),process.removeListener("unhandledRejection",u),process.removeListener("SIGINT",p),process.removeListener("SIGTERM",p),process.removeListener("exit",c)},m=(x="")=>{i=!0,r=dP(),a=x.replace(/\.+$/,""),process.stdout.write(`${Up.default.gray(sP)}
1357
1357
  `);let w=0,y=0;l(),process.env.CI||(n=setInterval(()=>{let F=Up.default.magenta(e[w]),E=".".repeat(Math.floor(y)).slice(0,3);process.stdout.write(Or.cursor.move(-999,-s.split(`
1358
1358
  `).length+1)),process.stdout.write(Or.erase.down(s.split(`
1359
- `).length));let S=`${F} ${a}${E}${o}`;process.stdout.write(S),w=w+1<e.length?w+1:0,y=y<e.length?y+.125:0,s=S},t))},f=(x,w=0)=>{a=x??a,i=!1,clearInterval(n);let y=w===0?(0,So.green)(p3):w===1?(0,So.red)(c3):(0,So.red)(u3);process.stdout.write(Or.cursor.move(-999,-s.split(`
1359
+ `).length));let S=`${F} ${a}${E}${o}`;process.stdout.write(S),w=w+1<e.length?w+1:0,y=y<e.length?y+.125:0,s=S},t))},f=(x,w=0)=>{a=x??a,i=!1,clearInterval(n);let y=w===0?(0,So.green)(pP):w===1?(0,So.red)(cP):(0,So.red)(uP);process.stdout.write(Or.cursor.move(-999,-s.split(`
1360
1360
  `).length+1)),process.stdout.write(Or.erase.down(s.split(`
1361
1361
  `).length)),process.stdout.write(`${y} ${a}
1362
- `),s=a,d(),r()};return{start:m,stop:f,message:(x="")=>{a=x??a},extra:(x="")=>{o=x}}},zp=qp(),Ps=(e,t)=>zp?e:t,s3=Ps("\u2502","|"),c3=Ps("\u25A0","x"),u3=Ps("\u25B2","x"),p3=Ps("\u25C7","o"),l3=globalThis.process.platform.startsWith("win");function d3({input:e=As.stdin,output:t=As.stdout,overwrite:r=!0,hideCursor:n=!0}={}){let i=Qr.createInterface({input:e,output:t,prompt:"",tabSize:1});Qr.emitKeypressEvents(e,i),e.isTTY&&e.setRawMode(!0);let a=(o,{name:s})=>{if(String(o)===""){n&&t.write(Or.cursor.show),process.exit(0);return}if(!r)return;Qr.moveCursor(t,s==="return"?0:-1,s==="return"?-1:0,()=>{Qr.clearLine(t,1,()=>{e.once("keypress",a)})})};return n&&t.write(Or.cursor.hide),e.once("keypress",a),()=>{e.off("keypress",a),n&&t.write(Or.cursor.show),e.isTTY&&!l3&&e.setRawMode(!1),i.terminal=!1,i.close()}}var A=L(Fr(),1);function Hp(e){switch(Co("cli help",{subcommand:e}),console.log(""),Pr((0,A.bgCyan)((0,A.bold)((0,A.white)(" help ")))+" "+(0,A.dim)(at)),e){case"add":case"generate":case"gen":case"g":Pr(`${(0,A.cyan)("\u2192")} ${(0,A.bold)("Generate Figma Components")}
1362
+ `),s=a,d(),r()};return{start:m,stop:f,message:(x="")=>{a=x??a},extra:(x="")=>{o=x}}},zp=qp(),Ps=(e,t)=>zp?e:t,sP=Ps("\u2502","|"),cP=Ps("\u25A0","x"),uP=Ps("\u25B2","x"),pP=Ps("\u25C7","o"),lP=globalThis.process.platform.startsWith("win");function dP({input:e=As.stdin,output:t=As.stdout,overwrite:r=!0,hideCursor:n=!0}={}){let i=Qr.createInterface({input:e,output:t,prompt:"",tabSize:1});Qr.emitKeypressEvents(e,i),e.isTTY&&e.setRawMode(!0);let a=(o,{name:s})=>{if(String(o)===""){n&&t.write(Or.cursor.show),process.exit(0);return}if(!r)return;Qr.moveCursor(t,s==="return"?0:-1,s==="return"?-1:0,()=>{Qr.clearLine(t,1,()=>{e.once("keypress",a)})})};return n&&t.write(Or.cursor.hide),e.once("keypress",a),()=>{e.off("keypress",a),n&&t.write(Or.cursor.show),e.isTTY&&!lP&&e.setRawMode(!1),i.terminal=!1,i.close()}}var A=L(Fr(),1);function Hp(e){switch(Co("cli help",{subcommand:e}),console.log(""),Pr((0,A.bgCyan)((0,A.bold)((0,A.white)(" help ")))+" "+(0,A.dim)(at)),e){case"add":case"generate":case"gen":case"g":Pr(`${(0,A.cyan)("\u2192")} ${(0,A.bold)("Generate Figma Components")}
1363
1363
 
1364
1364
  ${(0,A.bgGreen)((0,A.white)(` npx ${Dt()} figma generate URL [URL ...] `))}
1365
1365
 
@@ -1495,8 +1495,8 @@ ${(0,A.yellow)("Arguments:")}
1495
1495
  `),[{command:"generate URL [URL ...]",description:"Start the auto-mapping wizard for Figma Component URLs"},{command:"publish",description:"Publish your Figma Mappings to Builder.io"},{command:"migrate",description:"Migrate existing Figma Mappings into the repo as local files"},{command:"auth",description:"Re-authenticate with Figma and Builder.io"},{command:"code",description:"Generate or modify code based on Figma designs"},{command:"indexing",description:"Index your codebase to improve code generation results"},{command:"index-repo",description:"Index your entire repository to improve code generation results"},{command:"code-server",description:"Start a development server that provides project file information and code analysis"},{command:"launch",description:"Launch a development server"}].forEach(({command:r,description:n})=>{te.info(`${(0,A.cyan)("\u2192")} ${(0,A.bgGreen)((0,A.white)(` npx ${Dt()} figma ${r} `))}
1496
1496
  ${(0,A.dim)(n)}
1497
1497
  `)}),te.info(`
1498
- Use ${(0,A.cyan)(`npx ${Dt()} figma help <command>`)} for detailed help about a command`)}io("bye \u{1F44B}")}function Nr(){}Nr.prototype={diff:function(t,r){var n,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.callback;typeof i=="function"&&(a=i,i={}),this.options=i;var o=this;function s(F){return a?(setTimeout(function(){a(void 0,F)},0),!0):F}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var c=r.length,u=t.length,p=1,l=c+u;i.maxEditLength&&(l=Math.min(l,i.maxEditLength));var d=(n=i.timeout)!==null&&n!==void 0?n:1/0,m=Date.now()+d,f=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(f[0],r,t,0);if(f[0].oldPos+1>=u&&g+1>=c)return s([{value:this.join(r),count:r.length}]);var h=-1/0,x=1/0;function w(){for(var F=Math.max(h,-p);F<=Math.min(x,p);F+=2){var E=void 0,S=f[F-1],I=f[F+1];S&&(f[F-1]=void 0);var k=!1;if(I){var R=I.oldPos-F;k=I&&0<=R&&R<c}var P=S&&S.oldPos+1<u;if(!k&&!P){f[F]=void 0;continue}if(!P||k&&S.oldPos+1<I.oldPos?E=o.addToPath(I,!0,void 0,0):E=o.addToPath(S,void 0,!0,1),g=o.extractCommon(E,r,t,F),E.oldPos+1>=u&&g+1>=c)return s(m3(o,E.lastComponent,r,t,o.useLongestToken));f[F]=E,E.oldPos+1>=u&&(x=Math.min(x,F-1)),g+1>=c&&(h=Math.max(h,F+1))}p++}if(a)(function F(){setTimeout(function(){if(p>l||Date.now()>m)return a();w()||F()},0)})();else for(;p<=l&&Date.now()<=m;){var y=w();if(y)return y}},addToPath:function(t,r,n,i){var a=t.lastComponent;return a&&a.added===r&&a.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}},extractCommon:function(t,r,n,i){for(var a=r.length,o=n.length,s=t.oldPos,c=s-i,u=0;c+1<a&&s+1<o&&this.equals(r[c+1],n[s+1]);)c++,s++,u++;return u&&(t.lastComponent={count:u,previousComponent:t.lastComponent}),t.oldPos=s,c},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function m3(e,t,r,n,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,u=0,p=0;s<c;s++){var l=a[s];if(l.removed){if(l.value=e.join(n.slice(p,p+l.count)),p+=l.count,s&&a[s-1].added){var m=a[s-1];a[s-1]=a[s],a[s]=m}}else{if(!l.added&&i){var d=r.slice(u,u+l.count);d=d.map(function(g,h){var x=n[p+h];return x.length>g.length?x:g}),l.value=e.join(d)}else l.value=e.join(r.slice(u,u+l.count));u+=l.count,l.added||(p+=l.count)}}var f=a[c-1];return c>1&&typeof f.value=="string"&&(f.added||f.removed)&&e.equals("",f.value)&&(a[c-2].value+=f.value,a.pop()),a}var dJ=new Nr;var Zv=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,e0=/\S/,t0=new Nr;t0.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!e0.test(e)&&!e0.test(t)};t0.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&Zv.test(t[r])&&Zv.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var r0=new Nr;r0.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
1499
- `));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var g3=new Nr;g3.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var h3=new Nr;h3.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ts(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ts=function(t){return typeof t}:Ts=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}var v3=Object.prototype.toString,Ao=new Nr;Ao.useLongestToken=!0;Ao.tokenize=r0.tokenize;Ao.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=n===void 0?function(a,o){return typeof o>"u"?r:o}:n;return typeof e=="string"?e:JSON.stringify(Vp(e,null,null,i),i," ")};Ao.equals=function(e,t){return Nr.prototype.equals.call(Ao,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Vp(e,t,r,n,i){t=t||[],r=r||[],n&&(e=n(i,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return r[a];var o;if(v3.call(e)==="[object Array]"){for(t.push(e),o=new Array(e.length),r.push(o),a=0;a<e.length;a+=1)o[a]=Vp(e[a],t,r,n,i);return t.pop(),r.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),Ts(e)==="object"&&e!==null){t.push(e),o={},r.push(o);var s=[],c;for(c in e)e.hasOwnProperty(c)&&s.push(c);for(s.sort(),a=0;a<s.length;a+=1)c=s[a],o[c]=Vp(e[c],t,r,n,c);t.pop(),r.pop()}else o=e;return o}var Kp=new Nr;Kp.tokenize=function(e){return e.slice()};Kp.join=Kp.removeEmpty=function(e){return e};var pj=L(require("prettier"),1);var PZ=L(Nl(),1);var cj=L(By(),1);var ij=L(Nl(),1);var rj=L(r2(),1),nj=L(u2(),1);var p2="/_builder.io",wZ=p2+"/api";var uj=L(Rl(),1);async function Pm(e){let{default:t}=await import("open");await t(e)}var ete=`
1498
+ Use ${(0,A.cyan)(`npx ${Dt()} figma help <command>`)} for detailed help about a command`)}io("bye \u{1F44B}")}function Nr(){}Nr.prototype={diff:function(t,r){var n,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.callback;typeof i=="function"&&(a=i,i={}),this.options=i;var o=this;function s(F){return a?(setTimeout(function(){a(void 0,F)},0),!0):F}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var c=r.length,u=t.length,p=1,l=c+u;i.maxEditLength&&(l=Math.min(l,i.maxEditLength));var d=(n=i.timeout)!==null&&n!==void 0?n:1/0,m=Date.now()+d,f=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(f[0],r,t,0);if(f[0].oldPos+1>=u&&g+1>=c)return s([{value:this.join(r),count:r.length}]);var h=-1/0,x=1/0;function w(){for(var F=Math.max(h,-p);F<=Math.min(x,p);F+=2){var E=void 0,S=f[F-1],I=f[F+1];S&&(f[F-1]=void 0);var k=!1;if(I){var R=I.oldPos-F;k=I&&0<=R&&R<c}var P=S&&S.oldPos+1<u;if(!k&&!P){f[F]=void 0;continue}if(!P||k&&S.oldPos+1<I.oldPos?E=o.addToPath(I,!0,void 0,0):E=o.addToPath(S,void 0,!0,1),g=o.extractCommon(E,r,t,F),E.oldPos+1>=u&&g+1>=c)return s(mP(o,E.lastComponent,r,t,o.useLongestToken));f[F]=E,E.oldPos+1>=u&&(x=Math.min(x,F-1)),g+1>=c&&(h=Math.max(h,F+1))}p++}if(a)(function F(){setTimeout(function(){if(p>l||Date.now()>m)return a();w()||F()},0)})();else for(;p<=l&&Date.now()<=m;){var y=w();if(y)return y}},addToPath:function(t,r,n,i){var a=t.lastComponent;return a&&a.added===r&&a.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}},extractCommon:function(t,r,n,i){for(var a=r.length,o=n.length,s=t.oldPos,c=s-i,u=0;c+1<a&&s+1<o&&this.equals(r[c+1],n[s+1]);)c++,s++,u++;return u&&(t.lastComponent={count:u,previousComponent:t.lastComponent}),t.oldPos=s,c},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function mP(e,t,r,n,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,u=0,p=0;s<c;s++){var l=a[s];if(l.removed){if(l.value=e.join(n.slice(p,p+l.count)),p+=l.count,s&&a[s-1].added){var m=a[s-1];a[s-1]=a[s],a[s]=m}}else{if(!l.added&&i){var d=r.slice(u,u+l.count);d=d.map(function(g,h){var x=n[p+h];return x.length>g.length?x:g}),l.value=e.join(d)}else l.value=e.join(r.slice(u,u+l.count));u+=l.count,l.added||(p+=l.count)}}var f=a[c-1];return c>1&&typeof f.value=="string"&&(f.added||f.removed)&&e.equals("",f.value)&&(a[c-2].value+=f.value,a.pop()),a}var dJ=new Nr;var Zv=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,e0=/\S/,t0=new Nr;t0.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!e0.test(e)&&!e0.test(t)};t0.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&Zv.test(t[r])&&Zv.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var r0=new Nr;r0.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
1499
+ `));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var gP=new Nr;gP.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var hP=new Nr;hP.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ts(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ts=function(t){return typeof t}:Ts=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}var vP=Object.prototype.toString,Ao=new Nr;Ao.useLongestToken=!0;Ao.tokenize=r0.tokenize;Ao.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=n===void 0?function(a,o){return typeof o>"u"?r:o}:n;return typeof e=="string"?e:JSON.stringify(Vp(e,null,null,i),i," ")};Ao.equals=function(e,t){return Nr.prototype.equals.call(Ao,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Vp(e,t,r,n,i){t=t||[],r=r||[],n&&(e=n(i,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return r[a];var o;if(vP.call(e)==="[object Array]"){for(t.push(e),o=new Array(e.length),r.push(o),a=0;a<e.length;a+=1)o[a]=Vp(e[a],t,r,n,i);return t.pop(),r.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),Ts(e)==="object"&&e!==null){t.push(e),o={},r.push(o);var s=[],c;for(c in e)e.hasOwnProperty(c)&&s.push(c);for(s.sort(),a=0;a<s.length;a+=1)c=s[a],o[c]=Vp(e[c],t,r,n,c);t.pop(),r.pop()}else o=e;return o}var Kp=new Nr;Kp.tokenize=function(e){return e.slice()};Kp.join=Kp.removeEmpty=function(e){return e};var pj=L(require("prettier"),1);var PZ=L(Nl(),1);var cj=L(By(),1);var ij=L(Nl(),1);var rj=L(r2(),1),nj=L(u2(),1);var p2="/_builder.io",wZ=p2+"/api";var uj=L(Rl(),1);async function Pm(e){let{default:t}=await import("open");await t(e)}var ete=`
1500
1500
  `+(0,Sr.dim)("ESC to interrupt");var zt=L(require("typescript"),1);function Tm(e){return!(e.category!==zt.DiagnosticCategory.Error||!e.file||e.code===6133||e.code===6138||e.code===6305||e.code===6196||e.code===6192||e.code===6198||e.code===6199||e.code===6205||e.code===1449||e.code===2578||e.code===7006||e.code===5074||e.code===7026||e.code===2503||e.code===2695||e.code===2322)}async function dj(e,t,r){let n=[],i=[t],a=e.relative(e.getAppRootDir(),t.fileName);for(;i.length>0;){let o=i.shift();if(vj(o,t)){let s=mj(e,o,t,r),{line:c,character:u}=t.getLineAndCharacterOfPosition(o.getStart());s&&(s.loc=`${a}:${c+1}:${u+1}`,n.push(s))}i.push(...o.getChildren(t))}return n}var fj="figmaMapping";function mj(e,t,r,n){let[i]=t.arguments;if(!i)throw new Error("Invalid figmaMapping call, no arguments found");if(!M.default.isObjectLiteralExpression(i))throw new Error("Invalid figmaMapping call, argument is not an object literal");let a=i.properties;if(!a)throw new Error("Invalid figmaMapping call, argument has no properties");let o="",s,c,u,p="-",l=e.basename(r.fileName).replace(/\.mapper\.[tsxjm]+$/,""),d,m,f,g,h;if(t.typeArguments&&t.typeArguments.length>0){let y=l2(t.typeArguments[0].getText(r));y&&(l=y)}for(let y of a){let F=y.name?.getText(r);if(!F)throw new Error("Invalid figmaMapping call, property has no name");switch(F){case"componentName":{if(!("initializer"in y))throw new Error("Invalid figmaMapping call, componentName has no initializer");let E=y.initializer;if(!M.default.isStringLiteral(E))throw new Error("Invalid figmaMapping call, componentName is not a string literal");s=E.text;break}case"url":{if(!("initializer"in y))throw new Error("Invalid figmaMapping call, url has no initializer");let E=y.initializer;if(!M.default.isStringLiteral(E))throw new Error("Invalid figmaMapping call, url is not a string literal");g=E.text;break}case"componentKey":{if(!("initializer"in y))throw new Error("Invalid figmaMapping call, componentKey has no initializer");let E=y.initializer;if(!M.default.isStringLiteral(E))throw new Error("Invalid figmaMapping call, componentKey is not a string literal");o=E.text;break}case"meta":{if(!("initializer"in y))throw new Error("Invalid figmaMapping call, meta has no initializer");let E=y.initializer;if(M.default.isObjectLiteralExpression(E)){h={imports:[]};for(let S of E.properties)M.default.isPropertyAssignment(S)&&M.default.isIdentifier(S.name)&&S.name.text==="imports"&&M.default.isArrayLiteralExpression(S.initializer)&&(h.imports=S.initializer.elements.map(k=>{if(M.default.isObjectLiteralExpression(k)){let R={};for(let P of k.properties)if(M.default.isPropertyAssignment(P)&&M.default.isIdentifier(P.name)){let b=P.name.text;M.default.isStringLiteral(P.initializer)&&(R[b]=P.initializer.text)}return R}return null}).filter(Boolean))}break}case"mapper":if(M.default.isMethodDeclaration(y)){let E=function(I){let R=n.getSymbolAtLocation(I)?.getDeclarations()?.[0];if(R){let P=hj(R);if(P?.importClause){let b=P.importClause.name?.getText(r);return b===p?(d="default",m=b):P.importClause.namedBindings&&M.default.isNamedImports(P.importClause.namedBindings)&&(d="named",P.importClause.namedBindings.elements.forEach(O=>{O.name.getText(r)===p&&(m=O.name.getText(r))})),m&&M.default.isStringLiteral(P.moduleSpecifier)&&(f=P.moduleSpecifier.text),!0}}return!1},S=function(I){if((M.default.isJsxOpeningElement(I)||M.default.isJsxSelfClosingElement(I))&&M.default.isIdentifier(I.tagName)){p=I.tagName.getText(r),E(I.tagName);return}else if(M.default.isTaggedTemplateExpression(I)&&M.default.isIdentifier(I.tag)&&I.tag.escapedText==="html"){if(M.default.isTemplateExpression(I.template)){let R=I.template.templateSpans.find(P=>M.default.isIdentifier(P.expression)&&gj(P.expression.text)&&E(P.expression));if(R&&M.default.isIdentifier(R.expression)){p=R.expression.text;return}}let k=I.template.getText(r).match(/^`\s*<([^\s]+)/);if(k){p=k[1];return}}else M.default.forEachChild(I,S)};var x=E,w=S;if(y.parameters&&y.parameters.length>0&&y.parameters[0]&&y.parameters[0].type){let I=y.parameters[0].type.getText(r),k=l2(I);k&&(l=k)}M.default.forEachChild(y,S),u=y.getText(r).replace(/^mapper/,"function Mapper"),c=km(u);break}case"designTokenMapper":if(M.default.isMethodDeclaration(y)){u=y.getText(r).replace(/^designTokenMapper/,"function Mapper"),c=km(u),o="design-tokens";break}case"genericMapper":if(M.default.isMethodDeclaration(y)){u=y.getText(r).replace(/^genericMapper/,"function Mapper"),c=km(u),o="*";break}}}if(!o&&!g)throw new Error("Invalid figmaMapping call, no componentKey or url found");if(!o&&!c)throw new Error("Invalid figmaMapping call, no mapper found");if(!o&&!u)throw new Error("Invalid figmaMapping call, no original mapper found");return{builderName:p,figmaName:s??l,figmaKey:o,figmaUrl:g,inputMapper:c,exportType:d,importName:m,importPath:f,originalInputMapper:u,imports:bj(r).concat(h?.imports??[]),source:"cli"}}function gj(e){return e.charAt(0)===e.charAt(0).toUpperCase()}function km(e){return M.default.transpile(e,{target:M.default.ScriptTarget.Latest,allowNonTsExtensions:!0,moduleResolution:M.default.ModuleResolutionKind.NodeJs,module:M.default.ModuleKind.CommonJS,noImplicitAny:!1,esModuleInterop:!0,noUnusedLocals:!1,noUnusedParameters:!1,jsx:M.default.JsxEmit.React,jsxFactory:"React.createElement",jsxFragmentFactory:"React.Fragment",allowJs:!0,checkJs:!0,strict:!0,suppressImplicitAnyIndexErrors:!0,typeRoots:["node_modules/@types"],inlineSources:!0,inlineSourceMap:!0})}function hj(e){let t=e;for(;t;){if(M.default.isImportDeclaration(t))return t;t=t.parent}}function vj(e,t){return M.default.isCallExpression(e)&&e.expression.getText(t)===fj}async function d2(e){let t=["node_modules","dist","build","public"];return(await e.readdirRecursive(e.getAppRootDir(),t)).filter(n=>yt(n))}function l2(e){let t=e.match(/^Figma(\w+)Props$/);if(t&&typeof t[1]=="string")return t[1]}async function f2(e,t,r,n=!1){try{return r||(r=await ws(e)),(await r.setPublicApiKey({publicApiKey:t})).modifiedType==="permission-error"?{success:!1,error:"permission-error"}:(n&&await r.ensureFigmaImportPage(),{success:!0})}catch(i){let a="unknown-error";return i instanceof Error?a=i.message:typeof i=="string"&&(a=i),{success:!1,error:a}}}var xj={getCanonicalFileName:e=>e,getCurrentDirectory:()=>M.default.sys.getCurrentDirectory(),getNewLine:()=>M.default.sys.newLine};function yj(e){return M.default.formatDiagnosticsWithColorAndContext(e,xj)}async function m2({sys:e,mappingFiles:t,typeCheck:r}){if(e.Sentry?.setContext("findMappings",{mappingFiles:t}),!t.length)return{mapperFiles:[],figmaBuilderLinks:[],figmaLinksToResolve:[],diagnostics:[]};let n=[],i=[],a=[],o=await Ie(e,t),s=o.getTypeChecker(),c=o.getSyntacticDiagnostics().filter(Tm).filter(l=>l.file?.fileName?t.includes(l.file.fileName):!1);if(c.length>0)return te.error(`At least one of the mappings contain syntactic errors:
1501
1501
 
1502
1502
  ${yj(c)}`),Br(1);let u=[...r?o.getSemanticDiagnostics():[]].filter(Tm);for(let l of t)try{let d=o.getSourceFile(l);if(!d){e.Sentry?.captureException(new Error("Could not find source file"),{extra:{file:l,sourceFiles:o.getSourceFiles().map(g=>g.fileName)},level:"warning"});continue}let m=d?.fileName;if(i.push({filePath:l,content:d.getText()}),m){let g=u.filter(h=>h.file?.fileName===m);g.length>0&&a.push(...g)}let f=await dj(e,d,s);n.push(...f)}catch(d){return e.Sentry?.captureException(d),await Br(1)}let p=n.filter(l=>l.figmaUrl&&!l.figmaKey).map(l=>l.figmaUrl);return{mapperFiles:i,figmaBuilderLinks:n,figmaLinksToResolve:p,diagnostics:a}}function bj(e){let t=[];for(let r of e.statements){if(!M.default.isImportDeclaration(r)||!r.importClause||r.importClause.isTypeOnly||!M.default.isStringLiteral(r.moduleSpecifier))continue;let n=r.moduleSpecifier.text;if(n.startsWith("@builder.io"))continue;r.importClause.name&&t.push({importType:"default",importName:r.importClause.name.text,importPath:n});let i=r.importClause.namedBindings;if(i&&M.default.isNamedImports(i))for(let a of i.elements)a.isTypeOnly||t.push({importType:"named",importName:a.name.text,importPath:n})}return t}var x2=require("crypto");var Dj=5294,wj=5284,Rm=4,Im=e=>!!(process.env.CI||e.ci),Eo=async(e,t,r)=>{let n=Im(t)?{}:Aj(e),i=n.spaceName,a,o=t.builderUserId??process.env.BUILDER_USER_ID??n.userId,s=t.builderPublicKey??process.env.BUILDER_PUBLIC_KEY??n.builderPublicKey,c=t.builderPrivateKey??process.env.BUILDER_PRIVATE_KEY??n.builderPrivateKey,u=process.env.FIGMA_PERSONAL_TOKEN??t.figmaToken;if(u?a={access_token:u,oauth:!1}:a=n.figmaAuth,r.forceSpaceId&&!t.yes&&s&&s!==r.forceSpaceId&&(te.warning(`CLI is currently logged in space ${(0,un.yellow)(s)},