diff --git a/builder/index.js b/builder/index.js index 230c8cf4..7590c00e 100644 --- a/builder/index.js +++ b/builder/index.js @@ -1 +1 @@ -module.exports=function(e,r){"use strict";var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={i:r,l:false,exports:{}};e[r].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(467)}r(__webpack_require__);return startup()}({1:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(129);const a=t(622);const o=t(669);const u=t(672);const f=o.promisify(i.exec);function cp(e,r,t={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(t);const o=(yield u.exists(r))?yield u.stat(r):null;if(o&&o.isFile()&&!n){return}const f=o&&o.isDirectory()?a.join(r,a.basename(e)):r;if(!(yield u.exists(e))){throw new Error(`no such file or directory: ${e}`)}const s=yield u.stat(e);if(s.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,f,0,n)}}else{if(a.relative(e,f)===""){throw new Error(`'${f}' and '${e}' are the same file`)}yield copyFile(e,f,n)}})}r.cp=cp;function mv(e,r,t={}){return n(this,void 0,void 0,function*(){if(yield u.exists(r)){let n=true;if(yield u.isDirectory(r)){r=a.join(r,a.basename(e));n=yield u.exists(r)}if(n){if(t.force==null||t.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(r));yield u.rename(e,r)})}r.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(u.IS_WINDOWS){try{if(yield u.isDirectory(e,true)){yield f(`rd /s /q "${e}"`)}else{yield f(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield u.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield u.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield f(`rm -rf "${e}"`)}else{yield u.unlink(e)}}})}r.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield u.mkdirP(e)})}r.mkdirP=mkdirP;function which(e,r){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(u.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const r=[];if(u.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(a.delimiter)){if(e){r.push(e)}}}if(u.isRooted(e)){const t=yield u.tryGetExecutablePath(e,r);if(t){return t}return""}if(e.includes("/")||u.IS_WINDOWS&&e.includes("\\")){return""}const t=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){t.push(e)}}}for(const n of t){const t=yield u.tryGetExecutablePath(n+a.sep+e,r);if(t){return t}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}r.which=which;function readCopyOptions(e){const r=e.force==null?true:e.force;const t=Boolean(e.recursive);return{force:r,recursive:t}}function cpDirRecursive(e,r,t,i){return n(this,void 0,void 0,function*(){if(t>=255)return;t++;yield mkdirP(r);const n=yield u.readdir(e);for(const a of n){const n=`${e}/${a}`;const o=`${r}/${a}`;const f=yield u.lstat(n);if(f.isDirectory()){yield cpDirRecursive(n,o,t,i)}else{yield copyFile(n,o,i)}}yield u.chmod(r,(yield u.stat(e)).mode)})}function copyFile(e,r,t){return n(this,void 0,void 0,function*(){if((yield u.lstat(e)).isSymbolicLink()){try{yield u.lstat(r);yield u.unlink(r)}catch(e){if(e.code==="EPERM"){yield u.chmod(r,"0666");yield u.unlink(r)}}const t=yield u.readlink(e);yield u.symlink(t,r,u.IS_WINDOWS?"junction":null)}else if(!(yield u.exists(r))||t){yield u.copyFile(e,r)}})}},9:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(87);const a=t(614);const o=t(129);const u=t(622);const f=t(1);const s=t(672);const c=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,r,t){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=t||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const t=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=r?"":"[command]";if(c){if(this._isCmdFile()){i+=t;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${t}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(t);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=t;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,r,t){try{let n=r+e.toString();let a=n.indexOf(i.EOL);while(a>-1){const e=n.substring(0,a);t(e);n=n.substring(a+i.EOL.length);a=n.indexOf(i.EOL)}r=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(c){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(c){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const t of this.args){r+=" ";r+=e.windowsVerbatimArguments?t:this._windowsQuoteCmdArg(t)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let t=false;for(const n of e){if(r.some(e=>e===n)){t=true;break}}if(!t){return e}let n='"';let i=true;for(let r=e.length;r>0;r--){n+=e[r-1];if(i&&e[r-1]==="\\"){n+="\\"}else if(e[r-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let r='"';let t=true;for(let n=e.length;n>0;n--){r+=e[n-1];if(t&&e[n-1]==="\\"){r+="\\"}else if(e[n-1]==='"'){t=true;r+="\\"}else{t=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const t={};t.cwd=e.cwd;t.env=e.env;t["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){t.argv0=`"${r}"`}return t}exec(){return n(this,void 0,void 0,function*(){if(!s.isRooted(this.toolPath)&&(this.toolPath.includes("/")||c&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield f.which(this.toolPath,true);return new Promise((e,r)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const t=this._cloneExecOptions(this.options);if(!t.silent&&t.outStream){t.outStream.write(this._getCommandString(t)+i.EOL)}const n=new ExecState(t,this.toolPath);n.on("debug",e=>{this._debug(e)});const a=this._getSpawnFileName();const u=o.spawn(a,this._getSpawnArgs(t),this._getSpawnOptions(this.options,a));const f="";if(u.stdout){u.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!t.silent&&t.outStream){t.outStream.write(e)}this._processLineBuffer(e,f,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const s="";if(u.stderr){u.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!t.silent&&t.errStream&&t.outStream){const r=t.failOnStdErr?t.errStream:t.outStream;r.write(e)}this._processLineBuffer(e,s,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}u.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});u.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});u.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(t,n)=>{if(f.length>0){this.emit("stdline",f)}if(s.length>0){this.emit("errline",s)}u.removeAllListeners();if(t){r(t)}else{e(n)}})})})}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let t=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let a=0;a0){r.push(i);i=""}continue}append(o)}if(i.length>0){r.push(i.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},357:function(e){e.exports=require("assert")},431:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=t(87);function issueCommand(e,r,t){const i=new Command(e,r,t);process.stdout.write(i.toString()+n.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const i="::";class Command{constructor(e,r,t){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=t}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const t=this.properties[r];if(t){e+=`${r}=${escape(`${t||""}`)},`}}}}e+=i;const r=`${this.message||""}`;e+=escapeData(r);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},467:function(e,r,t){"use strict";t.r(r);var n=t(622);var i=t.n(n);class action_Action{static get supportedPlatforms(){return["linux"]}static get isRunningLocally(){return process.env.RUNNER_WORKSPACE===undefined}static get isRunningFromSource(){return i().basename(__dirname)==="model"}static get name(){return"unity-builder"}static get rootFolder(){if(action_Action.isRunningFromSource){return i().dirname(i().dirname(i().dirname(__filename)))}return i().dirname(i().dirname(__filename))}static get builderFolder(){return`${action_Action.rootFolder}/builder`}static get dockerfile(){return`${action_Action.builderFolder}/Dockerfile`}static get workspace(){return process.env.GITHUB_WORKSPACE}static checkCompatibility(){const e=process.platform;if(!action_Action.supportedPlatforms.includes(e)){throw new Error(`Currently ${e}-platform is not supported`)}}}var a=action_Action;class Platform{static get default(){return Platform.types.StandaloneWindows64}static get types(){return{StandaloneOSX:"StandaloneOSX",StandaloneWindows:"StandaloneWindows",StandaloneWindows64:"StandaloneWindows64",StandaloneLinux64:"StandaloneLinux64",iOS:"iOS",Android:"Android",WebGL:"WebGL",WSAPlayer:"WSAPlayer",PS4:"PS4",XboxOne:"XboxOne",tvOS:"tvOS",Switch:"Switch",Lumin:"Lumin",BJM:"BJM",Stadia:"Stadia",Facebook:"Facebook",NoTarget:"NoTarget",Test:"Test"}}static isWindows(e){switch(e){case Platform.types.StandaloneWindows:case Platform.types.StandaloneWindows64:return true;default:return false}}static isAndroid(e){switch(e){case Platform.types.Android:return true;default:return false}}}var o=Platform;class build_parameters_BuildParameters{static create(e){const{unityVersion:r,targetPlatform:t,projectPath:n,buildName:i,buildsPath:a,buildMethod:o}=e;return{version:r,platform:t,projectPath:n,buildName:i,buildPath:`${a}/${t}`,buildFile:this.parseBuildFile(i,t),buildMethod:o}}static parseBuildFile(e,r){if(o.isWindows(r)){return`${e}.exe`}if(o.isAndroid(r)){return`${e}.apk`}return e}}var u=build_parameters_BuildParameters;var f=t(986);var s=typeof global=="object"&&global&&global.Object===Object&&global;var c=s;var l=typeof self=="object"&&self&&self.Object===Object&&self;var v=c||l||Function("return this")();var d=v;var p=d.Symbol;var h=p;var y=Object.prototype;var g=y.hasOwnProperty;var b=y.toString;var m=h?h.toStringTag:undefined;function getRawTag(e){var r=g.call(e,m),t=e[m];try{e[m]=undefined;var n=true}catch(e){}var i=b.call(e);if(n){if(r){e[m]=t}else{delete e[m]}}return i}var _=getRawTag;var w=Object.prototype;var x=w.toString;function objectToString(e){return x.call(e)}var S=objectToString;var O="[object Null]",E="[object Undefined]";var I=h?h.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?E:O}return I&&I in Object(e)?_(e):S(e)}var j=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var A=isObjectLike;var R="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||A(e)&&j(e)==R}var W=isSymbol;var k=0/0;function baseToNumber(e){if(typeof e=="number"){return e}if(W(e)){return k}return+e}var C=baseToNumber;function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t0){if(++r>=fr){return arguments[0]}}else{r=0}return e.apply(undefined,arguments)}}var lr=shortOut;var vr=lr(ke);var dr=vr;var pr=/\{\n\/\* \[wrapped with (.+)\] \*/,hr=/,? & /;function getWrapDetails(e){var r=e.match(pr);return r?r[1].split(hr):[]}var yr=getWrapDetails;var gr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function insertWrapDetails(e,r){var t=r.length;if(!t){return e}var n=t-1;r[n]=(t>1?"& ":"")+r[n];r=r.join(t>2?", ":" ");return e.replace(gr,"{\n/* [wrapped with "+r+"] */\n")}var br=insertWrapDetails;function constant(e){return function(){return e}}var mr=constant;var _r=function(){try{var e=Ee(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var wr=_r;var xr=!wr?ne:function(e,r){return wr(e,"toString",{configurable:true,enumerable:false,value:mr(r),writable:true})};var Sr=xr;var Or=lr(Sr);var Er=Or;function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t-1}var kr=arrayIncludes;var Cr=1,Mr=2,Tr=8,Pr=16,Br=32,Dr=64,Lr=128,$r=256,Nr=512;var zr=[["ary",Lr],["bind",Cr],["bindKey",Mr],["curry",Tr],["curryRight",Pr],["flip",Nr],["partial",Br],["partialRight",Dr],["rearg",$r]];function updateWrapDetails(e,r){Ir(zr,function(t){var n="_."+t[0];if(r&t[1]&&!kr(e,n)){e.push(n)}});return e.sort()}var Fr=updateWrapDetails;function setWrapToString(e,r,t){var n=r+"";return Er(e,br(n,Fr(yr(n),t)))}var Ur=setWrapToString;var qr=1,Gr=2,Kr=4,Hr=8,Zr=32,Xr=64;function createRecurry(e,r,t,n,i,a,o,u,f,s){var c=r&Hr,l=c?o:undefined,v=c?undefined:o,d=c?a:undefined,p=c?undefined:a;r|=c?Zr:Xr;r&=~(c?Xr:Zr);if(!(r&Kr)){r&=~(qr|Gr)}var h=[e,r,i,d,l,p,v,u,f,s];var y=t.apply(undefined,h);if(ur(e)){dr(y,h)}y.placeholder=n;return Ur(y,e,r)}var Yr=createRecurry;function getHolder(e){var r=e;return r.placeholder}var Jr=getHolder;var Qr=9007199254740991;var Vr=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?Qr:r;return!!r&&(t=="number"||t!="symbol"&&Vr.test(e))&&(e>-1&&e%1==0&&e1){b.reverse()}if(c&&f-1&&e%1==0&&e<=qt}var Gt=isLength;function isArrayLike(e){return e!=null&&Gt(e.length)&&!fe(e)}var Kt=isArrayLike;function isIterateeCall(e,r,t){if(!U(t)){return false}var n=typeof r;if(n=="number"?Kt(t)&&et(r,t.length):n=="string"&&r in t){return Bt(t[r],e)}return false}var Ht=isIterateeCall;function createAssigner(e){return Ut(function(r,t){var n=-1,i=t.length,a=i>1?t[i-1]:undefined,o=i>2?t[2]:undefined;a=e.length>3&&typeof a=="function"?(i--,a):undefined;if(o&&Ht(t[0],t[1],o)){a=i<3?undefined:a;i=1}r=Object(r);while(++n-1}var qi=listCacheHas;function listCacheSet(e,r){var t=this.__data__,n=$i(t,e);if(n<0){++this.size;t.push([e,r])}else{t[n][1]=r}return this}var Gi=listCacheSet;function ListCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r0&&t(u)){if(r>1){baseFlatten(u,r-1,t,n,i)}else{ba(i,u)}}else if(!n){i[i.length]=u}}return i}var wa=baseFlatten;function flatten(e){var r=e==null?0:e.length;return r?wa(e,1):[]}var xa=flatten;function flatRest(e){return Er(Ft(e,undefined,xa),e+"")}var Sa=flatRest;var Oa=Sa(ga);var Ea=Oa;var Ia=Vn(Object.getPrototypeOf,Object);var ja=Ia;var Aa="[object Object]";var Ra=Function.prototype,Wa=Object.prototype;var ka=Ra.toString;var Ca=Wa.hasOwnProperty;var Ma=ka.call(Object);function isPlainObject(e){if(!A(e)||j(e)!=Aa){return false}var r=ja(e);if(r===null){return true}var t=Ca.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&ka.call(t)==Ma}var Ta=isPlainObject;var Pa="[object DOMException]",Ba="[object Error]";function isError(e){if(!A(e)){return false}var r=j(e);return r==Ba||r==Pa||typeof e.message=="string"&&typeof e.name=="string"&&!Ta(e)}var Da=isError;var La=Ut(function(e,r){try{return Le(e,undefined,r)}catch(e){return Da(e)?e:new Error(e)}});var $a=La;var Na="Expected a function";function before(e,r){var t;if(typeof r!="function"){throw new TypeError(Na)}e=ee(e);return function(){if(--e>0){t=r.apply(this,arguments)}if(e<=1){r=undefined}return t}}var za=before;var Fa=1,Ua=32;var qa=Ut(function(e,r,t){var n=Fa;if(t.length){var i=it(t,Jr(qa));n|=Ua}return Ct(e,n,r,t,i)});qa.placeholder={};var Ga=qa;var Ka=Sa(function(e,r){Ir(r,function(r){r=pa(r);Pt(e,r,Ga(e[r],e))});return e});var Ha=Ka;var Za=1,Xa=2,Ya=32;var Ja=Ut(function(e,r,t){var n=Za|Xa;if(t.length){var i=it(t,Jr(Ja));n|=Ya}return Ct(r,n,e,t,i)});Ja.placeholder={};var Qa=Ja;function baseSlice(e,r,t){var n=-1,i=e.length;if(r<0){r=-r>i?0:i+r}t=t>i?i:t;if(t<0){t+=i}i=r>t?0:t-r>>>0;r>>>=0;var a=Array(i);while(++n=n?e:Va(e,r,t)}var eo=castSlice;var ro="\\ud800-\\udfff",to="\\u0300-\\u036f",no="\\ufe20-\\ufe2f",io="\\u20d0-\\u20ff",ao=to+no+io,oo="\\ufe0e\\ufe0f";var uo="\\u200d";var fo=RegExp("["+uo+ro+ao+oo+"]");function hasUnicode(e){return fo.test(e)}var so=hasUnicode;function asciiToArray(e){return e.split("")}var co=asciiToArray;var lo="\\ud800-\\udfff",vo="\\u0300-\\u036f",po="\\ufe20-\\ufe2f",ho="\\u20d0-\\u20ff",yo=vo+po+ho,go="\\ufe0e\\ufe0f";var bo="["+lo+"]",mo="["+yo+"]",_o="\\ud83c[\\udffb-\\udfff]",wo="(?:"+mo+"|"+_o+")",xo="[^"+lo+"]",So="(?:\\ud83c[\\udde6-\\uddff]){2}",Oo="[\\ud800-\\udbff][\\udc00-\\udfff]",Eo="\\u200d";var Io=wo+"?",jo="["+go+"]?",Ao="(?:"+Eo+"(?:"+[xo,So,Oo].join("|")+")"+jo+Io+")*",Ro=jo+Io+Ao,Wo="(?:"+[xo+mo+"?",mo,So,Oo,bo].join("|")+")";var ko=RegExp(_o+"(?="+_o+")|"+Wo+Ro,"g");function unicodeToArray(e){return e.match(ko)||[]}var Co=unicodeToArray;function stringToArray(e){return so(e)?Co(e):co(e)}var Mo=stringToArray;function createCaseFirst(e){return function(r){r=la(r);var t=so(r)?Mo(r):undefined;var n=t?t[0]:r.charAt(0);var i=t?eo(t,1).join(""):r.slice(1);return n[e]()+i}}var To=createCaseFirst;var Po=To("toUpperCase");var Bo=Po;function capitalize(e){return Bo(la(e).toLowerCase())}var Do=capitalize;function arrayReduce(e,r,t,n){var i=-1,a=e==null?0:e.length;if(n&&a){t=e[++i]}while(++i=r?e:r}}return e}var af=baseClamp;function clamp(e,r,t){if(t===undefined){t=r;r=undefined}if(t!==undefined){t=Y(t);t=t===t?t:0}if(r!==undefined){r=Y(r);r=r===r?r:0}return af(Y(e),r,t)}var of=clamp;function stackClear(){this.__data__=new Ki;this.size=0}var uf=stackClear;function stackDelete(e){var r=this.__data__,t=r["delete"](e);this.size=r.size;return t}var ff=stackDelete;function stackGet(e){return this.__data__.get(e)}var sf=stackGet;function stackHas(e){return this.__data__.has(e)}var cf=stackHas;var lf=200;function stackSet(e,r){var t=this.__data__;if(t instanceof Ki){var n=t.__data__;if(!Zi||n.lengthu)){return false}var s=a.get(e);if(s&&a.get(r)){return s==r}var c=-1,l=true,v=t&Uc?new $c:undefined;a.set(e,r);a.set(r,e);while(++c=r||t<0||l&&n>=a}function timerExpired(){var e=lv();if(shouldInvoke(e)){return trailingEdge(e)}u=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){u=undefined;if(v&&n){return invokeFunc(e)}n=i=undefined;return o}function cancel(){if(u!==undefined){clearTimeout(u)}s=0;n=f=i=u=undefined}function flush(){return u===undefined?o:trailingEdge(lv())}function debounced(){var e=lv(),t=shouldInvoke(e);n=arguments;i=this;f=e;if(t){if(u===undefined){return leadingEdge(f)}if(l){clearTimeout(u);u=setTimeout(timerExpired,r);return invokeFunc(f)}}if(u===undefined){u=setTimeout(timerExpired,r)}return o}debounced.cancel=cancel;debounced.flush=flush;return debounced}var hv=debounce;function defaultTo(e,r){return e==null||e!==e?r:e}var yv=defaultTo;var gv=Object.prototype;var bv=gv.hasOwnProperty;var mv=Ut(function(e,r){e=Object(e);var t=-1;var n=r.length;var i=n>2?r[2]:undefined;if(i&&Ht(r[0],r[1],i)){n=1}while(++t=$v){a=zc;o=false;r=new $c(r)}e:while(++i=0&&e.slice(t,i)==r}var cd=endsWith;function baseToPairs(e,r){return M(r,function(r){return[r,e[r]]})}var ld=baseToPairs;function setToPairs(e){var r=-1,t=Array(e.size);e.forEach(function(e){t[++r]=[e,e]});return t}var vd=setToPairs;var dd="[object Map]",pd="[object Set]";function createToPairs(e){return function(r){var t=rs(r);if(t==dd){return Gc(r)}if(t==pd){return vd(r)}return ld(r,e(r))}}var hd=createToPairs;var yd=hd(ai);var gd=yd;var bd=hd(pi);var md=bd;var _d={"&":"&","<":"<",">":">",'"':""","'":"'"};var wd=$o(_d);var xd=wd;var Sd=/[&<>"']/g,Od=RegExp(Sd.source);function escape_escape(e){e=la(e);return e&&Od.test(e)?e.replace(Sd,xd):e}var Ed=escape_escape;var Id=/[\\^$.*+?()[\]{}|]/g,jd=RegExp(Id.source);function escapeRegExp(e){e=la(e);return e&&jd.test(e)?e.replace(Id,"\\$&"):e}var Ad=escapeRegExp;function arrayEvery(e,r){var t=-1,n=e==null?0:e.length;while(++ti?0:i+t}n=n===undefined||n>i?i:ee(n);if(n<0){n+=i}n=t>n?0:Md(n);while(t-1?i[a?r[o]:o]:undefined}}var Ld=createFind;var $d=Math.max;function findIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:ee(t);if(i<0){i=$d(n+i,0)}return jr(e,Dl(r,3),i)}var Nd=findIndex;var zd=Ld(Nd);var Fd=zd;function baseFindKey(e,r,t){var n;t(e,function(e,t,i){if(r(e,t,i)){n=t;return false}});return n}var Ud=baseFindKey;function findKey(e,r){return Ud(e,Dl(r,3),Xl)}var qd=findKey;var Gd=Math.max,Kd=Math.min;function findLastIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=n-1;if(t!==undefined){i=ee(t);i=t<0?Gd(n+i,0):Kd(i,n-1)}return jr(e,Dl(r,3),i,true)}var Hd=findLastIndex;var Zd=Ld(Hd);var Xd=Zd;function findLastKey(e,r){return Ud(e,Dl(r,3),od)}var Yd=findLastKey;function head(e){return e&&e.length?e[0]:undefined}var Jd=head;function baseMap(e,r){var t=-1,n=Kt(e)?Array(e.length):[];Ql(e,function(e,i,a){n[++t]=r(e,i,a)});return n}var Qd=baseMap;function map_map(e,r){var t=P(e)?M:Qd;return t(e,Dl(r,3))}var Vd=map_map;function flatMap(e,r){return wa(Vd(e,r),1)}var ep=flatMap;var rp=1/0;function flatMapDeep(e,r){return wa(Vd(e,r),rp)}var tp=flatMapDeep;function flatMapDepth(e,r,t){t=t===undefined?1:ee(t);return wa(Vd(e,r),t)}var np=flatMapDepth;var ip=1/0;function flattenDeep(e){var r=e==null?0:e.length;return r?wa(e,ip):[]}var ap=flattenDeep;function flattenDepth(e,r){var t=e==null?0:e.length;if(!t){return[]}r=r===undefined?1:ee(r);return wa(e,r)}var op=flattenDepth;var up=512;function flip(e){return Ct(e,up)}var fp=flip;var sp=Ju("floor");var cp=sp;var lp="Expected a function";var vp=8,dp=32,pp=128,hp=256;function createFlow(e){return Sa(function(r){var t=r.length,n=t,i=rr.prototype.thru;if(e){r.reverse()}while(n--){var a=r[n];if(typeof a!="function"){throw new TypeError(lp)}if(i&&!o&&er(a)=="wrapper"){var o=new rr([],true)}}n=o?n:t;while(++nr}var Mp=baseGt;function createRelationalOperation(e){return function(r,t){if(!(typeof r=="string"&&typeof t=="string")){r=Y(r);t=Y(t)}return e(r,t)}}var Tp=createRelationalOperation;var Pp=Tp(Mp);var Bp=Pp;var Dp=Tp(function(e,r){return e>=r});var Lp=Dp;var $p=Object.prototype;var Np=$p.hasOwnProperty;function baseHas(e,r){return e!=null&&Np.call(e,r)}var zp=baseHas;function has(e,r){return e!=null&&Rl(e,r,zp)}var Fp=has;var Up=Math.max,qp=Math.min;function baseInRange(e,r,t){return e>=qp(r,t)&&e-1:!!i&&Wr(e,r,t)>-1}var Qp=includes_includes;var Vp=Math.max;function indexOf_indexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:ee(t);if(i<0){i=Vp(n+i,0)}return Wr(e,r,i)}var eh=indexOf_indexOf;function initial(e){var r=e==null?0:e.length;return r?Va(e,0,-1):[]}var rh=initial;var th=Math.min;function baseIntersection(e,r,t){var n=t?Lv:kr,i=e[0].length,a=e.length,o=a,u=Array(a),f=Infinity,s=[];while(o--){var c=e[o];if(o&&r){c=M(c,Nn(r))}f=th(c.length,f);u[o]=!t&&(r||i>=120&&c.length>=120)?new $c(o&&c):undefined}c=e[0];var l=-1,v=u[0];e:while(++l=-dy&&e<=dy}var py=isSafeInteger;function isUndefined(e){return e===undefined}var hy=isUndefined;var yy="[object WeakMap]";function isWeakMap(e){return A(e)&&rs(e)==yy}var gy=isWeakMap;var by="[object WeakSet]";function isWeakSet(e){return A(e)&&j(e)==by}var my=isWeakSet;var _y=1;function iteratee_iteratee(e){return Dl(typeof e=="function"?e:xc(e,_y))}var wy=iteratee_iteratee;var xy=Array.prototype;var Sy=xy.join;function join(e,r){return e==null?"":Sy.call(e,r)}var Oy=join;var Ey=Gu(function(e,r,t){return e+(t?"-":"")+r.toLowerCase()});var Iy=Ey;var jy=ev(function(e,r,t){Pt(e,t,r)});var Ay=jy;function strictLastIndexOf(e,r,t){var n=t+1;while(n--){if(e[n]===r){return n}}return n}var Ry=strictLastIndexOf;var Wy=Math.max,ky=Math.min;function lastIndexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=n;if(t!==undefined){i=ee(t);i=i<0?Wy(n+i,0):ky(i,n-1)}return r===r?Ry(e,r,i):jr(e,Ar,i,true)}var Cy=lastIndexOf;var My=Gu(function(e,r,t){return e+(t?" ":"")+r.toLowerCase()});var Ty=My;var Py=To("toLowerCase");var By=Py;function baseLt(e,r){return e=this.__values__.length,r=e?undefined:this.__values__[this.__index__++];return{done:e,value:r}}var _g=wrapperNext;function baseNth(e,r){var t=e.length;if(!t){return}r+=r<0?t:0;return et(r,t)?e[r]:undefined}var wg=baseNth;function nth(e,r){return e&&e.length?wg(e,ee(r)):undefined}var xg=nth;function nthArg(e){e=ee(e);return Ut(function(r){return wg(r,e)})}var Sg=nthArg;function baseUnset(e,r){r=va(r,e);e=xh(e,r);return e==null||delete e[pa(Uv(r))]}var Og=baseUnset;function customOmitClone(e){return Ta(e)?undefined:e}var Eg=customOmitClone;var Ig=1,jg=2,Ag=4;var Rg=Sa(function(e,r){var t={};if(e==null){return t}var n=false;r=M(r,function(r){r=va(r,e);n||(n=r.length>1);return r});Nt(e,Bf(e),t);if(n){t=xc(t,Ig|jg|Ag,Eg)}var i=r.length;while(i--){Og(t,r[i])}return t});var Wg=Rg;function baseSet(e,r,t,n){if(!U(e)){return e}r=va(r,e);var i=-1,a=r.length,o=a-1,u=e;while(u!=null&&++ir||a&&o&&f&&!u&&!s||n&&o&&f||!t&&f||!i){return 1}if(!n&&!a&&!s&&e=u){return f}var s=t[n];return f*(s=="desc"?-1:1)}}return e.index-r.index}var Lg=compareMultiple;function baseOrderBy(e,r,t){var n=-1;r=M(r.length?r:[ne],Nn(Dl));var i=Qd(e,function(e,t,i){var a=M(r,function(r){return r(e)});return{criteria:a,index:++n,value:e}});return Bg(i,function(e,r){return Lg(e,r,t)})}var $g=baseOrderBy;function orderBy(e,r,t,n){if(e==null){return[]}if(!P(r)){r=r==null?[]:[r]}t=n?undefined:t;if(!P(t)){t=t==null?[]:[t]}return $g(e,r,t)}var Ng=orderBy;function createOver(e){return Sa(function(r){r=M(r,Nn(Dl));return Ut(function(t){var n=this;return e(r,function(e){return Le(e,n,t)})})})}var zg=createOver;var Fg=zg(M);var Ug=Fg;var qg=Ut;var Gg=qg;var Kg=Math.min;var Hg=Gg(function(e,r){r=r.length==1&&P(r[0])?M(r[0],Nn(Dl)):M(wa(r,1),Nn(Dl));var t=r.length;return Ut(function(n){var i=-1,a=Kg(n.length,t);while(++iVg){return t}do{if(r%2){t+=e}r=eb(r/2);if(r){e+=e}}while(r);return t}var rb=baseRepeat;var tb=Tl("length");var nb=tb;var ib="\\ud800-\\udfff",ab="\\u0300-\\u036f",ob="\\ufe20-\\ufe2f",ub="\\u20d0-\\u20ff",fb=ab+ob+ub,sb="\\ufe0e\\ufe0f";var cb="["+ib+"]",lb="["+fb+"]",vb="\\ud83c[\\udffb-\\udfff]",db="(?:"+lb+"|"+vb+")",pb="[^"+ib+"]",hb="(?:\\ud83c[\\udde6-\\uddff]){2}",yb="[\\ud800-\\udbff][\\udc00-\\udfff]",gb="\\u200d";var bb=db+"?",mb="["+sb+"]?",_b="(?:"+gb+"(?:"+[pb,hb,yb].join("|")+")"+mb+bb+")*",wb=mb+bb+_b,xb="(?:"+[pb+lb+"?",lb,hb,yb,cb].join("|")+")";var Sb=RegExp(vb+"(?="+vb+")|"+xb+wb,"g");function unicodeSize(e){var r=Sb.lastIndex=0;while(Sb.test(e)){++r}return r}var Ob=unicodeSize;function stringSize(e){return so(e)?Ob(e):nb(e)}var Eb=stringSize;var Ib=Math.ceil;function createPadding(e,r){r=r===undefined?" ":$(r);var t=r.length;if(t<2){return t?rb(r,e):r}var n=rb(r,Ib(e/Eb(r)));return so(r)?eo(Mo(n),0,e).join(""):n.slice(0,e)}var jb=createPadding;var Ab=Math.ceil,Rb=Math.floor;function pad(e,r,t){e=la(e);r=ee(r);var n=r?Eb(e):0;if(!r||n>=r){return e}var i=(r-n)/2;return jb(Rb(i),t)+e+jb(Ab(i),t)}var Wb=pad;function padEnd(e,r,t){e=la(e);r=ee(r);var n=r?Eb(e):0;return r&&n-1){if(u!==e){Jb.call(u,f,1)}Jb.call(e,f,1)}}return e}var Qb=basePullAll;function pullAll(e,r){return e&&e.length&&r&&r.length?Qb(e,r):e}var Vb=pullAll;var em=Ut(Vb);var rm=em;function pullAllBy(e,r,t){return e&&e.length&&r&&r.length?Qb(e,r,Dl(t,2)):e}var tm=pullAllBy;function pullAllWith(e,r,t){return e&&e.length&&r&&r.length?Qb(e,r,undefined,t):e}var nm=pullAllWith;var im=Array.prototype;var am=im.splice;function basePullAt(e,r){var t=e?r.length:0,n=t-1;while(t--){var i=r[t];if(t==n||i!==a){var a=i;if(et(i)){am.call(e,i,1)}else{Og(e,i)}}}return e}var om=basePullAt;var um=Sa(function(e,r){var t=e==null?0:e.length,n=ga(e,r);om(e,M(r,function(e){return et(e,t)?+e:e}).sort(Dg));return n});var fm=um;var sm=Math.floor,cm=Math.random;function baseRandom(e,r){return e+sm(cm()*(r-e+1))}var lm=baseRandom;var vm=parseFloat;var dm=Math.min,pm=Math.random;function random(e,r,t){if(t&&typeof t!="boolean"&&Ht(e,r,t)){r=t=undefined}if(t===undefined){if(typeof r=="boolean"){t=r;r=undefined}else if(typeof e=="boolean"){t=e;e=undefined}}if(e===undefined&&r===undefined){e=0;r=1}else{e=V(e);if(r===undefined){r=e;e=0}else{r=V(r)}}if(e>r){var n=e;e=r;r=n}if(t||e%1||r%1){var i=pm();return dm(e+i*(r-e+vm("1e-"+((i+"").length-1))),r)}return lm(e,r)}var hm=random;var ym=Math.ceil,gm=Math.max;function baseRange(e,r,t,n){var i=-1,a=gm(ym((r-e)/(t||1)),0),o=Array(a);while(a--){o[n?a:++i]=e;e+=t}return o}var bm=baseRange;function createRange(e){return function(r,t,n){if(n&&typeof n!="number"&&Ht(r,t,n)){t=n=undefined}r=V(r);if(t===undefined){t=r;r=0}else{t=V(t)}n=n===undefined?r1&&Ht(e,r[0],r[1])){r=[]}else if(t>2&&Ht(r[0],r[1],r[2])){r=[r[0]]}return $g(e,wa(r,1),[])});var c_=s_;var l_=4294967295,v_=l_-1;var d_=Math.floor,p_=Math.min;function baseSortedIndexBy(e,r,t,n){r=t(r);var i=0,a=e==null?0:e.length,o=r!==r,u=r===null,f=W(r),s=r===undefined;while(i>>1;function baseSortedIndex(e,r,t){var n=0,i=e==null?n:e.length;if(typeof r=="number"&&r===r&&i<=g_){while(n>>1,o=e[a];if(o!==null&&!W(o)&&(t?o<=r:o>>0;if(!t){return[]}e=la(e);if(e&&(typeof r=="string"||r!=null&&!vy(r))){r=$(r);if(!r&&so(e)){return eo(Mo(e),0,t)}}return e.split(r,t)}var R_=split;var W_="Expected a function";var k_=Math.max;function spread(e,r){if(typeof e!="function"){throw new TypeError(W_)}r=r==null?0:k_(ee(r),0);return Ut(function(t){var n=t[r],i=eo(t,0,r);if(n){ba(i,n)}return Le(e,this,i)})}var C_=spread;var M_=Gu(function(e,r,t){return e+(t?" ":"")+Bo(r)});var T_=M_;function startsWith(e,r,t){e=la(e);t=t==null?0:af(ee(t),0,e.length);r=$(r);return e.slice(t,t+r.length)==r}var P_=startsWith;function stubObject(){return{}}var B_=stubObject;function stubString(){return""}var D_=stubString;function stubTrue(){return true}var L_=stubTrue;var $_=N(function(e,r){return e-r},0);var N_=$_;function sum(e){return e&&e.length?Jy(e,ne):0}var z_=sum;function sumBy(e,r){return e&&e.length?Jy(e,Dl(r,2)):0}var F_=sumBy;function tail(e){var r=e==null?0:e.length;return r?Va(e,1,r):[]}var U_=tail;function take(e,r,t){if(!(e&&e.length)){return[]}r=t||r===undefined?1:ee(r);return Va(e,0,r<0?0:r)}var q_=take;function takeRight(e,r,t){var n=e==null?0:e.length;if(!n){return[]}r=t||r===undefined?1:ee(r);r=n-r;return Va(e,r<0?0:r,n)}var G_=takeRight;function takeRightWhile(e,r){return e&&e.length?Qv(e,Dl(r,3),false,true):[]}var K_=takeRightWhile;function takeWhile(e,r){return e&&e.length?Qv(e,Dl(r,3)):[]}var H_=takeWhile;function tap(e,r){r(e);return e}var Z_=tap;var X_=Object.prototype;var Y_=X_.hasOwnProperty;function customDefaultsAssignIn(e,r,t,n){if(e===undefined||Bt(e,X_[t])&&!Y_.call(n,t)){return r}return e}var J_=customDefaultsAssignIn;var Q_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+Q_[e]}var V_=escapeStringChar;var ew=/<%=([\s\S]+?)%>/g;var rw=ew;var tw=/<%-([\s\S]+?)%>/g;var nw=tw;var iw=/<%([\s\S]+?)%>/g;var aw=iw;var ow={escape:nw,evaluate:aw,interpolate:rw,variable:"",imports:{_:{escape:Ed}}};var uw=ow;var fw=/\b__p \+= '';/g,sw=/\b(__p \+=) '' \+/g,cw=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var lw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var vw=/($^)/;var dw=/['\n\r\u2028\u2029\\]/g;var pw=Object.prototype;var hw=pw.hasOwnProperty;function template(e,r,t){var n=uw.imports._.templateSettings||uw;if(t&&Ht(e,r,t)){r=undefined}e=la(e);r=bi({},r,n,J_);var i=bi({},r.imports,n.imports,J_),a=ai(i),o=Xp(i,a);var u,f,s=0,c=r.interpolate||vw,l="__p += '";var v=RegExp((r.escape||vw).source+"|"+c.source+"|"+(c===rw?lw:vw).source+"|"+(r.evaluate||vw).source+"|$","g");var d=hw.call(r,"sourceURL")?"//# sourceURL="+(r.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";e.replace(v,function(r,t,n,i,a,o){n||(n=i);l+=e.slice(s,o).replace(dw,V_);if(t){u=true;l+="' +\n__e("+t+") +\n'"}if(a){f=true;l+="';\n"+a+";\n__p += '"}if(n){l+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}s=o+r.length;return r});l+="';\n";var p=hw.call(r,"variable")&&r.variable;if(!p){l="with (obj) {\n"+l+"\n}\n"}l=(f?l.replace(fw,""):l).replace(sw,"$1").replace(cw,"$1;");l="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(f?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var h=$a(function(){return Function(a,d+"return "+l).apply(undefined,o)});h.source=l;if(Da(h)){throw h}return h}var yw=template;var gw="Expected a function";function throttle(e,r,t){var n=true,i=true;if(typeof e!="function"){throw new TypeError(gw)}if(U(t)){n="leading"in t?!!t.leading:n;i="trailing"in t?!!t.trailing:i}return hv(e,r,{leading:n,maxWait:r,trailing:i})}var bw=throttle;function thru(e,r){return r(e)}var mw=thru;var _w=9007199254740991;var ww=4294967295;var xw=Math.min;function times(e,r){e=ee(e);if(e<1||e>_w){return[]}var t=ww,n=xw(e,ww);r=rd(r);e-=ww;var i=Jt(n,r);while(++t-1){}return t}var Mw=charsEndIndex;function charsStartIndex(e,r){var t=-1,n=e.length;while(++t-1){}return t}var Tw=charsStartIndex;var Pw=/^\s+|\s+$/g;function trim(e,r,t){e=la(e);if(e&&(t||r===undefined)){return e.replace(Pw,"")}if(!e||!(r=$(r))){return e}var n=Mo(e),i=Mo(r),a=Tw(n,i),o=Mw(n,i)+1;return eo(n,a,o).join("")}var Bw=trim;var Dw=/\s+$/;function trimEnd(e,r,t){e=la(e);if(e&&(t||r===undefined)){return e.replace(Dw,"")}if(!e||!(r=$(r))){return e}var n=Mo(e),i=Mw(n,Mo(r))+1;return eo(n,0,i).join("")}var Lw=trimEnd;var $w=/^\s+/;function trimStart(e,r,t){e=la(e);if(e&&(t||r===undefined)){return e.replace($w,"")}if(!e||!(r=$(r))){return e}var n=Mo(e),i=Tw(n,Mo(r));return eo(n,i).join("")}var Nw=trimStart;var zw=30,Fw="...";var Uw=/\w*$/;function truncate(e,r){var t=zw,n=Fw;if(U(r)){var i="separator"in r?r.separator:i;t="length"in r?ee(r.length):t;n="omission"in r?$(r.omission):n}e=la(e);var a=e.length;if(so(e)){var o=Mo(e);a=o.length}if(t>=a){return e}var u=t-Eb(n);if(u<1){return n}var f=o?eo(o,0,u).join(""):e.slice(0,u);if(i===undefined){return f+n}if(o){u+=f.length-u}if(vy(i)){if(e.slice(u).search(i)){var s,c=f;if(!i.global){i=RegExp(i.source,la(Uw.exec(i))+"g")}i.lastIndex=0;while(s=i.exec(c)){var l=s.index}f=f.slice(0,l===undefined?u:l)}}else if(e.indexOf($(i),u)!=u){var v=f.lastIndexOf(i);if(v>-1){f=f.slice(0,v)}}return f+n}var qw=truncate;function unary(e){return Tt(e,1)}var Gw=unary;var Kw={"&":"&","<":"<",">":">",""":'"',"'":"'"};var Hw=$o(Kw);var Zw=Hw;var Xw=/&(?:amp|lt|gt|quot|#39);/g,Yw=RegExp(Xw.source);function unescape_unescape(e){e=la(e);return e&&Yw.test(e)?e.replace(Xw,Zw):e}var Jw=unescape_unescape;var Qw=1/0;var Vw=!(Ff&&1/Kc(new Ff([,-0]))[1]==Qw)?He:function(e){return new Ff(e)};var ex=Vw;var rx=200;function baseUniq(e,r,t){var n=-1,i=kr,a=e.length,o=true,u=[],f=u;if(t){o=false;i=Lv}else if(a>=rx){var s=r?null:ex(e);if(s){return Kc(s)}o=false;i=zc;f=new $c}else{f=r?[]:u}e:while(++n1||this.__actions__.length||!(n instanceof Ke)||!et(t)){return this.thru(i)}n=n.slice(t,+t+(r?1:0));n.__actions__.push({func:mw,args:[i],thisArg:undefined});return new rr(n,this.__chain__).thru(function(e){if(r&&!e.length){e.push(undefined)}return e})});var Ax=jx;function wrapperChain(){return ef(this)}var Rx=wrapperChain;function wrapperReverse(){var e=this.__wrapped__;if(e instanceof Ke){var r=e;if(this.__actions__.length){r=new Ke(this)}r=r.reverse();r.__actions__.push({func:mw,args:[Nm],thisArg:undefined});return new rr(r,this.__chain__)}return this.thru(Nm)}var Wx=wrapperReverse;function baseXor(e,r,t){var n=e.length;if(n<2){return n?tx(e[0]):[]}var i=-1,a=Array(n);while(++i1?e[r-1]:undefined;t=typeof t=="function"?(e.pop(),t):undefined;return gx(e,t)});var qx=Ux;var Gx={chunk:nf,compact:Tc,concat:Pc,difference:Fv,differenceBy:Gv,differenceWith:Hv,drop:Yv,dropRight:Jv,dropRightWhile:Vv,dropWhile:ed,fill:Pd,findIndex:Nd,findLastIndex:Hd,first:Jd,flatten:xa,flattenDeep:ap,flattenDepth:op,fromPairs:Ep,head:Jd,indexOf:eh,initial:rh,intersection:oh,intersectionBy:fh,intersectionWith:ch,join:Oy,last:Uv,lastIndexOf:Cy,nth:xg,pull:rm,pullAll:Vb,pullAllBy:tm,pullAllWith:nm,pullAt:fm,remove:Cm,reverse:Nm,slice:i_,sortedIndex:m_,sortedIndexBy:__,sortedIndexOf:w_,sortedLastIndex:x_,sortedLastIndexBy:S_,sortedLastIndexOf:O_,sortedUniq:I_,sortedUniqBy:j_,tail:U_,take:q_,takeRight:G_,takeRightWhile:K_,takeWhile:H_,union:ix,unionBy:ox,unionWith:fx,uniq:sx,uniqBy:cx,uniqWith:lx,unzip:yx,unzipWith:gx,without:Ex,xor:Mx,xorBy:Px,xorWith:Dx,zip:$x,zipObject:zx,zipObjectDeep:Fx,zipWith:qx};var Kx={countBy:iv,each:td,eachRight:sd,every:kd,filter:Dd,find:Fd,findLast:Xd,flatMap:ep,flatMapDeep:tp,flatMapDepth:np,forEach:td,forEachRight:sd,groupBy:Cp,includes:Qp,invokeMap:jh,keyBy:Ay,map:Vd,orderBy:Ng,partition:Ub,reduce:Am,reduceRight:Wm,reject:km,sample:Gm,sampleSize:Xm,shuffle:e_,size:n_,some:f_,sortBy:c_};var Hx={now:lv};var Zx={after:te,ary:Tt,before:za,bind:Ga,bindKey:Qa,curry:uv,curryRight:sv,debounce:hv,defer:Pv,delay:Dv,flip:fp,memoize:ia,negate:pg,once:Pg,overArgs:Zg,partial:Lb,partialRight:zb,rearg:Im,rest:Bm,spread:C_,throttle:bw,unary:Gw,wrap:Ix};var Xx={castArray:Zu,clone:Oc,cloneDeep:jc,cloneDeepWith:Wc,cloneWith:Cc,conformsTo:ql,eq:Bt,gt:Bp,gte:Lp,isArguments:an,isArray:P,isArrayBuffer:Ch,isArrayLike:Kt,isArrayLikeObject:xv,isBoolean:Th,isBuffer:dn,isDate:$h,isElement:Nh,isEmpty:Gh,isEqual:Kh,isEqualWith:Hh,isError:Da,isFinite:Xh,isFunction:fe,isInteger:Yh,isLength:Gt,isMap:Ns,isMatch:Jh,isMatchWith:Qh,isNaN:ry,isNative:ay,isNil:oy,isNull:uy,isNumber:ey,isObject:U,isObjectLike:A,isPlainObject:Ta,isRegExp:vy,isSafeInteger:py,isSet:Gs,isString:Zp,isSymbol:W,isTypedArray:Xn,isUndefined:hy,isWeakMap:gy,isWeakSet:my,lt:$y,lte:zy,toArray:mg,toFinite:V,toInteger:ee,toLength:Md,toNumber:Y,toPlainObject:Ov,toSafeInteger:Ww,toString:la};var Yx={add:F,ceil:Vu,divide:Xv,floor:cp,max:Xy,maxBy:Yy,mean:eg,meanBy:rg,min:fg,minBy:sg,multiply:vg,round:Fm,subtract:N_,sum:z_,sumBy:F_};var Jx={clamp:of,inRange:Kp,random:hm};var Qx={assign:si,assignIn:yi,assignInWith:bi,assignWith:_i,at:Ea,create:av,defaults:_v,defaultsDeep:kv,entries:gd,entriesIn:md,extend:yi,extendWith:bi,findKey:qd,findLastKey:Yd,forIn:wp,forInRight:xp,forOwn:Sp,forOwnRight:Op,functions:jp,functionsIn:Ap,get:ya,has:Fp,hasIn:Wl,invert:yh,invertBy:wh,invoke:Eh,keys:ai,keysIn:pi,mapKeys:Fy,mapValues:Uy,merge:ng,mergeWith:Rv,omit:Wg,omitBy:Tg,pick:Kb,pickBy:Mg,result:Dm,set:Ym,setWith:Jm,toPairs:gd,toPairsIn:md,transform:Cw,unset:px,update:mx,updateWith:_x,values:Yp,valuesIn:Sx};var Vx={at:Ax,chain:ef,commit:Mc,lodash:or,next:_g,plant:Hb,reverse:Wx,tap:Z_,thru:mw,toIterator:Ow,toJSON:Iw,value:Iw,valueOf:Iw,wrapperChain:Rx};var eS={camelCase:Hu,capitalize:Do,deburr:Yo,endsWith:cd,escape:Ed,escapeRegExp:Ad,kebabCase:Iy,lowerCase:Ty,lowerFirst:By,pad:Wb,padEnd:kb,padStart:Cb,parseInt:Pb,repeat:Mm,replace:Tm,snakeCase:o_,split:R_,startCase:T_,startsWith:P_,template:yw,templateSettings:uw,toLower:jw,toUpper:kw,trim:Bw,trimEnd:Lw,trimStart:Nw,truncate:qw,unescape:Jw,upperCase:xx,upperFirst:Bo,words:Fu};var rS={attempt:$a,bindAll:Ha,cond:$l,conforms:Ul,constant:mr,defaultTo:yv,flow:bp,flowRight:_p,identity:ne,iteratee:wy,matches:Gy,matchesProperty:Hy,method:ag,methodOf:ug,mixin:cg,noop:He,nthArg:Sg,over:Ug,overEvery:Yg,overSome:Qg,property:Bl,propertyOf:Zb,range:wm,rangeRight:Sm,stubArray:Sf,stubFalse:on,stubObject:B_,stubString:D_,stubTrue:L_,times:Sw,toPath:Aw,uniqueId:dx};function lazyClone(){var e=new Ke(this.__wrapped__);e.__actions__=tr(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=tr(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=tr(this.__views__);return e}var tS=lazyClone;function lazyReverse(){if(this.__filtered__){var e=new Ke(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}var nS=lazyReverse;var iS=Math.max,aS=Math.min;function getView(e,r,t){var n=-1,i=t.length;while(++n0||r<0)){return new Ke(t)}if(e<0){t=t.takeRight(-e)}else if(e){t=t.drop(e)}if(r!==undefined){r=ee(r);t=r<0?t.dropRight(-r):t.take(r-e)}return t};Ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Ke.prototype.toArray=function(){return this.take(hS)};Xl(Ke.prototype,function(e,r){var t=/^(?:filter|find|map|reject)|While$/.test(r),n=/^(?:head|last)$/.test(r),i=or[n?"take"+(r=="last"?"Right":""):r],a=n||/^find/.test(r);if(!i){return}or.prototype[r]=function(){var r=this.__wrapped__,o=n?[1]:arguments,u=r instanceof Ke,f=o[0],s=u||P(r);var c=function(e){var r=i.apply(or,ba([e],o));return n&&l?r[0]:r};if(s&&t&&typeof f=="function"&&f.length!=1){u=s=false}var l=this.__chain__,v=!!this.__actions__.length,d=a&&!l,p=u&&!v;if(!a&&s){r=p?r:new Ke(this);var h=e.apply(r,o);h.__actions__.push({func:mw,args:[c],thisArg:undefined});return new rr(h,l)}if(d&&p){return e.apply(this,o)}h=this.thru(c);return d?n?h.value()[0]:h.value():h}});Ir(["pop","push","shift","sort","splice","unshift"],function(e){var r=yS[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);or.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(P(i)?i:[],e)}return this[t](function(t){return r.apply(P(t)?t:[],e)})}});Xl(Ke.prototype,function(e,r){var t=or[r];if(t){var n=t.name+"";if(!bS.call(Je,n)){Je[n]=[]}Je[n].push({name:r,func:t})}});Je[lt(undefined,vS).name]=[{name:"wrapper",func:undefined}];Ke.prototype.clone=tS;Ke.prototype.reverse=nS;Ke.prototype.value=cS;or.prototype.at=Vx.at;or.prototype.chain=Vx.wrapperChain;or.prototype.commit=Vx.commit;or.prototype.next=Vx.next;or.prototype.plant=Vx.plant;or.prototype.reverse=Vx.reverse;or.prototype.toJSON=or.prototype.valueOf=or.prototype.value=Vx.value;or.prototype.first=or.prototype.head;if(mS){or.prototype[mS]=Vx.toIterator}var SS=or;class image_tag_ImageTag{constructor(e){const{repository:r="gableroux",name:t="unity3d",version:n="2019.2.11f1",platform:i}=e;if(!image_tag_ImageTag.versionPattern.test(n)){throw new Error(`Invalid version "${n}".`)}if(!Fp(image_tag_ImageTag.targetPlatformToImageSuffixMap,i)){throw new Error(`Platform "${i}" is currently not supported.`)}const a=ya(image_tag_ImageTag.targetPlatformToImageSuffixMap,i,image_tag_ImageTag.imageSuffixes.generic);Object.assign(this,{repository:r,name:t,version:n,platform:i,builderPlatform:a})}static get versionPattern(){return/^20\d{2}\.\d\.\w{3,4}|3$/}static get imageSuffixes(){return{generic:"",webgl:"webgl",mac:"mac",windows:"windows",android:"android",ios:"ios",facebook:"facebook"}}static get targetPlatformToImageSuffixMap(){const{generic:e,webgl:r,mac:t,windows:n,android:i,ios:a,facebook:u}=image_tag_ImageTag.imageSuffixes;return{[o.types.StandaloneOSX]:t,[o.types.StandaloneWindows]:n,[o.types.StandaloneWindows64]:n,[o.types.StandaloneLinux64]:n,[o.types.iOS]:a,[o.types.Android]:i,[o.types.WebGL]:r,[o.types.WSAPlayer]:n,[o.types.PS4]:n,[o.types.XboxOne]:n,[o.types.tvOS]:n,[o.types.Switch]:n,[o.types.Lumin]:n,[o.types.BJM]:n,[o.types.Stadia]:n,[o.types.Facebook]:u,[o.types.NoTarget]:e,[o.types.Test]:e}}get tag(){return Lw(`${this.version}-${this.builderPlatform}`,"-")}get image(){return Nw(`${this.repository}/${this.name}`,"/")}toString(){const{image:e,tag:r}=this;return`${e}:${r}`}}var OS=image_tag_ImageTag;class docker_Docker{static async build(e,r=false){const{path:t,dockerfile:n,baseImage:i}=e;const{version:a,platform:o}=i;const u=new OS({repository:"",name:"unity-builder",version:a,platform:o});const s=`docker build ${t} --file ${n} --build-arg IMAGE=${i} --tag ${u}`;await Object(f.exec)(s,null,{silent:r});return u}static async run(e,r,t=false){const{version:n,workspace:i,platform:a,projectPath:o,buildName:u,buildPath:s,buildFile:c,buildMethod:l}=r;const v=`docker run --workdir /github/workspace --rm --env UNITY_LICENSE --env UNITY_EMAIL --env UNITY_PASSWORD --env UNITY_SERIAL --env UNITY_VERSION=${n} --env PROJECT_PATH=${o} --env BUILD_TARGET=${a} --env BUILD_NAME=${u} --env BUILD_PATH=${s} --env BUILD_FILE=${c} --env BUILD_METHOD=${l} --env HOME=/github/home --env GITHUB_REF --env GITHUB_SHA --env GITHUB_REPOSITORY --env GITHUB_ACTOR --env GITHUB_WORKFLOW --env GITHUB_HEAD_REF --env GITHUB_BASE_REF --env GITHUB_EVENT_NAME --env GITHUB_WORKSPACE=/github/workspace --env GITHUB_ACTION --env GITHUB_EVENT_PATH --env RUNNER_OS --env RUNNER_TOOL_CACHE --env RUNNER_TEMP --env RUNNER_WORKSPACE --volume "/var/run/docker.sock":"/var/run/docker.sock" --volume "/home/runner/work/_temp/_github_home":"/github/home" --volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" --volume "${i}":"/github/workspace" ${e}`;await Object(f.exec)(v,null,{silent:t})}}var ES=docker_Docker;const IS=t(470);class input_Input{static getFromUser(){const e=IS.getInput("unityVersion");const r=IS.getInput("targetPlatform")||o.default;const t=IS.getInput("projectPath")||".";const n=IS.getInput("buildName")||r;const i=IS.getInput("buildsPath")||"build";const a=IS.getInput("buildMethod");return{unityVersion:e,targetPlatform:r,projectPath:t,buildName:n,buildsPath:i,buildMethod:a}}}var jS=input_Input;const AS=t(470);async function src_action(){a.checkCompatibility();const{dockerfile:e,workspace:r,builderFolder:t}=a;const n=u.create(jS.getFromUser());const i=new OS(n);const o=await ES.build({path:t,dockerfile:e,baseImage:i});await ES.run(o,{workspace:r,...n})}src_action().catch(e=>{AS.setFailed(e.message)})},470:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(431);const a=t(87);const o=t(622);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){process.env[e]=r;i.issueCommand("set-env",{name:e},r)}r.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){i.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${o.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!t){throw new Error(`Input required and not supplied: ${e}`)}return t.trim()}r.getInput=getInput;function setOutput(e,r){i.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setFailed(e){process.exitCode=u.Failure;error(e)}r.setFailed=setFailed;function debug(e){i.issueCommand("debug",{},e)}r.debug=debug;function error(e){i.issue("error",e)}r.error=error;function warning(e){i.issue("warning",e)}r.warning=warning;function info(e){process.stdout.write(e+a.EOL)}r.info=info;function startGroup(e){i.issue("group",e)}r.startGroup=startGroup;function endGroup(){i.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return n(this,void 0,void 0,function*(){startGroup(e);let t;try{t=yield r()}finally{endGroup()}return t})}r.group=group;function saveState(e,r){i.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},669:function(e){e.exports=require("util")},672:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};var i;Object.defineProperty(r,"__esModule",{value:true});const a=t(357);const o=t(747);const u=t(622);i=o.promises,r.chmod=i.chmod,r.copyFile=i.copyFile,r.lstat=i.lstat,r.mkdir=i.mkdir,r.readdir=i.readdir,r.readlink=i.readlink,r.rename=i.rename,r.rmdir=i.rmdir,r.stat=i.stat,r.symlink=i.symlink,r.unlink=i.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}r.exists=exists;function isDirectory(e,t=false){return n(this,void 0,void 0,function*(){const n=t?yield r.stat(e):yield r.lstat(e);return n.isDirectory()})}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,t=1e3,i=1){return n(this,void 0,void 0,function*(){a.ok(e,"a path argument must be provided");e=u.resolve(e);if(i>=t)return r.mkdir(e);try{yield r.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(u.dirname(e),t,i+1);yield r.mkdir(e);return}default:{let t;try{t=yield r.stat(e)}catch(e){throw n}if(!t.isDirectory())throw n}}}})}r.mkdirP=mkdirP;function tryGetExecutablePath(e,t){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){const r=u.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===r)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const a of t){e=i+a;n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){try{const t=u.dirname(e);const n=u.basename(e).toUpperCase();for(const i of yield r.readdir(t)){if(n===i.toUpperCase()){e=u.join(t,i);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},747:function(e){e.exports=require("fs")},986:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(9);function exec(e,r,t){return n(this,void 0,void 0,function*(){const n=i.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const a=n[0];r=n.slice(1).concat(r||[]);const o=new i.ToolRunner(a,r,t);return o.exec()})}r.exec=exec}},function(e){"use strict";!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){var r=Object.prototype.hasOwnProperty;e.d=function(e,t,n){if(!r.call(e,t)){Object.defineProperty(e,t,{enumerable:true,get:n})}}}();!function(){e.t=function(r,t){if(t&1)r=this(r);if(t&8)return r;if(t&4&&typeof r==="object"&&r&&r.__esModule)return r;var n=Object.create(null);e.r(n);Object.defineProperty(n,"default",{enumerable:true,value:r});if(t&2&&typeof r!="string")for(var i in r)e.d(n,i,function(e){return r[e]}.bind(null,i));return n}}();!function(){e.n=function(r){var t=r&&r.__esModule?function getDefault(){return r["default"]}:function getModuleExports(){return r};e.d(t,"a",t);return t}}();!function(){e.hmd=function(e){e=Object.create(e);if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});Object.defineProperty(e,"exports",{enumerable:true,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}});return e}}()}); \ No newline at end of file +module.exports=function(e,r){"use strict";var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={i:r,l:false,exports:{}};e[r].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(467)}r(__webpack_require__);return startup()}({1:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(129);const a=t(622);const o=t(669);const u=t(672);const s=o.promisify(i.exec);function cp(e,r,t={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(t);const o=(yield u.exists(r))?yield u.stat(r):null;if(o&&o.isFile()&&!n){return}const s=o&&o.isDirectory()?a.join(r,a.basename(e)):r;if(!(yield u.exists(e))){throw new Error(`no such file or directory: ${e}`)}const f=yield u.stat(e);if(f.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,n)}}else{if(a.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,n)}})}r.cp=cp;function mv(e,r,t={}){return n(this,void 0,void 0,function*(){if(yield u.exists(r)){let n=true;if(yield u.isDirectory(r)){r=a.join(r,a.basename(e));n=yield u.exists(r)}if(n){if(t.force==null||t.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(r));yield u.rename(e,r)})}r.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(u.IS_WINDOWS){try{if(yield u.isDirectory(e,true)){yield s(`rd /s /q "${e}"`)}else{yield s(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield u.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield u.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield s(`rm -rf "${e}"`)}else{yield u.unlink(e)}}})}r.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield u.mkdirP(e)})}r.mkdirP=mkdirP;function which(e,r){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(u.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const r=[];if(u.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(a.delimiter)){if(e){r.push(e)}}}if(u.isRooted(e)){const t=yield u.tryGetExecutablePath(e,r);if(t){return t}return""}if(e.includes("/")||u.IS_WINDOWS&&e.includes("\\")){return""}const t=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){t.push(e)}}}for(const n of t){const t=yield u.tryGetExecutablePath(n+a.sep+e,r);if(t){return t}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}r.which=which;function readCopyOptions(e){const r=e.force==null?true:e.force;const t=Boolean(e.recursive);return{force:r,recursive:t}}function cpDirRecursive(e,r,t,i){return n(this,void 0,void 0,function*(){if(t>=255)return;t++;yield mkdirP(r);const n=yield u.readdir(e);for(const a of n){const n=`${e}/${a}`;const o=`${r}/${a}`;const s=yield u.lstat(n);if(s.isDirectory()){yield cpDirRecursive(n,o,t,i)}else{yield copyFile(n,o,i)}}yield u.chmod(r,(yield u.stat(e)).mode)})}function copyFile(e,r,t){return n(this,void 0,void 0,function*(){if((yield u.lstat(e)).isSymbolicLink()){try{yield u.lstat(r);yield u.unlink(r)}catch(e){if(e.code==="EPERM"){yield u.chmod(r,"0666");yield u.unlink(r)}}const t=yield u.readlink(e);yield u.symlink(t,r,u.IS_WINDOWS?"junction":null)}else if(!(yield u.exists(r))||t){yield u.copyFile(e,r)}})}},9:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(87);const a=t(614);const o=t(129);const u=t(622);const s=t(1);const f=t(672);const c=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,r,t){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=t||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const t=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=r?"":"[command]";if(c){if(this._isCmdFile()){i+=t;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${t}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(t);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=t;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,r,t){try{let n=r+e.toString();let a=n.indexOf(i.EOL);while(a>-1){const e=n.substring(0,a);t(e);n=n.substring(a+i.EOL.length);a=n.indexOf(i.EOL)}r=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(c){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(c){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const t of this.args){r+=" ";r+=e.windowsVerbatimArguments?t:this._windowsQuoteCmdArg(t)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let t=false;for(const n of e){if(r.some(e=>e===n)){t=true;break}}if(!t){return e}let n='"';let i=true;for(let r=e.length;r>0;r--){n+=e[r-1];if(i&&e[r-1]==="\\"){n+="\\"}else if(e[r-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let r='"';let t=true;for(let n=e.length;n>0;n--){r+=e[n-1];if(t&&e[n-1]==="\\"){r+="\\"}else if(e[n-1]==='"'){t=true;r+="\\"}else{t=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const t={};t.cwd=e.cwd;t.env=e.env;t["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){t.argv0=`"${r}"`}return t}exec(){return n(this,void 0,void 0,function*(){if(!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||c&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield s.which(this.toolPath,true);return new Promise((e,r)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const t=this._cloneExecOptions(this.options);if(!t.silent&&t.outStream){t.outStream.write(this._getCommandString(t)+i.EOL)}const n=new ExecState(t,this.toolPath);n.on("debug",e=>{this._debug(e)});const a=this._getSpawnFileName();const u=o.spawn(a,this._getSpawnArgs(t),this._getSpawnOptions(this.options,a));const s="";if(u.stdout){u.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!t.silent&&t.outStream){t.outStream.write(e)}this._processLineBuffer(e,s,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const f="";if(u.stderr){u.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!t.silent&&t.errStream&&t.outStream){const r=t.failOnStdErr?t.errStream:t.outStream;r.write(e)}this._processLineBuffer(e,f,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}u.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});u.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});u.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(t,n)=>{if(s.length>0){this.emit("stdline",s)}if(f.length>0){this.emit("errline",f)}u.removeAllListeners();if(t){r(t)}else{e(n)}})})})}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let t=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let a=0;a0){r.push(i);i=""}continue}append(o)}if(i.length>0){r.push(i.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},357:function(e){e.exports=require("assert")},431:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=t(87);function issueCommand(e,r,t){const i=new Command(e,r,t);process.stdout.write(i.toString()+n.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const i="::";class Command{constructor(e,r,t){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=t}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const t=this.properties[r];if(t){e+=`${r}=${escape(`${t||""}`)},`}}}}e+=i;const r=`${this.message||""}`;e+=escapeData(r);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},467:function(e,r,t){"use strict";t.r(r);var n=t(622);var i=t.n(n);class action_Action{static get supportedPlatforms(){return["linux"]}static get isRunningLocally(){return process.env.RUNNER_WORKSPACE===undefined}static get isRunningFromSource(){return i().basename(__dirname)==="model"}static get name(){return"unity-builder"}static get rootFolder(){if(action_Action.isRunningFromSource){return i().dirname(i().dirname(i().dirname(__filename)))}return i().dirname(i().dirname(__filename))}static get builderFolder(){return`${action_Action.rootFolder}/builder`}static get dockerfile(){return`${action_Action.builderFolder}/Dockerfile`}static get workspace(){return process.env.GITHUB_WORKSPACE}static checkCompatibility(){const e=process.platform;if(!action_Action.supportedPlatforms.includes(e)){throw new Error(`Currently ${e}-platform is not supported`)}}}var a=action_Action;class Platform{static get default(){return Platform.types.StandaloneWindows64}static get types(){return{StandaloneOSX:"StandaloneOSX",StandaloneWindows:"StandaloneWindows",StandaloneWindows64:"StandaloneWindows64",StandaloneLinux64:"StandaloneLinux64",iOS:"iOS",Android:"Android",WebGL:"WebGL",WSAPlayer:"WSAPlayer",PS4:"PS4",XboxOne:"XboxOne",tvOS:"tvOS",Switch:"Switch",Lumin:"Lumin",BJM:"BJM",Stadia:"Stadia",Facebook:"Facebook",NoTarget:"NoTarget",Test:"Test"}}static isWindows(e){switch(e){case Platform.types.StandaloneWindows:case Platform.types.StandaloneWindows64:return true;default:return false}}static isAndroid(e){switch(e){case Platform.types.Android:return true;default:return false}}}var o=Platform;class build_parameters_BuildParameters{static create(e){const{unityVersion:r,targetPlatform:t,projectPath:n,buildName:i,buildsPath:a,buildMethod:o,customParameters:u}=e;return{version:r,platform:t,projectPath:n,buildName:i,buildPath:`${a}/${t}`,buildFile:this.parseBuildFile(i,t),buildMethod:o,customParameters:u}}static parseBuildFile(e,r){if(o.isWindows(r)){return`${e}.exe`}if(o.isAndroid(r)){return`${e}.apk`}return e}}var u=build_parameters_BuildParameters;var s=t(986);var f=typeof global=="object"&&global&&global.Object===Object&&global;var c=f;var l=typeof self=="object"&&self&&self.Object===Object&&self;var v=c||l||Function("return this")();var d=v;var p=d.Symbol;var h=p;var y=Object.prototype;var g=y.hasOwnProperty;var b=y.toString;var m=h?h.toStringTag:undefined;function getRawTag(e){var r=g.call(e,m),t=e[m];try{e[m]=undefined;var n=true}catch(e){}var i=b.call(e);if(n){if(r){e[m]=t}else{delete e[m]}}return i}var _=getRawTag;var w=Object.prototype;var x=w.toString;function objectToString(e){return x.call(e)}var S=objectToString;var O="[object Null]",E="[object Undefined]";var I=h?h.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?E:O}return I&&I in Object(e)?_(e):S(e)}var j=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var A=isObjectLike;var R="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||A(e)&&j(e)==R}var W=isSymbol;var k=0/0;function baseToNumber(e){if(typeof e=="number"){return e}if(W(e)){return k}return+e}var C=baseToNumber;function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t0){if(++r>=sr){return arguments[0]}}else{r=0}return e.apply(undefined,arguments)}}var lr=shortOut;var vr=lr(ke);var dr=vr;var pr=/\{\n\/\* \[wrapped with (.+)\] \*/,hr=/,? & /;function getWrapDetails(e){var r=e.match(pr);return r?r[1].split(hr):[]}var yr=getWrapDetails;var gr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function insertWrapDetails(e,r){var t=r.length;if(!t){return e}var n=t-1;r[n]=(t>1?"& ":"")+r[n];r=r.join(t>2?", ":" ");return e.replace(gr,"{\n/* [wrapped with "+r+"] */\n")}var br=insertWrapDetails;function constant(e){return function(){return e}}var mr=constant;var _r=function(){try{var e=Ee(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var wr=_r;var xr=!wr?ne:function(e,r){return wr(e,"toString",{configurable:true,enumerable:false,value:mr(r),writable:true})};var Sr=xr;var Or=lr(Sr);var Er=Or;function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t-1}var kr=arrayIncludes;var Cr=1,Mr=2,Tr=8,Pr=16,Br=32,Dr=64,Lr=128,$r=256,Nr=512;var zr=[["ary",Lr],["bind",Cr],["bindKey",Mr],["curry",Tr],["curryRight",Pr],["flip",Nr],["partial",Br],["partialRight",Dr],["rearg",$r]];function updateWrapDetails(e,r){Ir(zr,function(t){var n="_."+t[0];if(r&t[1]&&!kr(e,n)){e.push(n)}});return e.sort()}var Fr=updateWrapDetails;function setWrapToString(e,r,t){var n=r+"";return Er(e,br(n,Fr(yr(n),t)))}var Ur=setWrapToString;var qr=1,Gr=2,Kr=4,Hr=8,Zr=32,Xr=64;function createRecurry(e,r,t,n,i,a,o,u,s,f){var c=r&Hr,l=c?o:undefined,v=c?undefined:o,d=c?a:undefined,p=c?undefined:a;r|=c?Zr:Xr;r&=~(c?Xr:Zr);if(!(r&Kr)){r&=~(qr|Gr)}var h=[e,r,i,d,l,p,v,u,s,f];var y=t.apply(undefined,h);if(ur(e)){dr(y,h)}y.placeholder=n;return Ur(y,e,r)}var Yr=createRecurry;function getHolder(e){var r=e;return r.placeholder}var Jr=getHolder;var Qr=9007199254740991;var Vr=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?Qr:r;return!!r&&(t=="number"||t!="symbol"&&Vr.test(e))&&(e>-1&&e%1==0&&e1){b.reverse()}if(c&&s-1&&e%1==0&&e<=qt}var Gt=isLength;function isArrayLike(e){return e!=null&&Gt(e.length)&&!se(e)}var Kt=isArrayLike;function isIterateeCall(e,r,t){if(!U(t)){return false}var n=typeof r;if(n=="number"?Kt(t)&&et(r,t.length):n=="string"&&r in t){return Bt(t[r],e)}return false}var Ht=isIterateeCall;function createAssigner(e){return Ut(function(r,t){var n=-1,i=t.length,a=i>1?t[i-1]:undefined,o=i>2?t[2]:undefined;a=e.length>3&&typeof a=="function"?(i--,a):undefined;if(o&&Ht(t[0],t[1],o)){a=i<3?undefined:a;i=1}r=Object(r);while(++n-1}var qi=listCacheHas;function listCacheSet(e,r){var t=this.__data__,n=$i(t,e);if(n<0){++this.size;t.push([e,r])}else{t[n][1]=r}return this}var Gi=listCacheSet;function ListCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r0&&t(u)){if(r>1){baseFlatten(u,r-1,t,n,i)}else{ba(i,u)}}else if(!n){i[i.length]=u}}return i}var wa=baseFlatten;function flatten(e){var r=e==null?0:e.length;return r?wa(e,1):[]}var xa=flatten;function flatRest(e){return Er(Ft(e,undefined,xa),e+"")}var Sa=flatRest;var Oa=Sa(ga);var Ea=Oa;var Ia=Vn(Object.getPrototypeOf,Object);var ja=Ia;var Aa="[object Object]";var Ra=Function.prototype,Wa=Object.prototype;var ka=Ra.toString;var Ca=Wa.hasOwnProperty;var Ma=ka.call(Object);function isPlainObject(e){if(!A(e)||j(e)!=Aa){return false}var r=ja(e);if(r===null){return true}var t=Ca.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&ka.call(t)==Ma}var Ta=isPlainObject;var Pa="[object DOMException]",Ba="[object Error]";function isError(e){if(!A(e)){return false}var r=j(e);return r==Ba||r==Pa||typeof e.message=="string"&&typeof e.name=="string"&&!Ta(e)}var Da=isError;var La=Ut(function(e,r){try{return Le(e,undefined,r)}catch(e){return Da(e)?e:new Error(e)}});var $a=La;var Na="Expected a function";function before(e,r){var t;if(typeof r!="function"){throw new TypeError(Na)}e=ee(e);return function(){if(--e>0){t=r.apply(this,arguments)}if(e<=1){r=undefined}return t}}var za=before;var Fa=1,Ua=32;var qa=Ut(function(e,r,t){var n=Fa;if(t.length){var i=it(t,Jr(qa));n|=Ua}return Ct(e,n,r,t,i)});qa.placeholder={};var Ga=qa;var Ka=Sa(function(e,r){Ir(r,function(r){r=pa(r);Pt(e,r,Ga(e[r],e))});return e});var Ha=Ka;var Za=1,Xa=2,Ya=32;var Ja=Ut(function(e,r,t){var n=Za|Xa;if(t.length){var i=it(t,Jr(Ja));n|=Ya}return Ct(r,n,e,t,i)});Ja.placeholder={};var Qa=Ja;function baseSlice(e,r,t){var n=-1,i=e.length;if(r<0){r=-r>i?0:i+r}t=t>i?i:t;if(t<0){t+=i}i=r>t?0:t-r>>>0;r>>>=0;var a=Array(i);while(++n=n?e:Va(e,r,t)}var eo=castSlice;var ro="\\ud800-\\udfff",to="\\u0300-\\u036f",no="\\ufe20-\\ufe2f",io="\\u20d0-\\u20ff",ao=to+no+io,oo="\\ufe0e\\ufe0f";var uo="\\u200d";var so=RegExp("["+uo+ro+ao+oo+"]");function hasUnicode(e){return so.test(e)}var fo=hasUnicode;function asciiToArray(e){return e.split("")}var co=asciiToArray;var lo="\\ud800-\\udfff",vo="\\u0300-\\u036f",po="\\ufe20-\\ufe2f",ho="\\u20d0-\\u20ff",yo=vo+po+ho,go="\\ufe0e\\ufe0f";var bo="["+lo+"]",mo="["+yo+"]",_o="\\ud83c[\\udffb-\\udfff]",wo="(?:"+mo+"|"+_o+")",xo="[^"+lo+"]",So="(?:\\ud83c[\\udde6-\\uddff]){2}",Oo="[\\ud800-\\udbff][\\udc00-\\udfff]",Eo="\\u200d";var Io=wo+"?",jo="["+go+"]?",Ao="(?:"+Eo+"(?:"+[xo,So,Oo].join("|")+")"+jo+Io+")*",Ro=jo+Io+Ao,Wo="(?:"+[xo+mo+"?",mo,So,Oo,bo].join("|")+")";var ko=RegExp(_o+"(?="+_o+")|"+Wo+Ro,"g");function unicodeToArray(e){return e.match(ko)||[]}var Co=unicodeToArray;function stringToArray(e){return fo(e)?Co(e):co(e)}var Mo=stringToArray;function createCaseFirst(e){return function(r){r=la(r);var t=fo(r)?Mo(r):undefined;var n=t?t[0]:r.charAt(0);var i=t?eo(t,1).join(""):r.slice(1);return n[e]()+i}}var To=createCaseFirst;var Po=To("toUpperCase");var Bo=Po;function capitalize(e){return Bo(la(e).toLowerCase())}var Do=capitalize;function arrayReduce(e,r,t,n){var i=-1,a=e==null?0:e.length;if(n&&a){t=e[++i]}while(++i=r?e:r}}return e}var is=baseClamp;function clamp(e,r,t){if(t===undefined){t=r;r=undefined}if(t!==undefined){t=Y(t);t=t===t?t:0}if(r!==undefined){r=Y(r);r=r===r?r:0}return is(Y(e),r,t)}var as=clamp;function stackClear(){this.__data__=new Ki;this.size=0}var os=stackClear;function stackDelete(e){var r=this.__data__,t=r["delete"](e);this.size=r.size;return t}var us=stackDelete;function stackGet(e){return this.__data__.get(e)}var ss=stackGet;function stackHas(e){return this.__data__.has(e)}var fs=stackHas;var cs=200;function stackSet(e,r){var t=this.__data__;if(t instanceof Ki){var n=t.__data__;if(!Zi||n.lengthu)){return false}var f=a.get(e);if(f&&a.get(r)){return f==r}var c=-1,l=true,v=t&Uc?new $c:undefined;a.set(e,r);a.set(r,e);while(++c=r||t<0||l&&n>=a}function timerExpired(){var e=lv();if(shouldInvoke(e)){return trailingEdge(e)}u=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){u=undefined;if(v&&n){return invokeFunc(e)}n=i=undefined;return o}function cancel(){if(u!==undefined){clearTimeout(u)}f=0;n=s=i=u=undefined}function flush(){return u===undefined?o:trailingEdge(lv())}function debounced(){var e=lv(),t=shouldInvoke(e);n=arguments;i=this;s=e;if(t){if(u===undefined){return leadingEdge(s)}if(l){clearTimeout(u);u=setTimeout(timerExpired,r);return invokeFunc(s)}}if(u===undefined){u=setTimeout(timerExpired,r)}return o}debounced.cancel=cancel;debounced.flush=flush;return debounced}var hv=debounce;function defaultTo(e,r){return e==null||e!==e?r:e}var yv=defaultTo;var gv=Object.prototype;var bv=gv.hasOwnProperty;var mv=Ut(function(e,r){e=Object(e);var t=-1;var n=r.length;var i=n>2?r[2]:undefined;if(i&&Ht(r[0],r[1],i)){n=1}while(++t=$v){a=zc;o=false;r=new $c(r)}e:while(++i=0&&e.slice(t,i)==r}var cd=endsWith;function baseToPairs(e,r){return M(r,function(r){return[r,e[r]]})}var ld=baseToPairs;function setToPairs(e){var r=-1,t=Array(e.size);e.forEach(function(e){t[++r]=[e,e]});return t}var vd=setToPairs;var dd="[object Map]",pd="[object Set]";function createToPairs(e){return function(r){var t=ef(r);if(t==dd){return Gc(r)}if(t==pd){return vd(r)}return ld(r,e(r))}}var hd=createToPairs;var yd=hd(ai);var gd=yd;var bd=hd(pi);var md=bd;var _d={"&":"&","<":"<",">":">",'"':""","'":"'"};var wd=$o(_d);var xd=wd;var Sd=/[&<>"']/g,Od=RegExp(Sd.source);function escape_escape(e){e=la(e);return e&&Od.test(e)?e.replace(Sd,xd):e}var Ed=escape_escape;var Id=/[\\^$.*+?()[\]{}|]/g,jd=RegExp(Id.source);function escapeRegExp(e){e=la(e);return e&&jd.test(e)?e.replace(Id,"\\$&"):e}var Ad=escapeRegExp;function arrayEvery(e,r){var t=-1,n=e==null?0:e.length;while(++ti?0:i+t}n=n===undefined||n>i?i:ee(n);if(n<0){n+=i}n=t>n?0:Md(n);while(t-1?i[a?r[o]:o]:undefined}}var Ld=createFind;var $d=Math.max;function findIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:ee(t);if(i<0){i=$d(n+i,0)}return jr(e,Dl(r,3),i)}var Nd=findIndex;var zd=Ld(Nd);var Fd=zd;function baseFindKey(e,r,t){var n;t(e,function(e,t,i){if(r(e,t,i)){n=t;return false}});return n}var Ud=baseFindKey;function findKey(e,r){return Ud(e,Dl(r,3),Xl)}var qd=findKey;var Gd=Math.max,Kd=Math.min;function findLastIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=n-1;if(t!==undefined){i=ee(t);i=t<0?Gd(n+i,0):Kd(i,n-1)}return jr(e,Dl(r,3),i,true)}var Hd=findLastIndex;var Zd=Ld(Hd);var Xd=Zd;function findLastKey(e,r){return Ud(e,Dl(r,3),od)}var Yd=findLastKey;function head(e){return e&&e.length?e[0]:undefined}var Jd=head;function baseMap(e,r){var t=-1,n=Kt(e)?Array(e.length):[];Ql(e,function(e,i,a){n[++t]=r(e,i,a)});return n}var Qd=baseMap;function map_map(e,r){var t=P(e)?M:Qd;return t(e,Dl(r,3))}var Vd=map_map;function flatMap(e,r){return wa(Vd(e,r),1)}var ep=flatMap;var rp=1/0;function flatMapDeep(e,r){return wa(Vd(e,r),rp)}var tp=flatMapDeep;function flatMapDepth(e,r,t){t=t===undefined?1:ee(t);return wa(Vd(e,r),t)}var np=flatMapDepth;var ip=1/0;function flattenDeep(e){var r=e==null?0:e.length;return r?wa(e,ip):[]}var ap=flattenDeep;function flattenDepth(e,r){var t=e==null?0:e.length;if(!t){return[]}r=r===undefined?1:ee(r);return wa(e,r)}var op=flattenDepth;var up=512;function flip(e){return Ct(e,up)}var sp=flip;var fp=Ju("floor");var cp=fp;var lp="Expected a function";var vp=8,dp=32,pp=128,hp=256;function createFlow(e){return Sa(function(r){var t=r.length,n=t,i=rr.prototype.thru;if(e){r.reverse()}while(n--){var a=r[n];if(typeof a!="function"){throw new TypeError(lp)}if(i&&!o&&er(a)=="wrapper"){var o=new rr([],true)}}n=o?n:t;while(++nr}var Mp=baseGt;function createRelationalOperation(e){return function(r,t){if(!(typeof r=="string"&&typeof t=="string")){r=Y(r);t=Y(t)}return e(r,t)}}var Tp=createRelationalOperation;var Pp=Tp(Mp);var Bp=Pp;var Dp=Tp(function(e,r){return e>=r});var Lp=Dp;var $p=Object.prototype;var Np=$p.hasOwnProperty;function baseHas(e,r){return e!=null&&Np.call(e,r)}var zp=baseHas;function has(e,r){return e!=null&&Rl(e,r,zp)}var Fp=has;var Up=Math.max,qp=Math.min;function baseInRange(e,r,t){return e>=qp(r,t)&&e-1:!!i&&Wr(e,r,t)>-1}var Qp=includes_includes;var Vp=Math.max;function indexOf_indexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:ee(t);if(i<0){i=Vp(n+i,0)}return Wr(e,r,i)}var eh=indexOf_indexOf;function initial(e){var r=e==null?0:e.length;return r?Va(e,0,-1):[]}var rh=initial;var th=Math.min;function baseIntersection(e,r,t){var n=t?Lv:kr,i=e[0].length,a=e.length,o=a,u=Array(a),s=Infinity,f=[];while(o--){var c=e[o];if(o&&r){c=M(c,Nn(r))}s=th(c.length,s);u[o]=!t&&(r||i>=120&&c.length>=120)?new $c(o&&c):undefined}c=e[0];var l=-1,v=u[0];e:while(++l=-dy&&e<=dy}var py=isSafeInteger;function isUndefined(e){return e===undefined}var hy=isUndefined;var yy="[object WeakMap]";function isWeakMap(e){return A(e)&&ef(e)==yy}var gy=isWeakMap;var by="[object WeakSet]";function isWeakSet(e){return A(e)&&j(e)==by}var my=isWeakSet;var _y=1;function iteratee_iteratee(e){return Dl(typeof e=="function"?e:xc(e,_y))}var wy=iteratee_iteratee;var xy=Array.prototype;var Sy=xy.join;function join(e,r){return e==null?"":Sy.call(e,r)}var Oy=join;var Ey=Gu(function(e,r,t){return e+(t?"-":"")+r.toLowerCase()});var Iy=Ey;var jy=ev(function(e,r,t){Pt(e,t,r)});var Ay=jy;function strictLastIndexOf(e,r,t){var n=t+1;while(n--){if(e[n]===r){return n}}return n}var Ry=strictLastIndexOf;var Wy=Math.max,ky=Math.min;function lastIndexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=n;if(t!==undefined){i=ee(t);i=i<0?Wy(n+i,0):ky(i,n-1)}return r===r?Ry(e,r,i):jr(e,Ar,i,true)}var Cy=lastIndexOf;var My=Gu(function(e,r,t){return e+(t?" ":"")+r.toLowerCase()});var Ty=My;var Py=To("toLowerCase");var By=Py;function baseLt(e,r){return e=this.__values__.length,r=e?undefined:this.__values__[this.__index__++];return{done:e,value:r}}var _g=wrapperNext;function baseNth(e,r){var t=e.length;if(!t){return}r+=r<0?t:0;return et(r,t)?e[r]:undefined}var wg=baseNth;function nth(e,r){return e&&e.length?wg(e,ee(r)):undefined}var xg=nth;function nthArg(e){e=ee(e);return Ut(function(r){return wg(r,e)})}var Sg=nthArg;function baseUnset(e,r){r=va(r,e);e=xh(e,r);return e==null||delete e[pa(Uv(r))]}var Og=baseUnset;function customOmitClone(e){return Ta(e)?undefined:e}var Eg=customOmitClone;var Ig=1,jg=2,Ag=4;var Rg=Sa(function(e,r){var t={};if(e==null){return t}var n=false;r=M(r,function(r){r=va(r,e);n||(n=r.length>1);return r});Nt(e,Ps(e),t);if(n){t=xc(t,Ig|jg|Ag,Eg)}var i=r.length;while(i--){Og(t,r[i])}return t});var Wg=Rg;function baseSet(e,r,t,n){if(!U(e)){return e}r=va(r,e);var i=-1,a=r.length,o=a-1,u=e;while(u!=null&&++ir||a&&o&&s&&!u&&!f||n&&o&&s||!t&&s||!i){return 1}if(!n&&!a&&!f&&e=u){return s}var f=t[n];return s*(f=="desc"?-1:1)}}return e.index-r.index}var Lg=compareMultiple;function baseOrderBy(e,r,t){var n=-1;r=M(r.length?r:[ne],Nn(Dl));var i=Qd(e,function(e,t,i){var a=M(r,function(r){return r(e)});return{criteria:a,index:++n,value:e}});return Bg(i,function(e,r){return Lg(e,r,t)})}var $g=baseOrderBy;function orderBy(e,r,t,n){if(e==null){return[]}if(!P(r)){r=r==null?[]:[r]}t=n?undefined:t;if(!P(t)){t=t==null?[]:[t]}return $g(e,r,t)}var Ng=orderBy;function createOver(e){return Sa(function(r){r=M(r,Nn(Dl));return Ut(function(t){var n=this;return e(r,function(e){return Le(e,n,t)})})})}var zg=createOver;var Fg=zg(M);var Ug=Fg;var qg=Ut;var Gg=qg;var Kg=Math.min;var Hg=Gg(function(e,r){r=r.length==1&&P(r[0])?M(r[0],Nn(Dl)):M(wa(r,1),Nn(Dl));var t=r.length;return Ut(function(n){var i=-1,a=Kg(n.length,t);while(++iVg){return t}do{if(r%2){t+=e}r=eb(r/2);if(r){e+=e}}while(r);return t}var rb=baseRepeat;var tb=Tl("length");var nb=tb;var ib="\\ud800-\\udfff",ab="\\u0300-\\u036f",ob="\\ufe20-\\ufe2f",ub="\\u20d0-\\u20ff",sb=ab+ob+ub,fb="\\ufe0e\\ufe0f";var cb="["+ib+"]",lb="["+sb+"]",vb="\\ud83c[\\udffb-\\udfff]",db="(?:"+lb+"|"+vb+")",pb="[^"+ib+"]",hb="(?:\\ud83c[\\udde6-\\uddff]){2}",yb="[\\ud800-\\udbff][\\udc00-\\udfff]",gb="\\u200d";var bb=db+"?",mb="["+fb+"]?",_b="(?:"+gb+"(?:"+[pb,hb,yb].join("|")+")"+mb+bb+")*",wb=mb+bb+_b,xb="(?:"+[pb+lb+"?",lb,hb,yb,cb].join("|")+")";var Sb=RegExp(vb+"(?="+vb+")|"+xb+wb,"g");function unicodeSize(e){var r=Sb.lastIndex=0;while(Sb.test(e)){++r}return r}var Ob=unicodeSize;function stringSize(e){return fo(e)?Ob(e):nb(e)}var Eb=stringSize;var Ib=Math.ceil;function createPadding(e,r){r=r===undefined?" ":$(r);var t=r.length;if(t<2){return t?rb(r,e):r}var n=rb(r,Ib(e/Eb(r)));return fo(r)?eo(Mo(n),0,e).join(""):n.slice(0,e)}var jb=createPadding;var Ab=Math.ceil,Rb=Math.floor;function pad(e,r,t){e=la(e);r=ee(r);var n=r?Eb(e):0;if(!r||n>=r){return e}var i=(r-n)/2;return jb(Rb(i),t)+e+jb(Ab(i),t)}var Wb=pad;function padEnd(e,r,t){e=la(e);r=ee(r);var n=r?Eb(e):0;return r&&n-1){if(u!==e){Jb.call(u,s,1)}Jb.call(e,s,1)}}return e}var Qb=basePullAll;function pullAll(e,r){return e&&e.length&&r&&r.length?Qb(e,r):e}var Vb=pullAll;var em=Ut(Vb);var rm=em;function pullAllBy(e,r,t){return e&&e.length&&r&&r.length?Qb(e,r,Dl(t,2)):e}var tm=pullAllBy;function pullAllWith(e,r,t){return e&&e.length&&r&&r.length?Qb(e,r,undefined,t):e}var nm=pullAllWith;var im=Array.prototype;var am=im.splice;function basePullAt(e,r){var t=e?r.length:0,n=t-1;while(t--){var i=r[t];if(t==n||i!==a){var a=i;if(et(i)){am.call(e,i,1)}else{Og(e,i)}}}return e}var om=basePullAt;var um=Sa(function(e,r){var t=e==null?0:e.length,n=ga(e,r);om(e,M(r,function(e){return et(e,t)?+e:e}).sort(Dg));return n});var sm=um;var fm=Math.floor,cm=Math.random;function baseRandom(e,r){return e+fm(cm()*(r-e+1))}var lm=baseRandom;var vm=parseFloat;var dm=Math.min,pm=Math.random;function random(e,r,t){if(t&&typeof t!="boolean"&&Ht(e,r,t)){r=t=undefined}if(t===undefined){if(typeof r=="boolean"){t=r;r=undefined}else if(typeof e=="boolean"){t=e;e=undefined}}if(e===undefined&&r===undefined){e=0;r=1}else{e=V(e);if(r===undefined){r=e;e=0}else{r=V(r)}}if(e>r){var n=e;e=r;r=n}if(t||e%1||r%1){var i=pm();return dm(e+i*(r-e+vm("1e-"+((i+"").length-1))),r)}return lm(e,r)}var hm=random;var ym=Math.ceil,gm=Math.max;function baseRange(e,r,t,n){var i=-1,a=gm(ym((r-e)/(t||1)),0),o=Array(a);while(a--){o[n?a:++i]=e;e+=t}return o}var bm=baseRange;function createRange(e){return function(r,t,n){if(n&&typeof n!="number"&&Ht(r,t,n)){t=n=undefined}r=V(r);if(t===undefined){t=r;r=0}else{t=V(t)}n=n===undefined?r1&&Ht(e,r[0],r[1])){r=[]}else if(t>2&&Ht(r[0],r[1],r[2])){r=[r[0]]}return $g(e,wa(r,1),[])});var c_=f_;var l_=4294967295,v_=l_-1;var d_=Math.floor,p_=Math.min;function baseSortedIndexBy(e,r,t,n){r=t(r);var i=0,a=e==null?0:e.length,o=r!==r,u=r===null,s=W(r),f=r===undefined;while(i>>1;function baseSortedIndex(e,r,t){var n=0,i=e==null?n:e.length;if(typeof r=="number"&&r===r&&i<=g_){while(n>>1,o=e[a];if(o!==null&&!W(o)&&(t?o<=r:o>>0;if(!t){return[]}e=la(e);if(e&&(typeof r=="string"||r!=null&&!vy(r))){r=$(r);if(!r&&fo(e)){return eo(Mo(e),0,t)}}return e.split(r,t)}var R_=split;var W_="Expected a function";var k_=Math.max;function spread(e,r){if(typeof e!="function"){throw new TypeError(W_)}r=r==null?0:k_(ee(r),0);return Ut(function(t){var n=t[r],i=eo(t,0,r);if(n){ba(i,n)}return Le(e,this,i)})}var C_=spread;var M_=Gu(function(e,r,t){return e+(t?" ":"")+Bo(r)});var T_=M_;function startsWith(e,r,t){e=la(e);t=t==null?0:is(ee(t),0,e.length);r=$(r);return e.slice(t,t+r.length)==r}var P_=startsWith;function stubObject(){return{}}var B_=stubObject;function stubString(){return""}var D_=stubString;function stubTrue(){return true}var L_=stubTrue;var $_=N(function(e,r){return e-r},0);var N_=$_;function sum(e){return e&&e.length?Jy(e,ne):0}var z_=sum;function sumBy(e,r){return e&&e.length?Jy(e,Dl(r,2)):0}var F_=sumBy;function tail(e){var r=e==null?0:e.length;return r?Va(e,1,r):[]}var U_=tail;function take(e,r,t){if(!(e&&e.length)){return[]}r=t||r===undefined?1:ee(r);return Va(e,0,r<0?0:r)}var q_=take;function takeRight(e,r,t){var n=e==null?0:e.length;if(!n){return[]}r=t||r===undefined?1:ee(r);r=n-r;return Va(e,r<0?0:r,n)}var G_=takeRight;function takeRightWhile(e,r){return e&&e.length?Qv(e,Dl(r,3),false,true):[]}var K_=takeRightWhile;function takeWhile(e,r){return e&&e.length?Qv(e,Dl(r,3)):[]}var H_=takeWhile;function tap(e,r){r(e);return e}var Z_=tap;var X_=Object.prototype;var Y_=X_.hasOwnProperty;function customDefaultsAssignIn(e,r,t,n){if(e===undefined||Bt(e,X_[t])&&!Y_.call(n,t)){return r}return e}var J_=customDefaultsAssignIn;var Q_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+Q_[e]}var V_=escapeStringChar;var ew=/<%=([\s\S]+?)%>/g;var rw=ew;var tw=/<%-([\s\S]+?)%>/g;var nw=tw;var iw=/<%([\s\S]+?)%>/g;var aw=iw;var ow={escape:nw,evaluate:aw,interpolate:rw,variable:"",imports:{_:{escape:Ed}}};var uw=ow;var sw=/\b__p \+= '';/g,fw=/\b(__p \+=) '' \+/g,cw=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var lw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var vw=/($^)/;var dw=/['\n\r\u2028\u2029\\]/g;var pw=Object.prototype;var hw=pw.hasOwnProperty;function template(e,r,t){var n=uw.imports._.templateSettings||uw;if(t&&Ht(e,r,t)){r=undefined}e=la(e);r=bi({},r,n,J_);var i=bi({},r.imports,n.imports,J_),a=ai(i),o=Xp(i,a);var u,s,f=0,c=r.interpolate||vw,l="__p += '";var v=RegExp((r.escape||vw).source+"|"+c.source+"|"+(c===rw?lw:vw).source+"|"+(r.evaluate||vw).source+"|$","g");var d=hw.call(r,"sourceURL")?"//# sourceURL="+(r.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";e.replace(v,function(r,t,n,i,a,o){n||(n=i);l+=e.slice(f,o).replace(dw,V_);if(t){u=true;l+="' +\n__e("+t+") +\n'"}if(a){s=true;l+="';\n"+a+";\n__p += '"}if(n){l+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=o+r.length;return r});l+="';\n";var p=hw.call(r,"variable")&&r.variable;if(!p){l="with (obj) {\n"+l+"\n}\n"}l=(s?l.replace(sw,""):l).replace(fw,"$1").replace(cw,"$1;");l="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var h=$a(function(){return Function(a,d+"return "+l).apply(undefined,o)});h.source=l;if(Da(h)){throw h}return h}var yw=template;var gw="Expected a function";function throttle(e,r,t){var n=true,i=true;if(typeof e!="function"){throw new TypeError(gw)}if(U(t)){n="leading"in t?!!t.leading:n;i="trailing"in t?!!t.trailing:i}return hv(e,r,{leading:n,maxWait:r,trailing:i})}var bw=throttle;function thru(e,r){return r(e)}var mw=thru;var _w=9007199254740991;var ww=4294967295;var xw=Math.min;function times(e,r){e=ee(e);if(e<1||e>_w){return[]}var t=ww,n=xw(e,ww);r=rd(r);e-=ww;var i=Jt(n,r);while(++t-1){}return t}var Mw=charsEndIndex;function charsStartIndex(e,r){var t=-1,n=e.length;while(++t-1){}return t}var Tw=charsStartIndex;var Pw=/^\s+|\s+$/g;function trim(e,r,t){e=la(e);if(e&&(t||r===undefined)){return e.replace(Pw,"")}if(!e||!(r=$(r))){return e}var n=Mo(e),i=Mo(r),a=Tw(n,i),o=Mw(n,i)+1;return eo(n,a,o).join("")}var Bw=trim;var Dw=/\s+$/;function trimEnd(e,r,t){e=la(e);if(e&&(t||r===undefined)){return e.replace(Dw,"")}if(!e||!(r=$(r))){return e}var n=Mo(e),i=Mw(n,Mo(r))+1;return eo(n,0,i).join("")}var Lw=trimEnd;var $w=/^\s+/;function trimStart(e,r,t){e=la(e);if(e&&(t||r===undefined)){return e.replace($w,"")}if(!e||!(r=$(r))){return e}var n=Mo(e),i=Tw(n,Mo(r));return eo(n,i).join("")}var Nw=trimStart;var zw=30,Fw="...";var Uw=/\w*$/;function truncate(e,r){var t=zw,n=Fw;if(U(r)){var i="separator"in r?r.separator:i;t="length"in r?ee(r.length):t;n="omission"in r?$(r.omission):n}e=la(e);var a=e.length;if(fo(e)){var o=Mo(e);a=o.length}if(t>=a){return e}var u=t-Eb(n);if(u<1){return n}var s=o?eo(o,0,u).join(""):e.slice(0,u);if(i===undefined){return s+n}if(o){u+=s.length-u}if(vy(i)){if(e.slice(u).search(i)){var f,c=s;if(!i.global){i=RegExp(i.source,la(Uw.exec(i))+"g")}i.lastIndex=0;while(f=i.exec(c)){var l=f.index}s=s.slice(0,l===undefined?u:l)}}else if(e.indexOf($(i),u)!=u){var v=s.lastIndexOf(i);if(v>-1){s=s.slice(0,v)}}return s+n}var qw=truncate;function unary(e){return Tt(e,1)}var Gw=unary;var Kw={"&":"&","<":"<",">":">",""":'"',"'":"'"};var Hw=$o(Kw);var Zw=Hw;var Xw=/&(?:amp|lt|gt|quot|#39);/g,Yw=RegExp(Xw.source);function unescape_unescape(e){e=la(e);return e&&Yw.test(e)?e.replace(Xw,Zw):e}var Jw=unescape_unescape;var Qw=1/0;var Vw=!(zs&&1/Kc(new zs([,-0]))[1]==Qw)?He:function(e){return new zs(e)};var ex=Vw;var rx=200;function baseUniq(e,r,t){var n=-1,i=kr,a=e.length,o=true,u=[],s=u;if(t){o=false;i=Lv}else if(a>=rx){var f=r?null:ex(e);if(f){return Kc(f)}o=false;i=zc;s=new $c}else{s=r?[]:u}e:while(++n1||this.__actions__.length||!(n instanceof Ke)||!et(t)){return this.thru(i)}n=n.slice(t,+t+(r?1:0));n.__actions__.push({func:mw,args:[i],thisArg:undefined});return new rr(n,this.__chain__).thru(function(e){if(r&&!e.length){e.push(undefined)}return e})});var Ax=jx;function wrapperChain(){return es(this)}var Rx=wrapperChain;function wrapperReverse(){var e=this.__wrapped__;if(e instanceof Ke){var r=e;if(this.__actions__.length){r=new Ke(this)}r=r.reverse();r.__actions__.push({func:mw,args:[Nm],thisArg:undefined});return new rr(r,this.__chain__)}return this.thru(Nm)}var Wx=wrapperReverse;function baseXor(e,r,t){var n=e.length;if(n<2){return n?tx(e[0]):[]}var i=-1,a=Array(n);while(++i1?e[r-1]:undefined;t=typeof t=="function"?(e.pop(),t):undefined;return gx(e,t)});var qx=Ux;var Gx={chunk:ns,compact:Tc,concat:Pc,difference:Fv,differenceBy:Gv,differenceWith:Hv,drop:Yv,dropRight:Jv,dropRightWhile:Vv,dropWhile:ed,fill:Pd,findIndex:Nd,findLastIndex:Hd,first:Jd,flatten:xa,flattenDeep:ap,flattenDepth:op,fromPairs:Ep,head:Jd,indexOf:eh,initial:rh,intersection:oh,intersectionBy:sh,intersectionWith:ch,join:Oy,last:Uv,lastIndexOf:Cy,nth:xg,pull:rm,pullAll:Vb,pullAllBy:tm,pullAllWith:nm,pullAt:sm,remove:Cm,reverse:Nm,slice:i_,sortedIndex:m_,sortedIndexBy:__,sortedIndexOf:w_,sortedLastIndex:x_,sortedLastIndexBy:S_,sortedLastIndexOf:O_,sortedUniq:I_,sortedUniqBy:j_,tail:U_,take:q_,takeRight:G_,takeRightWhile:K_,takeWhile:H_,union:ix,unionBy:ox,unionWith:sx,uniq:fx,uniqBy:cx,uniqWith:lx,unzip:yx,unzipWith:gx,without:Ex,xor:Mx,xorBy:Px,xorWith:Dx,zip:$x,zipObject:zx,zipObjectDeep:Fx,zipWith:qx};var Kx={countBy:iv,each:td,eachRight:fd,every:kd,filter:Dd,find:Fd,findLast:Xd,flatMap:ep,flatMapDeep:tp,flatMapDepth:np,forEach:td,forEachRight:fd,groupBy:Cp,includes:Qp,invokeMap:jh,keyBy:Ay,map:Vd,orderBy:Ng,partition:Ub,reduce:Am,reduceRight:Wm,reject:km,sample:Gm,sampleSize:Xm,shuffle:e_,size:n_,some:s_,sortBy:c_};var Hx={now:lv};var Zx={after:te,ary:Tt,before:za,bind:Ga,bindKey:Qa,curry:uv,curryRight:fv,debounce:hv,defer:Pv,delay:Dv,flip:sp,memoize:ia,negate:pg,once:Pg,overArgs:Zg,partial:Lb,partialRight:zb,rearg:Im,rest:Bm,spread:C_,throttle:bw,unary:Gw,wrap:Ix};var Xx={castArray:Zu,clone:Oc,cloneDeep:jc,cloneDeepWith:Wc,cloneWith:Cc,conformsTo:ql,eq:Bt,gt:Bp,gte:Lp,isArguments:an,isArray:P,isArrayBuffer:Ch,isArrayLike:Kt,isArrayLikeObject:xv,isBoolean:Th,isBuffer:dn,isDate:$h,isElement:Nh,isEmpty:Gh,isEqual:Kh,isEqualWith:Hh,isError:Da,isFinite:Xh,isFunction:se,isInteger:Yh,isLength:Gt,isMap:Nf,isMatch:Jh,isMatchWith:Qh,isNaN:ry,isNative:ay,isNil:oy,isNull:uy,isNumber:ey,isObject:U,isObjectLike:A,isPlainObject:Ta,isRegExp:vy,isSafeInteger:py,isSet:Gf,isString:Zp,isSymbol:W,isTypedArray:Xn,isUndefined:hy,isWeakMap:gy,isWeakSet:my,lt:$y,lte:zy,toArray:mg,toFinite:V,toInteger:ee,toLength:Md,toNumber:Y,toPlainObject:Ov,toSafeInteger:Ww,toString:la};var Yx={add:F,ceil:Vu,divide:Xv,floor:cp,max:Xy,maxBy:Yy,mean:eg,meanBy:rg,min:sg,minBy:fg,multiply:vg,round:Fm,subtract:N_,sum:z_,sumBy:F_};var Jx={clamp:as,inRange:Kp,random:hm};var Qx={assign:fi,assignIn:yi,assignInWith:bi,assignWith:_i,at:Ea,create:av,defaults:_v,defaultsDeep:kv,entries:gd,entriesIn:md,extend:yi,extendWith:bi,findKey:qd,findLastKey:Yd,forIn:wp,forInRight:xp,forOwn:Sp,forOwnRight:Op,functions:jp,functionsIn:Ap,get:ya,has:Fp,hasIn:Wl,invert:yh,invertBy:wh,invoke:Eh,keys:ai,keysIn:pi,mapKeys:Fy,mapValues:Uy,merge:ng,mergeWith:Rv,omit:Wg,omitBy:Tg,pick:Kb,pickBy:Mg,result:Dm,set:Ym,setWith:Jm,toPairs:gd,toPairsIn:md,transform:Cw,unset:px,update:mx,updateWith:_x,values:Yp,valuesIn:Sx};var Vx={at:Ax,chain:es,commit:Mc,lodash:or,next:_g,plant:Hb,reverse:Wx,tap:Z_,thru:mw,toIterator:Ow,toJSON:Iw,value:Iw,valueOf:Iw,wrapperChain:Rx};var eS={camelCase:Hu,capitalize:Do,deburr:Yo,endsWith:cd,escape:Ed,escapeRegExp:Ad,kebabCase:Iy,lowerCase:Ty,lowerFirst:By,pad:Wb,padEnd:kb,padStart:Cb,parseInt:Pb,repeat:Mm,replace:Tm,snakeCase:o_,split:R_,startCase:T_,startsWith:P_,template:yw,templateSettings:uw,toLower:jw,toUpper:kw,trim:Bw,trimEnd:Lw,trimStart:Nw,truncate:qw,unescape:Jw,upperCase:xx,upperFirst:Bo,words:Fu};var rS={attempt:$a,bindAll:Ha,cond:$l,conforms:Ul,constant:mr,defaultTo:yv,flow:bp,flowRight:_p,identity:ne,iteratee:wy,matches:Gy,matchesProperty:Hy,method:ag,methodOf:ug,mixin:cg,noop:He,nthArg:Sg,over:Ug,overEvery:Yg,overSome:Qg,property:Bl,propertyOf:Zb,range:wm,rangeRight:Sm,stubArray:xs,stubFalse:on,stubObject:B_,stubString:D_,stubTrue:L_,times:Sw,toPath:Aw,uniqueId:dx};function lazyClone(){var e=new Ke(this.__wrapped__);e.__actions__=tr(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=tr(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=tr(this.__views__);return e}var tS=lazyClone;function lazyReverse(){if(this.__filtered__){var e=new Ke(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}var nS=lazyReverse;var iS=Math.max,aS=Math.min;function getView(e,r,t){var n=-1,i=t.length;while(++n0||r<0)){return new Ke(t)}if(e<0){t=t.takeRight(-e)}else if(e){t=t.drop(e)}if(r!==undefined){r=ee(r);t=r<0?t.dropRight(-r):t.take(r-e)}return t};Ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Ke.prototype.toArray=function(){return this.take(hS)};Xl(Ke.prototype,function(e,r){var t=/^(?:filter|find|map|reject)|While$/.test(r),n=/^(?:head|last)$/.test(r),i=or[n?"take"+(r=="last"?"Right":""):r],a=n||/^find/.test(r);if(!i){return}or.prototype[r]=function(){var r=this.__wrapped__,o=n?[1]:arguments,u=r instanceof Ke,s=o[0],f=u||P(r);var c=function(e){var r=i.apply(or,ba([e],o));return n&&l?r[0]:r};if(f&&t&&typeof s=="function"&&s.length!=1){u=f=false}var l=this.__chain__,v=!!this.__actions__.length,d=a&&!l,p=u&&!v;if(!a&&f){r=p?r:new Ke(this);var h=e.apply(r,o);h.__actions__.push({func:mw,args:[c],thisArg:undefined});return new rr(h,l)}if(d&&p){return e.apply(this,o)}h=this.thru(c);return d?n?h.value()[0]:h.value():h}});Ir(["pop","push","shift","sort","splice","unshift"],function(e){var r=yS[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);or.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(P(i)?i:[],e)}return this[t](function(t){return r.apply(P(t)?t:[],e)})}});Xl(Ke.prototype,function(e,r){var t=or[r];if(t){var n=t.name+"";if(!bS.call(Je,n)){Je[n]=[]}Je[n].push({name:r,func:t})}});Je[lt(undefined,vS).name]=[{name:"wrapper",func:undefined}];Ke.prototype.clone=tS;Ke.prototype.reverse=nS;Ke.prototype.value=cS;or.prototype.at=Vx.at;or.prototype.chain=Vx.wrapperChain;or.prototype.commit=Vx.commit;or.prototype.next=Vx.next;or.prototype.plant=Vx.plant;or.prototype.reverse=Vx.reverse;or.prototype.toJSON=or.prototype.valueOf=or.prototype.value=Vx.value;or.prototype.first=or.prototype.head;if(mS){or.prototype[mS]=Vx.toIterator}var SS=or;class image_tag_ImageTag{constructor(e){const{repository:r="gableroux",name:t="unity3d",version:n="2019.2.11f1",platform:i}=e;if(!image_tag_ImageTag.versionPattern.test(n)){throw new Error(`Invalid version "${n}".`)}if(!Fp(image_tag_ImageTag.targetPlatformToImageSuffixMap,i)){throw new Error(`Platform "${i}" is currently not supported.`)}const a=ya(image_tag_ImageTag.targetPlatformToImageSuffixMap,i,image_tag_ImageTag.imageSuffixes.generic);Object.assign(this,{repository:r,name:t,version:n,platform:i,builderPlatform:a})}static get versionPattern(){return/^20\d{2}\.\d\.\w{3,4}|3$/}static get imageSuffixes(){return{generic:"",webgl:"webgl",mac:"mac",windows:"windows",android:"android",ios:"ios",facebook:"facebook"}}static get targetPlatformToImageSuffixMap(){const{generic:e,webgl:r,mac:t,windows:n,android:i,ios:a,facebook:u}=image_tag_ImageTag.imageSuffixes;return{[o.types.StandaloneOSX]:t,[o.types.StandaloneWindows]:n,[o.types.StandaloneWindows64]:n,[o.types.StandaloneLinux64]:n,[o.types.iOS]:a,[o.types.Android]:i,[o.types.WebGL]:r,[o.types.WSAPlayer]:n,[o.types.PS4]:n,[o.types.XboxOne]:n,[o.types.tvOS]:n,[o.types.Switch]:n,[o.types.Lumin]:n,[o.types.BJM]:n,[o.types.Stadia]:n,[o.types.Facebook]:u,[o.types.NoTarget]:e,[o.types.Test]:e}}get tag(){return Lw(`${this.version}-${this.builderPlatform}`,"-")}get image(){return Nw(`${this.repository}/${this.name}`,"/")}toString(){const{image:e,tag:r}=this;return`${e}:${r}`}}var OS=image_tag_ImageTag;class docker_Docker{static async build(e,r=false){const{path:t,dockerfile:n,baseImage:i}=e;const{version:a,platform:o}=i;const u=new OS({repository:"",name:"unity-builder",version:a,platform:o});const f=`docker build ${t} --file ${n} --build-arg IMAGE=${i} --tag ${u}`;await Object(s.exec)(f,null,{silent:r});return u}static async run(e,r,t=false){const{version:n,workspace:i,platform:a,projectPath:o,buildName:u,buildPath:f,buildFile:c,buildMethod:l,customParameters:v}=r;const d=`docker run --workdir /github/workspace --rm --env UNITY_LICENSE --env UNITY_EMAIL --env UNITY_PASSWORD --env UNITY_SERIAL --env UNITY_VERSION=${n} --env PROJECT_PATH=${o} --env BUILD_TARGET=${a} --env BUILD_NAME=${u} --env BUILD_PATH=${f} --env BUILD_FILE=${c} --env BUILD_METHOD=${l} --env CUSTOM_PARAMETERS=${v} --env HOME=/github/home --env GITHUB_REF --env GITHUB_SHA --env GITHUB_REPOSITORY --env GITHUB_ACTOR --env GITHUB_WORKFLOW --env GITHUB_HEAD_REF --env GITHUB_BASE_REF --env GITHUB_EVENT_NAME --env GITHUB_WORKSPACE=/github/workspace --env GITHUB_ACTION --env GITHUB_EVENT_PATH --env RUNNER_OS --env RUNNER_TOOL_CACHE --env RUNNER_TEMP --env RUNNER_WORKSPACE --volume "/var/run/docker.sock":"/var/run/docker.sock" --volume "/home/runner/work/_temp/_github_home":"/github/home" --volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" --volume "${i}":"/github/workspace" ${e}`;await Object(s.exec)(d,null,{silent:t})}}var ES=docker_Docker;const IS=t(470);class input_Input{static getFromUser(){const e=IS.getInput("unityVersion");const r=IS.getInput("targetPlatform")||o.default;const t=IS.getInput("projectPath")||".";const n=IS.getInput("buildName")||r;const i=IS.getInput("buildsPath")||"build";const a=IS.getInput("buildMethod");const u=IS.getInput("customParameters")||"";return{unityVersion:e,targetPlatform:r,projectPath:t,buildName:n,buildsPath:i,buildMethod:a,customParameters:u}}}var jS=input_Input;const AS=t(470);async function src_action(){a.checkCompatibility();const{dockerfile:e,workspace:r,builderFolder:t}=a;const n=u.create(jS.getFromUser());const i=new OS(n);const o=await ES.build({path:t,dockerfile:e,baseImage:i});await ES.run(o,{workspace:r,...n})}src_action().catch(e=>{AS.setFailed(e.message)})},470:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(431);const a=t(87);const o=t(622);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){process.env[e]=r;i.issueCommand("set-env",{name:e},r)}r.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){i.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${o.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!t){throw new Error(`Input required and not supplied: ${e}`)}return t.trim()}r.getInput=getInput;function setOutput(e,r){i.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setFailed(e){process.exitCode=u.Failure;error(e)}r.setFailed=setFailed;function debug(e){i.issueCommand("debug",{},e)}r.debug=debug;function error(e){i.issue("error",e)}r.error=error;function warning(e){i.issue("warning",e)}r.warning=warning;function info(e){process.stdout.write(e+a.EOL)}r.info=info;function startGroup(e){i.issue("group",e)}r.startGroup=startGroup;function endGroup(){i.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return n(this,void 0,void 0,function*(){startGroup(e);let t;try{t=yield r()}finally{endGroup()}return t})}r.group=group;function saveState(e,r){i.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},669:function(e){e.exports=require("util")},672:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};var i;Object.defineProperty(r,"__esModule",{value:true});const a=t(357);const o=t(747);const u=t(622);i=o.promises,r.chmod=i.chmod,r.copyFile=i.copyFile,r.lstat=i.lstat,r.mkdir=i.mkdir,r.readdir=i.readdir,r.readlink=i.readlink,r.rename=i.rename,r.rmdir=i.rmdir,r.stat=i.stat,r.symlink=i.symlink,r.unlink=i.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}r.exists=exists;function isDirectory(e,t=false){return n(this,void 0,void 0,function*(){const n=t?yield r.stat(e):yield r.lstat(e);return n.isDirectory()})}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,t=1e3,i=1){return n(this,void 0,void 0,function*(){a.ok(e,"a path argument must be provided");e=u.resolve(e);if(i>=t)return r.mkdir(e);try{yield r.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(u.dirname(e),t,i+1);yield r.mkdir(e);return}default:{let t;try{t=yield r.stat(e)}catch(e){throw n}if(!t.isDirectory())throw n}}}})}r.mkdirP=mkdirP;function tryGetExecutablePath(e,t){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){const r=u.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===r)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const a of t){e=i+a;n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){try{const t=u.dirname(e);const n=u.basename(e).toUpperCase();for(const i of yield r.readdir(t)){if(n===i.toUpperCase()){e=u.join(t,i);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},747:function(e){e.exports=require("fs")},986:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(9);function exec(e,r,t){return n(this,void 0,void 0,function*(){const n=i.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const a=n[0];r=n.slice(1).concat(r||[]);const o=new i.ToolRunner(a,r,t);return o.exec()})}r.exec=exec}},function(e){"use strict";!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){var r=Object.prototype.hasOwnProperty;e.d=function(e,t,n){if(!r.call(e,t)){Object.defineProperty(e,t,{enumerable:true,get:n})}}}();!function(){e.t=function(r,t){if(t&1)r=this(r);if(t&8)return r;if(t&4&&typeof r==="object"&&r&&r.__esModule)return r;var n=Object.create(null);e.r(n);Object.defineProperty(n,"default",{enumerable:true,value:r});if(t&2&&typeof r!="string")for(var i in r)e.d(n,i,function(e){return r[e]}.bind(null,i));return n}}();!function(){e.n=function(r){var t=r&&r.__esModule?function getDefault(){return r["default"]}:function getModuleExports(){return r};e.d(t,"a",t);return t}}();!function(){e.hmd=function(e){e=Object.create(e);if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});Object.defineProperty(e,"exports",{enumerable:true,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}});return e}}()}); \ No newline at end of file diff --git a/builder/steps/build.sh b/builder/steps/build.sh index 83896cd9..28d681ef 100644 --- a/builder/steps/build.sh +++ b/builder/steps/build.sh @@ -58,10 +58,15 @@ else # User has provided their own build method. # Assume they also bring their own script. # - echo "User set build method to $BUILD_METHOD." + echo "Using build method \"$BUILD_METHOD\"." # fi +# +# Display custom parameters +# +echo "Using custom parameters \"$CUSTOM_PARAMETERS\"." + # The build specification below may require Unity 2019.2.11f1 or later (not tested below). # Reference: https://docs.unity3d.com/2019.3/Documentation/Manual/CommandLineArguments.html @@ -103,7 +108,8 @@ xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \ -buildTarget "$BUILD_TARGET" \ -customBuildTarget "$BUILD_TARGET" \ -customBuildPath "$CUSTOM_BUILD_PATH" \ - -executeMethod "$BUILD_METHOD" + -executeMethod "$BUILD_METHOD" \ + "$CUSTOM_PARAMETERS" # Catch exit code BUILD_EXIT_CODE=$? diff --git a/src/model/build-parameters.js b/src/model/build-parameters.js index 15da5965..034d9a23 100644 --- a/src/model/build-parameters.js +++ b/src/model/build-parameters.js @@ -9,6 +9,7 @@ class BuildParameters { buildName, buildsPath, buildMethod, + customParameters, } = parameters; return { @@ -19,6 +20,7 @@ class BuildParameters { buildPath: `${buildsPath}/${targetPlatform}`, buildFile: this.parseBuildFile(buildName, targetPlatform), buildMethod, + customParameters, }; } diff --git a/src/model/docker.js b/src/model/docker.js index f182d1bc..3089e4ee 100644 --- a/src/model/docker.js +++ b/src/model/docker.js @@ -27,6 +27,7 @@ class Docker { buildPath, buildFile, buildMethod, + customParameters, } = parameters; const command = `docker run \ @@ -43,6 +44,7 @@ class Docker { --env BUILD_PATH=${buildPath} \ --env BUILD_FILE=${buildFile} \ --env BUILD_METHOD=${buildMethod} \ + --env CUSTOM_PARAMETERS=${customParameters} \ --env HOME=/github/home \ --env GITHUB_REF \ --env GITHUB_SHA \ diff --git a/src/model/input.js b/src/model/input.js index c4dbdb71..117a4a36 100644 --- a/src/model/input.js +++ b/src/model/input.js @@ -11,6 +11,7 @@ class Input { const buildName = core.getInput('buildName') || targetPlatform; const buildsPath = core.getInput('buildsPath') || 'build'; const buildMethod = core.getInput('buildMethod'); // processed in docker file + const customParameters = core.getInput('customParameters') || ''; return { unityVersion, @@ -19,6 +20,7 @@ class Input { buildName, buildsPath, buildMethod, + customParameters, }; } }