function$parcel$export(e,t,r,i){Object.defineProperty(e,t,{get:r,set:i,enumerable:!0,configurable:!0});}function$parcel$interopDefault(e){returne&&e.__esModule?e.default:e;}var$a2uk8$path=require("path"),$a2uk8$os=require("os"),$a2uk8$fs=require("fs"),$a2uk8$stream=require("stream"),$a2uk8$util=require("util"),$a2uk8$assert=require("assert"),$a2uk8$child_process=require("child_process"),$a2uk8$http=require("http"),$a2uk8$https=require("https"),$parcel$global=globalThis,parcelRequire=$parcel$global.parcelRequire810d,parcelRegister=parcelRequire.register;parcelRegister("apy8x",function(e,t){varr,i,s,n,o,a,h,l,c;functionu(e){returne.startsWith("pypy");}asyncfunctionp(e,t,a){varh;l.IS_MAC&&(process.env.AGENT_TOOLSDIRECTORY="/Users/runner/hostedtoolcache");letc=null===(h=process.env.AGENT_TOOLSDIRECTORY)||void0===h?void0:h.trim();if("string"==typeofc&&""!==c&&(process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,s.debug)("Python is expected to be installed into "+process.env.RUNNER_TOOL_CACHE),e){lett;if(u(e)){leti=await(0,r.findPyPyVersion)(e,a,!0,d,!1);t=`${i.resolvedPyPyVersion}-${i.resolvedPythonVersion}`,(0,o.info)(`Successfully set up PyPy ${i.resolvedPyPyVersion} with Python (${i.resolvedPythonVersion})`);}else{letr=await(0,i.useCpythonVersion)(e,a,!0,d,!1);t=r.version,(0,o.info)(`Successfully set up ${r.impl} (${t})`);}}n.GITHUB_ACTIONS&&(awaitf());}asyncfunctionf(){lete=(0,h.join)(c,"python_matcher.json");if(!(await(0,a.pathExists)(e)))return(0,o.warning)("the python_matcher.json file does not exist in the same folder as setup-cpp.js");(0,o.info)("::add-matcher::"+e);}$parcel$export(e.exports,"setupActionsPython",()=>p),r=parcelRequire("957JZ"),i=parcelRequire("2mbyd"),s=parcelRequire("k1l4q"),n=parcelRequire("dKklS"),o=parcelRequire("pcnv8"),a=parcelRequire("ibhuk"),h=parcelRequire("drEX5"),l=parcelRequire("clwE1"),c=$a2uk8$path.resolve(__dirname,"../../src/python");letd=!1;}),parcelRegister("957JZ",function(e,t){varr,i,s,n,o;asyncfunctiona(e,t,s,o,a){letc,u,p="",f="",d=l(e);if(o&&(u=awaitr.getAvailablePyPyVersions())&&u.length>0){lete=r.findRelease(u,d.pythonVersion,d.pypyVersion,t,!1);e?(n.info(`Resolved as PyPy ${e.resolvedPyPyVersion} with Python (${e.resolvedPythonVersion})`),d.pythonVersion=e.resolvedPythonVersion,d.pypyVersion=e.resolvedPyPyVersion):n.info(`Failed to resolve PyPy ${d.pypyVersion} with Python (${d.pythonVersion}) from manifest`);}({installDir:c,resolvedPythonVersion:f,resolvedPyPyVersion:p}=h(d.pythonVersion,d.pypyVersion,t)),c||({installDir:c,resolvedPythonVersion:f,resolvedPyPyVersion:p}=awaitr.installPyPy(d.pypyVersion,d.pythonVersion,t,a,u));lety=i.IS_WINDOWS?"Scripts":"bin",m=$a2uk8$path.join(c,y),x=i.IS_WINDOWS?".exe":"",g=$a2uk8$path.join(i.IS_WINDOWS?c:m,"python"+x),w=r.getPyPyBinaryPath(c);returns&&(n.exportVariable("pythonLocation",c),n.exportVariable("Python_ROOT_DIR",c),n.exportVariable("Python2_ROOT_DIR",c),n.exportVariable("Python3_ROOT_DIR",c),n.exportVariable("PKG_CONFIG_PATH",w+"/lib/pkgconfig"),n.addPath(w),n.addPath(m)),n.setOutput("python-version","pypy"+p),n.setOutput("python-path",g),{resolvedPyPyVersion:p,resolvedPythonVersion:f};}functionh(e,t,r){leta="",h="",l=i.IS_WINDOWS?c(e):o.find("PyPy",e,r);returnl&&(h=(0,i.getPyPyVersionFromPath)(l),a=(0,i.readExactPyPyVersionFile)(l),s.satisfies(a,t)||(l=null,a="",h="")),l||n.info(`PyPy version ${e} (${t}) was not found in the local cache`),{installDir:l,resolvedPythonVersion:h,resolvedPyPyVersion:a};}functionl(e){lett;lets=e.split("-").filter(e=>!!e);if(/^(pypy)(.+)/.test(s[0])){lete=s[0].replace("pypy","");s.splice(0,1,"pypy",e);}if(s.length<2||"pypy"!=s[0])throwError("Invalid 'version' property for PyPy. PyPy version should be specified as 'pypy<python-version>' or 'pypy-<python-version>'. See README for examples and documentation.");letn=s[1];if(t=s.length>2?r.pypyVersionToSemantic(s[2]):"x",!(0,i.validateVersion)(n)||!(0,i.validateVersion)(t))throwError("Invalid'version'propertyforPyPy.BothPythonversionandPyPyversionsshouldsatisfySemVernotation.SeeREAD