functione(e,t,a,i){Object.defineProperty(e,t,{get:a,set:i,enumerable:!0,configurable:!0});}functiont(e){returne&&e.__esModule?e.default:e;}vara=require("path"),i=require("os"),r=require("fs"),s=require("util"),o=require("assert"),n=require("crypto"),p=require("url"),d=require("buffer"),l=require("stream"),c=require("events"),m=require("timers"),u=require("string_decoder"),h=require("http"),f=require("https"),g=require("zlib"),y=require("punycode"),x=require("child_process"),v="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{},b=v.parcelRequire810d;b.register("ijScl",(t,i)=>{asyncfunctionr(e,t,a){c.IS_MAC&&(process.env.AGENT_TOOLSDIRECTORY="/Users/runner/hostedtoolcache");consti=process.env.AGENT_TOOLSDIRECTORY?.trim();if("string"==typeofi&&""!==i&&(process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,p.debug)("Python is expected to be installed into "+process.env.RUNNER_TOOL_CACHE),e){lett;if(e.startsWith("pypy")){consti=await(0,o.findPyPyVersion)(e,a,!0,f,!1);t=`${i.resolvedPyPyVersion}-${i.resolvedPythonVersion}`,(0,n.info)(`Successfully set up PyPy ${i.resolvedPyPyVersion} with Python (${i.resolvedPythonVersion})`);}else{consti=await(0,s.useCpythonVersion)(e,a,!0,f,!1);t=i.version,(0,n.info)(`Successfully set up ${i.impl} (${t})`);}if((0,c.isCacheFeatureAvailable)()){conste="pip";await(async(e,t)=>{consta=(0,m.getCacheDistributor)(e,t,void0);awaita.restoreCache();})(e,t);}}l.GITHUB_ACTIONS&&(await(async()=>{conste=(0,d.join)(h,"python_matcher.json");if(!(await(0,u.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);})());}e(t.exports,"setupActionsPython",()=>r);vars=b("3K9F2"),o=b("i9Mj8"),n=b("bouSm"),p=b("lXEOe"),d=b("jeNZZ"),l=b("bTpxN"),c=b("aZVB2"),m=b("3pE56"),u=b("hbAHh"),h=a.resolve(__dirname,"../../src/python");constf=!1;}),b.register("3K9F2",(t,r)=>{asyncfunctions(e,t,r,s,c){letm=null,u=((e,t)=>{leta=e.replace(/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,"$1-$2");returnt&&(a=a.replace(/^(\d+)\.(\d+)$/,"~$1.$2.0-0")),a;})(e.replace(/^(\d+)\.(\d+)-dev$/,"~$1.$2.0-0"),c);if(d.debug(`Semantic version spec of ${e} is ${u}`),s){m=awaitp.getManifest();conste=(awaitp.findReleaseFromManifest(u,t,m))?.version;e?(u=e,d.info(`Resolved as '${u}'`)):d.info(`Failed to resolve version ${u} from manifest`);}leth=l.find("Python",u,t);if(!h){d.info(`Version ${u} was not found in the local cache`);conste=awaitp.findReleaseFromManifest(u,t,m);e&&e.files&&e.files.length>0&&(d.info(`Version ${u} is available for downloading`),awaitp.installCpythonFromRelease(e),h=l.find("Python",u,t));}if(!h){consta=await(0,o.getOSInfo)();throwError([`The version '${e}' with architecture '${t}' was not found for ${a?`${a.osName}${a.osVersion}`:"this operating system"}.`,"The list of all available versions can be found here: "+p.MANIFEST_URL].join(i.EOL));}constf=(e=>a.join(e,o.IS_WINDOWS?"Scripts":"bin"))(h),g=a.join(o.IS_WINDOWS?h:f,"python"+(o.IS_WINDOWS?".exe":""));if(r){if(d.exportVariable("pythonLocation",h),d.exportVariable("PKG_CONFIG_PATH",h+"/lib/pkgconfig"),d.exportVariable("pythonLocation",h),d.exportVariable("Python_ROOT_DIR",h),d.exportVariable("Python2_ROOT_DIR",h),d.exportVariable("Python3_ROOT_DIR",h),d.exportVariable("PKG_CONFIG_PATH",h+"/lib/pkgconfig"),o.IS_LINUX){conste=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",t=a.join(h,"lib");e.split(":").includes(t)||d.exportVariable("LD_LIBRARY_PATH",t+e);}if(d.addPath(h),d.addPath(f),o.IS_WINDOWS){conste=a.basename(a.dirname(h)),t=n.major(e),i=n.minor(e),r=a.join(process.env.APPDATA||"","Python",`Python${t}${i}`,"Scripts");d.addPath(r);}}consty=(e=>{constt=e.split(a.sep),i=t.findIndex(e=>"PyPy"===e||"Python"===e);returnt[i+1]||"";})(h);returnd.setOutput("python-version",y),d.setOutput("python-path",g),{impl:"CPython",version:y};}e(t.exports,"useCpythonVersion",()=>s);varo=b("aZVB2"),n=b("e5IxQ"),p=b("8c5jt"),d=b("lXEOe"),l=b("bafIx");}),