login-action/dist/index.js

19 lines
1.1 MiB
JavaScript
Raw Normal View History

require('./sourcemap-register.js');(()=>{var __webpack_modules__={87351:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=s(o(22037));const A=o(5278);function issueCommand(e,t,o){const n=new Command(e,t,o);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,o){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=o}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const o in this.properties){if(this.properties.hasOwnProperty(o)){const n=this.properties[o];if(n){if(t){t=false}else{e+=","}e+=`${o}=${escapeProperty(n)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return A.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return A.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,n){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function fulfilled(e){try{step(n.next(e))}catch(e){r(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){r(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const A=o(87351);const a=o(717);const c=o(5278);const u=s(o(22037));const l=s(o(71017));const d=o(98041);var g;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(g=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const o=c.toCommandValue(t);process.env[e]=o;const n=process.env["GITHUB_ENV"]||"";if(n){return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t))}A.issueCommand("set-env",{name:e},o)}t.exportVariable=exportVariable;function setSecret(e){A.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){a.issueFileCommand("PATH",e)}else{A.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const o=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!o){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return o}return o.trim()}t.getInput=getInput;function getMultilineInput(e,t){const o=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return o}return o.
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var t;var o;var n;var r;var s;var i;var A;var a;var c;var u;var l;var d;var g;var E;var p;var C;var h;var f;var m;var I;var y;var Q;var B;(function(t){var o=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(o,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(o,createExporter(e.exports)))}else{t(createExporter(o))}function createExporter(e,t){if(e!==o){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(o,n){return e[o]=t?t(o,n):n}}})((function(e){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(t.hasOwnProperty(o))e[o]=t[o]};t=function(e,t){w(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};o=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++){t=arguments[o];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};n=function(e,t){var o={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)o[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++){if(t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r]))o[n[r]]=e[n[r]]}return o};r=function(e,t,o,n){var r=arguments.length,s=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,o,n);else for(var A=e.length-1;A>=0;A--)if(i=e[A])s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s;return r>3&&s&&Object.defineProperty(t,o,s),s};s=function(e,t){return function(o,n){t(o,n,e)}};i=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};A=function(e,t,o,n){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function fulfilled(e){try{step(n.next(e))}catch(e){r(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){r(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};a=function(e,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(n)throw new TypeError("Generator is already executing.");while(o)try{if(n=1,r&&(s=i[0]&2?r["return"]:i[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;if(r=0,s)i=[i[0]&2,s.value];switch(i[0]){case 0:case 1:s=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;r=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(!(s=o.trys,s=s.length>0&&s[s.length-1])&&(i[0]===6||i[0]===2)){o=0;continue}if(i[0]===3&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(i[0]===6&&o.label<s[1]){o.label=s[1];s=i;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(i);break}if(s[2])o.ops.pop();o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e];r=0}finally{n=s=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};B=function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]};c=function(e,t){for(var o in e)if(o!=="default"&&!t.hasOwnProperty(o))t[o]=e[o]};u=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};l=function(e,t){var o=typeof Symbol==="function"&&e[Symbol.iterator];if(!o)return e;var n=o.call(e),r,s=[],i;try{while((t===void 0||t-- >0)&&!(r=n.next()).done)s.push(r.value)}catch(e){i={error:e}}finally{try{if(r&&!r.done&&(o=n[
/*! 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 n=new TextEncoder;const r=[];const s=new Uint8Array([13,10]);l=0;let i=false;for(const[t,A]of e){if(typeof A==="string"){const e=n.encode(o+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(A)}\r\n`);r.push(e);l+=e.byteLength}else{const e=n.encode(`${o}; name="${escape(normalizeLinefeeds(t))}"`+(A.name?`; filename="${escape(A.name)}"`:"")+"\r\n"+`Content-Type: ${A.type||"application/octet-stream"}\r\n\r\n`);r.push(e,A,s);if(typeof A.size==="number"){l+=e.byteLength+A.size+s.byteLength}else{i=true}}}const A=n.encode(`--${t}--`);r.push(A);l+=A.byteLength;if(i){l=null}u=e;c=async function*(){for(const e of r){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){u=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(r.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof b?e:s(e)}if(typeof u==="string"||r.isBuffer(u)){l=Buffer.byteLength(u)}if(c!=null){let t;n=new b({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){const{value:o,done:r}=await t.next();if(r){queueMicrotask((()=>{e.close()}))}else{if(!I(n)){e.enqueue(new Uint8Array(o))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const g={stream:n,source:u,length:l};return[g,d]}function safelyExtractBody(e,t=false){if(!b){b=o(35356).ReadableStream}if(e instanceof b){m(!r.isDisturbed(e),"The body has already been consumed.");m(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,o]=e.stream.tee();const n=p(o,{transfer:[o]});const[,r]=n.tee();e.stream=t;return{stream:r,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(y(e)){yield e}else{const t=e.stream;if(r.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[f]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new E("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=S(t)}return new C([e],{type:t})}),e)},arrayBuffer(){return specConsumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return specConsumeBody(this,utf8DecodeBytes,e)},json(){return specConsumeBody(this,parseJSONFromBytes,e)},async formData(){g.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,o]of this.headers)e[t.toLowerCase()]=o;const t=new l;let o;try{o=new n({headers:e,preservePath:true})}catch(e){throw new E(`${e}`,"AbortError")}o.on("field",((e,o)=>{t.append(e,o)}));o.on("file",((e,o,n,r,s)=>{const i=[];if(r==="base64"||r.toLowerCase()==="base64"){let r="";o.on("data",(e=>{r+=e.toString().replace(/[\r\n]/gm,"");const t=r.length-r.length%4;i.push(Buffer.from(r.slice(0,t),"base64"));r=r.slice(t)}));o.on("end",(()=>{i.push(Buffer.from(r,"base64"));t.append(e,new R(i,n,{type:s}))}))}else{o.on("data",(e=>{i.push(e)}));o.on("end",(()=>{t.append(e,new R(i,n,{type:s}))}))}}));const r=new Promise(((e,t)=>{o.on("finish",e);o.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))o.write(e);o.end();await r;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const o=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!y(e)){throw new TypeError("Expected Uint8Array chunk")}t+=o.decode(e,{stream:true})}t+=o.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[o,n]of e){t.append(o,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);thr
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */s[r-4]=this.maskKey[0];s[r-3]=this.maskKey[1];s[r-2]=this.maskKey[2];s[r-1]=this.maskKey[3];s[1]=o;if(o===126){s.writeUInt16BE(t,2)}else if(o===127){s[2]=s[3]=0;s.writeUIntBE(t,4,6)}s[1]|=128;for(let e=0;e<t;e++){s[r+e]=this.frameData[e]^this.maskKey[e%4]}return s}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},11688:(e,t,o)=>{"use strict";const{Writable:n}=o(12781);const r=o(67643);const{parserStates:s,opcodes:i,states:A,emptyBuffer:a}=o(19188);const{kReadyState:c,kSentClose:u,kResponse:l,kReceivedClose:d}=o(37578);const{isValidStatusCode:g,failWebsocketConnection:E,websocketMessageReceived:p}=o(25515);const{WebsocketFrameSend:C}=o(25444);const h={};h.ping=r.channel("undici:websocket:ping");h.pong=r.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#A=0;#a=s.INFO;#c={};#u=[];constructor(e){super();this.ws=e}_write(e,t,o){this.#i.push(e);this.#A+=e.length;this.run(o)}run(e){while(true){if(this.#a===s.INFO){if(this.#A<2){return e()}const t=this.consume(2);this.#c.fin=(t[0]&128)!==0;this.#c.opcode=t[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==i.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==i.BINARY&&this.#c.opcode!==i.TEXT){E(this.ws,"Invalid frame type was fragmented.");return}const o=t[1]&127;if(o<=125){this.#c.payloadLength=o;this.#a=s.READ_DATA}else if(o===126){this.#a=s.PAYLOADLENGTH_16}else if(o===127){this.#a=s.PAYLOADLENGTH_64}if(this.#c.fragmented&&o>125){E(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===i.PING||this.#c.opcode===i.PONG||this.#c.opcode===i.CLOSE)&&o>125){E(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===i.CLOSE){if(o===1){E(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(o);this.#c.closeInfo=this.parseCloseBody(false,e);if(!this.ws[u]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#c.closeInfo.code,0);const t=new C(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[u]=true}}))}this.ws[c]=A.CLOSING;this.ws[d]=true;this.end();return}else if(this.#c.opcode===i.PING){const t=this.consume(o);if(!this.ws[d]){const e=new C(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(h.ping.hasSubscribers){h.ping.publish({payload:t})}}this.#a=s.INFO;if(this.#A>0){continue}else{e();return}}else if(this.#c.opcode===i.PONG){const t=this.consume(o);if(h.pong.hasSubscribers){h.pong.publish({payload:t})}if(this.#A>0){continue}else{e();return}}}else if(this.#a===s.PAYLOADLENGTH_16){if(this.#A<2){return e()}const t=this.consume(2);this.#c.payloadLength=t.readUInt16BE(0);this.#a=s.READ_DATA}else if(this.#a===s.PAYLOADLENGTH_64){if(this.#A<8){return e()}const t=this.consume(8);const o=t.readUInt32BE(0);if(o>2**31-1){E(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#c.payloadLength=(o<<8)+n;this.#a=s.READ_DATA}else if(this.#a===s.READ_DATA){if(this.#A<this.#c.payloadLength){return e()}else if(this.#A>=this.#c.payloadLength){const e=this.consume(this.#c.payloadLength);this.#u.push(e);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===i.CONTINUATION){const e=Buffer.concat(this.#u);p(this.ws,this.#c.originalOpcode,e);this.#c={};this.#u.length=0}this.#a=s.INFO}}if(this.#A>0){continue}else{e();break}}}consume(e){if(e>this.#A){return null}else if(e===0){return a}if(this.#i[0].length===e){this.#A-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let o=0;while(o!==e){const n=this.#i[0];const{length:r}=n;if(r+o===e){t.set(this.#i.shift(),o);break}else if(r+o>e){t.set(n.subarray(0,e-o),o);this.#i[0]=n.subarray(e-o);break}else{t.set(this.#i.shift(),o);o+=n.length}}this.#A-=e;return t}parseCloseBody(e,t){let o;if(t.length>=2){o=t.readUInt16BE(0)}if(e){if(!g(o)){return null}return{code:o}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(o!==undefined&&!g(o)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:o,reason:n}}get cl
//# sourceMappingURL=index.js.map