vare=require("path"),t=require("os"),r=require("fs"),i=require("util"),a=require("assert"),n=require("crypto"),o=require("url"),s=require("buffer"),u=require("stream"),c=require("events"),l=require("timers"),p=require("string_decoder"),d=require("http"),m=require("https"),x=require("zlib"),h=require("child_process");functionf(e,t,r,i){Object.defineProperty(e,t,{get:r,set:i,enumerable:!0,configurable:!0});}functiong(e){returne&&e.__esModule?e.default:e;}varD="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{},y=D.parcelRequire810d;y.register("8MXq9",function(t,r){f(t.exports,"setupActionsPython",()=>x);vari=y("767vX"),a=y("8abBb"),n=y("7Lz0k"),o=y("i5trn"),s=y("eq4yW"),u=y("2W4C2"),c=y("71rx8"),l=y("eGaQ2"),p=y("bOuKS"),d=e.resolve(__dirname,"../../src/python");asyncfunctionm(e,t){letr=(0,l.getCacheDistributor)(e,t,void0);awaitr.restoreCache();}asyncfunctionx(e,t,r){c.IS_MAC&&(process.env.AGENT_TOOLSDIRECTORY="/Users/runner/hostedtoolcache");lets=process.env.AGENT_TOOLSDIRECTORY?.trim();if("string"==typeofs&&""!==s&&(process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,o.debug)(`Python is expected to be installed into ${process.env.RUNNER_TOOL_CACHE}`),e){lett;if(e.startsWith("pypy")){leti=await(0,a.findPyPyVersion)(e,r,!0,!1,!1);t=`${i.resolvedPyPyVersion}-${i.resolvedPythonVersion}`,(0,n.info)(`Successfully set up PyPy ${i.resolvedPyPyVersion} with Python (${i.resolvedPythonVersion})`);}else{leta=await(0,i.useCpythonVersion)(e,r,!0,!1,!1);t=a.version,(0,n.info)(`Successfully set up ${a.impl} (${t})`);}(0,c.isCacheFeatureAvailable)()&&(awaitm("pip",t));}u.GITHUB_ACTIONS&&(awaith());}asyncfunctionh(){lete=(0,s.join)(d,"python_matcher.json");if(!(await(0,p.pathExists)(e)))return(0,n.warning)("the python_matcher.json file does not exist in the same folder as setup-cpp.js");(0,n.info)(`::add-matcher::${e}`);}}),y.register("767vX",function(r,i){f(r.exports,"useCpythonVersion",()=>c);vara=y("71rx8"),n=y("bK4Or"),o=y("3rlmb"),s=y("i5trn"),u=y("92IYk");asyncfunctionc(r,i,c,l,p){vard;letm;letx=null,h=r.replace(/^(\d+)\.(\d+)-dev$/,"~$1.$2.0-0"),f=(m=h.replace(/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,"$1-$2"),p&&(m=m.replace(/^(\d+)\.(\d+)$/,"~$1.$2.0-0")),m);if(s.debug(`Semantic version spec of ${r} is ${f}`),l){x=awaito.getManifest();lete=(awaito.findReleaseFromManifest(f,i,x))?.version;e?(f=e,s.info(`Resolved as '${f}'`)):s.info(`Failed to resolve version ${f} from manifest`);}letg=u.find("Python",f,i);if(!g){s.info(`Version ${f} was not found in the local cache`);lete=awaito.findReleaseFromManifest(f,i,x);e&&e.files&&e.files.length>0&&(s.info(`Version ${f} is available for downloading`),awaito.installCpythonFromRelease(e),g=u.find("Python",f,i));}if(!g){lete=await(0,a.getOSInfo)();throwError([`The version '${r}' with architecture '${i}' was not found for ${e?`${e.osName}${e.osVersion}`:"this operating system"}.`,`The list of all available versions can be found here: ${o.MANIFEST_URL}`].join(t.EOL));}letD=(d=g,a.IS_WINDOWS?e.join(d,"Scripts"):e.join(d,"bin")),y=a.IS_WINDOWS?".exe":"",b=e.join(a.IS_WINDOWS?g:D,`python${y}`);if(c){if(s.exportVariable("pythonLocation",g),s.exportVariable("PKG_CONFIG_PATH",g+"/lib/pkgconfig"),s.exportVariable("pythonLocation",g),s.exportVariable("Python_ROOT_DIR",g),s.exportVariable("Python2_ROOT_DIR",g),s.exportVariable("Python3_ROOT_DIR",g),s.exportVariable("PKG_CONFIG_PATH",g+"/lib/pkgconfig"),a.IS_LINUX){lett=process.env.LD_LIBRARY_PATH?`:${process.env.LD_LIBRARY_PATH}`:"",r=e.join(g,"lib");t.split(":").includes(r)||s.exportVariable("LD_LIBRARY_PATH",r+t);}if(s.addPath(g),s.addPath(D),a.IS_WINDOWS){lett=e.basename(e.dirname(g)),r=n.major(t),i=n.minor(t),a=e.join(process.env.APPDATA||"","Python",`Python${r}${i}`,"Scripts");s.addPath(a);}}letv=function(t){letr=t.split(e.sep),i=r.findIndex(e=>"PyPy"===e||"Python"===e);returnr[i+1]||"";}(g);returns.setOutput("python-version",v),s.setOutput("python-path",b),{impl:"CPython",version:v};}}),y.register("71rx8",
`;}),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+=`