mirror of https://github.com/aminya/setup-cpp
7 lines
1.4 MiB
JavaScript
7 lines
1.4 MiB
JavaScript
|
function $parcel$export(e,t,r,i){Object.defineProperty(e,t,{get:r,set:i,enumerable:!0,configurable:!0});}function $parcel$interopDefault(e){return e&&e.__esModule?e.default:e;}var $k14yv$path=require("path"),$k14yv$os=require("os"),$k14yv$fs=require("fs"),$k14yv$util=require("util"),$k14yv$assert=require("assert"),$k14yv$crypto=require("crypto"),$k14yv$url=require("url"),$k14yv$buffer=require("buffer"),$k14yv$stream=require("stream"),$k14yv$events=require("events"),$k14yv$timers=require("timers"),$k14yv$string_decoder=require("string_decoder"),$k14yv$http=require("http"),$k14yv$https=require("https"),$k14yv$zlib=require("zlib"),$k14yv$child_process=require("child_process"),$parcel$global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},parcelRequire=$parcel$global.parcelRequire810d;parcelRequire.register("4kQHk",function(e,t){var r,i,a,n,o,s,u,c,l,p;function d(e){return e.startsWith("pypy");}async function m(e,t){let r=void 0,i=(0,c.getCacheDistributor)(e,t,r);await i.restoreCache();}async function h(e,t,o){u.IS_MAC&&(process.env.AGENT_TOOLSDIRECTORY="/Users/runner/hostedtoolcache");let c=process.env.AGENT_TOOLSDIRECTORY?.trim();if("string"==typeof c&&""!==c&&(process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,n.debug)("Python is expected to be installed into "+process.env.RUNNER_TOOL_CACHE),e){let t;if(d(e)){let r=await(0,i.findPyPyVersion)(e,o,!0,f,!1);t=`${r.resolvedPyPyVersion}-${r.resolvedPythonVersion}`,(0,a.info)(`Successfully set up PyPy ${r.resolvedPyPyVersion} with Python (${r.resolvedPythonVersion})`);}else{let i=await(0,r.useCpythonVersion)(e,o,!0,f,!1);t=i.version,(0,a.info)(`Successfully set up ${i.impl} (${t})`);}if((0,u.isCacheFeatureAvailable)()){let e="pip";await m(e,t);}}s.GITHUB_ACTIONS&&(await x());}async function x(){let e=(0,o.join)(p,"python_matcher.json");if(!(await(0,l.pathExists)(e)))return(0,a.warning)("the python_matcher.json file does not exist in the same folder as setup-cpp.js");(0,a.info)("::add-matcher::"+e);}$parcel$export(e.exports,"setupActionsPython",()=>h),r=parcelRequire("gxAVj"),i=parcelRequire("7h1SD"),a=parcelRequire("ER74K"),n=parcelRequire("lcRzN"),o=parcelRequire("ceI0e"),s=parcelRequire("dTX7a"),u=parcelRequire("8wFiF"),c=parcelRequire("4r449"),l=parcelRequire("dOmbL"),p=$k14yv$path.resolve(__dirname,"../../src/python");let f=!1;}),parcelRequire.register("gxAVj",function(e,t){var r,i,a,n,o;function s(e){return r.IS_WINDOWS?$k14yv$path.join(e,"Scripts"):$k14yv$path.join(e,"bin");}async function u(e,t,u,d,m){let h=null,x=c(e),f=p(x,m);if(n.debug(`Semantic version spec of ${e} is ${f}`),d){h=await a.getManifest();let e=(await a.findReleaseFromManifest(f,t,h))?.version;e?(f=e,n.info(`Resolved as '${f}'`)):n.info(`Failed to resolve version ${f} from manifest`);}let g=o.find("Python",f,t);if(!g){n.info(`Version ${f} was not found in the local cache`);let e=await a.findReleaseFromManifest(f,t,h);e&&e.files&&e.files.length>0&&(n.info(`Version ${f} is available for downloading`),await a.installCpythonFromRelease(e),g=o.find("Python",f,t));}if(!g){let i=await(0,r.getOSInfo)();throw Error([`The version '${e}' with architecture '${t}' was not found for ${i?`${i.osName} ${i.osVersion}`:"this operating system"}.`,"The list of all available versions can be found here: "+a.MANIFEST_URL].join($k14yv$os.EOL));}let D=s(g),y=r.IS_WINDOWS?".exe":"",b=$k14yv$path.join(r.IS_WINDOWS?g:D,"python"+y);if(u){if(n.exportVariable("pythonLocation",g),n.exportVariable("PKG_CONFIG_PATH",g+"/lib/pkgconfig"),n.exportVariable("pythonLocation",g),n.exportVariable("Python_ROOT_DIR",g),n.exportVariable("Python2_ROOT_DIR",g),n.exportVariable("Python3_ROOT_DIR",g),n.exportVariable("PKG_CONFIG_PATH",g+"/lib/pkgconfig"),r.IS_LINUX){let e=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",t=$k14yv$path.join(g,"lib");e.split(":").includes(t)||n.exportVariable("LD_LIBRARY_PATH",t+e);}if(n.addPath(g),n.addPath(D),r.IS_WINDOWS){let e=$k14yv$path.basename($k14yv$path.dirname(g)),t=i.major(e),r=i.minor(
|
||
|
Other caches with similar key:`),(null==t?void 0:t.artifactCaches)||[]))S.debug(`Cache Key: ${null==i?void 0:i.cacheKey}, Cache Version: ${null==i?void 0:i.cacheVersion}, Cache Scope: ${null==i?void 0:i.scope}, Cache Created: ${null==i?void 0:i.creationTime}`);}});}function D(e,t,r){return n(this,void 0,void 0,function*(){let i=new $k14yv$url.URL(e),a=(0,c.getDownloadOptions)(r);a.useAzureSdk&&i.hostname.endsWith(".blob.core.windows.net")?yield(0,u.downloadCacheStorageSDK)(e,t,a):yield(0,u.downloadCacheHttpClient)(e,t);});}function y(e,t,r){return n(this,void 0,void 0,function*(){let i=h(),a=x(t,null==r?void 0:r.compressionMethod,null==r?void 0:r.enableCrossOsArchive),o={key:e,version:a,cacheSize:null==r?void 0:r.cacheSize},s=yield(0,l.retryTypedResponse)("reserveCache",()=>n(this,void 0,void 0,function*(){return i.postJson(p("caches"),o);}));return s;});}function b(e,t){return`bytes ${e}-${t}/*`;}function v(e,t,r,i,a){return n(this,void 0,void 0,function*(){S.debug(`Uploading chunk of size ${a-i+1} bytes at offset ${i} with content range: ${b(i,a)}`);let o={"Content-Type":"application/octet-stream","Content-Range":b(i,a)},s=yield(0,l.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${a})`,()=>n(this,void 0,void 0,function*(){return e.sendStream("PATCH",t,r(),o);}));if(!(0,l.isSuccessStatusCode)(s.message.statusCode))throw Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`);});}function C(e,t,r,i){return n(this,void 0,void 0,function*(){let a=F.getArchiveFileSizeInBytes(r),o=p("caches/"+t.toString()),s=N.openSync(r,"r"),u=(0,c.getUploadOptions)(i),l=F.assertDefined("uploadConcurrency",u.uploadConcurrency),d=F.assertDefined("uploadChunkSize",u.uploadChunkSize),m=[...Array(l).keys()];S.debug("Awaiting all uploads");let h=0;try{yield Promise.all(m.map(()=>n(this,void 0,void 0,function*(){for(;h<a;){let t=Math.min(a-h,d),i=h,n=h+t-1;h+=d,yield v(e,o,()=>N.createReadStream(r,{fd:s,start:i,end:n,autoClose:!1}).on("error",e=>{throw Error("Cache upload failed because file read failed with "+e.message);}),i,n);}})));}finally{N.closeSync(s);}});}function E(e,t,r){return n(this,void 0,void 0,function*(){let i={size:r};return yield(0,l.retryTypedResponse)("commitCache",()=>n(this,void 0,void 0,function*(){return e.postJson(p("caches/"+t.toString()),i);}));});}function A(e,t,r){return n(this,void 0,void 0,function*(){let i=h();S.debug("Upload cache"),yield C(i,e,t,r),S.debug("Commiting cache");let a=F.getArchiveFileSizeInBytes(t);S.info(`Cache Size: ~${Math.round(a/1048576)} MB (${a} B)`);let n=yield E(i,e,a);if(!(0,l.isSuccessStatusCode)(n.statusCode))throw Error(`Cache service responded with ${n.statusCode} during commit cache.`);S.info("Cache saved successfully");});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r];}}),Object.defineProperty(e,i,a);}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;},n=e.exports&&e.exports.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r(function(t){t(e);});}return new(r||(r=Promise))(function(r,n){function o(e){try{u(i.next(e));}catch(e){n(e);}}function s(e){try{u(i.throw(e));}catch(e){n(e);}}function u(e){e.done?r(e.value):a(e.value).then(o,s);}u((i=i.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.saveCache=e.exports.reserveCache=e.exports.downloadCache=e.exports.getCacheEntry=e.exports.getCacheVersion=void 0;let S=a(parcelRequire("lcRzN"));o=parcelRequire("3bels"),s=parcelRequire("8GCMm");let B=a($k14yv$crypto),N=a($k14yv$fs),F=a(parcelRequire("awT
|
||
|
`;}),i;}getCanonicalizedResourceString(e){let t=(0,i.getURLPath)(e.url)||"/",r="";r+=`/${this.factory.accountName}${t}`;let a=(0,i.getURLQueries)(e.url),n={};if(a){let e=[];for(let t in a)if(Object.prototype.hasOwnProperty.call(a,t)){let r=t.toLowerCase();n[r]=a[t],e.push(r);}for(let t of(e.sort(),e))r+=`
|
||
|
${t}:${decodeURIComponent(n[t])}`;}return r;}}}),parcelRequire.register("5MFjo",function(e,t){$parcel$export(e.exports,"SDK_VERSION",()=>r),$parcel$export(e.exports,"SERVICE_VERSION",()=>i),$parcel$export(e.exports,"BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES",()=>a),$parcel$export(e.exports,"BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES",()=>n),$parcel$export(e.exports,"BLOCK_BLOB_MAX_BLOCKS",()=>o),$parcel$export(e.exports,"DEFAULT_BLOCK_BUFFER_SIZE_BYTES",()=>s),$parcel$export(e.exports,"DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES",()=>u),$parcel$export(e.exports,"DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS",()=>c),$parcel$export(e.exports,"REQUEST_TIMEOUT",()=>l),$parcel$export(e.exports,"StorageOAuthScopes",()=>p),$parcel$export(e.exports,"URLConstants",()=>d),$parcel$export(e.exports,"HeaderConstants",()=>m),$parcel$export(e.exports,"ETagNone",()=>h),$parcel$export(e.exports,"ETagAny",()=>x),$parcel$export(e.exports,"EncryptionAlgorithmAES25",()=>f),$parcel$export(e.exports,"DevelopmentConnectionString",()=>g),$parcel$export(e.exports,"StorageBlobLoggingAllowedHeaderNames",()=>D),$parcel$export(e.exports,"StorageBlobLoggingAllowedQueryParameters",()=>y),$parcel$export(e.exports,"BlobUsesCustomerSpecifiedEncryptionMsg",()=>b),$parcel$export(e.exports,"BlobDoesNotUseCustomerSpecifiedEncryption",()=>v),$parcel$export(e.exports,"PathStylePorts",()=>C);let r="12.15.0",i="2023-01-03",a=268435456,n=4194304e3,o=5e4,s=8388608,u=4194304,c=5,l=1e5,p="https://storage.azure.com/.default",d={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},m={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version"},h="",x="*",f="AES256",g="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",D=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-se
|
||
|
${a.sanitize(this)}`;}}n.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR",n.PARSE_ERROR="PARSE_ERROR";}),parcelRequire.register("fH185",function(e,t){$parcel$export(e.exports,"Sanitizer",()=>s);var r=parcelRequire("65kMX"),i=parcelRequire("8i3wZ");let a="REDACTED",n=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],o=["api-version"];class s{constructor({allowedHeaderNames:e=[],allowedQueryParameters:t=[]}={}){e=Array.isArray(e)?n.concat(e):n,t=Array.isArray(t)?o.concat(t):o,this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()));}sanitize(e){let t=new Set();return JSON.stringify(e,(e,r)=>{if(r instanceof Error)return Object.assign(Object.assign({},r),{name:r.name,message:r.message});if("_headersMap"===e)return this.sanitizeHeaders(r);if("url"===e)return this.sanitizeUrl(r);if("query"===e)return this.sanitizeQuery(r);if("body"!==e){if("response"===e)return;else if("operationSpec"===e)return;else if(Array.isArray(r)||(0,i.isObject)(r)){if(t.has(r))return"[Circular]";t.add(r);}return r;}},2);}sanitizeHeaders(e){return this.sanitizeObject(e,this.allowedHeaderNames,(e,t)=>e[t].value);}sanitizeQuery(e){return this.sanitizeObject(e,this.allowedQueryParameters,(e,t)=>e[t]);}sanitizeObject(e,t,r){if("object"!=typeof e||null===e)return e;let i={};for(let n of Object.keys(e))t.has(n.toLowerCase())?i[n]=r(e,n):i[n]=a;return i;}sanitizeUrl(e){if("string"!=typeof e||null===e)return e;let t=(0,r.URLBuilder).parse(e),i=t.getQuery();if(!i)return e;let n=(0,r.URLQuery).parse(i);for(let e of n.keys())this.allowedQueryParameters.has(e.toLowerCase())||n.set(e,a);return t.setQuery(n.toString()),t.toString();}}}),parcelRequire.register("bn8hv",function(e,t){$parcel$export(e.exports,"custom",()=>r);let r=$k14yv$util.inspect.custom;}),parcelRequire.register("Ahf9T",function(e,t){var r,i;function a(e,t={}){var a;u.rootName=t.rootName,u.charkey=null!==(a=t.xmlCharKey)&&void 0!==a?a:i.XML_CHARKEY;let n=new r.Builder(u);return n.buildObject(e);}function n(e,t={}){var a;s.explicitRoot=!!t.includeRoot,s.charkey=null!==(a=t.xmlCharKey)&&void 0!==a?a:i.XML_CHARKEY;let n=new r.Parser(s);return new Promise((t,r)=>{e?n.parseString(e,(e,i)=>{e?r(e):t(i);}):r(Error("Document is empty"));});}$parcel$export(e.exports,"stringifyXML",()=>a),$parcel$export(e.exports,"parseXML",()=>n),r=parcelRequire("9OKsB"),i=parcelRequire("WRKX0");let o={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:i.XML_ATTRKEY,explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:void 0,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:void 0,attrValueProcessors:void 0,tagNameProcessors:void 0,valueProcessors:void 0,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:void 0,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},s=Object.assign({},o);s.explicitArray=!1;let u=Object.assign({},o);u.explicitArray=!1,u.renderOpts={pretty:!1};}),parcelRequire.register("9OKsB",function(e,t){(function(){var t,r,i,a,n=function(e,t){function r(){this.constructor=e;}for(var i in t)o.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r(),e.__super__=t.prototype,e;},o={}.hasOwnProperty;r=parcelRequire("AfX4q"),t=parcelRequire("hBFg5"),i=parcelRequire
|
||
|
`,t&&t.split){let i=t.split(/\n/),a=(Math.min(i.length,e.line+3)+"").length,n=" ";for(;n.length<a;)n+=" ";for(let t=Math.max(0,e.line-1);t<Math.min(i.length,e.line+2);++t){let o=t+1+"";if(o.length<a&&(o=" "+o),e.line===t){r+=o+"> "+i[t]+"\n"+n+" ";for(let t=0;t<e.col;++t)r+=" ";r+="^\n";}else r+=o+": "+i[t]+"\n";}}return e.message=r+"\n",e;}e.exports=r;}),parcelRequire.register("leFFm",function(e,t){var r,i;function a(e,t){function a(t,r,n,o){if(t>=e.length)try{return n(s.finish());}catch(t){return o(i(t,e));}try{s.parse(e.slice(t,t+r)),setImmediate(a,t+r,r,n,o);}catch(t){o(i(t,e));}}t||(t={});let n=0,o=t.blocksize||40960,s=new r();return new Promise((e,t)=>{setImmediate(a,n,o,e,t);});}e.exports=a,r=parcelRequire("gEhiJ"),i=parcelRequire("ckX77");}),parcelRequire.register("bIDnv",function(e,t){var r;function i(e){return e?a(e):n(e);}function a(e){let t=new r();return e.setEncoding("utf8"),new Promise((r,i)=>{let a;function n(){if(u=!0,!a)try{r(t.finish());}catch(e){i(e);}}function o(e){c=!0,i(e);}function s(){let r;for(a=!0;null!==(r=e.read());)try{t.parse(r);}catch(e){return o(e);}if(a=!1,u)return n();c||e.once("readable",s);}let u=!1,c=!1;e.once("end",n),e.once("error",o),s();});}function n(){let e=new r();return new $k14yv$stream.Transform({objectMode:!0,transform(t,r,i){try{e.parse(t.toString(r));}catch(e){this.emit("error",e);}i();},flush(t){try{this.push(e.finish());}catch(e){this.emit("error",e);}t();}});}e.exports=i,r=parcelRequire("gEhiJ");}),parcelRequire.register("5e4iL",function(e,t){function r(e){if(null===e)throw i("null");if(void 0===e)throw i("undefined");if("object"!=typeof e)throw i(typeof e);if("function"==typeof e.toJSON&&(e=e.toJSON()),null==e)return null;let t=l(e);if("table"!==t)throw i(t);return u("","",e);}function i(e){return Error("Can only stringify objects, not "+e);}function a(){return Error("Array values can't have mixed types");}function n(e){return Object.keys(e).filter(t=>c(e[t]));}function o(e){return Object.keys(e).filter(t=>!c(e[t]));}function s(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let r of Object.keys(e))!e[r]||"function"!=typeof e[r].toJSON||"toISOString"in e[r]?t[r]=e[r]:t[r]=e[r].toJSON();return t;}function u(e,t,r){i=n(r=s(r)),a=o(r);var i,a,u=[],c=t||"";i.forEach(e=>{var t=l(r[e]);"undefined"!==t&&"null"!==t&&u.push(c+p(e)+" = "+g(r[e],!0));}),u.length>0&&u.push("");var d=e&&i.length>0?t+" ":"";return a.forEach(t=>{u.push(F(e,d,t,r[t]));}),u.join("\n");}function c(e){switch(l(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return 0===e.length||"table"!==l(e[0]);case"table":return 0===Object.keys(e).length;default:return!1;}}function l(e){if(void 0===e)return"undefined";if(null===e)return"null";if("bigint"==typeof e||Number.isInteger(e)&&!Object.is(e,-0))return"integer";if("number"==typeof e)return"float";if("boolean"==typeof e)return"boolean";else if("string"==typeof e)return"string";else if("toISOString"in e)return isNaN(e)?"undefined":"datetime";else if(Array.isArray(e))return"array";else return"table";}function p(e){var t=e+"";return /^[-A-Za-z0-9_]+$/.test(t)?t:d(t);}function d(e){return'"'+x(e).replace(/"/g,'\\"')+'"';}function m(e){return"'"+e+"'";}function h(e,t){for(;t.length<e;)t="0"+t;return t;}function x(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+h(4,e.codePointAt(0).toString(16)));}function f(e){let t=e.split(/\n/).map(e=>x(e).replace(/"(?="")/g,'\\"')).join("\n");return'"'===t.slice(-1)&&(t+="\\\n"),'"""\n'+t+'"""';}function g(e,t){let r=l(e);return"string"===r&&(t&&/\n/.test(e)?r="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(r="string-literal")),D(e,r);}function D(e,t){switch(t||(t=l(e)),t){case"string-multiline":return f(e);case"string":return d(e);case"string-literal":return m(e);case"integer":return y(e);case"float":return b(e);case"boolean":return v(e);c
|
||
|
//# sourceMappingURL=actions_python.ff232e32.js.map
|