Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
(()=>{var e={552:e=>{"use strict";e.exports=()=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");return new RegExp(e,"g")}},539:(e,n,r)=>{"use strict";e=r.nmd(e);const t=r(558),o=(e,n)=>function(){return`[${e.apply(t,arguments)+n}m`},a=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};5;${r}m`},s=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const r of Object.keys(n)){const t=n[r];for(const r of Object.keys(t)){const o=t[r];n[r]={open:`[${o[0]}m`,close:`[${o[1]}m`},t[r]=n[r],e.set(o[0],o[1])}Object.defineProperty(n,r,{value:t,enumerable:!1}),Object.defineProperty(n,"codes",{value:e,enumerable:!1})}const r=(e,n,r)=>[e,n,r];n.color.close="",n.bgColor.close="",n.color.ansi={},n.color.ansi256={},n.color.ansi16m={rgb:s(r,0)},n.bgColor.ansi={},n.bgColor.ansi256={},n.bgColor.ansi16m={rgb:s(r,10)};for(const e of Object.keys(t)){if("object"!=typeof t[e])continue;const r=t[e];"ansi16"in r&&(n.color.ansi[e]=o(r.ansi16,0),n.bgColor.ansi[e]=o(r.ansi16,10)),"ansi256"in r&&(n.color.ansi256[e]=a(r.ansi256,0),n.bgColor.ansi256[e]=a(r.ansi256,10)),"rgb"in r&&(n.color.ansi16m[e]=s(r.rgb,0),n.bgColor.ansi16m[e]=s(r.rgb,10))}return n}})},384:(e,n,r)=>{"use strict";const t=r(10),o=r(539),a=r(639),s=r(607),l=!1,i=["ansi","ansi","ansi256","ansi16m"],c=new Set(["gray"]),u=Object.create(null);function h(e,n){n=n||{};const r=a?a.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function g(e){if(!this||!(this instanceof g)||this.template){const n={};return h(n,e),n.template=function(){const e=[].slice.call(arguments);return b.apply(null,[n.template].concat(e))},Object.setPrototypeOf(n,g.prototype),Object.setPrototypeOf(n.template,n),n.template.constructor=g,n.template}h(this,e)}l&&(o.blue.open="");for(const e of Object.keys(o))o[e].closeRe=new RegExp(t(o[e].close),"g"),u[e]={get(){const n=o[e];return f.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}};u.visible={get(){return f.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(t(o.color.close),"g");for(const e of Object.keys(o.color.ansi))c.has(e)||(u[e]={get(){const n=this.level;return function(){const r={open:o.color[i[n]][e].apply(null,arguments),close:o.color.close,closeRe:o.color.closeRe};return f.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});o.bgColor.closeRe=new RegExp(t(o.bgColor.close),"g");for(const e of Object.keys(o.bgColor.ansi))c.has(e)||(u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const n=this.level;return function(){const r={open:o.bgColor[i[n]][e].apply(null,arguments),close:o.bgColor.close,closeRe:o.bgColor.closeRe};return f.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});const p=Object.defineProperties((()=>{}),u);function f(e,n,r){const t=function(){return d.apply(t,arguments)};t._styles=e,t._empty=n;const o=this;return Object.defineProperty(t,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(t,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),t.hasGrey=this.hasGrey||"gray"===r||"grey"===r,t.__proto__=p,t}function d(){const e=arguments,n=e.length;let r=String(arguments[0]);if(0===n)return"";if(n>1)for(let t=1;t<n;t++)r+=" "+e[t];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const t=o.dim.open;l&&this.hasGrey&&(o.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`);return o.dim.open=t,r}function b(e,n){if(!Array.isArray(n))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),t=[n.raw[0]];for(let e=1;e<n.length;e++)t.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&")),t.push(String(n.raw[e]));return s(e,t.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=a,e.exports.default=e.exports},607:e=>{"use strict";const n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,t=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):a.get(e)||e}function l(e,n){const r=[],a=n.trim().split(/\s*,\s*/g);let l;for(const n of a)if(isNaN(n)){if(!(l=n.match(t)))throw new Error(`Invalid Chalk template style argument: ${n} (in style '${e}')`);r.push(l[2].replace(o,((e,n,r)=>n?s(n):r)))}else r.push(Number(n));return r}function i(e){r.lastIndex=0;const n=[];let t;for(;null!==(t=r.exec(e));){const e=t[1];if(t[2]){const r=l(e,t[2]);n.push([e].concat(r))}else n.push([e])}return n}function c(e,n){const r={};for(const e of n)for(const n of e.styles)r[n[0]]=e.inverse?null:n.slice(1);let t=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in t))throw new Error(`Unknown Chalk style: ${e}`);t=r[e].length>0?t[e].apply(t,r[e]):t[e]}return t}e.exports=(e,r)=>{const t=[],o=[];let a=[];if(r.replace(n,((n,r,l,u,h,g)=>{if(r)a.push(s(r));else if(u){const n=a.join("");a=[],o.push(0===t.length?n:c(e,t)(n)),t.push({inverse:l,styles:i(u)})}else if(h){if(0===t.length)throw new Error("Found extraneous } in Chalk template literal");o.push(c(e,t)(a.join(""))),a=[],t.pop()}else a.push(g)})),o.push(a.join("")),t.length>0){const e=`Chalk template literal is missing ${t.length} closing bracket${1===t.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},459:(e,n,r)=>{var t=r(508),o={};for(var a in t)t.hasOwnProperty(a)&&(o[t[a]]=a);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var l in s)if(s.hasOwnProperty(l)){if(!("channels"in s[l]))throw new Error("missing channels property: "+l);if(!("labels"in s[l]))throw new Error("missing channel labels property: "+l);if(s[l].labels.length!==s[l].channels)throw new Error("channel and label counts mismatch: "+l);var i=s[l].channels,c=s[l].labels;delete s[l].channels,delete s[l].labels,Object.defineProperty(s[l],"channels",{value:i}),Object.defineProperty(s[l],"labels",{value:c})}s.rgb.hsl=function(e){var n,r,t=e[0]/255,o=e[1]/255,a=e[2]/255,s=Math.min(t,o,a),l=Math.max(t,o,a),i=l-s;return l===s?n=0:t===l?n=(o-a)/i:o===l?n=2+(a-t)/i:a===l&&(n=4+(t-o)/i),(n=Math.min(60*n,360))<0&&(n+=360),r=(s+l)/2,[n,100*(l===s?0:r<=.5?i/(l+s):i/(2-l-s)),100*r]},s.rgb.hsv=function(e){var n,r,t=e[0],o=e[1],a=e[2],s=Math.min(t,o,a),l=Math.max(t,o,a),i=l-s;return r=0===l?0:i/l*1e3/10,l===s?n=0:t===l?n=(o-a)/i:o===l?n=2+(a-t)/i:a===l&&(n=4+(t-o)/i),(n=Math.min(60*n,360))<0&&(n+=360),[n,r,l/255*1e3/10]},s.rgb.hwb=function(e){var n=e[0],r=e[1],t=e[2];return[s.rgb.hsl(e)[0],1/255*Math.min(n,Math.min(r,t))*100,100*(t=1-1/255*Math.max(n,Math.max(r,t)))]},s.rgb.cmyk=function(e){var n,r=e[0]/255,t=e[1]/255,o=e[2]/255;return[100*((1-r-(n=Math.min(1-r,1-t,1-o)))/(1-n)||0),100*((1-t-n)/(1-n)||0),100*((1-o-n)/(1-n)||0),100*n]},s.rgb.keyword=function(e){var n=o[e];if(n)return n;var r,a,s,l=1/0;for(var i in t)if(t.hasOwnProperty(i)){var c=(a=e,s=t[i],Math.pow(a[0]-s[0],2)+Math.pow(a[1]-s[1],2)+Math.pow(a[2]-s[2],2));c<l&&(l=c,r=i)}return r},s.keyword.rgb=function(e){return t[e]},s.rgb.xyz=function(e){var n=e[0]/255,r=e[1]/255,t=e[2]/255;return[100*(.4124*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)),100*(.2126*n+.7152*r+.0722*t),100*(.0193*n+.1192*r+.9505*t)]},s.rgb.lab=function(e){var n=s.rgb.xyz(e),r=n[0],t=n[1],o=n[2];return t/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(r-t),200*(t-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},s.hsl.rgb=function(e){var n,r,t,o,a,s=e[0]/360,l=e[1]/100,i=e[2]/100;if(0===l)return[a=255*i,a,a];n=2*i-(r=i<.5?i*(1+l):i+l-i*l),o=[0,0,0];for(var c=0;c<3;c++)(t=s+1/3*-(c-1))<0&&t++,t>1&&t--,a=6*t<1?n+6*(r-n)*t:2*t<1?r:3*t<2?n+(r-n)*(2/3-t)*6:n,o[c]=255*a;return o},s.hsl.hsv=function(e){var n=e[0],r=e[1]/100,t=e[2]/100,o=r,a=Math.max(t,.01);return r*=(t*=2)<=1?t:2-t,o*=a<=1?a:2-a,[n,100*(0===t?2*o/(a+o):2*r/(t+r)),(t+r)/2*100]},s.hsv.rgb=function(e){var n=e[0]/60,r=e[1]/100,t=e[2]/100,o=Math.floor(n)%6,a=n-Math.floor(n),s=255*t*(1-r),l=255*t*(1-r*a),i=255*t*(1-r*(1-a));switch(t*=255,o){case 0:return[t,i,s];case 1:return[l,t,s];case 2:return[s,t,i];case 3:return[s,l,t];case 4:return[i,s,t];case 5:return[t,s,l]}},s.hsv.hsl=function(e){var n,r,t,o=e[0],a=e[1]/100,s=e[2]/100,l=Math.max(s,.01);return t=(2-a)*s,r=a*l,[o,100*(r=(r/=(n=(2-a)*l)<=1?n:2-n)||0),100*(t/=2)]},s.hwb.rgb=function(e){var n,r,t,o,a,s,l,i=e[0]/360,c=e[1]/100,u=e[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),t=6*i-(n=Math.floor(6*i)),1&n&&(t=1-t),o=c+t*((r=1-u)-c),n){default:case 6:case 0:a=r,s=o,l=c;break;case 1:a=o,s=r,l=c;break;case 2:a=c,s=r,l=o;break;case 3:a=c,s=o,l=r;break;case 4:a=o,s=c,l=r;break;case 5:a=r,s=c,l=o}return[255*a,255*s,255*l]},s.cmyk.rgb=function(e){var n=e[0]/100,r=e[1]/100,t=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,t*(1-o)+o))]},s.xyz.rgb=function(e){var n,r,t,o=e[0]/100,a=e[1]/100,s=e[2]/100;return r=-.9689*o+1.8758*a+.0415*s,t=.0557*o+-.204*a+1.057*s,n=(n=3.2406*o+-1.5372*a+-.4986*s)>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,[255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1)),255*(t=Math.min(Math.max(0,t),1))]},s.xyz.lab=function(e){var n=e[0],r=e[1],t=e[2];return r/=100,t/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116))]},s.lab.xyz=function(e){var n,r,t,o=e[0];n=e[1]/500+(r=(o+16)/116),t=r-e[2]/200;var a=Math.pow(r,3),s=Math.pow(n,3),l=Math.pow(t,3);return r=a>.008856?a:(r-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,[n*=95.047,r*=100,t*=108.883]},s.lab.lch=function(e){var n,r=e[0],t=e[1],o=e[2];return(n=360*Math.atan2(o,t)/2/Math.PI)<0&&(n+=360),[r,Math.sqrt(t*t+o*o),n]},s.lch.lab=function(e){var n,r=e[0],t=e[1];return n=e[2]/360*2*Math.PI,[r,t*Math.cos(n),t*Math.sin(n)]},s.rgb.ansi16=function(e){var n=e[0],r=e[1],t=e[2],o=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(t/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(a+=60),a},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var n=e[0],r=e[1],t=e[2];return n===r&&r===t?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(r/255*5)+Math.round(t/255*5)},s.ansi16.rgb=function(e){var n=e%10;if(0===n||7===n)return e>50&&(n+=3.5),[n=n/10.5*255,n,n];var r=.5*(1+~~(e>50));return[(1&n)*r*255,(n>>1&1)*r*255,(n>>2&1)*r*255]},s.ansi256.rgb=function(e){if(e>=232){var n=10*(e-232)+8;return[n,n,n]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},s.rgb.hex=function(e){var n=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.hex.rgb=function(e){var n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var r=n[0];3===n[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var t=parseInt(r,16);return[t>>16&255,t>>8&255,255&t]},s.rgb.hcg=function(e){var n,r=e[0]/255,t=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,t),o),s=Math.min(Math.min(r,t),o),l=a-s;return n=l<=0?0:a===r?(t-o)/l%6:a===t?2+(o-r)/l:4+(r-t)/l+4,n/=6,[360*(n%=1),100*l,100*(l<1?s/(1-l):0)]},s.hsl.hcg=function(e){var n,r=e[1]/100,t=e[2]/100,o=0;return(n=t<.5?2*r*t:2*r*(1-t))<1&&(o=(t-.5*n)/(1-n)),[e[0],100*n,100*o]},s.hsv.hcg=function(e){var n=e[1]/100,r=e[2]/100,t=n*r,o=0;return t<1&&(o=(r-t)/(1-t)),[e[0],100*t,100*o]},s.hcg.rgb=function(e){var n=e[0]/360,r=e[1]/100,t=e[2]/100;if(0===r)return[255*t,255*t,255*t];var o,a=[0,0,0],s=n%1*6,l=s%1,i=1-l;switch(Math.floor(s)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return o=(1-r)*t,[255*(r*a[0]+o),255*(r*a[1]+o),255*(r*a[2]+o)]},s.hcg.hsv=function(e){var n=e[1]/100,r=n+e[2]/100*(1-n),t=0;return r>0&&(t=n/r),[e[0],100*t,100*r]},s.hcg.hsl=function(e){var n=e[1]/100,r=e[2]/100*(1-n)+.5*n,t=0;return r>0&&r<.5?t=n/(2*r):r>=.5&&r<1&&(t=n/(2*(1-r))),[e[0],100*t,100*r]},s.hcg.hwb=function(e){var n=e[1]/100,r=n+e[2]/100*(1-n);return[e[0],100*(r-n),100*(1-r)]},s.hwb.hcg=function(e){var n=e[1]/100,r=1-e[2]/100,t=r-n,o=0;return t<1&&(o=(r-t)/(1-t)),[e[0],100*t,100*o]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var n=255&Math.round(e[0]/100*255),r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},558:(e,n,r)=>{var t=r(459),o=r(475),a={};Object.keys(t).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:t[e].channels}),Object.defineProperty(a[e],"labels",{value:t[e].labels});var n=o(e);Object.keys(n).forEach((function(r){var t=n[r];a[e][r]=function(e){var n=function(n){if(null==n)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var r=e(n);if("object"==typeof r)for(var t=r.length,o=0;o<t;o++)r[o]=Math.round(r[o]);return r};return"conversion"in e&&(n.conversion=e.conversion),n}(t),a[e][r].raw=function(e){var n=function(n){return null==n?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),e(n))};return"conversion"in e&&(n.conversion=e.conversion),n}(t)}))})),e.exports=a},475:(e,n,r)=>{var t=r(459),o=Object.keys(t);function a(e){var n=function(){for(var e={},n=o.length,r=0;r<n;r++)e[o[r]]={distance:-1,parent:null};return e}(),r=[e];for(n[e].distance=0;r.length;)for(var a=r.pop(),s=Object.keys(t[a]),l=s.length,i=0;i<l;i++){var c=s[i],u=n[c];-1===u.distance&&(u.distance=n[a].distance+1,u.parent=a,r.unshift(c))}return n}function s(e,n){return function(r){return n(e(r))}}function l(e,n){for(var r=[n[e].parent,e],o=t[n[e].parent][e],a=n[e].parent;n[a].parent;)r.unshift(n[a].parent),o=s(t[n[a].parent][a],o),a=n[a].parent;return o.conversion=r,o}e.exports=function(e){for(var n=a(e),r={},t=Object.keys(n),o=t.length,s=0;s<o;s++){var i=t[s];null!==n[i].parent&&(r[i]=l(i,n))}return r}},508:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},10:e=>{"use strict";var n=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(n,"\\$&")}},460:e=>{"use strict";e.exports=function(e,n){var r=(n=n||process.argv).indexOf("--"),t=/^-{1,2}/.test(e)?"":"--",o=n.indexOf(t+e);return-1!==o&&(-1===r||o<r)}},781:e=>{"use strict";const n=/\s|=/,r=/^-{1,2}/,t=/^--no-/i;function o(e){return"boolean"==typeof e}function a(e){return Array.isArray(e)?e:null==e?[]:[e]}function s(e,n){if(0===n.length)return n;let r,t=0,o=n.length,a=[];for(;t<o;t++)r=n[t],a.push(r),void 0!==e[r]&&(a=a.concat(e[r]));return a}function l(e,n,r,t){return-1!==r.indexOf(e)?null==(a=n)||!0===a?"":String(a):-1!==t.indexOf(e)?function(e){return"false"!==e&&Boolean(e)}(n):function(e){return!o(e)&&Number(e)||e}(n);var a}e.exports=function(e,i){e=e||[],(i=i||{}).string=a(i.string),i.boolean=a(i.boolean);const c={};let u,h,g,p,f,d,b;if(void 0!==i.alias)for(u in i.alias)for(c[u]=a(i.alias[u]),d=c[u].length,h=0;h<d;h++)for(p=c[u][h],c[p]=[u],g=0;g<d;g++)p!==c[u][g]&&c[p].push(c[u][g]);if(void 0!==i.default)for(u in i.default)b=typeof i.default[u],i[b]=(i[b]||[]).concat(u);i.string=s(c,i.string),i.boolean=s(c,i.boolean);let y=0;const m={_:[]};for(;void 0!==e[y];){let s=1;const g=e[y];if("--"===g){m._=m._.concat(e.slice(y+1));break}if(r.test(g))if(t.test(g))m[g.replace(t,"")]=!1;else{let t;const p=g.split(n),f=45!==p[0].charCodeAt(1),b=p[0].substr(f?1:2);d=b.length;const v=f?b[d-1]:b;if(void 0!==i.unknown&&void 0===c[v])return i.unknown(p[0]);if(p.length>1?t=p[1]:(t=e[y+1]||!0,r.test(t)?t=!0:s=2),f&&d>1)for(h=d-1;h--;)u=b[h],m[u]=l(u,!0,i.string,i.boolean);const w=l(v,t,i.string,i.boolean);m[v]=void 0!==m[v]?a(m[v]).concat(w):w,o(w)&&!o(t)&&"true"!==t&&"false"!==t&&m._.push(t)}else m._.push(g);y+=s}if(void 0!==i.default)for(u in i.default)void 0===m[u]&&(m[u]=i.default[u]);for(u in m)if(void 0!==c[u])for(f=m[u],d=c[u].length,h=0;h<d;h++)m[c[u][h]]=f;return m}},519:(e,n,r)=>{"use strict";const t=r(552);e.exports=e=>"string"==typeof e?e.replace(t(),""):e},639:(e,n,r)=>{"use strict";r(857);const t=r(460),o=process.env;let a=(()=>{if(t("no-color")||t("no-colors")||t("color=false"))return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(t("color")||t("colors")||t("color=true")||t("color=always"))return 1;if(process.stdout&&!process.stdout.isTTY)return 0;if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||"codeship"===o.CI_NAME?1:0;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,0)})();var s;"FORCE_COLOR"in o&&(a=0===parseInt(o.FORCE_COLOR,10)?0:a||1),e.exports=process&&0!==(s=a)&&{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}},919:(e,n,r)=>{var t={"./clone.ts":411,"./help.ts":113,"./open.ts":97};function o(e){var n=a(e);return r(n)}function a(e){if(!r.o(t,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t[e]}o.keys=function(){return Object.keys(t)},o.resolve=a,e.exports=o,o.id=919},411:(e,n,r)=>{"use strict";r.r(n),r.d(n,{command:()=>l});const t=require("querystring"),o=require("url");var a=r(973),s=r(387);const l={command:"clone <url|slug>",description:"Clone a repository",args:[{name:"url|slug",required:!0,description:"The URL or the GitHub owner/name alias to clone",type:"string"}],options:{branch:{type:"string",aliases:["b"],description:"The branch to checkout after cloning"}},handler({_:[e],branch:n}){if(!e)throw new a.Qd("Clone URL must be specified");try{new o.URL(e).toString()}catch(n){e=`https://github.com/${e}`}const r=`openRepo/${e}?${t.stringify({branch:n})}`;(0,s.T)(r)}}},113:(e,n,r)=>{"use strict";r.r(n),r.d(n,{command:()=>l});var t=r(384),o=r.n(t),a=r(640),s=r(973);const l={command:"help [command]",description:"Show the help page for a command",handler({_:[e]}){e?function(e,n){if(!n)return console.log(`Unrecognized command: ${o().bold.red.underline(e)}`),void i();if(console.log(`${o().gray("github")} ${n.command}`),n.aliases)for(const e of n.aliases)console.log(o().gray(`github ${e}`));console.log();const[r,t]=n.description.split("\n",1);console.log(o().bold(r)),t&&console.log(t);const{options:a,args:l}=n;a&&(console.log(o().underline("\nOptions:")),(0,s.e4)(Object.keys(a).map((e=>[e,a[e]])).map((([e,n])=>[[e,...n.aliases||[]].map(s.FY).map((e=>o().bold.blue(e))).join(o().gray(", ")),n.description,o().gray(`[${o().underline(n.type)}]`)])))),l&&l.length&&(console.log(o().underline("\nArguments:")),(0,s.e4)(l.map((e=>[(e.required?o().bold:o()).blue(e.name),e.required?o().gray("(required)"):"",e.description,o().gray(`[${o().underline(e.type)}]`)]))))}(e,a.P[e]):i()}};function i(){console.log(o().underline("Commands:"));const e=[];for(const n of Object.keys(a.P)){const r=a.P[n];e.push([o().bold(r.command),r.description])}(0,s.e4)(e),console.log(`\nRun ${o().bold(`github help ${o().gray("<command>")}`)} for details about each command`)}},97:(e,n,r)=>{"use strict";r.r(n),r.d(n,{command:()=>i});var t=r(384),o=r.n(t);const a=require("path");var s=r(387);const l=[{protocol:"https",regex:new RegExp("^https?://(?:.+@)?(.+)/([^/]+)/([^/]+?)(?:/|\\.git/?)?$")},{protocol:"ssh",regex:new RegExp("^git@(.+):([^/]+)/([^/]+?)(?:/|\\.git)?$")},{protocol:"ssh",regex:new RegExp("^(?:.+)@(.+\\.ghe\\.com):([^/]+)/([^/]+?)(?:/|\\.git)?$")},{protocol:"ssh",regex:new RegExp("^git:(.+)/([^/]+)/([^/]+?)(?:/|\\.git)?$")},{protocol:"ssh",regex:new RegExp("^ssh://git@(.+)/(.+)/(.+?)(?:/|\\.git)?$")}];const i={command:"open <path>",aliases:["<path>"],description:"Open a git repository in GitHub Desktop",args:[{name:"path",description:"The path to the repository to open",type:"string",required:!1}],handler({_:[e]}){if(e)if(null!=function(e){for(const{protocol:n,regex:r}of l){const t=r.exec(e);if(null!==t&&t.length>=4)return{protocol:n,hostname:t[1],owner:t[2],name:t[3]}}return null}(e))console.log(`\nYou cannot open a remote URL in GitHub Desktop\nUse \`${o().bold("git clone "+e)}\` instead to initiate the clone`);else{const n=a.resolve(process.cwd(),e),r=`openLocalRepo/${encodeURIComponent(n)}`;(0,s.T)(r)}else(0,s.T)()}}},640:(e,n,r)=>{"use strict";r.d(n,{P:()=>t});const t={};for(const e of["clone","help","open"]){const n=(o=e,r(919)(`./${o}.ts`).command);n.name||(n.name=e),t[n.name]=n}var o},387:(e,n,r)=>{"use strict";r.d(n,{T:()=>o});const t=require("child_process");function o(e=""){const n={...process.env};return delete n.ELECTRON_RUN_AS_NODE,e="x-github-client://"+e,t.spawn("xdg-open",[e],{env:n})}},973:(e,n,r)=>{"use strict";r.d(n,{FY:()=>s,Qd:()=>a,e4:()=>l});var t=r(519),o=r.n(t);class a extends Error{pretty=!0}const s=e=>1===e.length?"-"+e:"--"+e;function l(e){const n=function(e){const n=Array(e[0].length).fill(0);for(const r of e)r.forEach(((e,r)=>{const t=o()(e).length;n[r]<t&&(n[r]=t)}));return n}(e);for(const r of e){let e="  ";r.forEach(((r,t)=>{e+=r;const a=n[t]-o()(r).length;e+=" ".repeat(a+2)})),console.log(e)}}},857:e=>{"use strict";e.exports=require("os")}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return e[t](a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var t={};(()=>{"use strict";r.r(t);var e=r(781),n=r.n(e),o=r(384),a=r.n(o),s=r(973),l=r(640);let i=process.argv.slice(2);i[0]||(i[0]=".");const c=i[0];function u(e){console.log(a().bgBlack.red("ERR!"),e.message),e.stack&&!e.pretty&&console.log(a().gray(e.stack))}function h(e){const r=l.P[e],t={alias:{},boolean:[],default:{},string:[]};if(r.options){for(const e of Object.keys(r.options)){const n=r.options[e];switch(n.aliases&&(t.alias[e]=n.aliases),Object.hasOwn(n,"default")&&(t.default[e]=n.default),n.type){case"string":t.string.push(e);break;case"boolean":t.boolean.push(e)}}t.unknown=r.unknownOptionHandler}const o=n()(i,t);if(r.options)for(const e of Object.keys(o)){if(!(e in r.options))continue;const n=o[e],t=r.options[e].type;if(typeof n!==t)throw new s.Qd(`Value passed to flag ${(0,s.FY)(e)} was of type ${typeof n}, but was expected to be of type ${t}`)}r.handler(o,i)}i=i.slice(1),function e(n){try{if((e=>Object.hasOwn(l.P,e))(n))h(n);else if(n.startsWith("--"))e(n.slice(2));else try{i.unshift(c),h("open")}catch(e){u(e),i=[],h("help")}}catch(e){u(e),i=[n],h("help")}}(c),console.log()})(),module.exports.cli=t})();
//# sourceMappingURL=cli.js.map