@skyramp/testbot-core 0.13.0-v3.338 → 0.13.0-v3.341

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.
@@ -47,13 +47,13 @@ ${u}`,this.dataLineCount++;return}if(Mf(t,r,c5)){A5(t,s)&&(this.setEventFieldSiz
47
47
 
48
48
  Error Code : ${a.statusCode}
49
49
 
50
- Error Message: ${a.message}`)})).result)===null||n===void 0?void 0:n.value;if(!s)throw new Error("Response json body do not have ID Token field");return s})}static getIDToken(t){return LP(this,void 0,void 0,function*(){try{let n=e.getIDTokenUrl();if(t){let r=encodeURIComponent(t);n=`${n}&audience=${r}`}jP(`ID token url is ${n}`);let i=yield e.getCall(n);return Jl(i),i}catch(n){throw new Error(`Error message: ${n.message}`)}})}}});var VP,Hl,ZC,c7,u7,l7,GP,KC,hye,XC=cn(()=>{VP=require("os"),Hl=require("fs"),ZC=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return o(r,"adopt"),new(n||(n=Promise))(function(s,a){function c(A){try{l(i.next(A))}catch(p){a(p)}}o(c,"fulfilled");function u(A){try{l(i.throw(A))}catch(p){a(p)}}o(u,"rejected");function l(A){A.done?s(A.value):r(A.value).then(c,u)}o(l,"step"),l((i=i.apply(e,t||[])).next())})},{access:c7,appendFile:u7,writeFile:l7}=Hl.promises,GP="GITHUB_STEP_SUMMARY",KC=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return ZC(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[GP];if(!t)throw new Error(`Unable to find environment variable for $${GP}. Check if your runtime environment supports job summaries.`);try{yield c7(t,Hl.constants.R_OK|Hl.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,i={}){let r=Object.entries(i).map(([s,a])=>` ${s}="${a}"`).join("");return n?`<${t}${r}>${n}</${t}>`:`<${t}${r}>`}write(t){return ZC(this,void 0,void 0,function*(){let n=!!t?.overwrite,i=yield this.filePath();return yield(n?l7:u7)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return ZC(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(VP.EOL)}addCodeBlock(t,n){let i=Object.assign({},n&&{lang:n}),r=this.wrap("pre",this.wrap("code",t),i);return this.addRaw(r).addEOL()}addList(t,n=!1){let i=n?"ol":"ul",r=t.map(a=>this.wrap("li",a)).join(""),s=this.wrap(i,r);return this.addRaw(s).addEOL()}addTable(t){let n=t.map(r=>{let s=r.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:l,rowspan:A}=a,p=c?"th":"td",g=Object.assign(Object.assign({},l&&{colspan:l}),A&&{rowspan:A});return this.wrap(p,u,g)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",n);return this.addRaw(i).addEOL()}addDetails(t,n){let i=this.wrap("details",this.wrap("summary",t)+n);return this.addRaw(i).addEOL()}addImage(t,n,i){let{width:r,height:s}=i||{},a=Object.assign(Object.assign({},r&&{width:r}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:t,alt:n},a));return this.addRaw(c).addEOL()}addHeading(t,n){let i=`h${n}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(r,t);return this.addRaw(s).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 i=Object.assign({},n&&{cite:n}),r=this.wrap("blockquote",t,i);return this.addRaw(r).addEOL()}addLink(t,n){let i=this.wrap("a",t,{href:n});return this.addRaw(i).addEOL()}},hye=new KC});var zP=cn(()=>{});var qf,d7,A7,p7,f7,Cye,g7,h7,m7,vye,y7,E7,I7,C7,bye,ev=cn(()=>{qf=_e(require("fs"),1),{chmod:d7,copyFile:A7,lstat:p7,mkdir:f7,open:Cye,readdir:g7,rename:h7,rm:m7,rmdir:vye,stat:y7,symlink:E7,unlink:I7}=qf.promises,C7=process.platform==="win32",bye=qf.constants.O_RDONLY});var JP=cn(()=>{ev()});var xye,HP=cn(()=>{JP();ev();xye=process.platform==="win32"});var tv=cn(()=>{HP()});var nv,Uye,Fye,WP=cn(()=>{nv=_e(require("os"),1);tv();Uye=nv.default.platform(),Fye=nv.default.arch()});function Jl(e){yy("add-mask",{},e)}function jP(e){yy("debug",{},e)}function KP(e){return k7(this,void 0,void 0,function*(){return yield zf.getIDToken(e)})}var k7,ZP,Ic=cn(()=>{r$();i$();VA();OP();XC();XC();zP();WP();k7=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return o(r,"adopt"),new(n||(n=Promise))(function(s,a){function c(A){try{l(i.next(A))}catch(p){a(p)}}o(c,"fulfilled");function u(A){try{l(i.throw(A))}catch(p){a(p)}}o(u,"rejected");function l(A){A.done?s(A.value):r(A.value).then(c,u)}o(l,"step"),l((i=i.apply(e,t||[])).next())})};(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(ZP||(ZP={}));o(Jl,"setSecret");o(jP,"debug");o(KP,"getIDToken")});var $u=k((j_e,dV)=>{"use strict";var xue="2.0.0",$ue=Number.MAX_SAFE_INTEGER||9007199254740991,Tue=16,Due=250,_ue=["major","premajor","minor","preminor","patch","prepatch","prerelease"];dV.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Tue,MAX_SAFE_BUILD_LENGTH:Due,MAX_SAFE_INTEGER:$ue,RELEASE_TYPES:_ue,SEMVER_SPEC_VERSION:xue,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var TA=k((G_e,AV)=>{"use strict";var Nue=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};AV.exports=Nue});var Tu=k((Ai,pV)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Ax,MAX_SAFE_BUILD_LENGTH:Uue,MAX_LENGTH:Fue}=$u(),Pue=TA();Ai=pV.exports={};var Mue=Ai.re=[],Lue=Ai.safeRe=[],te=Ai.src=[],Oue=Ai.safeSrc=[],ne=Ai.t={},jue=0,px="[a-zA-Z0-9-]",Gue=[["\\s",1],["\\d",Fue],[px,Uue]],Vue=o(e=>{for(let[t,n]of Gue)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},"makeSafeRegex"),ke=o((e,t,n)=>{let i=Vue(t),r=jue++;Pue(e,r,t),ne[e]=r,te[r]=t,Oue[r]=i,Mue[r]=new RegExp(t,n?"g":void 0),Lue[r]=new RegExp(i,n?"g":void 0)},"createToken");ke("NUMERICIDENTIFIER","0|[1-9]\\d*");ke("NUMERICIDENTIFIERLOOSE","\\d+");ke("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${px}*`);ke("MAINVERSION",`(${te[ne.NUMERICIDENTIFIER]})\\.(${te[ne.NUMERICIDENTIFIER]})\\.(${te[ne.NUMERICIDENTIFIER]})`);ke("MAINVERSIONLOOSE",`(${te[ne.NUMERICIDENTIFIERLOOSE]})\\.(${te[ne.NUMERICIDENTIFIERLOOSE]})\\.(${te[ne.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASEIDENTIFIER",`(?:${te[ne.NONNUMERICIDENTIFIER]}|${te[ne.NUMERICIDENTIFIER]})`);ke("PRERELEASEIDENTIFIERLOOSE",`(?:${te[ne.NONNUMERICIDENTIFIER]}|${te[ne.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASE",`(?:-(${te[ne.PRERELEASEIDENTIFIER]}(?:\\.${te[ne.PRERELEASEIDENTIFIER]})*))`);ke("PRERELEASELOOSE",`(?:-?(${te[ne.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${te[ne.PRERELEASEIDENTIFIERLOOSE]})*))`);ke("BUILDIDENTIFIER",`${px}+`);ke("BUILD",`(?:\\+(${te[ne.BUILDIDENTIFIER]}(?:\\.${te[ne.BUILDIDENTIFIER]})*))`);ke("FULLPLAIN",`v?${te[ne.MAINVERSION]}${te[ne.PRERELEASE]}?${te[ne.BUILD]}?`);ke("FULL",`^${te[ne.FULLPLAIN]}$`);ke("LOOSEPLAIN",`[v=\\s]*${te[ne.MAINVERSIONLOOSE]}${te[ne.PRERELEASELOOSE]}?${te[ne.BUILD]}?`);ke("LOOSE",`^${te[ne.LOOSEPLAIN]}$`);ke("GTLT","((?:<|>)?=?)");ke("XRANGEIDENTIFIERLOOSE",`${te[ne.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ke("XRANGEIDENTIFIER",`${te[ne.NUMERICIDENTIFIER]}|x|X|\\*`);ke("XRANGEPLAIN",`[v=\\s]*(${te[ne.XRANGEIDENTIFIER]})(?:\\.(${te[ne.XRANGEIDENTIFIER]})(?:\\.(${te[ne.XRANGEIDENTIFIER]})(?:${te[ne.PRERELEASE]})?${te[ne.BUILD]}?)?)?`);ke("XRANGEPLAINLOOSE",`[v=\\s]*(${te[ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[ne.XRANGEIDENTIFIERLOOSE]})(?:${te[ne.PRERELEASELOOSE]})?${te[ne.BUILD]}?)?)?`);ke("XRANGE",`^${te[ne.GTLT]}\\s*${te[ne.XRANGEPLAIN]}$`);ke("XRANGELOOSE",`^${te[ne.GTLT]}\\s*${te[ne.XRANGEPLAINLOOSE]}$`);ke("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Ax}})(?:\\.(\\d{1,${Ax}}))?(?:\\.(\\d{1,${Ax}}))?`);ke("COERCE",`${te[ne.COERCEPLAIN]}(?:$|[^\\d])`);ke("COERCEFULL",te[ne.COERCEPLAIN]+`(?:${te[ne.PRERELEASE]})?(?:${te[ne.BUILD]})?(?:$|[^\\d])`);ke("COERCERTL",te[ne.COERCE],!0);ke("COERCERTLFULL",te[ne.COERCEFULL],!0);ke("LONETILDE","(?:~>?)");ke("TILDETRIM",`(\\s*)${te[ne.LONETILDE]}\\s+`,!0);Ai.tildeTrimReplace="$1~";ke("TILDE",`^${te[ne.LONETILDE]}${te[ne.XRANGEPLAIN]}$`);ke("TILDELOOSE",`^${te[ne.LONETILDE]}${te[ne.XRANGEPLAINLOOSE]}$`);ke("LONECARET","(?:\\^)");ke("CARETTRIM",`(\\s*)${te[ne.LONECARET]}\\s+`,!0);Ai.caretTrimReplace="$1^";ke("CARET",`^${te[ne.LONECARET]}${te[ne.XRANGEPLAIN]}$`);ke("CARETLOOSE",`^${te[ne.LONECARET]}${te[ne.XRANGEPLAINLOOSE]}$`);ke("COMPARATORLOOSE",`^${te[ne.GTLT]}\\s*(${te[ne.LOOSEPLAIN]})$|^$`);ke("COMPARATOR",`^${te[ne.GTLT]}\\s*(${te[ne.FULLPLAIN]})$|^$`);ke("COMPARATORTRIM",`(\\s*)${te[ne.GTLT]}\\s*(${te[ne.LOOSEPLAIN]}|${te[ne.XRANGEPLAIN]})`,!0);Ai.comparatorTrimReplace="$1$2$3";ke("HYPHENRANGE",`^\\s*(${te[ne.XRANGEPLAIN]})\\s+-\\s+(${te[ne.XRANGEPLAIN]})\\s*$`);ke("HYPHENRANGELOOSE",`^\\s*(${te[ne.XRANGEPLAINLOOSE]})\\s+-\\s+(${te[ne.XRANGEPLAINLOOSE]})\\s*$`);ke("STAR","(<|>)?=?\\s*\\*");ke("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ke("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var qm=k((z_e,fV)=>{"use strict";var zue=Object.freeze({loose:!0}),que=Object.freeze({}),Jue=o(e=>e?typeof e!="object"?zue:e:que,"parseOptions");fV.exports=Jue});var fx=k((J_e,mV)=>{"use strict";var gV=/^[0-9]+$/,hV=o((e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=gV.test(e),i=gV.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},"compareIdentifiers"),Hue=o((e,t)=>hV(t,e),"rcompareIdentifiers");mV.exports={compareIdentifiers:hV,rcompareIdentifiers:Hue}});var Jt=k((Y_e,EV)=>{"use strict";var Jm=TA(),{MAX_LENGTH:yV,MAX_SAFE_INTEGER:Hm}=$u(),{safeRe:Ym,t:Wm}=Tu(),Yue=qm(),{compareIdentifiers:gx}=fx(),Wue=o((e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let i=0;i<n.length;i++)if(gx(e[i],n[i])!==0)return!1;return!0},"isPrereleaseIdentifier"),hx=class e{static{o(this,"SemVer")}constructor(t,n){if(n=Yue(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>yV)throw new TypeError(`version is longer than ${yV} characters`);Jm("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=t.trim().match(n.loose?Ym[Wm.LOOSE]:Ym[Wm.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Hm||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Hm||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Hm||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let s=+r;if(s>=0&&s<Hm)return s}return r}):this.prerelease=[],this.build=i[5]?i[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(Jm("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 i=this.prerelease[n],r=t.prerelease[n];if(Jm("prerelease compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return gx(i,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let i=this.build[n],r=t.build[n];if(Jm("build compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return gx(i,r)}while(++n)}inc(t,n,i){if(t.startsWith("pre")){if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?Ym[Wm.PRERELEASELOOSE]:Ym[Wm.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,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);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(i)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let s=[n,r];if(i===!1&&(s=[n]),Wue(this.prerelease,n)){let a=this.prerelease[n.split(".").length];isNaN(a)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};EV.exports=hx});var Js=k((Z_e,CV)=>{"use strict";var IV=Jt(),Zue=o((e,t,n=!1)=>{if(e instanceof IV)return e;try{return new IV(e,t)}catch(i){if(!n)return null;throw i}},"parse");CV.exports=Zue});var bV=k((X_e,vV)=>{"use strict";var Kue=Js(),Xue=o((e,t)=>{let n=Kue(e,t);return n?n.version:null},"valid");vV.exports=Xue});var BV=k((tNe,wV)=>{"use strict";var ele=Js(),tle=o((e,t)=>{let n=ele(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},"clean");wV.exports=tle});var SV=k((rNe,kV)=>{"use strict";var QV=Jt(),nle=o((e,t,n,i,r)=>{typeof n=="string"&&(r=i,i=n,n=void 0);try{return new QV(e instanceof QV?e.version:e,n).inc(t,i,r).version}catch{return null}},"inc");kV.exports=nle});var $V=k((sNe,xV)=>{"use strict";var RV=Js(),rle=o((e,t)=>{let n=RV(e,null,!0),i=RV(t,null,!0),r=n.compare(i);if(r===0)return null;let s=r>0,a=s?n:i,c=s?i:n,u=!!a.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let A=u?"pre":"";return n.major!==i.major?A+"major":n.minor!==i.minor?A+"minor":n.patch!==i.patch?A+"patch":"prerelease"},"diff");xV.exports=rle});var DV=k((aNe,TV)=>{"use strict";var ile=Jt(),sle=o((e,t)=>new ile(e,t).major,"major");TV.exports=sle});var NV=k((uNe,_V)=>{"use strict";var ole=Jt(),ale=o((e,t)=>new ole(e,t).minor,"minor");_V.exports=ale});var FV=k((dNe,UV)=>{"use strict";var cle=Jt(),ule=o((e,t)=>new cle(e,t).patch,"patch");UV.exports=ule});var MV=k((pNe,PV)=>{"use strict";var lle=Js(),dle=o((e,t)=>{let n=lle(e,t);return n&&n.prerelease.length?n.prerelease:null},"prerelease");PV.exports=dle});var vr=k((gNe,OV)=>{"use strict";var LV=Jt(),Ale=o((e,t,n)=>new LV(e,n).compare(new LV(t,n)),"compare");OV.exports=Ale});var GV=k((mNe,jV)=>{"use strict";var ple=vr(),fle=o((e,t,n)=>ple(t,e,n),"rcompare");jV.exports=fle});var zV=k((ENe,VV)=>{"use strict";var gle=vr(),hle=o((e,t)=>gle(e,t,!0),"compareLoose");VV.exports=hle});var Zm=k((CNe,JV)=>{"use strict";var qV=Jt(),mle=o((e,t,n)=>{let i=new qV(e,n),r=new qV(t,n);return i.compare(r)||i.compareBuild(r)},"compareBuild");JV.exports=mle});var YV=k((bNe,HV)=>{"use strict";var yle=Zm(),Ele=o((e,t)=>e.sort((n,i)=>yle(n,i,t)),"sort");HV.exports=Ele});var ZV=k((BNe,WV)=>{"use strict";var Ile=Zm(),Cle=o((e,t)=>e.sort((n,i)=>Ile(i,n,t)),"rsort");WV.exports=Cle});var DA=k((kNe,KV)=>{"use strict";var vle=vr(),ble=o((e,t,n)=>vle(e,t,n)>0,"gt");KV.exports=ble});var Km=k((RNe,XV)=>{"use strict";var wle=vr(),Ble=o((e,t,n)=>wle(e,t,n)<0,"lt");XV.exports=Ble});var mx=k(($Ne,ez)=>{"use strict";var Qle=vr(),kle=o((e,t,n)=>Qle(e,t,n)===0,"eq");ez.exports=kle});var yx=k((DNe,tz)=>{"use strict";var Sle=vr(),Rle=o((e,t,n)=>Sle(e,t,n)!==0,"neq");tz.exports=Rle});var Xm=k((NNe,nz)=>{"use strict";var xle=vr(),$le=o((e,t,n)=>xle(e,t,n)>=0,"gte");nz.exports=$le});var ey=k((FNe,rz)=>{"use strict";var Tle=vr(),Dle=o((e,t,n)=>Tle(e,t,n)<=0,"lte");rz.exports=Dle});var Ex=k((MNe,iz)=>{"use strict";var _le=mx(),Nle=yx(),Ule=DA(),Fle=Xm(),Ple=Km(),Mle=ey(),Lle=o((e,t,n,i)=>{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 _le(e,n,i);case"!=":return Nle(e,n,i);case">":return Ule(e,n,i);case">=":return Fle(e,n,i);case"<":return Ple(e,n,i);case"<=":return Mle(e,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}},"cmp");iz.exports=Lle});var oz=k((ONe,sz)=>{"use strict";var Ole=Jt(),jle=Js(),{safeRe:ty,t:ny}=Tu(),Gle=o((e,t)=>{if(e instanceof Ole)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?ty[ny.COERCEFULL]:ty[ny.COERCE]);else{let u=t.includePrerelease?ty[ny.COERCERTLFULL]:ty[ny.COERCERTL],l;for(;(l=u.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(n===null)return null;let i=n[2],r=n[3]||"0",s=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",c=t.includePrerelease&&n[6]?`+${n[6]}`:"";return jle(`${i}.${r}.${s}${a}${c}`,t)},"coerce");sz.exports=Gle});var cz=k((GNe,az)=>{"use strict";var Vle=Js(),zle=$u(),qle=Jt(),Jle=o((e,t,n)=>{if(!zle.RELEASE_TYPES.includes(t))return null;let i=Hle(e,n);return i&&Yle(i,t)},"truncate"),Hle=o((e,t)=>{let n=e instanceof qle?e.version:e;return Vle(n,t)},"cloneInputVersion"),Yle=o((e,t)=>{if(Wle(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()},"doTruncation"),Wle=o(e=>e.startsWith("pre"),"isPrerelease");az.exports=Jle});var lz=k((zNe,uz)=>{"use strict";var Ix=class{static{o(this,"LRUCache")}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}};uz.exports=Ix});var br=k((JNe,fz)=>{"use strict";var Zle=/\s+/g,Cx=class e{static{o(this,"Range")}constructor(t,n){if(n=Xle(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof vx)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(Zle," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!Az(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&cde(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 i=0;i<n.length;i++)i>0&&(this.formatted+=" "),this.formatted+=n[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(ade,"");let i=((this.options.includePrerelease&&sde)|(this.options.loose&&ode))+":"+t,r=dz.get(i);if(r)return r;let s=this.options.loose,a=s?Cn[Ht.HYPHENRANGELOOSE]:Cn[Ht.HYPHENRANGE];t=t.replace(a,Ede(this.options.includePrerelease)),pt("hyphen replace",t),t=t.replace(Cn[Ht.COMPARATORTRIM],nde),pt("comparator trim",t),t=t.replace(Cn[Ht.TILDETRIM],rde),pt("tilde trim",t),t=t.replace(Cn[Ht.CARETTRIM],ide),pt("caret trim",t);let c=t.split(" ").map(p=>ude(p,this.options)).join(" ").split(/\s+/).map(p=>yde(p,this.options));s&&(c=c.filter(p=>(pt("loose invalid filter",p,this.options),!!p.match(Cn[Ht.COMPARATORLOOSE])))),pt("range list",c);let u=new Map,l=c.map(p=>new vx(p,this.options));for(let p of l){if(Az(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let A=[...u.values()];return dz.set(i,A),A}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(i=>pz(i,n)&&t.set.some(r=>pz(r,n)&&i.every(s=>r.every(a=>s.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new ede(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Ide(this.set[n],t,this.options))return!0;return!1}};fz.exports=Cx;var Kle=lz(),dz=new Kle,Xle=qm(),vx=_A(),pt=TA(),ede=Jt(),{safeRe:Cn,src:tde,t:Ht,comparatorTrimReplace:nde,tildeTrimReplace:rde,caretTrimReplace:ide}=Tu(),{FLAG_INCLUDE_PRERELEASE:sde,FLAG_LOOSE:ode}=$u(),ade=new RegExp(tde[Ht.BUILD],"g"),Az=o(e=>e.value==="<0.0.0-0","isNullSet"),cde=o(e=>e.value==="","isAny"),pz=o((e,t)=>{let n=!0,i=e.slice(),r=i.pop();for(;n&&i.length;)n=i.every(s=>r.intersects(s,t)),r=i.pop();return n},"isSatisfiable"),ude=o((e,t)=>(e=e.replace(Cn[Ht.BUILD],""),pt("comp",e,t),e=pde(e,t),pt("caret",e),e=dde(e,t),pt("tildes",e),e=gde(e,t),pt("xrange",e),e=mde(e,t),pt("stars",e),e),"parseComparator"),_t=o(e=>!e||e.toLowerCase()==="x"||e==="*","isX"),lde=o((e,t,n)=>_t(e)&&!_t(t)||_t(t)&&n&&!_t(n),"invalidXRangeOrder"),dde=o((e,t)=>e.trim().split(/\s+/).map(n=>Ade(n,t)).join(" "),"replaceTildes"),Ade=o((e,t)=>{let n=t.loose?Cn[Ht.TILDELOOSE]:Cn[Ht.TILDE],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,a,c,u)=>{pt("tilde",e,r,s,a,c,u);let l;return _t(s)?l="":_t(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:_t(c)?l=`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:u?(pt("replaceTilde pr",u),l=`>=${s}.${a}.${c}-${u} <${s}.${+a+1}.0-0`):l=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`,pt("tilde return",l),l})},"replaceTilde"),pde=o((e,t)=>e.trim().split(/\s+/).map(n=>fde(n,t)).join(" "),"replaceCarets"),fde=o((e,t)=>{pt("caret",e,t);let n=t.loose?Cn[Ht.CARETLOOSE]:Cn[Ht.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,a,c,u)=>{pt("caret",e,r,s,a,c,u);let l;return _t(s)?l="":_t(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:_t(c)?s==="0"?l=`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:u?(pt("replaceCaret pr",u),s==="0"?a==="0"?l=`>=${s}.${a}.${c}-${u} <${s}.${a}.${+c+1}-0`:l=`>=${s}.${a}.${c}-${u} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${c}-${u} <${+s+1}.0.0-0`):(pt("no pr"),s==="0"?a==="0"?l=`>=${s}.${a}.${c} <${s}.${a}.${+c+1}-0`:l=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),pt("caret return",l),l})},"replaceCaret"),gde=o((e,t)=>(pt("replaceXRanges",e,t),e.split(/\s+/).map(n=>hde(n,t)).join(" ")),"replaceXRanges"),hde=o((e,t)=>{e=e.trim();let n=t.loose?Cn[Ht.XRANGELOOSE]:Cn[Ht.XRANGE];return e.replace(n,(i,r,s,a,c,u)=>{if(pt("xRange",e,i,r,s,a,c,u),lde(s,a,c))return e;let l=_t(s),A=l||_t(a),p=A||_t(c),g=p;return r==="="&&g&&(r=""),u=t.includePrerelease?"-0":"",l?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&g?(A&&(a=0),c=0,r===">"?(r=">=",A?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):r==="<="&&(r="<",A?s=+s+1:a=+a+1),r==="<"&&(u="-0"),i=`${r+s}.${a}.${c}${u}`):A?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),pt("xRange return",i),i})},"replaceXRange"),mde=o((e,t)=>(pt("replaceStars",e,t),e.trim().replace(Cn[Ht.STAR],"")),"replaceStars"),yde=o((e,t)=>(pt("replaceGTE0",e,t),e.trim().replace(Cn[t.includePrerelease?Ht.GTE0PRE:Ht.GTE0],"")),"replaceGTE0"),Ede=o(e=>(t,n,i,r,s,a,c,u,l,A,p,g)=>(_t(i)?n="":_t(r)?n=`>=${i}.0.0${e?"-0":""}`:_t(s)?n=`>=${i}.${r}.0${e?"-0":""}`:a?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,_t(l)?u="":_t(A)?u=`<${+l+1}.0.0-0`:_t(p)?u=`<${l}.${+A+1}.0-0`:g?u=`<=${l}.${A}.${p}-${g}`:e?u=`<${l}.${A}.${+p+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),"hyphenReplace"),Ide=o((e,t,n)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let i=0;i<e.length;i++)if(pt(e[i].semver),e[i].semver!==vx.ANY&&e[i].semver.prerelease.length>0){let r=e[i].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},"testSet")});var _A=k((YNe,Iz)=>{"use strict";var NA=Symbol("SemVer ANY"),Bx=class e{static{o(this,"Comparator")}static get ANY(){return NA}constructor(t,n){if(n=gz(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),wx("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===NA?this.value="":this.value=this.operator+this.semver.version,wx("comp",this)}parse(t){let n=this.options.loose?hz[mz.COMPARATORLOOSE]:hz[mz.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new yz(i[2],this.options.loose):this.semver=NA}toString(){return this.value}test(t){if(wx("Comparator.test",t,this.options.loose),this.semver===NA||t===NA)return!0;if(typeof t=="string")try{t=new yz(t,this.options)}catch{return!1}return bx(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 Ez(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new Ez(this.value,n).test(t.semver):(n=gz(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("=")||bx(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||bx(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};Iz.exports=Bx;var gz=qm(),{safeRe:hz,t:mz}=Tu(),bx=Ex(),wx=TA(),yz=Jt(),Ez=br()});var UA=k((ZNe,Cz)=>{"use strict";var Cde=br(),vde=o((e,t,n)=>{try{t=new Cde(t,n)}catch{return!1}return t.test(e)},"satisfies");Cz.exports=vde});var bz=k((XNe,vz)=>{"use strict";var bde=br(),wde=o((e,t)=>new bde(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" ")),"toComparators");vz.exports=wde});var Bz=k((tUe,wz)=>{"use strict";var Bde=Jt(),Qde=br(),kde=o((e,t,n)=>{let i=null,r=null,s=null;try{s=new Qde(t,n)}catch{return null}return e.forEach(a=>{s.test(a)&&(!i||r.compare(a)===-1)&&(i=a,r=new Bde(i,n))}),i},"maxSatisfying");wz.exports=kde});var kz=k((rUe,Qz)=>{"use strict";var Sde=Jt(),Rde=br(),xde=o((e,t,n)=>{let i=null,r=null,s=null;try{s=new Rde(t,n)}catch{return null}return e.forEach(a=>{s.test(a)&&(!i||r.compare(a)===1)&&(i=a,r=new Sde(i,n))}),i},"minSatisfying");Qz.exports=xde});var xz=k((sUe,Rz)=>{"use strict";var Qx=Jt(),$de=br(),Sz=DA(),Tde=o((e,t)=>{e=new $de(e,t);let n=new Qx("0.0.0");if(e.test(n)||(n=new Qx("0.0.0-0"),e.test(n)))return n;n=null;for(let i=0;i<e.set.length;++i){let r=e.set[i],s=null;r.forEach(a=>{let c=new Qx(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Sz(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!n||Sz(n,s))&&(n=s)}return n&&e.test(n)?n:null},"minVersion");Rz.exports=Tde});var Tz=k((aUe,$z)=>{"use strict";var Dde=br(),_de=o((e,t)=>{try{return new Dde(e,t).range||"*"}catch{return null}},"validRange");$z.exports=_de});var ry=k((uUe,Uz)=>{"use strict";var Nde=Jt(),Nz=_A(),{ANY:Ude}=Nz,Fde=br(),Pde=UA(),Dz=DA(),_z=Km(),Mde=ey(),Lde=Xm(),Ode=o((e,t,n,i)=>{e=new Nde(e,i),t=new Fde(t,i);let r,s,a,c,u;switch(n){case">":r=Dz,s=Mde,a=_z,c=">",u=">=";break;case"<":r=_z,s=Lde,a=Dz,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Pde(e,t,i))return!1;for(let l=0;l<t.set.length;++l){let A=t.set[l],p=null,g=null;if(A.forEach(h=>{h.semver===Ude&&(h=new Nz(">=0.0.0")),p=p||h,g=g||h,r(h.semver,p.semver,i)?p=h:a(h.semver,g.semver,i)&&(g=h)}),p.operator===c||p.operator===u||(!g.operator||g.operator===c)&&s(e,g.semver))return!1;if(g.operator===u&&a(e,g.semver))return!1}return!0},"outside");Uz.exports=Ode});var Pz=k((dUe,Fz)=>{"use strict";var jde=ry(),Gde=o((e,t,n)=>jde(e,t,">",n),"gtr");Fz.exports=Gde});var Lz=k((pUe,Mz)=>{"use strict";var Vde=ry(),zde=o((e,t,n)=>Vde(e,t,"<",n),"ltr");Mz.exports=zde});var Gz=k((gUe,jz)=>{"use strict";var Oz=br(),qde=o((e,t,n)=>(e=new Oz(e,n),t=new Oz(t,n),e.intersects(t,n)),"intersects");jz.exports=qde});var zz=k((mUe,Vz)=>{"use strict";var Jde=UA(),Hde=vr();Vz.exports=(e,t,n)=>{let i=[],r=null,s=null,a=e.sort((A,p)=>Hde(A,p,n));for(let A of a)Jde(A,t,n)?(s=A,r||(r=A)):(s&&i.push([r,s]),s=null,r=null);r&&i.push([r,null]);let c=[];for(let[A,p]of i)A===p?c.push(A):!p&&A===a[0]?c.push("*"):p?A===a[0]?c.push(`<=${p}`):c.push(`${A} - ${p}`):c.push(`>=${A}`);let u=c.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return u.length<l.length?u:t}});var Zz=k((yUe,Wz)=>{"use strict";var qz=br(),Rx=_A(),{ANY:kx}=Rx,Sx=UA(),xx=vr(),Yde=o((e,t,n={})=>{if(e===t)return!0;e=new qz(e,n),t=new qz(t,n);let i=!1;e:for(let r of e.set){for(let s of t.set){let a=Zde(r,s,n);if(i=i||a!==null,a)continue e}if(i)return!1}return!0},"subset"),Wde=[new Rx(">=0.0.0-0")],Jz=[new Rx(">=0.0.0")],Zde=o((e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===kx){if(t.length===1&&t[0].semver===kx)return!0;n.includePrerelease?e=Wde:e=Jz}if(t.length===1&&t[0].semver===kx){if(n.includePrerelease)return!0;t=Jz}let i=new Set,r,s;for(let h of e)h.operator===">"||h.operator===">="?r=Hz(r,h,n):h.operator==="<"||h.operator==="<="?s=Yz(s,h,n):i.add(h.semver);if(i.size>1)return null;let a;if(r&&s){if(a=xx(r.semver,s.semver,n),a>0)return null;if(a===0&&(r.operator!==">="||s.operator!=="<="))return null}for(let h of i){if(r&&!Sx(h,String(r),n)||s&&!Sx(h,String(s),n))return null;for(let y of t)if(!Sx(h,String(y),n))return!1;return!0}let c,u,l,A,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,g=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let h of t){if(A=A||h.operator===">"||h.operator===">=",l=l||h.operator==="<"||h.operator==="<=",r){if(g&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===g.major&&h.semver.minor===g.minor&&h.semver.patch===g.patch&&(g=!1),h.operator===">"||h.operator===">="){if(c=Hz(r,h,n),c===h&&c!==r)return!1}else if(r.operator===">="&&!h.test(r.semver))return!1}if(s){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator==="<"||h.operator==="<="){if(u=Yz(s,h,n),u===h&&u!==s)return!1}else if(s.operator==="<="&&!h.test(s.semver))return!1}if(!h.operator&&(s||r)&&a!==0)return!1}return!(r&&l&&!s&&a!==0||s&&A&&!r&&a!==0||g||p)},"simpleSubset"),Hz=o((e,t,n)=>{if(!e)return t;let i=xx(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},"higherGT"),Yz=o((e,t,n)=>{if(!e)return t;let i=xx(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e},"lowerLT");Wz.exports=Yde});var t2=k((IUe,e2)=>{"use strict";var $x=Tu(),Kz=$u(),Kde=Jt(),Xz=fx(),Xde=Js(),eAe=bV(),tAe=BV(),nAe=SV(),rAe=$V(),iAe=DV(),sAe=NV(),oAe=FV(),aAe=MV(),cAe=vr(),uAe=GV(),lAe=zV(),dAe=Zm(),AAe=YV(),pAe=ZV(),fAe=DA(),gAe=Km(),hAe=mx(),mAe=yx(),yAe=Xm(),EAe=ey(),IAe=Ex(),CAe=oz(),vAe=cz(),bAe=_A(),wAe=br(),BAe=UA(),QAe=bz(),kAe=Bz(),SAe=kz(),RAe=xz(),xAe=Tz(),$Ae=ry(),TAe=Pz(),DAe=Lz(),_Ae=Gz(),NAe=zz(),UAe=Zz();e2.exports={parse:Xde,valid:eAe,clean:tAe,inc:nAe,diff:rAe,major:iAe,minor:sAe,patch:oAe,prerelease:aAe,compare:cAe,rcompare:uAe,compareLoose:lAe,compareBuild:dAe,sort:AAe,rsort:pAe,gt:fAe,lt:gAe,eq:hAe,neq:mAe,gte:yAe,lte:EAe,cmp:IAe,coerce:CAe,truncate:vAe,Comparator:bAe,Range:wAe,satisfies:BAe,toComparators:QAe,maxSatisfying:kAe,minSatisfying:SAe,minVersion:RAe,validRange:xAe,outside:$Ae,gtr:TAe,ltr:DAe,intersects:_Ae,simplifyRange:NAe,subset:UAe,SemVer:Kde,re:$x.re,src:$x.src,tokens:$x.t,SEMVER_SPEC_VERSION:Kz.SEMVER_SPEC_VERSION,RELEASE_TYPES:Kz.RELEASE_TYPES,compareIdentifiers:Xz.compareIdentifiers,rcompareIdentifiers:Xz.rcompareIdentifiers}});var Bfe={};wr(Bfe,{AppRefusal:()=>jr,AppUnreachable:()=>fi,AttemptEndReason:()=>dd,DeliveryStatus:()=>gg,GitHubWriteKind:()=>Eg,NoReportCause:()=>Ad,SourceProvider:()=>Ho,V3Attempt:()=>GA,ValidationSufficiency:()=>Ui,closedV3Attempt:()=>fq,endV3Attempt:()=>mq,heartbeatV3Attempt:()=>Xx,startV3Attempt:()=>pq,uploadV3Report:()=>hq});module.exports=bq(Bfe);var cq=require("node:zlib");Ic();var Hf=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),Yf={testRecommendationsImplementedHeader:o(e=>`\u{1F4A1} Test Recommendations Implemented (${e})`,"testRecommendationsImplementedHeader"),testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:o(e=>`${Hf(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${Hf(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${Hf(e)} reused`,"reused"),verified:o(e=>`${Hf(e)} verified`,"verified"),unresolved:o(e=>`${e} not resolvable to POM source (informational, not declines)`,"unresolved"),candidates:o(e=>`${e} candidate POM file${e===1?"":"s"} detected`,"candidates"),verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:o(e=>`kept inline: ${e}`,"keptInline"),gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:o(e=>`\u2705 Test Maintenance (${e})`,"testMaintenanceHeader"),maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:o(e=>`\u{1F9EA} Test Results (${e})`,"testResultsHeader"),columnVideo:"Video",videoDownloadLink:o(e=>`[\u{1F4F9} download](${e})`,"videoDownloadLink"),videosArtifactFallback:o(e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F Issues Found (${e})`,"issuesFoundHeader"),configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:o(e=>e?"passed against the running app":"passed","passed"),notRun:o(e=>e?"not run against a live app this run":"not run this run","notRun"),failedBug:o(e=>e?"failed against the running app":"failed","failedBug"),executedOf:o((e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,"executedOf"),noneExecuted:o(e=>e?"; none were executed against a live app this run.":"; none were executed this run.","noneExecuted")},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.",testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",failedAlone:o(e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,"failedAlone"),missingCaseResults:o((e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},"missingCaseResults"),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:o(e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,"mockedDependency"),finalizeNotReady:o(e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,"finalizeNotReady"),ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:o(e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,"ciNotCoveredBecause"),ciUnconfirmed:o(e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,"ciUnconfirmed"),sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:o(e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,"lintNotCovered"),analysisUnverified:o(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.`,"analysisUnverified"),unitTestsNotRun:o(e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,"unitTestsNotRun"),componentsNotTested:o(e=>`Not tested: changed parts of the code the plan did not test. ${e}`,"componentsNotTested"),componentsWithoutReason:o(e=>`The plan gave no reason for leaving out: ${e}.`,"componentsWithoutReason"),testSettingsDiffer:o(e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,"testSettingsDiffer"),downstreamNotChecked:o(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}`,"downstreamNotChecked"),browserBuildNotDeclared:o((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.`,"browserBuildNotDeclared"),testsCouldNotRunHere:o((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}`,"testsCouldNotRunHere"),modelProviderDenied:o((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.`,"modelProviderDenied"),modelProviderUnavailable:o((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.`,"modelProviderUnavailable"),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. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",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. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",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:o(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.`,"dataSafetyAuthCreates")},nextSteps:{componentMismatch:o((e,t,n,i)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${i}, the commit this run validates.`,"componentMismatch"),componentUnverified:o((e,t,n,i)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${i}, the commit this run validates: it reports ${n}.`,"componentUnverified"),componentUnread:o((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.`,"componentUnread"),deployCommit:o((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.`,"deployCommit")},providerOutageHeadline:o((e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,"providerOutageHeadline"),providerOutageActionStatusPage:o(e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`Testbot was rate-limited by ${e} (HTTP 429).`,"providerRateLimitHeadline"),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:o(e=>`The account behind ${e} has reached its usage limit.`,"providerUsageLimitHeadline"),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:o(e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,"providerAuthExpiredHeadline"),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:o(e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,"providerTimeoutHeadline"),providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:o(e=>`Tests for source pull request ${e}`,"testsSourcePullRequest"),requestedByPerson:o(e=>`Requested by ${e}`,"requestedByPerson"),requestedByPolicy:o(e=>`Started by the Validation Policy ${e}`,"requestedByPolicy"),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:o(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).`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,"unitTestsInFile"),addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:o((e,t)=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config. 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.`,"testPackageLine"),appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:o((e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,"dependencyChangeLine"),testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:o((e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,"trustedCheckPassed"),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:o((e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:o((e,t,n,i)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${i} executed)`,"coverageCaption"),coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:o((e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,"requirementsHeader"),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:o(e=>e?`${e} hook`:"commit hook","commitHook"),commitRefusedByHook:o((e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,"commitRefusedByHook"),commitHookCouldNotRun:o((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}\`.`,"commitHookCouldNotRun"),maintenanceActions:{},stoppedEarly:o((e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,"stoppedEarly"),viewInSkyramp:o(e=>` [View in Skyramp](${e})`,"viewInSkyramp"),largeReportSummary:o((e,t,n,i,r)=>`${e} requirements, ${t} clauses. Test results: ${n} Pass, ${i} Fail, ${r} Skipped.`,"largeReportSummary"),largeReportValidation:o((e,t,n)=>`Evidence: ${e}. ${t} (${n} gaps; see the full report.)`,"largeReportValidation"),largeReportNotice:"This report is too large for a pull request description. The full report includes every requirement and its evidence; review it on the run page before deciding whether the change is validated.",descriptionCut:o((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})`:""}_`,"descriptionCut"),testsReplaced:o((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(" "),"testsReplaced"),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:o(e=>`Unable to contact the mothership ${e}. Please try again later.`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot could not start: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(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.`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[View run](${e})_`,"viewRun"),testsPrNotOpened:o((e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,"testsPrNotOpened"),testsNotDelivered:o(e=>`The tests could not be delivered: ${e}`,"testsNotDelivered"),testsNotPushed:o((e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,"testsNotPushed"),testsPrRetargeted:o(e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,"testsPrRetargeted"),testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:o(e=>`The tests were committed but no PR was opened: ${e}.`,"committedNoPr"),testsNotProposed:o(e=>`The tests were not proposed in a pull request: ${e}.`,"testsNotProposed")}};var XP={testRecommendationsImplementedHeader:o(e=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08${e}\u4EF6\uFF09`,"testRecommendationsImplementedHeader"),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:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,"reusedThenVerified"),reused:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,"reused"),verified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,"verified"),unresolved:o(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`,"unresolved"),candidates:o(e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,"candidates"),verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:o(e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,"keptInline"),gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:o(e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,"testMaintenanceHeader"),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:o(e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,"testResultsHeader"),columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:o(e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,"videoDownloadLink"),videosArtifactFallback:o(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})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,"issuesFoundHeader"),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:o(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","passed"),notRun:o(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","notRun"),failedBug:o(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","failedBug"),executedOf:o((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`,"executedOf"),noneExecuted:o(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","noneExecuted")},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",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",failedAlone:o(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`,"failedAlone"),missingCaseResults:o((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}`},"missingCaseResults"),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:o(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`,"mockedDependency"),finalizeNotReady:o(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"}`,"finalizeNotReady"),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:o(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}`,"ciNotCoveredBecause"),ciUnconfirmed:o(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`,"ciUnconfirmed"),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:o(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`,"lintNotCovered"),analysisUnverified:o(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`,"analysisUnverified"),unitTestsNotRun:o(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}`,"unitTestsNotRun"),componentsNotTested:o(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}`,"componentsNotTested"),componentsWithoutReason:o(e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,"componentsWithoutReason"),testSettingsDiffer:o(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`,"testSettingsDiffer"),downstreamNotChecked:o(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}`,"downstreamNotChecked"),browserBuildNotDeclared:o((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`,"browserBuildNotDeclared"),testsCouldNotRunHere:o((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}`,"testsCouldNotRunHere"),modelProviderDenied:o((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`,"modelProviderDenied"),modelProviderUnavailable:o((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`,"modelProviderUnavailable"),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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\u30AC\u30FC\u30C9\u306E\u5BFE\u8C61\u5916\u306E\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u6307\u793A\u306B\u3088\u308B\u8981\u4EF6\u3067\u3042\u308A\u3001Testbot \u306F\u305D\u306E\u5B8C\u4E86\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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:o(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`,"dataSafetyAuthCreates")},nextSteps:{componentMismatch:o((e,t,n,i)=>`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 ${i} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,"componentMismatch"),componentUnverified:o((e,t,n,i)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${i} \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`,"componentUnverified"),componentUnread:o((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`,"componentUnread"),deployCommit:o((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`,"deployCommit")},providerOutageHeadline:o((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`,"providerOutageHeadline"),providerOutageActionStatusPage:o(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`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,"providerRateLimitHeadline"),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:o(e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,"providerUsageLimitHeadline"),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:o(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`,"providerAuthExpiredHeadline"),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:o(e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,"providerTimeoutHeadline"),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:o(e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,"testsSourcePullRequest"),requestedByPerson:o(e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,"requestedByPerson"),requestedByPolicy:o(e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,"requestedByPolicy"),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:o(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`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,"unitTestsInFile"),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:o((e,t)=>`\`${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\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`,"testPackageLine"),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:o((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}`:""}`,"dependencyChangeLine"),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:o((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:`,"trustedCheckPassed"),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:o((e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:o((e,t,n,i)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${i}\uFF09`,"coverageCaption"),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:o((e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,"requirementsHeader"),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:o(e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF","commitHook"),commitRefusedByHook:o((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`,"commitRefusedByHook"),commitHookCouldNotRun:o((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`,"commitHookCouldNotRun"),stoppedEarly:o((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}`,"stoppedEarly"),viewInSkyramp:o(e=>` [Skyramp \u3067\u8868\u793A](${e})`,"viewInSkyramp"),largeReportSummary:o((e,t,n,i,r)=>`\u8981\u4EF6 ${e} \u4EF6\u3001\u6761\u9805 ${t} \u4EF6\u3002\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${n} \u4EF6\u3001\u4E0D\u5408\u683C ${i} \u4EF6\u3001\u30B9\u30AD\u30C3\u30D7 ${r} \u4EF6\u3002`,"largeReportSummary"),largeReportValidation:o((e,t,n)=>`\u8A3C\u62E0: ${e}\u3002${t}\uFF08\u4E0D\u8DB3 ${n} \u4EF6\u3002\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\uFF09`,"largeReportValidation"),largeReportNotice:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u8AAC\u660E\u306B\u53CE\u307E\u308A\u307E\u305B\u3093\u3002\u3059\u3079\u3066\u306E\u8981\u4EF6\u3068\u8A3C\u62E0\u3092\u542B\u3080\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8\u3092\u5B9F\u884C\u30DA\u30FC\u30B8\u3067\u78BA\u8A8D\u3057\u3066\u304B\u3089\u3001\u5909\u66F4\u304C\u691C\u8A3C\u3055\u308C\u305F\u304B\u5224\u65AD\u3057\u3066\u304F\u3060\u3055\u3044\u3002",descriptionCut:o((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})`:""}_`,"descriptionCut"),testsReplaced:o((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(""),"testsReplaced"),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:o(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`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(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`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,"viewRun"),testsPrNotOpened:o((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`,"testsPrNotOpened"),testsNotDelivered:o(e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"testsNotDelivered"),testsNotPushed:o((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`,"testsNotPushed"),testsPrRetargeted:o(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`,"testsPrRetargeted"),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:o(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`,"committedNoPr"),testsNotProposed:o(e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,"testsNotProposed")}};var S7={en:Yf,ja:XP},R7="en";function ko(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(ko,"labelOf");function oe(){return S7[R7]}o(oe,"t");var tM=4,nM="\xABredacted\xBB";function rv(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=tM&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(rv,"redactionsFrom");function x7(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(x7,"redactGitCredentials");function $i(e,t){if(!e||t.length===0)return e;let n=e;for(let i of t)!i||!n.includes(i)||(n=n.split(i).join(nM));return n}o($i,"redactSecrets");function Wf(e,t){return $i(x7(e),t)}o(Wf,"redactCredentials");function $7(e,t){let n=o(i=>typeof i=="string"?t(i):Array.isArray(i)?i.map(n):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([r,s])=>[r,n(s)])):i,"walk");return n(e)}o($7,"mapStrings");function Cc(e,t){return t.length===0?e:$7(e,n=>$i(n,t))}o(Cc,"redactDeep");var fEe=new TextDecoder("utf-8",{fatal:!0});var iM=600,Zf=300;function rM(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(rM,"streamText");function T7(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[rM(t?.stderr),rM(t?.stdout)].filter(Boolean);return i.length?[n.split(`
50
+ Error Message: ${a.message}`)})).result)===null||n===void 0?void 0:n.value;if(!s)throw new Error("Response json body do not have ID Token field");return s})}static getIDToken(t){return LP(this,void 0,void 0,function*(){try{let n=e.getIDTokenUrl();if(t){let r=encodeURIComponent(t);n=`${n}&audience=${r}`}jP(`ID token url is ${n}`);let i=yield e.getCall(n);return Jl(i),i}catch(n){throw new Error(`Error message: ${n.message}`)}})}}});var VP,Hl,ZC,c7,u7,l7,GP,KC,hye,XC=cn(()=>{VP=require("os"),Hl=require("fs"),ZC=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return o(r,"adopt"),new(n||(n=Promise))(function(s,a){function c(A){try{l(i.next(A))}catch(p){a(p)}}o(c,"fulfilled");function u(A){try{l(i.throw(A))}catch(p){a(p)}}o(u,"rejected");function l(A){A.done?s(A.value):r(A.value).then(c,u)}o(l,"step"),l((i=i.apply(e,t||[])).next())})},{access:c7,appendFile:u7,writeFile:l7}=Hl.promises,GP="GITHUB_STEP_SUMMARY",KC=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return ZC(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[GP];if(!t)throw new Error(`Unable to find environment variable for $${GP}. Check if your runtime environment supports job summaries.`);try{yield c7(t,Hl.constants.R_OK|Hl.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,i={}){let r=Object.entries(i).map(([s,a])=>` ${s}="${a}"`).join("");return n?`<${t}${r}>${n}</${t}>`:`<${t}${r}>`}write(t){return ZC(this,void 0,void 0,function*(){let n=!!t?.overwrite,i=yield this.filePath();return yield(n?l7:u7)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return ZC(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(VP.EOL)}addCodeBlock(t,n){let i=Object.assign({},n&&{lang:n}),r=this.wrap("pre",this.wrap("code",t),i);return this.addRaw(r).addEOL()}addList(t,n=!1){let i=n?"ol":"ul",r=t.map(a=>this.wrap("li",a)).join(""),s=this.wrap(i,r);return this.addRaw(s).addEOL()}addTable(t){let n=t.map(r=>{let s=r.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:l,rowspan:A}=a,p=c?"th":"td",g=Object.assign(Object.assign({},l&&{colspan:l}),A&&{rowspan:A});return this.wrap(p,u,g)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",n);return this.addRaw(i).addEOL()}addDetails(t,n){let i=this.wrap("details",this.wrap("summary",t)+n);return this.addRaw(i).addEOL()}addImage(t,n,i){let{width:r,height:s}=i||{},a=Object.assign(Object.assign({},r&&{width:r}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:t,alt:n},a));return this.addRaw(c).addEOL()}addHeading(t,n){let i=`h${n}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(r,t);return this.addRaw(s).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 i=Object.assign({},n&&{cite:n}),r=this.wrap("blockquote",t,i);return this.addRaw(r).addEOL()}addLink(t,n){let i=this.wrap("a",t,{href:n});return this.addRaw(i).addEOL()}},hye=new KC});var zP=cn(()=>{});var qf,d7,A7,p7,f7,Cye,g7,h7,m7,vye,y7,E7,I7,C7,bye,ev=cn(()=>{qf=_e(require("fs"),1),{chmod:d7,copyFile:A7,lstat:p7,mkdir:f7,open:Cye,readdir:g7,rename:h7,rm:m7,rmdir:vye,stat:y7,symlink:E7,unlink:I7}=qf.promises,C7=process.platform==="win32",bye=qf.constants.O_RDONLY});var JP=cn(()=>{ev()});var xye,HP=cn(()=>{JP();ev();xye=process.platform==="win32"});var tv=cn(()=>{HP()});var nv,Uye,Fye,WP=cn(()=>{nv=_e(require("os"),1);tv();Uye=nv.default.platform(),Fye=nv.default.arch()});function Jl(e){yy("add-mask",{},e)}function jP(e){yy("debug",{},e)}function KP(e){return k7(this,void 0,void 0,function*(){return yield zf.getIDToken(e)})}var k7,ZP,Ic=cn(()=>{r$();i$();VA();OP();XC();XC();zP();WP();k7=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return o(r,"adopt"),new(n||(n=Promise))(function(s,a){function c(A){try{l(i.next(A))}catch(p){a(p)}}o(c,"fulfilled");function u(A){try{l(i.throw(A))}catch(p){a(p)}}o(u,"rejected");function l(A){A.done?s(A.value):r(A.value).then(c,u)}o(l,"step"),l((i=i.apply(e,t||[])).next())})};(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(ZP||(ZP={}));o(Jl,"setSecret");o(jP,"debug");o(KP,"getIDToken")});var $u=k((V_e,dV)=>{"use strict";var xue="2.0.0",$ue=Number.MAX_SAFE_INTEGER||9007199254740991,Tue=16,Due=250,_ue=["major","premajor","minor","preminor","patch","prepatch","prerelease"];dV.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Tue,MAX_SAFE_BUILD_LENGTH:Due,MAX_SAFE_INTEGER:$ue,RELEASE_TYPES:_ue,SEMVER_SPEC_VERSION:xue,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var TA=k((z_e,AV)=>{"use strict";var Nue=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};AV.exports=Nue});var Tu=k((Ai,pV)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Ax,MAX_SAFE_BUILD_LENGTH:Uue,MAX_LENGTH:Fue}=$u(),Pue=TA();Ai=pV.exports={};var Mue=Ai.re=[],Lue=Ai.safeRe=[],te=Ai.src=[],Oue=Ai.safeSrc=[],ne=Ai.t={},jue=0,px="[a-zA-Z0-9-]",Gue=[["\\s",1],["\\d",Fue],[px,Uue]],Vue=o(e=>{for(let[t,n]of Gue)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},"makeSafeRegex"),ke=o((e,t,n)=>{let i=Vue(t),r=jue++;Pue(e,r,t),ne[e]=r,te[r]=t,Oue[r]=i,Mue[r]=new RegExp(t,n?"g":void 0),Lue[r]=new RegExp(i,n?"g":void 0)},"createToken");ke("NUMERICIDENTIFIER","0|[1-9]\\d*");ke("NUMERICIDENTIFIERLOOSE","\\d+");ke("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${px}*`);ke("MAINVERSION",`(${te[ne.NUMERICIDENTIFIER]})\\.(${te[ne.NUMERICIDENTIFIER]})\\.(${te[ne.NUMERICIDENTIFIER]})`);ke("MAINVERSIONLOOSE",`(${te[ne.NUMERICIDENTIFIERLOOSE]})\\.(${te[ne.NUMERICIDENTIFIERLOOSE]})\\.(${te[ne.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASEIDENTIFIER",`(?:${te[ne.NONNUMERICIDENTIFIER]}|${te[ne.NUMERICIDENTIFIER]})`);ke("PRERELEASEIDENTIFIERLOOSE",`(?:${te[ne.NONNUMERICIDENTIFIER]}|${te[ne.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASE",`(?:-(${te[ne.PRERELEASEIDENTIFIER]}(?:\\.${te[ne.PRERELEASEIDENTIFIER]})*))`);ke("PRERELEASELOOSE",`(?:-?(${te[ne.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${te[ne.PRERELEASEIDENTIFIERLOOSE]})*))`);ke("BUILDIDENTIFIER",`${px}+`);ke("BUILD",`(?:\\+(${te[ne.BUILDIDENTIFIER]}(?:\\.${te[ne.BUILDIDENTIFIER]})*))`);ke("FULLPLAIN",`v?${te[ne.MAINVERSION]}${te[ne.PRERELEASE]}?${te[ne.BUILD]}?`);ke("FULL",`^${te[ne.FULLPLAIN]}$`);ke("LOOSEPLAIN",`[v=\\s]*${te[ne.MAINVERSIONLOOSE]}${te[ne.PRERELEASELOOSE]}?${te[ne.BUILD]}?`);ke("LOOSE",`^${te[ne.LOOSEPLAIN]}$`);ke("GTLT","((?:<|>)?=?)");ke("XRANGEIDENTIFIERLOOSE",`${te[ne.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ke("XRANGEIDENTIFIER",`${te[ne.NUMERICIDENTIFIER]}|x|X|\\*`);ke("XRANGEPLAIN",`[v=\\s]*(${te[ne.XRANGEIDENTIFIER]})(?:\\.(${te[ne.XRANGEIDENTIFIER]})(?:\\.(${te[ne.XRANGEIDENTIFIER]})(?:${te[ne.PRERELEASE]})?${te[ne.BUILD]}?)?)?`);ke("XRANGEPLAINLOOSE",`[v=\\s]*(${te[ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[ne.XRANGEIDENTIFIERLOOSE]})(?:${te[ne.PRERELEASELOOSE]})?${te[ne.BUILD]}?)?)?`);ke("XRANGE",`^${te[ne.GTLT]}\\s*${te[ne.XRANGEPLAIN]}$`);ke("XRANGELOOSE",`^${te[ne.GTLT]}\\s*${te[ne.XRANGEPLAINLOOSE]}$`);ke("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Ax}})(?:\\.(\\d{1,${Ax}}))?(?:\\.(\\d{1,${Ax}}))?`);ke("COERCE",`${te[ne.COERCEPLAIN]}(?:$|[^\\d])`);ke("COERCEFULL",te[ne.COERCEPLAIN]+`(?:${te[ne.PRERELEASE]})?(?:${te[ne.BUILD]})?(?:$|[^\\d])`);ke("COERCERTL",te[ne.COERCE],!0);ke("COERCERTLFULL",te[ne.COERCEFULL],!0);ke("LONETILDE","(?:~>?)");ke("TILDETRIM",`(\\s*)${te[ne.LONETILDE]}\\s+`,!0);Ai.tildeTrimReplace="$1~";ke("TILDE",`^${te[ne.LONETILDE]}${te[ne.XRANGEPLAIN]}$`);ke("TILDELOOSE",`^${te[ne.LONETILDE]}${te[ne.XRANGEPLAINLOOSE]}$`);ke("LONECARET","(?:\\^)");ke("CARETTRIM",`(\\s*)${te[ne.LONECARET]}\\s+`,!0);Ai.caretTrimReplace="$1^";ke("CARET",`^${te[ne.LONECARET]}${te[ne.XRANGEPLAIN]}$`);ke("CARETLOOSE",`^${te[ne.LONECARET]}${te[ne.XRANGEPLAINLOOSE]}$`);ke("COMPARATORLOOSE",`^${te[ne.GTLT]}\\s*(${te[ne.LOOSEPLAIN]})$|^$`);ke("COMPARATOR",`^${te[ne.GTLT]}\\s*(${te[ne.FULLPLAIN]})$|^$`);ke("COMPARATORTRIM",`(\\s*)${te[ne.GTLT]}\\s*(${te[ne.LOOSEPLAIN]}|${te[ne.XRANGEPLAIN]})`,!0);Ai.comparatorTrimReplace="$1$2$3";ke("HYPHENRANGE",`^\\s*(${te[ne.XRANGEPLAIN]})\\s+-\\s+(${te[ne.XRANGEPLAIN]})\\s*$`);ke("HYPHENRANGELOOSE",`^\\s*(${te[ne.XRANGEPLAINLOOSE]})\\s+-\\s+(${te[ne.XRANGEPLAINLOOSE]})\\s*$`);ke("STAR","(<|>)?=?\\s*\\*");ke("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ke("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var qm=k((J_e,fV)=>{"use strict";var zue=Object.freeze({loose:!0}),que=Object.freeze({}),Jue=o(e=>e?typeof e!="object"?zue:e:que,"parseOptions");fV.exports=Jue});var fx=k((Y_e,mV)=>{"use strict";var gV=/^[0-9]+$/,hV=o((e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=gV.test(e),i=gV.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},"compareIdentifiers"),Hue=o((e,t)=>hV(t,e),"rcompareIdentifiers");mV.exports={compareIdentifiers:hV,rcompareIdentifiers:Hue}});var Jt=k((Z_e,EV)=>{"use strict";var Jm=TA(),{MAX_LENGTH:yV,MAX_SAFE_INTEGER:Hm}=$u(),{safeRe:Ym,t:Wm}=Tu(),Yue=qm(),{compareIdentifiers:gx}=fx(),Wue=o((e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let i=0;i<n.length;i++)if(gx(e[i],n[i])!==0)return!1;return!0},"isPrereleaseIdentifier"),hx=class e{static{o(this,"SemVer")}constructor(t,n){if(n=Yue(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>yV)throw new TypeError(`version is longer than ${yV} characters`);Jm("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=t.trim().match(n.loose?Ym[Wm.LOOSE]:Ym[Wm.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Hm||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Hm||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Hm||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let s=+r;if(s>=0&&s<Hm)return s}return r}):this.prerelease=[],this.build=i[5]?i[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(Jm("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 i=this.prerelease[n],r=t.prerelease[n];if(Jm("prerelease compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return gx(i,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let i=this.build[n],r=t.build[n];if(Jm("build compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return gx(i,r)}while(++n)}inc(t,n,i){if(t.startsWith("pre")){if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?Ym[Wm.PRERELEASELOOSE]:Ym[Wm.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,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);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(i)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let s=[n,r];if(i===!1&&(s=[n]),Wue(this.prerelease,n)){let a=this.prerelease[n.split(".").length];isNaN(a)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};EV.exports=hx});var Js=k((X_e,CV)=>{"use strict";var IV=Jt(),Zue=o((e,t,n=!1)=>{if(e instanceof IV)return e;try{return new IV(e,t)}catch(i){if(!n)return null;throw i}},"parse");CV.exports=Zue});var bV=k((tNe,vV)=>{"use strict";var Kue=Js(),Xue=o((e,t)=>{let n=Kue(e,t);return n?n.version:null},"valid");vV.exports=Xue});var BV=k((rNe,wV)=>{"use strict";var ele=Js(),tle=o((e,t)=>{let n=ele(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},"clean");wV.exports=tle});var SV=k((sNe,kV)=>{"use strict";var QV=Jt(),nle=o((e,t,n,i,r)=>{typeof n=="string"&&(r=i,i=n,n=void 0);try{return new QV(e instanceof QV?e.version:e,n).inc(t,i,r).version}catch{return null}},"inc");kV.exports=nle});var $V=k((aNe,xV)=>{"use strict";var RV=Js(),rle=o((e,t)=>{let n=RV(e,null,!0),i=RV(t,null,!0),r=n.compare(i);if(r===0)return null;let s=r>0,a=s?n:i,c=s?i:n,u=!!a.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let A=u?"pre":"";return n.major!==i.major?A+"major":n.minor!==i.minor?A+"minor":n.patch!==i.patch?A+"patch":"prerelease"},"diff");xV.exports=rle});var DV=k((uNe,TV)=>{"use strict";var ile=Jt(),sle=o((e,t)=>new ile(e,t).major,"major");TV.exports=sle});var NV=k((dNe,_V)=>{"use strict";var ole=Jt(),ale=o((e,t)=>new ole(e,t).minor,"minor");_V.exports=ale});var FV=k((pNe,UV)=>{"use strict";var cle=Jt(),ule=o((e,t)=>new cle(e,t).patch,"patch");UV.exports=ule});var MV=k((gNe,PV)=>{"use strict";var lle=Js(),dle=o((e,t)=>{let n=lle(e,t);return n&&n.prerelease.length?n.prerelease:null},"prerelease");PV.exports=dle});var vr=k((mNe,OV)=>{"use strict";var LV=Jt(),Ale=o((e,t,n)=>new LV(e,n).compare(new LV(t,n)),"compare");OV.exports=Ale});var GV=k((ENe,jV)=>{"use strict";var ple=vr(),fle=o((e,t,n)=>ple(t,e,n),"rcompare");jV.exports=fle});var zV=k((CNe,VV)=>{"use strict";var gle=vr(),hle=o((e,t)=>gle(e,t,!0),"compareLoose");VV.exports=hle});var Zm=k((bNe,JV)=>{"use strict";var qV=Jt(),mle=o((e,t,n)=>{let i=new qV(e,n),r=new qV(t,n);return i.compare(r)||i.compareBuild(r)},"compareBuild");JV.exports=mle});var YV=k((BNe,HV)=>{"use strict";var yle=Zm(),Ele=o((e,t)=>e.sort((n,i)=>yle(n,i,t)),"sort");HV.exports=Ele});var ZV=k((kNe,WV)=>{"use strict";var Ile=Zm(),Cle=o((e,t)=>e.sort((n,i)=>Ile(i,n,t)),"rsort");WV.exports=Cle});var DA=k((RNe,KV)=>{"use strict";var vle=vr(),ble=o((e,t,n)=>vle(e,t,n)>0,"gt");KV.exports=ble});var Km=k(($Ne,XV)=>{"use strict";var wle=vr(),Ble=o((e,t,n)=>wle(e,t,n)<0,"lt");XV.exports=Ble});var mx=k((DNe,ez)=>{"use strict";var Qle=vr(),kle=o((e,t,n)=>Qle(e,t,n)===0,"eq");ez.exports=kle});var yx=k((NNe,tz)=>{"use strict";var Sle=vr(),Rle=o((e,t,n)=>Sle(e,t,n)!==0,"neq");tz.exports=Rle});var Xm=k((FNe,nz)=>{"use strict";var xle=vr(),$le=o((e,t,n)=>xle(e,t,n)>=0,"gte");nz.exports=$le});var ey=k((MNe,rz)=>{"use strict";var Tle=vr(),Dle=o((e,t,n)=>Tle(e,t,n)<=0,"lte");rz.exports=Dle});var Ex=k((ONe,iz)=>{"use strict";var _le=mx(),Nle=yx(),Ule=DA(),Fle=Xm(),Ple=Km(),Mle=ey(),Lle=o((e,t,n,i)=>{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 _le(e,n,i);case"!=":return Nle(e,n,i);case">":return Ule(e,n,i);case">=":return Fle(e,n,i);case"<":return Ple(e,n,i);case"<=":return Mle(e,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}},"cmp");iz.exports=Lle});var oz=k((GNe,sz)=>{"use strict";var Ole=Jt(),jle=Js(),{safeRe:ty,t:ny}=Tu(),Gle=o((e,t)=>{if(e instanceof Ole)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?ty[ny.COERCEFULL]:ty[ny.COERCE]);else{let u=t.includePrerelease?ty[ny.COERCERTLFULL]:ty[ny.COERCERTL],l;for(;(l=u.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(n===null)return null;let i=n[2],r=n[3]||"0",s=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",c=t.includePrerelease&&n[6]?`+${n[6]}`:"";return jle(`${i}.${r}.${s}${a}${c}`,t)},"coerce");sz.exports=Gle});var cz=k((zNe,az)=>{"use strict";var Vle=Js(),zle=$u(),qle=Jt(),Jle=o((e,t,n)=>{if(!zle.RELEASE_TYPES.includes(t))return null;let i=Hle(e,n);return i&&Yle(i,t)},"truncate"),Hle=o((e,t)=>{let n=e instanceof qle?e.version:e;return Vle(n,t)},"cloneInputVersion"),Yle=o((e,t)=>{if(Wle(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()},"doTruncation"),Wle=o(e=>e.startsWith("pre"),"isPrerelease");az.exports=Jle});var lz=k((JNe,uz)=>{"use strict";var Ix=class{static{o(this,"LRUCache")}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}};uz.exports=Ix});var br=k((YNe,fz)=>{"use strict";var Zle=/\s+/g,Cx=class e{static{o(this,"Range")}constructor(t,n){if(n=Xle(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof vx)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(Zle," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!Az(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&cde(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 i=0;i<n.length;i++)i>0&&(this.formatted+=" "),this.formatted+=n[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(ade,"");let i=((this.options.includePrerelease&&sde)|(this.options.loose&&ode))+":"+t,r=dz.get(i);if(r)return r;let s=this.options.loose,a=s?Cn[Ht.HYPHENRANGELOOSE]:Cn[Ht.HYPHENRANGE];t=t.replace(a,Ede(this.options.includePrerelease)),pt("hyphen replace",t),t=t.replace(Cn[Ht.COMPARATORTRIM],nde),pt("comparator trim",t),t=t.replace(Cn[Ht.TILDETRIM],rde),pt("tilde trim",t),t=t.replace(Cn[Ht.CARETTRIM],ide),pt("caret trim",t);let c=t.split(" ").map(p=>ude(p,this.options)).join(" ").split(/\s+/).map(p=>yde(p,this.options));s&&(c=c.filter(p=>(pt("loose invalid filter",p,this.options),!!p.match(Cn[Ht.COMPARATORLOOSE])))),pt("range list",c);let u=new Map,l=c.map(p=>new vx(p,this.options));for(let p of l){if(Az(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let A=[...u.values()];return dz.set(i,A),A}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(i=>pz(i,n)&&t.set.some(r=>pz(r,n)&&i.every(s=>r.every(a=>s.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new ede(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Ide(this.set[n],t,this.options))return!0;return!1}};fz.exports=Cx;var Kle=lz(),dz=new Kle,Xle=qm(),vx=_A(),pt=TA(),ede=Jt(),{safeRe:Cn,src:tde,t:Ht,comparatorTrimReplace:nde,tildeTrimReplace:rde,caretTrimReplace:ide}=Tu(),{FLAG_INCLUDE_PRERELEASE:sde,FLAG_LOOSE:ode}=$u(),ade=new RegExp(tde[Ht.BUILD],"g"),Az=o(e=>e.value==="<0.0.0-0","isNullSet"),cde=o(e=>e.value==="","isAny"),pz=o((e,t)=>{let n=!0,i=e.slice(),r=i.pop();for(;n&&i.length;)n=i.every(s=>r.intersects(s,t)),r=i.pop();return n},"isSatisfiable"),ude=o((e,t)=>(e=e.replace(Cn[Ht.BUILD],""),pt("comp",e,t),e=pde(e,t),pt("caret",e),e=dde(e,t),pt("tildes",e),e=gde(e,t),pt("xrange",e),e=mde(e,t),pt("stars",e),e),"parseComparator"),_t=o(e=>!e||e.toLowerCase()==="x"||e==="*","isX"),lde=o((e,t,n)=>_t(e)&&!_t(t)||_t(t)&&n&&!_t(n),"invalidXRangeOrder"),dde=o((e,t)=>e.trim().split(/\s+/).map(n=>Ade(n,t)).join(" "),"replaceTildes"),Ade=o((e,t)=>{let n=t.loose?Cn[Ht.TILDELOOSE]:Cn[Ht.TILDE],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,a,c,u)=>{pt("tilde",e,r,s,a,c,u);let l;return _t(s)?l="":_t(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:_t(c)?l=`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:u?(pt("replaceTilde pr",u),l=`>=${s}.${a}.${c}-${u} <${s}.${+a+1}.0-0`):l=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`,pt("tilde return",l),l})},"replaceTilde"),pde=o((e,t)=>e.trim().split(/\s+/).map(n=>fde(n,t)).join(" "),"replaceCarets"),fde=o((e,t)=>{pt("caret",e,t);let n=t.loose?Cn[Ht.CARETLOOSE]:Cn[Ht.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,a,c,u)=>{pt("caret",e,r,s,a,c,u);let l;return _t(s)?l="":_t(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:_t(c)?s==="0"?l=`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:u?(pt("replaceCaret pr",u),s==="0"?a==="0"?l=`>=${s}.${a}.${c}-${u} <${s}.${a}.${+c+1}-0`:l=`>=${s}.${a}.${c}-${u} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${c}-${u} <${+s+1}.0.0-0`):(pt("no pr"),s==="0"?a==="0"?l=`>=${s}.${a}.${c} <${s}.${a}.${+c+1}-0`:l=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),pt("caret return",l),l})},"replaceCaret"),gde=o((e,t)=>(pt("replaceXRanges",e,t),e.split(/\s+/).map(n=>hde(n,t)).join(" ")),"replaceXRanges"),hde=o((e,t)=>{e=e.trim();let n=t.loose?Cn[Ht.XRANGELOOSE]:Cn[Ht.XRANGE];return e.replace(n,(i,r,s,a,c,u)=>{if(pt("xRange",e,i,r,s,a,c,u),lde(s,a,c))return e;let l=_t(s),A=l||_t(a),p=A||_t(c),g=p;return r==="="&&g&&(r=""),u=t.includePrerelease?"-0":"",l?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&g?(A&&(a=0),c=0,r===">"?(r=">=",A?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):r==="<="&&(r="<",A?s=+s+1:a=+a+1),r==="<"&&(u="-0"),i=`${r+s}.${a}.${c}${u}`):A?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),pt("xRange return",i),i})},"replaceXRange"),mde=o((e,t)=>(pt("replaceStars",e,t),e.trim().replace(Cn[Ht.STAR],"")),"replaceStars"),yde=o((e,t)=>(pt("replaceGTE0",e,t),e.trim().replace(Cn[t.includePrerelease?Ht.GTE0PRE:Ht.GTE0],"")),"replaceGTE0"),Ede=o(e=>(t,n,i,r,s,a,c,u,l,A,p,g)=>(_t(i)?n="":_t(r)?n=`>=${i}.0.0${e?"-0":""}`:_t(s)?n=`>=${i}.${r}.0${e?"-0":""}`:a?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,_t(l)?u="":_t(A)?u=`<${+l+1}.0.0-0`:_t(p)?u=`<${l}.${+A+1}.0-0`:g?u=`<=${l}.${A}.${p}-${g}`:e?u=`<${l}.${A}.${+p+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),"hyphenReplace"),Ide=o((e,t,n)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let i=0;i<e.length;i++)if(pt(e[i].semver),e[i].semver!==vx.ANY&&e[i].semver.prerelease.length>0){let r=e[i].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},"testSet")});var _A=k((ZNe,Iz)=>{"use strict";var NA=Symbol("SemVer ANY"),Bx=class e{static{o(this,"Comparator")}static get ANY(){return NA}constructor(t,n){if(n=gz(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),wx("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===NA?this.value="":this.value=this.operator+this.semver.version,wx("comp",this)}parse(t){let n=this.options.loose?hz[mz.COMPARATORLOOSE]:hz[mz.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new yz(i[2],this.options.loose):this.semver=NA}toString(){return this.value}test(t){if(wx("Comparator.test",t,this.options.loose),this.semver===NA||t===NA)return!0;if(typeof t=="string")try{t=new yz(t,this.options)}catch{return!1}return bx(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 Ez(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new Ez(this.value,n).test(t.semver):(n=gz(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("=")||bx(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||bx(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};Iz.exports=Bx;var gz=qm(),{safeRe:hz,t:mz}=Tu(),bx=Ex(),wx=TA(),yz=Jt(),Ez=br()});var UA=k((XNe,Cz)=>{"use strict";var Cde=br(),vde=o((e,t,n)=>{try{t=new Cde(t,n)}catch{return!1}return t.test(e)},"satisfies");Cz.exports=vde});var bz=k((tUe,vz)=>{"use strict";var bde=br(),wde=o((e,t)=>new bde(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" ")),"toComparators");vz.exports=wde});var Bz=k((rUe,wz)=>{"use strict";var Bde=Jt(),Qde=br(),kde=o((e,t,n)=>{let i=null,r=null,s=null;try{s=new Qde(t,n)}catch{return null}return e.forEach(a=>{s.test(a)&&(!i||r.compare(a)===-1)&&(i=a,r=new Bde(i,n))}),i},"maxSatisfying");wz.exports=kde});var kz=k((sUe,Qz)=>{"use strict";var Sde=Jt(),Rde=br(),xde=o((e,t,n)=>{let i=null,r=null,s=null;try{s=new Rde(t,n)}catch{return null}return e.forEach(a=>{s.test(a)&&(!i||r.compare(a)===1)&&(i=a,r=new Sde(i,n))}),i},"minSatisfying");Qz.exports=xde});var xz=k((aUe,Rz)=>{"use strict";var Qx=Jt(),$de=br(),Sz=DA(),Tde=o((e,t)=>{e=new $de(e,t);let n=new Qx("0.0.0");if(e.test(n)||(n=new Qx("0.0.0-0"),e.test(n)))return n;n=null;for(let i=0;i<e.set.length;++i){let r=e.set[i],s=null;r.forEach(a=>{let c=new Qx(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Sz(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!n||Sz(n,s))&&(n=s)}return n&&e.test(n)?n:null},"minVersion");Rz.exports=Tde});var Tz=k((uUe,$z)=>{"use strict";var Dde=br(),_de=o((e,t)=>{try{return new Dde(e,t).range||"*"}catch{return null}},"validRange");$z.exports=_de});var ry=k((dUe,Uz)=>{"use strict";var Nde=Jt(),Nz=_A(),{ANY:Ude}=Nz,Fde=br(),Pde=UA(),Dz=DA(),_z=Km(),Mde=ey(),Lde=Xm(),Ode=o((e,t,n,i)=>{e=new Nde(e,i),t=new Fde(t,i);let r,s,a,c,u;switch(n){case">":r=Dz,s=Mde,a=_z,c=">",u=">=";break;case"<":r=_z,s=Lde,a=Dz,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Pde(e,t,i))return!1;for(let l=0;l<t.set.length;++l){let A=t.set[l],p=null,g=null;if(A.forEach(h=>{h.semver===Ude&&(h=new Nz(">=0.0.0")),p=p||h,g=g||h,r(h.semver,p.semver,i)?p=h:a(h.semver,g.semver,i)&&(g=h)}),p.operator===c||p.operator===u||(!g.operator||g.operator===c)&&s(e,g.semver))return!1;if(g.operator===u&&a(e,g.semver))return!1}return!0},"outside");Uz.exports=Ode});var Pz=k((pUe,Fz)=>{"use strict";var jde=ry(),Gde=o((e,t,n)=>jde(e,t,">",n),"gtr");Fz.exports=Gde});var Lz=k((gUe,Mz)=>{"use strict";var Vde=ry(),zde=o((e,t,n)=>Vde(e,t,"<",n),"ltr");Mz.exports=zde});var Gz=k((mUe,jz)=>{"use strict";var Oz=br(),qde=o((e,t,n)=>(e=new Oz(e,n),t=new Oz(t,n),e.intersects(t,n)),"intersects");jz.exports=qde});var zz=k((EUe,Vz)=>{"use strict";var Jde=UA(),Hde=vr();Vz.exports=(e,t,n)=>{let i=[],r=null,s=null,a=e.sort((A,p)=>Hde(A,p,n));for(let A of a)Jde(A,t,n)?(s=A,r||(r=A)):(s&&i.push([r,s]),s=null,r=null);r&&i.push([r,null]);let c=[];for(let[A,p]of i)A===p?c.push(A):!p&&A===a[0]?c.push("*"):p?A===a[0]?c.push(`<=${p}`):c.push(`${A} - ${p}`):c.push(`>=${A}`);let u=c.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return u.length<l.length?u:t}});var Zz=k((IUe,Wz)=>{"use strict";var qz=br(),Rx=_A(),{ANY:kx}=Rx,Sx=UA(),xx=vr(),Yde=o((e,t,n={})=>{if(e===t)return!0;e=new qz(e,n),t=new qz(t,n);let i=!1;e:for(let r of e.set){for(let s of t.set){let a=Zde(r,s,n);if(i=i||a!==null,a)continue e}if(i)return!1}return!0},"subset"),Wde=[new Rx(">=0.0.0-0")],Jz=[new Rx(">=0.0.0")],Zde=o((e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===kx){if(t.length===1&&t[0].semver===kx)return!0;n.includePrerelease?e=Wde:e=Jz}if(t.length===1&&t[0].semver===kx){if(n.includePrerelease)return!0;t=Jz}let i=new Set,r,s;for(let h of e)h.operator===">"||h.operator===">="?r=Hz(r,h,n):h.operator==="<"||h.operator==="<="?s=Yz(s,h,n):i.add(h.semver);if(i.size>1)return null;let a;if(r&&s){if(a=xx(r.semver,s.semver,n),a>0)return null;if(a===0&&(r.operator!==">="||s.operator!=="<="))return null}for(let h of i){if(r&&!Sx(h,String(r),n)||s&&!Sx(h,String(s),n))return null;for(let y of t)if(!Sx(h,String(y),n))return!1;return!0}let c,u,l,A,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,g=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let h of t){if(A=A||h.operator===">"||h.operator===">=",l=l||h.operator==="<"||h.operator==="<=",r){if(g&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===g.major&&h.semver.minor===g.minor&&h.semver.patch===g.patch&&(g=!1),h.operator===">"||h.operator===">="){if(c=Hz(r,h,n),c===h&&c!==r)return!1}else if(r.operator===">="&&!h.test(r.semver))return!1}if(s){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator==="<"||h.operator==="<="){if(u=Yz(s,h,n),u===h&&u!==s)return!1}else if(s.operator==="<="&&!h.test(s.semver))return!1}if(!h.operator&&(s||r)&&a!==0)return!1}return!(r&&l&&!s&&a!==0||s&&A&&!r&&a!==0||g||p)},"simpleSubset"),Hz=o((e,t,n)=>{if(!e)return t;let i=xx(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},"higherGT"),Yz=o((e,t,n)=>{if(!e)return t;let i=xx(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e},"lowerLT");Wz.exports=Yde});var t2=k((vUe,e2)=>{"use strict";var $x=Tu(),Kz=$u(),Kde=Jt(),Xz=fx(),Xde=Js(),eAe=bV(),tAe=BV(),nAe=SV(),rAe=$V(),iAe=DV(),sAe=NV(),oAe=FV(),aAe=MV(),cAe=vr(),uAe=GV(),lAe=zV(),dAe=Zm(),AAe=YV(),pAe=ZV(),fAe=DA(),gAe=Km(),hAe=mx(),mAe=yx(),yAe=Xm(),EAe=ey(),IAe=Ex(),CAe=oz(),vAe=cz(),bAe=_A(),wAe=br(),BAe=UA(),QAe=bz(),kAe=Bz(),SAe=kz(),RAe=xz(),xAe=Tz(),$Ae=ry(),TAe=Pz(),DAe=Lz(),_Ae=Gz(),NAe=zz(),UAe=Zz();e2.exports={parse:Xde,valid:eAe,clean:tAe,inc:nAe,diff:rAe,major:iAe,minor:sAe,patch:oAe,prerelease:aAe,compare:cAe,rcompare:uAe,compareLoose:lAe,compareBuild:dAe,sort:AAe,rsort:pAe,gt:fAe,lt:gAe,eq:hAe,neq:mAe,gte:yAe,lte:EAe,cmp:IAe,coerce:CAe,truncate:vAe,Comparator:bAe,Range:wAe,satisfies:BAe,toComparators:QAe,maxSatisfying:kAe,minSatisfying:SAe,minVersion:RAe,validRange:xAe,outside:$Ae,gtr:TAe,ltr:DAe,intersects:_Ae,simplifyRange:NAe,subset:UAe,SemVer:Kde,re:$x.re,src:$x.src,tokens:$x.t,SEMVER_SPEC_VERSION:Kz.SEMVER_SPEC_VERSION,RELEASE_TYPES:Kz.RELEASE_TYPES,compareIdentifiers:Xz.compareIdentifiers,rcompareIdentifiers:Xz.rcompareIdentifiers}});var Bfe={};wr(Bfe,{AppRefusal:()=>jr,AppUnreachable:()=>fi,AttemptEndReason:()=>dd,DeliveryStatus:()=>gg,GitHubWriteKind:()=>Eg,NoReportCause:()=>Ad,SourceProvider:()=>Ho,V3Attempt:()=>GA,ValidationSufficiency:()=>Ui,closedV3Attempt:()=>fq,endV3Attempt:()=>mq,heartbeatV3Attempt:()=>Xx,startV3Attempt:()=>pq,uploadV3Report:()=>hq});module.exports=bq(Bfe);var cq=require("node:zlib");Ic();var Hf=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),Yf={testRecommendationsImplementedHeader:o(e=>`\u{1F4A1} Test Recommendations Implemented (${e})`,"testRecommendationsImplementedHeader"),testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:o(e=>`${Hf(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${Hf(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${Hf(e)} reused`,"reused"),verified:o(e=>`${Hf(e)} verified`,"verified"),unresolved:o(e=>`${e} not resolvable to POM source (informational, not declines)`,"unresolved"),candidates:o(e=>`${e} candidate POM file${e===1?"":"s"} detected`,"candidates"),verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:o(e=>`kept inline: ${e}`,"keptInline"),gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:o(e=>`\u2705 Test Maintenance (${e})`,"testMaintenanceHeader"),maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:o(e=>`\u{1F9EA} Test Results (${e})`,"testResultsHeader"),columnVideo:"Video",videoDownloadLink:o(e=>`[\u{1F4F9} download](${e})`,"videoDownloadLink"),videosArtifactFallback:o(e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F Issues Found (${e})`,"issuesFoundHeader"),configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:o(e=>e?"passed against the running app":"passed","passed"),notRun:o(e=>e?"not run against a live app this run":"not run this run","notRun"),failedBug:o(e=>e?"failed against the running app":"failed","failedBug"),executedOf:o((e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,"executedOf"),noneExecuted:o(e=>e?"; none were executed against a live app this run.":"; none were executed this run.","noneExecuted")},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.",testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",failedAlone:o(e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,"failedAlone"),missingCaseResults:o((e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},"missingCaseResults"),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:o(e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,"mockedDependency"),finalizeNotReady:o(e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,"finalizeNotReady"),ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:o(e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,"ciNotCoveredBecause"),ciUnconfirmed:o(e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,"ciUnconfirmed"),sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:o(e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,"lintNotCovered"),analysisUnverified:o(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.`,"analysisUnverified"),unitTestsNotRun:o(e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,"unitTestsNotRun"),componentsNotTested:o(e=>`Not tested: changed parts of the code the plan did not test. ${e}`,"componentsNotTested"),componentsWithoutReason:o(e=>`The plan gave no reason for leaving out: ${e}.`,"componentsWithoutReason"),testSettingsDiffer:o(e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,"testSettingsDiffer"),downstreamNotChecked:o(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}`,"downstreamNotChecked"),browserBuildNotDeclared:o((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.`,"browserBuildNotDeclared"),testsCouldNotRunHere:o((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}`,"testsCouldNotRunHere"),modelProviderDenied:o((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.`,"modelProviderDenied"),modelProviderUnavailable:o((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.`,"modelProviderUnavailable"),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. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",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. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",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:o(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.`,"dataSafetyAuthCreates")},nextSteps:{componentMismatch:o((e,t,n,i)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${i}, the commit this run validates.`,"componentMismatch"),componentUnverified:o((e,t,n,i)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${i}, the commit this run validates: it reports ${n}.`,"componentUnverified"),componentUnread:o((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.`,"componentUnread"),deployCommit:o((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.`,"deployCommit")},providerOutageHeadline:o((e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,"providerOutageHeadline"),providerOutageActionStatusPage:o(e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`Testbot was rate-limited by ${e} (HTTP 429).`,"providerRateLimitHeadline"),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:o(e=>`The account behind ${e} has reached its usage limit.`,"providerUsageLimitHeadline"),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:o(e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,"providerAuthExpiredHeadline"),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:o(e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,"providerTimeoutHeadline"),providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:o(e=>`Tests for source pull request ${e}`,"testsSourcePullRequest"),requestedByPerson:o(e=>`Requested by ${e}`,"requestedByPerson"),requestedByPolicy:o(e=>`Started by the Validation Policy ${e}`,"requestedByPolicy"),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:o(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).`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,"unitTestsInFile"),addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:o((e,t)=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config. 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.`,"testPackageLine"),appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:o((e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,"dependencyChangeLine"),testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:o((e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,"trustedCheckPassed"),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:o((e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:o((e,t,n,i)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${i} executed)`,"coverageCaption"),coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:o((e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,"requirementsHeader"),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:o(e=>e?`${e} hook`:"commit hook","commitHook"),commitRefusedByHook:o((e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,"commitRefusedByHook"),commitHookCouldNotRun:o((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}\`.`,"commitHookCouldNotRun"),maintenanceActions:{},stoppedEarly:o((e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,"stoppedEarly"),viewInSkyramp:o(e=>` [View in Skyramp](${e})`,"viewInSkyramp"),largeReportSummary:o((e,t,n,i,r)=>`${e} requirements, ${t} clauses. Test results: ${n} Pass, ${i} Fail, ${r} Skipped.`,"largeReportSummary"),largeReportValidation:o((e,t,n)=>`Evidence: ${e}. ${t} (${n} gaps; see the full report.)`,"largeReportValidation"),largeReportNotice:"This report is too large for a pull request description. The full report includes every requirement and its evidence; review it on the run page before deciding whether the change is validated.",descriptionCut:o((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})`:""}_`,"descriptionCut"),testsReplaced:o((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(" "),"testsReplaced"),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:o(e=>`Unable to contact the mothership ${e}. Please try again later.`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot could not start: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(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.`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[View run](${e})_`,"viewRun"),testsPrNotOpened:o((e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,"testsPrNotOpened"),testsNotDelivered:o(e=>`The tests could not be delivered: ${e}`,"testsNotDelivered"),testsNotPushed:o((e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,"testsNotPushed"),testsPrRetargeted:o(e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,"testsPrRetargeted"),testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:o(e=>`The tests were committed but no PR was opened: ${e}.`,"committedNoPr"),testsNotProposed:o(e=>`The tests were not proposed in a pull request: ${e}.`,"testsNotProposed")}};var XP={testRecommendationsImplementedHeader:o(e=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08${e}\u4EF6\uFF09`,"testRecommendationsImplementedHeader"),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:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,"reusedThenVerified"),reused:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,"reused"),verified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,"verified"),unresolved:o(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`,"unresolved"),candidates:o(e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,"candidates"),verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:o(e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,"keptInline"),gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:o(e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,"testMaintenanceHeader"),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:o(e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,"testResultsHeader"),columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:o(e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,"videoDownloadLink"),videosArtifactFallback:o(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})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,"issuesFoundHeader"),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:o(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","passed"),notRun:o(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","notRun"),failedBug:o(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","failedBug"),executedOf:o((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`,"executedOf"),noneExecuted:o(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","noneExecuted")},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",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",failedAlone:o(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`,"failedAlone"),missingCaseResults:o((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}`},"missingCaseResults"),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:o(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`,"mockedDependency"),finalizeNotReady:o(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"}`,"finalizeNotReady"),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:o(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}`,"ciNotCoveredBecause"),ciUnconfirmed:o(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`,"ciUnconfirmed"),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:o(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`,"lintNotCovered"),analysisUnverified:o(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`,"analysisUnverified"),unitTestsNotRun:o(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}`,"unitTestsNotRun"),componentsNotTested:o(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}`,"componentsNotTested"),componentsWithoutReason:o(e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,"componentsWithoutReason"),testSettingsDiffer:o(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`,"testSettingsDiffer"),downstreamNotChecked:o(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}`,"downstreamNotChecked"),browserBuildNotDeclared:o((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`,"browserBuildNotDeclared"),testsCouldNotRunHere:o((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}`,"testsCouldNotRunHere"),modelProviderDenied:o((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`,"modelProviderDenied"),modelProviderUnavailable:o((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`,"modelProviderUnavailable"),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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\u30AC\u30FC\u30C9\u306E\u5BFE\u8C61\u5916\u306E\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u6307\u793A\u306B\u3088\u308B\u8981\u4EF6\u3067\u3042\u308A\u3001Testbot \u306F\u305D\u306E\u5B8C\u4E86\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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:o(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`,"dataSafetyAuthCreates")},nextSteps:{componentMismatch:o((e,t,n,i)=>`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 ${i} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,"componentMismatch"),componentUnverified:o((e,t,n,i)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${i} \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`,"componentUnverified"),componentUnread:o((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`,"componentUnread"),deployCommit:o((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`,"deployCommit")},providerOutageHeadline:o((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`,"providerOutageHeadline"),providerOutageActionStatusPage:o(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`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,"providerRateLimitHeadline"),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:o(e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,"providerUsageLimitHeadline"),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:o(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`,"providerAuthExpiredHeadline"),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:o(e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,"providerTimeoutHeadline"),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:o(e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,"testsSourcePullRequest"),requestedByPerson:o(e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,"requestedByPerson"),requestedByPolicy:o(e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,"requestedByPolicy"),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:o(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`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,"unitTestsInFile"),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:o((e,t)=>`\`${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\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`,"testPackageLine"),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:o((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}`:""}`,"dependencyChangeLine"),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:o((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:`,"trustedCheckPassed"),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:o((e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:o((e,t,n,i)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${i}\uFF09`,"coverageCaption"),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:o((e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,"requirementsHeader"),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:o(e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF","commitHook"),commitRefusedByHook:o((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`,"commitRefusedByHook"),commitHookCouldNotRun:o((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`,"commitHookCouldNotRun"),stoppedEarly:o((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}`,"stoppedEarly"),viewInSkyramp:o(e=>` [Skyramp \u3067\u8868\u793A](${e})`,"viewInSkyramp"),largeReportSummary:o((e,t,n,i,r)=>`\u8981\u4EF6 ${e} \u4EF6\u3001\u6761\u9805 ${t} \u4EF6\u3002\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${n} \u4EF6\u3001\u4E0D\u5408\u683C ${i} \u4EF6\u3001\u30B9\u30AD\u30C3\u30D7 ${r} \u4EF6\u3002`,"largeReportSummary"),largeReportValidation:o((e,t,n)=>`\u8A3C\u62E0: ${e}\u3002${t}\uFF08\u4E0D\u8DB3 ${n} \u4EF6\u3002\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\uFF09`,"largeReportValidation"),largeReportNotice:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u8AAC\u660E\u306B\u53CE\u307E\u308A\u307E\u305B\u3093\u3002\u3059\u3079\u3066\u306E\u8981\u4EF6\u3068\u8A3C\u62E0\u3092\u542B\u3080\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8\u3092\u5B9F\u884C\u30DA\u30FC\u30B8\u3067\u78BA\u8A8D\u3057\u3066\u304B\u3089\u3001\u5909\u66F4\u304C\u691C\u8A3C\u3055\u308C\u305F\u304B\u5224\u65AD\u3057\u3066\u304F\u3060\u3055\u3044\u3002",descriptionCut:o((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})`:""}_`,"descriptionCut"),testsReplaced:o((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(""),"testsReplaced"),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:o(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`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(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`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,"viewRun"),testsPrNotOpened:o((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`,"testsPrNotOpened"),testsNotDelivered:o(e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"testsNotDelivered"),testsNotPushed:o((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`,"testsNotPushed"),testsPrRetargeted:o(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`,"testsPrRetargeted"),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:o(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`,"committedNoPr"),testsNotProposed:o(e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,"testsNotProposed")}};var S7={en:Yf,ja:XP},R7="en";function ko(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(ko,"labelOf");function oe(){return S7[R7]}o(oe,"t");var tM=4,nM="\xABredacted\xBB";function rv(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=tM&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(rv,"redactionsFrom");function x7(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(x7,"redactGitCredentials");function $i(e,t){if(!e||t.length===0)return e;let n=e;for(let i of t)!i||!n.includes(i)||(n=n.split(i).join(nM));return n}o($i,"redactSecrets");function Wf(e,t){return $i(x7(e),t)}o(Wf,"redactCredentials");function $7(e,t){let n=o(i=>typeof i=="string"?t(i):Array.isArray(i)?i.map(n):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([r,s])=>[r,n(s)])):i,"walk");return n(e)}o($7,"mapStrings");function Cc(e,t){return t.length===0?e:$7(e,n=>$i(n,t))}o(Cc,"redactDeep");var fEe=new TextDecoder("utf-8",{fatal:!0});var iM=600,Zf=300;function rM(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(rM,"streamText");function T7(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[rM(t?.stderr),rM(t?.stdout)].filter(Boolean);return i.length?[n.split(`
51
51
  `)[0],...i].join(`
52
52
  `):n}o(T7,"thrownText");function sM(e,t,n,i=0){let r=e.join(t);if(r.length<=n)return r;let[s="",...a]=e;if(!a.length)return`${s.slice(0,n-1)}\u2026`;let c=s.length<=i?s:s.slice(0,Math.floor(n/3)),u=n-c.length-t.length-1;return`${c}${t}\u2026${a.join(t).slice(-u)}`}o(sM,"headAndTail");function oM(e,t){return sM(e.trim().split(`
53
53
  `),`
54
54
  `,t)}o(oM,"boundedFailureText");function So(e){return Wf(T7(e),[]).trim()}o(So,"commandFailureText");var D7=/^(.*?:\s*)?Command failed: (?:git|gh)\b.*$/;function Yl(e,t=Zf){let[n="",...i]=e.split(`
55
55
  `).map(a=>a.trim()).filter(Boolean),r=i.length?D7.exec(n):null,s=r?[`${r[1]??""}${i[0]}`,...i.slice(1)]:[n,...i];return sM(s," ",t,Math.floor(t*2/3))}o(Yl,"failureReason");function Wl(e){return e.replace(new RegExp("\x1B\\[[0-9;]*m","g"),"")}o(Wl,"stripAnsi");function _7(e){let t=/^(yarn run v|info Visit|error Command failed|npm ERR!|husky\b|\$ )/i,n=Wl(e).split(`
56
- `).map(a=>a.trim()).filter(Boolean),i=n.filter(a=>!t.test(a)),r=i.length?i:n;return[...r].reverse().find(a=>/(error|warning|problem|✖|✗|✘|fail|not listed|cannot|denied)/i.test(a))??r[r.length-1]??"(no output)"}o(_7,"hookSummary");function aM(e){if(!/\bhook\b|husky|pre-commit|lint-staged/i.test(e))return;let t=_7(e),n=oe().staged.commitHook(/husky\s*[->]\s*([\w-]+)\s+(?:script|hook)\b/i.exec(Wl(e))?.[1]);return/\(code 127\)|exit code 127/i.test(e)||/command not found|: not found$/i.test(t)?oe().staged.commitHookCouldNotRun(n,t):oe().staged.commitRefusedByHook(n,t)}o(aM,"hookRefusal");var d={};wr(d,{BRAND:()=>oee,DIRTY:()=>Ro,EMPTY_PATH:()=>P7,INVALID:()=>me,NEVER:()=>Vee,OK:()=>en,ParseStatus:()=>Ot,Schema:()=>Te,ZodAny:()=>bs,ZodArray:()=>Ni,ZodBigInt:()=>$o,ZodBoolean:()=>To,ZodBranded:()=>Kl,ZodCatch:()=>Go,ZodDate:()=>Do,ZodDefault:()=>jo,ZodDiscriminatedUnion:()=>eg,ZodEffects:()=>Ar,ZodEnum:()=>Lo,ZodError:()=>xn,ZodFirstPartyTypeKind:()=>Ce,ZodFunction:()=>ng,ZodIntersection:()=>Fo,ZodIssueCode:()=>O,ZodLazy:()=>Po,ZodLiteral:()=>Mo,ZodMap:()=>kc,ZodNaN:()=>Rc,ZodNativeEnum:()=>Oo,ZodNever:()=>_r,ZodNull:()=>No,ZodNullable:()=>ni,ZodNumber:()=>xo,ZodObject:()=>$n,ZodOptional:()=>lr,ZodParsedType:()=>X,ZodPipeline:()=>Xl,ZodPromise:()=>ws,ZodReadonly:()=>Vo,ZodRecord:()=>tg,ZodSchema:()=>Te,ZodSet:()=>Sc,ZodString:()=>vs,ZodSymbol:()=>Bc,ZodTransformer:()=>Ar,ZodTuple:()=>ti,ZodType:()=>Te,ZodUndefined:()=>_o,ZodUnion:()=>Uo,ZodUnknown:()=>_i,ZodVoid:()=>Qc,addIssueToContext:()=>W,any:()=>gee,array:()=>Eee,bigint:()=>lee,boolean:()=>yM,coerce:()=>Gee,custom:()=>gM,date:()=>dee,datetimeRegex:()=>pM,defaultErrorMap:()=>Ti,discriminatedUnion:()=>bee,effect:()=>Nee,enum:()=>Tee,function:()=>Ree,getErrorMap:()=>vc,getParsedType:()=>ei,instanceof:()=>cee,intersection:()=>wee,isAborted:()=>Kf,isAsync:()=>bc,isDirty:()=>Xf,isValid:()=>Cs,late:()=>aee,lazy:()=>xee,literal:()=>$ee,makeIssue:()=>Zl,map:()=>kee,nan:()=>uee,nativeEnum:()=>Dee,never:()=>mee,null:()=>fee,nullable:()=>Fee,number:()=>mM,object:()=>Iee,objectUtil:()=>iv,oboolean:()=>jee,onumber:()=>Oee,optional:()=>Uee,ostring:()=>Lee,pipeline:()=>Mee,preprocess:()=>Pee,promise:()=>_ee,quotelessJson:()=>N7,record:()=>Qee,set:()=>See,setErrorMap:()=>F7,strictObject:()=>Cee,string:()=>hM,symbol:()=>Aee,transformer:()=>Nee,tuple:()=>Bee,undefined:()=>pee,union:()=>vee,unknown:()=>hee,util:()=>Me,void:()=>yee});var Me;(function(e){e.assertEqual=r=>{};function t(r){}o(t,"assertIs"),e.assertIs=t;function n(r){throw new Error}o(n,"assertNever"),e.assertNever=n,e.arrayToEnum=r=>{let s={};for(let a of r)s[a]=a;return s},e.getValidEnumValues=r=>{let s=e.objectKeys(r).filter(c=>typeof r[r[c]]!="number"),a={};for(let c of s)a[c]=r[c];return e.objectValues(a)},e.objectValues=r=>e.objectKeys(r).map(function(s){return r[s]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let s=[];for(let a in r)Object.prototype.hasOwnProperty.call(r,a)&&s.push(a);return s},e.find=(r,s)=>{for(let a of r)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function i(r,s=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}o(i,"joinValues"),e.joinValues=i,e.jsonStringifyReplacer=(r,s)=>typeof s=="bigint"?s.toString():s})(Me||(Me={}));var iv;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(iv||(iv={}));var X=Me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ei=o(e=>{switch(typeof e){case"undefined":return X.undefined;case"string":return X.string;case"number":return Number.isNaN(e)?X.nan:X.number;case"boolean":return X.boolean;case"function":return X.function;case"bigint":return X.bigint;case"symbol":return X.symbol;case"object":return Array.isArray(e)?X.array:e===null?X.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?X.promise:typeof Map<"u"&&e instanceof Map?X.map:typeof Set<"u"&&e instanceof Set?X.set:typeof Date<"u"&&e instanceof Date?X.date:X.object;default:return X.unknown}},"getParsedType");var O=Me.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"]),N7=o(e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),"quotelessJson"),xn=class e extends Error{static{o(this,"ZodError")}get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};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(s){return s.message},i={_errors:[]},r=o(s=>{for(let a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)i._errors.push(n(a));else{let c=i,u=0;for(;u<a.path.length;){let l=a.path[u],A=u===a.path.length-1;if(l==="_errors"){A&&c._errors.push(n(a)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||(l==="__proto__"?Object.defineProperty(c,l,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0}):c[l]={_errors:[]}),c=c[l],A&&c._errors.push(n(a)),u++}}},"processError");return r(this),i}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,Me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n=Object.create(null),i=[];for(let r of this.issues)if(r.path.length>0){let s=r.path[0];n[s]=n[s]||[],n[s].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};xn.create=e=>new xn(e);var U7=o((e,t)=>{let n;switch(e.code){case O.invalid_type:e.received===X.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case O.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Me.jsonStringifyReplacer)}`;break;case O.unrecognized_keys:n=`Unrecognized key(s) in object: ${Me.joinValues(e.keys,", ")}`;break;case O.invalid_union:n="Invalid input";break;case O.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Me.joinValues(e.options)}`;break;case O.invalid_enum_value:n=`Invalid enum value. Expected ${Me.joinValues(e.options)}, received '${e.received}'`;break;case O.invalid_arguments:n="Invalid function arguments";break;case O.invalid_return_type:n="Invalid function return type";break;case O.invalid_date:n="Invalid date";break;case O.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}"`:Me.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case O.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 O.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 O.custom:n="Invalid input";break;case O.invalid_intersection_types:n="Intersection results could not be merged";break;case O.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case O.not_finite:n="Number must be finite";break;default:n=t.defaultError,Me.assertNever(e)}return{message:n}},"errorMap"),Ti=U7;var cM=Ti;function F7(e){cM=e}o(F7,"setErrorMap");function vc(){return cM}o(vc,"getErrorMap");var Zl=o(e=>{let{data:t,path:n,errorMaps:i,issueData:r}=e,s=[...n,...r.path||[]],a={...r,path:s};if(r.message!==void 0)return{...r,path:s,message:r.message};let c="",u=i.filter(l=>!!l).slice().reverse();for(let l of u)c=l(a,{data:t,defaultError:c}).message;return{...r,path:s,message:c}},"makeIssue"),P7=[];function W(e,t){let n=vc(),i=Zl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ti?void 0:Ti].filter(r=>!!r)});e.common.issues.push(i)}o(W,"addIssueToContext");var Ot=class e{static{o(this,"ParseStatus")}constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let i=[];for(let r of n){if(r.status==="aborted")return me;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){let i=[];for(let r of n){let s=await r.key,a=await r.value;i.push({key:s,value:a})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,n){let i={};for(let r of n){let{key:s,value:a}=r;if(s.status==="aborted"||a.status==="aborted")return me;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(i[s.value]=a.value)}return{status:t.value,value:i}}},me=Object.freeze({status:"aborted"}),Ro=o(e=>({status:"dirty",value:e}),"DIRTY"),en=o(e=>({status:"valid",value:e}),"OK"),Kf=o(e=>e.status==="aborted","isAborted"),Xf=o(e=>e.status==="dirty","isDirty"),Cs=o(e=>e.status==="valid","isValid"),bc=o(e=>typeof Promise<"u"&&e instanceof Promise,"isAsync");var se;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(se||(se={}));var dr=class{static{o(this,"ParseInputLazyPath")}constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,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}},uM=o((e,t)=>{if(Cs(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 xn(e.common.issues);return this._error=n,this._error}}},"handleResult");function Se(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))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,c)=>{let{message:u}=e;return a.code==="invalid_enum_value"?{message:u??c.defaultError}:typeof c.data>"u"?{message:u??i??c.defaultError}:a.code!=="invalid_type"?{message:c.defaultError}:{message:u??n??c.defaultError}},"customMap"),description:r}}o(Se,"processCreateParams");var Te=class{static{o(this,"ZodType")}get description(){return this._def.description}_getType(t){return ei(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ei(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ot,ctx:{common:t.parent.common,data:t.data,parsedType:ei(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(bc(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 i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ei(t)},r=this._parseSync({data:t,path:i.path,parent:i});return uM(i,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ei(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:n});return Cs(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>Cs(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){let i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ei(t)},r=this._parse({data:t,path:i.path,parent:i}),s=await(bc(r)?r:Promise.resolve(r));return uM(i,s)}refine(t,n){let i=o(r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n,"getIssueProperties");return this._refinement((r,s)=>{let a=t(r),c=o(()=>s.addIssue({code:O.custom,...i(r)}),"setError");return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(c(),!1)):a?!0:(c(),!1)})}refinement(t,n){return this._refinement((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new Ar({schema:this,typeName:Ce.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:o(n=>this["~validate"](n),"validate")}}optional(){return lr.create(this,this._def)}nullable(){return ni.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ni.create(this)}promise(){return ws.create(this,this._def)}or(t){return Uo.create([this,t],this._def)}and(t){return Fo.create(this,t,this._def)}transform(t){return new Ar({...Se(this._def),schema:this,typeName:Ce.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new jo({...Se(this._def),innerType:this,defaultValue:n,typeName:Ce.ZodDefault})}brand(){return new Kl({typeName:Ce.ZodBranded,type:this,...Se(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Go({...Se(this._def),innerType:this,catchValue:n,typeName:Ce.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Xl.create(this,t)}readonly(){return Vo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},M7=/^c[^\s-]{8,}$/i,L7=/^[0-9a-z]+$/,O7=/^[0-9A-HJKMNP-TV-Z]{26}$/i,j7=/^[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,G7=/^[a-z0-9_-]{21}$/i,V7=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,z7=/^[-+]?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)?)??$/,q7=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,J7="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",sv,H7=/^(?:(?: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])$/,Y7=/^(?:(?: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])$/,W7=/^(([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]))$/,Z7=/^(([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])$/,K7=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,X7=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dM="((\\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])))",eee=new RegExp(`^${dM}$`);function AM(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}`}o(AM,"timeRegexSource");function tee(e){return new RegExp(`^${AM(e)}$`)}o(tee,"timeRegex");function pM(e){let t=`${dM}T${AM(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}o(pM,"datetimeRegex");function nee(e,t){return!!((t==="v4"||!t)&&H7.test(e)||(t==="v6"||!t)&&W7.test(e))}o(nee,"isValidIP");function ree(e,t){if(!V7.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}o(ree,"isValidJWT");function iee(e,t){return!!((t==="v4"||!t)&&Y7.test(e)||(t==="v6"||!t)&&Z7.test(e))}o(iee,"isValidCidr");var vs=class e extends Te{static{o(this,"ZodString")}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==X.string){let s=this._getOrReturnCtx(t);return W(s,{code:O.invalid_type,expected:X.string,received:s.parsedType}),me}let i=new Ot,r;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:O.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")t.data.length>s.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:O.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let a=t.data.length>s.value,c=t.data.length<s.value;(a||c)&&(r=this._getOrReturnCtx(t,r),a?W(r,{code:O.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):c&&W(r,{code:O.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")q7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"email",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")sv||(sv=new RegExp(J7,"u")),sv.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"emoji",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")j7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"uuid",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")G7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"nanoid",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")M7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")L7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid2",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")O7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ulid",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),W(r,{validation:"url",code:O.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"regex",code:O.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?pM(s).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?eee.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?tee(s).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?z7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"duration",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?nee(t.data,s.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ip",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="jwt"?ree(t.data,s.alg)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"jwt",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="cidr"?iee(t.data,s.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cidr",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?K7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="base64url"?X7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64url",code:O.invalid_string,message:s.message}),i.dirty()):Me.assertNever(s);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:O.invalid_string,...se.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...se.errToObj(t)})}url(t){return this._addCheck({kind:"url",...se.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...se.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...se.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...se.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...se.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...se.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...se.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...se.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...se.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...se.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...se.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...se.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,...se.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,...se.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...se.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...se.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...se.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...se.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...se.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...se.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...se.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...se.errToObj(n)})}nonempty(t){return this.min(1,se.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}};vs.create=e=>new vs({checks:[],typeName:Ce.ZodString,coerce:e?.coerce??!1,...Se(e)});function see(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,s=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return s%a/10**r}o(see,"floatSafeRemainder");var xo=class e extends Te{static{o(this,"ZodNumber")}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)!==X.number){let s=this._getOrReturnCtx(t);return W(s,{code:O.invalid_type,expected:X.number,received:s.parsedType}),me}let i,r=new Ot;for(let s of this._def.checks)s.kind==="int"?Me.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{code:O.invalid_type,expected:"integer",received:"float",message:s.message}),r.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="multipleOf"?see(t.data,s.value)!==0&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{code:O.not_finite,message:s.message}),r.dirty()):Me.assertNever(s);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,se.toString(n))}gt(t,n){return this.setLimit("min",t,!1,se.toString(n))}lte(t,n){return this.setLimit("max",t,!0,se.toString(n))}lt(t,n){return this.setLimit("max",t,!1,se.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:se.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:se.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:se.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:se.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:se.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:se.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:se.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"&&Me.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}};xo.create=e=>new xo({checks:[],typeName:Ce.ZodNumber,coerce:e?.coerce||!1,...Se(e)});var $o=class e extends Te{static{o(this,"ZodBigInt")}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)!==X.bigint)return this._getInvalidInput(t);let i,r=new Ot;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):Me.assertNever(s);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return W(n,{code:O.invalid_type,expected:X.bigint,received:n.parsedType}),me}gte(t,n){return this.setLimit("min",t,!0,se.toString(n))}gt(t,n){return this.setLimit("min",t,!1,se.toString(n))}lte(t,n){return this.setLimit("max",t,!0,se.toString(n))}lt(t,n){return this.setLimit("max",t,!1,se.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:se.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:se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:se.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:se.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}};$o.create=e=>new $o({checks:[],typeName:Ce.ZodBigInt,coerce:e?.coerce??!1,...Se(e)});var To=class extends Te{static{o(this,"ZodBoolean")}_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==X.boolean){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.boolean,received:i.parsedType}),me}return en(t.data)}};To.create=e=>new To({typeName:Ce.ZodBoolean,coerce:e?.coerce||!1,...Se(e)});var Do=class e extends Te{static{o(this,"ZodDate")}_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==X.date){let s=this._getOrReturnCtx(t);return W(s,{code:O.invalid_type,expected:X.date,received:s.parsedType}),me}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return W(s,{code:O.invalid_date}),me}let i=new Ot,r;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:O.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:O.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Me.assertNever(s);return{status:i.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:se.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:se.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}};Do.create=e=>new Do({checks:[],coerce:e?.coerce||!1,typeName:Ce.ZodDate,...Se(e)});var Bc=class extends Te{static{o(this,"ZodSymbol")}_parse(t){if(this._getType(t)!==X.symbol){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.symbol,received:i.parsedType}),me}return en(t.data)}};Bc.create=e=>new Bc({typeName:Ce.ZodSymbol,...Se(e)});var _o=class extends Te{static{o(this,"ZodUndefined")}_parse(t){if(this._getType(t)!==X.undefined){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.undefined,received:i.parsedType}),me}return en(t.data)}};_o.create=e=>new _o({typeName:Ce.ZodUndefined,...Se(e)});var No=class extends Te{static{o(this,"ZodNull")}_parse(t){if(this._getType(t)!==X.null){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.null,received:i.parsedType}),me}return en(t.data)}};No.create=e=>new No({typeName:Ce.ZodNull,...Se(e)});var bs=class extends Te{static{o(this,"ZodAny")}constructor(){super(...arguments),this._any=!0}_parse(t){return en(t.data)}};bs.create=e=>new bs({typeName:Ce.ZodAny,...Se(e)});var _i=class extends Te{static{o(this,"ZodUnknown")}constructor(){super(...arguments),this._unknown=!0}_parse(t){return en(t.data)}};_i.create=e=>new _i({typeName:Ce.ZodUnknown,...Se(e)});var _r=class extends Te{static{o(this,"ZodNever")}_parse(t){let n=this._getOrReturnCtx(t);return W(n,{code:O.invalid_type,expected:X.never,received:n.parsedType}),me}};_r.create=e=>new _r({typeName:Ce.ZodNever,...Se(e)});var Qc=class extends Te{static{o(this,"ZodVoid")}_parse(t){if(this._getType(t)!==X.undefined){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.void,received:i.parsedType}),me}return en(t.data)}};Qc.create=e=>new Qc({typeName:Ce.ZodVoid,...Se(e)});var Ni=class e extends Te{static{o(this,"ZodArray")}_parse(t){let{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==X.array)return W(n,{code:O.invalid_type,expected:X.array,received:n.parsedType}),me;if(r.exactLength!==null){let a=n.data.length>r.exactLength.value,c=n.data.length<r.exactLength.value;(a||c)&&(W(n,{code:a?O.too_big:O.too_small,minimum:c?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(W(n,{code:O.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(W(n,{code:O.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((a,c)=>r.type._parseAsync(new dr(n,a,n.path,c)))).then(a=>Ot.mergeArray(i,a));let s=[...n.data].map((a,c)=>r.type._parseSync(new dr(n,a,n.path,c)));return Ot.mergeArray(i,s)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:se.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:se.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:se.toString(n)}})}nonempty(t){return this.min(1,t)}};Ni.create=(e,t)=>new Ni({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ce.ZodArray,...Se(t)});function wc(e){if(e instanceof $n){let t={};for(let n in e.shape){let i=e.shape[n];t[n]=lr.create(wc(i))}return new $n({...e._def,shape:o(()=>t,"shape")})}else return e instanceof Ni?new Ni({...e._def,type:wc(e.element)}):e instanceof lr?lr.create(wc(e.unwrap())):e instanceof ni?ni.create(wc(e.unwrap())):e instanceof ti?ti.create(e.items.map(t=>wc(t))):e}o(wc,"deepPartialify");var $n=class e extends Te{static{o(this,"ZodObject")}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=Me.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==X.object){let l=this._getOrReturnCtx(t);return W(l,{code:O.invalid_type,expected:X.object,received:l.parsedType}),me}let{status:i,ctx:r}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),c=[];if(!(this._def.catchall instanceof _r&&this._def.unknownKeys==="strip"))for(let l in r.data)a.includes(l)||c.push(l);let u=[];for(let l of a){let A=s[l],p=r.data[l];u.push({key:{status:"valid",value:l},value:A._parse(new dr(r,p,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof _r){let l=this._def.unknownKeys;if(l==="passthrough")for(let A of c)u.push({key:{status:"valid",value:A},value:{status:"valid",value:r.data[A]}});else if(l==="strict")c.length>0&&(W(r,{code:O.unrecognized_keys,keys:c}),i.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let A of c){let p=r.data[A];u.push({key:{status:"valid",value:A},value:l._parse(new dr(r,p,r.path,A)),alwaysSet:A in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let l=[];for(let A of u){let p=await A.key,g=await A.value;l.push({key:p,value:g,alwaysSet:A.alwaysSet})}return l}).then(l=>Ot.mergeObjectSync(i,l)):Ot.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(t){return se.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:o((n,i)=>{let r=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:se.errToObj(t).message??r}:{message:r}},"errorMap")}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:o(()=>({...this._def.shape(),...t}),"shape")})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:o(()=>({...this._def.shape(),...t._def.shape()}),"shape"),typeName:Ce.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let i of Me.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new e({...this._def,shape:o(()=>n,"shape")})}omit(t){let n={};for(let i of Me.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new e({...this._def,shape:o(()=>n,"shape")})}deepPartial(){return wc(this)}partial(t){let n={};for(let i of Me.objectKeys(this.shape)){let r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new e({...this._def,shape:o(()=>n,"shape")})}required(t){let n={};for(let i of Me.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof lr;)s=s._def.innerType;n[i]=s}return new e({...this._def,shape:o(()=>n,"shape")})}keyof(){return fM(Me.objectKeys(this.shape))}};$n.create=(e,t)=>new $n({shape:o(()=>e,"shape"),unknownKeys:"strip",catchall:_r.create(),typeName:Ce.ZodObject,...Se(t)});$n.strictCreate=(e,t)=>new $n({shape:o(()=>e,"shape"),unknownKeys:"strict",catchall:_r.create(),typeName:Ce.ZodObject,...Se(t)});$n.lazycreate=(e,t)=>new $n({shape:e,unknownKeys:"strip",catchall:_r.create(),typeName:Ce.ZodObject,...Se(t)});var Uo=class extends Te{static{o(this,"ZodUnion")}_parse(t){let{ctx:n}=this._processInputParams(t),i=this._def.options;function r(s){for(let c of s)if(c.result.status==="valid")return c.result;for(let c of s)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;let a=s.map(c=>new xn(c.ctx.common.issues));return W(n,{code:O.invalid_union,unionErrors:a}),me}if(o(r,"handleResults"),n.common.async)return Promise.all(i.map(async s=>{let a={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let s,a=[];for(let u of i){let l={...n,common:{...n.common,issues:[]},parent:null},A=u._parseSync({data:n.data,path:n.path,parent:l});if(A.status==="valid")return A;A.status==="dirty"&&!s&&(s={result:A,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;let c=a.map(u=>new xn(u));return W(n,{code:O.invalid_union,unionErrors:c}),me}}get options(){return this._def.options}};Uo.create=(e,t)=>new Uo({options:e,typeName:Ce.ZodUnion,...Se(t)});var Di=o(e=>e instanceof Po?Di(e.schema):e instanceof Ar?Di(e.innerType()):e instanceof Mo?[e.value]:e instanceof Lo?e.options:e instanceof Oo?Me.objectValues(e.enum):e instanceof jo?Di(e._def.innerType):e instanceof _o?[void 0]:e instanceof No?[null]:e instanceof lr?[void 0,...Di(e.unwrap())]:e instanceof ni?[null,...Di(e.unwrap())]:e instanceof Kl||e instanceof Vo?Di(e.unwrap()):e instanceof Go?Di(e._def.innerType):[],"getDiscriminator"),eg=class e extends Te{static{o(this,"ZodDiscriminatedUnion")}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==X.object)return W(n,{code:O.invalid_type,expected:X.object,received:n.parsedType}),me;let i=this.discriminator,r=n.data[i],s=this.optionsMap.get(r);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(W(n,{code:O.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){let r=new Map;for(let s of n){let a=Di(s.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let c of a){if(r.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);r.set(c,s)}}return new e({typeName:Ce.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...Se(i)})}};function ov(e,t){let n=ei(e),i=ei(t);if(e===t)return{valid:!0,data:e};if(n===X.object&&i===X.object){let r=Me.objectKeys(t),s=Me.objectKeys(e).filter(c=>r.indexOf(c)!==-1),a={...e,...t};Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__;for(let c of s){if(c==="__proto__")continue;let u=ov(e[c],t[c]);if(!u.valid)return{valid:!1};a[c]=u.data}return{valid:!0,data:a}}else if(n===X.array&&i===X.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let s=0;s<e.length;s++){let a=e[s],c=t[s],u=ov(a,c);if(!u.valid)return{valid:!1};r.push(u.data)}return{valid:!0,data:r}}else return n===X.date&&i===X.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}o(ov,"mergeValues");var Fo=class extends Te{static{o(this,"ZodIntersection")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=o((s,a)=>{if(Kf(s)||Kf(a))return me;let c=ov(s.value,a.value);return c.valid?((Xf(s)||Xf(a))&&n.dirty(),{status:n.value,value:c.data}):(W(i,{code:O.invalid_intersection_types}),me)},"handleParsed");return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,a])=>r(s,a)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Fo.create=(e,t,n)=>new Fo({left:e,right:t,typeName:Ce.ZodIntersection,...Se(n)});var ti=class e extends Te{static{o(this,"ZodTuple")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==X.array)return W(i,{code:O.invalid_type,expected:X.array,received:i.parsedType}),me;if(i.data.length<this._def.items.length)return W(i,{code:O.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&i.data.length>this._def.items.length&&(W(i,{code:O.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let s=[...i.data].map((a,c)=>{let u=this._def.items[c]||this._def.rest;return u?u._parse(new dr(i,a,i.path,c)):null}).filter(a=>!!a);return i.common.async?Promise.all(s).then(a=>Ot.mergeArray(n,a)):Ot.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ti.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ti({items:e,typeName:Ce.ZodTuple,rest:null,...Se(t)})};var tg=class e extends Te{static{o(this,"ZodRecord")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==X.object)return W(i,{code:O.invalid_type,expected:X.object,received:i.parsedType}),me;let r=[],s=this._def.keyType,a=this._def.valueType;for(let c in i.data)r.push({key:s._parse(new dr(i,c,i.path,c)),value:a._parse(new dr(i,i.data[c],i.path,c)),alwaysSet:c in i.data});return i.common.async?Ot.mergeObjectAsync(n,r):Ot.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof Te?new e({keyType:t,valueType:n,typeName:Ce.ZodRecord,...Se(i)}):new e({keyType:vs.create(),valueType:t,typeName:Ce.ZodRecord,...Se(n)})}},kc=class extends Te{static{o(this,"ZodMap")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==X.map)return W(i,{code:O.invalid_type,expected:X.map,received:i.parsedType}),me;let r=this._def.keyType,s=this._def.valueType,a=[...i.data.entries()].map(([c,u],l)=>({key:r._parse(new dr(i,c,i.path,[l,"key"])),value:s._parse(new dr(i,u,i.path,[l,"value"]))}));if(i.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let u of a){let l=await u.key,A=await u.value;if(l.status==="aborted"||A.status==="aborted")return me;(l.status==="dirty"||A.status==="dirty")&&n.dirty(),c.set(l.value,A.value)}return{status:n.value,value:c}})}else{let c=new Map;for(let u of a){let l=u.key,A=u.value;if(l.status==="aborted"||A.status==="aborted")return me;(l.status==="dirty"||A.status==="dirty")&&n.dirty(),c.set(l.value,A.value)}return{status:n.value,value:c}}}};kc.create=(e,t,n)=>new kc({valueType:t,keyType:e,typeName:Ce.ZodMap,...Se(n)});var Sc=class e extends Te{static{o(this,"ZodSet")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==X.set)return W(i,{code:O.invalid_type,expected:X.set,received:i.parsedType}),me;let r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(W(i,{code:O.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(W(i,{code:O.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let s=this._def.valueType;function a(u){let l=new Set;for(let A of u){if(A.status==="aborted")return me;A.status==="dirty"&&n.dirty(),l.add(A.value)}return{status:n.value,value:l}}o(a,"finalizeSet");let c=[...i.data.values()].map((u,l)=>s._parse(new dr(i,u,i.path,l)));return i.common.async?Promise.all(c).then(u=>a(u)):a(c)}min(t,n){return new e({...this._def,minSize:{value:t,message:se.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:se.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Sc.create=(e,t)=>new Sc({valueType:e,minSize:null,maxSize:null,typeName:Ce.ZodSet,...Se(t)});var ng=class e extends Te{static{o(this,"ZodFunction")}constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==X.function)return W(n,{code:O.invalid_type,expected:X.function,received:n.parsedType}),me;function i(c,u){return Zl({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,vc(),Ti].filter(l=>!!l),issueData:{code:O.invalid_arguments,argumentsError:u}})}o(i,"makeArgsIssue");function r(c,u){return Zl({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,vc(),Ti].filter(l=>!!l),issueData:{code:O.invalid_return_type,returnTypeError:u}})}o(r,"makeReturnsIssue");let s={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof ws){let c=this;return en(async function(...u){let l=new xn([]),A=await c._def.args.parseAsync(u,s).catch(h=>{throw l.addIssue(i(u,h)),l}),p=await Reflect.apply(a,this,A);return await c._def.returns._def.type.parseAsync(p,s).catch(h=>{throw l.addIssue(r(p,h)),l})})}else{let c=this;return en(function(...u){let l=c._def.args.safeParse(u,s);if(!l.success)throw new xn([i(u,l.error)]);let A=Reflect.apply(a,this,l.data),p=c._def.returns.safeParse(A,s);if(!p.success)throw new xn([r(A,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ti.create(t).rest(_i.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,i){return new e({args:t||ti.create([]).rest(_i.create()),returns:n||_i.create(),typeName:Ce.ZodFunction,...Se(i)})}},Po=class extends Te{static{o(this,"ZodLazy")}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})}};Po.create=(e,t)=>new Po({getter:e,typeName:Ce.ZodLazy,...Se(t)});var Mo=class extends Te{static{o(this,"ZodLiteral")}_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return W(n,{received:n.data,code:O.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:t.data}}get value(){return this._def.value}};Mo.create=(e,t)=>new Mo({value:e,typeName:Ce.ZodLiteral,...Se(t)});function fM(e,t){return new Lo({values:e,typeName:Ce.ZodEnum,...Se(t)})}o(fM,"createZodEnum");var Lo=class e extends Te{static{o(this,"ZodEnum")}_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),i=this._def.values;return W(n,{expected:Me.joinValues(i),received:n.parsedType,code:O.invalid_type}),me}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),i=this._def.values;return W(n,{received:n.data,code:O.invalid_enum_value,options:i}),me}return en(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(i=>!t.includes(i)),{...this._def,...n})}};Lo.create=fM;var Oo=class extends Te{static{o(this,"ZodNativeEnum")}_parse(t){let n=Me.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==X.string&&i.parsedType!==X.number){let r=Me.objectValues(n);return W(i,{expected:Me.joinValues(r),received:i.parsedType,code:O.invalid_type}),me}if(this._cache||(this._cache=new Set(Me.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=Me.objectValues(n);return W(i,{received:i.data,code:O.invalid_enum_value,options:r}),me}return en(t.data)}get enum(){return this._def.values}};Oo.create=(e,t)=>new Oo({values:e,typeName:Ce.ZodNativeEnum,...Se(t)});var ws=class extends Te{static{o(this,"ZodPromise")}unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==X.promise&&n.common.async===!1)return W(n,{code:O.invalid_type,expected:X.promise,received:n.parsedType}),me;let i=n.parsedType===X.promise?n.data:Promise.resolve(n.data);return en(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};ws.create=(e,t)=>new ws({type:e,typeName:Ce.ZodPromise,...Se(t)});var Ar=class extends Te{static{o(this,"ZodEffects")}innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,s={addIssue:o(a=>{W(i,a),a.fatal?n.abort():n.dirty()},"addIssue"),get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),r.type==="preprocess"){let a=r.transform(i.data,s);if(i.common.async)return Promise.resolve(a).then(async c=>{if(n.value==="aborted")return me;let u=await this._def.schema._parseAsync({data:c,path:i.path,parent:i});return u.status==="aborted"?me:u.status==="dirty"?Ro(u.value):n.value==="dirty"?Ro(u.value):u});{if(n.value==="aborted")return me;let c=this._def.schema._parseSync({data:a,path:i.path,parent:i});return c.status==="aborted"?me:c.status==="dirty"?Ro(c.value):n.value==="dirty"?Ro(c.value):c}}if(r.type==="refinement"){let a=o(c=>{let u=r.refinement(c,s);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c},"executeRefinement");if(i.common.async===!1){let c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?me:(c.status==="dirty"&&n.dirty(),a(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?me:(c.status==="dirty"&&n.dirty(),a(c.value).then(()=>({status:n.value,value:c.value}))))}if(r.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Cs(a))return me;let c=r.transform(a.value,s);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>Cs(a)?Promise.resolve(r.transform(a.value,s)).then(c=>({status:n.value,value:c})):me);Me.assertNever(r)}};Ar.create=(e,t,n)=>new Ar({schema:e,typeName:Ce.ZodEffects,effect:t,...Se(n)});Ar.createWithPreprocess=(e,t,n)=>new Ar({schema:t,effect:{type:"preprocess",transform:e},typeName:Ce.ZodEffects,...Se(n)});var lr=class extends Te{static{o(this,"ZodOptional")}_parse(t){return this._getType(t)===X.undefined?en(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};lr.create=(e,t)=>new lr({innerType:e,typeName:Ce.ZodOptional,...Se(t)});var ni=class extends Te{static{o(this,"ZodNullable")}_parse(t){return this._getType(t)===X.null?en(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ni.create=(e,t)=>new ni({innerType:e,typeName:Ce.ZodNullable,...Se(t)});var jo=class extends Te{static{o(this,"ZodDefault")}_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return n.parsedType===X.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};jo.create=(e,t)=>new jo({innerType:e,typeName:Ce.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Se(t)});var Go=class extends Te{static{o(this,"ZodCatch")}_parse(t){let{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return bc(r)?r.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new xn(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new xn(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Go.create=(e,t)=>new Go({innerType:e,typeName:Ce.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Se(t)});var Rc=class extends Te{static{o(this,"ZodNaN")}_parse(t){if(this._getType(t)!==X.nan){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.nan,received:i.parsedType}),me}return{status:"valid",value:t.data}}};Rc.create=e=>new Rc({typeName:Ce.ZodNaN,...Se(e)});var oee=Symbol("zod_brand"),Kl=class extends Te{static{o(this,"ZodBranded")}_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},Xl=class e extends Te{static{o(this,"ZodPipeline")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return o(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?me:s.status==="dirty"?(n.dirty(),Ro(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})},"handleAsync")();{let r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?me:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new e({in:t,out:n,typeName:Ce.ZodPipeline})}},Vo=class extends Te{static{o(this,"ZodReadonly")}_parse(t){let n=this._def.innerType._parse(t),i=o(r=>(Cs(r)&&(r.value=Object.freeze(r.value)),r),"freeze");return bc(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}};Vo.create=(e,t)=>new Vo({innerType:e,typeName:Ce.ZodReadonly,...Se(t)});function lM(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}o(lM,"cleanParams");function gM(e,t={},n){return e?bs.create().superRefine((i,r)=>{let s=e(i);if(s instanceof Promise)return s.then(a=>{if(!a){let c=lM(t,i),u=c.fatal??n??!0;r.addIssue({code:"custom",...c,fatal:u})}});if(!s){let a=lM(t,i),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}}):bs.create()}o(gM,"custom");var aee={object:$n.lazycreate},Ce;(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"})(Ce||(Ce={}));var cee=o((e,t={message:`Input not instance of ${e.name}`})=>gM(n=>n instanceof e,t),"instanceOfType"),hM=vs.create,mM=xo.create,uee=Rc.create,lee=$o.create,yM=To.create,dee=Do.create,Aee=Bc.create,pee=_o.create,fee=No.create,gee=bs.create,hee=_i.create,mee=_r.create,yee=Qc.create,Eee=Ni.create,Iee=$n.create,Cee=$n.strictCreate,vee=Uo.create,bee=eg.create,wee=Fo.create,Bee=ti.create,Qee=tg.create,kee=kc.create,See=Sc.create,Ree=ng.create,xee=Po.create,$ee=Mo.create,Tee=Lo.create,Dee=Oo.create,_ee=ws.create,Nee=Ar.create,Uee=lr.create,Fee=ni.create,Pee=Ar.createWithPreprocess,Mee=Xl.create,Lee=o(()=>hM().optional(),"ostring"),Oee=o(()=>mM().optional(),"onumber"),jee=o(()=>yM().optional(),"oboolean"),Gee={string:o((e=>vs.create({...e,coerce:!0})),"string"),number:o((e=>xo.create({...e,coerce:!0})),"number"),boolean:o((e=>To.create({...e,coerce:!0})),"boolean"),bigint:o((e=>$o.create({...e,coerce:!0})),"bigint"),date:o((e=>Do.create({...e,coerce:!0})),"date")};var Vee=me;var GM=require("node:crypto");var zo=(a=>(a.Place="place",a.Update="update",a.Regenerate="regenerate",a.Delete="delete",a.Verify="verify",a.None="none",a))(zo||{}),fr=(i=>(i.Pass="pass",i.Fail="fail",i.Skip="skip",i))(fr||{}),pr=d.string().trim().min(1),ed=d.array(d.string().url().max(2048).regex(/^https?:\/\//i)).max(50),EM=d.object({case:pr.describe("a covers id \u2014 the recommend case this test realizes"),status:d.nativeEnum(fr),runtimeTargets:ed.optional().describe("HTTP(S) URLs this case actually exercised in its current run; omit for in-process or mocked checks, never infer from test type"),fromJourney:d.boolean().optional()}),IM=d.object({exit:d.number({invalid_type_error:"must be a number or null"}).nullable().describe("process exit of the re-run; null when no SUT was available"),details:d.string().optional().describe("what failed, or why a file was not run \u2014 required on any non-zero exit"),tests:d.array(EM).optional().describe("ONE ENTRY PER CASE the file covers; must agree with exit (0 \u2192 no fail; non-zero \u2192 at least one)")}),CM=d.object({from:d.string().optional().describe("staged path \u2014 required for placements"),file:pr.describe("final path relative to its repository, inside that checkout, with a source-file extension"),repository:pr.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),action:d.nativeEnum(zo),covers:d.array(d.string()).optional().describe("recommend ids a placed test covers"),repro:d.boolean().optional().describe("this test is MEANT to fail \u2014 it reproduces a reported bug"),finding:d.boolean().optional().describe("a non-repro test that failed on a REAL product bug"),placementBroken:d.boolean().optional().describe('placement/harness problem one repair could not fix \u2014 every reran.tests entry is then "skip"'),keptReason:pr.optional().describe("why a planned delete/regenerate was declined and the file kept"),isolatedRun:pr.optional().describe('only for a test marked "runs alone": the command, from its checkout root and without a shell, that runs only this file and writes its JUnit XML into $SKYRAMP_RESULTS_DIR (named by its path: no shell expands it) \u2014 the harness runs it, so leave reran.exit null'),reran:IM,assertionCount:d.number().int().nonnegative().optional().describe("[derived] assertions reachable from the file, counted at write time")}).refine(e=>e.action!=="place"||typeof e.from=="string"&&e.from.trim().length>0,{message:'is a place but has no "from" staged path',path:[]}),vM=(n=>(n.Junit="junit",n.Converter="converter",n))(vM||{}),zee=pr.optional().describe("the items[].file this test is in \u2014 needed only when two of this suite's files cover the same case id"),qee=d.object({results:pr.describe("the JUnit XML file this run wrote, a plain file name inside $SKYRAMP_RESULTS_DIR (e.g. backend.xml)"),source:d.nativeEnum(vM),run:pr.describe("the command you ran that wrote it, exactly as you ran it (with any converter)"),files:d.array(pr).min(1).describe("the items[].file paths this run covered"),cases:d.array(d.object({test:pr.describe("the test's name as the runner reports it, qualified by its class or file (e.g. tests/test_a.py::test_x) when the bare name repeats"),case:pr.describe("the covers id it realizes"),file:zee})).describe("map each reported test name to the case it covers")}),Jee=d.object({suites:d.array(qee).min(1)}),av=d.object({schemaVersion:d.literal(1),items:d.array(CM),runnerResults:Jee.optional().describe("the JUnit XML your test runs wrote into $SKYRAMP_RESULTS_DIR, so the harness reads each test's result from the runner \u2014 omit only when no SUT is available"),ignored:d.array(d.string()).describe("existing tests assessed and deliberately left untouched"),summary:pr.describe("one paragraph")});var qo=(s=>(s.NotFound="not_found",s.NoAccess="no_access",s.Unavailable="unavailable",s.AccessLost="access_lost",s.CannotOpen="cannot_open",s))(qo||{});var cv=o(e=>`${e.source}:${e.site??""}:${e.key}`,"requirementItemId");var td=/^pasted-[0-9a-f]{16}$/,Bs=/^file-[0-9a-f]{16}$/,nd=(r=>(r.Pdf="application/pdf",r.Csv="text/csv",r.Docx="application/vnd.openxmlformats-officedocument.wordprocessingml.document",r.Xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",r))(nd||{}),rd=o(e=>e.trim().toUpperCase(),"normalKey"),bM=o((e,t)=>{let n=e.trim();return td.test(n.toLowerCase())?"Pasted text":Bs.test(n.toLowerCase())?t?.get(rd(n))??"Uploaded document":/^\d+$/.test(n)?`Confluence page ${n}`:n.toUpperCase()},"itemName");var rg=(i=>(i.New="new",i.Updated="updated",i.Existing="existing",i))(rg||{}),Ui=(i=>(i.Sufficient="sufficient",i.Insufficient="insufficient",i.NoChange="no_change",i))(Ui||{}),xc=(I=>(I.RelatedChangeConflict="related_change_conflict",I.ReferenceOutsideTarget="reference_outside_target",I.SourceAccessLost="source_access_lost",I.ConfigurationIncomplete="configuration_incomplete",I.CredentialUnavailable="credential_unavailable",I.WorkflowBindingUnverified="workflow_binding_unverified",I.WorkflowRefUnprotected="workflow_ref_unprotected",I.BedrockWorkflowRequired="bedrock_workflow_required",I.DeploymentReview="deployment_review",I.SutRevisionMismatch="sut_revision_mismatch",I.IsolationUnavailable="isolation_unavailable",I.EvidenceInsufficient="evidence_insufficient",I.ConfigurationUnresolved="configuration_unresolved",I.ModelProviderDenied="model_provider_denied",I.ModelProviderUnavailable="model_provider_unavailable",I.RunnerProviderNotReady="runner_provider_not_ready",I.MergeConflict="merge_conflict",I))(xc||{}),Qs=(s=>(s.CiCheck="ci_check",s.TestReport="test_report",s.StaticAnalysis="static_analysis",s.CodeReview="code_review",s.Other="other",s))(Qs||{}),id=(i=>(i.Application="application",i.Environment="environment",i.TestDefect="test_defect",i))(id||{}),sd=(c=>(c.AuthToken="auth_token",c.Secret="secret",c.DataConnection="data_connection",c.AppNotStarted="app_not_started",c.Login="login",c.ExternalDependency="external_dependency",c.RecordingReplay="recording_replay",c))(sd||{});var ig=(n=>(n.Probe="probe",n.Agent="agent",n))(ig||{}),sg=(i=>(i.Seed="seed",i.RuntimeMock="runtime_mock",i.EnvOverride="env_override",i))(sg||{}),og=(i=>(i.TestCode="test_code",i.SkyrampMocker="skyramp_mocker",i.RecipeOverride="recipe_override",i))(og||{});var uv=(n=>(n.Ready="ready",n.Blocked="blocked",n))(uv||{}),It=d.string().trim().min(1),Hee=d.object({action:d.enum(["start","run","wait"]),text:It,source:d.enum(["file","notes","testbot"]).describe("file: a file in the repository; notes: the Target's notes; testbot: Testbot's own finding"),file:It.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"}),Yee=/^[A-Za-z_][A-Za-z0-9_]*$/,od=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,$c=(a=>(a.VersionEndpoint="version_endpoint",a.DeployWorkflow="deploy_workflow",a.KubernetesLabels="kubernetes_labels",a.Command="command",a.Api="api",a.NotTracked="not_tracked",a))($c||{}),ri="shared",Wee=It.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"),Tc=d.object({address:Wee,readyWhen:It.nullable(),credentials:d.array(d.string().regex(od)).max(50),revisionSources:d.array(d.object({method:d.nativeEnum($c),detail:It.describe("what Testbot reads, such as GET /version or the deploy workflow's name; for not_tracked, why nothing shows it"),components:d.array(It).min(1).describe("the components it tells the revision of, by name")}).strict()).max(50)}).strict(),lv={steps:d.array(Hee).max(20).optional().describe("how it starts, in order"),kind:d.enum(["web_app","service","database","external_service"]).optional(),from:d.object({file:It,service:It.nullable()}).strict().optional(),credentials:d.array(d.string().max(100).regex(Yee)).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")},dv=d.object({name:It,repository:It.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:d.boolean(),...lv,deployed:It.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')}),Zee=d.object({component:It,problem:It,evidence:It.describe("the exact command and output that shows it"),fix:It.describe("what the user must provide, and where")}),Kee=d.object({framework:It,file:It.describe("the test file run, relative to its repository root"),result:d.enum(["pass","fail","error"])}),Xee=d.object({input:It.describe("the part of the user's SUT input, as given"),reason:It}),aIe=d.object({schemaVersion:d.literal(1),status:d.nativeEnum(uv).describe("ready only if every component came up healthy and the recipe is written"),components:d.array(dv),suites:d.array(Kee).default([]).describe("one run per test suite the Target's repositories have; empty when they have none"),inputsUsed:d.array(It).default([]).describe("the parts of the user's SUT input the recipe used as given"),inputsUsedHow:d.array(d.object({input:It.describe("exactly as written in inputsUsed; an entry that is not there is left out"),how:It.describe("what the recipe did with it")})).optional(),inputsNotUsed:d.array(Xee).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:d.array(Zee).describe("required (non-empty) when status is blocked"),environment:Tc.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 Av=64*1024,pv=512*1024,wM=/[\u0000-\u0008\u000b\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/;var QM=_e(require("path"));var Fi=(r=>(r.Clean="clean",r.RecipeDrift="recipe-drift",r.ChangeBrokeBringup="change-broke-bringup",r.BringupFailed="bringup-failed",r))(Fi||{}),Nr=d.string().trim().min(1),ete=d.object({url:d.string().optional().describe("the URL probed, if the check is an HTTP request"),command:d.string().optional().describe("the command run, if the check is a script \u2014 preferred when auth is needed"),headers:d.record(d.string()).optional(),status:d.union([d.number(),d.string()]).optional().describe("expected HTTP status for a url check (default 200)"),output:Nr.describe("what the check returned, VERBATIM \u2014 the bytes, nothing appended; this gate RE-RUNS the check")}),fv=d.array(d.object({component:Nr.describe("a shared component listed above"),url:Nr.describe("the URL on the component's own origin (scheme, host and port) that answers with its deployed commit"),output:Nr.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"),tte=d.object({name:Nr.describe("the credential's environment variable name, as listed above; never its value"),component:Nr.describe("the component that refused it"),status:d.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:Nr.describe("the request or command you tested it with and what came back, never the value")}),BM=d.object({schemaVersion:d.literal(1),baseUrls:d.record(d.string()).optional().describe("service \u2192 base URL of the running app; omit on a failed bring-up, never invent one"),health:ete.optional(),teardown:Nr.describe("command that tears the SUT down"),dependencies:d.record(d.boolean()).optional().describe("EVERY backing service: true = really deployed, false = mocked; REQUIRED when the app came up"),outcome:d.nativeEnum(Fi).describe("clean | recipe-drift (you corrected the recipe) | change-broke-bringup (the PR broke it) | bringup-failed (environment, not the PR)"),recipeFixes:d.array(d.string()).optional().describe("required when outcome is recipe-drift: what was corrected"),bringupError:d.object({command:Nr,output:Nr}).optional().describe("required when bring-up failed: the exact failing command and what it printed"),suspectFiles:d.array(d.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:d.boolean(),startedAt:Nr.describe("ISO timestamp"),revisions:fv.optional(),credentialsRefused:d.array(tte).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:d.boolean().optional().describe("[derived] whether the checkout had a recorded recipe before bring-up")});var jt=d.string().trim().min(1),ag=jt,gv=(n=>(n.TestbotManaged="testbot_managed",n.CustomerDeployed="customer_deployed",n))(gv||{}),hv=[".skyramp/sut/setup.sh",".skyramp/sut/teardown.sh"],kM=d.object({schemaVersion:d.literal(1),type:d.nativeEnum(gv).optional(),repository:ag.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:d.enum(["ready","blocked"]),environment:Tc.optional(),components:d.array(d.object({name:jt,repository:jt.describe(`owner/repo, or "${ri}" for a customer-deployed component no repository builds`),healthy:d.boolean(),url:d.string().min(1).nullable(),...lv,credentials:d.array(d.string().regex(od)).max(50).optional(),deployed:jt.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:d.array(d.object({framework:jt,file:jt,result:d.enum(["pass","fail","error"])}).strict()),inputsUsed:d.array(jt),inputsUsedHow:d.array(d.object({input:jt,how:jt}).strict()).optional(),inputsNotUsed:d.array(d.object({input:jt,reason:jt}).strict()),blockers:d.array(d.object({component:jt,problem:jt,evidence:jt,fix:jt}).strict()),replay:d.object({outcome:jt,durationSeconds:d.number().nonnegative().nullable()}).strict().nullable(),files:d.array(d.object({path:jt,content:d.string()}).strict())}).strict().superRefine((e,t)=>{e.inputsUsedHow?.forEach((r,s)=>{e.inputsUsed.includes(r.input)||t.addIssue({code:d.ZodIssueCode.custom,path:["inputsUsedHow",s,"input"],message:"not one of inputsUsed"})}),e.components.forEach((r,s)=>{r.credentials&&new Set(r.credentials).size!==r.credentials.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"credentials"],message:"names a credential twice"})});let n=e.type==="customer_deployed";n!==(e.environment!==void 0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["environment"],message:"an environment exactly when the plan's type is customer_deployed"}),n&&e.repository!==void 0&&t.addIssue({code:d.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:d.ZodIssueCode.custom,path:["environment","credentials"],message:"names a credential twice"});let i=new Set(e.components.map(r=>r.name));if(e.environment?.revisionSources.forEach((r,s)=>{r.components.forEach((a,c)=>{i.has(a)||t.addIssue({code:d.ZodIssueCode.custom,path:["environment","revisionSources",s,"components",c],message:"not one of components"})})}),e.components.forEach((r,s)=>{r.deployed!==void 0!==n&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"deployed"],message:"what a component runs exactly when the plan is customer_deployed"}),r.repository===ri&&!n&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"repository"],message:`only a customer_deployed component is ${ri}`})}),n&&(e.components.forEach((r,s)=>{e.components.findIndex(a=>a.name===r.name)!==s&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"name"],message:"names a component twice"})}),e.replay!==null&&t.addIssue({code:d.ZodIssueCode.custom,path:["replay"],message:"a customer_deployed plan is never replayed"}),e.files.forEach((r,s)=>{hv.includes(r.path)&&t.addIssue({code:d.ZodIssueCode.custom,path:["files",s,"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(s=>s.components));e.components.forEach((s,a)=>{s.repository!==ri&&!r.has(s.name)&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",a,"name"],message:"a ready customer_deployed plan reads what every component a repository builds runs"})})}});var hIe=["clean","recipe-drift"];function ad(e){let t=QM.posix.normalize(e);return t===e&&(t===".skyramp/workspace.yml"||t.startsWith(".skyramp/sut/")&&t.length>13)}o(ad,"isRuntimePlanFile");var Ho=(n=>(n.GitHub="github",n.AzureDevOps="azure-devops",n))(Ho||{}),pg=(s=>(s.Trigger="TRIGGER",s.Baseline="BASELINE",s.AuthoritativeRelatedChange="AUTHORITATIVE_RELATED_CHANGE",s.ConfiguredSharedDependency="CONFIGURED_SHARED_DEPENDENCY",s.ManualOverride="MANUAL_OVERRIDE",s))(pg||{}),fg=(a=>(a.PullRequest="pull_request",a.ReadyForReview="ready_for_review",a.Schedule="schedule",a.Manual="manual",a.SutSetup="sut_setup",a.RevisionRead="revision_read",a))(fg||{}),nte=["sut_setup"],rte=["sut_setup","schedule","revision_read"],ite=["sut_setup"],Ev=(t=>(t.PullRequest="pull_request",t))(Ev||{}),Iv=(n=>(n.PullRequest="pull_request",n.Branch="branch",n))(Iv||{}),SM=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"],VM=(r=>(r.ModelProvider="model_provider",r.SutAccess="sut_access",r.Skyramp="skyramp",r.Other="other",r))(VM||{}),gg=(r=>(r.None="none",r.Delivered="delivered",r.Partial="partial",r.Failed="failed",r))(gg||{}),dd=(s=>(s.ReportUploaded="report_uploaded",s.NoReport="no_report",s.Cancelled="cancelled",s.RecipeUploaded="recipe_uploaded",s.RevisionsUploaded="revisions_uploaded",s))(dd||{}),zM=(n=>(n.Running="running",n.Ended="ended",n))(zM||{}),Ad=(p=>(p.TimedOut="timed_out",p.AgentFailed="agent_failed",p.SetupFailed="setup_failed",p.CredentialMissing="credential_missing",p.RunnerLost="runner_lost",p.CheckoutFailed="checkout_failed",p.EnvironmentUnverified="environment_unverified",p.ModelProviderDenied="model_provider_denied",p.ModelProviderUnavailable="model_provider_unavailable",p.RunnerProviderNotReady="runner_provider_not_ready",p.MergeConflict="merge_conflict",p))(Ad||{}),qM=(i=>(i.Onboard="onboard",i.Deploy="deploy",i.Recheck="recheck",i))(qM||{}),Cv=(n=>(n.Started="started",n.Finished="finished",n))(Cv||{}),JM=(i=>(i.Passed="passed",i.Failed="failed",i.Skipped="skipped",i))(JM||{});var HM=(i=>(i.ChooseCredential="choose_credential",i.FreeText="free_text",i.ChooseSource="choose_source",i))(HM||{});var YM=(r=>(r.Answered="answered",r.Followed="followed",r.NotFollowed="not_followed",r.TooLate="too_late",r))(YM||{}),vv=(i=>(i.Discover="discover",i.Start="start",i.Check="check",i))(vv||{}),mv=(r=>(r.ValidationPlan="validation_plan",r.TestEnvironment="test_environment",r.TestConditions="test_conditions",r.Tests="tests",r))(mv||{});var bv=(r=>(r.Found="found",r.Starting="starting",r.Up="up",r.OutOfScope="out_of_scope",r))(bv||{}),gr=d.string().regex(/^[1-9][0-9]{0,18}$/),Ur=d.string().regex(/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/),_c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,$t=d.string().regex(_c),pn=d.string().regex(/^[0-9a-f]{64}$/),dg=d.object({id:$t,revision:gr}).strict(),hg={provider:d.literal("github"),providerAccountId:gr,providerRepositoryId:gr},mg={provider:d.literal("azure-devops"),providerAccountId:$t,providerRepositoryId:$t},Fr=d.discriminatedUnion("provider",[d.object(hg).strict(),d.object(mg).strict()]),wv=d.discriminatedUnion("provider",[d.object(hg).passthrough(),d.object(mg).passthrough()]),si=o(e=>`${e.provider}:${e.providerRepositoryId}`,"sourceKey"),RM={namespace:d.string().min(1),name:d.string().min(1)},WM=d.discriminatedUnion("provider",[d.object({...hg,...RM}).strict(),d.object({...mg,...RM}).strict()]),xM=d.object({ref:d.string().min(1),revision:Ur}).strict(),ste=d.object({kind:d.nativeEnum(Iv),number:gr.optional(),ref:d.string().min(1),revision:Ur,reason:d.nativeEnum(pg)}).strict(),ote=d.object({repository:WM,revision:Ur,ref:d.string().nullable(),reason:d.nativeEnum(pg),change:d.object({kind:d.nativeEnum(Ev),number:gr,base:xM.optional()}).strict().nullable(),compareWith:xM.optional(),merge:d.array(ste).min(2).optional()}).strict();function ate(e){let t=e.merge;if(!t)return null;if(e.change||e.compareWith)return{path:["merge"],message:"a merged source names no change and no compareWith"};if(e.ref===null)return{path:["ref"],message:"a merged source names its baseline branch"};let n=new Set,i=new Set;for(let[s,a]of t.entries()){if(a.kind==="pull_request"!=(a.number!==void 0))return{path:["merge",s,"number"],message:"a pull request names its number, and a branch none"};if(!SM.includes(a.reason))return{path:["merge",s,"reason"],message:`${a.reason} does not select a merged revision`};if(a.kind==="branch"&&a.reason!=="MANUAL_OVERRIDE")return{path:["merge",s,"reason"],message:"only a person chooses a branch to merge"};if(a.ref===e.ref)return{path:["merge",s,"ref"],message:"the baseline branch is what the source merges onto"};if(a.number!==void 0&&n.has(a.number)||i.has(a.ref))return{path:["merge",s],message:"names a revision the source already merges"};a.number!==void 0&&n.add(a.number),i.add(a.ref)}let r=SM.find(s=>t.some(a=>a.reason===s));return e.reason!==r?{path:["reason"],message:`a source that merges these revisions is ${r}`}:null}o(ate,"mergedSourceIssue");function cte(e){if(e.trigger.kind==="revision_read"!=!e.baseline)return e.baseline?"a revision_read run names no baseline":"names its baseline";if(!e.baseline)return null;let{confirmedRunId:t,initialBaselineId:n,comparisonBaselineId:i,sources:r}=e.baseline;if([t,n,i].filter(l=>l!=null).length>1)return"a run compares with one baseline";let s=e.trigger.kind==="schedule"&&t!==null||n!==void 0||i!==void 0;if(!r)return s?"names every source of the snapshot, once":null;if(t===null&&n===void 0&&i===void 0)return"a run with no Confirmed Baseline names no baseline sources";let a=new Set(e.sources.map(l=>si(l.repository))),c=new Set(r.map(l=>si(l.repository)));return c.size===r.length&&c.size===a.size&&[...c].every(l=>a.has(l))?null:"names every source of the snapshot, once"}o(cte,"baselineSourcesIssue");var ZM=/^[A-Z][A-Z0-9_]+-[1-9][0-9]*$/,KM=/^[1-9][0-9]{0,18}$/,$M=new RegExp(`${ZM.source}|${KM.source}`),TM=/^https:\/\/[a-z0-9-]+(\.[a-z0-9-]+)+$/,ute=d.union([d.object({source:d.literal("jira"),site:d.string().regex(TM),key:d.string().regex(ZM),updated:d.string().datetime(),contentHash:pn}).strict(),d.object({source:d.literal("confluence"),site:d.string().regex(TM),key:d.string().regex(KM),version:d.number().int().positive(),contentHash:pn}).strict(),d.object({source:d.literal("other"),key:d.string().regex(td),contentHash:pn}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Bs),contentHash:pn,fileName:d.string().min(1).max(255),mediaType:d.nativeEnum(nd)}).strict()]),DM=d.union([d.literal("jira"),d.literal("confluence")]),lte=d.object({schemaVersion:d.literal(1),items:d.array(d.union([d.object({source:DM,site:d.string(),key:d.string().regex($M),state:d.literal("read"),text:d.string(),version:d.string().min(1),contentMatches:d.boolean()}).strict(),d.object({source:DM,site:d.string(),key:d.string().regex($M),state:d.literal("not_read"),reason:d.nativeEnum(qo)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(td),state:d.literal("read"),text:d.string(),version:d.string().min(1),contentMatches:d.boolean()}).strict(),d.object({source:d.literal("other"),key:d.string().regex(td),state:d.literal("not_read"),reason:d.nativeEnum(qo)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Bs),state:d.literal("read"),version:pn,fileName:d.string().min(1).max(255),mediaType:d.nativeEnum(nd)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Bs),state:d.literal("not_read"),reason:d.nativeEnum(qo)}).strict()])),instructions:d.array(d.string()).optional()}).strict(),dte=d.object({resultId:d.string().min(1),repository:d.string().min(1),testType:d.string().min(1),path:d.string(),finding:d.string().min(1)}).strict(),Ate=d.object({schemaVersion:d.literal(1),runId:$t,skyrampOrgId:$t,target:dg,policy:dg.nullable(),trigger:d.object({kind:d.nativeEnum(fg),requestedAt:d.string().datetime()}).strict(),configuration:d.object({captureId:$t,revision:gr.nullable(),hash:pn}).strict(),baseline:d.object({confirmedRunId:$t.nullable(),initialBaselineId:$t.optional(),comparisonBaselineId:$t.optional(),knownFailures:d.array(dte).optional(),sources:d.array(d.object({repository:Fr,revision:Ur}).strict()).optional()}).strict().optional(),sources:d.array(ote).min(1).max(1e3),execution:d.object({provider:d.nativeEnum(Ho),repository:WM,workflowPath:d.string(),ref:d.string()}).strict(),credentials:d.array(d.object({name:d.string(),purpose:d.nativeEnum(VM),required:d.boolean()}).strict()),requirements:d.array(ute).min(1).optional(),instructions:d.object({contentHash:pn}).strict().optional(),deployedRevisions:d.array(d.object({repository:Fr,revision:Ur}).strict()).min(1).optional()}).strict().superRefine((e,t)=>{let n=new Set;(e.requirements??[]).forEach((u,l)=>{let A="fileName"in u?"file":"pasted";u.source==="other"&&u.key!==`${A}-${u.contentHash.slice(0,16)}`&&t.addIssue({code:d.ZodIssueCode.custom,message:"is not the key of its content hash",path:["requirements",l,"key"]});let p=cv({source:u.source,key:u.key});n.has(p)&&t.addIssue({code:d.ZodIssueCode.custom,message:"names an item that the run already names",path:["requirements",l,"key"]}),n.add(p)});let i=e.trigger.kind,r=nte.includes(i);r!==(e.policy===null)&&t.addIssue({code:d.ZodIssueCode.custom,path:["policy"],message:r?`a ${i} run has no policy`:"names the policy revision"}),e.baseline?.knownFailures&&!e.baseline.comparisonBaselineId&&t.addIssue({code:d.ZodIssueCode.custom,path:["baseline","knownFailures"],message:"known failures require a chosen comparison checkpoint"});let s=cte(e);s&&t.addIssue({code:d.ZodIssueCode.custom,path:e.baseline?["baseline","sources"]:["baseline"],message:s}),rte.includes(i)&&e.sources.forEach((u,l)=>{u.reason!=="BASELINE"&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,"reason"],message:`a ${i} run selects only BASELINE sources`})}),e.deployedRevisions&&i!=="manual"&&t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions"],message:"only a manual run pins deployed revisions"});let a=new Set(e.sources.map(u=>si(u.repository))),c=new Set;(e.deployedRevisions??[]).forEach((u,l)=>{let A=si(u.repository);a.has(A)?c.has(A)&&t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions",l,"repository"],message:"repository appears twice"}):t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions",l,"repository"],message:"names a repository outside the snapshot"}),c.add(A)}),e.sources.forEach((u,l)=>{u.compareWith&&(u.reason!=="MANUAL_OVERRIDE"||u.change)&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,"compareWith"],message:"only a MANUAL_OVERRIDE source without a change names a revision to compare with"}),e.baseline?.comparisonBaselineId&&(u.change?.base||u.compareWith||u.merge)&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l],message:"a chosen checkpoint cannot be combined with a source comparison base or merge"});let A=ate(u);A&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,...A.path],message:A.message})})});var Bv=(n=>(n.Person="person",n.Policy="policy",n))(Bv||{}),pte=d.object({kind:d.nativeEnum(Bv),name:d.string().min(1).max(256)}).strict(),fte=d.object({mcp:d.discriminatedUnion("source",[d.object({source:d.literal("npm"),version:d.string().regex(/^[A-Za-z0-9][A-Za-z0-9.+_-]{0,63}$/).nullable()}).strict(),d.object({source:d.literal("github"),ref:d.string().regex(/^[A-Za-z0-9._/-]{1,255}$/)}).strict()]),bedrock:d.object({region:d.string().regex(/^[a-z]{2}(-[a-z]+)+-[0-9]$/),roleArn:d.string().regex(/^arn:aws(-[a-z]+)*:iam::[0-9]{12}:role\/[\w+=,.@/-]{1,512}$/)}).strict().nullable()}).strict(),gte=d.object({schemaVersion:d.literal(1),attempt:d.object({id:$t,number:d.number().int().positive(),deadlineAt:d.string().datetime()}).strict(),manifest:Ate,manifestHash:pn,entitlements:d.array(d.string()).optional(),runToken:d.string().min(1).optional(),requestedBy:pte.nullable().optional(),writeAllowed:d.boolean().optional(),claudeCodeVersion:d.string().regex(/^[0-9]+\.[0-9]+\.[0-9]+$/,"an exact version, such as 2.1.290").nullable().optional(),deployedRevisions:d.array(d.object({repository:Fr,revision:Ur}).strict()).optional(),statedRevisions:d.array(d.object({repository:Fr,revision:Ur}).strict()).optional(),runSettings:fte.optional(),credentialRelay:d.boolean().optional()}).strict(),_M={providerRunAttempt:d.number().int().positive(),workflowRef:d.string().min(1)},hte=d.string().regex(/^[^/]+\/[^/]+\/[1-9][0-9]{0,15}\/[1-9][0-9]{0,15}$/),mte=d.object({schemaVersion:d.literal(1),runId:$t,execution:d.discriminatedUnion("provider",[d.object({..._M,provider:d.literal("github"),repository:d.object(hg).strict(),providerRunId:gr}).strict(),d.object({..._M,provider:d.literal("azure-devops"),repository:d.object(mg).strict(),providerRunId:hte}).strict()]),requester:d.literal(!0).optional(),writeCheck:d.literal(!0).optional(),claudeCodePin:d.literal(!0).optional(),deployedPins:d.literal(!0).optional(),statedPins:d.literal(!0).optional(),runSettings:d.literal(!0).optional(),credentialRelay:d.literal(!0).optional()}).strict(),NM=d.object({repository:Fr,number:gr,commitSha:Ur.optional()}).strict(),cg=d.array(d.object({repository:Fr,reason:d.string().max(4096).regex(/\S/)}).strict()).max(1e3).optional(),yte=d.discriminatedUnion("status",[d.object({status:d.literal("none"),noTests:cg}).strict(),d.object({status:d.literal("delivered"),noTests:cg,pullRequests:d.array(NM).min(1)}).strict(),d.object({status:d.literal("partial"),noTests:cg,pullRequests:d.array(NM).min(1),failures:d.array(d.object({repository:Fr,message:d.string()}).strict()).min(1)}).strict(),d.object({status:d.literal("failed"),message:d.string(),noTests:cg}).strict()]),yg=1024*1024,XM=16*1024*1024,ug=o(e=>d.array(d.object({[e]:d.string()}).strict()).optional(),"texts"),Ete=d.object({language:d.custom(e=>e==="ja","Invalid"),businessCaseAnalysis:d.string(),validation:d.object({rationale:d.string(),gaps:d.array(d.string())}).strict().optional(),changes:d.array(d.object({id:d.string(),text:d.string()}).strict()).optional(),issuesFound:ug("description"),newTestsCreated:ug("description"),testResults:ug("details"),caveats:ug("text")}).strict(),Ite=d.object({blockedPreflight:d.object({file:d.string().min(1),repository:d.string().min(1).optional(),reason:d.string().min(1).max(300),evidence:d.string().min(1).max(400)}).strict().optional(),sufficiency:d.nativeEnum(Ui),rationale:d.string().min(1),gaps:d.array(d.string().min(1)),acceptedEvidence:d.array(d.object({kind:d.nativeEnum(Qs),repository:d.string().min(1),revision:Ur,reference:d.string().min(1),summary:d.string().min(1)}).strict()),actionRequired:d.array(d.nativeEnum(xc))}).strict().superRefine((e,t)=>{e.sufficiency==="insufficient"!=e.gaps.length>0&&t.addIssue({code:d.ZodIssueCode.custom,path:["gaps"],message:"only insufficient evidence names gaps, and it names at least one"}),new Set(e.actionRequired).size!==e.actionRequired.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["actionRequired"],message:"a reason appears twice"})}),lg=500,eL=2048,tL=1e3,Cte=/[\\/:*?"<>|;#$*{},+=[\]%\p{Cc}\p{Cf}]/u,UM=o(e=>e.length>0&&e.length<=64&&e===e.trim()&&!Cte.test(e)&&!/[^\S ]/u.test(e)&&!/^[._]/.test(e)&&!e.endsWith("."),"isAzureName"),nL=o(e=>{if(/^[A-Za-z0-9._-]{1,100}\/[A-Za-z0-9._-]{1,100}$/.test(e))return!0;let[t,n,i,...r]=e.split("/");return e.length<=201&&r.length===0&&i!==void 0&&/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,48}[A-Za-z0-9])?$/.test(t)&&UM(n)&&UM(i)},"isResultRepository"),vte=d.object({testResults:d.array(d.object({resultId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/),repository:d.string().refine(nL,"Invalid"),testType:d.string(),runtimeTargets:ed.optional(),endpoint:d.string(),status:d.enum(["Pass","Fail","Skipped"]),details:d.string(),fileName:d.string().optional(),testId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/).optional(),failureCause:d.object({kind:d.nativeEnum(id),family:d.nativeEnum(sd).optional()}).strict().optional(),origin:d.nativeEnum(rg).optional()}).strict()),validation:Ite,changes:d.array(d.object({id:d.string().min(1).max(512),text:d.string().max(16384),source:d.string().max(eL),testedBy:d.array(d.string().min(1).max(1024)).max(lg),writtenBy:d.array(d.string().min(1).max(1024)).max(lg),maintainedBy:d.array(d.string().min(1).max(1024)).max(lg)}).strict()).max(tL).optional(),traceVersion:d.literal(1),display:Ete.optional()}).passthrough().superRefine((e,t)=>{let n=e.display,i={issuesFound:e.issuesFound,newTestsCreated:e.newTestsCreated,testResults:e.testResults,caveats:e.caveats};for(let s of["issuesFound","newTestsCreated","testResults","caveats"]){let a=n?.[s];a&&a.length!==(Array.isArray(i[s])?i[s].length:0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["display",s],message:`has not one row per ${s} row`})}n?.validation&&n.validation.gaps.length!==e.validation.gaps.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["display","validation","gaps"],message:"has not one gap per validation gap"});let r=new Set;e.testResults.forEach((s,a)=>{let c=s.failureCause;c&&s.status==="Pass"&&t.addIssue({code:d.ZodIssueCode.custom,path:["testResults",a,"failureCause"],message:"a passing result has no failure cause"}),c&&c.kind==="environment"!=(c.family!==void 0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["testResults",a,"failureCause"],message:"an environment cause names its family, and no other cause does"});let u=["testResults",a,"resultId"],l=s.resultId.slice(`${s.repository}:${s.testType}:`.length);(!s.resultId.startsWith(`${s.repository}:${s.testType}:`)||l===""||l.startsWith("/")||l.startsWith("#"))&&t.addIssue({code:d.ZodIssueCode.custom,path:u,message:"is not repository:testType:path for this result"}),r.has(s.resultId)&&t.addIssue({code:d.ZodIssueCode.custom,path:u,message:"stable identity repeated"}),r.add(s.resultId)})}),FM=o(e=>e.replace(/[%:#]/g,t=>encodeURIComponent(t)),"encodeIdPart");function Qv(e,t,n,i){let r=n.replace(/\\/g,"/"),s=r.split("/").filter(u=>u!==""&&u!==".");if(r.startsWith("/")||/^[A-Za-z]:/.test(r)||s.length===0||s.includes(".."))throw new Error(`testResultId needs a path relative to the repository root, got "${n}"`);let a=s.join("/"),c=`${e}:${t}:${FM(a)}`;return i?`${c}#${FM(i)}`:c}o(Qv,"testResultId");var Eg=(i=>(i.BranchPushed="branch_pushed",i.PullRequestOpened="pull_request_opened",i.PullRequestEdited="pull_request_edited",i))(Eg||{}),rL=50,PM=d.string().regex(/^(?!.*\.\.)(?!\/)(?!.*\/$)[A-Za-z0-9._/-]{1,255}$/),iL=d.discriminatedUnion("kind",[d.object({kind:d.literal("branch_pushed"),repository:Fr,branch:PM,commit:Ur}).strict(),d.object({kind:d.enum(["pull_request_opened","pull_request_edited"]),repository:Fr,number:gr,branch:PM}).strict()]),sL=d.object({schemaVersion:d.literal(1),run:d.object({runId:$t,attemptNumber:d.number().int().positive(),manifestHash:pn}).strict(),target:dg,policy:dg,provenance:d.object({sources:d.array(d.object({repository:Fr,revision:Ur}).strict()),firstQualification:d.literal(!0).optional()}).strict(),delivery:d.object({generatedTests:yte}).strict(),producer:d.object({testbot:d.string().regex(/^[0-9A-Za-z.+-]{1,64}$/),mcp:d.string().regex(/^[0-9A-Za-z.+-]{1,64}$/)}).strict(),report:vte,githubWrites:d.array(iL).max(rL).optional()}).strict(),BIe=sL.pick({schemaVersion:!0,run:!0,target:!0,provenance:!0,producer:!0}).extend({recipe:kM}).strict().superRefine(({recipe:e},t)=>{let n=o((s,a)=>t.addIssue({code:d.ZodIssueCode.custom,path:["recipe",...s],message:a}),"issue");e.status==="blocked"&&e.blockers.length===0&&n(["blockers"],"a blocked recipe names at least one blocker");let i=new Set,r=0;e.files.forEach((s,a)=>{ad(s.path)||n(["files",a,"path"],"is not .skyramp/workspace.yml or a file under .skyramp/sut/"),i.has(s.path)&&n(["files",a,"path"],"file repeated"),i.add(s.path),wM.test(s.content)&&n(["files",a,"content"],"is not text");let c=Buffer.byteLength(s.content,"utf8");r+=c,c>Av&&n(["files",a,"content"],`larger than ${Av} bytes`)}),r>pv&&n(["files"],`recipe text over ${pv} bytes in total`)}),QIe=d.object({components:d.array(d.object({name:d.string().min(1),repository:d.string().refine(nL,"Invalid"),observedRevision:d.string().regex(/^[0-9a-f]{7,64}$/).nullable(),source:d.nativeEnum(ig),evidence:d.string()}).strict().refine(e=>e.source!=="agent"||e.observedRevision===null,{path:["observedRevision"],message:"a component only an agent session can read names no revision"}))}).strict();function oL(e){return e.trigger.kind==="schedule"||e.trigger.kind==="manual"&&e.sources.every(t=>t.reason==="BASELINE")}o(oL,"readsDeployedState");var bte=d.object({schemaVersion:d.literal(1),stage:d.nativeEnum(qM),event:d.nativeEnum(Cv),status:d.nativeEnum(JM).optional()}).strict().refine(e=>e.status===void 0||e.event==="finished",{path:["status"],message:"only a finished stage has a status"}),Ig=100,wte=5e3,Jo=2e3,MM=100,aL=/^[A-Za-z0-9_-]{1,64}$/,Bte=20,Qte=200,kte=100,Ste=100,Rte=200,LM="[^/\\s](?:(?:[^/\\s]| )*[^/\\s])?",xte=new RegExp(`^(?:[^/\\s]+/[^/\\s]+|[^/\\s]+/${LM}/${LM})$`),$te=500,Tte=50,cL=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/,Zn=o(e=>d.string().max(e).refine(t=>t.trim().length>0&&!cL.test(t),"blank, or not text"),"setupText"),ii={sequence:d.number().int().min(1).max(wte),at:d.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,6})?Z$/)},uL=d.object({...ii,kind:d.literal("reply"),to:d.string().uuid(),outcome:d.nativeEnum(YM),accepted:d.boolean(),text:Zn(Jo),note:d.object({source:d.enum(["target","environment"]),quote:Zn(Jo)}).strict().optional(),kept:Zn(Jo).optional()}).strict();function lL(e,t){if(e.kind!=="reply")return;let n=e;n.accepted!==(n.outcome==="answered"||n.outcome==="followed")&&t.addIssue({code:d.ZodIssueCode.custom,path:["accepted"],message:"accepted exactly when answered or followed"}),n.note&&n.outcome!=="not_followed"&&t.addIssue({code:d.ZodIssueCode.custom,path:["note"],message:"a note only when not_followed"}),n.kept&&n.outcome!=="followed"&&t.addIssue({code:d.ZodIssueCode.custom,path:["kept"],message:"kept only when followed"})}o(lL,"checkReply");var Dte=d.discriminatedUnion("kind",[d.object({...ii,kind:d.literal("log"),phase:d.nativeEnum(vv),text:Zn(Jo)}).strict(),d.object({...ii,kind:d.literal("component"),name:Zn(MM),repository:Zn(Rte).refine(e=>xte.test(e)||e===ri,"not owner/name"),file:Zn($te).nullable(),status:d.nativeEnum(bv),version:Zn(Ste).optional()}).strict(),uL,d.object({...ii,kind:d.literal("question"),id:d.string().regex(aL),type:d.nativeEnum(HM),text:Zn(Jo),component:Zn(MM).nullable(),choices:d.array(Zn(Qte)).max(Bte),placeholder:Zn(kte).optional()}).strict(),d.object({...ii,kind:d.literal("delivered"),ids:d.array(d.string().uuid()).max(Ig)}).strict(),d.object({...ii,kind:d.literal("credentials"),names:d.array(d.string().regex(od)).min(1).max(Tte)}).strict()]).superRefine((e,t)=>{lL(e,t),e.kind==="credentials"&&new Set(e.names).size!==e.names.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["names"],message:"a name twice"}),e.kind==="question"&&(e.type==="free_text"!=(e.choices.length===0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["choices"],message:"choices exactly when the question is not free_text"}),new Set(e.choices).size!==e.choices.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["choices"],message:"a choice twice"}))}),_te=d.object({schemaVersion:d.literal(1),events:d.array(Dte).max(Ig)}).strict(),Nte=d.discriminatedUnion("kind",[d.object({...ii,kind:d.literal("log"),stage:d.nativeEnum(mv),text:Zn(Jo)}).strict(),uL,d.object({...ii,kind:d.literal("delivered"),ids:d.array(d.string().uuid()).max(Ig)}).strict(),d.object({...ii,kind:d.literal("stage"),stage:d.nativeEnum(mv),event:d.nativeEnum(Cv)}).strict(),d.object({...ii,kind:d.literal("test"),resultId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/),status:d.enum(["Pass","Fail","Skipped"]),details:d.string().max(Jo).refine(e=>!cL.test(e),"not text")}).strict()]).superRefine(lL),Ute=d.object({schemaVersion:d.literal(1),events:d.array(Nte).max(Ig)}).strict(),OM={id:d.string().uuid(),text:d.string(),by:d.string().nullable(),at:d.string(),replied:d.literal(!0).optional()},dL=d.discriminatedUnion("kind",[d.object({...OM,kind:d.literal("instruction"),question:d.null()}),d.object({...OM,kind:d.literal("answer"),question:d.string().regex(aL)})]),AL=d.string().regex(/^[A-Za-z0-9+/]{43}=$/),Fte=d.object({id:d.string().uuid(),revision:d.string(),by:d.string().nullable(),at:d.string(),target:d.string(),own:d.object({source:d.enum(["policy","test_environment"]),text:d.string()}).nullable()}),pL=d.string().regex(/^[A-Za-z0-9+/]{43}=$/),Pte=d.object({ephemeralPublicKey:pL,iv:d.string().regex(/^[A-Za-z0-9+/]{16}$/),ciphertext:d.string().min(1).max(65536),tag:d.string().regex(/^[A-Za-z0-9+/]{22}==$/)}).strict();var Mte=/^[A-Z][A-Z0-9_]{0,99}$/,Lte=new Set(["PATH","HOME","SHELL","USER","LOGNAME","PWD","OLDPWD","TMPDIR","TMP","TEMP","IFS","ENV","BASH_ENV","CDPATH","PS4","NODE_OPTIONS","NODE_PATH","NODE_EXTRA_CA_CERTS","NODE_TLS_REJECT_UNAUTHORIZED","PYTHONPATH","PYTHONHOME","PYTHONSTARTUP","RUBYOPT","RUBYLIB","PERL5OPT","PERL5LIB","JAVA_TOOL_OPTIONS","SSL_CERT_FILE","SSL_CERT_DIR","CURL_CA_BUNDLE","REQUESTS_CA_BUNDLE","HTTP_PROXY","HTTPS_PROXY","NO_PROXY","ALL_PROXY","SSH_AUTH_SOCK","DOCKER_HOST","GIT_SSH","GIT_SSH_COMMAND","GIT_ASKPASS","GIT_EXEC_PATH","GIT_DIR","GIT_WORK_TREE","GIT_PROXY_COMMAND"]),Ote=["LD_","DYLD_","GIT_CONFIG","GITHUB_","RUNNER_","ACTIONS_","INPUT_","SKYRAMP_RUNNER_"],jte=o(e=>Mte.test(e)&&!Lte.has(e)&&!Ote.some(t=>e.startsWith(t)),"relayCredentialNameAllowed"),fL=d.string().refine(jte,"not a name a relay may set"),cd={id:$t,credentialName:fL},Gte=d.discriminatedUnion("status",[d.object({...cd,status:d.literal("sealed"),sealed:Pte}),d.object({...cd,status:d.literal("pending")}),d.object({...cd,status:d.literal("empty")}),d.object({...cd,status:d.literal("failed")}),d.object({...cd,status:d.literal("expired")})]),kIe=d.object({schemaVersion:d.literal(1),relayId:$t,attemptId:$t,credentialName:fL,publicKey:pL}).strict(),Vte=d.object({schemaVersion:d.literal(1),leftOut:d.array(d.string()),messages:d.array(dL).optional(),stop:d.object({key:AL}).optional(),notes:Fte.optional(),relays:d.array(d.unknown()).transform(e=>e.flatMap(t=>{let n=Gte.safeParse(t);return n.success?[n.data]:[]})).optional()}),zte=d.object({schemaVersion:d.literal(1),messages:d.array(dL).optional()});var qte=500*1024*1024,gL=d.object({id:gr,name:d.string().regex(/^[A-Za-z0-9._-]{1,200}$/),providerRunId:gr,expiresAt:d.string().datetime()}).strict(),Jte=d.object({schemaVersion:d.literal(1),artifact:gL,sessionId:$t,contentHash:pn,bytes:d.number().int().min(1).max(qte)}).strict(),Hte=d.object({schemaVersion:d.literal(1),checkpoint:d.object({artifact:gL,repository:d.object({namespace:d.string().min(1),name:d.string().min(1)}).strict(),sessionId:$t,contentHash:pn,key:AL}).strict().nullable()}).strict(),Yte=200,Dc=100,hL=(i=>(i.Resume="resume",i.Retry="retry",i.Update="update",i))(hL||{}),Wte=d.object({kind:d.nativeEnum(hL),setup:d.object({runId:$t,endedAt:d.string().nullable(),outcome:d.string().nullable()}).strict(),components:d.array(d.object({name:d.string().min(1),repository:d.string().min(1),status:d.nativeEnum(bv)}).strict()).max(Dc),credentials:d.array(d.string().min(1)).max(Dc),answers:d.array(d.object({question:d.string(),answer:d.string().nullable()}).strict()).max(Dc),instructions:d.array(d.object({text:d.string(),reply:d.string().nullable()}).strict()).max(Dc),log:d.array(d.object({phase:d.nativeEnum(vv),text:d.string()}).strict()).max(Yte),recipe:d.object({files:d.array(d.object({path:d.string().min(1),content:d.string()}).strict()).max(Dc),blockers:d.array(d.object({component:d.string(),problem:d.string(),evidence:d.string(),fix:d.string()}).strict()).max(Dc)}).strict().optional()}).strict(),Zte=d.object({schemaVersion:d.literal(1),context:Wte.nullable()}).strict(),Kte=d.object({schemaVersion:d.literal(1),configuration:d.object({captureId:$t,revision:gr.nullable(),hash:pn}).strict(),capture:d.object({schemaVersion:d.literal(1),settings:d.object({target:d.object({environment:d.unknown()}).passthrough(),timeoutMinutes:d.number().int().positive(),answerWaitMinutes:d.number().int().positive().optional(),testEnvironment:d.object({name:d.string().min(1),address:d.string().min(1).optional(),readyWhen:d.string().min(1).optional()}).passthrough().optional()}).passthrough(),provenance:d.object({}).passthrough(),hash:pn}).strict()}).strict(),Xte=Tc.extend({version:d.number().int().positive(),components:d.array(d.object({name:d.string().min(1),repository:d.string().min(1)}).strict()),contentHash:pn.optional(),files:d.array(d.object({path:d.string().refine(e=>ad(e)&&!hv.includes(e),"not a file of a customer_deployed plan"),content:d.string()}).strict()).optional()}).strict(),ene=d.object({schemaVersion:d.literal(1),testEnvironment:Xte.nullable().optional(),runtimePlan:d.object({version:d.number().int().positive(),contentHash:pn,files:d.array(d.object({path:d.string().refine(ad,"not a recipe file path"),content:d.string()}).strict()).min(1),repository:ag.optional(),recipeRepository:ag.optional(),recipe:d.record(d.unknown()).optional()}).strict().nullable()}).strict().refine(e=>!(e.runtimePlan&&e.testEnvironment),{message:"a run pins a recipe or a customer's Test Environment, never both",path:["testEnvironment"]}),mL=d.object({schemaVersion:d.literal(1),state:d.nativeEnum(zM),ending:d.nativeEnum(dd).nullable(),cause:d.nativeEnum(Ad).nullable(),deadlineAt:d.string().datetime()}).strict();function yL(e,t){return e.state==="ended"?e.ending==="cancelled"?"cancelled":e.cause==="runner_lost"?"expired":"ended":t.getTime()>=Date.parse(e.deadlineAt)?"expired":null}o(yL,"attemptClosure");var EL=50,SIe=d.object({repository:Fr,revisions:d.array(d.number().int().nonnegative()).min(1).max(2).refine(e=>e.length<2||e[0]<e[1],"two revisions name the earlier first"),files:d.array(d.string().min(1)).min(1).max(EL)}).strict();function yv(e){if(typeof e=="number"&&!Number.isFinite(e))throw new TypeError("Canonical JSON requires JSON values");if(Array.isArray(e))return`[${e.map(yv).join(",")}]`;if(e!==null&&typeof e=="object"){let n=e;return`{${Object.keys(n).sort().map(i=>`${JSON.stringify(i)}:${yv(n[i])}`).join(",")}}`}let t=JSON.stringify(e);if(t===void 0)throw new TypeError("Canonical JSON requires JSON values");return t}o(yv,"canonicalJson");function IL(e){return(0,GM.createHash)("sha256").update(yv(e),"utf8").digest("hex")}o(IL,"manifestHash");var ud=o(e=>({provider:e.provider,providerAccountId:e.providerAccountId,providerRepositoryId:e.providerRepositoryId}),"toSourceRef");function kv(e,t,{statedPins:n=!0}={}){return mte.parse({schemaVersion:1,runId:e,execution:t.execution(),requester:!0,writeCheck:!0,claudeCodePin:!0,deployedPins:!0,...n?{statedPins:!0}:{},...t.runSettingsFromApp?{runSettings:!0}:{},credentialRelay:!0})}o(kv,"handshakeRequest");function CL(e){let t=gte.parse(e);if(IL(t.manifest)!==t.manifestHash)throw new Error("The handshake manifest hash does not match its manifest");return t}o(CL,"parseHandshakeResponse");function tne(e){let t=o(i=>i.map(r=>({repository:ud(r.repository),number:r.number,...r.commitSha===void 0?{}:{commitSha:r.commitSha}})),"pullRequests"),n=e.noTests?{noTests:e.noTests.map(i=>({repository:ud(i.repository),reason:i.reason}))}:{};return e.status==="delivered"?{status:e.status,...n,pullRequests:t(e.pullRequests)}:e.status==="partial"?{status:e.status,...n,pullRequests:t(e.pullRequests),failures:e.failures.map(i=>({repository:ud(i.repository),message:i.message}))}:{...e,...n}}o(tne,"toDelivery");function nne(e){return e.issues.map(t=>`${t.path.map((i,r)=>typeof i=="number"?`[${i}]`:r===0?i:`.${i}`).join("")}: ${t.message}`).join("; ")}o(nne,"describeIssues");function vL(e){let{manifest:t}=e;if(ite.includes(t.trigger.kind))throw new Error(`The report upload is invalid: a ${t.trigger.kind} run uploads its SUT recipe, never a report`);if(t.trigger.kind==="revision_read")throw new Error("The report upload is invalid: a revision_read run uploads what each component runs, never a report");if(e.firstQualification&&!t.baseline?.sources)throw new Error("The report upload is invalid: only a run whose manifest names baseline sources can be a first qualification");let n=sL.safeParse({schemaVersion:1,run:{runId:t.runId,attemptNumber:e.attemptNumber,manifestHash:IL(t)},target:{id:t.target.id,revision:t.target.revision},policy:t.policy&&{id:t.policy.id,revision:t.policy.revision},provenance:{sources:e.checkedOut.map(i=>({repository:ud(i.repository),revision:i.revision})),...e.firstQualification?{firstQualification:!0}:{}},delivery:{generatedTests:tne(e.generatedTests)},producer:e.producer,report:e.report,...e.githubWrites?.length?{githubWrites:e.githubWrites.map(i=>({...i,repository:ud(i.repository)}))}:{}});if(!n.success)throw new Error(`The report upload is invalid: ${nne(n.error)}`);return rne(n.data,t,e.checkedOut),n.data}o(vL,"buildReportUpload");function rne(e,t,n){let i=o(s=>n.find(a=>si(a.repository)===si(s.repository))?.revision??s.revision,"revisionOf"),r=new Map(t.sources.map(s=>[`${s.repository.namespace}/${s.repository.name}`.toLowerCase(),i(s)]));e.report.validation.acceptedEvidence.forEach((s,a)=>{let c=`report.validation.acceptedEvidence[${a}]`,u=r.get(s.repository.toLowerCase());if(!u)throw new Error(`${c}.repository: ${s.repository} is outside the run's snapshot`);if(s.revision!==u)throw new Error(`${c}.revision: evidence is not from the checked-out revision ${u}`)})}o(rne,"assertEvidenceFromSnapshot");function bL(e){return e.reportUploaded?{schemaVersion:1,reason:"report_uploaded",cause:null}:e.recipeUploaded?{schemaVersion:1,reason:"recipe_uploaded",cause:null}:e.revisionsUploaded?{schemaVersion:1,reason:"revisions_uploaded",cause:null}:e.cancelled?{schemaVersion:1,reason:"cancelled",cause:null}:e.mergeConflict&&jM(e)==="merge_conflict"?{schemaVersion:1,reason:"no_report",cause:"merge_conflict",conflict:e.mergeConflict}:{schemaVersion:1,reason:"no_report",cause:jM({...e,mergeConflict:void 0})}}o(bL,"attemptEndFor");function jM(e){return e.runnerProviderNotReady?"runner_provider_not_ready":e.credentialMissing?"credential_missing":e.mergeConflict?"merge_conflict":e.checkoutFailed?"checkout_failed":e.environmentUnverified?"environment_unverified":e.setupFailed?"setup_failed":e.timedOut?"timed_out":e.modelProviderDenied?"model_provider_denied":e.modelProviderUnavailable?"model_provider_unavailable":"agent_failed"}o(jM,"noReportCause");var ks=_e(require("path"));var TIe={"application/pdf":"PDF","text/csv":"CSV","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"DOCX","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"XLSX"};var Sv=o(e=>new Map((e??[]).flatMap(t=>t.file?[[rd(t.key),t.file.name]]:[])),"itemNames"),ine=10*1024*1024,sne=o(e=>e?.mediaType==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e?.mediaType==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","needsExtraction"),BL=o((e,t)=>ks.join(ks.dirname(e),`${ks.basename(e,ks.extname(e))}${t}`),"besideFile"),one=o(e=>BL(e,".extracted.txt"),"extractedTextPath");var ane=o(e=>BL(e,".quotes.txt"),"confirmedQuotesPath");function QL(e){return sne(e.file)?one(e.path):e.file?.mediaType==="application/pdf"?ane(e.path):e.path}o(QL,"itemTextPath");var Nc=o(e=>e.slice(0,12),"shortCommit");var cne=["generate-unit","native-run"],PIe=["preflight","plan","write",...cne,"report","deliver"];var Rv=(i=>(i.Unit="unit",i.Integration="integration",i.E2e="e2e",i))(Rv||{}),une=Object.values(Rv);var kL=require("child_process");var pd=_e(require("path"));var Ss="Skyramp Testbot",Yo="test-bot@skyramp.dev";var lne=o((e,t)=>(0,kL.execFileSync)("git",t,{cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).trim(),"git");function SL(e){let t="";try{t=lne(e,["remote","get-url","origin"])}catch{}let n=/[:/]([A-Za-z0-9._-]+)\/([A-Za-z0-9._-]+?)(?:\.git)?\/?$/.exec(t);return n&&!t.startsWith("/")&&!t.startsWith(".")?`${n[1]}/${n[2]}`:`local/${pd.basename(pd.resolve(e)).replace(/[^A-Za-z0-9._-]/g,"-")||"repo"}`}o(SL,"repositorySlug");var YIe=new Set(Object.values(Qs));var WIe=d.object({checks:d.array(d.object({repository:d.string().optional(),name:d.string().min(1),headSha:d.string().regex(/^[0-9a-f]{40}$|^[0-9a-f]{64}$/i),status:d.string().default("completed"),conclusion:d.string().nullable().optional(),url:d.string().optional(),summary:d.string().optional()}))});var xv=new Map;function Ane(e){return e.repositorySlug?e.repositorySlug:(xv.has(e.repositoryPath)||xv.set(e.repositoryPath,SL(e.repositoryPath)),xv.get(e.repositoryPath))}o(Ane,"workingSlug");function hr(e){return[{slug:Ane(e),path:e.repositoryPath,writable:!0,working:!0},...(e.relatedRepos??[]).map(t=>({slug:t.slug,path:t.path,writable:t.writable===!0,working:!1}))]}o(hr,"runSources");var Uc=o((e,t)=>e.toLowerCase()===t.toLowerCase(),"sameSlug");function Cg(e,t){return t?.trim()?e.find(n=>Uc(n.slug,t.trim())):e[0]}o(Cg,"findSource");function Wo(e,t){return Cg(hr(e),t)}o(Wo,"resolveSource");var pne=o((e,t)=>`${t} is not a repository of this run (${hr(e).map(n=>n.slug).join(", ")})`,"notARepository");function fd(e,t){let n=Wo(e,t);return n?n.writable?{source:n}:{error:`${n.slug} is read-only in this run: tests are written only to ${hr(e).filter(i=>i.writable).map(i=>i.slug).join(", ")}`}:{error:pne(e,t)}}o(fd,"writableSource");var gd=_e(require("fs")),hd=_e(require("path"));var fne=8;function tn(e,t,n={}){let i=t.slice(0,fne),r=t.length-i.length;return{name:e,passed:!1,details:i.join("; ")+(r>0?`; \u2026and ${r} more`:""),...n.fatal?{fatal:!0}:{}}}o(tn,"fail");function Zo(e){if(gd.existsSync(e))try{return JSON.parse(gd.readFileSync(e,"utf-8"))}catch{return}}o(Zo,"readJsonFile");function it(e,t){return Zo(hd.join(e.outputsDir,t))}o(it,"readArtifact");function mr(e,t){return{name:e,verify(n,i){let{errors:r}=t(n,i);return r.length===0?{name:this.name,passed:!0}:tn(this.name,r,{fatal:!0})}}}o(mr,"schemaGate");function md(e){return e.replace(/\s+/g," ").trim()}o(md,"normalizeCode");var vg=new RegExp("(^|/)("+["test_[^/]+\\.py","[^/]+_test\\.py","[^/]+\\.(spec|test)\\.[cm]?[jt]sx?","[^/]+\\.e2e-(spec|test)\\.[cm]?[jt]sx?","[^/]+_test\\.go","[^/]+Tests?\\.(java|kts?)","[^/]+_(test|spec)\\.rb","[^/]+\\.feature","[^/]+Tests?\\.cs","[^/]+_test\\.rs","tests/[^/]+\\.rs","[^/]+Test\\.php","[^/]+(Test|Spec|Suite)\\.scala","[^/]+Tests?\\.swift","[^/]+_test\\.exs","[^/]+_test\\.dart","[^/]+_test\\.(c|cc|cpp|cxx)","test_[^/]+\\.(c|cc|cpp|cxx)","[^/]+(Spec|Test)\\.groovy"].join("|")+")$","i");var Rt={};wr(Rt,{$brand:()=>Vv,$input:()=>vQ,$output:()=>CQ,INVALID:()=>hn,NEVER:()=>Gv,TimePrecision:()=>_Q,ZodAny:()=>CS,ZodArray:()=>BS,ZodBase64:()=>gm,ZodBase64URL:()=>hm,ZodBigInt:()=>Iu,ZodBigIntFormat:()=>Em,ZodBoolean:()=>Eu,ZodCIDRv4:()=>pm,ZodCIDRv6:()=>fm,ZodCUID:()=>om,ZodCUID2:()=>am,ZodCatch:()=>qS,ZodCodec:()=>gA,ZodCompileAsyncError:()=>Mr,ZodCompileUnsupportedError:()=>Ue,ZodCreditCard:()=>pS,ZodCustom:()=>hA,ZodCustomStringFormat:()=>fa,ZodDate:()=>uA,ZodDefault:()=>LS,ZodDiscriminatedUnion:()=>kS,ZodE164:()=>mm,ZodEmail:()=>nm,ZodEmoji:()=>im,ZodEnum:()=>hu,ZodError:()=>Doe,ZodExactOptional:()=>bm,ZodFile:()=>US,ZodFirstPartyTypeKind:()=>oR,ZodFunction:()=>nR,ZodGUID:()=>rm,ZodIBAN:()=>fS,ZodIPv4:()=>dm,ZodIPv6:()=>Am,ZodISODate:()=>Ms,ZodISODateTime:()=>Ps,ZodISODuration:()=>Os,ZodISOTime:()=>Ls,ZodInstanceOf:()=>sR,ZodIntersection:()=>SS,ZodIssueCode:()=>Uoe,ZodJWT:()=>ym,ZodKSUID:()=>lm,ZodLazy:()=>XS,ZodLiteral:()=>NS,ZodMAC:()=>AS,ZodMap:()=>DS,ZodNaN:()=>HS,ZodNanoID:()=>sm,ZodNever:()=>bS,ZodNonOptional:()=>wm,ZodNull:()=>ES,ZodNullable:()=>MS,ZodNumber:()=>yu,ZodNumberFormat:()=>ga,ZodObject:()=>dA,ZodOptional:()=>pA,ZodPipe:()=>fA,ZodPrefault:()=>jS,ZodPreprocess:()=>YS,ZodPromise:()=>tR,ZodReadonly:()=>WS,ZodRealError:()=>Un,ZodRecord:()=>gu,ZodSet:()=>_S,ZodString:()=>mu,ZodStringFormat:()=>et,ZodSuccess:()=>zS,ZodSymbol:()=>mS,ZodTemplateLiteral:()=>KS,ZodTransform:()=>FS,ZodTuple:()=>xS,ZodType:()=>Re,ZodULID:()=>cm,ZodURL:()=>cA,ZodUUID:()=>ui,ZodUndefined:()=>yS,ZodUnion:()=>AA,ZodUnknown:()=>vS,ZodVoid:()=>wS,ZodXID:()=>um,ZodXor:()=>QS,_ZodString:()=>tm,_default:()=>OS,_function:()=>nj,any:()=>D1,array:()=>lA,base64:()=>p1,base64url:()=>f1,bigint:()=>S1,boolean:()=>hS,catch:()=>JS,check:()=>rj,cidrv4:()=>d1,cidrv6:()=>A1,clone:()=>He,codec:()=>K1,coerce:()=>cR,compile:()=>QQ,config:()=>Ct,core:()=>ji,creditCard:()=>h1,cuid:()=>r1,cuid2:()=>i1,currencyCode:()=>v1,custom:()=>ij,date:()=>N1,decode:()=>sS,decodeAsync:()=>aS,deepPartial:()=>mj,describe:()=>sj,discriminatedUnion:()=>O1,e164:()=>g1,email:()=>JO,emoji:()=>t1,encode:()=>iS,encodeAsync:()=>oS,endsWith:()=>iu,enum:()=>Cm,exactOptional:()=>PS,file:()=>H1,flattenError:()=>Sd,float32:()=>w1,float64:()=>B1,formatError:()=>Rd,fromJSONSchema:()=>gj,function:()=>nj,getDiscriminatedOption:()=>Gw,getErrorMap:()=>Poe,globalRegistry:()=>Vt,gt:()=>ai,gte:()=>Xn,guid:()=>HO,hash:()=>b1,hex:()=>C1,hostname:()=>I1,httpUrl:()=>e1,iban:()=>m1,includes:()=>nu,input:()=>Ej,instanceof:()=>aj,int:()=>Xh,int32:()=>Q1,int64:()=>R1,intersection:()=>RS,invertCodec:()=>X1,ipv4:()=>c1,ipv6:()=>l1,iso:()=>mA,json:()=>uj,jwt:()=>y1,keyof:()=>U1,ksuid:()=>a1,lazy:()=>eR,length:()=>ua,literal:()=>J1,locales:()=>Kd,looseObject:()=>M1,looseRecord:()=>G1,lowercase:()=>eu,lt:()=>oi,lte:()=>Kn,mac:()=>u1,map:()=>V1,maxLength:()=>ca,maxSize:()=>_s,memoizer:()=>Jd,meta:()=>oj,mime:()=>ou,minLength:()=>Oi,minSize:()=>ci,multipleOf:()=>Ds,nan:()=>Z1,nanoid:()=>n1,nativeEnum:()=>q1,negative:()=>jh,never:()=>Im,nonnegative:()=>Vh,nonoptional:()=>VS,nonpositive:()=>Gh,normalize:()=>au,null:()=>IS,nullable:()=>aA,nullish:()=>Y1,number:()=>gS,object:()=>F1,optional:()=>Aa,output:()=>Ij,overwrite:()=>Lr,parse:()=>eS,parseAsync:()=>tS,partialRecord:()=>j1,pipe:()=>em,positive:()=>Oh,prefault:()=>GS,preprocess:()=>lj,prettifyError:()=>Yv,promise:()=>tj,properties:()=>su,property:()=>zh,readonly:()=>ZS,record:()=>TS,refine:()=>rR,regex:()=>Xc,regexes:()=>Ir,registry:()=>hh,safeDecode:()=>uS,safeDecodeAsync:()=>dS,safeEncode:()=>cS,safeEncodeAsync:()=>lS,safeParse:()=>nS,safeParseAsync:()=>rS,set:()=>z1,setErrorMap:()=>Foe,size:()=>aa,slugify:()=>du,startsWith:()=>ru,strictObject:()=>P1,string:()=>oA,stringFormat:()=>E1,stringbool:()=>cj,success:()=>W1,superRefine:()=>iR,symbol:()=>$1,templateLiteral:()=>ej,toJSONSchema:()=>Yh,toLowerCase:()=>uu,toUpperCase:()=>lu,toZod:()=>yd,transform:()=>vm,treeifyError:()=>Hv,trim:()=>cu,tuple:()=>$S,uint32:()=>k1,uint64:()=>x1,ulid:()=>s1,undefined:()=>T1,union:()=>Cu,unknown:()=>da,uppercase:()=>tu,url:()=>XO,util:()=>x,uuid:()=>YO,uuidv4:()=>WO,uuidv6:()=>ZO,uuidv7:()=>KO,validate:()=>xd,validateAsync:()=>$d,void:()=>_1,withParser:()=>mh,xid:()=>o1,xor:()=>L1});var ji={};wr(ji,{$ZodAny:()=>_w,$ZodArray:()=>Lw,$ZodAsyncError:()=>_n,$ZodBase64:()=>vw,$ZodBase64URL:()=>bw,$ZodBigInt:()=>sh,$ZodBigIntFormat:()=>xw,$ZodBoolean:()=>Od,$ZodCIDRv4:()=>Iw,$ZodCIDRv6:()=>Cw,$ZodCUID:()=>cw,$ZodCUID2:()=>uw,$ZodCatch:()=>sB,$ZodCheck:()=>st,$ZodCheckBigIntFormat:()=>Nb,$ZodCheckEndsWith:()=>Jb,$ZodCheckGreaterThan:()=>Gg,$ZodCheckIncludes:()=>zb,$ZodCheckLengthEquals:()=>Ob,$ZodCheckLessThan:()=>jg,$ZodCheckLowerCase:()=>Gb,$ZodCheckMaxLength:()=>Mb,$ZodCheckMaxSize:()=>Ub,$ZodCheckMimeType:()=>Wb,$ZodCheckMinLength:()=>Lb,$ZodCheckMinSize:()=>Fb,$ZodCheckMultipleOf:()=>Db,$ZodCheckNumberFormat:()=>_b,$ZodCheckOverwrite:()=>Zb,$ZodCheckProperties:()=>Yb,$ZodCheckProperty:()=>Hb,$ZodCheckRegex:()=>jb,$ZodCheckSizeEquals:()=>Pb,$ZodCheckStartsWith:()=>qb,$ZodCheckStringFormat:()=>Hc,$ZodCheckUpperCase:()=>Vb,$ZodCodec:()=>Gd,$ZodCreditCard:()=>Bw,$ZodCustom:()=>AB,$ZodCustomStringFormat:()=>Sw,$ZodCyclicError:()=>Ah,$ZodDate:()=>Pw,$ZodDefault:()=>tB,$ZodDiscriminatedUnion:()=>Vw,$ZodE164:()=>ww,$ZodEmail:()=>nw,$ZodEmoji:()=>ow,$ZodEncodeError:()=>$s,$ZodEnum:()=>Yw,$ZodError:()=>Jv,$ZodExactOptional:()=>Xw,$ZodFile:()=>Zw,$ZodFunction:()=>lB,$ZodGUID:()=>ew,$ZodIBAN:()=>Qw,$ZodIPv4:()=>mw,$ZodIPv6:()=>yw,$ZodISODate:()=>fw,$ZodISODateTime:()=>pw,$ZodISODuration:()=>hw,$ZodISOTime:()=>gw,$ZodIntersection:()=>zw,$ZodJWT:()=>kw,$ZodKSUID:()=>Aw,$ZodLazy:()=>Vd,$ZodLiteral:()=>Ww,$ZodMAC:()=>Ew,$ZodMap:()=>Jw,$ZodNaN:()=>oB,$ZodNanoID:()=>aw,$ZodNever:()=>Uw,$ZodNonOptional:()=>rB,$ZodNull:()=>Dw,$ZodNullable:()=>eB,$ZodNumber:()=>ih,$ZodNumberFormat:()=>Rw,$ZodObject:()=>uO,$ZodObjectJIT:()=>Ow,$ZodOptional:()=>ah,$ZodPipe:()=>ch,$ZodPrefault:()=>nB,$ZodPreprocess:()=>aB,$ZodPromise:()=>dB,$ZodReadonly:()=>cB,$ZodRealError:()=>Nn,$ZodRecord:()=>qw,$ZodRegistry:()=>gh,$ZodSet:()=>Hw,$ZodString:()=>ra,$ZodStringFormat:()=>Ye,$ZodSuccess:()=>iB,$ZodSymbol:()=>$w,$ZodTemplateLiteral:()=>uB,$ZodTransform:()=>Kw,$ZodTuple:()=>oh,$ZodType:()=>Be,$ZodULID:()=>lw,$ZodURL:()=>sw,$ZodUUID:()=>tw,$ZodUndefined:()=>Tw,$ZodUnion:()=>jd,$ZodUnknown:()=>Nw,$ZodVoid:()=>Fw,$ZodXID:()=>dw,$ZodXor:()=>jw,$brand:()=>Vv,$constructor:()=>b,$input:()=>vQ,$output:()=>CQ,Doc:()=>na,INVALID:()=>hn,JSONSchema:()=>VO,JSONSchemaGenerator:()=>Wh,NEVER:()=>Gv,TimePrecision:()=>_Q,URL_BAD_FORMAT:()=>rw,URL_UNPARSEABLE:()=>Ud,ZodCompileAsyncError:()=>Mr,ZodCompileUnsupportedError:()=>Ue,_any:()=>ZQ,_array:()=>ik,_base64:()=>Fh,_base64url:()=>Ph,_bigint:()=>VQ,_boolean:()=>jQ,_catch:()=>Coe,_check:()=>SO,_cidrv4:()=>Nh,_cidrv6:()=>Uh,_coercedBigint:()=>zQ,_coercedBoolean:()=>GQ,_coercedDate:()=>nk,_coercedNumber:()=>UQ,_coercedString:()=>xQ,_creditCard:()=>TQ,_cuid:()=>Sh,_cuid2:()=>Rh,_custom:()=>ok,_date:()=>tk,_decode:()=>$g,_decodeAsync:()=>Dg,_default:()=>yoe,_discriminatedUnion:()=>ooe,_e164:()=>Mh,_email:()=>Ih,_emoji:()=>Qh,_encode:()=>xg,_encodeAsync:()=>Tg,_endsWith:()=>iu,_enum:()=>Aoe,_file:()=>sk,_float32:()=>PQ,_float64:()=>MQ,_gt:()=>ai,_gte:()=>Xn,_guid:()=>Ch,_iban:()=>DQ,_includes:()=>nu,_int:()=>FQ,_int32:()=>LQ,_int64:()=>qQ,_intersection:()=>aoe,_ipv4:()=>Dh,_ipv6:()=>_h,_isoDate:()=>tA,_isoDateTime:()=>eA,_isoDuration:()=>rA,_isoTime:()=>nA,_jwt:()=>Lh,_ksuid:()=>Th,_lazy:()=>Boe,_length:()=>ua,_literal:()=>foe,_lowercase:()=>eu,_lt:()=>oi,_lte:()=>Kn,_mac:()=>$Q,_map:()=>loe,_max:()=>Kn,_maxLength:()=>ca,_maxSize:()=>_s,_mime:()=>ou,_min:()=>Xn,_minLength:()=>Oi,_minSize:()=>ci,_multipleOf:()=>Ds,_nan:()=>rk,_nanoid:()=>kh,_nativeEnum:()=>poe,_negative:()=>jh,_never:()=>XQ,_nonnegative:()=>Vh,_nonoptional:()=>Eoe,_nonpositive:()=>Gh,_normalize:()=>au,_null:()=>WQ,_nullable:()=>moe,_number:()=>NQ,_optional:()=>hoe,_overwrite:()=>Lr,_parse:()=>Vc,_parseAsync:()=>zc,_pipe:()=>voe,_positive:()=>Oh,_promise:()=>Qoe,_properties:()=>su,_property:()=>zh,_readonly:()=>boe,_record:()=>uoe,_refine:()=>ak,_regex:()=>Xc,_safeDecode:()=>Ng,_safeDecodeAsync:()=>Fg,_safeEncode:()=>_g,_safeEncodeAsync:()=>Ug,_safeParse:()=>qc,_safeParseAsync:()=>Jc,_set:()=>doe,_size:()=>aa,_slugify:()=>du,_startsWith:()=>ru,_string:()=>RQ,_stringFormat:()=>la,_stringbool:()=>dk,_success:()=>Ioe,_superRefine:()=>ck,_symbol:()=>HQ,_templateLiteral:()=>woe,_toLowerCase:()=>uu,_toUpperCase:()=>lu,_transform:()=>goe,_trim:()=>cu,_tuple:()=>coe,_uint32:()=>OQ,_uint64:()=>JQ,_ulid:()=>xh,_undefined:()=>YQ,_union:()=>ioe,_unknown:()=>KQ,_uppercase:()=>tu,_url:()=>Xd,_uuid:()=>vh,_uuidv4:()=>bh,_uuidv6:()=>wh,_uuidv7:()=>Bh,_void:()=>ek,_xid:()=>$h,_xor:()=>soe,base64Charset:()=>Xg,base64urlCharset:()=>Ld,canParseURL:()=>iw,clone:()=>He,compile:()=>QQ,compileFn:()=>yh,config:()=>Ct,createStandardJSONSchemaMethod:()=>Au,createToJSONSchemaMethod:()=>pk,decode:()=>sre,decodeAsync:()=>are,describe:()=>uk,encode:()=>ire,encodeAsync:()=>ore,extractDefs:()=>Us,finalize:()=>Fs,flattenError:()=>Sd,formatError:()=>Rd,getDiscriminatedOption:()=>Gw,globalConfig:()=>Pt,globalRegistry:()=>Vt,handleUnrepresentable:()=>Tt,initializeContext:()=>Ns,isBackEdge:()=>fh,isRecursiveSchema:()=>ph,isValidBase64:()=>Md,isValidBase64URL:()=>eh,isValidCIDRv6:()=>Kg,isValidCreditCard:()=>th,isValidIBAN:()=>nh,isValidIPv6:()=>Pd,isValidJWT:()=>rh,locales:()=>Kd,memoizer:()=>Jd,mergeValues:()=>Yc,meta:()=>lk,parse:()=>Sg,parseAsync:()=>Rg,parseURLObject:()=>oO,prettifyError:()=>Yv,process:()=>We,processSchema:()=>We,regexes:()=>Ir,registry:()=>hh,safeDecode:()=>ure,safeDecodeAsync:()=>dre,safeEncode:()=>cre,safeEncodeAsync:()=>lre,safeParse:()=>Xne,safeParseAsync:()=>ere,standardProps:()=>Hg,stripTabAndNewline:()=>Fd,toDotPath:()=>ML,toJSONSchema:()=>Yh,toZod:()=>yd,treeifyError:()=>Hv,urlHostnameOk:()=>Wg,urlProtocolOk:()=>Zg,util:()=>x,validate:()=>xd,validateAsync:()=>$d,validateURL:()=>Yg,version:()=>Kb,withParser:()=>mh});var x={};wr(x,{BIGINT_FORMAT_RANGES:()=>bd,CONSTANT_CATCH:()=>Qg,Class:()=>Dv,NUMBER_FORMAT_RANGES:()=>vd,aborted:()=>gn,allowsEval:()=>Uv,assert:()=>Ene,assertEqual:()=>gne,assertIs:()=>mne,assertNever:()=>yne,assertNotEqual:()=>hne,assignProp:()=>Gt,attachSchema:()=>wd,base64ToUint8Array:()=>DL,base64urlToUint8Array:()=>Pne,cached:()=>Lc,captureStackTrace:()=>wg,cleanEnum:()=>Fne,cleanRegex:()=>Mi,clone:()=>He,cloneDef:()=>vne,codePointLength:()=>ea,constantCatch:()=>Ov,createTransparentProxy:()=>Sne,defineLazy:()=>_v,defineLazyInternal:()=>$e,derived:()=>jne,esc:()=>fn,escapeRegex:()=>Er,explicitlyAborted:()=>Mv,extend:()=>$ne,finalizeIssue:()=>Dn,floatSafeRemainder:()=>Ed,getElementAtPath:()=>bne,getEnumValues:()=>Pc,getLengthableOrigin:()=>Qd,getParsedType:()=>kne,getSizableOrigin:()=>Bd,hexToUint8Array:()=>Lne,hide:()=>kd,installLazyProp:()=>qne,isObject:()=>Xo,isPlainObject:()=>yr,issue:()=>Gc,joinValues:()=>w,jsonStringifyReplacer:()=>Mc,members:()=>Lv,merge:()=>Dne,mergeDefs:()=>Pr,normalizeParams:()=>G,nullish:()=>bg,numKeys:()=>Qne,objectClone:()=>Ine,omit:()=>xne,optionalKeys:()=>Pv,own:()=>xs,parsedType:()=>T,partial:()=>_ne,pick:()=>Rne,prefixIssues:()=>Tn,primitiveTypes:()=>Fv,promiseAllObject:()=>wne,propertyKeyTypes:()=>Cd,randomString:()=>Bne,rawShape:()=>Oc,required:()=>Nne,safeExtend:()=>Tne,shallowClone:()=>Id,sizeCaps:()=>jc,slugify:()=>Nv,stringifyPrimitive:()=>$,toZod:()=>yd,uint8ArrayToBase64:()=>_L,uint8ArrayToBase64url:()=>Mne,uint8ArrayToHex:()=>One,unwrapMessage:()=>Fc});function gne(e){return e}o(gne,"assertEqual");function hne(e){return e}o(hne,"assertNotEqual");function yd(){return e=>e}o(yd,"toZod");function mne(e){}o(mne,"assertIs");function yne(e){throw new Error("Unexpected value in exhaustive check")}o(yne,"assertNever");function Ene(e){}o(Ene,"assert");function Pc(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}o(Pc,"getEnumValues");function w(e,t="|"){return e.map(n=>$(n)).join(t)}o(w,"joinValues");function Mc(e,t){return typeof t=="bigint"?t.toString():t}o(Mc,"jsonStringifyReplacer");var Tv=class{static{o(this,"Cached")}constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Lc(e){return new Tv(e)}o(Lc,"cached");function bg(e){return e==null}o(bg,"nullish");function Mi(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}o(Mi,"cleanRegex");function Ed(e,t){let n=e/t,i=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)<r?0:n-i}o(Ed,"floatSafeRemainder");var RL=Symbol("evaluating");function _v(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==RL)return i===void 0&&(i=RL,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}o(_v,"defineLazy");function Ine(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}o(Ine,"objectClone");function Gt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}o(Gt,"assignProp");function Oc(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}o(Oc,"rawShape");function Pi(e){return Oc(e._zod.def)??e._zod.def.shape}o(Pi,"sourceShape");function xL(e,t,n){Object.defineProperty(e,t,{get(){let i=n();return Gt(this,t,i),i},enumerable:!0,configurable:!0})}o(xL,"deferProp");function $L(e,t,n){t in e?Gt(e,t,n):e[t]=n}o($L,"putProp");function Ko(e,t,n,i){let r=Pi(t);for(let s of n){let a=Object.getOwnPropertyDescriptor(r,s);a.enumerable&&(a.get?xL(e,s,()=>{let c=t._zod.def.shape[s];return i?i(c,s):c}):$L(e,s,i?i(a.value,s):a.value))}}o(Ko,"mirrorShape");function Cne(e,t){for(let n of Reflect.ownKeys(t)){let i=Object.getOwnPropertyDescriptor(t,n);i.enumerable&&(i.get?xL(e,n,()=>t[n]):$L(e,n,i.value))}}o(Cne,"mirrorProps");function Pr(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}o(Pr,"mergeDefs");function vne(e){return Pr(e._zod.def)}o(vne,"cloneDef");function bne(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}o(bne,"getElementAtPath");function wne(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let s=0;s<t.length;s++)r[t[s]]=i[s];return r})}o(wne,"promiseAllObject");function Bne(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}o(Bne,"randomString");function fn(e){return JSON.stringify(e)}o(fn,"esc");function Nv(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}o(Nv,"slugify");var wg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(Xo,"isObject");var Uv=Lc(()=>{if(Pt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function yr(e){if(Xo(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Xo(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}o(yr,"isPlainObject");function Id(e){return yr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}o(Id,"shallowClone");function Qne(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}o(Qne,"numKeys");var kne=o(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),Cd=new Set(["string","number","symbol"]),Fv=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Er(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(Er,"escapeRegex");function He(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}o(He,"clone");function G(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:o(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:o(()=>t.error,"error")}:t}o(G,"normalizeParams");function Sne(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,s){return t??(t=e()),Reflect.set(t,i,r,s)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}o(Sne,"createTransparentProxy");function $(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}o($,"stringifyPrimitive");function Pv(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}o(Pv,"optionalKeys");var vd={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},bd={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Rne(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let s={};return Ko(s,e,Bg(e,t)),He(e,Pr(n,{shape:s,checks:[]}))}o(Rne,"pick");function Bg(e,t){let n=Pi(e),i=[];for(let r of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,r)?.enumerable)throw new Error(`Unrecognized key: "${String(r)}"`);t[r]&&i.push(r)}return i}o(Bg,"maskedKeys");function xne(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let s=new Set(Bg(e,t)),a={};return Ko(a,e,Reflect.ownKeys(Pi(e)).filter(c=>!s.has(c))),He(e,Pr(n,{shape:a,checks:[]}))}o(xne,"omit");function $ne(e,t){if(!yr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let r=Pi(e);for(let s of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return He(e,Pr(e._zod.def,{shape:TL(e,t)}))}o($ne,"extend");function TL(e,t){let n={};return Ko(n,e,Reflect.ownKeys(Pi(e))),Cne(n,t),n}o(TL,"extended");function Tne(e,t){if(!yr(t))throw new Error("Invalid input to safeExtend: expected a plain object");return He(e,Pr(e._zod.def,{shape:TL(e,t)}))}o(Tne,"safeExtend");function Dne(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Ko(n,e,Reflect.ownKeys(Pi(e))),Ko(n,t,Reflect.ownKeys(Pi(t)));let i=Pr(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return He(e,i)}o(Dne,"merge");function _ne(e,t,n,i="partial"){let s=t._zod.def.checks;if(s&&s.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let c=n?new Set(Bg(t,n)):void 0,u={};return Ko(u,t,Reflect.ownKeys(Pi(t)),e&&((l,A)=>c&&!c.has(A)?l:new e({type:"optional",innerType:l}))),He(t,Pr(t._zod.def,{shape:u,checks:[]}))}o(_ne,"partial");function Nne(e,t,n){let i=n?new Set(Bg(t,n)):void 0,r={};return Ko(r,t,Reflect.ownKeys(Pi(t)),(s,a)=>i&&!i.has(a)?s:new e({type:"nonoptional",innerType:s})),He(t,Pr(t._zod.def,{shape:r}))}o(Nne,"required");function gn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}o(gn,"aborted");function Mv(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}o(Mv,"explicitlyAborted");function Tn(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}o(Tn,"prefixIssues");function Fc(e){return typeof e=="string"?e:e?.message}o(Fc,"unwrapMessage");function jc(e){let t=[];for(let n of e??[]){let i=n._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let r=i.maximum??i.length??i.size;r>=0&&t.push([r,n])}return t}o(jc,"sizeCaps");function wd(e,t,n){var i;for(let r=t;r<e.length;r++)(i=e[r]).schema??(i.schema=n)}o(wd,"attachSchema");function Dn(e,t,n){var i;let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(i=e).schema??(i.schema=e.inst):e.schema=e.inst);let s=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:Fc(e.inst?._zod.def?.error?.(e))??Fc(s?.(e))??Fc(t?.error?.(e))??Fc(n.customError?.(e))??Fc(n.localeError?.(e))??"Invalid input",c={};for(let u of Object.keys(e))u==="inst"||u==="schema"||u==="continue"||u==="input"||u==="__proto__"||(c[u]=e[u]);return c.path??(c.path=[]),c.message=a,t?.reportInput&&(c.input=e.input),c}o(Dn,"finalizeIssue");function Bd(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}o(Bd,"getSizableOrigin");var Une=/[\uD800-\uDBFF]/;function ea(e){let t=e.length;if(!Une.test(e))return t;let n=t;for(let i=0;i<t-1;i++)(e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320&&(n--,i++);return n}o(ea,"codePointLength");function Qd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(Qd,"getLengthableOrigin");function T(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}o(T,"parsedType");function Gc(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}o(Gc,"issue");function Fne(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}o(Fne,"cleanEnum");function DL(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}o(DL,"base64ToUint8Array");function _L(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}o(_L,"uint8ArrayToBase64");function Pne(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return DL(t+n)}o(Pne,"base64urlToUint8Array");function Mne(e){return _L(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}o(Mne,"uint8ArrayToBase64url");function Lne(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}o(Lne,"hexToUint8Array");function One(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}o(One,"uint8ArrayToHex");var Dv=class{static{o(this,"Class")}constructor(...t){}};function Lv(e,t){for(let n in t){let i=Object.getOwnPropertyDescriptor(t,n);i.get?Object.defineProperty(e,n,{...i,enumerable:!1}):Gne(e,n,i.value)}}o(Lv,"members");function xs(e,t,n,i=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:i,value:n}),n}o(xs,"own");function kd(e,t,n){return xs(e,t,n,!1)}o(kd,"hide");function jne(e,t){for(let n in e){let i=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return xs(this,n,i(this))},set(r){xs(this,n,r)}})}return t}o(jne,"derived");function Gne(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:xs(this,t,n.bind(this))},set(i){xs(this,t,i)}})}o(Gne,"defineBound");function Vne(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}o(Vne,"claim");var $v,Rs=!1,zne={configurable:!0,get(){Rs=!0}};function $e(e,t,n){let i=Object.getPrototypeOf(e._zod);if(t in i&&$v!==e._zod){$v=void 0;return}$v=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,zne);let r=Rs;Rs=!1;try{let s=n(this);return Rs?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:s}),Rs=Rs||r,s}catch(s){throw delete this[t],Rs=Rs||r,s}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}o($e,"defineLazyInternal");function qne(e,t,n,i){let r=Vne(e,t);r&&Object.defineProperty(r,t,{configurable:!0,get(){let s={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,t,s),s.value=n(this),Object.defineProperty(this,t,s),s.value},set(s){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:i,value:s})}})}o(qne,"installLazyProp");var Qg="~constantCatch";function Ov(e){let t=o(()=>e,"fn");return t[Qg]=!0,t}o(Ov,"constantCatch");var NL,Gv=Object.freeze({status:"aborted"}),jv={value:void 0,enumerable:!1},UL="captureStackTrace"in Error?Error:null;function Jne(e){let t=UL;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return UL=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}o(Jne,"newError");function b(e,t,n,i){let r={};function s(g){this.def=g,this.constr=p,this.traits=new Set}o(s,"Internals"),s.prototype=r;let a=n,c=a&&new WeakSet;function u(g,h){if(g._zod){if(g._zod.traits.has(e))return}else{jv.value=new s(h);try{Object.defineProperty(g,"_zod",jv)}finally{jv.value=void 0}}if(g._zod.traits.add(e),t(g,h),c){let E=Object.getPrototypeOf(g),C=g._zod.constr.prototype,I=E;for(;I&&I!==C;)I=Object.getPrototypeOf(I);let v=I??E;c.has(v)||(c.add(v),Lv(v,a))}let y=p.prototype;for(let E in y)Object.prototype.hasOwnProperty.call(y,E)&&(E in g||(g[E]=y[E].bind(g)))}o(u,"init");let l=i?.Parent??Object;class A extends l{static{o(this,"Definition")}}Object.defineProperty(A,"name",{value:e});function p(g){let h=i?.Parent?Jne(A):this;u(h,g);let y=h._zod.deferred;if(y){for(let C of y)C();h._zod.deferred=void 0}let E=globalThis.__zod_globalConfig?.postProcessor;return E&&E(h),h}return o(p,"_"),Object.defineProperty(p,"init",{value:u}),Object.defineProperty(p,Symbol.hasInstance,{value:o(g=>i?.Parent&&g instanceof i.Parent?!0:g?._zod?.traits?.has(e),"value")}),Object.defineProperty(p,"name",{value:e}),p}o(b,"$constructor");var Vv=Symbol("zod_brand"),_n=class extends Error{static{o(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$s=class extends Error{static{o(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(NL=globalThis).__zod_globalConfig??(NL.__zod_globalConfig={});var Pt=globalThis.__zod_globalConfig;function Ct(e){return e&&Object.assign(Pt,e),Pt}o(Ct,"config");function Hne(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Mc,2)),e.message}o(Hne,"_getMessage");function Yne(e){this._zod.message=e}o(Yne,"_setMessage");var Wne={get:Hne,set:Yne,enumerable:!0,configurable:!0},qv={value:void 0,enumerable:!1},FL=new WeakSet([Object.prototype,Error.prototype]),PL=o((e,t)=>{e.name="$ZodError",qv.value=t,Object.defineProperty(e,"issues",qv),qv.value=void 0,Object.defineProperty(e,"message",Wne);let n=Object.getPrototypeOf(e);FL.has(n)||(FL.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let i=o(()=>this.message,"value");return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},"initializer"),Jv=b("$ZodError",PL),Nn=b("$ZodError",PL,void 0,{Parent:Error});function Zne(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}o(Zne,"node");function Sd(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?Zne(n,r.path[0],()=>[]).push(t(r)):i.push(t(r));return{formErrors:i,fieldErrors:n}}o(Sd,"flattenError");function Rd(e,t=n=>n.message){let n={_errors:[]},i=o((r,s=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>i({issues:c},[...s,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...s,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...s,...a.path]);else{let c=[...s,...a.path];if(c.length===0)n._errors.push(t(a));else{let u=n,l=0;for(;l<c.length;){let A=c[l],p=l===c.length-1;if(A==="_errors"){p&&u._errors.push(t(a)),l++;continue}Object.prototype.hasOwnProperty.call(u,A)||Object.defineProperty(u,A,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let g=u[A];p&&g._errors.push(t(a)),u=g,l++}}}},"processError");return i(e),n}o(Rd,"formatError");function Hv(e,t=n=>n.message){let n={errors:[]},i=o((r,s=[])=>{var a;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},[...s,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...s,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...s,...c.path]);else{let u=[...s,...c.path];if(u.length===0){n.errors.push(t(c));continue}let l=n,A=0;for(;A<u.length;){let p=u[A],g=A===u.length-1;typeof p=="string"?(l.properties??(l.properties={}),Object.prototype.hasOwnProperty.call(l.properties,p)||Object.defineProperty(l.properties,p,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),l=l.properties[p]):(l.items??(l.items=[]),(a=l.items)[p]??(a[p]={errors:[]}),l=l.items[p]),g&&l.errors.push(t(c)),A++}}},"processError");return i(e),n}o(Hv,"treeifyError");function ML(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}o(ML,"toDotPath");function Yv(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${ML(i.path)}`);return t.join(`
56
+ `).map(a=>a.trim()).filter(Boolean),i=n.filter(a=>!t.test(a)),r=i.length?i:n;return[...r].reverse().find(a=>/(error|warning|problem|✖|✗|✘|fail|not listed|cannot|denied)/i.test(a))??r[r.length-1]??"(no output)"}o(_7,"hookSummary");function aM(e){if(!/\bhook\b|husky|pre-commit|lint-staged/i.test(e))return;let t=_7(e),n=oe().staged.commitHook(/husky\s*[->]\s*([\w-]+)\s+(?:script|hook)\b/i.exec(Wl(e))?.[1]);return/\(code 127\)|exit code 127/i.test(e)||/command not found|: not found$/i.test(t)?oe().staged.commitHookCouldNotRun(n,t):oe().staged.commitRefusedByHook(n,t)}o(aM,"hookRefusal");var d={};wr(d,{BRAND:()=>oee,DIRTY:()=>Ro,EMPTY_PATH:()=>P7,INVALID:()=>me,NEVER:()=>Vee,OK:()=>en,ParseStatus:()=>Ot,Schema:()=>Te,ZodAny:()=>bs,ZodArray:()=>Ni,ZodBigInt:()=>$o,ZodBoolean:()=>To,ZodBranded:()=>Kl,ZodCatch:()=>Go,ZodDate:()=>Do,ZodDefault:()=>jo,ZodDiscriminatedUnion:()=>eg,ZodEffects:()=>Ar,ZodEnum:()=>Lo,ZodError:()=>xn,ZodFirstPartyTypeKind:()=>Ce,ZodFunction:()=>ng,ZodIntersection:()=>Fo,ZodIssueCode:()=>O,ZodLazy:()=>Po,ZodLiteral:()=>Mo,ZodMap:()=>kc,ZodNaN:()=>Rc,ZodNativeEnum:()=>Oo,ZodNever:()=>_r,ZodNull:()=>No,ZodNullable:()=>ni,ZodNumber:()=>xo,ZodObject:()=>$n,ZodOptional:()=>lr,ZodParsedType:()=>X,ZodPipeline:()=>Xl,ZodPromise:()=>ws,ZodReadonly:()=>Vo,ZodRecord:()=>tg,ZodSchema:()=>Te,ZodSet:()=>Sc,ZodString:()=>vs,ZodSymbol:()=>Bc,ZodTransformer:()=>Ar,ZodTuple:()=>ti,ZodType:()=>Te,ZodUndefined:()=>_o,ZodUnion:()=>Uo,ZodUnknown:()=>_i,ZodVoid:()=>Qc,addIssueToContext:()=>W,any:()=>gee,array:()=>Eee,bigint:()=>lee,boolean:()=>yM,coerce:()=>Gee,custom:()=>gM,date:()=>dee,datetimeRegex:()=>pM,defaultErrorMap:()=>Ti,discriminatedUnion:()=>bee,effect:()=>Nee,enum:()=>Tee,function:()=>Ree,getErrorMap:()=>vc,getParsedType:()=>ei,instanceof:()=>cee,intersection:()=>wee,isAborted:()=>Kf,isAsync:()=>bc,isDirty:()=>Xf,isValid:()=>Cs,late:()=>aee,lazy:()=>xee,literal:()=>$ee,makeIssue:()=>Zl,map:()=>kee,nan:()=>uee,nativeEnum:()=>Dee,never:()=>mee,null:()=>fee,nullable:()=>Fee,number:()=>mM,object:()=>Iee,objectUtil:()=>iv,oboolean:()=>jee,onumber:()=>Oee,optional:()=>Uee,ostring:()=>Lee,pipeline:()=>Mee,preprocess:()=>Pee,promise:()=>_ee,quotelessJson:()=>N7,record:()=>Qee,set:()=>See,setErrorMap:()=>F7,strictObject:()=>Cee,string:()=>hM,symbol:()=>Aee,transformer:()=>Nee,tuple:()=>Bee,undefined:()=>pee,union:()=>vee,unknown:()=>hee,util:()=>Me,void:()=>yee});var Me;(function(e){e.assertEqual=r=>{};function t(r){}o(t,"assertIs"),e.assertIs=t;function n(r){throw new Error}o(n,"assertNever"),e.assertNever=n,e.arrayToEnum=r=>{let s={};for(let a of r)s[a]=a;return s},e.getValidEnumValues=r=>{let s=e.objectKeys(r).filter(c=>typeof r[r[c]]!="number"),a={};for(let c of s)a[c]=r[c];return e.objectValues(a)},e.objectValues=r=>e.objectKeys(r).map(function(s){return r[s]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let s=[];for(let a in r)Object.prototype.hasOwnProperty.call(r,a)&&s.push(a);return s},e.find=(r,s)=>{for(let a of r)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function i(r,s=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}o(i,"joinValues"),e.joinValues=i,e.jsonStringifyReplacer=(r,s)=>typeof s=="bigint"?s.toString():s})(Me||(Me={}));var iv;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(iv||(iv={}));var X=Me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ei=o(e=>{switch(typeof e){case"undefined":return X.undefined;case"string":return X.string;case"number":return Number.isNaN(e)?X.nan:X.number;case"boolean":return X.boolean;case"function":return X.function;case"bigint":return X.bigint;case"symbol":return X.symbol;case"object":return Array.isArray(e)?X.array:e===null?X.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?X.promise:typeof Map<"u"&&e instanceof Map?X.map:typeof Set<"u"&&e instanceof Set?X.set:typeof Date<"u"&&e instanceof Date?X.date:X.object;default:return X.unknown}},"getParsedType");var O=Me.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"]),N7=o(e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),"quotelessJson"),xn=class e extends Error{static{o(this,"ZodError")}get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};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(s){return s.message},i={_errors:[]},r=o(s=>{for(let a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)i._errors.push(n(a));else{let c=i,u=0;for(;u<a.path.length;){let l=a.path[u],A=u===a.path.length-1;if(l==="_errors"){A&&c._errors.push(n(a)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||(l==="__proto__"?Object.defineProperty(c,l,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0}):c[l]={_errors:[]}),c=c[l],A&&c._errors.push(n(a)),u++}}},"processError");return r(this),i}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,Me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n=Object.create(null),i=[];for(let r of this.issues)if(r.path.length>0){let s=r.path[0];n[s]=n[s]||[],n[s].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};xn.create=e=>new xn(e);var U7=o((e,t)=>{let n;switch(e.code){case O.invalid_type:e.received===X.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case O.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Me.jsonStringifyReplacer)}`;break;case O.unrecognized_keys:n=`Unrecognized key(s) in object: ${Me.joinValues(e.keys,", ")}`;break;case O.invalid_union:n="Invalid input";break;case O.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Me.joinValues(e.options)}`;break;case O.invalid_enum_value:n=`Invalid enum value. Expected ${Me.joinValues(e.options)}, received '${e.received}'`;break;case O.invalid_arguments:n="Invalid function arguments";break;case O.invalid_return_type:n="Invalid function return type";break;case O.invalid_date:n="Invalid date";break;case O.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}"`:Me.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case O.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 O.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 O.custom:n="Invalid input";break;case O.invalid_intersection_types:n="Intersection results could not be merged";break;case O.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case O.not_finite:n="Number must be finite";break;default:n=t.defaultError,Me.assertNever(e)}return{message:n}},"errorMap"),Ti=U7;var cM=Ti;function F7(e){cM=e}o(F7,"setErrorMap");function vc(){return cM}o(vc,"getErrorMap");var Zl=o(e=>{let{data:t,path:n,errorMaps:i,issueData:r}=e,s=[...n,...r.path||[]],a={...r,path:s};if(r.message!==void 0)return{...r,path:s,message:r.message};let c="",u=i.filter(l=>!!l).slice().reverse();for(let l of u)c=l(a,{data:t,defaultError:c}).message;return{...r,path:s,message:c}},"makeIssue"),P7=[];function W(e,t){let n=vc(),i=Zl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ti?void 0:Ti].filter(r=>!!r)});e.common.issues.push(i)}o(W,"addIssueToContext");var Ot=class e{static{o(this,"ParseStatus")}constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let i=[];for(let r of n){if(r.status==="aborted")return me;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){let i=[];for(let r of n){let s=await r.key,a=await r.value;i.push({key:s,value:a})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,n){let i={};for(let r of n){let{key:s,value:a}=r;if(s.status==="aborted"||a.status==="aborted")return me;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(i[s.value]=a.value)}return{status:t.value,value:i}}},me=Object.freeze({status:"aborted"}),Ro=o(e=>({status:"dirty",value:e}),"DIRTY"),en=o(e=>({status:"valid",value:e}),"OK"),Kf=o(e=>e.status==="aborted","isAborted"),Xf=o(e=>e.status==="dirty","isDirty"),Cs=o(e=>e.status==="valid","isValid"),bc=o(e=>typeof Promise<"u"&&e instanceof Promise,"isAsync");var se;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(se||(se={}));var dr=class{static{o(this,"ParseInputLazyPath")}constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,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}},uM=o((e,t)=>{if(Cs(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 xn(e.common.issues);return this._error=n,this._error}}},"handleResult");function Se(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))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,c)=>{let{message:u}=e;return a.code==="invalid_enum_value"?{message:u??c.defaultError}:typeof c.data>"u"?{message:u??i??c.defaultError}:a.code!=="invalid_type"?{message:c.defaultError}:{message:u??n??c.defaultError}},"customMap"),description:r}}o(Se,"processCreateParams");var Te=class{static{o(this,"ZodType")}get description(){return this._def.description}_getType(t){return ei(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ei(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ot,ctx:{common:t.parent.common,data:t.data,parsedType:ei(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(bc(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 i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ei(t)},r=this._parseSync({data:t,path:i.path,parent:i});return uM(i,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ei(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:n});return Cs(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>Cs(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){let i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ei(t)},r=this._parse({data:t,path:i.path,parent:i}),s=await(bc(r)?r:Promise.resolve(r));return uM(i,s)}refine(t,n){let i=o(r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n,"getIssueProperties");return this._refinement((r,s)=>{let a=t(r),c=o(()=>s.addIssue({code:O.custom,...i(r)}),"setError");return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(c(),!1)):a?!0:(c(),!1)})}refinement(t,n){return this._refinement((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new Ar({schema:this,typeName:Ce.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:o(n=>this["~validate"](n),"validate")}}optional(){return lr.create(this,this._def)}nullable(){return ni.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ni.create(this)}promise(){return ws.create(this,this._def)}or(t){return Uo.create([this,t],this._def)}and(t){return Fo.create(this,t,this._def)}transform(t){return new Ar({...Se(this._def),schema:this,typeName:Ce.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new jo({...Se(this._def),innerType:this,defaultValue:n,typeName:Ce.ZodDefault})}brand(){return new Kl({typeName:Ce.ZodBranded,type:this,...Se(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Go({...Se(this._def),innerType:this,catchValue:n,typeName:Ce.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Xl.create(this,t)}readonly(){return Vo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},M7=/^c[^\s-]{8,}$/i,L7=/^[0-9a-z]+$/,O7=/^[0-9A-HJKMNP-TV-Z]{26}$/i,j7=/^[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,G7=/^[a-z0-9_-]{21}$/i,V7=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,z7=/^[-+]?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)?)??$/,q7=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,J7="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",sv,H7=/^(?:(?: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])$/,Y7=/^(?:(?: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])$/,W7=/^(([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]))$/,Z7=/^(([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])$/,K7=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,X7=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dM="((\\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])))",eee=new RegExp(`^${dM}$`);function AM(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}`}o(AM,"timeRegexSource");function tee(e){return new RegExp(`^${AM(e)}$`)}o(tee,"timeRegex");function pM(e){let t=`${dM}T${AM(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}o(pM,"datetimeRegex");function nee(e,t){return!!((t==="v4"||!t)&&H7.test(e)||(t==="v6"||!t)&&W7.test(e))}o(nee,"isValidIP");function ree(e,t){if(!V7.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}o(ree,"isValidJWT");function iee(e,t){return!!((t==="v4"||!t)&&Y7.test(e)||(t==="v6"||!t)&&Z7.test(e))}o(iee,"isValidCidr");var vs=class e extends Te{static{o(this,"ZodString")}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==X.string){let s=this._getOrReturnCtx(t);return W(s,{code:O.invalid_type,expected:X.string,received:s.parsedType}),me}let i=new Ot,r;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:O.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")t.data.length>s.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:O.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let a=t.data.length>s.value,c=t.data.length<s.value;(a||c)&&(r=this._getOrReturnCtx(t,r),a?W(r,{code:O.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):c&&W(r,{code:O.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")q7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"email",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")sv||(sv=new RegExp(J7,"u")),sv.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"emoji",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")j7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"uuid",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")G7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"nanoid",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")M7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")L7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid2",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")O7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ulid",code:O.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),W(r,{validation:"url",code:O.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"regex",code:O.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?pM(s).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?eee.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?tee(s).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:O.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?z7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"duration",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?nee(t.data,s.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ip",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="jwt"?ree(t.data,s.alg)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"jwt",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="cidr"?iee(t.data,s.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cidr",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?K7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64",code:O.invalid_string,message:s.message}),i.dirty()):s.kind==="base64url"?X7.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64url",code:O.invalid_string,message:s.message}),i.dirty()):Me.assertNever(s);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:O.invalid_string,...se.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...se.errToObj(t)})}url(t){return this._addCheck({kind:"url",...se.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...se.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...se.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...se.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...se.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...se.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...se.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...se.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...se.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...se.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...se.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...se.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,...se.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,...se.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...se.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...se.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...se.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...se.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...se.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...se.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...se.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...se.errToObj(n)})}nonempty(t){return this.min(1,se.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}};vs.create=e=>new vs({checks:[],typeName:Ce.ZodString,coerce:e?.coerce??!1,...Se(e)});function see(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,s=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return s%a/10**r}o(see,"floatSafeRemainder");var xo=class e extends Te{static{o(this,"ZodNumber")}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)!==X.number){let s=this._getOrReturnCtx(t);return W(s,{code:O.invalid_type,expected:X.number,received:s.parsedType}),me}let i,r=new Ot;for(let s of this._def.checks)s.kind==="int"?Me.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{code:O.invalid_type,expected:"integer",received:"float",message:s.message}),r.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="multipleOf"?see(t.data,s.value)!==0&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{code:O.not_finite,message:s.message}),r.dirty()):Me.assertNever(s);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,se.toString(n))}gt(t,n){return this.setLimit("min",t,!1,se.toString(n))}lte(t,n){return this.setLimit("max",t,!0,se.toString(n))}lt(t,n){return this.setLimit("max",t,!1,se.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:se.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:se.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:se.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:se.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:se.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:se.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:se.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"&&Me.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}};xo.create=e=>new xo({checks:[],typeName:Ce.ZodNumber,coerce:e?.coerce||!1,...Se(e)});var $o=class e extends Te{static{o(this,"ZodBigInt")}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)!==X.bigint)return this._getInvalidInput(t);let i,r=new Ot;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),W(i,{code:O.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):Me.assertNever(s);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return W(n,{code:O.invalid_type,expected:X.bigint,received:n.parsedType}),me}gte(t,n){return this.setLimit("min",t,!0,se.toString(n))}gt(t,n){return this.setLimit("min",t,!1,se.toString(n))}lte(t,n){return this.setLimit("max",t,!0,se.toString(n))}lt(t,n){return this.setLimit("max",t,!1,se.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:se.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:se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:se.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:se.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}};$o.create=e=>new $o({checks:[],typeName:Ce.ZodBigInt,coerce:e?.coerce??!1,...Se(e)});var To=class extends Te{static{o(this,"ZodBoolean")}_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==X.boolean){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.boolean,received:i.parsedType}),me}return en(t.data)}};To.create=e=>new To({typeName:Ce.ZodBoolean,coerce:e?.coerce||!1,...Se(e)});var Do=class e extends Te{static{o(this,"ZodDate")}_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==X.date){let s=this._getOrReturnCtx(t);return W(s,{code:O.invalid_type,expected:X.date,received:s.parsedType}),me}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return W(s,{code:O.invalid_date}),me}let i=new Ot,r;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:O.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:O.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Me.assertNever(s);return{status:i.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:se.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:se.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}};Do.create=e=>new Do({checks:[],coerce:e?.coerce||!1,typeName:Ce.ZodDate,...Se(e)});var Bc=class extends Te{static{o(this,"ZodSymbol")}_parse(t){if(this._getType(t)!==X.symbol){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.symbol,received:i.parsedType}),me}return en(t.data)}};Bc.create=e=>new Bc({typeName:Ce.ZodSymbol,...Se(e)});var _o=class extends Te{static{o(this,"ZodUndefined")}_parse(t){if(this._getType(t)!==X.undefined){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.undefined,received:i.parsedType}),me}return en(t.data)}};_o.create=e=>new _o({typeName:Ce.ZodUndefined,...Se(e)});var No=class extends Te{static{o(this,"ZodNull")}_parse(t){if(this._getType(t)!==X.null){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.null,received:i.parsedType}),me}return en(t.data)}};No.create=e=>new No({typeName:Ce.ZodNull,...Se(e)});var bs=class extends Te{static{o(this,"ZodAny")}constructor(){super(...arguments),this._any=!0}_parse(t){return en(t.data)}};bs.create=e=>new bs({typeName:Ce.ZodAny,...Se(e)});var _i=class extends Te{static{o(this,"ZodUnknown")}constructor(){super(...arguments),this._unknown=!0}_parse(t){return en(t.data)}};_i.create=e=>new _i({typeName:Ce.ZodUnknown,...Se(e)});var _r=class extends Te{static{o(this,"ZodNever")}_parse(t){let n=this._getOrReturnCtx(t);return W(n,{code:O.invalid_type,expected:X.never,received:n.parsedType}),me}};_r.create=e=>new _r({typeName:Ce.ZodNever,...Se(e)});var Qc=class extends Te{static{o(this,"ZodVoid")}_parse(t){if(this._getType(t)!==X.undefined){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.void,received:i.parsedType}),me}return en(t.data)}};Qc.create=e=>new Qc({typeName:Ce.ZodVoid,...Se(e)});var Ni=class e extends Te{static{o(this,"ZodArray")}_parse(t){let{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==X.array)return W(n,{code:O.invalid_type,expected:X.array,received:n.parsedType}),me;if(r.exactLength!==null){let a=n.data.length>r.exactLength.value,c=n.data.length<r.exactLength.value;(a||c)&&(W(n,{code:a?O.too_big:O.too_small,minimum:c?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(W(n,{code:O.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(W(n,{code:O.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((a,c)=>r.type._parseAsync(new dr(n,a,n.path,c)))).then(a=>Ot.mergeArray(i,a));let s=[...n.data].map((a,c)=>r.type._parseSync(new dr(n,a,n.path,c)));return Ot.mergeArray(i,s)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:se.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:se.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:se.toString(n)}})}nonempty(t){return this.min(1,t)}};Ni.create=(e,t)=>new Ni({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ce.ZodArray,...Se(t)});function wc(e){if(e instanceof $n){let t={};for(let n in e.shape){let i=e.shape[n];t[n]=lr.create(wc(i))}return new $n({...e._def,shape:o(()=>t,"shape")})}else return e instanceof Ni?new Ni({...e._def,type:wc(e.element)}):e instanceof lr?lr.create(wc(e.unwrap())):e instanceof ni?ni.create(wc(e.unwrap())):e instanceof ti?ti.create(e.items.map(t=>wc(t))):e}o(wc,"deepPartialify");var $n=class e extends Te{static{o(this,"ZodObject")}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=Me.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==X.object){let l=this._getOrReturnCtx(t);return W(l,{code:O.invalid_type,expected:X.object,received:l.parsedType}),me}let{status:i,ctx:r}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),c=[];if(!(this._def.catchall instanceof _r&&this._def.unknownKeys==="strip"))for(let l in r.data)a.includes(l)||c.push(l);let u=[];for(let l of a){let A=s[l],p=r.data[l];u.push({key:{status:"valid",value:l},value:A._parse(new dr(r,p,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof _r){let l=this._def.unknownKeys;if(l==="passthrough")for(let A of c)u.push({key:{status:"valid",value:A},value:{status:"valid",value:r.data[A]}});else if(l==="strict")c.length>0&&(W(r,{code:O.unrecognized_keys,keys:c}),i.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let A of c){let p=r.data[A];u.push({key:{status:"valid",value:A},value:l._parse(new dr(r,p,r.path,A)),alwaysSet:A in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let l=[];for(let A of u){let p=await A.key,g=await A.value;l.push({key:p,value:g,alwaysSet:A.alwaysSet})}return l}).then(l=>Ot.mergeObjectSync(i,l)):Ot.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(t){return se.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:o((n,i)=>{let r=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:se.errToObj(t).message??r}:{message:r}},"errorMap")}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:o(()=>({...this._def.shape(),...t}),"shape")})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:o(()=>({...this._def.shape(),...t._def.shape()}),"shape"),typeName:Ce.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let i of Me.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new e({...this._def,shape:o(()=>n,"shape")})}omit(t){let n={};for(let i of Me.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new e({...this._def,shape:o(()=>n,"shape")})}deepPartial(){return wc(this)}partial(t){let n={};for(let i of Me.objectKeys(this.shape)){let r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new e({...this._def,shape:o(()=>n,"shape")})}required(t){let n={};for(let i of Me.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof lr;)s=s._def.innerType;n[i]=s}return new e({...this._def,shape:o(()=>n,"shape")})}keyof(){return fM(Me.objectKeys(this.shape))}};$n.create=(e,t)=>new $n({shape:o(()=>e,"shape"),unknownKeys:"strip",catchall:_r.create(),typeName:Ce.ZodObject,...Se(t)});$n.strictCreate=(e,t)=>new $n({shape:o(()=>e,"shape"),unknownKeys:"strict",catchall:_r.create(),typeName:Ce.ZodObject,...Se(t)});$n.lazycreate=(e,t)=>new $n({shape:e,unknownKeys:"strip",catchall:_r.create(),typeName:Ce.ZodObject,...Se(t)});var Uo=class extends Te{static{o(this,"ZodUnion")}_parse(t){let{ctx:n}=this._processInputParams(t),i=this._def.options;function r(s){for(let c of s)if(c.result.status==="valid")return c.result;for(let c of s)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;let a=s.map(c=>new xn(c.ctx.common.issues));return W(n,{code:O.invalid_union,unionErrors:a}),me}if(o(r,"handleResults"),n.common.async)return Promise.all(i.map(async s=>{let a={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let s,a=[];for(let u of i){let l={...n,common:{...n.common,issues:[]},parent:null},A=u._parseSync({data:n.data,path:n.path,parent:l});if(A.status==="valid")return A;A.status==="dirty"&&!s&&(s={result:A,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;let c=a.map(u=>new xn(u));return W(n,{code:O.invalid_union,unionErrors:c}),me}}get options(){return this._def.options}};Uo.create=(e,t)=>new Uo({options:e,typeName:Ce.ZodUnion,...Se(t)});var Di=o(e=>e instanceof Po?Di(e.schema):e instanceof Ar?Di(e.innerType()):e instanceof Mo?[e.value]:e instanceof Lo?e.options:e instanceof Oo?Me.objectValues(e.enum):e instanceof jo?Di(e._def.innerType):e instanceof _o?[void 0]:e instanceof No?[null]:e instanceof lr?[void 0,...Di(e.unwrap())]:e instanceof ni?[null,...Di(e.unwrap())]:e instanceof Kl||e instanceof Vo?Di(e.unwrap()):e instanceof Go?Di(e._def.innerType):[],"getDiscriminator"),eg=class e extends Te{static{o(this,"ZodDiscriminatedUnion")}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==X.object)return W(n,{code:O.invalid_type,expected:X.object,received:n.parsedType}),me;let i=this.discriminator,r=n.data[i],s=this.optionsMap.get(r);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(W(n,{code:O.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){let r=new Map;for(let s of n){let a=Di(s.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let c of a){if(r.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);r.set(c,s)}}return new e({typeName:Ce.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...Se(i)})}};function ov(e,t){let n=ei(e),i=ei(t);if(e===t)return{valid:!0,data:e};if(n===X.object&&i===X.object){let r=Me.objectKeys(t),s=Me.objectKeys(e).filter(c=>r.indexOf(c)!==-1),a={...e,...t};Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__;for(let c of s){if(c==="__proto__")continue;let u=ov(e[c],t[c]);if(!u.valid)return{valid:!1};a[c]=u.data}return{valid:!0,data:a}}else if(n===X.array&&i===X.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let s=0;s<e.length;s++){let a=e[s],c=t[s],u=ov(a,c);if(!u.valid)return{valid:!1};r.push(u.data)}return{valid:!0,data:r}}else return n===X.date&&i===X.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}o(ov,"mergeValues");var Fo=class extends Te{static{o(this,"ZodIntersection")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=o((s,a)=>{if(Kf(s)||Kf(a))return me;let c=ov(s.value,a.value);return c.valid?((Xf(s)||Xf(a))&&n.dirty(),{status:n.value,value:c.data}):(W(i,{code:O.invalid_intersection_types}),me)},"handleParsed");return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,a])=>r(s,a)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Fo.create=(e,t,n)=>new Fo({left:e,right:t,typeName:Ce.ZodIntersection,...Se(n)});var ti=class e extends Te{static{o(this,"ZodTuple")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==X.array)return W(i,{code:O.invalid_type,expected:X.array,received:i.parsedType}),me;if(i.data.length<this._def.items.length)return W(i,{code:O.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&i.data.length>this._def.items.length&&(W(i,{code:O.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let s=[...i.data].map((a,c)=>{let u=this._def.items[c]||this._def.rest;return u?u._parse(new dr(i,a,i.path,c)):null}).filter(a=>!!a);return i.common.async?Promise.all(s).then(a=>Ot.mergeArray(n,a)):Ot.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ti.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ti({items:e,typeName:Ce.ZodTuple,rest:null,...Se(t)})};var tg=class e extends Te{static{o(this,"ZodRecord")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==X.object)return W(i,{code:O.invalid_type,expected:X.object,received:i.parsedType}),me;let r=[],s=this._def.keyType,a=this._def.valueType;for(let c in i.data)r.push({key:s._parse(new dr(i,c,i.path,c)),value:a._parse(new dr(i,i.data[c],i.path,c)),alwaysSet:c in i.data});return i.common.async?Ot.mergeObjectAsync(n,r):Ot.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof Te?new e({keyType:t,valueType:n,typeName:Ce.ZodRecord,...Se(i)}):new e({keyType:vs.create(),valueType:t,typeName:Ce.ZodRecord,...Se(n)})}},kc=class extends Te{static{o(this,"ZodMap")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==X.map)return W(i,{code:O.invalid_type,expected:X.map,received:i.parsedType}),me;let r=this._def.keyType,s=this._def.valueType,a=[...i.data.entries()].map(([c,u],l)=>({key:r._parse(new dr(i,c,i.path,[l,"key"])),value:s._parse(new dr(i,u,i.path,[l,"value"]))}));if(i.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let u of a){let l=await u.key,A=await u.value;if(l.status==="aborted"||A.status==="aborted")return me;(l.status==="dirty"||A.status==="dirty")&&n.dirty(),c.set(l.value,A.value)}return{status:n.value,value:c}})}else{let c=new Map;for(let u of a){let l=u.key,A=u.value;if(l.status==="aborted"||A.status==="aborted")return me;(l.status==="dirty"||A.status==="dirty")&&n.dirty(),c.set(l.value,A.value)}return{status:n.value,value:c}}}};kc.create=(e,t,n)=>new kc({valueType:t,keyType:e,typeName:Ce.ZodMap,...Se(n)});var Sc=class e extends Te{static{o(this,"ZodSet")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==X.set)return W(i,{code:O.invalid_type,expected:X.set,received:i.parsedType}),me;let r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(W(i,{code:O.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(W(i,{code:O.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let s=this._def.valueType;function a(u){let l=new Set;for(let A of u){if(A.status==="aborted")return me;A.status==="dirty"&&n.dirty(),l.add(A.value)}return{status:n.value,value:l}}o(a,"finalizeSet");let c=[...i.data.values()].map((u,l)=>s._parse(new dr(i,u,i.path,l)));return i.common.async?Promise.all(c).then(u=>a(u)):a(c)}min(t,n){return new e({...this._def,minSize:{value:t,message:se.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:se.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Sc.create=(e,t)=>new Sc({valueType:e,minSize:null,maxSize:null,typeName:Ce.ZodSet,...Se(t)});var ng=class e extends Te{static{o(this,"ZodFunction")}constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==X.function)return W(n,{code:O.invalid_type,expected:X.function,received:n.parsedType}),me;function i(c,u){return Zl({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,vc(),Ti].filter(l=>!!l),issueData:{code:O.invalid_arguments,argumentsError:u}})}o(i,"makeArgsIssue");function r(c,u){return Zl({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,vc(),Ti].filter(l=>!!l),issueData:{code:O.invalid_return_type,returnTypeError:u}})}o(r,"makeReturnsIssue");let s={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof ws){let c=this;return en(async function(...u){let l=new xn([]),A=await c._def.args.parseAsync(u,s).catch(h=>{throw l.addIssue(i(u,h)),l}),p=await Reflect.apply(a,this,A);return await c._def.returns._def.type.parseAsync(p,s).catch(h=>{throw l.addIssue(r(p,h)),l})})}else{let c=this;return en(function(...u){let l=c._def.args.safeParse(u,s);if(!l.success)throw new xn([i(u,l.error)]);let A=Reflect.apply(a,this,l.data),p=c._def.returns.safeParse(A,s);if(!p.success)throw new xn([r(A,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ti.create(t).rest(_i.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,i){return new e({args:t||ti.create([]).rest(_i.create()),returns:n||_i.create(),typeName:Ce.ZodFunction,...Se(i)})}},Po=class extends Te{static{o(this,"ZodLazy")}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})}};Po.create=(e,t)=>new Po({getter:e,typeName:Ce.ZodLazy,...Se(t)});var Mo=class extends Te{static{o(this,"ZodLiteral")}_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return W(n,{received:n.data,code:O.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:t.data}}get value(){return this._def.value}};Mo.create=(e,t)=>new Mo({value:e,typeName:Ce.ZodLiteral,...Se(t)});function fM(e,t){return new Lo({values:e,typeName:Ce.ZodEnum,...Se(t)})}o(fM,"createZodEnum");var Lo=class e extends Te{static{o(this,"ZodEnum")}_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),i=this._def.values;return W(n,{expected:Me.joinValues(i),received:n.parsedType,code:O.invalid_type}),me}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),i=this._def.values;return W(n,{received:n.data,code:O.invalid_enum_value,options:i}),me}return en(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(i=>!t.includes(i)),{...this._def,...n})}};Lo.create=fM;var Oo=class extends Te{static{o(this,"ZodNativeEnum")}_parse(t){let n=Me.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==X.string&&i.parsedType!==X.number){let r=Me.objectValues(n);return W(i,{expected:Me.joinValues(r),received:i.parsedType,code:O.invalid_type}),me}if(this._cache||(this._cache=new Set(Me.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=Me.objectValues(n);return W(i,{received:i.data,code:O.invalid_enum_value,options:r}),me}return en(t.data)}get enum(){return this._def.values}};Oo.create=(e,t)=>new Oo({values:e,typeName:Ce.ZodNativeEnum,...Se(t)});var ws=class extends Te{static{o(this,"ZodPromise")}unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==X.promise&&n.common.async===!1)return W(n,{code:O.invalid_type,expected:X.promise,received:n.parsedType}),me;let i=n.parsedType===X.promise?n.data:Promise.resolve(n.data);return en(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};ws.create=(e,t)=>new ws({type:e,typeName:Ce.ZodPromise,...Se(t)});var Ar=class extends Te{static{o(this,"ZodEffects")}innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,s={addIssue:o(a=>{W(i,a),a.fatal?n.abort():n.dirty()},"addIssue"),get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),r.type==="preprocess"){let a=r.transform(i.data,s);if(i.common.async)return Promise.resolve(a).then(async c=>{if(n.value==="aborted")return me;let u=await this._def.schema._parseAsync({data:c,path:i.path,parent:i});return u.status==="aborted"?me:u.status==="dirty"?Ro(u.value):n.value==="dirty"?Ro(u.value):u});{if(n.value==="aborted")return me;let c=this._def.schema._parseSync({data:a,path:i.path,parent:i});return c.status==="aborted"?me:c.status==="dirty"?Ro(c.value):n.value==="dirty"?Ro(c.value):c}}if(r.type==="refinement"){let a=o(c=>{let u=r.refinement(c,s);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c},"executeRefinement");if(i.common.async===!1){let c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?me:(c.status==="dirty"&&n.dirty(),a(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?me:(c.status==="dirty"&&n.dirty(),a(c.value).then(()=>({status:n.value,value:c.value}))))}if(r.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Cs(a))return me;let c=r.transform(a.value,s);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>Cs(a)?Promise.resolve(r.transform(a.value,s)).then(c=>({status:n.value,value:c})):me);Me.assertNever(r)}};Ar.create=(e,t,n)=>new Ar({schema:e,typeName:Ce.ZodEffects,effect:t,...Se(n)});Ar.createWithPreprocess=(e,t,n)=>new Ar({schema:t,effect:{type:"preprocess",transform:e},typeName:Ce.ZodEffects,...Se(n)});var lr=class extends Te{static{o(this,"ZodOptional")}_parse(t){return this._getType(t)===X.undefined?en(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};lr.create=(e,t)=>new lr({innerType:e,typeName:Ce.ZodOptional,...Se(t)});var ni=class extends Te{static{o(this,"ZodNullable")}_parse(t){return this._getType(t)===X.null?en(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ni.create=(e,t)=>new ni({innerType:e,typeName:Ce.ZodNullable,...Se(t)});var jo=class extends Te{static{o(this,"ZodDefault")}_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return n.parsedType===X.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};jo.create=(e,t)=>new jo({innerType:e,typeName:Ce.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Se(t)});var Go=class extends Te{static{o(this,"ZodCatch")}_parse(t){let{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return bc(r)?r.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new xn(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new xn(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Go.create=(e,t)=>new Go({innerType:e,typeName:Ce.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Se(t)});var Rc=class extends Te{static{o(this,"ZodNaN")}_parse(t){if(this._getType(t)!==X.nan){let i=this._getOrReturnCtx(t);return W(i,{code:O.invalid_type,expected:X.nan,received:i.parsedType}),me}return{status:"valid",value:t.data}}};Rc.create=e=>new Rc({typeName:Ce.ZodNaN,...Se(e)});var oee=Symbol("zod_brand"),Kl=class extends Te{static{o(this,"ZodBranded")}_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},Xl=class e extends Te{static{o(this,"ZodPipeline")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return o(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?me:s.status==="dirty"?(n.dirty(),Ro(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})},"handleAsync")();{let r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?me:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new e({in:t,out:n,typeName:Ce.ZodPipeline})}},Vo=class extends Te{static{o(this,"ZodReadonly")}_parse(t){let n=this._def.innerType._parse(t),i=o(r=>(Cs(r)&&(r.value=Object.freeze(r.value)),r),"freeze");return bc(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}};Vo.create=(e,t)=>new Vo({innerType:e,typeName:Ce.ZodReadonly,...Se(t)});function lM(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}o(lM,"cleanParams");function gM(e,t={},n){return e?bs.create().superRefine((i,r)=>{let s=e(i);if(s instanceof Promise)return s.then(a=>{if(!a){let c=lM(t,i),u=c.fatal??n??!0;r.addIssue({code:"custom",...c,fatal:u})}});if(!s){let a=lM(t,i),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}}):bs.create()}o(gM,"custom");var aee={object:$n.lazycreate},Ce;(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"})(Ce||(Ce={}));var cee=o((e,t={message:`Input not instance of ${e.name}`})=>gM(n=>n instanceof e,t),"instanceOfType"),hM=vs.create,mM=xo.create,uee=Rc.create,lee=$o.create,yM=To.create,dee=Do.create,Aee=Bc.create,pee=_o.create,fee=No.create,gee=bs.create,hee=_i.create,mee=_r.create,yee=Qc.create,Eee=Ni.create,Iee=$n.create,Cee=$n.strictCreate,vee=Uo.create,bee=eg.create,wee=Fo.create,Bee=ti.create,Qee=tg.create,kee=kc.create,See=Sc.create,Ree=ng.create,xee=Po.create,$ee=Mo.create,Tee=Lo.create,Dee=Oo.create,_ee=ws.create,Nee=Ar.create,Uee=lr.create,Fee=ni.create,Pee=Ar.createWithPreprocess,Mee=Xl.create,Lee=o(()=>hM().optional(),"ostring"),Oee=o(()=>mM().optional(),"onumber"),jee=o(()=>yM().optional(),"oboolean"),Gee={string:o((e=>vs.create({...e,coerce:!0})),"string"),number:o((e=>xo.create({...e,coerce:!0})),"number"),boolean:o((e=>To.create({...e,coerce:!0})),"boolean"),bigint:o((e=>$o.create({...e,coerce:!0})),"bigint"),date:o((e=>Do.create({...e,coerce:!0})),"date")};var Vee=me;var GM=require("node:crypto");var zo=(a=>(a.Place="place",a.Update="update",a.Regenerate="regenerate",a.Delete="delete",a.Verify="verify",a.None="none",a))(zo||{}),fr=(i=>(i.Pass="pass",i.Fail="fail",i.Skip="skip",i))(fr||{}),pr=d.string().trim().min(1),ed=d.array(d.string().url().max(2048).regex(/^https?:\/\//i)).max(50),EM=d.object({case:pr.describe("a covers id \u2014 the recommend case this test realizes"),status:d.nativeEnum(fr),runtimeTargets:ed.optional().describe("HTTP(S) URLs this case actually exercised in its current run; omit for in-process or mocked checks, never infer from test type"),fromJourney:d.boolean().optional()}),IM=d.object({exit:d.number({invalid_type_error:"must be a number or null"}).nullable().describe("process exit of the re-run; null when no SUT was available"),details:d.string().optional().describe("what failed, or why a file was not run \u2014 required on any non-zero exit"),tests:d.array(EM).optional().describe("ONE ENTRY PER CASE the file covers; must agree with exit (0 \u2192 no fail; non-zero \u2192 at least one)")}),CM=d.object({from:d.string().optional().describe("staged path \u2014 required for placements"),file:pr.describe("final path relative to its repository, inside that checkout, with a source-file extension"),repository:pr.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),action:d.nativeEnum(zo),covers:d.array(d.string()).optional().describe("recommend ids a placed test covers"),repro:d.boolean().optional().describe("this test is MEANT to fail \u2014 it reproduces a reported bug"),finding:d.boolean().optional().describe("a non-repro test that failed on a REAL product bug"),placementBroken:d.boolean().optional().describe('placement/harness problem one repair could not fix \u2014 every reran.tests entry is then "skip"'),keptReason:pr.optional().describe("why a planned delete/regenerate was declined and the file kept"),isolatedRun:pr.optional().describe('only for a test marked "runs alone": the command, from its checkout root and without a shell, that runs only this file and writes its JUnit XML into $SKYRAMP_RESULTS_DIR (named by its path: no shell expands it) \u2014 the harness runs it, so leave reran.exit null'),reran:IM,assertionCount:d.number().int().nonnegative().optional().describe("[derived] assertions reachable from the file, counted at write time"),addedOnly:d.boolean().optional().describe("[derived] an existing test file the run only added to: every line it had is still there")}).refine(e=>e.action!=="place"||typeof e.from=="string"&&e.from.trim().length>0,{message:'is a place but has no "from" staged path',path:[]}),vM=(n=>(n.Junit="junit",n.Converter="converter",n))(vM||{}),zee=pr.optional().describe("the items[].file this test is in \u2014 needed only when two of this suite's files cover the same case id"),qee=d.object({results:pr.describe("the JUnit XML file this run wrote, a plain file name inside $SKYRAMP_RESULTS_DIR (e.g. backend.xml)"),source:d.nativeEnum(vM),run:pr.describe("the command you ran that wrote it, exactly as you ran it (with any converter)"),files:d.array(pr).min(1).describe("the items[].file paths this run covered"),cases:d.array(d.object({test:pr.describe("the test's name as the runner reports it, qualified by its class or file (e.g. tests/test_a.py::test_x) when the bare name repeats"),case:pr.describe("the covers id it realizes"),file:zee})).describe("map each reported test name to the case it covers")}),Jee=d.object({suites:d.array(qee).min(1)}),av=d.object({schemaVersion:d.literal(1),items:d.array(CM),runnerResults:Jee.optional().describe("the JUnit XML your test runs wrote into $SKYRAMP_RESULTS_DIR, so the harness reads each test's result from the runner \u2014 omit only when no SUT is available"),ignored:d.array(d.string()).describe("existing tests assessed and deliberately left untouched"),summary:pr.describe("one paragraph")});var qo=(s=>(s.NotFound="not_found",s.NoAccess="no_access",s.Unavailable="unavailable",s.AccessLost="access_lost",s.CannotOpen="cannot_open",s))(qo||{});var cv=o(e=>`${e.source}:${e.site??""}:${e.key}`,"requirementItemId");var td=/^pasted-[0-9a-f]{16}$/,Bs=/^file-[0-9a-f]{16}$/,nd=(r=>(r.Pdf="application/pdf",r.Csv="text/csv",r.Docx="application/vnd.openxmlformats-officedocument.wordprocessingml.document",r.Xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",r))(nd||{}),rd=o(e=>e.trim().toUpperCase(),"normalKey"),bM=o((e,t)=>{let n=e.trim();return td.test(n.toLowerCase())?"Pasted text":Bs.test(n.toLowerCase())?t?.get(rd(n))??"Uploaded document":/^\d+$/.test(n)?`Confluence page ${n}`:n.toUpperCase()},"itemName");var rg=(i=>(i.New="new",i.Updated="updated",i.Existing="existing",i))(rg||{}),Ui=(i=>(i.Sufficient="sufficient",i.Insufficient="insufficient",i.NoChange="no_change",i))(Ui||{}),xc=(I=>(I.RelatedChangeConflict="related_change_conflict",I.ReferenceOutsideTarget="reference_outside_target",I.SourceAccessLost="source_access_lost",I.ConfigurationIncomplete="configuration_incomplete",I.CredentialUnavailable="credential_unavailable",I.WorkflowBindingUnverified="workflow_binding_unverified",I.WorkflowRefUnprotected="workflow_ref_unprotected",I.BedrockWorkflowRequired="bedrock_workflow_required",I.DeploymentReview="deployment_review",I.SutRevisionMismatch="sut_revision_mismatch",I.IsolationUnavailable="isolation_unavailable",I.EvidenceInsufficient="evidence_insufficient",I.ConfigurationUnresolved="configuration_unresolved",I.ModelProviderDenied="model_provider_denied",I.ModelProviderUnavailable="model_provider_unavailable",I.RunnerProviderNotReady="runner_provider_not_ready",I.MergeConflict="merge_conflict",I))(xc||{}),Qs=(s=>(s.CiCheck="ci_check",s.TestReport="test_report",s.StaticAnalysis="static_analysis",s.CodeReview="code_review",s.Other="other",s))(Qs||{}),id=(i=>(i.Application="application",i.Environment="environment",i.TestDefect="test_defect",i))(id||{}),sd=(c=>(c.AuthToken="auth_token",c.Secret="secret",c.DataConnection="data_connection",c.AppNotStarted="app_not_started",c.Login="login",c.ExternalDependency="external_dependency",c.RecordingReplay="recording_replay",c))(sd||{});var ig=(n=>(n.Probe="probe",n.Agent="agent",n))(ig||{}),sg=(i=>(i.Seed="seed",i.RuntimeMock="runtime_mock",i.EnvOverride="env_override",i))(sg||{}),og=(i=>(i.TestCode="test_code",i.SkyrampMocker="skyramp_mocker",i.RecipeOverride="recipe_override",i))(og||{});var uv=(n=>(n.Ready="ready",n.Blocked="blocked",n))(uv||{}),It=d.string().trim().min(1),Hee=d.object({action:d.enum(["start","run","wait"]),text:It,source:d.enum(["file","notes","testbot"]).describe("file: a file in the repository; notes: the Target's notes; testbot: Testbot's own finding"),file:It.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"}),Yee=/^[A-Za-z_][A-Za-z0-9_]*$/,od=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,$c=(a=>(a.VersionEndpoint="version_endpoint",a.DeployWorkflow="deploy_workflow",a.KubernetesLabels="kubernetes_labels",a.Command="command",a.Api="api",a.NotTracked="not_tracked",a))($c||{}),ri="shared",Wee=It.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"),Tc=d.object({address:Wee,readyWhen:It.nullable(),credentials:d.array(d.string().regex(od)).max(50),revisionSources:d.array(d.object({method:d.nativeEnum($c),detail:It.describe("what Testbot reads, such as GET /version or the deploy workflow's name; for not_tracked, why nothing shows it"),components:d.array(It).min(1).describe("the components it tells the revision of, by name")}).strict()).max(50)}).strict(),lv={steps:d.array(Hee).max(20).optional().describe("how it starts, in order"),kind:d.enum(["web_app","service","database","external_service"]).optional(),from:d.object({file:It,service:It.nullable()}).strict().optional(),credentials:d.array(d.string().max(100).regex(Yee)).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")},dv=d.object({name:It,repository:It.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:d.boolean(),...lv,deployed:It.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')}),Zee=d.object({component:It,problem:It,evidence:It.describe("the exact command and output that shows it"),fix:It.describe("what the user must provide, and where")}),Kee=d.object({framework:It,file:It.describe("the test file run, relative to its repository root"),result:d.enum(["pass","fail","error"])}),Xee=d.object({input:It.describe("the part of the user's SUT input, as given"),reason:It}),aIe=d.object({schemaVersion:d.literal(1),status:d.nativeEnum(uv).describe("ready only if every component came up healthy and the recipe is written"),components:d.array(dv),suites:d.array(Kee).default([]).describe("one run per test suite the Target's repositories have; empty when they have none"),inputsUsed:d.array(It).default([]).describe("the parts of the user's SUT input the recipe used as given"),inputsUsedHow:d.array(d.object({input:It.describe("exactly as written in inputsUsed; an entry that is not there is left out"),how:It.describe("what the recipe did with it")})).optional(),inputsNotUsed:d.array(Xee).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:d.array(Zee).describe("required (non-empty) when status is blocked"),environment:Tc.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 Av=64*1024,pv=512*1024,wM=/[\u0000-\u0008\u000b\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/;var QM=_e(require("path"));var Fi=(r=>(r.Clean="clean",r.RecipeDrift="recipe-drift",r.ChangeBrokeBringup="change-broke-bringup",r.BringupFailed="bringup-failed",r))(Fi||{}),Nr=d.string().trim().min(1),ete=d.object({url:d.string().optional().describe("the URL probed, if the check is an HTTP request"),command:d.string().optional().describe("the command run, if the check is a script \u2014 preferred when auth is needed"),headers:d.record(d.string()).optional(),status:d.union([d.number(),d.string()]).optional().describe("expected HTTP status for a url check (default 200)"),output:Nr.describe("what the check returned, VERBATIM \u2014 the bytes, nothing appended; this gate RE-RUNS the check")}),fv=d.array(d.object({component:Nr.describe("a shared component listed above"),url:Nr.describe("the URL on the component's own origin (scheme, host and port) that answers with its deployed commit"),output:Nr.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"),tte=d.object({name:Nr.describe("the credential's environment variable name, as listed above; never its value"),component:Nr.describe("the component that refused it"),status:d.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:Nr.describe("the request or command you tested it with and what came back, never the value")}),BM=d.object({schemaVersion:d.literal(1),baseUrls:d.record(d.string()).optional().describe("service \u2192 base URL of the running app; omit on a failed bring-up, never invent one"),health:ete.optional(),teardown:Nr.describe("command that tears the SUT down"),dependencies:d.record(d.boolean()).optional().describe("EVERY backing service: true = really deployed, false = mocked; REQUIRED when the app came up"),outcome:d.nativeEnum(Fi).describe("clean | recipe-drift (you corrected the recipe) | change-broke-bringup (the PR broke it) | bringup-failed (environment, not the PR)"),recipeFixes:d.array(d.string()).optional().describe("required when outcome is recipe-drift: what was corrected"),bringupError:d.object({command:Nr,output:Nr}).optional().describe("required when bring-up failed: the exact failing command and what it printed"),suspectFiles:d.array(d.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:d.boolean(),startedAt:Nr.describe("ISO timestamp"),revisions:fv.optional(),credentialsRefused:d.array(tte).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:d.boolean().optional().describe("[derived] whether the checkout had a recorded recipe before bring-up")});var jt=d.string().trim().min(1),ag=jt,gv=(n=>(n.TestbotManaged="testbot_managed",n.CustomerDeployed="customer_deployed",n))(gv||{}),hv=[".skyramp/sut/setup.sh",".skyramp/sut/teardown.sh"],kM=d.object({schemaVersion:d.literal(1),type:d.nativeEnum(gv).optional(),repository:ag.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:d.enum(["ready","blocked"]),environment:Tc.optional(),components:d.array(d.object({name:jt,repository:jt.describe(`owner/repo, or "${ri}" for a customer-deployed component no repository builds`),healthy:d.boolean(),url:d.string().min(1).nullable(),...lv,credentials:d.array(d.string().regex(od)).max(50).optional(),deployed:jt.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:d.array(d.object({framework:jt,file:jt,result:d.enum(["pass","fail","error"])}).strict()),inputsUsed:d.array(jt),inputsUsedHow:d.array(d.object({input:jt,how:jt}).strict()).optional(),inputsNotUsed:d.array(d.object({input:jt,reason:jt}).strict()),blockers:d.array(d.object({component:jt,problem:jt,evidence:jt,fix:jt}).strict()),replay:d.object({outcome:jt,durationSeconds:d.number().nonnegative().nullable()}).strict().nullable(),files:d.array(d.object({path:jt,content:d.string()}).strict())}).strict().superRefine((e,t)=>{e.inputsUsedHow?.forEach((r,s)=>{e.inputsUsed.includes(r.input)||t.addIssue({code:d.ZodIssueCode.custom,path:["inputsUsedHow",s,"input"],message:"not one of inputsUsed"})}),e.components.forEach((r,s)=>{r.credentials&&new Set(r.credentials).size!==r.credentials.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"credentials"],message:"names a credential twice"})});let n=e.type==="customer_deployed";n!==(e.environment!==void 0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["environment"],message:"an environment exactly when the plan's type is customer_deployed"}),n&&e.repository!==void 0&&t.addIssue({code:d.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:d.ZodIssueCode.custom,path:["environment","credentials"],message:"names a credential twice"});let i=new Set(e.components.map(r=>r.name));if(e.environment?.revisionSources.forEach((r,s)=>{r.components.forEach((a,c)=>{i.has(a)||t.addIssue({code:d.ZodIssueCode.custom,path:["environment","revisionSources",s,"components",c],message:"not one of components"})})}),e.components.forEach((r,s)=>{r.deployed!==void 0!==n&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"deployed"],message:"what a component runs exactly when the plan is customer_deployed"}),r.repository===ri&&!n&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"repository"],message:`only a customer_deployed component is ${ri}`})}),n&&(e.components.forEach((r,s)=>{e.components.findIndex(a=>a.name===r.name)!==s&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"name"],message:"names a component twice"})}),e.replay!==null&&t.addIssue({code:d.ZodIssueCode.custom,path:["replay"],message:"a customer_deployed plan is never replayed"}),e.files.forEach((r,s)=>{hv.includes(r.path)&&t.addIssue({code:d.ZodIssueCode.custom,path:["files",s,"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(s=>s.components));e.components.forEach((s,a)=>{s.repository!==ri&&!r.has(s.name)&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",a,"name"],message:"a ready customer_deployed plan reads what every component a repository builds runs"})})}});var hIe=["clean","recipe-drift"];function ad(e){let t=QM.posix.normalize(e);return t===e&&(t===".skyramp/workspace.yml"||t.startsWith(".skyramp/sut/")&&t.length>13)}o(ad,"isRuntimePlanFile");var Ho=(n=>(n.GitHub="github",n.AzureDevOps="azure-devops",n))(Ho||{}),pg=(s=>(s.Trigger="TRIGGER",s.Baseline="BASELINE",s.AuthoritativeRelatedChange="AUTHORITATIVE_RELATED_CHANGE",s.ConfiguredSharedDependency="CONFIGURED_SHARED_DEPENDENCY",s.ManualOverride="MANUAL_OVERRIDE",s))(pg||{}),fg=(a=>(a.PullRequest="pull_request",a.ReadyForReview="ready_for_review",a.Schedule="schedule",a.Manual="manual",a.SutSetup="sut_setup",a.RevisionRead="revision_read",a))(fg||{}),nte=["sut_setup"],rte=["sut_setup","schedule","revision_read"],ite=["sut_setup"],Ev=(t=>(t.PullRequest="pull_request",t))(Ev||{}),Iv=(n=>(n.PullRequest="pull_request",n.Branch="branch",n))(Iv||{}),SM=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"],VM=(r=>(r.ModelProvider="model_provider",r.SutAccess="sut_access",r.Skyramp="skyramp",r.Other="other",r))(VM||{}),gg=(r=>(r.None="none",r.Delivered="delivered",r.Partial="partial",r.Failed="failed",r))(gg||{}),dd=(s=>(s.ReportUploaded="report_uploaded",s.NoReport="no_report",s.Cancelled="cancelled",s.RecipeUploaded="recipe_uploaded",s.RevisionsUploaded="revisions_uploaded",s))(dd||{}),zM=(n=>(n.Running="running",n.Ended="ended",n))(zM||{}),Ad=(p=>(p.TimedOut="timed_out",p.AgentFailed="agent_failed",p.SetupFailed="setup_failed",p.CredentialMissing="credential_missing",p.RunnerLost="runner_lost",p.CheckoutFailed="checkout_failed",p.EnvironmentUnverified="environment_unverified",p.ModelProviderDenied="model_provider_denied",p.ModelProviderUnavailable="model_provider_unavailable",p.RunnerProviderNotReady="runner_provider_not_ready",p.MergeConflict="merge_conflict",p))(Ad||{}),qM=(i=>(i.Onboard="onboard",i.Deploy="deploy",i.Recheck="recheck",i))(qM||{}),Cv=(n=>(n.Started="started",n.Finished="finished",n))(Cv||{}),JM=(i=>(i.Passed="passed",i.Failed="failed",i.Skipped="skipped",i))(JM||{});var HM=(i=>(i.ChooseCredential="choose_credential",i.FreeText="free_text",i.ChooseSource="choose_source",i))(HM||{});var YM=(r=>(r.Answered="answered",r.Followed="followed",r.NotFollowed="not_followed",r.TooLate="too_late",r))(YM||{}),vv=(i=>(i.Discover="discover",i.Start="start",i.Check="check",i))(vv||{}),mv=(r=>(r.ValidationPlan="validation_plan",r.TestEnvironment="test_environment",r.TestConditions="test_conditions",r.Tests="tests",r))(mv||{});var bv=(r=>(r.Found="found",r.Starting="starting",r.Up="up",r.OutOfScope="out_of_scope",r))(bv||{}),gr=d.string().regex(/^[1-9][0-9]{0,18}$/),Ur=d.string().regex(/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/),_c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,$t=d.string().regex(_c),pn=d.string().regex(/^[0-9a-f]{64}$/),dg=d.object({id:$t,revision:gr}).strict(),hg={provider:d.literal("github"),providerAccountId:gr,providerRepositoryId:gr},mg={provider:d.literal("azure-devops"),providerAccountId:$t,providerRepositoryId:$t},Fr=d.discriminatedUnion("provider",[d.object(hg).strict(),d.object(mg).strict()]),wv=d.discriminatedUnion("provider",[d.object(hg).passthrough(),d.object(mg).passthrough()]),si=o(e=>`${e.provider}:${e.providerRepositoryId}`,"sourceKey"),RM={namespace:d.string().min(1),name:d.string().min(1)},WM=d.discriminatedUnion("provider",[d.object({...hg,...RM}).strict(),d.object({...mg,...RM}).strict()]),xM=d.object({ref:d.string().min(1),revision:Ur}).strict(),ste=d.object({kind:d.nativeEnum(Iv),number:gr.optional(),ref:d.string().min(1),revision:Ur,reason:d.nativeEnum(pg)}).strict(),ote=d.object({repository:WM,revision:Ur,ref:d.string().nullable(),reason:d.nativeEnum(pg),change:d.object({kind:d.nativeEnum(Ev),number:gr,base:xM.optional()}).strict().nullable(),compareWith:xM.optional(),merge:d.array(ste).min(2).optional()}).strict();function ate(e){let t=e.merge;if(!t)return null;if(e.change||e.compareWith)return{path:["merge"],message:"a merged source names no change and no compareWith"};if(e.ref===null)return{path:["ref"],message:"a merged source names its baseline branch"};let n=new Set,i=new Set;for(let[s,a]of t.entries()){if(a.kind==="pull_request"!=(a.number!==void 0))return{path:["merge",s,"number"],message:"a pull request names its number, and a branch none"};if(!SM.includes(a.reason))return{path:["merge",s,"reason"],message:`${a.reason} does not select a merged revision`};if(a.kind==="branch"&&a.reason!=="MANUAL_OVERRIDE")return{path:["merge",s,"reason"],message:"only a person chooses a branch to merge"};if(a.ref===e.ref)return{path:["merge",s,"ref"],message:"the baseline branch is what the source merges onto"};if(a.number!==void 0&&n.has(a.number)||i.has(a.ref))return{path:["merge",s],message:"names a revision the source already merges"};a.number!==void 0&&n.add(a.number),i.add(a.ref)}let r=SM.find(s=>t.some(a=>a.reason===s));return e.reason!==r?{path:["reason"],message:`a source that merges these revisions is ${r}`}:null}o(ate,"mergedSourceIssue");function cte(e){if(e.trigger.kind==="revision_read"!=!e.baseline)return e.baseline?"a revision_read run names no baseline":"names its baseline";if(!e.baseline)return null;let{confirmedRunId:t,initialBaselineId:n,comparisonBaselineId:i,sources:r}=e.baseline;if([t,n,i].filter(l=>l!=null).length>1)return"a run compares with one baseline";let s=e.trigger.kind==="schedule"&&t!==null||n!==void 0||i!==void 0;if(!r)return s?"names every source of the snapshot, once":null;if(t===null&&n===void 0&&i===void 0)return"a run with no Confirmed Baseline names no baseline sources";let a=new Set(e.sources.map(l=>si(l.repository))),c=new Set(r.map(l=>si(l.repository)));return c.size===r.length&&c.size===a.size&&[...c].every(l=>a.has(l))?null:"names every source of the snapshot, once"}o(cte,"baselineSourcesIssue");var ZM=/^[A-Z][A-Z0-9_]+-[1-9][0-9]*$/,KM=/^[1-9][0-9]{0,18}$/,$M=new RegExp(`${ZM.source}|${KM.source}`),TM=/^https:\/\/[a-z0-9-]+(\.[a-z0-9-]+)+$/,ute=d.union([d.object({source:d.literal("jira"),site:d.string().regex(TM),key:d.string().regex(ZM),updated:d.string().datetime(),contentHash:pn}).strict(),d.object({source:d.literal("confluence"),site:d.string().regex(TM),key:d.string().regex(KM),version:d.number().int().positive(),contentHash:pn}).strict(),d.object({source:d.literal("other"),key:d.string().regex(td),contentHash:pn}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Bs),contentHash:pn,fileName:d.string().min(1).max(255),mediaType:d.nativeEnum(nd)}).strict()]),DM=d.union([d.literal("jira"),d.literal("confluence")]),lte=d.object({schemaVersion:d.literal(1),items:d.array(d.union([d.object({source:DM,site:d.string(),key:d.string().regex($M),state:d.literal("read"),text:d.string(),version:d.string().min(1),contentMatches:d.boolean()}).strict(),d.object({source:DM,site:d.string(),key:d.string().regex($M),state:d.literal("not_read"),reason:d.nativeEnum(qo)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(td),state:d.literal("read"),text:d.string(),version:d.string().min(1),contentMatches:d.boolean()}).strict(),d.object({source:d.literal("other"),key:d.string().regex(td),state:d.literal("not_read"),reason:d.nativeEnum(qo)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Bs),state:d.literal("read"),version:pn,fileName:d.string().min(1).max(255),mediaType:d.nativeEnum(nd)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Bs),state:d.literal("not_read"),reason:d.nativeEnum(qo)}).strict()])),instructions:d.array(d.string()).optional()}).strict(),dte=d.object({resultId:d.string().min(1),repository:d.string().min(1),testType:d.string().min(1),path:d.string(),finding:d.string().min(1)}).strict(),Ate=d.object({schemaVersion:d.literal(1),runId:$t,skyrampOrgId:$t,target:dg,policy:dg.nullable(),trigger:d.object({kind:d.nativeEnum(fg),requestedAt:d.string().datetime()}).strict(),configuration:d.object({captureId:$t,revision:gr.nullable(),hash:pn}).strict(),baseline:d.object({confirmedRunId:$t.nullable(),initialBaselineId:$t.optional(),comparisonBaselineId:$t.optional(),knownFailures:d.array(dte).optional(),sources:d.array(d.object({repository:Fr,revision:Ur}).strict()).optional()}).strict().optional(),sources:d.array(ote).min(1).max(1e3),execution:d.object({provider:d.nativeEnum(Ho),repository:WM,workflowPath:d.string(),ref:d.string()}).strict(),credentials:d.array(d.object({name:d.string(),purpose:d.nativeEnum(VM),required:d.boolean()}).strict()),requirements:d.array(ute).min(1).optional(),instructions:d.object({contentHash:pn}).strict().optional(),deployedRevisions:d.array(d.object({repository:Fr,revision:Ur}).strict()).min(1).optional()}).strict().superRefine((e,t)=>{let n=new Set;(e.requirements??[]).forEach((u,l)=>{let A="fileName"in u?"file":"pasted";u.source==="other"&&u.key!==`${A}-${u.contentHash.slice(0,16)}`&&t.addIssue({code:d.ZodIssueCode.custom,message:"is not the key of its content hash",path:["requirements",l,"key"]});let p=cv({source:u.source,key:u.key});n.has(p)&&t.addIssue({code:d.ZodIssueCode.custom,message:"names an item that the run already names",path:["requirements",l,"key"]}),n.add(p)});let i=e.trigger.kind,r=nte.includes(i);r!==(e.policy===null)&&t.addIssue({code:d.ZodIssueCode.custom,path:["policy"],message:r?`a ${i} run has no policy`:"names the policy revision"}),e.baseline?.knownFailures&&!e.baseline.comparisonBaselineId&&t.addIssue({code:d.ZodIssueCode.custom,path:["baseline","knownFailures"],message:"known failures require a chosen comparison checkpoint"});let s=cte(e);s&&t.addIssue({code:d.ZodIssueCode.custom,path:e.baseline?["baseline","sources"]:["baseline"],message:s}),rte.includes(i)&&e.sources.forEach((u,l)=>{u.reason!=="BASELINE"&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,"reason"],message:`a ${i} run selects only BASELINE sources`})}),e.deployedRevisions&&i!=="manual"&&t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions"],message:"only a manual run pins deployed revisions"});let a=new Set(e.sources.map(u=>si(u.repository))),c=new Set;(e.deployedRevisions??[]).forEach((u,l)=>{let A=si(u.repository);a.has(A)?c.has(A)&&t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions",l,"repository"],message:"repository appears twice"}):t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions",l,"repository"],message:"names a repository outside the snapshot"}),c.add(A)}),e.sources.forEach((u,l)=>{u.compareWith&&(u.reason!=="MANUAL_OVERRIDE"||u.change)&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,"compareWith"],message:"only a MANUAL_OVERRIDE source without a change names a revision to compare with"}),e.baseline?.comparisonBaselineId&&(u.change?.base||u.compareWith||u.merge)&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l],message:"a chosen checkpoint cannot be combined with a source comparison base or merge"});let A=ate(u);A&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,...A.path],message:A.message})})});var Bv=(n=>(n.Person="person",n.Policy="policy",n))(Bv||{}),pte=d.object({kind:d.nativeEnum(Bv),name:d.string().min(1).max(256)}).strict(),fte=d.object({mcp:d.discriminatedUnion("source",[d.object({source:d.literal("npm"),version:d.string().regex(/^[A-Za-z0-9][A-Za-z0-9.+_-]{0,63}$/).nullable()}).strict(),d.object({source:d.literal("github"),ref:d.string().regex(/^[A-Za-z0-9._/-]{1,255}$/)}).strict()]),bedrock:d.object({region:d.string().regex(/^[a-z]{2}(-[a-z]+)+-[0-9]$/),roleArn:d.string().regex(/^arn:aws(-[a-z]+)*:iam::[0-9]{12}:role\/[\w+=,.@/-]{1,512}$/)}).strict().nullable()}).strict(),gte=d.object({schemaVersion:d.literal(1),attempt:d.object({id:$t,number:d.number().int().positive(),deadlineAt:d.string().datetime()}).strict(),manifest:Ate,manifestHash:pn,entitlements:d.array(d.string()).optional(),runToken:d.string().min(1).optional(),requestedBy:pte.nullable().optional(),writeAllowed:d.boolean().optional(),claudeCodeVersion:d.string().regex(/^[0-9]+\.[0-9]+\.[0-9]+$/,"an exact version, such as 2.1.290").nullable().optional(),deployedRevisions:d.array(d.object({repository:Fr,revision:Ur}).strict()).optional(),statedRevisions:d.array(d.object({repository:Fr,revision:Ur}).strict()).optional(),runSettings:fte.optional(),credentialRelay:d.boolean().optional()}).strict(),_M={providerRunAttempt:d.number().int().positive(),workflowRef:d.string().min(1)},hte=d.string().regex(/^[^/]+\/[^/]+\/[1-9][0-9]{0,15}\/[1-9][0-9]{0,15}$/),mte=d.object({schemaVersion:d.literal(1),runId:$t,execution:d.discriminatedUnion("provider",[d.object({..._M,provider:d.literal("github"),repository:d.object(hg).strict(),providerRunId:gr}).strict(),d.object({..._M,provider:d.literal("azure-devops"),repository:d.object(mg).strict(),providerRunId:hte}).strict()]),requester:d.literal(!0).optional(),writeCheck:d.literal(!0).optional(),claudeCodePin:d.literal(!0).optional(),deployedPins:d.literal(!0).optional(),statedPins:d.literal(!0).optional(),runSettings:d.literal(!0).optional(),credentialRelay:d.literal(!0).optional()}).strict(),NM=d.object({repository:Fr,number:gr,commitSha:Ur.optional()}).strict(),cg=d.array(d.object({repository:Fr,reason:d.string().max(4096).regex(/\S/)}).strict()).max(1e3).optional(),yte=d.discriminatedUnion("status",[d.object({status:d.literal("none"),noTests:cg}).strict(),d.object({status:d.literal("delivered"),noTests:cg,pullRequests:d.array(NM).min(1)}).strict(),d.object({status:d.literal("partial"),noTests:cg,pullRequests:d.array(NM).min(1),failures:d.array(d.object({repository:Fr,message:d.string()}).strict()).min(1)}).strict(),d.object({status:d.literal("failed"),message:d.string(),noTests:cg}).strict()]),yg=1024*1024,XM=16*1024*1024,ug=o(e=>d.array(d.object({[e]:d.string()}).strict()).optional(),"texts"),Ete=d.object({language:d.custom(e=>e==="ja","Invalid"),businessCaseAnalysis:d.string(),validation:d.object({rationale:d.string(),gaps:d.array(d.string())}).strict().optional(),changes:d.array(d.object({id:d.string(),text:d.string()}).strict()).optional(),issuesFound:ug("description"),newTestsCreated:ug("description"),testResults:ug("details"),caveats:ug("text")}).strict(),Ite=d.object({blockedPreflight:d.object({file:d.string().min(1),repository:d.string().min(1).optional(),reason:d.string().min(1).max(300),evidence:d.string().min(1).max(400)}).strict().optional(),sufficiency:d.nativeEnum(Ui),rationale:d.string().min(1),gaps:d.array(d.string().min(1)),acceptedEvidence:d.array(d.object({kind:d.nativeEnum(Qs),repository:d.string().min(1),revision:Ur,reference:d.string().min(1),summary:d.string().min(1)}).strict()),actionRequired:d.array(d.nativeEnum(xc))}).strict().superRefine((e,t)=>{e.sufficiency==="insufficient"!=e.gaps.length>0&&t.addIssue({code:d.ZodIssueCode.custom,path:["gaps"],message:"only insufficient evidence names gaps, and it names at least one"}),new Set(e.actionRequired).size!==e.actionRequired.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["actionRequired"],message:"a reason appears twice"})}),lg=500,eL=2048,tL=1e3,Cte=/[\\/:*?"<>|;#$*{},+=[\]%\p{Cc}\p{Cf}]/u,UM=o(e=>e.length>0&&e.length<=64&&e===e.trim()&&!Cte.test(e)&&!/[^\S ]/u.test(e)&&!/^[._]/.test(e)&&!e.endsWith("."),"isAzureName"),nL=o(e=>{if(/^[A-Za-z0-9._-]{1,100}\/[A-Za-z0-9._-]{1,100}$/.test(e))return!0;let[t,n,i,...r]=e.split("/");return e.length<=201&&r.length===0&&i!==void 0&&/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,48}[A-Za-z0-9])?$/.test(t)&&UM(n)&&UM(i)},"isResultRepository"),vte=d.object({testResults:d.array(d.object({resultId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/),repository:d.string().refine(nL,"Invalid"),testType:d.string(),runtimeTargets:ed.optional(),endpoint:d.string(),status:d.enum(["Pass","Fail","Skipped"]),details:d.string(),fileName:d.string().optional(),testId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/).optional(),failureCause:d.object({kind:d.nativeEnum(id),family:d.nativeEnum(sd).optional()}).strict().optional(),origin:d.nativeEnum(rg).optional()}).strict()),validation:Ite,changes:d.array(d.object({id:d.string().min(1).max(512),text:d.string().max(16384),source:d.string().max(eL),testedBy:d.array(d.string().min(1).max(1024)).max(lg),writtenBy:d.array(d.string().min(1).max(1024)).max(lg),maintainedBy:d.array(d.string().min(1).max(1024)).max(lg)}).strict()).max(tL).optional(),traceVersion:d.literal(1),display:Ete.optional()}).passthrough().superRefine((e,t)=>{let n=e.display,i={issuesFound:e.issuesFound,newTestsCreated:e.newTestsCreated,testResults:e.testResults,caveats:e.caveats};for(let s of["issuesFound","newTestsCreated","testResults","caveats"]){let a=n?.[s];a&&a.length!==(Array.isArray(i[s])?i[s].length:0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["display",s],message:`has not one row per ${s} row`})}n?.validation&&n.validation.gaps.length!==e.validation.gaps.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["display","validation","gaps"],message:"has not one gap per validation gap"});let r=new Set;e.testResults.forEach((s,a)=>{let c=s.failureCause;c&&s.status==="Pass"&&t.addIssue({code:d.ZodIssueCode.custom,path:["testResults",a,"failureCause"],message:"a passing result has no failure cause"}),c&&c.kind==="environment"!=(c.family!==void 0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["testResults",a,"failureCause"],message:"an environment cause names its family, and no other cause does"});let u=["testResults",a,"resultId"],l=s.resultId.slice(`${s.repository}:${s.testType}:`.length);(!s.resultId.startsWith(`${s.repository}:${s.testType}:`)||l===""||l.startsWith("/")||l.startsWith("#"))&&t.addIssue({code:d.ZodIssueCode.custom,path:u,message:"is not repository:testType:path for this result"}),r.has(s.resultId)&&t.addIssue({code:d.ZodIssueCode.custom,path:u,message:"stable identity repeated"}),r.add(s.resultId)})}),FM=o(e=>e.replace(/[%:#]/g,t=>encodeURIComponent(t)),"encodeIdPart");function Qv(e,t,n,i){let r=n.replace(/\\/g,"/"),s=r.split("/").filter(u=>u!==""&&u!==".");if(r.startsWith("/")||/^[A-Za-z]:/.test(r)||s.length===0||s.includes(".."))throw new Error(`testResultId needs a path relative to the repository root, got "${n}"`);let a=s.join("/"),c=`${e}:${t}:${FM(a)}`;return i?`${c}#${FM(i)}`:c}o(Qv,"testResultId");var Eg=(i=>(i.BranchPushed="branch_pushed",i.PullRequestOpened="pull_request_opened",i.PullRequestEdited="pull_request_edited",i))(Eg||{}),rL=50,PM=d.string().regex(/^(?!.*\.\.)(?!\/)(?!.*\/$)[A-Za-z0-9._/-]{1,255}$/),iL=d.discriminatedUnion("kind",[d.object({kind:d.literal("branch_pushed"),repository:Fr,branch:PM,commit:Ur}).strict(),d.object({kind:d.enum(["pull_request_opened","pull_request_edited"]),repository:Fr,number:gr,branch:PM}).strict()]),sL=d.object({schemaVersion:d.literal(1),run:d.object({runId:$t,attemptNumber:d.number().int().positive(),manifestHash:pn}).strict(),target:dg,policy:dg,provenance:d.object({sources:d.array(d.object({repository:Fr,revision:Ur}).strict()),firstQualification:d.literal(!0).optional()}).strict(),delivery:d.object({generatedTests:yte}).strict(),producer:d.object({testbot:d.string().regex(/^[0-9A-Za-z.+-]{1,64}$/),mcp:d.string().regex(/^[0-9A-Za-z.+-]{1,64}$/)}).strict(),report:vte,githubWrites:d.array(iL).max(rL).optional()}).strict(),BIe=sL.pick({schemaVersion:!0,run:!0,target:!0,provenance:!0,producer:!0}).extend({recipe:kM}).strict().superRefine(({recipe:e},t)=>{let n=o((s,a)=>t.addIssue({code:d.ZodIssueCode.custom,path:["recipe",...s],message:a}),"issue");e.status==="blocked"&&e.blockers.length===0&&n(["blockers"],"a blocked recipe names at least one blocker");let i=new Set,r=0;e.files.forEach((s,a)=>{ad(s.path)||n(["files",a,"path"],"is not .skyramp/workspace.yml or a file under .skyramp/sut/"),i.has(s.path)&&n(["files",a,"path"],"file repeated"),i.add(s.path),wM.test(s.content)&&n(["files",a,"content"],"is not text");let c=Buffer.byteLength(s.content,"utf8");r+=c,c>Av&&n(["files",a,"content"],`larger than ${Av} bytes`)}),r>pv&&n(["files"],`recipe text over ${pv} bytes in total`)}),QIe=d.object({components:d.array(d.object({name:d.string().min(1),repository:d.string().refine(nL,"Invalid"),observedRevision:d.string().regex(/^[0-9a-f]{7,64}$/).nullable(),source:d.nativeEnum(ig),evidence:d.string()}).strict().refine(e=>e.source!=="agent"||e.observedRevision===null,{path:["observedRevision"],message:"a component only an agent session can read names no revision"}))}).strict();function oL(e){return e.trigger.kind==="schedule"||e.trigger.kind==="manual"&&e.sources.every(t=>t.reason==="BASELINE")}o(oL,"readsDeployedState");var bte=d.object({schemaVersion:d.literal(1),stage:d.nativeEnum(qM),event:d.nativeEnum(Cv),status:d.nativeEnum(JM).optional()}).strict().refine(e=>e.status===void 0||e.event==="finished",{path:["status"],message:"only a finished stage has a status"}),Ig=100,wte=5e3,Jo=2e3,MM=100,aL=/^[A-Za-z0-9_-]{1,64}$/,Bte=20,Qte=200,kte=100,Ste=100,Rte=200,LM="[^/\\s](?:(?:[^/\\s]| )*[^/\\s])?",xte=new RegExp(`^(?:[^/\\s]+/[^/\\s]+|[^/\\s]+/${LM}/${LM})$`),$te=500,Tte=50,cL=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/,Zn=o(e=>d.string().max(e).refine(t=>t.trim().length>0&&!cL.test(t),"blank, or not text"),"setupText"),ii={sequence:d.number().int().min(1).max(wte),at:d.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,6})?Z$/)},uL=d.object({...ii,kind:d.literal("reply"),to:d.string().uuid(),outcome:d.nativeEnum(YM),accepted:d.boolean(),text:Zn(Jo),note:d.object({source:d.enum(["target","environment"]),quote:Zn(Jo)}).strict().optional(),kept:Zn(Jo).optional()}).strict();function lL(e,t){if(e.kind!=="reply")return;let n=e;n.accepted!==(n.outcome==="answered"||n.outcome==="followed")&&t.addIssue({code:d.ZodIssueCode.custom,path:["accepted"],message:"accepted exactly when answered or followed"}),n.note&&n.outcome!=="not_followed"&&t.addIssue({code:d.ZodIssueCode.custom,path:["note"],message:"a note only when not_followed"}),n.kept&&n.outcome!=="followed"&&t.addIssue({code:d.ZodIssueCode.custom,path:["kept"],message:"kept only when followed"})}o(lL,"checkReply");var Dte=d.discriminatedUnion("kind",[d.object({...ii,kind:d.literal("log"),phase:d.nativeEnum(vv),text:Zn(Jo)}).strict(),d.object({...ii,kind:d.literal("component"),name:Zn(MM),repository:Zn(Rte).refine(e=>xte.test(e)||e===ri,"not owner/name"),file:Zn($te).nullable(),status:d.nativeEnum(bv),version:Zn(Ste).optional()}).strict(),uL,d.object({...ii,kind:d.literal("question"),id:d.string().regex(aL),type:d.nativeEnum(HM),text:Zn(Jo),component:Zn(MM).nullable(),choices:d.array(Zn(Qte)).max(Bte),placeholder:Zn(kte).optional()}).strict(),d.object({...ii,kind:d.literal("delivered"),ids:d.array(d.string().uuid()).max(Ig)}).strict(),d.object({...ii,kind:d.literal("credentials"),names:d.array(d.string().regex(od)).min(1).max(Tte)}).strict()]).superRefine((e,t)=>{lL(e,t),e.kind==="credentials"&&new Set(e.names).size!==e.names.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["names"],message:"a name twice"}),e.kind==="question"&&(e.type==="free_text"!=(e.choices.length===0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["choices"],message:"choices exactly when the question is not free_text"}),new Set(e.choices).size!==e.choices.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["choices"],message:"a choice twice"}))}),_te=d.object({schemaVersion:d.literal(1),events:d.array(Dte).max(Ig)}).strict(),Nte=d.discriminatedUnion("kind",[d.object({...ii,kind:d.literal("log"),stage:d.nativeEnum(mv),text:Zn(Jo)}).strict(),uL,d.object({...ii,kind:d.literal("delivered"),ids:d.array(d.string().uuid()).max(Ig)}).strict(),d.object({...ii,kind:d.literal("stage"),stage:d.nativeEnum(mv),event:d.nativeEnum(Cv)}).strict(),d.object({...ii,kind:d.literal("test"),resultId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/),status:d.enum(["Pass","Fail","Skipped"]),details:d.string().max(Jo).refine(e=>!cL.test(e),"not text")}).strict()]).superRefine(lL),Ute=d.object({schemaVersion:d.literal(1),events:d.array(Nte).max(Ig)}).strict(),OM={id:d.string().uuid(),text:d.string(),by:d.string().nullable(),at:d.string(),replied:d.literal(!0).optional()},dL=d.discriminatedUnion("kind",[d.object({...OM,kind:d.literal("instruction"),question:d.null()}),d.object({...OM,kind:d.literal("answer"),question:d.string().regex(aL)})]),AL=d.string().regex(/^[A-Za-z0-9+/]{43}=$/),Fte=d.object({id:d.string().uuid(),revision:d.string(),by:d.string().nullable(),at:d.string(),target:d.string(),own:d.object({source:d.enum(["policy","test_environment"]),text:d.string()}).nullable()}),pL=d.string().regex(/^[A-Za-z0-9+/]{43}=$/),Pte=d.object({ephemeralPublicKey:pL,iv:d.string().regex(/^[A-Za-z0-9+/]{16}$/),ciphertext:d.string().min(1).max(65536),tag:d.string().regex(/^[A-Za-z0-9+/]{22}==$/)}).strict();var Mte=/^[A-Z][A-Z0-9_]{0,99}$/,Lte=new Set(["PATH","HOME","SHELL","USER","LOGNAME","PWD","OLDPWD","TMPDIR","TMP","TEMP","IFS","ENV","BASH_ENV","CDPATH","PS4","NODE_OPTIONS","NODE_PATH","NODE_EXTRA_CA_CERTS","NODE_TLS_REJECT_UNAUTHORIZED","PYTHONPATH","PYTHONHOME","PYTHONSTARTUP","RUBYOPT","RUBYLIB","PERL5OPT","PERL5LIB","JAVA_TOOL_OPTIONS","SSL_CERT_FILE","SSL_CERT_DIR","CURL_CA_BUNDLE","REQUESTS_CA_BUNDLE","HTTP_PROXY","HTTPS_PROXY","NO_PROXY","ALL_PROXY","SSH_AUTH_SOCK","DOCKER_HOST","GIT_SSH","GIT_SSH_COMMAND","GIT_ASKPASS","GIT_EXEC_PATH","GIT_DIR","GIT_WORK_TREE","GIT_PROXY_COMMAND"]),Ote=["LD_","DYLD_","GIT_CONFIG","GITHUB_","RUNNER_","ACTIONS_","INPUT_","SKYRAMP_RUNNER_"],jte=o(e=>Mte.test(e)&&!Lte.has(e)&&!Ote.some(t=>e.startsWith(t)),"relayCredentialNameAllowed"),fL=d.string().refine(jte,"not a name a relay may set"),cd={id:$t,credentialName:fL},Gte=d.discriminatedUnion("status",[d.object({...cd,status:d.literal("sealed"),sealed:Pte}),d.object({...cd,status:d.literal("pending")}),d.object({...cd,status:d.literal("empty")}),d.object({...cd,status:d.literal("failed")}),d.object({...cd,status:d.literal("expired")})]),kIe=d.object({schemaVersion:d.literal(1),relayId:$t,attemptId:$t,credentialName:fL,publicKey:pL}).strict(),Vte=d.object({schemaVersion:d.literal(1),leftOut:d.array(d.string()),messages:d.array(dL).optional(),stop:d.object({key:AL}).optional(),notes:Fte.optional(),relays:d.array(d.unknown()).transform(e=>e.flatMap(t=>{let n=Gte.safeParse(t);return n.success?[n.data]:[]})).optional()}),zte=d.object({schemaVersion:d.literal(1),messages:d.array(dL).optional()});var qte=500*1024*1024,gL=d.object({id:gr,name:d.string().regex(/^[A-Za-z0-9._-]{1,200}$/),providerRunId:gr,expiresAt:d.string().datetime()}).strict(),Jte=d.object({schemaVersion:d.literal(1),artifact:gL,sessionId:$t,contentHash:pn,bytes:d.number().int().min(1).max(qte)}).strict(),Hte=d.object({schemaVersion:d.literal(1),checkpoint:d.object({artifact:gL,repository:d.object({namespace:d.string().min(1),name:d.string().min(1)}).strict(),sessionId:$t,contentHash:pn,key:AL}).strict().nullable()}).strict(),Yte=200,Dc=100,hL=(i=>(i.Resume="resume",i.Retry="retry",i.Update="update",i))(hL||{}),Wte=d.object({kind:d.nativeEnum(hL),setup:d.object({runId:$t,endedAt:d.string().nullable(),outcome:d.string().nullable()}).strict(),components:d.array(d.object({name:d.string().min(1),repository:d.string().min(1),status:d.nativeEnum(bv)}).strict()).max(Dc),credentials:d.array(d.string().min(1)).max(Dc),answers:d.array(d.object({question:d.string(),answer:d.string().nullable()}).strict()).max(Dc),instructions:d.array(d.object({text:d.string(),reply:d.string().nullable()}).strict()).max(Dc),log:d.array(d.object({phase:d.nativeEnum(vv),text:d.string()}).strict()).max(Yte),recipe:d.object({files:d.array(d.object({path:d.string().min(1),content:d.string()}).strict()).max(Dc),blockers:d.array(d.object({component:d.string(),problem:d.string(),evidence:d.string(),fix:d.string()}).strict()).max(Dc)}).strict().optional()}).strict(),Zte=d.object({schemaVersion:d.literal(1),context:Wte.nullable()}).strict(),Kte=d.object({schemaVersion:d.literal(1),configuration:d.object({captureId:$t,revision:gr.nullable(),hash:pn}).strict(),capture:d.object({schemaVersion:d.literal(1),settings:d.object({target:d.object({environment:d.unknown()}).passthrough(),timeoutMinutes:d.number().int().positive(),answerWaitMinutes:d.number().int().positive().optional(),testEnvironment:d.object({name:d.string().min(1),address:d.string().min(1).optional(),readyWhen:d.string().min(1).optional()}).passthrough().optional()}).passthrough(),provenance:d.object({}).passthrough(),hash:pn}).strict()}).strict(),Xte=Tc.extend({version:d.number().int().positive(),components:d.array(d.object({name:d.string().min(1),repository:d.string().min(1)}).strict()),contentHash:pn.optional(),files:d.array(d.object({path:d.string().refine(e=>ad(e)&&!hv.includes(e),"not a file of a customer_deployed plan"),content:d.string()}).strict()).optional()}).strict(),ene=d.object({schemaVersion:d.literal(1),testEnvironment:Xte.nullable().optional(),runtimePlan:d.object({version:d.number().int().positive(),contentHash:pn,files:d.array(d.object({path:d.string().refine(ad,"not a recipe file path"),content:d.string()}).strict()).min(1),repository:ag.optional(),recipeRepository:ag.optional(),recipe:d.record(d.unknown()).optional()}).strict().nullable()}).strict().refine(e=>!(e.runtimePlan&&e.testEnvironment),{message:"a run pins a recipe or a customer's Test Environment, never both",path:["testEnvironment"]}),mL=d.object({schemaVersion:d.literal(1),state:d.nativeEnum(zM),ending:d.nativeEnum(dd).nullable(),cause:d.nativeEnum(Ad).nullable(),deadlineAt:d.string().datetime()}).strict();function yL(e,t){return e.state==="ended"?e.ending==="cancelled"?"cancelled":e.cause==="runner_lost"?"expired":"ended":t.getTime()>=Date.parse(e.deadlineAt)?"expired":null}o(yL,"attemptClosure");var EL=50,SIe=d.object({repository:Fr,revisions:d.array(d.number().int().nonnegative()).min(1).max(2).refine(e=>e.length<2||e[0]<e[1],"two revisions name the earlier first"),files:d.array(d.string().min(1)).min(1).max(EL)}).strict();function yv(e){if(typeof e=="number"&&!Number.isFinite(e))throw new TypeError("Canonical JSON requires JSON values");if(Array.isArray(e))return`[${e.map(yv).join(",")}]`;if(e!==null&&typeof e=="object"){let n=e;return`{${Object.keys(n).sort().map(i=>`${JSON.stringify(i)}:${yv(n[i])}`).join(",")}}`}let t=JSON.stringify(e);if(t===void 0)throw new TypeError("Canonical JSON requires JSON values");return t}o(yv,"canonicalJson");function IL(e){return(0,GM.createHash)("sha256").update(yv(e),"utf8").digest("hex")}o(IL,"manifestHash");var ud=o(e=>({provider:e.provider,providerAccountId:e.providerAccountId,providerRepositoryId:e.providerRepositoryId}),"toSourceRef");function kv(e,t,{statedPins:n=!0}={}){return mte.parse({schemaVersion:1,runId:e,execution:t.execution(),requester:!0,writeCheck:!0,claudeCodePin:!0,deployedPins:!0,...n?{statedPins:!0}:{},...t.runSettingsFromApp?{runSettings:!0}:{},credentialRelay:!0})}o(kv,"handshakeRequest");function CL(e){let t=gte.parse(e);if(IL(t.manifest)!==t.manifestHash)throw new Error("The handshake manifest hash does not match its manifest");return t}o(CL,"parseHandshakeResponse");function tne(e){let t=o(i=>i.map(r=>({repository:ud(r.repository),number:r.number,...r.commitSha===void 0?{}:{commitSha:r.commitSha}})),"pullRequests"),n=e.noTests?{noTests:e.noTests.map(i=>({repository:ud(i.repository),reason:i.reason}))}:{};return e.status==="delivered"?{status:e.status,...n,pullRequests:t(e.pullRequests)}:e.status==="partial"?{status:e.status,...n,pullRequests:t(e.pullRequests),failures:e.failures.map(i=>({repository:ud(i.repository),message:i.message}))}:{...e,...n}}o(tne,"toDelivery");function nne(e){return e.issues.map(t=>`${t.path.map((i,r)=>typeof i=="number"?`[${i}]`:r===0?i:`.${i}`).join("")}: ${t.message}`).join("; ")}o(nne,"describeIssues");function vL(e){let{manifest:t}=e;if(ite.includes(t.trigger.kind))throw new Error(`The report upload is invalid: a ${t.trigger.kind} run uploads its SUT recipe, never a report`);if(t.trigger.kind==="revision_read")throw new Error("The report upload is invalid: a revision_read run uploads what each component runs, never a report");if(e.firstQualification&&!t.baseline?.sources)throw new Error("The report upload is invalid: only a run whose manifest names baseline sources can be a first qualification");let n=sL.safeParse({schemaVersion:1,run:{runId:t.runId,attemptNumber:e.attemptNumber,manifestHash:IL(t)},target:{id:t.target.id,revision:t.target.revision},policy:t.policy&&{id:t.policy.id,revision:t.policy.revision},provenance:{sources:e.checkedOut.map(i=>({repository:ud(i.repository),revision:i.revision})),...e.firstQualification?{firstQualification:!0}:{}},delivery:{generatedTests:tne(e.generatedTests)},producer:e.producer,report:e.report,...e.githubWrites?.length?{githubWrites:e.githubWrites.map(i=>({...i,repository:ud(i.repository)}))}:{}});if(!n.success)throw new Error(`The report upload is invalid: ${nne(n.error)}`);return rne(n.data,t,e.checkedOut),n.data}o(vL,"buildReportUpload");function rne(e,t,n){let i=o(s=>n.find(a=>si(a.repository)===si(s.repository))?.revision??s.revision,"revisionOf"),r=new Map(t.sources.map(s=>[`${s.repository.namespace}/${s.repository.name}`.toLowerCase(),i(s)]));e.report.validation.acceptedEvidence.forEach((s,a)=>{let c=`report.validation.acceptedEvidence[${a}]`,u=r.get(s.repository.toLowerCase());if(!u)throw new Error(`${c}.repository: ${s.repository} is outside the run's snapshot`);if(s.revision!==u)throw new Error(`${c}.revision: evidence is not from the checked-out revision ${u}`)})}o(rne,"assertEvidenceFromSnapshot");function bL(e){return e.reportUploaded?{schemaVersion:1,reason:"report_uploaded",cause:null}:e.recipeUploaded?{schemaVersion:1,reason:"recipe_uploaded",cause:null}:e.revisionsUploaded?{schemaVersion:1,reason:"revisions_uploaded",cause:null}:e.cancelled?{schemaVersion:1,reason:"cancelled",cause:null}:e.mergeConflict&&jM(e)==="merge_conflict"?{schemaVersion:1,reason:"no_report",cause:"merge_conflict",conflict:e.mergeConflict}:{schemaVersion:1,reason:"no_report",cause:jM({...e,mergeConflict:void 0})}}o(bL,"attemptEndFor");function jM(e){return e.runnerProviderNotReady?"runner_provider_not_ready":e.credentialMissing?"credential_missing":e.mergeConflict?"merge_conflict":e.checkoutFailed?"checkout_failed":e.environmentUnverified?"environment_unverified":e.setupFailed?"setup_failed":e.timedOut?"timed_out":e.modelProviderDenied?"model_provider_denied":e.modelProviderUnavailable?"model_provider_unavailable":"agent_failed"}o(jM,"noReportCause");var ks=_e(require("path"));var TIe={"application/pdf":"PDF","text/csv":"CSV","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"DOCX","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"XLSX"};var Sv=o(e=>new Map((e??[]).flatMap(t=>t.file?[[rd(t.key),t.file.name]]:[])),"itemNames"),ine=10*1024*1024,sne=o(e=>e?.mediaType==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e?.mediaType==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","needsExtraction"),BL=o((e,t)=>ks.join(ks.dirname(e),`${ks.basename(e,ks.extname(e))}${t}`),"besideFile"),one=o(e=>BL(e,".extracted.txt"),"extractedTextPath");var ane=o(e=>BL(e,".quotes.txt"),"confirmedQuotesPath");function QL(e){return sne(e.file)?one(e.path):e.file?.mediaType==="application/pdf"?ane(e.path):e.path}o(QL,"itemTextPath");var Nc=o(e=>e.slice(0,12),"shortCommit");var cne=["generate-unit","native-run"],PIe=["preflight","plan","write",...cne,"report","deliver"];var Rv=(i=>(i.Unit="unit",i.Integration="integration",i.E2e="e2e",i))(Rv||{}),une=Object.values(Rv);var kL=require("child_process");var pd=_e(require("path"));var Ss="Skyramp Testbot",Yo="test-bot@skyramp.dev";var lne=o((e,t)=>(0,kL.execFileSync)("git",t,{cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).trim(),"git");function SL(e){let t="";try{t=lne(e,["remote","get-url","origin"])}catch{}let n=/[:/]([A-Za-z0-9._-]+)\/([A-Za-z0-9._-]+?)(?:\.git)?\/?$/.exec(t);return n&&!t.startsWith("/")&&!t.startsWith(".")?`${n[1]}/${n[2]}`:`local/${pd.basename(pd.resolve(e)).replace(/[^A-Za-z0-9._-]/g,"-")||"repo"}`}o(SL,"repositorySlug");var YIe=new Set(Object.values(Qs));var WIe=d.object({checks:d.array(d.object({repository:d.string().optional(),name:d.string().min(1),headSha:d.string().regex(/^[0-9a-f]{40}$|^[0-9a-f]{64}$/i),status:d.string().default("completed"),conclusion:d.string().nullable().optional(),url:d.string().optional(),summary:d.string().optional()}))});var xv=new Map;function Ane(e){return e.repositorySlug?e.repositorySlug:(xv.has(e.repositoryPath)||xv.set(e.repositoryPath,SL(e.repositoryPath)),xv.get(e.repositoryPath))}o(Ane,"workingSlug");function hr(e){return[{slug:Ane(e),path:e.repositoryPath,writable:!0,working:!0},...(e.relatedRepos??[]).map(t=>({slug:t.slug,path:t.path,writable:t.writable===!0,working:!1}))]}o(hr,"runSources");var Uc=o((e,t)=>e.toLowerCase()===t.toLowerCase(),"sameSlug");function Cg(e,t){return t?.trim()?e.find(n=>Uc(n.slug,t.trim())):e[0]}o(Cg,"findSource");function Wo(e,t){return Cg(hr(e),t)}o(Wo,"resolveSource");var pne=o((e,t)=>`${t} is not a repository of this run (${hr(e).map(n=>n.slug).join(", ")})`,"notARepository");function fd(e,t){let n=Wo(e,t);return n?n.writable?{source:n}:{error:`${n.slug} is read-only in this run: tests are written only to ${hr(e).filter(i=>i.writable).map(i=>i.slug).join(", ")}`}:{error:pne(e,t)}}o(fd,"writableSource");var gd=_e(require("fs")),hd=_e(require("path"));var fne=8;function tn(e,t,n={}){let i=t.slice(0,fne),r=t.length-i.length;return{name:e,passed:!1,details:i.join("; ")+(r>0?`; \u2026and ${r} more`:""),...n.fatal?{fatal:!0}:{}}}o(tn,"fail");function Zo(e){if(gd.existsSync(e))try{return JSON.parse(gd.readFileSync(e,"utf-8"))}catch{return}}o(Zo,"readJsonFile");function it(e,t){return Zo(hd.join(e.outputsDir,t))}o(it,"readArtifact");function mr(e,t){return{name:e,verify(n,i){let{errors:r}=t(n,i);return r.length===0?{name:this.name,passed:!0}:tn(this.name,r,{fatal:!0})}}}o(mr,"schemaGate");function md(e){return e.replace(/\s+/g," ").trim()}o(md,"normalizeCode");var vg=new RegExp("(^|/)("+["test_[^/]+\\.py","[^/]+_test\\.py","[^/]+\\.(spec|test)\\.[cm]?[jt]sx?","[^/]+\\.e2e-(spec|test)\\.[cm]?[jt]sx?","[^/]+_test\\.go","[^/]+Tests?\\.(java|kts?)","[^/]+_(test|spec)\\.rb","[^/]+\\.feature","[^/]+Tests?\\.cs","[^/]+_test\\.rs","tests/[^/]+\\.rs","[^/]+Test\\.php","[^/]+(Test|Spec|Suite)\\.scala","[^/]+Tests?\\.swift","[^/]+_test\\.exs","[^/]+_test\\.dart","[^/]+_test\\.(c|cc|cpp|cxx)","test_[^/]+\\.(c|cc|cpp|cxx)","[^/]+(Spec|Test)\\.groovy"].join("|")+")$","i");var Rt={};wr(Rt,{$brand:()=>Vv,$input:()=>vQ,$output:()=>CQ,INVALID:()=>hn,NEVER:()=>Gv,TimePrecision:()=>_Q,ZodAny:()=>CS,ZodArray:()=>BS,ZodBase64:()=>gm,ZodBase64URL:()=>hm,ZodBigInt:()=>Iu,ZodBigIntFormat:()=>Em,ZodBoolean:()=>Eu,ZodCIDRv4:()=>pm,ZodCIDRv6:()=>fm,ZodCUID:()=>om,ZodCUID2:()=>am,ZodCatch:()=>qS,ZodCodec:()=>gA,ZodCompileAsyncError:()=>Mr,ZodCompileUnsupportedError:()=>Ue,ZodCreditCard:()=>pS,ZodCustom:()=>hA,ZodCustomStringFormat:()=>fa,ZodDate:()=>uA,ZodDefault:()=>LS,ZodDiscriminatedUnion:()=>kS,ZodE164:()=>mm,ZodEmail:()=>nm,ZodEmoji:()=>im,ZodEnum:()=>hu,ZodError:()=>Doe,ZodExactOptional:()=>bm,ZodFile:()=>US,ZodFirstPartyTypeKind:()=>oR,ZodFunction:()=>nR,ZodGUID:()=>rm,ZodIBAN:()=>fS,ZodIPv4:()=>dm,ZodIPv6:()=>Am,ZodISODate:()=>Ms,ZodISODateTime:()=>Ps,ZodISODuration:()=>Os,ZodISOTime:()=>Ls,ZodInstanceOf:()=>sR,ZodIntersection:()=>SS,ZodIssueCode:()=>Uoe,ZodJWT:()=>ym,ZodKSUID:()=>lm,ZodLazy:()=>XS,ZodLiteral:()=>NS,ZodMAC:()=>AS,ZodMap:()=>DS,ZodNaN:()=>HS,ZodNanoID:()=>sm,ZodNever:()=>bS,ZodNonOptional:()=>wm,ZodNull:()=>ES,ZodNullable:()=>MS,ZodNumber:()=>yu,ZodNumberFormat:()=>ga,ZodObject:()=>dA,ZodOptional:()=>pA,ZodPipe:()=>fA,ZodPrefault:()=>jS,ZodPreprocess:()=>YS,ZodPromise:()=>tR,ZodReadonly:()=>WS,ZodRealError:()=>Un,ZodRecord:()=>gu,ZodSet:()=>_S,ZodString:()=>mu,ZodStringFormat:()=>et,ZodSuccess:()=>zS,ZodSymbol:()=>mS,ZodTemplateLiteral:()=>KS,ZodTransform:()=>FS,ZodTuple:()=>xS,ZodType:()=>Re,ZodULID:()=>cm,ZodURL:()=>cA,ZodUUID:()=>ui,ZodUndefined:()=>yS,ZodUnion:()=>AA,ZodUnknown:()=>vS,ZodVoid:()=>wS,ZodXID:()=>um,ZodXor:()=>QS,_ZodString:()=>tm,_default:()=>OS,_function:()=>nj,any:()=>D1,array:()=>lA,base64:()=>p1,base64url:()=>f1,bigint:()=>S1,boolean:()=>hS,catch:()=>JS,check:()=>rj,cidrv4:()=>d1,cidrv6:()=>A1,clone:()=>He,codec:()=>K1,coerce:()=>cR,compile:()=>QQ,config:()=>Ct,core:()=>ji,creditCard:()=>h1,cuid:()=>r1,cuid2:()=>i1,currencyCode:()=>v1,custom:()=>ij,date:()=>N1,decode:()=>sS,decodeAsync:()=>aS,deepPartial:()=>mj,describe:()=>sj,discriminatedUnion:()=>O1,e164:()=>g1,email:()=>JO,emoji:()=>t1,encode:()=>iS,encodeAsync:()=>oS,endsWith:()=>iu,enum:()=>Cm,exactOptional:()=>PS,file:()=>H1,flattenError:()=>Sd,float32:()=>w1,float64:()=>B1,formatError:()=>Rd,fromJSONSchema:()=>gj,function:()=>nj,getDiscriminatedOption:()=>Gw,getErrorMap:()=>Poe,globalRegistry:()=>Vt,gt:()=>ai,gte:()=>Xn,guid:()=>HO,hash:()=>b1,hex:()=>C1,hostname:()=>I1,httpUrl:()=>e1,iban:()=>m1,includes:()=>nu,input:()=>Ej,instanceof:()=>aj,int:()=>Xh,int32:()=>Q1,int64:()=>R1,intersection:()=>RS,invertCodec:()=>X1,ipv4:()=>c1,ipv6:()=>l1,iso:()=>mA,json:()=>uj,jwt:()=>y1,keyof:()=>U1,ksuid:()=>a1,lazy:()=>eR,length:()=>ua,literal:()=>J1,locales:()=>Kd,looseObject:()=>M1,looseRecord:()=>G1,lowercase:()=>eu,lt:()=>oi,lte:()=>Kn,mac:()=>u1,map:()=>V1,maxLength:()=>ca,maxSize:()=>_s,memoizer:()=>Jd,meta:()=>oj,mime:()=>ou,minLength:()=>Oi,minSize:()=>ci,multipleOf:()=>Ds,nan:()=>Z1,nanoid:()=>n1,nativeEnum:()=>q1,negative:()=>jh,never:()=>Im,nonnegative:()=>Vh,nonoptional:()=>VS,nonpositive:()=>Gh,normalize:()=>au,null:()=>IS,nullable:()=>aA,nullish:()=>Y1,number:()=>gS,object:()=>F1,optional:()=>Aa,output:()=>Ij,overwrite:()=>Lr,parse:()=>eS,parseAsync:()=>tS,partialRecord:()=>j1,pipe:()=>em,positive:()=>Oh,prefault:()=>GS,preprocess:()=>lj,prettifyError:()=>Yv,promise:()=>tj,properties:()=>su,property:()=>zh,readonly:()=>ZS,record:()=>TS,refine:()=>rR,regex:()=>Xc,regexes:()=>Ir,registry:()=>hh,safeDecode:()=>uS,safeDecodeAsync:()=>dS,safeEncode:()=>cS,safeEncodeAsync:()=>lS,safeParse:()=>nS,safeParseAsync:()=>rS,set:()=>z1,setErrorMap:()=>Foe,size:()=>aa,slugify:()=>du,startsWith:()=>ru,strictObject:()=>P1,string:()=>oA,stringFormat:()=>E1,stringbool:()=>cj,success:()=>W1,superRefine:()=>iR,symbol:()=>$1,templateLiteral:()=>ej,toJSONSchema:()=>Yh,toLowerCase:()=>uu,toUpperCase:()=>lu,toZod:()=>yd,transform:()=>vm,treeifyError:()=>Hv,trim:()=>cu,tuple:()=>$S,uint32:()=>k1,uint64:()=>x1,ulid:()=>s1,undefined:()=>T1,union:()=>Cu,unknown:()=>da,uppercase:()=>tu,url:()=>XO,util:()=>x,uuid:()=>YO,uuidv4:()=>WO,uuidv6:()=>ZO,uuidv7:()=>KO,validate:()=>xd,validateAsync:()=>$d,void:()=>_1,withParser:()=>mh,xid:()=>o1,xor:()=>L1});var ji={};wr(ji,{$ZodAny:()=>_w,$ZodArray:()=>Lw,$ZodAsyncError:()=>_n,$ZodBase64:()=>vw,$ZodBase64URL:()=>bw,$ZodBigInt:()=>sh,$ZodBigIntFormat:()=>xw,$ZodBoolean:()=>Od,$ZodCIDRv4:()=>Iw,$ZodCIDRv6:()=>Cw,$ZodCUID:()=>cw,$ZodCUID2:()=>uw,$ZodCatch:()=>sB,$ZodCheck:()=>st,$ZodCheckBigIntFormat:()=>Nb,$ZodCheckEndsWith:()=>Jb,$ZodCheckGreaterThan:()=>Gg,$ZodCheckIncludes:()=>zb,$ZodCheckLengthEquals:()=>Ob,$ZodCheckLessThan:()=>jg,$ZodCheckLowerCase:()=>Gb,$ZodCheckMaxLength:()=>Mb,$ZodCheckMaxSize:()=>Ub,$ZodCheckMimeType:()=>Wb,$ZodCheckMinLength:()=>Lb,$ZodCheckMinSize:()=>Fb,$ZodCheckMultipleOf:()=>Db,$ZodCheckNumberFormat:()=>_b,$ZodCheckOverwrite:()=>Zb,$ZodCheckProperties:()=>Yb,$ZodCheckProperty:()=>Hb,$ZodCheckRegex:()=>jb,$ZodCheckSizeEquals:()=>Pb,$ZodCheckStartsWith:()=>qb,$ZodCheckStringFormat:()=>Hc,$ZodCheckUpperCase:()=>Vb,$ZodCodec:()=>Gd,$ZodCreditCard:()=>Bw,$ZodCustom:()=>AB,$ZodCustomStringFormat:()=>Sw,$ZodCyclicError:()=>Ah,$ZodDate:()=>Pw,$ZodDefault:()=>tB,$ZodDiscriminatedUnion:()=>Vw,$ZodE164:()=>ww,$ZodEmail:()=>nw,$ZodEmoji:()=>ow,$ZodEncodeError:()=>$s,$ZodEnum:()=>Yw,$ZodError:()=>Jv,$ZodExactOptional:()=>Xw,$ZodFile:()=>Zw,$ZodFunction:()=>lB,$ZodGUID:()=>ew,$ZodIBAN:()=>Qw,$ZodIPv4:()=>mw,$ZodIPv6:()=>yw,$ZodISODate:()=>fw,$ZodISODateTime:()=>pw,$ZodISODuration:()=>hw,$ZodISOTime:()=>gw,$ZodIntersection:()=>zw,$ZodJWT:()=>kw,$ZodKSUID:()=>Aw,$ZodLazy:()=>Vd,$ZodLiteral:()=>Ww,$ZodMAC:()=>Ew,$ZodMap:()=>Jw,$ZodNaN:()=>oB,$ZodNanoID:()=>aw,$ZodNever:()=>Uw,$ZodNonOptional:()=>rB,$ZodNull:()=>Dw,$ZodNullable:()=>eB,$ZodNumber:()=>ih,$ZodNumberFormat:()=>Rw,$ZodObject:()=>uO,$ZodObjectJIT:()=>Ow,$ZodOptional:()=>ah,$ZodPipe:()=>ch,$ZodPrefault:()=>nB,$ZodPreprocess:()=>aB,$ZodPromise:()=>dB,$ZodReadonly:()=>cB,$ZodRealError:()=>Nn,$ZodRecord:()=>qw,$ZodRegistry:()=>gh,$ZodSet:()=>Hw,$ZodString:()=>ra,$ZodStringFormat:()=>Ye,$ZodSuccess:()=>iB,$ZodSymbol:()=>$w,$ZodTemplateLiteral:()=>uB,$ZodTransform:()=>Kw,$ZodTuple:()=>oh,$ZodType:()=>Be,$ZodULID:()=>lw,$ZodURL:()=>sw,$ZodUUID:()=>tw,$ZodUndefined:()=>Tw,$ZodUnion:()=>jd,$ZodUnknown:()=>Nw,$ZodVoid:()=>Fw,$ZodXID:()=>dw,$ZodXor:()=>jw,$brand:()=>Vv,$constructor:()=>b,$input:()=>vQ,$output:()=>CQ,Doc:()=>na,INVALID:()=>hn,JSONSchema:()=>VO,JSONSchemaGenerator:()=>Wh,NEVER:()=>Gv,TimePrecision:()=>_Q,URL_BAD_FORMAT:()=>rw,URL_UNPARSEABLE:()=>Ud,ZodCompileAsyncError:()=>Mr,ZodCompileUnsupportedError:()=>Ue,_any:()=>ZQ,_array:()=>ik,_base64:()=>Fh,_base64url:()=>Ph,_bigint:()=>VQ,_boolean:()=>jQ,_catch:()=>Coe,_check:()=>SO,_cidrv4:()=>Nh,_cidrv6:()=>Uh,_coercedBigint:()=>zQ,_coercedBoolean:()=>GQ,_coercedDate:()=>nk,_coercedNumber:()=>UQ,_coercedString:()=>xQ,_creditCard:()=>TQ,_cuid:()=>Sh,_cuid2:()=>Rh,_custom:()=>ok,_date:()=>tk,_decode:()=>$g,_decodeAsync:()=>Dg,_default:()=>yoe,_discriminatedUnion:()=>ooe,_e164:()=>Mh,_email:()=>Ih,_emoji:()=>Qh,_encode:()=>xg,_encodeAsync:()=>Tg,_endsWith:()=>iu,_enum:()=>Aoe,_file:()=>sk,_float32:()=>PQ,_float64:()=>MQ,_gt:()=>ai,_gte:()=>Xn,_guid:()=>Ch,_iban:()=>DQ,_includes:()=>nu,_int:()=>FQ,_int32:()=>LQ,_int64:()=>qQ,_intersection:()=>aoe,_ipv4:()=>Dh,_ipv6:()=>_h,_isoDate:()=>tA,_isoDateTime:()=>eA,_isoDuration:()=>rA,_isoTime:()=>nA,_jwt:()=>Lh,_ksuid:()=>Th,_lazy:()=>Boe,_length:()=>ua,_literal:()=>foe,_lowercase:()=>eu,_lt:()=>oi,_lte:()=>Kn,_mac:()=>$Q,_map:()=>loe,_max:()=>Kn,_maxLength:()=>ca,_maxSize:()=>_s,_mime:()=>ou,_min:()=>Xn,_minLength:()=>Oi,_minSize:()=>ci,_multipleOf:()=>Ds,_nan:()=>rk,_nanoid:()=>kh,_nativeEnum:()=>poe,_negative:()=>jh,_never:()=>XQ,_nonnegative:()=>Vh,_nonoptional:()=>Eoe,_nonpositive:()=>Gh,_normalize:()=>au,_null:()=>WQ,_nullable:()=>moe,_number:()=>NQ,_optional:()=>hoe,_overwrite:()=>Lr,_parse:()=>Vc,_parseAsync:()=>zc,_pipe:()=>voe,_positive:()=>Oh,_promise:()=>Qoe,_properties:()=>su,_property:()=>zh,_readonly:()=>boe,_record:()=>uoe,_refine:()=>ak,_regex:()=>Xc,_safeDecode:()=>Ng,_safeDecodeAsync:()=>Fg,_safeEncode:()=>_g,_safeEncodeAsync:()=>Ug,_safeParse:()=>qc,_safeParseAsync:()=>Jc,_set:()=>doe,_size:()=>aa,_slugify:()=>du,_startsWith:()=>ru,_string:()=>RQ,_stringFormat:()=>la,_stringbool:()=>dk,_success:()=>Ioe,_superRefine:()=>ck,_symbol:()=>HQ,_templateLiteral:()=>woe,_toLowerCase:()=>uu,_toUpperCase:()=>lu,_transform:()=>goe,_trim:()=>cu,_tuple:()=>coe,_uint32:()=>OQ,_uint64:()=>JQ,_ulid:()=>xh,_undefined:()=>YQ,_union:()=>ioe,_unknown:()=>KQ,_uppercase:()=>tu,_url:()=>Xd,_uuid:()=>vh,_uuidv4:()=>bh,_uuidv6:()=>wh,_uuidv7:()=>Bh,_void:()=>ek,_xid:()=>$h,_xor:()=>soe,base64Charset:()=>Xg,base64urlCharset:()=>Ld,canParseURL:()=>iw,clone:()=>He,compile:()=>QQ,compileFn:()=>yh,config:()=>Ct,createStandardJSONSchemaMethod:()=>Au,createToJSONSchemaMethod:()=>pk,decode:()=>sre,decodeAsync:()=>are,describe:()=>uk,encode:()=>ire,encodeAsync:()=>ore,extractDefs:()=>Us,finalize:()=>Fs,flattenError:()=>Sd,formatError:()=>Rd,getDiscriminatedOption:()=>Gw,globalConfig:()=>Pt,globalRegistry:()=>Vt,handleUnrepresentable:()=>Tt,initializeContext:()=>Ns,isBackEdge:()=>fh,isRecursiveSchema:()=>ph,isValidBase64:()=>Md,isValidBase64URL:()=>eh,isValidCIDRv6:()=>Kg,isValidCreditCard:()=>th,isValidIBAN:()=>nh,isValidIPv6:()=>Pd,isValidJWT:()=>rh,locales:()=>Kd,memoizer:()=>Jd,mergeValues:()=>Yc,meta:()=>lk,parse:()=>Sg,parseAsync:()=>Rg,parseURLObject:()=>oO,prettifyError:()=>Yv,process:()=>We,processSchema:()=>We,regexes:()=>Ir,registry:()=>hh,safeDecode:()=>ure,safeDecodeAsync:()=>dre,safeEncode:()=>cre,safeEncodeAsync:()=>lre,safeParse:()=>Xne,safeParseAsync:()=>ere,standardProps:()=>Hg,stripTabAndNewline:()=>Fd,toDotPath:()=>ML,toJSONSchema:()=>Yh,toZod:()=>yd,treeifyError:()=>Hv,urlHostnameOk:()=>Wg,urlProtocolOk:()=>Zg,util:()=>x,validate:()=>xd,validateAsync:()=>$d,validateURL:()=>Yg,version:()=>Kb,withParser:()=>mh});var x={};wr(x,{BIGINT_FORMAT_RANGES:()=>bd,CONSTANT_CATCH:()=>Qg,Class:()=>Dv,NUMBER_FORMAT_RANGES:()=>vd,aborted:()=>gn,allowsEval:()=>Uv,assert:()=>Ene,assertEqual:()=>gne,assertIs:()=>mne,assertNever:()=>yne,assertNotEqual:()=>hne,assignProp:()=>Gt,attachSchema:()=>wd,base64ToUint8Array:()=>DL,base64urlToUint8Array:()=>Pne,cached:()=>Lc,captureStackTrace:()=>wg,cleanEnum:()=>Fne,cleanRegex:()=>Mi,clone:()=>He,cloneDef:()=>vne,codePointLength:()=>ea,constantCatch:()=>Ov,createTransparentProxy:()=>Sne,defineLazy:()=>_v,defineLazyInternal:()=>$e,derived:()=>jne,esc:()=>fn,escapeRegex:()=>Er,explicitlyAborted:()=>Mv,extend:()=>$ne,finalizeIssue:()=>Dn,floatSafeRemainder:()=>Ed,getElementAtPath:()=>bne,getEnumValues:()=>Pc,getLengthableOrigin:()=>Qd,getParsedType:()=>kne,getSizableOrigin:()=>Bd,hexToUint8Array:()=>Lne,hide:()=>kd,installLazyProp:()=>qne,isObject:()=>Xo,isPlainObject:()=>yr,issue:()=>Gc,joinValues:()=>w,jsonStringifyReplacer:()=>Mc,members:()=>Lv,merge:()=>Dne,mergeDefs:()=>Pr,normalizeParams:()=>G,nullish:()=>bg,numKeys:()=>Qne,objectClone:()=>Ine,omit:()=>xne,optionalKeys:()=>Pv,own:()=>xs,parsedType:()=>T,partial:()=>_ne,pick:()=>Rne,prefixIssues:()=>Tn,primitiveTypes:()=>Fv,promiseAllObject:()=>wne,propertyKeyTypes:()=>Cd,randomString:()=>Bne,rawShape:()=>Oc,required:()=>Nne,safeExtend:()=>Tne,shallowClone:()=>Id,sizeCaps:()=>jc,slugify:()=>Nv,stringifyPrimitive:()=>$,toZod:()=>yd,uint8ArrayToBase64:()=>_L,uint8ArrayToBase64url:()=>Mne,uint8ArrayToHex:()=>One,unwrapMessage:()=>Fc});function gne(e){return e}o(gne,"assertEqual");function hne(e){return e}o(hne,"assertNotEqual");function yd(){return e=>e}o(yd,"toZod");function mne(e){}o(mne,"assertIs");function yne(e){throw new Error("Unexpected value in exhaustive check")}o(yne,"assertNever");function Ene(e){}o(Ene,"assert");function Pc(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}o(Pc,"getEnumValues");function w(e,t="|"){return e.map(n=>$(n)).join(t)}o(w,"joinValues");function Mc(e,t){return typeof t=="bigint"?t.toString():t}o(Mc,"jsonStringifyReplacer");var Tv=class{static{o(this,"Cached")}constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Lc(e){return new Tv(e)}o(Lc,"cached");function bg(e){return e==null}o(bg,"nullish");function Mi(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}o(Mi,"cleanRegex");function Ed(e,t){let n=e/t,i=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)<r?0:n-i}o(Ed,"floatSafeRemainder");var RL=Symbol("evaluating");function _v(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==RL)return i===void 0&&(i=RL,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}o(_v,"defineLazy");function Ine(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}o(Ine,"objectClone");function Gt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}o(Gt,"assignProp");function Oc(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}o(Oc,"rawShape");function Pi(e){return Oc(e._zod.def)??e._zod.def.shape}o(Pi,"sourceShape");function xL(e,t,n){Object.defineProperty(e,t,{get(){let i=n();return Gt(this,t,i),i},enumerable:!0,configurable:!0})}o(xL,"deferProp");function $L(e,t,n){t in e?Gt(e,t,n):e[t]=n}o($L,"putProp");function Ko(e,t,n,i){let r=Pi(t);for(let s of n){let a=Object.getOwnPropertyDescriptor(r,s);a.enumerable&&(a.get?xL(e,s,()=>{let c=t._zod.def.shape[s];return i?i(c,s):c}):$L(e,s,i?i(a.value,s):a.value))}}o(Ko,"mirrorShape");function Cne(e,t){for(let n of Reflect.ownKeys(t)){let i=Object.getOwnPropertyDescriptor(t,n);i.enumerable&&(i.get?xL(e,n,()=>t[n]):$L(e,n,i.value))}}o(Cne,"mirrorProps");function Pr(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}o(Pr,"mergeDefs");function vne(e){return Pr(e._zod.def)}o(vne,"cloneDef");function bne(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}o(bne,"getElementAtPath");function wne(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let s=0;s<t.length;s++)r[t[s]]=i[s];return r})}o(wne,"promiseAllObject");function Bne(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}o(Bne,"randomString");function fn(e){return JSON.stringify(e)}o(fn,"esc");function Nv(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}o(Nv,"slugify");var wg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(Xo,"isObject");var Uv=Lc(()=>{if(Pt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function yr(e){if(Xo(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Xo(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}o(yr,"isPlainObject");function Id(e){return yr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}o(Id,"shallowClone");function Qne(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}o(Qne,"numKeys");var kne=o(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),Cd=new Set(["string","number","symbol"]),Fv=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Er(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(Er,"escapeRegex");function He(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}o(He,"clone");function G(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:o(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:o(()=>t.error,"error")}:t}o(G,"normalizeParams");function Sne(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,s){return t??(t=e()),Reflect.set(t,i,r,s)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}o(Sne,"createTransparentProxy");function $(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}o($,"stringifyPrimitive");function Pv(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}o(Pv,"optionalKeys");var vd={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},bd={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Rne(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let s={};return Ko(s,e,Bg(e,t)),He(e,Pr(n,{shape:s,checks:[]}))}o(Rne,"pick");function Bg(e,t){let n=Pi(e),i=[];for(let r of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,r)?.enumerable)throw new Error(`Unrecognized key: "${String(r)}"`);t[r]&&i.push(r)}return i}o(Bg,"maskedKeys");function xne(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let s=new Set(Bg(e,t)),a={};return Ko(a,e,Reflect.ownKeys(Pi(e)).filter(c=>!s.has(c))),He(e,Pr(n,{shape:a,checks:[]}))}o(xne,"omit");function $ne(e,t){if(!yr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let r=Pi(e);for(let s of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return He(e,Pr(e._zod.def,{shape:TL(e,t)}))}o($ne,"extend");function TL(e,t){let n={};return Ko(n,e,Reflect.ownKeys(Pi(e))),Cne(n,t),n}o(TL,"extended");function Tne(e,t){if(!yr(t))throw new Error("Invalid input to safeExtend: expected a plain object");return He(e,Pr(e._zod.def,{shape:TL(e,t)}))}o(Tne,"safeExtend");function Dne(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Ko(n,e,Reflect.ownKeys(Pi(e))),Ko(n,t,Reflect.ownKeys(Pi(t)));let i=Pr(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return He(e,i)}o(Dne,"merge");function _ne(e,t,n,i="partial"){let s=t._zod.def.checks;if(s&&s.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let c=n?new Set(Bg(t,n)):void 0,u={};return Ko(u,t,Reflect.ownKeys(Pi(t)),e&&((l,A)=>c&&!c.has(A)?l:new e({type:"optional",innerType:l}))),He(t,Pr(t._zod.def,{shape:u,checks:[]}))}o(_ne,"partial");function Nne(e,t,n){let i=n?new Set(Bg(t,n)):void 0,r={};return Ko(r,t,Reflect.ownKeys(Pi(t)),(s,a)=>i&&!i.has(a)?s:new e({type:"nonoptional",innerType:s})),He(t,Pr(t._zod.def,{shape:r}))}o(Nne,"required");function gn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}o(gn,"aborted");function Mv(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}o(Mv,"explicitlyAborted");function Tn(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}o(Tn,"prefixIssues");function Fc(e){return typeof e=="string"?e:e?.message}o(Fc,"unwrapMessage");function jc(e){let t=[];for(let n of e??[]){let i=n._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let r=i.maximum??i.length??i.size;r>=0&&t.push([r,n])}return t}o(jc,"sizeCaps");function wd(e,t,n){var i;for(let r=t;r<e.length;r++)(i=e[r]).schema??(i.schema=n)}o(wd,"attachSchema");function Dn(e,t,n){var i;let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(i=e).schema??(i.schema=e.inst):e.schema=e.inst);let s=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:Fc(e.inst?._zod.def?.error?.(e))??Fc(s?.(e))??Fc(t?.error?.(e))??Fc(n.customError?.(e))??Fc(n.localeError?.(e))??"Invalid input",c={};for(let u of Object.keys(e))u==="inst"||u==="schema"||u==="continue"||u==="input"||u==="__proto__"||(c[u]=e[u]);return c.path??(c.path=[]),c.message=a,t?.reportInput&&(c.input=e.input),c}o(Dn,"finalizeIssue");function Bd(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}o(Bd,"getSizableOrigin");var Une=/[\uD800-\uDBFF]/;function ea(e){let t=e.length;if(!Une.test(e))return t;let n=t;for(let i=0;i<t-1;i++)(e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320&&(n--,i++);return n}o(ea,"codePointLength");function Qd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(Qd,"getLengthableOrigin");function T(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}o(T,"parsedType");function Gc(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}o(Gc,"issue");function Fne(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}o(Fne,"cleanEnum");function DL(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}o(DL,"base64ToUint8Array");function _L(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}o(_L,"uint8ArrayToBase64");function Pne(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return DL(t+n)}o(Pne,"base64urlToUint8Array");function Mne(e){return _L(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}o(Mne,"uint8ArrayToBase64url");function Lne(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}o(Lne,"hexToUint8Array");function One(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}o(One,"uint8ArrayToHex");var Dv=class{static{o(this,"Class")}constructor(...t){}};function Lv(e,t){for(let n in t){let i=Object.getOwnPropertyDescriptor(t,n);i.get?Object.defineProperty(e,n,{...i,enumerable:!1}):Gne(e,n,i.value)}}o(Lv,"members");function xs(e,t,n,i=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:i,value:n}),n}o(xs,"own");function kd(e,t,n){return xs(e,t,n,!1)}o(kd,"hide");function jne(e,t){for(let n in e){let i=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return xs(this,n,i(this))},set(r){xs(this,n,r)}})}return t}o(jne,"derived");function Gne(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:xs(this,t,n.bind(this))},set(i){xs(this,t,i)}})}o(Gne,"defineBound");function Vne(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}o(Vne,"claim");var $v,Rs=!1,zne={configurable:!0,get(){Rs=!0}};function $e(e,t,n){let i=Object.getPrototypeOf(e._zod);if(t in i&&$v!==e._zod){$v=void 0;return}$v=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,zne);let r=Rs;Rs=!1;try{let s=n(this);return Rs?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:s}),Rs=Rs||r,s}catch(s){throw delete this[t],Rs=Rs||r,s}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}o($e,"defineLazyInternal");function qne(e,t,n,i){let r=Vne(e,t);r&&Object.defineProperty(r,t,{configurable:!0,get(){let s={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,t,s),s.value=n(this),Object.defineProperty(this,t,s),s.value},set(s){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:i,value:s})}})}o(qne,"installLazyProp");var Qg="~constantCatch";function Ov(e){let t=o(()=>e,"fn");return t[Qg]=!0,t}o(Ov,"constantCatch");var NL,Gv=Object.freeze({status:"aborted"}),jv={value:void 0,enumerable:!1},UL="captureStackTrace"in Error?Error:null;function Jne(e){let t=UL;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return UL=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}o(Jne,"newError");function b(e,t,n,i){let r={};function s(g){this.def=g,this.constr=p,this.traits=new Set}o(s,"Internals"),s.prototype=r;let a=n,c=a&&new WeakSet;function u(g,h){if(g._zod){if(g._zod.traits.has(e))return}else{jv.value=new s(h);try{Object.defineProperty(g,"_zod",jv)}finally{jv.value=void 0}}if(g._zod.traits.add(e),t(g,h),c){let E=Object.getPrototypeOf(g),C=g._zod.constr.prototype,I=E;for(;I&&I!==C;)I=Object.getPrototypeOf(I);let v=I??E;c.has(v)||(c.add(v),Lv(v,a))}let y=p.prototype;for(let E in y)Object.prototype.hasOwnProperty.call(y,E)&&(E in g||(g[E]=y[E].bind(g)))}o(u,"init");let l=i?.Parent??Object;class A extends l{static{o(this,"Definition")}}Object.defineProperty(A,"name",{value:e});function p(g){let h=i?.Parent?Jne(A):this;u(h,g);let y=h._zod.deferred;if(y){for(let C of y)C();h._zod.deferred=void 0}let E=globalThis.__zod_globalConfig?.postProcessor;return E&&E(h),h}return o(p,"_"),Object.defineProperty(p,"init",{value:u}),Object.defineProperty(p,Symbol.hasInstance,{value:o(g=>i?.Parent&&g instanceof i.Parent?!0:g?._zod?.traits?.has(e),"value")}),Object.defineProperty(p,"name",{value:e}),p}o(b,"$constructor");var Vv=Symbol("zod_brand"),_n=class extends Error{static{o(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$s=class extends Error{static{o(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(NL=globalThis).__zod_globalConfig??(NL.__zod_globalConfig={});var Pt=globalThis.__zod_globalConfig;function Ct(e){return e&&Object.assign(Pt,e),Pt}o(Ct,"config");function Hne(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Mc,2)),e.message}o(Hne,"_getMessage");function Yne(e){this._zod.message=e}o(Yne,"_setMessage");var Wne={get:Hne,set:Yne,enumerable:!0,configurable:!0},qv={value:void 0,enumerable:!1},FL=new WeakSet([Object.prototype,Error.prototype]),PL=o((e,t)=>{e.name="$ZodError",qv.value=t,Object.defineProperty(e,"issues",qv),qv.value=void 0,Object.defineProperty(e,"message",Wne);let n=Object.getPrototypeOf(e);FL.has(n)||(FL.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let i=o(()=>this.message,"value");return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},"initializer"),Jv=b("$ZodError",PL),Nn=b("$ZodError",PL,void 0,{Parent:Error});function Zne(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}o(Zne,"node");function Sd(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?Zne(n,r.path[0],()=>[]).push(t(r)):i.push(t(r));return{formErrors:i,fieldErrors:n}}o(Sd,"flattenError");function Rd(e,t=n=>n.message){let n={_errors:[]},i=o((r,s=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>i({issues:c},[...s,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...s,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...s,...a.path]);else{let c=[...s,...a.path];if(c.length===0)n._errors.push(t(a));else{let u=n,l=0;for(;l<c.length;){let A=c[l],p=l===c.length-1;if(A==="_errors"){p&&u._errors.push(t(a)),l++;continue}Object.prototype.hasOwnProperty.call(u,A)||Object.defineProperty(u,A,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let g=u[A];p&&g._errors.push(t(a)),u=g,l++}}}},"processError");return i(e),n}o(Rd,"formatError");function Hv(e,t=n=>n.message){let n={errors:[]},i=o((r,s=[])=>{var a;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},[...s,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...s,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...s,...c.path]);else{let u=[...s,...c.path];if(u.length===0){n.errors.push(t(c));continue}let l=n,A=0;for(;A<u.length;){let p=u[A],g=A===u.length-1;typeof p=="string"?(l.properties??(l.properties={}),Object.prototype.hasOwnProperty.call(l.properties,p)||Object.defineProperty(l.properties,p,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),l=l.properties[p]):(l.items??(l.items=[]),(a=l.items)[p]??(a[p]={errors:[]}),l=l.items[p]),g&&l.errors.push(t(c)),A++}}},"processError");return i(e),n}o(Hv,"treeifyError");function ML(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}o(ML,"toDotPath");function Yv(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${ML(i.path)}`);return t.join(`
57
57
  `)}o(Yv,"prettifyError");function kg(e,t){return{callee:t?.callee??e,Err:t?.Err}}o(kg,"finalizeParams");var Vc=o(e=>{let t=o((n,i,r,s)=>{let a=r?{...r,async:!1}:{async:!1},c=n._zod.run({value:i,issues:[]},a);if(c instanceof Promise)throw new _n;if(c.issues.length){let u=new(s?.Err??e)(c.issues.map(l=>Dn(l,a,Ct())));throw wg(u,s?.callee??t),u}return c.value},"fn");return t},"_parse"),Sg=Vc(Nn),zc=o(e=>{let t=o(async(n,i,r,s)=>{let a=r?{...r,async:!0}:{async:!0},c=n._zod.run({value:i,issues:[]},a);if(c instanceof Promise&&(c=await c),c.issues.length){let u=new(s?.Err??e)(c.issues.map(l=>Dn(l,a,Ct())));throw wg(u,s?.callee??t),u}return c.value},"fn");return t},"_parseAsync"),Rg=zc(Nn),qc=o(e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},r);if(s instanceof Promise)throw new _n;return s.issues.length?LL(e,s.issues,r):{success:!0,data:s.value}},"_safeParse"),Xne=qc(Nn);function LL(e,t,n){let i;return{success:!1,get error(){return i||(i=new e(t.map(r=>Dn(r,n,Ct()))),t=void 0,n=void 0),i},set error(r){i=r,t=void 0,n=void 0}}}o(LL,"failure");var Jc=o(e=>async(t,n,i)=>{let r=i?{...i,async:!0}:{async:!0},s=t._zod.run({value:n,issues:[]},r);return s instanceof Promise&&(s=await s),s.issues.length?LL(e,s.issues,r):{success:!0,data:s.value}},"_safeParseAsync"),ere=Jc(Nn),tre=Symbol.for("zod.compile.invalid"),nre=Symbol.for("zod.compile.fallback"),xd=o(((e,t,n)=>{let i=e._zod.bag.validator;if(i!==void 0){if(i(t)!==tre)return!0;if(i.definite===!0&&n===void 0)return!1}return rre(e,t,n)}),"validate");function rre(e,t,n){let i=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},r=e._zod.bag.fallbackRun,s;if(r?(i[nre]=!0,s=r({value:t,issues:[]},i)):s=e._zod.run({value:t,issues:[]},i),s instanceof Promise)throw new _n;return s.issues.length===0}o(rre,"validateFallback");var $d=o(async(e,t,n)=>{let i=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},r=e._zod.run({value:t,issues:[]},i);return r instanceof Promise&&(r=await r),r.issues.length===0},"validateAsync"),xg=o(e=>{let t=Vc(e),n=o((i,r,s,a)=>{let c=s?{...s,direction:"backward"}:{direction:"backward"};return t(i,r,c,kg(n,a))},"fn");return n},"_encode"),ire=xg(Nn),$g=o(e=>{let t=Vc(e),n=o((i,r,s,a)=>t(i,r,s,kg(n,a)),"fn");return n},"_decode"),sre=$g(Nn),Tg=o(e=>{let t=zc(e),n=o(async(i,r,s,a)=>{let c=s?{...s,direction:"backward"}:{direction:"backward"};return await t(i,r,c,kg(n,a))},"fn");return n},"_encodeAsync"),ore=Tg(Nn),Dg=o(e=>{let t=zc(e),n=o(async(i,r,s,a)=>await t(i,r,s,kg(n,a)),"fn");return n},"_decodeAsync"),are=Dg(Nn),_g=o(e=>(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return qc(e)(t,n,r)},"_safeEncode"),cre=_g(Nn),Ng=o(e=>(t,n,i)=>qc(e)(t,n,i),"_safeDecode"),ure=Ng(Nn),Ug=o(e=>async(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return Jc(e)(t,n,r)},"_safeEncodeAsync"),lre=Ug(Nn),Fg=o(e=>async(t,n,i)=>Jc(e)(t,n,i),"_safeDecodeAsync"),dre=Fg(Nn);var Ir={};wr(Ir,{anyString:()=>vb,base64:()=>pb,base64url:()=>fb,bigint:()=>wb,boolean:()=>Bb,browserEmail:()=>Ere,cidrv4:()=>db,cidrv6:()=>Ab,creditCard:()=>Pg,cuid:()=>Zv,cuid2:()=>Kv,currencyCode:()=>yb,date:()=>Eb,datetime:()=>Cb,domain:()=>hb,duration:()=>ib,e164:()=>mb,email:()=>ob,emoji:()=>ab,extendedDuration:()=>Are,guid:()=>sb,hex:()=>xb,hostname:()=>gb,html5Email:()=>hre,httpProtocol:()=>Td,iban:()=>Mg,idnEmail:()=>yre,integer:()=>Dd,ipv4:()=>cb,ipv6:()=>ub,ksuid:()=>tb,lowercase:()=>Sb,mac:()=>lb,md5_base64:()=>bre,md5_base64url:()=>wre,md5_hex:()=>vre,nanoid:()=>nb,nanoidOfLength:()=>rb,null:()=>Qb,number:()=>Li,rfc5322Email:()=>mre,sha1_base64:()=>Qre,sha1_base64url:()=>kre,sha1_hex:()=>Bre,sha256_base64:()=>Rre,sha256_base64url:()=>xre,sha256_hex:()=>Sre,sha384_base64:()=>Tre,sha384_base64url:()=>Dre,sha384_hex:()=>$re,sha512_base64:()=>Nre,sha512_base64url:()=>Ure,sha512_hex:()=>_re,string:()=>bb,time:()=>Ib,ulid:()=>Xv,undefined:()=>kb,unicodeEmail:()=>OL,uppercase:()=>Rb,uuid:()=>ta,uuid4:()=>pre,uuid6:()=>fre,uuid7:()=>gre,xid:()=>eb});var Zv=/^[cC][0-9a-z]{6,}$/,Kv=/^[0-9a-z]+$/,Xv=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,eb=/^[0-9a-vA-V]{20}$/,tb=/^[A-Za-z0-9]{27}$/,nb=/^[a-zA-Z0-9_-]{21}$/;function rb(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}o(rb,"nanoidOfLength");var ib=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Are=/^[-+]?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)?)??$/,sb=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ta=o(e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),pre=ta(4),fre=ta(6),gre=ta(7),ob=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,hre=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,mre=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,OL=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,yre=OL,Ere=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ire="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function ab(){return new RegExp(Ire,"u")}o(ab,"emoji");var cb=/^(?:(?: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])$/,ub=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,lb=o(e=>{let t=Er(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},"mac"),db=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ab=/^(([0-9a-fA-F]{1,4}:){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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pb=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fb=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,gb=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,hb=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,Td=/^https?$/,mb=/^\+[1-9]\d{6,14}$/,Pg=/^\d(?:[ -]?\d){11,18}$/,yb=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,Mg=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,jL="(?:(?:\\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])))";function Cre(e){return new RegExp(`^${e}$`)}o(Cre,"anchor");var Eb=Cre(jL);function Wv(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}o(Wv,"timeSource");function Ib(e){return new RegExp(`^${Wv(e)}$`)}o(Ib,"time");function Cb(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${Wv({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,i=e.local?`${n}|${Wv({precision:e.precision})}`:n;return new RegExp(`^${jL}T(?:${i})$`)}o(Cb,"datetime");var vb=/^[\s\S]{0,}$/,bb=o(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),wb=/^-?\d+n?$/,Dd=/^-?\d+$/,Li=/^-?\d+(?:\.\d+)?$/,Bb=/^(?:true|false)$/i,Qb=/^null$/i;var kb=/^undefined$/i;var Sb=/^[^A-Z]*$/,Rb=/^[^a-z]*$/,xb=/^[0-9a-fA-F]*$/;function _d(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}o(_d,"fixedBase64");function Nd(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}o(Nd,"fixedBase64url");var vre=/^[0-9a-fA-F]{32}$/,bre=_d(22,"=="),wre=Nd(22),Bre=/^[0-9a-fA-F]{40}$/,Qre=_d(27,"="),kre=Nd(27),Sre=/^[0-9a-fA-F]{64}$/,Rre=_d(43,"="),xre=Nd(43),$re=/^[0-9a-fA-F]{96}$/,Tre=_d(64,""),Dre=Nd(64),_re=/^[0-9a-fA-F]{128}$/,Nre=_d(86,"=="),Ure=Nd(86);var st=b("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),$b=o(e=>{let t=e.value;return!bg(t)&&t.size!==void 0},"_whenHasSize"),Tb=o(e=>{let t=e.value;return!bg(t)&&t.length!==void 0},"_whenHasLength"),Lg={number:"number",bigint:"bigint",object:"date"},jg=b("$ZodCheckLessThan",(e,t)=>{st.init(e,t);let n=Lg[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:Lg[typeof i.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Gg=b("$ZodCheckGreaterThan",(e,t)=>{st.init(e,t);let n=Lg[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:Lg[typeof i.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Db=b("$ZodCheckMultipleOf",(e,t)=>{st.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Ed(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),_b=b("$ZodCheckNumberFormat",(e,t)=>{st.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,s]=vd[t.format];e._zod.check=a=>{let c=a.value;if(n){if(!Number.isInteger(c)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}c<r&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),c>s&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),Nb=b("$ZodCheckBigIntFormat",(e,t)=>{st.init(e,t);let[n,i]=bd[t.format];e._zod.check=r=>{let s=r.value;s<n&&r.issues.push({origin:"bigint",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&r.issues.push({origin:"bigint",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ub=b("$ZodCheckMaxSize",(e,t)=>{var n;st.init(e,t),(n=e._zod.def).when??(n.when=$b),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:Bd(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Fb=b("$ZodCheckMinSize",(e,t)=>{var n;st.init(e,t),(n=e._zod.def).when??(n.when=$b),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:Bd(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Pb=b("$ZodCheckSizeEquals",(e,t)=>{var n;st.init(e,t),(n=e._zod.def).when??(n.when=$b),e._zod.check=i=>{let r=i.value,s=r.size;if(s===t.size)return;let a=s>t.size;i.issues.push({origin:Bd(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Mb=b("$ZodCheckMaxLength",(e,t)=>{var n;st.init(e,t),(n=e._zod.def).when??(n.when=Tb),e._zod.check=i=>{let r=i.value,s=r.length;if((typeof r=="string"&&s>t.maximum?ea(r):s)<=t.maximum)return;let c=Qd(r);i.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Lb=b("$ZodCheckMinLength",(e,t)=>{var n;st.init(e,t),(n=e._zod.def).when??(n.when=Tb),e._zod.check=i=>{let r=i.value,s=r.length;if((typeof r=="string"&&s>=t.minimum&&s<t.minimum*2?ea(r):s)>=t.minimum)return;let c=Qd(r);i.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ob=b("$ZodCheckLengthEquals",(e,t)=>{var n;st.init(e,t),(n=e._zod.def).when??(n.when=Tb),e._zod.check=i=>{let r=i.value,s=r.length,a=typeof r=="string"&&s>=t.length&&s<=t.length*2?ea(r):s;if(a===t.length)return;let c=Qd(r),u=a>t.length;i.issues.push({origin:c,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Hc=b("$ZodCheckStringFormat",(e,t)=>{var n,i;st.init(e,t),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),jb=b("$ZodCheckRegex",(e,t)=>{Hc.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Gb=b("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Sb),Hc.init(e,t)}),Vb=b("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Rb),Hc.init(e,t)}),zb=b("$ZodCheckIncludes",(e,t)=>{st.init(e,t);let n=Er(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=i,e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),qb=b("$ZodCheckStartsWith",(e,t)=>{st.init(e,t);let n=new RegExp(`^${Er(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Jb=b("$ZodCheckEndsWith",(e,t)=>{st.init(e,t);let n=new RegExp(`.*${Er(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function Og(e,t,n){e.issues.length&&t.issues.push(...Tn(n,e.issues))}o(Og,"handleCheckPropertyResult");var Hb=b("$ZodCheckProperty",(e,t)=>{st.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Og(r,n,t.property));Og(i,n,t.property)}}),Yb=b("$ZodCheckProperties",(e,t)=>{st.init(e,t),kd(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=i=>{if(i.value==null){i.issues.push({expected:"object",code:"invalid_type",input:i.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(a=>[a,t.shape[a]]));let r=i.value,s;for(let[a,c]of n){let u=c._zod.run({value:r[a],issues:[]},{});u instanceof Promise?(s??(s=[]),s.push(u.then(l=>Og(l,i,a)))):Og(u,i,a)}if(s)return Promise.all(s).then(()=>{})}}),Wb=b("$ZodCheckMimeType",(e,t)=>{st.init(e,t);let n=new Set(t.mime);e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Zb=b("$ZodCheckOverwrite",(e,t)=>{st.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var na=class{static{o(this,"Doc")}constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
58
58
  `).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),s=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of s)this.content.push(a)}compile(){let t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
59
59
  ${n.join(`
@@ -151,8 +151,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
151
151
  `),i=n.findIndex(c=>c.trim()==="[tool.uv.workspace]");if(i<0)return;let r=n.findIndex((c,u)=>u>i&&c.trim().startsWith("[")),s=n.slice(i+1,r<0?void 0:r).join(`
152
152
  `),a=o(c=>{let u=s.match(new RegExp(`^\\s*${c}\\s*=\\s*\\[([^\\]]*)\\]`,"m"));return u?[...u[1].matchAll(/["']([^"']+)["']/g)].map(l=>l[1]):[]},"array");return{members:a("members"),exclude:a("exclude")}}o(Fae,"uvWorkspace");function Pae(e){return Mae(RG(e))}o(Pae,"readJson");function Mae(e){try{return JSON.parse(e)}catch{return}}o(Mae,"parseJson");function Lae(e){try{return zi(e)}catch{return}}o(Lae,"parseYaml");function Oae(e){return Lae(RG(e))}o(Oae,"readYaml");function RG(e){try{return kA.readFileSync(e,"utf-8")}catch{return""}}o(RG,"readText");function Rm(e){try{return kA.lstatSync(e).isFile()}catch{return!1}}o(Rm,"isFile");var zR="test-package.json";var jae=["node_modules",".venv","test-results","playwright-report","blob-report","__pycache__",".pytest_cache"];var xG=o(e=>e.split(qi.sep).join("/"),"posix");function qR(e,t){let n=xG(e);return t.some(i=>n===i||n.startsWith(`${i}/`))}o(qR,"insidePackage");function $G(e){return xG(e).split("/").some(t=>jae.includes(t))}o($G,"producedByPackage");var Gae=o(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"escapeRegex"),DG=/%[psdifjo#]|\$[A-Za-z_][\w.]*/g;var Vae=/ (?:>|›) /;function zae(e){return e.split(DG).map(t=>t.split(Vae).map(Gae).join("(?: > | \u203A | )")).join(".+?")}o(zae,"testNamePattern");function _G(e,t){return new RegExp(DG.source).test(t)?new RegExp(`^(?:.* )?${zae(t)}$`).test(e):!1}o(_G,"isEachCaseOf");function JR(e){return HR(e)&&AR(e).length===0&&fR(e.inputs?.sharedEnvironment).length===0}o(JR,"sutIsHealthy");function HR(e){let t=ece(e);if(!t&&e.state.stages.deploy?.status!=="passed")return!1;let n=it(e,"deploy.json");return n?Xae(n):!t}o(HR,"sutCameUp");function Xae(e){return e?.outcome==="clean"||e?.outcome==="recipe-drift"}o(Xae,"deployCameUp");function ece(e){let t=e.state.stages.plan,n=e.state.stages.deploy;return!(e.inputs?.pipeline?e.inputs.pipeline==="two-step":!n)||t?.status!=="passed"?!1:!n||n.updatedAt<=t.updatedAt}o(ece,"broughtUpByPlan");var JRe=10*6e4;var xm=(r=>(r.RestApi="rest-api",r.Frontend="frontend",r.FullStack="full-stack",r.Other="other",r))(xm||{}),ya=(r=>(r.Critical="critical",r.High="high",r.Medium="medium",r.Low="low",r))(ya||{}),Ea=(i=>(i.Suspected="suspected",i.Latent="latent",i.Refuted="refuted",i))(Ea||{}),ZR=(i=>(i.Skyramp="skyramp",i.External="external",i.Unknown="unknown",i))(ZR||{}),KR=(r=>(r.Cascade="cascade",r.Restrict="restrict",r.Orphan="orphan",r.Unknown="unknown",r))(KR||{}),di=(r=>(r.RequirementReference="requirement-reference",r.Spec="spec",r.PrDescription="pr-description",r.CouldBreak="could-break",r))(di||{}),tt=d.string().trim().min(1),Qu=tt.describe("file:line"),FG=o(e=>tt.refine(t=>t.length<=400,t=>({message:`is ${t.length} characters, over the 400 cap \u2014 ${e}`})),"cap400"),SA=tt.optional().describe('multi-repo only: the OTHER checkout this lives in \u2014 its "owner/repo" slug, or the directory name if the run discovered it; omit for the working checkout'),WR=d.object({method:tt,path:tt,service:d.string().optional(),evidence:Qu,repository:SA}),sce=d.object({id:tt.describe("short-slug, e.g. R9"),statement:tt.max(400,"exceeds 400 characters \u2014 state the requirement, do not paste the spec section").describe("a testable obligation, not a summary"),source:d.nativeEnum(di).describe("spec outranks pr-description when both state it"),evidence:tt.describe("spec: file:line or a section locator. pr-description: the quoted phrase it comes from.")}),oce=d.object({id:tt.describe("short-slug"),statement:tt.max(400,"exceeds 400 characters \u2014 state the behaviour, do not paste the code").describe("what the change makes true"),surface:tt.describe("METHOD /path, or a component/page name"),evidence:tt.describe("file:line from the diff that introduces it"),repository:SA,satisfies:d.array(tt).optional().describe("requirement ids (from `requirements`) this behaviour correctly implements \u2014 a requirement met only in part is ALSO named by the finding that shows the rest (conflictsWith)")}),ace=d.object({id:tt.describe("short-slug"),file:tt,line:d.number().optional(),claim:FG("shorten it to the one sentence that states the defect, and move the supporting detail into `evidence`"),severity:d.nativeEnum(ya),evidence:FG("cite the file:line and the one line that shows it, rather than reproducing the surrounding code").describe("quoted diff/code line"),status:d.nativeEnum(Ea),repository:SA,conflictsWith:d.array(tt).optional().describe("requirement ids (from `requirements`) this defect contradicts or leaves unimplemented \u2014 a lower-precedence source (the diff, or the PR description) lost")}),cce=d.object({name:tt,language:d.string().optional(),framework:d.string().optional(),evidence:Qu,repository:SA}),uce=d.object({dir:tt,framework:d.string().optional(),kind:d.nativeEnum(ZR),evidence:Qu,repository:SA}),lce=d.object({from:tt,to:tt,onDelete:d.nativeEnum(KR),evidence:Qu}),dce=d.object({entity:tt,field:tt,values:d.array(d.string()),evidence:Qu}),Ace=d.object({entities:d.array(d.object({name:tt,evidence:Qu})),references:d.array(lce).describe("INBOUND references \u2014 what still points at an entity when it is deleted"),stateFields:d.array(dce)}),XR=d.object({schemaVersion:d.literal(1),repository:d.object({path:tt.describe("absolute repo path"),currentBranch:tt,baseBranch:tt}),project:d.object({type:d.nativeEnum(xm),primaryLanguage:tt,languages:d.array(d.string()),frameworks:d.array(d.string())}),services:d.array(cce),infrastructure:d.object({containerized:d.boolean(),hasDockerCompose:d.boolean(),composeFiles:d.array(d.string()),hasCiCd:d.boolean()}),diff:d.object({changedFiles:d.array(d.string()).describe("as git reports them; a file in another checkout may carry that repo's name"),nonApplicationOnly:d.boolean(),summary:tt.describe("\u2264400 chars")}),endpoints:d.object({new:d.array(WR),modified:d.array(WR),removed:d.array(WR)}),existingTests:d.object({locations:d.array(uce)}),entityMap:Ace,requirements:d.array(sce).describe("from a spec (attached or linked) and/or the PR description; empty when neither states a testable obligation"),behaviors:d.array(oce),findings:d.array(ace),unexamined:d.array(d.string()).describe("files or areas outside this change you did not open"),summary:tt.describe("one paragraph on what this change does and its test-relevant risk")});var hce=d.object({route:d.string().describe('the page this step happens on, e.g. "/products/:id"'),action:d.string().describe('what the user does there, through the UI, e.g. "clicks Add to cart"'),clauses:d.array(d.string()).optional().describe("the plan clause ids this step exercises"),check:d.string().optional().describe("what the user then sees that shows the step worked; the test asserts it")}),RA=(n=>(n.InProcess="in-process",n.Browser="browser",n))(RA||{}),PG=(i=>(i.Spec="spec",i.PrDescription="pr-description",i.Inferred="inferred",i))(PG||{}),MG=d.object({id:d.string().describe('e.g. "J1"'),name:d.string().describe(`the flow in a user's words, e.g. "buy a product with a coupon"`),entry:d.string().describe("the route the user starts the flow on: the app's normal starting page for it, never a deep link into its middle"),steps:d.array(hce).describe("every step, in order, from the entry page to the outcome: at least two"),outcome:d.string().describe("what the user sees at the end that shows the flow worked: every part of it"),finishes:d.string().optional().describe('the user action that completes the task, verb first, e.g. "places the order"; the journey walks on to it'),kind:d.nativeEnum(RA).optional().describe("in-process when the repo's in-process tests (components, app routes) can walk the whole flow and check it; else browser"),source:d.nativeEnum(PG).optional().describe("spec or pr-description when one describes this flow (quote it under evidence), else inferred"),evidence:d.string().optional().describe("for spec or pr-description: its words that describe the flow"),testFile:d.string().describe("the browser test file it goes in, beside the repo's existing e2e tests")}),$m=d.object({journey:d.string().describe("the plan's journey id"),file:d.string().describe("the browser test file that walks it"),brokeAt:d.object({step:d.number().int().describe("the 1-based step whose check failed first"),expected:d.string(),actual:d.string().describe("what the app did instead, from the runner's output"),notReached:d.array(d.number().int()).optional().describe("later steps the test could not get to")}).optional().describe("only when the journey's test failed on a check: where"),test:d.string().describe("the title of the one test in that file that walks it end to end")});var axe=Object.fromEntries([...["ts","tsx","mts","cts","js","jsx","mjs","cjs"].map(e=>[e,"node"]),...["java","kt","kts","groovy","scala"].map(e=>[e,"jvm"]),["py","python"],["go","go"]]);var cxe=["stale_test","open_question"],uxe=["low","medium","high","critical"];var Tm=(n=>(n.Skyramp="skyramp",n.Llm="llm",n))(Tm||{}),Ji=d.string().trim().min(1),mce=d.object({case:Ji.describe("recommend id this assertion enforces"),evidence:Ji.describe("the exact assertion line from the file that checks that case's observable")}),ex=d.object({kind:d.nativeEnum(sg).describe("seed: data the test creates in the app; runtime_mock: a mock on a Skyramp worker, which other tests reach too; env_override: an env value the app runs with. A stub inside the test's own process, such as a browser page's route, is none of these"),target:Ji.describe("the dependency, endpoint or data it affects"),mechanism:d.nativeEnum(og).describe("test_code: the test applies and undoes it; skyramp_mocker: a mock the test applies on a Skyramp worker; recipe_override: the mocker cannot reach the dependency (its URL is fixed in the build)"),detail:Ji.describe("what it sets up"),worker:Ji.optional().describe("skyramp_mocker: host:port of the worker the test applies the mock to (default localhost:35142)"),cleanup:Ji.optional().describe("seed: a command that removes the data when the test does not, run as written and without a shell: give real values, not a placeholder such as <id>, single-quote an argument that holds shell syntax, or put the logic in a script in the repository and run that")}),yce=d.object({file:Ji.describe("staged path under .skyramp/staged/"),source:d.nativeEnum(Tm),language:Ji,covers:d.array(d.string()).min(1,"must be a non-empty array of recommend ids").describe("recommend ids this test covers"),assertions:d.array(mce).min(1,"must be a non-empty array").describe("one per case covered, citing the real line"),context:d.array(ex).optional().describe("what the test sets up against the running app, in order: data it seeds, Skyramp mocks it applies, env overrides; omit when none")}),tx=d.object({schemaVersion:d.literal(1),tests:d.array(yce),deferredUi:d.array(d.string()).describe("recommend ui ids left for the UI stage (generate) \u2014 [] for generate-ui"),summary:Ji.describe("one paragraph")});var Hi=d.string().trim().min(1),Vs=72,Ece=d.object({repository:Hi.optional().describe("owner/repo of the checkout this lint ran in, when the run has several; omit for the working checkout"),tool:d.string(),command:d.string().describe("the exact command you ran, scoped to the changed files"),clean:d.boolean(),fixed:d.array(d.string()).optional().describe("files you fixed"),uncovered:d.array(d.string()).describe("changed/new files this linter's own config does not match (wrong extension, wrong directory) \u2014 so `clean` never examined them, even though CI may still execute them. Empty array, not omitted, when every changed/new file IS covered.")}),Exe=d.object({schemaVersion:d.literal(1),lint:d.array(Ece).min(1).describe("one entry per checkout this run wrote tests in, each run from that checkout"),fileConventions:d.object({ok:d.boolean(),notes:d.string().optional()}),ciReadiness:d.object({covered:d.boolean().describe("will the repo's CI run these tests?"),notes:d.string().optional()}),dependencies:d.object({added:d.array(d.object({package:d.string(),manifest:d.string(),repository:Hi.optional().describe("owner/repo of the manifest's checkout; omit for the working checkout"),reason:Hi.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")})).describe("every package added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own")}),support:d.array(d.object({file:Hi,repository:Hi.optional().describe("owner/repo of the file's checkout; omit for the working checkout")})).optional().describe("the files the tests need besides themselves (helper modules, page objects, fixtures, snapshots), delivered with them"),commit:d.object({message:Hi.refine(e=>e.split(`
153
153
  `)[0].length<=Vs,{message:`subject line must be <= ${Vs} chars`})}),pr:d.object({title:Hi.max(Vs,`must be <= ${Vs} chars`),body:Hi}),ready:d.boolean().describe("a statement of fact: true only if the tests are fit to commit as they stand"),blockers:d.array(d.string()).describe("what blocks the commit \u2014 required non-empty when ready is false"),summary:Hi.describe("one paragraph")});var qs=_e(require("fs")),Ru=_e(require("path")),jG=require("child_process");var Cr="{junit}",Dm=(i=>(i.Junit="junit",i.Trx="trx",i.GoTestJson="go-test-json",i))(Dm||{}),nx=(t=>(t.Minitest="minitest",t))(nx||{}),LG=d.string().trim().min(1),ku=d.object({cwd:LG.describe('repo-relative directory the command starts in ("." for the root)'),argv:d.array(LG).min(1).describe(`the command as separate arguments, run without a shell; for a junit or trx report an argument or env value holds ${Cr}, where the report is written (not for Maven or Gradle, whose build writes its own)`),env:d.record(d.string(),d.string()).optional().describe("plain test or reporter settings beyond the repository's CI test job (RAILS_ENV=test, PLAYWRIGHT_JUNIT_OUTPUT_FILE={junit}); never a credential, PATH, or a tool's install path"),report:d.object({format:d.nativeEnum(Dm).describe(`junit (JUnit XML to ${Cr}), trx (to ${Cr}), or go-test-json (go test -json on the command's output)`),reporter:d.nativeEnum(nx).optional().describe("a reporter Testbot loads for a runner that writes no report: minitest")}).optional().describe("the report the command writes; junit when omitted")});var Su="a framework other than pytest, jest, vitest and node --test (go test, rails test, mvn, dotnet test), or one the repository's test script runs through another command (ng test, nx test)",bxe=`pytest, Jest, Vitest and node --test tests run as the run already knows them, unless the repository's test script runs them through another command (ng test, nx test), which may be the only one that compiles them. A test in any other framework, or one run that way, also gives "run": the repository's own command for only those tests, from the directory the repository runs it in, as separate arguments without a shell. Its "report" says what the runner writes: junit (JUnit XML to ${Cr} in the reporter's argument or env setting), trx (a TRX file to ${Cr}, which every dotnet test writes with its built-in logger), or go-test-json (go test -json, read from the command's output). A Maven or Gradle command names no ${Cr}: its build writes JUnit XML to its own report directory, which the run reads. Use a reporter the repository already has, or one of those; a reporter or converter the command fetches is the version the repository pins, or else its latest release (an older one may not build with the repository's toolchain). For minitest, which writes none, give report.reporter "minitest" and the run fills ${Cr} itself. A setting the tests or reporter read goes in "env" (RAILS_ENV=test, or PLAYWRIGHT_JUNIT_OUTPUT_FILE=${Cr} with playwright test --reporter=junit): the run sets it, so never wrap the command in a shell to set one. The run replaces ${Cr} in argv and env with its report path, executes the command, and reads that report.`;var zs=(r=>(r.ExistingEvidenceSufficient="existing_evidence_sufficient",r.TargetedUnit="targeted_unit",r.RuntimeRequired="runtime_required",r.BlockedPreflight="blocked_preflight",r))(zs||{}),Yi=(s=>(s.ExistingEvidence="existing_evidence",s.Unaffected="unaffected",s.ExistingUnit="existing_unit",s.NewUnit="new_unit",s.Runtime="runtime",s))(Yi||{}),rx=(n=>(n.Repository="repository",n.Testbot="testbot",n))(rx||{}),ix=(i=>(i.Identified="identified",i.Passed="passed",i.Failed="failed",i))(ix||{}),Fn=d.string().trim().min(1),Ice=d.string().regex(/^[a-z0-9][a-z0-9-]*$/,"must be a short lowercase slug").describe("short-slug");var Cce=d.object({id:Ice,source:d.nativeEnum(rx),kind:d.nativeEnum(Qs),outcome:d.nativeEnum(ix),summary:Fn.max(400).describe("one line: what it shows"),tests:d.array(Fn).optional().describe("source repository: the existing tests, as repo-relative paths, optionally path::test-name"),repository:Fn.optional().describe("source repository: owner/repo the tests live in, when the run has several checkouts; omit for the working checkout"),command:Fn.optional().describe("source testbot: the exact command you ran, as you ran it"),run:ku.optional().describe(`source repository, for tests in ${Su}: how the run executes only these tests, all of them in one command, with the repository's own runner writing JUnit XML to {junit}. Name each test (path::test-name): a test is credited to a file only by its name or by a report that names the file`)}),vce=d.object({behaviorId:Fn.describe("an id from analyze's behaviors"),mechanism:d.nativeEnum(Yi),evidenceIds:d.array(Fn).default([]).describe("existing_evidence: the ci-<n> or evidence ids that establish it; existing_unit: the evidence id naming the tests to run"),covers:d.string().trim().optional().describe('new_unit / runtime: the missing evidence this obtains, e.g. "the boundary the change moved"; unaffected: why the change cannot reach it, citing path:line')}),sx=(i=>(i.Browser="browser",i.RunningApp="running-app",i.Outside="outside",i))(sx||{}),bce=d.object({behaviorId:d.string().trim().optional().describe("an id from analyze's behaviors, when it is about one"),missing:Fn.max(600).describe("the evidence that is required and cannot be obtained in this run"),needs:d.nativeEnum(sx).optional().describe("what that evidence needs: browser (only a real browser shows it), running-app (only the running app or its server shows it: its real requests, sign-in and permissions, what it saves), or outside (something the running app here could not give either: a third-party service it calls, hardware)")}),wce=d.object({file:Fn.describe("the changed file the failure is in"),repository:Fn.optional().describe("owner/repo the file is in, when the run has several checkouts; omit for the working checkout"),reason:Fn.max(300).describe("what prerequisite the change fails"),evidence:Fn.max(400).describe("the error line, quoted")}),Bce=d.object({behaviorId:Fn.describe("an id from analyze's behaviors"),reason:Fn.max(600).describe("\u2264600 characters: why this change leaves the behavior's result as it was, citing the unchanged line that decides it (path:line)")}),xA=d.object({schemaVersion:d.literal(1),decision:d.nativeEnum(zs),evidence:d.array(Cce).describe("evidence this session found or produced; CI results are the ci-<n> items and are not restated here"),plan:d.array(vce).describe("how each changed behavior's evidence is obtained"),gaps:d.array(bce),outOfScope:d.array(Bce).optional().describe("behaviors analyze found that this change neither changes nor states"),blocked:wce.optional().describe("only for blocked_preflight"),rationale:Fn.max(1200).describe("\u22641200 characters: why this evidence is enough, or what it still lacks \u2014 the scope you chose and why")});function _m(e){let t=it(e,"recommend.json");if(!t||!Array.isArray(t.generate)||!Array.isArray(t.maintenance))return;let n=t;return{...n,maintenance:n.maintenance.map(({repository:i,...r})=>({...r,test:r.test.trim().replace(/^\.\//,""),...i?.trim()?{repository:i.trim()}:{}}))}}o(_m,"readRecommend");function xce(e){return tr(tx,e).errors}o(xce,"validateGenerateOutput");function $ce(e,t=[]){let{value:n,error:i}=zt(e,t);if(i)return{errors:[i]};let r=xce(n);return r.length>0?{errors:r}:{generate:n,errors:[]}}o($ce,"parseGenerateText");function Nm(e,t=[]){return $ce(e.stdout,t)}o(Nm,"parseGenerateFromSession");function Tce(e){return e.generate.filter(t=>t.type!=="ui").map(t=>t.id)}o(Tce,"backendCases");function GG(e){return e.generate.filter(t=>t.type==="ui").map(t=>t.id)}o(GG,"uiCases");var Um={backend:{stage:"generate",cases:Tce,noRecommendCoverage:"recommend.json missing or malformed \u2014 cannot check coverage",noRecommendIntent:"recommend.json missing or malformed \u2014 cannot check intent",uncovered:o(e=>`recommend case "${e}" is not covered by any generated test`,"uncovered"),unknownCovered:o(e=>`test covers unknown recommend id "${e}"`,"unknownCovered"),unasserted:o(e=>`case "${e}" has no verified assertion enforcing its expected_observable`,"unasserted"),usedCodegen:Cj,codegenHint:"These tests were hand-written. Skyramp codegen (skyramp_contract_test_generation / skyramp_integration_test_generation) was available but not used \u2014 it computes valid sample data and response correlations. Prefer scaffolding with it and then refining, especially for the failures above."},ui:{stage:"generate-ui",cases:GG,noRecommendCoverage:"recommend.json not found \u2014 cannot check UI coverage",noRecommendIntent:"recommend.json not found \u2014 cannot check UI intent",uncovered:o(e=>`UI case "${e}" is not covered by any generated UI test`,"uncovered"),unknownCovered:o(e=>`test covers "${e}" which is not a recommend UI case`,"unknownCovered"),unasserted:o(e=>`UI case "${e}" has no verified assertion enforcing its expected_observable`,"unasserted"),usedCodegen:vj,codegenHint:"This UI test was hand-authored. Skyramp UI codegen (skyramp_ui_test_generation) was available but not used. Prefer scaffolding with it and then refining, especially for the failures above."}},i$e=mr("generate-schema",(e,t)=>Nm(t,e.secretValues));function Dce(e){let t=Um[e];return{name:`${t.stage}-coverage`,verify(n,i){let{generate:r,errors:s}=Nm(i,n.secretValues);if(!r)return tn(this.name,s);let a=_m(n);if(!a)return tn(this.name,[t.noRecommendCoverage]);let c=new Set(r.tests.flatMap(p=>p.covers)),u=[],l=t.cases(a);for(let p of l)c.has(p)||u.push(t.uncovered(p));let A=new Set(e==="ui"?l:a.generate.map(p=>p.id));for(let p of c)A.has(p)||u.push(t.unknownCovered(p));if(e==="backend"){let p=new Set(r.deferredUi),g=new Set(GG(a));for(let h of g)!p.has(h)&&!c.has(h)&&u.push(`UI case "${h}" is neither covered nor deferred to the UI stage`);for(let h of p)g.has(h)||u.push(`deferredUi lists "${h}" which is not a UI case`)}return u.length===0?{name:this.name,passed:!0}:tn(this.name,u)}}}o(Dce,"generateCoverageGateFor");function _ce(e){let t=Um[e];return{name:`${t.stage}-intent`,verify(n,i){let{generate:r,errors:s}=Nm(i,n.secretValues);if(!r)return tn(this.name,s);let a=_m(n);if(!a)return tn(this.name,[t.noRecommendIntent]);let{asserted:c,errors:u,badFiles:l}=Oce(r,n.inputs.repositoryPath),A=u.length;for(let g of t.cases(a))c.has(g)||u.push(t.unasserted(g));if(u.length===0)return{name:this.name,passed:!0};let p=tn(this.name,u);return A>0&&A===u.length&&l.size>0?{...p,droppable:[...l]}:p}}}o(_ce,"generateIntentGateFor");function Nce(e){let t=Um[e];return n=>{if(!n.inputs.skyrampMcp?.command||e==="backend"&&!JR(n))return;let i=Ru.join(n.outputsDir,`${t.stage}-stream.ndjson`);if(!(!qs.existsSync(i)||t.usedCodegen(i)))return bj(i)?t.codegenHint:"Skyramp codegen tools were configured but the MCP server did not connect this session, so they were not available. Hand-authoring was the only option; this is an environment problem, not yours."}}o(Nce,"codegenRetryHintFor");var s$e=Dce("backend"),o$e=_ce("backend"),a$e=Nce("backend");var OG=o(e=>e.replace(/\s+/g,""),"squeeze");var ox={python:[/\bassert\s*[({\w"'`]/g,/\bpytest\.raises\s*\(/g,/\bself\.assert\w*\s*\(/g],typescript:[/\bexpect\s*\(/g,/\.should\b/g,/\bassert\s*[.(]/g],go:[/\bt\.(Error|Errorf|Fatal|Fatalf|Fail|FailNow)\s*\(/g,/\b(assert|require)\.\w+\s*\(/g],java:[/\bassert\w*\s*\(/g,/\bassertThat\s*\(/g],ruby:[/\bexpect\s*[({]/g,/\bassert\w*\b/g,/\.should\b/g]};for(let[e,t]of[["javascript","typescript"],["kotlin","java"]])ox[e]=ox[t];function Uce(e,t){if(e.includes(md(t))||OG(e).includes(OG(t)))return!0;let n=t.split(/\r?\n/).map(i=>i.trim()).filter(i=>i&&!/^(\/\/|#|\*|\/\*)/.test(i));return n.length>0&&n.every(i=>e.includes(md(i)))?!0:Lce(e,t)}o(Uce,"evidenceFound");var Fce=/\bassert\w*\b|\bexpect\s*\(|\.should\b|\brequire\s*\(/i,Pce=12,Mce=/,\s*\(\s*#|,\s*f?["'`]|\s+#\s|\s+\/\/|\s*\((?:line|lines|at line)\b|\s*,\s*$/i;function Lce(e,t){let n=t.split(/\s*;\s*|\s*\.\.\.\s*|\r?\n/),i=0;for(let r of n){let s=Fce.exec(r);if(!s)continue;let a=r.slice(s.index),c=Mce.exec(a);if(c&&(a=a.slice(0,c.index)),a=md(a).replace(/[,\s]+$/,""),a.length<Pce||!e.includes(a))return!1;i++}return i>0}o(Lce,"annotatedAssertionFound");function Oce(e,t){let n=new Set,i=[],r=new Set;for(let s of e.tests){let a=Ru.resolve(t,s.file);if(!qs.existsSync(a))continue;let c=md(qs.readFileSync(a,"utf-8"));for(let u of s.assertions??[]){if(!Uce(c,u.evidence)){i.push(`assertion evidence for "${u.case}" not found in ${s.file} \u2014 cite the real assertion line`),r.add(s.file);continue}s.covers.includes(u.case)?n.add(u.case):(i.push(`assertion cites case "${u.case}" not in that test's covers[]`),r.add(s.file))}}return{asserted:n,errors:i,badFiles:r}}o(Oce,"verifiedAssertions");var jce=/\.(spec|test)\.[cm]?[jt]sx?$/i;function VG(e){let t;try{t=(0,jG.execFileSync)("git",[...Vi,"status","--porcelain","--untracked-files=all"],{env:En(),cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]})}catch{return}let n=o(r=>/_scaffold/i.test(r)||vg.test(r),"isTestLitter"),i=[];for(let r of t.split(`
154
- `)){if(!r.trim()||r.length>1&&r[1]==="D")continue;let s=r.slice(3).trim(),a=s.indexOf(" -> ");if(a!==-1&&(s=s.slice(a+4).trim()),s=s.replace(/^"|"$/g,""),!s)continue;let c=s.replace(/^\.\//,"");c.startsWith(".skyramp/")||!n(c)||i.push(c)}return i}o(VG,"testLitter");function Gce(e){let t=Um[e],n=e==="ui";return{name:`${t.stage}-no-litter`,verify(i){let r=VG(i.inputs.repositoryPath);if(r===void 0)return{name:this.name,passed:!0};let s=r.filter(a=>jce.test(a)===n);return s.length===0?{name:this.name,passed:!0}:tn(this.name,[`${t.stage} left files outside .skyramp/ \u2014 move the staged test into .skyramp/staged/ and delete any codegen draft (e.g. *_scaffold.*): ${s.slice(0,6).join(", ")}`])}}}o(Gce,"noLitterGateFor");var c$e=Gce("backend");var $A=_e(require("fs")),Ia=_e(require("path"));function qG(e){return tr(av,e).errors}o(qG,"validateAdaptOutput");function qce(e,t=[]){let{value:n,error:i}=zt(e,t);if(i)return{errors:[i]};let r=qG(n);return r.length>0?{errors:r}:{adapt:n,errors:[]}}o(qce,"parseAdaptText");var Jce="adapt-scratch",zG=`${Jce}/adapt-result.json`;function JG(e,t){let n=Ia.join(e.outputsDir,zG),i;try{i=$A.readFileSync(n,"utf-8")}catch{i=void 0}if(i!==void 0&&(e.secretValues??[]).some(a=>i.includes(a)))return{errors:[`${zG} contains a secret value (token / credential) \u2014 never write it anywhere`]};let r=qce(t.stdout,e.secretValues);if(r.adapt)return r;let s=i!==void 0?Zo(n):void 0;return s!==void 0&&qG(s).length===0?{adapt:s,errors:[]}:r}o(JG,"parseAdaptFromSession");var x$e=mr("adapt-schema",JG);var HG=require("child_process");function YG(e){return Hce(e)??[]}o(YG,"statusEntries");function Hce(e){let t;try{t=(0,HG.execFileSync)("git",[...Vi,"status","--porcelain","-z","--untracked-files=all"],{env:En(),cwd:e,encoding:"utf-8",maxBuffer:16*1024*1024})}catch{return}let n=t.split("\0"),i=[];for(let r=0;r<n.length;r++){let s=n[r];if(s.length<4)continue;let a=s.slice(0,2);i.push({code:a,path:s.slice(3)}),(a[0]==="R"||a[0]==="C")&&r++}return i}o(Hce,"readStatusEntries");var L$e=2*1024*1024;var Pm=d.string().trim().min(1),Yce=d.object({cwd:Pm.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:d.array(Pm).min(1).describe("the command as separate arguments, run without a shell"),env:d.record(d.string(),d.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),Wce=d.object({file:Pm.describe("a file of the test's checkout, relative to its root"),line:Pm.describe("a line of that file, quoted exactly from where its command starts to its end")}),WG=d.object({collected:d.boolean().describe("whether the repo's CI runs this test as it is"),steps:d.array(Wce).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:d.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:Yce.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:d.string().optional().describe("when not collected: why the repo's CI will not run it")});var ae=d.string().trim().min(1),tue=o(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},"skippedNeedsNoExpected"),nue=d.preprocess(tue,d.object({id:ae.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:ae.describe("one testable part of the requirement"),expected:ae.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:d.string().optional().describe("only when no test can check this clause here: why"),type:d.nativeEnum(js).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:d.string().optional().describe('its "METHOD /path", or the page / flow'),steps:d.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:d.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:d.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:d.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:d.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:d.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:d.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:d.string().optional().describe("the words of the spec, plan, ticket or PR description that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:d.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),KG=d.object({spec:d.string().optional().describe("file:line of a spec in the repository"),prDescription:d.boolean().optional().describe("or true when a pull request description says otherwise"),reference:d.string().optional().describe("or the key of an item the run was given, as listed"),says:ae.describe("what it says there, in its own words, copied exactly"),criterion:d.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`}),rue=d.object({id:ae.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:ae,source:d.nativeEnum(di).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:d.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:ae.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:d.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:d.array(d.object({reference:ae.regex(Bs).describe("the key of another uploaded document stating the same obligation"),says:ae.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:d.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:d.string().optional().describe("requirement-reference only: when the change does not touch this criterion at all (e.g. a later step of a staged rollout), why; give it no clauses"),unchanged:d.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:d.array(KG).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:d.array(nue)}),XG=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(XG||{}),iue=d.object({id:ae.describe('e.g. "F1"'),file:ae,line:d.number().optional(),claim:ae.describe("the defect, in one sentence"),severity:d.nativeEnum(ya),evidence:ae.describe("the code line, or the probe request and response, that shows it"),conflictsWith:d.array(ae).optional().describe("requirement or clause ids it violates"),keeps:d.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:d.nativeEnum(XG).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:d.string().optional().describe("only when the base already does this, in code the change left as it was: where the base does it (its file:line); such a defect gets no case"),needsApp:d.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)")}),sue=d.object({id:ae.describe('e.g. "Q1"'),question:ae.describe("what is unsettled, as a question the PR author can answer"),readings:d.array(ae).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:d.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:d.array(KG).optional().describe("when sources of the same rank disagree on it: each of them")}),oue=d.object({id:ae.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:d.nativeEnum(js).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:ae.describe('"METHOD /path", or the page / flow'),clause:d.string().optional().describe("the clause id this case checks"),finding:d.string().optional().describe("the finding id this case catches"),steps:ae.describe("what the test does"),expected:ae.describe("the expected outcome, from the clause"),mutates:d.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")}),aue=d.object({test:ae.describe("existing test file"),action:d.nativeEnum(Gi),reason:ae,mutates:d.boolean().optional().describe("true when the maintained test changes state"),clauses:d.array(ae).optional().describe("the clause ids this test checks")}),ZG=d.array(dv).optional(),cue=d.object({components:d.preprocess(e=>ZG.safeParse(e).success?e:void 0,ZG).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:d.nativeEnum(Fi).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:d.record(d.string()).optional().describe("service \u2192 base URL of the running app"),health:d.object({url:d.string().optional(),command:d.string().optional(),output:d.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:d.string().optional().describe("command that stops the app"),dependencies:d.record(d.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:d.array(d.string()).optional().describe("what you changed in the recipe"),error:d.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:d.array(d.string()).optional().describe("change-broke-bringup: the changed files to blame"),login:d.object({username:ae,password:d.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:fv.optional()}),I0e=d.object({schemaVersion:d.literal(1),requirements:d.array(rue),findings:d.array(iue),cases:d.array(oue).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:d.array(sue).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:d.array(aue),journeys:d.array(MG).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:d.array(d.object({clause:ae,why:ae})).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"),unplannedComponents:d.array(d.object({components:d.array(ae).min(1).describe("changed components, as the change lists them"),why:ae})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:xA.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:cue.optional().describe("omit when no app was needed or none was started"),summary:ae.describe("one paragraph: what the change does and where the risk is")});var Mm=(n=>(n.Backend="backend",n.Ui="ui",n))(Mm||{});var Ca=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(Ca||{}),uue=d.object({file:ae.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:d.nativeEnum(Mm),change:d.nativeEnum(Ca).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:d.array(d.string()).describe("the plan case ids this file tests, each with its own result under result.cases"),defect:d.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:d.object({requirement:ae.describe("the requirement or clause id the change deliberately alters"),line:ae.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"),result:d.object({exit:d.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:d.array(d.object({case:ae,status:d.nativeEnum(fr),runtimeTargets:ed.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:d.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"),failure:d.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:d.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:d.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")})).describe("one entry per covered case, from the runner's own output"),details:d.string().optional().describe("what failed and why, or why it was not run")}),assertions:d.array(d.object({case:ae,evidence:ae})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:d.array(d.object({name:ae.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:d.array(ae).describe("the plan case ids it checks")})).optional().describe("for a file you added or updated: each test function in it and the plan case ids it checks"),skyramp:d.object({draft:d.union([d.string(),d.array(d.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:d.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:d.array(ex).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:ae.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:WG.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:ku.optional().describe(`for a file in ${Su}, 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 or trx to ${Cr}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),lue=o(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},"oneTestIsTests"),due=d.preprocess(lue,d.object({description:ae.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:d.nativeEnum(ya).optional(),sourceFile:d.string().optional().describe("the app file at fault"),sourceLine:d.number().optional(),tests:d.array(ae).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:d.string().optional().describe("the plan's finding id, when it is one"),requirements:d.array(ae).optional().describe("the plan's requirement or clause ids it violates")})),C0e=d.object({schemaVersion:d.literal(1),tests:d.array(uue),notWritten:d.array(d.object({case:ae,reason:ae,coveredBy:d.object({file:ae.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:ae.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"),journeys:d.array($m).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:d.object({command:d.string(),clean:d.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:d.array(d.object({package:ae,manifest:ae.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:ae.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:ae.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:d.array(ae).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:d.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"),commit:d.object({message:ae.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:ae.describe("at most 72 characters, following the repository's PR-title checks"),prBody:ae.describe("what the tests cover and what they found")}),report:d.object({summary:ae.describe("1-2 sentences for the PR author: does the change do what it says?"),issues:d.array(due).describe("every defect the tests found"),nextSteps:d.array(d.string()),noTests:d.array(d.object({repository:ae,reason:ae.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")})});var v0e={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};var tV=(i=>(i.Requirement="requirement",i.PrDescription="pr_description",i.Code="code",i))(tV||{}),qt=d.string().trim().min(1),Aue=d.object({expectation:qt.max(300).describe("the behavior this assertion pins, in words"),source:d.nativeEnum(tV),expected:qt.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),pue=d.object({file:qt.describe("path of the NEW test file you wrote, relative to its repository"),repository:qt.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:qt.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:ku.optional().describe(`for ${Su}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:d.array(qt).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:d.array(qt).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:d.array(Aue).min(1)}),Lm=(n=>(n.Updated="updated",n.Deleted="deleted",n))(Lm||{}),eV=300,fue=d.object({file:qt.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:qt.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:d.nativeEnum(Lm),staleBecause:d.object({requirement:qt.describe("the requirement or clause id the change deliberately alters"),line:qt.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:d.preprocess(e=>typeof e=="string"?e.trim().slice(0,eV):e,qt.max(eV)).describe("what the change deliberately altered that made the test wrong")}),ax=d.object({schemaVersion:d.literal(1),tests:d.array(pue),maintained:d.array(fue).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:d.array(d.object({id:qt,reason:qt.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:d.array($m).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:d.array(d.object({journey:qt,missing:qt.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:d.object({command:d.string(),clean:d.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repository has one you can run; omit otherwise"),commitMessage:qt.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var jm="generate-unit.json";function Eue(e){let{value:t,error:n}=zt(e);if(n)return{errors:[n]};let{value:i,errors:r}=tr(ax,t);return r.length?{errors:r}:{output:i,errors:[]}}o(Eue,"parseGenerateUnitText");function Iue(e){return Eue(e.stdout)}o(Iue,"parseGenerateUnitFromSession");var fTe=mr("generate-unit-schema",(e,t)=>Iue(t));var Om=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,gTe=[[/\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+["']${Om}["']|\bimport\s+["']${Om}["']|require\(\s*["']${Om}["']\s*\)|\bimport\(\s*["']${Om}["']\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 OTe=new Set(["targeted_unit","existing_evidence_sufficient"]);var bue="triage.json";var DDe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),_De={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 wue(e){let{value:t,error:n}=zt(e);if(n)return{errors:[n]};let{value:i,errors:r}=tr(xA,t);return r.length?{errors:r}:{triage:i,errors:[]}}o(wue,"parseTriageText");function Bue(e){return wue(e.stdout)}o(Bue,"parseTriageFromSession");var NDe=mr("triage-schema",(e,t)=>Bue(t));function Que(e){let t=e.inputs?.pipeline;return t?e.state.stages[t==="two-step"?"plan":"triage"]:e.state.stages.triage??e.state.stages.plan}o(Que,"triageDecider");function ux(e){if(Que(e)?.status==="passed")return Zo(sV.join(e.outputsDir,bue))}o(ux,"readTriage");function lx(e){return $j(pR(e.inputs,it(e,`${vA}.json`),ux(e)?.sutRequired))}o(lx,"revisionBlockReason");var UDe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);var pi=_e(require("fs")),Ys=_e(require("path")),G2=_e(require("crypto")),V2=require("child_process");var dx=require("child_process"),xu=_e(require("fs")),oV=_e(require("os")),zm=_e(require("path"));var kue={onPath:o(e=>(0,dx.spawnSync)("sh",["-c",`command -v ${e}`],{stdio:"ignore"}).status===0,"onPath"),run:o((e,t)=>(0,dx.spawnSync)(e[0],e.slice(1),{cwd:t,stdio:"ignore",timeout:6e4}).status??1,"run")},Vm={cleanup:o(()=>{},"cleanup")},Sue=new Set(["pnpm","yarn"]);function aV(e,t=oV.tmpdir(),n=kue){if(process.platform==="win32")return Vm;try{let i=jR(e);if(!Sue.has(i)||n.onPath(i)||!n.onPath("corepack"))return Vm;xu.mkdirSync(t,{recursive:!0});let r=xu.mkdtempSync(zm.join(t,"testbot-pm-")),s=o(()=>xu.rmSync(r,{recursive:!0,force:!0}),"cleanup");return n.run(["corepack","enable","--install-directory",r,i],e)!==0?(s(),Vm):{dir:r,cleanup:s}}catch{return Vm}}o(aV,"packageManagerShims");function cV(e,t=process.env){return e.dir?{...t,PATH:[e.dir,t.PATH].filter(Boolean).join(zm.delimiter)}:t}o(cV,"withShims");var LA=require("crypto");function sn(e){let t=Math.max(0,...(e.match(/`+/g)??[]).map(r=>r.length)),n="`".repeat(t+1),i=e.startsWith("`")||e.endsWith("`")?" ":"";return`${n}${i}${e}${i}${n}`}o(sn,"codeSpan");Ic();tv();Ic();var l_e=5*6e4,d_e=12*6e4;var y_e=["class TestbotProjectBrowsers {"," onBegin(config) {",' const projects = config.projects.map((p) => ({ browserName: p.use.browserName ?? p.use.defaultBrowserType ?? "chromium", channel: p.use.channel ?? null }));',' process.stdout.write("TESTBOT_PROJECT_BROWSERS " + JSON.stringify(projects) + "\\n");'," }"," printsToStdio() { return true; }","}","module.exports = TestbotProjectBrowsers;",""].join(`
155
- `);var B_e=[...lR,"AWS_REGION","AWS_DEFAULT_REGION","AWS_ENDPOINT_URL","AWS_ENDPOINT_URL_BEDROCK_RUNTIME","AWS_ENDPOINT_URL_STS","AWS_SHARED_CREDENTIALS_FILE","AWS_CONFIG_FILE","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL"].filter((e,t,n)=>n.indexOf(e)===t);var iy=_e(t2());var $Ue={jest:"jest",vitest:"vitest"};var uFe=new Set(["jest","vitest","npm-test","playwright"]);var BFe=5*6e4;function MAe(e){return tr(XR,e).errors}o(MAe,"validateAnalysisOutput");function r2(e,t=[]){let{value:n,error:i}=zt(e,t);if(i)return{errors:[i]};let r=MAe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}o(r2,"parseAnalysisText");function LAe(e,t=[]){return r2(e.stdout,t)}o(LAe,"parseAnalysisFromSession");var APe=mr("analysis-schema",(e,t)=>LAe(t,e.secretValues));var BMe=Yf.rows.notRun(!0);var FA="kept, not ";var PA="(declined the planned ";function Tx(e){if(!e)return[];let t=[],n=0,i=0;for(let r=0;r<e.length;r++){let s=e[r];s==="("?n++:s===")"?n=Math.max(0,n-1):n===0&&s===";"&&e[r+1]===" "&&e[r-1]===")"&&(t.push(e.slice(i,r)),i=r+2)}return t.push(e.slice(i)),t.map(r=>{let s=r.trim();if(!s.endsWith(")"))return{expectation:s};let a=0;for(let c=s.length-1;c>=0;c--)if(s[c]===")")a++;else if(s[c]==="("&&--a===0){let u=s.slice(0,c).trim(),l=s.slice(c+1,-1).trim();return u&&l?{expectation:u,expected:l}:{expectation:s}}return{expectation:s}})}o(Tx,"assertionParts");var i2=new Set(["update","regenerate","delete"]);var QMe={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var s2=d.string().trim().min(1),Dx=d.object({schemaVersion:d.literal(1).optional(),businessCaseAnalysis:s2.describe("1-2 sentences: what this change means for a user, and whether the evidence shows it working"),issuesFound:d.array(d.object({description:s2,severity:d.string().optional().describe("critical | high | medium | low"),category:d.string().optional().describe("bug | lint | type | config"),sourceFile:d.string().optional(),sourceLine:d.number().optional(),findingId:d.string().optional(),requirementIds:d.array(d.string()).optional()})).describe("every real problem this run exposed \u2014 cause, file:line, severity"),nextSteps:d.array(d.string()).describe("concrete follow-ups the author can act on; required non-empty when a disclosure is BLOCKING")});function VAe(e){return tr(Dx,e).errors}o(VAe,"validateProseOutput");function zAe(e,t=[]){let{value:n,error:i}=zt(e.stdout,t);if(i)return{errors:[i]};let r=VAe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}o(zAe,"parseProseFromSession");var LMe=mr("report-schema",(e,t)=>zAe(t,e.secretValues));var o2="<!-- skyramp-testbot -->",a2=i2,qAe=new Set(["lint","type","config"]),c2={critical:0,high:1,medium:2,low:3},f2=new Set(["Pass","Fail"]);var Ux=o(e=>ko(oe().statusLabels,e),"statusLabel"),_x=o(e=>ko(oe().testTypeCellLabels,e),"testTypeLabel");function ze(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}o(ze,"escCell");function u2(e){return e.inferred?" (inferred)":""}o(u2,"inferredMark");function l2(e,t){return!e||!f2.has(e)?"\u2014":t?`${Ux(e)} (${ze(g2(t))})`:Ux(e)}o(l2,"maintStatus");function g2(e){let t=o(i=>{let r=i.indexOf(": ");return r<0?i:ko(oe().staged.maintenanceActions,i.slice(0,r))+i.slice(r)},"action");if(e.startsWith(FA))return oe().staged.keptNot+t(e.slice(FA.length));let n=e.indexOf(PA);return n<0?e:e.slice(0,n)+oe().staged.declinedPlanned+t(e.slice(n+PA.length))}o(g2,"declineNote");function d2(e){return e.category!==void 0&&qAe.has(e.category.toLowerCase())}o(d2,"isTooling");function A2(e,t){return(c2[(e.severity??"").toLowerCase()]??4)-(c2[(t.severity??"").toLowerCase()]??4)}o(A2,"bySeverity");function p2(e){return`- ${e.severity?`**[${ko(oe().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}`}o(p2,"issueLine");function JAe(e){let t=e.resultId?.split("#").slice(1).join("#");if(e.testType!=="unit"||!t)return;let n=t;try{n=decodeURIComponent(t)}catch{}let i=/^(.*?)(\[.*\])$/.exec(n);return i?{fn:i[1],kase:i[2]}:{fn:n}}o(JAe,"unitTestOf");var h2=o((e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,""),"samePath");function m2(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}o(m2,"videoLink");function Fx(e,t){return m2(e,n=>h2(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}o(Fx,"resultVideoLink");function Px(e,t){return m2(e,n=>h2(n.writtenAs??n.fileName,t))}o(Px,"journeyVideoLink");function HAe(e,t,n){return n?Fx(e,{fileName:t,repository:n}):Px(e,t)}o(HAe,"requirementVideoLink");function YAe(e){let t=[],n=new Map;for(let a of e.newTestsCreated)a.testType==="unit"&&n.set(a.fileName,[...n.get(a.fileName)??[],a.testId.split("::").slice(1).join("::")]);let i=new Map,r=o((a,c)=>(n.get(a??"")??[]).find(u=>u!==c&&_G(c,u)),"parentOf"),s=new Map;for(let a of e.testResults){let c=JAe(a),u=c&&!c.kase?r(a.fileName,c.fn):void 0;if(c&&u&&(c={fn:u,kase:`"${c.fn}"`}),c?.kase&&i.set(a,c.kase),!c){t.push({testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:a.details??"",...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}});continue}let l=`${a.fileName??""}#${c.fn}`,A=s.get(l);A||(A={row:{testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:"",test:c.fn,...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}},cases:[]},s.set(l,A),t.push(A.row)),A.cases.push(a)}for(let{row:a,cases:c}of s.values()){let u=c.filter(g=>g.status==="Fail"),l=c.filter(g=>g.status==="Pass").length,A=c.filter(g=>g.status==="Skipped").length;a.cases=c.length,a.status=u.length?"Fail":A?"Skipped":"Pass";let p=u[0];a.details=c.length===1?c[0].details??"":oe().staged.casesPassed(l,c.length,A)+(p?`; ${i.get(p)??""} ${p.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}o(YAe,"resultRows");function WAe(e){return Tx(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${sn(t.expected)}`)}o(WAe,"unitAssertions");function Nx(e){return e.newTestsCreated.some(t=>t.testType!=="unit")&&e.testResults.every(t=>t.status==="Skipped")&&e.testResults.some(t=>t.failureCause?.kind==="environment"&&t.failureCause.family==="app_not_started")}o(Nx,"nothingExecuted");function y2(e,t={}){let{audience:n,collapsed:i=!1,existingEvidence:r=[],requestedBy:s,sourcePullRequest:a}=t,c=n!=="testbot-pr",u=n!=="comment",l=n!=="testbot-pr",A=(e.requirements??[]).filter(P=>/^file-[a-f0-9]{16}-/i.test(P.id)).sort((P,re)=>re.id.length-P.id.length),p=o(P=>{let re=A.find(Z=>P.toLowerCase().startsWith(Z.id.toLowerCase()));return re?re.label+P.slice(re.id.length):P},"displayId"),g=[o2];if(a&&g.push(oe().staged.testsSourcePullRequest(sn(a)),""),s){let P=s.name.replace(/\s+/g," ").trim().replace(/[<>[\]()*_`\\|#]/g,"\\$&").replace(/@/g,"@\u200D");g.push(s.kind==="person"?oe().staged.requestedByPerson(P):oe().staged.requestedByPolicy(P),"")}e.notTranslated&&g.push(ko(oe().staged.notTranslated,e.notTranslated),"");let h=o(P=>{i?g.push("<details>",`<summary>${P}</summary>`,""):g.push(`### ${P}`)},"sectionStart"),y=o(()=>{i&&g.push("","</details>"),g.push("")},"sectionEnd");if(c){for(let P of e.businessCaseAnalysis.trim().split(/\r?\n/))g.push(`> ${P}`);g.push("")}if(Nx(e)&&g.push(oe().staged.noLiveApp(e.newTestsCreated.length),""),u&&e.newTestsCreated.length){let P=new Map;for(let ue of e.newTestsCreated){if(ue.testType!=="unit")continue;let be=(ue.testId.split("::").slice(1).join("::")||ue.testId).replace(/\[.*\]$/,""),H=P.get(ue.fileName)??{functions:new Set,endpoints:[],descriptions:new Map};ue.endpoint&&!H.endpoints.includes(ue.endpoint)&&H.endpoints.push(ue.endpoint);let V=ue.description?.trim()??"",ut=H.descriptions.get(be)??[];ut.includes(V)||ut.push(V),H.functions.add(be),H.descriptions.set(be,ut),P.set(ue.fileName,H)}let re=e.newTestsCreated.filter(ue=>ue.testType!=="unit"),Z=re.length+[...P.values()].reduce((ue,be)=>ue+be.functions.size,0);h(oe().testRecommendationsImplementedHeader(Z));for(let[ue,{functions:be,endpoints:H,descriptions:V}]of P){let ut=be.size;g.push(oe().staged.unitTestsInFile(`\`${ue}\``,ut,H.map(lt=>`\`${lt}\``).join(", ")),"");let Ze=new Map;for(let[lt,xt]of V){let on=xt.join("\0"),je=Ze.get(on)??{fns:[],descriptions:xt};je.fns.push(lt),Ze.set(on,je)}let vn=0;for(let{fns:lt,descriptions:xt}of Ze.values()){g.push(`${++vn}. ${lt.map(je=>`\`${je}\``).join(", ")}`);let on=[...new Set(xt.flatMap(je=>WAe(je)))];for(let je of on)g.push(` - ${je}`)}g.push("")}for(let ue of re){let be=ue.testId?sn(p(ue.testId)):_x(ue.testType),H=ue.fileName?` (\`${ue.fileName}\`)`:"",V=ue.endpoint?`
154
+ `)){if(!r.trim()||r.length>1&&r[1]==="D")continue;let s=r.slice(3).trim(),a=s.indexOf(" -> ");if(a!==-1&&(s=s.slice(a+4).trim()),s=s.replace(/^"|"$/g,""),!s)continue;let c=s.replace(/^\.\//,"");c.startsWith(".skyramp/")||!n(c)||i.push(c)}return i}o(VG,"testLitter");function Gce(e){let t=Um[e],n=e==="ui";return{name:`${t.stage}-no-litter`,verify(i){let r=VG(i.inputs.repositoryPath);if(r===void 0)return{name:this.name,passed:!0};let s=r.filter(a=>jce.test(a)===n);return s.length===0?{name:this.name,passed:!0}:tn(this.name,[`${t.stage} left files outside .skyramp/ \u2014 move the staged test into .skyramp/staged/ and delete any codegen draft (e.g. *_scaffold.*): ${s.slice(0,6).join(", ")}`])}}}o(Gce,"noLitterGateFor");var c$e=Gce("backend");var $A=_e(require("fs")),Ia=_e(require("path"));function JG(e){return tr(av,e).errors}o(JG,"validateAdaptOutput");function Hce(e,t=[]){let{value:n,error:i}=zt(e,t);if(i)return{errors:[i]};let r=JG(n);return r.length>0?{errors:r}:{adapt:n,errors:[]}}o(Hce,"parseAdaptText");var Yce="adapt-scratch",qG=`${Yce}/adapt-result.json`;function HG(e,t){let n=Ia.join(e.outputsDir,qG),i;try{i=$A.readFileSync(n,"utf-8")}catch{i=void 0}if(i!==void 0&&(e.secretValues??[]).some(a=>i.includes(a)))return{errors:[`${qG} contains a secret value (token / credential) \u2014 never write it anywhere`]};let r=Hce(t.stdout,e.secretValues);if(r.adapt)return r;let s=i!==void 0?Zo(n):void 0;return s!==void 0&&JG(s).length===0?{adapt:s,errors:[]}:r}o(HG,"parseAdaptFromSession");var F$e=mr("adapt-schema",HG);var YG=require("child_process");function WG(e){return Wce(e)??[]}o(WG,"statusEntries");function Wce(e){let t;try{t=(0,YG.execFileSync)("git",[...Vi,"status","--porcelain","-z","--untracked-files=all"],{env:En(),cwd:e,encoding:"utf-8",maxBuffer:16*1024*1024})}catch{return}let n=t.split("\0"),i=[];for(let r=0;r<n.length;r++){let s=n[r];if(s.length<4)continue;let a=s.slice(0,2);i.push({code:a,path:s.slice(3)}),(a[0]==="R"||a[0]==="C")&&r++}return i}o(Wce,"readStatusEntries");var J$e=2*1024*1024;var Pm=d.string().trim().min(1),Zce=d.object({cwd:Pm.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:d.array(Pm).min(1).describe("the command as separate arguments, run without a shell"),env:d.record(d.string(),d.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),Kce=d.object({file:Pm.describe("a file of the test's checkout, relative to its root"),line:Pm.describe("a line of that file, quoted exactly from where its command starts to its end")}),ZG=d.object({collected:d.boolean().describe("whether the repo's CI runs this test as it is"),steps:d.array(Kce).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:d.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:Zce.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:d.string().optional().describe("when not collected: why the repo's CI will not run it")});var ae=d.string().trim().min(1),rue=o(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},"skippedNeedsNoExpected"),iue=d.preprocess(rue,d.object({id:ae.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:ae.describe("one testable part of the requirement"),expected:ae.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:d.string().optional().describe("only when no test can check this clause here: why"),type:d.nativeEnum(js).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:d.string().optional().describe('its "METHOD /path", or the page / flow'),steps:d.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:d.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:d.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:d.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:d.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:d.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:d.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:d.string().optional().describe("the words of the spec, plan, ticket or PR description that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:d.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),XG=d.object({spec:d.string().optional().describe("file:line of a spec in the repository"),prDescription:d.boolean().optional().describe("or true when a pull request description says otherwise"),reference:d.string().optional().describe("or the key of an item the run was given, as listed"),says:ae.describe("what it says there, in its own words, copied exactly"),criterion:d.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`}),sue=d.object({id:ae.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:ae,source:d.nativeEnum(di).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:d.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:ae.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:d.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:d.array(d.object({reference:ae.regex(Bs).describe("the key of another uploaded document stating the same obligation"),says:ae.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:d.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:d.string().optional().describe("requirement-reference only: when the change does not touch this criterion at all (e.g. a later step of a staged rollout), why; give it no clauses"),unchanged:d.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:d.array(XG).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:d.array(iue)}),eV=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(eV||{}),oue=d.object({id:ae.describe('e.g. "F1"'),file:ae,line:d.number().optional(),claim:ae.describe("the defect, in one sentence"),severity:d.nativeEnum(ya),evidence:ae.describe("the code line, or the probe request and response, that shows it"),conflictsWith:d.array(ae).optional().describe("requirement or clause ids it violates"),keeps:d.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:d.nativeEnum(eV).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:d.string().optional().describe("only when the base already does this, in code the change left as it was: where the base does it (its file:line); such a defect gets no case"),needsApp:d.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)")}),aue=d.object({id:ae.describe('e.g. "Q1"'),question:ae.describe("what is unsettled, as a question the PR author can answer"),readings:d.array(ae).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:d.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:d.array(XG).optional().describe("when sources of the same rank disagree on it: each of them")}),cue=d.object({id:ae.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:d.nativeEnum(js).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:ae.describe('"METHOD /path", or the page / flow'),clause:d.string().optional().describe("the clause id this case checks"),finding:d.string().optional().describe("the finding id this case catches"),steps:ae.describe("what the test does"),expected:ae.describe("the expected outcome, from the clause"),mutates:d.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")}),uue=d.object({test:ae.describe("existing test file"),action:d.nativeEnum(Gi),reason:ae,mutates:d.boolean().optional().describe("true when the maintained test changes state"),clauses:d.array(ae).optional().describe("the clause ids this test checks")}),KG=d.array(dv).optional(),lue=d.object({components:d.preprocess(e=>KG.safeParse(e).success?e:void 0,KG).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:d.nativeEnum(Fi).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:d.record(d.string()).optional().describe("service \u2192 base URL of the running app"),health:d.object({url:d.string().optional(),command:d.string().optional(),output:d.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:d.string().optional().describe("command that stops the app"),dependencies:d.record(d.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:d.array(d.string()).optional().describe("what you changed in the recipe"),error:d.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:d.array(d.string()).optional().describe("change-broke-bringup: the changed files to blame"),login:d.object({username:ae,password:d.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:fv.optional()}),R0e=d.object({schemaVersion:d.literal(1),requirements:d.array(sue),findings:d.array(oue),cases:d.array(cue).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:d.array(aue).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:d.array(uue),journeys:d.array(MG).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:d.array(d.object({clause:ae,why:ae})).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"),unplannedComponents:d.array(d.object({components:d.array(ae).min(1).describe("changed components, as the change lists them"),why:ae})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:xA.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:lue.optional().describe("omit when no app was needed or none was started"),summary:ae.describe("one paragraph: what the change does and where the risk is")});var Mm=(n=>(n.Backend="backend",n.Ui="ui",n))(Mm||{});var Ca=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(Ca||{}),due=d.object({file:ae.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:d.nativeEnum(Mm),change:d.nativeEnum(Ca).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:d.array(d.string()).describe("the plan case ids this file tests, each with its own result under result.cases"),defect:d.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:d.object({requirement:ae.describe("the requirement or clause id the change deliberately alters"),line:ae.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"),result:d.object({exit:d.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:d.array(d.object({case:ae,status:d.nativeEnum(fr),runtimeTargets:ed.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:d.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"),failure:d.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:d.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:d.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")})).describe("one entry per covered case, from the runner's own output"),details:d.string().optional().describe("what failed and why, or why it was not run")}),assertions:d.array(d.object({case:ae,evidence:ae})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:d.array(d.object({name:ae.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:d.array(ae).describe("the plan case ids it checks")})).optional().describe("for a file you added or updated: each test function in it and the plan case ids it checks"),skyramp:d.object({draft:d.union([d.string(),d.array(d.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:d.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:d.array(ex).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:ae.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:ZG.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:ku.optional().describe(`for a file in ${Su}, 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 or trx to ${Cr}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),Aue=o(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},"oneTestIsTests"),pue=d.preprocess(Aue,d.object({description:ae.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:d.nativeEnum(ya).optional(),sourceFile:d.string().optional().describe("the app file at fault"),sourceLine:d.number().optional(),tests:d.array(ae).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:d.string().optional().describe("the plan's finding id, when it is one"),requirements:d.array(ae).optional().describe("the plan's requirement or clause ids it violates")})),x0e=d.object({schemaVersion:d.literal(1),tests:d.array(due),notWritten:d.array(d.object({case:ae,reason:ae,coveredBy:d.object({file:ae.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:ae.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"),journeys:d.array($m).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:d.object({command:d.string(),clean:d.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:d.array(d.object({package:ae,manifest:ae.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:ae.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:ae.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:d.array(ae).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:d.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"),commit:d.object({message:ae.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:ae.describe("at most 72 characters, following the repository's PR-title checks"),prBody:ae.describe("what the tests cover and what they found")}),report:d.object({summary:ae.describe("1-2 sentences for the PR author: does the change do what it says?"),issues:d.array(pue).describe("every defect the tests found"),nextSteps:d.array(d.string()),noTests:d.array(d.object({repository:ae,reason:ae.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")})});var $0e={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};var nV=(i=>(i.Requirement="requirement",i.PrDescription="pr_description",i.Code="code",i))(nV||{}),qt=d.string().trim().min(1),fue=d.object({expectation:qt.max(300).describe("the behavior this assertion pins, in words"),source:d.nativeEnum(nV),expected:qt.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),gue=d.object({file:qt.describe("path of the NEW test file you wrote, relative to its repository"),repository:qt.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:qt.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:ku.optional().describe(`for ${Su}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:d.array(qt).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:d.array(qt).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:d.array(fue).min(1)}),Lm=(n=>(n.Updated="updated",n.Deleted="deleted",n))(Lm||{}),tV=300,hue=d.object({file:qt.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:qt.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:d.nativeEnum(Lm),staleBecause:d.object({requirement:qt.describe("the requirement or clause id the change deliberately alters"),line:qt.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:d.preprocess(e=>typeof e=="string"?e.trim().slice(0,tV):e,qt.max(tV)).describe("what the change deliberately altered that made the test wrong")}),ax=d.object({schemaVersion:d.literal(1),tests:d.array(gue),maintained:d.array(hue).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:d.array(d.object({id:qt,reason:qt.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:d.array($m).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:d.array(d.object({journey:qt,missing:qt.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:d.object({command:d.string(),clean:d.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repository has one you can run; omit otherwise"),commitMessage:qt.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var jm="generate-unit.json";function Eue(e){let{value:t,error:n}=zt(e);if(n)return{errors:[n]};let{value:i,errors:r}=tr(ax,t);return r.length?{errors:r}:{output:i,errors:[]}}o(Eue,"parseGenerateUnitText");function Iue(e){return Eue(e.stdout)}o(Iue,"parseGenerateUnitFromSession");var hTe=mr("generate-unit-schema",(e,t)=>Iue(t));var Om=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,mTe=[[/\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+["']${Om}["']|\bimport\s+["']${Om}["']|require\(\s*["']${Om}["']\s*\)|\bimport\(\s*["']${Om}["']\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 GTe=new Set(["targeted_unit","existing_evidence_sufficient"]);var bue="triage.json";var NDe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),UDe={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 wue(e){let{value:t,error:n}=zt(e);if(n)return{errors:[n]};let{value:i,errors:r}=tr(xA,t);return r.length?{errors:r}:{triage:i,errors:[]}}o(wue,"parseTriageText");function Bue(e){return wue(e.stdout)}o(Bue,"parseTriageFromSession");var FDe=mr("triage-schema",(e,t)=>Bue(t));function Que(e){let t=e.inputs?.pipeline;return t?e.state.stages[t==="two-step"?"plan":"triage"]:e.state.stages.triage??e.state.stages.plan}o(Que,"triageDecider");function ux(e){if(Que(e)?.status==="passed")return Zo(sV.join(e.outputsDir,bue))}o(ux,"readTriage");function lx(e){return $j(pR(e.inputs,it(e,`${vA}.json`),ux(e)?.sutRequired))}o(lx,"revisionBlockReason");var PDe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);var pi=_e(require("fs")),Ys=_e(require("path")),G2=_e(require("crypto")),V2=require("child_process");var dx=require("child_process"),xu=_e(require("fs")),oV=_e(require("os")),zm=_e(require("path"));var kue={onPath:o(e=>(0,dx.spawnSync)("sh",["-c",`command -v ${e}`],{stdio:"ignore"}).status===0,"onPath"),run:o((e,t)=>(0,dx.spawnSync)(e[0],e.slice(1),{cwd:t,stdio:"ignore",timeout:6e4}).status??1,"run")},Vm={cleanup:o(()=>{},"cleanup")},Sue=new Set(["pnpm","yarn"]);function aV(e,t=oV.tmpdir(),n=kue){if(process.platform==="win32")return Vm;try{let i=jR(e);if(!Sue.has(i)||n.onPath(i)||!n.onPath("corepack"))return Vm;xu.mkdirSync(t,{recursive:!0});let r=xu.mkdtempSync(zm.join(t,"testbot-pm-")),s=o(()=>xu.rmSync(r,{recursive:!0,force:!0}),"cleanup");return n.run(["corepack","enable","--install-directory",r,i],e)!==0?(s(),Vm):{dir:r,cleanup:s}}catch{return Vm}}o(aV,"packageManagerShims");function cV(e,t=process.env){return e.dir?{...t,PATH:[e.dir,t.PATH].filter(Boolean).join(zm.delimiter)}:t}o(cV,"withShims");var LA=require("crypto");function sn(e){let t=Math.max(0,...(e.match(/`+/g)??[]).map(r=>r.length)),n="`".repeat(t+1),i=e.startsWith("`")||e.endsWith("`")?" ":"";return`${n}${i}${e}${i}${n}`}o(sn,"codeSpan");Ic();tv();Ic();var A_e=5*6e4,p_e=12*6e4;var I_e=["class TestbotProjectBrowsers {"," onBegin(config) {",' const projects = config.projects.map((p) => ({ browserName: p.use.browserName ?? p.use.defaultBrowserType ?? "chromium", channel: p.use.channel ?? null }));',' process.stdout.write("TESTBOT_PROJECT_BROWSERS " + JSON.stringify(projects) + "\\n");'," }"," printsToStdio() { return true; }","}","module.exports = TestbotProjectBrowsers;",""].join(`
155
+ `);var k_e=[...lR,"AWS_REGION","AWS_DEFAULT_REGION","AWS_ENDPOINT_URL","AWS_ENDPOINT_URL_BEDROCK_RUNTIME","AWS_ENDPOINT_URL_STS","AWS_SHARED_CREDENTIALS_FILE","AWS_CONFIG_FILE","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL"].filter((e,t,n)=>n.indexOf(e)===t);var iy=_e(t2());var DUe={jest:"jest",vitest:"vitest"};var dFe=new Set(["jest","vitest","npm-test","playwright"]);var kFe=5*6e4;function MAe(e){return tr(XR,e).errors}o(MAe,"validateAnalysisOutput");function r2(e,t=[]){let{value:n,error:i}=zt(e,t);if(i)return{errors:[i]};let r=MAe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}o(r2,"parseAnalysisText");function LAe(e,t=[]){return r2(e.stdout,t)}o(LAe,"parseAnalysisFromSession");var fPe=mr("analysis-schema",(e,t)=>LAe(t,e.secretValues));var kMe=Yf.rows.notRun(!0);var FA="kept, not ";var PA="(declined the planned ";function Tx(e){if(!e)return[];let t=[],n=0,i=0;for(let r=0;r<e.length;r++){let s=e[r];s==="("?n++:s===")"?n=Math.max(0,n-1):n===0&&s===";"&&e[r+1]===" "&&e[r-1]===")"&&(t.push(e.slice(i,r)),i=r+2)}return t.push(e.slice(i)),t.map(r=>{let s=r.trim();if(!s.endsWith(")"))return{expectation:s};let a=0;for(let c=s.length-1;c>=0;c--)if(s[c]===")")a++;else if(s[c]==="("&&--a===0){let u=s.slice(0,c).trim(),l=s.slice(c+1,-1).trim();return u&&l?{expectation:u,expected:l}:{expectation:s}}return{expectation:s}})}o(Tx,"assertionParts");var i2=new Set(["update","regenerate","delete"]);var SMe={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var s2=d.string().trim().min(1),Dx=d.object({schemaVersion:d.literal(1).optional(),businessCaseAnalysis:s2.describe("1-2 sentences: what this change means for a user, and whether the evidence shows it working"),issuesFound:d.array(d.object({description:s2,severity:d.string().optional().describe("critical | high | medium | low"),category:d.string().optional().describe("bug | lint | type | config"),sourceFile:d.string().optional(),sourceLine:d.number().optional(),findingId:d.string().optional(),requirementIds:d.array(d.string()).optional()})).describe("every real problem this run exposed \u2014 cause, file:line, severity"),nextSteps:d.array(d.string()).describe("concrete follow-ups the author can act on; required non-empty when a disclosure is BLOCKING")});function VAe(e){return tr(Dx,e).errors}o(VAe,"validateProseOutput");function zAe(e,t=[]){let{value:n,error:i}=zt(e.stdout,t);if(i)return{errors:[i]};let r=VAe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}o(zAe,"parseProseFromSession");var jMe=mr("report-schema",(e,t)=>zAe(t,e.secretValues));var o2="<!-- skyramp-testbot -->",a2=i2,qAe=new Set(["lint","type","config"]),c2={critical:0,high:1,medium:2,low:3},f2=new Set(["Pass","Fail"]);var Ux=o(e=>ko(oe().statusLabels,e),"statusLabel"),_x=o(e=>ko(oe().testTypeCellLabels,e),"testTypeLabel");function ze(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}o(ze,"escCell");function u2(e){return e.inferred?" (inferred)":""}o(u2,"inferredMark");function l2(e,t){return!e||!f2.has(e)?"\u2014":t?`${Ux(e)} (${ze(g2(t))})`:Ux(e)}o(l2,"maintStatus");function g2(e){let t=o(i=>{let r=i.indexOf(": ");return r<0?i:ko(oe().staged.maintenanceActions,i.slice(0,r))+i.slice(r)},"action");if(e.startsWith(FA))return oe().staged.keptNot+t(e.slice(FA.length));let n=e.indexOf(PA);return n<0?e:e.slice(0,n)+oe().staged.declinedPlanned+t(e.slice(n+PA.length))}o(g2,"declineNote");function d2(e){return e.category!==void 0&&qAe.has(e.category.toLowerCase())}o(d2,"isTooling");function A2(e,t){return(c2[(e.severity??"").toLowerCase()]??4)-(c2[(t.severity??"").toLowerCase()]??4)}o(A2,"bySeverity");function p2(e){return`- ${e.severity?`**[${ko(oe().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}`}o(p2,"issueLine");function JAe(e){let t=e.resultId?.split("#").slice(1).join("#");if(e.testType!=="unit"||!t)return;let n=t;try{n=decodeURIComponent(t)}catch{}let i=/^(.*?)(\[.*\])$/.exec(n);return i?{fn:i[1],kase:i[2]}:{fn:n}}o(JAe,"unitTestOf");var h2=o((e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,""),"samePath");function m2(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}o(m2,"videoLink");function Fx(e,t){return m2(e,n=>h2(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}o(Fx,"resultVideoLink");function Px(e,t){return m2(e,n=>h2(n.writtenAs??n.fileName,t))}o(Px,"journeyVideoLink");function HAe(e,t,n){return n?Fx(e,{fileName:t,repository:n}):Px(e,t)}o(HAe,"requirementVideoLink");function YAe(e){let t=[],n=new Map;for(let a of e.newTestsCreated)a.testType==="unit"&&n.set(a.fileName,[...n.get(a.fileName)??[],a.testId.split("::").slice(1).join("::")]);let i=new Map,r=o((a,c)=>(n.get(a??"")??[]).find(u=>u!==c&&_G(c,u)),"parentOf"),s=new Map;for(let a of e.testResults){let c=JAe(a),u=c&&!c.kase?r(a.fileName,c.fn):void 0;if(c&&u&&(c={fn:u,kase:`"${c.fn}"`}),c?.kase&&i.set(a,c.kase),!c){t.push({testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:a.details??"",...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}});continue}let l=`${a.fileName??""}#${c.fn}`,A=s.get(l);A||(A={row:{testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:"",test:c.fn,...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}},cases:[]},s.set(l,A),t.push(A.row)),A.cases.push(a)}for(let{row:a,cases:c}of s.values()){let u=c.filter(g=>g.status==="Fail"),l=c.filter(g=>g.status==="Pass").length,A=c.filter(g=>g.status==="Skipped").length;a.cases=c.length,a.status=u.length?"Fail":A?"Skipped":"Pass";let p=u[0];a.details=c.length===1?c[0].details??"":oe().staged.casesPassed(l,c.length,A)+(p?`; ${i.get(p)??""} ${p.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}o(YAe,"resultRows");function WAe(e){return Tx(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${sn(t.expected)}`)}o(WAe,"unitAssertions");function Nx(e){return e.newTestsCreated.some(t=>t.testType!=="unit")&&e.testResults.every(t=>t.status==="Skipped")&&e.testResults.some(t=>t.failureCause?.kind==="environment"&&t.failureCause.family==="app_not_started")}o(Nx,"nothingExecuted");function y2(e,t={}){let{audience:n,collapsed:i=!1,existingEvidence:r=[],requestedBy:s,sourcePullRequest:a}=t,c=n!=="testbot-pr",u=n!=="comment",l=n!=="testbot-pr",A=(e.requirements??[]).filter(P=>/^file-[a-f0-9]{16}-/i.test(P.id)).sort((P,re)=>re.id.length-P.id.length),p=o(P=>{let re=A.find(Z=>P.toLowerCase().startsWith(Z.id.toLowerCase()));return re?re.label+P.slice(re.id.length):P},"displayId"),g=[o2];if(a&&g.push(oe().staged.testsSourcePullRequest(sn(a)),""),s){let P=s.name.replace(/\s+/g," ").trim().replace(/[<>[\]()*_`\\|#]/g,"\\$&").replace(/@/g,"@\u200D");g.push(s.kind==="person"?oe().staged.requestedByPerson(P):oe().staged.requestedByPolicy(P),"")}e.notTranslated&&g.push(ko(oe().staged.notTranslated,e.notTranslated),"");let h=o(P=>{i?g.push("<details>",`<summary>${P}</summary>`,""):g.push(`### ${P}`)},"sectionStart"),y=o(()=>{i&&g.push("","</details>"),g.push("")},"sectionEnd");if(c){for(let P of e.businessCaseAnalysis.trim().split(/\r?\n/))g.push(`> ${P}`);g.push("")}if(Nx(e)&&g.push(oe().staged.noLiveApp(e.newTestsCreated.length),""),u&&e.newTestsCreated.length){let P=new Map;for(let ue of e.newTestsCreated){if(ue.testType!=="unit")continue;let be=(ue.testId.split("::").slice(1).join("::")||ue.testId).replace(/\[.*\]$/,""),H=P.get(ue.fileName)??{functions:new Set,endpoints:[],descriptions:new Map};ue.endpoint&&!H.endpoints.includes(ue.endpoint)&&H.endpoints.push(ue.endpoint);let V=ue.description?.trim()??"",ut=H.descriptions.get(be)??[];ut.includes(V)||ut.push(V),H.functions.add(be),H.descriptions.set(be,ut),P.set(ue.fileName,H)}let re=e.newTestsCreated.filter(ue=>ue.testType!=="unit"),Z=re.length+[...P.values()].reduce((ue,be)=>ue+be.functions.size,0);h(oe().testRecommendationsImplementedHeader(Z));for(let[ue,{functions:be,endpoints:H,descriptions:V}]of P){let ut=be.size;g.push(oe().staged.unitTestsInFile(`\`${ue}\``,ut,H.map(lt=>`\`${lt}\``).join(", ")),"");let Ze=new Map;for(let[lt,xt]of V){let on=xt.join("\0"),je=Ze.get(on)??{fns:[],descriptions:xt};je.fns.push(lt),Ze.set(on,je)}let vn=0;for(let{fns:lt,descriptions:xt}of Ze.values()){g.push(`${++vn}. ${lt.map(je=>`\`${je}\``).join(", ")}`);let on=[...new Set(xt.flatMap(je=>WAe(je)))];for(let je of on)g.push(` - ${je}`)}g.push("")}for(let ue of re){let be=ue.testId?sn(p(ue.testId)):_x(ue.testType),H=ue.fileName?` (\`${ue.fileName}\`)`:"",V=ue.endpoint?`
156
156
  \`${ue.endpoint}\``:"",ut=ue.description?`
157
157
  ${ue.description.trim()}`:"";g.push(`- ${be}${H}${V}${ut}`)}y()}let E=(e.testMaintenance??[]).filter(P=>a2.has(P.action));if(u&&E.length){h(oe().staged.testMaintenanceHeader),g.push(oe().maintenanceTableHeader),g.push("|-----------|----------|------|--------|--------|-------|");for(let P of E)g.push(`| ${ze(_x(P.testType))} | ${ze(P.endpoint)} | \`${ze(P.fileName)}\` | ${ze(P.description)} | ${l2(P.beforeStatus,P.beforeDetails)} | ${l2(P.afterStatus,P.afterDetails)} |`);y()}let C=o(P=>P.startsWith(FA)||P.includes(PA),"hasDeclineNote"),I=(e.testMaintenance??[]).filter(P=>C(P.afterDetails)&&(!a2.has(P.action)||!f2.has(P.afterStatus??"")));if(u&&I.length){h(oe().staged.declinedMaintenanceHeader);for(let P of I)g.push(`- \`${ze(P.fileName)}\`: ${ze(g2(P.afterDetails))}`);y()}if(u&&r.length){h(oe().staged.existingEvidenceHeader);let P=new Map;for(let re of r){let Z=`${re.check}\0${re.url??""}\0${re.revision??""}`;P.set(Z,[...P.get(Z)??[],re])}for(let[,[re,...Z]]of P){let ue=re.url?`[${sn(re.check)}](${re.url})`:sn(re.check);g.push(oe().staged.trustedCheckPassed(ue,re.revision?sn(re.revision.slice(0,7)):""),"");for(let be of[re,...Z])g.push(`- ${sn(be.behavior)}`);g.push("")}y()}if(u&&e.testResults.length){h(oe().staged.testResultsHeader);let P=YAe(e),re=P.some(H=>H.test),Z=P.some(H=>Fx(e,H)),ue=re?oe().staged.unitResultsTableHeader:oe().staged.resultsTableHeader;g.push(Z?`${ue} ${oe().columnVideo} |`:ue),g.push(`${re?"|---------|-----------|----------|------|-------|--------|---------|":"|---------|-----------|----------|--------|---------|"}${Z?"-------|":""}`);for(let H of P){let V=H.details.replace(/(\S+\.(?:py|ts|js|spec\.\w+))/gi,"`$1`"),ut=H.testId?sn(ze(p(H.testId))):"\u2014",Ze=re?` ${H.test?`\`${ze(H.test)}\``:""} | ${H.cases??""} |`:"",vn=Fx(e,H),lt=Z?` ${vn?oe().videoDownloadLink(vn):"\u2014"} |`:"";g.push(`| ${ut} | ${ze(_x(H.testType))} | ${ze(H.endpoint)} |${Ze} ${ze(Ux(H.status))} | ${ze(V)} |${lt}`)}let be=(e.testVideos??[]).find(H=>H.artifactsUrl)?.artifactsUrl;!Z&&be&&g.push("",oe().videosArtifactFallback(be)),y()}if(e.requirements?.length){let P=e.requirements.flatMap(H=>H.clauses),re=o(H=>H.status==="Pass"||H.status==="Passed, test not kept","passes"),Z=P.filter(re).length;h(oe().staged.requirementsHeader(Z,P.length));let ue=o(H=>ko(oe().staged.clauseStatuses,H.status),"status"),be=o(H=>(H.status==="Not tested"||H.status==="Passed, test not kept")&&H.notTested?`${ue(H)}: ${H.notTested}`:H.findings.length?`${ue(H)} \u2014 ${H.findings.join(", ")}`:ue(H),"result");if(u){g.push(oe().staged.requirementsTableHeader),g.push("|-------------|--------|-------|--------|");for(let H of e.requirements)H.clauses.forEach((V,ut)=>{let Ze=ut===0?`**${ze(H.label)}**${H.statement?` ${ze(H.statement)}`:""}`:"",vn=`${sn(ze(p(V.id)))}${u2(V)}${V.text?` ${ze(V.text)}`:""}`,lt=new Map;for(let je of V.tests){let Wt=je.fileName??p(je.testId),Ke=lt.get(Wt)??{fns:new Set};for(let Zt of je.functions)Ke.fns.add(Zt);Ke.video??=je.fileName?HAe(e,je.fileName,je.repository):void 0,lt.set(Wt,Ke)}let xt=lt.size?[...lt].map(([je,{fns:Wt,video:Ke}])=>`${sn(ze(je))}${Wt.size?` \u2014 ${[...Wt].map(Zt=>`\`${ze(Zt)}\``).join(", ")}`:""}${Ke?` ${oe().videoDownloadLink(Ke)}`:""}`).join("<br>"):"\u2014",on=H.source==="could-break"&&V.status==="Pass"?oe().staged.regressionGuard:"";g.push(`| ${Ze} | ${vn} | ${xt} | ${ze(be(V)+on)} |`)})}else{g.push(oe().staged.requirementsSummaryTableHeader),g.push("|-------------|-----------------|-------------|");for(let H of e.requirements){let V=H.clauses.filter(re).length,ut=H.clauses.filter(Ze=>!re(Ze)).map(Ze=>`${sn(ze(p(Ze.id)))}${u2(Ze)} ${ze(be(Ze))}`);g.push(`| **${ze(H.label)}**${H.statement?` ${ze(H.statement)}`:""} | ${V}/${H.clauses.length} | ${ut.join("<br>")||"\u2014"} |`)}}y()}if(u&&e.changes?.length&&!e.requirements?.length){let P=e.executionCoverage,re=P?oe().staged.coverageCaption(P.generated,P.modified,P.verified,P.executed):"";h(`${oe().staged.behaviourCoverageHeader}${re}`),g.push(oe().staged.coverageTableHeader),g.push("|-----------|--------|-----------|----------------|");for(let Z of e.changes){let ue=Z.testedBy.length?Z.testedBy.map(H=>`\`${ze(H)}\``).join(", "):Z.writtenBy.length?oe().staged.writtenNotRun:"\u2014",be=Z.maintainedBy.length?Z.maintainedBy.map(H=>`\`${ze(H)}\``).join(", "):"\u2014";g.push(`| ${ze(Z.text)} | \`${ze(Z.source)}\` | ${ue} | ${be} |`)}y()}if(e.userJourneys?.length){let P=e.userJourneys.filter(Z=>Z.status==="Pass"&&!Z.problems.length).length;h(`\u{1F9ED} User Journeys Covered (${P}/${e.userJourneys.length} walked end to end)`);let re=e.userJourneys.some(Z=>Px(e,Z.fileName));g.push(`| Journey | Test | Status | Notes |${re?` ${oe().columnVideo} |`:""}`),g.push(`|---------|------|--------|-------|${re?"-------|":""}`);for(let Z of e.userJourneys){let ue=Z.fileName?`\`${ze(Z.fileName)}\`${Z.test?` \u2014 ${ze(Z.test)}`:""}`:"\u2014",be=Z.source&&Z.source!=="inferred"?`; described in the ${Z.source==="spec"?"spec":"PR description"}`:"; inferred from the app",H=(Z.uncovered?`not covered: ${Z.uncovered}`:Z.problems.length?`does not walk it end to end: ${Z.problems.join("; ")}`:`from ${Z.entry}, ${Z.steps} steps`)+be,V=re?Px(e,Z.fileName):void 0;g.push(`| ${ze(Z.name)} | ${ue} | ${ze(Z.status)} | ${ze(H)} |${re?` ${V?oe().videoDownloadLink(V):"\u2014"} |`:""}`)}y()}if(l){let P=e.issuesFound.filter(Z=>!d2(Z)).sort(A2),re=e.issuesFound.filter(d2).sort(A2);if(P.length){h(oe().staged.issuesFoundHeader);for(let Z of P)g.push(p2(Z));y()}if(re.length){g.push(`### ${oe().configErrorsHeader}`);for(let Z of re)g.push(p2(Z));g.push("")}}let v=e.testPackages??[],_=e.dependencyChanges??[];if(v.length){g.push(oe().staged.testPackagesHeader,"");for(let P of v)g.push(`- ${oe().staged.testPackageLine(P.directory,P.entrypoint)}`);_.length||g.push(`- ${oe().staged.appManifestsUntouched}`),g.push("")}if(_.length){g.push(oe().staged.dependencyChangesHeader,"");for(let P of _)g.push(`- ${oe().staged.dependencyChangeLine(P.package,P.repository?`${P.repository}: ${P.manifest}`:P.manifest,(P.reason??"").replace(/\s+/g," ").trim())}`);g.push("")}let U=(e.caveats??[]).filter(P=>P.kind!=="tests-not-executed"||P.subject==="written-cases"||!Nx(e));if(U.length){g.push(oe().staged.caveatsHeader,"");for(let P of U)g.push(`- ${P.text}`);g.push("")}if(l&&e.nextSteps.length){g.push(oe().nextStepsHeader,"");for(let P of e.nextSteps)g.push(`- ${P.trim()}`);g.push("")}let Y=g.join(`
158
158
  `).replace(/\n{3,}/g,`
@@ -160,7 +160,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
160
160
  `).trim()+`
161
161
  `;if(n!=="testbot-pr"||Buffer.byteLength(Y,"utf8")<=64e3)return Y;let ee=o(P=>e.testResults.filter(re=>re.status===P).length,"counts"),pe=e.requirements?.flatMap(P=>P.clauses)??[],Oe=o(P=>Array.from(P.replace(/\s+/g," ").trim()).slice(0,300).join(""),"snippet"),ot=o(P=>Oe(P).replace(/[&<>\\`*_[\]{}()#+.!|~-]/g,re=>`&#${re.charCodeAt(0)};`),"plainSnippet");return[o2,...a?[oe().staged.testsSourcePullRequest(sn(Oe(a)))]:[],oe().staged.largeReportSummary(e.requirements?.length??0,pe.length,ee("Pass"),ee("Fail"),ee("Skipped")),oe().staged.largeReportNotice,...e.validation?[oe().staged.largeReportValidation(ot(e.validation.sufficiency),ot(e.validation.rationale),e.validation.gaps.length)]:[],...(e.caveats??[]).slice(0,3).map(P=>`> \u26A0\uFE0F ${ot(P.text)}`),...Nx(e)?[oe().staged.noLiveApp(e.newTestsCreated.length)]:[],...t.runUrl?[oe().staged.viewRun(t.runUrl)]:[],""].join(`
162
162
 
163
- `)}o(y2,"renderPrBody");var Hs=_e(require("fs")),Mx=_e(require("path"));var KAe="report.json",XAe="report-display.json",ALe={en:"English",ja:"Japanese"};function E2(e){let t=Mx.join(e,XAe);if(Hs.existsSync(t))try{return JSON.parse(Hs.readFileSync(t,"utf-8"))}catch{}let n=Mx.join(e,KAe);return Hs.existsSync(n)?JSON.parse(Hs.readFileSync(n,"utf-8")):void 0}o(E2,"readDisplayReport");function I2(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
163
+ `)}o(y2,"renderPrBody");var Hs=_e(require("fs")),Mx=_e(require("path"));var KAe="report.json",XAe="report-display.json",fLe={en:"English",ja:"Japanese"};function E2(e){let t=Mx.join(e,XAe);if(Hs.existsSync(t))try{return JSON.parse(Hs.readFileSync(t,"utf-8"))}catch{}let n=Mx.join(e,KAe);return Hs.existsSync(n)?JSON.parse(Hs.readFileSync(n,"utf-8")):void 0}o(E2,"readDisplayReport");function I2(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
164
164
  ${e}`:e}o(I2,"withRunMarker");var ba=_e(require("fs")),va=_e(require("path"));var sy=["build","chore","ci","docs","feat","fix","perf","refactor","revert","style","test"],epe=["build","ci","docs","feat","fix","perf","refactor","revert","style","test"],tpe="amannn/action-semantic-pull-request",Pn=o(e=>typeof e=="object"&&e!==null&&!Array.isArray(e),"isObj");function C2(e){return typeof e!="string"?!1:e.split("@")[0].split("/").some(n=>n.toLowerCase().split(/[-_.]/).includes("dco"))}o(C2,"usesDco");function v2(e){return typeof e=="string"&&(/\bdco-check\b/.test(e)||/signed-off-by/i.test(e))}o(v2,"scriptChecksDco");function npe(e){if(!Pn(e)||!Pn(e.jobs))return!1;for(let t of Object.values(e.jobs))if(Pn(t)){if(C2(t.uses))return!0;if(Array.isArray(t.steps)){for(let n of t.steps)if(Pn(n)&&(C2(n.uses)||v2(n.run)||Pn(n.with)&&Object.values(n.with).some(v2)))return!0}}return!1}o(npe,"workflowChecksDco");function Q2(e){let t=va.join(e,".github","workflows"),n;try{n=ba.readdirSync(t).filter(i=>/\.ya?ml$/i.test(i)).sort()}catch{return[]}return n.flatMap(i=>{try{return[{file:va.join(".github","workflows",i),doc:zi(ba.readFileSync(va.join(t,i),"utf-8"))}]}catch{return[]}})}o(Q2,"workflows");function rpe(e){return!Pn(e)||!Pn(e.jobs)?[]:Object.values(e.jobs).flatMap(t=>Pn(t)&&Array.isArray(t.steps)?t.steps.filter(Pn):[])}o(rpe,"steps");function ipe(e){let t=va.join(".github","dco.yml");if(ba.existsSync(va.join(e,t)))return{file:t};let n=Q2(e).find(i=>npe(i.doc));return n&&{file:n.file}}o(ipe,"signOffRule");var b2=o(e=>typeof e=="string"?e.split(/\r?\n/).map(t=>t.trim()).filter(Boolean):void 0,"inputList");function spe(e){for(let t of Q2(e)){let n=rpe(t.doc).find(s=>typeof s.uses=="string"&&s.uses.split("@")[0].trim().toLowerCase()===tpe);if(!n)continue;let i=Pn(n.with)?n.with:{},r=b2(i.scopes);return{file:t.file,types:b2(i.types)??sy,...r?.length?{scopes:r}:{},scopeRequired:i.requireScope===!0||String(i.requireScope).trim()==="true"}}}o(spe,"semanticPrTitleRule");var ope=["package.json",".commitlintrc",".commitlintrc.json",".commitlintrc.yaml",".commitlintrc.yml",".commitlintrc.js",".commitlintrc.cjs",".commitlintrc.mjs",".commitlintrc.ts",".commitlintrc.cts","commitlint.config.js","commitlint.config.cjs","commitlint.config.mjs","commitlint.config.ts","commitlint.config.cts","commitlint.config.mts"],ape=["type-enum","scope-enum","scope-empty","subject-case","header-max-length","body-max-line-length"];function k2(e){let t=[];for(let n of e)n==="@commitlint/config-conventional"||n==="@commitlint/config-angular"?t.push(n):t.length=0;return t}o(k2,"knownPresets");var cpe={Disabled:"0",Warning:"1",Error:"2"};function upe(e){return e.replace(/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g,t=>t.startsWith("/")?t.replace(/[^\r\n]/g," "):t)}o(upe,"withoutComments");function w2(e,t){let n=new RegExp(`["']?${t}["']?\\s*:\\s*`).exec(e);if(!n)return;let i=n.index+n[0].length;if(e[i]!=="[")return null;let r=0;for(let s=i;s<e.length;s++)if(e[s]==="[")r++;else if(e[s]==="]"&&--r===0){if(!/^\s*(?:as\s+const\s*)?(?:[,}]|$)/.test(e.slice(s+1)))return null;let a=e.slice(i,s+1).replace(/\bRuleConfigSeverity\.(\w+)/g,(u,l)=>cpe[l]??u).replace(/,(\s*\])/g,"$1"),c=a.replace(/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'/g,'""');try{return JSON.parse(c),zi(a)}catch{return null}}}o(w2,"ruleFromSource");var S2=o(e=>Object.fromEntries(ape.map(t=>[t,e(t)])),"pickRules");function B2(e,t){if(!Pn(t))return;let n=[].concat(t.extends??[]),i=Pn(t.rules)?t.rules:{};return{file:e,presets:k2(n),rules:S2(r=>i[r])}}o(B2,"configFromObject");function lpe(e){for(let t of ope){let n;try{n=ba.readFileSync(va.join(e,t),"utf-8")}catch{continue}if(/\.[cm]?[jt]s$/.test(t)){let r=upe(n),s=/(?:^|[,{])\s*["']?extends["']?\s*:\s*/.exec(r),a=s?w2(r.slice(s.index),"extends"):void 0,c=s?/^(["'])([^"']+)\1\s*(?:[,}]|$)/.exec(r.slice(s.index+s[0].length))?.[2]:void 0,u=Array.isArray(a)?a:c?[c]:[];return{file:t,presets:k2(u),rules:S2(l=>w2(r,l))}}let i;try{i=zi(n)}catch{return}if(t!=="package.json")return B2(t,i);if(Pn(i)&&Pn(i.commitlint))return B2(t,i.commitlint)}}o(lpe,"commitlintConfig");function Du(e){if(!Array.isArray(e))return;let t=Number(e[0]);if(t===1||t===2)return[String(e[1]??"always"),e[2]]}o(Du,"ruleWhenOn");var Lx=o(e=>Array.isArray(e)&&e.every(t=>typeof t=="string")?e:void 0,"stringList");function dpe(e,t){if(!e)return t?"not-capitalized":void 0;let[n,i]=e,r=typeof i=="string"?[i]:Lx(i)??[];if(n==="always"&&r.length===1&&r[0]==="lower-case")return"lower-case";if(n==="always"&&r.length===1&&r[0]==="sentence-case")return"sentence-case";if(n==="never"&&r.some(s=>["sentence-case","start-case","pascal-case","upper-case"].includes(s)))return"not-capitalized"}o(dpe,"subjectCaseOf");function Ape(e){let t=lpe(e);if(!t)return;let{file:n,rules:i}=t,r=t.presets.at(-1)==="@commitlint/config-angular",s=o(C=>t.presets.length>0&&i[C]===void 0,"preset"),a=Du(i["type-enum"]),c=a?.[0]==="always"?Lx(a[1]):s("type-enum")?r?epe:sy:void 0,u=c===void 0,l=c??sy;u&&console.warn(`[commit-rules] ${n}: allowed commit types could not be read; using a conventional header fallback. Additional preset rules may still reject it.`);let A=Du(i["scope-enum"]),p=A?.[0]==="always"?Lx(A[1]):void 0,g=o((C,I)=>{let v=Du(i[C]);return v?typeof v[1]=="number"?v[1]:void 0:s(C)?I:void 0},"limit"),h=dpe(Du(i["subject-case"]),s("subject-case")),y=g("header-max-length",r?72:100)??(u&&i["header-max-length"]===void 0?Vs:void 0),E=g("body-max-line-length",t.presets.includes("@commitlint/config-conventional")?100:void 0);return{file:n,types:l,...u?{typesFromFallback:!0}:{},...u&&!h&&i["subject-case"]===void 0?{fallbackSubjectCase:"not-capitalized"}:{},...p?.length?{scopes:p}:{},scopeRequired:Du(i["scope-empty"])?.[0]==="never",...Du(i["scope-empty"])?.[0]==="always"?{scopeForbidden:!0}:{},...h?{subjectCase:h}:{},...y?{headerMaxLength:y}:{},...E?{bodyMaxLineLength:E}:{}}}o(Ape,"commitlintRule");function R2(e){let t=ipe(e),n=Ape(e),i=spe(e);return{...t?{signOff:t}:{},...n?{commitlint:n}:{},...i?{prTitle:i}:{}}}o(R2,"readCommitRules");function ppe(e){let t=[e.commitlint,e.prTitle].filter(a=>!!a);if(!t.length)return;let n=t.map(a=>a.types).reduce((a,c)=>a.filter(u=>c.includes(u)));n.length||console.warn(`[commit-rules] ${t.map(a=>a.file).join(", ")}: no common commit type; using ${t[0].types.join(", ")} from ${t[0].file}. This may fail another rule.`);let i=t.map(a=>a.subjectCase),r=i.includes("lower-case")?"lower-case":i.find(a=>a!==void 0)??t.find(a=>a.fallbackSubjectCase)?.fallbackSubjectCase,s=Math.min(...t.map(a=>a.bodyMaxLineLength??1/0));return{rules:t,types:n.length?n:t[0].types,scopeRequired:t.some(a=>a.scopeRequired),...r?{subjectCase:r}:{},headerMaxLength:Math.min(Vs,...t.map(a=>a.headerMaxLength??1/0)),...Number.isFinite(s)?{bodyMaxLineLength:s}:{}}}o(ppe,"mergedHeaderRules");function oy(e,t){return e.scopeForbidden?!1:e.scopes?e.scopes.some(n=>{if(n===t)return!0;try{return new RegExp(`^(?:${n})$`).test(t)}catch{return!1}}):!0}o(oy,"allowsScope");function fpe(e,t){let n=e.find(s=>s.scopes)?.scopes??[],i=n.filter(s=>/^[\w./-]+$/.test(s)&&e.every(a=>oy(a,s)));if(!i.length)return e.every(s=>oy(s,"tests"))||console.warn(`[commit-rules] ${e.map(s=>s.file).join(", ")}: no usable required scope; using tests, which may fail the declared scope rules (${n.join(", ")}).`),"tests";let r=o(s=>t.some(a=>a.startsWith(`${s}/`)||a.split("/").slice(0,-1).includes(s)),"under");return[...i].filter(r).sort((s,a)=>a.length-s.length)[0]??i[0]}o(fpe,"pickScope");var x2=/^([A-Za-z][\w-]*)(?:\(([^)]*)\))?!?:\s*(.*)$/,gpe=o(e=>e.split(/(`.*?`|".*?"|'.*?')/).map((t,n)=>n%2?t:t.toLowerCase()).join(""),"lowerOutsideQuotes");function $2(e,t){return t==="lower-case"?gpe(e):t==="sentence-case"?e.charAt(0).toUpperCase()+e.slice(1):t==="not-capitalized"&&/^[A-Z]/.test(e)?e.replace(/^\S+/,n=>n.toLowerCase()):e}o($2,"withSubjectCase");function hpe(e,t){return $2(e.trim().replace(/\.+$/,"").trim()||"add tests",t)}o(hpe,"conformSubject");function T2(e,t){let[n,...i]=e.replace(/\s+$/,"").split(`
165
165
  `),r=x2.exec(n);return[t.commitlint,t.prTitle].every(s=>{if(!s)return!0;if(!s.typesFromFallback&&(!r||!s.types.includes(r[1]))||s.headerMaxLength&&n.length>s.headerMaxLength)return!1;let a=s.bodyMaxLineLength;if(a&&i.some(u=>u.length>a&&!/\bhttps?:\/\/\S+/.test(u)))return!1;let c=r?.[2];if(s.scopeRequired&&!c||c&&!oy(s,c)||r&&!r[3].trim())return!1;if(s.subjectCase){if(!r)return!1;let u=r[3],l=u.replace(/`.*?`|".*?"|'.*?'/g,"").trim();if(/^[\p{Ll}\p{Lu}\p{Lt}]/u.test(u)&&!/^\d/.test(l)&&$2(l,s.subjectCase)!==l)return!1}return!0})}o(T2,"matchesCommitRules");function mpe(e,t){if(e.length<=t)return e;let n=e.slice(0,t-1),i=n.lastIndexOf(" ");return`${(i>0?n.slice(0,i):n).replace(/[\s.,;:]+$/,"")}\u2026`}o(mpe,"fitSubject");function ype(e,t){if(e.length<=t)return[e];let n=/^\s*/.exec(e)?.[0]??"",i=[],r="";for(let s of e.trim().split(/\s+/))r&&r.length+1+s.length>t?(i.push(r),r=n+s):r?r=`${r} ${s}`:r=n+s;return r&&i.push(r),i}o(ype,"wrap");function D2(e,t,n){let i=ppe(t);if(!i)return e;let[r,...s]=e.replace(/\s+$/,"").split(`
166
166
  `),a=x2.exec(r.trim()),c=a&&[...sy,...i.types].some(v=>v.toLowerCase()===a[1].toLowerCase())?a:null,u=c?.[1].toLowerCase(),l=c?c[3]:r.replace(/^\s*Skyramp Testbot:\s*/i,""),A=c?.[2]?.trim()||void 0;A&&t.commitlint&&!t.commitlint.scopes&&(A=A.toLowerCase());let p=[u,"test","chore"].find(v=>!!v&&i.types.includes(v))??i.types[0],g=A&&i.rules.every(v=>oy(v,A))?A:void 0;!g&&i.scopeRequired&&(g=fpe(i.rules,n));let h=g?`${p}(${g}): `:`${p}: `,y=h+mpe(hpe(l,i.subjectCase),i.headerMaxLength-h.length),E=s.join(`
@@ -174,12 +174,12 @@ ${I.join(`
174
174
 
175
175
  ${n}`}o(ay,"withSignOff");function Ox(e){let t=/\b(claude|anthropic)\b/i;return e.split(`
176
176
  `).filter(i=>{let r=i.trim();return!(/^co-authored-by:/i.test(r)&&t.test(r))&&!(/^[^\w\s]*\s*generated (?:with|by) /i.test(r)&&t.test(r))}).join(`
177
- `).replace(/\s+$/,"")}o(Ox,"stripAgentAttribution");var cy="Skyramp-Pull-Request",_u="Skyramp-Delivery-Base",jx="Skyramp-Tested-Revision";var SLe=["%H","%P","%an","%ae","%ce",`%(trailers:key=${cy},valueonly,separator=%x2C)`,"%s",`%(trailers:key=${_u},valueonly,separator=%x2C)`,`%(trailers:key=${jx},valueonly,separator=%x2C)`];function _2(e,t){let n=e(["log","-1","--format=%B"]);if(!n.includes(`${cy}:`)&&!n.includes(`${_u}:`))return;let i=n.split(`
177
+ `).replace(/\s+$/,"")}o(Ox,"stripAgentAttribution");var cy="Skyramp-Pull-Request",_u="Skyramp-Delivery-Base",jx="Skyramp-Tested-Revision";var xLe=["%H","%P","%an","%ae","%ce",`%(trailers:key=${cy},valueonly,separator=%x2C)`,"%s",`%(trailers:key=${_u},valueonly,separator=%x2C)`,`%(trailers:key=${jx},valueonly,separator=%x2C)`];function _2(e,t){let n=e(["log","-1","--format=%B"]);if(!n.includes(`${cy}:`)&&!n.includes(`${_u}:`))return;let i=n.split(`
178
178
  `).filter(a=>!a.startsWith(`${_u}:`)).join(`
179
179
  `).trimEnd(),r=t?`${i}
180
180
  ${_u}: ${t}`:i;e(["log","-1","--format=%(trailers:key=Signed-off-by,valueonly)"]).split(`
181
- `).some(a=>a.trim().toLowerCase()===`${Ss} <${Yo}>`.toLowerCase())&&(r=ay(r,{name:Ss,email:Yo})),e(["-c",`user.name=${Ss}`,"-c",`user.email=${Yo}`,"commit","--amend","--allow-empty","-m",r])}o(_2,"amendDeliveryBase");var uy=_e(require("fs")),nr=_e(require("path"));var $Le=5*1024*1024;function Ipe(e){try{return uy.lstatSync(e),!0}catch{return!1}}o(Ipe,"lexists");function N2(e){let t=it(e,"adapt.json"),n=it(e,"finalize.json"),i=it(e,jm),r=new Map,s=o(A=>{let p=fd(e.inputs,A);if("error"in p)return;let g=r.get(p.source.path)??{source:p.source,paths:new Set};return r.set(p.source.path,g),{repo:g.source.path,paths:g.paths}},"pathsOf"),a=o((A,p)=>nr.relative(A,nr.resolve(A,p.trim())).replace(/\/+$/,""),"norm"),c=o((A,p)=>{let g=p?.trim()&&s(A);if(!g)return;let h=a(g.repo,p);g.paths.add(h);for(let y of["__init__.py","conftest.py"]){let E=nr.join(nr.dirname(h),y);uy.existsSync(nr.join(g.repo,E))&&g.paths.add(E)}},"addTest"),u=o((A,p)=>{if(typeof p!="string"||!p.trim())return;let g=s(A);if(!g)return;let h=a(g.repo,p);if(Rm(nr.join(g.repo,h)))return g.paths.add(h),{...g,rel:h}},"addEdited");for(let A of[...t?.items??[],...i?.tests??[],...i?.maintained??[]])c(A.repository,A.file);for(let A of n?.dependencies?.added??[]){let p=u(A.repository,A.manifest);if(p)for(let g of SG(p.repo,VR(p.repo,p.rel)))p.paths.add(g)}for(let A of n?.lint??[])for(let p of A.fixed??[])u(A.repository,p);for(let A of n?.support??[])u(A.repository,A.file);let l=it(e,zR)?.packages??[];for(let A of new Set(l.map(p=>p.repository))){let p=s(A),g=l.filter(h=>h.repository===A).map(h=>h.dir);if(p)for(let{path:h}of YG(p.repo)){let y=a(p.repo,h),E=nr.join(p.repo,y);qR(y,g)&&!$G(y)&&(!Ipe(E)||Rm(E))&&p.paths.add(y)}}return new Map([...r.values()].map(({source:A,paths:p})=>[A,[...p].filter(g=>g&&g!==".."&&!g.startsWith(`..${nr.sep}`)&&!hR(g))]))}o(N2,"deliverAllowlist");var F2=_e(require("fs"));var P2=2*1024*1024;function Cpe(e){let t=[];for(let n of e??[])if(n.state==="read")try{t.push({item:n,text:F2.readFileSync(QL(n),"utf-8")})}catch{}return t}o(Cpe,"readItemTexts");var MA=6,vpe=/[\p{L}\p{N}]+/gu,bpe=new RegExp("(?<=\\p{Ll})(?=\\p{Lu})|(?<=\\p{Lu})(?=\\p{Lu}\\p{Ll})","u");function Gx(e){let t=[];for(let n of e.matchAll(vpe)){let i=n.index;for(let r of n[0].split(bpe))t.push({word:r.toLowerCase(),start:i,end:i+r.length}),i+=r.length}return t}o(Gx,"wordsOf");var M2=o((e,t)=>e.slice(t,t+MA).map(n=>n.word).join(" "),"runAt");function U2(e){let t=Gx(e),n=new Set;for(let i=0;i+MA<=t.length;i++)n.add(M2(t,i));return n}o(U2,"runsOf");function L2(e,t=[]){let n=new Set(t.flatMap(i=>[...U2(i)]));return Cpe(e).map(({item:i,text:r})=>{let s=i.source==="other"?r:r.slice(r.indexOf(`
182
- `)+1||r.length),a=U2(s);for(let c of n)a.delete(c);return{name:bM(i.key,Sv([i])),key:i.key,runs:a,words:Gx(s).map(c=>c.word)}})}o(L2,"requirementTexts");var JLe=MA/2;var wpe=o(e=>e.criteria.size?`${e.text.name} ${[...e.criteria].sort((t,n)=>t-n).map(t=>`AC${t}`).join(", ")}`:e.text.name,"copyName");function Bpe(e,t){if(t.length===0)return[];let n=Gx(e),i=[];for(let r=0;r+MA<=n.length;r++){let s=M2(n,r),a=t.find(p=>p.runs.has(s));if(!a)continue;let c=n[r].start,u=n[r+MA-1].end,l=a.criteria?.get(s)??[],A=i.at(-1);if(A&&c<=A.end){if(A.end=Math.max(A.end,u),A.text===a)for(let p of l)A.criteria.add(p)}else i.push({start:c,end:u,text:a,criteria:new Set(l)})}return i.map(r=>({start:r.start,end:r.end,name:wpe(r)}))}o(Bpe,"copies");function ly(e,t){let n=e;for(let i of Bpe(e,t).reverse())n=`${n.slice(0,i.start)}(see ${i.name})${n.slice(i.end)}`;return n}o(ly,"withoutRequirementText");function Qpe(e,t,n){for(let i=t+1;i<e.length;i++){let r=e[i];if(r==="\\")i++;else{if(r===n)return i+1;if(r===`
181
+ `).some(a=>a.trim().toLowerCase()===`${Ss} <${Yo}>`.toLowerCase())&&(r=ay(r,{name:Ss,email:Yo})),e(["-c",`user.name=${Ss}`,"-c",`user.email=${Yo}`,"commit","--amend","--allow-empty","-m",r])}o(_2,"amendDeliveryBase");var uy=_e(require("fs")),nr=_e(require("path"));var DLe=5*1024*1024;function Ipe(e){try{return uy.lstatSync(e),!0}catch{return!1}}o(Ipe,"lexists");function N2(e){let t=it(e,"adapt.json"),n=it(e,"finalize.json"),i=it(e,jm),r=new Map,s=o(A=>{let p=fd(e.inputs,A);if("error"in p)return;let g=r.get(p.source.path)??{source:p.source,paths:new Set};return r.set(p.source.path,g),{repo:g.source.path,paths:g.paths}},"pathsOf"),a=o((A,p)=>nr.relative(A,nr.resolve(A,p.trim())).replace(/\/+$/,""),"norm"),c=o((A,p)=>{let g=p?.trim()&&s(A);if(!g)return;let h=a(g.repo,p);g.paths.add(h);for(let y of["__init__.py","conftest.py"]){let E=nr.join(nr.dirname(h),y);uy.existsSync(nr.join(g.repo,E))&&g.paths.add(E)}},"addTest"),u=o((A,p)=>{if(typeof p!="string"||!p.trim())return;let g=s(A);if(!g)return;let h=a(g.repo,p);if(Rm(nr.join(g.repo,h)))return g.paths.add(h),{...g,rel:h}},"addEdited");for(let A of[...t?.items??[],...i?.tests??[],...i?.maintained??[]])c(A.repository,A.file);for(let A of n?.dependencies?.added??[]){let p=u(A.repository,A.manifest);if(p)for(let g of SG(p.repo,VR(p.repo,p.rel)))p.paths.add(g)}for(let A of n?.lint??[])for(let p of A.fixed??[])u(A.repository,p);for(let A of n?.support??[])u(A.repository,A.file);let l=it(e,zR)?.packages??[];for(let A of new Set(l.map(p=>p.repository))){let p=s(A),g=l.filter(h=>h.repository===A).map(h=>h.dir);if(p)for(let{path:h}of WG(p.repo)){let y=a(p.repo,h),E=nr.join(p.repo,y);qR(y,g)&&!$G(y)&&(!Ipe(E)||Rm(E))&&p.paths.add(y)}}return new Map([...r.values()].map(({source:A,paths:p})=>[A,[...p].filter(g=>g&&g!==".."&&!g.startsWith(`..${nr.sep}`)&&!hR(g))]))}o(N2,"deliverAllowlist");var F2=_e(require("fs"));var P2=2*1024*1024;function Cpe(e){let t=[];for(let n of e??[])if(n.state==="read")try{t.push({item:n,text:F2.readFileSync(QL(n),"utf-8")})}catch{}return t}o(Cpe,"readItemTexts");var MA=6,vpe=/[\p{L}\p{N}]+/gu,bpe=new RegExp("(?<=\\p{Ll})(?=\\p{Lu})|(?<=\\p{Lu})(?=\\p{Lu}\\p{Ll})","u");function Gx(e){let t=[];for(let n of e.matchAll(vpe)){let i=n.index;for(let r of n[0].split(bpe))t.push({word:r.toLowerCase(),start:i,end:i+r.length}),i+=r.length}return t}o(Gx,"wordsOf");var M2=o((e,t)=>e.slice(t,t+MA).map(n=>n.word).join(" "),"runAt");function U2(e){let t=Gx(e),n=new Set;for(let i=0;i+MA<=t.length;i++)n.add(M2(t,i));return n}o(U2,"runsOf");function L2(e,t=[]){let n=new Set(t.flatMap(i=>[...U2(i)]));return Cpe(e).map(({item:i,text:r})=>{let s=i.source==="other"?r:r.slice(r.indexOf(`
182
+ `)+1||r.length),a=U2(s);for(let c of n)a.delete(c);return{name:bM(i.key,Sv([i])),key:i.key,runs:a,words:Gx(s).map(c=>c.word)}})}o(L2,"requirementTexts");var YLe=MA/2;var wpe=o(e=>e.criteria.size?`${e.text.name} ${[...e.criteria].sort((t,n)=>t-n).map(t=>`AC${t}`).join(", ")}`:e.text.name,"copyName");function Bpe(e,t){if(t.length===0)return[];let n=Gx(e),i=[];for(let r=0;r+MA<=n.length;r++){let s=M2(n,r),a=t.find(p=>p.runs.has(s));if(!a)continue;let c=n[r].start,u=n[r+MA-1].end,l=a.criteria?.get(s)??[],A=i.at(-1);if(A&&c<=A.end){if(A.end=Math.max(A.end,u),A.text===a)for(let p of l)A.criteria.add(p)}else i.push({start:c,end:u,text:a,criteria:new Set(l)})}return i.map(r=>({start:r.start,end:r.end,name:wpe(r)}))}o(Bpe,"copies");function ly(e,t){let n=e;for(let i of Bpe(e,t).reverse())n=`${n.slice(0,i.start)}(see ${i.name})${n.slice(i.end)}`;return n}o(ly,"withoutRequirementText");function Qpe(e,t,n){for(let i=t+1;i<e.length;i++){let r=e[i];if(r==="\\")i++;else{if(r===n)return i+1;if(r===`
183
183
  `&&n!=="`")return i}}return e.length}o(Qpe,"stringEnd");function kpe(e,t){let n=e.lastIndexOf(`
184
184
  `,t-1)+1;if(e.slice(n,t).trim()!=="")return!1;let i=e.slice(0,n).trimEnd();return i===""||i.endsWith(":")}o(kpe,"isDocstring");function Spe(e){let t=[],n=o(r=>(e.indexOf(`
185
185
  `,r)+1||e.length+1)-1,"lineEnd"),i=0;for(;i<e.length;){let r=e[i],s=e[i+1],a=i+1;if(r==="/"&&s==="*")a=e.indexOf("*/",i+2)<0?e.length:e.indexOf("*/",i+2)+2,t.push({start:i,end:a});else if(r==="/"&&s==="/"&&!/[:\w]/.test(e[i-1]??"")||r==="#"&&/^\s?$/.test(e[i-1]??"")&&!/[!{[]/.test(s??""))a=n(i),t.push({start:i,end:a});else if((r==='"'||r==="'")&&e.startsWith(r.repeat(3),i)){let c=e.indexOf(r.repeat(3),i+3);a=c<0?e.length:c+3,kpe(e,i)&&t.push({start:i,end:a})}else(r==='"'||r==="'"||r==="`")&&(a=Qpe(e,i,r));i=a}return t}o(Spe,"commentRanges");var Rpe=/\b(?:test|it|describe|context|suite|scenario|specify|Run|DisplayName)(?:\.\w+)*(?:\.each\s*(?:\((?:[^()]|\([^()]*\))*\)|`[^`]*`))?\s*\(\s*("(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|`(?:[^`\\]|\\.)*`)/g;function xpe(e,t){return[...e.matchAll(Rpe)].flatMap(n=>{if(t.some(r=>n.index>=r.start&&n.index<r.end))return[];let i=n.index+n[0].length;return[{start:i-n[1].length,end:i}]})}o(xpe,"titleRanges");function O2(e,t){if(t.length===0)return{content:e,cleaned:!1};let n=Spe(e),i=[];for(let c of n){let u=e.slice(c.start,c.end),l=ly(u,t);l!==u&&i.push({...c,text:l})}let r=xpe(e,n),s=new Set(r.map(c=>e.slice(c.start+1,c.end-1)));for(let c of r){let u=e[c.start],l=e.slice(c.start+1,c.end-1),A=ly(l,t);if(A===l)continue;let p=A;for(let g=2;s.has(p);g++)p=`${A} (${g})`;s.add(p),i.push({...c,text:`${u}${p}${u}`})}let a=e;for(let c of i.sort((u,l)=>l.start-u.start))a=`${a.slice(0,c.start)}${c.text}${a.slice(c.end)}`;return{content:a,cleaned:a!==e}}o(O2,"withoutRequirementTextInTestFile");function Tpe(e){if(!e.inputs.deliver)return{ok:!1,reasons:["deliver not requested (pass --deliver to push)"]};if(!e.platform?.supportsRemote)return{ok:!1,reasons:["deliver needs a remote platform driver (pass --runner-platform github)"]};let t=it(e,"finalize.json");return t?t.ready!==!0?{ok:!1,reasons:[`finalize reported ready:false \u2014 not pushing (blockers: ${(t.blockers??[]).slice(0,3).join("; ")||"unspecified"})`]}:{ok:!0,reasons:[]}:{ok:!1,reasons:["finalize.json not found \u2014 refusing to push unverified tests"]}}o(Tpe,"validateDeliverInput");function z2(e){return e.replace(/[^A-Za-z0-9._-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60)||"tests"}o(z2,"slug");var Dpe="skyramp-testbot/";function _pe(e,t){return t||`${Dpe}${z2(e)}-tests`}o(_pe,"testsBranchName");function Npe(e,t,n,i){let r=(e??[]).filter(a=>a.repository.toLowerCase()===t.toLowerCase());if(!r.length&&i){let a=i.repository,c=[i.targetId,a.provider,a.providerAccountId,a.providerRepositoryId,i.number,t.toLowerCase(),n];return(0,LA.createHash)("sha256").update(JSON.stringify(c)).digest("hex").slice(0,32)}let s=r.length?[...new Set(r.map(a=>`${a.repository.toLowerCase()}#${a.number}`))].sort():[`branch ${n}`];return(0,LA.createHash)("sha256").update(s.join(`
@@ -191,9 +191,9 @@ ${_u}: ${t}`:i;e(["log","-1","--format=%(trailers:key=Signed-off-by,valueonly)"]
191
191
  ${n}`}:{prFailure:"unknown",prDetail:t}}o(Vpe,"thrownFailure");async function zpe(e,t,n,i,r,s){let a=aV(i.path,e.runDir),c=process.env.PATH;a.dir&&(process.env.PATH=cV(a).PATH);try{return await qpe(e,t,n,i,r,s)}finally{a.dir&&(process.env.PATH=c),a.cleanup()}}o(zpe,"deliverOne");async function qpe(e,t,n,i,r,s){let a=i.slug,c,u=!1,l;try{let A=i.path,p=it(e,"finalize.json"),g=L2(e.inputs.requirementItems),h=R2(A),y=it(e,"write.json"),E=y?.commit?.message||it(e,"generate-unit.json")?.commitMessage,C=i.working,I=o(Fe=>Fe.split(`
192
192
  `)[0],"subjectOf"),v=o(Fe=>ly(Ox(Fe),g),"publicText"),_=o((Fe,Nt)=>C&&!!Nt&&v(Fe).trim()===v(Nt).trim(),"authored"),U=o((Fe,Nt,Mn)=>{let Xi=v(Fe);return Mn&&T2(Xi,Nt)?Xi:D2(Xi,Nt,r)},"conform"),Y=p?.commit?.message||n.commitMessage||"Skyramp Testbot: add tests",ee=U(Y,{commitlint:h.commitlint},_(Y,E)),pe=E2(e.outputsDir)??n,Oe=C?p?.pr?.title||n.prTitle||y?.commit?.prTitle:void 0,ot=Oe||Y,P=C?pe.prTitle:void 0,re=I(v(ot))===I(v(Y)),Z=(!C||!n.prTitle)&&re?pe.commitMessage:void 0,ue=P||Z||ot,be=y?.commit?.prTitle||(E?I(E):void 0),H=_(ot,be),V=h.prTitle?{prTitle:h.prTitle}:H&&Oe&&!re?{}:{commitlint:h.commitlint},ut=I(U(ue,V,H)),Ze={name:Ss,email:Yo},vn=!!h.signOff;if(!vn&&t.listCommitChecks){let Fe=s?.headSha??Yt(A,["rev-parse","HEAD"]);try{vn=(await t.listCommitChecks({repository:a,revision:Fe}))?.records.some(Mn=>Mn.name.trim().toLowerCase()==="dco"&&Mn.headSha===Fe&&(!Mn.repository||Mn.repository.toLowerCase()===a.toLowerCase()))??!1}catch{console.warn(`[deliver] could not read commit checks for ${a}`)}}let lt=e.inputs.deliverRemote||"origin",xt=j2(A,q2),on=j2(A,J2);if(xt&&!on)throw new Error(`${a}: the checkout records a merged base but not what it merged`);let je=xt?Vx(void 0,void 0,A):s?s.headBranch||Vx(e.inputs.headBranch,e.inputs.baseBranch,A):Vx(void 0,void 0,A),Wt=e.inputs.pullRequests;s?.prNumber!=null&&!Wt?.some(Fe=>Fe.repository.toLowerCase()===a.toLowerCase())&&(Wt=[...Wt??[],{repository:a,number:String(s.prNumber)}]);let Ke=Wt?.some(Fe=>Fe.repository.toLowerCase()===a.toLowerCase())?void 0:e.inputs.deliveryOrigin,Zt=xt||!Ke?on:void 0,gi=e.inputs.scheduledDelivery,an=gi?(0,LA.createHash)("sha256").update(JSON.stringify([gi,a.toLowerCase(),je])).digest("hex"):Zt?Upe(a,je,Zt):Npe(Wt,a,je,Ke),Wi=_pe(je,e.inputs.deliverBranch)+(gi?`-scheduled-${an}`:Zt?`-merge-${an}`:Ke?`-source-${Ke.number}-${an}`:""),ft=Ox(I2(y2(Ppe(pe,e,i),{audience:"testbot-pr",runUrl:e.inputs.skyrampRunUrl??t.runUrl,requestedBy:e.inputs.requestedBy,sourcePullRequest:Ke&&`${Ke.repository.namespace}/${Ke.repository.name}#${Ke.number}`}),e.inputs.skyrampRunUrl))+`
193
193
  `,rr=s?"pr-body.md":`pr-body-${z2(a)}.md`,hi=Ys.join(e.outputsDir,rr);pi.writeFileSync(hi,ft);let Zi=Yt(A,["rev-parse","HEAD"]),Ws=xt??Zi;Yt(A,["checkout","-B",Wi]),c=Wi,Yt(A,["reset"]);for(let Fe of r)Fpe(Ys.join(A,Fe),g);let mi=[];for(let Fe of r)try{Yt(A,["--literal-pathspecs","add","--",Fe])}catch{mi.push(Fe)}try{Yt(A,["diff","--cached","--quiet"])}catch{try{let Fe=Yt(A,["interpret-trailers","--trailer",`${cy}: ${an}`,"--trailer",`${_u}: ${Zi}`,"--trailer",`${jx}: ${Ws}`],`${ee}
194
- `),Nt=vn?ay(Fe,Ze):Fe;Yt(A,["-c",`user.name=${Ze.name}`,"-c",`user.email=${Ze.email}`,"commit","-m",Nt])}catch(Fe){throw new dy(Fe)}u=!0}l=Yt(A,["rev-parse","HEAD"]);let Ki,bn=xt??s?.headSha;if(u&&bn&&bn!==Zi){let Fe=!1;try{Yt(A,["checkout","-q","-B",c,bn]),Fe=!0,Yt(A,["-c",`user.name=${Ze.name}`,"-c",`user.email=${Ze.email}`,"cherry-pick","--keep-redundant-commits",l]),Fe=!1,_2(Nt=>Yt(A,Nt),bn),l=Yt(A,["rev-parse","HEAD"])}catch(Nt){try{Yt(A,["cherry-pick","--abort"])}catch{}Yt(A,["checkout","-q","-B",c,l]);let Mn=Yl(So(Nt),1/0);if(xt&&!Fe)throw Nt;if(xt)return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:lt,base:je,committed:u,commitSha:l,pushed:!1,prAction:"skipped",prTitle:ut,unstaged:mi,reason:`the tests do not apply to ${je} at ${xt.slice(0,12)} without the merged revisions (${Mn}), so no tests PR was opened`}};Ki=`tests committed on the checkout's merge commit (re-cut onto ${bn.slice(0,12)} failed: ${Mn})`}}let Zs=s?{}:{repositoryPath:A,repoSlug:a,devPr:null};if(!u){let Fe=await t.markTestsPrUnchanged({branch:c,...Zs});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:lt,base:je,committed:!1,commitSha:l,pushed:!1,prAction:Fe.action==="unchanged"?"unchanged":"skipped",prUrl:Fe.url,prTitle:ut,unstaged:mi,reason:Fe.action==="unchanged"?"no test changes to commit \u2014 existing tests PR annotated as unchanged":"no test changes to commit \u2014 nothing pushed, no PR opened"}}}let vt=await t.publishTestsPr({repositoryPath:A,...Zs,remote:lt,branch:c,base:je,commitSha:l,title:ut,bodyFile:hi,mode:e.inputs.deliverMode,deliveryOwner:an,...e.inputs.firstQualification?{firstQualification:!0}:{},runUrl:e.inputs.skyrampRunUrl,signal:e.signal,deadlineMs:e.deadlineMs});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:lt,base:vt.base,requestedBase:je,committed:u,commitSha:l,pushed:vt.pushed,...vt.pushedCommits?{pushedCommits:vt.pushedCommits}:{},...vt.deliveredCommit?{deliveredCommit:vt.deliveredCommit}:{},prAction:vt.action,...vt.retargetedAs?{retargetedAs:vt.retargetedAs}:{},prUrl:vt.url,prTitle:ut,...vt.failure?{prFailure:vt.failure,prDetail:vt.detail}:{},...Ki?{cutNote:Ki}:{},...vt.action==="skipped"&&vt.detail?{reason:vt.detail}:{},unstaged:mi}}}catch(A){return{thrown:!0,record:{schemaVersion:1,repository:a,branch:c,committed:u,commitSha:l,pushed:!1,prAction:"failed",...Vpe(A),unstaged:[]}}}}o(qpe,"deliverRepository");var fOe={name:"deliver",timeoutMinutes:5,execute:Lpe,validateInput:o(e=>{let t=lx(e);return t?{ok:!1,reasons:[t]}:Tpe(e)},"validateInput"),requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var H2=_e(require("fs"));var Jpe="SKYRAMP_AZURE_SUPERVISED",Hpe=3;function Ype(e,t=process.env){t[Jpe]==="1"?H2.writeSync(Hpe,`${JSON.stringify(e)}
194
+ `),Nt=vn?ay(Fe,Ze):Fe;Yt(A,["-c",`user.name=${Ze.name}`,"-c",`user.email=${Ze.email}`,"commit","-m",Nt])}catch(Fe){throw new dy(Fe)}u=!0}l=Yt(A,["rev-parse","HEAD"]);let Ki,bn=xt??s?.headSha;if(u&&bn&&bn!==Zi){let Fe=!1;try{Yt(A,["checkout","-q","-B",c,bn]),Fe=!0,Yt(A,["-c",`user.name=${Ze.name}`,"-c",`user.email=${Ze.email}`,"cherry-pick","--keep-redundant-commits",l]),Fe=!1,_2(Nt=>Yt(A,Nt),bn),l=Yt(A,["rev-parse","HEAD"])}catch(Nt){try{Yt(A,["cherry-pick","--abort"])}catch{}Yt(A,["checkout","-q","-B",c,l]);let Mn=Yl(So(Nt),1/0);if(xt&&!Fe)throw Nt;if(xt)return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:lt,base:je,committed:u,commitSha:l,pushed:!1,prAction:"skipped",prTitle:ut,unstaged:mi,reason:`the tests do not apply to ${je} at ${xt.slice(0,12)} without the merged revisions (${Mn}), so no tests PR was opened`}};Ki=`tests committed on the checkout's merge commit (re-cut onto ${bn.slice(0,12)} failed: ${Mn})`}}let Zs=s?{}:{repositoryPath:A,repoSlug:a,devPr:null};if(!u){let Fe=await t.markTestsPrUnchanged({branch:c,...Zs});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:lt,base:je,committed:!1,commitSha:l,pushed:!1,prAction:Fe.action==="unchanged"?"unchanged":"skipped",prUrl:Fe.url,prTitle:ut,unstaged:mi,reason:Fe.action==="unchanged"?"no test changes to commit \u2014 existing tests PR annotated as unchanged":"no test changes to commit \u2014 nothing pushed, no PR opened"}}}let vt=await t.publishTestsPr({repositoryPath:A,...Zs,remote:lt,branch:c,base:je,commitSha:l,title:ut,bodyFile:hi,mode:e.inputs.deliverMode,deliveryOwner:an,...e.inputs.firstQualification?{firstQualification:!0}:{},runUrl:e.inputs.skyrampRunUrl,signal:e.signal,deadlineMs:e.deadlineMs});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:lt,base:vt.base,requestedBase:je,committed:u,commitSha:l,pushed:vt.pushed,...vt.pushedCommits?{pushedCommits:vt.pushedCommits}:{},...vt.deliveredCommit?{deliveredCommit:vt.deliveredCommit}:{},prAction:vt.action,...vt.retargetedAs?{retargetedAs:vt.retargetedAs}:{},prUrl:vt.url,prTitle:ut,...vt.failure?{prFailure:vt.failure,prDetail:vt.detail}:{},...Ki?{cutNote:Ki}:{},...vt.action==="skipped"&&vt.detail?{reason:vt.detail}:{},unstaged:mi}}}catch(A){return{thrown:!0,record:{schemaVersion:1,repository:a,branch:c,committed:u,commitSha:l,pushed:!1,prAction:"failed",...Vpe(A),unstaged:[]}}}}o(qpe,"deliverRepository");var hOe={name:"deliver",timeoutMinutes:5,execute:Lpe,validateInput:o(e=>{let t=lx(e);return t?{ok:!1,reasons:[t]}:Tpe(e)},"validateInput"),requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var H2=_e(require("fs"));var Jpe="SKYRAMP_AZURE_SUPERVISED",Hpe=3;function Ype(e,t=process.env){t[Jpe]==="1"?H2.writeSync(Hpe,`${JSON.stringify(e)}
195
195
  `):process.stdout.write(e.command!==void 0?`${e.command}
196
- `:e.text??"")}o(Ype,"writeFrame");function Wpe(e){Ype({command:e})}o(Wpe,"writeAzureCommand");function Y2(e){return e.replace(/%/g,"%AZP25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Y2,"escapeData");function Zpe(e){return Y2(e).replace(/;/g,"%3B").replace(/]/g,"%5D")}o(Zpe,"escapeProperty");function Kpe(e,t,n){let i=Object.entries(t).map(([r,s])=>`${r}=${Zpe(s)}`).join(";");return`##vso[${e}${i?` ${i}`:""}]${Y2(n)}`}o(Kpe,"vsoCommand");function Xpe(e){if(!e)return[];let t=e.split(/\r?\n/).filter(n=>n.trim()&&n!==e);return[e,...t].map(n=>Kpe("task.setsecret",{},n))}o(Xpe,"setSecretLines");function W2(e,t=Wpe){for(let n of Xpe(e))t(n)}o(W2,"azureSetSecret");function jA(e){return e.replace(/\/+$/,"")}o(jA,"withoutTrailingSlash");function zx(e){let t=new URL(e),n=t.pathname.split("/").filter(Boolean);if(n.length)return decodeURIComponent(n[n.length-1]);if(t.hostname.endsWith(".visualstudio.com"))return t.hostname.split(".")[0];throw new Error(`SYSTEM_COLLECTIONURI "${e}" names no organization`)}o(zx,"azureOrganization");var efe=/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,48}[A-Za-z0-9])?$/,tfe=/[\\/:*?"<>|;#${},+=[\]%\p{Cc}\p{Cf}]/u;function Z2(e){return e.length>0&&e.length<=64&&e===e.trim()&&!tfe.test(e)&&!/[^\S ]/u.test(e)&&!/^[._]/.test(e)&&!e.endsWith(".")}o(Z2,"isName");function Ay(e){return qx(`${e.namespace}/${e.name}`)}o(Ay,"azureRepositoryOfSource");function qx(e){let t=e.indexOf("/"),n=e.lastIndexOf("/"),i=e.slice(0,t),r=e.slice(t+1,n),s=e.slice(n+1);if(t<0||t===n||!efe.test(i)||!Z2(r)||!Z2(s))throw new Error(`"${e}" is not an Azure DevOps organization/project/repository`);return{organization:i,project:r,name:s}}o(qx,"azureRepositoryOf");function K2(e,t){let n=zx(e);if(n.toLowerCase()!==t.organization.toLowerCase())throw new Error(`${t.organization}/${t.project}/${t.name} is not in ${n}, the Azure DevOps organization this job runs in`)}o(K2,"inOrganization");function X2(e,t){return K2(e,t),`${jA(e)}/${encodeURIComponent(t.project)}/_git/${encodeURIComponent(t.name)}`}o(X2,"azureCloneUrl");function Jx(e,t){return K2(e,t),`${jA(e)}/${encodeURIComponent(t.project)}/_apis/git/repositories/${encodeURIComponent(t.name)}`}o(Jx,"azureRepositoryApi");var nfe="7.1",OA=class extends Error{constructor(n,i){super(n);this.status=i}status;static{o(this,"AzureRestError")}};async function Hx(e){let t=e.accept??"application/json",n=new URL(e.url);n.searchParams.has("api-version")||n.searchParams.set("api-version",nfe);let i=await(e.fetch??fetch)(n.toString(),{method:e.method??"GET",headers:{Authorization:`Bearer ${e.token}`,Accept:t,...e.body!==void 0?{"Content-Type":"application/json"}:{}},...e.body!==void 0?{body:JSON.stringify(e.body)}:{},redirect:"error",signal:AbortSignal.timeout(3e4)});if(!i.ok){let r=(await i.json().catch(()=>({}))).message;throw new OA(`Azure DevOps answered ${i.status}${typeof r=="string"?`: ${r}`:""}`,i.status)}return t!=="application/json"?Buffer.from(await i.arrayBuffer()):i.status===204?{}:await i.json()}o(Hx,"azureRest");function rfe(e){return`AUTHORIZATION: bearer ${e}`}o(rfe,"azureGitAuthorization");function eq(e,t){return{GIT_CONFIG_COUNT:"1",GIT_CONFIG_KEY_0:`http.${jA(e)}/.extraheader`,GIT_CONFIG_VALUE_0:rfe(t)}}o(eq,"azureGitAuthEnv");var ife="7.1-preview.1",sfe=".azure-pipelines/skyramp-testbot-v3.yml";function Yx(e){return e.GITHUB_ACTIONS!=="true"&&/^true$/i.test(e.TF_BUILD??"")}o(Yx,"isAzurePipelines");function rq(e,t={}){let n=o(p=>{let g=e[p];if(!g)throw new Error(`${p} is not set; the V3 runner handshake needs it`);return g},"read"),i=jA(e.SYSTEM_COLLECTIONURI??""),r=o(()=>zx(n("SYSTEM_COLLECTIONURI")),"organization"),s=e.SYSTEM_TEAMPROJECT,a=e.BUILD_REPOSITORY_NAME,c=e.BUILD_REPOSITORY_ID?.toLowerCase(),u=e.SYSTEM_ACCESSTOKEN,l=t.mask??(p=>W2(p)),A=o(p=>async()=>{if(!p)throw new Error("The job cannot request an OIDC token: the Testbot step's env must set SYSTEM_OIDCREQUESTURI to $(System.OidcRequestUri).");if(!u)throw new Error("The job cannot request an OIDC token: the Testbot step's env must set SYSTEM_ACCESSTOKEN to $(System.AccessToken).");let g=new URL(p);if(g.protocol!=="https:")throw new Error("SYSTEM_OIDCREQUESTURI is not an https URL");g.searchParams.set("api-version",ife);let h=await(t.fetch??fetch)(g.toString(),{method:"POST",headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json",Accept:"application/json"},body:"{}",redirect:"error",signal:AbortSignal.timeout(3e4)});if(!h.ok)throw new Error(`Azure DevOps refused the OIDC token request: ${h.status}`);let y=(await h.json().catch(()=>({}))).oidcToken;if(typeof y!="string"||!y)throw new Error("Azure DevOps's OIDC token response carried no token");return l(y),y},"mint");return{runnerPlatform:Yx(e)?"azure":void 0,workspace:e.BUILD_SOURCESDIRECTORY||void 0,serverUrl:i,apiUrl:i,repository:c&&s&&a&&i?{id:c,slug:`${r()}/${s}/${a}`}:void 0,runId:e.BUILD_BUILDID||void 0,runAttempt:e.SYSTEM_STAGEATTEMPT||void 0,job:e.SYSTEM_JOBNAME||void 0,execution(){let p=n("SYSTEM_STAGEATTEMPT");if(!/^[1-9][0-9]*$/.test(p))throw new Error(`SYSTEM_STAGEATTEMPT is "${p}", not a positive whole number`);let g=n("SYSTEM_COLLECTIONID").toLowerCase();if(!_c.test(g))throw new Error(`SYSTEM_COLLECTIONID is "${g}", not a GUID`);let h=n("BUILD_REPOSITORY_ID").toLowerCase();if(!_c.test(h))throw new Error(`BUILD_REPOSITORY_ID is "${h}", not a GUID`);let y=[r(),n("SYSTEM_TEAMPROJECT"),n("SYSTEM_DEFINITIONID"),n("BUILD_BUILDID")].map(encodeURIComponent).join("/");return{provider:"azure-devops",repository:{provider:"azure-devops",providerAccountId:g,providerRepositoryId:h},providerRunId:y,providerRunAttempt:Number(p),workflowRef:`${sfe}@${n("BUILD_SOURCEBRANCH")}`}},takeIdToken(){let p=e.SYSTEM_OIDCREQUESTURI;delete e.SYSTEM_OIDCREQUESTURI;let g=A(p);return()=>g()},takeSourceToken(){return delete e.SYSTEM_ACCESSTOKEN,u||void 0},webIdentity(){if(!e.SYSTEM_OIDCREQUESTURI?.trim()||!u)return;let p=A(e.SYSTEM_OIDCREQUESTURI);return{token:o(()=>p(),"token"),runId:e.BUILD_BUILDID}},v3RunsOnly:!0,assumesBedrockRole:!0,namesSourceToMcp:!0,runSettingsFromApp:!0,checkSourceName(p){Ay(p)},cloneUrl(p){return X2(i,Ay(p))},gitAuthEnv(p){return eq(i,p)},async pullRequest(p,g,h){let y=await Hx({token:await h.token(),url:`${Jx(i,Ay(p))}/pullrequests/${g}`,fetch:h.fetch}),E=y.status==="completed";return{...typeof y.title=="string"?{title:y.title}:{},...typeof y.description=="string"?{body:y.description}:{},...typeof y.status=="string"?{merged:E}:{},...E&&typeof y.lastMergeCommit?.commitId=="string"?{mergeCommit:y.lastMergeCommit.commitId}:{},...E&&typeof y.lastMergeSourceCommit?.commitId=="string"?{mergedHead:y.lastMergeSourceCommit.commitId}:{}}},async commit(p,g,h){let y;try{y=Jx(i,qx(p))}catch{return{lookup:"unknown"}}try{let E=await Hx({token:await h.token(),url:`${y}/commits/${encodeURIComponent(g)}`,fetch:h.fetch});return typeof E.commitId=="string"?{sha:E.commitId}:{lookup:"missing"}}catch(E){return{lookup:E instanceof OA&&(E.status===404||E.status===400)?"missing":"unknown"}}}}}o(rq,"azureRunnerHost");Ic();var ofe=5e3,Wx=/^(?!\.\.?$)[A-Za-z0-9._-]{1,100}$/;function afe(e){let t=Buffer.from(`x-access-token:${e}`).toString("base64");return Jl(t),`AUTHORIZATION: basic ${t}`}o(afe,"githubGitAuthorization");function iq(e,t={}){let n=o(u=>{let l=e[u];if(!l)throw new Error(`${u} is not set; the V3 runner handshake needs it`);return l},"read"),i=e.GITHUB_REPOSITORY_ID,r=e.GITHUB_REPOSITORY,s=(e.GITHUB_SERVER_URL||"https://github.com").replace(/\/+$/,""),a=(e.GITHUB_API_URL||"https://api.github.com").replace(/\/+$/,""),c=o(async(u,l)=>l.fetch(u,{headers:{Authorization:`Bearer ${await l.token()}`,Accept:"application/vnd.github+json"},redirect:"error",signal:AbortSignal.timeout(3e4)}),"get");return{runnerPlatform:e.GITHUB_ACTIONS==="true"?"github":void 0,workspace:e.GITHUB_WORKSPACE||void 0,serverUrl:s,apiUrl:a,repository:i&&r?{id:i,slug:r}:void 0,runId:e.GITHUB_RUN_ID||void 0,runAttempt:e.GITHUB_RUN_ATTEMPT||void 0,job:e.GITHUB_JOB||void 0,execution(){let u=n("GITHUB_RUN_ATTEMPT");if(!/^[1-9][0-9]*$/.test(u))throw new Error(`GITHUB_RUN_ATTEMPT is "${u}", not a positive whole number`);return{provider:"github",repository:{provider:"github",providerAccountId:n("GITHUB_REPOSITORY_OWNER_ID"),providerRepositoryId:n("GITHUB_REPOSITORY_ID")},providerRunId:n("GITHUB_RUN_ID"),providerRunAttempt:Number(u),workflowRef:n("GITHUB_WORKFLOW_REF")}},takeIdToken(){let u=e.ACTIONS_ID_TOKEN_REQUEST_URL,l=e.ACTIONS_ID_TOKEN_REQUEST_TOKEN;return delete e.ACTIONS_ID_TOKEN_REQUEST_URL,delete e.ACTIONS_ID_TOKEN_REQUEST_TOKEN,async A=>{if(!u||!l)throw new Error("The job cannot request an OIDC token. Give it the `id-token: write` permission.");let p=new URL(u);p.searchParams.set("audience",A);let g=await fetch(p,{headers:{Authorization:`Bearer ${l}`,Accept:"application/json"},redirect:"error",signal:AbortSignal.timeout(3e4)});if(!g.ok)throw new Error(`GitHub refused the OIDC token request: ${g.status}`);let h=(await g.json().catch(()=>({}))).value;if(typeof h!="string"||!h)throw new Error("GitHub's OIDC token response carried no token");return Jl(h),h}},webIdentity(){return!e.ACTIONS_ID_TOKEN_REQUEST_TOKEN?.trim()||!e.ACTIONS_ID_TOKEN_REQUEST_URL?.trim()?void 0:{token:t.getIDToken??(l=>KP(l)),runId:e.GITHUB_RUN_ID}},v3RunsOnly:!1,assumesBedrockRole:!1,namesSourceToMcp:!1,runSettingsFromApp:!1,checkSourceName(u){for(let l of[u.namespace,u.name])if(!Wx.test(l))throw new Error(`"${l}" is not a repository name`)},cloneUrl(u){return`${s}/${u.namespace}/${u.name}.git`},gitAuthEnv(u){return u?{GIT_CONFIG_COUNT:"1",GIT_CONFIG_KEY_0:`http.${s}/.extraheader`,GIT_CONFIG_VALUE_0:afe(u)}:{}},async pullRequest({namespace:u,name:l},A,p){if(![u,l].every(y=>Wx.test(y)))throw new Error("the repository name is not valid");let g=await c(`${a}/repos/${u}/${l}/pulls/${A}`,p);if(!g.ok)throw new Error(`GitHub answered ${g.status}`);let h=await g.json();return{...typeof h.title=="string"?{title:h.title}:{},...typeof h.body=="string"?{body:h.body}:{},...typeof h.merged=="boolean"?{merged:h.merged}:{},...h.merged===!0&&typeof h.merge_commit_sha=="string"?{mergeCommit:h.merge_commit_sha}:{},...h.merged===!0&&typeof h.head?.sha=="string"?{mergedHead:h.head.sha}:{}}},async commit(u,l,A){let[p,g,...h]=u.split("/");if(h.length||![p,g].every(y=>y!==void 0&&Wx.test(y)))return{lookup:"unknown"};try{let y=await c(`${a}/repos/${p}/${g}/commits/${encodeURIComponent(l)}`,A);if(y.status===404||y.status===422)return{lookup:"missing"};if(!y.ok)return{lookup:"unknown"};let E=await y.json();return typeof E.sha=="string"?{sha:E.sha}:{lookup:"missing"}}catch{return{lookup:"unknown"}}},async revokeToken(u,l){let A=await l(`${a}/installation/token`,{method:"DELETE",headers:{Authorization:`Bearer ${u}`,Accept:"application/vnd.github+json"},redirect:"error",signal:AbortSignal.timeout(ofe)});if(!A.ok&&A.status!==401)throw new Error(`GitHub answered ${A.status}`)}}}o(iq,"githubRunnerHost");function sq(e=process.env){return Yx(e)?rq(e):iq(e)}o(sq,"runnerHost");var jOe=Buffer.from("302a300506032b656e032100","hex");var cfe=10*6e4;function ufe(e,t){return e.getTime()-t.getTime()-cfe}o(ufe,"remainingBudgetMs");var oq="This attempt revoked its scoped GitHub credentials; it mints no more.",lfe=10*6e4;var dfe=o(e=>!!e&&Object.keys(e).length===1&&e.contents==="read","onlyReads"),Afe=3e4,pfe=3,aq=30,jr=class extends Error{constructor(n,i,r,s){super(n);this.status=i;this.code=r;this.path=s}status;code;path;static{o(this,"AppRefusal")}},fi=class extends Error{static{o(this,"AppUnreachable")}},Uu=class extends fi{static{o(this,"AppNotReady")}},Zx=class extends Uu{static{o(this,"RunnerProviderNotReady")}};function Kx(e){let t;try{t=new URL(e)}catch{throw new Error(`skyrampAppOrigin "${e}" is not a URL`)}if(t.protocol!=="https:"||t.origin!==e.replace(/\/+$/,""))throw new Error(`skyrampAppOrigin must be an https origin, got "${e}"`);return t.origin}o(Kx,"appOrigin");function uq(e,t){if(!_c.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}o(uq,"routeId");function ffe(e,t){return`${e.replace(/\/+$/,"")}/runs/${t}`}o(ffe,"skyrampRunPageUrl");function lq(e,t,n,i){throw t<500&&t!==429?new jr(e,t,n,i):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new Zx(e):t===503&&n==="RUN_NOT_READY"?new Uu(e):new fi(e)}o(lq,"refusedOrUnreachable");async function dq(e,t,n,i,r,s=1/0){let a=Kx(e.origin),c=`The time limit for ${t} ${n} was reached`,u,l=0;for(let A=1;A<=pfe||u instanceof Uu;A+=1){if(u instanceof Uu){if(l===aq)throw u;l+=1,A-=1,e.log?.(`${u.message}; trying again (${l} of ${aq}).`),await new Promise(p=>setTimeout(p,Math.max(0,Math.min(e.readyWaitMs??1e4,s-Date.now()))))}else A>1&&await new Promise(p=>setTimeout(p,Math.max(0,Math.min((e.retryDelayMs??2e3)*(A-1),s-Date.now()))));if(Date.now()>=s)throw new fi(c);try{let p,g=await(Number.isFinite(s)?Promise.race([e.idToken(a),new Promise((y,E)=>{p=setTimeout(()=>E(new fi(c)),Math.max(1,s-Date.now()))})]).finally(()=>{p&&clearTimeout(p)}):e.idToken(a));if(Date.now()>=s)throw new fi(c);let h=await(e.fetch??fetch)(new URL(n,a).toString(),{...i(g),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(Afe,s-Date.now())))}).catch(y=>{throw new fi(y instanceof Error?y.message:String(y),{cause:y})});return await r(h)}catch(p){if(p instanceof jr||Date.now()>=s)throw p;u=p}}throw u}o(dq,"callWithRetries");function Aq(e,t,n,i,r){let s=i.headers.get("cf-ray");e.log?.(`Testbot V3: ${t} ${n} answered ${i.status}${s?`, cf-ray ${s}`:""}: ${r.replace(/\s+/g," ").slice(0,200)}`)}o(Aq,"logRefusal");function py(e,t,n,i,r){let s=t==="GET"?void 0:JSON.stringify(i),a=t==="PUT"&&/^\/api\/v1\/runner\/attempts\/[^/]+\/report$/.test(n)&&s!==void 0&&Buffer.byteLength(s,"utf8")>yg;if(a&&Buffer.byteLength(s,"utf8")>XM)throw new Error("The report exceeds the app's 16 MiB expanded report limit");let c=a?new Uint8Array((0,cq.gzipSync)(s)):s;if(a&&c.length>yg)throw new Error("The compressed report exceeds the app's 1 MiB report upload limit");return dq(e,t,n,o(l=>({method:t,headers:{Authorization:`Bearer ${l}`,"Content-Type":"application/json",Accept:"application/json",...a?{"Content-Encoding":"gzip"}:{}},body:c}),"request"),async l=>{let A=await l.text().catch(()=>""),p={};try{p=JSON.parse(A)}catch{}if(l.ok)return p.data;Aq(e,t,n,l,A);let g=p.error?.fields,h=typeof g?.path=="string"&&typeof g.reason=="string"?` at ${g.path}: ${g.reason}`:"",y=`The Skyramp app refused ${t} ${n}: ${l.status} ${p.error?.code??"no error code"}${h}`;return lq(y,l.status,p.error?.code,typeof g?.path=="string"?g.path:void 0)},r)}o(py,"callApp");function gfe(e,t,n){return dq(e,"GET",t,o(r=>({method:"GET",headers:{Authorization:`Bearer ${r}`,Accept:"application/octet-stream"}}),"request"),async r=>{if(!r.ok)return Aq(e,"GET",t,r,await r.text().catch(()=>"")),lq(`The Skyramp app refused GET ${t}: ${r.status}`,r.status);let s=Buffer.from(await r.arrayBuffer());if(s.length>n)throw new jr(`The Skyramp app answered GET ${t} with more than ${n} bytes`,r.status);return s})}o(gfe,"callAppBytes");var GA=class{constructor(t,n,i,r,s,a,c,u,l,A=[],p=[],g,h=!1){this.attemptId=t;this.attemptNumber=n;this.deadlineAt=i;this.manifest=r;this.deps=s;this.license=a;this.requestedBy=c;this.writeAllowed=u;this.claudeCodeVersion=l;this.deployedPins=A;this.statedPins=p;this.runSettings=g;this.credentialRelay=h}attemptId;attemptNumber;deadlineAt;manifest;deps;license;requestedBy;writeAllowed;claudeCodeVersion;deployedPins;statedPins;runSettings;credentialRelay;static{o(this,"V3Attempt")}budgetMs(t){return ufe(this.deadlineAt,t)}get skyrampRunUrl(){return ffe(Kx(this.deps.origin),this.manifest.runId)}send(t,n,i,r){return py(this.deps,t,n,i,r)}readBytes(t,n){return gfe(this.deps,t,n)}issuedTokens=[];closure;modelKey;modelCredentials=[];credentials={};revocation;token(){return this.cachedToken("run")}readOnlyToken(){return this.cachedToken("read")}async cachedToken(t){if(this.revocation)throw new Error(oq);let n=(this.deps.now??(()=>new Date))().getTime(),i=this.credentials[t],r=i&&await i.catch(()=>{});if(this.credentials[t]!==i)return(await this.credentials[t]).token;if(r&&r.expiresAt-n>=lfe)return r.token;if(this.revocation)throw new Error(oq);let s=t==="read",a=s?{schemaVersion:1,access:t}:{schemaVersion:1},c=s?"read-only":"scoped",u=this.send("POST",`/api/v1/runner/attempts/${this.attemptId}/credentials`,a).then(l=>{let A={...l,token:l.token??this.jobToken()};if(this.issuedTokens.push(A.token),this.deps.mask?.(A.token),A.anthropicApiKey&&this.deps.mask?.(A.anthropicApiKey),s&&l.token&&!dfe(A.permissions))throw new Error(`The Skyramp app was asked for a read-only GitHub token, but its token grants ${JSON.stringify(A.permissions??null)}`);!s&&!r&&A.anthropicApiKey&&(this.modelKey=A.anthropicApiKey),this.deps.onTokenGranted?.(t);let p=r?"Renewed":"Received";return l.token&&this.deps.log?.(`${p} ${c} GitHub credentials; they expire at ${A.expiresAt}.`),{token:A.token,expiresAt:l.token?new Date(A.expiresAt).getTime():Number.POSITIVE_INFINITY}},l=>{if(this.deps.onTokenRefused?.(l,t),!(l instanceof jr)||l.code!=="CREDENTIALS_UNAVAILABLE")throw l;let A=o(h=>[...new Set(h.map(y=>y.namespace))].join(", "),"unique"),p=this.manifest.sources.map(h=>h.repository);if(new Set(p.map(h=>h.providerAccountId)).size>1)throw new jr(`${l.message}. The run's repositories are on more than one GitHub account (${A(p)}), which Skyramp does not support yet.`,l.status,l.code);let g=A([...p,this.manifest.execution.repository]);throw new jr(`${l.message}. Check the Skyramp GitHub App installation on ${g}: it must be installed and not suspended, have access to these repositories, and have accepted the App's current permissions. Each account must also be connected to your Skyramp organization.`,l.status,l.code)});return this.credentials[t]=u,(await u).token}jobToken(){if(this.deps.sourceToken)return this.deps.sourceToken;throw new Error("The app answered the credentials request without a token, and the job gave Testbot none of its own: on Azure Pipelines, set SYSTEM_ACCESSTOKEN to $(System.AccessToken) in the Testbot step's env.")}sourceFetch(t){return t.fetch??this.deps.fetch??fetch}revokeTokens(t={}){let n=t.host??sq();return this.revocation??=n.revokeToken?this.revokeIssued(i=>n.revokeToken(i,this.sourceFetch(t))):Promise.resolve([]),this.revocation}async revokeIssued(t){let n=[...this.issuedTokens],i=Promise.all(n.map(a=>this.revokeOne(a,t)));await Promise.all(Object.values(this.credentials).map(a=>a.catch(()=>{})));let r=this.issuedTokens.filter(a=>!n.includes(a));return[...await i,...await Promise.all(r.map(a=>this.revokeOne(a,t)))].filter(a=>a!==void 0)}async revokeOne(t,n){try{await n(t);return}catch(i){return`token ${this.issuedTokens.indexOf(t)+1} of ${this.issuedTokens.length}: ${i instanceof Error?i.message:String(i)}`}}};async function pq(e,t,n){uq(e,"run id"),Kx(n.origin);let i=kv(e,t),r=`/api/v1/runner/runs/${e}/attempts`,s;try{s=await py(n,"POST",r,i)}catch(l){if(!(l instanceof jr&&l.status===400&&l.path==="$.statedPins"))throw l;i=kv(e,t,{statedPins:!1}),s=await py(n,"POST",r,i)}let a=CL(s);if(a.manifest.runId!==e)throw new Error(`The app answered the handshake of run ${e} with the manifest of another run (${a.manifest.runId})`);let c=a.manifest.sources.find(l=>l.repository.provider!==i.execution.provider);if(c)throw new Error(`The manifest of run ${e} names ${c.repository.namespace}/${c.repository.name} on ${c.repository.provider}, but this job runs on ${i.execution.provider}`);hfe(a.manifest,[...a.deployedRevisions??[],...a.statedRevisions??[]]),a.runToken&&n.mask?.(a.runToken);let u=a.runToken?{entitlements:a.entitlements??[],runToken:a.runToken}:void 0;return new GA(a.attempt.id,a.attempt.number,new Date(a.attempt.deadlineAt),a.manifest,n,u,a.requestedBy??void 0,a.writeAllowed,a.claudeCodeVersion??void 0,a.deployedRevisions??[],a.statedRevisions??[],a.runSettings,a.credentialRelay===!0)}o(pq,"startV3Attempt");function hfe(e,t){if(t.length===0)return;if(!oL(e))throw new Error(`The app pinned an attempt of a ${e.trigger.kind} run; only a scheduled run or unchosen manual run's retry is pinned to an earlier attempt's read`);let n=new Set(e.sources.map(r=>si(r.repository))),i=new Set;for(let r of t){let s=si(r.repository);if(!n.has(s))throw new Error(`The app pinned the attempt to repository ${r.repository.providerRepositoryId}, which is not a source of the run`);if(i.has(s))throw new Error(`The app pinned repository ${r.repository.providerRepositoryId} twice`);i.add(s)}}o(hfe,"checkAttemptPins");async function Xx(e,t){return mL.parse(await e.send("POST",`/api/v1/runner/attempts/${e.attemptId}/heartbeat`,{schemaVersion:1},t))}o(Xx,"heartbeatV3Attempt");async function fq(e,t=()=>new Date,n){if(e.closure)return e.closure;let i=await Xx(e,n).then(r=>yL(r,t())).catch(()=>null);return i&&(e.closure=i),i}o(fq,"closedV3Attempt");var R1e=10*6e4;var x1e=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var $1e=d.object({tests:d.object({placements:d.array(d.unknown()).optional()}).passthrough().optional()}).passthrough(),T1e=d.object({repository:wv,testType:d.string(),directory:d.string()}).passthrough();var D1e=d.object({report:d.object({language:d.string()}).passthrough()}).passthrough();var _1e=d.object({environment:d.object({components:d.array(d.unknown()).optional(),dependencies:d.array(d.unknown()).optional()}).passthrough()}).passthrough(),N1e=d.object({environment:d.object({offLimits:d.unknown().optional()}).passthrough()}).passthrough();var U1e=d.object({name:d.string().min(1),provision:d.literal("existing"),url:d.string().min(1),repository:wv.optional(),revisionUrl:d.string().min(1).optional()}).passthrough(),F1e=d.object({name:d.string().min(1),url:d.string().nullable(),versionUrl:d.string().nullable(),notes:d.string().nullable()}).passthrough();var P1e=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);function gq(e){let t=o(n=>e.testResults.filter(i=>i.status===n).length,"count");return{passed:t("Pass"),failed:t("Fail"),skipped:t("Skipped")}}o(gq,"statusCounts");function mfe(e){let{passed:t,failed:n,skipped:i}=gq(e);return t+n===0?{sufficiency:"insufficient",rationale:i>0?`Every test was skipped (${i}), so nothing was validated.`:"No test ran, so nothing was validated.",gaps:["No test ran against the frozen sources."],acceptedEvidence:[],actionRequired:[]}:{sufficiency:"sufficient",rationale:`${t+n} tests ran against the frozen sources: ${t} passed, ${n} failed${i?`, ${i} skipped`:""}.`,gaps:[],acceptedEvidence:[],actionRequired:[]}}o(mfe,"executedTestsValidation");function yfe(e,t){let n=e.map(c=>({result:c,repository:c.repository??t,path:c.fileName||c.testType})),i=new Map;for(let c of n){let u=`${c.repository}:${c.result.testType}:${c.path}`;i.set(u,(i.get(u)??0)+1)}let r=n.map(({result:c,repository:u,path:l})=>{let A=(i.get(`${u}:${c.testType}:${l}`)??0)>1;return c.resultId??Qv(u,c.testType,l,A&&c.endpoint||void 0)}),s=new Map;for(let c of r)s.set(c,(s.get(c)??0)+1);let a=new Set(r.filter(c=>s.get(c)===1));return n.map(({result:c,repository:u},l)=>{let A=r[l],p=A;if(s.get(A)>1&&a.has(A))for(let g=2;a.has(p)||p===A;g+=1)p=A.includes("#")?`${A}.${g}`:`${A}#${g}`;return a.add(p),{...c,repository:u,resultId:p}})}o(yfe,"withResultIds");function Efe({notTranslated:e,...t},n){let i=yfe(t.testResults,n);return{...t,testResults:i,...Ife(t,i,n),validation:bfe(t,Cfe(t,t.validation??mfe(t))),traceVersion:1}}o(Efe,"v3Report");function Ife(e,t,n){if(!e.testExecutionContexts)return{};let i=new Set,r=o(c=>{let u=c;for(let l=2;i.has(u);l+=1)u=`${c}#${l}`;return i.add(u),u},"unique"),s=[],a=new Map;for(let{repository:c,...u}of e.testExecutionContexts){let l=u.status==="not_run"?[]:t.filter(A=>A.fileName===u.test&&A.repository===(c?.trim()||n));l.length||s.push(u);for(let{resultId:A}of l){let p=a.get(A),g=p!==void 0&&s[p].cleanup.status==="failed"?s[p].cleanup:u.cleanup,h={...u,cleanup:g,test:A,resultId:A};p===void 0?a.set(A,s.push(h)-1):s[p]=h}}for(let c of s)c.resultId&&i.add(c.resultId);return{testExecutionContexts:s.map(c=>c.resultId?c:{...c,test:r(c.test.slice(0,512))}).slice(0,5e3)}}o(Ife,"linkedContexts");function Cfe(e,t){let{passed:n,failed:i}=gq(e);return t.sufficiency!=="sufficient"||n+i>0||t.acceptedEvidence.length>0?t:{...t,sufficiency:"insufficient",gaps:["No test ran and no existing evidence was accepted, so nothing was validated."]}}o(Cfe,"withEvidence");var vfe={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};function bfe(e,t){if(t.sufficiency==="sufficient")return t;let n=(e.caveats??[]).map(r=>vfe[r.kind]).filter(r=>r!==void 0),i=[...new Set(n)].filter(r=>!t.actionRequired.includes(r));return i.length?{...t,actionRequired:[...i,...t.actionRequired]}:t}o(bfe,"withModelProviderFailure");function wfe(e,t,n){let{language:i,report:r}=t;if(i==="en")return;let s={language:i,businessCaseAnalysis:r.businessCaseAnalysis},a=o((y,E,C)=>Array.isArray(y)&&Array.isArray(E)&&y.length===E.length?y.map(I=>({[C]:I[C]})):void 0,"rows"),c=e.validation;r.validation&&c&&c.rationale===n.validation.rationale&&JSON.stringify(c.gaps)===JSON.stringify(n.validation.gaps)&&r.validation.gaps.length===n.validation.gaps.length&&(s.validation={rationale:r.validation.rationale,gaps:[...r.validation.gaps]});let u=new Set((n.changes??[]).map(y=>y.id)),l=(r.changes??[]).filter(y=>u.has(y.id)).map(({id:y,text:E})=>({id:y,text:E}));l.length&&(s.changes=l);let A=a(r.issuesFound,n.issuesFound,"description");A&&(s.issuesFound=A);let p=a(r.newTestsCreated,n.newTestsCreated,"description");p&&(s.newTestsCreated=p);let g=a(r.testResults,n.testResults,"details");g&&(s.testResults=g);let h=a(r.caveats,n.caveats,"text");return h&&(s.caveats=h),s}o(wfe,"v3Display");async function hq(e,t){let n=rv([...e.issuedTokens,...t.secrets??[]]),i={...Efe(t.report,t.workingSlug),...t.notTranslated?{notTranslated:t.notTranslated}:{}},r=t.translated&&wfe(t.report,t.translated,i),s=o(c=>vL({manifest:e.manifest,attemptNumber:e.attemptNumber,checkedOut:t.sources.map(u=>({repository:u.repository,revision:u.revision})),firstQualification:t.firstQualification,generatedTests:Cc(t.delivery,n),producer:t.producer,report:Cc(c&&r?{...i,display:r}:i,n),githubWrites:t.githubWrites}),"build"),a=s(!0);r&&Buffer.byteLength(JSON.stringify(a),"utf8")>yg&&(a=s(!1)),await e.send("PUT",`/api/v1/runner/attempts/${e.attemptId}/report`,a)}o(hq,"uploadV3Report");async function mq(e,t){return uq(e.attemptId,"attempt id"),py(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,bL({reportUploaded:e.reportUploaded,recipeUploaded:e.recipeUploaded,revisionsUploaded:e.revisionsUploaded,cancelled:e.cause==="cancelled",timedOut:e.cause==="timed_out",setupFailed:e.cause==="setup_failed",checkoutFailed:e.cause==="checkout_failed"||e.cause==="merge_conflict"&&!e.conflict,mergeConflict:e.cause==="merge_conflict"?e.conflict:void 0,environmentUnverified:e.cause==="environment_unverified",runnerProviderNotReady:e.cause==="runner_provider_not_ready",credentialMissing:e.cause==="credential_missing",modelProviderDenied:e.cause==="model_provider_denied",modelProviderUnavailable:e.cause==="model_provider_unavailable"}))}o(mq,"endV3Attempt");0&&(module.exports={AppRefusal,AppUnreachable,AttemptEndReason,DeliveryStatus,GitHubWriteKind,NoReportCause,SourceProvider,V3Attempt,ValidationSufficiency,closedV3Attempt,endV3Attempt,heartbeatV3Attempt,startV3Attempt,uploadV3Report});
196
+ `:e.text??"")}o(Ype,"writeFrame");function Wpe(e){Ype({command:e})}o(Wpe,"writeAzureCommand");function Y2(e){return e.replace(/%/g,"%AZP25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Y2,"escapeData");function Zpe(e){return Y2(e).replace(/;/g,"%3B").replace(/]/g,"%5D")}o(Zpe,"escapeProperty");function Kpe(e,t,n){let i=Object.entries(t).map(([r,s])=>`${r}=${Zpe(s)}`).join(";");return`##vso[${e}${i?` ${i}`:""}]${Y2(n)}`}o(Kpe,"vsoCommand");function Xpe(e){if(!e)return[];let t=e.split(/\r?\n/).filter(n=>n.trim()&&n!==e);return[e,...t].map(n=>Kpe("task.setsecret",{},n))}o(Xpe,"setSecretLines");function W2(e,t=Wpe){for(let n of Xpe(e))t(n)}o(W2,"azureSetSecret");function jA(e){return e.replace(/\/+$/,"")}o(jA,"withoutTrailingSlash");function zx(e){let t=new URL(e),n=t.pathname.split("/").filter(Boolean);if(n.length)return decodeURIComponent(n[n.length-1]);if(t.hostname.endsWith(".visualstudio.com"))return t.hostname.split(".")[0];throw new Error(`SYSTEM_COLLECTIONURI "${e}" names no organization`)}o(zx,"azureOrganization");var efe=/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,48}[A-Za-z0-9])?$/,tfe=/[\\/:*?"<>|;#${},+=[\]%\p{Cc}\p{Cf}]/u;function Z2(e){return e.length>0&&e.length<=64&&e===e.trim()&&!tfe.test(e)&&!/[^\S ]/u.test(e)&&!/^[._]/.test(e)&&!e.endsWith(".")}o(Z2,"isName");function Ay(e){return qx(`${e.namespace}/${e.name}`)}o(Ay,"azureRepositoryOfSource");function qx(e){let t=e.indexOf("/"),n=e.lastIndexOf("/"),i=e.slice(0,t),r=e.slice(t+1,n),s=e.slice(n+1);if(t<0||t===n||!efe.test(i)||!Z2(r)||!Z2(s))throw new Error(`"${e}" is not an Azure DevOps organization/project/repository`);return{organization:i,project:r,name:s}}o(qx,"azureRepositoryOf");function K2(e,t){let n=zx(e);if(n.toLowerCase()!==t.organization.toLowerCase())throw new Error(`${t.organization}/${t.project}/${t.name} is not in ${n}, the Azure DevOps organization this job runs in`)}o(K2,"inOrganization");function X2(e,t){return K2(e,t),`${jA(e)}/${encodeURIComponent(t.project)}/_git/${encodeURIComponent(t.name)}`}o(X2,"azureCloneUrl");function Jx(e,t){return K2(e,t),`${jA(e)}/${encodeURIComponent(t.project)}/_apis/git/repositories/${encodeURIComponent(t.name)}`}o(Jx,"azureRepositoryApi");var nfe="7.1",OA=class extends Error{constructor(n,i){super(n);this.status=i}status;static{o(this,"AzureRestError")}};async function Hx(e){let t=e.accept??"application/json",n=new URL(e.url);n.searchParams.has("api-version")||n.searchParams.set("api-version",nfe);let i=await(e.fetch??fetch)(n.toString(),{method:e.method??"GET",headers:{Authorization:`Bearer ${e.token}`,Accept:t,...e.body!==void 0?{"Content-Type":"application/json"}:{}},...e.body!==void 0?{body:JSON.stringify(e.body)}:{},redirect:"error",signal:AbortSignal.timeout(3e4)});if(!i.ok){let r=(await i.json().catch(()=>({}))).message;throw new OA(`Azure DevOps answered ${i.status}${typeof r=="string"?`: ${r}`:""}`,i.status)}return t!=="application/json"?Buffer.from(await i.arrayBuffer()):i.status===204?{}:await i.json()}o(Hx,"azureRest");function rfe(e){return`AUTHORIZATION: bearer ${e}`}o(rfe,"azureGitAuthorization");function eq(e,t){return{GIT_CONFIG_COUNT:"1",GIT_CONFIG_KEY_0:`http.${jA(e)}/.extraheader`,GIT_CONFIG_VALUE_0:rfe(t)}}o(eq,"azureGitAuthEnv");var ife="7.1-preview.1",sfe=".azure-pipelines/skyramp-testbot-v3.yml";function Yx(e){return e.GITHUB_ACTIONS!=="true"&&/^true$/i.test(e.TF_BUILD??"")}o(Yx,"isAzurePipelines");function rq(e,t={}){let n=o(p=>{let g=e[p];if(!g)throw new Error(`${p} is not set; the V3 runner handshake needs it`);return g},"read"),i=jA(e.SYSTEM_COLLECTIONURI??""),r=o(()=>zx(n("SYSTEM_COLLECTIONURI")),"organization"),s=e.SYSTEM_TEAMPROJECT,a=e.BUILD_REPOSITORY_NAME,c=e.BUILD_REPOSITORY_ID?.toLowerCase(),u=e.SYSTEM_ACCESSTOKEN,l=t.mask??(p=>W2(p)),A=o(p=>async()=>{if(!p)throw new Error("The job cannot request an OIDC token: the Testbot step's env must set SYSTEM_OIDCREQUESTURI to $(System.OidcRequestUri).");if(!u)throw new Error("The job cannot request an OIDC token: the Testbot step's env must set SYSTEM_ACCESSTOKEN to $(System.AccessToken).");let g=new URL(p);if(g.protocol!=="https:")throw new Error("SYSTEM_OIDCREQUESTURI is not an https URL");g.searchParams.set("api-version",ife);let h=await(t.fetch??fetch)(g.toString(),{method:"POST",headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json",Accept:"application/json"},body:"{}",redirect:"error",signal:AbortSignal.timeout(3e4)});if(!h.ok)throw new Error(`Azure DevOps refused the OIDC token request: ${h.status}`);let y=(await h.json().catch(()=>({}))).oidcToken;if(typeof y!="string"||!y)throw new Error("Azure DevOps's OIDC token response carried no token");return l(y),y},"mint");return{runnerPlatform:Yx(e)?"azure":void 0,workspace:e.BUILD_SOURCESDIRECTORY||void 0,serverUrl:i,apiUrl:i,repository:c&&s&&a&&i?{id:c,slug:`${r()}/${s}/${a}`}:void 0,runId:e.BUILD_BUILDID||void 0,runAttempt:e.SYSTEM_STAGEATTEMPT||void 0,job:e.SYSTEM_JOBNAME||void 0,execution(){let p=n("SYSTEM_STAGEATTEMPT");if(!/^[1-9][0-9]*$/.test(p))throw new Error(`SYSTEM_STAGEATTEMPT is "${p}", not a positive whole number`);let g=n("SYSTEM_COLLECTIONID").toLowerCase();if(!_c.test(g))throw new Error(`SYSTEM_COLLECTIONID is "${g}", not a GUID`);let h=n("BUILD_REPOSITORY_ID").toLowerCase();if(!_c.test(h))throw new Error(`BUILD_REPOSITORY_ID is "${h}", not a GUID`);let y=[r(),n("SYSTEM_TEAMPROJECT"),n("SYSTEM_DEFINITIONID"),n("BUILD_BUILDID")].map(encodeURIComponent).join("/");return{provider:"azure-devops",repository:{provider:"azure-devops",providerAccountId:g,providerRepositoryId:h},providerRunId:y,providerRunAttempt:Number(p),workflowRef:`${sfe}@${n("BUILD_SOURCEBRANCH")}`}},takeIdToken(){let p=e.SYSTEM_OIDCREQUESTURI;delete e.SYSTEM_OIDCREQUESTURI;let g=A(p);return()=>g()},takeSourceToken(){return delete e.SYSTEM_ACCESSTOKEN,u||void 0},webIdentity(){if(!e.SYSTEM_OIDCREQUESTURI?.trim()||!u)return;let p=A(e.SYSTEM_OIDCREQUESTURI);return{token:o(()=>p(),"token"),runId:e.BUILD_BUILDID}},v3RunsOnly:!0,assumesBedrockRole:!0,namesSourceToMcp:!0,runSettingsFromApp:!0,checkSourceName(p){Ay(p)},cloneUrl(p){return X2(i,Ay(p))},gitAuthEnv(p){return eq(i,p)},async pullRequest(p,g,h){let y=await Hx({token:await h.token(),url:`${Jx(i,Ay(p))}/pullrequests/${g}`,fetch:h.fetch}),E=y.status==="completed";return{...typeof y.title=="string"?{title:y.title}:{},...typeof y.description=="string"?{body:y.description}:{},...typeof y.status=="string"?{merged:E}:{},...E&&typeof y.lastMergeCommit?.commitId=="string"?{mergeCommit:y.lastMergeCommit.commitId}:{},...E&&typeof y.lastMergeSourceCommit?.commitId=="string"?{mergedHead:y.lastMergeSourceCommit.commitId}:{}}},async commit(p,g,h){let y;try{y=Jx(i,qx(p))}catch{return{lookup:"unknown"}}try{let E=await Hx({token:await h.token(),url:`${y}/commits/${encodeURIComponent(g)}`,fetch:h.fetch});return typeof E.commitId=="string"?{sha:E.commitId}:{lookup:"missing"}}catch(E){return{lookup:E instanceof OA&&(E.status===404||E.status===400)?"missing":"unknown"}}}}}o(rq,"azureRunnerHost");Ic();var ofe=5e3,Wx=/^(?!\.\.?$)[A-Za-z0-9._-]{1,100}$/;function afe(e){let t=Buffer.from(`x-access-token:${e}`).toString("base64");return Jl(t),`AUTHORIZATION: basic ${t}`}o(afe,"githubGitAuthorization");function iq(e,t={}){let n=o(u=>{let l=e[u];if(!l)throw new Error(`${u} is not set; the V3 runner handshake needs it`);return l},"read"),i=e.GITHUB_REPOSITORY_ID,r=e.GITHUB_REPOSITORY,s=(e.GITHUB_SERVER_URL||"https://github.com").replace(/\/+$/,""),a=(e.GITHUB_API_URL||"https://api.github.com").replace(/\/+$/,""),c=o(async(u,l)=>l.fetch(u,{headers:{Authorization:`Bearer ${await l.token()}`,Accept:"application/vnd.github+json"},redirect:"error",signal:AbortSignal.timeout(3e4)}),"get");return{runnerPlatform:e.GITHUB_ACTIONS==="true"?"github":void 0,workspace:e.GITHUB_WORKSPACE||void 0,serverUrl:s,apiUrl:a,repository:i&&r?{id:i,slug:r}:void 0,runId:e.GITHUB_RUN_ID||void 0,runAttempt:e.GITHUB_RUN_ATTEMPT||void 0,job:e.GITHUB_JOB||void 0,execution(){let u=n("GITHUB_RUN_ATTEMPT");if(!/^[1-9][0-9]*$/.test(u))throw new Error(`GITHUB_RUN_ATTEMPT is "${u}", not a positive whole number`);return{provider:"github",repository:{provider:"github",providerAccountId:n("GITHUB_REPOSITORY_OWNER_ID"),providerRepositoryId:n("GITHUB_REPOSITORY_ID")},providerRunId:n("GITHUB_RUN_ID"),providerRunAttempt:Number(u),workflowRef:n("GITHUB_WORKFLOW_REF")}},takeIdToken(){let u=e.ACTIONS_ID_TOKEN_REQUEST_URL,l=e.ACTIONS_ID_TOKEN_REQUEST_TOKEN;return delete e.ACTIONS_ID_TOKEN_REQUEST_URL,delete e.ACTIONS_ID_TOKEN_REQUEST_TOKEN,async A=>{if(!u||!l)throw new Error("The job cannot request an OIDC token. Give it the `id-token: write` permission.");let p=new URL(u);p.searchParams.set("audience",A);let g=await fetch(p,{headers:{Authorization:`Bearer ${l}`,Accept:"application/json"},redirect:"error",signal:AbortSignal.timeout(3e4)});if(!g.ok)throw new Error(`GitHub refused the OIDC token request: ${g.status}`);let h=(await g.json().catch(()=>({}))).value;if(typeof h!="string"||!h)throw new Error("GitHub's OIDC token response carried no token");return Jl(h),h}},webIdentity(){return!e.ACTIONS_ID_TOKEN_REQUEST_TOKEN?.trim()||!e.ACTIONS_ID_TOKEN_REQUEST_URL?.trim()?void 0:{token:t.getIDToken??(l=>KP(l)),runId:e.GITHUB_RUN_ID}},v3RunsOnly:!1,assumesBedrockRole:!1,namesSourceToMcp:!1,runSettingsFromApp:!1,checkSourceName(u){for(let l of[u.namespace,u.name])if(!Wx.test(l))throw new Error(`"${l}" is not a repository name`)},cloneUrl(u){return`${s}/${u.namespace}/${u.name}.git`},gitAuthEnv(u){return u?{GIT_CONFIG_COUNT:"1",GIT_CONFIG_KEY_0:`http.${s}/.extraheader`,GIT_CONFIG_VALUE_0:afe(u)}:{}},async pullRequest({namespace:u,name:l},A,p){if(![u,l].every(y=>Wx.test(y)))throw new Error("the repository name is not valid");let g=await c(`${a}/repos/${u}/${l}/pulls/${A}`,p);if(!g.ok)throw new Error(`GitHub answered ${g.status}`);let h=await g.json();return{...typeof h.title=="string"?{title:h.title}:{},...typeof h.body=="string"?{body:h.body}:{},...typeof h.merged=="boolean"?{merged:h.merged}:{},...h.merged===!0&&typeof h.merge_commit_sha=="string"?{mergeCommit:h.merge_commit_sha}:{},...h.merged===!0&&typeof h.head?.sha=="string"?{mergedHead:h.head.sha}:{}}},async commit(u,l,A){let[p,g,...h]=u.split("/");if(h.length||![p,g].every(y=>y!==void 0&&Wx.test(y)))return{lookup:"unknown"};try{let y=await c(`${a}/repos/${p}/${g}/commits/${encodeURIComponent(l)}`,A);if(y.status===404||y.status===422)return{lookup:"missing"};if(!y.ok)return{lookup:"unknown"};let E=await y.json();return typeof E.sha=="string"?{sha:E.sha}:{lookup:"missing"}}catch{return{lookup:"unknown"}}},async revokeToken(u,l){let A=await l(`${a}/installation/token`,{method:"DELETE",headers:{Authorization:`Bearer ${u}`,Accept:"application/vnd.github+json"},redirect:"error",signal:AbortSignal.timeout(ofe)});if(!A.ok&&A.status!==401)throw new Error(`GitHub answered ${A.status}`)}}}o(iq,"githubRunnerHost");function sq(e=process.env){return Yx(e)?rq(e):iq(e)}o(sq,"runnerHost");var VOe=Buffer.from("302a300506032b656e032100","hex");var cfe=10*6e4;function ufe(e,t){return e.getTime()-t.getTime()-cfe}o(ufe,"remainingBudgetMs");var oq="This attempt revoked its scoped GitHub credentials; it mints no more.",lfe=10*6e4;var dfe=o(e=>!!e&&Object.keys(e).length===1&&e.contents==="read","onlyReads"),Afe=3e4,pfe=3,aq=30,jr=class extends Error{constructor(n,i,r,s){super(n);this.status=i;this.code=r;this.path=s}status;code;path;static{o(this,"AppRefusal")}},fi=class extends Error{static{o(this,"AppUnreachable")}},Uu=class extends fi{static{o(this,"AppNotReady")}},Zx=class extends Uu{static{o(this,"RunnerProviderNotReady")}};function Kx(e){let t;try{t=new URL(e)}catch{throw new Error(`skyrampAppOrigin "${e}" is not a URL`)}if(t.protocol!=="https:"||t.origin!==e.replace(/\/+$/,""))throw new Error(`skyrampAppOrigin must be an https origin, got "${e}"`);return t.origin}o(Kx,"appOrigin");function uq(e,t){if(!_c.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}o(uq,"routeId");function ffe(e,t){return`${e.replace(/\/+$/,"")}/runs/${t}`}o(ffe,"skyrampRunPageUrl");function lq(e,t,n,i){throw t<500&&t!==429?new jr(e,t,n,i):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new Zx(e):t===503&&n==="RUN_NOT_READY"?new Uu(e):new fi(e)}o(lq,"refusedOrUnreachable");async function dq(e,t,n,i,r,s=1/0){let a=Kx(e.origin),c=`The time limit for ${t} ${n} was reached`,u,l=0;for(let A=1;A<=pfe||u instanceof Uu;A+=1){if(u instanceof Uu){if(l===aq)throw u;l+=1,A-=1,e.log?.(`${u.message}; trying again (${l} of ${aq}).`),await new Promise(p=>setTimeout(p,Math.max(0,Math.min(e.readyWaitMs??1e4,s-Date.now()))))}else A>1&&await new Promise(p=>setTimeout(p,Math.max(0,Math.min((e.retryDelayMs??2e3)*(A-1),s-Date.now()))));if(Date.now()>=s)throw new fi(c);try{let p,g=await(Number.isFinite(s)?Promise.race([e.idToken(a),new Promise((y,E)=>{p=setTimeout(()=>E(new fi(c)),Math.max(1,s-Date.now()))})]).finally(()=>{p&&clearTimeout(p)}):e.idToken(a));if(Date.now()>=s)throw new fi(c);let h=await(e.fetch??fetch)(new URL(n,a).toString(),{...i(g),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(Afe,s-Date.now())))}).catch(y=>{throw new fi(y instanceof Error?y.message:String(y),{cause:y})});return await r(h)}catch(p){if(p instanceof jr||Date.now()>=s)throw p;u=p}}throw u}o(dq,"callWithRetries");function Aq(e,t,n,i,r){let s=i.headers.get("cf-ray");e.log?.(`Testbot V3: ${t} ${n} answered ${i.status}${s?`, cf-ray ${s}`:""}: ${r.replace(/\s+/g," ").slice(0,200)}`)}o(Aq,"logRefusal");function py(e,t,n,i,r){let s=t==="GET"?void 0:JSON.stringify(i),a=t==="PUT"&&/^\/api\/v1\/runner\/attempts\/[^/]+\/report$/.test(n)&&s!==void 0&&Buffer.byteLength(s,"utf8")>yg;if(a&&Buffer.byteLength(s,"utf8")>XM)throw new Error("The report exceeds the app's 16 MiB expanded report limit");let c=a?new Uint8Array((0,cq.gzipSync)(s)):s;if(a&&c.length>yg)throw new Error("The compressed report exceeds the app's 1 MiB report upload limit");return dq(e,t,n,o(l=>({method:t,headers:{Authorization:`Bearer ${l}`,"Content-Type":"application/json",Accept:"application/json",...a?{"Content-Encoding":"gzip"}:{}},body:c}),"request"),async l=>{let A=await l.text().catch(()=>""),p={};try{p=JSON.parse(A)}catch{}if(l.ok)return p.data;Aq(e,t,n,l,A);let g=p.error?.fields,h=typeof g?.path=="string"&&typeof g.reason=="string"?` at ${g.path}: ${g.reason}`:"",y=`The Skyramp app refused ${t} ${n}: ${l.status} ${p.error?.code??"no error code"}${h}`;return lq(y,l.status,p.error?.code,typeof g?.path=="string"?g.path:void 0)},r)}o(py,"callApp");function gfe(e,t,n){return dq(e,"GET",t,o(r=>({method:"GET",headers:{Authorization:`Bearer ${r}`,Accept:"application/octet-stream"}}),"request"),async r=>{if(!r.ok)return Aq(e,"GET",t,r,await r.text().catch(()=>"")),lq(`The Skyramp app refused GET ${t}: ${r.status}`,r.status);let s=Buffer.from(await r.arrayBuffer());if(s.length>n)throw new jr(`The Skyramp app answered GET ${t} with more than ${n} bytes`,r.status);return s})}o(gfe,"callAppBytes");var GA=class{constructor(t,n,i,r,s,a,c,u,l,A=[],p=[],g,h=!1){this.attemptId=t;this.attemptNumber=n;this.deadlineAt=i;this.manifest=r;this.deps=s;this.license=a;this.requestedBy=c;this.writeAllowed=u;this.claudeCodeVersion=l;this.deployedPins=A;this.statedPins=p;this.runSettings=g;this.credentialRelay=h}attemptId;attemptNumber;deadlineAt;manifest;deps;license;requestedBy;writeAllowed;claudeCodeVersion;deployedPins;statedPins;runSettings;credentialRelay;static{o(this,"V3Attempt")}budgetMs(t){return ufe(this.deadlineAt,t)}get skyrampRunUrl(){return ffe(Kx(this.deps.origin),this.manifest.runId)}send(t,n,i,r){return py(this.deps,t,n,i,r)}readBytes(t,n){return gfe(this.deps,t,n)}issuedTokens=[];closure;modelKey;modelCredentials=[];credentials={};revocation;token(){return this.cachedToken("run")}readOnlyToken(){return this.cachedToken("read")}async cachedToken(t){if(this.revocation)throw new Error(oq);let n=(this.deps.now??(()=>new Date))().getTime(),i=this.credentials[t],r=i&&await i.catch(()=>{});if(this.credentials[t]!==i)return(await this.credentials[t]).token;if(r&&r.expiresAt-n>=lfe)return r.token;if(this.revocation)throw new Error(oq);let s=t==="read",a=s?{schemaVersion:1,access:t}:{schemaVersion:1},c=s?"read-only":"scoped",u=this.send("POST",`/api/v1/runner/attempts/${this.attemptId}/credentials`,a).then(l=>{let A={...l,token:l.token??this.jobToken()};if(this.issuedTokens.push(A.token),this.deps.mask?.(A.token),A.anthropicApiKey&&this.deps.mask?.(A.anthropicApiKey),s&&l.token&&!dfe(A.permissions))throw new Error(`The Skyramp app was asked for a read-only GitHub token, but its token grants ${JSON.stringify(A.permissions??null)}`);!s&&!r&&A.anthropicApiKey&&(this.modelKey=A.anthropicApiKey),this.deps.onTokenGranted?.(t);let p=r?"Renewed":"Received";return l.token&&this.deps.log?.(`${p} ${c} GitHub credentials; they expire at ${A.expiresAt}.`),{token:A.token,expiresAt:l.token?new Date(A.expiresAt).getTime():Number.POSITIVE_INFINITY}},l=>{if(this.deps.onTokenRefused?.(l,t),!(l instanceof jr)||l.code!=="CREDENTIALS_UNAVAILABLE")throw l;let A=o(h=>[...new Set(h.map(y=>y.namespace))].join(", "),"unique"),p=this.manifest.sources.map(h=>h.repository);if(new Set(p.map(h=>h.providerAccountId)).size>1)throw new jr(`${l.message}. The run's repositories are on more than one GitHub account (${A(p)}), which Skyramp does not support yet.`,l.status,l.code);let g=A([...p,this.manifest.execution.repository]);throw new jr(`${l.message}. Check the Skyramp GitHub App installation on ${g}: it must be installed and not suspended, have access to these repositories, and have accepted the App's current permissions. Each account must also be connected to your Skyramp organization.`,l.status,l.code)});return this.credentials[t]=u,(await u).token}jobToken(){if(this.deps.sourceToken)return this.deps.sourceToken;throw new Error("The app answered the credentials request without a token, and the job gave Testbot none of its own: on Azure Pipelines, set SYSTEM_ACCESSTOKEN to $(System.AccessToken) in the Testbot step's env.")}sourceFetch(t){return t.fetch??this.deps.fetch??fetch}revokeTokens(t={}){let n=t.host??sq();return this.revocation??=n.revokeToken?this.revokeIssued(i=>n.revokeToken(i,this.sourceFetch(t))):Promise.resolve([]),this.revocation}async revokeIssued(t){let n=[...this.issuedTokens],i=Promise.all(n.map(a=>this.revokeOne(a,t)));await Promise.all(Object.values(this.credentials).map(a=>a.catch(()=>{})));let r=this.issuedTokens.filter(a=>!n.includes(a));return[...await i,...await Promise.all(r.map(a=>this.revokeOne(a,t)))].filter(a=>a!==void 0)}async revokeOne(t,n){try{await n(t);return}catch(i){return`token ${this.issuedTokens.indexOf(t)+1} of ${this.issuedTokens.length}: ${i instanceof Error?i.message:String(i)}`}}};async function pq(e,t,n){uq(e,"run id"),Kx(n.origin);let i=kv(e,t),r=`/api/v1/runner/runs/${e}/attempts`,s;try{s=await py(n,"POST",r,i)}catch(l){if(!(l instanceof jr&&l.status===400&&l.path==="$.statedPins"))throw l;i=kv(e,t,{statedPins:!1}),s=await py(n,"POST",r,i)}let a=CL(s);if(a.manifest.runId!==e)throw new Error(`The app answered the handshake of run ${e} with the manifest of another run (${a.manifest.runId})`);let c=a.manifest.sources.find(l=>l.repository.provider!==i.execution.provider);if(c)throw new Error(`The manifest of run ${e} names ${c.repository.namespace}/${c.repository.name} on ${c.repository.provider}, but this job runs on ${i.execution.provider}`);hfe(a.manifest,[...a.deployedRevisions??[],...a.statedRevisions??[]]),a.runToken&&n.mask?.(a.runToken);let u=a.runToken?{entitlements:a.entitlements??[],runToken:a.runToken}:void 0;return new GA(a.attempt.id,a.attempt.number,new Date(a.attempt.deadlineAt),a.manifest,n,u,a.requestedBy??void 0,a.writeAllowed,a.claudeCodeVersion??void 0,a.deployedRevisions??[],a.statedRevisions??[],a.runSettings,a.credentialRelay===!0)}o(pq,"startV3Attempt");function hfe(e,t){if(t.length===0)return;if(!oL(e))throw new Error(`The app pinned an attempt of a ${e.trigger.kind} run; only a scheduled run or unchosen manual run's retry is pinned to an earlier attempt's read`);let n=new Set(e.sources.map(r=>si(r.repository))),i=new Set;for(let r of t){let s=si(r.repository);if(!n.has(s))throw new Error(`The app pinned the attempt to repository ${r.repository.providerRepositoryId}, which is not a source of the run`);if(i.has(s))throw new Error(`The app pinned repository ${r.repository.providerRepositoryId} twice`);i.add(s)}}o(hfe,"checkAttemptPins");async function Xx(e,t){return mL.parse(await e.send("POST",`/api/v1/runner/attempts/${e.attemptId}/heartbeat`,{schemaVersion:1},t))}o(Xx,"heartbeatV3Attempt");async function fq(e,t=()=>new Date,n){if(e.closure)return e.closure;let i=await Xx(e,n).then(r=>yL(r,t())).catch(()=>null);return i&&(e.closure=i),i}o(fq,"closedV3Attempt");var $1e=10*6e4;var T1e=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var D1e=d.object({tests:d.object({placements:d.array(d.unknown()).optional()}).passthrough().optional()}).passthrough(),_1e=d.object({repository:wv,testType:d.string(),directory:d.string()}).passthrough();var N1e=d.object({report:d.object({language:d.string()}).passthrough()}).passthrough();var U1e=d.object({environment:d.object({components:d.array(d.unknown()).optional(),dependencies:d.array(d.unknown()).optional()}).passthrough()}).passthrough(),F1e=d.object({environment:d.object({offLimits:d.unknown().optional()}).passthrough()}).passthrough();var P1e=d.object({name:d.string().min(1),provision:d.literal("existing"),url:d.string().min(1),repository:wv.optional(),revisionUrl:d.string().min(1).optional()}).passthrough(),M1e=d.object({name:d.string().min(1),url:d.string().nullable(),versionUrl:d.string().nullable(),notes:d.string().nullable()}).passthrough();var L1e=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);function gq(e){let t=o(n=>e.testResults.filter(i=>i.status===n).length,"count");return{passed:t("Pass"),failed:t("Fail"),skipped:t("Skipped")}}o(gq,"statusCounts");function mfe(e){let{passed:t,failed:n,skipped:i}=gq(e);return t+n===0?{sufficiency:"insufficient",rationale:i>0?`Every test was skipped (${i}), so nothing was validated.`:"No test ran, so nothing was validated.",gaps:["No test ran against the frozen sources."],acceptedEvidence:[],actionRequired:[]}:{sufficiency:"sufficient",rationale:`${t+n} tests ran against the frozen sources: ${t} passed, ${n} failed${i?`, ${i} skipped`:""}.`,gaps:[],acceptedEvidence:[],actionRequired:[]}}o(mfe,"executedTestsValidation");function yfe(e,t){let n=e.map(c=>({result:c,repository:c.repository??t,path:c.fileName||c.testType})),i=new Map;for(let c of n){let u=`${c.repository}:${c.result.testType}:${c.path}`;i.set(u,(i.get(u)??0)+1)}let r=n.map(({result:c,repository:u,path:l})=>{let A=(i.get(`${u}:${c.testType}:${l}`)??0)>1;return c.resultId??Qv(u,c.testType,l,A&&c.endpoint||void 0)}),s=new Map;for(let c of r)s.set(c,(s.get(c)??0)+1);let a=new Set(r.filter(c=>s.get(c)===1));return n.map(({result:c,repository:u},l)=>{let A=r[l],p=A;if(s.get(A)>1&&a.has(A))for(let g=2;a.has(p)||p===A;g+=1)p=A.includes("#")?`${A}.${g}`:`${A}#${g}`;return a.add(p),{...c,repository:u,resultId:p}})}o(yfe,"withResultIds");function Efe({notTranslated:e,...t},n){let i=yfe(t.testResults,n);return{...t,testResults:i,...Ife(t,i,n),validation:bfe(t,Cfe(t,t.validation??mfe(t))),traceVersion:1}}o(Efe,"v3Report");function Ife(e,t,n){if(!e.testExecutionContexts)return{};let i=new Set,r=o(c=>{let u=c;for(let l=2;i.has(u);l+=1)u=`${c}#${l}`;return i.add(u),u},"unique"),s=[],a=new Map;for(let{repository:c,...u}of e.testExecutionContexts){let l=u.status==="not_run"?[]:t.filter(A=>A.fileName===u.test&&A.repository===(c?.trim()||n));l.length||s.push(u);for(let{resultId:A}of l){let p=a.get(A),g=p!==void 0&&s[p].cleanup.status==="failed"?s[p].cleanup:u.cleanup,h={...u,cleanup:g,test:A,resultId:A};p===void 0?a.set(A,s.push(h)-1):s[p]=h}}for(let c of s)c.resultId&&i.add(c.resultId);return{testExecutionContexts:s.map(c=>c.resultId?c:{...c,test:r(c.test.slice(0,512))}).slice(0,5e3)}}o(Ife,"linkedContexts");function Cfe(e,t){let{passed:n,failed:i}=gq(e);return t.sufficiency!=="sufficient"||n+i>0||t.acceptedEvidence.length>0?t:{...t,sufficiency:"insufficient",gaps:["No test ran and no existing evidence was accepted, so nothing was validated."]}}o(Cfe,"withEvidence");var vfe={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};function bfe(e,t){if(t.sufficiency==="sufficient")return t;let n=(e.caveats??[]).map(r=>vfe[r.kind]).filter(r=>r!==void 0),i=[...new Set(n)].filter(r=>!t.actionRequired.includes(r));return i.length?{...t,actionRequired:[...i,...t.actionRequired]}:t}o(bfe,"withModelProviderFailure");function wfe(e,t,n){let{language:i,report:r}=t;if(i==="en")return;let s={language:i,businessCaseAnalysis:r.businessCaseAnalysis},a=o((y,E,C)=>Array.isArray(y)&&Array.isArray(E)&&y.length===E.length?y.map(I=>({[C]:I[C]})):void 0,"rows"),c=e.validation;r.validation&&c&&c.rationale===n.validation.rationale&&JSON.stringify(c.gaps)===JSON.stringify(n.validation.gaps)&&r.validation.gaps.length===n.validation.gaps.length&&(s.validation={rationale:r.validation.rationale,gaps:[...r.validation.gaps]});let u=new Set((n.changes??[]).map(y=>y.id)),l=(r.changes??[]).filter(y=>u.has(y.id)).map(({id:y,text:E})=>({id:y,text:E}));l.length&&(s.changes=l);let A=a(r.issuesFound,n.issuesFound,"description");A&&(s.issuesFound=A);let p=a(r.newTestsCreated,n.newTestsCreated,"description");p&&(s.newTestsCreated=p);let g=a(r.testResults,n.testResults,"details");g&&(s.testResults=g);let h=a(r.caveats,n.caveats,"text");return h&&(s.caveats=h),s}o(wfe,"v3Display");async function hq(e,t){let n=rv([...e.issuedTokens,...t.secrets??[]]),i={...Efe(t.report,t.workingSlug),...t.notTranslated?{notTranslated:t.notTranslated}:{}},r=t.translated&&wfe(t.report,t.translated,i),s=o(c=>vL({manifest:e.manifest,attemptNumber:e.attemptNumber,checkedOut:t.sources.map(u=>({repository:u.repository,revision:u.revision})),firstQualification:t.firstQualification,generatedTests:Cc(t.delivery,n),producer:t.producer,report:Cc(c&&r?{...i,display:r}:i,n),githubWrites:t.githubWrites}),"build"),a=s(!0);r&&Buffer.byteLength(JSON.stringify(a),"utf8")>yg&&(a=s(!1)),await e.send("PUT",`/api/v1/runner/attempts/${e.attemptId}/report`,a)}o(hq,"uploadV3Report");async function mq(e,t){return uq(e.attemptId,"attempt id"),py(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,bL({reportUploaded:e.reportUploaded,recipeUploaded:e.recipeUploaded,revisionsUploaded:e.revisionsUploaded,cancelled:e.cause==="cancelled",timedOut:e.cause==="timed_out",setupFailed:e.cause==="setup_failed",checkoutFailed:e.cause==="checkout_failed"||e.cause==="merge_conflict"&&!e.conflict,mergeConflict:e.cause==="merge_conflict"?e.conflict:void 0,environmentUnverified:e.cause==="environment_unverified",runnerProviderNotReady:e.cause==="runner_provider_not_ready",credentialMissing:e.cause==="credential_missing",modelProviderDenied:e.cause==="model_provider_denied",modelProviderUnavailable:e.cause==="model_provider_unavailable"}))}o(mq,"endV3Attempt");0&&(module.exports={AppRefusal,AppUnreachable,AttemptEndReason,DeliveryStatus,GitHubWriteKind,NoReportCause,SourceProvider,V3Attempt,ValidationSufficiency,closedV3Attempt,endV3Attempt,heartbeatV3Attempt,startV3Attempt,uploadV3Report});
197
197
  /*! Bundled license information:
198
198
 
199
199
  undici/lib/web/fetch/body.js: