@skyramp/testbot-core 0.13.2-v3.487 → 0.13.2-v3.489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION.json +1 -1
- package/dist/main.js +538 -537
- package/dist/post.js +3 -3
- package/dist/runner-client.cjs +4 -4
- package/package.json +1 -1
package/dist/post.js
CHANGED
|
@@ -48,11 +48,11 @@ ${c}`,this.dataLineCount++;return}if(cy(t,r,Doe)){Uoe(t,i)&&(this.setEventFieldS
|
|
|
48
48
|
Error Code : ${o.statusCode}
|
|
49
49
|
|
|
50
50
|
Error Message: ${o.message}`)})).result)===null||n===void 0?void 0:n.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(t){return N1(this,void 0,void 0,function*(){try{let n=e.getIDTokenUrl();if(t){let r=encodeURIComponent(t);n=`${n}&audience=${r}`}_k(`ID token url is ${n}`);let s=yield e.getCall(n);return Ui(s),s}catch(n){throw new Error(`Error message: ${n.message}`)}})}}});var U1,hf,Dk,Dae,Nae,Pae,O1,Nk,gxe,Pk=Vn(()=>{U1=require("os"),hf=require("fs"),Dk=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})},{access:Dae,appendFile:Nae,writeFile:Pae}=hf.promises,O1="GITHUB_STEP_SUMMARY",Nk=class{constructor(){this._buffer=""}filePath(){return Dk(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[O1];if(!t)throw new Error(`Unable to find environment variable for $${O1}. Check if your runtime environment supports job summaries.`);try{yield Dae(t,hf.constants.R_OK|hf.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(t,n,s={}){let r=Object.entries(s).map(([i,o])=>` ${i}="${o}"`).join("");return n?`<${t}${r}>${n}</${t}>`:`<${t}${r}>`}write(t){return Dk(this,void 0,void 0,function*(){let n=!!t?.overwrite,s=yield this.filePath();return yield(n?Pae:Nae)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Dk(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(t,n=!1){return this._buffer+=t,n?this.addEOL():this}addEOL(){return this.addRaw(U1.EOL)}addCodeBlock(t,n){let s=Object.assign({},n&&{lang:n}),r=this.wrap("pre",this.wrap("code",t),s);return this.addRaw(r).addEOL()}addList(t,n=!1){let s=n?"ol":"ul",r=t.map(o=>this.wrap("li",o)).join(""),i=this.wrap(s,r);return this.addRaw(i).addEOL()}addTable(t){let n=t.map(r=>{let i=r.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:d}=o,p=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,c,h)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",n);return this.addRaw(s).addEOL()}addDetails(t,n){let s=this.wrap("details",this.wrap("summary",t)+n);return this.addRaw(s).addEOL()}addImage(t,n,s){let{width:r,height:i}=s||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:t,alt:n},o));return this.addRaw(a).addEOL()}addHeading(t,n){let s=`h${n}`,r=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(r,t);return this.addRaw(i).addEOL()}addSeparator(){let t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){let t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,n){let s=Object.assign({},n&&{cite:n}),r=this.wrap("blockquote",t,s);return this.addRaw(r).addEOL()}addLink(t,n){let s=this.wrap("a",t,{href:n});return this.addRaw(s).addEOL()}},gxe=new Nk});var F1=Vn(()=>{});function Ok(e){return L1(this,void 0,void 0,function*(){try{yield gy(e)}catch(t){if(t.code==="ENOENT")return!1;throw t}return!0})}function Ay(e){if(e=zae(e),!e)throw new Error('isRooted() parameter "p" cannot be empty');return uc?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")}function Uk(e,t){return L1(this,void 0,void 0,function*(){let n;try{n=yield gy(e)}catch(r){r.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}if(n&&n.isFile()){if(uc){let r=Po.extname(e).toUpperCase();if(t.some(i=>i.toUpperCase()===r))return e}else if(M1(n))return e}let s=e;for(let r of t){e=s+r,n=void 0;try{n=yield gy(e)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${i}`)}if(n&&n.isFile()){if(uc){try{let i=Po.dirname(e),o=Po.basename(e).toUpperCase();for(let a of yield j1(i))if(o===a.toUpperCase()){e=Po.join(i,a);break}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${i}`)}return e}else if(M1(n))return e}}return""})}function zae(e){return e=e||"",uc?(e=e.replace(/\//g,"\\"),e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function M1(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var my,Po,L1,Oae,Uae,Fae,Mae,yxe,j1,Lae,jae,Exe,gy,Vae,Gae,uc,vxe,Fk=Vn(()=>{my=Z(require("fs"),1),Po=Z(require("path"),1),L1=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})},{chmod:Oae,copyFile:Uae,lstat:Fae,mkdir:Mae,open:yxe,readdir:j1,rename:Lae,rm:jae,rmdir:Exe,stat:gy,symlink:Vae,unlink:Gae}=my.promises,uc=process.platform==="win32",vxe=my.constants.O_RDONLY});function Mk(e,t){return G1(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");if(t){let s=yield Mk(e,!1);if(!s)throw uc?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.`):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.`);return s}let n=yield Hae(e);return n&&n.length>0?n[0]:""})}function Hae(e){return G1(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");let t=[];if(uc&&process.env.PATHEXT)for(let r of process.env.PATHEXT.split(Xs.delimiter))r&&t.push(r);if(Ay(e)){let r=yield Uk(e,t);return r?[r]:[]}if(e.includes(Xs.sep))return[];let n=[];if(process.env.PATH)for(let r of process.env.PATH.split(Xs.delimiter))r&&n.push(r);let s=[];for(let r of n){let i=yield Uk(Xs.join(r,e),t);i&&s.push(i)}return s})}var Xs,G1,z1=Vn(()=>{Xs=Z(require("path"),1);Fk();G1=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})}});function Y1(e){let t=[],n=!1,s=!1,r="";function i(o){s&&o!=='"'&&(r+="\\"),r+=o,s=!1}for(let o=0;o<e.length;o++){let a=e.charAt(o);if(a==='"'){s?i(a):n=!n;continue}if(a==="\\"&&s){i(a);continue}if(a==="\\"&&n){s=!0;continue}if(a===" "&&!n){r.length>0&&(t.push(r),r="");continue}i(a)}return r.length>0&&t.push(r.trim()),t}var gf,jk,q1,J1,W1,H1,yy,Ey,Lk,Z1=Vn(()=>{gf=Z(require("os"),1),jk=Z(require("events"),1),q1=Z(require("child_process"),1),J1=Z(require("path"),1);z1();Fk();W1=require("timers"),H1=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})},yy=process.platform==="win32",Ey=class extends jk.EventEmitter{constructor(t,n,s){if(super(),!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=t,this.args=n||[],this.options=s||{}}_debug(t){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(t)}_getCommandString(t,n){let s=this._getSpawnFileName(),r=this._getSpawnArgs(t),i=n?"":"[command]";if(yy)if(this._isCmdFile()){i+=s;for(let o of r)i+=` ${o}`}else if(t.windowsVerbatimArguments){i+=`"${s}"`;for(let o of r)i+=` ${o}`}else{i+=this._windowsQuoteCmdArg(s);for(let o of r)i+=` ${this._windowsQuoteCmdArg(o)}`}else{i+=s;for(let o of r)i+=` ${o}`}return i}_processLineBuffer(t,n,s){try{let r=n+t.toString(),i=r.indexOf(gf.EOL);for(;i>-1;){let o=r.substring(0,i);s(o),r=r.substring(i+gf.EOL.length),i=r.indexOf(gf.EOL)}return r}catch(r){return this._debug(`error processing line. Failed with error ${r}`),""}}_getSpawnFileName(){return yy&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(t){if(yy&&this._isCmdFile()){let n=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let s of this.args)n+=" ",n+=t.windowsVerbatimArguments?s:this._windowsQuoteCmdArg(s);return n+='"',[n]}return this.args}_endsWith(t,n){return t.endsWith(n)}_isCmdFile(){let t=this.toolPath.toUpperCase();return this._endsWith(t,".CMD")||this._endsWith(t,".BAT")}_windowsQuoteCmdArg(t){if(!this._isCmdFile())return this._uvQuoteCmdArg(t);if(!t)return'""';let n=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],s=!1;for(let o of t)if(n.some(a=>a===o)){s=!0;break}if(!s)return t;let r='"',i=!0;for(let o=t.length;o>0;o--)r+=t[o-1],i&&t[o-1]==="\\"?r+="\\":t[o-1]==='"'?(i=!0,r+='"'):i=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(t){if(!t)return'""';if(!t.includes(" ")&&!t.includes(" ")&&!t.includes('"'))return t;if(!t.includes('"')&&!t.includes("\\"))return`"${t}"`;let n='"',s=!0;for(let r=t.length;r>0;r--)n+=t[r-1],s&&t[r-1]==="\\"?n+="\\":t[r-1]==='"'?(s=!0,n+="\\"):s=!1;return n+='"',n.split("").reverse().join("")}_cloneExecOptions(t){t=t||{};let n={cwd:t.cwd||process.cwd(),env:t.env||process.env,silent:t.silent||!1,windowsVerbatimArguments:t.windowsVerbatimArguments||!1,failOnStdErr:t.failOnStdErr||!1,ignoreReturnCode:t.ignoreReturnCode||!1,delay:t.delay||1e4};return n.outStream=t.outStream||process.stdout,n.errStream=t.errStream||process.stderr,n}_getSpawnOptions(t,n){t=t||{};let s={};return s.cwd=t.cwd,s.env=t.env,s.windowsVerbatimArguments=t.windowsVerbatimArguments||this._isCmdFile(),t.windowsVerbatimArguments&&(s.argv0=`"${n}"`),s}exec(){return H1(this,void 0,void 0,function*(){return!Ay(this.toolPath)&&(this.toolPath.includes("/")||yy&&this.toolPath.includes("\\"))&&(this.toolPath=J1.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Mk(this.toolPath,!0),new Promise((t,n)=>H1(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let u of this.args)this._debug(` ${u}`);let s=this._cloneExecOptions(this.options);!s.silent&&s.outStream&&s.outStream.write(this._getCommandString(s)+gf.EOL);let r=new Lk(s,this.toolPath);if(r.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield Ok(this.options.cwd)))return n(new Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=q1.spawn(i,this._getSpawnArgs(s),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",u=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(u),!s.silent&&s.outStream&&s.outStream.write(u),a=this._processLineBuffer(u,a,d=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(d)})});let c="";if(o.stderr&&o.stderr.on("data",u=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(u),!s.silent&&s.errStream&&s.outStream&&(s.failOnStdErr?s.errStream:s.outStream).write(u),c=this._processLineBuffer(u,c,d=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(d)})}),o.on("error",u=>{r.processError=u.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()}),o.on("exit",u=>{r.processExitCode=u,r.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),r.CheckComplete()}),o.on("close",u=>{r.processExitCode=u,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete()}),r.on("done",(u,d)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),u?n(u):t(d)}),this.options.input){if(!o.stdin)throw new Error("child process missing stdin");o.stdin.end(this.options.input)}}))})}};Lk=class e extends jk.EventEmitter{constructor(t,n){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!n)throw new Error("toolPath must not be empty");this.options=t,this.toolPath=n,t.delay&&(this.delay=t.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,W1.setTimeout)(e.HandleTimeout,this.delay,this)))}_debug(t){this.emit("debug",t)}_setResult(){let t;this.processExited&&(this.processError?t=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}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?t=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(t=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",t,this.processExitCode)}static HandleTimeout(t){if(!t.done){if(!t.processClosed&&t.processExited){let n=`The STDIO streams did not close within ${t.delay/1e3} seconds of the exit event from process '${t.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;t._debug(n)}t._setResult()}}}});function K1(e,t,n){return Wae(this,void 0,void 0,function*(){let s=Y1(e);if(s.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let r=s[0];return t=s.slice(1).concat(t||[]),new Ey(r,t,n).exec()})}var Wae,Vk=Vn(()=>{Z1();Wae=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})}});var Gk,Cxe,Sxe,eV=Vn(()=>{Gk=Z(require("os"),1);Vk();Cxe=Gk.default.platform(),Sxe=Gk.default.arch()});function Ui(e){Da("add-mask",{},e)}function je(e,t){let n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function Oo(e,t){let n=["true","True","TRUE"],s=["false","False","FALSE"],r=je(e,t);if(n.includes(r))return!0;if(s.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}
|
|
51
|
-
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function nV(e){process.exitCode=zk.Failure,rV(e)}function _k(e){Da("debug",{},e)}function rV(e,t={}){Da("error",fm(t),e instanceof Error?e.toString():e)}function Lt(e,t={}){Da("warning",fm(t),e instanceof Error?e.toString():e)}function Hk(e,t={}){Da("notice",fm(t),e instanceof Error?e.toString():e)}function Rs(e){process.stdout.write(e+tV.EOL)}function vy(e){eI("group",e)}function by(){eI("endgroup")}function ei(e){return process.env[`STATE_${e}`]||""}function sV(e){return Zae(this,void 0,void 0,function*(){return yield hy.getIDToken(e)})}var tV,Zae,zk,_n=Vn(()=>{KD();XD();hm();tV=Z(require("os"),1);P1();Pk();Pk();F1();eV();Zae=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})};(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(zk||(zk={}))});var ed=$((B0e,d2)=>{"use strict";var dpe="2.0.0",ppe=Number.MAX_SAFE_INTEGER||9007199254740991,fpe=16,hpe=250,gpe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];d2.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:fpe,MAX_SAFE_BUILD_LENGTH:hpe,MAX_SAFE_INTEGER:ppe,RELEASE_TYPES:gpe,SEMVER_SPEC_VERSION:dpe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var lh=$((x0e,p2)=>{"use strict";var mpe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};p2.exports=mpe});var td=$((fi,f2)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:IB,MAX_SAFE_BUILD_LENGTH:Ape,MAX_LENGTH:ype}=ed(),Epe=lh();fi=f2.exports={};var vpe=fi.re=[],bpe=fi.safeRe=[],ae=fi.src=[],wpe=fi.safeSrc=[],ce=fi.t={},Ipe=0,CB="[a-zA-Z0-9-]",Cpe=[["\\s",1],["\\d",ype],[CB,Ape]],Spe=e=>{for(let[t,n]of Cpe)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},Ve=(e,t,n)=>{let s=Spe(t),r=Ipe++;Epe(e,r,t),ce[e]=r,ae[r]=t,wpe[r]=s,vpe[r]=new RegExp(t,n?"g":void 0),bpe[r]=new RegExp(s,n?"g":void 0)};Ve("NUMERICIDENTIFIER","0|[1-9]\\d*");Ve("NUMERICIDENTIFIERLOOSE","\\d+");Ve("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${CB}*`);Ve("MAINVERSION",`(${ae[ce.NUMERICIDENTIFIER]})\\.(${ae[ce.NUMERICIDENTIFIER]})\\.(${ae[ce.NUMERICIDENTIFIER]})`);Ve("MAINVERSIONLOOSE",`(${ae[ce.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ce.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ce.NUMERICIDENTIFIERLOOSE]})`);Ve("PRERELEASEIDENTIFIER",`(?:${ae[ce.NONNUMERICIDENTIFIER]}|${ae[ce.NUMERICIDENTIFIER]})`);Ve("PRERELEASEIDENTIFIERLOOSE",`(?:${ae[ce.NONNUMERICIDENTIFIER]}|${ae[ce.NUMERICIDENTIFIERLOOSE]})`);Ve("PRERELEASE",`(?:-(${ae[ce.PRERELEASEIDENTIFIER]}(?:\\.${ae[ce.PRERELEASEIDENTIFIER]})*))`);Ve("PRERELEASELOOSE",`(?:-?(${ae[ce.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ae[ce.PRERELEASEIDENTIFIERLOOSE]})*))`);Ve("BUILDIDENTIFIER",`${CB}+`);Ve("BUILD",`(?:\\+(${ae[ce.BUILDIDENTIFIER]}(?:\\.${ae[ce.BUILDIDENTIFIER]})*))`);Ve("FULLPLAIN",`v?${ae[ce.MAINVERSION]}${ae[ce.PRERELEASE]}?${ae[ce.BUILD]}?`);Ve("FULL",`^${ae[ce.FULLPLAIN]}$`);Ve("LOOSEPLAIN",`[v=\\s]*${ae[ce.MAINVERSIONLOOSE]}${ae[ce.PRERELEASELOOSE]}?${ae[ce.BUILD]}?`);Ve("LOOSE",`^${ae[ce.LOOSEPLAIN]}$`);Ve("GTLT","((?:<|>)?=?)");Ve("XRANGEIDENTIFIERLOOSE",`${ae[ce.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ve("XRANGEIDENTIFIER",`${ae[ce.NUMERICIDENTIFIER]}|x|X|\\*`);Ve("XRANGEPLAIN",`[v=\\s]*(${ae[ce.XRANGEIDENTIFIER]})(?:\\.(${ae[ce.XRANGEIDENTIFIER]})(?:\\.(${ae[ce.XRANGEIDENTIFIER]})(?:${ae[ce.PRERELEASE]})?${ae[ce.BUILD]}?)?)?`);Ve("XRANGEPLAINLOOSE",`[v=\\s]*(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:${ae[ce.PRERELEASELOOSE]})?${ae[ce.BUILD]}?)?)?`);Ve("XRANGE",`^${ae[ce.GTLT]}\\s*${ae[ce.XRANGEPLAIN]}$`);Ve("XRANGELOOSE",`^${ae[ce.GTLT]}\\s*${ae[ce.XRANGEPLAINLOOSE]}$`);Ve("COERCEPLAIN",`(^|[^\\d])(\\d{1,${IB}})(?:\\.(\\d{1,${IB}}))?(?:\\.(\\d{1,${IB}}))?`);Ve("COERCE",`${ae[ce.COERCEPLAIN]}(?:$|[^\\d])`);Ve("COERCEFULL",ae[ce.COERCEPLAIN]+`(?:${ae[ce.PRERELEASE]})?(?:${ae[ce.BUILD]})?(?:$|[^\\d])`);Ve("COERCERTL",ae[ce.COERCE],!0);Ve("COERCERTLFULL",ae[ce.COERCEFULL],!0);Ve("LONETILDE","(?:~>?)");Ve("TILDETRIM",`(\\s*)${ae[ce.LONETILDE]}\\s+`,!0);fi.tildeTrimReplace="$1~";Ve("TILDE",`^${ae[ce.LONETILDE]}${ae[ce.XRANGEPLAIN]}$`);Ve("TILDELOOSE",`^${ae[ce.LONETILDE]}${ae[ce.XRANGEPLAINLOOSE]}$`);Ve("LONECARET","(?:\\^)");Ve("CARETTRIM",`(\\s*)${ae[ce.LONECARET]}\\s+`,!0);fi.caretTrimReplace="$1^";Ve("CARET",`^${ae[ce.LONECARET]}${ae[ce.XRANGEPLAIN]}$`);Ve("CARETLOOSE",`^${ae[ce.LONECARET]}${ae[ce.XRANGEPLAINLOOSE]}$`);Ve("COMPARATORLOOSE",`^${ae[ce.GTLT]}\\s*(${ae[ce.LOOSEPLAIN]})$|^$`);Ve("COMPARATOR",`^${ae[ce.GTLT]}\\s*(${ae[ce.FULLPLAIN]})$|^$`);Ve("COMPARATORTRIM",`(\\s*)${ae[ce.GTLT]}\\s*(${ae[ce.LOOSEPLAIN]}|${ae[ce.XRANGEPLAIN]})`,!0);fi.comparatorTrimReplace="$1$2$3";Ve("HYPHENRANGE",`^\\s*(${ae[ce.XRANGEPLAIN]})\\s+-\\s+(${ae[ce.XRANGEPLAIN]})\\s*$`);Ve("HYPHENRANGELOOSE",`^\\s*(${ae[ce.XRANGEPLAINLOOSE]})\\s+-\\s+(${ae[ce.XRANGEPLAINLOOSE]})\\s*$`);Ve("STAR","(<|>)?=?\\s*\\*");Ve("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ve("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var _E=$((Q0e,h2)=>{"use strict";var kpe=Object.freeze({loose:!0}),Rpe=Object.freeze({}),Bpe=e=>e?typeof e!="object"?kpe:e:Rpe;h2.exports=Bpe});var SB=$(($0e,A2)=>{"use strict";var g2=/^[0-9]+$/,m2=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=g2.test(e),s=g2.test(t);return n&&s&&(e=+e,t=+t),e===t?0:n&&!s?-1:s&&!n?1:e<t?-1:1},xpe=(e,t)=>m2(t,e);A2.exports={compareIdentifiers:m2,rcompareIdentifiers:xpe}});var Cn=$((T0e,E2)=>{"use strict";var DE=lh(),{MAX_LENGTH:y2,MAX_SAFE_INTEGER:NE}=ed(),{safeRe:PE,t:OE}=td(),Qpe=_E(),{compareIdentifiers:kB}=SB(),$pe=(e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let s=0;s<n.length;s++)if(kB(e[s],n[s])!==0)return!1;return!0},RB=class e{constructor(t,n){if(n=Qpe(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>y2)throw new TypeError(`version is longer than ${y2} characters`);DE("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let s=t.trim().match(n.loose?PE[OE.LOOSE]:PE[OE.FULL]);if(!s)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>NE||this.major<0)throw new TypeError("Invalid major version");if(this.minor>NE||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>NE||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let i=+r;if(i>=0&&i<NE)return i}return r}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(DE("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let s=this.prerelease[n],r=t.prerelease[n];if(DE("prerelease compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return kB(s,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let s=this.build[n],r=t.build[n];if(DE("build compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return kB(s,r)}while(++n)}inc(t,n,s){if(t.startsWith("pre")){if(!n&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?PE[OE.PRERELEASELOOSE]:PE[OE.PRERELEASE]);if(!r||r[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,s),this.inc("pre",n,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,s),this.inc("pre",n,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let i=[n,r];if(s===!1&&(i=[n]),$pe(this.prerelease,n)){let o=this.prerelease[n.split(".").length];isNaN(o)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};E2.exports=RB});var ia=$((_0e,b2)=>{"use strict";var v2=Cn(),Tpe=(e,t,n=!1)=>{if(e instanceof v2)return e;try{return new v2(e,t)}catch(s){if(!n)return null;throw s}};b2.exports=Tpe});var I2=$((D0e,w2)=>{"use strict";var _pe=ia(),Dpe=(e,t)=>{let n=_pe(e,t);return n?n.version:null};w2.exports=Dpe});var S2=$((N0e,C2)=>{"use strict";var Npe=ia(),Ppe=(e,t)=>{let n=Npe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};C2.exports=Ppe});var B2=$((P0e,R2)=>{"use strict";var k2=Cn(),Ope=(e,t,n,s,r)=>{typeof n=="string"&&(r=s,s=n,n=void 0);try{return new k2(e instanceof k2?e.version:e,n).inc(t,s,r).version}catch{return null}};R2.exports=Ope});var $2=$((O0e,Q2)=>{"use strict";var x2=ia(),Upe=(e,t)=>{let n=x2(e,null,!0),s=x2(t,null,!0),r=n.compare(s);if(r===0)return null;let i=r>0,o=i?n:s,a=i?s:n,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let d=c?"pre":"";return n.major!==s.major?d+"major":n.minor!==s.minor?d+"minor":n.patch!==s.patch?d+"patch":"prerelease"};Q2.exports=Upe});var _2=$((U0e,T2)=>{"use strict";var Fpe=Cn(),Mpe=(e,t)=>new Fpe(e,t).major;T2.exports=Mpe});var N2=$((F0e,D2)=>{"use strict";var Lpe=Cn(),jpe=(e,t)=>new Lpe(e,t).minor;D2.exports=jpe});var O2=$((M0e,P2)=>{"use strict";var Vpe=Cn(),Gpe=(e,t)=>new Vpe(e,t).patch;P2.exports=Gpe});var F2=$((L0e,U2)=>{"use strict";var zpe=ia(),Hpe=(e,t)=>{let n=zpe(e,t);return n&&n.prerelease.length?n.prerelease:null};U2.exports=Hpe});var ds=$((j0e,L2)=>{"use strict";var M2=Cn(),qpe=(e,t,n)=>new M2(e,n).compare(new M2(t,n));L2.exports=qpe});var V2=$((V0e,j2)=>{"use strict";var Jpe=ds(),Wpe=(e,t,n)=>Jpe(t,e,n);j2.exports=Wpe});var z2=$((G0e,G2)=>{"use strict";var Ype=ds(),Zpe=(e,t)=>Ype(e,t,!0);G2.exports=Zpe});var UE=$((z0e,q2)=>{"use strict";var H2=Cn(),Kpe=(e,t,n)=>{let s=new H2(e,n),r=new H2(t,n);return s.compare(r)||s.compareBuild(r)};q2.exports=Kpe});var W2=$((H0e,J2)=>{"use strict";var Xpe=UE(),efe=(e,t)=>e.sort((n,s)=>Xpe(n,s,t));J2.exports=efe});var Z2=$((q0e,Y2)=>{"use strict";var tfe=UE(),nfe=(e,t)=>e.sort((n,s)=>tfe(s,n,t));Y2.exports=nfe});var dh=$((J0e,K2)=>{"use strict";var rfe=ds(),sfe=(e,t,n)=>rfe(e,t,n)>0;K2.exports=sfe});var FE=$((W0e,X2)=>{"use strict";var ife=ds(),ofe=(e,t,n)=>ife(e,t,n)<0;X2.exports=ofe});var BB=$((Y0e,eH)=>{"use strict";var afe=ds(),cfe=(e,t,n)=>afe(e,t,n)===0;eH.exports=cfe});var xB=$((Z0e,tH)=>{"use strict";var ufe=ds(),lfe=(e,t,n)=>ufe(e,t,n)!==0;tH.exports=lfe});var ME=$((K0e,nH)=>{"use strict";var dfe=ds(),pfe=(e,t,n)=>dfe(e,t,n)>=0;nH.exports=pfe});var LE=$((X0e,rH)=>{"use strict";var ffe=ds(),hfe=(e,t,n)=>ffe(e,t,n)<=0;rH.exports=hfe});var QB=$((e_e,sH)=>{"use strict";var gfe=BB(),mfe=xB(),Afe=dh(),yfe=ME(),Efe=FE(),vfe=LE(),bfe=(e,t,n,s)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return gfe(e,n,s);case"!=":return mfe(e,n,s);case">":return Afe(e,n,s);case">=":return yfe(e,n,s);case"<":return Efe(e,n,s);case"<=":return vfe(e,n,s);default:throw new TypeError(`Invalid operator: ${t}`)}};sH.exports=bfe});var oH=$((t_e,iH)=>{"use strict";var wfe=Cn(),Ife=ia(),{safeRe:jE,t:VE}=td(),Cfe=(e,t)=>{if(e instanceof wfe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?jE[VE.COERCEFULL]:jE[VE.COERCE]);else{let c=t.includePrerelease?jE[VE.COERCERTLFULL]:jE[VE.COERCERTL],u;for(;(u=c.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(n===null)return null;let s=n[2],r=n[3]||"0",i=n[4]||"0",o=t.includePrerelease&&n[5]?`-${n[5]}`:"",a=t.includePrerelease&&n[6]?`+${n[6]}`:"";return Ife(`${s}.${r}.${i}${o}${a}`,t)};iH.exports=Cfe});var cH=$((n_e,aH)=>{"use strict";var Sfe=ia(),kfe=ed(),Rfe=Cn(),Bfe=(e,t,n)=>{if(!kfe.RELEASE_TYPES.includes(t))return null;let s=xfe(e,n);return s&&Qfe(s,t)},xfe=(e,t)=>{let n=e instanceof Rfe?e.version:e;return Sfe(n,t)},Qfe=(e,t)=>{if($fe(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},$fe=e=>e.startsWith("pre");aH.exports=Bfe});var lH=$((r_e,uH)=>{"use strict";var $B=class{constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let r=this.map.keys().next().value;this.delete(r)}this.map.set(t,n)}return this}};uH.exports=$B});var ps=$((s_e,hH)=>{"use strict";var Tfe=/\s+/g,TB=class e{constructor(t,n){if(n=Dfe(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof _B)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(Tfe," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(r=>!pH(r[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&Vfe(r[0])){this.set=[r];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let n=this.set[t];for(let s=0;s<n.length;s++)s>0&&(this.formatted+=" "),this.formatted+=n[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(jfe,"");let s=((this.options.includePrerelease&&Mfe)|(this.options.loose&&Lfe))+":"+t,r=dH.get(s);if(r)return r;let i=this.options.loose,o=i?Kn[Sn.HYPHENRANGELOOSE]:Kn[Sn.HYPHENRANGE];t=t.replace(o,ehe(this.options.includePrerelease)),Pt("hyphen replace",t),t=t.replace(Kn[Sn.COMPARATORTRIM],Ofe),Pt("comparator trim",t),t=t.replace(Kn[Sn.TILDETRIM],Ufe),Pt("tilde trim",t),t=t.replace(Kn[Sn.CARETTRIM],Ffe),Pt("caret trim",t);let a=t.split(" ").map(p=>Gfe(p,this.options)).join(" ").split(/\s+/).map(p=>Xfe(p,this.options));i&&(a=a.filter(p=>(Pt("loose invalid filter",p,this.options),!!p.match(Kn[Sn.COMPARATORLOOSE])))),Pt("range list",a);let c=new Map,u=a.map(p=>new _B(p,this.options));for(let p of u){if(pH(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return dH.set(s,d),d}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(s=>fH(s,n)&&t.set.some(r=>fH(r,n)&&s.every(i=>r.every(o=>i.intersects(o,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Nfe(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(the(this.set[n],t,this.options))return!0;return!1}};hH.exports=TB;var _fe=lH(),dH=new _fe,Dfe=_E(),_B=ph(),Pt=lh(),Nfe=Cn(),{safeRe:Kn,src:Pfe,t:Sn,comparatorTrimReplace:Ofe,tildeTrimReplace:Ufe,caretTrimReplace:Ffe}=td(),{FLAG_INCLUDE_PRERELEASE:Mfe,FLAG_LOOSE:Lfe}=ed(),jfe=new RegExp(Pfe[Sn.BUILD],"g"),pH=e=>e.value==="<0.0.0-0",Vfe=e=>e.value==="",fH=(e,t)=>{let n=!0,s=e.slice(),r=s.pop();for(;n&&s.length;)n=s.every(i=>r.intersects(i,t)),r=s.pop();return n},Gfe=(e,t)=>(e=e.replace(Kn[Sn.BUILD],""),Pt("comp",e,t),e=Jfe(e,t),Pt("caret",e),e=Hfe(e,t),Pt("tildes",e),e=Yfe(e,t),Pt("xrange",e),e=Kfe(e,t),Pt("stars",e),e),an=e=>!e||e.toLowerCase()==="x"||e==="*",zfe=(e,t,n)=>an(e)&&!an(t)||an(t)&&n&&!an(n),Hfe=(e,t)=>e.trim().split(/\s+/).map(n=>qfe(n,t)).join(" "),qfe=(e,t)=>{let n=t.loose?Kn[Sn.TILDELOOSE]:Kn[Sn.TILDE],s=t.includePrerelease?"-0":"";return e.replace(n,(r,i,o,a,c)=>{Pt("tilde",e,r,i,o,a,c);let u;return an(i)?u="":an(o)?u=`>=${i}.0.0${s} <${+i+1}.0.0-0`:an(a)?u=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:c?(Pt("replaceTilde pr",c),u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`):u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,Pt("tilde return",u),u})},Jfe=(e,t)=>e.trim().split(/\s+/).map(n=>Wfe(n,t)).join(" "),Wfe=(e,t)=>{Pt("caret",e,t);let n=t.loose?Kn[Sn.CARETLOOSE]:Kn[Sn.CARET],s=t.includePrerelease?"-0":"";return e.replace(n,(r,i,o,a,c)=>{Pt("caret",e,r,i,o,a,c);let u;return an(i)?u="":an(o)?u=`>=${i}.0.0${s} <${+i+1}.0.0-0`:an(a)?i==="0"?u=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${s} <${+i+1}.0.0-0`:c?(Pt("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(Pt("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),Pt("caret return",u),u})},Yfe=(e,t)=>(Pt("replaceXRanges",e,t),e.split(/\s+/).map(n=>Zfe(n,t)).join(" ")),Zfe=(e,t)=>{e=e.trim();let n=t.loose?Kn[Sn.XRANGELOOSE]:Kn[Sn.XRANGE];return e.replace(n,(s,r,i,o,a,c)=>{if(Pt("xRange",e,s,r,i,o,a,c),zfe(i,o,a))return e;let u=an(i),d=u||an(o),p=d||an(a),h=p;return r==="="&&h&&(r=""),c=t.includePrerelease?"-0":"",u?r===">"||r==="<"?s="<0.0.0-0":s="*":r&&h?(d&&(o=0),a=0,r===">"?(r=">=",d?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):r==="<="&&(r="<",d?i=+i+1:o=+o+1),r==="<"&&(c="-0"),s=`${r+i}.${o}.${a}${c}`):d?s=`>=${i}.0.0${c} <${+i+1}.0.0-0`:p&&(s=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Pt("xRange return",s),s})},Kfe=(e,t)=>(Pt("replaceStars",e,t),e.trim().replace(Kn[Sn.STAR],"")),Xfe=(e,t)=>(Pt("replaceGTE0",e,t),e.trim().replace(Kn[t.includePrerelease?Sn.GTE0PRE:Sn.GTE0],"")),ehe=e=>(t,n,s,r,i,o,a,c,u,d,p,h)=>(an(s)?n="":an(r)?n=`>=${s}.0.0${e?"-0":""}`:an(i)?n=`>=${s}.${r}.0${e?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,an(u)?c="":an(d)?c=`<${+u+1}.0.0-0`:an(p)?c=`<${u}.${+d+1}.0-0`:h?c=`<=${u}.${d}.${p}-${h}`:e?c=`<${u}.${d}.${+p+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),the=(e,t,n)=>{for(let s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let s=0;s<e.length;s++)if(Pt(e[s].semver),e[s].semver!==_B.ANY&&e[s].semver.prerelease.length>0){let r=e[s].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}});var ph=$((i_e,vH)=>{"use strict";var fh=Symbol("SemVer ANY"),PB=class e{static get ANY(){return fh}constructor(t,n){if(n=gH(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),NB("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===fh?this.value="":this.value=this.operator+this.semver.version,NB("comp",this)}parse(t){let n=this.options.loose?mH[AH.COMPARATORLOOSE]:mH[AH.COMPARATOR],s=t.match(n);if(!s)throw new TypeError(`Invalid comparator: ${t}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new yH(s[2],this.options.loose):this.semver=fh}toString(){return this.value}test(t){if(NB("Comparator.test",t,this.options.loose),this.semver===fh||t===fh)return!0;if(typeof t=="string")try{t=new yH(t,this.options)}catch{return!1}return DB(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new EH(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new EH(this.value,n).test(t.semver):(n=gH(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||DB(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||DB(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};vH.exports=PB;var gH=_E(),{safeRe:mH,t:AH}=td(),DB=QB(),NB=lh(),yH=Cn(),EH=ps()});var hh=$((o_e,bH)=>{"use strict";var nhe=ps(),rhe=(e,t,n)=>{try{t=new nhe(t,n)}catch{return!1}return t.test(e)};bH.exports=rhe});var IH=$((a_e,wH)=>{"use strict";var she=ps(),ihe=(e,t)=>new she(e,t).set.map(n=>n.map(s=>s.value).join(" ").trim().split(" "));wH.exports=ihe});var SH=$((c_e,CH)=>{"use strict";var ohe=Cn(),ahe=ps(),che=(e,t,n)=>{let s=null,r=null,i=null;try{i=new ahe(t,n)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||r.compare(o)===-1)&&(s=o,r=new ohe(s,n))}),s};CH.exports=che});var RH=$((u_e,kH)=>{"use strict";var uhe=Cn(),lhe=ps(),dhe=(e,t,n)=>{let s=null,r=null,i=null;try{i=new lhe(t,n)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||r.compare(o)===1)&&(s=o,r=new uhe(s,n))}),s};kH.exports=dhe});var QH=$((l_e,xH)=>{"use strict";var OB=Cn(),phe=ps(),BH=dh(),fhe=(e,t)=>{e=new phe(e,t);let n=new OB("0.0.0");if(e.test(n)||(n=new OB("0.0.0-0"),e.test(n)))return n;n=null;for(let s=0;s<e.set.length;++s){let r=e.set[s],i=null;r.forEach(o=>{let a=new OB(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||BH(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||BH(n,i))&&(n=i)}return n&&e.test(n)?n:null};xH.exports=fhe});var TH=$((d_e,$H)=>{"use strict";var hhe=ps(),ghe=(e,t)=>{try{return new hhe(e,t).range||"*"}catch{return null}};$H.exports=ghe});var GE=$((p_e,PH)=>{"use strict";var mhe=Cn(),NH=ph(),{ANY:Ahe}=NH,yhe=ps(),Ehe=hh(),_H=dh(),DH=FE(),vhe=LE(),bhe=ME(),whe=(e,t,n,s)=>{e=new mhe(e,s),t=new yhe(t,s);let r,i,o,a,c;switch(n){case">":r=_H,i=vhe,o=DH,a=">",c=">=";break;case"<":r=DH,i=bhe,o=_H,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Ehe(e,t,s))return!1;for(let u=0;u<t.set.length;++u){let d=t.set[u],p=null,h=null;if(d.forEach(g=>{g.semver===Ahe&&(g=new NH(">=0.0.0")),p=p||g,h=h||g,r(g.semver,p.semver,s)?p=g:o(g.semver,h.semver,s)&&(h=g)}),p.operator===a||p.operator===c||(!h.operator||h.operator===a)&&i(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};PH.exports=whe});var UH=$((f_e,OH)=>{"use strict";var Ihe=GE(),Che=(e,t,n)=>Ihe(e,t,">",n);OH.exports=Che});var MH=$((h_e,FH)=>{"use strict";var She=GE(),khe=(e,t,n)=>She(e,t,"<",n);FH.exports=khe});var VH=$((g_e,jH)=>{"use strict";var LH=ps(),Rhe=(e,t,n)=>(e=new LH(e,n),t=new LH(t,n),e.intersects(t,n));jH.exports=Rhe});var zH=$((m_e,GH)=>{"use strict";var Bhe=hh(),xhe=ds();GH.exports=(e,t,n)=>{let s=[],r=null,i=null,o=e.sort((d,p)=>xhe(d,p,n));for(let d of o)Bhe(d,t,n)?(i=d,r||(r=d)):(i&&s.push([r,i]),i=null,r=null);r&&s.push([r,null]);let a=[];for(let[d,p]of s)d===p?a.push(d):!p&&d===o[0]?a.push("*"):p?d===o[0]?a.push(`<=${p}`):a.push(`${d} - ${p}`):a.push(`>=${d}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var ZH=$((A_e,YH)=>{"use strict";var HH=ps(),MB=ph(),{ANY:UB}=MB,FB=hh(),LB=ds(),Qhe=(e,t,n={})=>{if(e===t)return!0;e=new HH(e,n),t=new HH(t,n);let s=!1;e:for(let r of e.set){for(let i of t.set){let o=The(r,i,n);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},$he=[new MB(">=0.0.0-0")],qH=[new MB(">=0.0.0")],The=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===UB){if(t.length===1&&t[0].semver===UB)return!0;n.includePrerelease?e=$he:e=qH}if(t.length===1&&t[0].semver===UB){if(n.includePrerelease)return!0;t=qH}let s=new Set,r,i;for(let g of e)g.operator===">"||g.operator===">="?r=JH(r,g,n):g.operator==="<"||g.operator==="<="?i=WH(i,g,n):s.add(g.semver);if(s.size>1)return null;let o;if(r&&i){if(o=LB(r.semver,i.semver,n),o>0)return null;if(o===0&&(r.operator!==">="||i.operator!=="<="))return null}for(let g of s){if(r&&!FB(g,String(r),n)||i&&!FB(g,String(i),n))return null;for(let m of t)if(!FB(g,String(m),n))return!1;return!0}let a,c,u,d,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,h=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let g of t){if(d=d||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator===">"||g.operator===">="){if(a=JH(r,g,n),a===g&&a!==r)return!1}else if(r.operator===">="&&!g.test(r.semver))return!1}if(i){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator==="<"||g.operator==="<="){if(c=WH(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!g.test(i.semver))return!1}if(!g.operator&&(i||r)&&o!==0)return!1}return!(r&&u&&!i&&o!==0||i&&d&&!r&&o!==0||h||p)},JH=(e,t,n)=>{if(!e)return t;let s=LB(e.semver,t.semver,n);return s>0?e:s<0||t.operator===">"&&e.operator===">="?t:e},WH=(e,t,n)=>{if(!e)return t;let s=LB(e.semver,t.semver,n);return s<0?e:s>0||t.operator==="<"&&e.operator==="<="?t:e};YH.exports=Qhe});var VB=$((y_e,eq)=>{"use strict";var jB=td(),KH=ed(),_he=Cn(),XH=SB(),Dhe=ia(),Nhe=I2(),Phe=S2(),Ohe=B2(),Uhe=$2(),Fhe=_2(),Mhe=N2(),Lhe=O2(),jhe=F2(),Vhe=ds(),Ghe=V2(),zhe=z2(),Hhe=UE(),qhe=W2(),Jhe=Z2(),Whe=dh(),Yhe=FE(),Zhe=BB(),Khe=xB(),Xhe=ME(),ege=LE(),tge=QB(),nge=oH(),rge=cH(),sge=ph(),ige=ps(),oge=hh(),age=IH(),cge=SH(),uge=RH(),lge=QH(),dge=TH(),pge=GE(),fge=UH(),hge=MH(),gge=VH(),mge=zH(),Age=ZH();eq.exports={parse:Dhe,valid:Nhe,clean:Phe,inc:Ohe,diff:Uhe,major:Fhe,minor:Mhe,patch:Lhe,prerelease:jhe,compare:Vhe,rcompare:Ghe,compareLoose:zhe,compareBuild:Hhe,sort:qhe,rsort:Jhe,gt:Whe,lt:Yhe,eq:Zhe,neq:Khe,gte:Xhe,lte:ege,cmp:tge,coerce:nge,truncate:rge,Comparator:sge,Range:ige,satisfies:oge,toComparators:age,maxSatisfying:cge,minSatisfying:uge,minVersion:lge,validRange:dge,outside:pge,gtr:fge,ltr:hge,intersects:gge,simplifyRange:mge,subset:Age,SemVer:_he,re:jB.re,src:jB.src,tokens:jB.t,SEMVER_SPEC_VERSION:KH.SEMVER_SPEC_VERSION,RELEASE_TYPES:KH.RELEASE_TYPES,compareIdentifiers:XH.compareIdentifiers,rcompareIdentifiers:XH.rcompareIdentifiers}});var sRe={};Wr(sRe,{post:()=>V6});module.exports=W6(sRe);_n();var j6=Z(require("path"));_n();_n();var qk;(function(e){e.Pass="Pass",e.Fail="Fail",e.Error="Error",e.Skipped="Skipped",e.Unknown="Unknown"})(qk||(qk={}));var iV;(function(e){e.High="high",e.Medium="medium",e.Low="low"})(iV||(iV={}));var oV;(function(e){e.Skyramp="skyramp",e.External="external"})(oV||(oV={}));var Jk;(function(e){e.Update="UPDATE",e.Regenerate="REGENERATE",e.Delete="DELETE",e.Verify="VERIFY",e.Ignore="IGNORE"})(Jk||(Jk={}));var aV;(function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"})(aV||(aV={}));var we={};Wr(we,{BRAND:()=>Ice,DIRTY:()=>lc,EMPTY_PATH:()=>tce,INVALID:()=>ke,NEVER:()=>aue,OK:()=>Dn,ParseStatus:()=>bn,Schema:()=>Ye,ZodAny:()=>Mo,ZodArray:()=>ji,ZodBigInt:()=>pc,ZodBoolean:()=>fc,ZodBranded:()=>Af,ZodCatch:()=>Cc,ZodDate:()=>hc,ZodDefault:()=>Ic,ZodDiscriminatedUnion:()=>Cy,ZodEffects:()=>ss,ZodEnum:()=>bc,ZodError:()=>dr,ZodFirstPartyTypeKind:()=>$e,ZodFunction:()=>ky,ZodIntersection:()=>yc,ZodIssueCode:()=>j,ZodLazy:()=>Ec,ZodLiteral:()=>vc,ZodMap:()=>Bl,ZodNaN:()=>Ql,ZodNativeEnum:()=>wc,ZodNever:()=>Bs,ZodNull:()=>mc,ZodNullable:()=>ri,ZodNumber:()=>dc,ZodObject:()=>pr,ZodOptional:()=>ns,ZodParsedType:()=>se,ZodPipeline:()=>yf,ZodPromise:()=>Lo,ZodReadonly:()=>Sc,ZodRecord:()=>Sy,ZodSchema:()=>Ye,ZodSet:()=>xl,ZodString:()=>Fo,ZodSymbol:()=>kl,ZodTransformer:()=>ss,ZodTuple:()=>ni,ZodType:()=>Ye,ZodUndefined:()=>gc,ZodUnion:()=>Ac,ZodUnknown:()=>Li,ZodVoid:()=>Rl,addIssueToContext:()=>ee,any:()=>Tce,array:()=>Pce,bigint:()=>Rce,boolean:()=>yV,coerce:()=>oue,custom:()=>gV,date:()=>Bce,datetimeRegex:()=>fV,defaultErrorMap:()=>Fi,discriminatedUnion:()=>Mce,effect:()=>Kce,enum:()=>Wce,function:()=>Hce,getErrorMap:()=>Il,getParsedType:()=>ti,instanceof:()=>Sce,intersection:()=>Lce,isAborted:()=>wy,isAsync:()=>Cl,isDirty:()=>Iy,isValid:()=>Uo,late:()=>Cce,lazy:()=>qce,literal:()=>Jce,makeIssue:()=>mf,map:()=>Gce,nan:()=>kce,nativeEnum:()=>Yce,never:()=>Dce,null:()=>$ce,nullable:()=>eue,number:()=>AV,object:()=>Oce,objectUtil:()=>Wk,oboolean:()=>iue,onumber:()=>sue,optional:()=>Xce,ostring:()=>rue,pipeline:()=>nue,preprocess:()=>tue,promise:()=>Zce,quotelessJson:()=>Kae,record:()=>Vce,set:()=>zce,setErrorMap:()=>ece,strictObject:()=>Uce,string:()=>mV,symbol:()=>xce,transformer:()=>Kce,tuple:()=>jce,undefined:()=>Qce,union:()=>Fce,unknown:()=>_ce,util:()=>nt,void:()=>Nce});var nt;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let i={};for(let o of r)i[o]=o;return i},e.getValidEnumValues=r=>{let i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(let a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let i=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(let o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(nt||(nt={}));var Wk;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wk||(Wk={}));var se=nt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ti=e=>{switch(typeof e){case"undefined":return se.undefined;case"string":return se.string;case"number":return Number.isNaN(e)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(e)?se.array:e===null?se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?se.promise:typeof Map<"u"&&e instanceof Map?se.map:typeof Set<"u"&&e instanceof Set?se.set:typeof Date<"u"&&e instanceof Date?se.date:se.object;default:return se.unknown}};var j=nt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Kae=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),dr=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return r(this),s}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,nt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},s=[];for(let r of this.issues)if(r.path.length>0){let i=r.path[0];n[i]=n[i]||[],n[i].push(t(r))}else s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}};dr.create=e=>new dr(e);var Xae=(e,t)=>{let n;switch(e.code){case j.invalid_type:e.received===se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case j.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,nt.jsonStringifyReplacer)}`;break;case j.unrecognized_keys:n=`Unrecognized key(s) in object: ${nt.joinValues(e.keys,", ")}`;break;case j.invalid_union:n="Invalid input";break;case j.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${nt.joinValues(e.options)}`;break;case j.invalid_enum_value:n=`Invalid enum value. Expected ${nt.joinValues(e.options)}, received '${e.received}'`;break;case j.invalid_arguments:n="Invalid function arguments";break;case j.invalid_return_type:n="Invalid function return type";break;case j.invalid_date:n="Invalid date";break;case j.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:nt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case j.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case j.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case j.custom:n="Invalid input";break;case j.invalid_intersection_types:n="Intersection results could not be merged";break;case j.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case j.not_finite:n="Number must be finite";break;default:n=t.defaultError,nt.assertNever(e)}return{message:n}},Fi=Xae;var cV=Fi;function ece(e){cV=e}function Il(){return cV}var mf=e=>{let{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="",c=s.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},tce=[];function ee(e,t){let n=Il(),s=mf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Fi?void 0:Fi].filter(r=>!!r)});e.common.issues.push(s)}var bn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let s=[];for(let r of n){if(r.status==="aborted")return ke;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){let s=[];for(let r of n){let i=await r.key,o=await r.value;s.push({key:i,value:o})}return e.mergeObjectSync(t,s)}static mergeObjectSync(t,n){let s={};for(let r of n){let{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return ke;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}},ke=Object.freeze({status:"aborted"}),lc=e=>({status:"dirty",value:e}),Dn=e=>({status:"valid",value:e}),wy=e=>e.status==="aborted",Iy=e=>e.status==="dirty",Uo=e=>e.status==="valid",Cl=e=>typeof Promise<"u"&&e instanceof Promise;var pe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(pe||(pe={}));var rs=class{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},uV=(e,t)=>{if(Uo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new dr(e.common.issues);return this._error=n,this._error}}};function Ge(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??s??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:r}}var Ye=class{get description(){return this._def.description}_getType(t){return ti(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ti(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new bn,ctx:{common:t.parent.common,data:t.data,parsedType:ti(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Cl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){let s={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ti(t)},r=this._parseSync({data:t,path:s.path,parent:s});return uV(s,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ti(t)};if(!this["~standard"].async)try{let s=this._parseSync({data:t,path:[],parent:n});return Uo(s)?{value:s.value}:{issues:n.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>Uo(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){let s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){let s={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ti(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(Cl(r)?r:Promise.resolve(r));return uV(s,i)}refine(t,n){let s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{let o=t(r),a=()=>i.addIssue({code:j.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new ss({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ns.create(this,this._def)}nullable(){return ri.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ji.create(this)}promise(){return Lo.create(this,this._def)}or(t){return Ac.create([this,t],this._def)}and(t){return yc.create(this,t,this._def)}transform(t){return new ss({...Ge(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Ic({...Ge(this._def),innerType:this,defaultValue:n,typeName:$e.ZodDefault})}brand(){return new Af({typeName:$e.ZodBranded,type:this,...Ge(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Cc({...Ge(this._def),innerType:this,catchValue:n,typeName:$e.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return yf.create(this,t)}readonly(){return Sc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},nce=/^c[^\s-]{8,}$/i,rce=/^[0-9a-z]+$/,sce=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ice=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,oce=/^[a-z0-9_-]{21}$/i,ace=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cce=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,uce=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,lce="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Yk,dce=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,pce=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,fce=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,hce=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gce=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mce=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dV="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Ace=new RegExp(`^${dV}$`);function pV(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function yce(e){return new RegExp(`^${pV(e)}$`)}function fV(e){let t=`${dV}T${pV(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Ece(e,t){return!!((t==="v4"||!t)&&dce.test(e)||(t==="v6"||!t)&&fce.test(e))}function vce(e,t){if(!ace.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function bce(e,t){return!!((t==="v4"||!t)&&pce.test(e)||(t==="v6"||!t)&&hce.test(e))}var Fo=class e extends Ye{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==se.string){let i=this._getOrReturnCtx(t);return ee(i,{code:j.invalid_type,expected:se.string,received:i.parsedType}),ke}let s=new bn,r;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),ee(r,{code:j.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),ee(r,{code:j.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){let o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?ee(r,{code:j.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&ee(r,{code:j.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")uce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"email",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")Yk||(Yk=new RegExp(lce,"u")),Yk.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"emoji",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")ice.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"uuid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")oce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"nanoid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")nce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"cuid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")rce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"cuid2",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")sce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"ulid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),ee(r,{validation:"url",code:j.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"regex",code:j.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?fV(i).test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?Ace.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?yce(i).test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?cce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"duration",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?Ece(t.data,i.version)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"ip",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?vce(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"jwt",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?bce(t.data,i.version)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"cidr",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?gce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"base64",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?mce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"base64url",code:j.invalid_string,message:i.message}),s.dirty()):nt.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(r=>t.test(r),{validation:n,code:j.invalid_string,...pe.errToObj(s)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...pe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...pe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...pe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...pe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...pe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...pe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...pe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...pe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...pe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...pe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...pe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...pe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...pe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...pe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...pe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...pe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...pe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...pe.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...pe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...pe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...pe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...pe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...pe.errToObj(n)})}nonempty(t){return this.min(1,pe.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Fo.create=e=>new Fo({checks:[],typeName:$e.ZodString,coerce:e?.coerce??!1,...Ge(e)});function wce(e,t){let n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return i%o/10**r}var dc=class e extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==se.number){let i=this._getOrReturnCtx(t);return ee(i,{code:j.invalid_type,expected:se.number,received:i.parsedType}),ke}let s,r=new bn;for(let i of this._def.checks)i.kind==="int"?nt.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{code:j.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?wce(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{code:j.not_finite,message:i.message}),r.dirty()):nt.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,pe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,pe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,pe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,pe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:pe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:pe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:pe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&nt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}};dc.create=e=>new dc({checks:[],typeName:$e.ZodNumber,coerce:e?.coerce||!1,...Ge(e)});var pc=class e extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==se.bigint)return this._getInvalidInput(t);let s,r=new bn;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):nt.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return ee(n,{code:j.invalid_type,expected:se.bigint,received:n.parsedType}),ke}gte(t,n){return this.setLimit("min",t,!0,pe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,pe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,pe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,pe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:pe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};pc.create=e=>new pc({checks:[],typeName:$e.ZodBigInt,coerce:e?.coerce??!1,...Ge(e)});var fc=class extends Ye{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==se.boolean){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.boolean,received:s.parsedType}),ke}return Dn(t.data)}};fc.create=e=>new fc({typeName:$e.ZodBoolean,coerce:e?.coerce||!1,...Ge(e)});var hc=class e extends Ye{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==se.date){let i=this._getOrReturnCtx(t);return ee(i,{code:j.invalid_type,expected:se.date,received:i.parsedType}),ke}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return ee(i,{code:j.invalid_date}),ke}let s=new bn,r;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),ee(r,{code:j.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),ee(r,{code:j.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):nt.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:pe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:pe.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};hc.create=e=>new hc({checks:[],coerce:e?.coerce||!1,typeName:$e.ZodDate,...Ge(e)});var kl=class extends Ye{_parse(t){if(this._getType(t)!==se.symbol){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.symbol,received:s.parsedType}),ke}return Dn(t.data)}};kl.create=e=>new kl({typeName:$e.ZodSymbol,...Ge(e)});var gc=class extends Ye{_parse(t){if(this._getType(t)!==se.undefined){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.undefined,received:s.parsedType}),ke}return Dn(t.data)}};gc.create=e=>new gc({typeName:$e.ZodUndefined,...Ge(e)});var mc=class extends Ye{_parse(t){if(this._getType(t)!==se.null){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.null,received:s.parsedType}),ke}return Dn(t.data)}};mc.create=e=>new mc({typeName:$e.ZodNull,...Ge(e)});var Mo=class extends Ye{constructor(){super(...arguments),this._any=!0}_parse(t){return Dn(t.data)}};Mo.create=e=>new Mo({typeName:$e.ZodAny,...Ge(e)});var Li=class extends Ye{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Dn(t.data)}};Li.create=e=>new Li({typeName:$e.ZodUnknown,...Ge(e)});var Bs=class extends Ye{_parse(t){let n=this._getOrReturnCtx(t);return ee(n,{code:j.invalid_type,expected:se.never,received:n.parsedType}),ke}};Bs.create=e=>new Bs({typeName:$e.ZodNever,...Ge(e)});var Rl=class extends Ye{_parse(t){if(this._getType(t)!==se.undefined){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.void,received:s.parsedType}),ke}return Dn(t.data)}};Rl.create=e=>new Rl({typeName:$e.ZodVoid,...Ge(e)});var ji=class e extends Ye{_parse(t){let{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==se.array)return ee(n,{code:j.invalid_type,expected:se.array,received:n.parsedType}),ke;if(r.exactLength!==null){let o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(ee(n,{code:o?j.too_big:j.too_small,minimum:a?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(ee(n,{code:j.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(ee(n,{code:j.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new rs(n,o,n.path,a)))).then(o=>bn.mergeArray(s,o));let i=[...n.data].map((o,a)=>r.type._parseSync(new rs(n,o,n.path,a)));return bn.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:pe.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:pe.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:pe.toString(n)}})}nonempty(t){return this.min(1,t)}};ji.create=(e,t)=>new ji({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...Ge(t)});function Sl(e){if(e instanceof pr){let t={};for(let n in e.shape){let s=e.shape[n];t[n]=ns.create(Sl(s))}return new pr({...e._def,shape:()=>t})}else return e instanceof ji?new ji({...e._def,type:Sl(e.element)}):e instanceof ns?ns.create(Sl(e.unwrap())):e instanceof ri?ri.create(Sl(e.unwrap())):e instanceof ni?ni.create(e.items.map(t=>Sl(t))):e}var pr=class e extends Ye{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=nt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==se.object){let u=this._getOrReturnCtx(t);return ee(u,{code:j.invalid_type,expected:se.object,received:u.parsedType}),ke}let{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Bs&&this._def.unknownKeys==="strip"))for(let u in r.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let d=i[u],p=r.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new rs(r,p,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof Bs){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:r.data[d]}});else if(u==="strict")a.length>0&&(ee(r,{code:j.unrecognized_keys,keys:a}),s.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of a){let p=r.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new rs(r,p,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of c){let p=await d.key,h=await d.value;u.push({key:p,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>bn.mergeObjectSync(s,u)):bn.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return pe.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{let r=this._def.errorMap?.(n,s).message??s.defaultError;return n.code==="unrecognized_keys"?{message:pe.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:$e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let s of nt.objectKeys(t))t[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let s of nt.objectKeys(this.shape))t[s]||(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}deepPartial(){return Sl(this)}partial(t){let n={};for(let s of nt.objectKeys(this.shape)){let r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let s of nt.objectKeys(this.shape))if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof ns;)i=i._def.innerType;n[s]=i}return new e({...this._def,shape:()=>n})}keyof(){return hV(nt.objectKeys(this.shape))}};pr.create=(e,t)=>new pr({shape:()=>e,unknownKeys:"strip",catchall:Bs.create(),typeName:$e.ZodObject,...Ge(t)});pr.strictCreate=(e,t)=>new pr({shape:()=>e,unknownKeys:"strict",catchall:Bs.create(),typeName:$e.ZodObject,...Ge(t)});pr.lazycreate=(e,t)=>new pr({shape:e,unknownKeys:"strip",catchall:Bs.create(),typeName:$e.ZodObject,...Ge(t)});var Ac=class extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new dr(a.ctx.common.issues));return ee(n,{code:j.invalid_union,unionErrors:o}),ke}if(n.common.async)return Promise.all(s.map(async i=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i,o=[];for(let c of s){let u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new dr(c));return ee(n,{code:j.invalid_union,unionErrors:a}),ke}}get options(){return this._def.options}};Ac.create=(e,t)=>new Ac({options:e,typeName:$e.ZodUnion,...Ge(t)});var Mi=e=>e instanceof Ec?Mi(e.schema):e instanceof ss?Mi(e.innerType()):e instanceof vc?[e.value]:e instanceof bc?e.options:e instanceof wc?nt.objectValues(e.enum):e instanceof Ic?Mi(e._def.innerType):e instanceof gc?[void 0]:e instanceof mc?[null]:e instanceof ns?[void 0,...Mi(e.unwrap())]:e instanceof ri?[null,...Mi(e.unwrap())]:e instanceof Af||e instanceof Sc?Mi(e.unwrap()):e instanceof Cc?Mi(e._def.innerType):[],Cy=class e extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.object)return ee(n,{code:j.invalid_type,expected:se.object,received:n.parsedType}),ke;let s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ee(n,{code:j.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),ke)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){let r=new Map;for(let i of n){let o=Mi(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new e({typeName:$e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...Ge(s)})}};function Zk(e,t){let n=ti(e),s=ti(t);if(e===t)return{valid:!0,data:e};if(n===se.object&&s===se.object){let r=nt.objectKeys(t),i=nt.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(let a of i){let c=Zk(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===se.array&&s===se.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let i=0;i<e.length;i++){let o=e[i],a=t[i],c=Zk(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===se.date&&s===se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var yc=class extends Ye{_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(wy(i)||wy(o))return ke;let a=Zk(i.value,o.value);return a.valid?((Iy(i)||Iy(o))&&n.dirty(),{status:n.value,value:a.data}):(ee(s,{code:j.invalid_intersection_types}),ke)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};yc.create=(e,t,n)=>new yc({left:e,right:t,typeName:$e.ZodIntersection,...Ge(n)});var ni=class e extends Ye{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==se.array)return ee(s,{code:j.invalid_type,expected:se.array,received:s.parsedType}),ke;if(s.data.length<this._def.items.length)return ee(s,{code:j.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ke;!this._def.rest&&s.data.length>this._def.items.length&&(ee(s,{code:j.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...s.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new rs(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>bn.mergeArray(n,o)):bn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ni.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ni({items:e,typeName:$e.ZodTuple,rest:null,...Ge(t)})};var Sy=class e extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==se.object)return ee(s,{code:j.invalid_type,expected:se.object,received:s.parsedType}),ke;let r=[],i=this._def.keyType,o=this._def.valueType;for(let a in s.data)r.push({key:i._parse(new rs(s,a,s.path,a)),value:o._parse(new rs(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?bn.mergeObjectAsync(n,r):bn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof Ye?new e({keyType:t,valueType:n,typeName:$e.ZodRecord,...Ge(s)}):new e({keyType:Fo.create(),valueType:t,typeName:$e.ZodRecord,...Ge(n)})}},Bl=class extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==se.map)return ee(s,{code:j.invalid_type,expected:se.map,received:s.parsedType}),ke;let r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],u)=>({key:r._parse(new rs(s,a,s.path,[u,"key"])),value:i._parse(new rs(s,c,s.path,[u,"value"]))}));if(s.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return ke;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return ke;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}};Bl.create=(e,t,n)=>new Bl({valueType:t,keyType:e,typeName:$e.ZodMap,...Ge(n)});var xl=class e extends Ye{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==se.set)return ee(s,{code:j.invalid_type,expected:se.set,received:s.parsedType}),ke;let r=this._def;r.minSize!==null&&s.data.size<r.minSize.value&&(ee(s,{code:j.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&s.data.size>r.maxSize.value&&(ee(s,{code:j.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let i=this._def.valueType;function o(c){let u=new Set;for(let d of c){if(d.status==="aborted")return ke;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}let a=[...s.data.values()].map((c,u)=>i._parse(new rs(s,c,s.path,u)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:pe.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:pe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};xl.create=(e,t)=>new xl({valueType:e,minSize:null,maxSize:null,typeName:$e.ZodSet,...Ge(t)});var ky=class e extends Ye{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.function)return ee(n,{code:j.invalid_type,expected:se.function,received:n.parsedType}),ke;function s(a,c){return mf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Il(),Fi].filter(u=>!!u),issueData:{code:j.invalid_arguments,argumentsError:c}})}function r(a,c){return mf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Il(),Fi].filter(u=>!!u),issueData:{code:j.invalid_return_type,returnTypeError:c}})}let i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Lo){let a=this;return Dn(async function(...c){let u=new dr([]),d=await a._def.args.parseAsync(c,i).catch(g=>{throw u.addIssue(s(c,g)),u}),p=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(p,i).catch(g=>{throw u.addIssue(r(p,g)),u})})}else{let a=this;return Dn(function(...c){let u=a._def.args.safeParse(c,i);if(!u.success)throw new dr([s(c,u.error)]);let d=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(d,i);if(!p.success)throw new dr([r(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ni.create(t).rest(Li.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new e({args:t||ni.create([]).rest(Li.create()),returns:n||Li.create(),typeName:$e.ZodFunction,...Ge(s)})}},Ec=class extends Ye{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ec.create=(e,t)=>new Ec({getter:e,typeName:$e.ZodLazy,...Ge(t)});var vc=class extends Ye{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return ee(n,{received:n.data,code:j.invalid_literal,expected:this._def.value}),ke}return{status:"valid",value:t.data}}get value(){return this._def.value}};vc.create=(e,t)=>new vc({value:e,typeName:$e.ZodLiteral,...Ge(t)});function hV(e,t){return new bc({values:e,typeName:$e.ZodEnum,...Ge(t)})}var bc=class e extends Ye{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),s=this._def.values;return ee(n,{expected:nt.joinValues(s),received:n.parsedType,code:j.invalid_type}),ke}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),s=this._def.values;return ee(n,{received:n.data,code:j.invalid_enum_value,options:s}),ke}return Dn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}};bc.create=hV;var wc=class extends Ye{_parse(t){let n=nt.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==se.string&&s.parsedType!==se.number){let r=nt.objectValues(n);return ee(s,{expected:nt.joinValues(r),received:s.parsedType,code:j.invalid_type}),ke}if(this._cache||(this._cache=new Set(nt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=nt.objectValues(n);return ee(s,{received:s.data,code:j.invalid_enum_value,options:r}),ke}return Dn(t.data)}get enum(){return this._def.values}};wc.create=(e,t)=>new wc({values:e,typeName:$e.ZodNativeEnum,...Ge(t)});var Lo=class extends Ye{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.promise&&n.common.async===!1)return ee(n,{code:j.invalid_type,expected:se.promise,received:n.parsedType}),ke;let s=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return Dn(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Lo.create=(e,t)=>new Lo({type:e,typeName:$e.ZodPromise,...Ge(t)});var ss=class extends Ye{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{ee(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){let o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return ke;let c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?ke:c.status==="dirty"?lc(c.value):n.value==="dirty"?lc(c.value):c});{if(n.value==="aborted")return ke;let a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?ke:a.status==="dirty"?lc(a.value):n.value==="dirty"?lc(a.value):a}}if(r.type==="refinement"){let o=a=>{let c=r.refinement(a,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){let a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?ke:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?ke:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){let o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Uo(o))return ke;let a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Uo(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):ke);nt.assertNever(r)}};ss.create=(e,t,n)=>new ss({schema:e,typeName:$e.ZodEffects,effect:t,...Ge(n)});ss.createWithPreprocess=(e,t,n)=>new ss({schema:t,effect:{type:"preprocess",transform:e},typeName:$e.ZodEffects,...Ge(n)});var ns=class extends Ye{_parse(t){return this._getType(t)===se.undefined?Dn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ns.create=(e,t)=>new ns({innerType:e,typeName:$e.ZodOptional,...Ge(t)});var ri=class extends Ye{_parse(t){return this._getType(t)===se.null?Dn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ri.create=(e,t)=>new ri({innerType:e,typeName:$e.ZodNullable,...Ge(t)});var Ic=class extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return n.parsedType===se.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Ic.create=(e,t)=>new Ic({innerType:e,typeName:$e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ge(t)});var Cc=class extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Cl(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new dr(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new dr(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};Cc.create=(e,t)=>new Cc({innerType:e,typeName:$e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ge(t)});var Ql=class extends Ye{_parse(t){if(this._getType(t)!==se.nan){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.nan,received:s.parsedType}),ke}return{status:"valid",value:t.data}}};Ql.create=e=>new Ql({typeName:$e.ZodNaN,...Ge(e)});var Ice=Symbol("zod_brand"),Af=class extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}},yf=class e extends Ye{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?ke:i.status==="dirty"?(n.dirty(),lc(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{let r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?ke:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new e({in:t,out:n,typeName:$e.ZodPipeline})}},Sc=class extends Ye{_parse(t){let n=this._def.innerType._parse(t),s=r=>(Uo(r)&&(r.value=Object.freeze(r.value)),r);return Cl(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}};Sc.create=(e,t)=>new Sc({innerType:e,typeName:$e.ZodReadonly,...Ge(t)});function lV(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function gV(e,t={},n){return e?Mo.create().superRefine((s,r)=>{let i=e(s);if(i instanceof Promise)return i.then(o=>{if(!o){let a=lV(t,s),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}});if(!i){let o=lV(t,s),a=o.fatal??n??!0;r.addIssue({code:"custom",...o,fatal:a})}}):Mo.create()}var Cce={object:pr.lazycreate},$e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})($e||($e={}));var Sce=(e,t={message:`Input not instance of ${e.name}`})=>gV(n=>n instanceof e,t),mV=Fo.create,AV=dc.create,kce=Ql.create,Rce=pc.create,yV=fc.create,Bce=hc.create,xce=kl.create,Qce=gc.create,$ce=mc.create,Tce=Mo.create,_ce=Li.create,Dce=Bs.create,Nce=Rl.create,Pce=ji.create,Oce=pr.create,Uce=pr.strictCreate,Fce=Ac.create,Mce=Cy.create,Lce=yc.create,jce=ni.create,Vce=Sy.create,Gce=Bl.create,zce=xl.create,Hce=ky.create,qce=Ec.create,Jce=vc.create,Wce=bc.create,Yce=wc.create,Zce=Lo.create,Kce=ss.create,Xce=ns.create,eue=ri.create,tue=ss.createWithPreprocess,nue=yf.create,rue=()=>mV().optional(),sue=()=>AV().optional(),iue=()=>yV().optional(),oue={string:(e=>Fo.create({...e,coerce:!0})),number:(e=>dc.create({...e,coerce:!0})),boolean:(e=>fc.create({...e,coerce:!0})),bigint:(e=>pc.create({...e,coerce:!0})),date:(e=>hc.create({...e,coerce:!0}))};var aue=ke;var EV=["playwright","pytest","robot","junit","vitest","jest","mocha","go","rspec","jasmine"];var vV="skyramp_session_storage.json";var Kk;(function(e){e.PYTHON="python",e.TYPESCRIPT="typescript",e.JAVASCRIPT="javascript",e.JAVA="java"})(Kk||(Kk={}));var si;(function(e){e.SMOKE="smoke",e.FUZZ="fuzz",e.CONTRACT="contract",e.LOAD="load",e.INTEGRATION="integration",e.E2E="e2e",e.UI="ui",e.UNIT="unit",e.UNKNOWN="unknown"})(si||(si={}));var AQe=[si.CONTRACT,si.INTEGRATION,si.E2E,si.UI];var bV;(function(e){e.Rest="rest",e.Grpc="grpc",e.Kafka="kafka"})(bV||(bV={}));var Ry;(function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e.OPTIONS="OPTIONS"})(Ry||(Ry={}));var Ef;(function(e){e.LOCAL="local",e.DOCKER="docker",e.KUBERNETES="k8s"})(Ef||(Ef={}));var cue=we.nativeEnum(Ef),uue=we.preprocess(e=>e==="kubernetes"?Ef.KUBERNETES:e,cue);var lue=we.object({language:we.nativeEnum(Kk).describe("Programming language for the generated test (default: python). Must be one of: python, typescript, javascript, java"),framework:we.string().describe(`Testing framework to use. Supported: ${EV.join(", ")} (e.g. pytest for python, playwright/vitest/jest for js/ts, junit for java).`)}),wV=we.object({...lue.shape,deployDashboard:we.boolean().default(!1).describe("Whether to deploy the Skyramp dashboard for test monitoring"),runtime:uue.default(Ef.LOCAL).describe("Runtime environment (local, docker, or k8s; accepts kubernetes as an alias)"),dockerNetwork:we.string().default("").describe("Docker network name to use for containerized testing"),dockerWorkerPort:we.number().int().min(0).max(65535).default(0).describe("Port number for the Docker worker service"),k8sNamespace:we.string().default("").describe("Kubernetes namespace for deployment"),k8sConfig:we.string().default("").describe("Path to Kubernetes configuration file"),k8sContext:we.string().default("").describe("Kubernetes context to use"),authHeader:we.string().default("").describe("Name of the HTTP header that carries the auth credential. Common values: 'Authorization' (Bearer/Basic/Token auth), 'X-Api-Key', 'X-Auth-Token', 'Cookie'. Other accepted values: 'X-Access-Token', 'X-OAuth-Token', 'X-Client-ID', 'X-Client-Secret', 'X-Client-Token', 'X-GitHub-Token', 'X-Firebase-AppCheck', 'Proxy-Authorization', 'Fastly-Key', 'Heroku-Bearer'. Pass empty string to document an unauthenticated endpoint in the generated test's assertions. This is the header KEY name (e.g., 'X-Api-Key'), NOT the token value."),authScheme:we.string().default("").describe("Only for Authorization headers. The literal prefix before the token (e.g., 'Bearer' produces 'Authorization: Bearer <token>'). Common values: 'Bearer', 'Basic', 'Token'. If the API sends raw tokens with no prefix (e.g., 'Authorization: eyJ...'), leave empty or omit. Ignored when authHeader is not 'Authorization'."),insecure:we.boolean().default(!1).describe("Whether to allow insecure SSL connections for HTTPS endpoints"),output:we.string().optional().refine(e=>!e||e===""?!0:[".py",".ts",".js",".java"].some(n=>e.endsWith(n)),{message:"Output file must have one of these extensions: .py, .ts, .js, .java"}).describe("Name of the output test file. For Playwright, name the file the way the repository names its tests: read the test files already in outputDir and match their spelling. Use *.test.ts where they use it, *.spec.ts otherwise (e.g. contract_math_add.spec.ts, fuzz_orders.test.ts). For other frameworks (pytest, junit), standard extensions are fine (.py, .java). Optional \u2014 when omitted, Skyramp generates a default name."),outputDir:we.string().describe("MUST be absolute path to the directory where test files will be generated. If not provided, the CURRENT WORKING DIRECTORY will be used WITHOUT ANY SUBDIRECTORIES"),force:we.boolean().default(!0).describe("Whether to overwrite existing files in the output directory"),mockPort:we.number().int().min(0).max(65535).default(0).describe("Port number for the mock server"),optionalFields:we.boolean().default(!1).describe("Whether to include optional fields in the generated test/mock"),prompt:we.string().describe("The prompt user provided to generate the test")}),yQe=we.object({playwrightInput:we.string().describe("MUST be absolute path to the playwright input file like /path/to/playwright-ui-test.zip and MUST be a zip file captured using start_trace_collection tool"),playwrightStoragePath:we.string().optional().describe("Path to LOAD existing playwright session storage for trace collection with playwright enabled. THE PATH MUST BE AN ABSOLUTE PATH LIKE /Users/<path>/<filename>.json"),playwrightSaveStoragePath:we.string().optional().describe(`Path to SAVE Playwright session storage after trace collection. Omit this argument to use the default \u2014 \`${vV}\` resolved against the active outputDir, which produces an absolute path like '/abs/outputDir/${vV}'. SAVES authentication state (cookies, localStorage, sessionStorage) when the browser closes. To LOAD existing auth state, use playwrightStoragePath instead. Can be a bare filename (joined with outputDir), a relative path, or an absolute path.`),playwrightViewportSize:we.union([we.enum(["","hd","full-hd","2k"]),we.string().regex(/^\d+,\d+$/,"Custom viewport must be 'WIDTH,HEIGHT' format (e.g., '1920,1080')")]).default("").describe("Viewport size for playwright browser. THE VALUE MUST BE IN THE FORMAT ['', 'hd', 'full-hd', '2k', 'x,y' e.g. '1920,1080' for 1920x1080 resolution]. DEFAULT VALUE IS ''. If set to '', the browser will use its default viewport size."),browser:we.enum(["chromium","firefox","webkit"]).default("chromium").describe("Browser to use for Playwright trace collection. Supported browsers: 'chromium' (default), 'firefox', 'webkit'. Choose based on your testing requirements and target browser compatibility."),device:we.string().default("").describe("Device to emulate for Playwright trace collection. Supported devices include: 'iPhone 13', 'iPhone 13 Pro', 'Pixel 5', 'Galaxy S9+', 'iPad Pro', etc. Leave empty for no device emulation (desktop). Use specific device names for mobile/tablet testing.")}),EQe=we.object({trace:we.string().describe("Absolute path to the trace file in JSON format (e.g., /path/to/trace.json). Must use .json extension only. Do not use .jsonl files."),include:we.array(we.string()).default([]).describe("List of endpoints or patterns to include in test generation."),exclude:we.array(we.string()).default([]).describe("List of endpoints or patterns to exclude from test generation."),...wV.shape}),vQe={endpointURL:we.string().describe("The full endpoint URL to test including base URL and path (e.g., https://demoshop.skyramp.dev/api/v1/products). MUST include both the base URL and the endpoint path \u2014 never just the base URL alone."),method:we.union([we.nativeEnum(Ry),we.literal("")]).default("").describe('HTTP method to use. DEFAULT: Use empty string ("") to test ALL available methods from OpenAPI schema (recommended). Only specify a specific method (GET, POST, PUT, DELETE, etc.) if user explicitly requests testing a single method only.'),apiSchema:we.string().default("").describe("MUST be absolute path(/path/to/openapi.json) to the OpenAPI/Swagger schema file or a URL to the OpenAPI/Swagger schema file(e.g. https://demoshop.skyramp.dev/openapi.json). DO NOT TRY TO ASSUME THE OPENAPI SCHEMA IF NOT PROVIDED. NOTE TO AI ASSISTANTS: You do not need to read the contents of this file - simply pass the file path as the backend will read and process it."),pathParams:we.string().default("").describe("Comma-separated path parameter values in the form 'key=value,key2=value2' (e.g., 'id=1,name=John'). DO NOT populate this field unless the user has explicitly provided path parameter values. For contract tests, parent path parameters are automatically handled via the parent provisioning mechanism (parentRequestData) \u2014 do NOT invent or guess values for those here. Only supply this field if the user explicitly states specific path parameter values to use."),queryParams:we.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for URL query parameters. Workspace-configured api.defaultQueryParams (if set) are merged in automatically, with any api.queryParamOverrides entry whose pathPattern matches this endpoint layered on top \u2014 no need to repeat them here. An explicit value for the same key here overrides both."),formParams:we.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for form data parameters"),requestData:we.string().default("").refine(e=>{if(!e||e===""||e.startsWith("@"))return!0;try{return JSON.parse(e),!0}catch{}let t=e.trim();return!!(t.startsWith("---")||/^\w[\w\s]*:/.test(t)||t.startsWith("-"))},{message:"requestData must be valid JSON, YAML, or an absolute file path prefixed with '@'. Received what appears to be plain text. Provide the actual request body as a JSON object."}).describe("Sample request body data, provided either as an inline JSON/YAML string or as an absolute file path prefixed with '@' (e.g., @/absolute/path/to/file). MUST be valid JSON or YAML \u2014 do NOT pass natural language descriptions."),responseStatusCode:we.string().default("").refine(e=>!e||/^[1-5]\d{2}$/.test(e),{message:"Must be a valid HTTP status code in 100-599 (e.g., '200', '404') or empty string"}).describe("Expected HTTP response status code (e.g., '200', '201', '404'). DO NOT ASSUME STATUS CODE IF NOT PROVIDED"),...wV.shape},bQe=we.object({codeReuse:we.boolean().default(!1).describe("Reuse existing code in the generated test \u2014 consolidates helper functions shared with sibling Skyramp-generated tests into a SkyrampUtils file; for TS/JS Playwright tests with POM reuse enabled it instead refactors the test to use the repo's existing Page Object Model"),modularizeCode:we.boolean().default(!1).describe("Whether to modularize the code")}),wQe=[si.INTEGRATION,si.CONTRACT,si.UI];var By;(function(e){e.Bug="bug",e.Lint="lint",e.Type="type",e.Config="config"})(By||(By={}));var xy;(function(e){e.NotMapped="not-mapped",e.DemotedByVerify="demoted-by-verify"})(xy||(xy={}));var Qy;(function(e){e.Passed="passed",e.Failed="failed",e.SkippedNoPom="skipped-no-pom"})(Qy||(Qy={}));var Xk;(function(e){e.Passed="passed",e.Failed="failed",e.NoUtilsFile="no-utils-file"})(Xk||(Xk={}));_n();var $y=e=>`${e} POM call${e===1?"":"s"}`,IV=(e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,Ty={listSeparator:", ",testRecommendationsImplementedHeader:(e,t)=>`\u{1F4A1} Test Recommendations Implemented (${e} test${e===1?"":"s"}${t>e?`, ${t} cases`:""})`,testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:e=>`${$y(e)} reused and verified`,reusedThenVerified:(e,t)=>`${$y(e)} reused, ${t} of them verified`,reused:e=>`${$y(e)} reused`,verified:e=>`${$y(e)} verified`,unresolved:e=>`${e} not resolvable to POM source (informational, not declines)`,candidates:e=>`${e} candidate POM file${e===1?"":"s"} detected`,verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:e=>`kept inline: ${e}`,gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:e=>`\u2705 Test Maintenance (${e})`,maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:e=>`\u{1F9EA} Test Results (${e})`,columnVideo:"Video",videoDownloadLink:e=>`[\u{1F4F9} download](${e})`,videosArtifactFallback:e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F Issues Found (${e})`,configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:e=>e?"passed against the running app":"passed",notRun:e=>e?"not run against a live app this run":"not run this run",failedBug:e=>e?"failed against the running app":"failed",failedTest:e=>`failed \u2014 the test is at fault, not the app (${e})`,executedOf:(e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,noneExecuted:e=>e?"; none were executed against a live app this run.":"; none were executed this run.",staleResult:"From a run before this file's last change, not of the delivered test:"},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",missingSecret:e=>`The app could not be started this run: it needs ${e}, which this run had no value for. Nothing was tested against a live app.`,testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",findingsNotVerified:e=>`No test result confirms or refutes the suspected defects at ${e}.`,failedAlone:e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,missingCaseResults:(e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},recipeDrift:"The recorded way to start the app was out of date and had to be corrected before it would come up.",recipeNotSaved:"The repository had no saved way to start the app, so Testbot worked it out from the repository.",mockedDependency:e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,finalizeNotReady:e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,ciUnconfirmed:e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,ciUnconfirmedAbsent:e=>`Testbot could not confirm that the repo's CI leaves out ${e}, which need services it does not start: check that CI does not run them.`,ciNotIntegrated:e=>`Not yet CI-integrated: ${e} need services the repo's CI does not start, so Testbot put them where CI does not run them. The CI notes say what to change to run them in CI.`,ciUnprovisioned:e=>`The repo's CI runs ${e} without starting what they need, so CI will fail on them until it starts those services.`,ciWithheld:e=>`Not in the tests PR: the repo's CI would run ${e} without starting what they need, which would fail CI. The CI notes say what to change to run them.`,ciResultsUnread:e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,browserSuiteReadOnly:(e,t)=>`${e} has a browser suite, but this run could not write there, so its ui tests are in ${t}.`,sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,lintNotRun:e=>`The repo's linter did not check the test files, so they were delivered unlinted: ${e}.`,analysisUnverified:e=>`Part of the change analysis could not be verified (${e} unresolved check${e===1?"":"s"}); the tests were planned treating those claims as unconfirmed.`,unitTestsNotRun:e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,componentsNotTested:e=>`Not tested: changed parts of the code the plan did not test. ${e}`,componentsWithoutReason:e=>`The plan gave no reason for leaving out: ${e}.`,targetNotesDeviation:e=>`Tests were not put where the Target notes say tests go: ${e}`,testSettingsDiffer:e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,stageSalvaged:(e,t)=>t.length===1?`The ${e} step kept what it had produced although its ${t[0]} check still failed after a repair, so treat that output as unconfirmed by it.`:`The ${e} step kept what it had produced although ${t.length} of its checks (${t.join(", ")}) still failed after a repair, so treat that output as unconfirmed by them.`,downstreamNotChecked:e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,browserBuildNotDeclared:(e,t,n)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${n}\` there.`,resultsNotOfDeliveredTests:e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,videoMissing:e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,testsCouldNotRunHere:(e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,modelProviderDenied:(e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,stageInterruptedByProvider:(e,t)=>`${t}, the model provider, interrupted the ${e} step. Testbot kept what that step had produced.`,planInterruptedByProvider:(e,t)=>`${e}, the model provider, interrupted planning. Testbot kept the plan it had and reports the test results it obtained.`+(t?" Please try again later.":""),modelProviderUnavailable:(e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`,dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:e=>`The agent's browser sent sign-in or sign-up requests: ${e}. The data-safety guard lets these through and does not delete what they create, for example a new account.`,dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:(e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,dataSafetyIsolationEnforced:()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.",dataSafetyIsolationRefused:"Some checks could not run with the shared-environment protection in place. Testbot did not run them without it.",dataSafetyProxyAuthCreates:e=>`The plan probes or the tests sent sign-in or sign-up requests: ${e}. The data-safety proxy lets these through and does not track what they create, for example a new account.`,dataSafetyGuardedProbes:"plan probes",dataSafetyGuardedTests:"test runs",dataSafetyAnd:" and ",dataSafetyCleanupConfirmed:"Testbot ran each test's declared cleanup, and each succeeded.",dataSafetyLeftRecords:e=>`These tests declare records they cannot delete from the shared environment: ${e}.`,dataSafetyCleanupFailed:e=>`The cleanup of ${e} failed: what they created may still be in the shared environment.`,dataSafetyCleanupUnknown:e=>`The cleanup of ${e} is not known: Testbot did not check their cleanup.`},isolationReport:{rationale:"Testbot could not run this validation inside the shared-environment isolation it requires, so it did not validate the change.",gap:e=>`Shared-environment isolation unavailable: ${e}`,nextStep:"Fix what the gap names, then run the validation again.",nextStepPackageSource:"Run the validation again later, when the Ubuntu package source is available again. Nothing on this host or in the repository needs a change."},nextSteps:{componentMismatch:(e,t,n,s)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${s}, the commit this run validates.`,componentUnverified:(e,t,n,s)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${s}, the commit this run validates: it reports ${n}.`,componentUnread:(e,t,n)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${n}, the commit this run validates: it has no record of which commit that component runs.`,deployCommit:(e,t)=>`Deploy ${t} of ${e} to the Test Environment and run Testbot again: until it runs that commit, tests there do not validate this change.`,addSecret:(e,t)=>`Add ${t?"a secret":"secrets"} named ${e} on the workflow host, as a GitHub Actions secret or, on Azure DevOps, a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library. Then add ${t?"it":"them"} under Credentials on the Target's Setup page, and run Testbot again: a run's workflow passes Testbot only the Target's credentials, each from the workflow host's secret it is mapped to, and the app cannot start without ${t?"it":"them"}. Testbot does not make up a value.`},providerOutageHeadline:(e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,providerOutageActionStatusPage:e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,providerRateLimitHeadline:e=>`Testbot was rate-limited by ${e} (HTTP 429).`,providerRateLimitAction:"Wait for the limit to reset, then re-run this workflow from its run page in the Actions tab. If this repeats, raise the rate limit on the credential this workflow uses or run Testbot on fewer pull requests at once.",providerUsageLimitHeadline:e=>`The account behind ${e} has reached its usage limit.`,providerUsageLimitAction:"Raise the spend or token cap on the account behind this workflow's credential, then re-run this workflow from its run page in the Actions tab.",providerAuthExpiredHeadline:e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,providerAuthExpiredAction:"The credential is issued with a fixed lifetime, so a longer run can outlive it. Re-run this workflow from its run page in the Actions tab. If runs on this repository regularly last longer than that lifetime, issue the credential per job or split the run so each job stays inside it.",providerTimeoutHeadline:e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:e=>`Tests for source pull request ${e}`,validatedTogether:e=>`Pull requests validated together: ${e}`,requestedByPerson:e=>`Requested by ${e}`,requestedByPolicy:e=>`Started by the Validation Policy ${e}`,notTranslated:{"no-time":"> \u26A0\uFE0F This report is in English: no time was left to translate it.",failed:"> \u26A0\uFE0F This report is in English: the translation failed."},noLiveApp:e=>`> \u26A0\uFE0F **No live app (SUT) was available this run** \u2014 the ${e} test(s) below were **not executed** (there was no app to run them against). Run them against a running app to confirm they pass (and that any repro test fails as intended).`,unitTestsInFile:(e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:(e,t,n="")=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config.${n?` This run added it, with ${n}, installed in that package only.`:""} Run it with \`${t}\` while the app is running; to run it on every pull request, add that command to a CI job that has the app running.`,appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:(e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:(e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,testResultsHeader:"\u{1F9EA} Test Results",resultsTableHeader:"| Test ID | Test Type | Endpoint | Status | Details |",unitResultsTableHeader:"| Test ID | Test Type | Code under test | Test | Cases | Status | Details |",casesPassed:(e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:(e,t,n,s)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${s} executed)`,coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:(e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,requirementsTableHeader:"| Requirement | Clause | Tests | Result |",requirementsSummaryTableHeader:"| Requirement | Clauses passing | Not passing |",clauseStatuses:{},regressionGuard:" (regression guard)",caveatsHeader:"### \u26A0\uFE0F What This Run Could Not Prove",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F Run timed out \u2014 the results below are partial.",stopReasons:{},publishFailures:{},commitHook:e=>e?`${e} hook`:"commit hook",commitRefusedByHook:(e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,commitHookCouldNotRun:(e,t)=>`Your repository's ${e} could not run, so no Testbot PR was created: a command it calls is not installed on the runner. Hook error: \`${t}\`.`,maintenanceActions:{},stoppedEarly:(e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,viewInSkyramp:e=>` [View in Skyramp](${e})`,testsPr:{summaryHeader:"### Summary",targets:"The tests target:",moreItems:e=>`and ${e} more`,counts:(e,t)=>`${IV(e,"new")} and ${IV(t,"maintained")}.`,types:e=>`Test types: ${e}.`,statusHeader:"### Validation status",noChange:"\u2139\uFE0F Nothing changed since the baseline.",noTestRan:"No test ran, and no existing evidence was accepted.",noLiveApp:"No live app (SUT) was available, so the tests were not run.",resultCounts:(e,t,n)=>`Test results: ${e} passed, ${t} failed, ${n} not run.`,limitations:"Important failures and limitations:",verdict:e=>`The run's verdict is in [Run details](${e}).`,runningHeader:"### Running the tests",environment:e=>`The tests read these environment variables, which the job that runs them must set: ${e}.`,filesChanged:"Review each test in the **Files changed** tab."},descriptionCut:(e,t,n)=>`_\u2026 The rest is left out${t===void 0?", with more test results":t?`, with ${t} more test result${t===1?"":"s"}`:""}: Azure DevOps takes at most ${e} characters.${n?` [Full report](${n})`:""}_`,testsReplaced:(e,t,n)=>[t?`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}), commit \`${t}\`.`:`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}).`,n?`The tests of [the earlier run](${n}) are superseded.`:"The tests an earlier run wrote here are superseded."].join(" "),setupRunEnds:{finished:"Setup run finished. Skyramp is checking the result.",failed:"Setup run failed.",timedOut:"Setup run ran out of time.",cancelledInSkyramp:"Setup run was cancelled in Skyramp.",stoppedToResume:"Setup run stopped. Resume it in Skyramp."},appUnreachable:e=>`Unable to contact the mothership ${e}. Please try again later.`,couldNotStart:e=>`Skyramp Testbot could not start: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F This report was assembled automatically after the write-up step failed its checks; ${e} check(s) remain unmet \u2014 see the run log for details.`,testbotPrLine:(e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,viewRun:e=>`_[View run](${e})_`,testsPrNotOpened:(e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,testsNotDelivered:e=>`The tests could not be delivered: ${e}`,testsPinnedNotDelivered:(e,t,n)=>`${e}: ${t} ${t===1?"test":"tests"} written, ${n} maintained. The repository is pinned to a commit, so these changes were not delivered.`,testsNotPushed:(e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,testsPrRetargeted:e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:e=>`The tests were committed but no PR was opened: ${e}.`,testsHeldBack:(e,t,n,s)=>`${e?"Delivery partial":"Delivery failed: no tests were delivered"}. These test files need a pull request that is not on ${t} yet, so they were held back: ${n}. Their changes are in the run artifact's ${s}.`,testsNotProposed:e=>`The tests were not proposed in a pull request: ${e}.`}};var CV={testRecommendationsImplementedHeader:(e,t)=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08\u30C6\u30B9\u30C8 ${e}\u4EF6${t>e?`\u3001\u30B1\u30FC\u30B9 ${t}\u4EF6`:""}\uFF09`,listSeparator:"\u3001",testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,reusedThenVerified:(e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,reused:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,verified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,unresolved:e=>`${e} \u4EF6\u306F POM \u30BD\u30FC\u30B9\u307E\u3067\u89E3\u6C7A\u3067\u304D\u305A\uFF08\u53C2\u8003\u60C5\u5831\u3067\u3042\u308A\u3001\u9664\u5916\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09`,candidates:e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,maintenanceTableHeader:"| \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30D5\u30A1\u30A4\u30EB | \u5909\u66F4\u5185\u5BB9 | \u5909\u66F4\u524D | \u5909\u66F4\u5F8C |",testResultsHeader:e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,videosArtifactFallback:e=>`\u{1F4F9} \u9332\u753B\u3055\u308C\u305F UI \u30C6\u30B9\u30C8\u30D3\u30C7\u30AA: [\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u304B\u3089\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,configErrorsHeader:"\u2699\uFE0F \u8A2D\u5B9A\u30A8\u30E9\u30FC",nextStepsHeader:"### \u{1F4A1} \u6B21\u306E\u30B9\u30C6\u30C3\u30D7",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",rows:{passed:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u6210\u529F\u3057\u307E\u3057\u305F":"\u6210\u529F\u3057\u307E\u3057\u305F",notRun:e=>e?"\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F":"\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",failedBug:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5931\u6557\u3057\u307E\u3057\u305F":"\u5931\u6557\u3057\u307E\u3057\u305F",failedTest:e=>`\u5931\u6557\u3057\u307E\u3057\u305F \u2014 \u30A2\u30D7\u30EA\u3067\u306F\u306A\u304F\u30C6\u30B9\u30C8\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059\uFF08${e}\uFF09`,executedOf:(e,t)=>t?`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`:`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`,noneExecuted:e=>e?"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002":"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",staleResult:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u6700\u5F8C\u306E\u5909\u66F4\u3088\u308A\u524D\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093:"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",missingSecret:e=>`\u3053\u306E\u5B9F\u884C\u3067\u306F\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8D77\u52D5\u306B\u306F ${e} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u306B\u306F\u5024\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",findingsNotVerified:e=>`\u6B21\u306E\u7B87\u6240\u306E\u7591\u308F\u3057\u3044\u6B20\u9665\u3092\u78BA\u8A8D\u307E\u305F\u306F\u5426\u5B9A\u3059\u308B\u30C6\u30B9\u30C8\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,failedAlone:e=>`\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306F\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u306F\u6210\u529F\u3057\u307E\u3057\u305F\u304C\u3001Testbot \u304C\u5358\u72EC\u3067\u5B9F\u884C\u3059\u308B\u3068\u5931\u6557\u3057\u305F\u305F\u3081\u3001\u7D50\u679C\u306F\u78BA\u5B9A\u3057\u3066\u3044\u307E\u305B\u3093: ${e}\u3002`,missingCaseResults:(e,t)=>{let n=t?` \u6700\u65B0\u306E\u5B9F\u884C: ${t}`:"";return`\u4F5C\u6210\u3057\u305F\u30B1\u30FC\u30B9\u306E\u6700\u7D42\u7D50\u679C\u304C\u8A18\u9332\u3055\u308C\u3066\u3044\u307E\u305B\u3093: ${e}\u3002${n}`},recipeDrift:"\u8A18\u9332\u3055\u308C\u3066\u3044\u305F\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u53E4\u304F\u306A\u3063\u3066\u304A\u308A\u3001\u8D77\u52D5\u524D\u306B\u4FEE\u6B63\u304C\u5FC5\u8981\u3067\u3057\u305F\u3002",recipeNotSaved:"\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u4FDD\u5B58\u3055\u308C\u3066\u3044\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u8D77\u52D5\u65B9\u6CD5\u3092\u5224\u65AD\u3057\u307E\u3057\u305F\u3002",mockedDependency:e=>`${e} \u306F\u5B9F\u969B\u306B\u30C7\u30D7\u30ED\u30A4\u3055\u308C\u305A\u30E2\u30C3\u30AF\u5316\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u308C\u306B\u5BFE\u3059\u308B\u6210\u529F\u7D50\u679C\u306F\u8A3C\u660E\u306B\u306F\u306A\u308A\u307E\u305B\u3093\u3002`,finalizeNotReady:e=>`\u30C6\u30B9\u30C8\u306F\u73FE\u72B6\u3067\u306F\u30DE\u30FC\u30B8\u53EF\u80FD\u306A\u72B6\u614B\u3067\u306F\u3042\u308A\u307E\u305B\u3093${e?`: ${e}`:"\u3002"}`,ciNotCovered:"\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B CI \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u306A\u3044\u305F\u3081\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3002",ciNotCoveredBecause:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u4E00\u90E8\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093: ${e}`,ciUnconfirmedAbsent:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u5B9F\u884C\u3057\u306A\u3044\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u308C\u3089\u306F CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u306A\u3044\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,ciUnconfirmed:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u53CE\u96C6\u3059\u308B\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u308B\u304B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,ciNotIntegrated:e=>`CI \u672A\u7D71\u5408: ${e} \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u3001Testbot \u306F CI \u304C\u5B9F\u884C\u3057\u306A\u3044\u5834\u6240\u306B\u914D\u7F6E\u3057\u307E\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,ciWithheld:e=>`\u30C6\u30B9\u30C8 PR \u306B\u542B\u3081\u3066\u3044\u307E\u305B\u3093: \u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001CI \u304C\u5931\u6557\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,ciUnprovisioned:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u3059\u308B\u307E\u3067 CI \u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3067\u5931\u6557\u3057\u307E\u3059\u3002`,ciResultsUnread:e=>`Testbot \u306F ${e} \u306E CI \u7D50\u679C\u3092\u8AAD\u307F\u53D6\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u305D\u3053\u3067\u306E CI \u7D50\u679C\u306F\u8A3C\u62E0\u3068\u3057\u3066\u6271\u308F\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,browserSuiteReadOnly:(e,t)=>`${e} \u306B\u306F\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u30B9\u30A4\u30FC\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u3067\u306F\u66F8\u304D\u8FBC\u3081\u306A\u3044\u305F\u3081\u3001UI \u30C6\u30B9\u30C8\u306F ${t} \u306B\u3042\u308A\u307E\u3059\u3002`,sutNotRequired:"\u30A2\u30D7\u30EA\u306F\u8D77\u52D5\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u691C\u8A3C\u30C8\u30EA\u30A2\u30FC\u30B8\u306B\u3088\u308A\u3001\u3053\u306E\u5909\u66F4\u3067\u691C\u8A3C\u304C\u5FC5\u8981\u306A\u30C7\u30D7\u30ED\u30A4\u5F8C\u306E\u632F\u308B\u821E\u3044\u306F\u306A\u3044\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",lintNotCovered:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F ${e} \u3092\u30C1\u30A7\u30C3\u30AF\u3057\u307E\u305B\u3093\u3002\u30B9\u30BF\u30A4\u30EB\u3084\u578B\u306E\u554F\u984C\u304C\u81EA\u52D5\u7684\u306B\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3002`,lintNotRun:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u3092\u30C1\u30A7\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30EA\u30F3\u30BF\u30FC\u3092\u901A\u3055\u305A\u306B\u63D0\u51FA\u3057\u307E\u3057\u305F: ${e}\u3002`,analysisUnverified:e=>`\u5909\u66F4\u306E\u5206\u6790\u306E\u4E00\u90E8\u3092\u691C\u8A3C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u672A\u89E3\u6C7A\u306E\u30C1\u30A7\u30C3\u30AF ${e} \u4EF6\uFF09\u3002\u8A72\u5F53\u3059\u308B\u4E3B\u5F35\u306F\u672A\u78BA\u8A8D\u3068\u3057\u3066\u6271\u3044\u3001\u30C6\u30B9\u30C8\u3092\u8A08\u753B\u3057\u307E\u3057\u305F\u3002`,unitTestsNotRun:e=>`Testbot \u306F\u9078\u629E\u3057\u305F\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u3053\u306B\u3042\u308B\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F Testbot \u81EA\u8EAB\u306E\u518D\u5B9F\u884C\u306B\u3088\u308B\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}`,componentsNotTested:e=>`\u672A\u30C6\u30B9\u30C8: \u8A08\u753B\u304C\u30C6\u30B9\u30C8\u5BFE\u8C61\u306B\u3057\u306A\u304B\u3063\u305F\u3001\u5909\u66F4\u3055\u308C\u305F\u30B3\u30FC\u30C9\u306E\u90E8\u5206\u3067\u3059\u3002${e}`,componentsWithoutReason:e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,targetNotesDeviation:e=>`Target \u306E\u30E1\u30E2\u304C\u6307\u5B9A\u3059\u308B\u5834\u6240\u306B\u30C6\u30B9\u30C8\u3092\u7F6E\u3044\u3066\u3044\u307E\u305B\u3093: ${e}`,testSettingsDiffer:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,stageSalvaged:(e,t)=>t.length===1?`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t[0]} \u306E\u30C1\u30A7\u30C3\u30AF\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`:`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t.length} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\uFF08${t.join("\u3001")}\uFF09\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u308C\u3089\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`,downstreamNotChecked:e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,browserBuildNotDeclared:(e,t,n)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${n}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,resultsNotOfDeliveredTests:e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F\u6700\u5F8C\u306E\u5B9F\u884C\u306E\u5F8C\u306B\u5909\u66F4\u3055\u308C\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306F\u4EE5\u524D\u306E\u7248\u306E\u3082\u306E\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,videoMissing:e=>`\u6B21\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306F\u52D5\u753B\u304C\u8A18\u9332\u3055\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306B\u306F\u78BA\u8A8D\u3067\u304D\u308B\u52D5\u753B\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,testsCouldNotRunHere:(e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,modelProviderDenied:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,stageInterruptedByProvider:(e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${t} \u306B\u3088\u308A ${e} \u306E\u6BB5\u968E\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u305D\u306E\u6BB5\u968E\u3067\u4F5C\u6210\u6E08\u307F\u306E\u5185\u5BB9\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002`,planInterruptedByProvider:(e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u306B\u3088\u308A\u8A08\u753B\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u4F5C\u6210\u6E08\u307F\u306E\u8A08\u753B\u3092\u6B8B\u3057\u3001\u5F97\u3089\u308C\u305F\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u5831\u544A\u3057\u307E\u3059\u3002`+(t?"\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002":""),modelProviderUnavailable:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:e=>`\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u30D6\u30E9\u30A6\u30B6\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u524A\u9664\u3057\u307E\u305B\u3093\u3002`,dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:(e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,dataSafetyIsolationEnforced:()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002",dataSafetyIsolationRefused:"\u4E00\u90E8\u306E\u30C1\u30A7\u30C3\u30AF\u306F\u3001\u5171\u6709\u74B0\u5883\u306E\u4FDD\u8B77\u3092\u6709\u52B9\u306B\u3057\u305F\u307E\u307E\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F\u3001\u4FDD\u8B77\u306A\u3057\u3067\u305D\u308C\u3089\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyProxyAuthCreates:e=>`\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6\u307E\u305F\u306F\u30C6\u30B9\u30C8\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u8FFD\u8DE1\u3057\u307E\u305B\u3093\u3002`,dataSafetyGuardedProbes:"\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6",dataSafetyGuardedTests:"\u30C6\u30B9\u30C8\u306E\u5B9F\u884C",dataSafetyAnd:"\u3068",dataSafetyCleanupConfirmed:"Testbot \u306F\u5404\u30C6\u30B9\u30C8\u304C\u5BA3\u8A00\u3057\u305F\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u5B9F\u884C\u3057\u3001\u3059\u3079\u3066\u6210\u529F\u3057\u307E\u3057\u305F\u3002",dataSafetyLeftRecords:e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u304B\u3089\u524A\u9664\u3067\u304D\u306A\u3044\u30EC\u30B3\u30FC\u30C9\u3092\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059: ${e}\u3002`,dataSafetyCleanupFailed:e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u4F5C\u6210\u3057\u305F\u3082\u306E\u304C\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3063\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`,dataSafetyCleanupUnknown:e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u4E0D\u660E\u3067\u3059\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u305B\u3093\u3002`},isolationReport:{rationale:"Testbot \u306F\u3001\u5FC5\u8981\u306A\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u306E\u4E2D\u3067\u3053\u306E\u691C\u8A3C\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5909\u66F4\u3092\u691C\u8A3C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",gap:e=>`\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093: ${e}`,nextStep:"\u30AE\u30E3\u30C3\u30D7\u306B\u8A18\u8F09\u3055\u308C\u305F\u554F\u984C\u3092\u89E3\u6D88\u3057\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",nextStepPackageSource:"Ubuntu \u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u914D\u5E03\u5143\u304C\u518D\u3073\u5229\u7528\u53EF\u80FD\u306B\u306A\u3063\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30DB\u30B9\u30C8\u3084\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},nextSteps:{componentMismatch:(e,t,n,s)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u306F ${n} \u3092\u5B9F\u884C\u3057\u3066\u304A\u308A\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${s} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,componentUnverified:(e,t,n,s)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${s} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u3055\u308C\u305F\u30B3\u30DF\u30C3\u30C8: ${n}\u3002`,componentUnread:(e,t,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u5B9F\u884C\u3057\u3066\u3044\u308B\u30B3\u30DF\u30C3\u30C8\u306E\u8A18\u9332\u304C\u3042\u308A\u307E\u305B\u3093\u3002`,deployCommit:(e,t)=>`${e} \u306E ${t} \u3092 Test Environment \u306B\u30C7\u30D7\u30ED\u30A4\u3057\u3066\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u305D\u306E\u30B3\u30DF\u30C3\u30C8\u304C\u5B9F\u884C\u3055\u308C\u308B\u307E\u3067\u3001\u305D\u3053\u3067\u306E\u30C6\u30B9\u30C8\u306F\u3053\u306E\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306A\u308A\u307E\u305B\u3093\u3002`,addSecret:(e,t)=>`\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306B ${e} \u3068\u3044\u3046\u540D\u524D\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\uFF08GitHub Actions \u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3001\u307E\u305F\u306F Azure DevOps \u3067\u306F\u30DB\u30B9\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u306E Pipelines \u203A Library \u306B\u3042\u308B skyramp-testbot \u5909\u6570\u30B0\u30EB\u30FC\u30D7\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u5909\u6570\uFF09\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6B21\u306B Target \u306E Setup \u30DA\u30FC\u30B8\u306E Credentials \u306B\u8FFD\u52A0\u3057\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5B9F\u884C\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C Testbot \u306B\u6E21\u3059\u306E\u306F Target \u306E\u8A8D\u8A3C\u60C5\u5831\u3060\u3051\u3067\u3001\u305D\u308C\u305E\u308C\u5BFE\u5FDC\u4ED8\u3051\u3089\u308C\u305F\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u304B\u3089\u6E21\u3055\u308C\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306F\u3053\u308C\u306A\u3057\u3067\u306F\u8D77\u52D5\u3067\u304D\u305A\u3001Testbot \u304C\u5024\u3092\u4F5C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002`},providerOutageHeadline:(e,t)=>`${e} \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F ${t} \u56DE\u8A66\u884C\u3057\u307E\u3057\u305F\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3002`,providerOutageActionStatusPage:e=>`${e} \u3067\u72B6\u6CC1\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B5\u30FC\u30D3\u30B9\u304C\u5FA9\u65E7\u3057\u305F\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,providerRateLimitHeadline:e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,providerRateLimitAction:"\u5236\u9650\u304C\u89E3\u9664\u3055\u308C\u308B\u307E\u3067\u5F85\u3063\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u7E70\u308A\u8FD4\u3059\u5834\u5408\u306F\u3001\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u4F7F\u7528\u3059\u308B\u8A8D\u8A3C\u60C5\u5831\u306E\u30EC\u30FC\u30C8\u5236\u9650\u3092\u5F15\u304D\u4E0A\u3052\u308B\u304B\u3001\u540C\u6642\u306B\u5B9F\u884C\u3059\u308B PR \u306E\u6570\u3092\u6E1B\u3089\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerUsageLimitHeadline:e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,providerUsageLimitAction:"\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u8A8D\u8A3C\u60C5\u5831\u306B\u7D10\u3065\u304F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5229\u7528\u4E0A\u9650\u3092\u5F15\u304D\u4E0A\u3052\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerAuthExpiredHeadline:e=>`\u5B9F\u884C\u4E2D\u306B\u3001Testbot \u304C ${e} \u3078\u63A5\u7D9A\u3059\u308B\u305F\u3081\u306E\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002`,providerAuthExpiredAction:"\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9593\u306F\u56FA\u5B9A\u306E\u305F\u3081\u3001\u5B9F\u884C\u6642\u9593\u304C\u9577\u3044\u3068\u305D\u306E\u671F\u9593\u3092\u8D85\u3048\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u304C\u6709\u52B9\u671F\u9593\u3092\u5E38\u306B\u8D85\u3048\u308B\u5834\u5408\u306F\u3001\u30B8\u30E7\u30D6\u3054\u3068\u306B\u8A8D\u8A3C\u60C5\u5831\u3092\u767A\u884C\u3059\u308B\u304B\u3001\u5404\u30B8\u30E7\u30D6\u304C\u6709\u52B9\u671F\u9593\u5185\u306B\u53CE\u307E\u308B\u3088\u3046\u5B9F\u884C\u3092\u5206\u5272\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerTimeoutHeadline:e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,providerTimeoutAction:"\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u306B\u672C\u5F53\u306B\u6642\u9593\u304C\u5FC5\u8981\u306A\u5834\u5408\u306F\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E `testbotTimeout` \u5165\u529B\u5024\u3092\u5927\u304D\u304F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",staged:{testsSourcePullRequest:e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,validatedTogether:e=>`\u4E00\u7DD2\u306B\u691C\u8A3C\u3057\u305F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8: ${e}`,requestedByPerson:e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,requestedByPolicy:e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,notTranslated:{"no-time":"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u3059\u308B\u6642\u9593\u304C\u6B8B\u3063\u3066\u3044\u307E\u305B\u3093\u3067\u3057\u305F\u3002",failed:"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},noLiveApp:e=>`> \u26A0\uFE0F **\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F** \u2014 \u4EE5\u4E0B\u306E ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u306F**\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093**\uFF08\u5B9F\u884C\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF09\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u3001\u5408\u683C\u3059\u308B\u3053\u3068\uFF08\u304A\u3088\u3073\u518D\u73FE\u30C6\u30B9\u30C8\u304C\u610F\u56F3\u3069\u304A\u308A\u5931\u6557\u3059\u308B\u3053\u3068\uFF09\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,unitTestsInFile:(e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,addedToExistingFile:"\u65E2\u5B58\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306B\u8FFD\u52A0",testPackagesHeader:"### \u{1F4E6} \u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",testPackageLine:(e,t,n="")=>`\`${e}/\` \u306F Skyramp Testbot \u304C\u6240\u6709\u30FB\u4FDD\u5B88\u3059\u308B\u72EC\u7ACB\u3057\u305F\u30C6\u30B9\u30C8\u30D1\u30C3\u30B1\u30FC\u30B8\u3067\u3001\u72EC\u81EA\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3001\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u3001\u30E9\u30F3\u30CA\u30FC\u8A2D\u5B9A\u3092\u6301\u3061\u307E\u3059\u3002${n?`\u3053\u306E\u5B9F\u884C\u3067\u8FFD\u52A0\u3057\u305F\u3082\u306E\u3067\u3001${n} \u3092\u3053\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u5185\u306B\u306E\u307F\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u3066\u3044\u307E\u3059\u3002`:""}\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u4E2D\u306B \`${t}\` \u3067\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002\u3059\u3079\u3066\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u5B9F\u884C\u3059\u308B\u306B\u306F\u3001\u30A2\u30D7\u30EA\u304C\u8D77\u52D5\u3057\u3066\u3044\u308B CI \u30B8\u30E7\u30D6\u306B\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,appManifestsUntouched:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u81EA\u8EAB\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3068\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",dependencyChangesHeader:"### \u{1F4E6} \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u4F9D\u5B58\u95A2\u4FC2\u306E\u5909\u66F4",dependencyChangeLine:(e,t,n)=>`\`${t}\`\uFF08\u304A\u3088\u3073\u305D\u306E\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\uFF09\u306B \`${e}\` \u3092\u8FFD\u52A0${n?`: ${n}`:""}`,testMaintenanceHeader:"\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",keptNot:"\u5909\u66F4\u305B\u305A\u7DAD\u6301 \u2014 \u898B\u9001\u3063\u305F\u64CD\u4F5C: ",declinedPlanned:"(\u4E88\u5B9A\u3057\u3066\u3044\u305F\u64CD\u4F5C\u3092\u898B\u9001\u308A: ",declinedMaintenanceHeader:"\u21A9\uFE0F \u898B\u9001\u3063\u305F\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",existingEvidenceHeader:"\u2705 \u65E2\u5B58\u306E\u30A8\u30D3\u30C7\u30F3\u30B9",trustedCheckPassed:(e,t)=>`\u4FE1\u983C\u6E08\u307F\u306E CI \u30C1\u30A7\u30C3\u30AF ${e} \u304C${t?` ${t} \u3067`:""}\u5408\u683C\u3057\u3001\u6B21\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F:`,testResultsHeader:"\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C",resultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",unitResultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30B3\u30FC\u30C9 | \u30C6\u30B9\u30C8 | \u30B1\u30FC\u30B9\u6570 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",casesPassed:(e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:(e,t,n,s)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${s}\uFF09`,coverageTableHeader:"| \u632F\u308B\u821E\u3044 | \u30BD\u30FC\u30B9 | \u30C6\u30B9\u30C8 | \u30E1\u30F3\u30C6\u30CA\u30F3\u30B9 |",writtenNotRun:"\u4F5C\u6210\u6E08\u307F\u30FB\u672A\u5B9F\u884C",issuesFoundHeader:"\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C",requirementsHeader:(e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,requirementsTableHeader:"| \u8981\u4EF6 | \u6761\u9805 | \u30C6\u30B9\u30C8 | \u7D50\u679C |",requirementsSummaryTableHeader:"| \u8981\u4EF6 | \u5408\u683C\u3057\u305F\u6761\u9805 | \u5408\u683C\u3057\u3066\u3044\u306A\u3044\u6761\u9805 |",clauseStatuses:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C","Not run":"\u672A\u5B9F\u884C","Not tested":"\u672A\u30C6\u30B9\u30C8","Passed, test not kept":"\u5408\u683C\uFF08\u30C6\u30B9\u30C8\u306F\u4FDD\u6301\u305B\u305A\uFF09"},regressionGuard:"\uFF08\u56DE\u5E30\u30AC\u30FC\u30C9\uFF09",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F \u5B9F\u884C\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F \u2014 \u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002",stopReasons:{"pr-closed":"\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30DE\u30FC\u30B8\u3055\u308C\u305A\u306B\u30AF\u30ED\u30FC\u30BA\u3055\u308C\u307E\u3057\u305F",cancelled:"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u305F\u304B\u3001\u30E9\u30F3\u30CA\u30FC\u304C\u505C\u6B62\u3057\u307E\u3057\u305F","attempt-cancelled":"Skyramp \u3067\u3053\u306E\u5B9F\u884C\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F","attempt-closed":"Skyramp \u304C\u3053\u306E\u5B9F\u884C\u3092\u7D42\u4E86\u3057\u307E\u3057\u305F"},maintenanceActions:{update:"\u66F4\u65B0",regenerate:"\u518D\u751F\u6210",delete:"\u524A\u9664",verify:"\u691C\u8A3C",updated:"\u66F4\u65B0",regenerated:"\u518D\u751F\u6210",deleted:"\u524A\u9664",verified:"\u691C\u8A3C"},publishFailures:{push:"\u30D7\u30C3\u30B7\u30E5\u306B\u5931\u6557",auth:"\u8A8D\u8A3C\u30A8\u30E9\u30FC",conflict:"\u7AF6\u5408",hook:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF\u304C\u5931\u6557",unknown:"\u4E0D\u660E\u306A\u30A8\u30E9\u30FC"},commitHook:e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF",commitRefusedByHook:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u304C\u751F\u6210\u3055\u308C\u305F\u30C6\u30B9\u30C8\u306E\u30B3\u30DF\u30C3\u30C8\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,commitHookCouldNotRun:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u304C\u547C\u3073\u51FA\u3059\u30B3\u30DE\u30F3\u30C9\u304C\u30E9\u30F3\u30CA\u30FC\u306B\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,stoppedEarly:(e,t)=>`> \u26A0\uFE0F \u5B9F\u884C\u304C\u9014\u4E2D\u3067\u505C\u6B62\u3057\u307E\u3057\u305F \u2014 ${e}\u3002\u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002${t}`,viewInSkyramp:e=>` [Skyramp \u3067\u8868\u793A](${e})`,testsPr:{summaryHeader:"### \u6982\u8981",targets:"\u30C6\u30B9\u30C8\u306E\u5BFE\u8C61:",moreItems:e=>`\u307B\u304B ${e} \u4EF6`,counts:(e,t)=>`\u65B0\u898F\u30C6\u30B9\u30C8 ${e} \u4EF6\u3001\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u3057\u305F\u30C6\u30B9\u30C8 ${t} \u4EF6\u3002`,types:e=>`\u30C6\u30B9\u30C8\u7A2E\u5225: ${e}\u3002`,statusHeader:"### \u691C\u8A3C\u30B9\u30C6\u30FC\u30BF\u30B9",noChange:"\u2139\uFE0F \u30D9\u30FC\u30B9\u30E9\u30A4\u30F3\u4EE5\u964D\u306B\u5909\u66F4\u306F\u3042\u308A\u307E\u305B\u3093\u3002",noTestRan:"\u5B9F\u884C\u3057\u305F\u30C6\u30B9\u30C8\u306F\u306A\u304F\u3001\u65E2\u5B58\u306E\u8A3C\u62E0\u3082\u63A1\u7528\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",noLiveApp:"\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",resultCounts:(e,t,n)=>`\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${e} \u4EF6\u3001\u4E0D\u5408\u683C ${t} \u4EF6\u3001\u672A\u5B9F\u884C ${n} \u4EF6\u3002`,limitations:"\u91CD\u8981\u306A\u5931\u6557\u3068\u5236\u9650:",verdict:e=>`\u5B9F\u884C\u306E\u5224\u5B9A\u306F[\u5B9F\u884C\u306E\u8A73\u7D30](${e})\u306B\u3042\u308A\u307E\u3059\u3002`,runningHeader:"### \u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",environment:e=>`\u30C6\u30B9\u30C8\u306F\u6B21\u306E\u74B0\u5883\u5909\u6570\u3092\u8AAD\u307F\u53D6\u308A\u307E\u3059\u3002\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B\u30B8\u30E7\u30D6\u3067\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044: ${e}\u3002`,filesChanged:"\u5404\u30C6\u30B9\u30C8\u306F **Files changed** \u30BF\u30D6\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},descriptionCut:(e,t,n)=>`_\u2026 \u6B8B\u308A\u306F\u7701\u7565\u3057\u307E\u3057\u305F${t===void 0?"\uFF08\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u542B\u3080\uFF09":t?`\uFF08\u30C6\u30B9\u30C8\u7D50\u679C ${t} \u4EF6\u3092\u542B\u3080\uFF09`:""}\u3002Azure DevOps \u306E\u8AAC\u660E\u306F ${e} \u6587\u5B57\u307E\u3067\u3067\u3059\u3002${n?` [\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8](${n})`:""}_`,testsReplaced:(e,t,n)=>[t?`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\uFF08\u30B3\u30DF\u30C3\u30C8 \`${t}\`\uFF09\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`:`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`,n?`[\u4EE5\u524D\u306E\u5B9F\u884C](${n})\u306E\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002`:"\u4EE5\u524D\u306E\u5B9F\u884C\u304C\u3053\u3053\u306B\u66F8\u3044\u305F\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002"].join(""),setupRunEnds:{finished:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002Skyramp \u304C\u7D50\u679C\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",failed:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",timedOut:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u6642\u9593\u5207\u308C\u306B\u306A\u308A\u307E\u3057\u305F\u3002",cancelledInSkyramp:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306F Skyramp \u3067\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",stoppedToResume:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002Skyramp \u3067\u518D\u958B\u3067\u304D\u307E\u3059\u3002"},appUnreachable:e=>`Skyramp\uFF08${e}\uFF09\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002`,couldNotStart:e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F \u4F5C\u6210\u30B9\u30C6\u30C3\u30D7\u304C\u30C1\u30A7\u30C3\u30AF\u306B\u5408\u683C\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u81EA\u52D5\u3067\u7D44\u307F\u7ACB\u3066\u3089\u308C\u307E\u3057\u305F\u3002${e} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\u304C\u672A\u9054\u6210\u3067\u3059 \u2014 \u8A73\u7D30\u306F\u5B9F\u884C\u30ED\u30B0\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,testbotPrLine:(e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,viewRun:e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,testsPrNotOpened:(e,t)=>`\u30C6\u30B9\u30C8 PR \u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u30D7\u30C3\u30B7\u30E5\u3055\u308C\u3066\u3044\u307E\u3059\u3002`,testsNotDelivered:e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,testsPinnedNotDelivered:(e,t,n)=>`${e}: ${t} \u4EF6\u306E\u30C6\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u3001${n} \u4EF6\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30B3\u30DF\u30C3\u30C8\u306B\u56FA\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u3053\u308C\u3089\u306E\u5909\u66F4\u306F\u914D\u4FE1\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,testsNotPushed:(e,t)=>`\u30C6\u30B9\u30C8\u3092\u30D7\u30C3\u30B7\u30E5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30ED\u30FC\u30AB\u30EB\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002`,testsPrRetargeted:e=>`\u30C6\u30B9\u30C8\u306E\u751F\u6210\u4E2D\u306B\u958B\u767A PR \u304C\u30DE\u30FC\u30B8\u3055\u308C\u307E\u3057\u305F \u2014 \u30C6\u30B9\u30C8 PR \u306F\u4EE3\u308F\u308A\u306B\u30D9\u30FC\u30B9\u30D6\u30E9\u30F3\u30C1${e?`\uFF08\`${e}\`\uFF09`:""}\u3092\u5BFE\u8C61\u306B\u3057\u3066\u3044\u307E\u3059\u3002`,testsPrUnchanged:"\u3053\u306E\u30D7\u30C3\u30B7\u30E5\u3067\u306F\u65B0\u3057\u3044\u30C6\u30B9\u30C8\u306E\u5909\u66F4\u306F\u4E0D\u8981\u3067\u3057\u305F\u3002\u4EE5\u4E0B\u306E\u30C6\u30B9\u30C8 PR \u306F\u4EE5\u524D\u306E\u5B9F\u884C\u306E\u3082\u306E\u3067\u3001\u305D\u306E\u307E\u307E\u306B\u3057\u3066\u3044\u307E\u3059\u3002",committedNoPr:e=>`\u30C6\u30B9\u30C8\u306F\u30B3\u30DF\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F\u304C\u3001PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,testsHeldBack:(e,t,n,s)=>`${e?"\u4E00\u90E8\u306E\u30C6\u30B9\u30C8\u306E\u307F\u63D0\u51FA\u3057\u307E\u3057\u305F":"\u30C6\u30B9\u30C8\u3092\u63D0\u51FA\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F"}\u3002\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F ${t} \u306B\u307E\u3060\u306A\u3044\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u4FDD\u7559\u3057\u307E\u3057\u305F: ${n}\u3002\u5909\u66F4\u5185\u5BB9\u306F\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u306E ${s} \u306B\u3042\u308A\u307E\u3059\u3002`,testsNotProposed:e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`}};var vf=(n=>(n.En="en",n.Ja="ja",n))(vf||{}),due={en:Ty,ja:CV},pue="en";function eR(e){let t=e.trim().toLowerCase();if(t==="")return"en";let n=Object.values(vf);return n.includes(t)?t:(Lt(`Invalid language '${e}'. Supported: ${n.join(", ")}. Falling back to 'en'.`),"en")}function jo(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}function ne(){return due[pue]}var _y=(a=>(a.ProviderOutage="provider_outage",a.ProviderRateLimit="provider_rate_limit",a.ProviderUsageLimit="provider_usage_limit",a.ProviderAuthExpired="provider_auth_expired",a.Timeout="timeout",a.NoReport="no_report",a.RenderFailure="render_failure",a))(_y||{});(t=>{function e(n,s){switch(n){case"provider_outage":return{headline:ne().providerOutageHeadline(s.provider.name,s.maxRetries),action:ne().providerOutageActionStatusPage(s.provider.statusUrl)};case"provider_rate_limit":return{headline:ne().providerRateLimitHeadline(s.provider.name),action:ne().providerRateLimitAction};case"provider_usage_limit":return{headline:ne().providerUsageLimitHeadline(s.provider.name),action:ne().providerUsageLimitAction};case"provider_auth_expired":return{headline:ne().providerAuthExpiredHeadline(s.provider.name),action:ne().providerAuthExpiredAction};case"timeout":return{headline:ne().providerTimeoutHeadline(s.timeoutMinutes),action:ne().providerTimeoutAction};case"no_report":case"render_failure":return}}t.buildNotice=e})(_y||={});var tR=(n=>(n.SameBranch="same-branch",n.SeparateBranch="separate-branch",n))(tR||{});var SV=(n=>(n.Sonnet="sonnet",n.Opus="opus",n))(SV||{}),fue="opus";function nR(e){return Object.values(SV).includes(e)}function kV(e){let t=(e??"").trim();if(t==="")return fue;let n=t.toLowerCase();return nR(n)?n:t}var Dy=(i=>(i.Low="low",i.Medium="medium",i.High="high",i.XHigh="xhigh",i.Max="max",i))(Dy||{}),Ny="high";function RV(e){return Object.values(Dy).includes(e)}var BV=5;function hue(e){let t=e.split(/\r?\n/).map(n=>n.trim()).filter(Boolean);if(t.length>BV)throw new Error(`relatedRepoPaths supports at most ${BV} entries (got ${t.length}); the cap limits how much cross-repo context is loaded to avoid overflowing Testbot's context window.`);return t}function gue(e){let t=e.trim().toLowerCase();return t===""?"separate-branch":Object.values(tR).includes(t)?t:(Lt(`Invalid generatedTestsMode '${e}'. Falling back to 'separate-branch'.`),"separate-branch")}function mue(e){let t=(e??"").trim();if(t!==""){if(/^(?:[1-9]|10)$/.test(t))return Number(t);Lt(`Ignoring perTestMaxFixAttempts="${e}": expected a whole number from 1 to 10; the Skyramp MCP default applies`)}}function Aue(e){let t=(e??"").trim().toLowerCase();return t===""?Ny:RV(t)?t:(Lt(`Ignoring effort="${e}": expected one of ${Object.values(Dy).join(", ")}; using "${Ny}"`),Ny)}function xV(){let e=kV(je("model"));return nR(e)||Lt(`model '${e}' is not a tested alias (sonnet, opus); passing it to the agent verbatim as a raw model id.`),{skyrampLicenseFile:je("skyrampLicenseFile"),cursorApiKey:je("cursorApiKey"),copilotApiKey:je("copilotApiKey"),anthropicApiKey:je("anthropicApiKey"),useBedrock:Oo("useBedrock"),awsRegion:je("awsRegion"),useLocalAuth:je("useLocalAuth").toLowerCase()==="true",model:e,effort:Aue(je("effort")),targetSetupCommand:je("targetSetupCommand"),authTokenCommand:je("authTokenCommand"),uiCredentials:je("uiCredentials"),targetTeardownCommand:je("targetTeardownCommand"),skipTargetTeardown:Oo("skipTargetTeardown"),skyrampMcpVersion:je("skyrampMcpVersion"),skyrampMcpSource:je("skyrampMcpSource"),skyrampMcpGithubToken:je("skyrampMcpGithubToken"),skyrampMcpGithubRef:je("skyrampMcpGithubRef"),nodeVersion:je("nodeVersion"),skipTargetSetup:Oo("skipTargetSetup"),targetReadyCheckCommand:je("targetReadyCheckCommand"),targetReadyCheckTimeout:(()=>{let n=parseInt(je("targetReadyCheckTimeout"),10)||1800;return n<1?(Lt(`targetReadyCheckTimeout must be at least 1 second, got ${n}. Using 1s.`),1):n})(),targetReadyCheckInterval:(()=>{let n=parseInt(je("targetReadyCheckInterval"),10),s=isNaN(n)?30:n;return s<1?(Lt(`targetReadyCheckInterval must be at least 1 second, got ${s}. Using 1s.`),1):s})(),targetReadyCheckDiagnosticsCommand:(()=>{let n=je("targetReadyCheckDiagnosticsCommand");return n.trim().toLowerCase()==="none"?"":n})(),workingDirectory:je("workingDirectory"),autoCommit:Oo("autoCommit"),commitMessage:je("commitMessage"),generatedTestsMode:gue(je("generatedTestsMode")),postPrComment:Oo("postPrComment"),testExecutionTimeout:parseInt(je("testExecutionTimeout"),10)||300,maxRecommendations:(()=>{let n=parseInt(je("maxRecommendations"),10);return isNaN(n)?void 0:Math.max(0,n)})(),maxGenerate:(()=>{let n=parseInt(je("maxGenerate"),10);return isNaN(n)?void 0:Math.max(0,n)})(),perTestMaxFixAttempts:mue(je("perTestMaxFixAttempts")),testbotMaxRetries:parseInt(je("testbotMaxRetries"),10)||3,testbotRetryDelay:parseInt(je("testbotRetryDelay"),10)||10,testbotTimeout:parseInt(je("testbotTimeout"),10)||60,targetSetupRetries:parseInt(je("targetSetupRetries"),10)||3,targetSetupRetryDelay:parseInt(je("targetSetupRetryDelay"),10)||10,authTokenRetries:(()=>{let n=parseInt(je("authTokenRetries"),10);return Number.isFinite(n)&&n>=1?n:6})(),authTokenRetryDelay:(()=>{let n=parseInt(je("authTokenRetryDelay"),10);return Number.isFinite(n)&&n>=0?n:10})(),reportCollapsed:Oo("reportCollapsed"),language:eR(je("language")),enableDebug:Oo("enableDebug"),testRepoPath:je("testRepoPath")||void 0,relatedRepoPaths:hue(je("relatedRepoPaths")),allowedAuthors:je("allowedAuthors").split(/\r?\n/).map(n=>n.trim()).filter(Boolean)}}var yue={useBedrock:"false",skipTargetTeardown:"false",skyrampMcpSource:"npm",skyrampMcpGithubRef:"main",nodeVersion:"lts/*",skipTargetSetup:"false",targetReadyCheckTimeout:"1800",targetReadyCheckInterval:"30",targetReadyCheckDiagnosticsCommand:`docker ps -a --format 'table {{.Names}} {{.Status}} {{.Ports}}' && docker ps -a --format '{{.Names}}' | while read name; do [ -n "$name" ] && echo "--- logs $name (last 30) ---" && docker logs --tail 30 "$name"; done`,workingDirectory:".",autoCommit:"true",commitMessage:"Skyramp Testbot: test maintenance suggestions",generatedTestsMode:"separate-branch",pipeline:"staged",postPrComment:"true",testbotMaxRetries:"3",testbotRetryDelay:"10",testExecutionTimeout:"300",testbotTimeout:"60",targetSetupRetries:"3",targetSetupRetryDelay:"10",authTokenRetries:"6",authTokenRetryDelay:"10",reportCollapsed:"true",language:"en",enableDebug:"true",sutSetupMode:"none"};function QV(e=process.env){for(let[t,n]of Object.entries(yue)){let s=`INPUT_${t.replace(/ /g,"_").toUpperCase()}`;(e[s]??"").trim()===""&&(e[s]=n)}}_n();async function $V(e){let t=e.targetSetupCommand,n=e.skyrampMcpVersion;n||(n="latest"),t||(t="docker compose up -d --build");let s={targetSetupCommand:t,authTokenCommand:e.authTokenCommand,targetTeardownCommand:e.targetTeardownCommand,skipTargetTeardown:e.skipTargetTeardown,skyrampMcpVersion:n,skyrampMcpSource:e.skyrampMcpSource,skyrampMcpGithubRef:e.skyrampMcpGithubRef,nodeVersion:e.nodeVersion,skipTargetSetup:e.skipTargetSetup,targetReadyCheckCommand:e.targetReadyCheckCommand,targetReadyCheckTimeout:e.targetReadyCheckTimeout,targetReadyCheckInterval:e.targetReadyCheckInterval,targetReadyCheckDiagnosticsCommand:e.targetReadyCheckDiagnosticsCommand,autoCommit:e.autoCommit,commitMessage:e.commitMessage,generatedTestsMode:e.generatedTestsMode,postPrComment:e.postPrComment,testExecutionTimeout:e.testExecutionTimeout,maxRecommendations:e.maxRecommendations,maxGenerate:e.maxGenerate,perTestMaxFixAttempts:e.perTestMaxFixAttempts,testbotMaxRetries:e.testbotMaxRetries,testbotRetryDelay:e.testbotRetryDelay,testbotTimeout:e.testbotTimeout,targetSetupRetries:e.targetSetupRetries,targetSetupRetryDelay:e.targetSetupRetryDelay,authTokenRetries:e.authTokenRetries,authTokenRetryDelay:e.authTokenRetryDelay,reportCollapsed:e.reportCollapsed,language:e.language,enableDebug:e.enableDebug,testRepoPath:e.testRepoPath,relatedRepoPaths:e.relatedRepoPaths};vy("Resolved configuration");for(let[r,i]of Object.entries(s))r==="authTokenCommand"?Rs(` ${r}: [REDACTED]`):Rs(` ${r}: ${i}`);return by(),s}_n();_n();Vk();var _V=Z(require("child_process")),rR=class extends Error{constructor(t){super(t),this.name="ExecTimeoutError"}},Py=class extends Error{constructor(t){super(t),this.name="ExecAbortedError"}};function TV(e,t){if(!(!e||e.destroyed||e.writableEnded))try{e.write(t)}catch(n){Lt(`stream write failed: ${n instanceof Error?n.message:String(n)}`)}}async function DV(e,t=[],n={}){let s="",r="",i={cwd:n.cwd,silent:n.silent??!1,ignoreReturnCode:n.ignoreReturnCode??!1,env:n.env?{...process.env,...n.env}:void 0,input:n.input,listeners:{stdout:a=>{s+=a.toString(),TV(n.stdoutStream,a)},stderr:a=>{r+=a.toString()}}};if(n.timeout||n.signal){let a=n.signal;return a?.aborted?Promise.reject(new Py(`Command aborted before start: ${e}`)):new Promise((c,u)=>{let d=_V.spawn(e,t,{cwd:n.cwd,env:n.env?{...process.env,...n.env}:process.env,stdio:["pipe","pipe","pipe"],shell:!1});d.stdout?.on("data",y=>{s+=y.toString(),n.silent||process.stdout.write(y),TV(n.stdoutStream,y)}),d.stderr?.on("data",y=>{r+=y.toString(),n.silent||process.stderr.write(y)}),n.input&&d.stdin?.end(n.input);let p=()=>{m&&clearTimeout(m),a?.removeEventListener("abort",g)},h=y=>{p();try{d.kill("SIGTERM")}catch{}u(y)},g=()=>h(new Py(`Command aborted: ${e}`)),m=n.timeout?setTimeout(()=>h(new rR(`Command timed out after ${Math.round(n.timeout/6e4)}m: ${e}`)),n.timeout):void 0;a?.addEventListener("abort",g,{once:!0}),d.on("close",y=>{p();let E=y??1;E!==0&&!n.ignoreReturnCode?u(new Error(`The process '${e}' failed with exit code ${E}`)):c({exitCode:E,stdout:s,stderr:r})}),d.on("error",y=>{p(),u(y)})})}return{exitCode:await K1(e,t,i),stdout:s,stderr:r}}async function NV(e,t){vy(e);try{return await t()}finally{by()}}function sR(e){return e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/^_+|_+$/g,"")}async function PV(e,t){await NV("Tearing down services",async()=>{if(e.skipTargetTeardown){Hk("Skipping service teardown (skipTargetTeardown=true)");return}if(!e.targetTeardownCommand){Rs("No targetTeardownCommand configured, skipping teardown");return}Rs(`Running teardown command: ${e.targetTeardownCommand}`);try{await DV("bash",["-c",e.targetTeardownCommand],{cwd:t}),Hk("Services torn down successfully")}catch(n){let s=n instanceof Error?n.message:String(n);Lt(`Service teardown command failed (non-fatal): ${s}`)}})}var de=Z(require("fs")),MV=require("crypto"),Ie=Z(require("path")),LV=require("child_process");var Oy=Z(require("fs")),UV=Z(require("path")),Eue=/[;|`$<>(){}\n\r]|(?<!&)&(?!&)|\|\|/,vue=/`|\$[\w{(@*#?!$-]|\\[$`"\\\n]/;function bue(e){let t="";for(let s=0;s<e.length;){let r=e[s];if(r==="\\"&&(e[s+1]==='"'||e[s+1]==="'"))return{syntax:"a backslash before a quote",quoted:!1};if(r!=='"'&&r!=="'"){t+=r,s++;continue}let i=e.indexOf(r,s+1);if(i<0)return;let o=r==='"'?vue.exec(e.slice(s+1,i+(e[i-1]==="\\"?1:0))):null;if(o)return{syntax:`${OV(o[0])} inside double quotes`,quoted:!0};t+=" ",s=i+1}let n=Eue.exec(t);return n?{syntax:OV(n[0]),quoted:!1}:void 0}var OV=e=>e==="`"?"a backtick":/[\n\r]/.test(e)?"a line break":`\`${e}\``;function kc(e){let t=(e??"").trim();if(!t)return{kind:"empty",reason:"the command is empty"};let n=bue(t);if(n)return{kind:"shell-syntax",reason:`it uses shell syntax (${n.syntax}), and this is re-executed WITHOUT a shell so the recorded string cannot be interpreted \u2014 put the logic in a script and record the script invocation instead, or put an argument that holds such characters in ${n.quoted?"single quotes":"quotes"}`};let s=[],r=[],i="",o,a=!1,c=()=>{(i||a)&&r.push(i),i="",a=!1},u=()=>{c(),r.length>0&&s.push(r),r=[]};for(let p=0;p<t.length;p++){let h=t[p];if(o){h===o?o=void 0:i+=h;continue}if(h==='"'||h==="'"){o=h,a=!0;continue}if(h==="&"&&t[p+1]==="&"){u(),p+=1;continue}if(/\s/.test(h)){c();continue}i+=h}if(o)return{kind:"unterminated-quote",reason:"it has an unterminated quote"};if(u(),s.length===0)return{kind:"empty",reason:"the command is empty"};if(s.some(p=>p.length===0))return{kind:"empty-step",reason:"it has an empty step between && operators"};let d=s.find(p=>["cd","export","source","."].includes(p[0]));return d?{kind:"builtin",reason:`it runs the shell builtin "${d[0]}", which cannot be executed as a program \u2014 record a script that does this instead`}:{argv:s[0],steps:s}}function Uy(e,t,n){let s=(e??"").trim(),{steps:r,kind:i}=kc(s);if(!r&&!(i!=="shell-syntax"&&i!=="builtin")){try{Oy.mkdirSync(UV.dirname(t),{recursive:!0}),Oy.writeFileSync(t,`#!/usr/bin/env bash
|
|
51
|
+
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function nV(e){process.exitCode=zk.Failure,rV(e)}function _k(e){Da("debug",{},e)}function rV(e,t={}){Da("error",fm(t),e instanceof Error?e.toString():e)}function Lt(e,t={}){Da("warning",fm(t),e instanceof Error?e.toString():e)}function Hk(e,t={}){Da("notice",fm(t),e instanceof Error?e.toString():e)}function Rs(e){process.stdout.write(e+tV.EOL)}function vy(e){eI("group",e)}function by(){eI("endgroup")}function ei(e){return process.env[`STATE_${e}`]||""}function sV(e){return Zae(this,void 0,void 0,function*(){return yield hy.getIDToken(e)})}var tV,Zae,zk,_n=Vn(()=>{KD();XD();hm();tV=Z(require("os"),1);P1();Pk();Pk();F1();eV();Zae=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})};(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(zk||(zk={}))});var ed=$((B0e,d2)=>{"use strict";var dpe="2.0.0",ppe=Number.MAX_SAFE_INTEGER||9007199254740991,fpe=16,hpe=250,gpe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];d2.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:fpe,MAX_SAFE_BUILD_LENGTH:hpe,MAX_SAFE_INTEGER:ppe,RELEASE_TYPES:gpe,SEMVER_SPEC_VERSION:dpe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var lh=$((x0e,p2)=>{"use strict";var mpe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};p2.exports=mpe});var td=$((fi,f2)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:IB,MAX_SAFE_BUILD_LENGTH:Ape,MAX_LENGTH:ype}=ed(),Epe=lh();fi=f2.exports={};var vpe=fi.re=[],bpe=fi.safeRe=[],ae=fi.src=[],wpe=fi.safeSrc=[],ce=fi.t={},Ipe=0,CB="[a-zA-Z0-9-]",Cpe=[["\\s",1],["\\d",ype],[CB,Ape]],Spe=e=>{for(let[t,n]of Cpe)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},Ve=(e,t,n)=>{let s=Spe(t),r=Ipe++;Epe(e,r,t),ce[e]=r,ae[r]=t,wpe[r]=s,vpe[r]=new RegExp(t,n?"g":void 0),bpe[r]=new RegExp(s,n?"g":void 0)};Ve("NUMERICIDENTIFIER","0|[1-9]\\d*");Ve("NUMERICIDENTIFIERLOOSE","\\d+");Ve("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${CB}*`);Ve("MAINVERSION",`(${ae[ce.NUMERICIDENTIFIER]})\\.(${ae[ce.NUMERICIDENTIFIER]})\\.(${ae[ce.NUMERICIDENTIFIER]})`);Ve("MAINVERSIONLOOSE",`(${ae[ce.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ce.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ce.NUMERICIDENTIFIERLOOSE]})`);Ve("PRERELEASEIDENTIFIER",`(?:${ae[ce.NONNUMERICIDENTIFIER]}|${ae[ce.NUMERICIDENTIFIER]})`);Ve("PRERELEASEIDENTIFIERLOOSE",`(?:${ae[ce.NONNUMERICIDENTIFIER]}|${ae[ce.NUMERICIDENTIFIERLOOSE]})`);Ve("PRERELEASE",`(?:-(${ae[ce.PRERELEASEIDENTIFIER]}(?:\\.${ae[ce.PRERELEASEIDENTIFIER]})*))`);Ve("PRERELEASELOOSE",`(?:-?(${ae[ce.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ae[ce.PRERELEASEIDENTIFIERLOOSE]})*))`);Ve("BUILDIDENTIFIER",`${CB}+`);Ve("BUILD",`(?:\\+(${ae[ce.BUILDIDENTIFIER]}(?:\\.${ae[ce.BUILDIDENTIFIER]})*))`);Ve("FULLPLAIN",`v?${ae[ce.MAINVERSION]}${ae[ce.PRERELEASE]}?${ae[ce.BUILD]}?`);Ve("FULL",`^${ae[ce.FULLPLAIN]}$`);Ve("LOOSEPLAIN",`[v=\\s]*${ae[ce.MAINVERSIONLOOSE]}${ae[ce.PRERELEASELOOSE]}?${ae[ce.BUILD]}?`);Ve("LOOSE",`^${ae[ce.LOOSEPLAIN]}$`);Ve("GTLT","((?:<|>)?=?)");Ve("XRANGEIDENTIFIERLOOSE",`${ae[ce.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ve("XRANGEIDENTIFIER",`${ae[ce.NUMERICIDENTIFIER]}|x|X|\\*`);Ve("XRANGEPLAIN",`[v=\\s]*(${ae[ce.XRANGEIDENTIFIER]})(?:\\.(${ae[ce.XRANGEIDENTIFIER]})(?:\\.(${ae[ce.XRANGEIDENTIFIER]})(?:${ae[ce.PRERELEASE]})?${ae[ce.BUILD]}?)?)?`);Ve("XRANGEPLAINLOOSE",`[v=\\s]*(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:${ae[ce.PRERELEASELOOSE]})?${ae[ce.BUILD]}?)?)?`);Ve("XRANGE",`^${ae[ce.GTLT]}\\s*${ae[ce.XRANGEPLAIN]}$`);Ve("XRANGELOOSE",`^${ae[ce.GTLT]}\\s*${ae[ce.XRANGEPLAINLOOSE]}$`);Ve("COERCEPLAIN",`(^|[^\\d])(\\d{1,${IB}})(?:\\.(\\d{1,${IB}}))?(?:\\.(\\d{1,${IB}}))?`);Ve("COERCE",`${ae[ce.COERCEPLAIN]}(?:$|[^\\d])`);Ve("COERCEFULL",ae[ce.COERCEPLAIN]+`(?:${ae[ce.PRERELEASE]})?(?:${ae[ce.BUILD]})?(?:$|[^\\d])`);Ve("COERCERTL",ae[ce.COERCE],!0);Ve("COERCERTLFULL",ae[ce.COERCEFULL],!0);Ve("LONETILDE","(?:~>?)");Ve("TILDETRIM",`(\\s*)${ae[ce.LONETILDE]}\\s+`,!0);fi.tildeTrimReplace="$1~";Ve("TILDE",`^${ae[ce.LONETILDE]}${ae[ce.XRANGEPLAIN]}$`);Ve("TILDELOOSE",`^${ae[ce.LONETILDE]}${ae[ce.XRANGEPLAINLOOSE]}$`);Ve("LONECARET","(?:\\^)");Ve("CARETTRIM",`(\\s*)${ae[ce.LONECARET]}\\s+`,!0);fi.caretTrimReplace="$1^";Ve("CARET",`^${ae[ce.LONECARET]}${ae[ce.XRANGEPLAIN]}$`);Ve("CARETLOOSE",`^${ae[ce.LONECARET]}${ae[ce.XRANGEPLAINLOOSE]}$`);Ve("COMPARATORLOOSE",`^${ae[ce.GTLT]}\\s*(${ae[ce.LOOSEPLAIN]})$|^$`);Ve("COMPARATOR",`^${ae[ce.GTLT]}\\s*(${ae[ce.FULLPLAIN]})$|^$`);Ve("COMPARATORTRIM",`(\\s*)${ae[ce.GTLT]}\\s*(${ae[ce.LOOSEPLAIN]}|${ae[ce.XRANGEPLAIN]})`,!0);fi.comparatorTrimReplace="$1$2$3";Ve("HYPHENRANGE",`^\\s*(${ae[ce.XRANGEPLAIN]})\\s+-\\s+(${ae[ce.XRANGEPLAIN]})\\s*$`);Ve("HYPHENRANGELOOSE",`^\\s*(${ae[ce.XRANGEPLAINLOOSE]})\\s+-\\s+(${ae[ce.XRANGEPLAINLOOSE]})\\s*$`);Ve("STAR","(<|>)?=?\\s*\\*");Ve("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ve("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var _E=$((Q0e,h2)=>{"use strict";var kpe=Object.freeze({loose:!0}),Rpe=Object.freeze({}),Bpe=e=>e?typeof e!="object"?kpe:e:Rpe;h2.exports=Bpe});var SB=$(($0e,A2)=>{"use strict";var g2=/^[0-9]+$/,m2=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=g2.test(e),s=g2.test(t);return n&&s&&(e=+e,t=+t),e===t?0:n&&!s?-1:s&&!n?1:e<t?-1:1},xpe=(e,t)=>m2(t,e);A2.exports={compareIdentifiers:m2,rcompareIdentifiers:xpe}});var Cn=$((T0e,E2)=>{"use strict";var DE=lh(),{MAX_LENGTH:y2,MAX_SAFE_INTEGER:NE}=ed(),{safeRe:PE,t:OE}=td(),Qpe=_E(),{compareIdentifiers:kB}=SB(),$pe=(e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let s=0;s<n.length;s++)if(kB(e[s],n[s])!==0)return!1;return!0},RB=class e{constructor(t,n){if(n=Qpe(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>y2)throw new TypeError(`version is longer than ${y2} characters`);DE("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let s=t.trim().match(n.loose?PE[OE.LOOSE]:PE[OE.FULL]);if(!s)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>NE||this.major<0)throw new TypeError("Invalid major version");if(this.minor>NE||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>NE||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let i=+r;if(i>=0&&i<NE)return i}return r}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(DE("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let s=this.prerelease[n],r=t.prerelease[n];if(DE("prerelease compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return kB(s,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let s=this.build[n],r=t.build[n];if(DE("build compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return kB(s,r)}while(++n)}inc(t,n,s){if(t.startsWith("pre")){if(!n&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?PE[OE.PRERELEASELOOSE]:PE[OE.PRERELEASE]);if(!r||r[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,s),this.inc("pre",n,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,s),this.inc("pre",n,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let i=[n,r];if(s===!1&&(i=[n]),$pe(this.prerelease,n)){let o=this.prerelease[n.split(".").length];isNaN(o)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};E2.exports=RB});var ia=$((_0e,b2)=>{"use strict";var v2=Cn(),Tpe=(e,t,n=!1)=>{if(e instanceof v2)return e;try{return new v2(e,t)}catch(s){if(!n)return null;throw s}};b2.exports=Tpe});var I2=$((D0e,w2)=>{"use strict";var _pe=ia(),Dpe=(e,t)=>{let n=_pe(e,t);return n?n.version:null};w2.exports=Dpe});var S2=$((N0e,C2)=>{"use strict";var Npe=ia(),Ppe=(e,t)=>{let n=Npe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};C2.exports=Ppe});var B2=$((P0e,R2)=>{"use strict";var k2=Cn(),Ope=(e,t,n,s,r)=>{typeof n=="string"&&(r=s,s=n,n=void 0);try{return new k2(e instanceof k2?e.version:e,n).inc(t,s,r).version}catch{return null}};R2.exports=Ope});var $2=$((O0e,Q2)=>{"use strict";var x2=ia(),Upe=(e,t)=>{let n=x2(e,null,!0),s=x2(t,null,!0),r=n.compare(s);if(r===0)return null;let i=r>0,o=i?n:s,a=i?s:n,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let d=c?"pre":"";return n.major!==s.major?d+"major":n.minor!==s.minor?d+"minor":n.patch!==s.patch?d+"patch":"prerelease"};Q2.exports=Upe});var _2=$((U0e,T2)=>{"use strict";var Fpe=Cn(),Mpe=(e,t)=>new Fpe(e,t).major;T2.exports=Mpe});var N2=$((F0e,D2)=>{"use strict";var Lpe=Cn(),jpe=(e,t)=>new Lpe(e,t).minor;D2.exports=jpe});var O2=$((M0e,P2)=>{"use strict";var Vpe=Cn(),Gpe=(e,t)=>new Vpe(e,t).patch;P2.exports=Gpe});var F2=$((L0e,U2)=>{"use strict";var zpe=ia(),Hpe=(e,t)=>{let n=zpe(e,t);return n&&n.prerelease.length?n.prerelease:null};U2.exports=Hpe});var ds=$((j0e,L2)=>{"use strict";var M2=Cn(),qpe=(e,t,n)=>new M2(e,n).compare(new M2(t,n));L2.exports=qpe});var V2=$((V0e,j2)=>{"use strict";var Jpe=ds(),Wpe=(e,t,n)=>Jpe(t,e,n);j2.exports=Wpe});var z2=$((G0e,G2)=>{"use strict";var Ype=ds(),Zpe=(e,t)=>Ype(e,t,!0);G2.exports=Zpe});var UE=$((z0e,q2)=>{"use strict";var H2=Cn(),Kpe=(e,t,n)=>{let s=new H2(e,n),r=new H2(t,n);return s.compare(r)||s.compareBuild(r)};q2.exports=Kpe});var W2=$((H0e,J2)=>{"use strict";var Xpe=UE(),efe=(e,t)=>e.sort((n,s)=>Xpe(n,s,t));J2.exports=efe});var Z2=$((q0e,Y2)=>{"use strict";var tfe=UE(),nfe=(e,t)=>e.sort((n,s)=>tfe(s,n,t));Y2.exports=nfe});var dh=$((J0e,K2)=>{"use strict";var rfe=ds(),sfe=(e,t,n)=>rfe(e,t,n)>0;K2.exports=sfe});var FE=$((W0e,X2)=>{"use strict";var ife=ds(),ofe=(e,t,n)=>ife(e,t,n)<0;X2.exports=ofe});var BB=$((Y0e,eH)=>{"use strict";var afe=ds(),cfe=(e,t,n)=>afe(e,t,n)===0;eH.exports=cfe});var xB=$((Z0e,tH)=>{"use strict";var ufe=ds(),lfe=(e,t,n)=>ufe(e,t,n)!==0;tH.exports=lfe});var ME=$((K0e,nH)=>{"use strict";var dfe=ds(),pfe=(e,t,n)=>dfe(e,t,n)>=0;nH.exports=pfe});var LE=$((X0e,rH)=>{"use strict";var ffe=ds(),hfe=(e,t,n)=>ffe(e,t,n)<=0;rH.exports=hfe});var QB=$((e_e,sH)=>{"use strict";var gfe=BB(),mfe=xB(),Afe=dh(),yfe=ME(),Efe=FE(),vfe=LE(),bfe=(e,t,n,s)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return gfe(e,n,s);case"!=":return mfe(e,n,s);case">":return Afe(e,n,s);case">=":return yfe(e,n,s);case"<":return Efe(e,n,s);case"<=":return vfe(e,n,s);default:throw new TypeError(`Invalid operator: ${t}`)}};sH.exports=bfe});var oH=$((t_e,iH)=>{"use strict";var wfe=Cn(),Ife=ia(),{safeRe:jE,t:VE}=td(),Cfe=(e,t)=>{if(e instanceof wfe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?jE[VE.COERCEFULL]:jE[VE.COERCE]);else{let c=t.includePrerelease?jE[VE.COERCERTLFULL]:jE[VE.COERCERTL],u;for(;(u=c.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(n===null)return null;let s=n[2],r=n[3]||"0",i=n[4]||"0",o=t.includePrerelease&&n[5]?`-${n[5]}`:"",a=t.includePrerelease&&n[6]?`+${n[6]}`:"";return Ife(`${s}.${r}.${i}${o}${a}`,t)};iH.exports=Cfe});var cH=$((n_e,aH)=>{"use strict";var Sfe=ia(),kfe=ed(),Rfe=Cn(),Bfe=(e,t,n)=>{if(!kfe.RELEASE_TYPES.includes(t))return null;let s=xfe(e,n);return s&&Qfe(s,t)},xfe=(e,t)=>{let n=e instanceof Rfe?e.version:e;return Sfe(n,t)},Qfe=(e,t)=>{if($fe(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},$fe=e=>e.startsWith("pre");aH.exports=Bfe});var lH=$((r_e,uH)=>{"use strict";var $B=class{constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let r=this.map.keys().next().value;this.delete(r)}this.map.set(t,n)}return this}};uH.exports=$B});var ps=$((s_e,hH)=>{"use strict";var Tfe=/\s+/g,TB=class e{constructor(t,n){if(n=Dfe(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof _B)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(Tfe," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(r=>!pH(r[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&Vfe(r[0])){this.set=[r];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let n=this.set[t];for(let s=0;s<n.length;s++)s>0&&(this.formatted+=" "),this.formatted+=n[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(jfe,"");let s=((this.options.includePrerelease&&Mfe)|(this.options.loose&&Lfe))+":"+t,r=dH.get(s);if(r)return r;let i=this.options.loose,o=i?Kn[Sn.HYPHENRANGELOOSE]:Kn[Sn.HYPHENRANGE];t=t.replace(o,ehe(this.options.includePrerelease)),Pt("hyphen replace",t),t=t.replace(Kn[Sn.COMPARATORTRIM],Ofe),Pt("comparator trim",t),t=t.replace(Kn[Sn.TILDETRIM],Ufe),Pt("tilde trim",t),t=t.replace(Kn[Sn.CARETTRIM],Ffe),Pt("caret trim",t);let a=t.split(" ").map(p=>Gfe(p,this.options)).join(" ").split(/\s+/).map(p=>Xfe(p,this.options));i&&(a=a.filter(p=>(Pt("loose invalid filter",p,this.options),!!p.match(Kn[Sn.COMPARATORLOOSE])))),Pt("range list",a);let c=new Map,u=a.map(p=>new _B(p,this.options));for(let p of u){if(pH(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return dH.set(s,d),d}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(s=>fH(s,n)&&t.set.some(r=>fH(r,n)&&s.every(i=>r.every(o=>i.intersects(o,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Nfe(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(the(this.set[n],t,this.options))return!0;return!1}};hH.exports=TB;var _fe=lH(),dH=new _fe,Dfe=_E(),_B=ph(),Pt=lh(),Nfe=Cn(),{safeRe:Kn,src:Pfe,t:Sn,comparatorTrimReplace:Ofe,tildeTrimReplace:Ufe,caretTrimReplace:Ffe}=td(),{FLAG_INCLUDE_PRERELEASE:Mfe,FLAG_LOOSE:Lfe}=ed(),jfe=new RegExp(Pfe[Sn.BUILD],"g"),pH=e=>e.value==="<0.0.0-0",Vfe=e=>e.value==="",fH=(e,t)=>{let n=!0,s=e.slice(),r=s.pop();for(;n&&s.length;)n=s.every(i=>r.intersects(i,t)),r=s.pop();return n},Gfe=(e,t)=>(e=e.replace(Kn[Sn.BUILD],""),Pt("comp",e,t),e=Jfe(e,t),Pt("caret",e),e=Hfe(e,t),Pt("tildes",e),e=Yfe(e,t),Pt("xrange",e),e=Kfe(e,t),Pt("stars",e),e),an=e=>!e||e.toLowerCase()==="x"||e==="*",zfe=(e,t,n)=>an(e)&&!an(t)||an(t)&&n&&!an(n),Hfe=(e,t)=>e.trim().split(/\s+/).map(n=>qfe(n,t)).join(" "),qfe=(e,t)=>{let n=t.loose?Kn[Sn.TILDELOOSE]:Kn[Sn.TILDE],s=t.includePrerelease?"-0":"";return e.replace(n,(r,i,o,a,c)=>{Pt("tilde",e,r,i,o,a,c);let u;return an(i)?u="":an(o)?u=`>=${i}.0.0${s} <${+i+1}.0.0-0`:an(a)?u=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:c?(Pt("replaceTilde pr",c),u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`):u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,Pt("tilde return",u),u})},Jfe=(e,t)=>e.trim().split(/\s+/).map(n=>Wfe(n,t)).join(" "),Wfe=(e,t)=>{Pt("caret",e,t);let n=t.loose?Kn[Sn.CARETLOOSE]:Kn[Sn.CARET],s=t.includePrerelease?"-0":"";return e.replace(n,(r,i,o,a,c)=>{Pt("caret",e,r,i,o,a,c);let u;return an(i)?u="":an(o)?u=`>=${i}.0.0${s} <${+i+1}.0.0-0`:an(a)?i==="0"?u=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${s} <${+i+1}.0.0-0`:c?(Pt("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(Pt("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),Pt("caret return",u),u})},Yfe=(e,t)=>(Pt("replaceXRanges",e,t),e.split(/\s+/).map(n=>Zfe(n,t)).join(" ")),Zfe=(e,t)=>{e=e.trim();let n=t.loose?Kn[Sn.XRANGELOOSE]:Kn[Sn.XRANGE];return e.replace(n,(s,r,i,o,a,c)=>{if(Pt("xRange",e,s,r,i,o,a,c),zfe(i,o,a))return e;let u=an(i),d=u||an(o),p=d||an(a),h=p;return r==="="&&h&&(r=""),c=t.includePrerelease?"-0":"",u?r===">"||r==="<"?s="<0.0.0-0":s="*":r&&h?(d&&(o=0),a=0,r===">"?(r=">=",d?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):r==="<="&&(r="<",d?i=+i+1:o=+o+1),r==="<"&&(c="-0"),s=`${r+i}.${o}.${a}${c}`):d?s=`>=${i}.0.0${c} <${+i+1}.0.0-0`:p&&(s=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Pt("xRange return",s),s})},Kfe=(e,t)=>(Pt("replaceStars",e,t),e.trim().replace(Kn[Sn.STAR],"")),Xfe=(e,t)=>(Pt("replaceGTE0",e,t),e.trim().replace(Kn[t.includePrerelease?Sn.GTE0PRE:Sn.GTE0],"")),ehe=e=>(t,n,s,r,i,o,a,c,u,d,p,h)=>(an(s)?n="":an(r)?n=`>=${s}.0.0${e?"-0":""}`:an(i)?n=`>=${s}.${r}.0${e?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,an(u)?c="":an(d)?c=`<${+u+1}.0.0-0`:an(p)?c=`<${u}.${+d+1}.0-0`:h?c=`<=${u}.${d}.${p}-${h}`:e?c=`<${u}.${d}.${+p+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),the=(e,t,n)=>{for(let s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let s=0;s<e.length;s++)if(Pt(e[s].semver),e[s].semver!==_B.ANY&&e[s].semver.prerelease.length>0){let r=e[s].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}});var ph=$((i_e,vH)=>{"use strict";var fh=Symbol("SemVer ANY"),PB=class e{static get ANY(){return fh}constructor(t,n){if(n=gH(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),NB("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===fh?this.value="":this.value=this.operator+this.semver.version,NB("comp",this)}parse(t){let n=this.options.loose?mH[AH.COMPARATORLOOSE]:mH[AH.COMPARATOR],s=t.match(n);if(!s)throw new TypeError(`Invalid comparator: ${t}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new yH(s[2],this.options.loose):this.semver=fh}toString(){return this.value}test(t){if(NB("Comparator.test",t,this.options.loose),this.semver===fh||t===fh)return!0;if(typeof t=="string")try{t=new yH(t,this.options)}catch{return!1}return DB(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new EH(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new EH(this.value,n).test(t.semver):(n=gH(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||DB(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||DB(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};vH.exports=PB;var gH=_E(),{safeRe:mH,t:AH}=td(),DB=QB(),NB=lh(),yH=Cn(),EH=ps()});var hh=$((o_e,bH)=>{"use strict";var nhe=ps(),rhe=(e,t,n)=>{try{t=new nhe(t,n)}catch{return!1}return t.test(e)};bH.exports=rhe});var IH=$((a_e,wH)=>{"use strict";var she=ps(),ihe=(e,t)=>new she(e,t).set.map(n=>n.map(s=>s.value).join(" ").trim().split(" "));wH.exports=ihe});var SH=$((c_e,CH)=>{"use strict";var ohe=Cn(),ahe=ps(),che=(e,t,n)=>{let s=null,r=null,i=null;try{i=new ahe(t,n)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||r.compare(o)===-1)&&(s=o,r=new ohe(s,n))}),s};CH.exports=che});var RH=$((u_e,kH)=>{"use strict";var uhe=Cn(),lhe=ps(),dhe=(e,t,n)=>{let s=null,r=null,i=null;try{i=new lhe(t,n)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||r.compare(o)===1)&&(s=o,r=new uhe(s,n))}),s};kH.exports=dhe});var QH=$((l_e,xH)=>{"use strict";var OB=Cn(),phe=ps(),BH=dh(),fhe=(e,t)=>{e=new phe(e,t);let n=new OB("0.0.0");if(e.test(n)||(n=new OB("0.0.0-0"),e.test(n)))return n;n=null;for(let s=0;s<e.set.length;++s){let r=e.set[s],i=null;r.forEach(o=>{let a=new OB(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||BH(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||BH(n,i))&&(n=i)}return n&&e.test(n)?n:null};xH.exports=fhe});var TH=$((d_e,$H)=>{"use strict";var hhe=ps(),ghe=(e,t)=>{try{return new hhe(e,t).range||"*"}catch{return null}};$H.exports=ghe});var GE=$((p_e,PH)=>{"use strict";var mhe=Cn(),NH=ph(),{ANY:Ahe}=NH,yhe=ps(),Ehe=hh(),_H=dh(),DH=FE(),vhe=LE(),bhe=ME(),whe=(e,t,n,s)=>{e=new mhe(e,s),t=new yhe(t,s);let r,i,o,a,c;switch(n){case">":r=_H,i=vhe,o=DH,a=">",c=">=";break;case"<":r=DH,i=bhe,o=_H,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Ehe(e,t,s))return!1;for(let u=0;u<t.set.length;++u){let d=t.set[u],p=null,h=null;if(d.forEach(g=>{g.semver===Ahe&&(g=new NH(">=0.0.0")),p=p||g,h=h||g,r(g.semver,p.semver,s)?p=g:o(g.semver,h.semver,s)&&(h=g)}),p.operator===a||p.operator===c||(!h.operator||h.operator===a)&&i(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};PH.exports=whe});var UH=$((f_e,OH)=>{"use strict";var Ihe=GE(),Che=(e,t,n)=>Ihe(e,t,">",n);OH.exports=Che});var MH=$((h_e,FH)=>{"use strict";var She=GE(),khe=(e,t,n)=>She(e,t,"<",n);FH.exports=khe});var VH=$((g_e,jH)=>{"use strict";var LH=ps(),Rhe=(e,t,n)=>(e=new LH(e,n),t=new LH(t,n),e.intersects(t,n));jH.exports=Rhe});var zH=$((m_e,GH)=>{"use strict";var Bhe=hh(),xhe=ds();GH.exports=(e,t,n)=>{let s=[],r=null,i=null,o=e.sort((d,p)=>xhe(d,p,n));for(let d of o)Bhe(d,t,n)?(i=d,r||(r=d)):(i&&s.push([r,i]),i=null,r=null);r&&s.push([r,null]);let a=[];for(let[d,p]of s)d===p?a.push(d):!p&&d===o[0]?a.push("*"):p?d===o[0]?a.push(`<=${p}`):a.push(`${d} - ${p}`):a.push(`>=${d}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var ZH=$((A_e,YH)=>{"use strict";var HH=ps(),MB=ph(),{ANY:UB}=MB,FB=hh(),LB=ds(),Qhe=(e,t,n={})=>{if(e===t)return!0;e=new HH(e,n),t=new HH(t,n);let s=!1;e:for(let r of e.set){for(let i of t.set){let o=The(r,i,n);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},$he=[new MB(">=0.0.0-0")],qH=[new MB(">=0.0.0")],The=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===UB){if(t.length===1&&t[0].semver===UB)return!0;n.includePrerelease?e=$he:e=qH}if(t.length===1&&t[0].semver===UB){if(n.includePrerelease)return!0;t=qH}let s=new Set,r,i;for(let g of e)g.operator===">"||g.operator===">="?r=JH(r,g,n):g.operator==="<"||g.operator==="<="?i=WH(i,g,n):s.add(g.semver);if(s.size>1)return null;let o;if(r&&i){if(o=LB(r.semver,i.semver,n),o>0)return null;if(o===0&&(r.operator!==">="||i.operator!=="<="))return null}for(let g of s){if(r&&!FB(g,String(r),n)||i&&!FB(g,String(i),n))return null;for(let m of t)if(!FB(g,String(m),n))return!1;return!0}let a,c,u,d,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,h=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let g of t){if(d=d||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator===">"||g.operator===">="){if(a=JH(r,g,n),a===g&&a!==r)return!1}else if(r.operator===">="&&!g.test(r.semver))return!1}if(i){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator==="<"||g.operator==="<="){if(c=WH(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!g.test(i.semver))return!1}if(!g.operator&&(i||r)&&o!==0)return!1}return!(r&&u&&!i&&o!==0||i&&d&&!r&&o!==0||h||p)},JH=(e,t,n)=>{if(!e)return t;let s=LB(e.semver,t.semver,n);return s>0?e:s<0||t.operator===">"&&e.operator===">="?t:e},WH=(e,t,n)=>{if(!e)return t;let s=LB(e.semver,t.semver,n);return s<0?e:s>0||t.operator==="<"&&e.operator==="<="?t:e};YH.exports=Qhe});var VB=$((y_e,eq)=>{"use strict";var jB=td(),KH=ed(),_he=Cn(),XH=SB(),Dhe=ia(),Nhe=I2(),Phe=S2(),Ohe=B2(),Uhe=$2(),Fhe=_2(),Mhe=N2(),Lhe=O2(),jhe=F2(),Vhe=ds(),Ghe=V2(),zhe=z2(),Hhe=UE(),qhe=W2(),Jhe=Z2(),Whe=dh(),Yhe=FE(),Zhe=BB(),Khe=xB(),Xhe=ME(),ege=LE(),tge=QB(),nge=oH(),rge=cH(),sge=ph(),ige=ps(),oge=hh(),age=IH(),cge=SH(),uge=RH(),lge=QH(),dge=TH(),pge=GE(),fge=UH(),hge=MH(),gge=VH(),mge=zH(),Age=ZH();eq.exports={parse:Dhe,valid:Nhe,clean:Phe,inc:Ohe,diff:Uhe,major:Fhe,minor:Mhe,patch:Lhe,prerelease:jhe,compare:Vhe,rcompare:Ghe,compareLoose:zhe,compareBuild:Hhe,sort:qhe,rsort:Jhe,gt:Whe,lt:Yhe,eq:Zhe,neq:Khe,gte:Xhe,lte:ege,cmp:tge,coerce:nge,truncate:rge,Comparator:sge,Range:ige,satisfies:oge,toComparators:age,maxSatisfying:cge,minSatisfying:uge,minVersion:lge,validRange:dge,outside:pge,gtr:fge,ltr:hge,intersects:gge,simplifyRange:mge,subset:Age,SemVer:_he,re:jB.re,src:jB.src,tokens:jB.t,SEMVER_SPEC_VERSION:KH.SEMVER_SPEC_VERSION,RELEASE_TYPES:KH.RELEASE_TYPES,compareIdentifiers:XH.compareIdentifiers,rcompareIdentifiers:XH.rcompareIdentifiers}});var sRe={};Wr(sRe,{post:()=>V6});module.exports=W6(sRe);_n();var j6=Z(require("path"));_n();_n();var qk;(function(e){e.Pass="Pass",e.Fail="Fail",e.Error="Error",e.Skipped="Skipped",e.Unknown="Unknown"})(qk||(qk={}));var iV;(function(e){e.High="high",e.Medium="medium",e.Low="low"})(iV||(iV={}));var oV;(function(e){e.Skyramp="skyramp",e.External="external"})(oV||(oV={}));var Jk;(function(e){e.Update="UPDATE",e.Regenerate="REGENERATE",e.Delete="DELETE",e.Verify="VERIFY",e.Ignore="IGNORE"})(Jk||(Jk={}));var aV;(function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"})(aV||(aV={}));var we={};Wr(we,{BRAND:()=>Ice,DIRTY:()=>lc,EMPTY_PATH:()=>tce,INVALID:()=>ke,NEVER:()=>aue,OK:()=>Dn,ParseStatus:()=>bn,Schema:()=>Ye,ZodAny:()=>Mo,ZodArray:()=>ji,ZodBigInt:()=>pc,ZodBoolean:()=>fc,ZodBranded:()=>Af,ZodCatch:()=>Cc,ZodDate:()=>hc,ZodDefault:()=>Ic,ZodDiscriminatedUnion:()=>Cy,ZodEffects:()=>ss,ZodEnum:()=>bc,ZodError:()=>dr,ZodFirstPartyTypeKind:()=>$e,ZodFunction:()=>ky,ZodIntersection:()=>yc,ZodIssueCode:()=>j,ZodLazy:()=>Ec,ZodLiteral:()=>vc,ZodMap:()=>Bl,ZodNaN:()=>Ql,ZodNativeEnum:()=>wc,ZodNever:()=>Bs,ZodNull:()=>mc,ZodNullable:()=>ri,ZodNumber:()=>dc,ZodObject:()=>pr,ZodOptional:()=>ns,ZodParsedType:()=>se,ZodPipeline:()=>yf,ZodPromise:()=>Lo,ZodReadonly:()=>Sc,ZodRecord:()=>Sy,ZodSchema:()=>Ye,ZodSet:()=>xl,ZodString:()=>Fo,ZodSymbol:()=>kl,ZodTransformer:()=>ss,ZodTuple:()=>ni,ZodType:()=>Ye,ZodUndefined:()=>gc,ZodUnion:()=>Ac,ZodUnknown:()=>Li,ZodVoid:()=>Rl,addIssueToContext:()=>ee,any:()=>Tce,array:()=>Pce,bigint:()=>Rce,boolean:()=>yV,coerce:()=>oue,custom:()=>gV,date:()=>Bce,datetimeRegex:()=>fV,defaultErrorMap:()=>Fi,discriminatedUnion:()=>Mce,effect:()=>Kce,enum:()=>Wce,function:()=>Hce,getErrorMap:()=>Il,getParsedType:()=>ti,instanceof:()=>Sce,intersection:()=>Lce,isAborted:()=>wy,isAsync:()=>Cl,isDirty:()=>Iy,isValid:()=>Uo,late:()=>Cce,lazy:()=>qce,literal:()=>Jce,makeIssue:()=>mf,map:()=>Gce,nan:()=>kce,nativeEnum:()=>Yce,never:()=>Dce,null:()=>$ce,nullable:()=>eue,number:()=>AV,object:()=>Oce,objectUtil:()=>Wk,oboolean:()=>iue,onumber:()=>sue,optional:()=>Xce,ostring:()=>rue,pipeline:()=>nue,preprocess:()=>tue,promise:()=>Zce,quotelessJson:()=>Kae,record:()=>Vce,set:()=>zce,setErrorMap:()=>ece,strictObject:()=>Uce,string:()=>mV,symbol:()=>xce,transformer:()=>Kce,tuple:()=>jce,undefined:()=>Qce,union:()=>Fce,unknown:()=>_ce,util:()=>nt,void:()=>Nce});var nt;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let i={};for(let o of r)i[o]=o;return i},e.getValidEnumValues=r=>{let i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(let a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let i=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(let o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(nt||(nt={}));var Wk;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wk||(Wk={}));var se=nt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ti=e=>{switch(typeof e){case"undefined":return se.undefined;case"string":return se.string;case"number":return Number.isNaN(e)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(e)?se.array:e===null?se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?se.promise:typeof Map<"u"&&e instanceof Map?se.map:typeof Set<"u"&&e instanceof Set?se.set:typeof Date<"u"&&e instanceof Date?se.date:se.object;default:return se.unknown}};var j=nt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Kae=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),dr=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return r(this),s}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,nt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},s=[];for(let r of this.issues)if(r.path.length>0){let i=r.path[0];n[i]=n[i]||[],n[i].push(t(r))}else s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}};dr.create=e=>new dr(e);var Xae=(e,t)=>{let n;switch(e.code){case j.invalid_type:e.received===se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case j.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,nt.jsonStringifyReplacer)}`;break;case j.unrecognized_keys:n=`Unrecognized key(s) in object: ${nt.joinValues(e.keys,", ")}`;break;case j.invalid_union:n="Invalid input";break;case j.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${nt.joinValues(e.options)}`;break;case j.invalid_enum_value:n=`Invalid enum value. Expected ${nt.joinValues(e.options)}, received '${e.received}'`;break;case j.invalid_arguments:n="Invalid function arguments";break;case j.invalid_return_type:n="Invalid function return type";break;case j.invalid_date:n="Invalid date";break;case j.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:nt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case j.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case j.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case j.custom:n="Invalid input";break;case j.invalid_intersection_types:n="Intersection results could not be merged";break;case j.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case j.not_finite:n="Number must be finite";break;default:n=t.defaultError,nt.assertNever(e)}return{message:n}},Fi=Xae;var cV=Fi;function ece(e){cV=e}function Il(){return cV}var mf=e=>{let{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="",c=s.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},tce=[];function ee(e,t){let n=Il(),s=mf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Fi?void 0:Fi].filter(r=>!!r)});e.common.issues.push(s)}var bn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let s=[];for(let r of n){if(r.status==="aborted")return ke;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){let s=[];for(let r of n){let i=await r.key,o=await r.value;s.push({key:i,value:o})}return e.mergeObjectSync(t,s)}static mergeObjectSync(t,n){let s={};for(let r of n){let{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return ke;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}},ke=Object.freeze({status:"aborted"}),lc=e=>({status:"dirty",value:e}),Dn=e=>({status:"valid",value:e}),wy=e=>e.status==="aborted",Iy=e=>e.status==="dirty",Uo=e=>e.status==="valid",Cl=e=>typeof Promise<"u"&&e instanceof Promise;var fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(fe||(fe={}));var rs=class{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},uV=(e,t)=>{if(Uo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new dr(e.common.issues);return this._error=n,this._error}}};function Ge(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??s??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:r}}var Ye=class{get description(){return this._def.description}_getType(t){return ti(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ti(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new bn,ctx:{common:t.parent.common,data:t.data,parsedType:ti(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Cl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){let s={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ti(t)},r=this._parseSync({data:t,path:s.path,parent:s});return uV(s,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ti(t)};if(!this["~standard"].async)try{let s=this._parseSync({data:t,path:[],parent:n});return Uo(s)?{value:s.value}:{issues:n.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>Uo(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){let s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){let s={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ti(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(Cl(r)?r:Promise.resolve(r));return uV(s,i)}refine(t,n){let s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{let o=t(r),a=()=>i.addIssue({code:j.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new ss({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ns.create(this,this._def)}nullable(){return ri.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ji.create(this)}promise(){return Lo.create(this,this._def)}or(t){return Ac.create([this,t],this._def)}and(t){return yc.create(this,t,this._def)}transform(t){return new ss({...Ge(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Ic({...Ge(this._def),innerType:this,defaultValue:n,typeName:$e.ZodDefault})}brand(){return new Af({typeName:$e.ZodBranded,type:this,...Ge(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Cc({...Ge(this._def),innerType:this,catchValue:n,typeName:$e.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return yf.create(this,t)}readonly(){return Sc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},nce=/^c[^\s-]{8,}$/i,rce=/^[0-9a-z]+$/,sce=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ice=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,oce=/^[a-z0-9_-]{21}$/i,ace=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cce=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,uce=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,lce="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Yk,dce=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,pce=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,fce=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,hce=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gce=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mce=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dV="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Ace=new RegExp(`^${dV}$`);function pV(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function yce(e){return new RegExp(`^${pV(e)}$`)}function fV(e){let t=`${dV}T${pV(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Ece(e,t){return!!((t==="v4"||!t)&&dce.test(e)||(t==="v6"||!t)&&fce.test(e))}function vce(e,t){if(!ace.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function bce(e,t){return!!((t==="v4"||!t)&&pce.test(e)||(t==="v6"||!t)&&hce.test(e))}var Fo=class e extends Ye{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==se.string){let i=this._getOrReturnCtx(t);return ee(i,{code:j.invalid_type,expected:se.string,received:i.parsedType}),ke}let s=new bn,r;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),ee(r,{code:j.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),ee(r,{code:j.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){let o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?ee(r,{code:j.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&ee(r,{code:j.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")uce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"email",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")Yk||(Yk=new RegExp(lce,"u")),Yk.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"emoji",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")ice.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"uuid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")oce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"nanoid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")nce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"cuid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")rce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"cuid2",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")sce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"ulid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),ee(r,{validation:"url",code:j.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"regex",code:j.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?fV(i).test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?Ace.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?yce(i).test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{code:j.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?cce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"duration",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?Ece(t.data,i.version)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"ip",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?vce(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"jwt",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?bce(t.data,i.version)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"cidr",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?gce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"base64",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?mce.test(t.data)||(r=this._getOrReturnCtx(t,r),ee(r,{validation:"base64url",code:j.invalid_string,message:i.message}),s.dirty()):nt.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(r=>t.test(r),{validation:n,code:j.invalid_string,...fe.errToObj(s)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...fe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...fe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...fe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...fe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...fe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...fe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...fe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...fe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...fe.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...fe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...fe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...fe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...fe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...fe.errToObj(n)})}nonempty(t){return this.min(1,fe.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Fo.create=e=>new Fo({checks:[],typeName:$e.ZodString,coerce:e?.coerce??!1,...Ge(e)});function wce(e,t){let n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return i%o/10**r}var dc=class e extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==se.number){let i=this._getOrReturnCtx(t);return ee(i,{code:j.invalid_type,expected:se.number,received:i.parsedType}),ke}let s,r=new bn;for(let i of this._def.checks)i.kind==="int"?nt.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{code:j.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?wce(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),ee(s,{code:j.not_finite,message:i.message}),r.dirty()):nt.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:fe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:fe.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&nt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}};dc.create=e=>new dc({checks:[],typeName:$e.ZodNumber,coerce:e?.coerce||!1,...Ge(e)});var pc=class e extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==se.bigint)return this._getInvalidInput(t);let s,r=new bn;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),ee(s,{code:j.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):nt.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return ee(n,{code:j.invalid_type,expected:se.bigint,received:n.parsedType}),ke}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:fe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};pc.create=e=>new pc({checks:[],typeName:$e.ZodBigInt,coerce:e?.coerce??!1,...Ge(e)});var fc=class extends Ye{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==se.boolean){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.boolean,received:s.parsedType}),ke}return Dn(t.data)}};fc.create=e=>new fc({typeName:$e.ZodBoolean,coerce:e?.coerce||!1,...Ge(e)});var hc=class e extends Ye{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==se.date){let i=this._getOrReturnCtx(t);return ee(i,{code:j.invalid_type,expected:se.date,received:i.parsedType}),ke}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return ee(i,{code:j.invalid_date}),ke}let s=new bn,r;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),ee(r,{code:j.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),ee(r,{code:j.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):nt.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:fe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:fe.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};hc.create=e=>new hc({checks:[],coerce:e?.coerce||!1,typeName:$e.ZodDate,...Ge(e)});var kl=class extends Ye{_parse(t){if(this._getType(t)!==se.symbol){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.symbol,received:s.parsedType}),ke}return Dn(t.data)}};kl.create=e=>new kl({typeName:$e.ZodSymbol,...Ge(e)});var gc=class extends Ye{_parse(t){if(this._getType(t)!==se.undefined){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.undefined,received:s.parsedType}),ke}return Dn(t.data)}};gc.create=e=>new gc({typeName:$e.ZodUndefined,...Ge(e)});var mc=class extends Ye{_parse(t){if(this._getType(t)!==se.null){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.null,received:s.parsedType}),ke}return Dn(t.data)}};mc.create=e=>new mc({typeName:$e.ZodNull,...Ge(e)});var Mo=class extends Ye{constructor(){super(...arguments),this._any=!0}_parse(t){return Dn(t.data)}};Mo.create=e=>new Mo({typeName:$e.ZodAny,...Ge(e)});var Li=class extends Ye{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Dn(t.data)}};Li.create=e=>new Li({typeName:$e.ZodUnknown,...Ge(e)});var Bs=class extends Ye{_parse(t){let n=this._getOrReturnCtx(t);return ee(n,{code:j.invalid_type,expected:se.never,received:n.parsedType}),ke}};Bs.create=e=>new Bs({typeName:$e.ZodNever,...Ge(e)});var Rl=class extends Ye{_parse(t){if(this._getType(t)!==se.undefined){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.void,received:s.parsedType}),ke}return Dn(t.data)}};Rl.create=e=>new Rl({typeName:$e.ZodVoid,...Ge(e)});var ji=class e extends Ye{_parse(t){let{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==se.array)return ee(n,{code:j.invalid_type,expected:se.array,received:n.parsedType}),ke;if(r.exactLength!==null){let o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(ee(n,{code:o?j.too_big:j.too_small,minimum:a?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(ee(n,{code:j.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(ee(n,{code:j.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new rs(n,o,n.path,a)))).then(o=>bn.mergeArray(s,o));let i=[...n.data].map((o,a)=>r.type._parseSync(new rs(n,o,n.path,a)));return bn.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:fe.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:fe.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:fe.toString(n)}})}nonempty(t){return this.min(1,t)}};ji.create=(e,t)=>new ji({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...Ge(t)});function Sl(e){if(e instanceof pr){let t={};for(let n in e.shape){let s=e.shape[n];t[n]=ns.create(Sl(s))}return new pr({...e._def,shape:()=>t})}else return e instanceof ji?new ji({...e._def,type:Sl(e.element)}):e instanceof ns?ns.create(Sl(e.unwrap())):e instanceof ri?ri.create(Sl(e.unwrap())):e instanceof ni?ni.create(e.items.map(t=>Sl(t))):e}var pr=class e extends Ye{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=nt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==se.object){let u=this._getOrReturnCtx(t);return ee(u,{code:j.invalid_type,expected:se.object,received:u.parsedType}),ke}let{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Bs&&this._def.unknownKeys==="strip"))for(let u in r.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let d=i[u],p=r.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new rs(r,p,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof Bs){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:r.data[d]}});else if(u==="strict")a.length>0&&(ee(r,{code:j.unrecognized_keys,keys:a}),s.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of a){let p=r.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new rs(r,p,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of c){let p=await d.key,h=await d.value;u.push({key:p,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>bn.mergeObjectSync(s,u)):bn.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return fe.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{let r=this._def.errorMap?.(n,s).message??s.defaultError;return n.code==="unrecognized_keys"?{message:fe.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:$e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let s of nt.objectKeys(t))t[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let s of nt.objectKeys(this.shape))t[s]||(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}deepPartial(){return Sl(this)}partial(t){let n={};for(let s of nt.objectKeys(this.shape)){let r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let s of nt.objectKeys(this.shape))if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof ns;)i=i._def.innerType;n[s]=i}return new e({...this._def,shape:()=>n})}keyof(){return hV(nt.objectKeys(this.shape))}};pr.create=(e,t)=>new pr({shape:()=>e,unknownKeys:"strip",catchall:Bs.create(),typeName:$e.ZodObject,...Ge(t)});pr.strictCreate=(e,t)=>new pr({shape:()=>e,unknownKeys:"strict",catchall:Bs.create(),typeName:$e.ZodObject,...Ge(t)});pr.lazycreate=(e,t)=>new pr({shape:e,unknownKeys:"strip",catchall:Bs.create(),typeName:$e.ZodObject,...Ge(t)});var Ac=class extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new dr(a.ctx.common.issues));return ee(n,{code:j.invalid_union,unionErrors:o}),ke}if(n.common.async)return Promise.all(s.map(async i=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i,o=[];for(let c of s){let u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new dr(c));return ee(n,{code:j.invalid_union,unionErrors:a}),ke}}get options(){return this._def.options}};Ac.create=(e,t)=>new Ac({options:e,typeName:$e.ZodUnion,...Ge(t)});var Mi=e=>e instanceof Ec?Mi(e.schema):e instanceof ss?Mi(e.innerType()):e instanceof vc?[e.value]:e instanceof bc?e.options:e instanceof wc?nt.objectValues(e.enum):e instanceof Ic?Mi(e._def.innerType):e instanceof gc?[void 0]:e instanceof mc?[null]:e instanceof ns?[void 0,...Mi(e.unwrap())]:e instanceof ri?[null,...Mi(e.unwrap())]:e instanceof Af||e instanceof Sc?Mi(e.unwrap()):e instanceof Cc?Mi(e._def.innerType):[],Cy=class e extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.object)return ee(n,{code:j.invalid_type,expected:se.object,received:n.parsedType}),ke;let s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ee(n,{code:j.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),ke)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){let r=new Map;for(let i of n){let o=Mi(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new e({typeName:$e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...Ge(s)})}};function Zk(e,t){let n=ti(e),s=ti(t);if(e===t)return{valid:!0,data:e};if(n===se.object&&s===se.object){let r=nt.objectKeys(t),i=nt.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(let a of i){let c=Zk(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===se.array&&s===se.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let i=0;i<e.length;i++){let o=e[i],a=t[i],c=Zk(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===se.date&&s===se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var yc=class extends Ye{_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(wy(i)||wy(o))return ke;let a=Zk(i.value,o.value);return a.valid?((Iy(i)||Iy(o))&&n.dirty(),{status:n.value,value:a.data}):(ee(s,{code:j.invalid_intersection_types}),ke)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};yc.create=(e,t,n)=>new yc({left:e,right:t,typeName:$e.ZodIntersection,...Ge(n)});var ni=class e extends Ye{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==se.array)return ee(s,{code:j.invalid_type,expected:se.array,received:s.parsedType}),ke;if(s.data.length<this._def.items.length)return ee(s,{code:j.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ke;!this._def.rest&&s.data.length>this._def.items.length&&(ee(s,{code:j.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...s.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new rs(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>bn.mergeArray(n,o)):bn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ni.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ni({items:e,typeName:$e.ZodTuple,rest:null,...Ge(t)})};var Sy=class e extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==se.object)return ee(s,{code:j.invalid_type,expected:se.object,received:s.parsedType}),ke;let r=[],i=this._def.keyType,o=this._def.valueType;for(let a in s.data)r.push({key:i._parse(new rs(s,a,s.path,a)),value:o._parse(new rs(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?bn.mergeObjectAsync(n,r):bn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof Ye?new e({keyType:t,valueType:n,typeName:$e.ZodRecord,...Ge(s)}):new e({keyType:Fo.create(),valueType:t,typeName:$e.ZodRecord,...Ge(n)})}},Bl=class extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==se.map)return ee(s,{code:j.invalid_type,expected:se.map,received:s.parsedType}),ke;let r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],u)=>({key:r._parse(new rs(s,a,s.path,[u,"key"])),value:i._parse(new rs(s,c,s.path,[u,"value"]))}));if(s.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return ke;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return ke;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}};Bl.create=(e,t,n)=>new Bl({valueType:t,keyType:e,typeName:$e.ZodMap,...Ge(n)});var xl=class e extends Ye{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==se.set)return ee(s,{code:j.invalid_type,expected:se.set,received:s.parsedType}),ke;let r=this._def;r.minSize!==null&&s.data.size<r.minSize.value&&(ee(s,{code:j.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&s.data.size>r.maxSize.value&&(ee(s,{code:j.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let i=this._def.valueType;function o(c){let u=new Set;for(let d of c){if(d.status==="aborted")return ke;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}let a=[...s.data.values()].map((c,u)=>i._parse(new rs(s,c,s.path,u)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:fe.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:fe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};xl.create=(e,t)=>new xl({valueType:e,minSize:null,maxSize:null,typeName:$e.ZodSet,...Ge(t)});var ky=class e extends Ye{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.function)return ee(n,{code:j.invalid_type,expected:se.function,received:n.parsedType}),ke;function s(a,c){return mf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Il(),Fi].filter(u=>!!u),issueData:{code:j.invalid_arguments,argumentsError:c}})}function r(a,c){return mf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Il(),Fi].filter(u=>!!u),issueData:{code:j.invalid_return_type,returnTypeError:c}})}let i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Lo){let a=this;return Dn(async function(...c){let u=new dr([]),d=await a._def.args.parseAsync(c,i).catch(g=>{throw u.addIssue(s(c,g)),u}),p=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(p,i).catch(g=>{throw u.addIssue(r(p,g)),u})})}else{let a=this;return Dn(function(...c){let u=a._def.args.safeParse(c,i);if(!u.success)throw new dr([s(c,u.error)]);let d=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(d,i);if(!p.success)throw new dr([r(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ni.create(t).rest(Li.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new e({args:t||ni.create([]).rest(Li.create()),returns:n||Li.create(),typeName:$e.ZodFunction,...Ge(s)})}},Ec=class extends Ye{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ec.create=(e,t)=>new Ec({getter:e,typeName:$e.ZodLazy,...Ge(t)});var vc=class extends Ye{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return ee(n,{received:n.data,code:j.invalid_literal,expected:this._def.value}),ke}return{status:"valid",value:t.data}}get value(){return this._def.value}};vc.create=(e,t)=>new vc({value:e,typeName:$e.ZodLiteral,...Ge(t)});function hV(e,t){return new bc({values:e,typeName:$e.ZodEnum,...Ge(t)})}var bc=class e extends Ye{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),s=this._def.values;return ee(n,{expected:nt.joinValues(s),received:n.parsedType,code:j.invalid_type}),ke}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),s=this._def.values;return ee(n,{received:n.data,code:j.invalid_enum_value,options:s}),ke}return Dn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}};bc.create=hV;var wc=class extends Ye{_parse(t){let n=nt.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==se.string&&s.parsedType!==se.number){let r=nt.objectValues(n);return ee(s,{expected:nt.joinValues(r),received:s.parsedType,code:j.invalid_type}),ke}if(this._cache||(this._cache=new Set(nt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=nt.objectValues(n);return ee(s,{received:s.data,code:j.invalid_enum_value,options:r}),ke}return Dn(t.data)}get enum(){return this._def.values}};wc.create=(e,t)=>new wc({values:e,typeName:$e.ZodNativeEnum,...Ge(t)});var Lo=class extends Ye{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.promise&&n.common.async===!1)return ee(n,{code:j.invalid_type,expected:se.promise,received:n.parsedType}),ke;let s=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return Dn(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Lo.create=(e,t)=>new Lo({type:e,typeName:$e.ZodPromise,...Ge(t)});var ss=class extends Ye{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{ee(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){let o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return ke;let c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?ke:c.status==="dirty"?lc(c.value):n.value==="dirty"?lc(c.value):c});{if(n.value==="aborted")return ke;let a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?ke:a.status==="dirty"?lc(a.value):n.value==="dirty"?lc(a.value):a}}if(r.type==="refinement"){let o=a=>{let c=r.refinement(a,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){let a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?ke:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?ke:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){let o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Uo(o))return ke;let a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Uo(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):ke);nt.assertNever(r)}};ss.create=(e,t,n)=>new ss({schema:e,typeName:$e.ZodEffects,effect:t,...Ge(n)});ss.createWithPreprocess=(e,t,n)=>new ss({schema:t,effect:{type:"preprocess",transform:e},typeName:$e.ZodEffects,...Ge(n)});var ns=class extends Ye{_parse(t){return this._getType(t)===se.undefined?Dn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ns.create=(e,t)=>new ns({innerType:e,typeName:$e.ZodOptional,...Ge(t)});var ri=class extends Ye{_parse(t){return this._getType(t)===se.null?Dn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ri.create=(e,t)=>new ri({innerType:e,typeName:$e.ZodNullable,...Ge(t)});var Ic=class extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return n.parsedType===se.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Ic.create=(e,t)=>new Ic({innerType:e,typeName:$e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ge(t)});var Cc=class extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Cl(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new dr(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new dr(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};Cc.create=(e,t)=>new Cc({innerType:e,typeName:$e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ge(t)});var Ql=class extends Ye{_parse(t){if(this._getType(t)!==se.nan){let s=this._getOrReturnCtx(t);return ee(s,{code:j.invalid_type,expected:se.nan,received:s.parsedType}),ke}return{status:"valid",value:t.data}}};Ql.create=e=>new Ql({typeName:$e.ZodNaN,...Ge(e)});var Ice=Symbol("zod_brand"),Af=class extends Ye{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}},yf=class e extends Ye{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?ke:i.status==="dirty"?(n.dirty(),lc(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{let r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?ke:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new e({in:t,out:n,typeName:$e.ZodPipeline})}},Sc=class extends Ye{_parse(t){let n=this._def.innerType._parse(t),s=r=>(Uo(r)&&(r.value=Object.freeze(r.value)),r);return Cl(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}};Sc.create=(e,t)=>new Sc({innerType:e,typeName:$e.ZodReadonly,...Ge(t)});function lV(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function gV(e,t={},n){return e?Mo.create().superRefine((s,r)=>{let i=e(s);if(i instanceof Promise)return i.then(o=>{if(!o){let a=lV(t,s),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}});if(!i){let o=lV(t,s),a=o.fatal??n??!0;r.addIssue({code:"custom",...o,fatal:a})}}):Mo.create()}var Cce={object:pr.lazycreate},$e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})($e||($e={}));var Sce=(e,t={message:`Input not instance of ${e.name}`})=>gV(n=>n instanceof e,t),mV=Fo.create,AV=dc.create,kce=Ql.create,Rce=pc.create,yV=fc.create,Bce=hc.create,xce=kl.create,Qce=gc.create,$ce=mc.create,Tce=Mo.create,_ce=Li.create,Dce=Bs.create,Nce=Rl.create,Pce=ji.create,Oce=pr.create,Uce=pr.strictCreate,Fce=Ac.create,Mce=Cy.create,Lce=yc.create,jce=ni.create,Vce=Sy.create,Gce=Bl.create,zce=xl.create,Hce=ky.create,qce=Ec.create,Jce=vc.create,Wce=bc.create,Yce=wc.create,Zce=Lo.create,Kce=ss.create,Xce=ns.create,eue=ri.create,tue=ss.createWithPreprocess,nue=yf.create,rue=()=>mV().optional(),sue=()=>AV().optional(),iue=()=>yV().optional(),oue={string:(e=>Fo.create({...e,coerce:!0})),number:(e=>dc.create({...e,coerce:!0})),boolean:(e=>fc.create({...e,coerce:!0})),bigint:(e=>pc.create({...e,coerce:!0})),date:(e=>hc.create({...e,coerce:!0}))};var aue=ke;var EV=["playwright","pytest","robot","junit","vitest","jest","mocha","go","rspec","jasmine"];var vV="skyramp_session_storage.json";var Kk;(function(e){e.PYTHON="python",e.TYPESCRIPT="typescript",e.JAVASCRIPT="javascript",e.JAVA="java"})(Kk||(Kk={}));var si;(function(e){e.SMOKE="smoke",e.FUZZ="fuzz",e.CONTRACT="contract",e.LOAD="load",e.INTEGRATION="integration",e.E2E="e2e",e.UI="ui",e.UNIT="unit",e.UNKNOWN="unknown"})(si||(si={}));var AQe=[si.CONTRACT,si.INTEGRATION,si.E2E,si.UI];var bV;(function(e){e.Rest="rest",e.Grpc="grpc",e.Kafka="kafka"})(bV||(bV={}));var Ry;(function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e.OPTIONS="OPTIONS"})(Ry||(Ry={}));var Ef;(function(e){e.LOCAL="local",e.DOCKER="docker",e.KUBERNETES="k8s"})(Ef||(Ef={}));var cue=we.nativeEnum(Ef),uue=we.preprocess(e=>e==="kubernetes"?Ef.KUBERNETES:e,cue);var lue=we.object({language:we.nativeEnum(Kk).describe("Programming language for the generated test (default: python). Must be one of: python, typescript, javascript, java"),framework:we.string().describe(`Testing framework to use. Supported: ${EV.join(", ")} (e.g. pytest for python, playwright/vitest/jest for js/ts, junit for java).`)}),wV=we.object({...lue.shape,deployDashboard:we.boolean().default(!1).describe("Whether to deploy the Skyramp dashboard for test monitoring"),runtime:uue.default(Ef.LOCAL).describe("Runtime environment (local, docker, or k8s; accepts kubernetes as an alias)"),dockerNetwork:we.string().default("").describe("Docker network name to use for containerized testing"),dockerWorkerPort:we.number().int().min(0).max(65535).default(0).describe("Port number for the Docker worker service"),k8sNamespace:we.string().default("").describe("Kubernetes namespace for deployment"),k8sConfig:we.string().default("").describe("Path to Kubernetes configuration file"),k8sContext:we.string().default("").describe("Kubernetes context to use"),authHeader:we.string().default("").describe("Name of the HTTP header that carries the auth credential. Common values: 'Authorization' (Bearer/Basic/Token auth), 'X-Api-Key', 'X-Auth-Token', 'Cookie'. Other accepted values: 'X-Access-Token', 'X-OAuth-Token', 'X-Client-ID', 'X-Client-Secret', 'X-Client-Token', 'X-GitHub-Token', 'X-Firebase-AppCheck', 'Proxy-Authorization', 'Fastly-Key', 'Heroku-Bearer'. Pass empty string to document an unauthenticated endpoint in the generated test's assertions. This is the header KEY name (e.g., 'X-Api-Key'), NOT the token value."),authScheme:we.string().default("").describe("Only for Authorization headers. The literal prefix before the token (e.g., 'Bearer' produces 'Authorization: Bearer <token>'). Common values: 'Bearer', 'Basic', 'Token'. If the API sends raw tokens with no prefix (e.g., 'Authorization: eyJ...'), leave empty or omit. Ignored when authHeader is not 'Authorization'."),insecure:we.boolean().default(!1).describe("Whether to allow insecure SSL connections for HTTPS endpoints"),output:we.string().optional().refine(e=>!e||e===""?!0:[".py",".ts",".js",".java"].some(n=>e.endsWith(n)),{message:"Output file must have one of these extensions: .py, .ts, .js, .java"}).describe("Name of the output test file. For Playwright, name the file the way the repository names its tests: read the test files already in outputDir and match their spelling. Use *.test.ts where they use it, *.spec.ts otherwise (e.g. contract_math_add.spec.ts, fuzz_orders.test.ts). For other frameworks (pytest, junit), standard extensions are fine (.py, .java). Optional \u2014 when omitted, Skyramp generates a default name."),outputDir:we.string().describe("MUST be absolute path to the directory where test files will be generated. If not provided, the CURRENT WORKING DIRECTORY will be used WITHOUT ANY SUBDIRECTORIES"),force:we.boolean().default(!0).describe("Whether to overwrite existing files in the output directory"),mockPort:we.number().int().min(0).max(65535).default(0).describe("Port number for the mock server"),optionalFields:we.boolean().default(!1).describe("Whether to include optional fields in the generated test/mock"),prompt:we.string().describe("The prompt user provided to generate the test")}),yQe=we.object({playwrightInput:we.string().describe("MUST be absolute path to the playwright input file like /path/to/playwright-ui-test.zip and MUST be a zip file captured using start_trace_collection tool"),playwrightStoragePath:we.string().optional().describe("Path to LOAD existing playwright session storage for trace collection with playwright enabled. THE PATH MUST BE AN ABSOLUTE PATH LIKE /Users/<path>/<filename>.json"),playwrightSaveStoragePath:we.string().optional().describe(`Path to SAVE Playwright session storage after trace collection. Omit this argument to use the default \u2014 \`${vV}\` resolved against the active outputDir, which produces an absolute path like '/abs/outputDir/${vV}'. SAVES authentication state (cookies, localStorage, sessionStorage) when the browser closes. To LOAD existing auth state, use playwrightStoragePath instead. Can be a bare filename (joined with outputDir), a relative path, or an absolute path.`),playwrightViewportSize:we.union([we.enum(["","hd","full-hd","2k"]),we.string().regex(/^\d+,\d+$/,"Custom viewport must be 'WIDTH,HEIGHT' format (e.g., '1920,1080')")]).default("").describe("Viewport size for playwright browser. THE VALUE MUST BE IN THE FORMAT ['', 'hd', 'full-hd', '2k', 'x,y' e.g. '1920,1080' for 1920x1080 resolution]. DEFAULT VALUE IS ''. If set to '', the browser will use its default viewport size."),browser:we.enum(["chromium","firefox","webkit"]).default("chromium").describe("Browser to use for Playwright trace collection. Supported browsers: 'chromium' (default), 'firefox', 'webkit'. Choose based on your testing requirements and target browser compatibility."),device:we.string().default("").describe("Device to emulate for Playwright trace collection. Supported devices include: 'iPhone 13', 'iPhone 13 Pro', 'Pixel 5', 'Galaxy S9+', 'iPad Pro', etc. Leave empty for no device emulation (desktop). Use specific device names for mobile/tablet testing.")}),EQe=we.object({trace:we.string().describe("Absolute path to the trace file in JSON format (e.g., /path/to/trace.json). Must use .json extension only. Do not use .jsonl files."),include:we.array(we.string()).default([]).describe("List of endpoints or patterns to include in test generation."),exclude:we.array(we.string()).default([]).describe("List of endpoints or patterns to exclude from test generation."),...wV.shape}),vQe={endpointURL:we.string().describe("The full endpoint URL to test including base URL and path (e.g., https://demoshop.skyramp.dev/api/v1/products). MUST include both the base URL and the endpoint path \u2014 never just the base URL alone."),method:we.union([we.nativeEnum(Ry),we.literal("")]).default("").describe('HTTP method to use. DEFAULT: Use empty string ("") to test ALL available methods from OpenAPI schema (recommended). Only specify a specific method (GET, POST, PUT, DELETE, etc.) if user explicitly requests testing a single method only.'),apiSchema:we.string().default("").describe("MUST be absolute path(/path/to/openapi.json) to the OpenAPI/Swagger schema file or a URL to the OpenAPI/Swagger schema file(e.g. https://demoshop.skyramp.dev/openapi.json). DO NOT TRY TO ASSUME THE OPENAPI SCHEMA IF NOT PROVIDED. NOTE TO AI ASSISTANTS: You do not need to read the contents of this file - simply pass the file path as the backend will read and process it."),pathParams:we.string().default("").describe("Comma-separated path parameter values in the form 'key=value,key2=value2' (e.g., 'id=1,name=John'). DO NOT populate this field unless the user has explicitly provided path parameter values. For contract tests, parent path parameters are automatically handled via the parent provisioning mechanism (parentRequestData) \u2014 do NOT invent or guess values for those here. Only supply this field if the user explicitly states specific path parameter values to use."),queryParams:we.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for URL query parameters. Workspace-configured api.defaultQueryParams (if set) are merged in automatically, with any api.queryParamOverrides entry whose pathPattern matches this endpoint layered on top \u2014 no need to repeat them here. An explicit value for the same key here overrides both."),formParams:we.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for form data parameters"),requestData:we.string().default("").refine(e=>{if(!e||e===""||e.startsWith("@"))return!0;try{return JSON.parse(e),!0}catch{}let t=e.trim();return!!(t.startsWith("---")||/^\w[\w\s]*:/.test(t)||t.startsWith("-"))},{message:"requestData must be valid JSON, YAML, or an absolute file path prefixed with '@'. Received what appears to be plain text. Provide the actual request body as a JSON object."}).describe("Sample request body data, provided either as an inline JSON/YAML string or as an absolute file path prefixed with '@' (e.g., @/absolute/path/to/file). MUST be valid JSON or YAML \u2014 do NOT pass natural language descriptions."),responseStatusCode:we.string().default("").refine(e=>!e||/^[1-5]\d{2}$/.test(e),{message:"Must be a valid HTTP status code in 100-599 (e.g., '200', '404') or empty string"}).describe("Expected HTTP response status code (e.g., '200', '201', '404'). DO NOT ASSUME STATUS CODE IF NOT PROVIDED"),...wV.shape},bQe=we.object({codeReuse:we.boolean().default(!1).describe("Reuse existing code in the generated test \u2014 consolidates helper functions shared with sibling Skyramp-generated tests into a SkyrampUtils file; for TS/JS Playwright tests with POM reuse enabled it instead refactors the test to use the repo's existing Page Object Model"),modularizeCode:we.boolean().default(!1).describe("Whether to modularize the code")}),wQe=[si.INTEGRATION,si.CONTRACT,si.UI];var By;(function(e){e.Bug="bug",e.Lint="lint",e.Type="type",e.Config="config"})(By||(By={}));var xy;(function(e){e.NotMapped="not-mapped",e.DemotedByVerify="demoted-by-verify"})(xy||(xy={}));var Qy;(function(e){e.Passed="passed",e.Failed="failed",e.SkippedNoPom="skipped-no-pom"})(Qy||(Qy={}));var Xk;(function(e){e.Passed="passed",e.Failed="failed",e.NoUtilsFile="no-utils-file"})(Xk||(Xk={}));_n();var $y=e=>`${e} POM call${e===1?"":"s"}`,IV=(e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,Ty={listSeparator:", ",testRecommendationsImplementedHeader:(e,t)=>`\u{1F4A1} Test Recommendations Implemented (${e} test${e===1?"":"s"}${t>e?`, ${t} cases`:""})`,testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:e=>`${$y(e)} reused and verified`,reusedThenVerified:(e,t)=>`${$y(e)} reused, ${t} of them verified`,reused:e=>`${$y(e)} reused`,verified:e=>`${$y(e)} verified`,unresolved:e=>`${e} not resolvable to POM source (informational, not declines)`,candidates:e=>`${e} candidate POM file${e===1?"":"s"} detected`,verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:e=>`kept inline: ${e}`,gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:e=>`\u2705 Test Maintenance (${e})`,maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:e=>`\u{1F9EA} Test Results (${e})`,columnVideo:"Video",videoDownloadLink:e=>`[\u{1F4F9} download](${e})`,videosArtifactFallback:e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F Issues Found (${e})`,configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:e=>e?"passed against the running app":"passed",notRun:e=>e?"not run against a live app this run":"not run this run",failedBug:e=>e?"failed against the running app":"failed",failedTest:e=>`failed \u2014 the test is at fault, not the app (${e})`,executedOf:(e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,noneExecuted:e=>e?"; none were executed against a live app this run.":"; none were executed this run.",staleResult:"From a run before this file's last change, not of the delivered test:"},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",missingSecret:e=>`The app could not be started this run: it needs ${e}, which this run had no value for. Nothing was tested against a live app.`,testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",findingsNotVerified:e=>`No test result confirms or refutes the suspected defects at ${e}.`,failedAlone:e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,missingCaseResults:(e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},recipeDrift:"The recorded way to start the app was out of date and had to be corrected before it would come up.",recipeNotSaved:"The repository had no saved way to start the app, so Testbot worked it out from the repository.",mockedDependency:e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,finalizeNotReady:e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,ciUnconfirmed:e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,ciUnconfirmedAbsent:e=>`Testbot could not confirm that the repo's CI leaves out ${e}, which need services it does not start: check that CI does not run them.`,ciNotIntegrated:e=>`Not yet CI-integrated: ${e} need services the repo's CI does not start, so Testbot put them where CI does not run them. The CI notes say what to change to run them in CI.`,ciUnprovisioned:e=>`The repo's CI runs ${e} without starting what they need, so CI will fail on them until it starts those services.`,ciWithheld:e=>`Not in the tests PR: the repo's CI would run ${e} without starting what they need, which would fail CI. The CI notes say what to change to run them.`,ciResultsUnread:e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,browserSuiteReadOnly:(e,t)=>`${e} has a browser suite, but this run could not write there, so its ui tests are in ${t}.`,sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,lintNotRun:e=>`The repo's linter did not check the test files, so they were delivered unlinted: ${e}.`,analysisUnverified:e=>`Part of the change analysis could not be verified (${e} unresolved check${e===1?"":"s"}); the tests were planned treating those claims as unconfirmed.`,unitTestsNotRun:e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,componentsNotTested:e=>`Not tested: changed parts of the code the plan did not test. ${e}`,componentsWithoutReason:e=>`The plan gave no reason for leaving out: ${e}.`,targetNotesDeviation:e=>`Tests were not put where the Target notes say tests go: ${e}`,testSettingsDiffer:e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,stageSalvaged:(e,t)=>t.length===1?`The ${e} step kept what it had produced although its ${t[0]} check still failed after a repair, so treat that output as unconfirmed by it.`:`The ${e} step kept what it had produced although ${t.length} of its checks (${t.join(", ")}) still failed after a repair, so treat that output as unconfirmed by them.`,downstreamNotChecked:e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,browserBuildNotDeclared:(e,t,n)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${n}\` there.`,resultsNotOfDeliveredTests:e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,videoMissing:e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,testsCouldNotRunHere:(e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,modelProviderDenied:(e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,stageInterruptedByProvider:(e,t)=>`${t}, the model provider, interrupted the ${e} step. Testbot kept what that step had produced.`,planInterruptedByProvider:(e,t)=>`${e}, the model provider, interrupted planning. Testbot kept the plan it had and reports the test results it obtained.`+(t?" Please try again later.":""),modelProviderUnavailable:(e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`,dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:e=>`The agent's browser sent sign-in or sign-up requests: ${e}. The data-safety guard lets these through and does not delete what they create, for example a new account.`,dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:(e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,dataSafetyIsolationEnforced:()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.",dataSafetyIsolationRefused:"Some checks could not run with the shared-environment protection in place. Testbot did not run them without it.",dataSafetyProxyAuthCreates:e=>`The plan probes or the tests sent sign-in or sign-up requests: ${e}. The data-safety proxy lets these through and does not track what they create, for example a new account.`,dataSafetyGuardedProbes:"plan probes",dataSafetyGuardedTests:"test runs",dataSafetyAnd:" and ",dataSafetyCleanupConfirmed:"Testbot ran each test's declared cleanup, and each succeeded.",dataSafetyLeftRecords:e=>`These tests declare records they cannot delete from the shared environment: ${e}.`,dataSafetyCleanupFailed:e=>`The cleanup of ${e} failed: what they created may still be in the shared environment.`,dataSafetyCleanupUnknown:e=>`The cleanup of ${e} is not known: Testbot did not check their cleanup.`},isolationReport:{rationale:"Testbot could not run this validation inside the shared-environment isolation it requires, so it did not validate the change.",gap:e=>`Shared-environment isolation unavailable: ${e}`,nextStep:"Fix what the gap names, then run the validation again.",nextStepPackageSource:"Run the validation again later, when the Ubuntu package source is available again. Nothing on this host or in the repository needs a change."},nextSteps:{componentMismatch:(e,t,n,s)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${s}, the commit this run validates.`,componentUnverified:(e,t,n,s)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${s}, the commit this run validates: it reports ${n}.`,componentUnread:(e,t,n)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${n}, the commit this run validates: it has no record of which commit that component runs.`,deployCommit:(e,t)=>`Deploy ${t} of ${e} to the Test Environment and run Testbot again: until it runs that commit, tests there do not validate this change.`,addSecret:(e,t)=>`Add ${t?"a secret":"secrets"} named ${e} on the workflow host, as a GitHub Actions secret or, on Azure DevOps, a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library. Then add ${t?"it":"them"} under Credentials on the Target's Setup page, and run Testbot again: a run's workflow passes Testbot only the Target's credentials, each from the workflow host's secret it is mapped to, and the app cannot start without ${t?"it":"them"}. Testbot does not make up a value.`},providerOutageHeadline:(e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,providerOutageActionStatusPage:e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,providerRateLimitHeadline:e=>`Testbot was rate-limited by ${e} (HTTP 429).`,providerRateLimitAction:"Wait for the limit to reset, then re-run this workflow from its run page in the Actions tab. If this repeats, raise the rate limit on the credential this workflow uses or run Testbot on fewer pull requests at once.",providerUsageLimitHeadline:e=>`The account behind ${e} has reached its usage limit.`,providerUsageLimitAction:"Raise the spend or token cap on the account behind this workflow's credential, then re-run this workflow from its run page in the Actions tab.",providerAuthExpiredHeadline:e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,providerAuthExpiredAction:"The credential is issued with a fixed lifetime, so a longer run can outlive it. Re-run this workflow from its run page in the Actions tab. If runs on this repository regularly last longer than that lifetime, issue the credential per job or split the run so each job stays inside it.",providerTimeoutHeadline:e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:e=>`Tests for source pull request ${e}`,validatedTogether:e=>`Pull requests validated together: ${e}`,requestedByPerson:e=>`Requested by ${e}`,requestedByPolicy:e=>`Started by the Validation Policy ${e}`,notTranslated:{"no-time":"> \u26A0\uFE0F This report is in English: no time was left to translate it.",failed:"> \u26A0\uFE0F This report is in English: the translation failed."},noLiveApp:e=>`> \u26A0\uFE0F **No live app (SUT) was available this run** \u2014 the ${e} test(s) below were **not executed** (there was no app to run them against). Run them against a running app to confirm they pass (and that any repro test fails as intended).`,unitTestsInFile:(e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:(e,t,n="")=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config.${n?` This run added it, with ${n}, installed in that package only.`:""} Run it with \`${t}\` while the app is running; to run it on every pull request, add that command to a CI job that has the app running.`,appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:(e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:(e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,testResultsHeader:"\u{1F9EA} Test Results",resultsTableHeader:"| Test ID | Test Type | Endpoint | Status | Details |",unitResultsTableHeader:"| Test ID | Test Type | Code under test | Test | Cases | Status | Details |",casesPassed:(e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:(e,t,n,s)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${s} executed)`,coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:(e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,requirementsTableHeader:"| Requirement | Clause | Tests | Result |",requirementsSummaryTableHeader:"| Requirement | Clauses passing | Not passing |",clauseStatuses:{},regressionGuard:" (regression guard)",caveatsHeader:"### \u26A0\uFE0F What This Run Could Not Prove",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F Run timed out \u2014 the results below are partial.",stopReasons:{},publishFailures:{},commitHook:e=>e?`${e} hook`:"commit hook",commitRefusedByHook:(e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,commitHookCouldNotRun:(e,t)=>`Your repository's ${e} could not run, so no Testbot PR was created: a command it calls is not installed on the runner. Hook error: \`${t}\`.`,maintenanceActions:{},stoppedEarly:(e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,viewInSkyramp:e=>` [View in Skyramp](${e})`,testsPr:{summaryHeader:"### Summary",targets:"The tests target:",moreItems:e=>`and ${e} more`,counts:(e,t)=>`${IV(e,"new")} and ${IV(t,"maintained")}.`,types:e=>`Test types: ${e}.`,statusHeader:"### Validation status",noChange:"\u2139\uFE0F Nothing changed since the baseline.",noTestRan:"No test ran, and no existing evidence was accepted.",noLiveApp:"No live app (SUT) was available, so the tests were not run.",resultCounts:(e,t,n)=>`Test results: ${e} passed, ${t} failed, ${n} not run.`,limitations:"Important failures and limitations:",verdict:e=>`The run's verdict is in [Run details](${e}).`,runningHeader:"### Running the tests",environment:e=>`The tests read these environment variables, which the job that runs them must set: ${e}.`,filesChanged:"Review each test in the **Files changed** tab."},descriptionCut:(e,t,n)=>`_\u2026 The rest is left out${t===void 0?", with more test results":t?`, with ${t} more test result${t===1?"":"s"}`:""}: Azure DevOps takes at most ${e} characters.${n?` [Full report](${n})`:""}_`,testsReplaced:(e,t,n)=>[t?`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}), commit \`${t}\`.`:`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}).`,n?`The tests of [the earlier run](${n}) are superseded.`:"The tests an earlier run wrote here are superseded."].join(" "),setupRunEnds:{finished:"Setup run finished. Skyramp is checking the result.",failed:"Setup run failed.",timedOut:"Setup run ran out of time.",cancelledInSkyramp:"Setup run was cancelled in Skyramp.",stoppedToResume:"Setup run stopped. Resume it in Skyramp."},appUnreachable:e=>`Unable to contact the mothership ${e}. Please try again later.`,couldNotStart:e=>`Skyramp Testbot could not start: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F This report was assembled automatically after the write-up step failed its checks; ${e} check(s) remain unmet \u2014 see the run log for details.`,testbotPrLine:(e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,viewRun:e=>`_[View run](${e})_`,testsPrNotOpened:(e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,testsNotDelivered:e=>`The tests could not be delivered: ${e}`,testsPinnedNotDelivered:(e,t,n)=>`${e}: ${t} ${t===1?"test":"tests"} written, ${n} maintained. The repository is pinned to a commit, so these changes were not delivered.`,testsNotPushed:(e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,testsPrRetargeted:e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:e=>`The tests were committed but no PR was opened: ${e}.`,testsHeldBack:(e,t,n,s)=>`${e?"Delivery partial":"Delivery failed: no tests were delivered"}. These test files need a pull request that is not on ${t} yet, so they were held back: ${n}. Their changes are in the run artifact's ${s}.`,testsNotProposed:e=>`The tests were not proposed in a pull request: ${e}.`}};var CV={testRecommendationsImplementedHeader:(e,t)=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08\u30C6\u30B9\u30C8 ${e}\u4EF6${t>e?`\u3001\u30B1\u30FC\u30B9 ${t}\u4EF6`:""}\uFF09`,listSeparator:"\u3001",testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,reusedThenVerified:(e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,reused:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,verified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,unresolved:e=>`${e} \u4EF6\u306F POM \u30BD\u30FC\u30B9\u307E\u3067\u89E3\u6C7A\u3067\u304D\u305A\uFF08\u53C2\u8003\u60C5\u5831\u3067\u3042\u308A\u3001\u9664\u5916\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09`,candidates:e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,maintenanceTableHeader:"| \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30D5\u30A1\u30A4\u30EB | \u5909\u66F4\u5185\u5BB9 | \u5909\u66F4\u524D | \u5909\u66F4\u5F8C |",testResultsHeader:e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,videosArtifactFallback:e=>`\u{1F4F9} \u9332\u753B\u3055\u308C\u305F UI \u30C6\u30B9\u30C8\u30D3\u30C7\u30AA: [\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u304B\u3089\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,configErrorsHeader:"\u2699\uFE0F \u8A2D\u5B9A\u30A8\u30E9\u30FC",nextStepsHeader:"### \u{1F4A1} \u6B21\u306E\u30B9\u30C6\u30C3\u30D7",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",rows:{passed:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u6210\u529F\u3057\u307E\u3057\u305F":"\u6210\u529F\u3057\u307E\u3057\u305F",notRun:e=>e?"\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F":"\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",failedBug:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5931\u6557\u3057\u307E\u3057\u305F":"\u5931\u6557\u3057\u307E\u3057\u305F",failedTest:e=>`\u5931\u6557\u3057\u307E\u3057\u305F \u2014 \u30A2\u30D7\u30EA\u3067\u306F\u306A\u304F\u30C6\u30B9\u30C8\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059\uFF08${e}\uFF09`,executedOf:(e,t)=>t?`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`:`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`,noneExecuted:e=>e?"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002":"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",staleResult:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u6700\u5F8C\u306E\u5909\u66F4\u3088\u308A\u524D\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093:"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",missingSecret:e=>`\u3053\u306E\u5B9F\u884C\u3067\u306F\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8D77\u52D5\u306B\u306F ${e} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u306B\u306F\u5024\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",findingsNotVerified:e=>`\u6B21\u306E\u7B87\u6240\u306E\u7591\u308F\u3057\u3044\u6B20\u9665\u3092\u78BA\u8A8D\u307E\u305F\u306F\u5426\u5B9A\u3059\u308B\u30C6\u30B9\u30C8\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,failedAlone:e=>`\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306F\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u306F\u6210\u529F\u3057\u307E\u3057\u305F\u304C\u3001Testbot \u304C\u5358\u72EC\u3067\u5B9F\u884C\u3059\u308B\u3068\u5931\u6557\u3057\u305F\u305F\u3081\u3001\u7D50\u679C\u306F\u78BA\u5B9A\u3057\u3066\u3044\u307E\u305B\u3093: ${e}\u3002`,missingCaseResults:(e,t)=>{let n=t?` \u6700\u65B0\u306E\u5B9F\u884C: ${t}`:"";return`\u4F5C\u6210\u3057\u305F\u30B1\u30FC\u30B9\u306E\u6700\u7D42\u7D50\u679C\u304C\u8A18\u9332\u3055\u308C\u3066\u3044\u307E\u305B\u3093: ${e}\u3002${n}`},recipeDrift:"\u8A18\u9332\u3055\u308C\u3066\u3044\u305F\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u53E4\u304F\u306A\u3063\u3066\u304A\u308A\u3001\u8D77\u52D5\u524D\u306B\u4FEE\u6B63\u304C\u5FC5\u8981\u3067\u3057\u305F\u3002",recipeNotSaved:"\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u4FDD\u5B58\u3055\u308C\u3066\u3044\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u8D77\u52D5\u65B9\u6CD5\u3092\u5224\u65AD\u3057\u307E\u3057\u305F\u3002",mockedDependency:e=>`${e} \u306F\u5B9F\u969B\u306B\u30C7\u30D7\u30ED\u30A4\u3055\u308C\u305A\u30E2\u30C3\u30AF\u5316\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u308C\u306B\u5BFE\u3059\u308B\u6210\u529F\u7D50\u679C\u306F\u8A3C\u660E\u306B\u306F\u306A\u308A\u307E\u305B\u3093\u3002`,finalizeNotReady:e=>`\u30C6\u30B9\u30C8\u306F\u73FE\u72B6\u3067\u306F\u30DE\u30FC\u30B8\u53EF\u80FD\u306A\u72B6\u614B\u3067\u306F\u3042\u308A\u307E\u305B\u3093${e?`: ${e}`:"\u3002"}`,ciNotCovered:"\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B CI \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u306A\u3044\u305F\u3081\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3002",ciNotCoveredBecause:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u4E00\u90E8\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093: ${e}`,ciUnconfirmedAbsent:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u5B9F\u884C\u3057\u306A\u3044\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u308C\u3089\u306F CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u306A\u3044\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,ciUnconfirmed:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u53CE\u96C6\u3059\u308B\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u308B\u304B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,ciNotIntegrated:e=>`CI \u672A\u7D71\u5408: ${e} \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u3001Testbot \u306F CI \u304C\u5B9F\u884C\u3057\u306A\u3044\u5834\u6240\u306B\u914D\u7F6E\u3057\u307E\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,ciWithheld:e=>`\u30C6\u30B9\u30C8 PR \u306B\u542B\u3081\u3066\u3044\u307E\u305B\u3093: \u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001CI \u304C\u5931\u6557\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,ciUnprovisioned:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u3059\u308B\u307E\u3067 CI \u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3067\u5931\u6557\u3057\u307E\u3059\u3002`,ciResultsUnread:e=>`Testbot \u306F ${e} \u306E CI \u7D50\u679C\u3092\u8AAD\u307F\u53D6\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u305D\u3053\u3067\u306E CI \u7D50\u679C\u306F\u8A3C\u62E0\u3068\u3057\u3066\u6271\u308F\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,browserSuiteReadOnly:(e,t)=>`${e} \u306B\u306F\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u30B9\u30A4\u30FC\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u3067\u306F\u66F8\u304D\u8FBC\u3081\u306A\u3044\u305F\u3081\u3001UI \u30C6\u30B9\u30C8\u306F ${t} \u306B\u3042\u308A\u307E\u3059\u3002`,sutNotRequired:"\u30A2\u30D7\u30EA\u306F\u8D77\u52D5\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u691C\u8A3C\u30C8\u30EA\u30A2\u30FC\u30B8\u306B\u3088\u308A\u3001\u3053\u306E\u5909\u66F4\u3067\u691C\u8A3C\u304C\u5FC5\u8981\u306A\u30C7\u30D7\u30ED\u30A4\u5F8C\u306E\u632F\u308B\u821E\u3044\u306F\u306A\u3044\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",lintNotCovered:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F ${e} \u3092\u30C1\u30A7\u30C3\u30AF\u3057\u307E\u305B\u3093\u3002\u30B9\u30BF\u30A4\u30EB\u3084\u578B\u306E\u554F\u984C\u304C\u81EA\u52D5\u7684\u306B\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3002`,lintNotRun:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u3092\u30C1\u30A7\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30EA\u30F3\u30BF\u30FC\u3092\u901A\u3055\u305A\u306B\u63D0\u51FA\u3057\u307E\u3057\u305F: ${e}\u3002`,analysisUnverified:e=>`\u5909\u66F4\u306E\u5206\u6790\u306E\u4E00\u90E8\u3092\u691C\u8A3C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u672A\u89E3\u6C7A\u306E\u30C1\u30A7\u30C3\u30AF ${e} \u4EF6\uFF09\u3002\u8A72\u5F53\u3059\u308B\u4E3B\u5F35\u306F\u672A\u78BA\u8A8D\u3068\u3057\u3066\u6271\u3044\u3001\u30C6\u30B9\u30C8\u3092\u8A08\u753B\u3057\u307E\u3057\u305F\u3002`,unitTestsNotRun:e=>`Testbot \u306F\u9078\u629E\u3057\u305F\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u3053\u306B\u3042\u308B\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F Testbot \u81EA\u8EAB\u306E\u518D\u5B9F\u884C\u306B\u3088\u308B\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}`,componentsNotTested:e=>`\u672A\u30C6\u30B9\u30C8: \u8A08\u753B\u304C\u30C6\u30B9\u30C8\u5BFE\u8C61\u306B\u3057\u306A\u304B\u3063\u305F\u3001\u5909\u66F4\u3055\u308C\u305F\u30B3\u30FC\u30C9\u306E\u90E8\u5206\u3067\u3059\u3002${e}`,componentsWithoutReason:e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,targetNotesDeviation:e=>`Target \u306E\u30E1\u30E2\u304C\u6307\u5B9A\u3059\u308B\u5834\u6240\u306B\u30C6\u30B9\u30C8\u3092\u7F6E\u3044\u3066\u3044\u307E\u305B\u3093: ${e}`,testSettingsDiffer:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,stageSalvaged:(e,t)=>t.length===1?`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t[0]} \u306E\u30C1\u30A7\u30C3\u30AF\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`:`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t.length} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\uFF08${t.join("\u3001")}\uFF09\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u308C\u3089\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`,downstreamNotChecked:e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,browserBuildNotDeclared:(e,t,n)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${n}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,resultsNotOfDeliveredTests:e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F\u6700\u5F8C\u306E\u5B9F\u884C\u306E\u5F8C\u306B\u5909\u66F4\u3055\u308C\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306F\u4EE5\u524D\u306E\u7248\u306E\u3082\u306E\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,videoMissing:e=>`\u6B21\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306F\u52D5\u753B\u304C\u8A18\u9332\u3055\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306B\u306F\u78BA\u8A8D\u3067\u304D\u308B\u52D5\u753B\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,testsCouldNotRunHere:(e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,modelProviderDenied:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,stageInterruptedByProvider:(e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${t} \u306B\u3088\u308A ${e} \u306E\u6BB5\u968E\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u305D\u306E\u6BB5\u968E\u3067\u4F5C\u6210\u6E08\u307F\u306E\u5185\u5BB9\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002`,planInterruptedByProvider:(e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u306B\u3088\u308A\u8A08\u753B\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u4F5C\u6210\u6E08\u307F\u306E\u8A08\u753B\u3092\u6B8B\u3057\u3001\u5F97\u3089\u308C\u305F\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u5831\u544A\u3057\u307E\u3059\u3002`+(t?"\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002":""),modelProviderUnavailable:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:e=>`\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u30D6\u30E9\u30A6\u30B6\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u524A\u9664\u3057\u307E\u305B\u3093\u3002`,dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:(e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,dataSafetyIsolationEnforced:()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002",dataSafetyIsolationRefused:"\u4E00\u90E8\u306E\u30C1\u30A7\u30C3\u30AF\u306F\u3001\u5171\u6709\u74B0\u5883\u306E\u4FDD\u8B77\u3092\u6709\u52B9\u306B\u3057\u305F\u307E\u307E\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F\u3001\u4FDD\u8B77\u306A\u3057\u3067\u305D\u308C\u3089\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyProxyAuthCreates:e=>`\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6\u307E\u305F\u306F\u30C6\u30B9\u30C8\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u8FFD\u8DE1\u3057\u307E\u305B\u3093\u3002`,dataSafetyGuardedProbes:"\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6",dataSafetyGuardedTests:"\u30C6\u30B9\u30C8\u306E\u5B9F\u884C",dataSafetyAnd:"\u3068",dataSafetyCleanupConfirmed:"Testbot \u306F\u5404\u30C6\u30B9\u30C8\u304C\u5BA3\u8A00\u3057\u305F\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u5B9F\u884C\u3057\u3001\u3059\u3079\u3066\u6210\u529F\u3057\u307E\u3057\u305F\u3002",dataSafetyLeftRecords:e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u304B\u3089\u524A\u9664\u3067\u304D\u306A\u3044\u30EC\u30B3\u30FC\u30C9\u3092\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059: ${e}\u3002`,dataSafetyCleanupFailed:e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u4F5C\u6210\u3057\u305F\u3082\u306E\u304C\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3063\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`,dataSafetyCleanupUnknown:e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u4E0D\u660E\u3067\u3059\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u305B\u3093\u3002`},isolationReport:{rationale:"Testbot \u306F\u3001\u5FC5\u8981\u306A\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u306E\u4E2D\u3067\u3053\u306E\u691C\u8A3C\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5909\u66F4\u3092\u691C\u8A3C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",gap:e=>`\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093: ${e}`,nextStep:"\u30AE\u30E3\u30C3\u30D7\u306B\u8A18\u8F09\u3055\u308C\u305F\u554F\u984C\u3092\u89E3\u6D88\u3057\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",nextStepPackageSource:"Ubuntu \u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u914D\u5E03\u5143\u304C\u518D\u3073\u5229\u7528\u53EF\u80FD\u306B\u306A\u3063\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30DB\u30B9\u30C8\u3084\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},nextSteps:{componentMismatch:(e,t,n,s)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u306F ${n} \u3092\u5B9F\u884C\u3057\u3066\u304A\u308A\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${s} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,componentUnverified:(e,t,n,s)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${s} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u3055\u308C\u305F\u30B3\u30DF\u30C3\u30C8: ${n}\u3002`,componentUnread:(e,t,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u5B9F\u884C\u3057\u3066\u3044\u308B\u30B3\u30DF\u30C3\u30C8\u306E\u8A18\u9332\u304C\u3042\u308A\u307E\u305B\u3093\u3002`,deployCommit:(e,t)=>`${e} \u306E ${t} \u3092 Test Environment \u306B\u30C7\u30D7\u30ED\u30A4\u3057\u3066\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u305D\u306E\u30B3\u30DF\u30C3\u30C8\u304C\u5B9F\u884C\u3055\u308C\u308B\u307E\u3067\u3001\u305D\u3053\u3067\u306E\u30C6\u30B9\u30C8\u306F\u3053\u306E\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306A\u308A\u307E\u305B\u3093\u3002`,addSecret:(e,t)=>`\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306B ${e} \u3068\u3044\u3046\u540D\u524D\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\uFF08GitHub Actions \u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3001\u307E\u305F\u306F Azure DevOps \u3067\u306F\u30DB\u30B9\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u306E Pipelines \u203A Library \u306B\u3042\u308B skyramp-testbot \u5909\u6570\u30B0\u30EB\u30FC\u30D7\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u5909\u6570\uFF09\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6B21\u306B Target \u306E Setup \u30DA\u30FC\u30B8\u306E Credentials \u306B\u8FFD\u52A0\u3057\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5B9F\u884C\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C Testbot \u306B\u6E21\u3059\u306E\u306F Target \u306E\u8A8D\u8A3C\u60C5\u5831\u3060\u3051\u3067\u3001\u305D\u308C\u305E\u308C\u5BFE\u5FDC\u4ED8\u3051\u3089\u308C\u305F\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u304B\u3089\u6E21\u3055\u308C\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306F\u3053\u308C\u306A\u3057\u3067\u306F\u8D77\u52D5\u3067\u304D\u305A\u3001Testbot \u304C\u5024\u3092\u4F5C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002`},providerOutageHeadline:(e,t)=>`${e} \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F ${t} \u56DE\u8A66\u884C\u3057\u307E\u3057\u305F\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3002`,providerOutageActionStatusPage:e=>`${e} \u3067\u72B6\u6CC1\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B5\u30FC\u30D3\u30B9\u304C\u5FA9\u65E7\u3057\u305F\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,providerRateLimitHeadline:e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,providerRateLimitAction:"\u5236\u9650\u304C\u89E3\u9664\u3055\u308C\u308B\u307E\u3067\u5F85\u3063\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u7E70\u308A\u8FD4\u3059\u5834\u5408\u306F\u3001\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u4F7F\u7528\u3059\u308B\u8A8D\u8A3C\u60C5\u5831\u306E\u30EC\u30FC\u30C8\u5236\u9650\u3092\u5F15\u304D\u4E0A\u3052\u308B\u304B\u3001\u540C\u6642\u306B\u5B9F\u884C\u3059\u308B PR \u306E\u6570\u3092\u6E1B\u3089\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerUsageLimitHeadline:e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,providerUsageLimitAction:"\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u8A8D\u8A3C\u60C5\u5831\u306B\u7D10\u3065\u304F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5229\u7528\u4E0A\u9650\u3092\u5F15\u304D\u4E0A\u3052\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerAuthExpiredHeadline:e=>`\u5B9F\u884C\u4E2D\u306B\u3001Testbot \u304C ${e} \u3078\u63A5\u7D9A\u3059\u308B\u305F\u3081\u306E\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002`,providerAuthExpiredAction:"\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9593\u306F\u56FA\u5B9A\u306E\u305F\u3081\u3001\u5B9F\u884C\u6642\u9593\u304C\u9577\u3044\u3068\u305D\u306E\u671F\u9593\u3092\u8D85\u3048\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u304C\u6709\u52B9\u671F\u9593\u3092\u5E38\u306B\u8D85\u3048\u308B\u5834\u5408\u306F\u3001\u30B8\u30E7\u30D6\u3054\u3068\u306B\u8A8D\u8A3C\u60C5\u5831\u3092\u767A\u884C\u3059\u308B\u304B\u3001\u5404\u30B8\u30E7\u30D6\u304C\u6709\u52B9\u671F\u9593\u5185\u306B\u53CE\u307E\u308B\u3088\u3046\u5B9F\u884C\u3092\u5206\u5272\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerTimeoutHeadline:e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,providerTimeoutAction:"\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u306B\u672C\u5F53\u306B\u6642\u9593\u304C\u5FC5\u8981\u306A\u5834\u5408\u306F\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E `testbotTimeout` \u5165\u529B\u5024\u3092\u5927\u304D\u304F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",staged:{testsSourcePullRequest:e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,validatedTogether:e=>`\u4E00\u7DD2\u306B\u691C\u8A3C\u3057\u305F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8: ${e}`,requestedByPerson:e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,requestedByPolicy:e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,notTranslated:{"no-time":"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u3059\u308B\u6642\u9593\u304C\u6B8B\u3063\u3066\u3044\u307E\u305B\u3093\u3067\u3057\u305F\u3002",failed:"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},noLiveApp:e=>`> \u26A0\uFE0F **\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F** \u2014 \u4EE5\u4E0B\u306E ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u306F**\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093**\uFF08\u5B9F\u884C\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF09\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u3001\u5408\u683C\u3059\u308B\u3053\u3068\uFF08\u304A\u3088\u3073\u518D\u73FE\u30C6\u30B9\u30C8\u304C\u610F\u56F3\u3069\u304A\u308A\u5931\u6557\u3059\u308B\u3053\u3068\uFF09\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,unitTestsInFile:(e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,addedToExistingFile:"\u65E2\u5B58\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306B\u8FFD\u52A0",testPackagesHeader:"### \u{1F4E6} \u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",testPackageLine:(e,t,n="")=>`\`${e}/\` \u306F Skyramp Testbot \u304C\u6240\u6709\u30FB\u4FDD\u5B88\u3059\u308B\u72EC\u7ACB\u3057\u305F\u30C6\u30B9\u30C8\u30D1\u30C3\u30B1\u30FC\u30B8\u3067\u3001\u72EC\u81EA\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3001\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u3001\u30E9\u30F3\u30CA\u30FC\u8A2D\u5B9A\u3092\u6301\u3061\u307E\u3059\u3002${n?`\u3053\u306E\u5B9F\u884C\u3067\u8FFD\u52A0\u3057\u305F\u3082\u306E\u3067\u3001${n} \u3092\u3053\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u5185\u306B\u306E\u307F\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u3066\u3044\u307E\u3059\u3002`:""}\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u4E2D\u306B \`${t}\` \u3067\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002\u3059\u3079\u3066\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u5B9F\u884C\u3059\u308B\u306B\u306F\u3001\u30A2\u30D7\u30EA\u304C\u8D77\u52D5\u3057\u3066\u3044\u308B CI \u30B8\u30E7\u30D6\u306B\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,appManifestsUntouched:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u81EA\u8EAB\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3068\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",dependencyChangesHeader:"### \u{1F4E6} \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u4F9D\u5B58\u95A2\u4FC2\u306E\u5909\u66F4",dependencyChangeLine:(e,t,n)=>`\`${t}\`\uFF08\u304A\u3088\u3073\u305D\u306E\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\uFF09\u306B \`${e}\` \u3092\u8FFD\u52A0${n?`: ${n}`:""}`,testMaintenanceHeader:"\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",keptNot:"\u5909\u66F4\u305B\u305A\u7DAD\u6301 \u2014 \u898B\u9001\u3063\u305F\u64CD\u4F5C: ",declinedPlanned:"(\u4E88\u5B9A\u3057\u3066\u3044\u305F\u64CD\u4F5C\u3092\u898B\u9001\u308A: ",declinedMaintenanceHeader:"\u21A9\uFE0F \u898B\u9001\u3063\u305F\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",existingEvidenceHeader:"\u2705 \u65E2\u5B58\u306E\u30A8\u30D3\u30C7\u30F3\u30B9",trustedCheckPassed:(e,t)=>`\u4FE1\u983C\u6E08\u307F\u306E CI \u30C1\u30A7\u30C3\u30AF ${e} \u304C${t?` ${t} \u3067`:""}\u5408\u683C\u3057\u3001\u6B21\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F:`,testResultsHeader:"\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C",resultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",unitResultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30B3\u30FC\u30C9 | \u30C6\u30B9\u30C8 | \u30B1\u30FC\u30B9\u6570 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",casesPassed:(e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:(e,t,n,s)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${s}\uFF09`,coverageTableHeader:"| \u632F\u308B\u821E\u3044 | \u30BD\u30FC\u30B9 | \u30C6\u30B9\u30C8 | \u30E1\u30F3\u30C6\u30CA\u30F3\u30B9 |",writtenNotRun:"\u4F5C\u6210\u6E08\u307F\u30FB\u672A\u5B9F\u884C",issuesFoundHeader:"\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C",requirementsHeader:(e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,requirementsTableHeader:"| \u8981\u4EF6 | \u6761\u9805 | \u30C6\u30B9\u30C8 | \u7D50\u679C |",requirementsSummaryTableHeader:"| \u8981\u4EF6 | \u5408\u683C\u3057\u305F\u6761\u9805 | \u5408\u683C\u3057\u3066\u3044\u306A\u3044\u6761\u9805 |",clauseStatuses:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C","Not run":"\u672A\u5B9F\u884C","Not tested":"\u672A\u30C6\u30B9\u30C8","Passed, test not kept":"\u5408\u683C\uFF08\u30C6\u30B9\u30C8\u306F\u4FDD\u6301\u305B\u305A\uFF09"},regressionGuard:"\uFF08\u56DE\u5E30\u30AC\u30FC\u30C9\uFF09",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F \u5B9F\u884C\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F \u2014 \u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002",stopReasons:{"pr-closed":"\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30DE\u30FC\u30B8\u3055\u308C\u305A\u306B\u30AF\u30ED\u30FC\u30BA\u3055\u308C\u307E\u3057\u305F",cancelled:"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u305F\u304B\u3001\u30E9\u30F3\u30CA\u30FC\u304C\u505C\u6B62\u3057\u307E\u3057\u305F","attempt-cancelled":"Skyramp \u3067\u3053\u306E\u5B9F\u884C\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F","attempt-closed":"Skyramp \u304C\u3053\u306E\u5B9F\u884C\u3092\u7D42\u4E86\u3057\u307E\u3057\u305F"},maintenanceActions:{update:"\u66F4\u65B0",regenerate:"\u518D\u751F\u6210",delete:"\u524A\u9664",verify:"\u691C\u8A3C",updated:"\u66F4\u65B0",regenerated:"\u518D\u751F\u6210",deleted:"\u524A\u9664",verified:"\u691C\u8A3C"},publishFailures:{push:"\u30D7\u30C3\u30B7\u30E5\u306B\u5931\u6557",auth:"\u8A8D\u8A3C\u30A8\u30E9\u30FC",conflict:"\u7AF6\u5408",hook:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF\u304C\u5931\u6557",unknown:"\u4E0D\u660E\u306A\u30A8\u30E9\u30FC"},commitHook:e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF",commitRefusedByHook:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u304C\u751F\u6210\u3055\u308C\u305F\u30C6\u30B9\u30C8\u306E\u30B3\u30DF\u30C3\u30C8\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,commitHookCouldNotRun:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u304C\u547C\u3073\u51FA\u3059\u30B3\u30DE\u30F3\u30C9\u304C\u30E9\u30F3\u30CA\u30FC\u306B\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,stoppedEarly:(e,t)=>`> \u26A0\uFE0F \u5B9F\u884C\u304C\u9014\u4E2D\u3067\u505C\u6B62\u3057\u307E\u3057\u305F \u2014 ${e}\u3002\u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002${t}`,viewInSkyramp:e=>` [Skyramp \u3067\u8868\u793A](${e})`,testsPr:{summaryHeader:"### \u6982\u8981",targets:"\u30C6\u30B9\u30C8\u306E\u5BFE\u8C61:",moreItems:e=>`\u307B\u304B ${e} \u4EF6`,counts:(e,t)=>`\u65B0\u898F\u30C6\u30B9\u30C8 ${e} \u4EF6\u3001\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u3057\u305F\u30C6\u30B9\u30C8 ${t} \u4EF6\u3002`,types:e=>`\u30C6\u30B9\u30C8\u7A2E\u5225: ${e}\u3002`,statusHeader:"### \u691C\u8A3C\u30B9\u30C6\u30FC\u30BF\u30B9",noChange:"\u2139\uFE0F \u30D9\u30FC\u30B9\u30E9\u30A4\u30F3\u4EE5\u964D\u306B\u5909\u66F4\u306F\u3042\u308A\u307E\u305B\u3093\u3002",noTestRan:"\u5B9F\u884C\u3057\u305F\u30C6\u30B9\u30C8\u306F\u306A\u304F\u3001\u65E2\u5B58\u306E\u8A3C\u62E0\u3082\u63A1\u7528\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",noLiveApp:"\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",resultCounts:(e,t,n)=>`\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${e} \u4EF6\u3001\u4E0D\u5408\u683C ${t} \u4EF6\u3001\u672A\u5B9F\u884C ${n} \u4EF6\u3002`,limitations:"\u91CD\u8981\u306A\u5931\u6557\u3068\u5236\u9650:",verdict:e=>`\u5B9F\u884C\u306E\u5224\u5B9A\u306F[\u5B9F\u884C\u306E\u8A73\u7D30](${e})\u306B\u3042\u308A\u307E\u3059\u3002`,runningHeader:"### \u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",environment:e=>`\u30C6\u30B9\u30C8\u306F\u6B21\u306E\u74B0\u5883\u5909\u6570\u3092\u8AAD\u307F\u53D6\u308A\u307E\u3059\u3002\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B\u30B8\u30E7\u30D6\u3067\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044: ${e}\u3002`,filesChanged:"\u5404\u30C6\u30B9\u30C8\u306F **Files changed** \u30BF\u30D6\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},descriptionCut:(e,t,n)=>`_\u2026 \u6B8B\u308A\u306F\u7701\u7565\u3057\u307E\u3057\u305F${t===void 0?"\uFF08\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u542B\u3080\uFF09":t?`\uFF08\u30C6\u30B9\u30C8\u7D50\u679C ${t} \u4EF6\u3092\u542B\u3080\uFF09`:""}\u3002Azure DevOps \u306E\u8AAC\u660E\u306F ${e} \u6587\u5B57\u307E\u3067\u3067\u3059\u3002${n?` [\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8](${n})`:""}_`,testsReplaced:(e,t,n)=>[t?`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\uFF08\u30B3\u30DF\u30C3\u30C8 \`${t}\`\uFF09\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`:`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`,n?`[\u4EE5\u524D\u306E\u5B9F\u884C](${n})\u306E\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002`:"\u4EE5\u524D\u306E\u5B9F\u884C\u304C\u3053\u3053\u306B\u66F8\u3044\u305F\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002"].join(""),setupRunEnds:{finished:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002Skyramp \u304C\u7D50\u679C\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",failed:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",timedOut:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u6642\u9593\u5207\u308C\u306B\u306A\u308A\u307E\u3057\u305F\u3002",cancelledInSkyramp:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306F Skyramp \u3067\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",stoppedToResume:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002Skyramp \u3067\u518D\u958B\u3067\u304D\u307E\u3059\u3002"},appUnreachable:e=>`Skyramp\uFF08${e}\uFF09\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002`,couldNotStart:e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F \u4F5C\u6210\u30B9\u30C6\u30C3\u30D7\u304C\u30C1\u30A7\u30C3\u30AF\u306B\u5408\u683C\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u81EA\u52D5\u3067\u7D44\u307F\u7ACB\u3066\u3089\u308C\u307E\u3057\u305F\u3002${e} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\u304C\u672A\u9054\u6210\u3067\u3059 \u2014 \u8A73\u7D30\u306F\u5B9F\u884C\u30ED\u30B0\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,testbotPrLine:(e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,viewRun:e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,testsPrNotOpened:(e,t)=>`\u30C6\u30B9\u30C8 PR \u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u30D7\u30C3\u30B7\u30E5\u3055\u308C\u3066\u3044\u307E\u3059\u3002`,testsNotDelivered:e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,testsPinnedNotDelivered:(e,t,n)=>`${e}: ${t} \u4EF6\u306E\u30C6\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u3001${n} \u4EF6\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30B3\u30DF\u30C3\u30C8\u306B\u56FA\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u3053\u308C\u3089\u306E\u5909\u66F4\u306F\u914D\u4FE1\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,testsNotPushed:(e,t)=>`\u30C6\u30B9\u30C8\u3092\u30D7\u30C3\u30B7\u30E5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30ED\u30FC\u30AB\u30EB\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002`,testsPrRetargeted:e=>`\u30C6\u30B9\u30C8\u306E\u751F\u6210\u4E2D\u306B\u958B\u767A PR \u304C\u30DE\u30FC\u30B8\u3055\u308C\u307E\u3057\u305F \u2014 \u30C6\u30B9\u30C8 PR \u306F\u4EE3\u308F\u308A\u306B\u30D9\u30FC\u30B9\u30D6\u30E9\u30F3\u30C1${e?`\uFF08\`${e}\`\uFF09`:""}\u3092\u5BFE\u8C61\u306B\u3057\u3066\u3044\u307E\u3059\u3002`,testsPrUnchanged:"\u3053\u306E\u30D7\u30C3\u30B7\u30E5\u3067\u306F\u65B0\u3057\u3044\u30C6\u30B9\u30C8\u306E\u5909\u66F4\u306F\u4E0D\u8981\u3067\u3057\u305F\u3002\u4EE5\u4E0B\u306E\u30C6\u30B9\u30C8 PR \u306F\u4EE5\u524D\u306E\u5B9F\u884C\u306E\u3082\u306E\u3067\u3001\u305D\u306E\u307E\u307E\u306B\u3057\u3066\u3044\u307E\u3059\u3002",committedNoPr:e=>`\u30C6\u30B9\u30C8\u306F\u30B3\u30DF\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F\u304C\u3001PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,testsHeldBack:(e,t,n,s)=>`${e?"\u4E00\u90E8\u306E\u30C6\u30B9\u30C8\u306E\u307F\u63D0\u51FA\u3057\u307E\u3057\u305F":"\u30C6\u30B9\u30C8\u3092\u63D0\u51FA\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F"}\u3002\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F ${t} \u306B\u307E\u3060\u306A\u3044\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u4FDD\u7559\u3057\u307E\u3057\u305F: ${n}\u3002\u5909\u66F4\u5185\u5BB9\u306F\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u306E ${s} \u306B\u3042\u308A\u307E\u3059\u3002`,testsNotProposed:e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`}};var vf=(n=>(n.En="en",n.Ja="ja",n))(vf||{}),due={en:Ty,ja:CV},pue="en";function eR(e){let t=e.trim().toLowerCase();if(t==="")return"en";let n=Object.values(vf);return n.includes(t)?t:(Lt(`Invalid language '${e}'. Supported: ${n.join(", ")}. Falling back to 'en'.`),"en")}function jo(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}function ne(){return due[pue]}var _y=(a=>(a.ProviderOutage="provider_outage",a.ProviderRateLimit="provider_rate_limit",a.ProviderUsageLimit="provider_usage_limit",a.ProviderAuthExpired="provider_auth_expired",a.Timeout="timeout",a.NoReport="no_report",a.RenderFailure="render_failure",a))(_y||{});(t=>{function e(n,s){switch(n){case"provider_outage":return{headline:ne().providerOutageHeadline(s.provider.name,s.maxRetries),action:ne().providerOutageActionStatusPage(s.provider.statusUrl)};case"provider_rate_limit":return{headline:ne().providerRateLimitHeadline(s.provider.name),action:ne().providerRateLimitAction};case"provider_usage_limit":return{headline:ne().providerUsageLimitHeadline(s.provider.name),action:ne().providerUsageLimitAction};case"provider_auth_expired":return{headline:ne().providerAuthExpiredHeadline(s.provider.name),action:ne().providerAuthExpiredAction};case"timeout":return{headline:ne().providerTimeoutHeadline(s.timeoutMinutes),action:ne().providerTimeoutAction};case"no_report":case"render_failure":return}}t.buildNotice=e})(_y||={});var tR=(n=>(n.SameBranch="same-branch",n.SeparateBranch="separate-branch",n))(tR||{});var SV=(n=>(n.Sonnet="sonnet",n.Opus="opus",n))(SV||{}),fue="opus";function nR(e){return Object.values(SV).includes(e)}function kV(e){let t=(e??"").trim();if(t==="")return fue;let n=t.toLowerCase();return nR(n)?n:t}var Dy=(i=>(i.Low="low",i.Medium="medium",i.High="high",i.XHigh="xhigh",i.Max="max",i))(Dy||{}),Ny="high";function RV(e){return Object.values(Dy).includes(e)}var BV=5;function hue(e){let t=e.split(/\r?\n/).map(n=>n.trim()).filter(Boolean);if(t.length>BV)throw new Error(`relatedRepoPaths supports at most ${BV} entries (got ${t.length}); the cap limits how much cross-repo context is loaded to avoid overflowing Testbot's context window.`);return t}function gue(e){let t=e.trim().toLowerCase();return t===""?"separate-branch":Object.values(tR).includes(t)?t:(Lt(`Invalid generatedTestsMode '${e}'. Falling back to 'separate-branch'.`),"separate-branch")}function mue(e){let t=(e??"").trim();if(t!==""){if(/^(?:[1-9]|10)$/.test(t))return Number(t);Lt(`Ignoring perTestMaxFixAttempts="${e}": expected a whole number from 1 to 10; the Skyramp MCP default applies`)}}function Aue(e){let t=(e??"").trim().toLowerCase();return t===""?Ny:RV(t)?t:(Lt(`Ignoring effort="${e}": expected one of ${Object.values(Dy).join(", ")}; using "${Ny}"`),Ny)}function xV(){let e=kV(je("model"));return nR(e)||Lt(`model '${e}' is not a tested alias (sonnet, opus); passing it to the agent verbatim as a raw model id.`),{skyrampLicenseFile:je("skyrampLicenseFile"),cursorApiKey:je("cursorApiKey"),copilotApiKey:je("copilotApiKey"),anthropicApiKey:je("anthropicApiKey"),useBedrock:Oo("useBedrock"),awsRegion:je("awsRegion"),useLocalAuth:je("useLocalAuth").toLowerCase()==="true",model:e,effort:Aue(je("effort")),targetSetupCommand:je("targetSetupCommand"),authTokenCommand:je("authTokenCommand"),uiCredentials:je("uiCredentials"),targetTeardownCommand:je("targetTeardownCommand"),skipTargetTeardown:Oo("skipTargetTeardown"),skyrampMcpVersion:je("skyrampMcpVersion"),skyrampMcpSource:je("skyrampMcpSource"),skyrampMcpGithubToken:je("skyrampMcpGithubToken"),skyrampMcpGithubRef:je("skyrampMcpGithubRef"),nodeVersion:je("nodeVersion"),skipTargetSetup:Oo("skipTargetSetup"),targetReadyCheckCommand:je("targetReadyCheckCommand"),targetReadyCheckTimeout:(()=>{let n=parseInt(je("targetReadyCheckTimeout"),10)||1800;return n<1?(Lt(`targetReadyCheckTimeout must be at least 1 second, got ${n}. Using 1s.`),1):n})(),targetReadyCheckInterval:(()=>{let n=parseInt(je("targetReadyCheckInterval"),10),s=isNaN(n)?30:n;return s<1?(Lt(`targetReadyCheckInterval must be at least 1 second, got ${s}. Using 1s.`),1):s})(),targetReadyCheckDiagnosticsCommand:(()=>{let n=je("targetReadyCheckDiagnosticsCommand");return n.trim().toLowerCase()==="none"?"":n})(),workingDirectory:je("workingDirectory"),autoCommit:Oo("autoCommit"),commitMessage:je("commitMessage"),generatedTestsMode:gue(je("generatedTestsMode")),postPrComment:Oo("postPrComment"),testExecutionTimeout:parseInt(je("testExecutionTimeout"),10)||300,maxRecommendations:(()=>{let n=parseInt(je("maxRecommendations"),10);return isNaN(n)?void 0:Math.max(0,n)})(),maxGenerate:(()=>{let n=parseInt(je("maxGenerate"),10);return isNaN(n)?void 0:Math.max(0,n)})(),perTestMaxFixAttempts:mue(je("perTestMaxFixAttempts")),testbotMaxRetries:parseInt(je("testbotMaxRetries"),10)||3,testbotRetryDelay:parseInt(je("testbotRetryDelay"),10)||10,testbotTimeout:parseInt(je("testbotTimeout"),10)||60,targetSetupRetries:parseInt(je("targetSetupRetries"),10)||3,targetSetupRetryDelay:parseInt(je("targetSetupRetryDelay"),10)||10,authTokenRetries:(()=>{let n=parseInt(je("authTokenRetries"),10);return Number.isFinite(n)&&n>=1?n:6})(),authTokenRetryDelay:(()=>{let n=parseInt(je("authTokenRetryDelay"),10);return Number.isFinite(n)&&n>=0?n:10})(),reportCollapsed:Oo("reportCollapsed"),language:eR(je("language")),enableDebug:Oo("enableDebug"),testRepoPath:je("testRepoPath")||void 0,relatedRepoPaths:hue(je("relatedRepoPaths")),allowedAuthors:je("allowedAuthors").split(/\r?\n/).map(n=>n.trim()).filter(Boolean)}}var yue={useBedrock:"false",skipTargetTeardown:"false",skyrampMcpSource:"npm",skyrampMcpGithubRef:"main",nodeVersion:"lts/*",skipTargetSetup:"false",targetReadyCheckTimeout:"1800",targetReadyCheckInterval:"30",targetReadyCheckDiagnosticsCommand:`docker ps -a --format 'table {{.Names}} {{.Status}} {{.Ports}}' && docker ps -a --format '{{.Names}}' | while read name; do [ -n "$name" ] && echo "--- logs $name (last 30) ---" && docker logs --tail 30 "$name"; done`,workingDirectory:".",autoCommit:"true",commitMessage:"Skyramp Testbot: test maintenance suggestions",generatedTestsMode:"separate-branch",pipeline:"staged",postPrComment:"true",testbotMaxRetries:"3",testbotRetryDelay:"10",testExecutionTimeout:"300",testbotTimeout:"60",targetSetupRetries:"3",targetSetupRetryDelay:"10",authTokenRetries:"6",authTokenRetryDelay:"10",reportCollapsed:"true",language:"en",enableDebug:"true",sutSetupMode:"none"};function QV(e=process.env){for(let[t,n]of Object.entries(yue)){let s=`INPUT_${t.replace(/ /g,"_").toUpperCase()}`;(e[s]??"").trim()===""&&(e[s]=n)}}_n();async function $V(e){let t=e.targetSetupCommand,n=e.skyrampMcpVersion;n||(n="latest"),t||(t="docker compose up -d --build");let s={targetSetupCommand:t,authTokenCommand:e.authTokenCommand,targetTeardownCommand:e.targetTeardownCommand,skipTargetTeardown:e.skipTargetTeardown,skyrampMcpVersion:n,skyrampMcpSource:e.skyrampMcpSource,skyrampMcpGithubRef:e.skyrampMcpGithubRef,nodeVersion:e.nodeVersion,skipTargetSetup:e.skipTargetSetup,targetReadyCheckCommand:e.targetReadyCheckCommand,targetReadyCheckTimeout:e.targetReadyCheckTimeout,targetReadyCheckInterval:e.targetReadyCheckInterval,targetReadyCheckDiagnosticsCommand:e.targetReadyCheckDiagnosticsCommand,autoCommit:e.autoCommit,commitMessage:e.commitMessage,generatedTestsMode:e.generatedTestsMode,postPrComment:e.postPrComment,testExecutionTimeout:e.testExecutionTimeout,maxRecommendations:e.maxRecommendations,maxGenerate:e.maxGenerate,perTestMaxFixAttempts:e.perTestMaxFixAttempts,testbotMaxRetries:e.testbotMaxRetries,testbotRetryDelay:e.testbotRetryDelay,testbotTimeout:e.testbotTimeout,targetSetupRetries:e.targetSetupRetries,targetSetupRetryDelay:e.targetSetupRetryDelay,authTokenRetries:e.authTokenRetries,authTokenRetryDelay:e.authTokenRetryDelay,reportCollapsed:e.reportCollapsed,language:e.language,enableDebug:e.enableDebug,testRepoPath:e.testRepoPath,relatedRepoPaths:e.relatedRepoPaths};vy("Resolved configuration");for(let[r,i]of Object.entries(s))r==="authTokenCommand"?Rs(` ${r}: [REDACTED]`):Rs(` ${r}: ${i}`);return by(),s}_n();_n();Vk();var _V=Z(require("child_process")),rR=class extends Error{constructor(t){super(t),this.name="ExecTimeoutError"}},Py=class extends Error{constructor(t){super(t),this.name="ExecAbortedError"}};function TV(e,t){if(!(!e||e.destroyed||e.writableEnded))try{e.write(t)}catch(n){Lt(`stream write failed: ${n instanceof Error?n.message:String(n)}`)}}async function DV(e,t=[],n={}){let s="",r="",i={cwd:n.cwd,silent:n.silent??!1,ignoreReturnCode:n.ignoreReturnCode??!1,env:n.env?{...process.env,...n.env}:void 0,input:n.input,listeners:{stdout:a=>{s+=a.toString(),TV(n.stdoutStream,a)},stderr:a=>{r+=a.toString()}}};if(n.timeout||n.signal){let a=n.signal;return a?.aborted?Promise.reject(new Py(`Command aborted before start: ${e}`)):new Promise((c,u)=>{let d=_V.spawn(e,t,{cwd:n.cwd,env:n.env?{...process.env,...n.env}:process.env,stdio:["pipe","pipe","pipe"],shell:!1});d.stdout?.on("data",y=>{s+=y.toString(),n.silent||process.stdout.write(y),TV(n.stdoutStream,y)}),d.stderr?.on("data",y=>{r+=y.toString(),n.silent||process.stderr.write(y)}),n.input&&d.stdin?.end(n.input);let p=()=>{m&&clearTimeout(m),a?.removeEventListener("abort",g)},h=y=>{p();try{d.kill("SIGTERM")}catch{}u(y)},g=()=>h(new Py(`Command aborted: ${e}`)),m=n.timeout?setTimeout(()=>h(new rR(`Command timed out after ${Math.round(n.timeout/6e4)}m: ${e}`)),n.timeout):void 0;a?.addEventListener("abort",g,{once:!0}),d.on("close",y=>{p();let E=y??1;E!==0&&!n.ignoreReturnCode?u(new Error(`The process '${e}' failed with exit code ${E}`)):c({exitCode:E,stdout:s,stderr:r})}),d.on("error",y=>{p(),u(y)})})}return{exitCode:await K1(e,t,i),stdout:s,stderr:r}}async function NV(e,t){vy(e);try{return await t()}finally{by()}}function sR(e){return e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/^_+|_+$/g,"")}async function PV(e,t){await NV("Tearing down services",async()=>{if(e.skipTargetTeardown){Hk("Skipping service teardown (skipTargetTeardown=true)");return}if(!e.targetTeardownCommand){Rs("No targetTeardownCommand configured, skipping teardown");return}Rs(`Running teardown command: ${e.targetTeardownCommand}`);try{await DV("bash",["-c",e.targetTeardownCommand],{cwd:t}),Hk("Services torn down successfully")}catch(n){let s=n instanceof Error?n.message:String(n);Lt(`Service teardown command failed (non-fatal): ${s}`)}})}var pe=Z(require("fs")),MV=require("crypto"),Ie=Z(require("path")),LV=require("child_process");var Oy=Z(require("fs")),UV=Z(require("path")),Eue=/[;|`$<>(){}\n\r]|(?<!&)&(?!&)|\|\|/,vue=/`|\$[\w{(@*#?!$-]|\\[$`"\\\n]/;function bue(e){let t="";for(let s=0;s<e.length;){let r=e[s];if(r==="\\"&&(e[s+1]==='"'||e[s+1]==="'"))return{syntax:"a backslash before a quote",quoted:!1};if(r!=='"'&&r!=="'"){t+=r,s++;continue}let i=e.indexOf(r,s+1);if(i<0)return;let o=r==='"'?vue.exec(e.slice(s+1,i+(e[i-1]==="\\"?1:0))):null;if(o)return{syntax:`${OV(o[0])} inside double quotes`,quoted:!0};t+=" ",s=i+1}let n=Eue.exec(t);return n?{syntax:OV(n[0]),quoted:!1}:void 0}var OV=e=>e==="`"?"a backtick":/[\n\r]/.test(e)?"a line break":`\`${e}\``;function kc(e){let t=(e??"").trim();if(!t)return{kind:"empty",reason:"the command is empty"};let n=bue(t);if(n)return{kind:"shell-syntax",reason:`it uses shell syntax (${n.syntax}), and this is re-executed WITHOUT a shell so the recorded string cannot be interpreted \u2014 put the logic in a script and record the script invocation instead, or put an argument that holds such characters in ${n.quoted?"single quotes":"quotes"}`};let s=[],r=[],i="",o,a=!1,c=()=>{(i||a)&&r.push(i),i="",a=!1},u=()=>{c(),r.length>0&&s.push(r),r=[]};for(let p=0;p<t.length;p++){let h=t[p];if(o){h===o?o=void 0:i+=h;continue}if(h==='"'||h==="'"){o=h,a=!0;continue}if(h==="&"&&t[p+1]==="&"){u(),p+=1;continue}if(/\s/.test(h)){c();continue}i+=h}if(o)return{kind:"unterminated-quote",reason:"it has an unterminated quote"};if(u(),s.length===0)return{kind:"empty",reason:"the command is empty"};if(s.some(p=>p.length===0))return{kind:"empty-step",reason:"it has an empty step between && operators"};let d=s.find(p=>["cd","export","source","."].includes(p[0]));return d?{kind:"builtin",reason:`it runs the shell builtin "${d[0]}", which cannot be executed as a program \u2014 record a script that does this instead`}:{argv:s[0],steps:s}}function Uy(e,t,n){let s=(e??"").trim(),{steps:r,kind:i}=kc(s);if(!r&&!(i!=="shell-syntax"&&i!=="builtin")){try{Oy.mkdirSync(UV.dirname(t),{recursive:!0}),Oy.writeFileSync(t,`#!/usr/bin/env bash
|
|
52
52
|
# Written by ${n}: the recorded command, which needed a shell to run.
|
|
53
53
|
set -euo pipefail
|
|
54
54
|
${s}
|
|
55
|
-
`,{mode:493})}catch{return}return`bash ${bf(t)}`}}function bf(e){return`'${e.split("'").join("'\\''")}'`}var iR="data-safety-isolation.json";var Tl=new Map,FV=new Map;function wf(e){let t=de.openSync(e,"r"),n=Buffer.alloc(4);try{if(de.readSync(t,n,0,4,0)!==4)return!1}finally{de.closeSync(t)}let s=n.readUInt32BE(0);return s===2135247942||[4277009102,4277009103,3405691582,3405691583,3472551422,3489328638,3199925962,3216703178].includes(s)}function oR(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}function My(e){let t=e.map(s=>{try{return de.realpathSync(s)}catch{return Ie.resolve(s)}}),n=process.versions.bun?(process.env.PATH??"/usr/bin:/bin").split(Ie.delimiter).filter(Ie.isAbsolute).map(s=>Ie.join(s,"node")):[process.execPath];for(let s of n)try{let r=de.realpathSync(s);if(de.accessSync(r,de.constants.X_OK),ii(t,r)||!de.statSync(r).isFile()||!wf(r))continue;let i=Bc(e[0]);return i&&oR(i,r),r}catch{}throw new Error("an absolute native Node executable outside sandbox-writable locations is required for isolation")}var Ly=/^(NODE_OPTIONS|NODE_PATH|BASH_ENV|BASHOPTS|SHELLOPTS|PS4|PROMPT_COMMAND|BASH_XTRACEFD|BASH_LOADABLES_PATH|ENV|ZDOTDIR|PYTHONPATH|PYTHONHOME|RUBYOPT|PERL5OPT|PERL5LIB|GCONV_PATH|OPENSSL_CONF|OPENSSL_ENGINES|LD_.*|DYLD_.*|BASH_FUNC_.*)$/,wue=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function Rc(e,t){let n={...t};n.PATH=e.bootstrapPath??aR(e.roots,process.env.PATH??"/usr/bin:/bin").map(s=>(oR(e,s),s)).join(Ie.delimiter),e.bootstrapPath=n.PATH,n.HOME=process.env.HOME,n.SHELL="/bin/bash";for(let s of["TMPDIR","TMP","TEMP"])process.env[s]?n[s]=process.env[s]:delete n[s];for(let s of Object.keys(n))Ly.test(s)&&delete n[s];return n}function aR(e,t){return t.split(Ie.delimiter).flatMap(n=>{if(!Ie.isAbsolute(n))return[];try{let s=de.realpathSync(n);if(ii(e,s)||e.some(r=>$l(s,r)))return[];for(let r of de.readdirSync(s)){let i=Ie.join(s,r);try{de.accessSync(i,de.constants.X_OK)}catch{continue}if(de.statSync(i).isFile()&&ii(e,de.realpathSync(i)))return[]}return[s]}catch{return[]}})}var $l=(e,t)=>t===e||t.startsWith(e+Ie.sep);function ii(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(s=>{try{return de.realpathSync(s)}catch{return s}});return[...e,...n].some(s=>$l(s,t))}var jV="Testbot could not install it because the Ubuntu package source was unavailable. Run the validation again later",Iue=new Set;function If(e,t,n,s=r=>jt(e,r)){let r=t.includes(Ie.sep)?[Ie.resolve(n,t)]:(Rc(e,{PATH:process.env.PATH}).PATH??"").split(Ie.delimiter).map(i=>Ie.join(i,t));for(let i of r)try{if(de.accessSync(i,de.constants.X_OK),de.statSync(i).isFile())return de.realpathSync(i)}catch{}throw s(`a trusted executable could not be resolved (${t})${Iue.has(t)?`: ${jV}`:""}`)}function jy(e,t,n,s=[],r=[]){let i=g=>{try{return de.realpathSync(g)}catch{return Ie.resolve(g)}},o=i(t),a=[...new Set([o,...r,...[...Tl.values()].flatMap(g=>g.roots)].map(i))],c={roots:a,ctx:{outputsDir:o},statusFile:""},u=Rc(c,n),d=If(c,e,o,g=>new Error(`Host transport unavailable: ${g}`));if(ii(a,d)||!wf(d))throw new Error(`Host transport requires a native host executable outside writable run roots (${e})`);let p=[d,...c.protectedPaths??[]];for(let g of s){let m;try{m=de.realpathSync(g)}catch{throw new Error(`Host transport asset is unavailable (${g})`)}if(ii(a,m)||!de.statSync(m).isFile())throw new Error(`Host transport asset must be a file outside writable run roots (${g})`);p.push(m)}let h=FV.get(o)??new Set;p.forEach(g=>h.add(g)),FV.set(o,h);for(let g of Tl.values())p.forEach(m=>oR(g,m));return{executable:d,env:u}}function VV(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let s=If(e,t,e.roots[0]);return Gy(e.roots[0],[{command:s}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,s),s}function cR(e,t){let n=Bc(e);return n?{executable:VV(n,t),env:Rc(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}function Bc(e){let t=Ie.resolve(e);try{t=de.realpathSync(e)}catch{}let n=[...Tl.values()],s=n.find(r=>r.roots.some(i=>$l(i,t)));if(s)return s;if(n.length===1)return n[0];if(n.length>1)throw jt(n[0],"a command outside the run roots has no unambiguous safety boundary")}function uR(e){return`Shared-environment isolation unavailable: ${e}`}var Fy=class extends Error{constructor(n){super(uR(n));this.detail=n;this.name="IsolationUnavailableError"}detail};function jt(e,t){return e.failure=t,Vy(e.ctx,t),new Fy(t)}function Vy(e,t){let n=Tl.get(e.outputsDir);n&&(n.incident=t),de.mkdirSync(e.outputsDir,{recursive:!0});let s=Ie.join(e.outputsDir,iR),r=`${s}.${(0,MV.randomUUID)()}.tmp`;de.writeFileSync(r,JSON.stringify({reason:"isolation_unavailable",detail:t,actionRequired:!0},null,2),{mode:384,flag:"wx"}),de.renameSync(r,s)}function Gy(e,t,n=[],s=[],r=!1){let i=Bc(e);if(!i)return t.map(g=>({command:g.command,args:[...g.args??[]]}));let o=g=>{i.protectedPaths?.includes(g)||(i.protectedPaths??=[]).push(g)},a=new Set,c=new Set,u=g=>{try{return de.realpathSync(g)}catch{throw jt(i,`unresolved tool asset: ${g}`)}},d=g=>{let m=u(g);if(ii(i.roots,m)||i.roots.some(E=>$l(m,E)))throw jt(i,"a configured tool package or dependency is installed in a sandbox-writable location");o(m);let y=E=>{if(!a.has(E)){a.add(E);for(let v of de.readdirSync(E,{withFileTypes:!0})){let b=Ie.join(E,v.name);if(v.isSymbolicLink()){let w=u(b);if(ii(i.roots,w))throw jt(i,"a configured tool dependency is installed in a sandbox-writable location");de.statSync(w).isDirectory()?d(w):p(w)}else v.isDirectory()&&y(b)}}};y(m)},p=(g,m=!1,y=!1)=>{let E=u(g);if(ii(i.roots,E))throw jt(i,"a configured tool executable or package is installed in a sandbox-writable location");if(o(E),!m&&c.has(E))return;c.add(E);let v,b=de.openSync(E,"r"),w=Buffer.alloc(256);try{de.readSync(b,w,0,w.length,0)}finally{de.closeSync(b)}if(m){let C=w.toString().split(/\r?\n/,1)[0];if(C.startsWith("#!")){let I=C.slice(2).trim().split(/\s+/),x=I[0];if(Ie.basename(x)==="env"){let ue=If(i,x,e);if(ii(i.roots,ue)||!wf(ue))throw jt(i,`unsafe shebang launcher: ${x}`);o(ue),I.shift(),I[0]==="-S"&&I.shift()}let S=de.statSync(E),W=r&&($l("/usr/bin",E)||$l("/bin",E))&&S.uid===0&&(S.mode&18)===0&&/^(?:sh|bash)$/.test(Ie.basename(I[0]));if(I.length!==1||!/^(?:node|nodejs|bun)$/.test(Ie.basename(I[0]))&&!W)throw jt(i,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(v=If(i,I[0],e),ii(i.roots,v)||!wf(v))throw jt(i,`unsafe shebang interpreter: ${I[0]}`);o(v)}else if(!wf(E))throw jt(i,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(y||/\.[cm]?[jt]s$/.test(E)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(w.toString())){let C=Ie.dirname(E);for(let I=C;;I=Ie.dirname(I)){if(de.existsSync(Ie.join(I,"package.json"))){C=I;break}if(Ie.dirname(I)===I)break}d(C);for(let I=C;;I=Ie.dirname(I)){let x=Ie.join(I,"node_modules");if(de.existsSync(x)&&de.statSync(x).isDirectory()&&d(x),Ie.basename(I)==="node_modules"&&d(I),Ie.dirname(I)===I)break}}return v},h=[];for(let g of t){let m=If(i,g.command,e),y=p(m,!0),E=Ie.basename(de.realpathSync(m));if(!r&&/^(?:sh|bash|dash|zsh|ksh|fish|csh|tcsh|python[\d.]*|pypy[\d.]*|perl[\d.]*|ruby[\d.]*|php[\d.]*|lua[\d.]*|java|deno|uv|uvx|pipx|poetry|pdm|Rscript|pwsh|powershell|env|xargs|nohup|nice|stdbuf|timeout)$/.test(E))throw jt(i,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(E)&&g.args?.length)throw jt(i,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let v;if(!r&&/^(?:node|nodejs|bun)$/.test(E)){let b=g.args??[],w=b[0]==="--"||E==="bun"&&b[0]==="run"?b[1]:b[0];if(!w||w.startsWith("-")||!de.existsSync(Ie.resolve(e,w))||!de.statSync(Ie.resolve(e,w)).isFile())throw jt(i,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");v=Ie.resolve(e,w)}h.push(y&&!r?{command:y,args:[m,...g.args??[]]}:{command:m,args:[...g.args??[]]});for(let b of g.args??[]){let w=Ie.resolve(e,b);!b.startsWith("-")&&de.existsSync(w)&&de.statSync(w).isFile()&&p(w,!1,w===v)}}for(let g of n)p(g);for(let g of s){let m=u(g);d(m);let y=w=>{p(w);try{return JSON.parse(de.readFileSync(w,"utf8"))}catch{throw jt(i,`the plugin configuration could not be read: ${w}`)}},E=w=>{if(!w||typeof w!="object")return;if(Array.isArray(w)){w.forEach(E);return}let C=w;if(C.type==="command"){if(typeof C.command!="string")throw jt(i,"the plugin command hook has no literal command");let I=kc(C.command.replace(/\$\{CLAUDE_PLUGIN_ROOT\}/g,m));if(!I.steps)throw jt(i,"the plugin command hook needs a literal native/Node command whose assets can be retained");for(let x of I.steps)Gy(e,[{command:x[0],args:x.slice(1)}])}Object.values(C).forEach(E)},v=Ie.join(m,".claude-plugin/plugin.json");if(de.existsSync(v)){let w=y(v);if(!w||typeof w!="object"||Array.isArray(w))throw jt(i,"the plugin manifest is not an object");let C=w;if(C.mcpServers)throw jt(i,"declare plugin MCP servers through the run's validated MCP configuration");let I=x=>{typeof x=="string"?E(y(Ie.resolve(m,x))):Array.isArray(x)?x.forEach(I):E(x)};I(C.hooks)}let b=Ie.join(m,"hooks/hooks.json");if(de.existsSync(b)&&E(y(b)),de.existsSync(Ie.join(m,".mcp.json")))throw jt(i,"declare plugin MCP servers through the run's validated MCP configuration")}return h}function xs(e,t,n,s="data-safety-proxy"){let r=Bc(t);if(!r)return{argv:[...e],env:n};let i=s==="open"?r.openSettings:r.settings;if(r.failure||!r.cli||!r.node||!i||!r.env)throw jt(r,r.failure??"the run boundary has not finished initialization");if(!de.existsSync(r.cli)||!de.existsSync(i)||!de.existsSync(r.node))throw jt(r,"the pinned sandbox runtime or its configuration is unavailable");try{if(JSON.parse(de.readFileSync(r.statusFile,"utf8")).notRun)throw new Error("the guarded proxy is unavailable")}catch{throw jt(r,"the guarded proxy is unavailable")}let o=s==="open",a=o?{...n,PATH:aR(r.roots,n.PATH??"").join(Ie.delimiter)}:n,c=Rc(r,o?{...a}:{...a,...r.env}),u=Object.keys(a).filter(d=>(["PATH","HOME","SHELL"].includes(d)||Ly.test(d)&&!wue.test(d))&&a[d]!==void 0).map(d=>`${d}=${a[d]}`);return{argv:[r.node,r.cli,"--settings",i,"--","/usr/bin/env",...u,...Cue(r),...o?["NODE_USE_ENV_PROXY=1",...r.openTrust?["SSL_CERT_FILE","REQUESTS_CA_BUNDLE","CURL_CA_BUNDLE"].map(d=>`${d}=${r.openTrust}`):[]]:[],...e],env:c}}function Cue(e){let t=e.noProxy??"";return[`NO_PROXY=${t}`,`no_proxy=${t}`,...e.tmp?[...["TMPDIR","TMP","TEMP"].map(n=>`${n}=${e.tmp}`),...Sue(e.tmp)]:[]]}function Sue(e){let t=Ie.join(e,"npm-cache"),n=Ie.join(e,"pnpm");return[`npm_config_cache=${t}`,`NPM_CONFIG_CACHE=${t}`,`COREPACK_HOME=${Ie.join(e,"corepack")}`,`PNPM_HOME=${n}`,`pnpm_config_store_dir=${Ie.join(n,"store")}`,`pnpm_config_cache_dir=${Ie.join(n,"cache")}`,`pnpm_config_state_dir=${Ie.join(n,"state")}`,`YARN_GLOBAL_FOLDER=${Ie.join(e,"yarn")}`]}function Qs(e){return!!Bc(e)}function Cf(e,t=process.env){let n=Bc(e);return n?Rc(n,{...t,...n.env}):t}function GV(e){if(e.probePort===void 0)return;if(!e.node||!e.cli||!e.settings)return"the run boundary has not finished initialization";let t=`const s=require('net').connect({host:'127.0.0.1',port:${e.probePort}});s.once('connect',()=>{s.destroy();process.exit(23)});s.once('error',()=>{console.log('ISOLATION_BLOCKED');process.exit(0)});setTimeout(()=>process.exit(24),1500)`,n=(0,LV.spawnSync)(e.node,[e.cli,"--settings",e.settings,"--",e.node,"-e",t],{cwd:e.roots[0],env:Rc(e,{...process.env,...e.env}),encoding:"utf8",timeout:1e4,stdio:"pipe"});if(!(n.status===0&&n.stdout.trim()==="ISOLATION_BLOCKED"))return n.status===23?"the OS sandbox no longer blocks direct connections":"the OS sandbox could not start a command"}function Vo(e,t){if(t===0)return;let n=Bc(e);if(!n)return;let s=GV(n);return s&&Vy(n.ctx,s),s}var fr=["-c","core.fsmonitor=false"],HV=new Set(["GH_TOKEN","GITHUB_TOKEN","GH_ENTERPRISE_TOKEN","GITHUB_ENTERPRISE_TOKEN","ACTIONS_RUNTIME_TOKEN","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","SYSTEM_ACCESSTOKEN","SYSTEM_OIDCREQUESTURI","SKYRAMP_MCP_GITHUB_TOKEN","SSH_AUTH_SOCK","GIT_SSH","GIT_SSH_COMMAND","GITHUB_STEP_SUMMARY","SKYRAMP_REPOSITORY_SECRETS","SKYRAMP_REPOSITORY_SECRET_NAMES"]),_l=new Set(["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","AWS_PROFILE","AWS_WEB_IDENTITY_TOKEN_FILE","AWS_ROLE_ARN","AWS_ROLE_SESSION_NAME","AWS_CONTAINER_CREDENTIALS_FULL_URI","AWS_CONTAINER_CREDENTIALS_RELATIVE_URI","AWS_CONTAINER_AUTHORIZATION_TOKEN","AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"]);function Dl(e){return HV.has(e)||e.startsWith("INPUT_")}var kue="SKYRAMP_REPOSITORY_SECRETS",zV="SKYRAMP_REPOSITORY_SECRET_NAMES",Rue=/^[A-Za-z_][A-Za-z0-9_]*$/;function qV(e=process.env){let t=e[zV];if(t===void 0)return;delete e[zV];let n={};for(let s of t.split(",").map(r=>r.trim()))!Rue.test(s)||Bue(s)||!e[s]||(n[s]=e[s],delete e[s]);e[kue]=JSON.stringify(n)}function Bue(e){let t=e.toUpperCase();return Dl(t)||_l.has(t)||/^(?:ANTHROPIC_|CLAUDE_CODE_)/.test(t)||Ly.test(t)}function ht(e=process.env,t,n="repo-command"){let s={};for(let[r,i]of Object.entries(e))n==="repo-command"&&_l.has(r)||(s[r]=i);Object.assign(s,t??{});for(let r of Object.keys(s))(HV.has(r)||r.startsWith("INPUT_"))&&delete s[r];return s}var Rf=require("child_process");var JV=require("async_hooks");function Sf(e){return(e?.components??[]).filter(t=>!!t.repository)}function kf(e){let t=e.sharedEnvironment;return t?.environmentId&&t.environmentAddress?!0:Sf(t).length>0}var u$e=new JV.AsyncLocalStorage;var WV=["--no-pager","-c","core.hooksPath=/dev/null","-c","core.fsmonitor=false","-c","commit.gpgsign=false","-c","tag.gpgsign=false","-c","core.sshCommand=/usr/bin/false","-c","credential.helper=","-c","core.askPass=/usr/bin/false","-c","core.alternateRefsCommand=","-c","diff.external=","-c","protocol.allow=never","-c","protocol.https.allow=always"],Que="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function $ue(e){let t={...e,GIT_ALLOW_PROTOCOL:"https",GIT_TERMINAL_PROMPT:"0",GIT_ASKPASS:"/usr/bin/false",GIT_EDITOR:"/usr/bin/true",GIT_SEQUENCE_EDITOR:"/usr/bin/true"};for(let n of["GIT_CONFIG","GIT_CONFIG_PARAMETERS","GIT_EXEC_PATH","GIT_EXTERNAL_DIFF","GIT_SSH","GIT_SSH_COMMAND","GIT_SSH_VARIANT","GIT_PROXY_COMMAND","GIT_PAGER"])delete t[n];for(let n of _l)delete t[n];return t}function Tue(e,t){let n=cR(e,"git"),s=n.executable,r=Cf(e,{...$ue(t),PATH:n.env.PATH}),i=xs([s,...WV,"config","--null","--name-only","--get-regexp",Que],e,r),o=[];try{o=(0,Rf.execFileSync)(i.argv[0],i.argv.slice(1),{cwd:e,env:i.env,encoding:"utf8",stdio:["ignore","pipe","pipe"],timeout:3e4}).split("\0").filter(Boolean)}catch(c){if(c.status!==1)throw c}if(o.some(c=>c.includes("=")))throw new Error("protected Git cannot safely disable an executable Git configuration key containing '='");let a=o.flatMap(c=>["-c",`${c}=${c.startsWith("merge.")?"false":""}`]);return{binary:s,env:r,config:[...WV,...a]}}function zy(e,t,n=process.env){if(!Qs(t))return{argv:["git",...e],env:n};let s=Tue(t,n),r=[...e],i=new Set(["-c","-C","--config-env","--git-dir","--work-tree","--namespace","--super-prefix","--exec-path"]);for(let o=0;o<r.length;o++){if(i.has(r[o])){o++;continue}if(!r[o].startsWith("-")){r[o]==="diff"&&r.splice(o+1,0,"--no-ext-diff","--no-textconv");break}}return xs([s.binary,...s.config,...r],t,s.env)}function qt(e,t){let n=zy(e,t.cwd,t.env??process.env);return(0,Rf.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}function lR(e,t){let n=zy(e,t.cwd,t.env??process.env);return(0,Rf.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}var uG=Z(require("path"));var l={};Wr(l,{BRAND:()=>sle,DIRTY:()=>xc,EMPTY_PATH:()=>Pue,INVALID:()=>Re,NEVER:()=>jle,OK:()=>Nn,ParseStatus:()=>wn,Schema:()=>Ze,ZodAny:()=>Ho,ZodArray:()=>Hi,ZodBigInt:()=>$c,ZodBoolean:()=>Tc,ZodBranded:()=>xf,ZodCatch:()=>Vc,ZodDate:()=>_c,ZodDefault:()=>jc,ZodDiscriminatedUnion:()=>Jy,ZodEffects:()=>as,ZodEnum:()=>Mc,ZodError:()=>hr,ZodFirstPartyTypeKind:()=>Te,ZodFunction:()=>Yy,ZodIntersection:()=>Oc,ZodIssueCode:()=>V,ZodLazy:()=>Uc,ZodLiteral:()=>Fc,ZodMap:()=>Ml,ZodNaN:()=>jl,ZodNativeEnum:()=>Lc,ZodNever:()=>$s,ZodNull:()=>Nc,ZodNullable:()=>ci,ZodNumber:()=>Qc,ZodObject:()=>gr,ZodOptional:()=>is,ZodParsedType:()=>ie,ZodPipeline:()=>Qf,ZodPromise:()=>qo,ZodReadonly:()=>Gc,ZodRecord:()=>Wy,ZodSchema:()=>Ze,ZodSet:()=>Ll,ZodString:()=>zo,ZodSymbol:()=>Ul,ZodTransformer:()=>as,ZodTuple:()=>ai,ZodType:()=>Ze,ZodUndefined:()=>Dc,ZodUnion:()=>Pc,ZodUnknown:()=>zi,ZodVoid:()=>Fl,addIssueToContext:()=>te,any:()=>fle,array:()=>Ale,bigint:()=>cle,boolean:()=>oG,coerce:()=>Lle,custom:()=>rG,date:()=>ule,datetimeRegex:()=>tG,defaultErrorMap:()=>Vi,discriminatedUnion:()=>ble,effect:()=>_le,enum:()=>Qle,function:()=>Rle,getErrorMap:()=>Nl,getParsedType:()=>oi,instanceof:()=>ole,intersection:()=>wle,isAborted:()=>Hy,isAsync:()=>Pl,isDirty:()=>qy,isValid:()=>Go,late:()=>ile,lazy:()=>Ble,literal:()=>xle,makeIssue:()=>Bf,map:()=>Sle,nan:()=>ale,nativeEnum:()=>$le,never:()=>gle,null:()=>ple,nullable:()=>Nle,number:()=>iG,object:()=>yle,objectUtil:()=>dR,oboolean:()=>Mle,onumber:()=>Fle,optional:()=>Dle,ostring:()=>Ule,pipeline:()=>Ole,preprocess:()=>Ple,promise:()=>Tle,quotelessJson:()=>_ue,record:()=>Cle,set:()=>kle,setErrorMap:()=>Nue,strictObject:()=>Ele,string:()=>sG,symbol:()=>lle,transformer:()=>_le,tuple:()=>Ile,undefined:()=>dle,union:()=>vle,unknown:()=>hle,util:()=>rt,void:()=>mle});var rt;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let i={};for(let o of r)i[o]=o;return i},e.getValidEnumValues=r=>{let i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(let a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let i=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(let o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(rt||(rt={}));var dR;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(dR||(dR={}));var ie=rt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),oi=e=>{switch(typeof e){case"undefined":return ie.undefined;case"string":return ie.string;case"number":return Number.isNaN(e)?ie.nan:ie.number;case"boolean":return ie.boolean;case"function":return ie.function;case"bigint":return ie.bigint;case"symbol":return ie.symbol;case"object":return Array.isArray(e)?ie.array:e===null?ie.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ie.promise:typeof Map<"u"&&e instanceof Map?ie.map:typeof Set<"u"&&e instanceof Set?ie.set:typeof Date<"u"&&e instanceof Date?ie.date:ie.object;default:return ie.unknown}};var V=rt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),_ue=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),hr=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;c<o.path.length;){let u=o.path[c],d=c===o.path.length-1;if(u==="_errors"){d&&a._errors.push(n(o)),c++;continue}Object.prototype.hasOwnProperty.call(a,u)||(u==="__proto__"?Object.defineProperty(a,u,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0}):a[u]={_errors:[]}),a=a[u],d&&a._errors.push(n(o)),c++}}};return r(this),s}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,rt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n=Object.create(null),s=[];for(let r of this.issues)if(r.path.length>0){let i=r.path[0];n[i]=n[i]||[],n[i].push(t(r))}else s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}};hr.create=e=>new hr(e);var Due=(e,t)=>{let n;switch(e.code){case V.invalid_type:e.received===ie.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case V.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,rt.jsonStringifyReplacer)}`;break;case V.unrecognized_keys:n=`Unrecognized key(s) in object: ${rt.joinValues(e.keys,", ")}`;break;case V.invalid_union:n="Invalid input";break;case V.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${rt.joinValues(e.options)}`;break;case V.invalid_enum_value:n=`Invalid enum value. Expected ${rt.joinValues(e.options)}, received '${e.received}'`;break;case V.invalid_arguments:n="Invalid function arguments";break;case V.invalid_return_type:n="Invalid function return type";break;case V.invalid_date:n="Invalid date";break;case V.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:rt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case V.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case V.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case V.custom:n="Invalid input";break;case V.invalid_intersection_types:n="Intersection results could not be merged";break;case V.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case V.not_finite:n="Number must be finite";break;default:n=t.defaultError,rt.assertNever(e)}return{message:n}},Vi=Due;var YV=Vi;function Nue(e){YV=e}function Nl(){return YV}var Bf=e=>{let{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="",c=s.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},Pue=[];function te(e,t){let n=Nl(),s=Bf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Vi?void 0:Vi].filter(r=>!!r)});e.common.issues.push(s)}var wn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let s=[];for(let r of n){if(r.status==="aborted")return Re;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){let s=[];for(let r of n){let i=await r.key,o=await r.value;s.push({key:i,value:o})}return e.mergeObjectSync(t,s)}static mergeObjectSync(t,n){let s={};for(let r of n){let{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return Re;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}},Re=Object.freeze({status:"aborted"}),xc=e=>({status:"dirty",value:e}),Nn=e=>({status:"valid",value:e}),Hy=e=>e.status==="aborted",qy=e=>e.status==="dirty",Go=e=>e.status==="valid",Pl=e=>typeof Promise<"u"&&e instanceof Promise;var fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(fe||(fe={}));var os=class{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},ZV=(e,t)=>{if(Go(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new hr(e.common.issues);return this._error=n,this._error}}};function ze(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??s??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:r}}var Ze=class{get description(){return this._def.description}_getType(t){return oi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:oi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new wn,ctx:{common:t.parent.common,data:t.data,parsedType:oi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Pl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){let s={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:oi(t)},r=this._parseSync({data:t,path:s.path,parent:s});return ZV(s,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:oi(t)};if(!this["~standard"].async)try{let s=this._parseSync({data:t,path:[],parent:n});return Go(s)?{value:s.value}:{issues:n.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>Go(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){let s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){let s={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:oi(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(Pl(r)?r:Promise.resolve(r));return ZV(s,i)}refine(t,n){let s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{let o=t(r),a=()=>i.addIssue({code:V.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new as({schema:this,typeName:Te.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return is.create(this,this._def)}nullable(){return ci.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Hi.create(this)}promise(){return qo.create(this,this._def)}or(t){return Pc.create([this,t],this._def)}and(t){return Oc.create(this,t,this._def)}transform(t){return new as({...ze(this._def),schema:this,typeName:Te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new jc({...ze(this._def),innerType:this,defaultValue:n,typeName:Te.ZodDefault})}brand(){return new xf({typeName:Te.ZodBranded,type:this,...ze(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Vc({...ze(this._def),innerType:this,catchValue:n,typeName:Te.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Qf.create(this,t)}readonly(){return Gc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Oue=/^c[^\s-]{8,}$/i,Uue=/^[0-9a-z]+$/,Fue=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Mue=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Lue=/^[a-z0-9_-]{21}$/i,jue=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Vue=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Gue=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,zue="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",pR,Hue=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,que=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Jue=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Wue=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Yue=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Zue=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,XV="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Kue=new RegExp(`^${XV}$`);function eG(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Xue(e){return new RegExp(`^${eG(e)}$`)}function tG(e){let t=`${XV}T${eG(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function ele(e,t){return!!((t==="v4"||!t)&&Hue.test(e)||(t==="v6"||!t)&&Jue.test(e))}function tle(e,t){if(!jue.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function nle(e,t){return!!((t==="v4"||!t)&&que.test(e)||(t==="v6"||!t)&&Wue.test(e))}var zo=class e extends Ze{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ie.string){let i=this._getOrReturnCtx(t);return te(i,{code:V.invalid_type,expected:ie.string,received:i.parsedType}),Re}let s=new wn,r;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:V.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:V.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){let o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?te(r,{code:V.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&te(r,{code:V.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")Gue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"email",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")pR||(pR=new RegExp(zue,"u")),pR.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"emoji",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")Mue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"uuid",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")Lue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"nanoid",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")Oue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")Uue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid2",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")Fue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ulid",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),te(r,{validation:"url",code:V.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"regex",code:V.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?tG(i).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?Kue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?Xue(i).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?Vue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"duration",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?ele(t.data,i.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ip",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?tle(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"jwt",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?nle(t.data,i.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cidr",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?Yue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?Zue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64url",code:V.invalid_string,message:i.message}),s.dirty()):rt.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(r=>t.test(r),{validation:n,code:V.invalid_string,...fe.errToObj(s)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...fe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...fe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...fe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...fe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...fe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...fe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...fe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...fe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...fe.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...fe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...fe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...fe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...fe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...fe.errToObj(n)})}nonempty(t){return this.min(1,fe.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};zo.create=e=>new zo({checks:[],typeName:Te.ZodString,coerce:e?.coerce??!1,...ze(e)});function rle(e,t){let n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return i%o/10**r}var Qc=class e extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ie.number){let i=this._getOrReturnCtx(t);return te(i,{code:V.invalid_type,expected:ie.number,received:i.parsedType}),Re}let s,r=new wn;for(let i of this._def.checks)i.kind==="int"?rt.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),te(s,{code:V.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?rle(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),te(s,{code:V.not_finite,message:i.message}),r.dirty()):rt.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:fe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:fe.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&rt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}};Qc.create=e=>new Qc({checks:[],typeName:Te.ZodNumber,coerce:e?.coerce||!1,...ze(e)});var $c=class e extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ie.bigint)return this._getInvalidInput(t);let s,r=new wn;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):rt.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return te(n,{code:V.invalid_type,expected:ie.bigint,received:n.parsedType}),Re}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:fe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};$c.create=e=>new $c({checks:[],typeName:Te.ZodBigInt,coerce:e?.coerce??!1,...ze(e)});var Tc=class extends Ze{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ie.boolean){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.boolean,received:s.parsedType}),Re}return Nn(t.data)}};Tc.create=e=>new Tc({typeName:Te.ZodBoolean,coerce:e?.coerce||!1,...ze(e)});var _c=class e extends Ze{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ie.date){let i=this._getOrReturnCtx(t);return te(i,{code:V.invalid_type,expected:ie.date,received:i.parsedType}),Re}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return te(i,{code:V.invalid_date}),Re}let s=new wn,r;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:V.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:V.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):rt.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:fe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:fe.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};_c.create=e=>new _c({checks:[],coerce:e?.coerce||!1,typeName:Te.ZodDate,...ze(e)});var Ul=class extends Ze{_parse(t){if(this._getType(t)!==ie.symbol){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.symbol,received:s.parsedType}),Re}return Nn(t.data)}};Ul.create=e=>new Ul({typeName:Te.ZodSymbol,...ze(e)});var Dc=class extends Ze{_parse(t){if(this._getType(t)!==ie.undefined){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.undefined,received:s.parsedType}),Re}return Nn(t.data)}};Dc.create=e=>new Dc({typeName:Te.ZodUndefined,...ze(e)});var Nc=class extends Ze{_parse(t){if(this._getType(t)!==ie.null){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.null,received:s.parsedType}),Re}return Nn(t.data)}};Nc.create=e=>new Nc({typeName:Te.ZodNull,...ze(e)});var Ho=class extends Ze{constructor(){super(...arguments),this._any=!0}_parse(t){return Nn(t.data)}};Ho.create=e=>new Ho({typeName:Te.ZodAny,...ze(e)});var zi=class extends Ze{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Nn(t.data)}};zi.create=e=>new zi({typeName:Te.ZodUnknown,...ze(e)});var $s=class extends Ze{_parse(t){let n=this._getOrReturnCtx(t);return te(n,{code:V.invalid_type,expected:ie.never,received:n.parsedType}),Re}};$s.create=e=>new $s({typeName:Te.ZodNever,...ze(e)});var Fl=class extends Ze{_parse(t){if(this._getType(t)!==ie.undefined){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.void,received:s.parsedType}),Re}return Nn(t.data)}};Fl.create=e=>new Fl({typeName:Te.ZodVoid,...ze(e)});var Hi=class e extends Ze{_parse(t){let{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==ie.array)return te(n,{code:V.invalid_type,expected:ie.array,received:n.parsedType}),Re;if(r.exactLength!==null){let o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(te(n,{code:o?V.too_big:V.too_small,minimum:a?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(te(n,{code:V.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(te(n,{code:V.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new os(n,o,n.path,a)))).then(o=>wn.mergeArray(s,o));let i=[...n.data].map((o,a)=>r.type._parseSync(new os(n,o,n.path,a)));return wn.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:fe.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:fe.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:fe.toString(n)}})}nonempty(t){return this.min(1,t)}};Hi.create=(e,t)=>new Hi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Te.ZodArray,...ze(t)});function Ol(e){if(e instanceof gr){let t={};for(let n in e.shape){let s=e.shape[n];t[n]=is.create(Ol(s))}return new gr({...e._def,shape:()=>t})}else return e instanceof Hi?new Hi({...e._def,type:Ol(e.element)}):e instanceof is?is.create(Ol(e.unwrap())):e instanceof ci?ci.create(Ol(e.unwrap())):e instanceof ai?ai.create(e.items.map(t=>Ol(t))):e}var gr=class e extends Ze{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=rt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ie.object){let u=this._getOrReturnCtx(t);return te(u,{code:V.invalid_type,expected:ie.object,received:u.parsedType}),Re}let{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof $s&&this._def.unknownKeys==="strip"))for(let u in r.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let d=i[u],p=r.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new os(r,p,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof $s){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:r.data[d]}});else if(u==="strict")a.length>0&&(te(r,{code:V.unrecognized_keys,keys:a}),s.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of a){let p=r.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new os(r,p,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of c){let p=await d.key,h=await d.value;u.push({key:p,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>wn.mergeObjectSync(s,u)):wn.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return fe.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{let r=this._def.errorMap?.(n,s).message??s.defaultError;return n.code==="unrecognized_keys"?{message:fe.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Te.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let s of rt.objectKeys(t))t[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let s of rt.objectKeys(this.shape))t[s]||(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}deepPartial(){return Ol(this)}partial(t){let n={};for(let s of rt.objectKeys(this.shape)){let r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let s of rt.objectKeys(this.shape))if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof is;)i=i._def.innerType;n[s]=i}return new e({...this._def,shape:()=>n})}keyof(){return nG(rt.objectKeys(this.shape))}};gr.create=(e,t)=>new gr({shape:()=>e,unknownKeys:"strip",catchall:$s.create(),typeName:Te.ZodObject,...ze(t)});gr.strictCreate=(e,t)=>new gr({shape:()=>e,unknownKeys:"strict",catchall:$s.create(),typeName:Te.ZodObject,...ze(t)});gr.lazycreate=(e,t)=>new gr({shape:e,unknownKeys:"strip",catchall:$s.create(),typeName:Te.ZodObject,...ze(t)});var Pc=class extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new hr(a.ctx.common.issues));return te(n,{code:V.invalid_union,unionErrors:o}),Re}if(n.common.async)return Promise.all(s.map(async i=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i,o=[];for(let c of s){let u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new hr(c));return te(n,{code:V.invalid_union,unionErrors:a}),Re}}get options(){return this._def.options}};Pc.create=(e,t)=>new Pc({options:e,typeName:Te.ZodUnion,...ze(t)});var Gi=e=>e instanceof Uc?Gi(e.schema):e instanceof as?Gi(e.innerType()):e instanceof Fc?[e.value]:e instanceof Mc?e.options:e instanceof Lc?rt.objectValues(e.enum):e instanceof jc?Gi(e._def.innerType):e instanceof Dc?[void 0]:e instanceof Nc?[null]:e instanceof is?[void 0,...Gi(e.unwrap())]:e instanceof ci?[null,...Gi(e.unwrap())]:e instanceof xf||e instanceof Gc?Gi(e.unwrap()):e instanceof Vc?Gi(e._def.innerType):[],Jy=class e extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.object)return te(n,{code:V.invalid_type,expected:ie.object,received:n.parsedType}),Re;let s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(te(n,{code:V.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){let r=new Map;for(let i of n){let o=Gi(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new e({typeName:Te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...ze(s)})}};function fR(e,t){let n=oi(e),s=oi(t);if(e===t)return{valid:!0,data:e};if(n===ie.object&&s===ie.object){let r=rt.objectKeys(t),i=rt.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let a of i){if(a==="__proto__")continue;let c=fR(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===ie.array&&s===ie.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let i=0;i<e.length;i++){let o=e[i],a=t[i],c=fR(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===ie.date&&s===ie.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Oc=class extends Ze{_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(Hy(i)||Hy(o))return Re;let a=fR(i.value,o.value);return a.valid?((qy(i)||qy(o))&&n.dirty(),{status:n.value,value:a.data}):(te(s,{code:V.invalid_intersection_types}),Re)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};Oc.create=(e,t,n)=>new Oc({left:e,right:t,typeName:Te.ZodIntersection,...ze(n)});var ai=class e extends Ze{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.array)return te(s,{code:V.invalid_type,expected:ie.array,received:s.parsedType}),Re;if(s.data.length<this._def.items.length)return te(s,{code:V.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&s.data.length>this._def.items.length&&(te(s,{code:V.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...s.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new os(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>wn.mergeArray(n,o)):wn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ai.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ai({items:e,typeName:Te.ZodTuple,rest:null,...ze(t)})};var Wy=class e extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.object)return te(s,{code:V.invalid_type,expected:ie.object,received:s.parsedType}),Re;let r=[],i=this._def.keyType,o=this._def.valueType;for(let a in s.data)r.push({key:i._parse(new os(s,a,s.path,a)),value:o._parse(new os(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?wn.mergeObjectAsync(n,r):wn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof Ze?new e({keyType:t,valueType:n,typeName:Te.ZodRecord,...ze(s)}):new e({keyType:zo.create(),valueType:t,typeName:Te.ZodRecord,...ze(n)})}},Ml=class extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.map)return te(s,{code:V.invalid_type,expected:ie.map,received:s.parsedType}),Re;let r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],u)=>({key:r._parse(new os(s,a,s.path,[u,"key"])),value:i._parse(new os(s,c,s.path,[u,"value"]))}));if(s.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return Re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return Re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}};Ml.create=(e,t,n)=>new Ml({valueType:t,keyType:e,typeName:Te.ZodMap,...ze(n)});var Ll=class e extends Ze{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.set)return te(s,{code:V.invalid_type,expected:ie.set,received:s.parsedType}),Re;let r=this._def;r.minSize!==null&&s.data.size<r.minSize.value&&(te(s,{code:V.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&s.data.size>r.maxSize.value&&(te(s,{code:V.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let i=this._def.valueType;function o(c){let u=new Set;for(let d of c){if(d.status==="aborted")return Re;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}let a=[...s.data.values()].map((c,u)=>i._parse(new os(s,c,s.path,u)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:fe.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:fe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Ll.create=(e,t)=>new Ll({valueType:e,minSize:null,maxSize:null,typeName:Te.ZodSet,...ze(t)});var Yy=class e extends Ze{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.function)return te(n,{code:V.invalid_type,expected:ie.function,received:n.parsedType}),Re;function s(a,c){return Bf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Nl(),Vi].filter(u=>!!u),issueData:{code:V.invalid_arguments,argumentsError:c}})}function r(a,c){return Bf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Nl(),Vi].filter(u=>!!u),issueData:{code:V.invalid_return_type,returnTypeError:c}})}let i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof qo){let a=this;return Nn(async function(...c){let u=new hr([]),d=await a._def.args.parseAsync(c,i).catch(g=>{throw u.addIssue(s(c,g)),u}),p=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(p,i).catch(g=>{throw u.addIssue(r(p,g)),u})})}else{let a=this;return Nn(function(...c){let u=a._def.args.safeParse(c,i);if(!u.success)throw new hr([s(c,u.error)]);let d=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(d,i);if(!p.success)throw new hr([r(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ai.create(t).rest(zi.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new e({args:t||ai.create([]).rest(zi.create()),returns:n||zi.create(),typeName:Te.ZodFunction,...ze(s)})}},Uc=class extends Ze{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Uc.create=(e,t)=>new Uc({getter:e,typeName:Te.ZodLazy,...ze(t)});var Fc=class extends Ze{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return te(n,{received:n.data,code:V.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:t.data}}get value(){return this._def.value}};Fc.create=(e,t)=>new Fc({value:e,typeName:Te.ZodLiteral,...ze(t)});function nG(e,t){return new Mc({values:e,typeName:Te.ZodEnum,...ze(t)})}var Mc=class e extends Ze{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),s=this._def.values;return te(n,{expected:rt.joinValues(s),received:n.parsedType,code:V.invalid_type}),Re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),s=this._def.values;return te(n,{received:n.data,code:V.invalid_enum_value,options:s}),Re}return Nn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}};Mc.create=nG;var Lc=class extends Ze{_parse(t){let n=rt.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==ie.string&&s.parsedType!==ie.number){let r=rt.objectValues(n);return te(s,{expected:rt.joinValues(r),received:s.parsedType,code:V.invalid_type}),Re}if(this._cache||(this._cache=new Set(rt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=rt.objectValues(n);return te(s,{received:s.data,code:V.invalid_enum_value,options:r}),Re}return Nn(t.data)}get enum(){return this._def.values}};Lc.create=(e,t)=>new Lc({values:e,typeName:Te.ZodNativeEnum,...ze(t)});var qo=class extends Ze{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.promise&&n.common.async===!1)return te(n,{code:V.invalid_type,expected:ie.promise,received:n.parsedType}),Re;let s=n.parsedType===ie.promise?n.data:Promise.resolve(n.data);return Nn(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};qo.create=(e,t)=>new qo({type:e,typeName:Te.ZodPromise,...ze(t)});var as=class extends Ze{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{te(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){let o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return Re;let c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?Re:c.status==="dirty"?xc(c.value):n.value==="dirty"?xc(c.value):c});{if(n.value==="aborted")return Re;let a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?Re:a.status==="dirty"?xc(a.value):n.value==="dirty"?xc(a.value):a}}if(r.type==="refinement"){let o=a=>{let c=r.refinement(a,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){let a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Re:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?Re:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){let o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Go(o))return Re;let a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Go(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):Re);rt.assertNever(r)}};as.create=(e,t,n)=>new as({schema:e,typeName:Te.ZodEffects,effect:t,...ze(n)});as.createWithPreprocess=(e,t,n)=>new as({schema:t,effect:{type:"preprocess",transform:e},typeName:Te.ZodEffects,...ze(n)});var is=class extends Ze{_parse(t){return this._getType(t)===ie.undefined?Nn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};is.create=(e,t)=>new is({innerType:e,typeName:Te.ZodOptional,...ze(t)});var ci=class extends Ze{_parse(t){return this._getType(t)===ie.null?Nn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ci.create=(e,t)=>new ci({innerType:e,typeName:Te.ZodNullable,...ze(t)});var jc=class extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return n.parsedType===ie.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};jc.create=(e,t)=>new jc({innerType:e,typeName:Te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ze(t)});var Vc=class extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Pl(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new hr(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new hr(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};Vc.create=(e,t)=>new Vc({innerType:e,typeName:Te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ze(t)});var jl=class extends Ze{_parse(t){if(this._getType(t)!==ie.nan){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.nan,received:s.parsedType}),Re}return{status:"valid",value:t.data}}};jl.create=e=>new jl({typeName:Te.ZodNaN,...ze(e)});var sle=Symbol("zod_brand"),xf=class extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}},Qf=class e extends Ze{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?Re:i.status==="dirty"?(n.dirty(),xc(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{let r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?Re:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new e({in:t,out:n,typeName:Te.ZodPipeline})}},Gc=class extends Ze{_parse(t){let n=this._def.innerType._parse(t),s=r=>(Go(r)&&(r.value=Object.freeze(r.value)),r);return Pl(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}};Gc.create=(e,t)=>new Gc({innerType:e,typeName:Te.ZodReadonly,...ze(t)});function KV(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function rG(e,t={},n){return e?Ho.create().superRefine((s,r)=>{let i=e(s);if(i instanceof Promise)return i.then(o=>{if(!o){let a=KV(t,s),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}});if(!i){let o=KV(t,s),a=o.fatal??n??!0;r.addIssue({code:"custom",...o,fatal:a})}}):Ho.create()}var ile={object:gr.lazycreate},Te;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Te||(Te={}));var ole=(e,t={message:`Input not instance of ${e.name}`})=>rG(n=>n instanceof e,t),sG=zo.create,iG=Qc.create,ale=jl.create,cle=$c.create,oG=Tc.create,ule=_c.create,lle=Ul.create,dle=Dc.create,ple=Nc.create,fle=Ho.create,hle=zi.create,gle=$s.create,mle=Fl.create,Ale=Hi.create,yle=gr.create,Ele=gr.strictCreate,vle=Pc.create,ble=Jy.create,wle=Oc.create,Ile=ai.create,Cle=Wy.create,Sle=Ml.create,kle=Ll.create,Rle=Yy.create,Ble=Uc.create,xle=Fc.create,Qle=Mc.create,$le=Lc.create,Tle=qo.create,_le=as.create,Dle=is.create,Nle=ci.create,Ple=as.createWithPreprocess,Ole=Qf.create,Ule=()=>sG().optional(),Fle=()=>iG().optional(),Mle=()=>oG().optional(),Lle={string:(e=>zo.create({...e,coerce:!0})),number:(e=>Qc.create({...e,coerce:!0})),boolean:(e=>Tc.create({...e,coerce:!0})),bigint:(e=>$c.create({...e,coerce:!0})),date:(e=>_c.create({...e,coerce:!0}))};var jle=Re;var Vl=(r=>(r.ModelProvider="model_provider",r.SutAccess="sut_access",r.Skyramp="skyramp",r.Other="other",r))(Vl||{}),Jo=(s=>(s.Ready="ready",s.Blocked="blocked",s.NeedsInputs="needs_inputs",s))(Jo||{}),$f=e=>e==="ready"||e==="needs_inputs",Zy=300,Vt=l.string().trim().min(1),Vle=l.object({action:l.enum(["start","run","wait"]),text:Vt,source:l.enum(["file","notes","testbot"]).describe("file: a file in the repository; notes: the Target's notes; testbot: Testbot's own finding"),file:Vt.nullable().describe("the file the step came from, relative to the component's repository; null unless source is file")}).strict().refine(e=>e.source==="file"==(e.file!==null),{path:["file"],message:"a file exactly when the step came from one"}),Tf=/^[A-Za-z_][A-Za-z0-9_]*$/,cs=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,Gl=(o=>(o.VersionEndpoint="version_endpoint",o.DeployWorkflow="deploy_workflow",o.KubernetesLabels="kubernetes_labels",o.Command="command",o.Api="api",o.NotTracked="not_tracked",o))(Gl||{}),mr="shared",Gle=Vt.refine(e=>{try{let t=new URL(e);return["http:","https:"].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}},"an http(s) URL with no login in it"),zl=l.object({address:Gle,readyWhen:Vt.nullable(),credentials:l.array(l.string().regex(cs)).max(50),revisionSources:l.array(l.object({method:l.nativeEnum(Gl),detail:Vt.describe("what Testbot reads, such as GET /version or the deploy workflow's name; for not_tracked, why nothing shows it"),components:l.array(Vt).min(1).describe("the components it tells the revision of, by name")}).strict()).max(50)}).strict(),hR={steps:l.array(Vle).max(20).optional().describe("how it starts, in order"),kind:l.enum(["web_app","service","database","external_service"]).optional(),from:l.object({file:Vt,service:Vt.nullable()}).strict().optional(),credentials:l.array(l.string().max(100).regex(Tf)).max(50).optional().describe("the Target's credentials this component's recipe uses: a sign-in (a test user, password or token) or an API key, which the workflow supplies from a GitHub Actions secret as the environment variable of the credential's name; give each name exactly as the recipe reads it. Names only, never a value, and not a secret the recipe generates itself")},Ky=l.object({name:Vt,repository:Vt.describe("owner/repo of the Target repository the component is built or started from, such as the one whose compose file starts its database"),healthy:l.boolean(),...hR,deployed:Vt.nullable().optional().describe('only with "environment": the revision the component runs, as you read it from its revision source, or null when you could not tell')}),zle=l.object({name:l.string().regex(cs).describe("the credential's environment variable name, as the recipe reads it and the credentials event names it"),purpose:l.enum(["sut_access","other"]).describe("sut_access: it signs in to or calls the SUT or a service it needs; other: anything else"),required:l.boolean().describe("false only when the SUT starts without it, with less working"),how:Vt.max(Zy).describe('one short sentence: what the value is and where a person gets it, such as "A Mattermost Enterprise licence key, from the customer portal"; never a value')}),Hle=l.object({component:Vt,problem:Vt,evidence:Vt.describe("the exact command and output that shows it"),fix:Vt.describe("what the user must provide, and where")}),qle=l.object({framework:Vt,file:Vt.describe("the test file run, relative to its repository root"),result:l.enum(["pass","fail","error"])}),Jle=l.object({input:Vt.describe("the part of the user's SUT input, as given"),reason:Vt}),aG=l.object({schemaVersion:l.literal(1),status:l.nativeEnum(Jo).describe("ready only if every component came up healthy and the recipe is written; needs_inputs when the recipe is written but a component cannot start without a credential this run has no value for"),components:l.array(Ky),suites:l.array(qle).default([]).describe("one run per test suite the Target's repositories have; empty when they have none"),inputsUsed:l.array(Vt).default([]).describe("the parts of the user's SUT input the recipe used as given"),inputsUsedHow:l.array(l.object({input:Vt.describe("exactly as written in inputsUsed; an entry that is not there is left out"),how:Vt.describe("what the recipe did with it")})).optional(),inputsNotUsed:l.array(Jle).default([]).describe("the parts it did not use, and why. A part that is wrong goes here, with what was wrong, even when the recipe does something like it instead: one the repositories or the app show is wrong, such as a file, command, port, route or setting that is not there. Something outside them that does not answer is not one: that is a blocker"),blockers:l.array(Hle).describe("required (non-empty) when status is blocked"),inputs:l.array(zle).max(50).optional().describe("required (non-empty) when status is needs_inputs, else left out: each credential the candidate recipe needs a value for"),environment:zl.optional().describe("only when the whole SUT is an existing deployment you tested where it runs, building and starting nothing: its address, what says it is ready, the credentials that reach it, and how to read what each component runs. Leave it out when any part was built or started on the runner, or reaching it needed something there (a tunnel, port-forward, proxy or client certificate)")});var _f=64*1024,Df=512*1024,gR=/[\u0000-\u0008\u000b\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/;var Mr=(r=>(r.Clean="clean",r.RecipeDrift="recipe-drift",r.ChangeBrokeBringup="change-broke-bringup",r.BringupFailed="bringup-failed",r))(Mr||{}),Ts=l.string().trim().min(1),cG=l.object({url:l.string().optional().describe("the URL probed, if the check is an HTTP request"),command:l.string().optional().describe("the command run, if the check is a script \u2014 preferred when auth is needed"),headers:l.record(l.string()).optional(),status:l.union([l.number(),l.string()]).optional().describe("expected HTTP status for a url check (default 200)"),output:Ts.describe("what the check returned, VERBATIM \u2014 the bytes, nothing appended; this gate RE-RUNS the check")}),mR=l.array(l.object({component:Ts.describe("a shared component listed above"),url:Ts.describe("the URL on the component's own origin (scheme, host and port) that answers with its deployed commit"),output:Ts.describe("what the URL returned, VERBATIM; this gate FETCHES each url")})).describe("only when shared components are listed above: one check per component whose deployed commit you found"),Wle=l.object({name:Ts.describe("the credential's environment variable name, as listed above; never its value"),component:Ts.describe("the component that refused it"),status:l.number().int().min(400).max(599).optional().describe("the HTTP status it got, such as 401 or 403; leave it out when the refusal was not an HTTP answer"),evidence:Ts.describe("the request or command you tested it with and what came back, never the value")}),Nf=l.object({schemaVersion:l.literal(1),baseUrls:l.record(l.string()).optional().describe("service \u2192 base URL of the running app; omit on a failed bring-up, never invent one"),health:cG.optional(),teardown:Ts.describe("command that tears the SUT down"),dependencies:l.record(l.boolean()).optional().describe("EVERY backing service: true = really deployed, false = mocked; REQUIRED when the app came up"),outcome:l.nativeEnum(Mr).describe("clean | recipe-drift (you corrected the recipe) | change-broke-bringup (the PR broke it) | bringup-failed (environment, not the PR)"),recipeFixes:l.array(l.string()).optional().describe("required when outcome is recipe-drift: what was corrected"),bringupError:l.object({command:Ts,output:Ts}).optional().describe("required when bring-up failed: the exact failing command and what it printed"),suspectFiles:l.array(l.string()).optional().describe("required for change-broke-bringup: files THIS PR changed that the failure points at, relative to your working directory (a file in another checkout of the run: its absolute path)"),seeded:l.boolean(),startedAt:Ts.describe("ISO timestamp"),revisions:mR.optional(),missingSecrets:l.array(l.string().regex(Tf)).optional().describe("bringup-failed only: each secret the app cannot start without that this run has no value for, by its environment variable name; never a value"),credentialsRefused:l.array(Wle).optional().describe("only for credentials the prompt lists to test: each that was refused when you tested it, such as with a 401 or 403; leave it out when none was, or when none is listed"),recipeRecorded:l.boolean().optional().describe("[derived] whether the checkout had a recorded recipe before bring-up")});function AR(e){let t=[],n=r=>!!r&&typeof r=="object"&&!Array.isArray(r);return e.outcome!=="change-broke-bringup"&&e.outcome!=="bringup-failed"?(!n(e.baseUrls)||Object.keys(e.baseUrls).length===0?t.push("baseUrls must be a non-empty object of service \u2192 url"):Object.values(e.baseUrls).every(r=>typeof r=="string"&&r.trim())||t.push("every baseUrls value must be a non-empty url string"),n(e.health)?!(typeof e.health.url=="string"&&e.health.url.trim())&&!(typeof e.health.command=="string"&&e.health.command.trim())&&t.push("health must record a url or a command (what you actually ran)"):t.push("health must be an object"),(!n(e.dependencies)||Object.keys(e.dependencies).length===0)&&t.push("dependencies must be a non-empty object of name \u2192 boolean (real vs mocked) when the SUT came up \u2014 account for every backing service so a mocked one can't be hidden behind a green run")):(n(e.bringupError)||t.push(`outcome "${String(e.outcome)}" requires bringupError { command, output } \u2014 the exact failing bring-up command and what it printed`),e.outcome==="change-broke-bringup"&&!(Array.isArray(e.suspectFiles)&&e.suspectFiles.length>0&&e.suspectFiles.every(r=>typeof r=="string"&&r.trim()))&&t.push("change-broke-bringup requires non-empty suspectFiles[] \u2014 the changed file(s) the failure points at; if you cannot point at a file this PR changed, the outcome is bringup-failed (environment/harness), not the PR's fault")),e.outcome==="recipe-drift"&&!(Array.isArray(e.recipeFixes)&&e.recipeFixes.length>0)&&t.push("recipe-drift outcome requires a non-empty recipeFixes[] describing what was corrected"),t}var In=l.string().trim().min(1),Xy=In,yR=(n=>(n.TestbotManaged="testbot_managed",n.CustomerDeployed="customer_deployed",n))(yR||{}),eE=[".skyramp/sut/setup.sh",".skyramp/sut/teardown.sh"],ER=l.object({schemaVersion:l.literal(1),type:l.nativeEnum(yR).optional(),repository:Xy.optional().describe("namespace/name of the source whose checkout the recipe was written and proven in (SKYR-5380); a run replays it from there. Never on a customer_deployed plan"),status:l.enum(["ready","blocked"]),environment:zl.optional(),components:l.array(l.object({name:In,repository:In.describe(`owner/repo, or "${mr}" for a customer-deployed component no repository builds`),healthy:l.boolean(),url:l.string().min(1).nullable(),...hR,credentials:l.array(l.string().regex(cs)).max(50).optional(),deployed:In.nullable().optional().describe("customer_deployed only: the revision the component runs, as setup read it (WF-SETUP-22's Deployed now), or null when it could not tell")}).strict()),suites:l.array(l.object({framework:In,file:In,result:l.enum(["pass","fail","error"])}).strict()),inputsUsed:l.array(In),inputsUsedHow:l.array(l.object({input:In,how:In}).strict()).optional(),inputsNotUsed:l.array(l.object({input:In,reason:In}).strict()),blockers:l.array(l.object({component:In,problem:In,evidence:In,fix:In}).strict()),replay:l.object({outcome:In,durationSeconds:l.number().nonnegative().nullable()}).strict().nullable(),files:l.array(l.object({path:In,content:l.string()}).strict())}).strict().superRefine((e,t)=>{e.inputsUsedHow?.forEach((r,i)=>{e.inputsUsed.includes(r.input)||t.addIssue({code:l.ZodIssueCode.custom,path:["inputsUsedHow",i,"input"],message:"not one of inputsUsed"})}),e.components.forEach((r,i)=>{r.credentials&&new Set(r.credentials).size!==r.credentials.length&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",i,"credentials"],message:"names a credential twice"})});let n=e.type==="customer_deployed";n!==(e.environment!==void 0)&&t.addIssue({code:l.ZodIssueCode.custom,path:["environment"],message:"an environment exactly when the plan's type is customer_deployed"}),n&&e.repository!==void 0&&t.addIssue({code:l.ZodIssueCode.custom,path:["repository"],message:"a customer_deployed plan names no repository"}),e.environment&&new Set(e.environment.credentials).size!==e.environment.credentials.length&&t.addIssue({code:l.ZodIssueCode.custom,path:["environment","credentials"],message:"names a credential twice"});let s=new Set(e.components.map(r=>r.name));if(e.environment?.revisionSources.forEach((r,i)=>{r.components.forEach((o,a)=>{s.has(o)||t.addIssue({code:l.ZodIssueCode.custom,path:["environment","revisionSources",i,"components",a],message:"not one of components"})})}),e.components.forEach((r,i)=>{r.deployed!==void 0!==n&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",i,"deployed"],message:"what a component runs exactly when the plan is customer_deployed"}),r.repository===mr&&!n&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",i,"repository"],message:`only a customer_deployed component is ${mr}`})}),n&&(e.components.forEach((r,i)=>{e.components.findIndex(o=>o.name===r.name)!==i&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",i,"name"],message:"names a component twice"})}),e.replay!==null&&t.addIssue({code:l.ZodIssueCode.custom,path:["replay"],message:"a customer_deployed plan is never replayed"}),e.files.forEach((r,i)=>{eE.includes(r.path)&&t.addIssue({code:l.ZodIssueCode.custom,path:["files",i,"path"],message:"a customer_deployed plan has no script that starts or stops the system"})})),n&&e.status==="ready"){let r=new Set(e.environment?.revisionSources.flatMap(i=>i.components));e.components.forEach((i,o)=>{i.repository!==mr&&!r.has(i.name)&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",o,"name"],message:"a ready customer_deployed plan reads what every component a repository builds runs"})})}});var W$e=["clean","recipe-drift"];function Pf(e){let t=uG.posix.normalize(e);return t===e&&(t===".skyramp/workspace.yml"||t.startsWith(".skyramp/sut/")&&t.length>13)}function vR(e){return[...new Set([...e.components.flatMap(t=>t.credentials??[]),...e.environment?.credentials??[]])].filter(t=>cs.test(t))}var bR=".skyramp/workspace.yml";var eTe=["/.skyramp/sut/",`/${bR}`],tE=[".skyramp/sut",bR];var lG=256*1024*1024,Yle=3e4,nE=12e4;function Jn(e,t,n=Yle){let s=lR([...fr,...t],{env:ht(),cwd:e,encoding:"utf-8",timeout:n,maxBuffer:lG});return s.status===0?s.stdout.trimEnd():void 0}var wR=["--",":/",...tE.map(e=>`:(exclude)${e}`)],dG="--literal-pathspecs";function IR(e,t){return!!Jn(e,[dG,"status","--porcelain","--",t])}function rE(e,t){return/ blob /.test(Jn(e,[dG,"ls-tree","HEAD","--",t])??"")}function CR(e){return Jn(e,["rev-parse","--git-dir"])!==void 0}function Hl(e,t){let n=[];if(t)n.push(t),!t.startsWith("origin/")&&!/[~^:@]/.test(t)&&n.push(`origin/${t}`);else{let s=Jn(e,["symbolic-ref","--short","refs/remotes/origin/HEAD"]);s&&n.push(s),n.push("main","master","origin/main","origin/master")}for(let s of n)if(Jn(e,["rev-parse","--verify",`${s}^{commit}`])!==void 0)return s}function pG(e){if(!e.startsWith('"')||!e.endsWith('"'))return e;let t={a:"\x07",b:"\b",t:" ",n:`
|
|
55
|
+
`,{mode:493})}catch{return}return`bash ${bf(t)}`}}function bf(e){return`'${e.split("'").join("'\\''")}'`}var iR="data-safety-isolation.json";var Tl=new Map,FV=new Map;function wf(e){let t=pe.openSync(e,"r"),n=Buffer.alloc(4);try{if(pe.readSync(t,n,0,4,0)!==4)return!1}finally{pe.closeSync(t)}let s=n.readUInt32BE(0);return s===2135247942||[4277009102,4277009103,3405691582,3405691583,3472551422,3489328638,3199925962,3216703178].includes(s)}function oR(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}function My(e){let t=e.map(s=>{try{return pe.realpathSync(s)}catch{return Ie.resolve(s)}}),n=process.versions.bun?(process.env.PATH??"/usr/bin:/bin").split(Ie.delimiter).filter(Ie.isAbsolute).map(s=>Ie.join(s,"node")):[process.execPath];for(let s of n)try{let r=pe.realpathSync(s);if(pe.accessSync(r,pe.constants.X_OK),ii(t,r)||!pe.statSync(r).isFile()||!wf(r))continue;let i=Bc(e[0]);return i&&oR(i,r),r}catch{}throw new Error("an absolute native Node executable outside sandbox-writable locations is required for isolation")}var Ly=/^(NODE_OPTIONS|NODE_PATH|BASH_ENV|BASHOPTS|SHELLOPTS|PS4|PROMPT_COMMAND|BASH_XTRACEFD|BASH_LOADABLES_PATH|ENV|ZDOTDIR|PYTHONPATH|PYTHONHOME|RUBYOPT|PERL5OPT|PERL5LIB|GCONV_PATH|OPENSSL_CONF|OPENSSL_ENGINES|LD_.*|DYLD_.*|BASH_FUNC_.*)$/,wue=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function Rc(e,t){let n={...t};n.PATH=e.bootstrapPath??aR(e.roots,process.env.PATH??"/usr/bin:/bin").map(s=>(oR(e,s),s)).join(Ie.delimiter),e.bootstrapPath=n.PATH,n.HOME=process.env.HOME,n.SHELL="/bin/bash";for(let s of["TMPDIR","TMP","TEMP"])process.env[s]?n[s]=process.env[s]:delete n[s];for(let s of Object.keys(n))Ly.test(s)&&delete n[s];return n}function aR(e,t){return t.split(Ie.delimiter).flatMap(n=>{if(!Ie.isAbsolute(n))return[];try{let s=pe.realpathSync(n);if(ii(e,s)||e.some(r=>$l(s,r)))return[];for(let r of pe.readdirSync(s)){let i=Ie.join(s,r);try{pe.accessSync(i,pe.constants.X_OK)}catch{continue}if(pe.statSync(i).isFile()&&ii(e,pe.realpathSync(i)))return[]}return[s]}catch{return[]}})}var $l=(e,t)=>t===e||t.startsWith(e+Ie.sep);function ii(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(s=>{try{return pe.realpathSync(s)}catch{return s}});return[...e,...n].some(s=>$l(s,t))}var jV="Testbot could not install it because the Ubuntu package source was unavailable. Run the validation again later",Iue=new Set;function If(e,t,n,s=r=>jt(e,r)){let r=t.includes(Ie.sep)?[Ie.resolve(n,t)]:(Rc(e,{PATH:process.env.PATH}).PATH??"").split(Ie.delimiter).map(i=>Ie.join(i,t));for(let i of r)try{if(pe.accessSync(i,pe.constants.X_OK),pe.statSync(i).isFile())return pe.realpathSync(i)}catch{}throw s(`a trusted executable could not be resolved (${t})${Iue.has(t)?`: ${jV}`:""}`)}function jy(e,t,n,s=[],r=[]){let i=g=>{try{return pe.realpathSync(g)}catch{return Ie.resolve(g)}},o=i(t),a=[...new Set([o,...r,...[...Tl.values()].flatMap(g=>g.roots)].map(i))],c={roots:a,ctx:{outputsDir:o},statusFile:""},u=Rc(c,n),d=If(c,e,o,g=>new Error(`Host transport unavailable: ${g}`));if(ii(a,d)||!wf(d))throw new Error(`Host transport requires a native host executable outside writable run roots (${e})`);let p=[d,...c.protectedPaths??[]];for(let g of s){let m;try{m=pe.realpathSync(g)}catch{throw new Error(`Host transport asset is unavailable (${g})`)}if(ii(a,m)||!pe.statSync(m).isFile())throw new Error(`Host transport asset must be a file outside writable run roots (${g})`);p.push(m)}let h=FV.get(o)??new Set;p.forEach(g=>h.add(g)),FV.set(o,h);for(let g of Tl.values())p.forEach(m=>oR(g,m));return{executable:d,env:u}}function VV(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let s=If(e,t,e.roots[0]);return Gy(e.roots[0],[{command:s}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,s),s}function cR(e,t){let n=Bc(e);return n?{executable:VV(n,t),env:Rc(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}function Bc(e){let t=Ie.resolve(e);try{t=pe.realpathSync(e)}catch{}let n=[...Tl.values()],s=n.find(r=>r.roots.some(i=>$l(i,t)));if(s)return s;if(n.length===1)return n[0];if(n.length>1)throw jt(n[0],"a command outside the run roots has no unambiguous safety boundary")}function uR(e){return`Shared-environment isolation unavailable: ${e}`}var Fy=class extends Error{constructor(n){super(uR(n));this.detail=n;this.name="IsolationUnavailableError"}detail};function jt(e,t){return e.failure=t,Vy(e.ctx,t),new Fy(t)}function Vy(e,t){let n=Tl.get(e.outputsDir);n&&(n.incident=t),pe.mkdirSync(e.outputsDir,{recursive:!0});let s=Ie.join(e.outputsDir,iR),r=`${s}.${(0,MV.randomUUID)()}.tmp`;pe.writeFileSync(r,JSON.stringify({reason:"isolation_unavailable",detail:t,actionRequired:!0},null,2),{mode:384,flag:"wx"}),pe.renameSync(r,s)}function Gy(e,t,n=[],s=[],r=!1){let i=Bc(e);if(!i)return t.map(g=>({command:g.command,args:[...g.args??[]]}));let o=g=>{i.protectedPaths?.includes(g)||(i.protectedPaths??=[]).push(g)},a=new Set,c=new Set,u=g=>{try{return pe.realpathSync(g)}catch{throw jt(i,`unresolved tool asset: ${g}`)}},d=g=>{let m=u(g);if(ii(i.roots,m)||i.roots.some(E=>$l(m,E)))throw jt(i,"a configured tool package or dependency is installed in a sandbox-writable location");o(m);let y=E=>{if(!a.has(E)){a.add(E);for(let v of pe.readdirSync(E,{withFileTypes:!0})){let b=Ie.join(E,v.name);if(v.isSymbolicLink()){let w=u(b);if(ii(i.roots,w))throw jt(i,"a configured tool dependency is installed in a sandbox-writable location");pe.statSync(w).isDirectory()?d(w):p(w)}else v.isDirectory()&&y(b)}}};y(m)},p=(g,m=!1,y=!1)=>{let E=u(g);if(ii(i.roots,E))throw jt(i,"a configured tool executable or package is installed in a sandbox-writable location");if(o(E),!m&&c.has(E))return;c.add(E);let v,b=pe.openSync(E,"r"),w=Buffer.alloc(256);try{pe.readSync(b,w,0,w.length,0)}finally{pe.closeSync(b)}if(m){let C=w.toString().split(/\r?\n/,1)[0];if(C.startsWith("#!")){let I=C.slice(2).trim().split(/\s+/),x=I[0];if(Ie.basename(x)==="env"){let ue=If(i,x,e);if(ii(i.roots,ue)||!wf(ue))throw jt(i,`unsafe shebang launcher: ${x}`);o(ue),I.shift(),I[0]==="-S"&&I.shift()}let S=pe.statSync(E),W=r&&($l("/usr/bin",E)||$l("/bin",E))&&S.uid===0&&(S.mode&18)===0&&/^(?:sh|bash)$/.test(Ie.basename(I[0]));if(I.length!==1||!/^(?:node|nodejs|bun)$/.test(Ie.basename(I[0]))&&!W)throw jt(i,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(v=If(i,I[0],e),ii(i.roots,v)||!wf(v))throw jt(i,`unsafe shebang interpreter: ${I[0]}`);o(v)}else if(!wf(E))throw jt(i,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(y||/\.[cm]?[jt]s$/.test(E)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(w.toString())){let C=Ie.dirname(E);for(let I=C;;I=Ie.dirname(I)){if(pe.existsSync(Ie.join(I,"package.json"))){C=I;break}if(Ie.dirname(I)===I)break}d(C);for(let I=C;;I=Ie.dirname(I)){let x=Ie.join(I,"node_modules");if(pe.existsSync(x)&&pe.statSync(x).isDirectory()&&d(x),Ie.basename(I)==="node_modules"&&d(I),Ie.dirname(I)===I)break}}return v},h=[];for(let g of t){let m=If(i,g.command,e),y=p(m,!0),E=Ie.basename(pe.realpathSync(m));if(!r&&/^(?:sh|bash|dash|zsh|ksh|fish|csh|tcsh|python[\d.]*|pypy[\d.]*|perl[\d.]*|ruby[\d.]*|php[\d.]*|lua[\d.]*|java|deno|uv|uvx|pipx|poetry|pdm|Rscript|pwsh|powershell|env|xargs|nohup|nice|stdbuf|timeout)$/.test(E))throw jt(i,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(E)&&g.args?.length)throw jt(i,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let v;if(!r&&/^(?:node|nodejs|bun)$/.test(E)){let b=g.args??[],w=b[0]==="--"||E==="bun"&&b[0]==="run"?b[1]:b[0];if(!w||w.startsWith("-")||!pe.existsSync(Ie.resolve(e,w))||!pe.statSync(Ie.resolve(e,w)).isFile())throw jt(i,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");v=Ie.resolve(e,w)}h.push(y&&!r?{command:y,args:[m,...g.args??[]]}:{command:m,args:[...g.args??[]]});for(let b of g.args??[]){let w=Ie.resolve(e,b);!b.startsWith("-")&&pe.existsSync(w)&&pe.statSync(w).isFile()&&p(w,!1,w===v)}}for(let g of n)p(g);for(let g of s){let m=u(g);d(m);let y=w=>{p(w);try{return JSON.parse(pe.readFileSync(w,"utf8"))}catch{throw jt(i,`the plugin configuration could not be read: ${w}`)}},E=w=>{if(!w||typeof w!="object")return;if(Array.isArray(w)){w.forEach(E);return}let C=w;if(C.type==="command"){if(typeof C.command!="string")throw jt(i,"the plugin command hook has no literal command");let I=kc(C.command.replace(/\$\{CLAUDE_PLUGIN_ROOT\}/g,m));if(!I.steps)throw jt(i,"the plugin command hook needs a literal native/Node command whose assets can be retained");for(let x of I.steps)Gy(e,[{command:x[0],args:x.slice(1)}])}Object.values(C).forEach(E)},v=Ie.join(m,".claude-plugin/plugin.json");if(pe.existsSync(v)){let w=y(v);if(!w||typeof w!="object"||Array.isArray(w))throw jt(i,"the plugin manifest is not an object");let C=w;if(C.mcpServers)throw jt(i,"declare plugin MCP servers through the run's validated MCP configuration");let I=x=>{typeof x=="string"?E(y(Ie.resolve(m,x))):Array.isArray(x)?x.forEach(I):E(x)};I(C.hooks)}let b=Ie.join(m,"hooks/hooks.json");if(pe.existsSync(b)&&E(y(b)),pe.existsSync(Ie.join(m,".mcp.json")))throw jt(i,"declare plugin MCP servers through the run's validated MCP configuration")}return h}function xs(e,t,n,s="data-safety-proxy"){let r=Bc(t);if(!r)return{argv:[...e],env:n};let i=s==="open"?r.openSettings:r.settings;if(r.failure||!r.cli||!r.node||!i||!r.env)throw jt(r,r.failure??"the run boundary has not finished initialization");if(!pe.existsSync(r.cli)||!pe.existsSync(i)||!pe.existsSync(r.node))throw jt(r,"the pinned sandbox runtime or its configuration is unavailable");try{if(JSON.parse(pe.readFileSync(r.statusFile,"utf8")).notRun)throw new Error("the guarded proxy is unavailable")}catch{throw jt(r,"the guarded proxy is unavailable")}let o=s==="open",a=o?{...n,PATH:aR(r.roots,n.PATH??"").join(Ie.delimiter)}:n,c=Rc(r,o?{...a}:{...a,...r.env}),u=Object.keys(a).filter(d=>(["PATH","HOME","SHELL"].includes(d)||Ly.test(d)&&!wue.test(d))&&a[d]!==void 0).map(d=>`${d}=${a[d]}`);return{argv:[r.node,r.cli,"--settings",i,"--","/usr/bin/env",...u,...Cue(r),...o?["NODE_USE_ENV_PROXY=1",...r.openTrust?["SSL_CERT_FILE","REQUESTS_CA_BUNDLE","CURL_CA_BUNDLE"].map(d=>`${d}=${r.openTrust}`):[]]:[],...e],env:c}}function Cue(e){let t=e.noProxy??"";return[`NO_PROXY=${t}`,`no_proxy=${t}`,...e.tmp?[...["TMPDIR","TMP","TEMP"].map(n=>`${n}=${e.tmp}`),...Sue(e.tmp)]:[]]}function Sue(e){let t=Ie.join(e,"npm-cache"),n=Ie.join(e,"pnpm");return[`npm_config_cache=${t}`,`NPM_CONFIG_CACHE=${t}`,`COREPACK_HOME=${Ie.join(e,"corepack")}`,`PNPM_HOME=${n}`,`pnpm_config_store_dir=${Ie.join(n,"store")}`,`pnpm_config_cache_dir=${Ie.join(n,"cache")}`,`pnpm_config_state_dir=${Ie.join(n,"state")}`,`YARN_GLOBAL_FOLDER=${Ie.join(e,"yarn")}`]}function Qs(e){return!!Bc(e)}function Cf(e,t=process.env){let n=Bc(e);return n?Rc(n,{...t,...n.env}):t}function GV(e){if(e.probePort===void 0)return;if(!e.node||!e.cli||!e.settings)return"the run boundary has not finished initialization";let t=`const s=require('net').connect({host:'127.0.0.1',port:${e.probePort}});s.once('connect',()=>{s.destroy();process.exit(23)});s.once('error',()=>{console.log('ISOLATION_BLOCKED');process.exit(0)});setTimeout(()=>process.exit(24),1500)`,n=(0,LV.spawnSync)(e.node,[e.cli,"--settings",e.settings,"--",e.node,"-e",t],{cwd:e.roots[0],env:Rc(e,{...process.env,...e.env}),encoding:"utf8",timeout:1e4,stdio:"pipe"});if(!(n.status===0&&n.stdout.trim()==="ISOLATION_BLOCKED"))return n.status===23?"the OS sandbox no longer blocks direct connections":"the OS sandbox could not start a command"}function Vo(e,t){if(t===0)return;let n=Bc(e);if(!n)return;let s=GV(n);return s&&Vy(n.ctx,s),s}var fr=["-c","core.fsmonitor=false"],HV=new Set(["GH_TOKEN","GITHUB_TOKEN","GH_ENTERPRISE_TOKEN","GITHUB_ENTERPRISE_TOKEN","ACTIONS_RUNTIME_TOKEN","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","SYSTEM_ACCESSTOKEN","SYSTEM_OIDCREQUESTURI","SKYRAMP_MCP_GITHUB_TOKEN","SSH_AUTH_SOCK","GIT_SSH","GIT_SSH_COMMAND","GITHUB_STEP_SUMMARY","SKYRAMP_REPOSITORY_SECRETS","SKYRAMP_REPOSITORY_SECRET_NAMES"]),_l=new Set(["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","AWS_PROFILE","AWS_WEB_IDENTITY_TOKEN_FILE","AWS_ROLE_ARN","AWS_ROLE_SESSION_NAME","AWS_CONTAINER_CREDENTIALS_FULL_URI","AWS_CONTAINER_CREDENTIALS_RELATIVE_URI","AWS_CONTAINER_AUTHORIZATION_TOKEN","AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"]);function Dl(e){return HV.has(e)||e.startsWith("INPUT_")}var kue="SKYRAMP_REPOSITORY_SECRETS",zV="SKYRAMP_REPOSITORY_SECRET_NAMES",Rue=/^[A-Za-z_][A-Za-z0-9_]*$/;function qV(e=process.env){let t=e[zV];if(t===void 0)return;delete e[zV];let n={};for(let s of t.split(",").map(r=>r.trim()))!Rue.test(s)||Bue(s)||!e[s]||(n[s]=e[s],delete e[s]);e[kue]=JSON.stringify(n)}function Bue(e){let t=e.toUpperCase();return Dl(t)||_l.has(t)||/^(?:ANTHROPIC_|CLAUDE_CODE_)/.test(t)||Ly.test(t)}function ht(e=process.env,t,n="repo-command"){let s={};for(let[r,i]of Object.entries(e))n==="repo-command"&&_l.has(r)||(s[r]=i);Object.assign(s,t??{});for(let r of Object.keys(s))(HV.has(r)||r.startsWith("INPUT_"))&&delete s[r];return s}var Rf=require("child_process");var JV=require("async_hooks");function Sf(e){return(e?.components??[]).filter(t=>!!t.repository)}function kf(e){let t=e.sharedEnvironment;return t?.environmentId&&t.environmentAddress?!0:Sf(t).length>0}var u$e=new JV.AsyncLocalStorage;var WV=["--no-pager","-c","core.hooksPath=/dev/null","-c","core.fsmonitor=false","-c","commit.gpgsign=false","-c","tag.gpgsign=false","-c","core.sshCommand=/usr/bin/false","-c","credential.helper=","-c","core.askPass=/usr/bin/false","-c","core.alternateRefsCommand=","-c","diff.external=","-c","protocol.allow=never","-c","protocol.https.allow=always"],Que="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function $ue(e){let t={...e,GIT_ALLOW_PROTOCOL:"https",GIT_TERMINAL_PROMPT:"0",GIT_ASKPASS:"/usr/bin/false",GIT_EDITOR:"/usr/bin/true",GIT_SEQUENCE_EDITOR:"/usr/bin/true"};for(let n of["GIT_CONFIG","GIT_CONFIG_PARAMETERS","GIT_EXEC_PATH","GIT_EXTERNAL_DIFF","GIT_SSH","GIT_SSH_COMMAND","GIT_SSH_VARIANT","GIT_PROXY_COMMAND","GIT_PAGER"])delete t[n];for(let n of _l)delete t[n];return t}function Tue(e,t){let n=cR(e,"git"),s=n.executable,r=Cf(e,{...$ue(t),PATH:n.env.PATH}),i=xs([s,...WV,"config","--null","--name-only","--get-regexp",Que],e,r),o=[];try{o=(0,Rf.execFileSync)(i.argv[0],i.argv.slice(1),{cwd:e,env:i.env,encoding:"utf8",stdio:["ignore","pipe","pipe"],timeout:3e4}).split("\0").filter(Boolean)}catch(c){if(c.status!==1)throw c}if(o.some(c=>c.includes("=")))throw new Error("protected Git cannot safely disable an executable Git configuration key containing '='");let a=o.flatMap(c=>["-c",`${c}=${c.startsWith("merge.")?"false":""}`]);return{binary:s,env:r,config:[...WV,...a]}}function zy(e,t,n=process.env){if(!Qs(t))return{argv:["git",...e],env:n};let s=Tue(t,n),r=[...e],i=new Set(["-c","-C","--config-env","--git-dir","--work-tree","--namespace","--super-prefix","--exec-path"]);for(let o=0;o<r.length;o++){if(i.has(r[o])){o++;continue}if(!r[o].startsWith("-")){r[o]==="diff"&&r.splice(o+1,0,"--no-ext-diff","--no-textconv");break}}return xs([s.binary,...s.config,...r],t,s.env)}function qt(e,t){let n=zy(e,t.cwd,t.env??process.env);return(0,Rf.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}function lR(e,t){let n=zy(e,t.cwd,t.env??process.env);return(0,Rf.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}var uG=Z(require("path"));var l={};Wr(l,{BRAND:()=>sle,DIRTY:()=>xc,EMPTY_PATH:()=>Pue,INVALID:()=>Re,NEVER:()=>jle,OK:()=>Nn,ParseStatus:()=>wn,Schema:()=>Ze,ZodAny:()=>Ho,ZodArray:()=>Hi,ZodBigInt:()=>$c,ZodBoolean:()=>Tc,ZodBranded:()=>xf,ZodCatch:()=>Vc,ZodDate:()=>_c,ZodDefault:()=>jc,ZodDiscriminatedUnion:()=>Jy,ZodEffects:()=>as,ZodEnum:()=>Mc,ZodError:()=>hr,ZodFirstPartyTypeKind:()=>Te,ZodFunction:()=>Yy,ZodIntersection:()=>Oc,ZodIssueCode:()=>V,ZodLazy:()=>Uc,ZodLiteral:()=>Fc,ZodMap:()=>Ml,ZodNaN:()=>jl,ZodNativeEnum:()=>Lc,ZodNever:()=>$s,ZodNull:()=>Nc,ZodNullable:()=>ci,ZodNumber:()=>Qc,ZodObject:()=>gr,ZodOptional:()=>is,ZodParsedType:()=>ie,ZodPipeline:()=>Qf,ZodPromise:()=>qo,ZodReadonly:()=>Gc,ZodRecord:()=>Wy,ZodSchema:()=>Ze,ZodSet:()=>Ll,ZodString:()=>zo,ZodSymbol:()=>Ul,ZodTransformer:()=>as,ZodTuple:()=>ai,ZodType:()=>Ze,ZodUndefined:()=>Dc,ZodUnion:()=>Pc,ZodUnknown:()=>zi,ZodVoid:()=>Fl,addIssueToContext:()=>te,any:()=>fle,array:()=>Ale,bigint:()=>cle,boolean:()=>oG,coerce:()=>Lle,custom:()=>rG,date:()=>ule,datetimeRegex:()=>tG,defaultErrorMap:()=>Vi,discriminatedUnion:()=>ble,effect:()=>_le,enum:()=>Qle,function:()=>Rle,getErrorMap:()=>Nl,getParsedType:()=>oi,instanceof:()=>ole,intersection:()=>wle,isAborted:()=>Hy,isAsync:()=>Pl,isDirty:()=>qy,isValid:()=>Go,late:()=>ile,lazy:()=>Ble,literal:()=>xle,makeIssue:()=>Bf,map:()=>Sle,nan:()=>ale,nativeEnum:()=>$le,never:()=>gle,null:()=>ple,nullable:()=>Nle,number:()=>iG,object:()=>yle,objectUtil:()=>dR,oboolean:()=>Mle,onumber:()=>Fle,optional:()=>Dle,ostring:()=>Ule,pipeline:()=>Ole,preprocess:()=>Ple,promise:()=>Tle,quotelessJson:()=>_ue,record:()=>Cle,set:()=>kle,setErrorMap:()=>Nue,strictObject:()=>Ele,string:()=>sG,symbol:()=>lle,transformer:()=>_le,tuple:()=>Ile,undefined:()=>dle,union:()=>vle,unknown:()=>hle,util:()=>rt,void:()=>mle});var rt;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let i={};for(let o of r)i[o]=o;return i},e.getValidEnumValues=r=>{let i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(let a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let i=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(let o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(rt||(rt={}));var dR;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(dR||(dR={}));var ie=rt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),oi=e=>{switch(typeof e){case"undefined":return ie.undefined;case"string":return ie.string;case"number":return Number.isNaN(e)?ie.nan:ie.number;case"boolean":return ie.boolean;case"function":return ie.function;case"bigint":return ie.bigint;case"symbol":return ie.symbol;case"object":return Array.isArray(e)?ie.array:e===null?ie.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ie.promise:typeof Map<"u"&&e instanceof Map?ie.map:typeof Set<"u"&&e instanceof Set?ie.set:typeof Date<"u"&&e instanceof Date?ie.date:ie.object;default:return ie.unknown}};var V=rt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),_ue=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),hr=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;c<o.path.length;){let u=o.path[c],d=c===o.path.length-1;if(u==="_errors"){d&&a._errors.push(n(o)),c++;continue}Object.prototype.hasOwnProperty.call(a,u)||(u==="__proto__"?Object.defineProperty(a,u,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0}):a[u]={_errors:[]}),a=a[u],d&&a._errors.push(n(o)),c++}}};return r(this),s}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,rt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n=Object.create(null),s=[];for(let r of this.issues)if(r.path.length>0){let i=r.path[0];n[i]=n[i]||[],n[i].push(t(r))}else s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}};hr.create=e=>new hr(e);var Due=(e,t)=>{let n;switch(e.code){case V.invalid_type:e.received===ie.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case V.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,rt.jsonStringifyReplacer)}`;break;case V.unrecognized_keys:n=`Unrecognized key(s) in object: ${rt.joinValues(e.keys,", ")}`;break;case V.invalid_union:n="Invalid input";break;case V.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${rt.joinValues(e.options)}`;break;case V.invalid_enum_value:n=`Invalid enum value. Expected ${rt.joinValues(e.options)}, received '${e.received}'`;break;case V.invalid_arguments:n="Invalid function arguments";break;case V.invalid_return_type:n="Invalid function return type";break;case V.invalid_date:n="Invalid date";break;case V.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:rt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case V.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case V.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case V.custom:n="Invalid input";break;case V.invalid_intersection_types:n="Intersection results could not be merged";break;case V.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case V.not_finite:n="Number must be finite";break;default:n=t.defaultError,rt.assertNever(e)}return{message:n}},Vi=Due;var YV=Vi;function Nue(e){YV=e}function Nl(){return YV}var Bf=e=>{let{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="",c=s.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},Pue=[];function te(e,t){let n=Nl(),s=Bf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Vi?void 0:Vi].filter(r=>!!r)});e.common.issues.push(s)}var wn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let s=[];for(let r of n){if(r.status==="aborted")return Re;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){let s=[];for(let r of n){let i=await r.key,o=await r.value;s.push({key:i,value:o})}return e.mergeObjectSync(t,s)}static mergeObjectSync(t,n){let s={};for(let r of n){let{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return Re;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}},Re=Object.freeze({status:"aborted"}),xc=e=>({status:"dirty",value:e}),Nn=e=>({status:"valid",value:e}),Hy=e=>e.status==="aborted",qy=e=>e.status==="dirty",Go=e=>e.status==="valid",Pl=e=>typeof Promise<"u"&&e instanceof Promise;var he;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(he||(he={}));var os=class{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},ZV=(e,t)=>{if(Go(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new hr(e.common.issues);return this._error=n,this._error}}};function ze(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??s??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:r}}var Ze=class{get description(){return this._def.description}_getType(t){return oi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:oi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new wn,ctx:{common:t.parent.common,data:t.data,parsedType:oi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Pl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){let s={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:oi(t)},r=this._parseSync({data:t,path:s.path,parent:s});return ZV(s,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:oi(t)};if(!this["~standard"].async)try{let s=this._parseSync({data:t,path:[],parent:n});return Go(s)?{value:s.value}:{issues:n.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>Go(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){let s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){let s={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:oi(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(Pl(r)?r:Promise.resolve(r));return ZV(s,i)}refine(t,n){let s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{let o=t(r),a=()=>i.addIssue({code:V.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new as({schema:this,typeName:Te.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return is.create(this,this._def)}nullable(){return ci.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Hi.create(this)}promise(){return qo.create(this,this._def)}or(t){return Pc.create([this,t],this._def)}and(t){return Oc.create(this,t,this._def)}transform(t){return new as({...ze(this._def),schema:this,typeName:Te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new jc({...ze(this._def),innerType:this,defaultValue:n,typeName:Te.ZodDefault})}brand(){return new xf({typeName:Te.ZodBranded,type:this,...ze(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Vc({...ze(this._def),innerType:this,catchValue:n,typeName:Te.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Qf.create(this,t)}readonly(){return Gc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Oue=/^c[^\s-]{8,}$/i,Uue=/^[0-9a-z]+$/,Fue=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Mue=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Lue=/^[a-z0-9_-]{21}$/i,jue=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Vue=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Gue=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,zue="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",pR,Hue=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,que=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Jue=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Wue=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Yue=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Zue=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,XV="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Kue=new RegExp(`^${XV}$`);function eG(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Xue(e){return new RegExp(`^${eG(e)}$`)}function tG(e){let t=`${XV}T${eG(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function ele(e,t){return!!((t==="v4"||!t)&&Hue.test(e)||(t==="v6"||!t)&&Jue.test(e))}function tle(e,t){if(!jue.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function nle(e,t){return!!((t==="v4"||!t)&&que.test(e)||(t==="v6"||!t)&&Wue.test(e))}var zo=class e extends Ze{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ie.string){let i=this._getOrReturnCtx(t);return te(i,{code:V.invalid_type,expected:ie.string,received:i.parsedType}),Re}let s=new wn,r;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:V.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:V.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){let o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?te(r,{code:V.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&te(r,{code:V.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")Gue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"email",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")pR||(pR=new RegExp(zue,"u")),pR.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"emoji",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")Mue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"uuid",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")Lue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"nanoid",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")Oue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")Uue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid2",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")Fue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ulid",code:V.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),te(r,{validation:"url",code:V.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"regex",code:V.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?tG(i).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?Kue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?Xue(i).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:V.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?Vue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"duration",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?ele(t.data,i.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ip",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?tle(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"jwt",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?nle(t.data,i.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cidr",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?Yue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64",code:V.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?Zue.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64url",code:V.invalid_string,message:i.message}),s.dirty()):rt.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(r=>t.test(r),{validation:n,code:V.invalid_string,...he.errToObj(s)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...he.errToObj(t)})}url(t){return this._addCheck({kind:"url",...he.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...he.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...he.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...he.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...he.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...he.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...he.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...he.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...he.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...he.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...he.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...he.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...he.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...he.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...he.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...he.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...he.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...he.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...he.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...he.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...he.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...he.errToObj(n)})}nonempty(t){return this.min(1,he.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};zo.create=e=>new zo({checks:[],typeName:Te.ZodString,coerce:e?.coerce??!1,...ze(e)});function rle(e,t){let n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return i%o/10**r}var Qc=class e extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ie.number){let i=this._getOrReturnCtx(t);return te(i,{code:V.invalid_type,expected:ie.number,received:i.parsedType}),Re}let s,r=new wn;for(let i of this._def.checks)i.kind==="int"?rt.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),te(s,{code:V.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?rle(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),te(s,{code:V.not_finite,message:i.message}),r.dirty()):rt.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,he.toString(n))}gt(t,n){return this.setLimit("min",t,!1,he.toString(n))}lte(t,n){return this.setLimit("max",t,!0,he.toString(n))}lt(t,n){return this.setLimit("max",t,!1,he.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:he.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:he.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:he.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:he.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:he.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:he.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:he.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:he.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:he.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:he.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&rt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}};Qc.create=e=>new Qc({checks:[],typeName:Te.ZodNumber,coerce:e?.coerce||!1,...ze(e)});var $c=class e extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ie.bigint)return this._getInvalidInput(t);let s,r=new wn;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),te(s,{code:V.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):rt.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return te(n,{code:V.invalid_type,expected:ie.bigint,received:n.parsedType}),Re}gte(t,n){return this.setLimit("min",t,!0,he.toString(n))}gt(t,n){return this.setLimit("min",t,!1,he.toString(n))}lte(t,n){return this.setLimit("max",t,!0,he.toString(n))}lt(t,n){return this.setLimit("max",t,!1,he.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:he.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:he.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:he.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:he.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:he.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:he.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};$c.create=e=>new $c({checks:[],typeName:Te.ZodBigInt,coerce:e?.coerce??!1,...ze(e)});var Tc=class extends Ze{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ie.boolean){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.boolean,received:s.parsedType}),Re}return Nn(t.data)}};Tc.create=e=>new Tc({typeName:Te.ZodBoolean,coerce:e?.coerce||!1,...ze(e)});var _c=class e extends Ze{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ie.date){let i=this._getOrReturnCtx(t);return te(i,{code:V.invalid_type,expected:ie.date,received:i.parsedType}),Re}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return te(i,{code:V.invalid_date}),Re}let s=new wn,r;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:V.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:V.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):rt.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:he.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:he.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};_c.create=e=>new _c({checks:[],coerce:e?.coerce||!1,typeName:Te.ZodDate,...ze(e)});var Ul=class extends Ze{_parse(t){if(this._getType(t)!==ie.symbol){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.symbol,received:s.parsedType}),Re}return Nn(t.data)}};Ul.create=e=>new Ul({typeName:Te.ZodSymbol,...ze(e)});var Dc=class extends Ze{_parse(t){if(this._getType(t)!==ie.undefined){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.undefined,received:s.parsedType}),Re}return Nn(t.data)}};Dc.create=e=>new Dc({typeName:Te.ZodUndefined,...ze(e)});var Nc=class extends Ze{_parse(t){if(this._getType(t)!==ie.null){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.null,received:s.parsedType}),Re}return Nn(t.data)}};Nc.create=e=>new Nc({typeName:Te.ZodNull,...ze(e)});var Ho=class extends Ze{constructor(){super(...arguments),this._any=!0}_parse(t){return Nn(t.data)}};Ho.create=e=>new Ho({typeName:Te.ZodAny,...ze(e)});var zi=class extends Ze{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Nn(t.data)}};zi.create=e=>new zi({typeName:Te.ZodUnknown,...ze(e)});var $s=class extends Ze{_parse(t){let n=this._getOrReturnCtx(t);return te(n,{code:V.invalid_type,expected:ie.never,received:n.parsedType}),Re}};$s.create=e=>new $s({typeName:Te.ZodNever,...ze(e)});var Fl=class extends Ze{_parse(t){if(this._getType(t)!==ie.undefined){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.void,received:s.parsedType}),Re}return Nn(t.data)}};Fl.create=e=>new Fl({typeName:Te.ZodVoid,...ze(e)});var Hi=class e extends Ze{_parse(t){let{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==ie.array)return te(n,{code:V.invalid_type,expected:ie.array,received:n.parsedType}),Re;if(r.exactLength!==null){let o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(te(n,{code:o?V.too_big:V.too_small,minimum:a?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(te(n,{code:V.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(te(n,{code:V.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new os(n,o,n.path,a)))).then(o=>wn.mergeArray(s,o));let i=[...n.data].map((o,a)=>r.type._parseSync(new os(n,o,n.path,a)));return wn.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:he.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:he.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:he.toString(n)}})}nonempty(t){return this.min(1,t)}};Hi.create=(e,t)=>new Hi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Te.ZodArray,...ze(t)});function Ol(e){if(e instanceof gr){let t={};for(let n in e.shape){let s=e.shape[n];t[n]=is.create(Ol(s))}return new gr({...e._def,shape:()=>t})}else return e instanceof Hi?new Hi({...e._def,type:Ol(e.element)}):e instanceof is?is.create(Ol(e.unwrap())):e instanceof ci?ci.create(Ol(e.unwrap())):e instanceof ai?ai.create(e.items.map(t=>Ol(t))):e}var gr=class e extends Ze{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=rt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ie.object){let u=this._getOrReturnCtx(t);return te(u,{code:V.invalid_type,expected:ie.object,received:u.parsedType}),Re}let{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof $s&&this._def.unknownKeys==="strip"))for(let u in r.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let d=i[u],p=r.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new os(r,p,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof $s){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:r.data[d]}});else if(u==="strict")a.length>0&&(te(r,{code:V.unrecognized_keys,keys:a}),s.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of a){let p=r.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new os(r,p,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of c){let p=await d.key,h=await d.value;u.push({key:p,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>wn.mergeObjectSync(s,u)):wn.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return he.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{let r=this._def.errorMap?.(n,s).message??s.defaultError;return n.code==="unrecognized_keys"?{message:he.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Te.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let s of rt.objectKeys(t))t[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let s of rt.objectKeys(this.shape))t[s]||(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}deepPartial(){return Ol(this)}partial(t){let n={};for(let s of rt.objectKeys(this.shape)){let r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let s of rt.objectKeys(this.shape))if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof is;)i=i._def.innerType;n[s]=i}return new e({...this._def,shape:()=>n})}keyof(){return nG(rt.objectKeys(this.shape))}};gr.create=(e,t)=>new gr({shape:()=>e,unknownKeys:"strip",catchall:$s.create(),typeName:Te.ZodObject,...ze(t)});gr.strictCreate=(e,t)=>new gr({shape:()=>e,unknownKeys:"strict",catchall:$s.create(),typeName:Te.ZodObject,...ze(t)});gr.lazycreate=(e,t)=>new gr({shape:e,unknownKeys:"strip",catchall:$s.create(),typeName:Te.ZodObject,...ze(t)});var Pc=class extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new hr(a.ctx.common.issues));return te(n,{code:V.invalid_union,unionErrors:o}),Re}if(n.common.async)return Promise.all(s.map(async i=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i,o=[];for(let c of s){let u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new hr(c));return te(n,{code:V.invalid_union,unionErrors:a}),Re}}get options(){return this._def.options}};Pc.create=(e,t)=>new Pc({options:e,typeName:Te.ZodUnion,...ze(t)});var Gi=e=>e instanceof Uc?Gi(e.schema):e instanceof as?Gi(e.innerType()):e instanceof Fc?[e.value]:e instanceof Mc?e.options:e instanceof Lc?rt.objectValues(e.enum):e instanceof jc?Gi(e._def.innerType):e instanceof Dc?[void 0]:e instanceof Nc?[null]:e instanceof is?[void 0,...Gi(e.unwrap())]:e instanceof ci?[null,...Gi(e.unwrap())]:e instanceof xf||e instanceof Gc?Gi(e.unwrap()):e instanceof Vc?Gi(e._def.innerType):[],Jy=class e extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.object)return te(n,{code:V.invalid_type,expected:ie.object,received:n.parsedType}),Re;let s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(te(n,{code:V.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){let r=new Map;for(let i of n){let o=Gi(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new e({typeName:Te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...ze(s)})}};function fR(e,t){let n=oi(e),s=oi(t);if(e===t)return{valid:!0,data:e};if(n===ie.object&&s===ie.object){let r=rt.objectKeys(t),i=rt.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let a of i){if(a==="__proto__")continue;let c=fR(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===ie.array&&s===ie.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let i=0;i<e.length;i++){let o=e[i],a=t[i],c=fR(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===ie.date&&s===ie.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Oc=class extends Ze{_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(Hy(i)||Hy(o))return Re;let a=fR(i.value,o.value);return a.valid?((qy(i)||qy(o))&&n.dirty(),{status:n.value,value:a.data}):(te(s,{code:V.invalid_intersection_types}),Re)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};Oc.create=(e,t,n)=>new Oc({left:e,right:t,typeName:Te.ZodIntersection,...ze(n)});var ai=class e extends Ze{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.array)return te(s,{code:V.invalid_type,expected:ie.array,received:s.parsedType}),Re;if(s.data.length<this._def.items.length)return te(s,{code:V.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&s.data.length>this._def.items.length&&(te(s,{code:V.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...s.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new os(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>wn.mergeArray(n,o)):wn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ai.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ai({items:e,typeName:Te.ZodTuple,rest:null,...ze(t)})};var Wy=class e extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.object)return te(s,{code:V.invalid_type,expected:ie.object,received:s.parsedType}),Re;let r=[],i=this._def.keyType,o=this._def.valueType;for(let a in s.data)r.push({key:i._parse(new os(s,a,s.path,a)),value:o._parse(new os(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?wn.mergeObjectAsync(n,r):wn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof Ze?new e({keyType:t,valueType:n,typeName:Te.ZodRecord,...ze(s)}):new e({keyType:zo.create(),valueType:t,typeName:Te.ZodRecord,...ze(n)})}},Ml=class extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.map)return te(s,{code:V.invalid_type,expected:ie.map,received:s.parsedType}),Re;let r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],u)=>({key:r._parse(new os(s,a,s.path,[u,"key"])),value:i._parse(new os(s,c,s.path,[u,"value"]))}));if(s.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return Re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return Re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}};Ml.create=(e,t,n)=>new Ml({valueType:t,keyType:e,typeName:Te.ZodMap,...ze(n)});var Ll=class e extends Ze{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.set)return te(s,{code:V.invalid_type,expected:ie.set,received:s.parsedType}),Re;let r=this._def;r.minSize!==null&&s.data.size<r.minSize.value&&(te(s,{code:V.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&s.data.size>r.maxSize.value&&(te(s,{code:V.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let i=this._def.valueType;function o(c){let u=new Set;for(let d of c){if(d.status==="aborted")return Re;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}let a=[...s.data.values()].map((c,u)=>i._parse(new os(s,c,s.path,u)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:he.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:he.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Ll.create=(e,t)=>new Ll({valueType:e,minSize:null,maxSize:null,typeName:Te.ZodSet,...ze(t)});var Yy=class e extends Ze{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.function)return te(n,{code:V.invalid_type,expected:ie.function,received:n.parsedType}),Re;function s(a,c){return Bf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Nl(),Vi].filter(u=>!!u),issueData:{code:V.invalid_arguments,argumentsError:c}})}function r(a,c){return Bf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Nl(),Vi].filter(u=>!!u),issueData:{code:V.invalid_return_type,returnTypeError:c}})}let i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof qo){let a=this;return Nn(async function(...c){let u=new hr([]),d=await a._def.args.parseAsync(c,i).catch(g=>{throw u.addIssue(s(c,g)),u}),p=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(p,i).catch(g=>{throw u.addIssue(r(p,g)),u})})}else{let a=this;return Nn(function(...c){let u=a._def.args.safeParse(c,i);if(!u.success)throw new hr([s(c,u.error)]);let d=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(d,i);if(!p.success)throw new hr([r(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ai.create(t).rest(zi.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new e({args:t||ai.create([]).rest(zi.create()),returns:n||zi.create(),typeName:Te.ZodFunction,...ze(s)})}},Uc=class extends Ze{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Uc.create=(e,t)=>new Uc({getter:e,typeName:Te.ZodLazy,...ze(t)});var Fc=class extends Ze{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return te(n,{received:n.data,code:V.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:t.data}}get value(){return this._def.value}};Fc.create=(e,t)=>new Fc({value:e,typeName:Te.ZodLiteral,...ze(t)});function nG(e,t){return new Mc({values:e,typeName:Te.ZodEnum,...ze(t)})}var Mc=class e extends Ze{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),s=this._def.values;return te(n,{expected:rt.joinValues(s),received:n.parsedType,code:V.invalid_type}),Re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),s=this._def.values;return te(n,{received:n.data,code:V.invalid_enum_value,options:s}),Re}return Nn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}};Mc.create=nG;var Lc=class extends Ze{_parse(t){let n=rt.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==ie.string&&s.parsedType!==ie.number){let r=rt.objectValues(n);return te(s,{expected:rt.joinValues(r),received:s.parsedType,code:V.invalid_type}),Re}if(this._cache||(this._cache=new Set(rt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=rt.objectValues(n);return te(s,{received:s.data,code:V.invalid_enum_value,options:r}),Re}return Nn(t.data)}get enum(){return this._def.values}};Lc.create=(e,t)=>new Lc({values:e,typeName:Te.ZodNativeEnum,...ze(t)});var qo=class extends Ze{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.promise&&n.common.async===!1)return te(n,{code:V.invalid_type,expected:ie.promise,received:n.parsedType}),Re;let s=n.parsedType===ie.promise?n.data:Promise.resolve(n.data);return Nn(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};qo.create=(e,t)=>new qo({type:e,typeName:Te.ZodPromise,...ze(t)});var as=class extends Ze{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{te(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){let o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return Re;let c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?Re:c.status==="dirty"?xc(c.value):n.value==="dirty"?xc(c.value):c});{if(n.value==="aborted")return Re;let a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?Re:a.status==="dirty"?xc(a.value):n.value==="dirty"?xc(a.value):a}}if(r.type==="refinement"){let o=a=>{let c=r.refinement(a,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){let a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Re:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?Re:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){let o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Go(o))return Re;let a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Go(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):Re);rt.assertNever(r)}};as.create=(e,t,n)=>new as({schema:e,typeName:Te.ZodEffects,effect:t,...ze(n)});as.createWithPreprocess=(e,t,n)=>new as({schema:t,effect:{type:"preprocess",transform:e},typeName:Te.ZodEffects,...ze(n)});var is=class extends Ze{_parse(t){return this._getType(t)===ie.undefined?Nn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};is.create=(e,t)=>new is({innerType:e,typeName:Te.ZodOptional,...ze(t)});var ci=class extends Ze{_parse(t){return this._getType(t)===ie.null?Nn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ci.create=(e,t)=>new ci({innerType:e,typeName:Te.ZodNullable,...ze(t)});var jc=class extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return n.parsedType===ie.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};jc.create=(e,t)=>new jc({innerType:e,typeName:Te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ze(t)});var Vc=class extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Pl(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new hr(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new hr(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};Vc.create=(e,t)=>new Vc({innerType:e,typeName:Te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ze(t)});var jl=class extends Ze{_parse(t){if(this._getType(t)!==ie.nan){let s=this._getOrReturnCtx(t);return te(s,{code:V.invalid_type,expected:ie.nan,received:s.parsedType}),Re}return{status:"valid",value:t.data}}};jl.create=e=>new jl({typeName:Te.ZodNaN,...ze(e)});var sle=Symbol("zod_brand"),xf=class extends Ze{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}},Qf=class e extends Ze{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?Re:i.status==="dirty"?(n.dirty(),xc(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{let r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?Re:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new e({in:t,out:n,typeName:Te.ZodPipeline})}},Gc=class extends Ze{_parse(t){let n=this._def.innerType._parse(t),s=r=>(Go(r)&&(r.value=Object.freeze(r.value)),r);return Pl(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}};Gc.create=(e,t)=>new Gc({innerType:e,typeName:Te.ZodReadonly,...ze(t)});function KV(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function rG(e,t={},n){return e?Ho.create().superRefine((s,r)=>{let i=e(s);if(i instanceof Promise)return i.then(o=>{if(!o){let a=KV(t,s),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}});if(!i){let o=KV(t,s),a=o.fatal??n??!0;r.addIssue({code:"custom",...o,fatal:a})}}):Ho.create()}var ile={object:gr.lazycreate},Te;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Te||(Te={}));var ole=(e,t={message:`Input not instance of ${e.name}`})=>rG(n=>n instanceof e,t),sG=zo.create,iG=Qc.create,ale=jl.create,cle=$c.create,oG=Tc.create,ule=_c.create,lle=Ul.create,dle=Dc.create,ple=Nc.create,fle=Ho.create,hle=zi.create,gle=$s.create,mle=Fl.create,Ale=Hi.create,yle=gr.create,Ele=gr.strictCreate,vle=Pc.create,ble=Jy.create,wle=Oc.create,Ile=ai.create,Cle=Wy.create,Sle=Ml.create,kle=Ll.create,Rle=Yy.create,Ble=Uc.create,xle=Fc.create,Qle=Mc.create,$le=Lc.create,Tle=qo.create,_le=as.create,Dle=is.create,Nle=ci.create,Ple=as.createWithPreprocess,Ole=Qf.create,Ule=()=>sG().optional(),Fle=()=>iG().optional(),Mle=()=>oG().optional(),Lle={string:(e=>zo.create({...e,coerce:!0})),number:(e=>Qc.create({...e,coerce:!0})),boolean:(e=>Tc.create({...e,coerce:!0})),bigint:(e=>$c.create({...e,coerce:!0})),date:(e=>_c.create({...e,coerce:!0}))};var jle=Re;var Vl=(r=>(r.ModelProvider="model_provider",r.SutAccess="sut_access",r.Skyramp="skyramp",r.Other="other",r))(Vl||{}),Jo=(s=>(s.Ready="ready",s.Blocked="blocked",s.NeedsInputs="needs_inputs",s))(Jo||{}),$f=e=>e==="ready"||e==="needs_inputs",Zy=300,Vt=l.string().trim().min(1),Vle=l.object({action:l.enum(["start","run","wait"]),text:Vt,source:l.enum(["file","notes","testbot"]).describe("file: a file in the repository; notes: the Target's notes; testbot: Testbot's own finding"),file:Vt.nullable().describe("the file the step came from, relative to the component's repository; null unless source is file")}).strict().refine(e=>e.source==="file"==(e.file!==null),{path:["file"],message:"a file exactly when the step came from one"}),Tf=/^[A-Za-z_][A-Za-z0-9_]*$/,cs=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,Gl=(o=>(o.VersionEndpoint="version_endpoint",o.DeployWorkflow="deploy_workflow",o.KubernetesLabels="kubernetes_labels",o.Command="command",o.Api="api",o.NotTracked="not_tracked",o))(Gl||{}),mr="shared",Gle=Vt.refine(e=>{try{let t=new URL(e);return["http:","https:"].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}},"an http(s) URL with no login in it"),zl=l.object({address:Gle,readyWhen:Vt.nullable(),credentials:l.array(l.string().regex(cs)).max(50),revisionSources:l.array(l.object({method:l.nativeEnum(Gl),detail:Vt.describe("what Testbot reads, such as GET /version or the deploy workflow's name; for not_tracked, why nothing shows it"),components:l.array(Vt).min(1).describe("the components it tells the revision of, by name")}).strict()).max(50)}).strict(),hR={steps:l.array(Vle).max(20).optional().describe("how it starts, in order"),kind:l.enum(["web_app","service","database","external_service"]).optional(),from:l.object({file:Vt,service:Vt.nullable()}).strict().optional(),credentials:l.array(l.string().max(100).regex(Tf)).max(50).optional().describe("the Target's credentials this component's recipe uses: a sign-in (a test user, password or token) or an API key, which the workflow supplies from a GitHub Actions secret as the environment variable of the credential's name; give each name exactly as the recipe reads it. Names only, never a value, and not a secret the recipe generates itself")},Ky=l.object({name:Vt,repository:Vt.describe("owner/repo of the Target repository the component is built or started from, such as the one whose compose file starts its database"),healthy:l.boolean(),...hR,deployed:Vt.nullable().optional().describe('only with "environment": the revision the component runs, as you read it from its revision source, or null when you could not tell')}),zle=l.object({name:l.string().regex(cs).describe("the credential's environment variable name, as the recipe reads it and the credentials event names it"),purpose:l.enum(["sut_access","other"]).describe("sut_access: it signs in to or calls the SUT or a service it needs; other: anything else"),required:l.boolean().describe("false only when the SUT starts without it, with less working"),how:Vt.max(Zy).describe('one short sentence: what the value is and where a person gets it, such as "A Mattermost Enterprise licence key, from the customer portal"; never a value')}),Hle=l.object({component:Vt,problem:Vt,evidence:Vt.describe("the exact command and output that shows it"),fix:Vt.describe("what the user must provide, and where")}),qle=l.object({framework:Vt,file:Vt.describe("the test file run, relative to its repository root"),result:l.enum(["pass","fail","error"])}),Jle=l.object({input:Vt.describe("the part of the user's SUT input, as given"),reason:Vt}),aG=l.object({schemaVersion:l.literal(1),status:l.nativeEnum(Jo).describe("ready only if every component came up healthy and the recipe is written; needs_inputs when the recipe is written but a component cannot start without a credential this run has no value for"),components:l.array(Ky),suites:l.array(qle).default([]).describe("one run per test suite the Target's repositories have; empty when they have none"),inputsUsed:l.array(Vt).default([]).describe("the parts of the user's SUT input the recipe used as given"),inputsUsedHow:l.array(l.object({input:Vt.describe("exactly as written in inputsUsed; an entry that is not there is left out"),how:Vt.describe("what the recipe did with it")})).optional(),inputsNotUsed:l.array(Jle).default([]).describe("the parts it did not use, and why. A part that is wrong goes here, with what was wrong, even when the recipe does something like it instead: one the repositories or the app show is wrong, such as a file, command, port, route or setting that is not there. Something outside them that does not answer is not one: that is a blocker"),blockers:l.array(Hle).describe("required (non-empty) when status is blocked"),inputs:l.array(zle).max(50).optional().describe("required (non-empty) when status is needs_inputs, else left out: each credential the candidate recipe needs a value for"),environment:zl.optional().describe("only when the whole SUT is an existing deployment you tested where it runs, building and starting nothing: its address, what says it is ready, the credentials that reach it, and how to read what each component runs. Leave it out when any part was built or started on the runner, or reaching it needed something there (a tunnel, port-forward, proxy or client certificate)")});var _f=64*1024,Df=512*1024,gR=/[\u0000-\u0008\u000b\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/;var Mr=(r=>(r.Clean="clean",r.RecipeDrift="recipe-drift",r.ChangeBrokeBringup="change-broke-bringup",r.BringupFailed="bringup-failed",r))(Mr||{}),Ts=l.string().trim().min(1),cG=l.object({url:l.string().optional().describe("the URL probed, if the check is an HTTP request"),command:l.string().optional().describe("the command run, if the check is a script \u2014 preferred when auth is needed"),headers:l.record(l.string()).optional(),status:l.union([l.number(),l.string()]).optional().describe("expected HTTP status for a url check (default 200)"),output:Ts.describe("what the check returned, VERBATIM \u2014 the bytes, nothing appended; this gate RE-RUNS the check")}),mR=l.array(l.object({component:Ts.describe("a shared component listed above"),url:Ts.describe("the URL on the component's own origin (scheme, host and port) that answers with its deployed commit"),output:Ts.describe("what the URL returned, VERBATIM; this gate FETCHES each url")})).describe("only when shared components are listed above: one check per component whose deployed commit you found"),Wle=l.object({name:Ts.describe("the credential's environment variable name, as listed above; never its value"),component:Ts.describe("the component that refused it"),status:l.number().int().min(400).max(599).optional().describe("the HTTP status it got, such as 401 or 403; leave it out when the refusal was not an HTTP answer"),evidence:Ts.describe("the request or command you tested it with and what came back, never the value")}),Nf=l.object({schemaVersion:l.literal(1),baseUrls:l.record(l.string()).optional().describe("service \u2192 base URL of the running app; omit on a failed bring-up, never invent one"),health:cG.optional(),teardown:Ts.describe("command that tears the SUT down"),dependencies:l.record(l.boolean()).optional().describe("EVERY backing service: true = really deployed, false = mocked; REQUIRED when the app came up"),outcome:l.nativeEnum(Mr).describe("clean | recipe-drift (you corrected the recipe) | change-broke-bringup (the PR broke it) | bringup-failed (environment, not the PR)"),recipeFixes:l.array(l.string()).optional().describe("required when outcome is recipe-drift: what was corrected"),bringupError:l.object({command:Ts,output:Ts}).optional().describe("required when bring-up failed: the exact failing command and what it printed"),suspectFiles:l.array(l.string()).optional().describe("required for change-broke-bringup: files THIS PR changed that the failure points at, relative to your working directory (a file in another checkout of the run: its absolute path)"),seeded:l.boolean(),startedAt:Ts.describe("ISO timestamp"),revisions:mR.optional(),missingSecrets:l.array(l.string().regex(Tf)).optional().describe("bringup-failed only: each secret the app cannot start without that this run has no value for, by its environment variable name; never a value"),credentialsRefused:l.array(Wle).optional().describe("only for credentials the prompt lists to test: each that was refused when you tested it, such as with a 401 or 403; leave it out when none was, or when none is listed"),recipeRecorded:l.boolean().optional().describe("[derived] whether the checkout had a recorded recipe before bring-up")});function AR(e){let t=[],n=r=>!!r&&typeof r=="object"&&!Array.isArray(r);return e.outcome!=="change-broke-bringup"&&e.outcome!=="bringup-failed"?(!n(e.baseUrls)||Object.keys(e.baseUrls).length===0?t.push("baseUrls must be a non-empty object of service \u2192 url"):Object.values(e.baseUrls).every(r=>typeof r=="string"&&r.trim())||t.push("every baseUrls value must be a non-empty url string"),n(e.health)?!(typeof e.health.url=="string"&&e.health.url.trim())&&!(typeof e.health.command=="string"&&e.health.command.trim())&&t.push("health must record a url or a command (what you actually ran)"):t.push("health must be an object"),(!n(e.dependencies)||Object.keys(e.dependencies).length===0)&&t.push("dependencies must be a non-empty object of name \u2192 boolean (real vs mocked) when the SUT came up \u2014 account for every backing service so a mocked one can't be hidden behind a green run")):(n(e.bringupError)||t.push(`outcome "${String(e.outcome)}" requires bringupError { command, output } \u2014 the exact failing bring-up command and what it printed`),e.outcome==="change-broke-bringup"&&!(Array.isArray(e.suspectFiles)&&e.suspectFiles.length>0&&e.suspectFiles.every(r=>typeof r=="string"&&r.trim()))&&t.push("change-broke-bringup requires non-empty suspectFiles[] \u2014 the changed file(s) the failure points at; if you cannot point at a file this PR changed, the outcome is bringup-failed (environment/harness), not the PR's fault")),e.outcome==="recipe-drift"&&!(Array.isArray(e.recipeFixes)&&e.recipeFixes.length>0)&&t.push("recipe-drift outcome requires a non-empty recipeFixes[] describing what was corrected"),t}var In=l.string().trim().min(1),Xy=In,yR=(n=>(n.TestbotManaged="testbot_managed",n.CustomerDeployed="customer_deployed",n))(yR||{}),eE=[".skyramp/sut/setup.sh",".skyramp/sut/teardown.sh"],ER=l.object({schemaVersion:l.literal(1),type:l.nativeEnum(yR).optional(),repository:Xy.optional().describe("namespace/name of the source whose checkout the recipe was written and proven in (SKYR-5380); a run replays it from there. Never on a customer_deployed plan"),status:l.enum(["ready","blocked"]),environment:zl.optional(),components:l.array(l.object({name:In,repository:In.describe(`owner/repo, or "${mr}" for a customer-deployed component no repository builds`),healthy:l.boolean(),url:l.string().min(1).nullable(),...hR,credentials:l.array(l.string().regex(cs)).max(50).optional(),deployed:In.nullable().optional().describe("customer_deployed only: the revision the component runs, as setup read it (WF-SETUP-22's Deployed now), or null when it could not tell")}).strict()),suites:l.array(l.object({framework:In,file:In,result:l.enum(["pass","fail","error"])}).strict()),inputsUsed:l.array(In),inputsUsedHow:l.array(l.object({input:In,how:In}).strict()).optional(),inputsNotUsed:l.array(l.object({input:In,reason:In}).strict()),blockers:l.array(l.object({component:In,problem:In,evidence:In,fix:In}).strict()),replay:l.object({outcome:In,durationSeconds:l.number().nonnegative().nullable()}).strict().nullable(),files:l.array(l.object({path:In,content:l.string()}).strict())}).strict().superRefine((e,t)=>{e.inputsUsedHow?.forEach((r,i)=>{e.inputsUsed.includes(r.input)||t.addIssue({code:l.ZodIssueCode.custom,path:["inputsUsedHow",i,"input"],message:"not one of inputsUsed"})}),e.components.forEach((r,i)=>{r.credentials&&new Set(r.credentials).size!==r.credentials.length&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",i,"credentials"],message:"names a credential twice"})});let n=e.type==="customer_deployed";n!==(e.environment!==void 0)&&t.addIssue({code:l.ZodIssueCode.custom,path:["environment"],message:"an environment exactly when the plan's type is customer_deployed"}),n&&e.repository!==void 0&&t.addIssue({code:l.ZodIssueCode.custom,path:["repository"],message:"a customer_deployed plan names no repository"}),e.environment&&new Set(e.environment.credentials).size!==e.environment.credentials.length&&t.addIssue({code:l.ZodIssueCode.custom,path:["environment","credentials"],message:"names a credential twice"});let s=new Set(e.components.map(r=>r.name));if(e.environment?.revisionSources.forEach((r,i)=>{r.components.forEach((o,a)=>{s.has(o)||t.addIssue({code:l.ZodIssueCode.custom,path:["environment","revisionSources",i,"components",a],message:"not one of components"})})}),e.components.forEach((r,i)=>{r.deployed!==void 0!==n&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",i,"deployed"],message:"what a component runs exactly when the plan is customer_deployed"}),r.repository===mr&&!n&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",i,"repository"],message:`only a customer_deployed component is ${mr}`})}),n&&(e.components.forEach((r,i)=>{e.components.findIndex(o=>o.name===r.name)!==i&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",i,"name"],message:"names a component twice"})}),e.replay!==null&&t.addIssue({code:l.ZodIssueCode.custom,path:["replay"],message:"a customer_deployed plan is never replayed"}),e.files.forEach((r,i)=>{eE.includes(r.path)&&t.addIssue({code:l.ZodIssueCode.custom,path:["files",i,"path"],message:"a customer_deployed plan has no script that starts or stops the system"})})),n&&e.status==="ready"){let r=new Set(e.environment?.revisionSources.flatMap(i=>i.components));e.components.forEach((i,o)=>{i.repository!==mr&&!r.has(i.name)&&t.addIssue({code:l.ZodIssueCode.custom,path:["components",o,"name"],message:"a ready customer_deployed plan reads what every component a repository builds runs"})})}});var W$e=["clean","recipe-drift"];function Pf(e){let t=uG.posix.normalize(e);return t===e&&(t===".skyramp/workspace.yml"||t.startsWith(".skyramp/sut/")&&t.length>13)}function vR(e){return[...new Set([...e.components.flatMap(t=>t.credentials??[]),...e.environment?.credentials??[]])].filter(t=>cs.test(t))}var bR=".skyramp/workspace.yml";var eTe=["/.skyramp/sut/",`/${bR}`],tE=[".skyramp/sut",bR];var lG=256*1024*1024,Yle=3e4,nE=12e4;function Jn(e,t,n=Yle){let s=lR([...fr,...t],{env:ht(),cwd:e,encoding:"utf-8",timeout:n,maxBuffer:lG});return s.status===0?s.stdout.trimEnd():void 0}var wR=["--",":/",...tE.map(e=>`:(exclude)${e}`)],dG="--literal-pathspecs";function IR(e,t){return!!Jn(e,[dG,"status","--porcelain","--",t])}function rE(e,t){return/ blob /.test(Jn(e,[dG,"ls-tree","HEAD","--",t])??"")}function CR(e){return Jn(e,["rev-parse","--git-dir"])!==void 0}function Hl(e,t){let n=[];if(t)n.push(t),!t.startsWith("origin/")&&!/[~^:@]/.test(t)&&n.push(`origin/${t}`);else{let s=Jn(e,["symbolic-ref","--short","refs/remotes/origin/HEAD"]);s&&n.push(s),n.push("main","master","origin/main","origin/master")}for(let s of n)if(Jn(e,["rev-parse","--verify",`${s}^{commit}`])!==void 0)return s}function pG(e){if(!e.startsWith('"')||!e.endsWith('"'))return e;let t={a:"\x07",b:"\b",t:" ",n:`
|
|
56
56
|
`,v:"\v",f:"\f",r:"\r",'"':'"',"\\":"\\"};return e.slice(1,-1).replace(/(?:\\[0-7]{3})+|\\([abtnvfr"\\])/g,(n,s)=>s!==void 0?t[s]:Buffer.from(n.slice(1).split("\\").map(r=>parseInt(r,8))).toString("utf8"))}function fG(e){let t=/^diff --git (?:"a\/(?:[^"\\]|\\.)+"|a\/.+) ("b\/(?:[^"\\]|\\.)+"|b\/.+)$/.exec(e)?.[1];return t&&pG(t).slice(2)}function Zle(e){let t=[],n=[],s;for(let r of e.split(`
|
|
57
57
|
`)){if(r.startsWith("diff --git ")){s=fG(r);continue}r==="--- /dev/null"&&s?t.push(s):r==="+++ /dev/null"&&s&&n.push(s)}return{newFiles:t,deletedFiles:n}}function SR(e,t){let n=Hl(e,t);if(!n)return;let s=Jn(e,["merge-base",n,"HEAD"])??n,r=Jn(e,["diff","--no-relative",s,...wR],nE);if(r===void 0)return;let i=["--",...tE],o=[r,Jn(e,["diff","--no-relative",s,"HEAD",...i],nE)].filter(Boolean).join(`
|
|
58
58
|
`),a=[Jn(e,["diff","--stat",s,...wR],nE),Jn(e,["diff","--stat",s,"HEAD",...i],nE)].filter(Boolean).join(`
|
|
@@ -181,7 +181,7 @@ try { runtime = require("@skyramp/testbot-core/dist/shared-environment-test.cjs"
|
|
|
181
181
|
if (runtime && typeof runtime.sharedEnvironmentTest === "function") runtime.sharedEnvironmentTest(spec, __filename);
|
|
182
182
|
else require("node:test").test(spec.name, () => { throw new Error("required shared-environment guard runtime is unavailable"); });
|
|
183
183
|
`;function Dg(e){return lD+JSON.stringify(NZ.parse(e),null,2)+dD}function Ca(e){if(e.includes("\r")){if(/(?:^|[^\r])\n|\r(?!\n)/.test(e))return;e=e.replace(/\r\n/g,`
|
|
184
|
-
`)}if(!(!e.startsWith(lD)||!e.endsWith(dD)))try{let t=NZ.safeParse(JSON.parse(e.slice(lD.length,-dD.length)));return t.success&&Dg(t.data)===e?t.data:void 0}catch{return}}var Ng=l.string().trim().min(1),Hwe=l.object({cwd:Ng.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:l.array(Ng).min(1).describe("the command as separate arguments, run without a shell"),env:l.record(l.string(),l.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),PZ=l.object({file:Ng.describe("a file of the test's checkout, relative to its root"),line:Ng.describe("a line of that file, quoted exactly from where its command starts to its end")}),OZ=l.object({collected:l.boolean().describe("whether the repo's CI runs this test as it is"),steps:l.array(PZ).optional().describe("when collected: the line in a CI file that starts the tests, then each line it runs on the way to the test runner"),runner:l.string().optional().describe("when collected: the test runner the last of those lines starts, by the name that line and the list command both use"),list:Hwe.optional().describe("when collected: a command that lists the tests that runner collects without running them; Testbot runs it, and its output must name this file"),why:l.string().optional().describe("when not collected: why the repo's CI will not run it"),needs:l.array(Ng).optional().describe("what the test needs running outside its own process (the app, a database, another service), one entry each; omit when it needs none"),starts:l.array(PZ).optional().describe("when collected and it needs any: the line that starts each of those in the CI job that runs it, in a file of ci.steps")});var he=l.string().trim().min(1),Xwe=e=>{if(!e||typeof e!="object")return e;let t=e;return typeof t.skip=="string"&&t.skip.trim()&&(t.expected===void 0||t.expected===null)?{...t,expected:"(not tested)"}:e},eIe=l.preprocess(Xwe,l.object({id:he.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:he.describe("one testable part of the requirement"),expected:he.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:l.string().optional().describe("only when no test can check this clause here: why"),type:l.nativeEnum(Fs).optional().describe("the test that checks this clause: contract / integration (the API, or code called directly in-process: a function, hook or module) or ui (a page)"),target:l.string().optional().describe('its "METHOD /path", or the page / flow'),steps:l.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:l.string().optional().describe("the finding id, when this clause's test also catches that defect (the defect still gets a case of its own)"),code:l.string().optional().describe("path:line of the code that decides this clause, when there is one; in another repo of the change, that repo's directory name then its path"),stated:l.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:l.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes"),browserOnly:l.boolean().optional().describe("true when its behaviour happens only in a browser: real clicks or keys driving page script, client-side sorting or filtering, script-driven DOM updates, focus, drag-and-drop, navigation, rendering that depends on CSS or JavaScript"),browserHarness:l.string().optional().describe("browserOnly, off the runtime path: the path of the repo's in-process browser suite its test goes in (e.g. a Django StaticLiveServerTestCase test that drives Selenium)"),quote:l.string().optional().describe("the words of the spec, plan, ticket, PR description or a test the change adds or edits that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:l.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),FZ=l.object({spec:l.string().optional().describe("file:line of a spec in the repository"),prDescription:l.boolean().optional().describe("or true when a pull request description says otherwise"),reference:l.string().optional().describe("or the key of an item the run was given, as listed"),says:he.describe("what it says there, in its own words, copied exactly"),criterion:l.number().int().positive().optional().describe("an item's only: leave it out; Testbot numbers it")}).refine(e=>[!!e.prDescription,!!e.spec?.trim(),!!e.reference?.trim()].filter(Boolean).length===1,{message:`names no source, or more than one: give "spec" its file:line or "reference" an item's key, or set "prDescription", one of them; list each source as its own entry`}),tIe=l.object({id:he.describe('the label its source gives it ("AC-3", "REQ-12"; item 4 of a numbered list is "R4"), else "R1", "R2"\u2026 in order'),statement:he,source:l.nativeEnum(vi).describe("requirement-reference (an item the run was given), spec, pr-description (also for what the change is evidently meant to do when nothing is written down), or could-break (what the change could break that no requirement mentions)"),reference:l.string().optional().describe('requirement-reference only: the key of its item as listed, e.g. "PAY-184", or a Confluence page id such as "3021"'),evidence:he.describe("where it is stated: for requirement-reference, the item's own words, copied exactly; else file:line, a doc section, or the quoted phrase"),criterion:l.number().int().positive().optional().describe("requirement-reference only: leave it out; Testbot numbers each criterion by the item's own label (AC2, 2.), else after the item's labels"),alsoFrom:l.array(l.object({reference:he.regex(Wo).describe("the key of another uploaded document stating the same obligation"),says:he.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:l.number().int().positive().optional().describe("leave out; Testbot grounds and numbers this source separately")})).optional().describe("equivalent uploaded source criteria sharing this requirement's planned cases; retain every source with its own quote. Different conditions or boundaries need distinct requirements"),notInChange:l.string().optional().describe("requirement-reference only: when the PR description or the item defers this criterion to a later change, the words that defer it, copied exactly; give it no clauses. Never for words that only say what this change covers, or only because no changed file holds its code"),unchanged:l.boolean().optional().describe("true when it asks only that behaviour stay as it was (an update or refactor that must not change how something works), whatever its source"),overrules:l.array(FZ).optional().describe("requirement-reference only: each lower-ranked source that says otherwise, a spec in the repository, a PR description or another item; this requirement wins, so test what it says"),clauses:l.array(eIe)}),MZ=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(MZ||{}),nIe=l.object({id:he.describe('e.g. "F1"'),file:he,line:l.number().optional(),claim:he.describe("the defect, in one sentence"),severity:l.nativeEnum(Eu),evidence:he.describe("the code line, or the probe request and response, that shows it"),conflictsWith:l.array(he).optional().describe("requirement or clause ids it violates"),keeps:l.string().optional().describe("for a defect no requirement or clause states: path:line of the code beside the change that keeps the rule it breaks"),rule:l.nativeEnum(MZ).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:l.string().optional().describe("only when the base already does this, in code the change left as it was, and the change does not say it fixes it: where the base does it (its file:line); such a defect gets no case"),needsApp:l.enum(["browser","live-api"]).optional().describe("only when the running app alone can show this defect and the repo has no in-process test that can: browser (page script, what the user sees after a click or a save) or live-api (code the repo tests only against the running app's API)")}),rIe=l.object({id:he.describe('e.g. "Q1"'),question:he.describe("what is unsettled, as a question the PR author can answer"),readings:l.array(he).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:l.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:l.array(FZ).optional().describe("when sources of the same rank disagree on it: each of them")}),sIe=l.object({id:he.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:l.nativeEnum(Fs).describe("contract / integration: checks the API, or calls code directly in-process (a function, hook or module); ui: checks what a user sees or does on a page"),target:he.describe('"METHOD /path", or the page / flow'),clause:l.string().optional().describe("the clause id this case checks"),finding:l.string().optional().describe("the finding id this case catches"),steps:he.describe("what the test does"),expected:he.describe("the expected outcome, from the clause"),mutates:l.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes")}),iIe=l.object({test:he.describe("existing test file"),action:l.nativeEnum(yi),reason:he,mutates:l.boolean().optional().describe("true when the maintained test changes state"),clauses:l.array(he).optional().describe("the clause ids this test checks"),staleOnBase:l.boolean().optional().describe("true when the test's own expectation was already wrong before this change: it fails the same way on the base branch, where the app does what it should. Not one the base app's own bug fails (that is an existing defect). It is verify, never update: re-run as it is, its failure the test's own. A delete the change justifies stays a delete")}),UZ=l.array(Ky).optional(),oIe=l.object({components:l.preprocess(e=>UZ.safeParse(e).success?e:void 0,UZ).describe("when saving a new or changed recipe: every app and backing service actually brought up, its source repository, and whether it is healthy"),outcome:l.nativeEnum(Mr).describe("clean | recipe-drift (you had to fix the recipe) | change-broke-bringup (this PR broke start-up) | bringup-failed (the environment, not the PR)"),baseUrls:l.record(l.string()).optional().describe("service \u2192 base URL of the running app"),health:l.object({url:l.string().optional(),command:l.string().optional(),output:l.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:l.string().optional().describe("command that stops the app"),dependencies:l.record(l.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:l.array(l.string()).optional().describe("what you changed in the recipe"),error:l.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:l.array(l.string()).optional().describe("change-broke-bringup: the changed files to blame"),missingSecrets:l.array(l.string().regex(Tf)).optional().describe("bringup-failed only: each secret, key, token or password the app cannot start without that this run has no value for, by its environment variable name; never a value"),login:l.object({username:he,password:l.string()}).optional().describe("the account the tests sign in as, when they sign in: each a literal value the recipe seeds, or $VARIABLE when a secret in the environment holds it"),revisions:mR.optional()}),l1e=l.object({schemaVersion:l.literal(1),requirements:l.array(tIe),findings:l.array(nIe),cases:l.array(sIe).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:l.array(rIe).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:l.array(iIe),journeys:l.array(yZ).optional().describe("the user journeys that, together, pass through everything the change alters that a user sees or does; empty when it alters nothing a user sees"),notInJourney:l.array(l.object({clause:he,why:he})).optional().describe("a clause a user sees or does that no journey walks, and why: none can reach it through the UI, or it is downstream of this change and not walked here"),browserSuites:l.array(l.object({repository:he.optional().describe("owner/repo, for a checkout other than the working one"),path:he.describe("the folder its browser tests are in, relative to that checkout"),framework:he.describe("what runs them, the way the repo's CI or docs run them")})).default([]).describe("the repository's own browser test suites; empty when it has none"),unplannedComponents:l.array(l.object({components:l.array(he).min(1).describe("changed components, as the change lists them"),why:he})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:$g.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:oIe.optional().describe("omit when no app was needed or none was started"),summary:he.describe("one paragraph: what the change does and where the risk is")});var Og=(n=>(n.Backend="backend",n.Ui="ui",n))(Og||{});var Ms=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(Ms||{}),aIe=l.object({file:he.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:l.nativeEnum(Og),change:l.nativeEnum(Ms).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:l.array(l.string()).describe("the plan case or maintenance clause ids this file tests, each with its own result under result.cases"),guardedDelivery:vw.optional().describe("for a new test that calls the shared app: supply equivalent ordered HTTP requests and assertions only for one case and one test function in a .test.cjs file collected by node --test. The destination package must declare the exact released version of @skyramp/testbot-core used by this run. Use only CI variable names for credentials. Omit when the setup or steps cannot preserve the test; Testbot retains the source without a CI entry"),defect:l.boolean().optional().describe("true when a case of it fails because the app is wrong and the test is right \u2014 kept failing on purpose"),staleBecause:l.object({requirement:he.describe("the requirement or clause id the change deliberately alters"),line:he.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated or deleted: why it is out of date"),staleOnBase:l.boolean().optional().describe("for an existing test that fails: true when it fails the same way on the base branch because its own expectation is wrong (the app there does what it should), so this change did not make it wrong. Not when the base app's own bug fails it: that is an existing defect. Leave it as it is (unchanged): its failure is the test's own"),result:l.object({started:l.boolean().optional().describe("with exit null: true if this file's test command started (it was interrupted or timed out), false if it never started. Left out, Testbot counts it as possibly started, with its cleanup unknown"),exit:l.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:l.array(l.object({case:he,status:l.nativeEnum(Ar),environmentRestriction:he.optional().describe("for a skipped case whose test you wrote and could not run here: what this run lacks to run it (a build, a service, a database, a browser, an app). The test is still written; Testbot reports the case as not run. Never set it on a case that ran or for a time limit."),runtimeTargets:zf.optional().describe("HTTP(S) URLs this case actually exercised in its current run, from its request or browser evidence; omit for local in-process/mocked checks, never list the shared app merely because it is configured"),defect:l.boolean().optional().describe("for a failing case: true when the app is wrong and the test is right; false when the test is at fault and you could not fix it"),testProblem:lE.optional().describe("for a failing case marked defect: false: what in the test is at fault"),failure:l.string().optional().describe("for a failing case: the runner's failure for it as printed (the error and the line it was raised at), not a summary"),cause:l.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:l.string().optional().describe("for a case you keep as a defect: the words of the PR description, a requirement or clause of the plan, or the code a finding's keeps names, that state what its failing check expects, quoted exactly")}).refine(e=>!e.environmentRestriction||e.status==="skip"&&!e.runtimeTargets?.length,{message:"an environment-restricted case must be skipped and have no runtimeTargets"})).describe("one entry per covered case, from the runner's own output; a case you could not run here has none: record it as skipped with its environmentRestriction"),details:l.string().optional().describe("what failed and why, or why it was not run"),noCases:l.string().optional().describe("for a failed run whose runner reported none of this file's tests (it failed to compile, import or collect): why")}),assertions:l.array(l.object({case:he,evidence:he})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:l.array(l.object({name:he.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:l.array(he).describe("the plan case or maintenance clause ids it checks"),testProblem:lE.optional().describe("for a function that fails because of the test itself, while another function keeps a case it checks as a defect: what in it is at fault")})).optional().describe("for a file you added or updated, or an existing test to maintain that lists clauses: each test function in it and the plan case or maintenance clause ids it checks"),skyramp:l.object({draft:l.union([l.string(),l.array(l.string())]).optional().describe("the draft path the Skyramp helper returned for this test, or each path when the test was made from several drafts"),handWritten:l.string().optional().describe("why it is written by hand: the helper call you made and what it returned")}).optional().describe("only for a test of a case the Skyramp API block lists: where it came from"),context:l.array(Gf).optional().describe("what the test sets up outside its own process that another test could run into: data it creates in the app, a Skyramp mock, an env override; omit when none"),isolatedRun:he.optional().describe("for a test with a context: the command, from its checkout's root and without a shell, that runs only this file"),ci:OZ.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:bu.optional().describe(`for a file in ${qd}, added, updated or re-run: how the run executes only this file's tests, with the repository's own runner and the report it writes (junit, trx or jest-json to ${jn}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),cIe=e=>{if(!e||typeof e!="object")return e;let{test:t,...n}=e;return typeof t=="string"&&t.trim()&&n.tests===void 0?{...n,tests:[t]}:e},uIe=l.preprocess(cIe,l.object({description:he.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:l.nativeEnum(Eu).optional(),sourceFile:l.string().optional().describe("the app file at fault"),sourceLine:l.number().optional(),tests:l.array(he).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:l.string().optional().describe("the plan's finding id, when it is one"),requirements:l.array(he).optional().describe("the plan's requirement or clause ids it violates")})),d1e=l.object({schemaVersion:l.literal(1),tests:l.array(aIe),notWritten:l.array(l.object({case:he,reason:he,coveredBy:l.object({file:he.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:he.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)")}).optional().describe("only for an existing test triage independently linked to this exact case: its exact runner name (including class or describe titles). Testbot must finish re-running it with every result passed. If your own test covers the case, include the case in its covers and function cases instead")})).describe("every plan case no test covers, and why; also a maintenance clause that no function of its existing test asserts (it stays unproven)"),journeys:l.array(gw).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:l.object({command:l.string(),clean:l.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repo has one: the exact command, with its file paths (Testbot re-runs it)"),dependenciesAdded:l.array(l.object({package:he,manifest:he.describe("the manifest file's path relative to its checkout (e.g. package.json, pom.xml or pyproject.toml), and nothing else; name another checkout in repository"),repository:he.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:he.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).optional().describe("every package you added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own"),supportFiles:l.array(he).optional().describe("every file that is not a test you created or changed for your tests, which they need to compile or run (a helper module, page object, fixture, or a snapshot the runner wrote for them), named as you name a test; Testbot delivers only the tests you list and the files under supportFiles"),ciNotes:l.string().optional().describe("for each test whose ci says the repo's CI will not run it: the test, and the exact change the author must make for CI to run it"),importerRun:bu.optional().describe("when you changed a module other test files import: the repository's own command for running its test files (its runner, its config, its folder); Testbot loads the files that reach your change with it and reports each; omit when you changed none"),commit:l.object({message:he.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:he.describe("at most 72 characters, following the repository's PR-title checks"),prBody:he.describe("what the tests cover and what they found")}),report:l.object({summary:he.describe("1-2 sentences for the PR author: does the change do what it says? No count of tests: the report gives it"),issues:l.array(uIe).describe("every defect the tests found"),nextSteps:l.array(l.string()),noTests:l.array(l.object({repository:he,reason:he.max(4096)})).max(1e3).optional().describe("each Change Set repository where no test was added or updated: its owner/repo and why, naming the other repository when its tests went there"),notesDeviation:l.string().trim().max(4096).optional().describe("when the Target notes say where tests go and a test you added went elsewhere: where it went, and why; omit otherwise")})});var p1e={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};function uo(e){return e.rel!==""&&!e.rel.startsWith("..")&&!dn.isAbsolute(e.rel)}function bi(e,t,n=QZ){let s=t.map(d=>({name:ZR(d),root:dn.resolve(d.path),slug:d.slug})),r=new Map([...s].reverse().map(d=>[d.name,d])),i=t.length?[{real:QE(dn.resolve(e))},...s.map(d=>({...d,real:QE(d.root)}))].sort((d,p)=>p.real.length-d.real.length):[],o=new Map,a=d=>o.get(d)??o.set(d,new Set(n(d))).get(d),c=d=>{let p=dn.resolve(e,d),h=Pg.existsSync(p),g=C=>({root:e,rel:Yi(e,d),ambiguous:C,exists:h});if(!t.length)return g(!1);let m=!1,y=d.replace(/^\.\//,""),E=y.split("/")[0],v=r.get(E);if(v){let C=y.slice(E.length+1),I=Pg.existsSync(dn.join(v.root,C)),x=!Pg.existsSync(dn.join(e,E))||!h&&I;if(I&&h&&dn.join(v.root,C)!==p){let S=a(v.root).has(Yi(v.root,C)),W=a(e).has(Yi(e,d));S&&!W?x=!0:S===W&&(m=!0)}if(x)return{root:v.root,rel:Yi(v.root,C),repository:v.slug,dir:v.name,ambiguous:m,exists:I}}let b=dn.join(QE(dn.dirname(p)),dn.basename(p)),w=i.find(C=>uo({rel:dn.relative(C.real,b)}));return w?"slug"in w?{root:w.root,rel:dn.relative(w.real,b),repository:w.slug,dir:w.name,ambiguous:m,exists:h}:{...g(m),rel:dn.relative(w.real,b)}:g(m)},u=new Map;return d=>u.get(d)??u.set(d,c(d)).get(d)}var VZ=(s=>(s.Requirement="requirement",s.PrDescription="pr_description",s.Code="code",s))(VZ||{}),Bn=l.string().trim().min(1),dIe=l.object({expectation:Bn.max(300).describe("the behavior this assertion pins, in words"),source:l.nativeEnum(VZ),expected:Bn.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),pIe=l.object({file:Bn.describe("path of the NEW test file you wrote, relative to its repository"),repository:Bn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:Bn.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:bu.optional().describe(`for ${qd}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:l.array(Bn).length(1).describe("the ONE behavior id, or defect id, from the plan that the tests in names provide evidence for; a file covering several is listed once per id"),names:l.array(Bn).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:l.array(dIe).min(1)}),Ug=(n=>(n.Updated="updated",n.Deleted="deleted",n))(Ug||{}),jZ=300,fIe=l.object({file:Bn.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:Bn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:l.nativeEnum(Ug),staleBecause:l.object({requirement:Bn.describe("the requirement or clause id the change deliberately alters"),line:Bn.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated: why it is out of date"),reason:l.preprocess(e=>typeof e=="string"?e.trim().slice(0,jZ):e,Bn.max(jZ)).describe("what the change deliberately altered that made the test wrong")}),pD=l.object({schemaVersion:l.literal(1),tests:l.array(pIe),maintained:l.array(fIe).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:l.array(l.object({id:Bn,reason:Bn.max(300)})).optional().describe("defects the plan found that no in-process test can reach, each with why; omit when every defect has a test"),journeys:l.array(gw).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:l.array(l.object({journey:Bn,missing:Bn.transform(e=>e.length>300?`${e.slice(0,299)}\u2026`:e)})).optional().describe("a planned journey no in-process test can walk here, with what it needs that is missing; it is reported as not covered"),lint:l.object({command:l.string(),clean:l.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repository has one you can run; omit otherwise"),commitMessage:Bn.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var Fg="generate-unit.json";function mIe(e){let{value:t,error:n}=Jt(e);if(n)return{errors:[n]};let{value:s,errors:r}=Un(pD,t);return r.length?{errors:r}:{output:s,errors:[]}}function AIe(e){return mIe(e.stdout)}var oVe=yr("generate-unit-schema",(e,t)=>AIe(t));var bw=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,aVe=[[/\b(localhost|127\.0\.0\.1|0\.0\.0\.0)\b/,"a local server address"],[/^\s*(import|from)\s+(requests|aiohttp|urllib3|websockets?)\b/m,"an HTTP client"],[/^\s*(?:import|from)\s+(?:urllib\.request|http\.client|http\.server|socket|ssl|ftplib|smtplib|telnetlib)\b|^\s*from\s+urllib\s+import\b[^\n]*\brequest\b|\burlopen\s*\(/m,"a standard-library network client"],[/\bfrom\s+["'](axios|node-fetch|undici|ws)["']|require\(\s*["'](axios|node-fetch|undici|ws)["']\s*\)/,"an HTTP client"],[new RegExp(String.raw`\bfrom\s+["']${bw}["']|\bimport\s+["']${bw}["']|require\(\s*["']${bw}["']\s*\)|\bimport\(\s*["']${bw}["']\s*\)`),"Node's network modules"],[/\bfetch\s*\(|\bnew\s+(XMLHttpRequest|WebSocket)\b/,"a network call (fetch, XMLHttpRequest, WebSocket)"],[/\bskyramp\b/i,"the Skyramp runtime (a runtime mock or client)"]];var BVe=new Set(["targeted_unit","existing_evidence_sufficient"]);var Sa=Z(require("path"));var LVe={"application/pdf":"PDF","text/csv":"CSV","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"DOCX","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"XLSX"};var fD=e=>new Map((e??[]).flatMap(t=>t.file?[[Ff(t.key),t.file.name]]:[])),EIe=10*1024*1024,vIe=e=>e?.mediaType==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e?.mediaType==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",WZ=(e,t)=>Sa.join(Sa.dirname(e),`${Sa.basename(e,Sa.extname(e))}${t}`),bIe=e=>WZ(e,".extracted.txt");var wIe=e=>WZ(e,".quotes.txt");function YZ(e){return vIe(e.file)?bIe(e.path):e.file?.mediaType==="application/pdf"?wIe(e.path):e.path}var RIe="triage.json";var jGe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),VGe={existing_evidence:"existing evidence",unaffected:"showing the change cannot reach it",existing_unit:"running the existing unit tests",new_unit:"a new unit test",runtime:"tests against the running application"};function BIe(e){let{value:t,error:n}=Jt(e);if(n)return{errors:[n]};let{value:s,errors:r}=Un($g,t);return r.length?{errors:r}:{triage:s,errors:[]}}function xIe(e){return BIe(e.stdout)}var GGe=yr("triage-schema",(e,t)=>xIe(t));function QIe(e){let t=e.inputs?.pipeline;return t?e.state.stages[t==="two-step"?"plan":"triage"]:e.state.stages.triage??e.state.stages.plan}function hD(e){if(QIe(e)?.status==="passed")return Wi(KZ.join(e.outputsDir,RIe))}function gD(e){return Y4(z_(e.inputs,Ce(e,`${zd}.json`),hD(e)?.sutRequired))}var zGe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);_n();_n();function XZ(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
|
|
184
|
+
`)}if(!(!e.startsWith(lD)||!e.endsWith(dD)))try{let t=NZ.safeParse(JSON.parse(e.slice(lD.length,-dD.length)));return t.success&&Dg(t.data)===e?t.data:void 0}catch{return}}var Ng=l.string().trim().min(1),Hwe=l.object({cwd:Ng.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:l.array(Ng).min(1).describe("the command as separate arguments, run without a shell"),env:l.record(l.string(),l.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),PZ=l.object({file:Ng.describe("a file of the test's checkout, relative to its root"),line:Ng.describe("a line of that file, quoted exactly from where its command starts to its end")}),OZ=l.object({collected:l.boolean().describe("whether the repo's CI runs this test as it is"),steps:l.array(PZ).optional().describe("when collected: the line in a CI file that starts the tests, then each line it runs on the way to the test runner"),runner:l.string().optional().describe("when collected: the test runner the last of those lines starts, by the name that line and the list command both use"),list:Hwe.optional().describe("when collected: a command that lists the tests that runner collects without running them; Testbot runs it, and its output must name this file"),why:l.string().optional().describe("when not collected: why the repo's CI will not run it"),needs:l.array(Ng).optional().describe("what the test needs running outside its own process (the app, a database, another service), one entry each; omit when it needs none"),starts:l.array(PZ).optional().describe("when collected and it needs any: the line that starts each of those in the CI job that runs it, in a file of ci.steps")});var de=l.string().trim().min(1),Xwe=e=>{if(!e||typeof e!="object")return e;let t=e;return typeof t.skip=="string"&&t.skip.trim()&&(t.expected===void 0||t.expected===null)?{...t,expected:"(not tested)"}:e},eIe=l.preprocess(Xwe,l.object({id:de.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:de.describe("one testable part of the requirement"),expected:de.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:l.string().optional().describe("only when no test can check this clause here: why"),type:l.nativeEnum(Fs).optional().describe("the test that checks this clause: contract / integration (the API, or code called directly in-process: a function, hook or module) or ui (a page)"),target:l.string().optional().describe('its "METHOD /path", or the page / flow'),steps:l.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:l.string().optional().describe("the finding id, when this clause's test also catches that defect (the defect still gets a case of its own)"),code:l.string().optional().describe("path:line of the code that decides this clause, when there is one; in another repo of the change, that repo's directory name then its path"),stated:l.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:l.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes"),browserOnly:l.boolean().optional().describe("true when its behaviour happens only in a browser: real clicks or keys driving page script, client-side sorting or filtering, script-driven DOM updates, focus, drag-and-drop, navigation, rendering that depends on CSS or JavaScript"),browserHarness:l.string().optional().describe("browserOnly, off the runtime path: the path of the repo's in-process browser suite its test goes in (e.g. a Django StaticLiveServerTestCase test that drives Selenium)"),quote:l.string().optional().describe("the words of the spec, plan, ticket, PR description or a test the change adds or edits that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:l.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),FZ=l.object({spec:l.string().optional().describe("file:line of a spec in the repository"),prDescription:l.boolean().optional().describe("or true when a pull request description says otherwise"),reference:l.string().optional().describe("or the key of an item the run was given, as listed"),says:de.describe("what it says there, in its own words, copied exactly"),criterion:l.number().int().positive().optional().describe("an item's only: leave it out; Testbot numbers it")}).refine(e=>[!!e.prDescription,!!e.spec?.trim(),!!e.reference?.trim()].filter(Boolean).length===1,{message:`names no source, or more than one: give "spec" its file:line or "reference" an item's key, or set "prDescription", one of them; list each source as its own entry`}),tIe=l.object({id:de.describe('the label its source gives it ("AC-3", "REQ-12"; item 4 of a numbered list is "R4"), else "R1", "R2"\u2026 in order'),statement:de,source:l.nativeEnum(vi).describe("requirement-reference (an item the run was given), spec, pr-description (also for what the change is evidently meant to do when nothing is written down), or could-break (what the change could break that no requirement mentions)"),reference:l.string().optional().describe('requirement-reference only: the key of its item as listed, e.g. "PAY-184", or a Confluence page id such as "3021"'),evidence:de.describe("where it is stated: for requirement-reference, the item's own words, copied exactly; else file:line, a doc section, or the quoted phrase"),criterion:l.number().int().positive().optional().describe("requirement-reference only: leave it out; Testbot numbers each criterion by the item's own label (AC2, 2.), else after the item's labels"),alsoFrom:l.array(l.object({reference:de.regex(Wo).describe("the key of another uploaded document stating the same obligation"),says:de.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:l.number().int().positive().optional().describe("leave out; Testbot grounds and numbers this source separately")})).optional().describe("equivalent uploaded source criteria sharing this requirement's planned cases; retain every source with its own quote. Different conditions or boundaries need distinct requirements"),notInChange:l.string().optional().describe("requirement-reference only: when the PR description or the item defers this criterion to a later change, the words that defer it, copied exactly; give it no clauses. Never for words that only say what this change covers, or only because no changed file holds its code"),unchanged:l.boolean().optional().describe("true when it asks only that behaviour stay as it was (an update or refactor that must not change how something works), whatever its source"),overrules:l.array(FZ).optional().describe("requirement-reference only: each lower-ranked source that says otherwise, a spec in the repository, a PR description or another item; this requirement wins, so test what it says"),clauses:l.array(eIe)}),MZ=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(MZ||{}),nIe=l.object({id:de.describe('e.g. "F1"'),file:de,line:l.number().optional(),claim:de.describe("the defect, in one sentence"),severity:l.nativeEnum(Eu),evidence:de.describe("the code line, or the probe request and response, that shows it"),conflictsWith:l.array(de).optional().describe("requirement or clause ids it violates"),keeps:l.string().optional().describe("for a defect no requirement or clause states: path:line of the code beside the change that keeps the rule it breaks"),rule:l.nativeEnum(MZ).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:l.string().optional().describe("only when the base already does this, in code the change left as it was, and the change does not say it fixes it: where the base does it (its file:line); such a defect gets no case"),needsApp:l.enum(["browser","live-api"]).optional().describe("only when the running app alone can show this defect and the repo has no in-process test that can: browser (page script, what the user sees after a click or a save) or live-api (code the repo tests only against the running app's API)")}),rIe=l.object({id:de.describe('e.g. "Q1"'),question:de.describe("what is unsettled, as a question the PR author can answer"),readings:l.array(de).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:l.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:l.array(FZ).optional().describe("when sources of the same rank disagree on it: each of them")}),sIe=l.object({id:de.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:l.nativeEnum(Fs).describe("contract / integration: checks the API, or calls code directly in-process (a function, hook or module); ui: checks what a user sees or does on a page"),target:de.describe('"METHOD /path", or the page / flow'),clause:l.string().optional().describe("the clause id this case checks"),finding:l.string().optional().describe("the finding id this case catches"),steps:de.describe("what the test does"),expected:de.describe("the expected outcome, from the clause"),mutates:l.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes")}),iIe=l.object({test:de.describe("existing test file"),action:l.nativeEnum(yi),reason:de,mutates:l.boolean().optional().describe("true when the maintained test changes state"),clauses:l.array(de).optional().describe("the clause ids this test checks"),staleOnBase:l.boolean().optional().describe("true when the test's own expectation was already wrong before this change: it fails the same way on the base branch, where the app does what it should. Not one the base app's own bug fails (that is an existing defect). It is verify, never update: re-run as it is, its failure the test's own. A delete the change justifies stays a delete")}),UZ=l.array(Ky).optional(),oIe=l.object({components:l.preprocess(e=>UZ.safeParse(e).success?e:void 0,UZ).describe("when saving a new or changed recipe: every app and backing service actually brought up, its source repository, and whether it is healthy"),outcome:l.nativeEnum(Mr).describe("clean | recipe-drift (you had to fix the recipe) | change-broke-bringup (this PR broke start-up) | bringup-failed (the environment, not the PR)"),baseUrls:l.record(l.string()).optional().describe("service \u2192 base URL of the running app"),health:l.object({url:l.string().optional(),command:l.string().optional(),output:l.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:l.string().optional().describe("command that stops the app"),dependencies:l.record(l.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:l.array(l.string()).optional().describe("what you changed in the recipe"),error:l.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:l.array(l.string()).optional().describe("change-broke-bringup: the changed files to blame"),missingSecrets:l.array(l.string().regex(Tf)).optional().describe("bringup-failed only: each secret, key, token or password the app cannot start without that this run has no value for, by its environment variable name; never a value"),login:l.object({username:de,password:l.string()}).optional().describe("the account the tests sign in as, when they sign in: each a literal value the recipe seeds, or $VARIABLE when a secret in the environment holds it"),revisions:mR.optional()}),l1e=l.object({schemaVersion:l.literal(1),requirements:l.array(tIe),findings:l.array(nIe),cases:l.array(sIe).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:l.array(rIe).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:l.array(iIe),journeys:l.array(yZ).optional().describe("the user journeys that, together, pass through everything the change alters that a user sees or does; empty when it alters nothing a user sees"),notInJourney:l.array(l.object({clause:de,why:de})).optional().describe("a clause a user sees or does that no journey walks, and why: none can reach it through the UI, or it is downstream of this change and not walked here"),browserSuites:l.array(l.object({repository:de.optional().describe("owner/repo, for a checkout other than the working one"),path:de.describe("the folder its browser tests are in, relative to that checkout"),framework:de.describe("what runs them, the way the repo's CI or docs run them")})).default([]).describe("the repository's own browser test suites; empty when it has none"),unplannedComponents:l.array(l.object({components:l.array(de).min(1).describe("changed components, as the change lists them"),why:de})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:$g.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:oIe.optional().describe("omit when no app was needed or none was started"),summary:de.describe("one paragraph: what the change does and where the risk is")});var Og=(n=>(n.Backend="backend",n.Ui="ui",n))(Og||{});var Ms=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(Ms||{}),aIe=l.object({file:de.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:l.nativeEnum(Og),change:l.nativeEnum(Ms).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:l.array(l.string()).describe("the plan case or maintenance clause ids this file tests, each with its own result under result.cases"),guardedDelivery:vw.optional().describe("for a new test that calls the shared app: supply equivalent ordered HTTP requests and assertions only for one case and one test function in a .test.cjs file collected by node --test. The destination package must declare the exact released version of @skyramp/testbot-core used by this run. Use only CI variable names for credentials. Omit when the setup or steps cannot preserve the test; Testbot retains the source without a CI entry"),defect:l.boolean().optional().describe("true when a case of it fails because the app is wrong and the test is right \u2014 kept failing on purpose"),staleBecause:l.object({requirement:de.describe("the requirement or clause id the change deliberately alters"),line:de.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated or deleted: why it is out of date"),staleOnBase:l.boolean().optional().describe("for an existing test that fails: true when it fails the same way on the base branch because its own expectation is wrong (the app there does what it should), so this change did not make it wrong. Not when the base app's own bug fails it: that is an existing defect. Leave it as it is (unchanged): its failure is the test's own"),failsOnBase:l.array(l.object({test:de.describe("its name, as its framework reports it"),failure:de.describe("the failure message it gave on the base branch")})).optional().describe("for a file that was there before this run, which you left as it was or only added tests to: the tests already in it that fail here and fail the same way on the base branch, so this change did not make them fail. Never a test you wrote or changed"),result:l.object({started:l.boolean().optional().describe("with exit null: true if this file's test command started (it was interrupted or timed out), false if it never started. Left out, Testbot counts it as possibly started, with its cleanup unknown"),exit:l.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:l.array(l.object({case:de,status:l.nativeEnum(Ar),environmentRestriction:de.optional().describe("for a skipped case whose test you wrote and could not run here: what this run lacks to run it (a build, a service, a database, a browser, an app). The test is still written; Testbot reports the case as not run. Never set it on a case that ran or for a time limit."),runtimeTargets:zf.optional().describe("HTTP(S) URLs this case actually exercised in its current run, from its request or browser evidence; omit for local in-process/mocked checks, never list the shared app merely because it is configured"),defect:l.boolean().optional().describe("for a failing case: true when the app is wrong and the test is right; false when the test is at fault and you could not fix it"),testProblem:lE.optional().describe("for a failing case marked defect: false: what in the test is at fault"),failure:l.string().optional().describe("for a failing case: the runner's failure for it as printed (the error and the line it was raised at), not a summary"),cause:l.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:l.string().optional().describe("for a case you keep as a defect: the words of the PR description, a requirement or clause of the plan, or the code a finding's keeps names, that state what its failing check expects, quoted exactly")}).refine(e=>!e.environmentRestriction||e.status==="skip"&&!e.runtimeTargets?.length,{message:"an environment-restricted case must be skipped and have no runtimeTargets"})).describe("one entry per covered case, from the runner's own output; a case you could not run here has none: record it as skipped with its environmentRestriction"),details:l.string().optional().describe("what failed and why, or why it was not run"),noCases:l.string().optional().describe("for a failed run whose runner reported none of this file's tests (it failed to compile, import or collect): why")}),assertions:l.array(l.object({case:de,evidence:de})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:l.array(l.object({name:de.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:l.array(de).describe("the plan case or maintenance clause ids it checks"),testProblem:lE.optional().describe("for a function that fails because of the test itself, while another function keeps a case it checks as a defect: what in it is at fault")})).optional().describe("for a file you added or updated, or an existing test to maintain that lists clauses: each test function in it and the plan case or maintenance clause ids it checks"),skyramp:l.object({draft:l.union([l.string(),l.array(l.string())]).optional().describe("the draft path the Skyramp helper returned for this test, or each path when the test was made from several drafts"),handWritten:l.string().optional().describe("why it is written by hand: the helper call you made and what it returned")}).optional().describe("only for a test of a case the Skyramp API block lists: where it came from"),context:l.array(Gf).optional().describe("what the test sets up outside its own process that another test could run into: data it creates in the app, a Skyramp mock, an env override; omit when none"),isolatedRun:de.optional().describe("for a test with a context: the command, from its checkout's root and without a shell, that runs only this file"),ci:OZ.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:bu.optional().describe(`for a file in ${qd}, added, updated or re-run: how the run executes only this file's tests, with the repository's own runner and the report it writes (junit, trx or jest-json to ${jn}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),cIe=e=>{if(!e||typeof e!="object")return e;let{test:t,...n}=e;return typeof t=="string"&&t.trim()&&n.tests===void 0?{...n,tests:[t]}:e},uIe=l.preprocess(cIe,l.object({description:de.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:l.nativeEnum(Eu).optional(),sourceFile:l.string().optional().describe("the app file at fault"),sourceLine:l.number().optional(),tests:l.array(de).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:l.string().optional().describe("the plan's finding id, when it is one"),requirements:l.array(de).optional().describe("the plan's requirement or clause ids it violates")})),d1e=l.object({schemaVersion:l.literal(1),tests:l.array(aIe),notWritten:l.array(l.object({case:de,reason:de,coveredBy:l.object({file:de.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:de.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)")}).optional().describe("only for an existing test triage independently linked to this exact case: its exact runner name (including class or describe titles). Testbot must finish re-running it with every result passed. If your own test covers the case, include the case in its covers and function cases instead")})).describe("every plan case no test covers, and why; also a maintenance clause that no function of its existing test asserts (it stays unproven)"),journeys:l.array(gw).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:l.object({command:l.string(),clean:l.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repo has one: the exact command, with its file paths (Testbot re-runs it)"),dependenciesAdded:l.array(l.object({package:de,manifest:de.describe("the manifest file's path relative to its checkout (e.g. package.json, pom.xml or pyproject.toml), and nothing else; name another checkout in repository"),repository:de.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:de.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).optional().describe("every package you added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own"),supportFiles:l.array(de).optional().describe("every file that is not a test you created or changed for your tests, which they need to compile or run (a helper module, page object, fixture, or a snapshot the runner wrote for them), named as you name a test; Testbot delivers only the tests you list and the files under supportFiles"),ciNotes:l.string().optional().describe("for each test whose ci says the repo's CI will not run it: the test, and the exact change the author must make for CI to run it"),importerRun:bu.optional().describe("when you changed a module other test files import: the repository's own command for running its test files (its runner, its config, its folder); Testbot loads the files that reach your change with it and reports each; omit when you changed none"),commit:l.object({message:de.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:de.describe("at most 72 characters, following the repository's PR-title checks"),prBody:de.describe("what the tests cover and what they found")}),report:l.object({summary:de.describe("1-2 sentences for the PR author: does the change do what it says? No count of tests: the report gives it"),issues:l.array(uIe).describe("every defect the tests found"),nextSteps:l.array(l.string()),noTests:l.array(l.object({repository:de,reason:de.max(4096)})).max(1e3).optional().describe("each Change Set repository where no test was added or updated: its owner/repo and why, naming the other repository when its tests went there"),notesDeviation:l.string().trim().max(4096).optional().describe("when the Target notes say where tests go and a test you added went elsewhere: where it went, and why; omit otherwise")})});var p1e={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};function uo(e){return e.rel!==""&&!e.rel.startsWith("..")&&!dn.isAbsolute(e.rel)}function bi(e,t,n=QZ){let s=t.map(d=>({name:ZR(d),root:dn.resolve(d.path),slug:d.slug})),r=new Map([...s].reverse().map(d=>[d.name,d])),i=t.length?[{real:QE(dn.resolve(e))},...s.map(d=>({...d,real:QE(d.root)}))].sort((d,p)=>p.real.length-d.real.length):[],o=new Map,a=d=>o.get(d)??o.set(d,new Set(n(d))).get(d),c=d=>{let p=dn.resolve(e,d),h=Pg.existsSync(p),g=C=>({root:e,rel:Yi(e,d),ambiguous:C,exists:h});if(!t.length)return g(!1);let m=!1,y=d.replace(/^\.\//,""),E=y.split("/")[0],v=r.get(E);if(v){let C=y.slice(E.length+1),I=Pg.existsSync(dn.join(v.root,C)),x=!Pg.existsSync(dn.join(e,E))||!h&&I;if(I&&h&&dn.join(v.root,C)!==p){let S=a(v.root).has(Yi(v.root,C)),W=a(e).has(Yi(e,d));S&&!W?x=!0:S===W&&(m=!0)}if(x)return{root:v.root,rel:Yi(v.root,C),repository:v.slug,dir:v.name,ambiguous:m,exists:I}}let b=dn.join(QE(dn.dirname(p)),dn.basename(p)),w=i.find(C=>uo({rel:dn.relative(C.real,b)}));return w?"slug"in w?{root:w.root,rel:dn.relative(w.real,b),repository:w.slug,dir:w.name,ambiguous:m,exists:h}:{...g(m),rel:dn.relative(w.real,b)}:g(m)},u=new Map;return d=>u.get(d)??u.set(d,c(d)).get(d)}var VZ=(s=>(s.Requirement="requirement",s.PrDescription="pr_description",s.Code="code",s))(VZ||{}),Bn=l.string().trim().min(1),dIe=l.object({expectation:Bn.max(300).describe("the behavior this assertion pins, in words"),source:l.nativeEnum(VZ),expected:Bn.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),pIe=l.object({file:Bn.describe("path of the NEW test file you wrote, relative to its repository"),repository:Bn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:Bn.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:bu.optional().describe(`for ${qd}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:l.array(Bn).length(1).describe("the ONE behavior id, or defect id, from the plan that the tests in names provide evidence for; a file covering several is listed once per id"),names:l.array(Bn).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:l.array(dIe).min(1)}),Ug=(n=>(n.Updated="updated",n.Deleted="deleted",n))(Ug||{}),jZ=300,fIe=l.object({file:Bn.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:Bn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:l.nativeEnum(Ug),staleBecause:l.object({requirement:Bn.describe("the requirement or clause id the change deliberately alters"),line:Bn.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated: why it is out of date"),reason:l.preprocess(e=>typeof e=="string"?e.trim().slice(0,jZ):e,Bn.max(jZ)).describe("what the change deliberately altered that made the test wrong")}),pD=l.object({schemaVersion:l.literal(1),tests:l.array(pIe),maintained:l.array(fIe).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:l.array(l.object({id:Bn,reason:Bn.max(300)})).optional().describe("defects the plan found that no in-process test can reach, each with why; omit when every defect has a test"),journeys:l.array(gw).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:l.array(l.object({journey:Bn,missing:Bn.transform(e=>e.length>300?`${e.slice(0,299)}\u2026`:e)})).optional().describe("a planned journey no in-process test can walk here, with what it needs that is missing; it is reported as not covered"),lint:l.object({command:l.string(),clean:l.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repository has one you can run; omit otherwise"),commitMessage:Bn.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var Fg="generate-unit.json";function mIe(e){let{value:t,error:n}=Jt(e);if(n)return{errors:[n]};let{value:s,errors:r}=Un(pD,t);return r.length?{errors:r}:{output:s,errors:[]}}function AIe(e){return mIe(e.stdout)}var oVe=yr("generate-unit-schema",(e,t)=>AIe(t));var bw=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,aVe=[[/\b(localhost|127\.0\.0\.1|0\.0\.0\.0)\b/,"a local server address"],[/^\s*(import|from)\s+(requests|aiohttp|urllib3|websockets?)\b/m,"an HTTP client"],[/^\s*(?:import|from)\s+(?:urllib\.request|http\.client|http\.server|socket|ssl|ftplib|smtplib|telnetlib)\b|^\s*from\s+urllib\s+import\b[^\n]*\brequest\b|\burlopen\s*\(/m,"a standard-library network client"],[/\bfrom\s+["'](axios|node-fetch|undici|ws)["']|require\(\s*["'](axios|node-fetch|undici|ws)["']\s*\)/,"an HTTP client"],[new RegExp(String.raw`\bfrom\s+["']${bw}["']|\bimport\s+["']${bw}["']|require\(\s*["']${bw}["']\s*\)|\bimport\(\s*["']${bw}["']\s*\)`),"Node's network modules"],[/\bfetch\s*\(|\bnew\s+(XMLHttpRequest|WebSocket)\b/,"a network call (fetch, XMLHttpRequest, WebSocket)"],[/\bskyramp\b/i,"the Skyramp runtime (a runtime mock or client)"]];var BVe=new Set(["targeted_unit","existing_evidence_sufficient"]);var Sa=Z(require("path"));var LVe={"application/pdf":"PDF","text/csv":"CSV","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"DOCX","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"XLSX"};var fD=e=>new Map((e??[]).flatMap(t=>t.file?[[Ff(t.key),t.file.name]]:[])),EIe=10*1024*1024,vIe=e=>e?.mediaType==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e?.mediaType==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",WZ=(e,t)=>Sa.join(Sa.dirname(e),`${Sa.basename(e,Sa.extname(e))}${t}`),bIe=e=>WZ(e,".extracted.txt");var wIe=e=>WZ(e,".quotes.txt");function YZ(e){return vIe(e.file)?bIe(e.path):e.file?.mediaType==="application/pdf"?wIe(e.path):e.path}var RIe="triage.json";var jGe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),VGe={existing_evidence:"existing evidence",unaffected:"showing the change cannot reach it",existing_unit:"running the existing unit tests",new_unit:"a new unit test",runtime:"tests against the running application"};function BIe(e){let{value:t,error:n}=Jt(e);if(n)return{errors:[n]};let{value:s,errors:r}=Un($g,t);return r.length?{errors:r}:{triage:s,errors:[]}}function xIe(e){return BIe(e.stdout)}var GGe=yr("triage-schema",(e,t)=>xIe(t));function QIe(e){let t=e.inputs?.pipeline;return t?e.state.stages[t==="two-step"?"plan":"triage"]:e.state.stages.triage??e.state.stages.plan}function hD(e){if(QIe(e)?.status==="passed")return Wi(KZ.join(e.outputsDir,RIe))}function gD(e){return Y4(z_(e.inputs,Ce(e,`${zd}.json`),hD(e)?.sutRequired))}var zGe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);_n();_n();function XZ(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
|
|
185
185
|
${e}`:e}var tK=600,Iw=300;function eK(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}function TIe(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),s=[eK(t?.stderr),eK(t?.stdout)].filter(Boolean);return s.length?[n.split(`
|
|
186
186
|
`)[0],...s].join(`
|
|
187
187
|
`):n}function nK(e,t,n,s=0){let r=e.join(t);if(r.length<=n)return r;let[i="",...o]=e;if(!o.length)return`${i.slice(0,n-1)}\u2026`;let a=i.length<=s?i:i.slice(0,Math.floor(n/3)),c=n-a.length-t.length-1;return`${a}${t}\u2026${o.join(t).slice(-c)}`}function rK(e,t){return nK(e.trim().split(`
|