@omer-x/buttler 1.0.2 → 1.1.0
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/drizzle/0001_colorful_punisher.sql +1 -0
- package/drizzle/meta/0001_snapshot.json +451 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +1 -1
- package/ui/.next/BUILD_ID +1 -1
- package/ui/.next/app-build-manifest.json +16 -16
- package/ui/.next/app-path-routes-manifest.json +1 -1
- package/ui/.next/build-manifest.json +2 -2
- package/ui/.next/prerender-manifest.json +1 -1
- package/ui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/ui/.next/server/app/_not-found.html +1 -1
- package/ui/.next/server/app/_not-found.rsc +7 -7
- package/ui/.next/server/app/api/db/backup/route.js +1 -1
- package/ui/.next/server/app/api/db/backup/route_client-reference-manifest.js +1 -1
- package/ui/.next/server/app/api/logs/route.js +1 -1
- package/ui/.next/server/app/api/logs/route_client-reference-manifest.js +1 -1
- package/ui/.next/server/app/index.html +1 -1
- package/ui/.next/server/app/index.rsc +7 -7
- package/ui/.next/server/app/page_client-reference-manifest.js +1 -1
- package/ui/.next/server/app/services/[id]/databases/page.js +1 -1
- package/ui/.next/server/app/services/[id]/databases/page_client-reference-manifest.js +1 -1
- package/ui/.next/server/app/services/[id]/edit/page.js +1 -1
- package/ui/.next/server/app/services/[id]/edit/page.js.nft.json +1 -1
- package/ui/.next/server/app/services/[id]/edit/page_client-reference-manifest.js +1 -1
- package/ui/.next/server/app/services/[id]/page.js +1 -1
- package/ui/.next/server/app/services/[id]/page.js.nft.json +1 -1
- package/ui/.next/server/app/services/[id]/page_client-reference-manifest.js +1 -1
- package/ui/.next/server/app/services/page.js +1 -1
- package/ui/.next/server/app/services/page_client-reference-manifest.js +1 -1
- package/ui/.next/server/app/settings/page.js +1 -1
- package/ui/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/ui/.next/server/app/settings.html +1 -1
- package/ui/.next/server/app/settings.rsc +9 -9
- package/ui/.next/server/app/webhook/route.js +1 -1
- package/ui/.next/server/app/webhook/route_client-reference-manifest.js +1 -1
- package/ui/.next/server/app-paths-manifest.json +1 -1
- package/ui/.next/server/chunks/557.js +1 -1
- package/ui/.next/server/chunks/57.js +1 -0
- package/ui/.next/server/chunks/640.js +1 -1
- package/ui/.next/server/pages/404.html +1 -1
- package/ui/.next/server/pages/500.html +1 -1
- package/ui/.next/server/server-reference-manifest.js +1 -1
- package/ui/.next/server/server-reference-manifest.json +1 -1
- package/ui/.next/static/chunks/148-c93a3c34080a1c95.js +1 -0
- package/ui/.next/static/chunks/389-7afd5280f9685471.js +1 -0
- package/ui/.next/static/chunks/39-15c95d3bde9b1f82.js +1 -0
- package/ui/.next/static/chunks/982-5db0a6a1cf66906b.js +1 -0
- package/ui/.next/static/chunks/app/{layout-62ccc36441c6532b.js → layout-ea2370775459a200.js} +1 -1
- package/ui/.next/static/chunks/app/services/[id]/edit/{page-bcc8c30557196530.js → page-5d7e2edd319c54a8.js} +1 -1
- package/ui/.next/static/chunks/app/services/[id]/page-fb9f1671877ca471.js +1 -0
- package/ui/.next/static/chunks/app/services/page-9123b7cb0c9c8e21.js +1 -0
- package/ui/.next/static/chunks/179-61b51145e45a5a8a.js +0 -1
- package/ui/.next/static/chunks/181-3c7f47d298a6c5ba.js +0 -1
- package/ui/.next/static/chunks/33-6a8a5d476c194d98.js +0 -1
- package/ui/.next/static/chunks/950-5e7233cf9e267e4f.js +0 -1
- package/ui/.next/static/chunks/app/services/[id]/page-d0f3970faffda3af.js +0 -1
- package/ui/.next/static/chunks/app/services/page-d2dbcb1bfbf99d9c.js +0 -1
- /package/ui/.next/static/{-IyDb-UkfsY66Fnk2jTmF → PEV32sgMYDgwkVdNhPXOA}/_buildManifest.js +0 -0
- /package/ui/.next/static/{-IyDb-UkfsY66Fnk2jTmF → PEV32sgMYDgwkVdNhPXOA}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
exports.id=557,exports.ids=[557],exports.modules={30882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(61515))},61515:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let s=r(29021),i=n(r(23481)).default("@kwsites/file-exists");t.exists=function(e,r=t.READABLE){return function(e,t,r){i("checking %s",e);try{let n=s.statSync(e);if(n.isFile()&&t)return i("[OK] path represents a file"),!0;if(n.isDirectory()&&r)return i("[OK] path represents a directory"),!0;return i("[FAIL] path represents something other than a file or directory"),!1}catch(e){if("ENOENT"===e.code)return i("[FAIL] path is not accessible: %o",e),!1;throw i("[FATAL] %o",e),e}}(e,(r&t.FILE)>0,(r&t.FOLDER)>0)},t.FILE=1,t.FOLDER=2,t.READABLE=t.FILE+t.FOLDER},48868:(e,t)=>{"use strict";function r(){let e,t;let r="pending";return{promise:new Promise((r,n)=>{e=r,t=n}),done(t){"pending"===r&&(r="resolved",e(t))},fail(e){"pending"===r&&(r="rejected",t(e))},get fulfilled(){return"pending"!==r},get status(){return r}}}t.ud=t.yX=void 0,t.yX=r,t.ud=r},15401:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.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`."))}})(),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=r(8824)(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8824:(e,t,r)=>{e.exports=function(e){function t(e){let r,s,i;let o=null;function a(...e){if(!a.enabled)return;let n=Number(new Date),s=n-(r||n);a.diff=s,a.prev=r,a.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let s=t.formatters[n];if("function"==typeof s){let t=e[i];r=s.call(a,t),e.splice(i,1),i--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(s!==t.namespaces&&(s=t.namespaces,i=t.enabled(e)),i),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function s(e,t){let r=0,n=0,s=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(s=n,i=r):r++,n++;else{if(-1===s)return!1;n=s+1,r=++i}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(s(e,r))return!1;for(let r of t.names)if(s(e,r))return!0;return!1},t.humanize=r(83337),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},23481:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||process.__nwjs?e.exports=r(15401):e.exports=r(54897)},54897:(e,t,r)=>{let n=r(83997),s=r(28354);t.init=function(e){e.inspectOpts={};let r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(s.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){let{namespace:n,useColors:s}=this;if(s){let t=this.color,s="\x1b[3"+(t<8?t:"8;5;"+t),i=` ${s};1m${n} \u001B[0m`;r[0]=i+r[0].split("\n").join("\n"+i),r.push(s+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(t.inspectOpts.hideDate?"":new Date().toISOString()+" ")+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)},t.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=r(23203);e&&(e.stderr||e).level>=2&&(t.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(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=r(8824)(t);let{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)}},58684:e=>{"use strict";e.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return -1!==n&&(-1===s||n<s)}},83337:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,s,i=typeof e;if("string"===i&&e.length>0)return function(e){if(!((e=String(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]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===i&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>=1e3?t(e,n,1e3,"second"):e+" ms":(s=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":s>=36e5?Math.round(e/36e5)+"h":s>=6e4?Math.round(e/6e4)+"m":s>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},39187:(e,t,r)=>{"use strict";var n=r(41520);r.o(n,"after")&&r.d(t,{after:function(){return n.after}})},64446:(e,t,r)=>{var n;(()=>{var s={226:function(s,i){!function(o,a){"use strict";var u="function",c="undefined",l="object",d="string",p="major",f="model",h="name",m="type",g="vendor",b="version",w="architecture",y="console",v="mobile",k="tablet",x="smarttv",T="wearable",C="embedded",_="Amazon",O="Apple",S="ASUS",E="BlackBerry",R="Browser",A="Chrome",F="Firefox",j="Google",M="Huawei",P="Microsoft",L="Motorola",I="Opera",N="Samsung",$="Sharp",D="Sony",B="Xiaomi",U="Zebra",q="Facebook",z="Chromium OS",G="Mac OS",H=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},W=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},V=function(e,t){return typeof e===d&&-1!==X(t).indexOf(X(e))},X=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===d)return e=e.replace(/^\s\s*/,""),typeof t===c?e:e.substring(0,350)},Y=function(e,t){for(var r,n,s,i,o,c,d=0;d<t.length&&!o;){var p=t[d],f=t[d+1];for(r=n=0;r<p.length&&!o&&p[r];)if(o=p[r++].exec(e))for(s=0;s<f.length;s++)c=o[++n],typeof(i=f[s])===l&&i.length>0?2===i.length?typeof i[1]==u?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:3===i.length?typeof i[1]!==u||i[1].exec&&i[1].test?this[i[0]]=c?c.replace(i[1],i[2]):void 0:this[i[0]]=c?i[1].call(this,c,i[2]):void 0:4===i.length&&(this[i[0]]=c?i[3].call(this,c.replace(i[1],i[2])):void 0):this[i]=c||a;d+=2}},Q=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(V(t[r][n],e))return"?"===r?a:r}else if(V(t[r],e))return"?"===r?a:r;return e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,b],[/opios[\/ ]+([\w\.]+)/i],[b,[h,I+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[h,I]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[h,"UC"+R]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[b,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[b,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+R],b],[/\bfocus\/([\w\.]+)/i],[b,[h,F+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[h,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[h,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[h,"MIUI "+R]],[/fxios\/([-\w\.]+)/i],[b,[h,F]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+R]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+R],b],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,b],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,q],b],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[h,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,A+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[h,"Android "+R]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[b,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[h,F+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,b],[/(cobalt)\/([\w\.]+)/i],[h,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,X]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,"",X]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,X]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[g,N],[m,k]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,N],[m,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[g,O],[m,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,O],[m,k]],[/(macintosh);/i],[f,[g,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,$],[m,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,M],[m,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[g,M],[m,v]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[g,B],[m,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,B],[m,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[g,"OPPO"],[m,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[m,v]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[g,"Realme"],[m,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[g,L],[m,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,L],[m,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,"LG"],[m,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,"LG"],[m,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[m,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[m,v]],[/(pixel c)\b/i],[f,[g,j],[m,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,j],[m,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[g,D],[m,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,D],[m,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[m,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,_],[m,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,_],[m,v]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[m,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,E],[m,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,S],[m,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,S],[m,v]],[/(nexus 9)/i],[f,[g,"HTC"],[m,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[m,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[m,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"Meizu"],[m,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,f,[m,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,f,[m,k]],[/(surface duo)/i],[f,[g,P],[m,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[m,v]],[/(u304aa)/i],[f,[g,"AT&T"],[m,v]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[m,v]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[m,k]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[m,k]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[m,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[m,k]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[m,k]],[/\b(k88) b/i],[f,[g,"ZTE"],[m,k]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[m,v]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[m,v]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[m,k]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[m,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[m,k]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[m,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[m,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[m,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[m,v]],[/\b(ph-1) /i],[f,[g,"Essential"],[m,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[m,k]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[m,k]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[m,k]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[m,k]],[/(sprint) (\w+)/i],[g,f,[m,v]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,P],[m,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,U],[m,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,U],[m,v]],[/smart-tv.+(samsung)/i],[g,[m,x]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,N],[m,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,"LG"],[m,x]],[/(apple) ?tv/i],[g,[f,O+" TV"],[m,x]],[/crkey/i],[[f,A+"cast"],[g,j],[m,x]],[/droid.+aft(\w)( bui|\))/i],[f,[g,_],[m,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[g,$],[m,x]],[/(bravia[\w ]+)( bui|\))/i],[f,[g,D],[m,x]],[/(mitv-\w{5}) bui/i],[f,[g,B],[m,x]],[/Hbbtv.*(technisat) (.*);/i],[g,f,[m,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,K],[f,K],[m,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[m,y]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[m,y]],[/(playstation [345portablevi]+)/i],[f,[g,D],[m,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,P],[m,y]],[/((pebble))app/i],[g,f,[m,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[g,O],[m,T]],[/droid.+; (glass) \d/i],[f,[g,j],[m,T]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,U],[m,T]],[/(quest( 2| pro)?)/i],[f,[g,q],[m,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[m,C]],[/(aeobc)\b/i],[f,[g,_],[m,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[m,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,v]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,b],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[b,Q,Z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[b,Q,Z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,G],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,b],[/\(bb(10);/i],[b,[h,E]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[h,F+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[h,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,z],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,b],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,b]]},ee=function(e,t){if(typeof e===l&&(t=e,e=a),!(this instanceof ee))return new ee(e,t).getResult();var r=typeof o!==c&&o.navigator?o.navigator:a,n=e||(r&&r.userAgent?r.userAgent:""),s=r&&r.userAgentData?r.userAgentData:a,i=t?H(J,t):J,y=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[h]=a,t[b]=a,Y.call(t,n,i.browser),t[p]=typeof(e=t[b])===d?e.replace(/[^\d\.]/g,"").split(".")[0]:a,y&&r&&r.brave&&typeof r.brave.isBrave==u&&(t[h]="Brave"),t},this.getCPU=function(){var e={};return e[w]=a,Y.call(e,n,i.cpu),e},this.getDevice=function(){var e={};return e[g]=a,e[f]=a,e[m]=a,Y.call(e,n,i.device),y&&!e[m]&&s&&s.mobile&&(e[m]=v),y&&"Macintosh"==e[f]&&r&&typeof r.standalone!==c&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[f]="iPad",e[m]=k),e},this.getEngine=function(){var e={};return e[h]=a,e[b]=a,Y.call(e,n,i.engine),e},this.getOS=function(){var e={};return e[h]=a,e[b]=a,Y.call(e,n,i.os),y&&!e[h]&&s&&"Unknown"!=s.platform&&(e[h]=s.platform.replace(/chrome os/i,z).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===d&&e.length>350?K(e,350):e,this},this.setUA(n),this};ee.VERSION="1.0.35",ee.BROWSER=W([h,b,p]),ee.CPU=W([w]),ee.DEVICE=W([f,g,m,y,v,x,k,T,C]),ee.ENGINE=ee.OS=W([h,b]),typeof i!==c?(s.exports&&(i=s.exports=ee),i.UAParser=ee):r.amdO?void 0!==(n=(function(){return ee}).call(t,r,t,e))&&(e.exports=n):typeof o!==c&&(o.UAParser=ee);var et=typeof o!==c&&(o.jQuery||o.Zepto);if(et&&!et.ua){var er=new ee;et.ua=er.getResult(),et.ua.get=function(){return er.getUA()},et.ua.set=function(e){er.setUA(e);var t=er.getResult();for(var r in t)et.ua[r]=t[r]}}}("object"==typeof window?window:this)}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},n=!0;try{s[e].call(r.exports,r,r.exports,o),n=!1}finally{n&&delete i[e]}return r.exports}o.ab=__dirname+"/";var a=o(226);e.exports=a})()},46050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"after",{enumerable:!0,get:function(){return s}});let n=r(29294);function s(e){let t=n.workAsyncStorage.getStore();if(!t)throw Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context");let{afterContext:r}=t;return r.after(e)}},95036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})})}(r(46050),t)},26807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"connection",{enumerable:!0,get:function(){return c}});let n=r(29294),s=r(63033),i=r(10436),o=r(82312),a=r(60457),u=r(24982);function c(){let e=n.workAsyncStorage.getStore(),t=s.workUnitAsyncStorage.getStore();if(e){if(t&&"after"===t.phase&&!(0,u.isRequestAPICallableInsideAfter)())throw Error(`Route ${e.route} used "connection" inside "after(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but "after(...)" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`);if(e.forceStatic)return Promise.resolve(void 0);if(t){if("cache"===t.type)throw Error(`Route ${e.route} used "connection" inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`);if("unstable-cache"===t.type)throw Error(`Route ${e.route} used "connection" inside a function cached with "unstable_cache(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`)}if(e.dynamicShouldError)throw new o.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(t){if("prerender"===t.type)return(0,a.makeHangingPromise)(t.renderSignal,"`connection()`");"prerender-ppr"===t.type?(0,i.postponeWithTracking)(e.route,"connection",t.dynamicTracking):"prerender-legacy"===t.type&&(0,i.throwToInterruptStaticGeneration)("connection",e,t)}(0,i.trackDynamicDataInDynamicRender)(e,t)}return Promise.resolve(void 0)}},41520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ImageResponse:function(){return n.ImageResponse},NextRequest:function(){return s.NextRequest},NextResponse:function(){return i.NextResponse},URLPattern:function(){return a.URLPattern},after:function(){return u.after},connection:function(){return c.connection},userAgent:function(){return o.userAgent},userAgentFromString:function(){return o.userAgentFromString}});let n=r(14159),s=r(41639),i=r(44899),o=r(22215),a=r(31512),u=r(95036),c=r(26807)},14159:(e,t)=>{"use strict";function r(){throw Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead')}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageResponse",{enumerable:!0,get:function(){return r}})},44899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextResponse",{enumerable:!0,get:function(){return d}});let n=r(9181),s=r(49619),i=r(55225),o=r(20614),a=r(9181),u=Symbol("internal response"),c=new Set([301,302,303,307,308]);function l(e,t){var r;if(null==e?void 0:null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Error("request.headers must be an instance of Headers");let r=[];for(let[n,s]of e.request.headers)t.set("x-middleware-request-"+n,s),r.push(n);t.set("x-middleware-override-headers",r.join(","))}}class d extends Response{constructor(e,t={}){super(e,t);let r=this.headers,c=new Proxy(new a.ResponseCookies(r),{get(e,s,i){switch(s){case"delete":case"set":return(...i)=>{let o=Reflect.apply(e[s],e,i),u=new Headers(r);return o instanceof a.ResponseCookies&&r.set("x-middleware-set-cookie",o.getAll().map(e=>(0,n.stringifyCookie)(e)).join(",")),l(t,u),o};default:return o.ReflectAdapter.get(e,s,i)}}});this[u]={cookies:c,url:t.url?new s.NextURL(t.url,{headers:(0,i.toNodeOutgoingHttpHeaders)(r),nextConfig:t.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[u].cookies}static json(e,t){let r=Response.json(e,t);return new d(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!c.has(r))throw RangeError('Failed to execute "redirect" on "response": Invalid status code');let n="object"==typeof t?t:{},s=new Headers(null==n?void 0:n.headers);return s.set("Location",(0,i.validateURL)(e)),new d(null,{...n,headers:s,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,i.validateURL)(e)),l(t,r),new d(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),l(e,t),new d(null,{...e,headers:t})}}},31512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"URLPattern",{enumerable:!0,get:function(){return r}});let r="undefined"==typeof URLPattern?void 0:URLPattern},22215:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isBot:function(){return s},userAgent:function(){return o},userAgentFromString:function(){return i}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(64446));function s(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}function i(e){return{...(0,n.default)(e),isBot:void 0!==e&&s(e)}}function o({headers:e}){return i(e.get("user-agent")||void 0)}},23203:(e,t,r)=>{"use strict";let n;let s=r(21820),i=r(83997),o=r(58684),{env:a}=process;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(0===n)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===n)return 0;let r=n||0;if("dumb"===a.TERM)return r;if("win32"===process.platform){let e=s.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in a)||"codeship"===a.CI_NAME?1:r;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){let e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:r}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?n=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(n=1),"FORCE_COLOR"in a&&(n="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(c(e,e&&e.isTTY))},stdout:u(c(!0,i.isatty(1))),stderr:u(c(!0,i.isatty(2)))}},99159:(e,t,r)=>{"use strict";r.d(t,{LW:()=>p,kW:()=>d});let n=/([\p{Ll}\d])(\p{Lu})/gu,s=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,i=/(\d)\p{Ll}|(\p{L})\d/u,o=/[^\p{L}\d]+/giu,a="$1\0$2";function u(e){let t=e.trim();t=(t=t.replace(n,a).replace(s,a)).replace(o,"\0");let r=0,i=t.length;for(;"\0"===t.charAt(r);)r++;if(r===i)return[];for(;"\0"===t.charAt(i-1);)i--;return t.slice(r,i).split(/\0/g)}function c(e){let t=u(e);for(let e=0;e<t.length;e++){let r=t[e],n=i.exec(r);if(n){let s=n.index+(n[1]??n[2]).length;t.splice(e,1,r.slice(0,s),r.slice(s))}}return t}function l(e,t){let[r,n,s]=function(e,t={}){let r=t.split??(t.separateNumbers?c:u),n=t.prefixCharacters??"",s=t.suffixCharacters??"",i=0,o=e.length;for(;i<e.length;){let t=e.charAt(i);if(!n.includes(t))break;i++}for(;o>i;){let t=o-1,r=e.charAt(t);if(!s.includes(r))break;o=t}return[e.slice(0,i),r(e.slice(i,o)),e.slice(o)]}(e,t);return r+n.map(function(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}(t?.locale)).join(t?.delimiter??" ")+s}function d(e,t){return l(e,{delimiter:"-",...t})}function p(e,t){return l(e,{delimiter:"_",...t})}},61777:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>sB});var n,s,i,o,a,u,c,l,d,p,f,h,m,g,b,w,y,v,k,x,T,C,_,O,S,E,R,A,F,j,M,P,L,I,N,$,D,B,U,q,z,G,H,W,V,X,K,Y,Q,Z,J,ee,et,er,en,es,ei,eo,ea,eu,ec,el,ed,ep,ef,eh,em,eg,eb,ew,ey,ev,ek,ex,eT,eC,e_,eO,eS,eE,eR,eA,eF,ej,eM,eP,eL,eI,eN,e$,eD,eB,eU,eq,ez,eG,eH,eW,eV,eX,eK,eY,eQ=r(30882),eZ=r(23481),eJ=r(79646),e0=r(48868),e1=r(78474),e3=Object.defineProperty,e2=Object.defineProperties,e6=Object.getOwnPropertyDescriptor,e9=Object.getOwnPropertyDescriptors,e8=Object.getOwnPropertyNames,e4=Object.getOwnPropertySymbols,e5=Object.prototype.hasOwnProperty,e7=Object.prototype.propertyIsEnumerable,te=(e,t,r)=>t in e?e3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tt=(e,t)=>{for(var r in t||(t={}))e5.call(t,r)&&te(e,r,t[r]);if(e4)for(var r of e4(t))e7.call(t,r)&&te(e,r,t[r]);return e},tr=(e,t)=>e2(e,e9(t)),tn=(e,t)=>function(){return e&&(t=(0,e[e8(e)[0]])(e=0)),t},ts=(e,t)=>{for(var r in t)e3(e,r,{get:t[r],enumerable:!0})},ti=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of e8(t))e5.call(e,s)||s===r||e3(e,s,{get:()=>t[s],enumerable:!(n=e6(t,s))||n.enumerable});return e},to=e=>ti(e3({},"__esModule",{value:!0}),e),ta=(e,t,r)=>new Promise((n,s)=>{var i=e=>{try{a(r.next(e))}catch(e){s(e)}},o=e=>{try{a(r.throw(e))}catch(e){s(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,o);a((r=r.apply(e,t)).next())});function tu(e){return e instanceof String&&n.has(e)}function tc(e){return n.get(e)||[]}var tl=tn({"src/lib/args/pathspec.ts"(){n=new WeakMap}}),td=tn({"src/lib/errors/git-error.ts"(){s=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),tp=tn({"src/lib/errors/git-response-error.ts"(){td(),i=class extends s{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),tf=tn({"src/lib/errors/task-configuration-error.ts"(){td(),o=class extends s{constructor(e){super(void 0,e)}}}});function th(e){return"function"==typeof e?e:u}function tm(e){return"function"==typeof e&&e!==u}function tg(e,t){let r=e.indexOf(t);return r<=0?[e,""]:[e.substr(0,r),e.substr(r+1)]}function tb(e,t=0){return ty(e)&&e.length>t?e[t]:void 0}function tw(e,t=0){if(ty(e)&&e.length>t)return e[e.length-1-t]}function ty(e){return!!(e&&"number"==typeof e.length)}function tv(e="",t=!0,r="\n"){return e.split(r).reduce((e,r)=>{let n=t?r.trim():r;return n&&e.push(n),e},[])}function tk(e,t){return tv(e,!0).map(e=>t(e))}function tx(e){return(0,eQ.exists)(e,eQ.FOLDER)}function tT(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function tC(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function t_(e,t){if(Array.isArray(e)){let r=e.indexOf(t);r>=0&&e.splice(r,1)}else e.delete(t);return t}function tO(e){return Array.isArray(e)?e:[e]}function tS(e){return e.replace(/[\s-]+(.)/g,(e,t)=>t.toUpperCase())}function tE(e){return tO(e).map(String)}function tR(e,t=0){if(null==e)return t;let r=parseInt(e,10);return isNaN(r)?t:r}function tA(e,t){let r=[];for(let n=0,s=e.length;n<s;n++)r.push(t,e[n]);return r}function tF(e){return(Array.isArray(e)?Buffer.concat(e):e).toString("utf-8")}function tj(e,t){return Object.assign({},...t.map(t=>t in e?{[t]:e[t]}:{}))}function tM(e=0){return new Promise(t=>setTimeout(t,e))}function tP(e){if(!1!==e)return e}var tL=tn({"src/lib/utils/util.ts"(){a="\0",u=()=>{},c=Object.prototype.toString.call.bind(Object.prototype.toString)}});function tI(e,t,r){return t(e)?e:arguments.length>2?r:void 0}function tN(e,t){let r=tu(e)?"string":typeof e;return/number|string|boolean/.test(r)&&(!t||!t.includes(r))}function t$(e){return!!e&&"[object Object]"===c(e)}function tD(e){return"function"==typeof e}var tB=tn({"src/lib/utils/argument-filters.ts"(){tL(),tl(),l=e=>Array.isArray(e),d=e=>"string"==typeof e,p=e=>Array.isArray(e)&&e.every(d),f=e=>d(e)||Array.isArray(e)&&e.every(d),h=e=>!(null==e||"number|boolean|function".includes(typeof e))&&(Array.isArray(e)||"string"==typeof e||"number"==typeof e.length)}}),tU=tn({"src/lib/utils/exit-codes.ts"(){var e;(e=m||{})[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.NOT_FOUND=-2]="NOT_FOUND",e[e.UNCLEAN=128]="UNCLEAN",m=e}}),tq=tn({"src/lib/utils/git-output-streams.ts"(){g=class{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new g(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}}),tz=tn({"src/lib/utils/line-parser.ts"(){b=class{constructor(e,t){this.matches=[],this.parse=(e,t)=>(this.resetMatches(),!!this._regExp.every((t,r)=>this.addMatch(t,r,e(r)))&&!1!==this.useMatches(t,this.prepareMatches())),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}useMatches(e,t){throw Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){let n=r&&e.exec(r);return n&&this.pushMatch(t,n),!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}},w=class extends b{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function tG(...e){let t=process.cwd(),r=Object.assign(tt({baseDir:t},y),...e.filter(e=>"object"==typeof e&&e));return r.baseDir=r.baseDir||t,r.trimmed=!0===r.trimmed,r}var tH=tn({"src/lib/utils/simple-git-options.ts"(){y={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function tW(e,t=[]){return t$(e)?Object.keys(e).reduce((t,r)=>{let n=e[r];return tu(n)?t.push(n):tN(n,["boolean"])?t.push(r+"="+n):t.push(r),t},t):t}function tV(e,t=0,r=!1){let n=[];for(let r=0,s=t<0?e.length:t;r<s;r++)"string|number".includes(typeof e[r])&&n.push(String(e[r]));return tW(tX(e),n),r||n.push(...function(e){let t="function"==typeof tw(e);return tI(tw(e,t?1:0),l,[])}(e)),n}function tX(e){let t=tD(tw(e));return tI(tw(e,t?1:0),t$)}function tK(e,t=!0){let r=th(tw(e));return t||tm(r)?r:void 0}var tY=tn({"src/lib/utils/task-options.ts"(){tB(),tL(),tl()}});function tQ(e,t){return e(t.stdOut,t.stdErr)}function tZ(e,t,r,n=!0){return tO(r).forEach(r=>{for(let s=tv(r,n),i=0,o=s.length;i<o;i++){let r=(e=0)=>{if(!(i+e>=o))return s[i+e]};t.some(({parse:t})=>t(r,e))}}),e}var tJ=tn({"src/lib/utils/task-parser.ts"(){tL()}}),t0={};ts(t0,{ExitCodes:()=>m,GitOutputStreams:()=>g,LineParser:()=>b,NOOP:()=>u,NULL:()=>a,RemoteLineParser:()=>w,append:()=>tT,appendTaskOptions:()=>tW,asArray:()=>tO,asCamelCase:()=>tS,asFunction:()=>th,asNumber:()=>tR,asStringArray:()=>tE,bufferToString:()=>tF,callTaskParser:()=>tQ,createInstanceConfig:()=>tG,delay:()=>tM,filterArray:()=>l,filterFunction:()=>tD,filterHasLength:()=>h,filterPlainObject:()=>t$,filterPrimitives:()=>tN,filterString:()=>d,filterStringArray:()=>p,filterStringOrStringArray:()=>f,filterType:()=>tI,first:()=>tb,folderExists:()=>tx,forEachLineWithContent:()=>tk,getTrailingOptions:()=>tV,including:()=>tC,isUserFunction:()=>tm,last:()=>tw,objectToString:()=>c,orVoid:()=>tP,parseStringResponse:()=>tZ,pick:()=>tj,prefixedArray:()=>tA,remove:()=>t_,splitOn:()=>tg,toLinesWithContent:()=>tv,trailingFunctionArgument:()=>tK,trailingOptionsArgument:()=>tX});var t1=tn({"src/lib/utils/index.ts"(){tB(),tU(),tq(),tz(),tH(),tY(),tJ(),tL()}}),t3={};function t2(e){switch(e){case"bare":return t9();case"root":return t6()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:k,parser:x}}function t6(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:k,parser:e=>/^\.(git)?$/.test(e.trim())}}function t9(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:k,parser:x}}ts(t3,{CheckRepoActions:()=>v,checkIsBareRepoTask:()=>t9,checkIsRepoRootTask:()=>t6,checkIsRepoTask:()=>t2});var t8=tn({"src/lib/tasks/check-is-repo.ts"(){var e;t1(),(e=v||{}).BARE="bare",e.IN_TREE="tree",e.IS_REPO_ROOT="root",v=e,k=({exitCode:e},t,r,n)=>{if(128===e&&/(Not a git repository|Kein Git-Repository)/i.test(String(t)))return r(Buffer.from("false"));n(t)},x=e=>"true"===e.trim()}}),t4=tn({"src/lib/responses/CleanSummary.ts"(){t1(),T=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},C=/^[a-z]+\s*/i,_=/^[a-z]+\s+[a-z]+\s*/i,O=/\/$/}}),t5={};function t7(e){return{commands:S,format:"empty",parser:e}}function re(e){return{commands:S,format:"empty",parser(){throw"string"==typeof e?new o(e):e}}}function rt(e,t=!1){return{commands:e,format:"utf-8",parser:e=>t?String(e).trim():e}}function rr(e){return{commands:e,format:"buffer",parser:e=>e}}function rn(e){return"buffer"===e.format}function rs(e){return"empty"===e.format||!e.commands.length}ts(t5,{EMPTY_COMMANDS:()=>S,adhocExecTask:()=>t7,configurationErrorTask:()=>re,isBufferTask:()=>rn,isEmptyTask:()=>rs,straightThroughBufferTask:()=>rr,straightThroughStringTask:()=>rt});var ri=tn({"src/lib/tasks/task.ts"(){tf(),S=[]}}),ro={};function ra(e,t){let r,n,s;let{cleanMode:i,options:o,valid:a}=(n=[],s={cleanMode:!1,options:!0},e.replace(/[^a-z]i/g,"").split("").forEach(e=>{var t;"f"===e||"n"===e?(r=e,s.cleanMode=!0):s.options=s.options&&(t=n[n.length]=`-${e}`,/^-[a-z]$/i.test(t)&&j.has(t.charAt(1)))}),{cleanMode:r,options:n,valid:s});return i?a.options?(o.push(...t),o.some(rl))?re(E):ru(i,o):re(A+JSON.stringify(e)):re(R)}function ru(e,t){return{commands:["clean",`-${e}`,...t],format:"utf-8",parser:t=>(function(e,t){let r=new T(e),n=e?_:C;return tv(t).forEach(e=>{let t=e.replace(n,"");r.paths.push(t),(O.test(t)?r.folders:r.files).push(t)}),r})("n"===e,t)}}function rc(e){return Array.isArray(e)&&e.every(e=>j.has(e))}function rl(e){return/^-[^\-]/.test(e)?e.indexOf("i")>0:"--interactive"===e}ts(ro,{CONFIG_ERROR_INTERACTIVE_MODE:()=>E,CONFIG_ERROR_MODE_REQUIRED:()=>R,CONFIG_ERROR_UNKNOWN_OPTION:()=>A,CleanOptions:()=>F,cleanTask:()=>ru,cleanWithOptionsTask:()=>ra,isCleanOptionsArray:()=>rc});var rd=tn({"src/lib/tasks/clean.ts"(){var e;t4(),t1(),ri(),E="Git clean interactive mode is not supported",R='Git clean mode parameter ("n" or "f") is required',A="Git clean unknown option found in: ",(e=F||{}).DRY_RUN="n",e.FORCE="f",e.IGNORED_INCLUDED="x",e.IGNORED_ONLY="X",e.EXCLUDING="e",e.QUIET="q",e.RECURSIVE="d",j=new Set(["i",...tE(Object.values(F=e))])}});function*rp(e,t=null){let r=e.split("\0");for(let e=0,n=r.length-1;e<n;){let n=r[e++].replace(/^(file):/,""),s=r[e++],i=t;if(s.includes("\n")){let e=tg(s,"\n");i=e[0],s=e[1]}yield{file:n,key:i,value:s}}}var rf=tn({"src/lib/responses/ConfigList.ts"(){t1(),M=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{})),this._all}addFile(e){if(!(e in this.values)){let t=tw(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,r){let n=this.addFile(e);n.hasOwnProperty(t)?Array.isArray(n[t])?n[t].push(r):n[t]=[n[t],r]:n[t]=r,this._all=void 0}}}});function rh(e,t){return"string"==typeof e&&P.hasOwnProperty(e)?e:t}var rm=tn({"src/lib/tasks/config.ts"(){var e;rf(),t1(),(e=P||{}).system="system",e.global="global",e.local="local",e.worktree="worktree",P=e}}),rg=tn({"src/lib/tasks/diff-name-status.ts"(){var e;(e=L||{}).ADDED="A",e.COPIED="C",e.DELETED="D",e.MODIFIED="M",e.RENAMED="R",e.CHANGED="T",e.UNMERGED="U",e.UNKNOWN="X",e.BROKEN="B",I=new Set(Object.values(L=e))}}),rb=tn({"src/lib/tasks/grep.ts"(){t1(),ri(),N=["-h"],$=Symbol("grepQuery"),B=class{constructor(){this[D]=[]}*[(D=$,Symbol.iterator)](){for(let e of this[$])yield e}and(...e){return e.length&&this[$].push("--and","(",...tA(e,"-e"),")"),this}param(...e){return this[$].push(...tA(e,"-e")),this}}}}),rw={};function ry(e,t){let r=["reset"];return rk(e)&&r.push(`--${e}`),r.push(...t),rt(r)}function rv(e){if(rk(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function rk(e){return q.includes(e)}ts(rw,{ResetMode:()=>U,getResetMode:()=>rv,resetTask:()=>ry});var rx=tn({"src/lib/tasks/reset.ts"(){var e;ri(),(e=U||{}).MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",q=Array.from(Object.values(U=e))}});function rT(e,t,r){return t&&String(t).replace(/\s*/,"")?(n,...s)=>{e(`%s ${n}`,t,...s),r&&r(n,...s)}:r?(t,...n)=>{e(t,...n),r(t,...n)}:e}function rC(e,t,r,n=eZ("simple-git")){let s=e&&`[${e}]`||"",i=[],o="string"==typeof t?n.extend(t):t,a=function(e,t,{namespace:r}){if("string"==typeof e)return e;let n=t&&t.namespace||"";return n.startsWith(r)?n.substr(r.length+1):n||r}(tI(t,d),o,n);return function t(r){let i=r&&`[${r}]`||"",a=o&&rT(o,i)||u,l=rT(n,`${s} ${i}`,a);return Object.assign(o?a:l,{label:e,sibling:c,info:l,step:t})}(r);function c(t,r){return tT(i,rC(e,a.replace(/^[^:]+/,t),r,n))}}var r_=tn({"src/lib/git-logger.ts"(){t1(),eZ.formatters.L=e=>String(h(e)?e.length:"-"),eZ.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):c(e)}}),rO=tn({"src/lib/runners/tasks-pending-queue.ts"(){td(),r_(),(G=z=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){let t=z.getName(e.commands[0]);return{task:e,logger:rC(this.logLabel,t),name:t}}push(e){let t=this.createProgress(e);return t.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,t),t}fatal(e){for(let[t,{logger:r}]of Array.from(this._queue.entries()))t===e.task?(r.info("Failed %o",e),r("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):r.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(t);if(0!==this._queue.size)throw Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let t=this.withProgress(e);if(!t)throw new s(void 0,"TasksPendingQueue: attempt called for an unknown task");return t.logger("Starting task"),t}static getName(e="empty"){return`task:${e}:${++z.counter}`}}).counter=0}});function rS(e,t){return{method:tb(e.commands)||"",commands:t}}function rE(e,t,r,n){return s=>{r("%s received %L bytes",t,s),n("%B",s),e.push(s)}}var rR=tn({"src/lib/runners/git-executor-chain.ts"(){td(),ri(),t1(),rO(),H=class{constructor(e,t,r){this._executor=e,this._scheduler=t,this._plugins=r,this._chain=Promise.resolve(),this._queue=new G}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return ta(this,null,function*(){let t=yield this._scheduler.next();try{let{logger:t}=this._queue.attempt(e);return yield rs(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t)}catch(t){throw this.onFatalException(e,t)}finally{this._queue.complete(e),t()}})}onFatalException(e,t){let r=t instanceof s?Object.assign(t,{task:e}):new s(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(r),r}attemptRemoteTask(e,t){return ta(this,null,function*(){let r=this._plugins.exec("spawn.binary","",rS(e,e.commands)),n=this._plugins.exec("spawn.args",[...e.commands],rS(e,e.commands)),s=yield this.gitResponse(e,r,n,this.outputHandler,t.step("SPAWN")),i=yield this.handleTaskData(e,n,s,t.step("HANDLE"));return(t("passing response to task's parser as a %s",e.format),rn(e))?tQ(e.parser,i):tQ(e.parser,i.asStrings())})}attemptEmptyTask(e,t){return ta(this,null,function*(){return t("empty task bypassing child process to call to task's parser"),e.parser(this)})}handleTaskData(e,t,r,n){let{exitCode:s,rejection:i,stdOut:o,stdErr:a}=r;return new Promise((u,l)=>{n("Preparing to handle process response exitCode=%d stdOut=",s);let{error:d}=this._plugins.exec("task.error",{error:i},tt(tt({},rS(e,t)),r));return d&&e.onError?(n.info("exitCode=%s handling with custom error handler"),e.onError(r,d,e=>{n.info("custom error handler treated as success"),n("custom error returned a %s",c(e)),u(new g(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(a)))},l)):d?(n.info("handling as error: exitCode=%s stdErr=%s rejection=%o",s,a.length,i),l(d)):void(n.info("retrieving task output complete"),u(new g(Buffer.concat(o),Buffer.concat(a))))})}gitResponse(e,t,r,n,s){return ta(this,null,function*(){let i=s.sibling("output"),o=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},rS(e,e.commands));return new Promise(a=>{let u=[],c=[];s.info("%s %o",t,r),s("%O",o);let l=this._beforeSpawn(e,r);if(l)return a({stdOut:u,stdErr:c,exitCode:9901,rejection:l});this._plugins.exec("spawn.before",void 0,tr(tt({},rS(e,r)),{kill(e){l=e||l}}));let d=(0,eJ.spawn)(t,r,o);d.stdout.on("data",rE(u,"stdOut",s,i.step("stdOut"))),d.stderr.on("data",rE(c,"stdErr",s,i.step("stdErr"))),d.on("error",e=>{s("[ERROR] child process exception %o",e),c.push(Buffer.from(String(e.stack),"ascii"))}),n&&(s("Passing child process stdOut/stdErr to custom outputHandler"),n(t,d.stdout,d.stderr,[...r])),this._plugins.exec("spawn.after",void 0,tr(tt({},rS(e,r)),{spawned:d,close(e,t){a({stdOut:u,stdErr:c,exitCode:e,rejection:l||t})},kill(e){d.killed||(l=e,d.kill("SIGINT"))}}))})})}_beforeSpawn(e,t){let r;return this._plugins.exec("spawn.before",void 0,tr(tt({},rS(e,t)),{kill(e){r=e||r}})),r}}}}),rA={};ts(rA,{GitExecutor:()=>W});var rF=tn({"src/lib/runners/git-executor.ts"(){rR(),W=class{constructor(e,t,r){this.cwd=e,this._scheduler=t,this._plugins=r,this._chain=new H(this,this._scheduler,this._plugins)}chain(){return new H(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}}),rj=tn({"src/lib/task-callback.ts"(){tp(),t1()}});function rM(e,t){return t7(r=>{if(!tx(e))throw Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||r).cwd=e})}var rP=tn({"src/lib/tasks/change-working-directory.ts"(){t1(),ri()}});function rL(e){let t=["checkout",...e];return"-b"===t[1]&&t.includes("-B")&&(t[1]=t_(t,"-B")),rt(t)}var rI=tn({"src/lib/tasks/checkout.ts"(){t1(),ri()}}),rN=tn({"src/lib/tasks/count-objects.ts"(){t1(),V=new b(/([a-z-]+): (\d+)$/,(e,[t,r])=>{let n=tS(t);e.hasOwnProperty(n)&&(e[n]=tR(r))})}});function r$(e){return tZ({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},X,e)}var rD=tn({"src/lib/parsers/parse-commit.ts"(){t1(),X=[new b(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,r,n])=>{e.branch=t,e.commit=n,e.root=!!r}),new b(/\s*Author:\s(.+)/i,(e,[t])=>{let r=t.split("<"),n=r.pop();n&&n.includes("@")&&(e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()})}),new b(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(r,10)||0,e.summary.deletions=parseInt(n,10)||0}),new b(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;let s=parseInt(r,10)||0;"-"===n?e.summary.deletions=s:"+"===n&&(e.summary.insertions=s)})]}}),rB=tn({"src/lib/tasks/commit.ts"(){rD(),t1(),ri()}}),rU=tn({"src/lib/tasks/first-commit.ts"(){t1(),ri()}}),rq=tn({"src/lib/tasks/hash-object.ts"(){ri()}}),rz=tn({"src/lib/responses/InitSummary.ts"(){K=class{constructor(e,t,r,n){this.bare=e,this.path=t,this.existing=r,this.gitDir=n}},Y=/^Init.+ repository in (.+)$/,Q=/^Rein.+ in (.+)$/}}),rG=tn({"src/lib/tasks/init.ts"(){rz(),Z="--bare"}});function rH(e){for(let t=0;t<e.length;t++){let r=J.exec(e[t]);if(r)return`--${r[1]}`}return""}function rW(e){return J.test(e)}var rV=tn({"src/lib/args/log-format.ts"(){J=/^--(stat|numstat|name-only|name-status)(=|$)/}}),rX=tn({"src/lib/responses/DiffSummary.ts"(){ee=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function rK(e=""){let t=es[e];return e=>tZ(new ee,t,e,!1)}var rY=tn({"src/lib/parsers/parse-diff-summary.ts"(){rV(),rX(),rg(),t1(),et=[new b(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,r,n=""])=>{e.files.push({file:t.trim(),changes:tR(r),insertions:n.replace(/[^+]/g,"").length,deletions:n.replace(/[^-]/g,"").length,binary:!1})}),new b(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,r,n])=>{e.files.push({file:t.trim(),before:tR(r),after:tR(n),binary:!0})}),new b(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,r])=>{let n=/(\d+) i/.exec(r),s=/(\d+) d/.exec(r);e.changed=tR(t),e.insertions=tR(null==n?void 0:n[1]),e.deletions=tR(null==s?void 0:s[1])})],er=[new b(/(\d+)\t(\d+)\t(.+)$/,(e,[t,r,n])=>{let s=tR(t),i=tR(r);e.changed++,e.insertions+=s,e.deletions+=i,e.files.push({file:n,changes:s+i,insertions:s,deletions:i,binary:!1})}),new b(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],en=[new b(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],es={"":et,"--stat":et,"--numstat":er,"--name-status":[new b(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,r,n,s,i])=>{e.changed++,e.files.push({file:null!=i?i:n,changes:0,insertions:0,deletions:0,binary:!1,status:tP(I.has(t)&&t),from:tP(!!i&&n!==i&&n),similarity:tR(r)})})],"--name-only":en}}});function rQ(e=ea,t=eu,r=""){let n=rK(r);return function(r){let s=tv(r.trim(),!1,ei).map(function(r){var s;let i=r.split(eo),o=(s=i[0].split(e),t.reduce((e,t,r)=>(e[t]=s[r]||"",e),Object.create({diff:null})));return i.length>1&&i[1].trim()&&(o.diff=n(i[1])),o});return{all:s,latest:s.length&&s[0]||null,total:s.length}}}var rZ=tn({"src/lib/parsers/parse-list-log-summary.ts"(){t1(),rY(),rV(),ei="\xf2\xf2\xf2\xf2\xf2\xf2 ",eo=" \xf2\xf2",ea=" \xf2 ",eu=["hash","date","message","refs","author_name","author_email"]}}),rJ={};function r0(e){let t=rH(e),r=["diff"];return""===t&&(t="--stat",r.push("--stat=4096")),r.push(...e),r1(r)||{commands:r,format:"utf-8",parser:rK(t)}}function r1(e){let t=e.filter(rW);return t.length>1?re(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`):t.length&&e.includes("-z")?re(`Summary flag ${t} parsing is not compatible with null termination option '-z'`):void 0}ts(rJ,{diffSummaryTask:()=>r0,validateLogFormatConfig:()=>r1});var r3=tn({"src/lib/tasks/diff.ts"(){rV(),rY(),ri()}});function r2(e={},t=[]){let r=tI(e.splitter,d,ea),[s,i]=function(e,t){let r=[],n=[];return Object.keys(e).forEach(t=>{r.push(t),n.push(String(e[t]))}),[r,n.join(t)]}(!tN(e.format)&&e.format?e.format:{hash:"%H",date:!1===e.strictDate?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:!1!==e.mailMap?"%aN":"%an",author_email:!1!==e.mailMap?"%aE":"%ae"},r),o=[],a=[`--pretty=format:${ei}${i}${eo}`,...t],u=e.n||e["max-count"]||e.maxCount;if(u&&a.push(`--max-count=${u}`),e.from||e.to){let t=!1!==e.symmetric?"...":"..";o.push(`${e.from||""}${t}${e.to||""}`)}return d(e.file)&&a.push("--follow",function(...e){let t=new String(e);return n.set(t,e),t}(e.file)),tW(Object.keys(e).reduce((t,r)=>(r in ec||(t[r]=e[r]),t),{}),a),{fields:s,splitter:r,commands:[...a,...o]}}var r6=tn({"src/lib/tasks/log.ts"(){var e;rV(),tl(),rZ(),t1(),ri(),r3(),(e=ec||{})[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",ec=e}}),r9=tn({"src/lib/responses/MergeSummary.ts"(){el=class{constructor(e,t=null,r){this.reason=e,this.file=t,this.meta=r}toString(){return`${this.file}:${this.reason}`}},ed=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),r8=tn({"src/lib/responses/PullSummary.ts"(){ep=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},ef=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function r4(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function r5(e){let t=/^\s*(\d+)/.exec(e),r=/delta (\d+)/i.exec(e);return{count:tR(t&&t[1]||"0"),delta:tR(r&&r[1]||"0")}}var r7=tn({"src/lib/parsers/parse-remote-objects.ts"(){t1(),eh=[new w(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,r])=>{let n=t.toLowerCase();Object.assign(r4(e.remoteMessages),{[n]:tR(r)})}),new w(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,r])=>{let n=t.toLowerCase();Object.assign(r4(e.remoteMessages),{[n]:tR(r)})}),new w(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,r,n])=>{let s=r4(e.remoteMessages);s.total=r5(t),s.reused=r5(r),s.packReused=tR(n)})]}});function ne(e,t){return tZ({remoteMessages:new eg},em,t)}var nt=tn({"src/lib/parsers/parse-remote-messages.ts"(){t1(),r7(),em=[new w(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...eh,new w([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new w([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,r,n])=>{e.remoteMessages.vulnerabilities={count:tR(t),summary:r,url:n}})],eg=class{constructor(){this.all=[]}}}}),nr=tn({"src/lib/parsers/parse-pull.ts"(){r8(),t1(),nt(),eb=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,ew=/^(create|delete) mode \d+ (.+)/,ey=[new b(/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,(e,[t,r,n])=>{e.files.push(t),r&&(e.insertions[t]=r.length),n&&(e.deletions[t]=n.length)}),new b(eb,(e,[t,,r,,n])=>(void 0!==r||void 0!==n)&&(e.summary.changes=+t||0,e.summary.insertions=+r||0,e.summary.deletions=+n||0,!0)),new b(ew,(e,[t,r])=>{tT(e.files,r),tT("create"===t?e.created:e.deleted,r)})],ev=[new b(/^from\s(.+)$/i,(e,[t])=>void(e.remote=t)),new b(/^fatal:\s(.+)$/,(e,[t])=>void(e.message=t)),new b(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,r,n,s])=>{e.branch.local=n,e.hash.local=t,e.branch.remote=s,e.hash.remote=r})],ek=(e,t)=>tZ(new ep,ey,[e,t]),ex=(e,t)=>Object.assign(new ep,ek(e,t),ne(e,t))}}),nn=tn({"src/lib/parsers/parse-merge.ts"(){r9(),t1(),nr(),eT=[new b(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new b(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,r])=>{e.conflicts.push(new el(t,r))}),new b(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,r,n])=>{e.conflicts.push(new el(t,r,{deleteRef:n}))}),new b(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new el(t,null))}),new b(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],eC=(e,t)=>Object.assign(e_(e,t),ex(e,t)),e_=e=>tZ(new ed,eT,e)}});function ns(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(e,t){let r=eC(e,t);if(r.failed)throw new i(r);return r}}:re("Git.merge requires at least one option")}var ni=tn({"src/lib/tasks/merge.ts"(){tp(),nn(),ri()}}),no=tn({"src/lib/parsers/parse-push.ts"(){t1(),nt(),eO=[new b(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new b(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref=tr(tt({},e.ref||{}),{local:t})}),new b(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,r,n])=>{e.pushed.push(function(e,t,r){let n=r.includes("deleted"),s=r.includes("tag")||/^refs\/tags/.test(e),i=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!i,alreadyUpdated:i,local:e,remote:t}}(t,r,n))}),new b(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,r,n])=>{e.branch=tr(tt({},e.branch||{}),{local:t,remote:r,remoteName:n})}),new b(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}})],eS=(e,t)=>{let r=eE(e,t),n=ne(e,t);return tt(tt({},r),n)},eE=(e,t)=>tZ({pushed:[]},eO,[e,t])}}),na={};function nu(e={},t){return tT(t,"--tags"),nc(e,t)}function nc(e={},t){let r=["push",...t];return e.branch&&r.splice(1,0,e.branch),e.remote&&r.splice(1,0,e.remote),t_(r,"-v"),tT(r,"--verbose"),tT(r,"--porcelain"),{commands:r,format:"utf-8",parser:eS}}ts(na,{pushTagsTask:()=>nu,pushTask:()=>nc});var nl=tn({"src/lib/tasks/push.ts"(){no(),t1()}}),nd=tn({"src/lib/tasks/show.ts"(){t1(),ri()}}),np=tn({"src/lib/responses/FileStatusSummary.ts"(){eR=/^(.+)\0(.+)$/,eA=class{constructor(e,t,r){if(this.path=e,this.index=t,this.working_dir=r,"R"===t||"R"===r){let t=eR.exec(e)||[null,e,e];this.from=t[2]||"",this.path=t[1]||""}}}}});function nf(e){let[t,r]=e.split(a);return{from:r||t,to:t}}function nh(e,t,r){return[`${e}${t}`,r]}function nm(e,...t){return t.map(t=>nh(e,t,(e,t)=>tT(e.conflicted,t)))}var ng=tn({"src/lib/responses/StatusSummary.ts"(){t1(),np(),eF=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},ej=new Map([nh(" ","A",(e,t)=>tT(e.created,t)),nh(" ","D",(e,t)=>tT(e.deleted,t)),nh(" ","M",(e,t)=>tT(e.modified,t)),nh("A"," ",(e,t)=>tT(e.created,t)&&tT(e.staged,t)),nh("A","M",(e,t)=>tT(e.created,t)&&tT(e.staged,t)&&tT(e.modified,t)),nh("D"," ",(e,t)=>tT(e.deleted,t)&&tT(e.staged,t)),nh("M"," ",(e,t)=>tT(e.modified,t)&&tT(e.staged,t)),nh("M","M",(e,t)=>tT(e.modified,t)&&tT(e.staged,t)),nh("R"," ",(e,t)=>{tT(e.renamed,nf(t))}),nh("R","M",(e,t)=>{let r=nf(t);tT(e.renamed,r),tT(e.modified,r.to)}),nh("!","!",(e,t)=>{tT(e.ignored=e.ignored||[],t)}),nh("?","?",(e,t)=>tT(e.not_added,t)),...nm("A","A","U"),...nm("D","D","U"),...nm("U","A","D","U"),["##",(e,t)=>{let r;r=/ahead (\d+)/.exec(t),e.ahead=r&&+r[1]||0,r=/behind (\d+)/.exec(t),e.behind=r&&+r[1]||0,r=/^(.+?(?=(?:\.{3}|\s|$)))/.exec(t),e.current=r&&r[1],r=/\.{3}(\S*)/.exec(t),e.tracking=r&&r[1],r=/\son\s([\S]+)$/.exec(t),e.current=r&&r[1]||e.current,e.detached=/\(no branch\)/.test(t)}]]),eM=function(e){let t=e.split(a),r=new eF;for(let e=0,n=t.length;e<n;){let n=t[e++].trim();n&&("R"===n.charAt(0)&&(n+=a+(t[e++]||"")),function(e,t){let r=t.trim();switch(" "){case r.charAt(2):return n(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return n(" ",r.charAt(0),r.substr(2));default:return}function n(t,r,n){let s=`${t}${r}`,i=ej.get(s);i&&i(e,n),"##"!==s&&"!!"!==s&&e.files.push(new eA(n,t,r))}}(r,n))}return r}}}),nb=tn({"src/lib/tasks/status.ts"(){ng(),eP=["--null","-z"]}});function nw(e=0,t=0,r=0,n="",s=!0){return Object.defineProperty({major:e,minor:t,patch:r,agent:n,installed:s},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function ny(e){return e===eL?nw(0,0,0,"",!1):tZ(nw(0,0,0,e),eI,e)}var nv=tn({"src/lib/tasks/version.ts"(){t1(),eL="installed=false",eI=[new b(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,r,n,s=""])=>{Object.assign(e,nw(tR(t),tR(r),tR(n),s))}),new b(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,r,n,s=""])=>{Object.assign(e,nw(tR(t),tR(r),n,s))})]}}),nk={};ts(nk,{SimpleGitApi:()=>eN});var nx=tn({"src/lib/simple-git-api.ts"(){rj(),rP(),rI(),rN(),rB(),rm(),rU(),rb(),rq(),rG(),r6(),ni(),nl(),nd(),nb(),ri(),nv(),t1(),Object.assign((eN=class{constructor(e){this._executor=e}_runTask(e,t){let r=this._executor.chain(),n=r.push(e);return t&&function(e,t,r=u){t.then(e=>{r(null,e)},t=>{let n;(null==t?void 0:t.task)===e&&r(t instanceof i?(n=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),n=u},Object.create(t,Object.getOwnPropertyNames(t.git).reduce(function(e,r){return r in t||(e[r]={enumerable:!1,configurable:!1,get:()=>(n(r),t.git[r])}),e},{}))):t,void 0)})}(e,n,t),Object.create(this,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)},_executor:{value:r}})}add(e){return this._runTask(rt(["add",...tO(e)]),tK(arguments))}cwd(e){let t=tK(arguments);return"string"==typeof e?this._runTask(rM(e,this._executor),t):"string"==typeof(null==e?void 0:e.path)?this._runTask(rM(e.path,e.root&&this._executor||void 0),t):this._runTask(re("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(function(e,t){let r=["hash-object",e];return t&&r.push("-w"),rt(r,!0)}(e,!0===t),tK(arguments))}init(e){return this._runTask(function(e=!1,t,r){let n=["init",...r];return e&&!n.includes(Z)&&n.splice(1,0,Z),{commands:n,format:"utf-8",parser:e=>(function(e,t,r){let n;let s=String(r).trim();if(n=Y.exec(s))return new K(e,t,!1,n[1]);if(n=Q.exec(s))return new K(e,t,!0,n[1]);let i="",o=s.split(" ");for(;o.length;)if("in"===o.shift()){i=o.join(" ");break}return new K(e,t,/^re/i.test(s),i)})(n.includes("--bare"),t,e)}}(!0===e,this._executor.cwd,tV(arguments)),tK(arguments))}merge(){return this._runTask(ns(tV(arguments)),tK(arguments))}mergeFromTo(e,t){return d(e)&&d(t)?this._runTask(ns([e,t,...tV(arguments)]),tK(arguments,!1)):this._runTask(re("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=nc({remote:tI(arguments[0],d),branch:tI(arguments[1],d)},tV(arguments));return this._runTask(e,tK(arguments))}stash(){return this._runTask(rt(["stash",...tV(arguments)]),tK(arguments))}status(){var e;return this._runTask((e=tV(arguments),{format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...e.filter(e=>!eP.includes(e))],parser:e=>eM(e)}),tK(arguments))}}).prototype,{checkout(){return this._runTask(rL(tV(arguments,1)),tK(arguments))},checkoutBranch(e,t){return this._runTask(rL(["-b",e,t,...tV(arguments)]),tK(arguments))},checkoutLocalBranch(e){return this._runTask(rL(["-b",e,...tV(arguments)]),tK(arguments))}},{commit(e,...t){var r,n,s;let i=tK(arguments),o=!f(e)&&re("git.commit: requires the commit message to be supplied as a string/string[]")||(r=tO(e),n=tO(tI(t[0],f,[])),s=[...tI(t[1],l,[]),...tV(arguments,0,!0)],{commands:["-c","core.abbrev=40","commit",...tA(r,"-m"),...n,...s],format:"utf-8",parser:r$});return this._runTask(o,i)}},{addConfig(e,t,...r){return this._runTask(function(e,t,r,n){let s=["config",`--${n}`];return r&&s.push("--add"),s.push(e,t),{commands:s,format:"utf-8",parser:e=>e}}(e,t,!0===r[0],rh(r[1],"local")),tK(arguments))},getConfig(e,t){return this._runTask(function(e,t){let r=["config","--null","--show-origin","--get-all",e];return t&&r.splice(1,0,`--${t}`),{commands:r,format:"utf-8",parser:t=>(function(e,t){let r=null,n=[],s=new Map;for(let i of rp(e,t))i.key===t&&(n.push(r=i.value),s.has(i.file)||s.set(i.file,[]),s.get(i.file).push(r));return{key:t,paths:Array.from(s.keys()),scopes:s,value:r,values:n}})(t,e)}}(e,rh(t,void 0)),tK(arguments))},listConfig(...e){return this._runTask(function(e){let t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser:e=>(function(e){let t=new M;for(let r of rp(e))t.addValue(r.file,String(r.key),r.value);return t})(e)}}(rh(e[0],void 0)),tK(arguments))}},{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser:e=>tZ({count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0},[V],e)})}},{firstCommit(){return this._runTask(rt(["rev-list","--max-parents=0","HEAD"],!0),tK(arguments))}},{grep(e){let t=tK(arguments),r=tV(arguments);for(let e of N)if(r.includes(e))return this._runTask(re(`git.grep: use of "${e}" is not supported.`),t);"string"==typeof e&&(e=(function(...e){return new B().param(...e)})().param(e));let n=["grep","--null","-n","--full-name",...r,...e];return this._runTask({commands:n,format:"utf-8",parser:e=>(function(e){let t=new Set,r={};return tk(e,e=>{let[n,s,i]=e.split(a);t.add(n),(r[n]=r[n]||[]).push({line:tR(s),path:n,preview:i})}),{paths:t,results:r}})(e)},t)}},{log(...e){let t=tK(arguments),r=r2(tX(arguments),tI(arguments[0],l)),n=function(e,t){return d(e)&&d(t)&&re("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}(...e)||r1(r.commands)||function(e,t,r){let n=rQ(e,t,rH(r));return{commands:["log",...r],format:"utf-8",parser:n}}(r.splitter,r.fields,r.commands);return this._runTask(n,t)}},{showBuffer(){let e=["show",...tV(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(rr(e),tK(arguments))},show(){let e=["show",...tV(arguments,1)];return this._runTask(rt(e),tK(arguments))}},{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:ny,onError(e,t,r,n){if(-2===e.exitCode)return r(Buffer.from(eL));n(t)}})}})}}),nT={};ts(nT,{Scheduler:()=>eD});var nC=tn({"src/lib/runners/scheduler.ts"(){let e;t1(),r_(),e=0,e$=()=>{e++;let{promise:t,done:r}=(0,e0.ud)();return{promise:t,done:r,id:e}},eD=class{constructor(e=2){this.concurrency=e,this.logger=rC("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);return}let e=tT(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done(()=>{this.logger("Completing id=",e.id),t_(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=tT(this.pending,e$());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),n_={};function nO(e,t){return rt(["apply",...t,...e])}ts(n_,{applyPatchTask:()=>nO});var nS=tn({"src/lib/tasks/apply-patch.ts"(){ri()}}),nE=tn({"src/lib/responses/BranchDeleteSummary.ts"(){eB=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function nR(e,t){return 1===t&&eU.test(e)}var nA=tn({"src/lib/parsers/parse-branch-delete.ts"(){nE(),t1(),eU=/^error[^']+'([^']+)'/m,eq=[new b(/(\S+)\s+\(\S+\s([^)]+)\)/,(e,[t,r])=>{let n={branch:t,hash:r,success:!0};e.all.push(n),e.branches[t]=n}),new b(eU,(e,[t])=>{let r={branch:t,hash:null,success:!1};e.errors.push(r),e.all.push(r),e.branches[t]=r})],ez=(e,t)=>tZ(new eB,eq,[e,t])}}),nF=tn({"src/lib/responses/BranchSummary.ts"(){eG=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,r,n,s){"*"===e&&(this.detached=t,this.current=r),this.all.push(r),this.branches[r]={current:"*"===e,linkedWorkTree:"+"===e,name:r,commit:n,label:s}}}}});function nj(e){return e?e.charAt(0):""}function nM(e){return tZ(new eG,eH,e)}var nP=tn({"src/lib/parsers/parse-branch.ts"(){nF(),t1(),eH=[new b(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,s])=>{e.push(nj(t),!0,r,n,s)}),new b(RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$","s"),(e,[t,r,n,s])=>{e.push(nj(t),!1,r,n,s)})]}}),nL={};function nI(e){let t=["-d","-D","--delete"];return e.some(e=>t.includes(e))}function nN(e){let t=nI(e),r=["branch",...e];return 1===r.length&&r.push("-a"),r.includes("-v")||r.splice(1,0,"-v"),{format:"utf-8",commands:r,parser:(e,r)=>t?ez(e,r).all[0]:nM(e)}}function n$(){return{format:"utf-8",commands:["branch","-v"],parser:nM}}function nD(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser:(e,t)=>ez(e,t),onError({exitCode:e,stdOut:t},r,n,s){if(!nR(String(r),e))return s(r);n(t)}}}function nB(e,t=!1){let r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser:(t,r)=>ez(t,r).branches[e],onError({exitCode:e,stdErr:t,stdOut:n},s,o,a){if(!nR(String(s),e))return a(s);throw new i(r.parser(tF(n),tF(t)),String(s))}};return r}ts(nL,{branchLocalTask:()=>n$,branchTask:()=>nN,containsDeleteBranchCommand:()=>nI,deleteBranchTask:()=>nB,deleteBranchesTask:()=>nD});var nU=tn({"src/lib/tasks/branch.ts"(){tp(),nA(),nP(),t1()}}),nq=tn({"src/lib/responses/CheckIgnore.ts"(){eW=e=>e.split(/\n/g).map(e=>e.trim()).filter(e=>!!e)}}),nz={};function nG(e){return{commands:["check-ignore",...e],format:"utf-8",parser:eW}}ts(nz,{checkIgnoreTask:()=>nG});var nH=tn({"src/lib/tasks/check-ignore.ts"(){nq()}}),nW={};function nV(e){return/^--upload-pack(=|$)/.test(e)}function nX(e,t,r){let n=["clone",...r];return(d(e)&&n.push(e),d(t)&&n.push(t),n.find(nV))?re("git.fetch: potential exploit argument blocked."):rt(n)}function nK(e,t,r){return tT(r,"--mirror"),nX(e,t,r)}ts(nW,{cloneMirrorTask:()=>nK,cloneTask:()=>nX});var nY=tn({"src/lib/tasks/clone.ts"(){ri(),t1()}});function nQ(e,t){return tZ({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},eV,[e,t])}var nZ=tn({"src/lib/parsers/parse-fetch.ts"(){t1(),eV=[new b(/From (.+)$/,(e,[t])=>{e.remote=t}),new b(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.branches.push({name:t,tracking:r})}),new b(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.tags.push({name:t,tracking:r})}),new b(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new b(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,r,n,s])=>{e.updated.push({name:n,tracking:s,to:r,from:t})})]}}),nJ={};function n0(e){return/^--upload-pack(=|$)/.test(e)}function n1(e,t,r){let n=["fetch",...r];return(e&&t&&n.push(e,t),n.find(n0))?re("git.fetch: potential exploit argument blocked."):{commands:n,format:"utf-8",parser:nQ}}ts(nJ,{fetchTask:()=>n1});var n3=tn({"src/lib/tasks/fetch.ts"(){nZ(),ri()}});function n2(e){return tZ({moves:[]},eX,e)}var n6=tn({"src/lib/parsers/parse-move.ts"(){t1(),eX=[new b(/^Renaming (.+) to (.+)$/,(e,[t,r])=>{e.moves.push({from:t,to:r})})]}}),n9={};function n8(e,t){return{commands:["mv","-v",...tO(e),t],format:"utf-8",parser:n2}}ts(n9,{moveTask:()=>n8});var n4=tn({"src/lib/tasks/move.ts"(){n6(),t1()}}),n5={};function n7(e,t,r){let n=["pull",...r];return e&&t&&n.splice(1,0,e,t),{commands:n,format:"utf-8",parser:(e,t)=>ex(e,t),onError(e,t,r,n){let s=function(e,t){let r=tZ(new ef,ev,[e,t]);return r.message&&r}(tF(e.stdOut),tF(e.stdErr));if(s)return n(new i(s));n(t)}}}ts(n5,{pullTask:()=>n7});var se=tn({"src/lib/tasks/pull.ts"(){tp(),nr(),t1()}});function st(e){let t={};return sn(e,([e])=>t[e]={name:e}),Object.values(t)}function sr(e){let t={};return sn(e,([e,r,n])=>{t.hasOwnProperty(e)||(t[e]={name:e,refs:{fetch:"",push:""}}),n&&r&&(t[e].refs[n.replace(/[^a-z]/g,"")]=r)}),Object.values(t)}function sn(e,t){tk(e,e=>t(e.split(/\s+/)))}var ss=tn({"src/lib/responses/GetRemoteSummary.ts"(){t1()}}),si={};function so(e,t,r){return rt(["remote","add",...r,e,t])}function sa(e){let t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?sr:st}}function su(e){let t=[...e];return"ls-remote"!==t[0]&&t.unshift("ls-remote"),rt(t)}function sc(e){let t=[...e];return"remote"!==t[0]&&t.unshift("remote"),rt(t)}function sl(e){return rt(["remote","remove",e])}ts(si,{addRemoteTask:()=>so,getRemotesTask:()=>sa,listRemotesTask:()=>su,remoteTask:()=>sc,removeRemoteTask:()=>sl});var sd=tn({"src/lib/tasks/remote.ts"(){ss(),ri()}}),sp={};function sf(e={},t){let r=r2(e),n=["stash","list",...r.commands,...t],s=rQ(r.splitter,r.fields,rH(n));return r1(n)||{commands:n,format:"utf-8",parser:s}}ts(sp,{stashListTask:()=>sf});var sh=tn({"src/lib/tasks/stash-list.ts"(){rV(),rZ(),r3(),r6()}}),sm={};function sg(e,t){return sw(["add",e,t])}function sb(e){return sw(["init",...e])}function sw(e){let t=[...e];return"submodule"!==t[0]&&t.unshift("submodule"),rt(t)}function sy(e){return sw(["update",...e])}ts(sm,{addSubModuleTask:()=>sg,initSubModuleTask:()=>sb,subModuleTask:()=>sw,updateSubModuleTask:()=>sy});var sv=tn({"src/lib/tasks/sub-module.ts"(){ri()}});function sk(e,t){return e===t?0:e>t?1:-1}function sx(e){return e.trim()}function sT(e){return"string"==typeof e&&parseInt(e.replace(/^\D+/g,""),10)||0}var sC=tn({"src/lib/responses/TagList.ts"(){eK=class{constructor(e,t){this.all=e,this.latest=t}},eY=function(e,t=!1){let r=e.split("\n").map(sx).filter(Boolean);t||r.sort(function(e,t){let r=e.split("."),n=t.split(".");if(1===r.length||1===n.length)return function(e,t){let r=isNaN(e);return r!==isNaN(t)?r?1:-1:r?sk(e,t):0}(sT(r[0]),sT(n[0]));for(let e=0,t=Math.max(r.length,n.length);e<t;e++){let t=sk(sT(r[e]),sT(n[e]));if(t)return t}return 0});let n=t?r[0]:[...r].reverse().find(e=>e.indexOf(".")>=0);return new eK(r,n)}}}),s_={};function sO(e=[]){let t=e.some(e=>/^--sort=/.test(e));return{format:"utf-8",commands:["tag","-l",...e],parser:e=>eY(e,t)}}function sS(e){return{format:"utf-8",commands:["tag",e],parser:()=>({name:e})}}function sE(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser:()=>({name:e})}}ts(s_,{addAnnotatedTagTask:()=>sE,addTagTask:()=>sS,tagListTask:()=>sO});var sR=tn({"src/lib/tasks/tag.ts"(){sC()}}),sA=((e,t)=>function(){return t||(0,e[e8(e)[0]])((t={exports:{}}).exports,t),t.exports})({"src/git.js"(e,t){var{GitExecutor:r}=(rF(),to(rA)),{SimpleGitApi:n}=(nx(),to(nk)),{Scheduler:s}=(nC(),to(nT)),{configurationErrorTask:i}=(ri(),to(t5)),{asArray:o,filterArray:a,filterPrimitives:u,filterString:c,filterStringOrStringArray:l,filterType:d,getTrailingOptions:p,trailingFunctionArgument:f,trailingOptionsArgument:h}=(t1(),to(t0)),{applyPatchTask:m}=(nS(),to(n_)),{branchTask:g,branchLocalTask:b,deleteBranchesTask:w,deleteBranchTask:y}=(nU(),to(nL)),{checkIgnoreTask:v}=(nH(),to(nz)),{checkIsRepoTask:k}=(t8(),to(t3)),{cloneTask:x,cloneMirrorTask:T}=(nY(),to(nW)),{cleanWithOptionsTask:C,isCleanOptionsArray:_}=(rd(),to(ro)),{diffSummaryTask:O}=(r3(),to(rJ)),{fetchTask:S}=(n3(),to(nJ)),{moveTask:E}=(n4(),to(n9)),{pullTask:R}=(se(),to(n5)),{pushTagsTask:A}=(nl(),to(na)),{addRemoteTask:F,getRemotesTask:j,listRemotesTask:M,remoteTask:P,removeRemoteTask:L}=(sd(),to(si)),{getResetMode:I,resetTask:N}=(rx(),to(rw)),{stashListTask:$}=(sh(),to(sp)),{addSubModuleTask:D,initSubModuleTask:B,subModuleTask:U,updateSubModuleTask:q}=(sv(),to(sm)),{addAnnotatedTagTask:z,addTagTask:G,tagListTask:H}=(sR(),to(s_)),{straightThroughBufferTask:W,straightThroughStringTask:V}=(ri(),to(t5));function X(e,t){this._plugins=t,this._executor=new r(e.baseDir,new s(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}function K(e,t,r,n){return"string"!=typeof r?i(`git.${e}() requires a string 'repoPath'`):t(r,d(n,c),p(arguments))}(X.prototype=Object.create(n.prototype)).constructor=X,X.prototype.customBinary=function(e){return this._plugins.reconfigure("binary",e),this},X.prototype.env=function(e,t){return 1==arguments.length&&"object"==typeof e?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},X.prototype.stashList=function(e){return this._runTask($(h(arguments)||{},a(e)&&e||[]),f(arguments))},X.prototype.clone=function(){return this._runTask(K("clone",x,...arguments),f(arguments))},X.prototype.mirror=function(){return this._runTask(K("mirror",T,...arguments),f(arguments))},X.prototype.mv=function(e,t){return this._runTask(E(e,t),f(arguments))},X.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(r,n){t.checkout(n.latest,e)})})},X.prototype.pull=function(e,t,r,n){return this._runTask(R(d(e,c),d(t,c),p(arguments)),f(arguments))},X.prototype.fetch=function(e,t){return this._runTask(S(d(e,c),d(t,c),p(arguments)),f(arguments))},X.prototype.silent=function(e){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},X.prototype.tags=function(e,t){return this._runTask(H(p(arguments)),f(arguments))},X.prototype.rebase=function(){return this._runTask(V(["rebase",...p(arguments)]),f(arguments))},X.prototype.reset=function(e){return this._runTask(N(I(e),p(arguments)),f(arguments))},X.prototype.revert=function(e){let t=f(arguments);return"string"!=typeof e?this._runTask(i("Commit must be a string"),t):this._runTask(V(["revert",...p(arguments,0,!0),e]),t)},X.prototype.addTag=function(e){let t="string"==typeof e?G(e):i("Git.addTag requires a tag name");return this._runTask(t,f(arguments))},X.prototype.addAnnotatedTag=function(e,t){return this._runTask(z(e,t),f(arguments))},X.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(y(e,"boolean"==typeof t&&t),f(arguments))},X.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(w(e,"boolean"==typeof t&&t),f(arguments))},X.prototype.branch=function(e,t){return this._runTask(g(p(arguments)),f(arguments))},X.prototype.branchLocal=function(e){return this._runTask(b(),f(arguments))},X.prototype.raw=function(e){let t=!Array.isArray(e),r=[].slice.call(t?arguments:e,0);for(let e=0;e<r.length&&t;e++)if(!u(r[e])){r.splice(e,r.length-e);break}r.push(...p(arguments,0,!0));var n=f(arguments);return r.length?this._runTask(V(r,this._trimmed),n):this._runTask(i("Raw: must supply one or more command to execute"),n)},X.prototype.submoduleAdd=function(e,t,r){return this._runTask(D(e,t),f(arguments))},X.prototype.submoduleUpdate=function(e,t){return this._runTask(q(p(arguments,!0)),f(arguments))},X.prototype.submoduleInit=function(e,t){return this._runTask(B(p(arguments,!0)),f(arguments))},X.prototype.subModule=function(e,t){return this._runTask(U(p(arguments)),f(arguments))},X.prototype.listRemote=function(){return this._runTask(M(p(arguments)),f(arguments))},X.prototype.addRemote=function(e,t,r){return this._runTask(F(e,t,p(arguments)),f(arguments))},X.prototype.removeRemote=function(e,t){return this._runTask(L(e),f(arguments))},X.prototype.getRemotes=function(e,t){return this._runTask(j(!0===e),f(arguments))},X.prototype.remote=function(e,t){return this._runTask(P(p(arguments)),f(arguments))},X.prototype.tag=function(e,t){let r=p(arguments);return"tag"!==r[0]&&r.unshift("tag"),this._runTask(V(r),f(arguments))},X.prototype.updateServerInfo=function(e){return this._runTask(V(["update-server-info"]),f(arguments))},X.prototype.pushTags=function(e,t){let r=A({remote:d(e,c)},p(arguments));return this._runTask(r,f(arguments))},X.prototype.rm=function(e){return this._runTask(V(["rm","-f",...o(e)]),f(arguments))},X.prototype.rmKeepLocal=function(e){return this._runTask(V(["rm","--cached",...o(e)]),f(arguments))},X.prototype.catFile=function(e,t){return this._catFile("utf-8",arguments)},X.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},X.prototype._catFile=function(e,t){var r=f(t),n=["cat-file"],s=t[0];if("string"==typeof s)return this._runTask(i("Git.catFile: options must be supplied as an array of strings"),r);Array.isArray(s)&&n.push.apply(n,s);let o="buffer"===e?W(n):V(n);return this._runTask(o,r)},X.prototype.diff=function(e,t){let r=c(e)?i("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):V(["diff",...p(arguments)]);return this._runTask(r,f(arguments))},X.prototype.diffSummary=function(){return this._runTask(O(p(arguments,1)),f(arguments))},X.prototype.applyPatch=function(e){let t=l(e)?m(o(e),p([].slice.call(arguments,1))):i("git.applyPatch requires one or more string patches as the first argument");return this._runTask(t,f(arguments))},X.prototype.revparse=function(){let e=["rev-parse",...p(arguments,!0)];return this._runTask(V(e,!0),f(arguments))},X.prototype.clean=function(e,t,r){let n=_(e),s=n&&e.join("")||d(e,c)||"",i=p([].slice.call(arguments,n?1:0));return this._runTask(C(s,i),f(arguments))},X.prototype.exec=function(e){return this._runTask({commands:[],format:"utf-8",parser(){"function"==typeof e&&e()}})},X.prototype.clearQueue=function(){return this},X.prototype.checkIgnore=function(e,t){return this._runTask(v(o(d(e,l,[]))),f(arguments))},X.prototype.checkIsRepo=function(e,t){return this._runTask(k(d(e,c)),f(arguments))},t.exports=X}});tl(),td();var sF=class extends s{constructor(e,t){super(void 0,t),this.config=e}};td(),td();var sj=class extends s{constructor(e,t,r){super(e,r),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};tp(),tf(),t8(),rd(),rm(),rg(),rb(),rx(),t1(),t1();var sM=(0,e0.yX)().promise;t1();var sP="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function sL(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function sI(e,t){if(e.length<1||e.length>2)throw new sj(void 0,"binary","Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings");if(e.some(sL)){if(t)console.warn(sP);else throw new sj(void 0,"binary",sP)}let[r,n]=e;return{binary:r,prefix:n}}function sN(e){return{type:"task.error",action(t,r){let n=e(t.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(n)?{error:new s(void 0,n.toString("utf-8"))}:{error:n}}}}td(),t1();var s$=class{constructor(){this.plugins=new Set,this.events=new e1.EventEmitter}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let r=tT(this.plugins,{type:e,action:t});return()=>this.plugins.delete(r)}add(e){let t=[];return tO(e).forEach(e=>e&&this.plugins.add(tT(t,e))),()=>{t.forEach(e=>this.plugins.delete(e))}}exec(e,t,r){let n=t,s=Object.freeze(Object.create(r));for(let t of this.plugins)t.type===e&&(n=t.action(n,s));return n}};t1(),t1(),tl(),t1();var sD=sA();tp();var sB=function(e,t){var r;let n=new s$,s=tG(e&&("string"==typeof e?{baseDir:e}:e)||{},t);if(!tx(s.baseDir))throw new sF(s,"Cannot use simple-git on a directory that does not exist");return Array.isArray(s.config)&&n.add(function(e){let t=tA(e,"-c");return{type:"spawn.args",action:e=>[...t,...e]}}(s.config)),n.add(function({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action:(r,n)=>(r.forEach((s,i)=>{let o=i<r.length?r[i+1]:"";e||function(e,t){if("string"==typeof e&&"-c"===e.trim().toLowerCase()&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new sj(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}(s,o),t||function(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new sj(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if("clone"===t&&/^\s*-u\b/.test(e))throw new sj(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if("push"===t&&/^\s*--exec\b/.test(e))throw new sj(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}(s,n.method)}),r)}}(s.unsafe)),n.add({type:"spawn.args",action(e){let t;let r=[];function n(e){(t=t||[]).push(...e)}for(let t=0;t<e.length;t++){let s=e[t];if(tu(s)){n(tc(s));continue}if("--"===s){n(e.slice(t+1).flatMap(e=>tu(e)&&tc(e)||e));break}r.push(s)}return t?[...r,"--",...t.map(String)]:r}}),n.add(function({onClose:e=!0,onExit:t=50}={}){function r(e,t,r){!1!==e&&(!0===e?t.promise:t.promise.then(()=>tM(e))).then(r.done)}return{type:"spawn.after",action(n,s){return ta(this,arguments,function*(n,{spawned:s,close:i}){var o,a;let u=function(){let n=-1,s={close:(0,e0.yX)(),closeTimeout:(0,e0.yX)(),exit:(0,e0.yX)(),exitTimeout:(0,e0.yX)()},i=Promise.race([!1===e?sM:s.closeTimeout.promise,!1===t?sM:s.exitTimeout.promise]);return r(e,s.close,s.closeTimeout),r(t,s.exit,s.exitTimeout),{close(e){n=e,s.close.done()},exit(e){n=e,s.exit.done()},get exitCode(){return n},result:i}}(),c=!0,l=()=>void(c=!1);null==(o=s.stdout)||o.on("data",l),null==(a=s.stderr)||a.on("data",l),s.on("error",l),s.on("close",e=>u.close(e)),s.on("exit",e=>u.exit(e));try{yield u.result,c&&(yield tM(50)),i(u.exitCode)}catch(e){i(u.exitCode,e)}})}}}(s.completion)),s.abort&&n.add(function(e){if(e)return[{type:"spawn.before",action(t,r){e.aborted&&r.kill(new sj(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(t,r){function n(){r.kill(new sj(void 0,"abort","Abort signal received"))}e.addEventListener("abort",n),r.spawned.on("close",()=>e.removeEventListener("abort",n))}}]}(s.abort)),s.progress&&n.add(function(e){let t="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action:(e,n)=>r.includes(n.method)?tC(e,t):e},{type:"spawn.after",action(r,n){var s;n.commands.includes(t)&&(null==(s=n.spawned.stderr)||s.on("data",t=>{let r=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString("utf8"));r&&e({method:n.method,stage:String(r[1].toLowerCase().split(" ",1))||"unknown",progress:tR(r[2]),processed:tR(r[3]),total:tR(r[4])})}))}}]}(s.progress)),s.timeout&&n.add(function({block:e,stdErr:t=!0,stdOut:r=!0}){if(e>0)return{type:"spawn.after",action(n,s){var i,o;let a;function u(){a&&clearTimeout(a),a=setTimeout(l,e)}function c(){var e,t;null==(e=s.spawned.stdout)||e.off("data",u),null==(t=s.spawned.stderr)||t.off("data",u),s.spawned.off("exit",c),s.spawned.off("close",c),a&&clearTimeout(a)}function l(){c(),s.kill(new sj(void 0,"timeout","block timeout reached"))}r&&(null==(i=s.spawned.stdout)||i.on("data",u)),t&&(null==(o=s.spawned.stderr)||o.on("data",u)),s.spawned.on("exit",c),s.spawned.on("close",c),u()}}}(s.timeout)),s.spawnOptions&&n.add(function(e){let t=tj(e,["uid","gid"]);return{type:"spawn.options",action:e=>tt(tt({},t),e)}}(s.spawnOptions)),n.add(sN(function(e=!1,t=function(e){return!!(e.exitCode&&e.stdErr.length)},r=function(e){return Buffer.concat([...e.stdOut,...e.stdErr])}){return(n,s)=>(e||!n)&&t(s)?r(s):n}(!0))),s.errors&&n.add(sN(s.errors)),function(e,t=["git"],r=!1){let n=sI(tO(t),r);e.on("binary",e=>{n=sI(tO(e),r)}),e.append("spawn.binary",()=>n.binary),e.append("spawn.args",e=>n.prefix?[n.prefix,...e]:e)}(n,s.binary,null==(r=s.unsafe)?void 0:r.allowUnsafeCustomBinary),new sD(s,n)}}};
|
|
1
|
+
exports.id=557,exports.ids=[557],exports.modules={30882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(61515))},61515:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let s=r(29021),i=n(r(23481)).default("@kwsites/file-exists");t.exists=function(e,r=t.READABLE){return function(e,t,r){i("checking %s",e);try{let n=s.statSync(e);if(n.isFile()&&t)return i("[OK] path represents a file"),!0;if(n.isDirectory()&&r)return i("[OK] path represents a directory"),!0;return i("[FAIL] path represents something other than a file or directory"),!1}catch(e){if("ENOENT"===e.code)return i("[FAIL] path is not accessible: %o",e),!1;throw i("[FATAL] %o",e),e}}(e,(r&t.FILE)>0,(r&t.FOLDER)>0)},t.FILE=1,t.FOLDER=2,t.READABLE=t.FILE+t.FOLDER},48868:(e,t)=>{"use strict";function r(){let e,t;let r="pending";return{promise:new Promise((r,n)=>{e=r,t=n}),done(t){"pending"===r&&(r="resolved",e(t))},fail(e){"pending"===r&&(r="rejected",t(e))},get fulfilled(){return"pending"!==r},get status(){return r}}}t.ud=t.yX=void 0,t.yX=r,t.ud=r},15401:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.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`."))}})(),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=r(8824)(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8824:(e,t,r)=>{e.exports=function(e){function t(e){let r,s,i;let o=null;function a(...e){if(!a.enabled)return;let n=Number(new Date),s=n-(r||n);a.diff=s,a.prev=r,a.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let s=t.formatters[n];if("function"==typeof s){let t=e[i];r=s.call(a,t),e.splice(i,1),i--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(s!==t.namespaces&&(s=t.namespaces,i=t.enabled(e)),i),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function s(e,t){let r=0,n=0,s=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(s=n,i=r):r++,n++;else{if(-1===s)return!1;n=s+1,r=++i}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(s(e,r))return!1;for(let r of t.names)if(s(e,r))return!0;return!1},t.humanize=r(83337),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},23481:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||process.__nwjs?e.exports=r(15401):e.exports=r(54897)},54897:(e,t,r)=>{let n=r(83997),s=r(28354);t.init=function(e){e.inspectOpts={};let r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(s.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){let{namespace:n,useColors:s}=this;if(s){let t=this.color,s="\x1b[3"+(t<8?t:"8;5;"+t),i=` ${s};1m${n} \u001B[0m`;r[0]=i+r[0].split("\n").join("\n"+i),r.push(s+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(t.inspectOpts.hideDate?"":new Date().toISOString()+" ")+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)},t.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=r(23203);e&&(e.stderr||e).level>=2&&(t.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(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=r(8824)(t);let{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)}},58684:e=>{"use strict";e.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return -1!==n&&(-1===s||n<s)}},83337:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,s,i=typeof e;if("string"===i&&e.length>0)return function(e){if(!((e=String(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]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===i&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>=1e3?t(e,n,1e3,"second"):e+" ms":(s=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":s>=36e5?Math.round(e/36e5)+"h":s>=6e4?Math.round(e/6e4)+"m":s>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},39187:(e,t,r)=>{"use strict";var n=r(41520);r.o(n,"after")&&r.d(t,{after:function(){return n.after}})},64446:(e,t,r)=>{var n;(()=>{var s={226:function(s,i){!function(o,a){"use strict";var u="function",c="undefined",l="object",d="string",p="major",f="model",h="name",m="type",g="vendor",b="version",w="architecture",y="console",v="mobile",k="tablet",x="smarttv",T="wearable",C="embedded",_="Amazon",O="Apple",S="ASUS",E="BlackBerry",R="Browser",A="Chrome",F="Firefox",j="Google",M="Huawei",P="Microsoft",L="Motorola",I="Opera",N="Samsung",$="Sharp",D="Sony",B="Xiaomi",U="Zebra",q="Facebook",z="Chromium OS",G="Mac OS",H=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},W=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},V=function(e,t){return typeof e===d&&-1!==X(t).indexOf(X(e))},X=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===d)return e=e.replace(/^\s\s*/,""),typeof t===c?e:e.substring(0,350)},Y=function(e,t){for(var r,n,s,i,o,c,d=0;d<t.length&&!o;){var p=t[d],f=t[d+1];for(r=n=0;r<p.length&&!o&&p[r];)if(o=p[r++].exec(e))for(s=0;s<f.length;s++)c=o[++n],typeof(i=f[s])===l&&i.length>0?2===i.length?typeof i[1]==u?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:3===i.length?typeof i[1]!==u||i[1].exec&&i[1].test?this[i[0]]=c?c.replace(i[1],i[2]):void 0:this[i[0]]=c?i[1].call(this,c,i[2]):void 0:4===i.length&&(this[i[0]]=c?i[3].call(this,c.replace(i[1],i[2])):void 0):this[i]=c||a;d+=2}},Q=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(V(t[r][n],e))return"?"===r?a:r}else if(V(t[r],e))return"?"===r?a:r;return e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,b],[/opios[\/ ]+([\w\.]+)/i],[b,[h,I+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[h,I]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[h,"UC"+R]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[b,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[b,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+R],b],[/\bfocus\/([\w\.]+)/i],[b,[h,F+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[h,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[h,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[h,"MIUI "+R]],[/fxios\/([-\w\.]+)/i],[b,[h,F]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+R]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+R],b],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,b],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,q],b],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[h,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,A+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[h,"Android "+R]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[b,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[h,F+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,b],[/(cobalt)\/([\w\.]+)/i],[h,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,X]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,"",X]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,X]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[g,N],[m,k]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,N],[m,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[g,O],[m,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,O],[m,k]],[/(macintosh);/i],[f,[g,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,$],[m,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,M],[m,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[g,M],[m,v]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[g,B],[m,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,B],[m,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[g,"OPPO"],[m,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[m,v]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[g,"Realme"],[m,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[g,L],[m,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,L],[m,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,"LG"],[m,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,"LG"],[m,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[m,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[m,v]],[/(pixel c)\b/i],[f,[g,j],[m,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,j],[m,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[g,D],[m,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,D],[m,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[m,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,_],[m,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,_],[m,v]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[m,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,E],[m,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,S],[m,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,S],[m,v]],[/(nexus 9)/i],[f,[g,"HTC"],[m,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[m,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[m,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"Meizu"],[m,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,f,[m,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,f,[m,k]],[/(surface duo)/i],[f,[g,P],[m,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[m,v]],[/(u304aa)/i],[f,[g,"AT&T"],[m,v]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[m,v]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[m,k]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[m,k]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[m,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[m,k]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[m,k]],[/\b(k88) b/i],[f,[g,"ZTE"],[m,k]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[m,v]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[m,v]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[m,k]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[m,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[m,k]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[m,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[m,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[m,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[m,v]],[/\b(ph-1) /i],[f,[g,"Essential"],[m,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[m,k]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[m,k]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[m,k]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[m,k]],[/(sprint) (\w+)/i],[g,f,[m,v]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,P],[m,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,U],[m,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,U],[m,v]],[/smart-tv.+(samsung)/i],[g,[m,x]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,N],[m,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,"LG"],[m,x]],[/(apple) ?tv/i],[g,[f,O+" TV"],[m,x]],[/crkey/i],[[f,A+"cast"],[g,j],[m,x]],[/droid.+aft(\w)( bui|\))/i],[f,[g,_],[m,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[g,$],[m,x]],[/(bravia[\w ]+)( bui|\))/i],[f,[g,D],[m,x]],[/(mitv-\w{5}) bui/i],[f,[g,B],[m,x]],[/Hbbtv.*(technisat) (.*);/i],[g,f,[m,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,K],[f,K],[m,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[m,y]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[m,y]],[/(playstation [345portablevi]+)/i],[f,[g,D],[m,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,P],[m,y]],[/((pebble))app/i],[g,f,[m,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[g,O],[m,T]],[/droid.+; (glass) \d/i],[f,[g,j],[m,T]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,U],[m,T]],[/(quest( 2| pro)?)/i],[f,[g,q],[m,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[m,C]],[/(aeobc)\b/i],[f,[g,_],[m,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[m,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,v]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,b],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[b,Q,Z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[b,Q,Z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,G],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,b],[/\(bb(10);/i],[b,[h,E]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[h,F+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[h,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,z],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,b],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,b]]},ee=function(e,t){if(typeof e===l&&(t=e,e=a),!(this instanceof ee))return new ee(e,t).getResult();var r=typeof o!==c&&o.navigator?o.navigator:a,n=e||(r&&r.userAgent?r.userAgent:""),s=r&&r.userAgentData?r.userAgentData:a,i=t?H(J,t):J,y=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[h]=a,t[b]=a,Y.call(t,n,i.browser),t[p]=typeof(e=t[b])===d?e.replace(/[^\d\.]/g,"").split(".")[0]:a,y&&r&&r.brave&&typeof r.brave.isBrave==u&&(t[h]="Brave"),t},this.getCPU=function(){var e={};return e[w]=a,Y.call(e,n,i.cpu),e},this.getDevice=function(){var e={};return e[g]=a,e[f]=a,e[m]=a,Y.call(e,n,i.device),y&&!e[m]&&s&&s.mobile&&(e[m]=v),y&&"Macintosh"==e[f]&&r&&typeof r.standalone!==c&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[f]="iPad",e[m]=k),e},this.getEngine=function(){var e={};return e[h]=a,e[b]=a,Y.call(e,n,i.engine),e},this.getOS=function(){var e={};return e[h]=a,e[b]=a,Y.call(e,n,i.os),y&&!e[h]&&s&&"Unknown"!=s.platform&&(e[h]=s.platform.replace(/chrome os/i,z).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===d&&e.length>350?K(e,350):e,this},this.setUA(n),this};ee.VERSION="1.0.35",ee.BROWSER=W([h,b,p]),ee.CPU=W([w]),ee.DEVICE=W([f,g,m,y,v,x,k,T,C]),ee.ENGINE=ee.OS=W([h,b]),typeof i!==c?(s.exports&&(i=s.exports=ee),i.UAParser=ee):r.amdO?void 0!==(n=(function(){return ee}).call(t,r,t,e))&&(e.exports=n):typeof o!==c&&(o.UAParser=ee);var et=typeof o!==c&&(o.jQuery||o.Zepto);if(et&&!et.ua){var er=new ee;et.ua=er.getResult(),et.ua.get=function(){return er.getUA()},et.ua.set=function(e){er.setUA(e);var t=er.getResult();for(var r in t)et.ua[r]=t[r]}}}("object"==typeof window?window:this)}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},n=!0;try{s[e].call(r.exports,r,r.exports,o),n=!1}finally{n&&delete i[e]}return r.exports}o.ab=__dirname+"/";var a=o(226);e.exports=a})()},46050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"after",{enumerable:!0,get:function(){return s}});let n=r(29294);function s(e){let t=n.workAsyncStorage.getStore();if(!t)throw Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context");let{afterContext:r}=t;return r.after(e)}},95036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})})}(r(46050),t)},26807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"connection",{enumerable:!0,get:function(){return c}});let n=r(29294),s=r(63033),i=r(10436),o=r(82312),a=r(60457),u=r(24982);function c(){let e=n.workAsyncStorage.getStore(),t=s.workUnitAsyncStorage.getStore();if(e){if(t&&"after"===t.phase&&!(0,u.isRequestAPICallableInsideAfter)())throw Error(`Route ${e.route} used "connection" inside "after(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but "after(...)" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`);if(e.forceStatic)return Promise.resolve(void 0);if(t){if("cache"===t.type)throw Error(`Route ${e.route} used "connection" inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`);if("unstable-cache"===t.type)throw Error(`Route ${e.route} used "connection" inside a function cached with "unstable_cache(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`)}if(e.dynamicShouldError)throw new o.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(t){if("prerender"===t.type)return(0,a.makeHangingPromise)(t.renderSignal,"`connection()`");"prerender-ppr"===t.type?(0,i.postponeWithTracking)(e.route,"connection",t.dynamicTracking):"prerender-legacy"===t.type&&(0,i.throwToInterruptStaticGeneration)("connection",e,t)}(0,i.trackDynamicDataInDynamicRender)(e,t)}return Promise.resolve(void 0)}},41520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ImageResponse:function(){return n.ImageResponse},NextRequest:function(){return s.NextRequest},NextResponse:function(){return i.NextResponse},URLPattern:function(){return a.URLPattern},after:function(){return u.after},connection:function(){return c.connection},userAgent:function(){return o.userAgent},userAgentFromString:function(){return o.userAgentFromString}});let n=r(14159),s=r(41639),i=r(44899),o=r(22215),a=r(31512),u=r(95036),c=r(26807)},14159:(e,t)=>{"use strict";function r(){throw Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead')}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageResponse",{enumerable:!0,get:function(){return r}})},44899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextResponse",{enumerable:!0,get:function(){return d}});let n=r(9181),s=r(49619),i=r(55225),o=r(20614),a=r(9181),u=Symbol("internal response"),c=new Set([301,302,303,307,308]);function l(e,t){var r;if(null==e?void 0:null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Error("request.headers must be an instance of Headers");let r=[];for(let[n,s]of e.request.headers)t.set("x-middleware-request-"+n,s),r.push(n);t.set("x-middleware-override-headers",r.join(","))}}class d extends Response{constructor(e,t={}){super(e,t);let r=this.headers,c=new Proxy(new a.ResponseCookies(r),{get(e,s,i){switch(s){case"delete":case"set":return(...i)=>{let o=Reflect.apply(e[s],e,i),u=new Headers(r);return o instanceof a.ResponseCookies&&r.set("x-middleware-set-cookie",o.getAll().map(e=>(0,n.stringifyCookie)(e)).join(",")),l(t,u),o};default:return o.ReflectAdapter.get(e,s,i)}}});this[u]={cookies:c,url:t.url?new s.NextURL(t.url,{headers:(0,i.toNodeOutgoingHttpHeaders)(r),nextConfig:t.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[u].cookies}static json(e,t){let r=Response.json(e,t);return new d(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!c.has(r))throw RangeError('Failed to execute "redirect" on "response": Invalid status code');let n="object"==typeof t?t:{},s=new Headers(null==n?void 0:n.headers);return s.set("Location",(0,i.validateURL)(e)),new d(null,{...n,headers:s,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,i.validateURL)(e)),l(t,r),new d(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),l(e,t),new d(null,{...e,headers:t})}}},31512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"URLPattern",{enumerable:!0,get:function(){return r}});let r="undefined"==typeof URLPattern?void 0:URLPattern},22215:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isBot:function(){return s},userAgent:function(){return o},userAgentFromString:function(){return i}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(64446));function s(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}function i(e){return{...(0,n.default)(e),isBot:void 0!==e&&s(e)}}function o({headers:e}){return i(e.get("user-agent")||void 0)}},23203:(e,t,r)=>{"use strict";let n;let s=r(21820),i=r(83997),o=r(58684),{env:a}=process;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(0===n)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===n)return 0;let r=n||0;if("dumb"===a.TERM)return r;if("win32"===process.platform){let e=s.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in a)||"codeship"===a.CI_NAME?1:r;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){let e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:r}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?n=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(n=1),"FORCE_COLOR"in a&&(n="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(c(e,e&&e.isTTY))},stdout:u(c(!0,i.isatty(1))),stderr:u(c(!0,i.isatty(2)))}},99159:(e,t,r)=>{"use strict";r.d(t,{LW:()=>p,kW:()=>d});let n=/([\p{Ll}\d])(\p{Lu})/gu,s=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,i=/(\d)\p{Ll}|(\p{L})\d/u,o=/[^\p{L}\d]+/giu,a="$1\0$2";function u(e){let t=e.trim();t=(t=t.replace(n,a).replace(s,a)).replace(o,"\0");let r=0,i=t.length;for(;"\0"===t.charAt(r);)r++;if(r===i)return[];for(;"\0"===t.charAt(i-1);)i--;return t.slice(r,i).split(/\0/g)}function c(e){let t=u(e);for(let e=0;e<t.length;e++){let r=t[e],n=i.exec(r);if(n){let s=n.index+(n[1]??n[2]).length;t.splice(e,1,r.slice(0,s),r.slice(s))}}return t}function l(e,t){let[r,n,s]=function(e,t={}){let r=t.split??(t.separateNumbers?c:u),n=t.prefixCharacters??"",s=t.suffixCharacters??"",i=0,o=e.length;for(;i<e.length;){let t=e.charAt(i);if(!n.includes(t))break;i++}for(;o>i;){let t=o-1,r=e.charAt(t);if(!s.includes(r))break;o=t}return[e.slice(0,i),r(e.slice(i,o)),e.slice(o)]}(e,t);return r+n.map(function(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}(t?.locale)).join(t?.delimiter??" ")+s}function d(e,t){return l(e,{delimiter:"-",...t})}function p(e,t){return l(e,{delimiter:"_",...t})}},61777:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>sB,XS:()=>s});var n,s,i,o,a,u,c,l,d,p,f,h,m,g,b,w,y,v,k,x,T,C,_,O,S,E,R,A,F,j,M,P,L,I,N,$,D,B,U,q,z,G,H,W,V,X,K,Y,Q,Z,J,ee,et,er,en,es,ei,eo,ea,eu,ec,el,ed,ep,ef,eh,em,eg,eb,ew,ey,ev,ek,ex,eT,eC,e_,eO,eS,eE,eR,eA,eF,ej,eM,eP,eL,eI,eN,e$,eD,eB,eU,eq,ez,eG,eH,eW,eV,eX,eK,eY,eQ=r(30882),eZ=r(23481),eJ=r(79646),e0=r(48868),e1=r(78474),e3=Object.defineProperty,e2=Object.defineProperties,e6=Object.getOwnPropertyDescriptor,e9=Object.getOwnPropertyDescriptors,e8=Object.getOwnPropertyNames,e4=Object.getOwnPropertySymbols,e5=Object.prototype.hasOwnProperty,e7=Object.prototype.propertyIsEnumerable,te=(e,t,r)=>t in e?e3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tt=(e,t)=>{for(var r in t||(t={}))e5.call(t,r)&&te(e,r,t[r]);if(e4)for(var r of e4(t))e7.call(t,r)&&te(e,r,t[r]);return e},tr=(e,t)=>e2(e,e9(t)),tn=(e,t)=>function(){return e&&(t=(0,e[e8(e)[0]])(e=0)),t},ts=(e,t)=>{for(var r in t)e3(e,r,{get:t[r],enumerable:!0})},ti=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of e8(t))e5.call(e,s)||s===r||e3(e,s,{get:()=>t[s],enumerable:!(n=e6(t,s))||n.enumerable});return e},to=e=>ti(e3({},"__esModule",{value:!0}),e),ta=(e,t,r)=>new Promise((n,s)=>{var i=e=>{try{a(r.next(e))}catch(e){s(e)}},o=e=>{try{a(r.throw(e))}catch(e){s(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,o);a((r=r.apply(e,t)).next())});function tu(e){return e instanceof String&&n.has(e)}function tc(e){return n.get(e)||[]}var tl=tn({"src/lib/args/pathspec.ts"(){n=new WeakMap}}),td=tn({"src/lib/errors/git-error.ts"(){s=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),tp=tn({"src/lib/errors/git-response-error.ts"(){td(),i=class extends s{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),tf=tn({"src/lib/errors/task-configuration-error.ts"(){td(),o=class extends s{constructor(e){super(void 0,e)}}}});function th(e){return"function"==typeof e?e:u}function tm(e){return"function"==typeof e&&e!==u}function tg(e,t){let r=e.indexOf(t);return r<=0?[e,""]:[e.substr(0,r),e.substr(r+1)]}function tb(e,t=0){return ty(e)&&e.length>t?e[t]:void 0}function tw(e,t=0){if(ty(e)&&e.length>t)return e[e.length-1-t]}function ty(e){return!!(e&&"number"==typeof e.length)}function tv(e="",t=!0,r="\n"){return e.split(r).reduce((e,r)=>{let n=t?r.trim():r;return n&&e.push(n),e},[])}function tk(e,t){return tv(e,!0).map(e=>t(e))}function tx(e){return(0,eQ.exists)(e,eQ.FOLDER)}function tT(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function tC(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function t_(e,t){if(Array.isArray(e)){let r=e.indexOf(t);r>=0&&e.splice(r,1)}else e.delete(t);return t}function tO(e){return Array.isArray(e)?e:[e]}function tS(e){return e.replace(/[\s-]+(.)/g,(e,t)=>t.toUpperCase())}function tE(e){return tO(e).map(String)}function tR(e,t=0){if(null==e)return t;let r=parseInt(e,10);return isNaN(r)?t:r}function tA(e,t){let r=[];for(let n=0,s=e.length;n<s;n++)r.push(t,e[n]);return r}function tF(e){return(Array.isArray(e)?Buffer.concat(e):e).toString("utf-8")}function tj(e,t){return Object.assign({},...t.map(t=>t in e?{[t]:e[t]}:{}))}function tM(e=0){return new Promise(t=>setTimeout(t,e))}function tP(e){if(!1!==e)return e}var tL=tn({"src/lib/utils/util.ts"(){a="\0",u=()=>{},c=Object.prototype.toString.call.bind(Object.prototype.toString)}});function tI(e,t,r){return t(e)?e:arguments.length>2?r:void 0}function tN(e,t){let r=tu(e)?"string":typeof e;return/number|string|boolean/.test(r)&&(!t||!t.includes(r))}function t$(e){return!!e&&"[object Object]"===c(e)}function tD(e){return"function"==typeof e}var tB=tn({"src/lib/utils/argument-filters.ts"(){tL(),tl(),l=e=>Array.isArray(e),d=e=>"string"==typeof e,p=e=>Array.isArray(e)&&e.every(d),f=e=>d(e)||Array.isArray(e)&&e.every(d),h=e=>!(null==e||"number|boolean|function".includes(typeof e))&&(Array.isArray(e)||"string"==typeof e||"number"==typeof e.length)}}),tU=tn({"src/lib/utils/exit-codes.ts"(){var e;(e=m||{})[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.NOT_FOUND=-2]="NOT_FOUND",e[e.UNCLEAN=128]="UNCLEAN",m=e}}),tq=tn({"src/lib/utils/git-output-streams.ts"(){g=class{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new g(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}}),tz=tn({"src/lib/utils/line-parser.ts"(){b=class{constructor(e,t){this.matches=[],this.parse=(e,t)=>(this.resetMatches(),!!this._regExp.every((t,r)=>this.addMatch(t,r,e(r)))&&!1!==this.useMatches(t,this.prepareMatches())),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}useMatches(e,t){throw Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){let n=r&&e.exec(r);return n&&this.pushMatch(t,n),!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}},w=class extends b{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function tG(...e){let t=process.cwd(),r=Object.assign(tt({baseDir:t},y),...e.filter(e=>"object"==typeof e&&e));return r.baseDir=r.baseDir||t,r.trimmed=!0===r.trimmed,r}var tH=tn({"src/lib/utils/simple-git-options.ts"(){y={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function tW(e,t=[]){return t$(e)?Object.keys(e).reduce((t,r)=>{let n=e[r];return tu(n)?t.push(n):tN(n,["boolean"])?t.push(r+"="+n):t.push(r),t},t):t}function tV(e,t=0,r=!1){let n=[];for(let r=0,s=t<0?e.length:t;r<s;r++)"string|number".includes(typeof e[r])&&n.push(String(e[r]));return tW(tX(e),n),r||n.push(...function(e){let t="function"==typeof tw(e);return tI(tw(e,t?1:0),l,[])}(e)),n}function tX(e){let t=tD(tw(e));return tI(tw(e,t?1:0),t$)}function tK(e,t=!0){let r=th(tw(e));return t||tm(r)?r:void 0}var tY=tn({"src/lib/utils/task-options.ts"(){tB(),tL(),tl()}});function tQ(e,t){return e(t.stdOut,t.stdErr)}function tZ(e,t,r,n=!0){return tO(r).forEach(r=>{for(let s=tv(r,n),i=0,o=s.length;i<o;i++){let r=(e=0)=>{if(!(i+e>=o))return s[i+e]};t.some(({parse:t})=>t(r,e))}}),e}var tJ=tn({"src/lib/utils/task-parser.ts"(){tL()}}),t0={};ts(t0,{ExitCodes:()=>m,GitOutputStreams:()=>g,LineParser:()=>b,NOOP:()=>u,NULL:()=>a,RemoteLineParser:()=>w,append:()=>tT,appendTaskOptions:()=>tW,asArray:()=>tO,asCamelCase:()=>tS,asFunction:()=>th,asNumber:()=>tR,asStringArray:()=>tE,bufferToString:()=>tF,callTaskParser:()=>tQ,createInstanceConfig:()=>tG,delay:()=>tM,filterArray:()=>l,filterFunction:()=>tD,filterHasLength:()=>h,filterPlainObject:()=>t$,filterPrimitives:()=>tN,filterString:()=>d,filterStringArray:()=>p,filterStringOrStringArray:()=>f,filterType:()=>tI,first:()=>tb,folderExists:()=>tx,forEachLineWithContent:()=>tk,getTrailingOptions:()=>tV,including:()=>tC,isUserFunction:()=>tm,last:()=>tw,objectToString:()=>c,orVoid:()=>tP,parseStringResponse:()=>tZ,pick:()=>tj,prefixedArray:()=>tA,remove:()=>t_,splitOn:()=>tg,toLinesWithContent:()=>tv,trailingFunctionArgument:()=>tK,trailingOptionsArgument:()=>tX});var t1=tn({"src/lib/utils/index.ts"(){tB(),tU(),tq(),tz(),tH(),tY(),tJ(),tL()}}),t3={};function t2(e){switch(e){case"bare":return t9();case"root":return t6()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:k,parser:x}}function t6(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:k,parser:e=>/^\.(git)?$/.test(e.trim())}}function t9(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:k,parser:x}}ts(t3,{CheckRepoActions:()=>v,checkIsBareRepoTask:()=>t9,checkIsRepoRootTask:()=>t6,checkIsRepoTask:()=>t2});var t8=tn({"src/lib/tasks/check-is-repo.ts"(){var e;t1(),(e=v||{}).BARE="bare",e.IN_TREE="tree",e.IS_REPO_ROOT="root",v=e,k=({exitCode:e},t,r,n)=>{if(128===e&&/(Not a git repository|Kein Git-Repository)/i.test(String(t)))return r(Buffer.from("false"));n(t)},x=e=>"true"===e.trim()}}),t4=tn({"src/lib/responses/CleanSummary.ts"(){t1(),T=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},C=/^[a-z]+\s*/i,_=/^[a-z]+\s+[a-z]+\s*/i,O=/\/$/}}),t5={};function t7(e){return{commands:S,format:"empty",parser:e}}function re(e){return{commands:S,format:"empty",parser(){throw"string"==typeof e?new o(e):e}}}function rt(e,t=!1){return{commands:e,format:"utf-8",parser:e=>t?String(e).trim():e}}function rr(e){return{commands:e,format:"buffer",parser:e=>e}}function rn(e){return"buffer"===e.format}function rs(e){return"empty"===e.format||!e.commands.length}ts(t5,{EMPTY_COMMANDS:()=>S,adhocExecTask:()=>t7,configurationErrorTask:()=>re,isBufferTask:()=>rn,isEmptyTask:()=>rs,straightThroughBufferTask:()=>rr,straightThroughStringTask:()=>rt});var ri=tn({"src/lib/tasks/task.ts"(){tf(),S=[]}}),ro={};function ra(e,t){let r,n,s;let{cleanMode:i,options:o,valid:a}=(n=[],s={cleanMode:!1,options:!0},e.replace(/[^a-z]i/g,"").split("").forEach(e=>{var t;"f"===e||"n"===e?(r=e,s.cleanMode=!0):s.options=s.options&&(t=n[n.length]=`-${e}`,/^-[a-z]$/i.test(t)&&j.has(t.charAt(1)))}),{cleanMode:r,options:n,valid:s});return i?a.options?(o.push(...t),o.some(rl))?re(E):ru(i,o):re(A+JSON.stringify(e)):re(R)}function ru(e,t){return{commands:["clean",`-${e}`,...t],format:"utf-8",parser:t=>(function(e,t){let r=new T(e),n=e?_:C;return tv(t).forEach(e=>{let t=e.replace(n,"");r.paths.push(t),(O.test(t)?r.folders:r.files).push(t)}),r})("n"===e,t)}}function rc(e){return Array.isArray(e)&&e.every(e=>j.has(e))}function rl(e){return/^-[^\-]/.test(e)?e.indexOf("i")>0:"--interactive"===e}ts(ro,{CONFIG_ERROR_INTERACTIVE_MODE:()=>E,CONFIG_ERROR_MODE_REQUIRED:()=>R,CONFIG_ERROR_UNKNOWN_OPTION:()=>A,CleanOptions:()=>F,cleanTask:()=>ru,cleanWithOptionsTask:()=>ra,isCleanOptionsArray:()=>rc});var rd=tn({"src/lib/tasks/clean.ts"(){var e;t4(),t1(),ri(),E="Git clean interactive mode is not supported",R='Git clean mode parameter ("n" or "f") is required',A="Git clean unknown option found in: ",(e=F||{}).DRY_RUN="n",e.FORCE="f",e.IGNORED_INCLUDED="x",e.IGNORED_ONLY="X",e.EXCLUDING="e",e.QUIET="q",e.RECURSIVE="d",j=new Set(["i",...tE(Object.values(F=e))])}});function*rp(e,t=null){let r=e.split("\0");for(let e=0,n=r.length-1;e<n;){let n=r[e++].replace(/^(file):/,""),s=r[e++],i=t;if(s.includes("\n")){let e=tg(s,"\n");i=e[0],s=e[1]}yield{file:n,key:i,value:s}}}var rf=tn({"src/lib/responses/ConfigList.ts"(){t1(),M=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{})),this._all}addFile(e){if(!(e in this.values)){let t=tw(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,r){let n=this.addFile(e);n.hasOwnProperty(t)?Array.isArray(n[t])?n[t].push(r):n[t]=[n[t],r]:n[t]=r,this._all=void 0}}}});function rh(e,t){return"string"==typeof e&&P.hasOwnProperty(e)?e:t}var rm=tn({"src/lib/tasks/config.ts"(){var e;rf(),t1(),(e=P||{}).system="system",e.global="global",e.local="local",e.worktree="worktree",P=e}}),rg=tn({"src/lib/tasks/diff-name-status.ts"(){var e;(e=L||{}).ADDED="A",e.COPIED="C",e.DELETED="D",e.MODIFIED="M",e.RENAMED="R",e.CHANGED="T",e.UNMERGED="U",e.UNKNOWN="X",e.BROKEN="B",I=new Set(Object.values(L=e))}}),rb=tn({"src/lib/tasks/grep.ts"(){t1(),ri(),N=["-h"],$=Symbol("grepQuery"),B=class{constructor(){this[D]=[]}*[(D=$,Symbol.iterator)](){for(let e of this[$])yield e}and(...e){return e.length&&this[$].push("--and","(",...tA(e,"-e"),")"),this}param(...e){return this[$].push(...tA(e,"-e")),this}}}}),rw={};function ry(e,t){let r=["reset"];return rk(e)&&r.push(`--${e}`),r.push(...t),rt(r)}function rv(e){if(rk(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function rk(e){return q.includes(e)}ts(rw,{ResetMode:()=>U,getResetMode:()=>rv,resetTask:()=>ry});var rx=tn({"src/lib/tasks/reset.ts"(){var e;ri(),(e=U||{}).MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",q=Array.from(Object.values(U=e))}});function rT(e,t,r){return t&&String(t).replace(/\s*/,"")?(n,...s)=>{e(`%s ${n}`,t,...s),r&&r(n,...s)}:r?(t,...n)=>{e(t,...n),r(t,...n)}:e}function rC(e,t,r,n=eZ("simple-git")){let s=e&&`[${e}]`||"",i=[],o="string"==typeof t?n.extend(t):t,a=function(e,t,{namespace:r}){if("string"==typeof e)return e;let n=t&&t.namespace||"";return n.startsWith(r)?n.substr(r.length+1):n||r}(tI(t,d),o,n);return function t(r){let i=r&&`[${r}]`||"",a=o&&rT(o,i)||u,l=rT(n,`${s} ${i}`,a);return Object.assign(o?a:l,{label:e,sibling:c,info:l,step:t})}(r);function c(t,r){return tT(i,rC(e,a.replace(/^[^:]+/,t),r,n))}}var r_=tn({"src/lib/git-logger.ts"(){t1(),eZ.formatters.L=e=>String(h(e)?e.length:"-"),eZ.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):c(e)}}),rO=tn({"src/lib/runners/tasks-pending-queue.ts"(){td(),r_(),(G=z=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){let t=z.getName(e.commands[0]);return{task:e,logger:rC(this.logLabel,t),name:t}}push(e){let t=this.createProgress(e);return t.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,t),t}fatal(e){for(let[t,{logger:r}]of Array.from(this._queue.entries()))t===e.task?(r.info("Failed %o",e),r("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):r.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(t);if(0!==this._queue.size)throw Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let t=this.withProgress(e);if(!t)throw new s(void 0,"TasksPendingQueue: attempt called for an unknown task");return t.logger("Starting task"),t}static getName(e="empty"){return`task:${e}:${++z.counter}`}}).counter=0}});function rS(e,t){return{method:tb(e.commands)||"",commands:t}}function rE(e,t,r,n){return s=>{r("%s received %L bytes",t,s),n("%B",s),e.push(s)}}var rR=tn({"src/lib/runners/git-executor-chain.ts"(){td(),ri(),t1(),rO(),H=class{constructor(e,t,r){this._executor=e,this._scheduler=t,this._plugins=r,this._chain=Promise.resolve(),this._queue=new G}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return ta(this,null,function*(){let t=yield this._scheduler.next();try{let{logger:t}=this._queue.attempt(e);return yield rs(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t)}catch(t){throw this.onFatalException(e,t)}finally{this._queue.complete(e),t()}})}onFatalException(e,t){let r=t instanceof s?Object.assign(t,{task:e}):new s(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(r),r}attemptRemoteTask(e,t){return ta(this,null,function*(){let r=this._plugins.exec("spawn.binary","",rS(e,e.commands)),n=this._plugins.exec("spawn.args",[...e.commands],rS(e,e.commands)),s=yield this.gitResponse(e,r,n,this.outputHandler,t.step("SPAWN")),i=yield this.handleTaskData(e,n,s,t.step("HANDLE"));return(t("passing response to task's parser as a %s",e.format),rn(e))?tQ(e.parser,i):tQ(e.parser,i.asStrings())})}attemptEmptyTask(e,t){return ta(this,null,function*(){return t("empty task bypassing child process to call to task's parser"),e.parser(this)})}handleTaskData(e,t,r,n){let{exitCode:s,rejection:i,stdOut:o,stdErr:a}=r;return new Promise((u,l)=>{n("Preparing to handle process response exitCode=%d stdOut=",s);let{error:d}=this._plugins.exec("task.error",{error:i},tt(tt({},rS(e,t)),r));return d&&e.onError?(n.info("exitCode=%s handling with custom error handler"),e.onError(r,d,e=>{n.info("custom error handler treated as success"),n("custom error returned a %s",c(e)),u(new g(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(a)))},l)):d?(n.info("handling as error: exitCode=%s stdErr=%s rejection=%o",s,a.length,i),l(d)):void(n.info("retrieving task output complete"),u(new g(Buffer.concat(o),Buffer.concat(a))))})}gitResponse(e,t,r,n,s){return ta(this,null,function*(){let i=s.sibling("output"),o=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},rS(e,e.commands));return new Promise(a=>{let u=[],c=[];s.info("%s %o",t,r),s("%O",o);let l=this._beforeSpawn(e,r);if(l)return a({stdOut:u,stdErr:c,exitCode:9901,rejection:l});this._plugins.exec("spawn.before",void 0,tr(tt({},rS(e,r)),{kill(e){l=e||l}}));let d=(0,eJ.spawn)(t,r,o);d.stdout.on("data",rE(u,"stdOut",s,i.step("stdOut"))),d.stderr.on("data",rE(c,"stdErr",s,i.step("stdErr"))),d.on("error",e=>{s("[ERROR] child process exception %o",e),c.push(Buffer.from(String(e.stack),"ascii"))}),n&&(s("Passing child process stdOut/stdErr to custom outputHandler"),n(t,d.stdout,d.stderr,[...r])),this._plugins.exec("spawn.after",void 0,tr(tt({},rS(e,r)),{spawned:d,close(e,t){a({stdOut:u,stdErr:c,exitCode:e,rejection:l||t})},kill(e){d.killed||(l=e,d.kill("SIGINT"))}}))})})}_beforeSpawn(e,t){let r;return this._plugins.exec("spawn.before",void 0,tr(tt({},rS(e,t)),{kill(e){r=e||r}})),r}}}}),rA={};ts(rA,{GitExecutor:()=>W});var rF=tn({"src/lib/runners/git-executor.ts"(){rR(),W=class{constructor(e,t,r){this.cwd=e,this._scheduler=t,this._plugins=r,this._chain=new H(this,this._scheduler,this._plugins)}chain(){return new H(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}}),rj=tn({"src/lib/task-callback.ts"(){tp(),t1()}});function rM(e,t){return t7(r=>{if(!tx(e))throw Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||r).cwd=e})}var rP=tn({"src/lib/tasks/change-working-directory.ts"(){t1(),ri()}});function rL(e){let t=["checkout",...e];return"-b"===t[1]&&t.includes("-B")&&(t[1]=t_(t,"-B")),rt(t)}var rI=tn({"src/lib/tasks/checkout.ts"(){t1(),ri()}}),rN=tn({"src/lib/tasks/count-objects.ts"(){t1(),V=new b(/([a-z-]+): (\d+)$/,(e,[t,r])=>{let n=tS(t);e.hasOwnProperty(n)&&(e[n]=tR(r))})}});function r$(e){return tZ({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},X,e)}var rD=tn({"src/lib/parsers/parse-commit.ts"(){t1(),X=[new b(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,r,n])=>{e.branch=t,e.commit=n,e.root=!!r}),new b(/\s*Author:\s(.+)/i,(e,[t])=>{let r=t.split("<"),n=r.pop();n&&n.includes("@")&&(e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()})}),new b(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(r,10)||0,e.summary.deletions=parseInt(n,10)||0}),new b(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;let s=parseInt(r,10)||0;"-"===n?e.summary.deletions=s:"+"===n&&(e.summary.insertions=s)})]}}),rB=tn({"src/lib/tasks/commit.ts"(){rD(),t1(),ri()}}),rU=tn({"src/lib/tasks/first-commit.ts"(){t1(),ri()}}),rq=tn({"src/lib/tasks/hash-object.ts"(){ri()}}),rz=tn({"src/lib/responses/InitSummary.ts"(){K=class{constructor(e,t,r,n){this.bare=e,this.path=t,this.existing=r,this.gitDir=n}},Y=/^Init.+ repository in (.+)$/,Q=/^Rein.+ in (.+)$/}}),rG=tn({"src/lib/tasks/init.ts"(){rz(),Z="--bare"}});function rH(e){for(let t=0;t<e.length;t++){let r=J.exec(e[t]);if(r)return`--${r[1]}`}return""}function rW(e){return J.test(e)}var rV=tn({"src/lib/args/log-format.ts"(){J=/^--(stat|numstat|name-only|name-status)(=|$)/}}),rX=tn({"src/lib/responses/DiffSummary.ts"(){ee=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function rK(e=""){let t=es[e];return e=>tZ(new ee,t,e,!1)}var rY=tn({"src/lib/parsers/parse-diff-summary.ts"(){rV(),rX(),rg(),t1(),et=[new b(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,r,n=""])=>{e.files.push({file:t.trim(),changes:tR(r),insertions:n.replace(/[^+]/g,"").length,deletions:n.replace(/[^-]/g,"").length,binary:!1})}),new b(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,r,n])=>{e.files.push({file:t.trim(),before:tR(r),after:tR(n),binary:!0})}),new b(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,r])=>{let n=/(\d+) i/.exec(r),s=/(\d+) d/.exec(r);e.changed=tR(t),e.insertions=tR(null==n?void 0:n[1]),e.deletions=tR(null==s?void 0:s[1])})],er=[new b(/(\d+)\t(\d+)\t(.+)$/,(e,[t,r,n])=>{let s=tR(t),i=tR(r);e.changed++,e.insertions+=s,e.deletions+=i,e.files.push({file:n,changes:s+i,insertions:s,deletions:i,binary:!1})}),new b(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],en=[new b(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],es={"":et,"--stat":et,"--numstat":er,"--name-status":[new b(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,r,n,s,i])=>{e.changed++,e.files.push({file:null!=i?i:n,changes:0,insertions:0,deletions:0,binary:!1,status:tP(I.has(t)&&t),from:tP(!!i&&n!==i&&n),similarity:tR(r)})})],"--name-only":en}}});function rQ(e=ea,t=eu,r=""){let n=rK(r);return function(r){let s=tv(r.trim(),!1,ei).map(function(r){var s;let i=r.split(eo),o=(s=i[0].split(e),t.reduce((e,t,r)=>(e[t]=s[r]||"",e),Object.create({diff:null})));return i.length>1&&i[1].trim()&&(o.diff=n(i[1])),o});return{all:s,latest:s.length&&s[0]||null,total:s.length}}}var rZ=tn({"src/lib/parsers/parse-list-log-summary.ts"(){t1(),rY(),rV(),ei="\xf2\xf2\xf2\xf2\xf2\xf2 ",eo=" \xf2\xf2",ea=" \xf2 ",eu=["hash","date","message","refs","author_name","author_email"]}}),rJ={};function r0(e){let t=rH(e),r=["diff"];return""===t&&(t="--stat",r.push("--stat=4096")),r.push(...e),r1(r)||{commands:r,format:"utf-8",parser:rK(t)}}function r1(e){let t=e.filter(rW);return t.length>1?re(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`):t.length&&e.includes("-z")?re(`Summary flag ${t} parsing is not compatible with null termination option '-z'`):void 0}ts(rJ,{diffSummaryTask:()=>r0,validateLogFormatConfig:()=>r1});var r3=tn({"src/lib/tasks/diff.ts"(){rV(),rY(),ri()}});function r2(e={},t=[]){let r=tI(e.splitter,d,ea),[s,i]=function(e,t){let r=[],n=[];return Object.keys(e).forEach(t=>{r.push(t),n.push(String(e[t]))}),[r,n.join(t)]}(!tN(e.format)&&e.format?e.format:{hash:"%H",date:!1===e.strictDate?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:!1!==e.mailMap?"%aN":"%an",author_email:!1!==e.mailMap?"%aE":"%ae"},r),o=[],a=[`--pretty=format:${ei}${i}${eo}`,...t],u=e.n||e["max-count"]||e.maxCount;if(u&&a.push(`--max-count=${u}`),e.from||e.to){let t=!1!==e.symmetric?"...":"..";o.push(`${e.from||""}${t}${e.to||""}`)}return d(e.file)&&a.push("--follow",function(...e){let t=new String(e);return n.set(t,e),t}(e.file)),tW(Object.keys(e).reduce((t,r)=>(r in ec||(t[r]=e[r]),t),{}),a),{fields:s,splitter:r,commands:[...a,...o]}}var r6=tn({"src/lib/tasks/log.ts"(){var e;rV(),tl(),rZ(),t1(),ri(),r3(),(e=ec||{})[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",ec=e}}),r9=tn({"src/lib/responses/MergeSummary.ts"(){el=class{constructor(e,t=null,r){this.reason=e,this.file=t,this.meta=r}toString(){return`${this.file}:${this.reason}`}},ed=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),r8=tn({"src/lib/responses/PullSummary.ts"(){ep=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},ef=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function r4(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function r5(e){let t=/^\s*(\d+)/.exec(e),r=/delta (\d+)/i.exec(e);return{count:tR(t&&t[1]||"0"),delta:tR(r&&r[1]||"0")}}var r7=tn({"src/lib/parsers/parse-remote-objects.ts"(){t1(),eh=[new w(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,r])=>{let n=t.toLowerCase();Object.assign(r4(e.remoteMessages),{[n]:tR(r)})}),new w(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,r])=>{let n=t.toLowerCase();Object.assign(r4(e.remoteMessages),{[n]:tR(r)})}),new w(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,r,n])=>{let s=r4(e.remoteMessages);s.total=r5(t),s.reused=r5(r),s.packReused=tR(n)})]}});function ne(e,t){return tZ({remoteMessages:new eg},em,t)}var nt=tn({"src/lib/parsers/parse-remote-messages.ts"(){t1(),r7(),em=[new w(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...eh,new w([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new w([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,r,n])=>{e.remoteMessages.vulnerabilities={count:tR(t),summary:r,url:n}})],eg=class{constructor(){this.all=[]}}}}),nr=tn({"src/lib/parsers/parse-pull.ts"(){r8(),t1(),nt(),eb=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,ew=/^(create|delete) mode \d+ (.+)/,ey=[new b(/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,(e,[t,r,n])=>{e.files.push(t),r&&(e.insertions[t]=r.length),n&&(e.deletions[t]=n.length)}),new b(eb,(e,[t,,r,,n])=>(void 0!==r||void 0!==n)&&(e.summary.changes=+t||0,e.summary.insertions=+r||0,e.summary.deletions=+n||0,!0)),new b(ew,(e,[t,r])=>{tT(e.files,r),tT("create"===t?e.created:e.deleted,r)})],ev=[new b(/^from\s(.+)$/i,(e,[t])=>void(e.remote=t)),new b(/^fatal:\s(.+)$/,(e,[t])=>void(e.message=t)),new b(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,r,n,s])=>{e.branch.local=n,e.hash.local=t,e.branch.remote=s,e.hash.remote=r})],ek=(e,t)=>tZ(new ep,ey,[e,t]),ex=(e,t)=>Object.assign(new ep,ek(e,t),ne(e,t))}}),nn=tn({"src/lib/parsers/parse-merge.ts"(){r9(),t1(),nr(),eT=[new b(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new b(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,r])=>{e.conflicts.push(new el(t,r))}),new b(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,r,n])=>{e.conflicts.push(new el(t,r,{deleteRef:n}))}),new b(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new el(t,null))}),new b(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],eC=(e,t)=>Object.assign(e_(e,t),ex(e,t)),e_=e=>tZ(new ed,eT,e)}});function ns(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(e,t){let r=eC(e,t);if(r.failed)throw new i(r);return r}}:re("Git.merge requires at least one option")}var ni=tn({"src/lib/tasks/merge.ts"(){tp(),nn(),ri()}}),no=tn({"src/lib/parsers/parse-push.ts"(){t1(),nt(),eO=[new b(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new b(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref=tr(tt({},e.ref||{}),{local:t})}),new b(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,r,n])=>{e.pushed.push(function(e,t,r){let n=r.includes("deleted"),s=r.includes("tag")||/^refs\/tags/.test(e),i=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!i,alreadyUpdated:i,local:e,remote:t}}(t,r,n))}),new b(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,r,n])=>{e.branch=tr(tt({},e.branch||{}),{local:t,remote:r,remoteName:n})}),new b(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}})],eS=(e,t)=>{let r=eE(e,t),n=ne(e,t);return tt(tt({},r),n)},eE=(e,t)=>tZ({pushed:[]},eO,[e,t])}}),na={};function nu(e={},t){return tT(t,"--tags"),nc(e,t)}function nc(e={},t){let r=["push",...t];return e.branch&&r.splice(1,0,e.branch),e.remote&&r.splice(1,0,e.remote),t_(r,"-v"),tT(r,"--verbose"),tT(r,"--porcelain"),{commands:r,format:"utf-8",parser:eS}}ts(na,{pushTagsTask:()=>nu,pushTask:()=>nc});var nl=tn({"src/lib/tasks/push.ts"(){no(),t1()}}),nd=tn({"src/lib/tasks/show.ts"(){t1(),ri()}}),np=tn({"src/lib/responses/FileStatusSummary.ts"(){eR=/^(.+)\0(.+)$/,eA=class{constructor(e,t,r){if(this.path=e,this.index=t,this.working_dir=r,"R"===t||"R"===r){let t=eR.exec(e)||[null,e,e];this.from=t[2]||"",this.path=t[1]||""}}}}});function nf(e){let[t,r]=e.split(a);return{from:r||t,to:t}}function nh(e,t,r){return[`${e}${t}`,r]}function nm(e,...t){return t.map(t=>nh(e,t,(e,t)=>tT(e.conflicted,t)))}var ng=tn({"src/lib/responses/StatusSummary.ts"(){t1(),np(),eF=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},ej=new Map([nh(" ","A",(e,t)=>tT(e.created,t)),nh(" ","D",(e,t)=>tT(e.deleted,t)),nh(" ","M",(e,t)=>tT(e.modified,t)),nh("A"," ",(e,t)=>tT(e.created,t)&&tT(e.staged,t)),nh("A","M",(e,t)=>tT(e.created,t)&&tT(e.staged,t)&&tT(e.modified,t)),nh("D"," ",(e,t)=>tT(e.deleted,t)&&tT(e.staged,t)),nh("M"," ",(e,t)=>tT(e.modified,t)&&tT(e.staged,t)),nh("M","M",(e,t)=>tT(e.modified,t)&&tT(e.staged,t)),nh("R"," ",(e,t)=>{tT(e.renamed,nf(t))}),nh("R","M",(e,t)=>{let r=nf(t);tT(e.renamed,r),tT(e.modified,r.to)}),nh("!","!",(e,t)=>{tT(e.ignored=e.ignored||[],t)}),nh("?","?",(e,t)=>tT(e.not_added,t)),...nm("A","A","U"),...nm("D","D","U"),...nm("U","A","D","U"),["##",(e,t)=>{let r;r=/ahead (\d+)/.exec(t),e.ahead=r&&+r[1]||0,r=/behind (\d+)/.exec(t),e.behind=r&&+r[1]||0,r=/^(.+?(?=(?:\.{3}|\s|$)))/.exec(t),e.current=r&&r[1],r=/\.{3}(\S*)/.exec(t),e.tracking=r&&r[1],r=/\son\s([\S]+)$/.exec(t),e.current=r&&r[1]||e.current,e.detached=/\(no branch\)/.test(t)}]]),eM=function(e){let t=e.split(a),r=new eF;for(let e=0,n=t.length;e<n;){let n=t[e++].trim();n&&("R"===n.charAt(0)&&(n+=a+(t[e++]||"")),function(e,t){let r=t.trim();switch(" "){case r.charAt(2):return n(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return n(" ",r.charAt(0),r.substr(2));default:return}function n(t,r,n){let s=`${t}${r}`,i=ej.get(s);i&&i(e,n),"##"!==s&&"!!"!==s&&e.files.push(new eA(n,t,r))}}(r,n))}return r}}}),nb=tn({"src/lib/tasks/status.ts"(){ng(),eP=["--null","-z"]}});function nw(e=0,t=0,r=0,n="",s=!0){return Object.defineProperty({major:e,minor:t,patch:r,agent:n,installed:s},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function ny(e){return e===eL?nw(0,0,0,"",!1):tZ(nw(0,0,0,e),eI,e)}var nv=tn({"src/lib/tasks/version.ts"(){t1(),eL="installed=false",eI=[new b(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,r,n,s=""])=>{Object.assign(e,nw(tR(t),tR(r),tR(n),s))}),new b(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,r,n,s=""])=>{Object.assign(e,nw(tR(t),tR(r),n,s))})]}}),nk={};ts(nk,{SimpleGitApi:()=>eN});var nx=tn({"src/lib/simple-git-api.ts"(){rj(),rP(),rI(),rN(),rB(),rm(),rU(),rb(),rq(),rG(),r6(),ni(),nl(),nd(),nb(),ri(),nv(),t1(),Object.assign((eN=class{constructor(e){this._executor=e}_runTask(e,t){let r=this._executor.chain(),n=r.push(e);return t&&function(e,t,r=u){t.then(e=>{r(null,e)},t=>{let n;(null==t?void 0:t.task)===e&&r(t instanceof i?(n=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),n=u},Object.create(t,Object.getOwnPropertyNames(t.git).reduce(function(e,r){return r in t||(e[r]={enumerable:!1,configurable:!1,get:()=>(n(r),t.git[r])}),e},{}))):t,void 0)})}(e,n,t),Object.create(this,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)},_executor:{value:r}})}add(e){return this._runTask(rt(["add",...tO(e)]),tK(arguments))}cwd(e){let t=tK(arguments);return"string"==typeof e?this._runTask(rM(e,this._executor),t):"string"==typeof(null==e?void 0:e.path)?this._runTask(rM(e.path,e.root&&this._executor||void 0),t):this._runTask(re("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(function(e,t){let r=["hash-object",e];return t&&r.push("-w"),rt(r,!0)}(e,!0===t),tK(arguments))}init(e){return this._runTask(function(e=!1,t,r){let n=["init",...r];return e&&!n.includes(Z)&&n.splice(1,0,Z),{commands:n,format:"utf-8",parser:e=>(function(e,t,r){let n;let s=String(r).trim();if(n=Y.exec(s))return new K(e,t,!1,n[1]);if(n=Q.exec(s))return new K(e,t,!0,n[1]);let i="",o=s.split(" ");for(;o.length;)if("in"===o.shift()){i=o.join(" ");break}return new K(e,t,/^re/i.test(s),i)})(n.includes("--bare"),t,e)}}(!0===e,this._executor.cwd,tV(arguments)),tK(arguments))}merge(){return this._runTask(ns(tV(arguments)),tK(arguments))}mergeFromTo(e,t){return d(e)&&d(t)?this._runTask(ns([e,t,...tV(arguments)]),tK(arguments,!1)):this._runTask(re("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=nc({remote:tI(arguments[0],d),branch:tI(arguments[1],d)},tV(arguments));return this._runTask(e,tK(arguments))}stash(){return this._runTask(rt(["stash",...tV(arguments)]),tK(arguments))}status(){var e;return this._runTask((e=tV(arguments),{format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...e.filter(e=>!eP.includes(e))],parser:e=>eM(e)}),tK(arguments))}}).prototype,{checkout(){return this._runTask(rL(tV(arguments,1)),tK(arguments))},checkoutBranch(e,t){return this._runTask(rL(["-b",e,t,...tV(arguments)]),tK(arguments))},checkoutLocalBranch(e){return this._runTask(rL(["-b",e,...tV(arguments)]),tK(arguments))}},{commit(e,...t){var r,n,s;let i=tK(arguments),o=!f(e)&&re("git.commit: requires the commit message to be supplied as a string/string[]")||(r=tO(e),n=tO(tI(t[0],f,[])),s=[...tI(t[1],l,[]),...tV(arguments,0,!0)],{commands:["-c","core.abbrev=40","commit",...tA(r,"-m"),...n,...s],format:"utf-8",parser:r$});return this._runTask(o,i)}},{addConfig(e,t,...r){return this._runTask(function(e,t,r,n){let s=["config",`--${n}`];return r&&s.push("--add"),s.push(e,t),{commands:s,format:"utf-8",parser:e=>e}}(e,t,!0===r[0],rh(r[1],"local")),tK(arguments))},getConfig(e,t){return this._runTask(function(e,t){let r=["config","--null","--show-origin","--get-all",e];return t&&r.splice(1,0,`--${t}`),{commands:r,format:"utf-8",parser:t=>(function(e,t){let r=null,n=[],s=new Map;for(let i of rp(e,t))i.key===t&&(n.push(r=i.value),s.has(i.file)||s.set(i.file,[]),s.get(i.file).push(r));return{key:t,paths:Array.from(s.keys()),scopes:s,value:r,values:n}})(t,e)}}(e,rh(t,void 0)),tK(arguments))},listConfig(...e){return this._runTask(function(e){let t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser:e=>(function(e){let t=new M;for(let r of rp(e))t.addValue(r.file,String(r.key),r.value);return t})(e)}}(rh(e[0],void 0)),tK(arguments))}},{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser:e=>tZ({count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0},[V],e)})}},{firstCommit(){return this._runTask(rt(["rev-list","--max-parents=0","HEAD"],!0),tK(arguments))}},{grep(e){let t=tK(arguments),r=tV(arguments);for(let e of N)if(r.includes(e))return this._runTask(re(`git.grep: use of "${e}" is not supported.`),t);"string"==typeof e&&(e=(function(...e){return new B().param(...e)})().param(e));let n=["grep","--null","-n","--full-name",...r,...e];return this._runTask({commands:n,format:"utf-8",parser:e=>(function(e){let t=new Set,r={};return tk(e,e=>{let[n,s,i]=e.split(a);t.add(n),(r[n]=r[n]||[]).push({line:tR(s),path:n,preview:i})}),{paths:t,results:r}})(e)},t)}},{log(...e){let t=tK(arguments),r=r2(tX(arguments),tI(arguments[0],l)),n=function(e,t){return d(e)&&d(t)&&re("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}(...e)||r1(r.commands)||function(e,t,r){let n=rQ(e,t,rH(r));return{commands:["log",...r],format:"utf-8",parser:n}}(r.splitter,r.fields,r.commands);return this._runTask(n,t)}},{showBuffer(){let e=["show",...tV(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(rr(e),tK(arguments))},show(){let e=["show",...tV(arguments,1)];return this._runTask(rt(e),tK(arguments))}},{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:ny,onError(e,t,r,n){if(-2===e.exitCode)return r(Buffer.from(eL));n(t)}})}})}}),nT={};ts(nT,{Scheduler:()=>eD});var nC=tn({"src/lib/runners/scheduler.ts"(){let e;t1(),r_(),e=0,e$=()=>{e++;let{promise:t,done:r}=(0,e0.ud)();return{promise:t,done:r,id:e}},eD=class{constructor(e=2){this.concurrency=e,this.logger=rC("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);return}let e=tT(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done(()=>{this.logger("Completing id=",e.id),t_(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=tT(this.pending,e$());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),n_={};function nO(e,t){return rt(["apply",...t,...e])}ts(n_,{applyPatchTask:()=>nO});var nS=tn({"src/lib/tasks/apply-patch.ts"(){ri()}}),nE=tn({"src/lib/responses/BranchDeleteSummary.ts"(){eB=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function nR(e,t){return 1===t&&eU.test(e)}var nA=tn({"src/lib/parsers/parse-branch-delete.ts"(){nE(),t1(),eU=/^error[^']+'([^']+)'/m,eq=[new b(/(\S+)\s+\(\S+\s([^)]+)\)/,(e,[t,r])=>{let n={branch:t,hash:r,success:!0};e.all.push(n),e.branches[t]=n}),new b(eU,(e,[t])=>{let r={branch:t,hash:null,success:!1};e.errors.push(r),e.all.push(r),e.branches[t]=r})],ez=(e,t)=>tZ(new eB,eq,[e,t])}}),nF=tn({"src/lib/responses/BranchSummary.ts"(){eG=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,r,n,s){"*"===e&&(this.detached=t,this.current=r),this.all.push(r),this.branches[r]={current:"*"===e,linkedWorkTree:"+"===e,name:r,commit:n,label:s}}}}});function nj(e){return e?e.charAt(0):""}function nM(e){return tZ(new eG,eH,e)}var nP=tn({"src/lib/parsers/parse-branch.ts"(){nF(),t1(),eH=[new b(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,s])=>{e.push(nj(t),!0,r,n,s)}),new b(RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$","s"),(e,[t,r,n,s])=>{e.push(nj(t),!1,r,n,s)})]}}),nL={};function nI(e){let t=["-d","-D","--delete"];return e.some(e=>t.includes(e))}function nN(e){let t=nI(e),r=["branch",...e];return 1===r.length&&r.push("-a"),r.includes("-v")||r.splice(1,0,"-v"),{format:"utf-8",commands:r,parser:(e,r)=>t?ez(e,r).all[0]:nM(e)}}function n$(){return{format:"utf-8",commands:["branch","-v"],parser:nM}}function nD(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser:(e,t)=>ez(e,t),onError({exitCode:e,stdOut:t},r,n,s){if(!nR(String(r),e))return s(r);n(t)}}}function nB(e,t=!1){let r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser:(t,r)=>ez(t,r).branches[e],onError({exitCode:e,stdErr:t,stdOut:n},s,o,a){if(!nR(String(s),e))return a(s);throw new i(r.parser(tF(n),tF(t)),String(s))}};return r}ts(nL,{branchLocalTask:()=>n$,branchTask:()=>nN,containsDeleteBranchCommand:()=>nI,deleteBranchTask:()=>nB,deleteBranchesTask:()=>nD});var nU=tn({"src/lib/tasks/branch.ts"(){tp(),nA(),nP(),t1()}}),nq=tn({"src/lib/responses/CheckIgnore.ts"(){eW=e=>e.split(/\n/g).map(e=>e.trim()).filter(e=>!!e)}}),nz={};function nG(e){return{commands:["check-ignore",...e],format:"utf-8",parser:eW}}ts(nz,{checkIgnoreTask:()=>nG});var nH=tn({"src/lib/tasks/check-ignore.ts"(){nq()}}),nW={};function nV(e){return/^--upload-pack(=|$)/.test(e)}function nX(e,t,r){let n=["clone",...r];return(d(e)&&n.push(e),d(t)&&n.push(t),n.find(nV))?re("git.fetch: potential exploit argument blocked."):rt(n)}function nK(e,t,r){return tT(r,"--mirror"),nX(e,t,r)}ts(nW,{cloneMirrorTask:()=>nK,cloneTask:()=>nX});var nY=tn({"src/lib/tasks/clone.ts"(){ri(),t1()}});function nQ(e,t){return tZ({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},eV,[e,t])}var nZ=tn({"src/lib/parsers/parse-fetch.ts"(){t1(),eV=[new b(/From (.+)$/,(e,[t])=>{e.remote=t}),new b(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.branches.push({name:t,tracking:r})}),new b(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.tags.push({name:t,tracking:r})}),new b(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new b(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,r,n,s])=>{e.updated.push({name:n,tracking:s,to:r,from:t})})]}}),nJ={};function n0(e){return/^--upload-pack(=|$)/.test(e)}function n1(e,t,r){let n=["fetch",...r];return(e&&t&&n.push(e,t),n.find(n0))?re("git.fetch: potential exploit argument blocked."):{commands:n,format:"utf-8",parser:nQ}}ts(nJ,{fetchTask:()=>n1});var n3=tn({"src/lib/tasks/fetch.ts"(){nZ(),ri()}});function n2(e){return tZ({moves:[]},eX,e)}var n6=tn({"src/lib/parsers/parse-move.ts"(){t1(),eX=[new b(/^Renaming (.+) to (.+)$/,(e,[t,r])=>{e.moves.push({from:t,to:r})})]}}),n9={};function n8(e,t){return{commands:["mv","-v",...tO(e),t],format:"utf-8",parser:n2}}ts(n9,{moveTask:()=>n8});var n4=tn({"src/lib/tasks/move.ts"(){n6(),t1()}}),n5={};function n7(e,t,r){let n=["pull",...r];return e&&t&&n.splice(1,0,e,t),{commands:n,format:"utf-8",parser:(e,t)=>ex(e,t),onError(e,t,r,n){let s=function(e,t){let r=tZ(new ef,ev,[e,t]);return r.message&&r}(tF(e.stdOut),tF(e.stdErr));if(s)return n(new i(s));n(t)}}}ts(n5,{pullTask:()=>n7});var se=tn({"src/lib/tasks/pull.ts"(){tp(),nr(),t1()}});function st(e){let t={};return sn(e,([e])=>t[e]={name:e}),Object.values(t)}function sr(e){let t={};return sn(e,([e,r,n])=>{t.hasOwnProperty(e)||(t[e]={name:e,refs:{fetch:"",push:""}}),n&&r&&(t[e].refs[n.replace(/[^a-z]/g,"")]=r)}),Object.values(t)}function sn(e,t){tk(e,e=>t(e.split(/\s+/)))}var ss=tn({"src/lib/responses/GetRemoteSummary.ts"(){t1()}}),si={};function so(e,t,r){return rt(["remote","add",...r,e,t])}function sa(e){let t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?sr:st}}function su(e){let t=[...e];return"ls-remote"!==t[0]&&t.unshift("ls-remote"),rt(t)}function sc(e){let t=[...e];return"remote"!==t[0]&&t.unshift("remote"),rt(t)}function sl(e){return rt(["remote","remove",e])}ts(si,{addRemoteTask:()=>so,getRemotesTask:()=>sa,listRemotesTask:()=>su,remoteTask:()=>sc,removeRemoteTask:()=>sl});var sd=tn({"src/lib/tasks/remote.ts"(){ss(),ri()}}),sp={};function sf(e={},t){let r=r2(e),n=["stash","list",...r.commands,...t],s=rQ(r.splitter,r.fields,rH(n));return r1(n)||{commands:n,format:"utf-8",parser:s}}ts(sp,{stashListTask:()=>sf});var sh=tn({"src/lib/tasks/stash-list.ts"(){rV(),rZ(),r3(),r6()}}),sm={};function sg(e,t){return sw(["add",e,t])}function sb(e){return sw(["init",...e])}function sw(e){let t=[...e];return"submodule"!==t[0]&&t.unshift("submodule"),rt(t)}function sy(e){return sw(["update",...e])}ts(sm,{addSubModuleTask:()=>sg,initSubModuleTask:()=>sb,subModuleTask:()=>sw,updateSubModuleTask:()=>sy});var sv=tn({"src/lib/tasks/sub-module.ts"(){ri()}});function sk(e,t){return e===t?0:e>t?1:-1}function sx(e){return e.trim()}function sT(e){return"string"==typeof e&&parseInt(e.replace(/^\D+/g,""),10)||0}var sC=tn({"src/lib/responses/TagList.ts"(){eK=class{constructor(e,t){this.all=e,this.latest=t}},eY=function(e,t=!1){let r=e.split("\n").map(sx).filter(Boolean);t||r.sort(function(e,t){let r=e.split("."),n=t.split(".");if(1===r.length||1===n.length)return function(e,t){let r=isNaN(e);return r!==isNaN(t)?r?1:-1:r?sk(e,t):0}(sT(r[0]),sT(n[0]));for(let e=0,t=Math.max(r.length,n.length);e<t;e++){let t=sk(sT(r[e]),sT(n[e]));if(t)return t}return 0});let n=t?r[0]:[...r].reverse().find(e=>e.indexOf(".")>=0);return new eK(r,n)}}}),s_={};function sO(e=[]){let t=e.some(e=>/^--sort=/.test(e));return{format:"utf-8",commands:["tag","-l",...e],parser:e=>eY(e,t)}}function sS(e){return{format:"utf-8",commands:["tag",e],parser:()=>({name:e})}}function sE(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser:()=>({name:e})}}ts(s_,{addAnnotatedTagTask:()=>sE,addTagTask:()=>sS,tagListTask:()=>sO});var sR=tn({"src/lib/tasks/tag.ts"(){sC()}}),sA=((e,t)=>function(){return t||(0,e[e8(e)[0]])((t={exports:{}}).exports,t),t.exports})({"src/git.js"(e,t){var{GitExecutor:r}=(rF(),to(rA)),{SimpleGitApi:n}=(nx(),to(nk)),{Scheduler:s}=(nC(),to(nT)),{configurationErrorTask:i}=(ri(),to(t5)),{asArray:o,filterArray:a,filterPrimitives:u,filterString:c,filterStringOrStringArray:l,filterType:d,getTrailingOptions:p,trailingFunctionArgument:f,trailingOptionsArgument:h}=(t1(),to(t0)),{applyPatchTask:m}=(nS(),to(n_)),{branchTask:g,branchLocalTask:b,deleteBranchesTask:w,deleteBranchTask:y}=(nU(),to(nL)),{checkIgnoreTask:v}=(nH(),to(nz)),{checkIsRepoTask:k}=(t8(),to(t3)),{cloneTask:x,cloneMirrorTask:T}=(nY(),to(nW)),{cleanWithOptionsTask:C,isCleanOptionsArray:_}=(rd(),to(ro)),{diffSummaryTask:O}=(r3(),to(rJ)),{fetchTask:S}=(n3(),to(nJ)),{moveTask:E}=(n4(),to(n9)),{pullTask:R}=(se(),to(n5)),{pushTagsTask:A}=(nl(),to(na)),{addRemoteTask:F,getRemotesTask:j,listRemotesTask:M,remoteTask:P,removeRemoteTask:L}=(sd(),to(si)),{getResetMode:I,resetTask:N}=(rx(),to(rw)),{stashListTask:$}=(sh(),to(sp)),{addSubModuleTask:D,initSubModuleTask:B,subModuleTask:U,updateSubModuleTask:q}=(sv(),to(sm)),{addAnnotatedTagTask:z,addTagTask:G,tagListTask:H}=(sR(),to(s_)),{straightThroughBufferTask:W,straightThroughStringTask:V}=(ri(),to(t5));function X(e,t){this._plugins=t,this._executor=new r(e.baseDir,new s(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}function K(e,t,r,n){return"string"!=typeof r?i(`git.${e}() requires a string 'repoPath'`):t(r,d(n,c),p(arguments))}(X.prototype=Object.create(n.prototype)).constructor=X,X.prototype.customBinary=function(e){return this._plugins.reconfigure("binary",e),this},X.prototype.env=function(e,t){return 1==arguments.length&&"object"==typeof e?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},X.prototype.stashList=function(e){return this._runTask($(h(arguments)||{},a(e)&&e||[]),f(arguments))},X.prototype.clone=function(){return this._runTask(K("clone",x,...arguments),f(arguments))},X.prototype.mirror=function(){return this._runTask(K("mirror",T,...arguments),f(arguments))},X.prototype.mv=function(e,t){return this._runTask(E(e,t),f(arguments))},X.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(r,n){t.checkout(n.latest,e)})})},X.prototype.pull=function(e,t,r,n){return this._runTask(R(d(e,c),d(t,c),p(arguments)),f(arguments))},X.prototype.fetch=function(e,t){return this._runTask(S(d(e,c),d(t,c),p(arguments)),f(arguments))},X.prototype.silent=function(e){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},X.prototype.tags=function(e,t){return this._runTask(H(p(arguments)),f(arguments))},X.prototype.rebase=function(){return this._runTask(V(["rebase",...p(arguments)]),f(arguments))},X.prototype.reset=function(e){return this._runTask(N(I(e),p(arguments)),f(arguments))},X.prototype.revert=function(e){let t=f(arguments);return"string"!=typeof e?this._runTask(i("Commit must be a string"),t):this._runTask(V(["revert",...p(arguments,0,!0),e]),t)},X.prototype.addTag=function(e){let t="string"==typeof e?G(e):i("Git.addTag requires a tag name");return this._runTask(t,f(arguments))},X.prototype.addAnnotatedTag=function(e,t){return this._runTask(z(e,t),f(arguments))},X.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(y(e,"boolean"==typeof t&&t),f(arguments))},X.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(w(e,"boolean"==typeof t&&t),f(arguments))},X.prototype.branch=function(e,t){return this._runTask(g(p(arguments)),f(arguments))},X.prototype.branchLocal=function(e){return this._runTask(b(),f(arguments))},X.prototype.raw=function(e){let t=!Array.isArray(e),r=[].slice.call(t?arguments:e,0);for(let e=0;e<r.length&&t;e++)if(!u(r[e])){r.splice(e,r.length-e);break}r.push(...p(arguments,0,!0));var n=f(arguments);return r.length?this._runTask(V(r,this._trimmed),n):this._runTask(i("Raw: must supply one or more command to execute"),n)},X.prototype.submoduleAdd=function(e,t,r){return this._runTask(D(e,t),f(arguments))},X.prototype.submoduleUpdate=function(e,t){return this._runTask(q(p(arguments,!0)),f(arguments))},X.prototype.submoduleInit=function(e,t){return this._runTask(B(p(arguments,!0)),f(arguments))},X.prototype.subModule=function(e,t){return this._runTask(U(p(arguments)),f(arguments))},X.prototype.listRemote=function(){return this._runTask(M(p(arguments)),f(arguments))},X.prototype.addRemote=function(e,t,r){return this._runTask(F(e,t,p(arguments)),f(arguments))},X.prototype.removeRemote=function(e,t){return this._runTask(L(e),f(arguments))},X.prototype.getRemotes=function(e,t){return this._runTask(j(!0===e),f(arguments))},X.prototype.remote=function(e,t){return this._runTask(P(p(arguments)),f(arguments))},X.prototype.tag=function(e,t){let r=p(arguments);return"tag"!==r[0]&&r.unshift("tag"),this._runTask(V(r),f(arguments))},X.prototype.updateServerInfo=function(e){return this._runTask(V(["update-server-info"]),f(arguments))},X.prototype.pushTags=function(e,t){let r=A({remote:d(e,c)},p(arguments));return this._runTask(r,f(arguments))},X.prototype.rm=function(e){return this._runTask(V(["rm","-f",...o(e)]),f(arguments))},X.prototype.rmKeepLocal=function(e){return this._runTask(V(["rm","--cached",...o(e)]),f(arguments))},X.prototype.catFile=function(e,t){return this._catFile("utf-8",arguments)},X.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},X.prototype._catFile=function(e,t){var r=f(t),n=["cat-file"],s=t[0];if("string"==typeof s)return this._runTask(i("Git.catFile: options must be supplied as an array of strings"),r);Array.isArray(s)&&n.push.apply(n,s);let o="buffer"===e?W(n):V(n);return this._runTask(o,r)},X.prototype.diff=function(e,t){let r=c(e)?i("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):V(["diff",...p(arguments)]);return this._runTask(r,f(arguments))},X.prototype.diffSummary=function(){return this._runTask(O(p(arguments,1)),f(arguments))},X.prototype.applyPatch=function(e){let t=l(e)?m(o(e),p([].slice.call(arguments,1))):i("git.applyPatch requires one or more string patches as the first argument");return this._runTask(t,f(arguments))},X.prototype.revparse=function(){let e=["rev-parse",...p(arguments,!0)];return this._runTask(V(e,!0),f(arguments))},X.prototype.clean=function(e,t,r){let n=_(e),s=n&&e.join("")||d(e,c)||"",i=p([].slice.call(arguments,n?1:0));return this._runTask(C(s,i),f(arguments))},X.prototype.exec=function(e){return this._runTask({commands:[],format:"utf-8",parser(){"function"==typeof e&&e()}})},X.prototype.clearQueue=function(){return this},X.prototype.checkIgnore=function(e,t){return this._runTask(v(o(d(e,l,[]))),f(arguments))},X.prototype.checkIsRepo=function(e,t){return this._runTask(k(d(e,c)),f(arguments))},t.exports=X}});tl(),td();var sF=class extends s{constructor(e,t){super(void 0,t),this.config=e}};td(),td();var sj=class extends s{constructor(e,t,r){super(e,r),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};tp(),tf(),t8(),rd(),rm(),rg(),rb(),rx(),t1(),t1();var sM=(0,e0.yX)().promise;t1();var sP="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function sL(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function sI(e,t){if(e.length<1||e.length>2)throw new sj(void 0,"binary","Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings");if(e.some(sL)){if(t)console.warn(sP);else throw new sj(void 0,"binary",sP)}let[r,n]=e;return{binary:r,prefix:n}}function sN(e){return{type:"task.error",action(t,r){let n=e(t.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(n)?{error:new s(void 0,n.toString("utf-8"))}:{error:n}}}}td(),t1();var s$=class{constructor(){this.plugins=new Set,this.events=new e1.EventEmitter}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let r=tT(this.plugins,{type:e,action:t});return()=>this.plugins.delete(r)}add(e){let t=[];return tO(e).forEach(e=>e&&this.plugins.add(tT(t,e))),()=>{t.forEach(e=>this.plugins.delete(e))}}exec(e,t,r){let n=t,s=Object.freeze(Object.create(r));for(let t of this.plugins)t.type===e&&(n=t.action(n,s));return n}};t1(),t1(),tl(),t1();var sD=sA();tp();var sB=function(e,t){var r;let n=new s$,s=tG(e&&("string"==typeof e?{baseDir:e}:e)||{},t);if(!tx(s.baseDir))throw new sF(s,"Cannot use simple-git on a directory that does not exist");return Array.isArray(s.config)&&n.add(function(e){let t=tA(e,"-c");return{type:"spawn.args",action:e=>[...t,...e]}}(s.config)),n.add(function({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action:(r,n)=>(r.forEach((s,i)=>{let o=i<r.length?r[i+1]:"";e||function(e,t){if("string"==typeof e&&"-c"===e.trim().toLowerCase()&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new sj(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}(s,o),t||function(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new sj(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if("clone"===t&&/^\s*-u\b/.test(e))throw new sj(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if("push"===t&&/^\s*--exec\b/.test(e))throw new sj(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}(s,n.method)}),r)}}(s.unsafe)),n.add({type:"spawn.args",action(e){let t;let r=[];function n(e){(t=t||[]).push(...e)}for(let t=0;t<e.length;t++){let s=e[t];if(tu(s)){n(tc(s));continue}if("--"===s){n(e.slice(t+1).flatMap(e=>tu(e)&&tc(e)||e));break}r.push(s)}return t?[...r,"--",...t.map(String)]:r}}),n.add(function({onClose:e=!0,onExit:t=50}={}){function r(e,t,r){!1!==e&&(!0===e?t.promise:t.promise.then(()=>tM(e))).then(r.done)}return{type:"spawn.after",action(n,s){return ta(this,arguments,function*(n,{spawned:s,close:i}){var o,a;let u=function(){let n=-1,s={close:(0,e0.yX)(),closeTimeout:(0,e0.yX)(),exit:(0,e0.yX)(),exitTimeout:(0,e0.yX)()},i=Promise.race([!1===e?sM:s.closeTimeout.promise,!1===t?sM:s.exitTimeout.promise]);return r(e,s.close,s.closeTimeout),r(t,s.exit,s.exitTimeout),{close(e){n=e,s.close.done()},exit(e){n=e,s.exit.done()},get exitCode(){return n},result:i}}(),c=!0,l=()=>void(c=!1);null==(o=s.stdout)||o.on("data",l),null==(a=s.stderr)||a.on("data",l),s.on("error",l),s.on("close",e=>u.close(e)),s.on("exit",e=>u.exit(e));try{yield u.result,c&&(yield tM(50)),i(u.exitCode)}catch(e){i(u.exitCode,e)}})}}}(s.completion)),s.abort&&n.add(function(e){if(e)return[{type:"spawn.before",action(t,r){e.aborted&&r.kill(new sj(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(t,r){function n(){r.kill(new sj(void 0,"abort","Abort signal received"))}e.addEventListener("abort",n),r.spawned.on("close",()=>e.removeEventListener("abort",n))}}]}(s.abort)),s.progress&&n.add(function(e){let t="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action:(e,n)=>r.includes(n.method)?tC(e,t):e},{type:"spawn.after",action(r,n){var s;n.commands.includes(t)&&(null==(s=n.spawned.stderr)||s.on("data",t=>{let r=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString("utf8"));r&&e({method:n.method,stage:String(r[1].toLowerCase().split(" ",1))||"unknown",progress:tR(r[2]),processed:tR(r[3]),total:tR(r[4])})}))}}]}(s.progress)),s.timeout&&n.add(function({block:e,stdErr:t=!0,stdOut:r=!0}){if(e>0)return{type:"spawn.after",action(n,s){var i,o;let a;function u(){a&&clearTimeout(a),a=setTimeout(l,e)}function c(){var e,t;null==(e=s.spawned.stdout)||e.off("data",u),null==(t=s.spawned.stderr)||t.off("data",u),s.spawned.off("exit",c),s.spawned.off("close",c),a&&clearTimeout(a)}function l(){c(),s.kill(new sj(void 0,"timeout","block timeout reached"))}r&&(null==(i=s.spawned.stdout)||i.on("data",u)),t&&(null==(o=s.spawned.stderr)||o.on("data",u)),s.spawned.on("exit",c),s.spawned.on("close",c),u()}}}(s.timeout)),s.spawnOptions&&n.add(function(e){let t=tj(e,["uid","gid"]);return{type:"spawn.options",action:e=>tt(tt({},t),e)}}(s.spawnOptions)),n.add(sN(function(e=!1,t=function(e){return!!(e.exitCode&&e.stdErr.length)},r=function(e){return Buffer.concat([...e.stdOut,...e.stdErr])}){return(n,s)=>(e||!n)&&t(s)?r(s):n}(!0))),s.errors&&n.add(sN(s.errors)),function(e,t=["git"],r=!1){let n=sI(tO(t),r);e.on("binary",e=>{n=sI(tO(e),r)}),e.append("spawn.binary",()=>n.binary),e.append("spawn.args",e=>n.prefix?[n.prefix,...e]:e)}(n,s.binary,null==(r=s.unsafe)?void 0:r.allowUnsafeCustomBinary),new sD(s,n)}}};
|