Files
docker-login/dist/index.js

18 lines
1.9 MiB
JavaScript
Raw Normal View History

2026-03-04 05:55: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,p,f){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.response=i;this.status=p;this.trailers=f}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,p,f){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.responses=i;this.status=p;this.trailers=f}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 p=n(3402);o={enumerable:true,get:function(){return p.readMethodOptions}};o={enumerable:true,get:function(){return p.readMethodOption}};o={enumerable:true,get:function(){return p.readServiceOption}};var f=n(422);o={enumerable:true,get:function(){return f.RpcError}};var h=n(3474);o={enumerable:true,get:function(){return h.mergeRpcOptions}};var Q=n(6407);o={enumerable:true,get:function(){return Q.RpcOutputStreamController}};var T=n(5435);o={enumerable:true,get:function(){return T.TestTransport}};var D=n(9499);o={enumerable:true,get:function(){return D.Deferred}};o={enumerable:true,get:function(){return D.DeferredState}};var _=n(800);o={enumerable:true,get:function(){return _.DuplexStreamingCall}};var O=n(3311);o={enumerable:true,get:function(){return O.ClientStreamingCall}};var $=n(2715);o={enumerable:true,get:function(){return $.ServerStreamingCall}}
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
2026-03-04 05:55:14 +00:00
*/const i=n(9896);const p=n(857);const f=n(6928);const h=n(6982);const Q={fs:i.constants,os:p.constants};const T="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",D=/XXXXXX/,_=3,O=(Q.O_CREAT||Q.fs.O_CREAT)|(Q.O_EXCL||Q.fs.O_EXCL)|(Q.O_RDWR||Q.fs.O_RDWR),$=p.platform()==="win32",V=Q.EBADF||Q.os.errno.EBADF,j=Q.ENOENT||Q.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],p=n[1];_assertAndSanitizeOptions(o,(function(e,t){if(e)return p(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 p(new Error("Could not get a unique tmp filename, max tries reached "+e))}p(null,e)}))}catch(e){p(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),n=t[0];const o=_assertAndSanitizeOptionsSync(n);let p=o.tries;do{const e=_generateTmpName(o);try{i.statSync(e)}catch(t){return e}}while(p-- >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],p=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return p(e);i.open(t,O,o.mode||te,(function _fileCreated(e,n){if(e)return p(e);if(o.discardDescriptor){return i.close(n,(function _discardCallback(e){return p(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,o,false))}))}else{const e=o.discardDescriptor||o.detachDescriptor;p(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 p=tmpNameSync(n);let f=i.openSync(p,O,n.mode||te);if(n.discardDescriptor){i.closeSync(f);f=undefined}return{name:p,fd:f,removeCallback:_prepareTmpFileRemoveCallback(p,o?-1:f,n,true)}}function dir(e,t){const n=_parseArguments(e,t),o=n[0],p=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return p(e);i.mkdir(t,o.mode||ee,(function _dirCreated(e){if(e)return p(e);p(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 p=_prepareRemoveCallback(_removeFileAsync,[t,e],o,i);if(!n.keep)ne.unshift(i);return o?i:p}function _prepareTmpDirRemoveCallback(e,t,n){const o=t.unsafeCleanup?rimraf:i.rmdir.bind(i);const p=t.unsafeCleanup?FN_RIMRAF_SYNC:se;const f=_prepareRemoveCallback(p,e,n);const h=_prepareRemoveCallback(o,e,n,f);if(!t.keep)ne.unshift(f);return n?f:h}function _prepareRemoveCallback(e,t,n,o){let i=false;return function _cleanupCallback(p){if(!i){const f=o||_cleanupCallback;const h=ne.indexOf(f);if(h>=0)ne.splice(h,1);i=true;if(n||e===se||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,p||function(){})}}}}function _garbageCollector(){if(!oe)return;while(ne.length){try{ne[0]()}catch(e){}}}function _randomChars(e){let t=[],n=null;try{n=h.randomBytes(e)}catch(t){n=h.pseudoRandomBytes(e)}for(let o=0;o<e;o++){t.push(T[n[o]%T.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=f.isAbsolute(e)?e:f.join(t,e);i.stat(o,(function(e){if(e){i.realpath(f.dirname(o),(function(e,t){if(e)return n(e);n(null,f.join(t,f.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 p=false;for(const[t,f]of e){if(typeof f==="string"){const e=ae.encode(n+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(f)}\r\n`);o.push(e);D+=e.byteLength}else{const e=ae.encode(`${n}; name="${escape(normalizeLinefeeds(t))}"`+(f.name?`; filename="${escape(f.name)}"`:"")+"\r\n"+`Content-Type: ${f.type||"application/octet-stream"}\r\n\r\n`);o.push(e,f,i);if(typeof f.size==="number"){D+=e.byteLength+f.size+i.byteLength}else{p=true}}}const f=ae.encode(`--${t}--\r\n`);o.push(f);D+=f.byteLength;if(p){D=null}T=e;Q=async function*(){for(const e of o){if(e.stream){yield*e.stream()}else{yield e}}};_=`multipart/form-data; boundary=${t}`}else if(p(e)){T=e;D=e.size;if(e.type){_=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 T==="string"||o.isBuffer(T)){D=Buffer.byteLength(T)}if(Q!=null){let t;n=new ReadableStream({async start(){t=Q(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 O={stream:n,source:T,length:D};return[O,_]}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 j([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,_,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 O;o[$]=n;return o}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const n=new O;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){V.brandCheck(e,n);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[$]);const o=Q();const errorSteps=e=>o.reject(e);const successSteps=e=>{try{o.resolve(t(e))}catch(e){errorSteps(e)}};if(e[$].body==null){successSteps(Buffer.allocUnsafe(0));return o.promise}await T(e[$].body,successSteps,errorSteps);return o.promise}function bodyUnusable(e){const t=e[$].body;return t!=null&&(t.stream.locked||o.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(_(e))}function bodyMimeType(e){const t=e[$].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 p=new Set(i);const f=["1","7","9","11","13","15","
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */h[f-4]=n[0];h[f-3]=n[1];h[f-2]=n[2];h[f-1]=n[3];h[1]=p;if(p===126){h.writeUInt16BE(i,2)}else if(p===127){h[2]=h[3]=0;h.writeUIntBE(i,4,6)}h[1]|=128;for(let e=0;e<i;++e){h[f+e]=t[e]^n[e&3]}return h}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(e,t,n)=>{const{createInflateRaw:o,Z_DEFAULT_WINDOWBITS:i}=n(8522);const{isValidClientWindowBits:p}=n(8625);const f=Buffer.from([0,0,255,255]);const h=Symbol("kBuffer");const Q=Symbol("kLength");class PerMessageDeflate{#W;#A={};constructor(e){this.#A.serverNoContextTakeover=e.has("server_no_context_takeover");this.#A.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,n){if(!this.#W){let e=i;if(this.#A.serverMaxWindowBits){if(!p(this.#A.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#A.serverMaxWindowBits)}this.#W=o({windowBits:e});this.#W[h]=[];this.#W[Q]=0;this.#W.on("data",(e=>{this.#W[h].push(e);this.#W[Q]+=e.length}));this.#W.on("error",(e=>{this.#W=null;n(e)}))}this.#W.write(e);if(t){this.#W.write(f)}this.#W.flush((()=>{const e=Buffer.concat(this.#W[h],this.#W[Q]);this.#W[h].length=0;this.#W[Q]=0;n(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,n)=>{const{Writable:o}=n(7075);const i=n(4589);const{parserStates:p,opcodes:f,states:h,emptyBuffer:Q,sentCloseFrameState:T}=n(736);const{kReadyState:D,kSentClose:_,kResponse:O,kReceivedClose:$}=n(1216);const{channels:V}=n(2414);const{isValidStatusCode:j,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=p.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===p.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 h=!n&&o!==f.CONTINUATION;const Q=t[1]&127;const T=t[0]&64;const D=t[0]&32;const _=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(T!==0&&!this.#re.has("permessage-deflate")){te(this.ws,"Expected RSV1 to be clear.");return}if(D!==0||_!==0){te(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(h&&!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&&h){te(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((Q>125||h)&&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(Q<=125){this.#ee.payloadLength=Q;this.#C=p.READ_DATA}else if(Q===126){this.#C=p.PAYLOADLENGTH_16}else if(Q===127){this.#C=p.PAYLOADLENGTH_64}if(oe(o)){this.#ee.binaryType=o;this.#ee.compressed=T!==0}this.#ee.opcode=o;this.#ee.masked=i;this.#ee.fin=n;this.#ee.fragmented=h}else if(this.#C===p.PAYLOADLENGTH_16){if(this.#X<2){return e()}const t=this.consume(2);this.#ee.payloadLength=t.readUInt16BE(0);this.#C=p.READ_DATA}else if(this.#C===p.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=p.READ_DATA}else if(this.#C===p.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=p.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-04 05:55: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,p;if(t){p=Object.keys(t);for(n=0,o=p.length;n<o;n+=1){i=p[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 Lm=js_yaml_extend;var Om={isNothing:vm,isObject:Pm,toArray:Dm,repeat:km,isNegativeZero:_m,extend:Lm};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 p="";var f="";var h=Math.floor(i/2)-1;if(o-t>h){p=" ... ";t=o-h+p.length}if(n-o>h){f=" ...";n=o+h-f.length}return{str:p+e.slice(t,n).replace(/\t/g,"→")+f,pos:o-t+p.length}}function js_yaml_padStart(e,t){return Om.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 p;var f=-1;while(p=n.exec(e.buffer)){i.push(p.index);o.push(p.index+p[0].length);if(e.position<=p.index&&f<0){f=o.length-2}}if(f<0)f=o.length-1;var h="",Q,T;var D=Math.min(e.line+t.linesAfter,i.length).toString().length;var _=t.maxLength-(t.indent+D+3);for(Q=1;Q<=t.linesBefore;Q++){if(f-Q<0)break;T=getLine(e.buffer,o[f-Q],i[f-Q],e.position-(o[f]-o[f-Q]),_);h=Om.repeat(" ",t.indent)+js_yaml_padStart((e.line-Q+1).toString(),D)+" | "+T.str+"\n"+h}T=getLine(e.buffer,o[f],i[f],e.position,_);h+=Om.repeat(" ",t.indent)+js_yaml_padStart((e.line+1).toString(),D)+" | "+T.str+"\n";h+=Om.repeat("-",t.indent+D+3+T.pos)+"^"+"\n";for(Q=1;Q<=t.linesAfter;Q++){if(f+Q>=i.length)break;T=getLine(e.buffer,o[f+Q],i[f+Q],e.position-(o[f]-o[f+Q]),_);h+=Om.repeat(" ",t.indent)+js_yaml_padStart((e.line+Q+1).toString(),D)+" | "+T.str+"\n"}return h.replace(/\n$/,"")}var Um=makeSnippet;var Mm=["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(Mm.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 $m=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 p=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let f;try{f=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:p,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 h=f.status;const Q=f.url;const T={};for(const[e,t]of f.headers){T[e]=t}const D={url:Q,status:h,headers:T,data:""};if("deprecation"in T){const t=T.link&&T.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 ${T.sunset}${o?`. See ${o}`:""}`)}if(h===204||h===205){return D}if(e.method==="HEAD"){if(h<400){return D}throw new RequestError(f.statusText,h,{response:D,request:e})}if(h===304){D.data=await getResponseData(f);throw new RequestError("Not modified",h,{response:D,request:e})}if(h>=400){D.data=await getResponseData(f);throw new RequestError(toErrorMessage(D.data),h,{response:D,request:e})}D.data=o?await getResponseData(f):f.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((
2026-03-03 17:05:14 +00:00
/* 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 */
2026-03-04 05:55:14 +00:00
/* 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 ph=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var Ah=["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(!Ah.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(ph.includes(t)){e[t]=o[t];return e}if(!e.variables){e.variables={}}e.variables[t]=o[t];return e}),{});const p=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(mh.test(p)){i.url=p.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 Gf.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