login-action/dist/index.js

18 lines
1.9 MiB
JavaScript
Raw Normal View History

2026-03-03 17:05:14 +00:00
import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={3311:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.response=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:o}}))}}t.ClientStreamingCall=ClientStreamingCall},9499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var n;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(n=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=n.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==n.PENDING)throw new Error(`cannot resolve ${n[this.state].toLowerCase()}`);this._resolve(e);this._state=n.RESOLVED}reject(e){if(this.state!==n.PENDING)throw new Error(`cannot reject ${n[this.state].toLowerCase()}`);this._reject(e);this._state=n.REJECTED}resolvePending(e){if(this._state===n.PENDING)this.resolve(e)}rejectPending(e){if(this._state===n.PENDING)this.reject(e)}}t.Deferred=Deferred},800:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.responses=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}}))}}t.DuplexStreamingCall=DuplexStreamingCall},6762:(e,t,n)=>{var o;o={value:true};var i=n(2554);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return i.ServiceType}});var d=n(3402);o={enumerable:true,get:function(){return d.readMethodOptions}};o={enumerable:true,get:function(){return d.readMethodOption}};o={enumerable:true,get:function(){return d.readServiceOption}};var p=n(422);o={enumerable:true,get:function(){return p.RpcError}};var f=n(3474);o={enumerable:true,get:function(){return f.mergeRpcOptions}};var y=n(6407);o={enumerable:true,get:function(){return y.RpcOutputStreamController}};var v=n(5435);o={enumerable:true,get:function(){return v.TestTransport}};var D=n(9499);o={enumerable:true,get:function(){return D.Deferred}};o={enumerable:true,get:function(){return D.DeferredState}};var M=n(800);o={enumerable:true,get:function(){return M.DuplexStreamingCall}};var U=n(3311);o={enumerable:true,get:function(){return U.ClientStreamingCall}};var V=n(2715);o={enumerable:true,get:function(){return V.ServerStreamingCall}}
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
2026-03-03 17:05:14 +00:00
*/const i=n(9896);const d=n(857);const p=n(6928);const f=n(6982);const y={fs:i.constants,os:d.constants};const v="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",D=/XXXXXX/,M=3,U=(y.O_CREAT||y.fs.O_CREAT)|(y.O_EXCL||y.fs.O_EXCL)|(y.O_RDWR||y.fs.O_RDWR),V=d.platform()==="win32",j=y.EBADF||y.os.errno.EBADF,K=y.ENOENT||y.os.errno.ENOENT,ee=448,te=384,re="exit",ne=[],se=i.rmdirSync.bind(i);let oe=false;function rimraf(e,t){return i.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return i.rmSync(e,{recursive:true})}function tmpName(e,t){const n=_parseArguments(e,t),o=n[0],d=n[1];_assertAndSanitizeOptions(o,(function(e,t){if(e)return d(e);let n=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);i.stat(e,(function(t){if(!t){if(n-- >0)return _getUniqueName();return d(new Error("Could not get a unique tmp filename, max tries reached "+e))}d(null,e)}))}catch(e){d(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),n=t[0];const o=_assertAndSanitizeOptionsSync(n);let d=o.tries;do{const e=_generateTmpName(o);try{i.statSync(e)}catch(t){return e}}while(d-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const n=_parseArguments(e,t),o=n[0],d=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return d(e);i.open(t,U,o.mode||te,(function _fileCreated(e,n){if(e)return d(e);if(o.discardDescriptor){return i.close(n,(function _discardCallback(e){return d(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,o,false))}))}else{const e=o.discardDescriptor||o.detachDescriptor;d(null,t,n,_prepareTmpFileRemoveCallback(t,e?-1:n,o,false))}}))}))}function fileSync(e){const t=_parseArguments(e),n=t[0];const o=n.discardDescriptor||n.detachDescriptor;const d=tmpNameSync(n);let p=i.openSync(d,U,n.mode||te);if(n.discardDescriptor){i.closeSync(p);p=undefined}return{name:d,fd:p,removeCallback:_prepareTmpFileRemoveCallback(d,o?-1:p,n,true)}}function dir(e,t){const n=_parseArguments(e,t),o=n[0],d=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return d(e);i.mkdir(t,o.mode||ee,(function _dirCreated(e){if(e)return d(e);d(null,t,_prepareTmpDirRemoveCallback(t,o,false))}))}))}function dirSync(e){const t=_parseArguments(e),n=t[0];const o=tmpNameSync(n);i.mkdirSync(o,n.mode||ee);return{name:o,removeCallback:_prepareTmpDirRemoveCallback(o,n,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])i.close(e[0],(function(){i.unlink(e[1],_handler)}));else i.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])i.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{i.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,n,o){const i=_prepareRemoveCallback(_removeFileSync,[t,e],o);const d=_prepareRemoveCallback(_removeFileAsync,[t,e],o,i);if(!n.keep)ne.unshift(i);return o?i:d}function _prepareTmpDirRemoveCallback(e,t,n){const o=t.unsafeCleanup?rimraf:i.rmdir.bind(i);const d=t.unsafeCleanup?FN_RIMRAF_SYNC:se;const p=_prepareRemoveCallback(d,e,n);const f=_prepareRemoveCallback(o,e,n,p);if(!t.keep)ne.unshift(p);return n?p:f}function _prepareRemoveCallback(e,t,n,o){let i=false;return function _cleanupCallback(d){if(!i){const p=o||_cleanupCallback;const f=ne.indexOf(p);if(f>=0)ne.splice(f,1);i=true;if(n||e===se||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,d||function(){})}}}}function _garbageCollector(){if(!oe)return;while(ne.length){try{ne[0]()}catch(e){}}}function _randomChars(e){let t=[],n=null;try{n=f.randomBytes(e)}catch(t){n=f.pseudoRandomBytes(e)}for(let o=0;o<e;o++){t.push(v[n[o]%v.length])}return t.join("")}function _isUndefined(e){return typeof e==="undefined"}function _parseArguments(e,t){if(typeof e==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}const n={};for(const t of Object.getOwnPropertyNames(e)){n[t]=e[t]}return[n,t]}function _resolvePath(e,t,n){const o=p.isAbsolute(e)?e:p.join(t,e);i.stat(o,(function(e){if(e){i.realpath(p.dirname(o),(function(e,t){if(e)return n(e);n(null,p.join(t,p.basename(
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const o=[];const i=new Uint8Array([13,10]);D=0;let d=false;for(const[t,p]of e){if(typeof p==="string"){const e=ae.encode(n+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(p)}\r\n`);o.push(e);D+=e.byteLength}else{const e=ae.encode(`${n}; name="${escape(normalizeLinefeeds(t))}"`+(p.name?`; filename="${escape(p.name)}"`:"")+"\r\n"+`Content-Type: ${p.type||"application/octet-stream"}\r\n\r\n`);o.push(e,p,i);if(typeof p.size==="number"){D+=e.byteLength+p.size+i.byteLength}else{d=true}}}const p=ae.encode(`--${t}--\r\n`);o.push(p);D+=p.byteLength;if(d){D=null}v=e;y=async function*(){for(const e of o){if(e.stream){yield*e.stream()}else{yield e}}};M=`multipart/form-data; boundary=${t}`}else if(d(e)){v=e;D=e.size;if(e.type){M=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(o.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof ReadableStream?e:i(e)}if(typeof v==="string"||o.isBuffer(v)){D=Buffer.byteLength(v)}if(y!=null){let t;n=new ReadableStream({async start(){t=y(e)[Symbol.asyncIterator]()},async pull(e){const{value:o,done:i}=await t.next();if(i){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!te(n)){const t=new Uint8Array(o);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const U={stream:n,source:v,length:D};return[U,M]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){ee(!o.isDisturbed(e),"The body has already been consumed.");ee(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[n,o]=t.stream.tee();t.stream=n;return{stream:o,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=se(t)}return new K([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,M,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const n=oe(e,t);if(n==="failure"){throw new TypeError("Failed to parse body as FormData.")}const o=new U;o[V]=n;return o}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const n=new U;for(const[e,o]of t){n.append(e,o)}return n}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,n){j.brandCheck(e,n);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[V]);const o=y();const errorSteps=e=>o.reject(e);const successSteps=e=>{try{o.resolve(t(e))}catch(e){errorSteps(e)}};if(e[V].body==null){successSteps(Buffer.allocUnsafe(0));return o.promise}await v(e[V].body,successSteps,errorSteps);return o.promise}function bodyUnusable(e){const t=e[V].body;return t!=null&&(t.stream.locked||o.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(M(e))}function bodyMimeType(e){const t=e[V].headersList;const n=D(t);if(n==="failure"){return null}return n}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:le,hasFinalizationRegistry:ce,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const n=new Set(t);const o=[101,204,205,304];const i=[301,302,303,307,308];const d=new Set(i);const p=["1","7","9","11","13","15","
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */f[p-4]=n[0];f[p-3]=n[1];f[p-2]=n[2];f[p-1]=n[3];f[1]=d;if(d===126){f.writeUInt16BE(i,2)}else if(d===127){f[2]=f[3]=0;f.writeUIntBE(i,4,6)}f[1]|=128;for(let e=0;e<i;++e){f[p+e]=t[e]^n[e&3]}return f}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(e,t,n)=>{const{createInflateRaw:o,Z_DEFAULT_WINDOWBITS:i}=n(8522);const{isValidClientWindowBits:d}=n(8625);const p=Buffer.from([0,0,255,255]);const f=Symbol("kBuffer");const y=Symbol("kLength");class PerMessageDeflate{#W;#p={};constructor(e){this.#p.serverNoContextTakeover=e.has("server_no_context_takeover");this.#p.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,n){if(!this.#W){let e=i;if(this.#p.serverMaxWindowBits){if(!d(this.#p.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#p.serverMaxWindowBits)}this.#W=o({windowBits:e});this.#W[f]=[];this.#W[y]=0;this.#W.on("data",(e=>{this.#W[f].push(e);this.#W[y]+=e.length}));this.#W.on("error",(e=>{this.#W=null;n(e)}))}this.#W.write(e);if(t){this.#W.write(p)}this.#W.flush((()=>{const e=Buffer.concat(this.#W[f],this.#W[y]);this.#W[f].length=0;this.#W[y]=0;n(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,n)=>{const{Writable:o}=n(7075);const i=n(4589);const{parserStates:d,opcodes:p,states:f,emptyBuffer:y,sentCloseFrameState:v}=n(736);const{kReadyState:D,kSentClose:M,kResponse:U,kReceivedClose:V}=n(1216);const{channels:j}=n(2414);const{isValidStatusCode:K,isValidOpcode:ee,failWebsocketConnection:te,websocketMessageReceived:re,utf8Decode:ne,isControlFrame:se,isTextBinaryFrame:oe,isContinuationFrame:ie}=n(8625);const{WebsocketFrameSend:ae}=n(3264);const{closeWebSocketConnection:ce}=n(6897);const{PerMessageDeflate:le}=n(9469);class ByteParser extends o{#K=[];#X=0;#Z=false;#C=d.INFO;#ee={};#te=[];#re;constructor(e,t){super();this.ws=e;this.#re=t==null?new Map:t;if(this.#re.has("permessage-deflate")){this.#re.set("permessage-deflate",new le(t))}}_write(e,t,n){this.#K.push(e);this.#X+=e.length;this.#Z=true;this.run(n)}run(e){while(this.#Z){if(this.#C===d.INFO){if(this.#X<2){return e()}const t=this.consume(2);const n=(t[0]&128)!==0;const o=t[0]&15;const i=(t[1]&128)===128;const f=!n&&o!==p.CONTINUATION;const y=t[1]&127;const v=t[0]&64;const D=t[0]&32;const M=t[0]&16;if(!ee(o)){te(this.ws,"Invalid opcode received");return e()}if(i){te(this.ws,"Frame cannot be masked");return e()}if(v!==0&&!this.#re.has("permessage-deflate")){te(this.ws,"Expected RSV1 to be clear.");return}if(D!==0||M!==0){te(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(f&&!oe(o)){te(this.ws,"Invalid frame type was fragmented.");return}if(oe(o)&&this.#te.length>0){te(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&f){te(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((y>125||f)&&se(o)){te(this.ws,"Control frame either too large or fragmented");return}if(ie(o)&&this.#te.length===0&&!this.#ee.compressed){te(this.ws,"Unexpected continuation frame");return}if(y<=125){this.#ee.payloadLength=y;this.#C=d.READ_DATA}else if(y===126){this.#C=d.PAYLOADLENGTH_16}else if(y===127){this.#C=d.PAYLOADLENGTH_64}if(oe(o)){this.#ee.binaryType=o;this.#ee.compressed=v!==0}this.#ee.opcode=o;this.#ee.masked=i;this.#ee.fin=n;this.#ee.fragmented=f}else if(this.#C===d.PAYLOADLENGTH_16){if(this.#X<2){return e()}const t=this.consume(2);this.#ee.payloadLength=t.readUInt16BE(0);this.#C=d.READ_DATA}else if(this.#C===d.PAYLOADLENGTH_64){if(this.#X<8){return e()}const t=this.consume(8);const n=t.readUInt32BE(0);if(n>2**31-1){te(this.ws,"Received payload length > 2^31 bytes.");return}const o=t.readUInt32BE(4);this.#ee.payloadLength=(n<<8)+o;this.#C=d.READ_DATA}else if(this.#C===d.READ_DATA){if(this.#X<this.#ee.payloadLength){return e()}const t=this.consume(this.#ee.payloadLength);if(se(this.#ee.opcode)){this.#Z=this.parseControlFrame(t);this.#C=d.INFO}else{if(!this.#ee.compressed){this.#te.push(t);if(!this.#ee.fragmented&&this.#ee.fin){const e=Buffer.concat(this.#te);re(this.ws,this.#ee.binaryType,e);this.#te.leng
2026-03-03 15:32:07 +00:00
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
2026-03-03 17:05:14 +00:00
function isNothing(e){return typeof e==="undefined"||e===null}function js_yaml_isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function js_yaml_extend(e,t){var n,o,i,d;if(t){d=Object.keys(t);for(n=0,o=d.length;n<o;n+=1){i=d[n];e[i]=t[i]}}return e}function repeat(e,t){var n="",o;for(o=0;o<t;o+=1){n+=e}return n}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var vm=isNothing;var Pm=js_yaml_isObject;var Dm=toArray;var km=repeat;var _m=isNegativeZero;var Om=js_yaml_extend;var Lm={isNothing:vm,isObject:Pm,toArray:Dm,repeat:km,isNegativeZero:_m,extend:Om};function formatError(e,t){var n="",o=e.reason||"(unknown reason)";if(!e.mark)return o;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return o+" "+n}function YAMLException$1(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};var Fm=YAMLException$1;function getLine(e,t,n,o,i){var d="";var p="";var f=Math.floor(i/2)-1;if(o-t>f){d=" ... ";t=o-f+d.length}if(n-o>f){p=" ...";n=o+f-p.length}return{str:d+e.slice(t,n).replace(/\t/g,"→")+p,pos:o-t+d.length}}function js_yaml_padStart(e,t){return Lm.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var o=[0];var i=[];var d;var p=-1;while(d=n.exec(e.buffer)){i.push(d.index);o.push(d.index+d[0].length);if(e.position<=d.index&&p<0){p=o.length-2}}if(p<0)p=o.length-1;var f="",y,v;var D=Math.min(e.line+t.linesAfter,i.length).toString().length;var M=t.maxLength-(t.indent+D+3);for(y=1;y<=t.linesBefore;y++){if(p-y<0)break;v=getLine(e.buffer,o[p-y],i[p-y],e.position-(o[p]-o[p-y]),M);f=Lm.repeat(" ",t.indent)+js_yaml_padStart((e.line-y+1).toString(),D)+" | "+v.str+"\n"+f}v=getLine(e.buffer,o[p],i[p],e.position,M);f+=Lm.repeat(" ",t.indent)+js_yaml_padStart((e.line+1).toString(),D)+" | "+v.str+"\n";f+=Lm.repeat("-",t.indent+D+3+v.pos)+"^"+"\n";for(y=1;y<=t.linesAfter;y++){if(p+y>=i.length)break;v=getLine(e.buffer,o[p+y],i[p+y],e.position-(o[p]-o[p+y]),M);f+=Lm.repeat(" ",t.indent)+js_yaml_padStart((e.line+y+1).toString(),D)+" | "+v.str+"\n"}return f.replace(/\n$/,"")}var Mm=makeSnippet;var Um=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var Hm=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))}))}return t}function Type$1(e,t){t=t||{};Object.keys(t).forEach((function(t){if(Um.indexOf(t)===-1){throw new Fm('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(Hm.indexOf(this.kind)===-1){throw new Fm('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var Gm=Type$1;function compileList(e,t){var n=[];e[t].forEach((function(e){var t=n.length;n.forEach((function(n,o){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=o}}));n[t]=e}));return n}function compileMap(){var
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in n){this.response=n.response}const o=Object.assign({},n.request);if(n.request.headers.authorization){o.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=o}}var ah="10.0.8";var ch={headers:{"user-agent":`octokit-request.js/${ah} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n==="function"&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}var noop=()=>"";async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const n=e.request?.log||console;const o=e.request?.parseSuccessResponseBody!==false;const i=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSONStringify(e.body):e.body;const d=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let p;try{p=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:d,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let n="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}n=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){n=t.cause.message}else if(typeof t.cause==="string"){n=t.cause}}}const o=new RequestError(n,500,{request:e});o.cause=t;throw o}const f=p.status;const y=p.url;const v={};for(const[e,t]of p.headers){v[e]=t}const D={url:y,status:f,headers:v,data:""};if("deprecation"in v){const t=v.link&&v.link.match(/<([^<>]+)>; rel="deprecation"/);const o=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${v.sunset}${o?`. See ${o}`:""}`)}if(f===204||f===205){return D}if(e.method==="HEAD"){if(f<400){return D}throw new RequestError(p.statusText,f,{response:D,request:e})}if(f===304){D.data=await getResponseData(p);throw new RequestError("Not modified",f,{response:D,request:e})}if(f>=400){D.data=await getResponseData(p);throw new RequestError(toErrorMessage(D.data),f,{response:D,request:e})}D.data=o?await getResponseData(p):p.body;return D}async function getResponseData(e){const t=e.headers.get("content-type");if(!t){return e.text().catch(noop)}const n=(0,Jf.xL)(t);if(isJSONResponse(n)){let t="";try{t=await e.text();return JSONParse(t)}catch(e){return t}}else if(n.type.startsWith("text/")||n.parameters.charset?.toLowerCase()==="utf-8"){return e.text().catch(noop)}else{return e.arrayBuffer().catch((
/* v8 ignore next -- @preserve */
()=>new ArrayBuffer(0)))}}function isJSONResponse(e){return e.type==="application/json"||e.type==="application/scim+json"}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const n=e.defaults(t);const newApi=function(e,t){const o=n.merge(e,t);if(!o.request||!o.request.hook){return fetchWrapper(n.parse(o))}const request2=(e,t)=>fetchWrapper(n.parse(n.merge(e,t)));Object.assign(request2,{endpoint:n,defaults:dist_bundle_withDefaults.bind(null,n)});return o.request.hook(request2,o)};return Object.assign(newApi,{endpoint:n,defaults:dist_bundle_withDefaults.bind(null,n)})}var lh=dist_bundle_withDefaults(Yf,ch);
/* v8 ignore next -- @preserve */
/* v8 ignore else -- @preserve */var uh="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var dh=class extends Error{constructor(e,t,n){super(_buildMessageForResponseErrors(n));this.request=e;this.headers=t;this.response=n;this.errors=n.errors;this.data=n.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ah=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var ph=["query","method","url"];var mh=/\/api\/v3\/?$/;function graphql(e,t,n){if(n){if(typeof t==="string"&&"query"in n){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in n){if(!ph.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const o=typeof t==="string"?Object.assign({query:t},n):t;const i=Object.keys(o).reduce(((e,t)=>{if(Ah.includes(t)){e[t]=o[t];return e}if(!e.variables){e.variables={}}e.variables[t]=o[t];return e}),{});const d=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(mh.test(d)){i.url=d.replace(mh,"/api/graphql")}return e(i).then((e=>{if(e.data.errors){const t={};for(const n of Object.keys(e.headers)){t[n]=e.headers[n]}throw new dh(i,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const n=e.defaults(t);const newApi=(e,t)=>graphql(n,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,n),endpoint:n.endpoint})}var gh=graphql_dist_bundle_withDefaults(lh,{headers:{"user-agent":`octokit-graphql.js/${uh} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var fh="(?:[a-zA-Z0-9_-]+)";var hh="\\.";var yh=new RegExp(`^${fh}${hh}${fh}${hh}${fh}$`);var Eh=yh.test.bind(yh);async function auth(e){const t=Eh(e);const n=e.startsWith("v1.")||e.startsWith("ghs_");const o=e.startsWith("ghu_");const i=t?"app":n?"installation":o?"user-to-server":"oauth";return{type:"token",token:e,tokenType:i}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,n,o){const i=t.endpoint.merge(n,o);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}var Ch=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const Ih="7.0.6";const dist_src_noop=()=>{};const bh=console.warn.bind(console);const Sh=console.error.bind(console);function createLogger(e={}){if(typeof e.debug!=="function"){e.debug=dist_src_noop}if(typeof e.info!=="function"){e.info=dist_src_noop}if(typeof e.warn!=="function"){e.warn=bh}if(typeof e.error!=="function"){e.error=Sh}return e}const Bh=`octokit-core.js/${Ih} ${getUserAgent()}`;class Octokit{static VERSION=Ih;static defaults(e){const t=class extends(this){constructor(...t){const n=t[0]||{};if(typeof e==="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const n=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return n}constructor(e={}){const t=new zf.Collection;const n={baseUrl:lh.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Bh}`:Bh;if(e.baseUrl){n.baseUrl=e.baseUrl}if(e.previews){n.mediaType.previews=e.previews}if(e.timeZone){n.headers["time-zone"]=e.timeZone}this.request=lh.defaults(n);this.graphql=withCustomRequest(this.request).defaults(n);this.log=createLogger(e.log);this.hook=t;if(!e.a
//# sourceMappingURL=index.js.map