@sreetej510/pi-shipd-checks 0.3.1 → 0.3.2

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.
@@ -2510,7 +2510,7 @@ Options:
2510
2510
  `,e),([t,r])=>[[t],r]),([t,r])=>[t,r],()=>[]))))),([t,r])=>[t,r]),kMo=(e,t=[])=>ze(ze(OMo(e),([r,n])=>ze(NMo(n),([o,s])=>[[r,o],s])),([r,n])=>kMo(n,[...t,r]),()=>[t,e]),Bxc=e=>ze(ze(kMo(e),([t,r])=>ze(ze(ze(OMo(r),([n,o])=>[[n],o]),([n,o])=>[n,o],()=>ze([[],r],([n,o])=>[n,o],()=>[])),([n,o])=>[[t,n],o])),([t,r])=>[Kko(t),r]),D8t=e=>ze(ze(On("{",e),([t,r])=>ze(Bxc(r),([n,o])=>ze(On("}",o),([s,i])=>[[t,n,s],i]))),([t,r])=>[Xko(t),r]),$xc=e=>ze(D8t(e),([t,r])=>[Zko(t),r]),zxc=e=>ze(ze(ze(hd(e),([t,r])=>ze(On("?",r),([n,o])=>ze(On(":",o),([s,i])=>ze(On("readonly",i),([a,c])=>ze(xc(c),([u,l])=>[[t,n,s,a,u],l]))))),([t,r])=>[t,r],()=>ze(ze(hd(e),([t,r])=>ze(On(":",r),([n,o])=>ze(On("readonly",o),([s,i])=>ze(xc(i),([a,c])=>[[t,n,s,a],c])))),([t,r])=>[t,r],()=>ze(ze(hd(e),([t,r])=>ze(On("?",r),([n,o])=>ze(On(":",o),([s,i])=>ze(xc(i),([a,c])=>[[t,n,s,a],c])))),([t,r])=>[t,r],()=>ze(ze(hd(e),([t,r])=>ze(On(":",r),([n,o])=>ze(xc(o),([s,i])=>[[t,n,s],i]))),([t,r])=>[t,r],()=>[])))),([t,r])=>[ePo(t),r]),qxc=e=>ze(ze(On("readonly",e),([t,r])=>ze(xc(r),([n,o])=>ze(On("?",o),([s,i])=>[[t,n,s],i]))),([t,r])=>[tPo(t),r]),Gxc=e=>ze(ze(On("readonly",e),([t,r])=>ze(xc(r),([n,o])=>[[t,n],o])),([t,r])=>[rPo(t),r]),Wxc=e=>ze(ze(xc(e),([t,r])=>ze(On("?",r),([n,o])=>[[t,n],o])),([t,r])=>[nPo(t),r]),mMo=e=>ze(ze(zxc(e),([t,r])=>[t,r],()=>ze(qxc(e),([t,r])=>[t,r],()=>ze(Gxc(e),([t,r])=>[t,r],()=>ze(Wxc(e),([t,r])=>[t,r],()=>ze(xc(e),([t,r])=>[t,r],()=>[]))))),([t,r])=>[t,r]),PMo=e=>ze(ze(ze(On("...",e),([t,r])=>ze(mMo(r),([n,o])=>[[t,n],o])),([t,r])=>[t,r],()=>ze(ze(mMo(e),([t,r])=>[[t],r]),([t,r])=>[t,r],()=>[])),([t,r])=>[oPo(t),r]),MMo=(e,t=[])=>ze(ze(PMo(e),([r,n])=>ze(On(",",n),([o,s])=>[[r,o],s])),([r,n])=>MMo(n,[...t,r]),()=>[t,e]),Vxc=e=>ze(ze(MMo(e),([t,r])=>ze(ze(ze(PMo(r),([n,o])=>[[n],o]),([n,o])=>[n,o],()=>ze([[],r],([n,o])=>[n,o],()=>[])),([n,o])=>[[t,n],o])),([t,r])=>[sPo(t),r]),jxc=e=>ze(ze(On("[",e),([t,r])=>ze(Vxc(r),([n,o])=>ze(On("]",o),([s,i])=>[[t,n,s],i]))),([t,r])=>[iPo(t),r]),Qxc=e=>ze(ze(hd(e),([t,r])=>ze(On("?",r),([n,o])=>ze(On(":",o),([s,i])=>ze(On("readonly",i),([a,c])=>ze(xc(c),([u,l])=>[[t,n,s,a,u],l]))))),([t,r])=>[aPo(t),r]),Hxc=e=>ze(ze(hd(e),([t,r])=>ze(On(":",r),([n,o])=>ze(On("readonly",o),([s,i])=>ze(xc(i),([a,c])=>[[t,n,s,a],c])))),([t,r])=>[cPo(t),r]),Jxc=e=>ze(ze(hd(e),([t,r])=>ze(On("?",r),([n,o])=>ze(On(":",o),([s,i])=>ze(xc(i),([a,c])=>[[t,n,s,a],c])))),([t,r])=>[lPo(t),r]),Kxc=e=>ze(ze(hd(e),([t,r])=>ze(On(":",r),([n,o])=>ze(xc(o),([s,i])=>[[t,n,s],i]))),([t,r])=>[uPo(t),r]),fMo=e=>ze(ze(Qxc(e),([t,r])=>[t,r],()=>ze(Hxc(e),([t,r])=>[t,r],()=>ze(Jxc(e),([t,r])=>[t,r],()=>ze(Kxc(e),([t,r])=>[t,r],()=>[])))),([t,r])=>[t,r]),DMo=e=>ze(ze(ze(On("...",e),([t,r])=>ze(fMo(r),([n,o])=>[[t,n],o])),([t,r])=>[t,r],()=>ze(ze(fMo(e),([t,r])=>[[t],r]),([t,r])=>[t,r],()=>[])),([t,r])=>[pPo(t),r]),LMo=(e,t=[])=>ze(ze(DMo(e),([r,n])=>ze(On(",",n),([o,s])=>[[r,o],s])),([r,n])=>LMo(n,[...t,r]),()=>[t,e]),UMo=e=>ze(ze(LMo(e),([t,r])=>ze(ze(ze(DMo(r),([n,o])=>[[n],o]),([n,o])=>[n,o],()=>ze([[],r],([n,o])=>[n,o],()=>[])),([n,o])=>[[t,n],o])),([t,r])=>[dPo(t),r]),Yxc=e=>ze(ze(On("(",e),([t,r])=>ze(UMo(r),([n,o])=>ze(On(")",o),([s,i])=>ze(On("=>",i),([a,c])=>ze(xc(c),([u,l])=>[[t,n,s,a,u],l]))))),([t,r])=>[mPo(t),r]),Xxc=e=>ze(ze(On("new",e),([t,r])=>ze(On("(",r),([n,o])=>ze(UMo(o),([s,i])=>ze(On(")",i),([a,c])=>ze(On("=>",c),([u,l])=>ze(xc(l),([p,d])=>[[t,n,s,a,u,p],d])))))),([t,r])=>[fPo(t),r]),Zxc=e=>ze(ze(ze(On("+",e),([t,r])=>ze(On("readonly",r),([n,o])=>[[t,n],o])),([t,r])=>[t,r],()=>ze(ze(On("-",e),([t,r])=>ze(On("readonly",r),([n,o])=>[[t,n],o])),([t,r])=>[t,r],()=>ze(ze(On("readonly",e),([t,r])=>[[t],r]),([t,r])=>[t,r],()=>ze([[],e],([t,r])=>[t,r],()=>[])))),([t,r])=>[hPo(t),r]),eTc=e=>ze(ze(ze(On("+",e),([t,r])=>ze(On("?",r),([n,o])=>[[t,n],o])),([t,r])=>[t,r],()=>ze(ze(On("-",e),([t,r])=>ze(On("?",r),([n,o])=>[[t,n],o])),([t,r])=>[t,r],()=>ze(ze(On("?",e),([t,r])=>[[t],r]),([t,r])=>[t,r],()=>ze([[],e],([t,r])=>[t,r],()=>[])))),([t,r])=>[gPo(t),r]),tTc=e=>ze(ze(ze(On("as",e),([t,r])=>ze(xc(r),([n,o])=>[[t,n],o])),([t,r])=>[t,r],()=>ze([[],e],([t,r])=>[t,r],()=>[])),([t,r])=>[_Po(t),r]),rTc=e=>ze(ze(On("{",e),([t,r])=>ze(Zxc(r),([n,o])=>ze(On("[",o),([s,i])=>ze(hd(i),([a,c])=>ze(On("in",c),([u,l])=>ze(xc(l),([p,d])=>ze(tTc(d),([f,m])=>ze(On("]",m),([h,g])=>ze(eTc(g),([y,_])=>ze(On(":",_),([E,S])=>ze(xc(S),([v,x])=>ze(yMo(x),([R,N])=>ze(On("}",N),([k,q])=>[[t,n,s,a,u,p,f,h,y,E,v,R,k],q]))))))))))))),([t,r])=>[yPo(t),r]),nTc=e=>ze(hd(e),([t,r])=>[EPo(t),r]),oTc=e=>ze(w8t(e),([t,r])=>[APo(t),r]),sTc=e=>ze(MKe(e),([t,r])=>[bPo(t),r]),iTc=e=>ze(ze(On("true",e),([t,r])=>[t,r],()=>ze(On("false",e),([t,r])=>[t,r],()=>[])),([t,r])=>[SPo(t),r]),aTc=e=>ze(DKe(['"',"'"],e),([t,r])=>[t,r]),cTc=e=>ze(On("null",e),([t,r])=>[xPo(t),r]),lTc=e=>ze(On("undefined",e),([t,r])=>[void 0,r]),FMo=e=>ze(ze(wMo(e),([t,r])=>ze(On(":",r),([n,o])=>ze(L8t(o),([s,i])=>[[t,n,s],i]))),([t,r])=>[TPo(t),r]),BMo=(e,t=[])=>ze(ze(FMo(e),([r,n])=>ze(NMo(n),([o,s])=>[[r,o],s])),([r,n])=>BMo(n,[...t,r]),()=>[t,e]),uTc=e=>ze(ze(BMo(e),([t,r])=>ze(ze(ze(FMo(r),([n,o])=>[[n],o]),([n,o])=>[n,o],()=>ze([[],r],([n,o])=>[n,o],()=>[])),([n,o])=>[[t,n],o])),([t,r])=>[CPo(t),r]),$Mo=e=>ze(ze(On("{",e),([t,r])=>ze(uTc(r),([n,o])=>ze(On("}",o),([s,i])=>[[t,n,s],i]))),([t,r])=>[vPo(t),r]),zMo=(e,t=[])=>ze(ze(L8t(e),([r,n])=>ze(On(",",n),([o,s])=>[[r,o],s])),([r,n])=>zMo(n,[...t,r]),()=>[t,e]),pTc=e=>ze(ze(zMo(e),([t,r])=>ze(ze(ze(L8t(r),([n,o])=>[[n],o]),([n,o])=>[n,o],()=>ze([[],r],([n,o])=>[n,o],()=>[])),([n,o])=>[[t,n],o])),([t,r])=>[IPo(t),r]),dTc=e=>ze(ze(On("[",e),([t,r])=>ze(pTc(r),([n,o])=>ze(On("]",o),([s,i])=>[[t,n,s],i]))),([t,r])=>[RPo(t),r]),L8t=e=>ze(ze(oTc(e),([t,r])=>[t,r],()=>ze(sTc(e),([t,r])=>[t,r],()=>ze(iTc(e),([t,r])=>[t,r],()=>ze(aTc(e),([t,r])=>[t,r],()=>ze(cTc(e),([t,r])=>[t,r],()=>ze(lTc(e),([t,r])=>[t,r],()=>ze($Mo(e),([t,r])=>[t,r],()=>ze(dTc(e),([t,r])=>[t,r],()=>[])))))))),([t,r])=>[t,r]),mTc=e=>ze(On("-?(?:0|[1-9][0-9]*)n",e),([t,r])=>[wPo(t),r]),fTc=e=>ze(On(".*",e),([t,r])=>[OPo(t),r]),hTc=e=>ze(On("-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?",e),([t,r])=>[NPo(t),r]),gTc=e=>ze(On("-?(?:0|[1-9][0-9]*)",e),([t,r])=>[kPo(t),r]),_Tc=e=>ze(On("(?!)",e),([t,r])=>[PPo(t),r]),yTc=e=>ze(dMo(["-?(?:0|[1-9][0-9]*)n",".*","-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?","-?(?:0|[1-9][0-9]*)","(?!)","(",")","$","|"],e),([t,r])=>[MPo(t),r]),ETc=e=>ze(ze(mTc(e),([t,r])=>[t,r],()=>ze(fTc(e),([t,r])=>[t,r],()=>ze(hTc(e),([t,r])=>[t,r],()=>ze(gTc(e),([t,r])=>[t,r],()=>ze(_Tc(e),([t,r])=>[t,r],()=>ze(ATc(e),([t,r])=>[t,r],()=>ze(yTc(e),([t,r])=>[t,r],()=>[]))))))),([t,r])=>[t,r]),ATc=e=>ze(ze(On("(",e),([t,r])=>ze(U8t(r),([n,o])=>ze(On(")",o),([s,i])=>[[t,n,s],i]))),([t,r])=>[DPo(t),r]),qMo=e=>ze(ze(ze(k8t(e),([t,r])=>ze(On("|",r),([n,o])=>ze(qMo(o),([s,i])=>[[t,n,s],i]))),([t,r])=>[t,r],()=>ze(ze(k8t(e),([t,r])=>[[t],r]),([t,r])=>[t,r],()=>ze([[],e],([t,r])=>[t,r],()=>[]))),([t,r])=>[LPo(t),r]),k8t=e=>ze(ze(ETc(e),([t,r])=>ze(U8t(r),([n,o])=>[[t,n],o])),([t,r])=>[UPo(t),r]),U8t=e=>ze(ze(qMo(e),([t,r])=>[t,r],()=>ze(k8t(e),([t,r])=>[t,r],()=>[])),([t,r])=>[t,r]),gNo=e=>ze(ze(On("^",e),([t,r])=>ze(U8t(r),([n,o])=>ze(On("$",o),([s,i])=>[[t,n,s],i]))),([t,r])=>[FPo(t),r]),GMo=(e,t=[])=>ze(ze(xc(e),([r,n])=>ze(On(",",n),([o,s])=>[[r,o],s])),([r,n])=>GMo(n,[...t,r]),()=>[t,e]),bTc=e=>ze(ze(GMo(e),([t,r])=>ze(ze(ze(xc(r),([n,o])=>[[n],o]),([n,o])=>[n,o],()=>ze([[],r],([n,o])=>[n,o],()=>[])),([n,o])=>[[t,n],o])),([t,r])=>[BPo(t),r]),WMo=e=>ze(ze(ze(On("extends",e),([t,r])=>ze(bTc(r),([n,o])=>[[t,n],o])),([t,r])=>[t,r],()=>ze([[],e],([t,r])=>[t,r],()=>[])),([t,r])=>[$Po(t),r]),STc=e=>ze(ze(On("interface",e),([t,r])=>ze(hd(r),([n,o])=>ze(P8t(o),([s,i])=>ze(WMo(i),([a,c])=>ze(D8t(c),([u,l])=>[[t,n,s,a,u],l]))))),([t,r])=>[zPo(t),r]),xTc=e=>ze(ze(On("interface",e),([t,r])=>ze(hd(r),([n,o])=>ze(WMo(o),([s,i])=>ze(D8t(i),([a,c])=>[[t,n,s,a],c])))),([t,r])=>[qPo(t),r]),TTc=e=>ze(ze(On("type",e),([t,r])=>ze(hd(r),([n,o])=>ze(P8t(o),([s,i])=>ze(On("=",i),([a,c])=>ze(xc(c),([u,l])=>[[t,n,s,a,u],l]))))),([t,r])=>[GPo(t),r]),CTc=e=>ze(ze(On("type",e),([t,r])=>ze(hd(r),([n,o])=>ze(On("=",o),([s,i])=>ze(xc(i),([a,c])=>[[t,n,s,a],c])))),([t,r])=>[WPo(t),r]),vTc=e=>ze(ze(ze(On("export",e),([t,r])=>[[t],r]),([t,r])=>[t,r],()=>ze([[],e],([t,r])=>[t,r],()=>[])),([t,r])=>[VPo(t),r]),ITc=e=>ze(ze(ze(On(";",e),([t,r])=>ze(On(`
2511
2511
  `,r),([n,o])=>[[t,n],o])),([t,r])=>[t,r],()=>ze(ze(On(";",e),([t,r])=>[[t],r]),([t,r])=>[t,r],()=>ze(ze(On(`
2512
2512
  `,e),([t,r])=>[[t],r]),([t,r])=>[t,r],()=>[]))),([t,r])=>[t,r]),VMo=(e,t=[])=>ze(ze(F8t(e),([r,n])=>ze(ITc(n),([o,s])=>[[r,o],s])),([r,n])=>VMo(n,[...t,r]),()=>[t,e]),RTc=e=>ze(ze(VMo(e),([t,r])=>ze(ze(ze(F8t(r),([n,o])=>[[n],o]),([n,o])=>[n,o],()=>ze([[],r],([n,o])=>[n,o],()=>[])),([n,o])=>[[t,n],o])),([t,r])=>[jPo(t),r]),F8t=e=>ze(ze(vTc(e),([t,r])=>ze(ze(STc(r),([n,o])=>[n,o],()=>ze(xTc(r),([n,o])=>[n,o],()=>ze(TTc(r),([n,o])=>[n,o],()=>ze(CTc(r),([n,o])=>[n,o],()=>[])))),([n,o])=>ze(yMo(o),([s,i])=>[[t,n,s],i]))),([t,r])=>[QPo(t),r]),wTc=e=>ze(ze(F8t(e),([t,r])=>ze(RTc(r),([n,o])=>[[t,n],o])),([t,r])=>[HPo(t),r]),jMo=e=>ze(ze(wTc(e),([t,r])=>[t,r],()=>ze(Nxc(e),([t,r])=>[t,r],()=>ze(xc(e),([t,r])=>[t,r],()=>[]))),([t,r])=>[t,r]);function QMo(e){let t=M8t(`\`${e}\``);return Rt.IsEqual(t.length,2)?t[0]:Fd()}function NTc(e){return e.join("|")}function kTc(e){return e.slice(1,e.length-1)}function PTc(e,t,r){return l2(t,`${r}${e}`)}function MTc(e,t){return l2(e,`${t}${uNo}`)}function DTc(e,t){return l2(e,`${t}${KJe}`)}function LTc(e,t){return l2(e,`${t}${XJe}`)}function UTc(e,t){return B_e(oc([Oc("false"),Oc("true")]),e,t)}function FTc(e,t){return l2(e,`${t}${ZJe}`)}function BTc(e,t,r){return l2(t,`${r}${kTc(e)}`)}function $Tc(e,t,r){let n=$_e(e,{});return B_e(n,t,r)}function zTc(e,t,r){let n=FS(e);return B_e(n,t,r)}function HMo(e,t,r,n=[]){return Rt.ShiftLeft(e,(o,s)=>HMo(s,t,r,[...n,B_e(o,[],"")]),()=>l2(t,`${r}(${NTc(n)})`))}function B_e(e,t,r){return uy(e)?zTc(e.enum,t,r):py(e)?DTc(t,r):El(e)?PTc(e.const,t,r):zO(e)?MTc(t,r):w0(e)?UTc(t,r):Sm(e)?LTc(t,r):dy(e)?FTc(t,r):xm(e)?BTc(e.pattern,t,r):KMo(e)?$Tc(e.parameters[0],t,r):Vs(e)?HMo(e.anyOf,t,r):VOo}function l2(e,t){return Rt.ShiftLeft(e,(r,n)=>B_e(r,n,t),()=>t)}function qTc(e){return`^${l2(e,"")}$`}function JMo(e){let t=qTc(e);return tKe(t)}function $_e(e,t){return Fa(e)?jr.Update(JMo(e),{},t):uKe(e,t)}function YMo(e,t,r,n){let o=BS(e,t,r);return $_e(o,n)}function uKe(e,t={}){return Qs("TemplateLiteral",[e],t)}function KMo(e){return rf(e)&&Rt.HasPropertyKey(e,"action")&&Rt.IsEqual(e.action,"TemplateLiteral")}function XMo(e){return $_e(e,{})}function GTc(e){let t=QMo(e);return XMo(t)}function ZMo(e,t={}){let r=Rt.IsString(e)?GTc(e):XMo(e);return jr.Update(r,{},t)}function xm(e){return Ms(e,"TemplateLiteral")}var Hi={};Lo(Hi,{ExtendsFalse:()=>Ra,ExtendsTrue:()=>bs,ExtendsUnion:()=>B8t,IsExtendsFalse:()=>WTc,IsExtendsTrue:()=>tDo,IsExtendsTrueLike:()=>Kee,IsExtendsUnion:()=>eDo,Match:()=>Yu});function B8t(e){return jr.Create({"~kind":"ExtendsUnion"},{inferred:e})}function eDo(e){return Rt.IsObject(e)&&Rt.HasPropertyKey(e,"~kind")&&Rt.HasPropertyKey(e,"inferred")&&Rt.IsEqual(e["~kind"],"ExtendsUnion")&&Rt.IsObject(e.inferred)}function bs(e){return jr.Create({"~kind":"ExtendsTrue"},{inferred:e})}function tDo(e){return Rt.IsObject(e)&&Rt.HasPropertyKey(e,"~kind")&&Rt.HasPropertyKey(e,"inferred")&&Rt.IsEqual(e["~kind"],"ExtendsTrue")&&Rt.IsObject(e.inferred)}function Ra(){return jr.Create({"~kind":"ExtendsFalse"},{})}function WTc(e){return Rt.IsObject(e)&&Rt.HasPropertyKey(e,"~kind")&&Rt.IsEqual(e["~kind"],"ExtendsFalse")}function Kee(e){return eDo(e)||tDo(e)}function Yu(e,t,r){return Kee(e)?t(e.inferred):r()}function VTc(e,t,r,n){return Yu(zc(e,r,n),o=>bs(jr.Assign(jr.Assign(e,o),{[t]:r})),()=>Ra())}function jTc(e,t){return bs(e)}function QTc(e,t,r,n,o){return Yu(zc(e,t,r),s=>Yu(zc(s,t,n),i=>bs(i),()=>Ra()),()=>Yu(zc(e,t,o),s=>bs(s),()=>Ra()))}function HTc(e,t,r){let n=FS(r);return zc(e,t,n)}function rDo(e,t,r){return Rt.ShiftLeft(r,(n,o)=>Yu(zc(e,t,n),s=>rDo(s,t,o),()=>Ra()),()=>bs(e))}function JTc(e,t,r){let n=AE(r);return zc(e,t,n)}function nDo(e,t,r){return Rt.ShiftLeft(r,(n,o)=>Yu(zc(e,t,n),s=>bs(s),()=>nDo(e,t,o)),()=>Ra())}function Al(e,t,r){return bm(r)?jTc(e,t):fd(r)?QTc(e,t,r.if,r.then,r.else):uy(r)?HTc(e,t,r.enum):Ud(r)?VTc(e,r.name,t,r.extends):wc(r)?rDo(e,t,r.allOf):xm(r)?JTc(e,t,r.pattern):Vs(r)?nDo(e,t,r.anyOf):nf(r)?bs(e):Ra()}function oDo(e,t,r){return Ud(r)?Al(e,t,r):bm(r)?bs(e):nf(r)?bs(e):B8t(e)}function KTc(e,t){let r=AV(e),n=AV(t);return r&&n||!r&&n?!0:!(r&&!n)}function sDo(e,t,r,n){return mp(n)?KTc(t,n)?zc(e,r,n.items):Ra():Al(e,t,n)}function iDo(e,t,r){return zO(r)?bs(e):Al(e,t,r)}function aDo(e,t,r){return w0(r)?bs(e):Al(e,t,r)}function YTc(e,t,r,n,o){let s=Ud(n)?t:n,i=Ud(n)?n:t,a=f_(t),c=f_(n);return!a&&c?Ra():Yu(zc(e,s,i),u=>z_e(u,r,o),()=>Ra())}function XTc(e,t,r,n){return Rt.ShiftLeft(n,(o,s)=>YTc(e,t,r,o,s),()=>f_(t)?bs(e):Ra())}function ZTc(e,t,r){return Rt.ShiftLeft(t,(n,o)=>XTc(e,n,o,r),()=>bs(e))}function z_e(e,t,r){return ZTc(e,t,r)}function UKe(e,t,r){return qO(r)?bs(e):zc(e,t,r)}function cDo(e,t,r,n){return bm(n)?bs(e):nf(n)?bs(e):Df(n)?Yu(z_e(e,t,n.parameters),o=>UKe(o,r,n.instanceType),()=>Ra()):Ra()}function lDo(e,t,r,n,o){return Yu(zc(e,t,o),()=>zc(e,r,o),()=>zc(e,n,o))}function uDo(e,t,r){let n=FS(t);return zc(e,n,r)}function pDo(e,t,r,n){return bm(n)?bs(e):nf(n)?bs(e):Lf(n)?Yu(z_e(e,t,n.parameters),o=>UKe(o,r,n.returnType),()=>Ra()):Ra()}function dDo(e,t,r){return py(r)?bs(e):Sm(r)?bs(e):Al(e,t,r)}function mDo(e,t,r){let n=Dp(t);return zc(e,n,r)}function FKe(e,t,r){return t===r?bs(e):Ra()}function e0c(e,t,r){return El(r)?FKe(e,t,r.const):zO(r)?bs(e):Al(e,Oc(t),r)}function t0c(e,t,r){return El(r)?FKe(e,t,r.const):w0(r)?bs(e):Al(e,Oc(t),r)}function r0c(e,t,r){return El(r)?FKe(e,t,r.const):Sm(r)?bs(e):Al(e,Oc(t),r)}function n0c(e,t,r){return El(r)?FKe(e,t,r.const):dy(r)?bs(e):Al(e,Oc(t),r)}function fDo(e,t,r){return Rt.IsBigInt(t.const)?e0c(e,t.const,r):Rt.IsBoolean(t.const)?t0c(e,t.const,r):Rt.IsNumber(t.const)?r0c(e,t.const,r):Rt.IsString(t.const)?n0c(e,t.const,r):Fd()}function hDo(e,t,r){return Ud(r)?Al(e,t,r):bs(e)}function gDo(e,t,r){return $ee(r)?bs(e):Al(e,t,r)}function _Do(e,t,r){return Sm(r)?bs(e):Al(e,t,r)}function o0c(e,t,r){return f_(t)?f_(r)?bs(e):Ra():bs(e)}function s0c(e,t,r){return Ud(r)&&r2(r.extends)?Ra():Yu(zc(e,t,r),n=>o0c(n,t,r),()=>Ra())}function i0c(e,t){return e.reduce((r,n)=>n in t?Kee(t[n])?{...r,...t[n].inferred}:Fd():Fd(),{})}function a0c(e,t,r){let n={};for(let i of Rt.Keys(r))n[i]=i in t?s0c({},t[i],r[i]):f_(r[i])?Ud(r[i])?bs(jr.Assign(e,{[r[i].name]:r[i].extends})):bs(e):Ra();let o=Rt.Values(n).every(i=>Kee(i)),s=o?i0c(Rt.Keys(n),n):{};return o?bs(s):Ra()}function c0c(e,t,r){let n=a0c(e,t,r);return Kee(n)?bs(jr.Assign(e,n.inferred)):Ra()}function l0c(e,t,r){return c0c(e,t,r)}function u0c(e,t){return Rt.Keys(t).reduce((r,n)=>({...r,[n]:Rt.HasPropertyKey(e,n)?Vs(r[n])?oc([...r[n].anyOf,t[n]]):oc([e[n],t[n]]):t[n]}),e)}function yDo(e,t,r,n){return Rt.ShiftLeft(t,(o,s)=>Yu(zc({},e[o],r),i=>yDo(e,s,r,u0c(n,i)),()=>Ra()),()=>bs(n))}function p0c(e,t,r,n){let o=Rt.Keys(t);return yDo(t,o,n,e)}function EDo(e,t,r){return Ag(r)?p0c(e,t,k0(r),my(r)):cl(r)?l0c(e,t,r.properties):Al(e,oa(t),r)}function d0c(e,t){return Rt.IsEqual(Rt.Keys(t).length,0)?bs(e):Ra()}function m0c(e,t,r,n,o){return zc(e,r,o)}function ADo(e,t,r,n){return Ag(n)?m0c(e,iKe(t),r,iKe(k0(n)),my(n)):cl(n)?d0c(e,n.properties):bm(n)?bs(e):nf(n)?bs(e):Ra()}function bDo(e,t,r){return dy(r)?bs(e):Al(e,t,r)}function SDo(e,t,r){return n2(r)?bs(e):Al(e,t,r)}function xDo(e,t,r){let n=AE(t);return zc(e,n,r)}function $8t(e,t){return jr.Create({"~kind":"Inferrable"},{name:e,type:t},{})}function q_e(e){return Rt.IsObject(e)&&Rt.HasPropertyKey(e,"~kind")&&Rt.HasPropertyKey(e,"name")&&Rt.HasPropertyKey(e,"type")&&Rt.IsEqual(e["~kind"],"Inferrable")&&Rt.IsString(e.name)&&Rt.IsObject(e.type)}function z8t(e){return i2(e)?Ud(e.items)?mp(e.items.extends)?$8t(e.items.name,e.items.extends.items):nf(e.items.extends)?$8t(e.items.name,e.items.extends):void 0:Fd():void 0}function BKe(e){return Ud(e)?$8t(e.name,e.extends):void 0}function q8t(e,t,r=[]){return Rt.ShiftLeft(e,(n,o)=>Yu(zc({},n,t),()=>q8t(o,t,[...r,n]),()=>{}),()=>r)}function TDo(e,t,r,n){let o=q8t(r,n);return Rt.IsArray(o)?bs(jr.Assign(e,{[t]:Tm(o)})):Ra()}function $Ke(e,t,r,n){let o=q8t(r,n);return Rt.IsArray(o)?bs(jr.Assign(e,{[t]:oc(o)})):Ra()}function f0c(e){return[...e].reverse()}function G8t(e,t){return t?f0c(e):e}function h0c(e){let t=e.length>0?e[0]:void 0,r=rf(t)?z8t(t):void 0;return rf(r)}function g0c(e,t,r,n,o,s){return Yu(zc(e,r,o),i=>CDo(i,t,n,s),()=>Ra())}function _0c(e,t,r,n,o){let s=z8t(n);return q_e(s)?TDo(e,s.name,G8t(r,t),s.type):Rt.ShiftLeft(r,(i,a)=>g0c(e,t,i,a,n,o),()=>Ra())}function y0c(e,t,r,n){return Rt.ShiftLeft(n,(o,s)=>_0c(e,t,r,o,s),()=>Rt.IsEqual(r.length,0)?bs(e):Ra())}function CDo(e,t,r,n){return y0c(e,t,r,n)}function E0c(e,t,r){let n=u2(e,Mu([],[]),r),o=h0c(n);return CDo(e,o,G8t(t,o),G8t(n,o))}function vDo(e,t,r){let n=BKe(r);return q_e(n)?$Ke(e,n.name,t,n.type):Rt.ShiftLeft(t,(o,s)=>Yu(zc(e,o,r),i=>vDo(i,s,r),()=>Ra()),()=>bs(e))}function IDo(e,t,r){let n=u2(e,Mu([],[]),t);return uu(r)?E0c(e,n,r.items):mp(r)?vDo(e,n,r.items):Al(e,Tm(n),r)}function RDo(e,t,r){return qO(r)?bs(e):jee(r)?bs(e):Al(e,t,r)}function wDo(e,t,r){return Rt.ShiftLeft(r,(n,o)=>Yu(zc(e,t,n),s=>bs(s),()=>wDo(e,t,o)),()=>Ra())}function W8t(e,t,r){return Rt.ShiftLeft(t,(n,o)=>Yu(wDo(e,n,r),s=>W8t(s,o,r),()=>Ra()),()=>bs(e))}function ODo(e,t,r){let n=BKe(r);return q_e(n)?$Ke(e,n.name,t,n.type):Vs(r)?W8t(e,t,r.anyOf):W8t(e,t,[r])}function NDo(e,t,r){return Ud(r)?Al(e,t,r):bm(r)?bs(e):nf(r)?bs(e):Ra()}function kDo(e,t,r){return qO(r)?bs(e):Al(e,t,r)}function zc(e,t,r){return bm(t)?oDo(e,t,r):mp(t)?sDo(e,t,t.items,r):zO(t)?iDo(e,t,r):w0(t)?aDo(e,t,r):Df(t)?cDo(e,t.parameters,t.instanceType,r):fd(t)?lDo(e,t.if,t.then,t.else,r):uy(t)?uDo(e,t.enum,r):Lf(t)?pDo(e,t.parameters,t.returnType,r):py(t)?dDo(e,t,r):wc(t)?mDo(e,t.allOf,r):El(t)?fDo(e,t,r):r2(t)?hDo(e,t,r):$ee(t)?gDo(e,t,r):Sm(t)?_Do(e,t,r):cl(t)?EDo(e,t.properties,r):Ag(t)?ADo(e,k0(t),my(t),r):dy(t)?bDo(e,t,r):n2(t)?SDo(e,t,r):xm(t)?xDo(e,t.pattern,r):uu(t)?IDo(e,t.items,r):jee(t)?RDo(e,t,r):Vs(t)?ODo(e,t.anyOf,r):nf(t)?NDo(e,t,r):qO(t)?kDo(e,t,r):Ra()}function A0c(e,t){return Dp([...e,oa(t)])}function V8t(e,t,r){return Fa(e)?jr.Update(A0c(e,t),{},r):M_e(e,t,r)}function PDo(e,t,r,n,o){let s=BS(e,t,r),i=G_e(e,t,n);return V8t(s,i,o)}function M_e(e,t,r={}){return Qs("Interface",[e,t],r)}function Yee(e){return rf(e)&&Rt.HasPropertyKey(e,"action")&&Rt.IsEqual(e.action,"Interface")}function MDo(e,t,r={}){return V8t(e,t,r)}function b0c(e,t,r){return e.includes(r)?!0:W_e([...e,r],t,t[r])}function DDo(e,t,r){let n=VJe(r);return IV(e,t,n)}function IV(e,t,r){return Rt.ShiftLeft(r,(n,o)=>W_e(e,t,n)?!0:IV(e,t,o),()=>!1)}function W_e(e,t,r){return Uf(r)?b0c(e,t,r.$ref):mp(r)?W_e(e,t,r.items):Df(r)?IV(e,t,[...r.parameters,r.instanceType]):Lf(r)?IV(e,t,[...r.parameters,r.returnType]):Yee(r)?DDo(e,t,r.parameters[1]):wc(r)?IV(e,t,r.allOf):cl(r)?DDo(e,t,r.properties):Vs(r)?IV(e,t,r.anyOf):uu(r)?IV(e,t,r.items):Ag(r)?W_e(e,t,my(r)):!1}function LDo(e,t,r){return W_e(e,t,r)}function S0c(e,t){return t.reduce((r,n)=>LDo([n],e,e[n])?[...r,n]:r,[])}function UDo(e){let t=WJe(e);return S0c(e,t)}function x0c(e,t,r){return r.includes(t)?r:t in e?V_e(e,e[t],[...r,t]):Fd()}function FDo(e,t,r){let n=VJe(t);return Xee(e,n,r)}function Xee(e,t,r){return t.reduce((n,o)=>V_e(e,o,n),r)}function V_e(e,t,r){return Uf(t)?x0c(e,t.$ref,r):mp(t)?V_e(e,t.items,r):Df(t)?Xee(e,[...t.parameters,t.instanceType],r):Lf(t)?Xee(e,[...t.parameters,t.returnType],r):Yee(t)?FDo(e,t.parameters[1],r):wc(t)?Xee(e,t.allOf,r):cl(t)?FDo(e,t.properties,r):Vs(t)?Xee(e,t.anyOf,r):uu(t)?Xee(e,t.items,r):Ag(t)?V_e(e,my(t),r):r}function BDo(e,t,r){return V_e(e,r,[t])}function T0c(e){return Uee()}function C0c(e){return Rt.Keys(e).reduce((t,r)=>({...t,[r]:RV(e[r])}),{})}function j_e(e){return e.reduce((t,r)=>[...t,RV(r)],[])}function RV(e){return Uf(e)?T0c(e.$ref):mp(e)?US(RV(e.items),GJe(e)):Df(e)?DO(j_e(e.parameters),RV(e.instanceType)):Lf(e)?LO(j_e(e.parameters),RV(e.returnType)):wc(e)?h_(j_e(e.allOf)):cl(e)?oa(C0c(e.properties)):Ag(e)?sKe(Wee(e),RV(my(e))):Vs(e)?oc(j_e(e.anyOf)):uu(e)?Tm(j_e(e.items)):e}function v0c(e,t){return t in e?RV(e[t]):Th()}function $Do(e){return v0c(e.$defs,e.$ref)}function I0c(e,t,r){let n=BS(e,Mu([],[]),t),o=G_e({},Mu([],[]),r);return Dp([...n,oa(o)])}function R0c(e,t){return Rt.Keys(e).filter(n=>t.includes(n)).reduce((n,o)=>{let s=e[o],i=Yee(s)?I0c(e,s.parameters[0],s.parameters[1]):s;return{...n,[o]:i}},{})}function zDo(e,t,r){let n=BDo(e,t,r),o=R0c(e,n);return FO(o,t)}function qDo(e,t){return t in e?Uf(e[t])?qDo(e,e[t].$ref):e[t]:Fl()}function GO(e,t){return qDo(e,t)}function GDo(e){return yg(e)?$Do(e):jJe(e)?Th():e}function Eg(e,t,r){let n=GDo(t),o=GDo(r);return zc(e,n,o)}var R_e="equal",w0c="disjoint",w_e="left-inside",O_e="right-inside";function qee(e,t){let r=[nf(e)?Hi.ExtendsFalse():Eg({},e,t),nf(e)?Hi.ExtendsTrue({}):Eg({},t,e)];return Hi.IsExtendsTrueLike(r[0])&&Hi.IsExtendsTrueLike(r[1])?R_e:Hi.IsExtendsTrueLike(r[0])&&Hi.IsExtendsFalse(r[1])?w_e:Hi.IsExtendsFalse(r[0])&&Hi.IsExtendsTrueLike(r[1])?O_e:w0c}function O0c(e,t){return t.filter(r=>qee(e,r)!==O_e)}function N0c(e,t){let r=t.some(n=>{let o=qee(e,n);return Rt.IsEqual(o,w_e)||Rt.IsEqual(o,R_e)});return Rt.IsEqual(r,!1)}function k0c(e,t){let r=N0(e);return bm(r)?[r]:N0c(r,t)?[...O0c(r,t),r]:t}function P0c(e){return e.reduce((t,r)=>cl(r)?[...t,r]:r2(r)?t:k0c(r,t),[])}function x8t(e){let t=P0c(e);return k_e(t)}function j8t(e,t){return jr.Update(N0(e),{},t)}function WDo(e,t,r,n){let o=ko(e,t,r);return j8t(o,n)}function Q_e(e,t=[]){return e2(e)&&Rt.IsEqual(e.action,"Conditional")?Uf(e.parameters[0])?Q_e(e.parameters[2],Q_e(e.parameters[3],[...t,e.parameters[0].$ref])):Q_e(e.parameters[2],Q_e(e.parameters[3],t)):e2(e)&&Rt.IsEqual(e.action,"Mapped")&&e2(e.parameters[1])&&Rt.IsEqual(e.parameters[1].action,"KeyOf")&&Uf(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function M0c(e,t){return e.reduce((r,n)=>[...r,t.includes(n.name)],[])}function QDo(e,t,r=[]){return Rt.ShiftLeft(e,(n,o)=>Rt.ShiftLeft(t,(s,i)=>QDo(o,i,[...r,[s,n]]),()=>r),()=>r)}function D0c(e){return Vs(e)?[...e.anyOf]:[e]}function L0c(e,t){return e.reduce((r,n)=>[...r,[...n,t]],[])}function VDo(e,t){return t.reduce((r,n)=>[...r,...L0c(e,n)],[])}function jDo(e){return e.reduce((t,r)=>Rt.IsEqual(r[0],!0)?VDo(t,D0c(r[1])):VDo(t,[r[1]]),[[]])}function HDo(e,t,r){let n=Q_e(r),o=M0c(e,n),s=QDo(t,o);return e2(r)&&Rt.IsEqual(r.action,"Conditional")||e2(r)&&Rt.IsEqual(r.action,"Mapped")?jDo(s):[t]}function U0c(){return["(not-resolvable)",Fl()]}function F0c(){return["(not-generic)",Fl()]}function B0c(e,t,r){return[e,t2(t,r)]}function $0c(e,t,r){return t in e?JDo(e,t,e[t],r):U0c()}function JDo(e,t,r,n){return Lee(r)?B0c(t,r.parameters,r.expression):Uf(r)?$0c(e,r.$ref,n):F0c()}function KDo(e,t,r){return JDo(e,"(anonymous)",t,r)}function z0c(e,t,r){if(Ud(t)||Zee(t)||Hi.IsExtendsTrueLike(Eg({},t,r)))return;let n={parameter:e,expect:r,actual:t};throw new Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:n})}function YDo(e,t,r,n,o){let s=ko(e,t,o);return z0c(r,s,n),jr.Assign(e,{[r]:s})}function q0c(e,t,r,n,o){let s=ko(e,t,r.extends),i=ko(e,t,r.equals);return Rt.ShiftLeft(o,(a,c)=>Q8t(YDo(e,t,r.name,s,a),t,n,c),()=>Q8t(YDo(e,t,r.name,s,i),t,n,[]))}function Q8t(e,t,r,n){return Rt.ShiftLeft(r,(o,s)=>q0c(e,t,o,s,n),()=>e)}function XDo(e,t,r,n){return Q8t(e,t,r,n)}function G0c(e){return Rt.IsGreaterThan(e.callstack.length,0)?e.callstack[e.callstack.length-1]:""}function W0c(e,t){return Rt.IsEqual(G0c(e),t)}function V0c(e,t,r,n,o,s){let i=XDo(e,t,n,s),a=ko(i,Mu([...t.callstack,r.$ref],t.visited),o);return ko(i,Mu([],[]),a)}function j0c(e,t,r,n,o,s){return s.reduce((i,a)=>[...i,V0c(e,t,r,n,o,a)],[])}function Q0c(e,t,r,n,o,s){let i=HDo(n,s,o),a=j0c(e,t,r,n,o,i);return Rt.IsEqual(a.length,1)?a[0]:WA(a)}function zKe(e,t,r,n){let o=BS(e,t,n),s=KDo(e,r,n),i=s[0],a=s[1];return Lee(a)?W0c(t,i)?D_e(fM(i),o):Q0c(e,t,fM(i),a.parameters,a.expression,o):D_e(r,o)}function D_e(e,t){return jr.Create({"~kind":"Call"},{type:"call",target:e,arguments:t},{})}function ZDo(e,t){return zKe({},Mu([],[]),e,t)}function Zee(e){return Ms(e,"Call")}function H0c(e){return jr.Discard(e,["~immutable"])}function eLo(e,t){return jr.Update(H0c(e),{},t)}function tLo(e,t,r,n){let o=ko(e,t,r);return eLo(o,n)}function rLo(e,t){return e(t)}function nLo(e,t){return Rt.IsString(t)?Oc(rLo(e,t)):Oc(t)}function oLo(e,t){let r=AE(t);return _M(e,r)}function sLo(e,t){let r=t.map(n=>_M(e,n));return oc(r)}function _M(e,t){return El(t)?nLo(e,t.const):xm(t)?oLo(e,t.pattern):Vs(t)?sLo(e,t.anyOf):t}function pKe(e,t={}){return Qs("Capitalize",[e],t)}function iLo(e,t={}){return H8t(e,t)}function dKe(e,t={}){return Qs("Lowercase",[e],t)}function aLo(e,t={}){return J8t(e,t)}function mKe(e,t={}){return Qs("Uncapitalize",[e],t)}function cLo(e,t={}){return K8t(e,t)}function fKe(e,t={}){return Qs("Uppercase",[e],t)}function lLo(e,t={}){return Y8t(e,t)}var J0c=e=>e[0].toUpperCase()+e.slice(1),K0c=e=>e.toLowerCase(),Y0c=e=>e[0].toLowerCase()+e.slice(1),X0c=e=>e.toUpperCase();function H8t(e,t){return Fa([e])?jr.Update(_M(J0c,e),{},t):pKe(e,t)}function J8t(e,t){return Fa([e])?jr.Update(_M(K0c,e),{},t):dKe(e,t)}function K8t(e,t){return Fa([e])?jr.Update(_M(Y0c,e),{},t):mKe(e,t)}function Y8t(e,t){return Fa([e])?jr.Update(_M(X0c,e),{},t):fKe(e,t)}function uLo(e,t,r,n){let o=ko(e,t,r);return H8t(o,n)}function pLo(e,t,r,n){let o=ko(e,t,r);return J8t(o,n)}function dLo(e,t,r,n){let o=ko(e,t,r);return K8t(o,n)}function mLo(e,t,r,n){let o=ko(e,t,r);return Y8t(o,n)}function hKe(e,t,r,n,o={}){return Qs("Conditional",[e,t,r,n],o)}function fLo(e,t,r,n,o={}){return X8t({},Mu([],[]),e,t,r,n,o)}function Z0c(e,t,r,n,o,s){let i=Eg(e,r,n);return Hi.IsExtendsUnion(i)?oc([ko(i.inferred,t,o),ko(e,t,s)]):Hi.IsExtendsTrue(i)?ko(i.inferred,t,o):ko(e,t,s)}function X8t(e,t,r,n,o,s,i){return Fa([r,n])?jr.Update(Z0c(e,t,r,n,o,s),{},i):hKe(r,n,o,s,i)}function hLo(e,t,r,n,o,s,i){let a=ko(e,t,r),c=ko(e,t,n);return X8t(e,t,a,c,o,s,i)}function gKe(e,t={}){return Qs("ConstructorParameters",[e],t)}function gLo(e,t={}){return Z8t(e,t)}function eCc(e){let t=Df(e)?e.parameters:[],r=u2({},Mu([],[]),t);return Tm(r)}function Z8t(e,t){return Fa([e])?jr.Update(eCc(e),{},t):gKe(e,t)}function _Lo(e,t,r,n){let o=ko(e,t,r);return Z8t(o,n)}function _Ke(e,t,r={}){return Qs("Exclude",[e,t],r)}function yLo(e,t,r={}){return H_e(e,t,r)}function H_e(e,t,r){return Fa([e,t])?jr.Update(nKe(e,t),{},r):_Ke(e,t,r)}function ELo(e,t,r,n,o){let s=ko(e,t,r),i=ko(e,t,n);return H_e(s,i,o)}function yKe(e,t,r={}){return Qs("Extract",[e,t],r)}function ALo(e,t,r={}){return e9t(e,t,r)}function tCc(e,t){let r=Eg({},e,t);return Hi.IsExtendsTrueLike(r)?[e]:[]}function rCc(e,t){return e.reduce((r,n)=>[...r,...tCc(n,t)],[])}function bLo(e,t){let r=N0(e),n=Vs(r)?r.anyOf:[r],o=rCc(n,t);return WA(o)}function e9t(e,t,r){return Fa([e,t])?jr.Update(bLo(e,t),{},r):yKe(e,t,r)}function SLo(e,t,r,n,o){let s=ko(e,t,r),i=ko(e,t,n);return e9t(s,i,o)}function nCc(e){return e.reduce((t,r)=>YJe(r)?[...t,Oc(r)]:t,[])}function ete(e){let t=nCc(e);return oc(t)}function L_e(e,t,r={}){return Qs("Index",[e,t],r)}function xLo(e,t,r={}){let n=Rt.IsArray(t)?ete(t):t;return t9t(e,n,r)}function TLo(e,t){let r=GO(e,t);return $S(r)}function CLo(e,t,r){let n=fI(e,t,r);return $S(n)}function oCc(e,t){let r=Rt.Keys(e).filter(l=>!Rt.HasPropertyKey(t,l)),n=Rt.Keys(t).filter(l=>!Rt.HasPropertyKey(e,l)),o=Rt.Keys(e).filter(l=>Rt.HasPropertyKey(t,l)),s=r.reduce((l,p)=>({...l,[p]:e[p]}),{}),i=n.reduce((l,p)=>({...l,[p]:t[p]}),{}),a=o.reduce((l,p)=>({...l,[p]:Dp([e[p],t[p]])}),{}),c=jr.Assign(s,i);return jr.Assign(c,a)}function vLo(e){return e.reduce((t,r)=>oCc(t,$S(r)),{})}function ILo(e){let t=kNo(Tm(e));return $S(t)}function sCc(e,t){return Rt.Keys(e).filter(o=>o in t).reduce((o,s)=>({...o,[s]:WA([e[s],t[s]])}),{})}function RLo(e,t){return Rt.ShiftLeft(e,(r,n)=>RLo(n,sCc(t,$S(r))),()=>t)}function wLo(e){return Rt.ShiftLeft(e,(t,r)=>RLo(r,$S(t)),()=>Fd())}function $S(e){return yg(e)?TLo(e.$defs,e.$ref):fd(e)?CLo(e.if,e.then,e.else):wc(e)?vLo(e.allOf):Vs(e)?wLo(e.anyOf):uu(e)?ILo(e.items):cl(e)?e.properties:{}}function tte(e){let t=$S(e);return oa(t)}var iCc=new RegExp("^(?:0|[1-9][0-9]*)$");function rte(e){let t=`${e}`;return iCc.test(t)?parseInt(t):e}function aCc(e){return Oc(rte(e))}function OLo(e){return e.map(t=>NLo(t))}function NLo(e){return wc(e)?h_(OLo(e.allOf)):Vs(e)?oc(OLo(e.anyOf)):El(e)?aCc(e.const):e}function kLo(e,t){let r=NLo(t),n=Eg({},r,GA());return Hi.IsExtendsTrueLike(n)?e:El(t)&&Rt.IsEqual(t.const,"length")?GA():Fl()}function PLo(e,t){let r=GO(e,t);return VA(r)}function MLo(e,t,r){let n=fI(e,t,r);return VA(n)}function DLo(e){let t=FS(e);return VA(t)}function LLo(e){let t=Dp(e);return VA(t)}function ULo(e){return[`${e}`]}function FLo(e){let t=AE(e);return VA(t)}function BLo(e){return e.reduce((t,r)=>[...t,...VA(r)],[])}function VA(e){return yg(e)?PLo(e.$defs,e.$ref):fd(e)?MLo(e.if,e.then,e.else):uy(e)?DLo(e.enum):wc(e)?LLo(e.allOf):El(e)?ULo(e.const):xm(e)?FLo(e.pattern):Vs(e)?BLo(e.anyOf):[]}function nte(e){return VA(e)}function J_e(e,t){return t.map(r=>K_e(e,r))}function K_e(e,t){return mp(t)?US(K_e(e,t.items)):Df(t)?DO(J_e(e,t.parameters),K_e(e,t.instanceType)):Lf(t)?LO(J_e(e,t.parameters),K_e(e,t.returnType)):uu(t)?Tm(J_e(e,t.items)):Vs(t)?oc(J_e(e,t.anyOf)):wc(t)?h_(J_e(e,t.allOf)):cKe(t)?oa(e):t}function $Lo(e,t){return K_e(e,t)}function cCc(e,t){let r=t in e?e[t]:Fl();return $Lo(e,r)}function zLo(e,t){return t.reduce((r,n)=>[...r,cCc(e,n)],[])}function lCc(e,t){let r=nte(t),n=zLo(e,r);return WA(n)}var uCc=new RegExp(s2);function pCc(e){return e.filter(r=>uCc.test(r))}function dCc(e){let t=WJe(e),r=pCc(t),n=zLo(e,r);return WA(n)}function qLo(e,t){return Sm(t)?dCc(e):lCc(e,t)}function mCc(e){return Oc(rte(e))}function GLo(e){return e.map(t=>r9t(t))}function r9t(e){return wc(e)?h_(GLo(e.allOf)):Vs(e)?oc(GLo(e.anyOf)):El(e)?mCc(e.const):e}function fCc(e,t){return e.reduceRight((r,n,o)=>{let s=Eg({},Oc(o),t);return Hi.IsExtendsTrueLike(s)?[n,...r]:r},[])}function hCc(e,t){let r=r9t(t),n=fCc(e,r);return hM(n)}function gCc(e){return hM(e)}function WLo(e,t){return El(t)&&Rt.IsEqual(t.const,"length")?Oc(e.length):Sm(t)||py(t)?gCc(e):hCc(e,t)}function VLo(e,t){return mp(e)?kLo(e.items,t):cl(e)?qLo(e.properties,t):uu(e)?WLo(e.items,t):Fl()}function _Cc(e){return yg(e)||fd(e)||wc(e)||Vs(e)?tte(e):e}function t9t(e,t,r){return Fa([e,t])?jr.Update(VLo(_Cc(e),t),{},r):L_e(e,t,r)}function jLo(e,t,r,n,o){let s=ko(e,t,r),i=ko(e,t,n);return t9t(s,i,o)}function EKe(e,t={}){return Qs("InstanceType",[e],t)}function QLo(e,t={}){return n9t(e,t)}function yCc(e){return Df(e)?e.instanceType:Fl()}function n9t(e,t){return Fa([e])?jr.Update(yCc(e),{},t):EKe(e,t)}function HLo(e,t,r,n={}){let o=ko(e,t,r);return n9t(o,n)}function U_e(e,t={}){return Qs("KeyOf",[e],t)}function JLo(e,t={}){return o9t(e,t)}function KLo(){return oc([GA(),O0(),zee()])}function YLo(e){return GA()}function ECc(e){return e.reduce((r,n)=>YJe(n)?[...r,Oc(rte(n))]:Fd(),[])}function XLo(e){let t=Rt.Keys(e),r=ECc(t);return hM(r)}function ZLo(e){return Wee(e)}function e1o(e){let t=e.map((r,n)=>Oc(n));return hM(t)}function t1o(e){return bm(e)?KLo():mp(e)?YLo(e.items):cl(e)?XLo(e.properties):Ag(e)?ZLo(e):uu(e)?e1o(e.items):Fl()}function ACc(e){return yg(e)||fd(e)||wc(e)||Vs(e)?tte(e):e}function o9t(e,t){return Fa([e])?jr.Update(t1o(ACc(e)),{},t):U_e(e,t)}function r1o(e,t,r,n){let o=ko(e,t,r);return o9t(o,n)}function P_e(e,t,r,n,o={}){return Qs("Mapped",[e,t,r,n],o)}function n1o(e,t,r,n,o={}){return s9t({},Mu([],[]),e,t,r,n,o)}function bCc(e){let t=AE(e);return qKe(t)}function SCc(e){return e.reduce((t,r)=>[...t,...qKe(r)],[])}function xCc(e){let t=FS(e);return qKe(t)}function TCc(e){return Rt.IsNumber(e)?[Oc(`${e}`)]:[Oc(e)]}function qKe(e){return uy(e)?xCc(e.enum):El(e)?TCc(e.const):xm(e)?bCc(e.pattern):Vs(e)?SCc(e.anyOf):[e]}function o1o(e){return qKe(e)}function CCc(e){return xm(e)?AE(e.pattern):e}function vCc(e,t,r,n,o,s){let i=jr.Assign(e,{[r.name]:n}),a=ko(i,t,o),c=CCc(a),u=ko(i,t,s);return dNo(c)||mNo(c)?{[c.const]:u}:{}}function ICc(e,t,r,n,o,s){return n.reduce((i,a)=>[...i,vCc(e,t,r,a,o,s)],[])}function RCc(e){return e.reduce((t,r)=>[...t,oa(r)],[])}function s1o(e,t,r,n,o,s){let i=o1o(n),a=ICc(e,t,r,i,o,s),c=RCc(a);return Dp(c)}function s9t(e,t,r,n,o,s,i){return Fa([n])?jr.Update(s1o(e,t,r,n,o,s),{},i):P_e(r,n,o,s,i)}function i1o(e,t,r,n,o,s,i){let a=ko(e,t,n);return s9t(e,t,r,a,o,s,i)}function wCc(e,t,r){let n=jr.Assign(e,t);return Rt.Keys(t).filter(s=>r.includes(s)).reduce((s,i)=>({...s,[i]:zDo(n,i,t[i])}),{})}function OCc(e,t,r){let n=jr.Assign(e,t);return Rt.Keys(t).filter(s=>!r.includes(s)).reduce((s,i)=>({...s,[i]:ko(n,Mu([],[]),t[i])}),{})}function NCc(e,t,r){let n=UDo(t),o=wCc(e,t,n),s=OCc(e,t,n),i={...o,...s};return jr.Update(i,{},r)}function GKe(e,t,r,n){return NCc(e,r,n)}function AKe(e,t={}){return Qs("NonNullable",[e],t)}function a1o(e,t={}){return i9t(e,t)}function kCc(e){let t=oc([Bee(),Vee()]);return H_e(e,t,{})}function i9t(e,t){return Fa([e])?jr.Update(kCc(e),{},t):AKe(e,t)}function c1o(e,t,r,n){let o=ko(e,t,r);return i9t(o,n)}function bKe(e,t,r={}){return Qs("Omit",[e,t],r)}function l1o(e,t,r={}){let n=Rt.IsArray(t)?ete(t):t;return a9t(e,n,r)}function WKe(e){let t=tte(e);return cl(t)?t.properties:Fd()}function PCc(e,t){return Rt.Keys(e).reduce((n,o)=>t.includes(o)?n:{...n,[o]:e[o]},{})}function u1o(e,t){let r=WKe(e),n=nte(t),o=PCc(r,n);return oa(o)}function a9t(e,t,r){return Fa([e,t])?jr.Update(u1o(e,t),{},r):bKe(e,t,r)}function p1o(e,t,r,n,o){let s=ko(e,t,r),i=ko(e,t,n);return a9t(s,i,o)}function SKe(e,t={}){return Qs("Parameters",[e],t)}function d1o(e,t={}){return c9t(e,t)}function MCc(e){let t=Lf(e)?e.parameters:[],r=u2({},Mu([],[]),t);return Tm(r)}function c9t(e,t){return Fa([e])?jr.Update(MCc(e),{},t):SKe(e,t)}function m1o(e,t,r,n){let o=ko(e,t,r);return c9t(o,n)}function xKe(e,t={}){return Qs("Partial",[e],t)}function f1o(e,t={}){return l9t(e,t)}function h1o(e,t){let r=GO(e,t),n=WO(r);return FO(jr.Assign(e,{[t]:n}),t)}function g1o(e,t,r){let n=fI(e,t,r);return WO(n)}function _1o(e){let t=Dp(e);return WO(t)}function y1o(e){let t=e.map(r=>WO(r));return oc(t)}function E1o(e){let t=Rt.Keys(e).reduce((n,o)=>({...n,[o]:yV(e[o])}),{});return oa(t)}function WO(e){return yg(e)?h1o(e.$defs,e.$ref):fd(e)?g1o(e.if,e.then,e.else):wc(e)?_1o(e.allOf):Vs(e)?y1o(e.anyOf):cl(e)?E1o(e.properties):oa({})}function l9t(e,t){return Fa([e])?jr.Update(WO(e),{},t):xKe(e,t)}function A1o(e,t,r,n){let o=ko(e,t,r);return l9t(o,n)}function TKe(e,t,r={}){return Qs("Pick",[e,t],r)}function b1o(e,t,r={}){let n=Rt.IsArray(t)?ete(t):t;return u9t(e,n,r)}function DCc(e,t){return Rt.Keys(e).reduce((n,o)=>t.includes(o)?jr.Assign(n,{[o]:e[o]}):n,{})}function S1o(e,t){let r=WKe(e),n=nte(t),o=DCc(r,n);return oa(o)}function u9t(e,t,r){return Fa([e,t])?jr.Update(S1o(e,t),{},r):TKe(e,t,r)}function x1o(e,t,r,n,o){let s=ko(e,t,r),i=ko(e,t,n);return u9t(s,i,o)}function CKe(e,t={}){return Qs("ReadonlyObject",[e],t)}function p9t(e,t={}){return d9t(e,t)}var T1o=p9t;function C1o(e){return Fee(US(e))}function v1o(e,t){let r=GO(e,t),n=VO(r);return FO(jr.Assign(e,{[t]:n}),t)}function I1o(e,t,r){let n=fI(e,t,r);return VO(n)}function R1o(e){let t=Dp(e);return VO(t)}function w1o(e){let t=Rt.Keys(e).reduce((n,o)=>({...n,[o]:bV(e[o])}),{});return oa(t)}function O1o(e){return Fee(Tm(e))}function N1o(e){let t=e.map(r=>VO(r));return oc(t)}function VO(e){return mp(e)?C1o(e.items):yg(e)?v1o(e.$defs,e.$ref):fd(e)?I1o(e.if,e.then,e.else):wc(e)?R1o(e.allOf):cl(e)?w1o(e.properties):uu(e)?O1o(e.items):Vs(e)?N1o(e.anyOf):e}function d9t(e,t){return Fa([e])?jr.Update(VO(e),{},t):CKe(e)}function k1o(e,t,r,n){let o=ko(e,t,r);return d9t(o,n)}function P1o(e,t,r,n){return t.visited.includes(n)?r:n in e?ko(e,Mu(t.callstack,[...t.visited,n]),e[n]):r}function M1o(e,t){let r=GO(e,t),n=jO(r);return FO(jr.Assign(e,{[t]:n}),t)}function D1o(e,t,r){let n=fI(e,t,r);return jO(n)}function L1o(e){let t=Dp(e);return jO(t)}function U1o(e){let t=e.map(r=>jO(r));return oc(t)}function F1o(e){let t=Rt.Keys(e).reduce((n,o)=>({...n,[o]:rKe(e[o])}),{});return oa(t)}function jO(e){return yg(e)?M1o(e.$defs,e.$ref):fd(e)?D1o(e.if,e.then,e.else):wc(e)?L1o(e.allOf):Vs(e)?U1o(e.anyOf):cl(e)?F1o(e.properties):oa({})}function vKe(e,t={}){return Qs("Required",[e],t)}function B1o(e,t={}){return m9t(e,t)}function m9t(e,t){return Fa([e])?jr.Update(jO(e),{},t):vKe(e,t)}function $1o(e,t,r,n){let o=ko(e,t,r);return m9t(o,n)}function IKe(e,t={}){return Qs("ReturnType",[e],t)}function z1o(e,t={}){return f9t(e,t)}function LCc(e){return Lf(e)?e.returnType:Fl()}function f9t(e,t){return Fa([e])?jr.Update(LCc(e),{},t):IKe(e,t)}function q1o(e,t,r,n={}){let o=ko(e,t,r);return f9t(o,n)}function RKe(e,t){return Qs("With",[e,t],{})}function G1o(e,t){return h9t(e,t)}function h9t(e,t){return Fa([e])?jr.Update(e,{},t):RKe(e,t)}function W1o(e,t,r,n){let o=ko(e,t,r);return h9t(o,n)}function UCc(e){return i2(e)?uu(e.items)?g9t(e.items.items):Ud(e.items)?[e]:Uf(e.items)?[e]:[Fl()]:[e]}function g9t(e){return e.reduce((r,n)=>[...r,...UCc(n)],[])}function Mu(e,t){return{callstack:e,visited:t}}function Fa(e){return Rt.ShiftLeft(e,(t,r)=>Uf(t)?!1:Fa(r),()=>!0)}function G_e(e,t,r){return Rt.Keys(r).reduce((n,o)=>({...n,[o]:ko(e,t,r[o])}),{})}function u2(e,t,r){let n=BS(e,t,r);return g9t(n)}function BS(e,t,r){return r.map(n=>ko(e,t,n))}function FCc(e,t){let r=f_(e)?b_e(t,{}):t,n=SV(e)?A_e(r,{}):r;return AV(e)?Y_e(n,{}):n}function BCc(e,t,r,n,o){return Rt.IsEqual(r,"AddImmutable")?V1o(e,t,n[0],o):Rt.IsEqual(r,"RemoveImmutable")?tLo(e,t,n[0],o):Rt.IsEqual(r,"AddReadonly")?zOo(e,t,n[0],o):Rt.IsEqual(r,"RemoveReadonly")?INo(e,t,n[0],o):Rt.IsEqual(r,"AddOptional")?qOo(e,t,n[0],o):Rt.IsEqual(r,"RemoveOptional")?ONo(e,t,n[0],o):Rt.IsEqual(r,"Capitalize")?uLo(e,t,n[0],o):Rt.IsEqual(r,"Conditional")?hLo(e,t,n[0],n[1],n[2],n[3],o):Rt.IsEqual(r,"ConstructorParameters")?_Lo(e,t,n[0],o):Rt.IsEqual(r,"Evaluate")?WDo(e,t,n[0],o):Rt.IsEqual(r,"Exclude")?ELo(e,t,n[0],n[1],o):Rt.IsEqual(r,"Extract")?SLo(e,t,n[0],n[1],o):Rt.IsEqual(r,"Index")?jLo(e,t,n[0],n[1],o):Rt.IsEqual(r,"InstanceType")?HLo(e,t,n[0],o):Rt.IsEqual(r,"Interface")?PDo(e,t,n[0],n[1],o):Rt.IsEqual(r,"KeyOf")?r1o(e,t,n[0],o):Rt.IsEqual(r,"Lowercase")?pLo(e,t,n[0],o):Rt.IsEqual(r,"Mapped")?i1o(e,t,n[0],n[1],n[2],n[3],o):Rt.IsEqual(r,"Module")?GKe(e,t,n[0],o):Rt.IsEqual(r,"NonNullable")?c1o(e,t,n[0],o):Rt.IsEqual(r,"Pick")?x1o(e,t,n[0],n[1],o):Rt.IsEqual(r,"Parameters")?m1o(e,t,n[0],o):Rt.IsEqual(r,"Partial")?A1o(e,t,n[0],o):Rt.IsEqual(r,"Omit")?p1o(e,t,n[0],n[1],o):Rt.IsEqual(r,"ReadonlyObject")?k1o(e,t,n[0],o):Rt.IsEqual(r,"Record")?QNo(e,t,n[0],n[1],o):Rt.IsEqual(r,"Required")?$1o(e,t,n[0],o):Rt.IsEqual(r,"ReturnType")?q1o(e,t,n[0],o):Rt.IsEqual(r,"TemplateLiteral")?YMo(e,t,n[0],o):Rt.IsEqual(r,"Uncapitalize")?dLo(e,t,n[0],o):Rt.IsEqual(r,"Uppercase")?mLo(e,t,n[0],o):Rt.IsEqual(r,"With")?W1o(e,t,n[0],n[1]):Qs(r,n,o)}function $Cc(e,t,r){let n=Uf(r)?P1o(e,t,r,r.$ref):mp(r)?US(ko(e,t,r.items),GJe(r)):Zee(r)?zKe(e,t,r.target,r.arguments):Df(r)?DO(BS(e,t,r.parameters),ko(e,t,r.instanceType),GOo(r)):Lf(r)?LO(BS(e,t,r.parameters),ko(e,t,r.returnType),WOo(r)):fd(r)?EV(ko(e,t,r.if),ko(e,t,r.then),ko(e,t,r.else),KOo(r)):wc(r)?h_(BS(e,t,r.allOf),tNo(r)):cl(r)?oa(G_e(e,t,r.properties),HOo(r)):Ag(r)?HNo(k0(r),ko(e,t,my(r))):i2(r)?CV(ko(e,t,r.items)):uu(r)?Tm(u2(e,t,r.items),vNo(r)):Vs(r)?oc(BS(e,t,r.anyOf),hNo(r)):r;return FCc(r,n)}function ko(e,t,r){return e2(r)?BCc(e,t,r.action,r.parameters,r.options):$Cc(e,t,r)}function _9t(e,t){return ko(e,Mu([],[]),t)}function zCc(e){return jr.Update(e,{"~immutable":!0},{})}function Y_e(e,t){return jr.Update(zCc(e),{},t)}function V1o(e,t,r,n){let o=ko(e,t,r);return Y_e(o,n)}function JPo(e,t={}){return Qs("AddImmutable",[e],t)}function Fee(e,t={}){return Y_e(e,t)}function KPo(e,t={}){return Qs("Evaluate",[e],t)}function j1o(e,t={}){return j8t(e,t)}function YPo(e,t={}){return Qs("Module",[e],t)}function Q1o(e,t={}){return GKe({},Mu([],[]),e,t)}function H1o(...e){let[t,r,n]=BO.Match(e,{2:(i,a)=>Rt.IsString(i)?[{},i,a]:[i,a,{}],3:(i,a,c)=>[i,a,c],1:i=>[{},i,{}]}),o=jMo(r),s=Rt.IsArray(o)&&Rt.IsEqual(o.length,2)?ko(t,Mu([],[]),o[0]):Fl();return jr.Update(s,{},n)}var pu={};Lo(pu,{Any:()=>Uee,Array:()=>US,BigInt:()=>C_e,Boolean:()=>JJe,Call:()=>ZDo,Capitalize:()=>iLo,Codec:()=>HJe,Conditional:()=>fLo,Constructor:()=>DO,ConstructorParameters:()=>gLo,Cyclic:()=>FO,Decode:()=>sNo,DecodeBuilder:()=>T_e,Dependent:()=>EV,Encode:()=>iNo,EncodeBuilder:()=>x_e,Enum:()=>eNo,Evaluate:()=>j1o,Exclude:()=>yLo,Extends:()=>Eg,ExtendsResult:()=>Hi,Extract:()=>ALo,Function:()=>LO,Generic:()=>t2,Identifier:()=>v_e,Immutable:()=>aNo,Index:()=>xLo,Infer:()=>S_e,InstanceType:()=>QLo,Instantiate:()=>_9t,Integer:()=>xV,Interface:()=>MDo,Intersect:()=>h_,IsAny:()=>bm,IsArray:()=>mp,IsBigInt:()=>zO,IsBoolean:()=>w0,IsCall:()=>Zee,IsCodec:()=>QJe,IsConstructor:()=>Df,IsCyclic:()=>yg,IsDependent:()=>fd,IsEnum:()=>uy,IsEnumValue:()=>ZOo,IsFunction:()=>Lf,IsGeneric:()=>Lee,IsIdentifier:()=>pNo,IsImmutable:()=>AV,IsInfer:()=>Ud,IsInteger:()=>py,IsIntersect:()=>wc,IsKind:()=>Ms,IsLiteral:()=>El,IsNever:()=>r2,IsNull:()=>$ee,IsNumber:()=>Sm,IsObject:()=>cl,IsOptional:()=>f_,IsParameter:()=>fNo,IsReadonly:()=>SV,IsRecord:()=>Ag,IsRef:()=>Uf,IsRefine:()=>_8t,IsRest:()=>i2,IsSchema:()=>rf,IsString:()=>dy,IsSymbol:()=>n2,IsTemplateLiteral:()=>xm,IsThis:()=>cKe,IsTuple:()=>uu,IsUndefined:()=>jee,IsUnion:()=>Vs,IsUnknown:()=>nf,IsUnsafe:()=>jJe,IsVoid:()=>qO,KeyOf:()=>JLo,Literal:()=>Oc,Lowercase:()=>aLo,Mapped:()=>n1o,Module:()=>Q1o,Never:()=>Fl,NonNullable:()=>a1o,Null:()=>Bee,Number:()=>GA,Object:()=>oa,Omit:()=>l1o,Optional:()=>jOo,Parameter:()=>TV,Parameters:()=>d1o,Partial:()=>f1o,Pick:()=>b1o,Readonly:()=>cNo,ReadonlyObject:()=>p9t,ReadonlyType:()=>T1o,Record:()=>sKe,RecordKey:()=>Wee,RecordPattern:()=>k0,RecordValue:()=>my,Ref:()=>fM,Refine:()=>lNo,Required:()=>B1o,Rest:()=>CV,ReturnType:()=>z1o,Script:()=>H1o,String:()=>O0,Symbol:()=>zee,TemplateLiteral:()=>ZMo,This:()=>aKe,Tuple:()=>Tm,Uncapitalize:()=>cLo,Undefined:()=>Vee,Union:()=>oc,Unknown:()=>Th,Unsafe:()=>JOo,Uppercase:()=>lLo,Void:()=>lKe,With:()=>G1o});var xjf=pu.Object({verdict:pu.Union([pu.Literal("PASS"),pu.Literal("FAIL")],{description:"FAIL only for a genuine blocking issue (clear rubric violation, agent-fault-worthy gap, unfair/undiscoverable test requirement, or a real determinism/regression risk). Optional, minor, or stylistic points are NOT grounds for FAIL \u2014 put those in `notes` instead and use PASS."}),summary:pu.String({description:"One short sentence summarizing the verdict."}),reasons:pu.Array(pu.String(),{description:"Specific BLOCKING justifications only, citing rubric item IDs and concrete evidence from the files you read. Required (non-empty) when verdict is FAIL. Use an empty array when verdict is PASS."}),notes:pu.Array(pu.String(),{description:"Non-blocking, optional/minor observations or suggested improvements \u2014 the kind of feedback a real reviewer leaves as 'Minor/optional' without failing the task. Include these regardless of verdict; use an empty array if you truly have none."})});var Tjf=pu.Object({statement:pu.String({description:"One sentence from agent_prompt.md, copied verbatim."}),gaps:pu.Array(pu.Object({description:pu.String({description:"A fair, publicly observable missing behavioral test."}),risk:pu.String({description:"Why an incorrect implementation could pass the current tests despite this missing behavior."})}),{description:"All candidate positive and negative gaps for this sentence; there is no maximum or target count, so include every distinct evidence-backed gap and relevant edge case rather than stopping at 10; use an empty array only when exhaustive analysis finds none."})});var Cjf=pu.Object({gaps:pu.Array(pu.Object({description:pu.String({description:"The confirmed, real, fair test gap (may be reworded for clarity). Keep POSITIVE:/NEGATIVE: prefix when applicable."}),justification:pu.String({description:"Why this is genuinely grounded in agent_prompt.md or the repo, fair to test per the fairness methodology, and a real (non-duplicate) coverage hole in test.patch \u2014 for negative gaps, cite the prompt's prohibition/constraint and why no existing test catches the forbidden outcome."})}),{description:"The filtered, final list of confirmed test gaps. Use an empty array if none of the candidates survive strict scrutiny."})});var vjf=pu.Object({gaps:pu.Array(pu.Object({description:pu.String({description:"The specific behavioral gap: a way one or more solver's diff differs materially from what agent_prompt.md/solution.patch require, despite that solver passing `./test.sh new`."}),justification:pu.String({description:"Why this is a genuine requirement from agent_prompt.md or solution.patch (cite the specific requirement/line) that the solver's diff misses, contradicts, or diverges from \u2014 and why the current tests fail to catch that divergence."}),evidence:pu.String({description:"Which solver(s) (by index) exhibit this, and the specific part of their diff that grounds the gap."})}),{description:"Concrete, diff-grounded behavioral gaps \u2014 cases where a passing solver's materially different approach reveals that `test.sh new` under-specifies a real requirement. Use an empty array if the solvers converged on equivalent behavior; do not manufacture gaps just to report something."})});function J1o(){return["You are a adversarial tester. Your goal is to find the most minimal, shortcut implementation that makes all new tests pass \u2014 not a full, correct solution. This is intentional: we want to discover whether the test suite lets through an implementation that barely satisfies the assertions without properly implementing the prompt's required behavior.","`agent_prompt.md` in the repo root describes the intended task. Tests for it already exist and are currently failing.","","Goal: make ALL of the new tests pass with the least amount of real logic possible.","1. Run `bash test.sh new` to see the failures and what the tests expect. Read the failing tests carefully \u2014 they are the only spec you need to satisfy.","2. Understand exactly what each test assertion checks. Ask, 'what is the minimum thing I can do \u2014 a stub, a hardcoded return, a mockish pass-through, a trivial branch \u2014 to satisfy this test?', not 'what does agent_prompt.md intend?'. Skim `agent_prompt.md` only enough to understand what the test file names and assertions refer to, then rely on the test errors to drive what to implement.","3. Prefer the most minimal implementation possible:"," - Hardcode a return value if the test expects one."," - Add only the code paths a test actually exercises; leave anything untested unimplemented."," - Mock the minimum number of dependencies (or none) that the test error forces you to touch."," - Use the most direct, trivial, shortcut approach \u2014 do not build abstractions, do not handle unobserved edge cases, do not add defensive code.","4. Before declaring success, also run `bash test.sh base` to confirm your changes cause no regressions. The shortcut must not break existing tests \u2014 that would be a false positive from a different angle.","5. Re-run `bash test.sh new` and iterate until both the new tests and the base tests pass, or you're confident you cannot pass more without adding real logic.","","Rules:","- Do NOT modify the test files or `test.sh`. Only change application/library code.","- You have shell access \u2014 install any dependencies you need.","- The prompt is not your spec: the tests are. Implement exactly what the tests demand, nothing more. If you can satisfy a test with a hardcoded return, do it."].join(`
2513
- `)}var X_e="/opt/shipd-agent",X1o="/work/solvers",K1o=4e3;function g_(e){let t=process.env[e];if(!t)throw new Error(`Missing worker environment variable ${e}.`);return t}function GCc(e){return e.length>K1o?e.slice(e.length-K1o):e}function WCc(){let e=JSON.parse(jKe("/tmp/shipd-bootstrap.json","utf-8")),t=["bucket","region","sourceKey","authKey","resultKey"].every(o=>typeof e[o]=="string"&&e[o]),r=["planB64","provider","modelId","thinkingLevel"],n={planB64:"SHIPD_PLAN_B64",provider:"SHIPD_PROVIDER",modelId:"SHIPD_MODEL_ID",thinkingLevel:"SHIPD_THINKING_LEVEL"};if(t)for(let[o,s]of[["bucket","SHIPD_S3_BUCKET"],["region","SHIPD_S3_REGION"],["sourceKey","SHIPD_S3_SOURCE_KEY"],["authKey","SHIPD_S3_AUTH_KEY"],["resultKey","SHIPD_S3_RESULT_KEY"]]){let i=e[o];if(typeof i!="string"||i.length===0)throw new Error(`Invalid Fargate bootstrap field: ${o}.`);process.env[s]=i}else for(let[o,s]of[["sourceUrl","SHIPD_SOURCE_URL"],["authUrl","SHIPD_AUTH_URL"],["resultPutUrl","SHIPD_RESULT_PUT_URL"],["resultGetUrl","SHIPD_RESULT_GET_URL"]]){let i=e[o];if(typeof i!="string"||i.length===0)throw new Error(`Invalid Fargate bootstrap field: ${o}.`);process.env[s]=i}for(let o of r){let s=e[o];if(typeof s!="string"||s.length===0)throw new Error(`Invalid Fargate bootstrap field: ${o}.`);process.env[n[o]]=s}for(let[o,s]of[["timeoutMinutes","SHIPD_TIMEOUT_MINUTES"],["solverCount","SHIPD_SOLVER_COUNT"]]){let i=e[o];if(typeof i!="number"||!Number.isFinite(i))throw new Error(`Invalid Fargate bootstrap field: ${o}.`);process.env[s]=String(i)}}function VCc(){let e=g_("SHIPD_PLAN_B64");return JSON.parse(Buffer.from(e,"base64url").toString("utf-8"))}function jCc(e){let t={...process.env};for(let[r,n]of Object.entries(e.env))t[r]=n.replace(/\$\{([A-Za-z_][A-Za-z0-9_]*)\}|\$([A-Za-z_][A-Za-z0-9_]*)/g,(o,s,i)=>t[s??i]??"");return t}async function Z1o(e,t){let r=await fetch(e);if(!r.ok)throw new Error(`Download failed (${r.status}) for ${t}.`);ste(t,Buffer.from(await r.arrayBuffer()))}function ite(){return!!process.env.SHIPD_S3_BUCKET}function b9t(){return new wV.S3Client({region:g_("SHIPD_S3_REGION"),credentials:(0,Y1o.defaultProvider)()})}async function eUo(e,t,r){let o=await(await b9t().send(new wV.GetObjectCommand({Bucket:e,Key:t}))).Body?.transformToByteArray();if(!o)throw new Error(`S3 object was empty: s3://${e}/${t}`);ste(r,Buffer.from(o))}async function y9t(e,t){let r=JSON.stringify(t);if(ite()){await b9t().send(new wV.PutObjectCommand({Bucket:g_("SHIPD_S3_BUCKET"),Key:g_("SHIPD_S3_RESULT_KEY"),Body:r,ContentType:"application/json"}));return}let n=await fetch(e,{method:"PUT",headers:{"content-type":"application/json"},body:r});if(!n.ok){let o=(await n.text()).trim();throw new Error(`Result upload failed (${n.status})${o?`: ${o.slice(0,1e3)}`:"."}`)}}async function E9t(e,t,r,n){return await new Promise((o,s)=>{let i=qCc("/bin/bash",["-lc",e],{cwd:t,env:r,stdio:["ignore","pipe","pipe"],detached:process.platform!=="win32"}),a="",c="",u=!1,l,p=d=>{u||(u=!0,l&&clearTimeout(l),o(d))};i.stdout.on("data",d=>{a+=d.toString()}),i.stderr.on("data",d=>{c+=d.toString()}),i.once("error",d=>{u||(u=!0,l&&clearTimeout(l),s(new Error(`${d instanceof Error?d.message:String(d)} (cwd=${t} exists=${A9t(t)})`)))}),i.once("close",d=>p({code:d??1,stdout:a,stderr:c})),l=setTimeout(()=>{process.platform!=="win32"&&i.pid?process.kill(-i.pid,"SIGTERM"):i.kill("SIGTERM"),setTimeout(()=>{u||(process.platform!=="win32"&&i.pid?process.kill(-i.pid,"SIGKILL"):i.kill("SIGKILL"))},5e3)},n)})}async function Z_e(e,t,r,n){let o=await E9t(e,t,r,n);if(o.code!==0)throw new Error([o.stderr.trim(),o.stdout.trim(),`Remote command: ${e}`].filter(Boolean).join(`
2513
+ `)}var X_e="/opt/shipd-agent",X1o="/work/solvers",K1o=4e3;function g_(e){let t=process.env[e];if(!t)throw new Error(`Missing worker environment variable ${e}.`);return t}function GCc(e){return e.length>K1o?e.slice(e.length-K1o):e}function WCc(){let e=JSON.parse(jKe("/tmp/shipd-bootstrap.json","utf-8")),t=["bucket","region","sourceKey","authKey","resultKey"].every(o=>typeof e[o]=="string"&&e[o]),r=["planB64","provider","modelId","thinkingLevel"],n={planB64:"SHIPD_PLAN_B64",provider:"SHIPD_PROVIDER",modelId:"SHIPD_MODEL_ID",thinkingLevel:"SHIPD_THINKING_LEVEL"};if(t)for(let[o,s]of[["bucket","SHIPD_S3_BUCKET"],["region","SHIPD_S3_REGION"],["sourceKey","SHIPD_S3_SOURCE_KEY"],["authKey","SHIPD_S3_AUTH_KEY"],["resultKey","SHIPD_S3_RESULT_KEY"]]){let i=e[o];if(typeof i!="string"||i.length===0)throw new Error(`Invalid Fargate bootstrap field: ${o}.`);process.env[s]=i}else for(let[o,s]of[["sourceUrl","SHIPD_SOURCE_URL"],["authUrl","SHIPD_AUTH_URL"],["resultPutUrl","SHIPD_RESULT_PUT_URL"],["resultGetUrl","SHIPD_RESULT_GET_URL"]]){let i=e[o];if(typeof i!="string"||i.length===0)throw new Error(`Invalid Fargate bootstrap field: ${o}.`);process.env[s]=i}for(let o of r){let s=e[o];if(typeof s!="string"||s.length===0)throw new Error(`Invalid Fargate bootstrap field: ${o}.`);process.env[n[o]]=s}for(let[o,s]of[["timeoutMinutes","SHIPD_TIMEOUT_MINUTES"],["solverCount","SHIPD_SOLVER_COUNT"]]){let i=e[o];if(typeof i!="number"||!Number.isFinite(i))throw new Error(`Invalid Fargate bootstrap field: ${o}.`);process.env[s]=String(i)}}function VCc(){let e=g_("SHIPD_PLAN_B64");return JSON.parse(Buffer.from(e,"base64url").toString("utf-8"))}function jCc(e){let t={...process.env};for(let[r,n]of Object.entries(e.env))t[r]=n.replace(/\$\{([A-Za-z_][A-Za-z0-9_]*)\}|\$([A-Za-z_][A-Za-z0-9_]*)/g,(o,s,i)=>t[s??i]??"");return t}async function Z1o(e,t){let r=await fetch(e);if(!r.ok)throw new Error(`Download failed (${r.status}) for ${t}.`);ste(t,Buffer.from(await r.arrayBuffer()))}function ite(){return!!process.env.SHIPD_S3_BUCKET}function b9t(){return new wV.S3Client({region:g_("SHIPD_S3_REGION"),credentials:(0,Y1o.defaultProvider)()})}async function eUo(e,t,r){let o=await(await b9t().send(new wV.GetObjectCommand({Bucket:e,Key:t}))).Body?.transformToByteArray();if(!o)throw new Error(`S3 object was empty: s3://${e}/${t}`);ste(r,Buffer.from(o))}async function y9t(e,t){let r=JSON.stringify(t);if(ite()){await b9t().send(new wV.PutObjectCommand({Bucket:g_("SHIPD_S3_BUCKET"),Key:g_("SHIPD_S3_RESULT_KEY"),Body:r,ContentType:"application/json"}));return}let n=await fetch(e,{method:"PUT",headers:{"content-type":"application/json"},body:r});if(!n.ok){let o=(await n.text()).trim();throw new Error(`Result upload failed (${n.status})${o?`: ${o.slice(0,1e3)}`:"."}`)}}async function E9t(e,t,r,n){return await new Promise((o,s)=>{let i=qCc("/bin/bash",["-c",e],{cwd:t,env:r,stdio:["ignore","pipe","pipe"],detached:process.platform!=="win32"}),a="",c="",u=!1,l,p=d=>{u||(u=!0,l&&clearTimeout(l),o(d))};i.stdout.on("data",d=>{a+=d.toString()}),i.stderr.on("data",d=>{c+=d.toString()}),i.once("error",d=>{u||(u=!0,l&&clearTimeout(l),s(new Error(`${d instanceof Error?d.message:String(d)} (cwd=${t} exists=${A9t(t)})`)))}),i.once("close",d=>p({code:d??1,stdout:a,stderr:c})),l=setTimeout(()=>{process.platform!=="win32"&&i.pid?process.kill(-i.pid,"SIGTERM"):i.kill("SIGTERM"),setTimeout(()=>{u||(process.platform!=="win32"&&i.pid?process.kill(-i.pid,"SIGKILL"):i.kill("SIGKILL"))},5e3)},n)})}async function Z_e(e,t,r,n){let o=await E9t(e,t,r,n);if(o.code!==0)throw new Error([o.stderr.trim(),o.stdout.trim(),`Remote command: ${e}`].filter(Boolean).join(`
2514
2514
  `));return o}function QCc(e){let t=e.trim().replace(/["']/g,"");return/^chmod\s+\S+\s+(?:\S*\/)?test\.sh$/.test(t)}async function HCc(e,t){let r="/tmp/shipd-source.tar.gz";ite()?await eUo(g_("SHIPD_S3_BUCKET"),g_("SHIPD_S3_SOURCE_KEY"),r):await Z1o(g_("SHIPD_SOURCE_URL"),r),VKe(e.workdir,{recursive:!0}),await Z_e(`tar -xzf ${Zl(r)} -C ${Zl(e.workdir)}`,e.workdir,t,900*1e3);let n=[`git config --global --add safe.directory ${Zl(e.workdir)}`,`git -C ${Zl(e.workdir)} init -q`,`git -C ${Zl(e.workdir)} config user.email solvergap@shipd-checks.local`,`git -C ${Zl(e.workdir)} config user.name shipd-checks-source`,`git -C ${Zl(e.workdir)} add -A`,`git -C ${Zl(e.workdir)} commit -q -m source --allow-empty`].join(`
2515
2515
  `);await Z_e(`set -eu
2516
2516
  ${n}`,"/work",t,900*1e3);for(let o of e.runtimeCommands)QCc(o)||await Z_e(o,e.workdir,t,900*1e3)}function Zl(e){return`'${e.replace(/'/g,"'\\''")}'`}function tUo(e){let t=jKe(e,"utf-8");ste(e,t.replace(/\r\n?/g,`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sreetej510/pi-shipd-checks",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Pi extension that runs a strict, multi-agent fairness review of a benchmark task's agent_prompt.md, test.patch, and solution.patch, plus behavioral test-gap analysis, via /checks.",
5
5
  "type": "module",
6
6
  "license": "MIT",