diff --git a/dist/main.js b/dist/main.js
index f6d4a785..e3b59811 100644
--- a/dist/main.js
+++ b/dist/main.js
@@ -4,4 +4,4 @@
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
- */function up(e){return"[object Object]"===Object.prototype.toString.call(e)}function cp(e){var p,a;return!1!==up(e)&&(void 0===(p=e.constructor)||!1!==up(a=p.prototype)&&!1!==a.hasOwnProperty("isPrototypeOf"))}function hp(e,p){const a=Object.assign({},e);return Object.keys(p).forEach((d=>{cp(p[d])?d in e?a[d]=hp(e[d],p[d]):Object.assign(a,{[d]:p[d]}):Object.assign(a,{[d]:p[d]})})),a}function vp(e){for(const p in e)void 0===e[p]&&delete e[p];return e}function fp(e,p,a){if("string"==typeof p){let[e,d]=p.split(" ");a=Object.assign(d?{method:e,url:d}:{url:e},a)}else a=Object.assign({},p);var d;a.headers=(d=a.headers)?Object.keys(d).reduce(((e,p)=>(e[p.toLowerCase()]=d[p],e)),{}):{},vp(a),vp(a.headers);const t=hp(e||{},a);return e&&e.mediaType.previews.length&&(t.mediaType.previews=e.mediaType.previews.filter((e=>!t.mediaType.previews.includes(e))).concat(t.mediaType.previews)),t.mediaType.previews=t.mediaType.previews.map((e=>e.replace(/-preview/,""))),t}const wp=/\{[^}]+\}/g;function gp(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Tp(e,p){return Object.keys(e).filter((e=>!p.includes(e))).reduce(((p,a)=>(p[a]=e[a],p)),{})}function _p(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function bp(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function yp(e,p,a){return p="+"===e||"#"===e?_p(p):bp(p),a?bp(a)+"="+p:p}function Ep(e){return null!=e}function Sp(e){return";"===e||"&"===e||"?"===e}function Dp(e,p){var a=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,d,t){if(d){let e="";const t=[];if(-1!==a.indexOf(d.charAt(0))&&(e=d.charAt(0),d=d.substr(1)),d.split(/,/g).forEach((function(a){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);t.push(function(e,p,a,d){var t=e[a],r=[];if(Ep(t)&&""!==t)if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)t=t.toString(),d&&"*"!==d&&(t=t.substring(0,parseInt(d,10))),r.push(yp(p,t,Sp(p)?a:""));else if("*"===d)Array.isArray(t)?t.filter(Ep).forEach((function(e){r.push(yp(p,e,Sp(p)?a:""))})):Object.keys(t).forEach((function(e){Ep(t[e])&&r.push(yp(p,t[e],e))}));else{const e=[];Array.isArray(t)?t.filter(Ep).forEach((function(a){e.push(yp(p,a))})):Object.keys(t).forEach((function(a){Ep(t[a])&&(e.push(bp(a)),e.push(yp(p,t[a].toString())))})),Sp(p)?r.push(bp(a)+"="+e.join(",")):0!==e.length&&r.push(e.join(","))}else";"===p?Ep(t)&&r.push(bp(a)):""!==t||"&"!==p&&"?"!==p?""===t&&r.push(""):r.push(bp(a)+"=");return r}(p,e,d[1],d[2]||d[3]))})),e&&"+"!==e){var r=",";return"?"===e?r="&":"#"!==e&&(r=e),(0!==t.length?e:"")+t.join(r)}return t.join(",")}return _p(t)}))}function Op(e){let p,a=e.method.toUpperCase(),d=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),t=Object.assign({},e.headers),r=Tp(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const p=e.match(wp);return p?p.map(gp).reduce(((e,p)=>e.concat(p)),[]):[]}(d);var s;d=(s=d,{expand:Dp.bind(null,s)}).expand(r),/^http/.test(d)||(d=e.baseUrl+d);const o=Tp(r,Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(t.accept)&&(e.mediaType.format&&(t.accept=t.accept.split(/,/).map((p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")),e.mediaType.previews.length)){const p=t.accept.match(/[\w-]+(?=-preview)/g)||[];t.accept=p.concat(e.mediaType.previews).map((p=>`application/vnd.github.${p}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`)).join(",")}return["GET","HEAD"].includes(a)?d=function(e,p){const a=/\?/.test(e)?"&":"?",d=Object.keys(p);return 0===d.length?e:e+a+d.map((e=>"q"===e?"q="+p.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(p[e])}`)).join("&")}(d,o):"data"in o?p=o.data:Object.keys(o).length?p=o:t["content-length"]=0,t["content-type"]||void 0===p||(t["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(a)&&void 0===p&&(p=""),Object.assign({method:a,url:d,headers:t},void 0!==p?{body:p}:null,e.request?{request:e.request}:null)}function Np(e,p,a){return Op(fp(e,p,a))}const Pp=function e(p,a){const d=fp(p,a),t=Np.bind(null,d);return Object.assign(t,{DEFAULTS:d,defaults:e.bind(null,d),merge:fp.bind(null,d),parse:Op})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/6.0.10 ${Qe()}`},mediaType:{format:"",previews:[]}});var Ap={},kp={exports:{}},Gp={},Vp=Gp;function Cp(e){return e<0?-1:1}function Rp(e,p){p.unsigned||--e;const a=p.unsigned?0:-Math.pow(2,e),d=Math.pow(2,e)-1,t=p.moduloBitLength?Math.pow(2,p.moduloBitLength):Math.pow(2,e),r=p.moduloBitLength?Math.pow(2,p.moduloBitLength-1):Math.pow(2,e-1);return function(e,i){i||(i={});let s=+e;if(i.enforceRange){if(!Number.isFinite(s))throw new TypeError("Argument is not a finite number");if(s=Cp(s)*Math.floor(Math.abs(s)),sd)throw new TypeError("Argument is not in byte range");return s}if(!isNaN(s)&&i.clamp)return s=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(s),sd&&(s=d),s;if(!Number.isFinite(s)||0===s)return 0;if(s=Cp(s)*Math.floor(Math.abs(s)),s%=t,!p.unsigned&&s>=r)return s-t;if(p.unsigned)if(s<0)s+=t;else if(-0===s)return 0;return s}}Gp.void=function(){},Gp.boolean=function(e){return!!e},Gp.byte=Rp(8,{unsigned:!1}),Gp.octet=Rp(8,{unsigned:!0}),Gp.short=Rp(16,{unsigned:!1}),Gp["unsigned short"]=Rp(16,{unsigned:!0}),Gp.long=Rp(32,{unsigned:!1}),Gp["unsigned long"]=Rp(32,{unsigned:!0}),Gp["long long"]=Rp(32,{unsigned:!1,moduloBitLength:64}),Gp["unsigned long long"]=Rp(32,{unsigned:!0,moduloBitLength:64}),Gp.double=function(e){const p=+e;if(!Number.isFinite(p))throw new TypeError("Argument is not a finite floating-point value");return p},Gp["unrestricted double"]=function(e){const p=+e;if(isNaN(p))throw new TypeError("Argument is NaN");return p},Gp.float=Gp.double,Gp["unrestricted float"]=Gp["unrestricted double"],Gp.DOMString=function(e,p){return p||(p={}),p.treatNullAsEmptyString&&null===e?"":String(e)},Gp.ByteString=function(e,p){const a=String(e);let d;for(let e=0;void 0!==(d=a.codePointAt(e));++e)if(d>255)throw new TypeError("Argument is not a valid bytestring");return a},Gp.USVString=function(e){const p=String(e),a=p.length,d=[];for(let e=0;e57343)d.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)d.push(String.fromCodePoint(65533));else if(e===a-1)d.push(String.fromCodePoint(65533));else{const a=p.charCodeAt(e+1);if(56320<=a&&a<=57343){const p=1023&t,r=1023&a;d.push(String.fromCodePoint(65536+1024*p+r)),++e}else d.push(String.fromCodePoint(65533))}}return d.join("")},Gp.Date=function(e,p){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},Gp.RegExp=function(e,p){return e instanceof RegExp||(e=new RegExp(e)),e};var Up,Fp={exports:{}};(Up=Fp).exports.mixin=function(e,p){const a=Object.getOwnPropertyNames(p);for(let d=0;d=e)return t;t[0][0]>e?a=d-1:p=d+1}return null}var Mp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function zp(e){return e.replace(Mp,"_").length}var Wp=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function Jp(e,p){"xn--"===e.substr(0,4)&&(e=Lp.toUnicode(e));var a=!1;($p(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(Wp))&&(a=!0);for(var d=zp(e),t=0;t253||0===i.length)&&(t.error=!0);for(var s=0;s63||0===r.length){t.error=!0;break}}return t.error?null:r.join(".")},Bp.toUnicode=function(e,p){var a=Kp(e,p,Ip.NONTRANSITIONAL);return{domain:a.string,error:a.error}},Bp.PROCESSING_OPTIONS=Ip,function(e){const p=m,a=Bp,d={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},t=Symbol("failure");function r(e){return p.ucs2.decode(e).length}function i(e,p){const a=e[p];return isNaN(a)?void 0:String.fromCodePoint(a)}function s(e){return e>=48&&e<=57}function o(e){return e>=65&&e<=90||e>=97&&e<=122}function n(e){return s(e)||e>=65&&e<=70||e>=97&&e<=102}function l(e){return"."===e||"%2e"===e.toLowerCase()}function u(e){return 2===e.length&&o(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function c(e){return void 0!==d[e]}function h(e){return c(e.scheme)}function v(e){let p=e.toString(16).toUpperCase();return 1===p.length&&(p="0"+p),"%"+p}function f(e){return e<=31||e>126}const w=new Set([32,34,35,60,62,63,96,123,125]);function g(e){return f(e)||w.has(e)}const T=new Set([47,58,59,61,64,91,92,93,94,124]);function _(e){return g(e)||T.has(e)}function b(e,p){const a=String.fromCodePoint(e);return p(e)?function(e){const p=new Buffer(e);let a="";for(let e=0;e=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),p=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),p=8),""===e)return 0;return(10===p?/[^0-9]/:16===p?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?t:parseInt(e,p)}function E(e,d){if("["===e[0])return"]"!==e[e.length-1]?t:function(e){const a=[0,0,0,0,0,0,0,0];let d=0,r=null,o=0;if(58===(e=p.ucs2.decode(e))[o]){if(58!==e[o+1])return t;o+=2,++d,r=d}for(;o6)return t;let p=0;for(;void 0!==e[o];){let r=null;if(p>0){if(!(46===e[o]&&p<4))return t;++o}if(!s(e[o]))return t;for(;s(e[o]);){const p=parseInt(i(e,o));if(null===r)r=p;else{if(0===r)return t;r=10*r+p}if(r>255)return t;++o}a[d]=256*a[d]+r,++p,2!==p&&4!==p||++d}if(4!==p)return t;break}if(58===e[o]){if(++o,void 0===e[o])return t}else if(void 0!==e[o])return t;a[d]=p,++d}if(null!==r){let e=d-r;for(d=7;0!==d&&e>0;){const p=a[r+e-1];a[r+e-1]=a[d],a[d]=p,--d,--e}}else if(null===r&&8!==d)return t;return a}(e.substring(1,e.length-1));if(!d)return function(e){if(a=e,-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return t;var a;let d="";const r=p.ucs2.decode(e);for(let e=0;e1&&p.pop(),p.length>4)return e;const a=[];for(const d of p){if(""===d)return e;const p=y(d);if(p===t)return e;a.push(p)}for(let e=0;e255)return t;if(a[a.length-1]>=Math.pow(256,5-a.length))return t;let d=a.pop(),r=0;for(const e of a)d+=e*Math.pow(256,3-r),++r;return d}(o);return"number"==typeof l||l===t?l:o}function S(e){return"number"==typeof e?function(e){let p="",a=e;for(let e=1;e<=4;++e)p=String(a%256)+p,4!==e&&(p="."+p),a=Math.floor(a/256);return p}(e):e instanceof Array?"["+function(e){let p="";const a=function(e){let p=null,a=1,d=null,t=0;for(let r=0;ra&&(p=d,a=t),d=null,t=0):(null===d&&(d=r),++t);return t>a&&(p=d,a=t),{idx:p,len:a}}(e),d=a.idx;let t=!1;for(let a=0;a<=7;++a)t&&0===e[a]||(t&&(t=!1),d!==a?(p+=e[a].toString(16),7!==a&&(p+=":")):(p+=0===a?"::":":",t=!0));return p}(e)+"]":e}function D(e){const p=e.path;var a;0!==p.length&&("file"===e.scheme&&1===p.length&&(a=p[0],/^[A-Za-z]:$/.test(a))||p.pop())}function O(e){return""!==e.username||""!==e.password}function N(e,a,d,r,i){if(this.pointer=0,this.input=e,this.base=a||null,this.encodingOverride=d||"utf-8",this.stateOverride=i,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const s=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=p.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],p=isNaN(e)?void 0:String.fromCodePoint(e),a=this["parse "+this.state](e,p);if(!a)break;if(a===t){this.failure=!0;break}}}N.prototype["parse scheme start"]=function(e,p){if(o(e))this.buffer+=p.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,t;this.state="no scheme",--this.pointer}return!0},N.prototype["parse scheme"]=function(e,p){if(function(e){return o(e)||s(e)}(e)||43===e||45===e||46===e)this.buffer+=p.toLowerCase();else if(58===e){if(this.stateOverride){if(h(this.url)&&!c(this.buffer))return!1;if(!h(this.url)&&c(this.buffer))return!1;if((O(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):h(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":h(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,t;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},N.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?t:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},N.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},N.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},N.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):h(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},N.prototype["parse relative slash"]=function(e){return!h(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},N.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},N.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},N.prototype["parse authority"]=function(e,p){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=r(this.buffer);for(let p=0;pMath.pow(2,16)-1)return this.parseError=!0,t;this.url.port=e===(a=this.url.scheme,d[a])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var a;return!0};const P=new Set([47,92,63,35]);N.prototype["parse file"]=function(e){var p,a;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(p=e,a=this.input[this.pointer+1],!o(p)||58!==a&&124!==a)||this.input.length-this.pointer-1>=2&&!P.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),D(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},N.prototype["parse file slash"]=function(e){var p;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(p=this.base.path[0]).length&&o(p.codePointAt(0))&&":"===p[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},N.prototype["parse file host"]=function(e,p){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&u(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=E(this.buffer,h(this.url));if(e===t)return t;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=p;return!0},N.prototype["parse path start"]=function(e){return h(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},N.prototype["parse path"]=function(e){if(isNaN(e)||47===e||h(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(h(this.url)&&92===e&&(this.parseError=!0),".."===(p=(p=this.buffer).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(D(this.url),47===e||h(this.url)&&92===e||this.url.path.push("")):!l(this.buffer)||47===e||h(this.url)&&92===e?l(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&u(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=b(e,g);var p;return!0},N.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+b(e,f))),!0},N.prototype["parse query"]=function(e,p){if(isNaN(e)||!this.stateOverride&&35===e){h(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const p=new Buffer(this.buffer);for(let e=0;e126||34===p[e]||35===p[e]||60===p[e]||62===p[e]?this.url.query+=v(p[e]):this.url.query+=String.fromCodePoint(p[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=p;return!0},N.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=b(e,f))),!0},e.exports.serializeURL=function(e,p){let a=e.scheme+":";if(null!==e.host?(a+="//",""===e.username&&""===e.password||(a+=e.username,""!==e.password&&(a+=":"+e.password),a+="@"),a+=S(e.host),null!==e.port&&(a+=":"+e.port)):null===e.host&&"file"===e.scheme&&(a+="//"),e.cannotBeABaseURL)a+=e.path[0];else for(const p of e.path)a+="/"+p;return null!==e.query&&(a+="?"+e.query),p||null===e.fragment||(a+="#"+e.fragment),a},e.exports.serializeURLOrigin=function(p){switch(p.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(p.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let p=e.scheme+"://";return p+=S(e.host),null!==e.port&&(p+=":"+e.port),p}({scheme:p.scheme,host:p.host,port:p.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,p){void 0===p&&(p={});const a=new N(e,p.baseURL,p.encodingOverride,p.url,p.stateOverride);return a.failure?"failure":a.url},e.exports.setTheUsername=function(e,a){e.username="";const d=p.ucs2.decode(a);for(let p=0;p!!e&&e[t]instanceof d.implementation,create(e,p){let a=Object.create(r.prototype);return this.setup(a,e,p),a},setup(e,p,r){r||(r={}),r.wrapper=e,e[t]=new d.implementation(p,r),e[t][a.wrapperSymbol]=e},interface:r,expose:{Window:{URL:r},Worker:{URL:r}}}}(kp),Ap.URL=kp.exports.interface,Ap.serializeURL=jp.exports.serializeURL,Ap.serializeURLOrigin=jp.exports.serializeURLOrigin,Ap.basicURLParse=jp.exports.basicURLParse,Ap.setTheUsername=jp.exports.setTheUsername,Ap.setThePassword=jp.exports.setThePassword,Ap.serializeHost=jp.exports.serializeHost,Ap.serializeInteger=jp.exports.serializeInteger,Ap.parseURL=jp.exports.parseURL;const Zp=n.Readable,Qp=Symbol("buffer"),Xp=Symbol("type");let ea,pa=class{constructor(){this[Xp]="";const e=arguments[0],p=arguments[1],a=[];let d=0;if(e){const p=e,t=Number(p.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},d=a.size;let t=void 0===d?0:d;var r=a.timeout;let i=void 0===r?0:r;null==e?e=null:sa(e)?e=Buffer.from(e.toString()):oa(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[da]={body:e,disturbed:!1,error:null},this.size=t,this.timeout=i,e instanceof n&&e.on("error",(function(e){const a="AbortError"===e.name?e:new aa(`Invalid response body while trying to fetch ${p.url}: ${e.message}`,"system",e);p[da].error=a}))}function ia(){var e=this;if(this[da].disturbed)return ra.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[da].disturbed=!0,this[da].error)return ra.Promise.reject(this[da].error);let p=this.body;if(null===p)return ra.Promise.resolve(Buffer.alloc(0));if(oa(p)&&(p=p.stream()),Buffer.isBuffer(p))return ra.Promise.resolve(p);if(!(p instanceof n))return ra.Promise.resolve(Buffer.alloc(0));let a=[],d=0,t=!1;return new ra.Promise((function(r,i){let s;e.timeout&&(s=setTimeout((function(){t=!0,i(new aa(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),p.on("error",(function(p){"AbortError"===p.name?(t=!0,i(p)):i(new aa(`Invalid response body while trying to fetch ${e.url}: ${p.message}`,"system",p))})),p.on("data",(function(p){if(!t&&null!==p){if(e.size&&d+p.length>e.size)return t=!0,void i(new aa(`content size at ${e.url} over limit: ${e.size}`,"max-size"));d+=p.length,a.push(p)}})),p.on("end",(function(){if(!t){clearTimeout(s);try{r(Buffer.concat(a,d))}catch(p){i(new aa(`Could not create Buffer from response body for ${e.url}: ${p.message}`,"system",p))}}}))}))}function sa(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function oa(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function na(e){let p,a,d=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return d instanceof n&&"function"!=typeof d.getBoundary&&(p=new ta,a=new ta,d.pipe(p),d.pipe(a),e[da].body=p,d=a),d}function la(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":sa(e)?"application/x-www-form-urlencoded;charset=UTF-8":oa(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof n?null:"text/plain;charset=UTF-8"}function ma(e){const p=e.body;return null===p?0:oa(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}ra.prototype={get body(){return this[da].body},get bodyUsed(){return this[da].disturbed},arrayBuffer(){return ia.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return ia.call(this).then((function(p){return Object.assign(new pa([],{type:e.toLowerCase()}),{[Qp]:p})}))},json(){var e=this;return ia.call(this).then((function(p){try{return JSON.parse(p.toString())}catch(p){return ra.Promise.reject(new aa(`invalid json response body at ${e.url} reason: ${p.message}`,"invalid-json"))}}))},text(){return ia.call(this).then((function(e){return e.toString()}))},buffer(){return ia.call(this)},textConverted(){var e=this;return ia.call(this).then((function(p){return function(e,p){if("function"!=typeof ea)throw new Error("The package `encoding` must be installed to use the textConverted() function");const a=p.get("content-type");let d,t,r="utf-8";a&&(d=/charset=([^;]*)/i.exec(a));t=e.slice(0,1024).toString(),!d&&t&&(d=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[wa]=Object.create(null),e instanceof ga){const p=e.raw(),a=Object.keys(p);for(const e of a)for(const a of p[e])this.append(e,a)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const p=e[Symbol.iterator];if(null!=p){if("function"!=typeof p)throw new TypeError("Header pairs must be iterable");const a=[];for(const p of e){if("object"!=typeof p||"function"!=typeof p[Symbol.iterator])throw new TypeError("Each header pair must be iterable");a.push(Array.from(p))}for(const e of a){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const p of Object.keys(e)){const a=e[p];this.append(p,a)}}}}get(e){ha(e=`${e}`);const p=fa(this[wa],e);return void 0===p?null:this[wa][p].join(", ")}forEach(e){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=Ta(this),d=0;for(;d1&&void 0!==arguments[1]?arguments[1]:"key+value";const a=Object.keys(e[wa]).sort();return a.map("key"===p?function(e){return e.toLowerCase()}:"value"===p?function(p){return e[wa][p].join(", ")}:function(p){return[p.toLowerCase(),e[wa][p].join(", ")]})}ga.prototype.entries=ga.prototype[Symbol.iterator],Object.defineProperty(ga.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(ga.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const _a=Symbol("internal");function ba(e,p){const a=Object.create(ya);return a[_a]={target:e,kind:p,index:0},a}const ya=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==ya)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[_a];const p=e.target,a=e.kind,d=e.index,t=Ta(p,a);return d>=t.length?{value:void 0,done:!0}:(this[_a].index=d+1,{value:t[d],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Ea(e){const p=Object.assign({__proto__:null},e[wa]),a=fa(e[wa],"Host");return void 0!==a&&(p[a]=p[a][0]),p}Object.defineProperty(ya,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const Sa=Symbol("Response internals"),Da=d.STATUS_CODES;let Oa=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ra.call(this,e,p);const a=p.status||200,d=new ga(p.headers);if(null!=e&&!d.has("Content-Type")){const p=la(e);p&&d.append("Content-Type",p)}this[Sa]={url:p.url,status:a,statusText:p.statusText||Da[a],headers:d,counter:p.counter}}get url(){return this[Sa].url||""}get status(){return this[Sa].status}get ok(){return this[Sa].status>=200&&this[Sa].status<300}get redirected(){return this[Sa].counter>0}get statusText(){return this[Sa].statusText}get headers(){return this[Sa].headers}clone(){return new Oa(na(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}};ra.mixIn(Oa.prototype),Object.defineProperties(Oa.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Oa.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Na=Symbol("Request internals"),Pa=l.URL||Ap.URL,Aa=l.parse,ka=l.format;function Ga(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new Pa(e).toString()),Aa(e)}const Va="destroy"in n.Readable.prototype;function Ca(e){return"object"==typeof e&&"object"==typeof e[Na]}let Ra=class{constructor(e){let p,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ca(e)?p=Ga(e.url):(p=e&&e.href?Ga(e.href):Ga(`${e}`),e={});let d=a.method||e.method||"GET";if(d=d.toUpperCase(),(null!=a.body||Ca(e)&&null!==e.body)&&("GET"===d||"HEAD"===d))throw new TypeError("Request with GET/HEAD method cannot have body");let t=null!=a.body?a.body:Ca(e)&&null!==e.body?na(e):null;ra.call(this,t,{timeout:a.timeout||e.timeout||0,size:a.size||e.size||0});const r=new ga(a.headers||e.headers||{});if(null!=t&&!r.has("Content-Type")){const e=la(t);e&&r.append("Content-Type",e)}let i=Ca(e)?e.signal:null;if("signal"in a&&(i=a.signal),null!=i&&!function(e){const p=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!p||"AbortSignal"!==p.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Na]={method:d,redirect:a.redirect||e.redirect||"follow",headers:r,parsedURL:p,signal:i},this.follow=void 0!==a.follow?a.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==a.compress?a.compress:void 0===e.compress||e.compress,this.counter=a.counter||e.counter||0,this.agent=a.agent||e.agent}get method(){return this[Na].method}get url(){return ka(this[Na].parsedURL)}get headers(){return this[Na].headers}get redirect(){return this[Na].redirect}get signal(){return this[Na].signal}clone(){return new Ra(this)}};function Ua(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}ra.mixIn(Ra.prototype),Object.defineProperty(Ra.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Ra.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Ua.prototype=Object.create(Error.prototype),Ua.prototype.constructor=Ua,Ua.prototype.name="AbortError";const Fa=l.URL||Ap.URL,xa=n.PassThrough;function ja(e,p){if(!ja.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return ra.Promise=ja.Promise,new ja.Promise((function(a,r){const i=new Ra(e,p),s=function(e){const p=e[Na].parsedURL,a=new ga(e[Na].headers);if(a.has("Accept")||a.set("Accept","*/*"),!p.protocol||!p.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(p.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!Va)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let d=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(d="0"),null!=e.body){const p=ma(e);"number"==typeof p&&(d=String(p))}d&&a.set("Content-Length",d),a.has("User-Agent")||a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!a.has("Accept-Encoding")&&a.set("Accept-Encoding","gzip,deflate");let t=e.agent;return"function"==typeof t&&(t=t(p)),a.has("Connection")||t||a.set("Connection","close"),Object.assign({},p,{method:e.method,headers:Ea(a),agent:t})}(i),o=("https:"===s.protocol?t:d).request,l=i.signal;let m=null;const c=function(){let e=new Ua("The user aborted a request.");r(e),i.body&&i.body instanceof n.Readable&&i.body.destroy(e),m&&m.body&&m.body.emit("error",e)};if(l&&l.aborted)return void c();const h=function(){c(),w()},v=o(s);let f;function w(){v.abort(),l&&l.removeEventListener("abort",h),clearTimeout(f)}l&&l.addEventListener("abort",h),i.timeout&&v.once("socket",(function(e){f=setTimeout((function(){r(new aa(`network timeout at: ${i.url}`,"request-timeout")),w()}),i.timeout)})),v.on("error",(function(e){r(new aa(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),w()})),v.on("response",(function(e){clearTimeout(f);const p=function(e){const p=new ga;for(const a of Object.keys(e))if(!ua.test(a))if(Array.isArray(e[a]))for(const d of e[a])ca.test(d)||(void 0===p[wa][a]?p[wa][a]=[d]:p[wa][a].push(d));else ca.test(e[a])||(p[wa][a]=[e[a]]);return p}(e.headers);if(ja.isRedirect(e.statusCode)){const d=p.get("Location");let t=null;try{t=null===d?null:new Fa(d,i.url).toString()}catch(e){if("manual"!==i.redirect)return r(new aa(`uri requested responds with an invalid redirect URL: ${d}`,"invalid-redirect")),void w()}switch(i.redirect){case"error":return r(new aa(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),void w();case"manual":if(null!==t)try{p.set("Location",t)}catch(e){r(e)}break;case"follow":if(null===t)break;if(i.counter>=i.follow)return r(new aa(`maximum redirect reached at: ${i.url}`,"max-redirect")),void w();const d={headers:new ga(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};if(!function(e,p){const a=new Fa(p).hostname,d=new Fa(e).hostname;return a===d||"."===a[a.length-d.length-1]&&a.endsWith(d)}(i.url,t))for(const e of["authorization","www-authenticate","cookie","cookie2"])d.headers.delete(e);return 303!==e.statusCode&&i.body&&null===ma(i)?(r(new aa("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void w()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(d.method="GET",d.body=void 0,d.headers.delete("content-length")),a(ja(new Ra(t,d))),void w())}}e.once("end",(function(){l&&l.removeEventListener("abort",h)}));let d=e.pipe(new xa);const t={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:p,size:i.size,timeout:i.timeout,counter:i.counter},s=p.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===s||204===e.statusCode||304===e.statusCode)return m=new Oa(d,t),void a(m);const o={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if("gzip"==s||"x-gzip"==s)return d=d.pipe(u.createGunzip(o)),m=new Oa(d,t),void a(m);if("deflate"!=s&&"x-deflate"!=s){if("br"==s&&"function"==typeof u.createBrotliDecompress)return d=d.pipe(u.createBrotliDecompress()),m=new Oa(d,t),void a(m);m=new Oa(d,t),a(m)}else{e.pipe(new xa).once("data",(function(e){d=8==(15&e[0])?d.pipe(u.createInflate()):d.pipe(u.createInflateRaw()),m=new Oa(d,t),a(m)}))}})),function(e,p){const a=p.body;null===a?e.end():oa(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(v,i)}))}ja.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},ja.Promise=global.Promise;class Ba extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var La={exports:{}},qa=function e(p,a){if(p&&a)return e(p)(a);if("function"!=typeof p)throw new TypeError("need wrapper function");return Object.keys(p).forEach((function(e){d[e]=p[e]})),d;function d(){for(var e=new Array(arguments.length),a=0;aconsole.warn(e))),za=La.exports((e=>console.warn(e)));let Wa=class extends Error{constructor(e,p,a){let d;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,"headers"in a&&void 0!==a.headers&&(d=a.headers),"response"in a&&(this.response=a.response,d=a.response.headers);const t=Object.assign({},a.request);a.request.headers.authorization&&(t.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),t.url=t.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=t,Object.defineProperty(this,"code",{get:()=>(Ma(new Ba("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),Object.defineProperty(this,"headers",{get:()=>(za(new Ba("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),d||{})})}};function Ja(e){const p=e.request&&e.request.log?e.request.log:console;(cp(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let a,d,t={};return(e.request&&e.request.fetch||ja)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async r=>{d=r.url,a=r.status;for(const e of r.headers)t[e[0]]=e[1];if("deprecation"in t){const a=t.link&&t.link.match(/<([^>]+)>; rel="deprecation"/),d=a&&a.pop();p.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${t.sunset}${d?`. See ${d}`:""}`)}if(204!==a&&205!==a){if("HEAD"===e.method){if(a<400)return;throw new Wa(r.statusText,a,{response:{url:d,status:a,headers:t,data:void 0},request:e})}if(304===a)throw new Wa("Not modified",a,{response:{url:d,status:a,headers:t,data:await Ka(r)},request:e});if(a>=400){const p=await Ka(r),i=new Wa(function(e){if("string"==typeof e)return e;if("message"in e)return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`:e.message;return`Unknown error: ${JSON.stringify(e)}`}(p),a,{response:{url:d,status:a,headers:t,data:p},request:e});throw i}return Ka(r)}})).then((e=>({status:a,url:d,headers:t,data:e}))).catch((p=>{if(p instanceof Wa)throw p;throw new Wa(p.message,500,{request:e})}))}async function Ka(e){const p=e.headers.get("content-type");return/application\/json/.test(p)?e.json():!p||/^text\/|charset=utf-8$/.test(p)?e.text():function(e){return e.arrayBuffer()}(e)}const Ya=function e(p,a){const d=p.defaults(a);return Object.assign((function(p,a){const t=d.merge(p,a);if(!t.request||!t.request.hook)return Ja(d.parse(t));const r=(e,p)=>Ja(d.parse(d.merge(e,p)));return Object.assign(r,{endpoint:d,defaults:e.bind(null,d)}),t.request.hook(r,t)}),{endpoint:d,defaults:e.bind(null,d)})}(Pp,{headers:{"user-agent":`octokit-request.js/5.6.3 ${Qe()}`}}),Za=n.Readable,Qa=Symbol("buffer"),Xa=Symbol("type");class ed{constructor(){this[Xa]="";const e=arguments[0],p=arguments[1],a=[];let d=0;if(e){const p=e,t=Number(p.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},d=a.size;let t=void 0===d?0:d;var r=a.timeout;let i=void 0===r?0:r;null==e?e=null:sd(e)?e=Buffer.from(e.toString()):od(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[dd]={body:e,disturbed:!1,error:null},this.size=t,this.timeout=i,e instanceof n&&e.on("error",(function(e){const a="AbortError"===e.name?e:new pd(`Invalid response body while trying to fetch ${p.url}: ${e.message}`,"system",e);p[dd].error=a}))}function id(){var e=this;if(this[dd].disturbed)return rd.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[dd].disturbed=!0,this[dd].error)return rd.Promise.reject(this[dd].error);let p=this.body;if(null===p)return rd.Promise.resolve(Buffer.alloc(0));if(od(p)&&(p=p.stream()),Buffer.isBuffer(p))return rd.Promise.resolve(p);if(!(p instanceof n))return rd.Promise.resolve(Buffer.alloc(0));let a=[],d=0,t=!1;return new rd.Promise((function(r,i){let s;e.timeout&&(s=setTimeout((function(){t=!0,i(new pd(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),p.on("error",(function(p){"AbortError"===p.name?(t=!0,i(p)):i(new pd(`Invalid response body while trying to fetch ${e.url}: ${p.message}`,"system",p))})),p.on("data",(function(p){if(!t&&null!==p){if(e.size&&d+p.length>e.size)return t=!0,void i(new pd(`content size at ${e.url} over limit: ${e.size}`,"max-size"));d+=p.length,a.push(p)}})),p.on("end",(function(){if(!t){clearTimeout(s);try{r(Buffer.concat(a,d))}catch(p){i(new pd(`Could not create Buffer from response body for ${e.url}: ${p.message}`,"system",p))}}}))}))}function sd(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function od(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function nd(e){let p,a,d=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return d instanceof n&&"function"!=typeof d.getBoundary&&(p=new td,a=new td,d.pipe(p),d.pipe(a),e[dd].body=p,d=a),d}function ld(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":sd(e)?"application/x-www-form-urlencoded;charset=UTF-8":od(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof n?null:"text/plain;charset=UTF-8"}function md(e){const p=e.body;return null===p?0:od(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}rd.prototype={get body(){return this[dd].body},get bodyUsed(){return this[dd].disturbed},arrayBuffer(){return id.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return id.call(this).then((function(p){return Object.assign(new ed([],{type:e.toLowerCase()}),{[Qa]:p})}))},json(){var e=this;return id.call(this).then((function(p){try{return JSON.parse(p.toString())}catch(p){return rd.Promise.reject(new pd(`invalid json response body at ${e.url} reason: ${p.message}`,"invalid-json"))}}))},text(){return id.call(this).then((function(e){return e.toString()}))},buffer(){return id.call(this)},textConverted(){var e=this;return id.call(this).then((function(p){return function(e,p){if("function"!=typeof ad)throw new Error("The package `encoding` must be installed to use the textConverted() function");const a=p.get("content-type");let d,t,r="utf-8";a&&(d=/charset=([^;]*)/i.exec(a));t=e.slice(0,1024).toString(),!d&&t&&(d=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[wd]=Object.create(null),e instanceof gd){const p=e.raw(),a=Object.keys(p);for(const e of a)for(const a of p[e])this.append(e,a)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const p=e[Symbol.iterator];if(null!=p){if("function"!=typeof p)throw new TypeError("Header pairs must be iterable");const a=[];for(const p of e){if("object"!=typeof p||"function"!=typeof p[Symbol.iterator])throw new TypeError("Each header pair must be iterable");a.push(Array.from(p))}for(const e of a){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const p of Object.keys(e)){const a=e[p];this.append(p,a)}}}}get(e){hd(e=`${e}`);const p=fd(this[wd],e);return void 0===p?null:this[wd][p].join(", ")}forEach(e){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=Td(this),d=0;for(;d1&&void 0!==arguments[1]?arguments[1]:"key+value";const a=Object.keys(e[wd]).sort();return a.map("key"===p?function(e){return e.toLowerCase()}:"value"===p?function(p){return e[wd][p].join(", ")}:function(p){return[p.toLowerCase(),e[wd][p].join(", ")]})}gd.prototype.entries=gd.prototype[Symbol.iterator],Object.defineProperty(gd.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(gd.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const _d=Symbol("internal");function bd(e,p){const a=Object.create(yd);return a[_d]={target:e,kind:p,index:0},a}const yd=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==yd)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[_d];const p=e.target,a=e.kind,d=e.index,t=Td(p,a);return d>=t.length?{value:void 0,done:!0}:(this[_d].index=d+1,{value:t[d],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Ed(e){const p=Object.assign({__proto__:null},e[wd]),a=fd(e[wd],"Host");return void 0!==a&&(p[a]=p[a][0]),p}Object.defineProperty(yd,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const Sd=Symbol("Response internals"),Dd=d.STATUS_CODES;class Od{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rd.call(this,e,p);const a=p.status||200,d=new gd(p.headers);if(null!=e&&!d.has("Content-Type")){const p=ld(e);p&&d.append("Content-Type",p)}this[Sd]={url:p.url,status:a,statusText:p.statusText||Dd[a],headers:d,counter:p.counter}}get url(){return this[Sd].url||""}get status(){return this[Sd].status}get ok(){return this[Sd].status>=200&&this[Sd].status<300}get redirected(){return this[Sd].counter>0}get statusText(){return this[Sd].statusText}get headers(){return this[Sd].headers}clone(){return new Od(nd(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}rd.mixIn(Od.prototype),Object.defineProperties(Od.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Od.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Nd=Symbol("Request internals"),Pd=l.parse,Ad=l.format,kd="destroy"in n.Readable.prototype;function Gd(e){return"object"==typeof e&&"object"==typeof e[Nd]}class Vd{constructor(e){let p,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gd(e)?p=Pd(e.url):(p=e&&e.href?Pd(e.href):Pd(`${e}`),e={});let d=a.method||e.method||"GET";if(d=d.toUpperCase(),(null!=a.body||Gd(e)&&null!==e.body)&&("GET"===d||"HEAD"===d))throw new TypeError("Request with GET/HEAD method cannot have body");let t=null!=a.body?a.body:Gd(e)&&null!==e.body?nd(e):null;rd.call(this,t,{timeout:a.timeout||e.timeout||0,size:a.size||e.size||0});const r=new gd(a.headers||e.headers||{});if(null!=t&&!r.has("Content-Type")){const e=ld(t);e&&r.append("Content-Type",e)}let i=Gd(e)?e.signal:null;if("signal"in a&&(i=a.signal),null!=i&&!function(e){const p=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!p||"AbortSignal"!==p.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Nd]={method:d,redirect:a.redirect||e.redirect||"follow",headers:r,parsedURL:p,signal:i},this.follow=void 0!==a.follow?a.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==a.compress?a.compress:void 0===e.compress||e.compress,this.counter=a.counter||e.counter||0,this.agent=a.agent||e.agent}get method(){return this[Nd].method}get url(){return Ad(this[Nd].parsedURL)}get headers(){return this[Nd].headers}get redirect(){return this[Nd].redirect}get signal(){return this[Nd].signal}clone(){return new Vd(this)}}function Cd(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}rd.mixIn(Vd.prototype),Object.defineProperty(Vd.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Vd.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Cd.prototype=Object.create(Error.prototype),Cd.prototype.constructor=Cd,Cd.prototype.name="AbortError";const Rd=n.PassThrough,Ud=l.resolve;function Fd(e,p){if(!Fd.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return rd.Promise=Fd.Promise,new Fd.Promise((function(a,r){const i=new Vd(e,p),s=function(e){const p=e[Nd].parsedURL,a=new gd(e[Nd].headers);if(a.has("Accept")||a.set("Accept","*/*"),!p.protocol||!p.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(p.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!kd)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let d=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(d="0"),null!=e.body){const p=md(e);"number"==typeof p&&(d=String(p))}d&&a.set("Content-Length",d),a.has("User-Agent")||a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!a.has("Accept-Encoding")&&a.set("Accept-Encoding","gzip,deflate");let t=e.agent;return"function"==typeof t&&(t=t(p)),a.has("Connection")||t||a.set("Connection","close"),Object.assign({},p,{method:e.method,headers:Ed(a),agent:t})}(i),o=("https:"===s.protocol?t:d).request,l=i.signal;let m=null;const c=function(){let e=new Cd("The user aborted a request.");r(e),i.body&&i.body instanceof n.Readable&&i.body.destroy(e),m&&m.body&&m.body.emit("error",e)};if(l&&l.aborted)return void c();const h=function(){c(),w()},v=o(s);let f;function w(){v.abort(),l&&l.removeEventListener("abort",h),clearTimeout(f)}l&&l.addEventListener("abort",h),i.timeout&&v.once("socket",(function(e){f=setTimeout((function(){r(new pd(`network timeout at: ${i.url}`,"request-timeout")),w()}),i.timeout)})),v.on("error",(function(e){r(new pd(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),w()})),v.on("response",(function(e){clearTimeout(f);const p=function(e){const p=new gd;for(const a of Object.keys(e))if(!ud.test(a))if(Array.isArray(e[a]))for(const d of e[a])cd.test(d)||(void 0===p[wd][a]?p[wd][a]=[d]:p[wd][a].push(d));else cd.test(e[a])||(p[wd][a]=[e[a]]);return p}(e.headers);if(Fd.isRedirect(e.statusCode)){const d=p.get("Location"),t=null===d?null:Ud(i.url,d);switch(i.redirect){case"error":return r(new pd(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),void w();case"manual":if(null!==t)try{p.set("Location",t)}catch(e){r(e)}break;case"follow":if(null===t)break;if(i.counter>=i.follow)return r(new pd(`maximum redirect reached at: ${i.url}`,"max-redirect")),void w();const d={headers:new gd(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};return 303!==e.statusCode&&i.body&&null===md(i)?(r(new pd("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void w()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(d.method="GET",d.body=void 0,d.headers.delete("content-length")),a(Fd(new Vd(t,d))),void w())}}e.once("end",(function(){l&&l.removeEventListener("abort",h)}));let d=e.pipe(new Rd);const t={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:p,size:i.size,timeout:i.timeout,counter:i.counter},s=p.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===s||204===e.statusCode||304===e.statusCode)return m=new Od(d,t),void a(m);const o={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if("gzip"==s||"x-gzip"==s)return d=d.pipe(u.createGunzip(o)),m=new Od(d,t),void a(m);if("deflate"!=s&&"x-deflate"!=s){if("br"==s&&"function"==typeof u.createBrotliDecompress)return d=d.pipe(u.createBrotliDecompress()),m=new Od(d,t),void a(m);m=new Od(d,t),a(m)}else{e.pipe(new Rd).once("data",(function(e){d=8==(15&e[0])?d.pipe(u.createInflate()):d.pipe(u.createInflateRaw()),m=new Od(d,t),a(m)}))}})),function(e,p){const a=p.body;null===a?e.end():od(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(v,i)}))}Fd.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Fd.Promise=global.Promise;const xd=La.exports((e=>console.warn(e)));class jd extends Error{constructor(e,p,a){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,Object.defineProperty(this,"code",{get:()=>(xd(new Ba("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),this.headers=a.headers||{};const d=Object.assign({},a.request);a.request.headers.authorization&&(d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=d}}function Bd(e){(cp(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let p,a,d={};return(e.request&&e.request.fetch||Fd)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((t=>{a=t.url,p=t.status;for(const e of t.headers)d[e[0]]=e[1];if(204===p||205===p)return;if("HEAD"===e.method){if(p<400)return;throw new jd(t.statusText,p,{headers:d,request:e})}if(304===p)throw new jd("Not modified",p,{headers:d,request:e});if(p>=400)return t.text().then((a=>{const t=new jd(a,p,{headers:d,request:e});try{let e=JSON.parse(t.message);Object.assign(t,e);let p=e.errors;t.message=t.message+": "+p.map(JSON.stringify).join(", ")}catch(e){}throw t}));const r=t.headers.get("content-type");return/application\/json/.test(r)?t.json():!r||/^text\/|charset=utf-8$/.test(r)?t.text():function(e){return e.arrayBuffer()}(t)})).then((e=>({status:p,url:a,headers:d,data:e}))).catch((p=>{if(p instanceof jd)throw p;throw new jd(p.message,500,{headers:d,request:e})}))}const Ld=function e(p,a){const d=p.defaults(a);return Object.assign((function(p,a){const t=d.merge(p,a);if(!t.request||!t.request.hook)return Bd(d.parse(t));const r=(e,p)=>Bd(d.parse(d.merge(e,p)));return Object.assign(r,{endpoint:d,defaults:e.bind(null,d)}),t.request.hook(r,t)}),{endpoint:d,defaults:e.bind(null,d)})}(Pp,{headers:{"user-agent":`octokit-request.js/5.4.12 ${Qe()}`}});class qd extends Error{constructor(e,p){super(p.data.errors[0].message),Object.assign(this,p.data),Object.assign(this,{headers:p.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Id=["method","baseUrl","url","headers","request","query","mediaType"],$d=/\/api\/v3\/?$/;function Hd(e,p){const a=e.defaults(p);return Object.assign(((e,p)=>function(e,p,a){if("string"==typeof p&&a&&"query"in a)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));const d="string"==typeof p?Object.assign({query:p},a):p,t=Object.keys(d).reduce(((e,p)=>Id.includes(p)?(e[p]=d[p],e):(e.variables||(e.variables={}),e.variables[p]=d[p],e)),{}),r=d.baseUrl||e.endpoint.DEFAULTS.baseUrl;return $d.test(r)&&(t.url=r.replace($d,"/api/graphql")),e(t).then((e=>{if(e.data.errors){const p={};for(const a of Object.keys(e.headers))p[a]=e.headers[a];throw new qd(t,{headers:p,data:e.data})}return e.data.data}))}(a,e,p)),{defaults:Hd.bind(null,a),endpoint:Ld.endpoint})}async function Md(e){const p=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:p}}async function zd(e,p,a,d){const t=p.endpoint.merge(a,d);return t.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),p(t)}Hd(Ld,{headers:{"user-agent":`octokit-graphql.js/4.5.8 ${Qe()}`},method:"POST",url:"/graphql"});const Wd=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Md.bind(null,e),{hook:zd.bind(null,e)})};class Jd{constructor(e={}){const p=new mp,a={baseUrl:Ya.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:p.bind(null,"request")}),mediaType:{previews:[],format:""}};var d;if(a.headers["user-agent"]=[e.userAgent,`octokit-core.js/3.6.0 ${Qe()}`].filter(Boolean).join(" "),e.baseUrl&&(a.baseUrl=e.baseUrl),e.previews&&(a.mediaType.previews=e.previews),e.timeZone&&(a.headers["time-zone"]=e.timeZone),this.request=Ya.defaults(a),this.graphql=(d=this.request,Hd(d,{method:"POST",url:"/graphql"})).defaults(a),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=p,e.authStrategy){const{authStrategy:a,...d}=e,t=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:d},e.auth));p.wrap("request",t.hook),this.auth=t}else if(e.auth){const a=Wd(e.auth);p.wrap("request",a.hook),this.auth=a}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach((p=>{Object.assign(this,p(this,e))}))}static defaults(e){return class extends(this){constructor(...p){const a=p[0]||{};super("function"!=typeof e?Object.assign({},e,a,a.userAgent&&e.userAgent?{userAgent:`${a.userAgent} ${e.userAgent}`}:null):e(a))}}}static plugin(...e){var p;const a=this.plugins;return(p=class extends(this){}).plugins=a.concat(e.filter((e=>!a.includes(e)))),p}}Jd.VERSION="3.6.0",Jd.plugins=[];var Kd=w(Object.freeze({__proto__:null,Octokit:Jd}));const Yd={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.rest.reactions.deleteLegacy() is deprecated, see https://docs.github.com/rest/reference/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};function Zd(e,p,a,d,t){const r=e.request.defaults(d);return Object.assign((function(...d){let i=r.endpoint.merge(...d);if(t.mapToData)return i=Object.assign({},i,{data:i[t.mapToData],[t.mapToData]:void 0}),r(i);if(t.renamed){const[d,r]=t.renamed;e.log.warn(`octokit.${p}.${a}() has been renamed to octokit.${d}.${r}()`)}if(t.deprecated&&e.log.warn(t.deprecated),t.renamedParameters){const i=r.endpoint.merge(...d);for(const[d,r]of Object.entries(t.renamedParameters))d in i&&(e.log.warn(`"${d}" parameter is deprecated for "octokit.${p}.${a}()". Use "${r}" instead`),r in i||(i[r]=i[d]),delete i[d]);return r(i)}return r(...d)}),r)}function Qd(e){const p=function(e,p){const a={};for(const[d,t]of Object.entries(p))for(const[p,r]of Object.entries(t)){const[t,i,s]=r,[o,n]=t.split(/ /),l=Object.assign({method:o,url:n},i);a[d]||(a[d]={});const m=a[d];m[p]=s?Zd(e,d,p,l,s):e.request.defaults(l)}return a}(e,Yd);return{...p,rest:p}}Qd.VERSION="4.15.1";var Xd=w(Object.freeze({__proto__:null,restEndpointMethods:Qd}));function et(e,p,a){const d="function"==typeof p?p.endpoint(a):e.request.endpoint(p,a),t="function"==typeof p?p:e.request,r=d.method,i=d.headers;let s=d.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!s)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const p=e.data.incomplete_results,a=e.data.repository_selection,d=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const t=Object.keys(e.data)[0],r=e.data[t];return e.data=r,void 0!==p&&(e.data.incomplete_results=p),void 0!==a&&(e.data.repository_selection=a),e.data.total_count=d,e}(await t({method:r,url:s,headers:i}));return s=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return s="",{value:{status:200,headers:{},data:[]}}}}})}}function pt(e,p,a,d){return"function"==typeof a&&(d=a,a=void 0),at(e,[],et(e,p,a)[Symbol.asyncIterator](),d)}function at(e,p,a,d){return a.next().then((t=>{if(t.done)return p;let r=!1;return p=p.concat(d?d(t.value,(function(){r=!0})):t.value.data),r?p:at(e,p,a,d)}))}const dt=Object.assign(pt,{iterator:et}),tt=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function rt(e){return{paginate:Object.assign(pt.bind(null,e),{iterator:et.bind(null,e)})}}rt.VERSION="2.21.3";var it=w(Object.freeze({__proto__:null,composePaginateRest:dt,isPaginatingEndpoint:function(e){return"string"==typeof e&&tt.includes(e)},paginateRest:rt,paginatingEndpoints:tt})),st=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),ot=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),nt=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&st(p,e,a);return ot(p,e),p};Object.defineProperty($e,"__esModule",{value:!0}),$e.getOctokitOptions=$e.GitHub=$e.context=void 0;const lt=nt(Le),mt=nt(He),ut=Kd,ct=Xd,ht=it;$e.context=new lt.Context;const vt=mt.getApiBaseUrl(),ft={baseUrl:vt,request:{agent:mt.getProxyAgent(vt)}};$e.GitHub=ut.Octokit.plugin(ct.restEndpointMethods,ht.paginateRest).defaults(ft),$e.getOctokitOptions=function(e,p){const a=Object.assign({},p||{}),d=mt.getAuthString(e,a);return d&&(a.auth=d),a};var wt=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),gt=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),Tt=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&wt(p,e,a);return gt(p,e),p};Object.defineProperty(Be,"__esModule",{value:!0}),Be.getOctokit=Be.context=void 0;const _t=Tt(Le),bt=$e;Be.context=new _t.Context,Be.getOctokit=function(e,p){return new bt.GitHub(bt.getOctokitOptions(e,p))};var yt={},Et={},St={},Dt={};!function(a){var d,t=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),r=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),i=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&t(p,e,a);return r(p,e),p},s=f&&f.__awaiter||function(e,p,a,d){return new(a||(a=Promise))((function(t,r){function i(e){try{o(d.next(e))}catch(e){r(e)}}function s(e){try{o(d.throw(e))}catch(e){r(e)}}function o(e){var p;e.done?t(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((d=d.apply(e,p||[])).next())}))};Object.defineProperty(a,"__esModule",{value:!0}),a.getCmdPath=a.tryGetExecutablePath=a.isRooted=a.isDirectory=a.exists=a.IS_WINDOWS=a.unlink=a.symlink=a.stat=a.rmdir=a.rename=a.readlink=a.readdir=a.mkdir=a.lstat=a.copyFile=a.chmod=void 0;const o=i(e),n=i(p);function l(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}d=o.promises,a.chmod=d.chmod,a.copyFile=d.copyFile,a.lstat=d.lstat,a.mkdir=d.mkdir,a.readdir=d.readdir,a.readlink=d.readlink,a.rename=d.rename,a.rmdir=d.rmdir,a.stat=d.stat,a.symlink=d.symlink,a.unlink=d.unlink,a.IS_WINDOWS="win32"===process.platform,a.exists=function(e){return s(this,void 0,void 0,(function*(){try{yield a.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},a.isDirectory=function(e,p=!1){return s(this,void 0,void 0,(function*(){return(p?yield a.stat(e):yield a.lstat(e)).isDirectory()}))},a.isRooted=function(e){if(!(e=function(e){if(e=e||"",a.IS_WINDOWS)return(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\");return e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return a.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},a.tryGetExecutablePath=function(e,p){return s(this,void 0,void 0,(function*(){let d;try{d=yield a.stat(e)}catch(p){"ENOENT"!==p.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${p}`)}if(d&&d.isFile())if(a.IS_WINDOWS){const a=n.extname(e).toUpperCase();if(p.some((e=>e.toUpperCase()===a)))return e}else if(l(d))return e;const t=e;for(const r of p){e=t+r,d=void 0;try{d=yield a.stat(e)}catch(p){"ENOENT"!==p.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${p}`)}if(d&&d.isFile()){if(a.IS_WINDOWS){try{const p=n.dirname(e),d=n.basename(e).toUpperCase();for(const t of yield a.readdir(p))if(d===t.toUpperCase()){e=n.join(p,t);break}}catch(p){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${p}`)}return e}if(l(d))return e}}return""}))},a.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(Dt);var Ot=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),Nt=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),Pt=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&Ot(p,e,a);return Nt(p,e),p},At=f&&f.__awaiter||function(e,p,a,d){return new(a||(a=Promise))((function(t,r){function i(e){try{o(d.next(e))}catch(e){r(e)}}function s(e){try{o(d.throw(e))}catch(e){r(e)}}function o(e){var p;e.done?t(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((d=d.apply(e,p||[])).next())}))};Object.defineProperty(St,"__esModule",{value:!0}),St.findInPath=St.which=St.mkdirP=St.rmRF=St.mv=St.cp=void 0;const kt=s,Gt=Pt(h),Vt=Pt(p),Ct=o,Rt=Pt(Dt),Ut=Ct.promisify(Gt.exec),Ft=Ct.promisify(Gt.execFile);function xt(e){return At(this,void 0,void 0,(function*(){if(Rt.IS_WINDOWS){if(/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const p=Rt.getCmdPath();(yield Rt.isDirectory(e,!0))?yield Ut(`${p} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}}):yield Ut(`${p} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield Rt.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let p=!1;try{p=yield Rt.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}p?yield Ft("rm",["-rf",`${e}`]):yield Rt.unlink(e)}}))}function jt(e){return At(this,void 0,void 0,(function*(){kt.ok(e,"a path argument must be provided"),yield Rt.mkdir(e,{recursive:!0})}))}function Bt(e){return At(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'tool' is required");const p=[];if(Rt.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(Vt.delimiter))e&&p.push(e);if(Rt.isRooted(e)){const a=yield Rt.tryGetExecutablePath(e,p);return a?[a]:[]}if(e.includes(Vt.sep))return[];const a=[];if(process.env.PATH)for(const e of process.env.PATH.split(Vt.delimiter))e&&a.push(e);const d=[];for(const t of a){const a=yield Rt.tryGetExecutablePath(Vt.join(t,e),p);a&&d.push(a)}return d}))}function Lt(e,p,a,d){return At(this,void 0,void 0,(function*(){if(a>=255)return;a++,yield jt(p);const t=yield Rt.readdir(e);for(const r of t){const t=`${e}/${r}`,i=`${p}/${r}`;(yield Rt.lstat(t)).isDirectory()?yield Lt(t,i,a,d):yield qt(t,i,d)}yield Rt.chmod(p,(yield Rt.stat(e)).mode)}))}function qt(e,p,a){return At(this,void 0,void 0,(function*(){if((yield Rt.lstat(e)).isSymbolicLink()){try{yield Rt.lstat(p),yield Rt.unlink(p)}catch(e){"EPERM"===e.code&&(yield Rt.chmod(p,"0666"),yield Rt.unlink(p))}const a=yield Rt.readlink(e);yield Rt.symlink(a,p,Rt.IS_WINDOWS?"junction":null)}else(yield Rt.exists(p))&&!a||(yield Rt.copyFile(e,p))}))}St.cp=function(e,p,a={}){return At(this,void 0,void 0,(function*(){const{force:d,recursive:t,copySourceDirectory:r}=function(e){const p=null==e.force||e.force,a=Boolean(e.recursive),d=null==e.copySourceDirectory||Boolean(e.copySourceDirectory);return{force:p,recursive:a,copySourceDirectory:d}}(a),i=(yield Rt.exists(p))?yield Rt.stat(p):null;if(i&&i.isFile()&&!d)return;const s=i&&i.isDirectory()&&r?Vt.join(p,Vt.basename(e)):p;if(!(yield Rt.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield Rt.stat(e)).isDirectory()){if(!t)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield Lt(e,s,0,d)}else{if(""===Vt.relative(e,s))throw new Error(`'${s}' and '${e}' are the same file`);yield qt(e,s,d)}}))},St.mv=function(e,p,a={}){return At(this,void 0,void 0,(function*(){if(yield Rt.exists(p)){let d=!0;if((yield Rt.isDirectory(p))&&(p=Vt.join(p,Vt.basename(e)),d=yield Rt.exists(p)),d){if(null!=a.force&&!a.force)throw new Error("Destination already exists");yield xt(p)}}yield jt(Vt.dirname(p)),yield Rt.rename(e,p)}))},St.rmRF=xt,St.mkdirP=jt,St.which=function e(p,a){return At(this,void 0,void 0,(function*(){if(!p)throw new Error("parameter 'tool' is required");if(a){const a=yield e(p,!1);if(!a)throw Rt.IS_WINDOWS?new Error(`Unable to locate executable file: ${p}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${p}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return a}const d=yield Bt(p);return d&&d.length>0?d[0]:""}))},St.findInPath=Bt;var It=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),$t=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),Ht=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&It(p,e,a);return $t(p,e),p},Mt=f&&f.__awaiter||function(e,p,a,d){return new(a||(a=Promise))((function(t,r){function i(e){try{o(d.next(e))}catch(e){r(e)}}function s(e){try{o(d.throw(e))}catch(e){r(e)}}function o(e){var p;e.done?t(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((d=d.apply(e,p||[])).next())}))};Object.defineProperty(Et,"__esModule",{value:!0}),Et.argStringToArray=Et.ToolRunner=void 0;const zt=Ht(a),Wt=Ht(i),Jt=Ht(h),Kt=Ht(p),Yt=Ht(St),Zt=Ht(Dt),Qt=v,Xt="win32"===process.platform;class er extends Wt.EventEmitter{constructor(e,p,a){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=p||[],this.options=a||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,p){const a=this._getSpawnFileName(),d=this._getSpawnArgs(e);let t=p?"":"[command]";if(Xt)if(this._isCmdFile()){t+=a;for(const e of d)t+=` ${e}`}else if(e.windowsVerbatimArguments){t+=`"${a}"`;for(const e of d)t+=` ${e}`}else{t+=this._windowsQuoteCmdArg(a);for(const e of d)t+=` ${this._windowsQuoteCmdArg(e)}`}else{t+=a;for(const e of d)t+=` ${e}`}return t}_processLineBuffer(e,p,a){try{let d=p+e.toString(),t=d.indexOf(zt.EOL);for(;t>-1;){a(d.substring(0,t)),d=d.substring(t+zt.EOL.length),t=d.indexOf(zt.EOL)}return d}catch(e){return this._debug(`error processing line. Failed with error ${e}`),""}}_getSpawnFileName(){return Xt&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(Xt&&this._isCmdFile()){let p=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args)p+=" ",p+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a);return p+='"',[p]}return this.args}_endsWith(e,p){return e.endsWith(p)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const p=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=!1;for(const d of e)if(p.some((e=>e===d))){a=!0;break}if(!a)return e;let d='"',t=!0;for(let p=e.length;p>0;p--)d+=e[p-1],t&&"\\"===e[p-1]?d+="\\":'"'===e[p-1]?(t=!0,d+='"'):t=!1;return d+='"',d.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let p='"',a=!0;for(let d=e.length;d>0;d--)p+=e[d-1],a&&"\\"===e[d-1]?p+="\\":'"'===e[d-1]?(a=!0,p+="\\"):a=!1;return p+='"',p.split("").reverse().join("")}_cloneExecOptions(e){const p={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return p.outStream=e.outStream||process.stdout,p.errStream=e.errStream||process.stderr,p}_getSpawnOptions(e,p){e=e||{};const a={};return a.cwd=e.cwd,a.env=e.env,a.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(a.argv0=`"${p}"`),a}exec(){return Mt(this,void 0,void 0,(function*(){return!Zt.isRooted(this.toolPath)&&(this.toolPath.includes("/")||Xt&&this.toolPath.includes("\\"))&&(this.toolPath=Kt.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Yt.which(this.toolPath,!0),new Promise(((e,p)=>Mt(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(const e of this.args)this._debug(` ${e}`);const a=this._cloneExecOptions(this.options);!a.silent&&a.outStream&&a.outStream.write(this._getCommandString(a)+zt.EOL);const d=new pr(a,this.toolPath);if(d.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield Zt.exists(this.options.cwd)))return p(new Error(`The cwd: ${this.options.cwd} does not exist!`));const t=this._getSpawnFileName(),r=Jt.spawn(t,this._getSpawnArgs(a),this._getSpawnOptions(this.options,t));let i="";r.stdout&&r.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!a.silent&&a.outStream&&a.outStream.write(e),i=this._processLineBuffer(e,i,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let s="";if(r.stderr&&r.stderr.on("data",(e=>{if(d.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!a.silent&&a.errStream&&a.outStream){(a.failOnStdErr?a.errStream:a.outStream).write(e)}s=this._processLineBuffer(e,s,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),r.on("error",(e=>{d.processError=e.message,d.processExited=!0,d.processClosed=!0,d.CheckComplete()})),r.on("exit",(e=>{d.processExitCode=e,d.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),d.CheckComplete()})),r.on("close",(e=>{d.processExitCode=e,d.processExited=!0,d.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),d.CheckComplete()})),d.on("done",((a,d)=>{i.length>0&&this.emit("stdline",i),s.length>0&&this.emit("errline",s),r.removeAllListeners(),a?p(a):e(d)})),this.options.input){if(!r.stdin)throw new Error("child process missing stdin");r.stdin.end(this.options.input)}}))))}))}}Et.ToolRunner=er,Et.argStringToArray=function(e){const p=[];let a=!1,d=!1,t="";function r(e){d&&'"'!==e&&(t+="\\"),t+=e,d=!1}for(let i=0;i0&&(p.push(t),t=""):d?r(s):a=!a}return t.length>0&&p.push(t.trim()),p};class pr extends Wt.EventEmitter{constructor(e,p){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!p)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=p,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=Qt.setTimeout(pr.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){const p=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(p)}e._setResult()}}}var ar=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),dr=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),tr=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&ar(p,e,a);return dr(p,e),p},rr=f&&f.__awaiter||function(e,p,a,d){return new(a||(a=Promise))((function(t,r){function i(e){try{o(d.next(e))}catch(e){r(e)}}function s(e){try{o(d.throw(e))}catch(e){r(e)}}function o(e){var p;e.done?t(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((d=d.apply(e,p||[])).next())}))};Object.defineProperty(yt,"__esModule",{value:!0});var ir=yt.getExecOutput=yt.exec=void 0;const sr=c,or=tr(Et);function nr(e,p,a){return rr(this,void 0,void 0,(function*(){const d=or.argStringToArray(e);if(0===d.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const t=d[0];p=d.slice(1).concat(p||[]);return new or.ToolRunner(t,p,a).exec()}))}yt.exec=nr,ir=yt.getExecOutput=function(e,p,a){var d,t;return rr(this,void 0,void 0,(function*(){let r="",i="";const s=new sr.StringDecoder("utf8"),o=new sr.StringDecoder("utf8"),n=null===(d=null==a?void 0:a.listeners)||void 0===d?void 0:d.stdout,l=null===(t=null==a?void 0:a.listeners)||void 0===t?void 0:t.stderr,m=Object.assign(Object.assign({},null==a?void 0:a.listeners),{stdout:e=>{r+=s.write(e),n&&n(e)},stderr:e=>{i+=o.write(e),l&&l(e)}}),u=yield nr(e,p,Object.assign(Object.assign({},a),{listeners:m}));return r+=s.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}}))};var lr={exports:{}},mr=e,ur=p,cr=mr.exists||ur.exists,hr=function(e,p){var a,d=[];["end_of_record"].concat(e.split("\n")).forEach((function(e){var p,t,r=(e=e.trim()).split(":"),i=[r.shift(),r.join(":")];switch(i[0].toUpperCase()){case"TN":a.title=i[1].trim();break;case"SF":a.file=i.slice(1).join(":").trim();break;case"FNF":a.functions.found=Number(i[1].trim());break;case"FNH":a.functions.hit=Number(i[1].trim());break;case"LF":a.lines.found=Number(i[1].trim());break;case"LH":a.lines.hit=Number(i[1].trim());break;case"DA":p=i[1].split(","),a.lines.details.push({line:Number(p[0]),hit:Number(p[1])});break;case"FN":t=i[1].split(","),a.functions.details.push({name:t[1],line:Number(t[0])});break;case"FNDA":t=i[1].split(","),a.functions.details.some((function(e,p){if(e.name===t[1]&&void 0===e.hit)return a.functions.details[p].hit=Number(t[0]),!0}));break;case"BRDA":t=i[1].split(","),a.branches.details.push({line:Number(t[0]),block:Number(t[1]),branch:Number(t[2]),taken:"-"===t[3]?0:Number(t[3])});break;case"BRF":a.branches.found=Number(i[1]);break;case"BRH":a.branches.hit=Number(i[1])}e.indexOf("end_of_record")>-1&&(d.push(a),a={lines:{found:0,hit:0,details:[]},functions:{hit:0,found:0,details:[]},branches:{hit:0,found:0,details:[]}})})),d.shift(),d.length?p(null,d):p("Failed to parse string")};lr.exports=function(e,p){cr(e,(function(a){if(!a)return hr(e,p);mr.readFile(e,"utf8",(function(e,a){hr(a,p)}))}))},lr.exports.source=hr;const vr=e=>new Promise(((p,a)=>{lr.exports(e,((e,d)=>{e?a(e):p(d)}))})),fr=e=>{let p=0,a=0;for(const d of e)p+=d.lines.hit,a+=d.lines.found;return p/a*100},wr=e=>(...p)=>{const a="object"==typeof p[0]?Object.keys(p[0]).map((e=>` ${e}='${p[0][e]}'`)).join(""):"",d="string"==typeof p[0]?p:p.slice(1);return`<${e}${a}>${d.join("")}${e}>`},gr=wr("details"),Tr=wr("summary"),_r=wr("tr"),br=wr("td"),yr=wr("th"),Er=wr("b"),Sr=wr("table"),Dr=wr("tbody"),Or=wr("a"),Nr=(...e)=>e.join(""),Pr=e=>{if(!e)return"N/A";const p=0===e.found?100:e.hit/e.found*100,a=p.toFixed(2).replace(/\.0*$/u,"");return(100===p?Nr:Er)(`${a}%`)},Ar=(e,p,a)=>_r(br(((e,p,a)=>{const d=e.file.replace(a.prefix,""),t=`https://github.com/${a.repository}/blob/${a.commit}/${d}`,r=d.split("/"),i=r[r.length-1];return Nr(p?" ":"",Or({href:t},i))})(e,p,a)),br(Pr(e.branches)),br(Pr(e.functions)),br(Pr(e.lines)),br(((e,p)=>[...(e.branches?e.branches.details:[]).filter((e=>0===e.taken)).map((e=>e.line)),...(e.lines?e.lines.details:[]).filter((e=>0===e.hit)).map((e=>e.line))].sort().map((a=>{const d=e.file.replace(p.prefix,""),t=`https://github.com/${p.repository}/blob/${p.commit}/${d}#L${a}`;return Or({href:t},a)})).join(", "))(e,a))),kr=e=>""===e?"":_r(br({colspan:5},Er(e))),Gr=e=>e.toFixed(2)<0?"❌":"✅",Vr=e=>p=>0===e.filter((e=>e.lines.found===p.lines.found&&e.lines.hit===p.lines.hit)).length,Cr=(e,p,a)=>{const{appName:d,base:t}=a,r=p?fr(p):0,i=(p?fr(e):0)-r,s=i>0?"+":"";let o="";i<0?o="▾":i>0&&(o="▴");const n=p?yr(Gr(i)," ",o," ",s,i.toFixed(2),"%"):"";let l=e;if(p){const a=e.filter(Vr(p));l=p.filter(Vr(e)).concat(a)}const m=`Coverage after merging into ${Er(t)} `,u=Dr(d?_r(yr(d),yr(fr(e).toFixed(2),"%"),n):_r(yr(fr(e).toFixed(2),"%"),n));return Nr(m,Sr(u),"\n\n",gr(Tr("Coverage Report"),((e,p)=>{const a=_r(yr("File"),yr("Branches"),yr("Funcs"),yr("Lines"),yr("Uncovered Lines")),d={};for(const a of e){const e=a.file.replace(p.prefix,"").split("/").slice(0,-1).join("/");d[e]=d[e]||[],d[e].push(a)}const t=Object.keys(d).sort().reduce(((e,a)=>[...e,kr(a),...d[a].map((e=>Ar(e,""!==a,p)))]),[]);return Sr(Dr(a,...t))})(l,a)))},Rr=(e,p,a)=>Cr(e,p,a),Ur=(e,p,a)=>((e,p,a)=>{const{base:d,folder:t}=a,r=e.map((e=>{const a=p.find((p=>p.packageName===e.packageName)),d=a?fr(a.lcov):0,t=(a?fr(e.lcov):0)-d,r=t>0?"+":"";let i="";t<0?i="▾":t>0&&(i="▴");const s=a?yr(Gr(t)," ",i," ",r,t.toFixed(2),"%"):yr(" N/A ");return _r(yr(e.packageName),yr(fr(e.lcov).toFixed(2),"%"),s)})),i=Sr(Dr(r.join(""))),s=`Coverage for the ${Er(t)} folder after merging into ${Er(d)} `;return Nr(s,i)})(e,p,a),Fr=(e,p)=>p+e,xr=async({client:e,context:p,prNumber:a,body:d,hiddenHeader:t})=>{const r=await(async({client:e,context:p,prNumber:a,hiddenHeader:d})=>{const{data:t}=await e.issues.listComments({...p.repo,issue_number:a});return t.filter((({body:e})=>e.startsWith(d)))})({client:e,context:p,prNumber:a,hiddenHeader:t}),i=r.pop();return await(({client:e,context:p,comments:a})=>Promise.all(a.map((({id:a})=>e.issues.deleteComment({...p.repo,comment_id:a})))))({client:e,context:p,comments:r}),i?(({client:e,context:p,body:a,commentId:d},t)=>e.issues.updateComment({...p.repo,comment_id:d,body:Fr(a,t)}))({client:e,context:p,body:d,commentId:i.id},t):(({client:e,context:p,prNumber:a,body:d},t)=>e.issues.createComment({...p.repo,issue_number:a,body:Fr(d,t)}))({client:e,context:p,prNumber:a,body:d},t)},jr=(a,d)=>{let t=d||[];return e.readdirSync(a).forEach((d=>{t=e.statSync(p.join(a,d)).isDirectory()?jr(p.join(a,d),t):t.filter((e=>e.path.includes("lcov.info"))).concat({name:a.split("/")[1],path:p.join(a,d)})})),t},Br=(a,d)=>{let t=d||[];return e.readdirSync(a).forEach((d=>{t=e.statSync(p.join(a,d)).isDirectory()?Br(p.join(a,d),t):t.filter((e=>e.path.includes("lcov-base"))).concat({name:a.split("/")[1],path:p.join(a,d)})})),t};(async()=>{const{context:p={}}=Be||{},a=je.getInput("github-token"),d=je.getInput("lcov-file")||"./coverage/lcov.info",t=je.getInput("lcov-base"),r=je.getInput("app-name"),i=je.getInput("monorepo-base-path"),s=!i&&await e.promises.readFile(d,"utf-8").catch((e=>console.error(e)));if(!i&&!s)return void console.log(`No coverage report found at '${d}', exiting...`);const o=t&&await e.promises.readFile(t,"utf-8").catch((e=>console.error(e)));i||!t||o||console.log(`No coverage report found at '${t}', ignoring...`);const n=i?jr(i):[],l=i?Br(i):[],m=[],u=[];for(const p of n)if(p.path.includes(".info")){const a=await e.promises.readFile(p.path,"utf8"),d=await vr(a);m.push({packageName:p.name,lcov:d})}for(const e of l)if(e.path.includes(".info")){const p=(await ir("git",["show",`main:./${i.split("/")[1]}/${e.name}/lcov-base.info`])).stdout,a=await vr(p);u.push({packageName:e.name,lcov:a})}const c={repository:p.payload.repository.full_name,commit:p.payload.pull_request.head.sha,prefix:`${process.env.GITHUB_WORKSPACE}/`,head:p.payload.pull_request.head.ref,base:p.payload.pull_request.base.ref,appName:r,folder:i.split("/")[1]},h=!i&&await vr(s),v=o&&await vr(o),f=Be.getOctokit(a);await xr({client:f,context:p,prNumber:p.payload.pull_request.number,body:m.length?Ur(m,u,c):Rr(h,v,c),hiddenHeader:r?`\x3c!-- ${r}-code-coverage-assistant --\x3e`:`\x3c!-- monorepo-code-coverage-assistant ${i.split("/")[1]} --\x3e`})})().catch((e=>{console.log(e),je.setFailed(e.message)}));
+ */function up(e){return"[object Object]"===Object.prototype.toString.call(e)}function cp(e){var p,a;return!1!==up(e)&&(void 0===(p=e.constructor)||!1!==up(a=p.prototype)&&!1!==a.hasOwnProperty("isPrototypeOf"))}function hp(e,p){const a=Object.assign({},e);return Object.keys(p).forEach((d=>{cp(p[d])?d in e?a[d]=hp(e[d],p[d]):Object.assign(a,{[d]:p[d]}):Object.assign(a,{[d]:p[d]})})),a}function vp(e){for(const p in e)void 0===e[p]&&delete e[p];return e}function fp(e,p,a){if("string"==typeof p){let[e,d]=p.split(" ");a=Object.assign(d?{method:e,url:d}:{url:e},a)}else a=Object.assign({},p);var d;a.headers=(d=a.headers)?Object.keys(d).reduce(((e,p)=>(e[p.toLowerCase()]=d[p],e)),{}):{},vp(a),vp(a.headers);const t=hp(e||{},a);return e&&e.mediaType.previews.length&&(t.mediaType.previews=e.mediaType.previews.filter((e=>!t.mediaType.previews.includes(e))).concat(t.mediaType.previews)),t.mediaType.previews=t.mediaType.previews.map((e=>e.replace(/-preview/,""))),t}const wp=/\{[^}]+\}/g;function gp(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Tp(e,p){return Object.keys(e).filter((e=>!p.includes(e))).reduce(((p,a)=>(p[a]=e[a],p)),{})}function _p(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function bp(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function yp(e,p,a){return p="+"===e||"#"===e?_p(p):bp(p),a?bp(a)+"="+p:p}function Ep(e){return null!=e}function Sp(e){return";"===e||"&"===e||"?"===e}function Dp(e,p){var a=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,d,t){if(d){let e="";const t=[];if(-1!==a.indexOf(d.charAt(0))&&(e=d.charAt(0),d=d.substr(1)),d.split(/,/g).forEach((function(a){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);t.push(function(e,p,a,d){var t=e[a],r=[];if(Ep(t)&&""!==t)if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)t=t.toString(),d&&"*"!==d&&(t=t.substring(0,parseInt(d,10))),r.push(yp(p,t,Sp(p)?a:""));else if("*"===d)Array.isArray(t)?t.filter(Ep).forEach((function(e){r.push(yp(p,e,Sp(p)?a:""))})):Object.keys(t).forEach((function(e){Ep(t[e])&&r.push(yp(p,t[e],e))}));else{const e=[];Array.isArray(t)?t.filter(Ep).forEach((function(a){e.push(yp(p,a))})):Object.keys(t).forEach((function(a){Ep(t[a])&&(e.push(bp(a)),e.push(yp(p,t[a].toString())))})),Sp(p)?r.push(bp(a)+"="+e.join(",")):0!==e.length&&r.push(e.join(","))}else";"===p?Ep(t)&&r.push(bp(a)):""!==t||"&"!==p&&"?"!==p?""===t&&r.push(""):r.push(bp(a)+"=");return r}(p,e,d[1],d[2]||d[3]))})),e&&"+"!==e){var r=",";return"?"===e?r="&":"#"!==e&&(r=e),(0!==t.length?e:"")+t.join(r)}return t.join(",")}return _p(t)}))}function Op(e){let p,a=e.method.toUpperCase(),d=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),t=Object.assign({},e.headers),r=Tp(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const p=e.match(wp);return p?p.map(gp).reduce(((e,p)=>e.concat(p)),[]):[]}(d);var s;d=(s=d,{expand:Dp.bind(null,s)}).expand(r),/^http/.test(d)||(d=e.baseUrl+d);const o=Tp(r,Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(t.accept)&&(e.mediaType.format&&(t.accept=t.accept.split(/,/).map((p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")),e.mediaType.previews.length)){const p=t.accept.match(/[\w-]+(?=-preview)/g)||[];t.accept=p.concat(e.mediaType.previews).map((p=>`application/vnd.github.${p}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`)).join(",")}return["GET","HEAD"].includes(a)?d=function(e,p){const a=/\?/.test(e)?"&":"?",d=Object.keys(p);return 0===d.length?e:e+a+d.map((e=>"q"===e?"q="+p.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(p[e])}`)).join("&")}(d,o):"data"in o?p=o.data:Object.keys(o).length?p=o:t["content-length"]=0,t["content-type"]||void 0===p||(t["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(a)&&void 0===p&&(p=""),Object.assign({method:a,url:d,headers:t},void 0!==p?{body:p}:null,e.request?{request:e.request}:null)}function Np(e,p,a){return Op(fp(e,p,a))}const Pp=function e(p,a){const d=fp(p,a),t=Np.bind(null,d);return Object.assign(t,{DEFAULTS:d,defaults:e.bind(null,d),merge:fp.bind(null,d),parse:Op})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/6.0.10 ${Qe()}`},mediaType:{format:"",previews:[]}});var Ap={},kp={exports:{}},Gp={},Vp=Gp;function Cp(e){return e<0?-1:1}function Rp(e,p){p.unsigned||--e;const a=p.unsigned?0:-Math.pow(2,e),d=Math.pow(2,e)-1,t=p.moduloBitLength?Math.pow(2,p.moduloBitLength):Math.pow(2,e),r=p.moduloBitLength?Math.pow(2,p.moduloBitLength-1):Math.pow(2,e-1);return function(e,i){i||(i={});let s=+e;if(i.enforceRange){if(!Number.isFinite(s))throw new TypeError("Argument is not a finite number");if(s=Cp(s)*Math.floor(Math.abs(s)),sd)throw new TypeError("Argument is not in byte range");return s}if(!isNaN(s)&&i.clamp)return s=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(s),sd&&(s=d),s;if(!Number.isFinite(s)||0===s)return 0;if(s=Cp(s)*Math.floor(Math.abs(s)),s%=t,!p.unsigned&&s>=r)return s-t;if(p.unsigned)if(s<0)s+=t;else if(-0===s)return 0;return s}}Gp.void=function(){},Gp.boolean=function(e){return!!e},Gp.byte=Rp(8,{unsigned:!1}),Gp.octet=Rp(8,{unsigned:!0}),Gp.short=Rp(16,{unsigned:!1}),Gp["unsigned short"]=Rp(16,{unsigned:!0}),Gp.long=Rp(32,{unsigned:!1}),Gp["unsigned long"]=Rp(32,{unsigned:!0}),Gp["long long"]=Rp(32,{unsigned:!1,moduloBitLength:64}),Gp["unsigned long long"]=Rp(32,{unsigned:!0,moduloBitLength:64}),Gp.double=function(e){const p=+e;if(!Number.isFinite(p))throw new TypeError("Argument is not a finite floating-point value");return p},Gp["unrestricted double"]=function(e){const p=+e;if(isNaN(p))throw new TypeError("Argument is NaN");return p},Gp.float=Gp.double,Gp["unrestricted float"]=Gp["unrestricted double"],Gp.DOMString=function(e,p){return p||(p={}),p.treatNullAsEmptyString&&null===e?"":String(e)},Gp.ByteString=function(e,p){const a=String(e);let d;for(let e=0;void 0!==(d=a.codePointAt(e));++e)if(d>255)throw new TypeError("Argument is not a valid bytestring");return a},Gp.USVString=function(e){const p=String(e),a=p.length,d=[];for(let e=0;e57343)d.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)d.push(String.fromCodePoint(65533));else if(e===a-1)d.push(String.fromCodePoint(65533));else{const a=p.charCodeAt(e+1);if(56320<=a&&a<=57343){const p=1023&t,r=1023&a;d.push(String.fromCodePoint(65536+1024*p+r)),++e}else d.push(String.fromCodePoint(65533))}}return d.join("")},Gp.Date=function(e,p){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},Gp.RegExp=function(e,p){return e instanceof RegExp||(e=new RegExp(e)),e};var Up,Fp={exports:{}};(Up=Fp).exports.mixin=function(e,p){const a=Object.getOwnPropertyNames(p);for(let d=0;d=e)return t;t[0][0]>e?a=d-1:p=d+1}return null}var Mp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function zp(e){return e.replace(Mp,"_").length}var Wp=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function Jp(e,p){"xn--"===e.substr(0,4)&&(e=Lp.toUnicode(e));var a=!1;($p(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(Wp))&&(a=!0);for(var d=zp(e),t=0;t253||0===i.length)&&(t.error=!0);for(var s=0;s63||0===r.length){t.error=!0;break}}return t.error?null:r.join(".")},Bp.toUnicode=function(e,p){var a=Kp(e,p,Ip.NONTRANSITIONAL);return{domain:a.string,error:a.error}},Bp.PROCESSING_OPTIONS=Ip,function(e){const p=m,a=Bp,d={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},t=Symbol("failure");function r(e){return p.ucs2.decode(e).length}function i(e,p){const a=e[p];return isNaN(a)?void 0:String.fromCodePoint(a)}function s(e){return e>=48&&e<=57}function o(e){return e>=65&&e<=90||e>=97&&e<=122}function n(e){return s(e)||e>=65&&e<=70||e>=97&&e<=102}function l(e){return"."===e||"%2e"===e.toLowerCase()}function u(e){return 2===e.length&&o(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function c(e){return void 0!==d[e]}function h(e){return c(e.scheme)}function v(e){let p=e.toString(16).toUpperCase();return 1===p.length&&(p="0"+p),"%"+p}function f(e){return e<=31||e>126}const w=new Set([32,34,35,60,62,63,96,123,125]);function g(e){return f(e)||w.has(e)}const T=new Set([47,58,59,61,64,91,92,93,94,124]);function _(e){return g(e)||T.has(e)}function b(e,p){const a=String.fromCodePoint(e);return p(e)?function(e){const p=new Buffer(e);let a="";for(let e=0;e=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),p=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),p=8),""===e)return 0;return(10===p?/[^0-9]/:16===p?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?t:parseInt(e,p)}function E(e,d){if("["===e[0])return"]"!==e[e.length-1]?t:function(e){const a=[0,0,0,0,0,0,0,0];let d=0,r=null,o=0;if(58===(e=p.ucs2.decode(e))[o]){if(58!==e[o+1])return t;o+=2,++d,r=d}for(;o6)return t;let p=0;for(;void 0!==e[o];){let r=null;if(p>0){if(!(46===e[o]&&p<4))return t;++o}if(!s(e[o]))return t;for(;s(e[o]);){const p=parseInt(i(e,o));if(null===r)r=p;else{if(0===r)return t;r=10*r+p}if(r>255)return t;++o}a[d]=256*a[d]+r,++p,2!==p&&4!==p||++d}if(4!==p)return t;break}if(58===e[o]){if(++o,void 0===e[o])return t}else if(void 0!==e[o])return t;a[d]=p,++d}if(null!==r){let e=d-r;for(d=7;0!==d&&e>0;){const p=a[r+e-1];a[r+e-1]=a[d],a[d]=p,--d,--e}}else if(null===r&&8!==d)return t;return a}(e.substring(1,e.length-1));if(!d)return function(e){if(a=e,-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return t;var a;let d="";const r=p.ucs2.decode(e);for(let e=0;e1&&p.pop(),p.length>4)return e;const a=[];for(const d of p){if(""===d)return e;const p=y(d);if(p===t)return e;a.push(p)}for(let e=0;e255)return t;if(a[a.length-1]>=Math.pow(256,5-a.length))return t;let d=a.pop(),r=0;for(const e of a)d+=e*Math.pow(256,3-r),++r;return d}(o);return"number"==typeof l||l===t?l:o}function S(e){return"number"==typeof e?function(e){let p="",a=e;for(let e=1;e<=4;++e)p=String(a%256)+p,4!==e&&(p="."+p),a=Math.floor(a/256);return p}(e):e instanceof Array?"["+function(e){let p="";const a=function(e){let p=null,a=1,d=null,t=0;for(let r=0;ra&&(p=d,a=t),d=null,t=0):(null===d&&(d=r),++t);return t>a&&(p=d,a=t),{idx:p,len:a}}(e),d=a.idx;let t=!1;for(let a=0;a<=7;++a)t&&0===e[a]||(t&&(t=!1),d!==a?(p+=e[a].toString(16),7!==a&&(p+=":")):(p+=0===a?"::":":",t=!0));return p}(e)+"]":e}function D(e){const p=e.path;var a;0!==p.length&&("file"===e.scheme&&1===p.length&&(a=p[0],/^[A-Za-z]:$/.test(a))||p.pop())}function O(e){return""!==e.username||""!==e.password}function N(e,a,d,r,i){if(this.pointer=0,this.input=e,this.base=a||null,this.encodingOverride=d||"utf-8",this.stateOverride=i,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const s=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=p.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],p=isNaN(e)?void 0:String.fromCodePoint(e),a=this["parse "+this.state](e,p);if(!a)break;if(a===t){this.failure=!0;break}}}N.prototype["parse scheme start"]=function(e,p){if(o(e))this.buffer+=p.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,t;this.state="no scheme",--this.pointer}return!0},N.prototype["parse scheme"]=function(e,p){if(function(e){return o(e)||s(e)}(e)||43===e||45===e||46===e)this.buffer+=p.toLowerCase();else if(58===e){if(this.stateOverride){if(h(this.url)&&!c(this.buffer))return!1;if(!h(this.url)&&c(this.buffer))return!1;if((O(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):h(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":h(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,t;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},N.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?t:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},N.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},N.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},N.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):h(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},N.prototype["parse relative slash"]=function(e){return!h(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},N.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},N.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},N.prototype["parse authority"]=function(e,p){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=r(this.buffer);for(let p=0;pMath.pow(2,16)-1)return this.parseError=!0,t;this.url.port=e===(a=this.url.scheme,d[a])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var a;return!0};const P=new Set([47,92,63,35]);N.prototype["parse file"]=function(e){var p,a;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(p=e,a=this.input[this.pointer+1],!o(p)||58!==a&&124!==a)||this.input.length-this.pointer-1>=2&&!P.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),D(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},N.prototype["parse file slash"]=function(e){var p;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(p=this.base.path[0]).length&&o(p.codePointAt(0))&&":"===p[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},N.prototype["parse file host"]=function(e,p){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&u(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=E(this.buffer,h(this.url));if(e===t)return t;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=p;return!0},N.prototype["parse path start"]=function(e){return h(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},N.prototype["parse path"]=function(e){if(isNaN(e)||47===e||h(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(h(this.url)&&92===e&&(this.parseError=!0),".."===(p=(p=this.buffer).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(D(this.url),47===e||h(this.url)&&92===e||this.url.path.push("")):!l(this.buffer)||47===e||h(this.url)&&92===e?l(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&u(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=b(e,g);var p;return!0},N.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+b(e,f))),!0},N.prototype["parse query"]=function(e,p){if(isNaN(e)||!this.stateOverride&&35===e){h(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const p=new Buffer(this.buffer);for(let e=0;e126||34===p[e]||35===p[e]||60===p[e]||62===p[e]?this.url.query+=v(p[e]):this.url.query+=String.fromCodePoint(p[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=p;return!0},N.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=b(e,f))),!0},e.exports.serializeURL=function(e,p){let a=e.scheme+":";if(null!==e.host?(a+="//",""===e.username&&""===e.password||(a+=e.username,""!==e.password&&(a+=":"+e.password),a+="@"),a+=S(e.host),null!==e.port&&(a+=":"+e.port)):null===e.host&&"file"===e.scheme&&(a+="//"),e.cannotBeABaseURL)a+=e.path[0];else for(const p of e.path)a+="/"+p;return null!==e.query&&(a+="?"+e.query),p||null===e.fragment||(a+="#"+e.fragment),a},e.exports.serializeURLOrigin=function(p){switch(p.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(p.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let p=e.scheme+"://";return p+=S(e.host),null!==e.port&&(p+=":"+e.port),p}({scheme:p.scheme,host:p.host,port:p.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,p){void 0===p&&(p={});const a=new N(e,p.baseURL,p.encodingOverride,p.url,p.stateOverride);return a.failure?"failure":a.url},e.exports.setTheUsername=function(e,a){e.username="";const d=p.ucs2.decode(a);for(let p=0;p!!e&&e[t]instanceof d.implementation,create(e,p){let a=Object.create(r.prototype);return this.setup(a,e,p),a},setup(e,p,r){r||(r={}),r.wrapper=e,e[t]=new d.implementation(p,r),e[t][a.wrapperSymbol]=e},interface:r,expose:{Window:{URL:r},Worker:{URL:r}}}}(kp),Ap.URL=kp.exports.interface,Ap.serializeURL=jp.exports.serializeURL,Ap.serializeURLOrigin=jp.exports.serializeURLOrigin,Ap.basicURLParse=jp.exports.basicURLParse,Ap.setTheUsername=jp.exports.setTheUsername,Ap.setThePassword=jp.exports.setThePassword,Ap.serializeHost=jp.exports.serializeHost,Ap.serializeInteger=jp.exports.serializeInteger,Ap.parseURL=jp.exports.parseURL;const Zp=n.Readable,Qp=Symbol("buffer"),Xp=Symbol("type");let ea,pa=class{constructor(){this[Xp]="";const e=arguments[0],p=arguments[1],a=[];let d=0;if(e){const p=e,t=Number(p.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},d=a.size;let t=void 0===d?0:d;var r=a.timeout;let i=void 0===r?0:r;null==e?e=null:sa(e)?e=Buffer.from(e.toString()):oa(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[da]={body:e,disturbed:!1,error:null},this.size=t,this.timeout=i,e instanceof n&&e.on("error",(function(e){const a="AbortError"===e.name?e:new aa(`Invalid response body while trying to fetch ${p.url}: ${e.message}`,"system",e);p[da].error=a}))}function ia(){var e=this;if(this[da].disturbed)return ra.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[da].disturbed=!0,this[da].error)return ra.Promise.reject(this[da].error);let p=this.body;if(null===p)return ra.Promise.resolve(Buffer.alloc(0));if(oa(p)&&(p=p.stream()),Buffer.isBuffer(p))return ra.Promise.resolve(p);if(!(p instanceof n))return ra.Promise.resolve(Buffer.alloc(0));let a=[],d=0,t=!1;return new ra.Promise((function(r,i){let s;e.timeout&&(s=setTimeout((function(){t=!0,i(new aa(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),p.on("error",(function(p){"AbortError"===p.name?(t=!0,i(p)):i(new aa(`Invalid response body while trying to fetch ${e.url}: ${p.message}`,"system",p))})),p.on("data",(function(p){if(!t&&null!==p){if(e.size&&d+p.length>e.size)return t=!0,void i(new aa(`content size at ${e.url} over limit: ${e.size}`,"max-size"));d+=p.length,a.push(p)}})),p.on("end",(function(){if(!t){clearTimeout(s);try{r(Buffer.concat(a,d))}catch(p){i(new aa(`Could not create Buffer from response body for ${e.url}: ${p.message}`,"system",p))}}}))}))}function sa(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function oa(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function na(e){let p,a,d=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return d instanceof n&&"function"!=typeof d.getBoundary&&(p=new ta,a=new ta,d.pipe(p),d.pipe(a),e[da].body=p,d=a),d}function la(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":sa(e)?"application/x-www-form-urlencoded;charset=UTF-8":oa(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof n?null:"text/plain;charset=UTF-8"}function ma(e){const p=e.body;return null===p?0:oa(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}ra.prototype={get body(){return this[da].body},get bodyUsed(){return this[da].disturbed},arrayBuffer(){return ia.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return ia.call(this).then((function(p){return Object.assign(new pa([],{type:e.toLowerCase()}),{[Qp]:p})}))},json(){var e=this;return ia.call(this).then((function(p){try{return JSON.parse(p.toString())}catch(p){return ra.Promise.reject(new aa(`invalid json response body at ${e.url} reason: ${p.message}`,"invalid-json"))}}))},text(){return ia.call(this).then((function(e){return e.toString()}))},buffer(){return ia.call(this)},textConverted(){var e=this;return ia.call(this).then((function(p){return function(e,p){if("function"!=typeof ea)throw new Error("The package `encoding` must be installed to use the textConverted() function");const a=p.get("content-type");let d,t,r="utf-8";a&&(d=/charset=([^;]*)/i.exec(a));t=e.slice(0,1024).toString(),!d&&t&&(d=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[wa]=Object.create(null),e instanceof ga){const p=e.raw(),a=Object.keys(p);for(const e of a)for(const a of p[e])this.append(e,a)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const p=e[Symbol.iterator];if(null!=p){if("function"!=typeof p)throw new TypeError("Header pairs must be iterable");const a=[];for(const p of e){if("object"!=typeof p||"function"!=typeof p[Symbol.iterator])throw new TypeError("Each header pair must be iterable");a.push(Array.from(p))}for(const e of a){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const p of Object.keys(e)){const a=e[p];this.append(p,a)}}}}get(e){ha(e=`${e}`);const p=fa(this[wa],e);return void 0===p?null:this[wa][p].join(", ")}forEach(e){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=Ta(this),d=0;for(;d1&&void 0!==arguments[1]?arguments[1]:"key+value";const a=Object.keys(e[wa]).sort();return a.map("key"===p?function(e){return e.toLowerCase()}:"value"===p?function(p){return e[wa][p].join(", ")}:function(p){return[p.toLowerCase(),e[wa][p].join(", ")]})}ga.prototype.entries=ga.prototype[Symbol.iterator],Object.defineProperty(ga.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(ga.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const _a=Symbol("internal");function ba(e,p){const a=Object.create(ya);return a[_a]={target:e,kind:p,index:0},a}const ya=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==ya)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[_a];const p=e.target,a=e.kind,d=e.index,t=Ta(p,a);return d>=t.length?{value:void 0,done:!0}:(this[_a].index=d+1,{value:t[d],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Ea(e){const p=Object.assign({__proto__:null},e[wa]),a=fa(e[wa],"Host");return void 0!==a&&(p[a]=p[a][0]),p}Object.defineProperty(ya,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const Sa=Symbol("Response internals"),Da=d.STATUS_CODES;let Oa=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ra.call(this,e,p);const a=p.status||200,d=new ga(p.headers);if(null!=e&&!d.has("Content-Type")){const p=la(e);p&&d.append("Content-Type",p)}this[Sa]={url:p.url,status:a,statusText:p.statusText||Da[a],headers:d,counter:p.counter}}get url(){return this[Sa].url||""}get status(){return this[Sa].status}get ok(){return this[Sa].status>=200&&this[Sa].status<300}get redirected(){return this[Sa].counter>0}get statusText(){return this[Sa].statusText}get headers(){return this[Sa].headers}clone(){return new Oa(na(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}};ra.mixIn(Oa.prototype),Object.defineProperties(Oa.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Oa.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Na=Symbol("Request internals"),Pa=l.URL||Ap.URL,Aa=l.parse,ka=l.format;function Ga(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new Pa(e).toString()),Aa(e)}const Va="destroy"in n.Readable.prototype;function Ca(e){return"object"==typeof e&&"object"==typeof e[Na]}let Ra=class{constructor(e){let p,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ca(e)?p=Ga(e.url):(p=e&&e.href?Ga(e.href):Ga(`${e}`),e={});let d=a.method||e.method||"GET";if(d=d.toUpperCase(),(null!=a.body||Ca(e)&&null!==e.body)&&("GET"===d||"HEAD"===d))throw new TypeError("Request with GET/HEAD method cannot have body");let t=null!=a.body?a.body:Ca(e)&&null!==e.body?na(e):null;ra.call(this,t,{timeout:a.timeout||e.timeout||0,size:a.size||e.size||0});const r=new ga(a.headers||e.headers||{});if(null!=t&&!r.has("Content-Type")){const e=la(t);e&&r.append("Content-Type",e)}let i=Ca(e)?e.signal:null;if("signal"in a&&(i=a.signal),null!=i&&!function(e){const p=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!p||"AbortSignal"!==p.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Na]={method:d,redirect:a.redirect||e.redirect||"follow",headers:r,parsedURL:p,signal:i},this.follow=void 0!==a.follow?a.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==a.compress?a.compress:void 0===e.compress||e.compress,this.counter=a.counter||e.counter||0,this.agent=a.agent||e.agent}get method(){return this[Na].method}get url(){return ka(this[Na].parsedURL)}get headers(){return this[Na].headers}get redirect(){return this[Na].redirect}get signal(){return this[Na].signal}clone(){return new Ra(this)}};function Ua(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}ra.mixIn(Ra.prototype),Object.defineProperty(Ra.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Ra.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Ua.prototype=Object.create(Error.prototype),Ua.prototype.constructor=Ua,Ua.prototype.name="AbortError";const Fa=l.URL||Ap.URL,xa=n.PassThrough;function ja(e,p){if(!ja.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return ra.Promise=ja.Promise,new ja.Promise((function(a,r){const i=new Ra(e,p),s=function(e){const p=e[Na].parsedURL,a=new ga(e[Na].headers);if(a.has("Accept")||a.set("Accept","*/*"),!p.protocol||!p.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(p.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!Va)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let d=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(d="0"),null!=e.body){const p=ma(e);"number"==typeof p&&(d=String(p))}d&&a.set("Content-Length",d),a.has("User-Agent")||a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!a.has("Accept-Encoding")&&a.set("Accept-Encoding","gzip,deflate");let t=e.agent;return"function"==typeof t&&(t=t(p)),a.has("Connection")||t||a.set("Connection","close"),Object.assign({},p,{method:e.method,headers:Ea(a),agent:t})}(i),o=("https:"===s.protocol?t:d).request,l=i.signal;let m=null;const c=function(){let e=new Ua("The user aborted a request.");r(e),i.body&&i.body instanceof n.Readable&&i.body.destroy(e),m&&m.body&&m.body.emit("error",e)};if(l&&l.aborted)return void c();const h=function(){c(),w()},v=o(s);let f;function w(){v.abort(),l&&l.removeEventListener("abort",h),clearTimeout(f)}l&&l.addEventListener("abort",h),i.timeout&&v.once("socket",(function(e){f=setTimeout((function(){r(new aa(`network timeout at: ${i.url}`,"request-timeout")),w()}),i.timeout)})),v.on("error",(function(e){r(new aa(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),w()})),v.on("response",(function(e){clearTimeout(f);const p=function(e){const p=new ga;for(const a of Object.keys(e))if(!ua.test(a))if(Array.isArray(e[a]))for(const d of e[a])ca.test(d)||(void 0===p[wa][a]?p[wa][a]=[d]:p[wa][a].push(d));else ca.test(e[a])||(p[wa][a]=[e[a]]);return p}(e.headers);if(ja.isRedirect(e.statusCode)){const d=p.get("Location");let t=null;try{t=null===d?null:new Fa(d,i.url).toString()}catch(e){if("manual"!==i.redirect)return r(new aa(`uri requested responds with an invalid redirect URL: ${d}`,"invalid-redirect")),void w()}switch(i.redirect){case"error":return r(new aa(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),void w();case"manual":if(null!==t)try{p.set("Location",t)}catch(e){r(e)}break;case"follow":if(null===t)break;if(i.counter>=i.follow)return r(new aa(`maximum redirect reached at: ${i.url}`,"max-redirect")),void w();const d={headers:new ga(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};if(!function(e,p){const a=new Fa(p).hostname,d=new Fa(e).hostname;return a===d||"."===a[a.length-d.length-1]&&a.endsWith(d)}(i.url,t))for(const e of["authorization","www-authenticate","cookie","cookie2"])d.headers.delete(e);return 303!==e.statusCode&&i.body&&null===ma(i)?(r(new aa("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void w()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(d.method="GET",d.body=void 0,d.headers.delete("content-length")),a(ja(new Ra(t,d))),void w())}}e.once("end",(function(){l&&l.removeEventListener("abort",h)}));let d=e.pipe(new xa);const t={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:p,size:i.size,timeout:i.timeout,counter:i.counter},s=p.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===s||204===e.statusCode||304===e.statusCode)return m=new Oa(d,t),void a(m);const o={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if("gzip"==s||"x-gzip"==s)return d=d.pipe(u.createGunzip(o)),m=new Oa(d,t),void a(m);if("deflate"!=s&&"x-deflate"!=s){if("br"==s&&"function"==typeof u.createBrotliDecompress)return d=d.pipe(u.createBrotliDecompress()),m=new Oa(d,t),void a(m);m=new Oa(d,t),a(m)}else{e.pipe(new xa).once("data",(function(e){d=8==(15&e[0])?d.pipe(u.createInflate()):d.pipe(u.createInflateRaw()),m=new Oa(d,t),a(m)}))}})),function(e,p){const a=p.body;null===a?e.end():oa(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(v,i)}))}ja.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},ja.Promise=global.Promise;class Ba extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var La={exports:{}},qa=function e(p,a){if(p&&a)return e(p)(a);if("function"!=typeof p)throw new TypeError("need wrapper function");return Object.keys(p).forEach((function(e){d[e]=p[e]})),d;function d(){for(var e=new Array(arguments.length),a=0;aconsole.warn(e))),za=La.exports((e=>console.warn(e)));let Wa=class extends Error{constructor(e,p,a){let d;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,"headers"in a&&void 0!==a.headers&&(d=a.headers),"response"in a&&(this.response=a.response,d=a.response.headers);const t=Object.assign({},a.request);a.request.headers.authorization&&(t.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),t.url=t.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=t,Object.defineProperty(this,"code",{get:()=>(Ma(new Ba("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),Object.defineProperty(this,"headers",{get:()=>(za(new Ba("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),d||{})})}};function Ja(e){const p=e.request&&e.request.log?e.request.log:console;(cp(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let a,d,t={};return(e.request&&e.request.fetch||ja)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async r=>{d=r.url,a=r.status;for(const e of r.headers)t[e[0]]=e[1];if("deprecation"in t){const a=t.link&&t.link.match(/<([^>]+)>; rel="deprecation"/),d=a&&a.pop();p.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${t.sunset}${d?`. See ${d}`:""}`)}if(204!==a&&205!==a){if("HEAD"===e.method){if(a<400)return;throw new Wa(r.statusText,a,{response:{url:d,status:a,headers:t,data:void 0},request:e})}if(304===a)throw new Wa("Not modified",a,{response:{url:d,status:a,headers:t,data:await Ka(r)},request:e});if(a>=400){const p=await Ka(r),i=new Wa(function(e){if("string"==typeof e)return e;if("message"in e)return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`:e.message;return`Unknown error: ${JSON.stringify(e)}`}(p),a,{response:{url:d,status:a,headers:t,data:p},request:e});throw i}return Ka(r)}})).then((e=>({status:a,url:d,headers:t,data:e}))).catch((p=>{if(p instanceof Wa)throw p;throw new Wa(p.message,500,{request:e})}))}async function Ka(e){const p=e.headers.get("content-type");return/application\/json/.test(p)?e.json():!p||/^text\/|charset=utf-8$/.test(p)?e.text():function(e){return e.arrayBuffer()}(e)}const Ya=function e(p,a){const d=p.defaults(a);return Object.assign((function(p,a){const t=d.merge(p,a);if(!t.request||!t.request.hook)return Ja(d.parse(t));const r=(e,p)=>Ja(d.parse(d.merge(e,p)));return Object.assign(r,{endpoint:d,defaults:e.bind(null,d)}),t.request.hook(r,t)}),{endpoint:d,defaults:e.bind(null,d)})}(Pp,{headers:{"user-agent":`octokit-request.js/5.6.3 ${Qe()}`}}),Za=n.Readable,Qa=Symbol("buffer"),Xa=Symbol("type");class ed{constructor(){this[Xa]="";const e=arguments[0],p=arguments[1],a=[];let d=0;if(e){const p=e,t=Number(p.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},d=a.size;let t=void 0===d?0:d;var r=a.timeout;let i=void 0===r?0:r;null==e?e=null:sd(e)?e=Buffer.from(e.toString()):od(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[dd]={body:e,disturbed:!1,error:null},this.size=t,this.timeout=i,e instanceof n&&e.on("error",(function(e){const a="AbortError"===e.name?e:new pd(`Invalid response body while trying to fetch ${p.url}: ${e.message}`,"system",e);p[dd].error=a}))}function id(){var e=this;if(this[dd].disturbed)return rd.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[dd].disturbed=!0,this[dd].error)return rd.Promise.reject(this[dd].error);let p=this.body;if(null===p)return rd.Promise.resolve(Buffer.alloc(0));if(od(p)&&(p=p.stream()),Buffer.isBuffer(p))return rd.Promise.resolve(p);if(!(p instanceof n))return rd.Promise.resolve(Buffer.alloc(0));let a=[],d=0,t=!1;return new rd.Promise((function(r,i){let s;e.timeout&&(s=setTimeout((function(){t=!0,i(new pd(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),p.on("error",(function(p){"AbortError"===p.name?(t=!0,i(p)):i(new pd(`Invalid response body while trying to fetch ${e.url}: ${p.message}`,"system",p))})),p.on("data",(function(p){if(!t&&null!==p){if(e.size&&d+p.length>e.size)return t=!0,void i(new pd(`content size at ${e.url} over limit: ${e.size}`,"max-size"));d+=p.length,a.push(p)}})),p.on("end",(function(){if(!t){clearTimeout(s);try{r(Buffer.concat(a,d))}catch(p){i(new pd(`Could not create Buffer from response body for ${e.url}: ${p.message}`,"system",p))}}}))}))}function sd(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function od(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function nd(e){let p,a,d=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return d instanceof n&&"function"!=typeof d.getBoundary&&(p=new td,a=new td,d.pipe(p),d.pipe(a),e[dd].body=p,d=a),d}function ld(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":sd(e)?"application/x-www-form-urlencoded;charset=UTF-8":od(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof n?null:"text/plain;charset=UTF-8"}function md(e){const p=e.body;return null===p?0:od(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}rd.prototype={get body(){return this[dd].body},get bodyUsed(){return this[dd].disturbed},arrayBuffer(){return id.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return id.call(this).then((function(p){return Object.assign(new ed([],{type:e.toLowerCase()}),{[Qa]:p})}))},json(){var e=this;return id.call(this).then((function(p){try{return JSON.parse(p.toString())}catch(p){return rd.Promise.reject(new pd(`invalid json response body at ${e.url} reason: ${p.message}`,"invalid-json"))}}))},text(){return id.call(this).then((function(e){return e.toString()}))},buffer(){return id.call(this)},textConverted(){var e=this;return id.call(this).then((function(p){return function(e,p){if("function"!=typeof ad)throw new Error("The package `encoding` must be installed to use the textConverted() function");const a=p.get("content-type");let d,t,r="utf-8";a&&(d=/charset=([^;]*)/i.exec(a));t=e.slice(0,1024).toString(),!d&&t&&(d=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[wd]=Object.create(null),e instanceof gd){const p=e.raw(),a=Object.keys(p);for(const e of a)for(const a of p[e])this.append(e,a)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const p=e[Symbol.iterator];if(null!=p){if("function"!=typeof p)throw new TypeError("Header pairs must be iterable");const a=[];for(const p of e){if("object"!=typeof p||"function"!=typeof p[Symbol.iterator])throw new TypeError("Each header pair must be iterable");a.push(Array.from(p))}for(const e of a){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const p of Object.keys(e)){const a=e[p];this.append(p,a)}}}}get(e){hd(e=`${e}`);const p=fd(this[wd],e);return void 0===p?null:this[wd][p].join(", ")}forEach(e){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=Td(this),d=0;for(;d1&&void 0!==arguments[1]?arguments[1]:"key+value";const a=Object.keys(e[wd]).sort();return a.map("key"===p?function(e){return e.toLowerCase()}:"value"===p?function(p){return e[wd][p].join(", ")}:function(p){return[p.toLowerCase(),e[wd][p].join(", ")]})}gd.prototype.entries=gd.prototype[Symbol.iterator],Object.defineProperty(gd.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(gd.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const _d=Symbol("internal");function bd(e,p){const a=Object.create(yd);return a[_d]={target:e,kind:p,index:0},a}const yd=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==yd)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[_d];const p=e.target,a=e.kind,d=e.index,t=Td(p,a);return d>=t.length?{value:void 0,done:!0}:(this[_d].index=d+1,{value:t[d],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Ed(e){const p=Object.assign({__proto__:null},e[wd]),a=fd(e[wd],"Host");return void 0!==a&&(p[a]=p[a][0]),p}Object.defineProperty(yd,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const Sd=Symbol("Response internals"),Dd=d.STATUS_CODES;class Od{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rd.call(this,e,p);const a=p.status||200,d=new gd(p.headers);if(null!=e&&!d.has("Content-Type")){const p=ld(e);p&&d.append("Content-Type",p)}this[Sd]={url:p.url,status:a,statusText:p.statusText||Dd[a],headers:d,counter:p.counter}}get url(){return this[Sd].url||""}get status(){return this[Sd].status}get ok(){return this[Sd].status>=200&&this[Sd].status<300}get redirected(){return this[Sd].counter>0}get statusText(){return this[Sd].statusText}get headers(){return this[Sd].headers}clone(){return new Od(nd(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}rd.mixIn(Od.prototype),Object.defineProperties(Od.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Od.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Nd=Symbol("Request internals"),Pd=l.parse,Ad=l.format,kd="destroy"in n.Readable.prototype;function Gd(e){return"object"==typeof e&&"object"==typeof e[Nd]}class Vd{constructor(e){let p,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gd(e)?p=Pd(e.url):(p=e&&e.href?Pd(e.href):Pd(`${e}`),e={});let d=a.method||e.method||"GET";if(d=d.toUpperCase(),(null!=a.body||Gd(e)&&null!==e.body)&&("GET"===d||"HEAD"===d))throw new TypeError("Request with GET/HEAD method cannot have body");let t=null!=a.body?a.body:Gd(e)&&null!==e.body?nd(e):null;rd.call(this,t,{timeout:a.timeout||e.timeout||0,size:a.size||e.size||0});const r=new gd(a.headers||e.headers||{});if(null!=t&&!r.has("Content-Type")){const e=ld(t);e&&r.append("Content-Type",e)}let i=Gd(e)?e.signal:null;if("signal"in a&&(i=a.signal),null!=i&&!function(e){const p=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!p||"AbortSignal"!==p.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Nd]={method:d,redirect:a.redirect||e.redirect||"follow",headers:r,parsedURL:p,signal:i},this.follow=void 0!==a.follow?a.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==a.compress?a.compress:void 0===e.compress||e.compress,this.counter=a.counter||e.counter||0,this.agent=a.agent||e.agent}get method(){return this[Nd].method}get url(){return Ad(this[Nd].parsedURL)}get headers(){return this[Nd].headers}get redirect(){return this[Nd].redirect}get signal(){return this[Nd].signal}clone(){return new Vd(this)}}function Cd(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}rd.mixIn(Vd.prototype),Object.defineProperty(Vd.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Vd.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Cd.prototype=Object.create(Error.prototype),Cd.prototype.constructor=Cd,Cd.prototype.name="AbortError";const Rd=n.PassThrough,Ud=l.resolve;function Fd(e,p){if(!Fd.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return rd.Promise=Fd.Promise,new Fd.Promise((function(a,r){const i=new Vd(e,p),s=function(e){const p=e[Nd].parsedURL,a=new gd(e[Nd].headers);if(a.has("Accept")||a.set("Accept","*/*"),!p.protocol||!p.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(p.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!kd)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let d=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(d="0"),null!=e.body){const p=md(e);"number"==typeof p&&(d=String(p))}d&&a.set("Content-Length",d),a.has("User-Agent")||a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!a.has("Accept-Encoding")&&a.set("Accept-Encoding","gzip,deflate");let t=e.agent;return"function"==typeof t&&(t=t(p)),a.has("Connection")||t||a.set("Connection","close"),Object.assign({},p,{method:e.method,headers:Ed(a),agent:t})}(i),o=("https:"===s.protocol?t:d).request,l=i.signal;let m=null;const c=function(){let e=new Cd("The user aborted a request.");r(e),i.body&&i.body instanceof n.Readable&&i.body.destroy(e),m&&m.body&&m.body.emit("error",e)};if(l&&l.aborted)return void c();const h=function(){c(),w()},v=o(s);let f;function w(){v.abort(),l&&l.removeEventListener("abort",h),clearTimeout(f)}l&&l.addEventListener("abort",h),i.timeout&&v.once("socket",(function(e){f=setTimeout((function(){r(new pd(`network timeout at: ${i.url}`,"request-timeout")),w()}),i.timeout)})),v.on("error",(function(e){r(new pd(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),w()})),v.on("response",(function(e){clearTimeout(f);const p=function(e){const p=new gd;for(const a of Object.keys(e))if(!ud.test(a))if(Array.isArray(e[a]))for(const d of e[a])cd.test(d)||(void 0===p[wd][a]?p[wd][a]=[d]:p[wd][a].push(d));else cd.test(e[a])||(p[wd][a]=[e[a]]);return p}(e.headers);if(Fd.isRedirect(e.statusCode)){const d=p.get("Location"),t=null===d?null:Ud(i.url,d);switch(i.redirect){case"error":return r(new pd(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),void w();case"manual":if(null!==t)try{p.set("Location",t)}catch(e){r(e)}break;case"follow":if(null===t)break;if(i.counter>=i.follow)return r(new pd(`maximum redirect reached at: ${i.url}`,"max-redirect")),void w();const d={headers:new gd(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};return 303!==e.statusCode&&i.body&&null===md(i)?(r(new pd("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void w()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(d.method="GET",d.body=void 0,d.headers.delete("content-length")),a(Fd(new Vd(t,d))),void w())}}e.once("end",(function(){l&&l.removeEventListener("abort",h)}));let d=e.pipe(new Rd);const t={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:p,size:i.size,timeout:i.timeout,counter:i.counter},s=p.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===s||204===e.statusCode||304===e.statusCode)return m=new Od(d,t),void a(m);const o={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if("gzip"==s||"x-gzip"==s)return d=d.pipe(u.createGunzip(o)),m=new Od(d,t),void a(m);if("deflate"!=s&&"x-deflate"!=s){if("br"==s&&"function"==typeof u.createBrotliDecompress)return d=d.pipe(u.createBrotliDecompress()),m=new Od(d,t),void a(m);m=new Od(d,t),a(m)}else{e.pipe(new Rd).once("data",(function(e){d=8==(15&e[0])?d.pipe(u.createInflate()):d.pipe(u.createInflateRaw()),m=new Od(d,t),a(m)}))}})),function(e,p){const a=p.body;null===a?e.end():od(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(v,i)}))}Fd.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Fd.Promise=global.Promise;const xd=La.exports((e=>console.warn(e)));class jd extends Error{constructor(e,p,a){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,Object.defineProperty(this,"code",{get:()=>(xd(new Ba("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),this.headers=a.headers||{};const d=Object.assign({},a.request);a.request.headers.authorization&&(d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=d}}function Bd(e){(cp(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let p,a,d={};return(e.request&&e.request.fetch||Fd)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((t=>{a=t.url,p=t.status;for(const e of t.headers)d[e[0]]=e[1];if(204===p||205===p)return;if("HEAD"===e.method){if(p<400)return;throw new jd(t.statusText,p,{headers:d,request:e})}if(304===p)throw new jd("Not modified",p,{headers:d,request:e});if(p>=400)return t.text().then((a=>{const t=new jd(a,p,{headers:d,request:e});try{let e=JSON.parse(t.message);Object.assign(t,e);let p=e.errors;t.message=t.message+": "+p.map(JSON.stringify).join(", ")}catch(e){}throw t}));const r=t.headers.get("content-type");return/application\/json/.test(r)?t.json():!r||/^text\/|charset=utf-8$/.test(r)?t.text():function(e){return e.arrayBuffer()}(t)})).then((e=>({status:p,url:a,headers:d,data:e}))).catch((p=>{if(p instanceof jd)throw p;throw new jd(p.message,500,{headers:d,request:e})}))}const Ld=function e(p,a){const d=p.defaults(a);return Object.assign((function(p,a){const t=d.merge(p,a);if(!t.request||!t.request.hook)return Bd(d.parse(t));const r=(e,p)=>Bd(d.parse(d.merge(e,p)));return Object.assign(r,{endpoint:d,defaults:e.bind(null,d)}),t.request.hook(r,t)}),{endpoint:d,defaults:e.bind(null,d)})}(Pp,{headers:{"user-agent":`octokit-request.js/5.4.12 ${Qe()}`}});class qd extends Error{constructor(e,p){super(p.data.errors[0].message),Object.assign(this,p.data),Object.assign(this,{headers:p.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Id=["method","baseUrl","url","headers","request","query","mediaType"],$d=/\/api\/v3\/?$/;function Hd(e,p){const a=e.defaults(p);return Object.assign(((e,p)=>function(e,p,a){if("string"==typeof p&&a&&"query"in a)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));const d="string"==typeof p?Object.assign({query:p},a):p,t=Object.keys(d).reduce(((e,p)=>Id.includes(p)?(e[p]=d[p],e):(e.variables||(e.variables={}),e.variables[p]=d[p],e)),{}),r=d.baseUrl||e.endpoint.DEFAULTS.baseUrl;return $d.test(r)&&(t.url=r.replace($d,"/api/graphql")),e(t).then((e=>{if(e.data.errors){const p={};for(const a of Object.keys(e.headers))p[a]=e.headers[a];throw new qd(t,{headers:p,data:e.data})}return e.data.data}))}(a,e,p)),{defaults:Hd.bind(null,a),endpoint:Ld.endpoint})}async function Md(e){const p=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:p}}async function zd(e,p,a,d){const t=p.endpoint.merge(a,d);return t.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),p(t)}Hd(Ld,{headers:{"user-agent":`octokit-graphql.js/4.5.8 ${Qe()}`},method:"POST",url:"/graphql"});const Wd=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Md.bind(null,e),{hook:zd.bind(null,e)})};class Jd{constructor(e={}){const p=new mp,a={baseUrl:Ya.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:p.bind(null,"request")}),mediaType:{previews:[],format:""}};var d;if(a.headers["user-agent"]=[e.userAgent,`octokit-core.js/3.6.0 ${Qe()}`].filter(Boolean).join(" "),e.baseUrl&&(a.baseUrl=e.baseUrl),e.previews&&(a.mediaType.previews=e.previews),e.timeZone&&(a.headers["time-zone"]=e.timeZone),this.request=Ya.defaults(a),this.graphql=(d=this.request,Hd(d,{method:"POST",url:"/graphql"})).defaults(a),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=p,e.authStrategy){const{authStrategy:a,...d}=e,t=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:d},e.auth));p.wrap("request",t.hook),this.auth=t}else if(e.auth){const a=Wd(e.auth);p.wrap("request",a.hook),this.auth=a}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach((p=>{Object.assign(this,p(this,e))}))}static defaults(e){return class extends(this){constructor(...p){const a=p[0]||{};super("function"!=typeof e?Object.assign({},e,a,a.userAgent&&e.userAgent?{userAgent:`${a.userAgent} ${e.userAgent}`}:null):e(a))}}}static plugin(...e){var p;const a=this.plugins;return(p=class extends(this){}).plugins=a.concat(e.filter((e=>!a.includes(e)))),p}}Jd.VERSION="3.6.0",Jd.plugins=[];var Kd=w(Object.freeze({__proto__:null,Octokit:Jd}));const Yd={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.rest.reactions.deleteLegacy() is deprecated, see https://docs.github.com/rest/reference/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};function Zd(e,p,a,d,t){const r=e.request.defaults(d);return Object.assign((function(...d){let i=r.endpoint.merge(...d);if(t.mapToData)return i=Object.assign({},i,{data:i[t.mapToData],[t.mapToData]:void 0}),r(i);if(t.renamed){const[d,r]=t.renamed;e.log.warn(`octokit.${p}.${a}() has been renamed to octokit.${d}.${r}()`)}if(t.deprecated&&e.log.warn(t.deprecated),t.renamedParameters){const i=r.endpoint.merge(...d);for(const[d,r]of Object.entries(t.renamedParameters))d in i&&(e.log.warn(`"${d}" parameter is deprecated for "octokit.${p}.${a}()". Use "${r}" instead`),r in i||(i[r]=i[d]),delete i[d]);return r(i)}return r(...d)}),r)}function Qd(e){const p=function(e,p){const a={};for(const[d,t]of Object.entries(p))for(const[p,r]of Object.entries(t)){const[t,i,s]=r,[o,n]=t.split(/ /),l=Object.assign({method:o,url:n},i);a[d]||(a[d]={});const m=a[d];m[p]=s?Zd(e,d,p,l,s):e.request.defaults(l)}return a}(e,Yd);return{...p,rest:p}}Qd.VERSION="4.15.1";var Xd=w(Object.freeze({__proto__:null,restEndpointMethods:Qd}));function et(e,p,a){const d="function"==typeof p?p.endpoint(a):e.request.endpoint(p,a),t="function"==typeof p?p:e.request,r=d.method,i=d.headers;let s=d.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!s)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const p=e.data.incomplete_results,a=e.data.repository_selection,d=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const t=Object.keys(e.data)[0],r=e.data[t];return e.data=r,void 0!==p&&(e.data.incomplete_results=p),void 0!==a&&(e.data.repository_selection=a),e.data.total_count=d,e}(await t({method:r,url:s,headers:i}));return s=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return s="",{value:{status:200,headers:{},data:[]}}}}})}}function pt(e,p,a,d){return"function"==typeof a&&(d=a,a=void 0),at(e,[],et(e,p,a)[Symbol.asyncIterator](),d)}function at(e,p,a,d){return a.next().then((t=>{if(t.done)return p;let r=!1;return p=p.concat(d?d(t.value,(function(){r=!0})):t.value.data),r?p:at(e,p,a,d)}))}const dt=Object.assign(pt,{iterator:et}),tt=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function rt(e){return{paginate:Object.assign(pt.bind(null,e),{iterator:et.bind(null,e)})}}rt.VERSION="2.21.3";var it=w(Object.freeze({__proto__:null,composePaginateRest:dt,isPaginatingEndpoint:function(e){return"string"==typeof e&&tt.includes(e)},paginateRest:rt,paginatingEndpoints:tt})),st=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),ot=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),nt=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&st(p,e,a);return ot(p,e),p};Object.defineProperty($e,"__esModule",{value:!0}),$e.getOctokitOptions=$e.GitHub=$e.context=void 0;const lt=nt(Le),mt=nt(He),ut=Kd,ct=Xd,ht=it;$e.context=new lt.Context;const vt=mt.getApiBaseUrl(),ft={baseUrl:vt,request:{agent:mt.getProxyAgent(vt)}};$e.GitHub=ut.Octokit.plugin(ct.restEndpointMethods,ht.paginateRest).defaults(ft),$e.getOctokitOptions=function(e,p){const a=Object.assign({},p||{}),d=mt.getAuthString(e,a);return d&&(a.auth=d),a};var wt=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),gt=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),Tt=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&wt(p,e,a);return gt(p,e),p};Object.defineProperty(Be,"__esModule",{value:!0}),Be.getOctokit=Be.context=void 0;const _t=Tt(Le),bt=$e;Be.context=new _t.Context,Be.getOctokit=function(e,p){return new bt.GitHub(bt.getOctokitOptions(e,p))};var yt={},Et={},St={},Dt={};!function(a){var d,t=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),r=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),i=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&t(p,e,a);return r(p,e),p},s=f&&f.__awaiter||function(e,p,a,d){return new(a||(a=Promise))((function(t,r){function i(e){try{o(d.next(e))}catch(e){r(e)}}function s(e){try{o(d.throw(e))}catch(e){r(e)}}function o(e){var p;e.done?t(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((d=d.apply(e,p||[])).next())}))};Object.defineProperty(a,"__esModule",{value:!0}),a.getCmdPath=a.tryGetExecutablePath=a.isRooted=a.isDirectory=a.exists=a.IS_WINDOWS=a.unlink=a.symlink=a.stat=a.rmdir=a.rename=a.readlink=a.readdir=a.mkdir=a.lstat=a.copyFile=a.chmod=void 0;const o=i(e),n=i(p);function l(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}d=o.promises,a.chmod=d.chmod,a.copyFile=d.copyFile,a.lstat=d.lstat,a.mkdir=d.mkdir,a.readdir=d.readdir,a.readlink=d.readlink,a.rename=d.rename,a.rmdir=d.rmdir,a.stat=d.stat,a.symlink=d.symlink,a.unlink=d.unlink,a.IS_WINDOWS="win32"===process.platform,a.exists=function(e){return s(this,void 0,void 0,(function*(){try{yield a.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},a.isDirectory=function(e,p=!1){return s(this,void 0,void 0,(function*(){return(p?yield a.stat(e):yield a.lstat(e)).isDirectory()}))},a.isRooted=function(e){if(!(e=function(e){if(e=e||"",a.IS_WINDOWS)return(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\");return e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return a.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},a.tryGetExecutablePath=function(e,p){return s(this,void 0,void 0,(function*(){let d;try{d=yield a.stat(e)}catch(p){"ENOENT"!==p.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${p}`)}if(d&&d.isFile())if(a.IS_WINDOWS){const a=n.extname(e).toUpperCase();if(p.some((e=>e.toUpperCase()===a)))return e}else if(l(d))return e;const t=e;for(const r of p){e=t+r,d=void 0;try{d=yield a.stat(e)}catch(p){"ENOENT"!==p.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${p}`)}if(d&&d.isFile()){if(a.IS_WINDOWS){try{const p=n.dirname(e),d=n.basename(e).toUpperCase();for(const t of yield a.readdir(p))if(d===t.toUpperCase()){e=n.join(p,t);break}}catch(p){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${p}`)}return e}if(l(d))return e}}return""}))},a.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(Dt);var Ot=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),Nt=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),Pt=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&Ot(p,e,a);return Nt(p,e),p},At=f&&f.__awaiter||function(e,p,a,d){return new(a||(a=Promise))((function(t,r){function i(e){try{o(d.next(e))}catch(e){r(e)}}function s(e){try{o(d.throw(e))}catch(e){r(e)}}function o(e){var p;e.done?t(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((d=d.apply(e,p||[])).next())}))};Object.defineProperty(St,"__esModule",{value:!0}),St.findInPath=St.which=St.mkdirP=St.rmRF=St.mv=St.cp=void 0;const kt=s,Gt=Pt(h),Vt=Pt(p),Ct=o,Rt=Pt(Dt),Ut=Ct.promisify(Gt.exec),Ft=Ct.promisify(Gt.execFile);function xt(e){return At(this,void 0,void 0,(function*(){if(Rt.IS_WINDOWS){if(/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const p=Rt.getCmdPath();(yield Rt.isDirectory(e,!0))?yield Ut(`${p} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}}):yield Ut(`${p} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield Rt.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let p=!1;try{p=yield Rt.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}p?yield Ft("rm",["-rf",`${e}`]):yield Rt.unlink(e)}}))}function jt(e){return At(this,void 0,void 0,(function*(){kt.ok(e,"a path argument must be provided"),yield Rt.mkdir(e,{recursive:!0})}))}function Bt(e){return At(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'tool' is required");const p=[];if(Rt.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(Vt.delimiter))e&&p.push(e);if(Rt.isRooted(e)){const a=yield Rt.tryGetExecutablePath(e,p);return a?[a]:[]}if(e.includes(Vt.sep))return[];const a=[];if(process.env.PATH)for(const e of process.env.PATH.split(Vt.delimiter))e&&a.push(e);const d=[];for(const t of a){const a=yield Rt.tryGetExecutablePath(Vt.join(t,e),p);a&&d.push(a)}return d}))}function Lt(e,p,a,d){return At(this,void 0,void 0,(function*(){if(a>=255)return;a++,yield jt(p);const t=yield Rt.readdir(e);for(const r of t){const t=`${e}/${r}`,i=`${p}/${r}`;(yield Rt.lstat(t)).isDirectory()?yield Lt(t,i,a,d):yield qt(t,i,d)}yield Rt.chmod(p,(yield Rt.stat(e)).mode)}))}function qt(e,p,a){return At(this,void 0,void 0,(function*(){if((yield Rt.lstat(e)).isSymbolicLink()){try{yield Rt.lstat(p),yield Rt.unlink(p)}catch(e){"EPERM"===e.code&&(yield Rt.chmod(p,"0666"),yield Rt.unlink(p))}const a=yield Rt.readlink(e);yield Rt.symlink(a,p,Rt.IS_WINDOWS?"junction":null)}else(yield Rt.exists(p))&&!a||(yield Rt.copyFile(e,p))}))}St.cp=function(e,p,a={}){return At(this,void 0,void 0,(function*(){const{force:d,recursive:t,copySourceDirectory:r}=function(e){const p=null==e.force||e.force,a=Boolean(e.recursive),d=null==e.copySourceDirectory||Boolean(e.copySourceDirectory);return{force:p,recursive:a,copySourceDirectory:d}}(a),i=(yield Rt.exists(p))?yield Rt.stat(p):null;if(i&&i.isFile()&&!d)return;const s=i&&i.isDirectory()&&r?Vt.join(p,Vt.basename(e)):p;if(!(yield Rt.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield Rt.stat(e)).isDirectory()){if(!t)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield Lt(e,s,0,d)}else{if(""===Vt.relative(e,s))throw new Error(`'${s}' and '${e}' are the same file`);yield qt(e,s,d)}}))},St.mv=function(e,p,a={}){return At(this,void 0,void 0,(function*(){if(yield Rt.exists(p)){let d=!0;if((yield Rt.isDirectory(p))&&(p=Vt.join(p,Vt.basename(e)),d=yield Rt.exists(p)),d){if(null!=a.force&&!a.force)throw new Error("Destination already exists");yield xt(p)}}yield jt(Vt.dirname(p)),yield Rt.rename(e,p)}))},St.rmRF=xt,St.mkdirP=jt,St.which=function e(p,a){return At(this,void 0,void 0,(function*(){if(!p)throw new Error("parameter 'tool' is required");if(a){const a=yield e(p,!1);if(!a)throw Rt.IS_WINDOWS?new Error(`Unable to locate executable file: ${p}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${p}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return a}const d=yield Bt(p);return d&&d.length>0?d[0]:""}))},St.findInPath=Bt;var It=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),$t=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),Ht=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&It(p,e,a);return $t(p,e),p},Mt=f&&f.__awaiter||function(e,p,a,d){return new(a||(a=Promise))((function(t,r){function i(e){try{o(d.next(e))}catch(e){r(e)}}function s(e){try{o(d.throw(e))}catch(e){r(e)}}function o(e){var p;e.done?t(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((d=d.apply(e,p||[])).next())}))};Object.defineProperty(Et,"__esModule",{value:!0}),Et.argStringToArray=Et.ToolRunner=void 0;const zt=Ht(a),Wt=Ht(i),Jt=Ht(h),Kt=Ht(p),Yt=Ht(St),Zt=Ht(Dt),Qt=v,Xt="win32"===process.platform;class er extends Wt.EventEmitter{constructor(e,p,a){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=p||[],this.options=a||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,p){const a=this._getSpawnFileName(),d=this._getSpawnArgs(e);let t=p?"":"[command]";if(Xt)if(this._isCmdFile()){t+=a;for(const e of d)t+=` ${e}`}else if(e.windowsVerbatimArguments){t+=`"${a}"`;for(const e of d)t+=` ${e}`}else{t+=this._windowsQuoteCmdArg(a);for(const e of d)t+=` ${this._windowsQuoteCmdArg(e)}`}else{t+=a;for(const e of d)t+=` ${e}`}return t}_processLineBuffer(e,p,a){try{let d=p+e.toString(),t=d.indexOf(zt.EOL);for(;t>-1;){a(d.substring(0,t)),d=d.substring(t+zt.EOL.length),t=d.indexOf(zt.EOL)}return d}catch(e){return this._debug(`error processing line. Failed with error ${e}`),""}}_getSpawnFileName(){return Xt&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(Xt&&this._isCmdFile()){let p=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args)p+=" ",p+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a);return p+='"',[p]}return this.args}_endsWith(e,p){return e.endsWith(p)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const p=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=!1;for(const d of e)if(p.some((e=>e===d))){a=!0;break}if(!a)return e;let d='"',t=!0;for(let p=e.length;p>0;p--)d+=e[p-1],t&&"\\"===e[p-1]?d+="\\":'"'===e[p-1]?(t=!0,d+='"'):t=!1;return d+='"',d.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let p='"',a=!0;for(let d=e.length;d>0;d--)p+=e[d-1],a&&"\\"===e[d-1]?p+="\\":'"'===e[d-1]?(a=!0,p+="\\"):a=!1;return p+='"',p.split("").reverse().join("")}_cloneExecOptions(e){const p={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return p.outStream=e.outStream||process.stdout,p.errStream=e.errStream||process.stderr,p}_getSpawnOptions(e,p){e=e||{};const a={};return a.cwd=e.cwd,a.env=e.env,a.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(a.argv0=`"${p}"`),a}exec(){return Mt(this,void 0,void 0,(function*(){return!Zt.isRooted(this.toolPath)&&(this.toolPath.includes("/")||Xt&&this.toolPath.includes("\\"))&&(this.toolPath=Kt.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Yt.which(this.toolPath,!0),new Promise(((e,p)=>Mt(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(const e of this.args)this._debug(` ${e}`);const a=this._cloneExecOptions(this.options);!a.silent&&a.outStream&&a.outStream.write(this._getCommandString(a)+zt.EOL);const d=new pr(a,this.toolPath);if(d.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield Zt.exists(this.options.cwd)))return p(new Error(`The cwd: ${this.options.cwd} does not exist!`));const t=this._getSpawnFileName(),r=Jt.spawn(t,this._getSpawnArgs(a),this._getSpawnOptions(this.options,t));let i="";r.stdout&&r.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!a.silent&&a.outStream&&a.outStream.write(e),i=this._processLineBuffer(e,i,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let s="";if(r.stderr&&r.stderr.on("data",(e=>{if(d.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!a.silent&&a.errStream&&a.outStream){(a.failOnStdErr?a.errStream:a.outStream).write(e)}s=this._processLineBuffer(e,s,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),r.on("error",(e=>{d.processError=e.message,d.processExited=!0,d.processClosed=!0,d.CheckComplete()})),r.on("exit",(e=>{d.processExitCode=e,d.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),d.CheckComplete()})),r.on("close",(e=>{d.processExitCode=e,d.processExited=!0,d.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),d.CheckComplete()})),d.on("done",((a,d)=>{i.length>0&&this.emit("stdline",i),s.length>0&&this.emit("errline",s),r.removeAllListeners(),a?p(a):e(d)})),this.options.input){if(!r.stdin)throw new Error("child process missing stdin");r.stdin.end(this.options.input)}}))))}))}}Et.ToolRunner=er,Et.argStringToArray=function(e){const p=[];let a=!1,d=!1,t="";function r(e){d&&'"'!==e&&(t+="\\"),t+=e,d=!1}for(let i=0;i0&&(p.push(t),t=""):d?r(s):a=!a}return t.length>0&&p.push(t.trim()),p};class pr extends Wt.EventEmitter{constructor(e,p){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!p)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=p,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=Qt.setTimeout(pr.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){const p=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(p)}e._setResult()}}}var ar=f&&f.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),dr=f&&f.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),tr=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&ar(p,e,a);return dr(p,e),p},rr=f&&f.__awaiter||function(e,p,a,d){return new(a||(a=Promise))((function(t,r){function i(e){try{o(d.next(e))}catch(e){r(e)}}function s(e){try{o(d.throw(e))}catch(e){r(e)}}function o(e){var p;e.done?t(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((d=d.apply(e,p||[])).next())}))};Object.defineProperty(yt,"__esModule",{value:!0});var ir=yt.getExecOutput=yt.exec=void 0;const sr=c,or=tr(Et);function nr(e,p,a){return rr(this,void 0,void 0,(function*(){const d=or.argStringToArray(e);if(0===d.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const t=d[0];p=d.slice(1).concat(p||[]);return new or.ToolRunner(t,p,a).exec()}))}yt.exec=nr,ir=yt.getExecOutput=function(e,p,a){var d,t;return rr(this,void 0,void 0,(function*(){let r="",i="";const s=new sr.StringDecoder("utf8"),o=new sr.StringDecoder("utf8"),n=null===(d=null==a?void 0:a.listeners)||void 0===d?void 0:d.stdout,l=null===(t=null==a?void 0:a.listeners)||void 0===t?void 0:t.stderr,m=Object.assign(Object.assign({},null==a?void 0:a.listeners),{stdout:e=>{r+=s.write(e),n&&n(e)},stderr:e=>{i+=o.write(e),l&&l(e)}}),u=yield nr(e,p,Object.assign(Object.assign({},a),{listeners:m}));return r+=s.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}}))};var lr={exports:{}},mr=e,ur=p,cr=mr.exists||ur.exists,hr=function(e,p){var a,d=[];["end_of_record"].concat(e.split("\n")).forEach((function(e){var p,t,r=(e=e.trim()).split(":"),i=[r.shift(),r.join(":")];switch(i[0].toUpperCase()){case"TN":a.title=i[1].trim();break;case"SF":a.file=i.slice(1).join(":").trim();break;case"FNF":a.functions.found=Number(i[1].trim());break;case"FNH":a.functions.hit=Number(i[1].trim());break;case"LF":a.lines.found=Number(i[1].trim());break;case"LH":a.lines.hit=Number(i[1].trim());break;case"DA":p=i[1].split(","),a.lines.details.push({line:Number(p[0]),hit:Number(p[1])});break;case"FN":t=i[1].split(","),a.functions.details.push({name:t[1],line:Number(t[0])});break;case"FNDA":t=i[1].split(","),a.functions.details.some((function(e,p){if(e.name===t[1]&&void 0===e.hit)return a.functions.details[p].hit=Number(t[0]),!0}));break;case"BRDA":t=i[1].split(","),a.branches.details.push({line:Number(t[0]),block:Number(t[1]),branch:Number(t[2]),taken:"-"===t[3]?0:Number(t[3])});break;case"BRF":a.branches.found=Number(i[1]);break;case"BRH":a.branches.hit=Number(i[1])}e.indexOf("end_of_record")>-1&&(d.push(a),a={lines:{found:0,hit:0,details:[]},functions:{hit:0,found:0,details:[]},branches:{hit:0,found:0,details:[]}})})),d.shift(),d.length?p(null,d):p("Failed to parse string")};lr.exports=function(e,p){cr(e,(function(a){if(!a)return hr(e,p);mr.readFile(e,"utf8",(function(e,a){hr(a,p)}))}))},lr.exports.source=hr;const vr=e=>new Promise(((p,a)=>{lr.exports(e,((e,d)=>{e?a(e):p(d)}))})),fr=e=>{let p=0,a=0;for(const d of e)p+=d.lines.hit,a+=d.lines.found;return p/a*100},wr=e=>(...p)=>{const a="object"==typeof p[0]?Object.keys(p[0]).map((e=>` ${e}='${p[0][e]}'`)).join(""):"",d="string"==typeof p[0]?p:p.slice(1);return`<${e}${a}>${d.join("")}${e}>`},gr=wr("details"),Tr=wr("summary"),_r=wr("tr"),br=wr("td"),yr=wr("th"),Er=wr("b"),Sr=wr("table"),Dr=wr("tbody"),Or=wr("a"),Nr=(...e)=>e.join(""),Pr=e=>{if(!e)return"N/A";const p=0===e.found?100:e.hit/e.found*100,a=p.toFixed(2).replace(/\.0*$/u,"");return(100===p?Nr:Er)(`${a}%`)},Ar=(e,p,a)=>_r(br(((e,p,a)=>{const d=e.file.replace(a.prefix,""),t=`https://github.com/${a.repository}/blob/${a.commit}/${d}`,r=d.split("/"),i=r[r.length-1];return Nr(p?" ":"",Or({href:t},i))})(e,p,a)),br(Pr(e.branches)),br(Pr(e.functions)),br(Pr(e.lines)),br(((e,p)=>[...(e.branches?e.branches.details:[]).filter((e=>0===e.taken)).map((e=>e.line)),...(e.lines?e.lines.details:[]).filter((e=>0===e.hit)).map((e=>e.line))].sort().map((a=>{const d=e.file.replace(p.prefix,""),t=`https://github.com/${p.repository}/blob/${p.commit}/${d}#L${a}`;return Or({href:t},a)})).join(", "))(e,a))),kr=e=>""===e?"":_r(br({colspan:5},Er(e))),Gr=e=>e.toFixed(2)<0?"❌":"✅",Vr=e=>p=>0===e.filter((e=>e.lines.found===p.lines.found&&e.lines.hit===p.lines.hit)).length,Cr=(e,p,a)=>{const{appName:d,base:t}=a,r=p?fr(p):0,i=(p?fr(e):0)-r,s=i>0?"+":"";let o="";i<0?o="▾":i>0&&(o="▴");const n=p?yr(Gr(i)," ",o," ",s,i.toFixed(2),"%"):"";let l=e;if(p){const a=e.filter(Vr(p));l=p.filter(Vr(e)).concat(a)}const m=`Coverage after merging into ${Er(t)} `,u=Dr(d?_r(yr(d),yr(fr(e).toFixed(2),"%"),n):_r(yr(fr(e).toFixed(2),"%"),n));return Nr(m,Sr(u),"\n\n",gr(Tr("Coverage Report"),((e,p)=>{const a=_r(yr("File"),yr("Branches"),yr("Funcs"),yr("Lines"),yr("Uncovered Lines")),d={};for(const a of e){const e=a.file.replace(p.prefix,"").split("/").slice(0,-1).join("/");d[e]=d[e]||[],d[e].push(a)}const t=Object.keys(d).sort().reduce(((e,a)=>[...e,kr(a),...d[a].map((e=>Ar(e,""!==a,p)))]),[]);return Sr(Dr(a,...t))})(l,a)))},Rr=(e,p,a)=>Cr(e,p,a),Ur=(e,p,a)=>((e,p,a)=>{const{base:d,folder:t}=a,r=e.map((e=>{const a=p.find((p=>p.packageName===e.packageName)),d=a?fr(a.lcov):0,t=(a?fr(e.lcov):0)-d,r=t>0?"+":"";let i="";t<0?i="▾":t>0&&(i="▴");const s=a?yr(Gr(t)," ",i," ",r,t.toFixed(2),"%"):yr(" N/A ");return _r(yr(e.packageName),yr(fr(e.lcov).toFixed(2),"%"),s)})),i=Sr(Dr(r.join(""))),s=`Coverage for the ${Er(t)} folder after merging into ${Er(d)} `;return Nr(s,i)})(e,p,a),Fr=(e,p)=>p+e,xr=async({client:e,context:p,prNumber:a,body:d,hiddenHeader:t})=>{const r=await(async({client:e,context:p,prNumber:a,hiddenHeader:d})=>{const{data:t}=await e.issues.listComments({...p.repo,issue_number:a});return t.filter((({body:e})=>e.startsWith(d)))})({client:e,context:p,prNumber:a,hiddenHeader:t}),i=r.pop();return await(({client:e,context:p,comments:a})=>Promise.all(a.map((({id:a})=>e.issues.deleteComment({...p.repo,comment_id:a})))))({client:e,context:p,comments:r}),i?(({client:e,context:p,body:a,commentId:d},t)=>e.issues.updateComment({...p.repo,comment_id:d,body:Fr(a,t)}))({client:e,context:p,body:d,commentId:i.id},t):(({client:e,context:p,prNumber:a,body:d},t)=>e.issues.createComment({...p.repo,issue_number:a,body:Fr(d,t)}))({client:e,context:p,prNumber:a,body:d},t)},jr=(a,d)=>{let t=d||[];return e.readdirSync(a).forEach((d=>{t=e.statSync(p.join(a,d)).isDirectory()?jr(p.join(a,d),t):t.filter((e=>e.path.includes("lcov.info"))).concat({name:a.split("/")[1],path:p.join(a,d)})})),t},Br=(a,d)=>{let t=d||[];return e.readdirSync(a).forEach((d=>{t=e.statSync(p.join(a,d)).isDirectory()?Br(p.join(a,d),t):t.filter((e=>e.path.includes("lcov-base"))).concat({name:a.split("/")[1],path:p.join(a,d)})})),t};(async()=>{const{context:p={}}=Be||{},a=je.getInput("github-token"),d=je.getInput("lcov-file")||"./coverage/lcov.info",t=je.getInput("lcov-base"),r=je.getInput("app-name"),i=je.getInput("monorepo-base-path"),s=!i&&await e.promises.readFile(d,"utf-8").catch((e=>console.error(e)));if(!i&&!s)return void console.log(`No coverage report found at '${d}', exiting...`);const o=t&&await e.promises.readFile(t,"utf-8").catch((e=>console.error(e)));i||!t||o||console.log(`No coverage report found at '${t}', ignoring...`);const n=i?jr(i):[],l=i?Br(i):[],m=[],u=[];for(const p of n)if(p.path.includes(".info")){const a=await e.promises.readFile(p.path,"utf8"),d=await vr(a);m.push({packageName:p.name,lcov:d})}for(const e of l)if(e.path.includes(".info")){console.log((await ir("git",["status"])).stdout);const p=(await ir("git",["show",`origin/main:./${i.split("/")[1]}/${e.name}/lcov-base.info`])).stdout,a=await vr(p);u.push({packageName:e.name,lcov:a})}const c={repository:p.payload.repository.full_name,commit:p.payload.pull_request.head.sha,prefix:`${process.env.GITHUB_WORKSPACE}/`,head:p.payload.pull_request.head.ref,base:p.payload.pull_request.base.ref,appName:r,folder:i.split("/")[1]},h=!i&&await vr(s),v=o&&await vr(o),f=Be.getOctokit(a);await xr({client:f,context:p,prNumber:p.payload.pull_request.number,body:m.length?Ur(m,u,c):Rr(h,v,c),hiddenHeader:r?`\x3c!-- ${r}-code-coverage-assistant --\x3e`:`\x3c!-- monorepo-code-coverage-assistant ${i.split("/")[1]} --\x3e`})})().catch((e=>{console.log(e),je.setFailed(e.message)}));
diff --git a/src/index.js b/src/index.js
index 5b053047..7797e6b3 100644
--- a/src/index.js
+++ b/src/index.js
@@ -102,10 +102,11 @@ const main = async () => {
for (const file of lcovBaseArray) {
if (file.path.includes(".info")) {
// const rLcovBase = await promises.readFile(file.path, "utf8");
+ console.log((await getExecOutput("git", ["status"])).stdout);
const rLcovBase = (
await getExecOutput("git", [
"show",
- `main:./${monorepoBasePath.split("/")[1]}/${
+ `origin/main:./${monorepoBasePath.split("/")[1]}/${
file.name
}/lcov-base.info`,
])