@pandacss/language-server 0.0.0-dev-20230630222130 → 0.0.0-dev-20230630223330

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -21114,7 +21114,7 @@ ${tn}`}vn.exports={isPragma:en,hasPragma:V,insertPragma:P}}}),ed=ya({"src/langua
21114
21114
  `+Ar.replace(/^Error(:[^\n]*)?\n/,""))});return Ns.prototype=Object.create(hi.prototype),Ns.prototype.constructor=Ns,Ns.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},Ns}var Xo=void 0;function kf(Cs){throw new Xo(Cs)}var Zc=Cs=>(Cs||kf("Cannot use deleted val. handle = "+Cs),$s[Cs].value),Mf=Cs=>{switch(Cs){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var hi=Zl.length?Zl.pop():$s.length;return $s[hi]={fa:1,value:Cs},hi}},Wt=void 0,Gp=void 0;function _a(Cs){for(var hi="";mn[Cs];)hi+=Gp[mn[Cs++]];return hi}var kd=[];function q_(){for(;kd.length;){var Cs=kd.pop();Cs.L.Z=!1,Cs.delete()}}var Qy=void 0,oy={};function UB(Cs,hi){for(hi===void 0&&kf("ptr should not be undefined");Cs.P;)hi=Cs.aa(hi),Cs=Cs.P;return hi}var ly={};function p0(Cs){var hi=_a(Cs=sp(Cs));return nh(Cs),hi}function XB(Cs,hi){var Ns=ly[Cs];return Ns===void 0&&kf(hi+" has unknown type "+p0(Cs)),Ns}function JC(){}var y1=!1;function r1(Cs){--Cs.count.value,Cs.count.value===0&&(Cs.S?Cs.T.V(Cs.S):Cs.O.M.V(Cs.N))}var dg={},VS=void 0;function qx(Cs){throw new VS(Cs)}function Di(Cs,hi){return hi.O&&hi.N||qx("makeClassHandle requires ptr and ptrType"),!!hi.T!=!!hi.S&&qx("Both smartPtrType and smartPtr must be specified"),hi.count={value:1},qa(Object.create(Cs,{L:{value:hi}}))}function qa(Cs){return typeof FinalizationRegistry>"u"?(qa=hi=>hi,Cs):(y1=new FinalizationRegistry(hi=>{r1(hi.L)}),qa=hi=>{var Ns=hi.L;return Ns.S&&y1.register(hi,{L:Ns},hi),hi},JC=hi=>{y1.unregister(hi)},qa(Cs))}var nf={};function Ws(Cs){for(;Cs.length;){var hi=Cs.pop();Cs.pop()(hi)}}function up(Cs){return this.fromWireType(Cn[Cs>>2])}var th={},ip={};function Co(Cs,hi,Ns){function Ar(Fs){(Fs=Ns(Fs)).length!==Cs.length&&qx("Mismatched type converter count");for(var Gl=0;Gl<Cs.length;++Gl)mo(Cs[Gl],Fs[Gl])}Cs.forEach(function(Fs){ip[Fs]=hi});var ba=Array(hi.length),Qs=[],ia=0;hi.forEach((Fs,Gl)=>{ly.hasOwnProperty(Fs)?ba[Gl]=ly[Fs]:(Qs.push(Fs),th.hasOwnProperty(Fs)||(th[Fs]=[]),th[Fs].push(()=>{ba[Gl]=ly[Fs],++ia===Qs.length&&Ar(ba)}))}),Qs.length===0&&Ar(ba)}function Qo(Cs){switch(Cs){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+Cs)}}function mo(Cs,hi,Ns={}){if(!("argPackAdvance"in hi))throw TypeError("registerType registeredInstance requires argPackAdvance");var Ar=hi.name;if(Cs||kf('type "'+Ar+'" must have a positive integer typeid pointer'),ly.hasOwnProperty(Cs)){if(Ns.ta)return;kf("Cannot register type '"+Ar+"' twice")}ly[Cs]=hi,delete ip[Cs],th.hasOwnProperty(Cs)&&(hi=th[Cs],delete th[Cs],hi.forEach(ba=>ba()))}function Dl(Cs){kf(Cs.L.O.M.name+" instance already deleted")}function no(){}function yu(Cs,hi,Ns){if(Cs[hi].R===void 0){var Ar=Cs[hi];Cs[hi]=function(){return Cs[hi].R.hasOwnProperty(arguments.length)||kf("Function '"+Ns+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+Cs[hi].R+")!"),Cs[hi].R[arguments.length].apply(this,arguments)},Cs[hi].R=[],Cs[hi].R[Ar.Y]=Ar}}function Ls(Cs,hi,Ns,Ar,ba,Qs,ia,Fs){this.name=Cs,this.constructor=hi,this.W=Ns,this.V=Ar,this.P=ba,this.oa=Qs,this.aa=ia,this.ma=Fs,this.ia=[]}function jp(Cs,hi,Ns){for(;hi!==Ns;)hi.aa||kf("Expected null or instance of "+Ns.name+", got an instance of "+hi.name),Cs=hi.aa(Cs),hi=hi.P;return Cs}function Xl(Cs,hi){return hi===null?(this.da&&kf("null is not a valid "+this.name),0):(hi.L||kf('Cannot pass "'+IC(hi)+'" as a '+this.name),hi.L.N||kf("Cannot pass deleted object as a pointer of type "+this.name),jp(hi.L.N,hi.L.O.M,this.M))}function hl(Cs,hi){if(hi===null){if(this.da&&kf("null is not a valid "+this.name),this.ca){var Ns=this.ea();return Cs!==null&&Cs.push(this.V,Ns),Ns}return 0}if(hi.L||kf('Cannot pass "'+IC(hi)+'" as a '+this.name),hi.L.N||kf("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&hi.L.O.ba&&kf("Cannot convert argument of type "+(hi.L.T?hi.L.T.name:hi.L.O.name)+" to parameter type "+this.name),Ns=jp(hi.L.N,hi.L.O.M,this.M),this.ca)switch(hi.L.S===void 0&&kf("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:hi.L.T===this?Ns=hi.L.S:kf("Cannot convert argument of type "+(hi.L.T?hi.L.T.name:hi.L.O.name)+" to parameter type "+this.name);break;case 1:Ns=hi.L.S;break;case 2:if(hi.L.T===this)Ns=hi.L.S;else{var Ar=hi.clone();Ns=this.wa(Ns,Mf(function(){Ar.delete()})),Cs!==null&&Cs.push(this.V,Ns)}break;default:kf("Unsupporting sharing policy")}return Ns}function bo(Cs,hi){return hi===null?(this.da&&kf("null is not a valid "+this.name),0):(hi.L||kf('Cannot pass "'+IC(hi)+'" as a '+this.name),hi.L.N||kf("Cannot pass deleted object as a pointer of type "+this.name),hi.L.O.ba&&kf("Cannot convert argument of type "+hi.L.O.name+" to parameter type "+this.name),jp(hi.L.N,hi.L.O.M,this.M))}function N_(Cs,hi,Ns,Ar){this.name=Cs,this.M=hi,this.da=Ns,this.ba=Ar,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,hi.P!==void 0?this.toWireType=hl:(this.toWireType=Ar?Xl:bo,this.U=null)}function Ed(Cs,hi){var Ns,Ar,ba=(Cs=_a(Cs)).includes("j")?(Ns=Cs,Ar=[],function(){if(Ar.length=0,Object.assign(Ar,arguments),Ns.includes("j")){var Qs=z["dynCall_"+Ns];Qs=Ar&&Ar.length?Qs.apply(null,[hi].concat(Ar)):Qs.call(null,hi)}else Qs=Fo.get(hi).apply(null,Ar);return Qs}):Fo.get(hi);return typeof ba!="function"&&kf("unknown function pointer with signature "+Cs+": "+hi),ba}var gy=void 0;function _h(Cs,hi){var Ns=[],Ar={};throw hi.forEach(function ba(Qs){Ar[Qs]||ly[Qs]||(ip[Qs]?ip[Qs].forEach(ba):(Ns.push(Qs),Ar[Qs]=!0))}),new gy(Cs+": "+Ns.map(p0).join([", "]))}function kg(Cs,hi,Ns,Ar,ba){var Qs=hi.length;2>Qs&&kf("argTypes array size mismatch! Must at least get return value and 'this' types!");var ia=hi[1]!==null&&Ns!==null,Fs=!1;for(Ns=1;Ns<hi.length;++Ns)if(hi[Ns]!==null&&hi[Ns].U===void 0){Fs=!0;break}var Gl=hi[0].name!=="void",Cu=Qs-2,af=Array(Cu),Tp=[],Lu=[];return function(){if(arguments.length!==Cu&&kf("function "+Cs+" called with "+arguments.length+" arguments, expected "+Cu+" args!"),Lu.length=0,Tp.length=ia?2:1,Tp[0]=ba,ia){var Zh=hi[1].toWireType(Lu,this);Tp[1]=Zh}for(var vu=0;vu<Cu;++vu)af[vu]=hi[vu+2].toWireType(Lu,arguments[vu]),Tp.push(af[vu]);if(vu=Ar.apply(null,Tp),Fs)Ws(Lu);else for(var Cc=ia?1:2;Cc<hi.length;Cc++){var Xm=Cc===1?Zh:af[Cc-2];hi[Cc].U!==null&&hi[Cc].U(Xm)}return Gl?hi[0].fromWireType(vu):void 0}}function Zp(Cs,hi){for(var Ns=[],Ar=0;Ar<Cs;Ar++)Ns.push(Qn[hi+4*Ar>>2]);return Ns}function wu(Cs){4<Cs&&--$s[Cs].fa==0&&($s[Cs]=void 0,Zl.push(Cs))}function IC(Cs){if(Cs===null)return"null";var hi=typeof Cs;return hi==="object"||hi==="array"||hi==="function"?Cs.toString():""+Cs}function oB(Cs,hi){for(var Ns="",Ar=0;!(Ar>=hi/2);++Ar){var ba=zn[Cs+2*Ar>>1];if(ba==0)break;Ns+=String.fromCharCode(ba)}return Ns}function HS(Cs,hi,Ns){if(Ns===void 0&&(Ns=2147483647),2>Ns)return 0;Ns-=2;var Ar=hi;Ns=Ns<2*Cs.length?Ns/2:Cs.length;for(var ba=0;ba<Ns;++ba)zn[hi>>1]=Cs.charCodeAt(ba),hi+=2;return zn[hi>>1]=0,hi-Ar}function xv(Cs){return 2*Cs.length}function Wf(Cs,hi){for(var Ns=0,Ar="";!(Ns>=hi/4);){var ba=Cn[Cs+4*Ns>>2];if(ba==0)break;++Ns,65536<=ba?(ba-=65536,Ar+=String.fromCharCode(55296|ba>>10,56320|1023&ba)):Ar+=String.fromCharCode(ba)}return Ar}function Is(Cs,hi,Ns){if(Ns===void 0&&(Ns=2147483647),4>Ns)return 0;var Ar=hi;Ns=Ar+Ns-4;for(var ba=0;ba<Cs.length;++ba){var Qs=Cs.charCodeAt(ba);if(55296<=Qs&&57343>=Qs&&(Qs=65536+((1023&Qs)<<10)|1023&Cs.charCodeAt(++ba)),Cn[hi>>2]=Qs,(hi+=4)+4>Ns)break}return Cn[hi>>2]=0,hi-Ar}function Wo(Cs){for(var hi=0,Ns=0;Ns<Cs.length;++Ns){var Ar=Cs.charCodeAt(Ns);55296<=Ar&&57343>=Ar&&++Ns,hi+=4}return hi}var wl={};function zo(Cs){var hi=wl[Cs];return hi===void 0?_a(Cs):hi}var Pc=[],Hu=[],Vf=[null,[],[]];Xo=z.BindingError=ja("BindingError"),z.count_emval_handles=function(){for(var Cs=0,hi=5;hi<$s.length;++hi)$s[hi]!==void 0&&++Cs;return Cs},z.get_first_emval=function(){for(var Cs=5;Cs<$s.length;++Cs)if($s[Cs]!==void 0)return $s[Cs];return null},Wt=z.PureVirtualError=ja("PureVirtualError");for(var Hf=Array(256),rp=0;256>rp;++rp)Hf[rp]=String.fromCharCode(rp);Gp=Hf,z.getInheritedInstanceCount=function(){return Object.keys(oy).length},z.getLiveInheritedInstances=function(){var Cs,hi=[];for(Cs in oy)oy.hasOwnProperty(Cs)&&hi.push(oy[Cs]);return hi},z.flushPendingDeletes=q_,z.setDelayFunction=function(Cs){Qy=Cs,kd.length&&Qy&&Qy(q_)},VS=z.InternalError=ja("InternalError"),no.prototype.isAliasOf=function(Cs){if(!(this instanceof no&&Cs instanceof no))return!1;var hi=this.L.O.M,Ns=this.L.N,Ar=Cs.L.O.M;for(Cs=Cs.L.N;hi.P;)Ns=hi.aa(Ns),hi=hi.P;for(;Ar.P;)Cs=Ar.aa(Cs),Ar=Ar.P;return hi===Ar&&Ns===Cs},no.prototype.clone=function(){if(this.L.N||Dl(this),this.L.$)return this.L.count.value+=1,this;var Cs=qa,hi=Object,Ns=hi.create,Ar=Object.getPrototypeOf(this),ba=this.L;return Cs=Cs(Ns.call(hi,Ar,{L:{value:{count:ba.count,Z:ba.Z,$:ba.$,N:ba.N,O:ba.O,S:ba.S,T:ba.T}}})),Cs.L.count.value+=1,Cs.L.Z=!1,Cs},no.prototype.delete=function(){this.L.N||Dl(this),this.L.Z&&!this.L.$&&kf("Object already scheduled for deletion"),JC(this),r1(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},no.prototype.isDeleted=function(){return!this.L.N},no.prototype.deleteLater=function(){return this.L.N||Dl(this),this.L.Z&&!this.L.$&&kf("Object already scheduled for deletion"),kd.push(this),kd.length===1&&Qy&&Qy(q_),this.L.Z=!0,this},N_.prototype.pa=function(Cs){return this.ja&&(Cs=this.ja(Cs)),Cs},N_.prototype.ga=function(Cs){this.V&&this.V(Cs)},N_.prototype.argPackAdvance=8,N_.prototype.readValueFromPointer=up,N_.prototype.deleteObject=function(Cs){Cs!==null&&Cs.delete()},N_.prototype.fromWireType=function(Cs){function hi(){return this.ca?Di(this.M.W,{O:this.va,N:Ar,T:this,S:Cs}):Di(this.M.W,{O:this,N:Cs})}var Ns,Ar=this.pa(Cs);if(!Ar)return this.ga(Cs),null;var ba=oy[UB(this.M,Ar)];if(ba!==void 0)return ba.L.count.value===0?(ba.L.N=Ar,ba.L.S=Cs,ba.clone()):(ba=ba.clone(),this.ga(Cs),ba);if(!(ba=dg[ba=this.M.oa(Ar)]))return hi.call(this);ba=this.ba?ba.ka:ba.pointerType;var Qs=function ia(Fs,Gl,Cu){return Gl===Cu?Fs:Cu.P===void 0||(Fs=ia(Fs,Gl,Cu.P))===null?null:Cu.ma(Fs)}(Ar,this.M,ba.M);return Qs===null?hi.call(this):this.ca?Di(ba.M.W,{O:ba,N:Qs,T:this,S:Cs}):Di(ba.M.W,{O:ba,N:Qs})},gy=z.UnboundTypeError=ja("UnboundTypeError");var C_=typeof atob=="function"?atob:function(Cs){var hi="",Ns=0;Cs=Cs.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Cs.charAt(Ns++)),ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Cs.charAt(Ns++)),Qs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Cs.charAt(Ns++)),ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Cs.charAt(Ns++));Ar=Ar<<2|ba>>4,ba=(15&ba)<<4|Qs>>2;var Fs=(3&Qs)<<6|ia;hi+=String.fromCharCode(Ar),Qs!==64&&(hi+=String.fromCharCode(ba)),ia!==64&&(hi+=String.fromCharCode(Fs))}while(Ns<Cs.length);return hi},im={q:function(Cs,hi,Ns){Cs=_a(Cs),hi=XB(hi,"wrapper"),Ns=Zc(Ns);var Ar=[].slice,ba=hi.M,Qs=ba.W,ia=ba.P.W,Fs=ba.P.constructor;for(var Gl in Cs=ai(Cs,function(){ba.P.ia.forEach(function(Cu){if(this[Cu]===ia[Cu])throw new Wt("Pure virtual function "+Cu+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:Qs}),this.__construct.apply(this,Ar.call(arguments))}),Qs.__construct=function(){this===Qs&&kf("Pass correct 'this' to __construct");var Cu=Fs.implement.apply(void 0,[this].concat(Ar.call(arguments)));JC(Cu);var af=Cu.L;Cu.notifyOnDestruction(),af.$=!0,Object.defineProperties(this,{L:{value:af}}),qa(this),Cu=UB(ba,Cu=af.N),oy.hasOwnProperty(Cu)?kf("Tried to register registered instance: "+Cu):oy[Cu]=this},Qs.__destruct=function(){this===Qs&&kf("Pass correct 'this' to __destruct"),JC(this);var Cu=this.L.N;Cu=UB(ba,Cu),oy.hasOwnProperty(Cu)?delete oy[Cu]:kf("Tried to unregister unregistered instance: "+Cu)},Cs.prototype=Object.create(Qs),Ns)Cs.prototype[Gl]=Ns[Gl];return Mf(Cs)},k:function(Cs){var hi=nf[Cs];delete nf[Cs];var Ns=hi.ea,Ar=hi.V,ba=hi.ha;Co([Cs],ba.map(Qs=>Qs.sa).concat(ba.map(Qs=>Qs.ya)),Qs=>{var ia={};return ba.forEach((Fs,Gl)=>{var Cu=Qs[Gl],af=Fs.qa,Tp=Fs.ra,Lu=Qs[Gl+ba.length],Zh=Fs.xa,vu=Fs.za;ia[Fs.na]={read:Cc=>Cu.fromWireType(af(Tp,Cc)),write:(Cc,Xm)=>{var d0=[];Zh(vu,Cc,Lu.toWireType(d0,Xm)),Ws(d0)}}}),[{name:hi.name,fromWireType:function(Fs){var Gl,Cu={};for(Gl in ia)Cu[Gl]=ia[Gl].read(Fs);return Ar(Fs),Cu},toWireType:function(Fs,Gl){for(var Cu in ia)if(!(Cu in Gl))throw TypeError('Missing field: "'+Cu+'"');var af=Ns();for(Cu in ia)ia[Cu].write(af,Gl[Cu]);return Fs!==null&&Fs.push(Ar,af),af},argPackAdvance:8,readValueFromPointer:up,U:Ar}]})},w:function(){},C:function(Cs,hi,Ns,Ar,ba){var Qs=Qo(Ns);mo(Cs,{name:hi=_a(hi),fromWireType:function(ia){return!!ia},toWireType:function(ia,Fs){return Fs?Ar:ba},argPackAdvance:8,readValueFromPointer:function(ia){if(Ns===1)var Fs=Zt;else if(Ns===2)Fs=zn;else if(Ns===4)Fs=Cn;else throw TypeError("Unknown boolean type size: "+hi);return this.fromWireType(Fs[ia>>Qs])},U:null})},f:function(Cs,hi,Ns,Ar,ba,Qs,ia,Fs,Gl,Cu,af,Tp,Lu){af=_a(af),Qs=Ed(ba,Qs),Fs&&(Fs=Ed(ia,Fs)),Cu&&(Cu=Ed(Gl,Cu)),Lu=Ed(Tp,Lu);var Zh,vu=va(af);Zh=function(){_h("Cannot construct "+af+" due to unbound types",[Ar])},z.hasOwnProperty(vu)?(kf("Cannot register public name '"+vu+"' twice"),yu(z,vu,vu),z.hasOwnProperty(void 0)&&kf("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),z[vu].R[void 0]=Zh):z[vu]=Zh,Co([Cs,hi,Ns],Ar?[Ar]:[],function(Cc){if(Cc=Cc[0],Ar)var Xm,d0=Cc.M,bu=d0.W;else bu=no.prototype;Cc=ai(vu,function(){if(Object.getPrototypeOf(this)!==i1)throw new Xo("Use 'new' to construct "+af);if(fe.X===void 0)throw new Xo(af+" has no accessible constructor");var Lb=fe.X[arguments.length];if(Lb===void 0)throw new Xo("Tried to invoke ctor of "+af+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(fe.X).toString()+") parameters instead!");return Lb.apply(this,arguments)});var i1=Object.create(bu,{constructor:{value:Cc}});Cc.prototype=i1;var fe=new Ls(af,Cc,i1,Lu,d0,Qs,Fs,Cu);d0=new N_(af,fe,!0,!1),bu=new N_(af+"*",fe,!1,!1);var Uu=new N_(af+" const*",fe,!1,!0);return dg[Cs]={pointerType:bu,ka:Uu},Xm=Cc,z.hasOwnProperty(vu)||qx("Replacing nonexistant public symbol"),z[vu]=Xm,z[vu].Y=void 0,[d0,bu,Uu]})},d:function(Cs,hi,Ns,Ar,ba,Qs,ia){var Fs=Zp(Ns,Ar);hi=_a(hi),Qs=Ed(ba,Qs),Co([],[Cs],function(Gl){function Cu(){_h("Cannot call "+af+" due to unbound types",Fs)}var af=(Gl=Gl[0]).name+"."+hi;hi.startsWith("@@")&&(hi=Symbol[hi.substring(2)]);var Tp=Gl.M.constructor;return Tp[hi]===void 0?(Cu.Y=Ns-1,Tp[hi]=Cu):(yu(Tp,hi,af),Tp[hi].R[Ns-1]=Cu),Co([],Fs,function(Lu){return Lu=kg(af,[Lu[0],null].concat(Lu.slice(1)),null,Qs,ia),Tp[hi].R===void 0?(Lu.Y=Ns-1,Tp[hi]=Lu):Tp[hi].R[Ns-1]=Lu,[]}),[]})},p:function(Cs,hi,Ns,Ar,ba,Qs){0<hi||wi();var ia=Zp(hi,Ns);ba=Ed(Ar,ba),Co([],[Cs],function(Fs){var Gl="constructor "+(Fs=Fs[0]).name;if(Fs.M.X===void 0&&(Fs.M.X=[]),Fs.M.X[hi-1]!==void 0)throw new Xo("Cannot register multiple constructors with identical number of parameters ("+(hi-1)+") for class '"+Fs.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return Fs.M.X[hi-1]=()=>{_h("Cannot construct "+Fs.name+" due to unbound types",ia)},Co([],ia,function(Cu){return Cu.splice(1,0,null),Fs.M.X[hi-1]=kg(Gl,Cu,null,ba,Qs),[]}),[]})},b:function(Cs,hi,Ns,Ar,ba,Qs,ia,Fs){var Gl=Zp(Ns,Ar);hi=_a(hi),Qs=Ed(ba,Qs),Co([],[Cs],function(Cu){function af(){_h("Cannot call "+Tp+" due to unbound types",Gl)}var Tp=(Cu=Cu[0]).name+"."+hi;hi.startsWith("@@")&&(hi=Symbol[hi.substring(2)]),Fs&&Cu.M.ia.push(hi);var Lu=Cu.M.W,Zh=Lu[hi];return Zh===void 0||Zh.R===void 0&&Zh.className!==Cu.name&&Zh.Y===Ns-2?(af.Y=Ns-2,af.className=Cu.name,Lu[hi]=af):(yu(Lu,hi,Tp),Lu[hi].R[Ns-2]=af),Co([],Gl,function(vu){return vu=kg(Tp,vu,Cu,Qs,ia),Lu[hi].R===void 0?(vu.Y=Ns-2,Lu[hi]=vu):Lu[hi].R[Ns-2]=vu,[]}),[]})},B:function(Cs,hi){mo(Cs,{name:hi=_a(hi),fromWireType:function(Ns){var Ar=Zc(Ns);return wu(Ns),Ar},toWireType:function(Ns,Ar){return Mf(Ar)},argPackAdvance:8,readValueFromPointer:up,U:null})},n:function(Cs,hi,Ns){Ns=Qo(Ns),mo(Cs,{name:hi=_a(hi),fromWireType:function(Ar){return Ar},toWireType:function(Ar,ba){return ba},argPackAdvance:8,readValueFromPointer:function(Ar,ba){switch(ba){case 2:return function(Qs){return this.fromWireType(br[Qs>>2])};case 3:return function(Qs){return this.fromWireType(cn[Qs>>3])};default:throw TypeError("Unknown float type: "+Ar)}}(hi,Ns),U:null})},e:function(Cs,hi,Ns,Ar,ba){hi=_a(hi),ba===-1&&(ba=4294967295),ba=Qo(Ns);var Qs=Fs=>Fs;if(Ar===0){var ia=32-8*Ns;Qs=Fs=>Fs<<ia>>>ia}Ns=hi.includes("unsigned")?function(Fs,Gl){return Gl>>>0}:function(Fs,Gl){return Gl},mo(Cs,{name:hi,fromWireType:Qs,toWireType:Ns,argPackAdvance:8,readValueFromPointer:function(Fs,Gl,Cu){switch(Gl){case 0:return Cu?function(af){return Zt[af]}:function(af){return mn[af]};case 1:return Cu?function(af){return zn[af>>1]}:function(af){return wn[af>>1]};case 2:return Cu?function(af){return Cn[af>>2]}:function(af){return Qn[af>>2]};default:throw TypeError("Unknown integer type: "+Fs)}}(hi,ba,Ar!==0),U:null})},c:function(Cs,hi,Ns){function Ar(Qs){Qs>>=2;var ia=Qn;return new ba(ia.buffer,ia[Qs+1],ia[Qs])}var ba=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][hi];mo(Cs,{name:Ns=_a(Ns),fromWireType:Ar,argPackAdvance:8,readValueFromPointer:Ar},{ta:!0})},o:function(Cs,hi){var Ns=(hi=_a(hi))==="std::string";mo(Cs,{name:hi,fromWireType:function(Ar){var ba=Qn[Ar>>2],Qs=Ar+4;if(Ns)for(var ia=Qs,Fs=0;Fs<=ba;++Fs){var Gl=Qs+Fs;if(Fs==ba||mn[Gl]==0){if(ia=ia?Ve(mn,ia,Gl-ia):"",Cu===void 0)var Cu=ia;else Cu+="\0"+ia;ia=Gl+1}}else{for(Fs=0,Cu=Array(ba);Fs<ba;++Fs)Cu[Fs]=String.fromCharCode(mn[Qs+Fs]);Cu=Cu.join("")}return nh(Ar),Cu},toWireType:function(Ar,ba){ba instanceof ArrayBuffer&&(ba=new Uint8Array(ba));var Qs,ia=typeof ba=="string";if(ia||ba instanceof Uint8Array||ba instanceof Uint8ClampedArray||ba instanceof Int8Array||kf("Cannot pass non-string to std::string"),Ns&&ia){var Fs=0;for(Qs=0;Qs<ba.length;++Qs){var Gl=ba.charCodeAt(Qs);127>=Gl?Fs++:2047>=Gl?Fs+=2:55296<=Gl&&57343>=Gl?(Fs+=4,++Qs):Fs+=3}Qs=Fs}else Qs=ba.length;if(Gl=(Fs=ya(4+Qs+1))+4,Qn[Fs>>2]=Qs,Ns&&ia){if(ia=Gl,Gl=Qs+1,Qs=mn,0<Gl){Gl=ia+Gl-1;for(var Cu=0;Cu<ba.length;++Cu){var af=ba.charCodeAt(Cu);if(55296<=af&&57343>=af&&(af=65536+((1023&af)<<10)|1023&ba.charCodeAt(++Cu)),127>=af){if(ia>=Gl)break;Qs[ia++]=af}else{if(2047>=af){if(ia+1>=Gl)break;Qs[ia++]=192|af>>6}else{if(65535>=af){if(ia+2>=Gl)break;Qs[ia++]=224|af>>12}else{if(ia+3>=Gl)break;Qs[ia++]=240|af>>18,Qs[ia++]=128|af>>12&63}Qs[ia++]=128|af>>6&63}Qs[ia++]=128|63&af}}Qs[ia]=0}}else if(ia)for(ia=0;ia<Qs;++ia)255<(Cu=ba.charCodeAt(ia))&&(nh(Gl),kf("String has UTF-16 code units that do not fit in 8 bits")),mn[Gl+ia]=Cu;else for(ia=0;ia<Qs;++ia)mn[Gl+ia]=ba[ia];return Ar!==null&&Ar.push(nh,Fs),Fs},argPackAdvance:8,readValueFromPointer:up,U:function(Ar){nh(Ar)}})},j:function(Cs,hi,Ns){if(Ns=_a(Ns),hi===2)var Ar=oB,ba=HS,Qs=xv,ia=()=>wn,Fs=1;else hi===4&&(Ar=Wf,ba=Is,Qs=Wo,ia=()=>Qn,Fs=2);mo(Cs,{name:Ns,fromWireType:function(Gl){for(var Cu,af=Qn[Gl>>2],Tp=ia(),Lu=Gl+4,Zh=0;Zh<=af;++Zh){var vu=Gl+4+Zh*hi;(Zh==af||Tp[vu>>Fs]==0)&&(Lu=Ar(Lu,vu-Lu),Cu===void 0?Cu=Lu:Cu+="\0"+Lu,Lu=vu+hi)}return nh(Gl),Cu},toWireType:function(Gl,Cu){typeof Cu!="string"&&kf("Cannot pass non-string to C++ string type "+Ns);var af=Qs(Cu),Tp=ya(4+af+hi);return Qn[Tp>>2]=af>>Fs,ba(Cu,Tp+4,af+hi),Gl!==null&&Gl.push(nh,Tp),Tp},argPackAdvance:8,readValueFromPointer:up,U:function(Gl){nh(Gl)}})},l:function(Cs,hi,Ns,Ar,ba,Qs){nf[Cs]={name:_a(hi),ea:Ed(Ns,Ar),V:Ed(ba,Qs),ha:[]}},i:function(Cs,hi,Ns,Ar,ba,Qs,ia,Fs,Gl,Cu){nf[Cs].ha.push({na:_a(hi),sa:Ns,qa:Ed(Ar,ba),ra:Qs,ya:ia,xa:Ed(Fs,Gl),za:Cu})},D:function(Cs,hi){mo(Cs,{ua:!0,name:hi=_a(hi),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},t:function(Cs,hi,Ns,Ar,ba){Cs=Pc[Cs],hi=Zc(hi),Ns=zo(Ns);var Qs=[];return Qn[Ar>>2]=Mf(Qs),Cs(hi,Ns,Qs,ba)},u:function(Cs,hi,Ns,Ar){Cs=Pc[Cs],Cs(hi=Zc(hi),Ns=zo(Ns),null,Ar)},h:wu,m:function(Cs,hi){var Ns,Ar,ba=function(Gl,Cu){for(var af=Array(Gl),Tp=0;Tp<Gl;++Tp)af[Tp]=XB(Qn[Cu+4*Tp>>2],"parameter "+Tp);return af}(Cs,hi),Qs=ba[0],ia=Hu[hi=Qs.name+"_$"+ba.slice(1).map(function(Gl){return Gl.name}).join("_")+"$"];if(ia!==void 0)return ia;var Fs=Array(Cs-1);return Ns=(Gl,Cu,af,Tp)=>{for(var Lu=0,Zh=0;Zh<Cs-1;++Zh)Fs[Zh]=ba[Zh+1].readValueFromPointer(Tp+Lu),Lu+=ba[Zh+1].argPackAdvance;for(Zh=0,Gl=Gl[Cu].apply(Gl,Fs);Zh<Cs-1;++Zh)ba[Zh+1].la&&ba[Zh+1].la(Fs[Zh]);if(!Qs.ua)return Qs.toWireType(af,Gl)},Ar=Pc.length,Pc.push(Ns),ia=Ar,Hu[hi]=ia},r:function(Cs){4<Cs&&($s[Cs].fa+=1)},s:function(Cs){Ws(Zc(Cs)),wu(Cs)},g:function(){wi("")},y:function(Cs,hi,Ns){mn.copyWithin(Cs,hi,hi+Ns)},x:function(Cs){var hi=mn.length;if(2147483648<(Cs>>>=0))return!1;for(var Ns=1;4>=Ns;Ns*=2){var Ar=hi*(1+.2/Ns);Ar=Math.min(Ar,Cs+100663296);var ba=Math,Qs=ba.min;Ar=Math.max(Cs,Ar),Ar+=(65536-Ar%65536)%65536;e:{var ia=Ie.buffer;try{Ie.grow(Qs.call(ba,2147483648,Ar)-ia.byteLength+65535>>>16),ze();var Fs=1;break e}catch{}Fs=void 0}if(Fs)return!0}return!1},A:function(){return 52},v:function(){return 70},z:function(Cs,hi,Ns,Ar){for(var ba=0,Qs=0;Qs<Ns;Qs++){var ia=Qn[hi>>2],Fs=Qn[hi+4>>2];hi+=8;for(var Gl=0;Gl<Fs;Gl++){var Cu=mn[ia+Gl],af=Vf[Cs];Cu===0||Cu===10?((Cs===1?h:v)(Ve(af,0)),af.length=0):af.push(Cu)}ba+=Fs}return Qn[Ar>>2]=ba,0},a:Ie},Bl=function(){function Cs(Ns){z.asm=Ns.exports,Fo=z.asm.I,Bn.unshift(z.asm.E),ar--,z.monitorRunDependencies&&z.monitorRunDependencies(ar),ar==0&&vi&&(Ns=vi,vi=null,Ns())}var hi={a:im};if(ar++,z.monitorRunDependencies&&z.monitorRunDependencies(ar),z.instantiateWasm)try{return z.instantiateWasm(hi,Cs)}catch(Ns){v("Module.instantiateWasm callback failed with error: "+Ns),_e(Ns)}return hi=function(Ns){var Ar=r;try{try{if(Ar==r&&Ae)new Uint8Array(Ae);else{if(Po(Ar)){try{var ba=C_(Ar.slice(37)),Qs=new Uint8Array(ba.length);for(Ar=0;Ar<ba.length;++Ar)Qs[Ar]=ba.charCodeAt(Ar);var ia=Qs}catch{throw Error("Converting base64 string to bytes failed.")}var Fs=ia}else Fs=void 0;if(!Fs)throw"sync fetching of the wasm failed: you can preload it to Module['wasmBinary'] manually, or emcc.py will do that for you when generating HTML (but not JS)"}}catch(af){wi(af)}var Gl=new S,Cu=new k(Ns)}catch(af){throw v("failed to compile wasm module: "+(Ns=af.toString())),(Ns.includes("imported Memory")||Ns.includes("memory import"))&&v("Memory size incompatibility issues may be due to changing INITIAL_MEMORY at runtime to something too large. Use ALLOW_MEMORY_GROWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at runtime to something smaller than it was at compile time)."),af}return[Cu,Gl]}(hi),Cs(hi[0]),z.asm}(),sp=z.___getTypeName=Bl.F;z.__embind_initialize_bindings=Bl.G;var ya=Bl.H,nh=Bl.J;function ig(){function Cs(){if(!o&&(o=!0,z.calledRun=!0,!Xe)){if(Hs(Bn),te(z),z.onRuntimeInitialized&&z.onRuntimeInitialized(),z.postRun)for(typeof z.postRun=="function"&&(z.postRun=[z.postRun]);z.postRun.length;){var hi=z.postRun.shift();es.unshift(hi)}Hs(es)}}if(!(0<ar)){if(z.preRun)for(typeof z.preRun=="function"&&(z.preRun=[z.preRun]);z.preRun.length;)(function(){var hi=z.preRun.shift();Io.unshift(hi)})();Hs(Io),0<ar||(z.setStatus?(z.setStatus("Running..."),setTimeout(function(){setTimeout(function(){z.setStatus("")},1),Cs()},1)):Cs())}}if(z.dynCall_jiji=Bl.K,vi=function Cs(){o||ig(),o||(vi=Cs)},z.preInit)for(typeof z.preInit=="function"&&(z.preInit=[z.preInit]);0<z.preInit.length;)z.preInit.pop()();return ig(),e}})()});var R9r={};module.exports=GHe(R9r);oe();var dNe=Bm(LKt());oe();var YVn=function(i,e,r){if(r||arguments.length===2)for(var o=0,u=e.length,d;o<u;o++)(d||!(o in e))&&(d||(d=Array.prototype.slice.call(e,0,o)),d[o]=e[o]);return i.concat(d||Array.prototype.slice.call(e))},FKt=function(){function i(e,r,o,u){this._uri=e,this._languageId=r,this._version=o,this._content=u,this._lineOffsets=void 0}return Object.defineProperty(i.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),i.prototype.getText=function(e){if(e){var r=this.offsetAt(e.start),o=this.offsetAt(e.end);return this._content.substring(r,o)}return this._content},i.prototype.update=function(e,r){for(var o=0,u=e;o<u.length;o++){var d=u[o];if(i.isIncremental(d)){var h=RKt(d.range),v=this.offsetAt(h.start),S=this.offsetAt(h.end);this._content=this._content.substring(0,v)+d.text+this._content.substring(S,this._content.length);var k=Math.max(h.start.line,0),L=Math.max(h.end.line,0),z=this._lineOffsets,te=OKt(d.text,!1,v);if(L-k===te.length)for(var _e=0,Ae=te.length;_e<Ae;_e++)z[_e+k+1]=te[_e];else te.length<1e4?z.splice.apply(z,YVn([k+1,L-k],te,!1)):this._lineOffsets=z=z.slice(0,k+1).concat(te,z.slice(L+1));var Ie=d.text.length-(S-v);if(Ie!==0)for(var _e=k+1+te.length,Ae=z.length;_e<Ae;_e++)z[_e]=z[_e]+Ie}else if(i.isFull(d))this._content=d.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=r},i.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=OKt(this._content,!0)),this._lineOffsets},i.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var r=this.getLineOffsets(),o=0,u=r.length;if(u===0)return{line:0,character:e};for(;o<u;){var d=Math.floor((o+u)/2);r[d]>e?u=d:o=d+1}var h=o-1;return{line:h,character:e-r[h]}},i.prototype.offsetAt=function(e){var r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;var o=r[e.line],u=e.line+1<r.length?r[e.line+1]:this._content.length;return Math.max(Math.min(o+e.character,u),o)},Object.defineProperty(i.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),i.isIncremental=function(e){var r=e;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")},i.isFull=function(e){var r=e;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0},i}(),Rdt;(function(i){function e(u,d,h,v){return new FKt(u,d,h,v)}i.create=e;function r(u,d,h){if(u instanceof FKt)return u.update(d,h),u;throw new Error("TextDocument.update: document must be created by TextDocument.create")}i.update=r;function o(u,d){for(var h=u.getText(),v=NLt(d.map(QVn),function(Ae,Ie){var Xe=Ae.range.start.line-Ie.range.start.line;return Xe===0?Ae.range.start.character-Ie.range.start.character:Xe}),S=0,k=[],L=0,z=v;L<z.length;L++){var te=z[L],_e=u.offsetAt(te.range.start);if(_e<S)throw new Error("Overlapping edit");_e>S&&k.push(h.substring(S,_e)),te.newText.length&&k.push(te.newText),S=u.offsetAt(te.range.end)}return k.push(h.substr(S)),k.join("")}i.applyEdits=o})(Rdt||(Rdt={}));function NLt(i,e){if(i.length<=1)return i;var r=i.length/2|0,o=i.slice(0,r),u=i.slice(r);NLt(o,e),NLt(u,e);for(var d=0,h=0,v=0;d<o.length&&h<u.length;){var S=e(o[d],u[h]);S<=0?i[v++]=o[d++]:i[v++]=u[h++]}for(;d<o.length;)i[v++]=o[d++];for(;h<u.length;)i[v++]=u[h++];return i}function OKt(i,e,r){r===void 0&&(r=0);for(var o=e?[r]:[],u=0;u<i.length;u++){var d=i.charCodeAt(u);(d===13||d===10)&&(d===13&&u+1<i.length&&i.charCodeAt(u+1)===10&&u++,o.push(r+u+1))}return o}function RKt(i){var e=i.start,r=i.end;return e.line>r.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:i}function QVn(i){var e=RKt(i.range);return e!==i.range?{newText:i.newText,range:e}:i}oe();oe();oe();iT();oe();var OT=Bm(DFt(),1),nC=OT.default,rVr=OT.default.stringify,iVr=OT.default.fromJSON,sVr=OT.default.plugin,aVr=OT.default.parse,oVr=OT.default.list,lVr=OT.default.document,cVr=OT.default.comment,uVr=OT.default.atRule,fVr=OT.default.rule,pVr=OT.default.decl,dVr=OT.default.root,_Vr=OT.default.CssSyntaxError,mVr=OT.default.Declaration,hVr=OT.default.Container,BVr=OT.default.Processor,gVr=OT.default.Document,yVr=OT.default.Comment,CVr=OT.default.Warning,vVr=OT.default.AtRule,bVr=OT.default.Result,SVr=OT.default.Input,xVr=OT.default.Rule,EVr=OT.default.Root,TVr=OT.default.Node;var vvn=Bm(TOt(),1);var bvn=Bm(t$t(),1);iT();iT();iT();var GRt=Bm(ROt(),1);oe();oe();var MOt,I$t,P$t,N$t,L$t=!0;typeof process<"u"&&({FORCE_COLOR:MOt,NODE_DISABLE_COLORS:I$t,NO_COLOR:P$t,TERM:N$t}=process.env||{},L$t=process.stdout&&process.stdout.isTTY);var Wx={enabled:!I$t&&P$t==null&&N$t!=="dumb"&&(MOt!=null&&MOt!=="0"||L$t),reset:GT(0,0),bold:GT(1,22),dim:GT(2,22),italic:GT(3,23),underline:GT(4,24),inverse:GT(7,27),hidden:GT(8,28),strikethrough:GT(9,29),black:GT(30,39),red:GT(31,39),green:GT(32,39),yellow:GT(33,39),blue:GT(34,39),magenta:GT(35,39),cyan:GT(36,39),white:GT(37,39),gray:GT(90,39),grey:GT(90,39),bgBlack:GT(40,49),bgRed:GT(41,49),bgGreen:GT(42,49),bgYellow:GT(43,49),bgBlue:GT(44,49),bgMagenta:GT(45,49),bgCyan:GT(46,49),bgWhite:GT(47,49)};function w$t(i,e){let r=0,o,u="",d="";for(;r<i.length;r++)o=i[r],u+=o.open,d+=o.close,~e.indexOf(o.close)&&(e=e.replace(o.rgx,o.close+o.open));return u+e+d}function S$n(i,e){let r={has:i,keys:e};return r.reset=Wx.reset.bind(r),r.bold=Wx.bold.bind(r),r.dim=Wx.dim.bind(r),r.italic=Wx.italic.bind(r),r.underline=Wx.underline.bind(r),r.inverse=Wx.inverse.bind(r),r.hidden=Wx.hidden.bind(r),r.strikethrough=Wx.strikethrough.bind(r),r.black=Wx.black.bind(r),r.red=Wx.red.bind(r),r.green=Wx.green.bind(r),r.yellow=Wx.yellow.bind(r),r.blue=Wx.blue.bind(r),r.magenta=Wx.magenta.bind(r),r.cyan=Wx.cyan.bind(r),r.white=Wx.white.bind(r),r.gray=Wx.gray.bind(r),r.grey=Wx.grey.bind(r),r.bgBlack=Wx.bgBlack.bind(r),r.bgRed=Wx.bgRed.bind(r),r.bgGreen=Wx.bgGreen.bind(r),r.bgYellow=Wx.bgYellow.bind(r),r.bgBlue=Wx.bgBlue.bind(r),r.bgMagenta=Wx.bgMagenta.bind(r),r.bgCyan=Wx.bgCyan.bind(r),r.bgWhite=Wx.bgWhite.bind(r),r}function GT(i,e){let r={open:`\x1B[${i}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(o){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(i)||(this.has.push(i),this.keys.push(r)),o===void 0?this:Wx.enabled?w$t(this.keys,o+""):o+""):o===void 0?S$n([i],[r]):Wx.enabled?w$t([r],o+""):o+""}}var ON=Wx;oe();oe();oe();var x$n=Object.defineProperty,Pce=(i,e)=>{for(var r in e)x$n(i,r,{get:e[r],enumerable:!0})};var P9={};Pce(P9,{at:()=>F$n,compact:()=>U$n,concat:()=>j$n,every:()=>M$n,filter:()=>T$n,filterMap:()=>k$n,flat:()=>W$n,forEach:()=>w$n,from:()=>E$n,has:()=>G$n,head:()=>N$n,map:()=>D$n,next:()=>I$n,prev:()=>P$n,reduce:()=>A$n,some:()=>R$n,tail:()=>L$n,uniq:()=>O$n});var E$n=i=>Array.from(i),T$n=i=>e=>e.filter(i),D$n=i=>e=>e.map(i),A$n=(i,e)=>r=>r.reduce(i,e),k$n=i=>e=>e.reduce((r,o,u,d)=>{let h=i(o,u,d);return h==null?r:[...r,h]},[]),w$n=i=>e=>e.forEach(i),I$n=(i,e)=>r=>r[(i+1)%(e?r.length:r.length-1)],P$n=(i,e)=>r=>r[(i-1+(e?r.length:0))%r.length],N$n=i=>i[0],L$n=i=>i[i.length-1],F$n=i=>e=>e.at(i),O$n=i=>[...new Set(i)],R$n=i=>e=>e.some(i),M$n=i=>e=>e.every(i),G$n=i=>e=>e.includes(i),j$n=(...i)=>e=>e.concat(...i),U$n=i=>i.filter(e=>e!=null),W$n=()=>i=>i.flat();oe();var E6={};Pce(E6,{and:()=>z$n,not:()=>H$n,or:()=>V$n});function V$n(...i){return e=>i.some(r=>r(e))}var H$n=i=>e=>!i(e);function z$n(...i){return e=>i.every(r=>r(e))}oe();var _Je=(...i)=>e=>{for(let r of i){let o=r(e);if(o!=null)return o}};function BCe(i,e){return r=>{if(i(r))return e(r)}}var GOt=i=>e=>BCe(()=>!0,i)(e);oe();oe();function vA(i,...e){return e.reduce((r,o)=>o(r),i)}function UH(i){return e=>(i(e),e)}var fX=i=>i,F_t=()=>{};var aF=(i,e)=>r=>{try{return i(r)}catch(o){return fX(e?.(o,r))}};oe();var O_t=i=>typeof i=="boolean";var R_t=i=>typeof i=="string",F$t=i=>Array.isArray(i),M_t=i=>i!==null&&typeof i=="object"&&!F$t(i),jOt=i=>typeof i=="function";var dS={};Pce(dS,{assign:()=>K$n,assignTo:()=>X$n,bind:()=>Y$n,compact:()=>$$n,defaults:()=>nZn,entries:()=>q$n,filter:()=>O$t,fromEntries:()=>G_t,get:()=>iZn,keys:()=>Q$n,map:()=>J$n,merge:()=>R$t,omit:()=>eZn,pick:()=>tZn,split:()=>Z$n});var G_t=i=>Object.fromEntries(i),J$n=i=>e=>G_t(Object.entries(e).map(([r,o])=>i(r,o))),q$n=i=>Object.entries(i);function K$n(i){return e=>({...e,...jOt(i)?i(e):i})}var X$n=i=>e=>G_t([[i,e]]),Y$n=(i,e)=>r=>fX({...r,[i]:e(r)}),Q$n=i=>Object.keys(i),O$t=i=>e=>G_t(Object.entries(e).filter(([r,o])=>i(r,o))),$$n=i=>O$t((e,r)=>r!=null)(i),Z$n=(...i)=>e=>{let r=Object.getOwnPropertyDescriptors(e),o=Object.keys(r),u=h=>{let v={};for(let S=0;S<h.length;S++){let k=h[S];r[k]&&(Object.defineProperty(v,k,r[k]),delete r[k])}return v},d=h=>u(Array.isArray(h)?h:o.filter(h));return i.map(d).concat(u(o))};function R$t(...i){return e=>{if(!i.length)return e;for(let r=1;r<i.length;r++){let o={...i[r]};for(let u in o){let d=e[u],h=o[u];M_t(d)&&M_t(h)?e[u]=R$t(h)(d):e[u]=h}}return e}}var eZn=i=>e=>{let r={...e};for(let o=0;o<i.length;o++)delete r[i[o]];return r},tZn=i=>e=>{let r={};for(let o=0;o<i.length;o++)r[i[o]]=e[i[o]];return r},nZn=i=>e=>fX({...i,...e}),rZn=i=>i!=="__proto__"&&i!=="prototype"&&i!=="constructor",iZn=(i,e)=>r=>{let o=Array.isArray(i)?i:i.split(".");for(let u=0;u<o.length;u++){let d=o[u];if(!r||!Object.prototype.hasOwnProperty.call(r,d)||!rZn(d)){r=void 0;break}r=r[d]}return fX(r??e)};oe();var mJe={};Pce(mJe,{filter:()=>mZn,flatMap:()=>cZn,fromExecution:()=>aZn,fromNullable:()=>M$t,fromPredicate:()=>sZn,getOrElse:()=>uZn,getOrThrow:()=>fZn,isNone:()=>Hte,isSome:()=>G$t,map:()=>lZn,match:()=>pZn,none:()=>Nce,orElse:()=>dZn,some:()=>hJe,tap:()=>_Zn});var Nce=Object.freeze({_tag:"None"}),hJe=i=>Object.freeze({_tag:"Some",value:i});function sZn(i){return e=>i(e)?hJe(e):Nce}var M$t=i=>i==null?Nce:hJe(i),aZn=i=>{try{return M$t(i())}catch{return Nce}},Hte=i=>i._tag==="None",G$t=i=>i._tag==="Some",oZn=i=>i._tag==="None"||i._tag==="Some",lZn=i=>e=>Hte(e)?Nce:hJe(i(e.value)),cZn=i=>e=>Hte(e)?Nce:i(e.value),uZn=i=>e=>Hte(e)?i():e.value,fZn=i=>e=>{if(Hte(e))throw new Error(i);return e.value},pZn=(i,e)=>r=>Hte(r)?e():i(r.value),dZn=i=>e=>{let r=i();return oZn(r)?Hte(e)?r:e:Hte(e)?hJe(r):e},_Zn=i=>e=>(G$t(e)&&i(e.value),e),mZn=i=>e=>Hte(e)?Nce:i(e.value)?e:Nce;function CZn(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var UOt=new Map,j$t=(i,e)=>{if(!Array.isArray(i))switch(typeof i){case"string":i=[i];break;case"undefined":i=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof i}'`)}return i.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},vZn=(i,e)=>{e={caseSensitive:!1,...e};let r=i+JSON.stringify(e);if(UOt.has(r))return UOt.get(r);let o=i[0]==="!";o&&(i=i.slice(1)),i=CZn(i).replace(/\\\*/g,"[\\s\\S]*");let u=new RegExp(`^${i}$`,e.caseSensitive?"":"i");return u.negated=o,UOt.set(r,u),u},bZn=(i,e,r,o)=>{if(i=j$t(i,"inputs"),e=j$t(e,"patterns"),e.length===0)return[];e=e.map(h=>vZn(h,r));let{allPatterns:u}=r||{},d=[];for(let h of i){let v,S=[...e].fill(!1);for(let[k,L]of e.entries())if(L.test(h)&&(S[k]=!0,v=!L.negated,!v))break;if(!(v===!1||v===void 0&&e.some(k=>!k.negated)||u&&S.some((k,L)=>!k&&!e[L].negated))&&(d.push(h),o))break}return d};function SZn(i,e,r){return bZn(i,e,r,!0).length>0}var WOt={debug:{weight:0,color:ON.magenta},info:{weight:1,color:ON.blue},warn:{weight:2,color:ON.yellow},error:{weight:3,color:ON.red},silent:{weight:4,color:ON.white}},xZn=i=>vA({entry:i},dS.assign(({entry:e})=>({uword:e.type?ON.gray(`[${e.type}]`):""})),_Je(BCe(({entry:e})=>e.level!=null,({entry:e,uword:r})=>{let{msg:o,level:u}=e,d=WOt[u].color;return{label:["\u{1F43C}",ON.bold(d(`${u}`)),r].filter(Boolean).join(" "),msg:o}}),GOt(({entry:e,uword:r})=>{let{msg:o}=e;return{label:r??"",msg:o}}))),EZn=(i,e,r)=>{let o=r instanceof Error?ON.red(r.message):r;return{type:e,level:i,msg:o}},TZn=(i,e)=>i.some(r=>SZn(e,r)),DZn=(i={})=>{let e=i.level??"info",{stdout:r,timing:o}=vA(i,({filter:u})=>({getLevel:()=>u?"debug":e,filter:u!=="*"?u?.split(/[\s,]+/)??[]:[]}),dS.assignTo("config"),dS.assign(({config:u})=>({isValid(d,h){let v=WOt[u.getLevel()].weight>WOt[d].weight;return!(u.filter.length>0&&!TZn(u.filter,h)||v)}})),dS.assign(({isValid:u,config:d})=>({stdout(h){return(v,S)=>{vA(EZn(h,v,S),_Je(BCe(({level:k,type:L})=>k!=null&&u(k,L),k=>{let{msg:L,label:z}=xZn(k)??{};console.log(z,L)}),BCe(({level:k})=>d.getLevel()!=="silent"&&k==null,()=>{console.log(...[v,S].filter(Boolean))})))}}})),dS.assign(({stdout:u})=>({timing:d=>h=>{let v=performance.now();return()=>{let k=performance.now()-v;u(d)("hrtime",`${h} ${ON.gray(`(${k.toFixed(2)}ms)`)}`)}}})));return{get level(){return e},set level(u){e=u},warn:r("warn"),info:r("info"),debug:r("debug"),error:r("error"),log:u=>r(null)("",u),time:{info:o("info"),debug:o("debug")}}},U$t=i=>{let e=r=>`${i}/${r}`;return e.toString=()=>i,e},zte=(...i)=>ON.cyan(`\`${i.join("")}\``),y_=DZn({filter:typeof process<"u"?process.env.PANDA_DEBUG:void 0});iT();oe();var WH=Symbol("@ts-pattern/matcher"),U_t="@ts-pattern/anonymous-select-key",VOt=function(i){return!!(i&&typeof i=="object")},j_t=function(i){return i&&!!i[WH]},Jte=function i(e,r,o){if(VOt(e)){if(j_t(e)){var u=e[WH]().match(r),d=u.matched,h=u.selections;return d&&h&&Object.keys(h).forEach(function(S){return o(S,h[S])}),d}if(!VOt(r))return!1;if(Array.isArray(e))return!!Array.isArray(r)&&e.length===r.length&&e.every(function(S,k){return i(S,r[k],o)});if(e instanceof Map)return r instanceof Map&&Array.from(e.keys()).every(function(S){return i(e.get(S),r.get(S),o)});if(e instanceof Set){if(!(r instanceof Set))return!1;if(e.size===0)return r.size===0;if(e.size===1){var v=Array.from(e.values())[0];return j_t(v)?Array.from(r.values()).every(function(S){return i(v,S,o)}):r.has(v)}return Array.from(e.values()).every(function(S){return r.has(S)})}return Object.keys(e).every(function(S){var k,L=e[S];return(S in r||j_t(k=L)&&k[WH]().matcherType==="optional")&&i(L,r[S],o)})}return Object.is(r,e)},Lce=function i(e){var r,o,u;return VOt(e)?j_t(e)?(r=(o=(u=e[WH]()).getSelectionKeys)==null?void 0:o.call(u))!=null?r:[]:Array.isArray(e)?BJe(e,i):BJe(Object.values(e),i):[]},BJe=function(i,e){return i.reduce(function(r,o){return r.concat(e(o))},[])};function W$t(i){var e;return(e={})[WH]=function(){return{match:function(r){var o={},u=function(d,h){o[d]=h};return r===void 0?(Lce(i).forEach(function(d){return u(d,void 0)}),{matched:!0,selections:o}):{matched:Jte(i,r,u),selections:o}},getSelectionKeys:function(){return Lce(i)},matcherType:"optional"}},e}function V$t(i){var e;return(e={})[WH]=function(){return{match:function(r){if(!Array.isArray(r))return{matched:!1};var o={};if(r.length===0)return Lce(i).forEach(function(d){o[d]=[]}),{matched:!0,selections:o};var u=function(d,h){o[d]=(o[d]||[]).concat([h])};return{matched:r.every(function(d){return Jte(i,d,u)}),selections:o}},getSelectionKeys:function(){return Lce(i)}}},e}function H$t(){var i,e=[].slice.call(arguments);return(i={})[WH]=function(){return{match:function(r){var o={},u=function(d,h){o[d]=h};return{matched:e.every(function(d){return Jte(d,r,u)}),selections:o}},getSelectionKeys:function(){return BJe(e,Lce)},matcherType:"and"}},i}function z$t(){var i,e=[].slice.call(arguments);return(i={})[WH]=function(){return{match:function(r){var o={},u=function(d,h){o[d]=h};return BJe(e,Lce).forEach(function(d){return u(d,void 0)}),{matched:e.some(function(d){return Jte(d,r,u)}),selections:o}},getSelectionKeys:function(){return BJe(e,Lce)},matcherType:"or"}},i}function J$t(i){var e;return(e={})[WH]=function(){return{match:function(r){return{matched:!Jte(i,r,function(){})}},getSelectionKeys:function(){return[]},matcherType:"not"}},e}function pX(i){var e;return(e={})[WH]=function(){return{match:function(r){return{matched:!!i(r)}}}},e}function q$t(){var i,e=[].slice.call(arguments),r=typeof e[0]=="string"?e[0]:void 0,o=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return(i={})[WH]=function(){return{match:function(u){var d,h=((d={})[r??U_t]=u,d);return{matched:o===void 0||Jte(o,u,function(v,S){h[v]=S}),selections:h}},getSelectionKeys:function(){return[r??U_t].concat(o===void 0?[]:Lce(o))}}},i}var K$t=pX(function(i){return!0}),AZn=K$t,kZn=pX(function(i){return typeof i=="string"}),wZn=pX(function(i){return typeof i=="number"}),IZn=pX(function(i){return typeof i=="boolean"}),PZn=pX(function(i){return typeof i=="bigint"}),NZn=pX(function(i){return typeof i=="symbol"}),LZn=pX(function(i){return i==null}),EE={__proto__:null,optional:W$t,array:V$t,intersection:H$t,union:z$t,not:J$t,when:pX,select:q$t,any:K$t,_:AZn,string:kZn,number:wZn,boolean:IZn,bigint:PZn,symbol:NZn,nullish:LZn,instanceOf:function(i){return pX(function(e){return function(r){return r instanceof e}}(i))},typed:function(){return{array:V$t,optional:W$t,intersection:H$t,union:z$t,not:J$t,select:q$t,when:pX}}};function f0(i){return new FZn(i,[])}var FZn=function(){function i(r,o){this.value=void 0,this.cases=void 0,this.value=r,this.cases=o}var e=i.prototype;return e.with=function(){var r=[].slice.call(arguments),o=r[r.length-1],u=[r[0]],d=[];return r.length===3&&typeof r[1]=="function"?(u.push(r[0]),d.push(r[1])):r.length>2&&u.push.apply(u,r.slice(1,r.length-1)),new i(this.value,this.cases.concat([{match:function(h){var v={},S=!!(u.some(function(k){return Jte(k,h,function(L,z){v[L]=z})})&&d.every(function(k){return k(h)}));return{matched:S,value:S&&Object.keys(v).length?U_t in v?v[U_t]:v:h}},handler:o}]))},e.when=function(r,o){return new i(this.value,this.cases.concat([{match:function(u){return{matched:!!r(u),value:u}},handler:o}]))},e.otherwise=function(r){return new i(this.value,this.cases.concat([{match:function(o){return{matched:!0,value:o}},handler:r}])).run()},e.exhaustive=function(){return this.run()},e.run=function(){for(var r=this.value,o=void 0,u=0;u<this.cases.length;u++){var d=this.cases[u],h=d.match(this.value);if(h.matched){r=h.value,o=d.handler;break}}if(!o){var v;try{v=JSON.stringify(this.value)}catch{v=this.value}throw new Error("Pattern matching error: no pattern matches value "+v)}return o(r,this.value)},i}();function gCe(){var i=[].slice.call(arguments);if(i.length===1){var e=i[0];return function(r){return Jte(e,r,function(){})}}if(i.length===2)return Jte(i[0],i[1],function(){});throw new Error("isMatching wasn't given the right number of arguments: expected 1 or 2, received "+i.length+".")}var URt=Bm(eZt(),1),Tvn=Bm(iZt(),1),Dvn=Bm(GCn(),1),WRt=Bm(TOt(),1),Avn=Bm(svn(),1);iT();var Rvn=Bm(ROt(),1),Mvn=Bm(E_t(),1);oe();function wRt(i,e={},r){for(let o in i){let u=i[o],d=r?`${r}:${o}`:o;typeof u=="object"&&u!==null?wRt(u,e,d):typeof u=="function"&&(e[d]=u)}return e}var Rnr={run:i=>i()},Mnr=()=>Rnr,ovn=typeof console.createTask<"u"?console.createTask:Mnr;function Gnr(i,e){let r=e.shift(),o=ovn(r);return i.reduce((u,d)=>u.then(()=>o.run(()=>d(...e))),Promise.resolve())}function jnr(i,e){let r=e.shift(),o=ovn(r);return Promise.all(i.map(u=>o.run(()=>u(...e))))}function kRt(i,e){for(let r of[...i])r(e)}var IRt=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,r,o={}){if(!e||typeof r!="function")return()=>{};let u=e,d;for(;this._deprecatedHooks[e];)d=this._deprecatedHooks[e],e=d.to;if(d&&!o.allowDeprecated){let h=d.message;h||(h=`${u} hook has been deprecated`+(d.to?`, please use ${d.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(h)||(console.warn(h),this._deprecatedMessages.add(h))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(r),()=>{r&&(this.removeHook(e,r),r=void 0)}}hookOnce(e,r){let o,u=(...d)=>(typeof o=="function"&&o(),o=void 0,u=void 0,r(...d));return o=this.hook(e,u),o}removeHook(e,r){if(this._hooks[e]){let o=this._hooks[e].indexOf(r);o!==-1&&this._hooks[e].splice(o,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,r){this._deprecatedHooks[e]=typeof r=="string"?{to:r}:r;let o=this._hooks[e]||[];delete this._hooks[e];for(let u of o)this.hook(e,u)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let r in e)this.deprecateHook(r,e[r])}addHooks(e){let r=wRt(e),o=Object.keys(r).map(u=>this.hook(u,r[u]));return()=>{for(let u of o.splice(0,o.length))u()}}removeHooks(e){let r=wRt(e);for(let o in r)this.removeHook(o,r[o])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...r){return r.unshift(e),this.callHookWith(Gnr,e,...r)}callHookParallel(e,...r){return r.unshift(e),this.callHookWith(jnr,e,...r)}callHookWith(e,r,...o){let u=this._before||this._after?{name:r,args:o,context:{}}:void 0;this._before&&kRt(this._before,u);let d=e(r in this._hooks?[...this._hooks[r]]:[],o);return d instanceof Promise?d.finally(()=>{this._after&&u&&kRt(this._after,u)}):(this._after&&u&&kRt(this._after,u),d)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let r=this._before.indexOf(e);r!==-1&&this._before.splice(r,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let r=this._after.indexOf(e);r!==-1&&this._after.splice(r,1)}}}};function dmt(){return new IRt}var avn=typeof window<"u";function lvn(i,e={}){let r={inspect:avn,group:avn,filter:()=>!0,...e},o=r.filter,u=typeof o=="string"?L=>L.startsWith(o):o,d=r.tag?`[${r.tag}] `:"",h=L=>d+L.name+"".padEnd(L._id,"\0"),v={},S=i.beforeEach(L=>{u!==void 0&&!u(L.name)||(v[L.name]=v[L.name]||0,L._id=v[L.name]++,console.time(h(L)))}),k=i.afterEach(L=>{u!==void 0&&!u(L.name)||(r.group&&console.groupCollapsed(L.name),r.inspect?console.timeLog(h(L),L.args):console.timeEnd(h(L)),r.group&&console.groupEnd(),v[L.name]--)});return{close:()=>{S(),k()}}}iT();function xJe(i){try{return nC.parse(i)}catch{return nC.root()}}var Unr={aspectRatio:!0,boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,WebkitLineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};function PRt(i){return typeof i.nodes>"u"?!0:RRt(i)}function RRt(i){let e,r={};return i.each(o=>{if(o.type==="atrule")e="@"+o.name,o.params&&(e+=" "+o.params),typeof r[e]>"u"?r[e]=PRt(o):Array.isArray(r[e])?r[e].push(PRt(o)):r[e]=[r[e],PRt(o)];else if(o.type==="rule"){let u=RRt(o);if(r[o.selector])for(let d in u)r[o.selector][d]=u[d];else r[o.selector]=u}else if(o.type==="decl"){o.prop[0]==="-"&&o.prop[1]==="-"?e=o.prop:e=(0,bvn.default)(o.prop);let u=o.value;!isNaN(Number(u))&&Unr[e]&&(u=parseFloat(o.value)),o.important&&(u+=" !important"),typeof r[e]>"u"?r[e]=u:Array.isArray(r[e])?r[e].push(u):r[e]=[r[e],u]}}),r}var cvn=/\s*!important\s*$/i,Wnr={"aspect-ratio":!0,"box-flex":!0,"box-flex-group":!0,"column-count":!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"font-weight":!0,"line-clamp":!0,"-webkit-line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"stroke-dashoffset":!0,"stroke-opacity":!0,"stroke-width":!0},Vnr=/([A-Z])/g,Hnr=/^ms-/;function znr(i){return i.replace(Vnr,"-$1").replace(Hnr,"-ms-").toLowerCase()}function uvn(i,e,r){if(r===!1||r==null)return;let o=e.startsWith("--");o||(e=znr(e)),typeof r=="number"&&(r===0||Wnr[e]||o?r=r.toString():r=`${r}px`),e==="css-float"&&(e="float"),cvn.test(r)?(r=r.replace(cvn,""),i.push(nC.decl({prop:e,value:r,important:!0}))):i.push(nC.decl({prop:e,value:r}))}function fvn(i,e,r){if(!e)return;let o=nC.atRule({name:e[1],params:e[3]||""});typeof r=="object"&&(o.nodes=[],MRt(r,o)),i.push(o)}function MRt(i,e){let r,o,u;for(r in i)if(o=i[r],!(o===null||typeof o>"u"))if(r[0]==="@"){let d=r.match(/@(\S+)(\s+([\W\w]*)\s*)?/);if(Array.isArray(o))for(let h of o)fvn(e,d,h);else fvn(e,d,o)}else if(Array.isArray(o))for(let d of o)uvn(e,r,d);else typeof o=="object"?(u=nC.rule({selector:r}),MRt(o,u),e.push(u)):uvn(e,r,o)}var Jnr=i=>{let e=nC.root();return MRt(i,e),e},qnr=Jnr,Svn={parser:qnr,objectify:RRt};function AU(i,{important:e}={}){let r=nC([(0,vvn.default)({bubble:["breakpoint"]})]).process(i,{parser:Svn.parser});return e&&r.root.walkDecls(o=>{o.important=!0}),r}function pvn(i){return Svn.objectify(xJe(i))}var _mt=class{constructor(i){this.context=i,this.root=nC.root()}root;layer="utilities";hashFn=(i,e)=>{let{conditions:r,hash:o,utility:u}=this.context,d;if(o){let h=[...r.finalize(i),e];d=u.formatClassName(sCe(h.join(":")))}else d=[...r.finalize(i),u.formatClassName(e)].join(":");return MLt(d)};get rule(){return this.context.conditions.rule()}get transform(){return this.context?.transform??this.context.utility.transform}process=i=>{let{styles:e}=i,{conditions:r}=this.context,o=Gdt(e,this.context),u=this.rule;if(b8(o,(h,v)=>{if(h==null)return;let S=WPe(h),[k,...L]=r.shift(v),z=UPe(L),te=this.transform(k,VPe(h)),_e=AU(te.styles,{important:S});if(u.nodes=_e.root.nodes,u.isEmpty)return;let Ae=this.hashFn(z,te.className);if(u.selector=S?`.${Ae}\\!`:`.${Ae}`,u.update(),u.applyConditions(z),te.layer){let Ie=nC.atRule({name:"layer",params:te.layer,nodes:[u.rule]});this.root.append(Ie)}else this.root.append(u.rule)}),this.root.nodes.length===0)return;let d=nC.atRule({name:"layer",params:this.layer,nodes:[this.root]});this.context.root.append(d)};toCss=()=>this.context.root.toString()},Knr=class{constructor(i){this.breakpoints=i}get sorted(){return Xnr(this.breakpoints)}get values(){return Object.fromEntries(this.sorted)}get keys(){return["base",...Object.keys(this.values)]}get=i=>this.values[i];build=({min:i,max:e})=>i==null&&e==null?"":["screen",i&&`(min-width: ${i})`,e&&`(max-width: ${e})`].filter(Boolean).join(" and ");up=i=>{let{min:e}=this.get(i);return this.build({min:e})};down=i=>{let{max:e}=this.get(i);return this.build({max:e})};between=(i,e)=>{let{min:r}=this.get(i),{max:o}=this.get(e);return this.build({min:r,max:o})};only=i=>{let{min:e,max:r}=this.get(i);return this.build({min:e,max:r})};get ranges(){let i=Object.keys(this.values),e=Qnr(i),r=i.flatMap((o,u)=>{let d=i[u],h=[`${d}Down`,this.down(d)],v=[d,this.up(d)],S=[`${d}Only`,this.only(d)];return[v,S,h]}).filter(([o,u])=>u!=="").concat(e.map(([o,u])=>[`${o}To${v8(u)}`,this.between(o,u)]));return Object.fromEntries(r)}get conditions(){let i=Object.entries(this.ranges).map(([e,r])=>[e,Ynr(e,r)]);return Object.fromEntries(i)}getCondition=i=>this.conditions[i];expandScreenAtRule=i=>{i.walkAtRules("breakpoint",e=>{let r=this.getCondition(e.params);if(!r)throw e.error(`No \`${e.params}\` screen found.`);e.name="media",e.params=r.params})}};function Xnr(i){return Object.entries(i).sort(([,e],[,r])=>parseInt(e,10)<parseInt(r,10)?-1:1).map(([e,r],o,u)=>{let d=null;if(o<=u.length-1&&(d=u[o+1]?.[1]),d!=null){let h=parseFloat(oCe(d)??"")-.05;d=RLt(`${h}px`)}return[e,{name:e,min:r,max:d}]})}var Ynr=(i,e)=>({type:"at-rule",name:"breakpoint",value:i,raw:i,rawValue:`@media ${e}`,params:e});function Qnr(i){let e=[];return i.forEach((r,o)=>{let u=o;u++;let d=i[u];for(;d;)e.push([r,d]),u++,d=i[u]}),e}function jRt(i,e){let{utility:r,conditions:o}=e,u=o.rule(),d={};return b8(i,(h,v)=>{let S=WPe(h),[k,...L]=o.shift(v),z=UPe(L),te=z.length>0,{styles:_e}=r.transform(k,VPe(h)),Ae=AU(_e,{important:S});if(te){let Ie=o.segment(z);u.nodes=Ae.root.nodes,u.selector=Ie.selector.length>0?Ie.selector[0]:"&",u.update(),u.applyConditions(Ie.condition),_e=pvn(u.toString())}else _e=pvn(Ae.css);(0,GRt.default)(d,_e)}),d}function $nr(i,e){let r={};for(let[o,u]of Object.entries(i))r[o]||={},(0,GRt.default)(r[o],jRt(u,e));return AU(r).root}function xvn(i,e){for(let[r,o]of Object.entries(i)){let u=GLt(o??{}),d={layer:"compositions",className:r,values:Object.keys(u),transform:h=>jRt(u[h],e)};e.utility.register(r,d)}}var Znr=class{constructor(i){this.conditionsMap=i}rule;selector="";nodes=[];get isEmpty(){return this.nodes.length===0}update=()=>{this.rule=nC.rule({selector:this.selector,nodes:this.nodes})};applyConditions=i=>{let e=this.conditionsMap.sort(i),r=nC.rule({selector:this.selector});e.forEach(o=>{if(!o)return;let u=o.rawValue??o.value;(NRt(r)??r).append(nC.rule({selector:u}))}),NRt(r)?.append(this.nodes),this.rule=r};toString(){return this.rule.toString()}};function NRt(i){return i.nodes&&i.nodes.length?NRt(i.nodes[i.nodes.length-1]):i}function err(i){let r=xJe(i).nodes[0];return{type:"at-rule",name:r.name,value:r.params,raw:i,rawValue:i}}function LRt(i){if(i.startsWith("@"))return err(i);let e;if(i.startsWith("&")?e="self-nesting":i.endsWith(" &")?e="parent-nesting":i.includes("&")&&(e="combinator-nesting"),e)return{type:e,value:i,raw:i}}var dvn=["self-nesting","combinator-nesting","parent-nesting","at-rule"],trr=/^_/,nrr=/&|@/,Evn=class{constructor(i){this.options=i;let{breakpoints:e={},conditions:r={}}=this.options,o=new Knr(e);this.breakpoints=o;let u=Object.entries(r).map(([d,h])=>[`_${d}`,LRt(h)]);this.values={...Object.fromEntries(u),...o.conditions}}values;breakpoints;finalize=i=>i.map(e=>this.has(e)?e.replace(trr,""):nrr.test(e)?`[${yze(e.trim())}]`:e);shift=i=>i.slice().sort((e,r)=>{let o=this.isCondition(e),u=this.isCondition(r);return o&&!u?1:!o&&u||!o&&!u?-1:0});segment=i=>{let e=[],r=[];for(let o of i)this.isCondition(o)?e.push(o):r.push(o);return{condition:e,selector:r}};has=i=>Object.prototype.hasOwnProperty.call(this.values,i);isCondition=i=>this.has(i)||!!this.getRaw(i)||jPe(i);isEmpty=()=>Object.keys(this.values).length===0;get=i=>{let e=this.values[i];return e?.rawValue??e?.value};getRaw=i=>{try{return this.values[i]??LRt(i)}catch(e){y_.error("core:condition",e)}};sort=i=>i.map(this.getRaw).filter(Boolean).sort((r,o)=>dvn.indexOf(r.type)-dvn.indexOf(o.type));normalize=i=>typeof i=="string"?this.getRaw(i):i;keys=()=>Object.keys(this.values);rule=()=>new Znr(this)};var rrr=/token\(([^)]+)\)/g,irr=/\)$/;function kvn(i){return e=>{e.walkDecls(r=>{if(r.value.includes("token(")){let o=r.value.replace(rrr,(u,d)=>{let[h,v]=d.split(",").map(k=>k.trim()),S=[h,v].filter(Boolean).map(k=>i?.(k)??k);if(S.length>1){let[k,L]=S;return k.endsWith(")")?k.replace(irr,`, ${L})`):`var(${k}, ${L})`}return S[0]});r.value=o}})}}kvn.postcssPlugin="panda:expand-token-fn";var srr=kvn;function VRt(){return i=>{let e=new Map;i.walkAtRules("layer",r=>{let o=e.get(r.params);o?(r.remove(),o.append(r.nodes)):e.set(r.params,r)})}}VRt.postcssPlugin="panda-merge-layers";function wvn(i,e=0){i.each&&i.each((r,o)=>{(!r.raws.before||!r.raws.before.trim()||r.raws.before.includes(`
21115
21115
  `))&&(r.raws.before=`
21116
21116
  ${i.type!=="rule"&&o>0?`
21117
- `:""}${" ".repeat(e)}`),wvn(r,e+1)})}function EJe(){return i=>{wvn(i),i.first&&(i.first.raws.before="")}}EJe.postcssPlugin="panda-prettify";var arr=[":link",":visited",":focus-within",":focus",":focus-visible",":hover",":active"],_vn=i=>arr.findIndex(r=>i.trim().includes(r))+1;function HRt(){let i=e=>{let r=[],o=[],u=[];e.each(d=>{switch(d.type){case"rule":{d.first?.type==="atrule"?u.push(d):o.push(d);break}case"atrule":{u.push(d);break}default:r.push(d)}}),o.sort((d,h)=>{let v=d.selectors.length?d.selectors[0]:d.selector,S=h.selectors.length?h.selectors[0]:h.selector;return _vn(v)-_vn(S)}),e.nodes=[...r,...o,...u],e.nodes.forEach(d=>{"nodes"in d&&i(d)})};return i}HRt.postcssPlugin="panda-sort-css";var Ivn=/(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i,orr=/\(\s*min(-device)?-width/i,Pvn=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i,lrr=/\(\s*max(-device)?-width/i,FRt=mmt(Ivn,Pvn,orr),mvn=mmt(Pvn,Ivn,lrr),Nvn=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i,crr=/\(\s*min(-device)?-height/i,Lvn=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i,urr=/\(\s*max(-device)?-height/i,ORt=mmt(Nvn,Lvn,crr),hvn=mmt(Lvn,Nvn,urr),Bvn=/print/i,gvn=/^print$/i,SJe=Number.MAX_VALUE;function yvn(i){let e=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(i);if(e===null&&(FRt(i)||ORt(i))&&(e=/(\d)/.exec(i)),e==="0")return 0;if(e===null)return SJe;let r=e[1];switch(e[2]){case"ch":r=parseFloat(r)*8.8984375;break;case"em":case"rem":r=parseFloat(r)*16;break;case"ex":r=parseFloat(r)*8.296875;break;case"px":r=parseFloat(r);break}return+r}function mmt(i,e,r){return function(o){return i.test(o)?!0:e.test(o)?!1:r.test(o)}}function frr(i,e){let r=Bvn.test(i),o=gvn.test(i),u=Bvn.test(e),d=gvn.test(e);return r&&u?!o&&d?1:o&&!d?-1:i.localeCompare(e):r?1:u?-1:null}function prr(i={}){let{unitlessMqAlwaysFirst:e}=i;return function(o,u){let d=frr(o,u);if(d!==null)return d;let h=FRt(o)||ORt(o),v=mvn(o)||hvn(o),S=FRt(u)||ORt(u),k=mvn(u)||hvn(u);if(e&&(!h&&!v||!S&&!k))return!h&&!v&&!S&&!k?o.localeCompare(u):!S&&!k?1:-1;{if(h&&k)return-1;if(v&&S)return 1;let L=yvn(o),z=yvn(u);return L===SJe&&z===SJe?o.localeCompare(u):L===SJe?1:z===SJe?-1:L>z?v?-1:1:L<z?v?1:-1:o.localeCompare(u)}}}var drr=prr();function zRt(){let i=e=>{e.nodes.sort((r,o)=>f0({a:r,b:o}).with({a:{type:"atrule",name:"media"},b:{type:"atrule",name:"media"}},({a:u,b:d})=>drr(u.params,d.params)).with({a:{type:"atrule",name:"media"},b:EE.any},()=>1).with({a:EE.any,b:{type:"atrule",name:"media"}},()=>-1).otherwise(()=>0)),e.nodes.forEach(r=>{"nodes"in r&&i(r)})};return i}zRt.postcssPlugin="panda-sort-mq";function hmt(i,e={}){let{minify:r=!1}=e,{css:o}=nC([(0,WRt.default)(),VRt(),zRt(),(0,URt.default)(),(0,Dvn.default)(),HRt(),(0,Tvn.default)(),r?(0,Avn.default)():EJe()]).process(i);return o}function _rr(i,e={}){let{token:r}=e,{css:o}=nC([srr(r)]).process(i);return o}function Bmt(i){let{css:e}=nC([VRt(),(0,URt.default)(),zRt(),HRt(),EJe()]).process(i);return e}function Fvn(i){let{css:e}=nC([(0,WRt.default)(),EJe()]).process(i);return e}function Ovn(i){let{css:e}=nC([EJe()]).process(i);return e}function gmt(i,e){let r=xJe(i),o=xJe(e),u=r.nodes.filter(gCe({type:"atrule",name:"layer",params:"utilities"}));return o.walkAtRules("layer",d=>{d.params==="utilities"&&u.forEach(h=>{d.append(h.nodes)})}),Bmt(o)}var mrr=i=>{let e=i.map(r=>typeof r=="string"?r:r.source).join("|");return new RegExp(`^${e}$`)},N9={classNames:new Map,styles:new Map,configs:new Map},JRt=class{constructor(i={},e){this.recipes=i,this.context=e,this.assignRules()}rules=new Map;getPropKey=(i,e,r)=>`${i} (${e} = ${r})`;get separator(){return this.context?.utility.separator??"_"}getClassName=(i,e,r)=>`${i}--${e}${this.separator}${r}`;save=()=>{for(let[i,e]of Object.entries(this.recipes))this.assignRecipe(i,this.normalize(e))};assignRecipe=(i,e)=>{let r=Object.keys(e.variants??{}),o=e.jsx??[v8(i)],u=mrr(o);N9.configs.set(i,{...this.getNames(i),jsx:o,name:i,variantKeys:r,variantKeyMap:Object.fromEntries(Object.entries(e.variants??{}).map(([d,h])=>[d,Object.keys(h)])),match:u,config:e,splitProps:d=>ULt(d,r)})};assignRules=()=>{if(this.context)for(let i of Object.keys(this.recipes))this.rules.set(i,this.createRule(i))};isEmpty=()=>N9.configs.size===0;getNames=Aw(i=>({upperName:v8(i),dashName:Bze(i),jsxName:v8(i)}));getRecipe=Aw(i=>N9.configs.get(i));getConfig=Aw(i=>this.recipes[i]);find=Aw(i=>{for(let e of N9.configs.values())if(e.match.test(i))return e});getFnName=Aw(i=>this.find(i)?.name??gze(i));get details(){return Array.from(N9.configs.values())}get nodes(){return this.details.map(({upperName:i,variantKeys:e,name:r,jsx:o,match:u})=>({type:"recipe",name:i,props:e,baseName:r,jsx:o,match:u}))}splitProps=(i,e)=>{let r=this.find(i);return r?r.splitProps(e):[{},e]};normalize=i=>{let{name:e,jsx:r=[v8(e)],base:o={},variants:u={},defaultVariants:d={},description:h="",compoundVariants:v=[]}=i,S={jsx:r,name:e,description:h,base:{},variants:{},defaultVariants:d,compoundVariants:v};S.base=this.serialize(o),N9.styles.set(e,S.base),N9.classNames.set(e,e);for(let[k,L]of Object.entries(u))for(let[z,te]of Object.entries(L)){let _e=this.getPropKey(e,k,z),Ae=this.getClassName(e,k,z),Ie=this.serialize(te);N9.styles.set(_e,Ie),N9.classNames.set(_e,Ae),(0,Rvn.default)(S.variants,{[k]:{[z]:Ie}})}return S};serialize=i=>{if(!this.context)return i;let{utility:e,conditions:r}=this.context;return jRt(i,{utility:e,conditions:r})};getTransform=i=>(e,r)=>{if(r==="__ignore__")return{layer:"_base",className:N9.classNames.get(i),styles:N9.styles.get(i)??{}};let o=this.getPropKey(i,e,r);return{className:N9.classNames.get(o),styles:N9.styles.get(o)??{}}};createRule=i=>{if(!this.context)throw new Error("Can't create a rule without a context");let e=new _mt({...this.context,transform:this.getTransform(i)});return e.layer="recipes",e};process=(i,e)=>{let{styles:r}=e,o=this.getRecipe(i);if(!o)return;let{name:u,defaultVariants:d={},base:h={}}=o.config,v=Object.assign({[u]:"__ignore__"},d,r);if(Object.keys(v).length===1&&Object.keys(h).length===0)return;this.rules.get(u)?.process({styles:v})};toCss=()=>this.context?this.context.root.toString():""},hrr=/\s&/g;function Gvn(i){let e=new Set;(0,Mvn.default)(o=>{o.each(u=>{let d=LRt(u.toString());f0(d).with({type:"parent-nesting"},()=>{e.add(u.toString().replace(hrr,"").trim())}).otherwise(()=>{})})}).processSync(i);let r=Array.from(e).join(", ").trim();return e.size>1?`:where(${r})`:r}var Ldi=dmt(),Cvn=(i,e)=>i.breakpoints.includes(e)?e:`_${e}`;function jvn(i){let{css:e=[],recipes:r={}}=i,o={css:[],recipes:[]};return u=>(e.forEach(d=>{let h=d.conditions||[];d.responsive&&h.push(...u.breakpoints),Object.entries(d.properties).forEach(([v,S])=>{S.flatMap(L=>L==="*"?u.getPropertyKeys(v):L).forEach(L=>{let z=h.reduce((te,_e)=>({base:L,...te,[Cvn(u,_e)]:L}),{});o.css.push({[v]:h.length?z:L})})})}),Object.entries(r).forEach(([d,h])=>{h.forEach(v=>{let{conditions:S,responsive:k,...L}=v,z=S||[];k&&z.push(...u.breakpoints),Object.entries(L).forEach(([te,_e])=>{if(!Array.isArray(_e))return;_e.flatMap(Ie=>Ie==="*"?u.getRecipeKeys(d)[te]:Ie).forEach(Ie=>{let Xe=z.reduce((Ve,ze)=>({base:Ie,...Ve,[Cvn(u,ze)]:Ie}),{});o.recipes.push({[d]:{[te]:z.length?Xe:Ie}})})})})}),o)}var Uvn=class{constructor(i,e){this.context=i,this.options=e;let{recipes:r}=e??{};this.recipes=new JRt(r??{},i)}recipes;processGlobalCss=i=>{let{conditions:e,utility:r}=this.context,o=$nr(i,{conditions:e,utility:r}),u=nC.atRule({name:"layer",params:"base",nodes:[o]});this.context.root.append(u)};processSelectorObject(i,e){let r=AU(e),{nodes:o}=xJe(r);if(o.length===0)return;let u=nC.rule({selector:i,nodes:r.root.nodes});this.context.root.append(u)}processObject(i){let r=AU(i).root;this.context.root.append(r)}processAtomic=i=>{new _mt(this.context).process({styles:i})};processRecipe=(i,e)=>{this.recipes.process(i.name,{styles:e}),i.compoundVariants?.forEach(r=>{this.processAtomic(r.css)})};processAtomicRecipe=i=>{let{base:e={},variants:r={},compoundVariants:o=[]}=i;this.processAtomic(e);for(let u of Object.values(r))for(let d of Object.values(u))this.processAtomic(d);o.forEach(u=>{this.processAtomic(u.css)})};toCss=({optimize:i=!1,minify:e}={})=>{let{conditions:{breakpoints:r},utility:o}=this.context;r.expandScreenAtRule(this.context.root),_rr(this.context.root,{token:o.getToken});let u=this.context.root.toString();return i&&(u=hmt(u,{minify:e})),this.options?.content&&(u=`${this.options.content}
21117
+ `:""}${" ".repeat(e)}`),wvn(r,e+1)})}function EJe(){return i=>{wvn(i),i.first&&(i.first.raws.before="")}}EJe.postcssPlugin="panda-prettify";var arr=[":link",":visited",":focus-within",":focus",":focus-visible",":hover",":active"],_vn=i=>arr.findIndex(r=>i.trim().includes(r))+1;function HRt(){let i=e=>{let r=[],o=[],u=[];e.each(d=>{switch(d.type){case"rule":{d.first?.type==="atrule"?u.push(d):o.push(d);break}case"atrule":{u.push(d);break}default:r.push(d)}}),o.sort((d,h)=>{let v=d.selectors.length?d.selectors[0]:d.selector,S=h.selectors.length?h.selectors[0]:h.selector;return _vn(v)-_vn(S)}),e.nodes=[...r,...o,...u],e.nodes.forEach(d=>{"nodes"in d&&i(d)})};return i}HRt.postcssPlugin="panda-sort-css";var Ivn=/(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i,orr=/\(\s*min(-device)?-width/i,Pvn=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i,lrr=/\(\s*max(-device)?-width/i,FRt=mmt(Ivn,Pvn,orr),mvn=mmt(Pvn,Ivn,lrr),Nvn=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i,crr=/\(\s*min(-device)?-height/i,Lvn=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i,urr=/\(\s*max(-device)?-height/i,ORt=mmt(Nvn,Lvn,crr),hvn=mmt(Lvn,Nvn,urr),Bvn=/print/i,gvn=/^print$/i,SJe=Number.MAX_VALUE;function yvn(i){let e=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(i);if(e===null&&(FRt(i)||ORt(i))&&(e=/(\d)/.exec(i)),e==="0")return 0;if(e===null)return SJe;let r=e[1];switch(e[2]){case"ch":r=parseFloat(r)*8.8984375;break;case"em":case"rem":r=parseFloat(r)*16;break;case"ex":r=parseFloat(r)*8.296875;break;case"px":r=parseFloat(r);break}return+r}function mmt(i,e,r){return function(o){return i.test(o)?!0:e.test(o)?!1:r.test(o)}}function frr(i,e){let r=Bvn.test(i),o=gvn.test(i),u=Bvn.test(e),d=gvn.test(e);return r&&u?!o&&d?1:o&&!d?-1:i.localeCompare(e):r?1:u?-1:null}function prr(i={}){let{unitlessMqAlwaysFirst:e}=i;return function(o,u){let d=frr(o,u);if(d!==null)return d;let h=FRt(o)||ORt(o),v=mvn(o)||hvn(o),S=FRt(u)||ORt(u),k=mvn(u)||hvn(u);if(e&&(!h&&!v||!S&&!k))return!h&&!v&&!S&&!k?o.localeCompare(u):!S&&!k?1:-1;{if(h&&k)return-1;if(v&&S)return 1;let L=yvn(o),z=yvn(u);return L===SJe&&z===SJe?o.localeCompare(u):L===SJe?1:z===SJe?-1:L>z?v?-1:1:L<z?v?1:-1:o.localeCompare(u)}}}var drr=prr();function zRt(){let i=e=>{e.nodes.sort((r,o)=>f0({a:r,b:o}).with({a:{type:"atrule",name:"media"},b:{type:"atrule",name:"media"}},({a:u,b:d})=>drr(u.params,d.params)).with({a:{type:"atrule",name:"media"},b:EE.any},()=>1).with({a:EE.any,b:{type:"atrule",name:"media"}},()=>-1).otherwise(()=>0)),e.nodes.forEach(r=>{"nodes"in r&&i(r)})};return i}zRt.postcssPlugin="panda-sort-mq";function hmt(i,e={}){let{minify:r=!1}=e,{css:o}=nC([(0,WRt.default)(),VRt(),zRt(),(0,URt.default)(),(0,Dvn.default)(),HRt(),(0,Tvn.default)(),r?(0,Avn.default)():EJe()]).process(i);return o}function _rr(i,e={}){let{token:r}=e,{css:o}=nC([srr(r)]).process(i);return o}function Bmt(i){let{css:e}=nC([VRt(),(0,URt.default)(),zRt(),HRt(),EJe()]).process(i);return e}function Fvn(i){let{css:e}=nC([(0,WRt.default)(),EJe()]).process(i);return e}function Ovn(i){let{css:e}=nC([EJe()]).process(i);return e}function gmt(i,e){let r=xJe(i),o=xJe(e),u=r.nodes.filter(gCe({type:"atrule",name:"layer",params:"utilities"}));return o.walkAtRules("layer",d=>{d.params==="utilities"&&u.forEach(h=>{d.append(h.nodes)})}),Bmt(o)}var mrr=i=>{let e=i.map(r=>typeof r=="string"?r:r.source).join("|");return new RegExp(`^${e}$`)},N9={classNames:new Map,styles:new Map,configs:new Map},JRt=class{constructor(i={},e){this.recipes=i,this.context=e,this.assignRules()}rules=new Map;getPropKey=(i,e,r)=>`${i} (${e} = ${r})`;get separator(){return this.context?.utility.separator??"_"}getClassName=(i,e,r)=>`${i}--${e}${this.separator}${r}`;save=()=>{for(let[i,e]of Object.entries(this.recipes))this.assignRecipe(i,this.normalize(e))};assignRecipe=(i,e)=>{let r=Object.keys(e.variants??{}),o=e.jsx??[v8(i)],u=mrr(o);N9.configs.set(i,{...this.getNames(i),jsx:o,name:i,variantKeys:r,variantKeyMap:Object.fromEntries(Object.entries(e.variants??{}).map(([d,h])=>[d,Object.keys(h)])),match:u,config:e,splitProps:d=>ULt(d,r)})};assignRules=()=>{if(this.context)for(let i of Object.keys(this.recipes))this.rules.set(i,this.createRule(i))};isEmpty=()=>N9.configs.size===0;getNames=Aw(i=>({upperName:v8(i),dashName:Bze(i),jsxName:v8(i)}));getRecipe=Aw(i=>N9.configs.get(i));getConfig=Aw(i=>this.recipes[i]);find=Aw(i=>{for(let e of N9.configs.values())if(e.match.test(i))return e});getFnName=Aw(i=>this.find(i)?.name??gze(i));get details(){return Array.from(N9.configs.values())}get nodes(){return this.details.map(({upperName:i,variantKeys:e,name:r,jsx:o,match:u})=>({type:"recipe",name:i,props:e,baseName:r,jsx:o,match:u}))}splitProps=(i,e)=>{let r=this.find(i);return r?r.splitProps(e):[{},e]};normalize=i=>{let{name:e,jsx:r=[v8(e)],base:o={},variants:u={},defaultVariants:d={},description:h="",compoundVariants:v=[]}=i,S={jsx:r,name:e,description:h,base:{},variants:{},defaultVariants:d,compoundVariants:v};S.base=this.serialize(o),N9.styles.set(e,S.base),N9.classNames.set(e,e);for(let[k,L]of Object.entries(u))for(let[z,te]of Object.entries(L)){let _e=this.getPropKey(e,k,z),Ae=this.getClassName(e,k,z),Ie=this.serialize(te);N9.styles.set(_e,Ie),N9.classNames.set(_e,Ae),(0,Rvn.default)(S.variants,{[k]:{[z]:Ie}})}return S};serialize=i=>{if(!this.context)return i;let{utility:e,conditions:r}=this.context;return jRt(i,{utility:e,conditions:r})};getTransform=i=>(e,r)=>{if(r==="__ignore__")return{layer:"_base",className:N9.classNames.get(i),styles:N9.styles.get(i)??{}};let o=this.getPropKey(i,e,r);return{className:N9.classNames.get(o),styles:N9.styles.get(o)??{}}};createRule=i=>{if(!this.context)throw new Error("Can't create a rule without a context");let e=new _mt({...this.context,transform:this.getTransform(i)});return e.layer="recipes",e};process=(i,e)=>{let{styles:r}=e,o=this.getRecipe(i);if(!o)return;let{name:u,defaultVariants:d={},base:h={}}=o.config,v=Object.assign({[u]:"__ignore__"},d,r);if(Object.keys(v).length===1&&Object.keys(h).length===0)return;this.rules.get(u)?.process({styles:v})};toCss=()=>this.context?this.context.root.toString():""},hrr=/\s&/g;function Gvn(i){let e=new Set;(0,Mvn.default)(o=>{o.each(u=>{let d=LRt(u.toString());f0(d).with({type:"parent-nesting"},()=>{e.add(u.toString().replace(hrr,"").trim())}).otherwise(()=>{})})}).processSync(i);let r=Array.from(e).join(", ").trim();return e.size>1?`:where(${r})`:r}var Ldi=dmt(),Cvn=(i,e)=>i.breakpoints.includes(e)?e:`_${e}`;function jvn(i){let{css:e=[],recipes:r={}}=i,o={css:[],recipes:[]};return u=>(e.forEach(d=>{let h=d.conditions||[];d.responsive&&h.push(...u.breakpoints),Object.entries(d.properties).forEach(([v,S])=>{S.flatMap(L=>L==="*"?u.getPropertyKeys(v):L).forEach(L=>{let z=h.reduce((te,_e)=>({base:L,...te,[Cvn(u,_e)]:L}),{});o.css.push({[v]:h.length?z:L})})})}),Object.entries(r).forEach(([d,h])=>{h.forEach(v=>{let S=v;S==="*"&&(S={conditions:[],responsive:!0,...u.getRecipeKeys(d)});let{conditions:k,responsive:L,...z}=S,te=k||[];L&&te.push(...u.breakpoints),Object.entries(z).forEach(([_e,Ae])=>{if(!Array.isArray(Ae))return;Ae.flatMap(Xe=>Xe==="*"?u.getRecipeKeys(d)[_e]:Xe).forEach(Xe=>{let Ve=te.reduce((ze,Pt)=>({base:Xe,...ze,[Cvn(u,Pt)]:Xe}),{});o.recipes.push({[d]:{[_e]:te.length?Ve:Xe}})})})})}),o)}var Uvn=class{constructor(i,e){this.context=i,this.options=e;let{recipes:r}=e??{};this.recipes=new JRt(r??{},i)}recipes;processGlobalCss=i=>{let{conditions:e,utility:r}=this.context,o=$nr(i,{conditions:e,utility:r}),u=nC.atRule({name:"layer",params:"base",nodes:[o]});this.context.root.append(u)};processSelectorObject(i,e){let r=AU(e),{nodes:o}=xJe(r);if(o.length===0)return;let u=nC.rule({selector:i,nodes:r.root.nodes});this.context.root.append(u)}processObject(i){let r=AU(i).root;this.context.root.append(r)}processAtomic=i=>{new _mt(this.context).process({styles:i})};processRecipe=(i,e)=>{this.recipes.process(i.name,{styles:e}),i.compoundVariants?.forEach(r=>{this.processAtomic(r.css)})};processAtomicRecipe=i=>{let{base:e={},variants:r={},compoundVariants:o=[]}=i;this.processAtomic(e);for(let u of Object.values(r))for(let d of Object.values(u))this.processAtomic(d);o.forEach(u=>{this.processAtomic(u.css)})};toCss=({optimize:i=!1,minify:e}={})=>{let{conditions:{breakpoints:r},utility:o}=this.context;r.expandScreenAtRule(this.context.root),_rr(this.context.root,{token:o.getToken});let u=this.context.root.toString();return i&&(u=hmt(u,{minify:e})),this.options?.content&&(u=`${this.options.content}
21118
21118
 
21119
21119
  ${u}`),i?Bmt(u):u};append=(...i)=>{this.context.root.append(...i)};prepend=(...i)=>{this.context.root.prepend(...i)}},Wvn=class{tokens;classNames=new Map;styles=new Map;shorthands=new Map;types=new Map;propertyKeys=new Map;config={};customValues=new Map;transforms=new Map;configs=new Map;separator="_";prefix="";constructor(i){let{tokens:e,config:r={},separator:o,prefix:u,shorthands:d}=i;this.tokens=e,this.config=r,o&&(this.separator=o),u&&(this.prefix=u),d&&this.assignShorthands(),this.assignColorPaletteProperty(),this.assignProperties(),this.assignPropertyTypes()}register=(i,e)=>{this.assignProperty(i,e),this.assignPropertyType(i,e),this.config[i]=e};assignShorthands=()=>{for(let[i,e]of Object.entries(this.config)){let{shorthand:r}=this.normalize(e)??{};if(!r)continue;(Array.isArray(r)?r:[r]).forEach(u=>{this.shorthands.set(u,i)})}};assignColorPaletteProperty=()=>{let i=this.tokens.colorPalettes;this.config.colorPalette={values:Object.keys(i),transform(e){return i[e]}}};resolveShorthand=i=>this.shorthands.get(i)??i;get hasShorthand(){return this.shorthands.size>0}get isEmpty(){return Object.keys(this.config).length===0}entries=()=>Object.entries(this.config).filter(([,e])=>!!e?.className).map(([e,r])=>[e,r.className]);getPropKey=(i,e)=>`(${i} = ${e})`;hash=(i,e)=>`${i}${this.separator}${e}`;getPropertyValues=(i,e)=>{let{values:r}=i,o=u=>{let d=e?.(u);return d?{[d]:d}:void 0};return SU(r)?o?.(r)??this.tokens.getValue(r)??{}:Array.isArray(r)?r.reduce((u,d)=>(u[d]=d,u),{}):LLt(r)?r(e?o:this.getToken.bind(this)):r};getToken=i=>this.tokens.get(i);normalize=i=>i;assignProperty=(i,e)=>{let r=this.normalize(e);if(this.setTransform(i,r?.transform),!r)return;this.configs.set(i,r);let o=this.getPropertyValues(r);if(o)for(let[u,d]of Object.entries(o)){let h=this.getPropKey(i,u);this.setStyles(i,d,u,h),this.setClassName(i,u)}};assignProperties=()=>{for(let[i,e]of Object.entries(this.config))e&&this.assignProperty(i,e)};getPropertyKeys=i=>{let e=this.propertyKeys.get(i);return e?Array.from(e):[]};assignPropertyType=(i,e)=>{let r=this.normalize(e);if(!r)return;let o=this.getPropertyValues(r,d=>`type:Tokens["${d}"]`);if(typeof o=="object"&&o.type){this.types.set(i,new Set([`type:${o.type}`]));return}if(o){let d=new Set(Object.keys(o));this.types.set(i,d),this.propertyKeys.set(i,d)}let u=this.types.get(i)??new Set;r.property&&this.types.set(i,u.add(`CssProperties["${r.property}"]`))};assignPropertyTypes=()=>{for(let[i,e]of Object.entries(this.config))e&&this.assignPropertyType(i,e)};getTypes=()=>{let i=new Map;for(let[e,r]of this.types.entries()){if(r.size===0){i.set(e,["string"]);continue}let o=Array.from(r).map(u=>u.startsWith("CssProperties")?u:u.startsWith("type:")?u.replace("type:",""):JSON.stringify(u));i.set(e,o)}return i};defaultTransform=Aw((i,e)=>{if(e.startsWith("--")){let o=this.tokens.getTokenVar(i);i=typeof o=="string"?o:i}return{[e]:i}});setTransform=(i,e)=>{let o=e??(u=>this.defaultTransform(u,i));return this.transforms.set(i,o),this};setStyles=(i,e,r,o)=>{o=o??this.getPropKey(i,e);let u=v=>this.defaultTransform(v,i),h=(this.transforms.get(i)??u)(e,{token:this.getToken.bind(this),raw:r});return this.styles.set(o,h??{}),this};formatClassName=i=>[this.prefix,i].filter(Boolean).join("-");setClassName=(i,e)=>{let r=this.getPropKey(i,e),o=this.configs.get(i),u;return!o||!o.className?u=this.hash(jLt(i),e):u=this.hash(o.className,e),this.classNames.set(r,u),this};isProperty=i=>this.configs.has(i);getOrCreateClassName=(i,e)=>((o,u)=>{let d=this.getPropKey(o,u);return this.classNames.has(d)||(this.isProperty(o)&&this.customValues.set(o,u),this.setClassName(o,u)),this.classNames.get(d)})(i,e);getOrCreateStyle=(i,e)=>{let r=this.getPropKey(i,e);return this.styles.get(r)??this.setStyles(i,e,e,r),this.styles.get(r)};transform=(i,e)=>{if(e==null)return{className:"",styles:{}};let r=this.resolveShorthand(i);return Ace({layer:this.configs.get(r)?.layer,className:this.getOrCreateClassName(r,yze(e)),styles:this.getOrCreateStyle(r,e)})};keys=()=>{let i=Array.from(this.shorthands.keys()),e=Object.keys(this.config);return[...i,...e]}};oe();oe();var yqe=Bm(G9(),1);var Xd=Bm(G9(),1);oe();var dcr=Bm(aEn(),1),j9=Bm(lEn(),1);oe();var FU=Bm(require("path"),1),uEn=Bm(require("os"),1),Jlr=/(^\/\w:\/)|(^\/\w:\\)/,cEn=FU.default.parse(process.cwd()).root,fEn=/^\w:/,qlr=uEn.default.platform();function Klr(i){return/\\/.test(i)||fEn.test(i)}function pEn(i){let e=/^\\\\\?\\/.test(i),r=/[^\u0000-\u0080]+/.test(i);return e||r?i:i.replace(/\\/g,"/")}function Xlr(i){let e=typeof i=="string"?i:i.pathname;return e.startsWith("file:")&&(e.startsWith("file://")&&(e=e.slice(7)),Jlr.test(e)&&(e=e.slice(1))),l9t(e)}function dEn(i){return[...i].some(e=>typeof e=="string"&&Klr(e))?FU.default.win32:FU.default}function tue(i,e){return pEn(dEn(e)[i](...e))}function _En(i,e){return FU.default.posix[i](...[...e].map(r=>typeof r=="string"?pEn(r):r))}function Ylr(i){return _En("parse",arguments)}function Qlr(i){return _En("extname",arguments)}function $lr(i){return dEn(arguments).isAbsolute(i)}function Zlr(...i){return tue("join",arguments)}function l9t(i){let e=tue("normalize",arguments);return i.startsWith("./")&&!e.startsWith("./")?"./"+e:e}function ecr(i,e){return tue("relative",arguments)}function tcr(...i){return tue("resolve",arguments)}function ncr(i){return tue("dirname",arguments)}function rcr(i,e){return tue("basename",arguments)}function icr(i){return tue("format",arguments)}function scr(i){return tue("toNamespacedPath",arguments)}function acr(i){return qlr!=="win32"||fEn.test(i)||i.startsWith(cEn)||!FU.default.win32.isAbsolute(FU.default.win32.normalize(i))?i:FU.default.win32.join(cEn,i)}var c9t={sep:FU.default.posix.sep,delimiter:FU.default.posix.delimiter,parse:Ylr,isAbsolute:$lr,join:Zlr,extname:Qlr,normalize:l9t,relative:ecr,resolve:tcr,dirname:ncr,basename:rcr,format:icr,toNamespacedPath:scr,get posix(){return this},get win32(){return mEn}},mEn={...FU.default.win32,get posix(){return c9t},get win32(){return this}},ocr=FU.default,KCe={...c9t,posix:c9t,win32:mEn,native:ocr,includeDriveLetter:acr,urlToFilename:Xlr};var AEn=require("module"),kEn=require("util"),wEn=Bm(vEn(),1),uCt=()=>{let i={Infinity:1/0,NaN:NaN,undefined:void 0,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Array,Boolean,Date,Error,EvalError,Number,Object,RangeError,ReferenceError,RegExp,String,SyntaxError,TypeError,URIError,JSON,Math,escape,unescape,eval,Function};try{i.AggregateError=AggregateError}catch{}try{i.FinalizationRegistry=FinalizationRegistry}catch{}try{i.WeakRef=WeakRef}catch{}try{i.BigInt=BigInt}catch{}try{i.Reflect=Reflect}catch{}try{i.WeakMap=WeakMap}catch{}try{i.WeakSet=WeakSet}catch{}try{i.Set=Set}catch{}try{i.Map=Map}catch{}try{i.Uint8Array=Uint8Array}catch{}try{i.BigUint64Array=BigUint64Array}catch{}try{i.BigInt64Array=BigInt64Array}catch{}try{i.Atomics=Atomics}catch{}try{i.SharedArrayBuffer=SharedArrayBuffer}catch{}try{i.WebAssembly=WebAssembly}catch{}try{i.Uint8ClampedArray=Uint8ClampedArray}catch{}try{i.Uint16Array=Uint16Array}catch{}try{i.Uint32Array=Uint32Array}catch{}try{i.Intl=Intl}catch{}try{i.Int8Array=Int8Array}catch{}try{i.Int16Array=Int16Array}catch{}try{i.Int32Array=Int32Array}catch{}try{i.Float32Array=Float32Array}catch{}try{i.Float64Array=Float64Array}catch{}try{i.ArrayBuffer=ArrayBuffer}catch{}try{i.DataView=DataView}catch{}try{i.isFinite=isFinite}catch{}try{i.Promise=Promise}catch{}try{i.Proxy=Proxy}catch{}try{i.Symbol=Symbol}catch{}return i};function rue(i,e,r){let o={};return[i,e??{},r??{}].forEach(h=>Object.defineProperties(o,Object.getOwnPropertyDescriptors(h))),o}function nCt(i,e){let r={};return Object.getOwnPropertyNames(i).forEach(o=>{o in e||Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(i,o))}),r}var IEn=(0,AEn.createRequire)(_t),_cr=()=>{let i=uCt(),e=rue(nCt(global,i),i,{require:IEn,process,__dirname:r=>KCe.native.normalize(KCe.native.dirname(r)),__filename:r=>KCe.native.normalize(r)});return Object.defineProperties(e,{global:{get(){return e}},globalThis:{get(){return e}}}),e};function mcr(i){let e=0;return{requestAnimationFrame:function(d){let h=new Date().getTime(),v=Math.max(0,16-(h-e)),S=i.setTimeout(function(){d(h+v)},v);return e=h+v,S},cancelAnimationFrame:function(d){clearTimeout(d)}}}var Z0t;function hcr(i=!1){return Z0t??(Z0t=Bcr("evaluate against a browser environment",i,"jsdom"))}function Bcr(i,e,r=i){try{return IEn(r)}catch{if(e)throw new ReferenceError(`You must install the peer dependency '${r}' in order to ${i} with ts-evaluator`);return}}var gcr=()=>{let{JSDOM:i}=hcr(!0),{window:e}=new i("",{url:"https://example.com"}),r=uCt(),o=mcr(e),u=rue(nCt(e,r),nCt(o,e),r);return Object.defineProperties(u,{window:{get(){return u}},globalThis:{get(){return u}}}),u},v2="[return]",sR="[break]",r7="[continue]",i7="this",XCe="super",ycr=()=>{let i=uCt(),e=rue(nCt(global,i),i,{import:{meta:{url:r=>{let o=KCe.normalize(r);return`file:///${o.startsWith("/")?o.slice(1):o}`}}},process});return Object.defineProperties(e,{global:{get(){return e}},globalThis:{get(){return e}}}),e};function PEn(i,e){return e.isDeclaration(i)}function Ccr(i,e){return e.isPropertyAccessExpression(i)?!1:"name"in i&&i.name!=null}function NEn(i,e){return i.flags!==e.NodeFlags.Const&&i.flags!==e.NodeFlags.Let}var s7=class extends Error{constructor({node:e,environment:r,message:o}){super(o),Error.captureStackTrace(this,this.constructor),this.node=e,this.environment=r}};function sne(i){return typeof i=="object"&&i!=null&&i instanceof s7}var rCt=class extends s7{constructor({path:e,node:r,environment:o,message:u=`Module '${e}' could not be resolved'`}){super({message:u,environment:o,node:r}),this.path=e}},jN=class extends s7{constructor({node:e,environment:r,typescript:o,message:u=`Unexpected Node: '${o.SyntaxKind[e.kind]}'`}){super({message:u,node:e,environment:r})}};function vcr(i){var e;let{node:r,evaluate:o,environment:u,typescript:d,throwError:h}=i,v=d.getNameOfDeclaration(r);if(v!=null)return d.isIdentifier(v)||!((e=d.isPrivateIdentifier)===null||e===void 0)&&e.call(d,v)||d.isStringLiteralLike(v)?v.text:d.isNumericLiteral(v)?Number(v.text):d.isComputedPropertyName(v)?o.expression(v.expression,i):h(new jN({node:v,environment:u,typescript:d}))}function LEn(i,e){let{node:r,typescript:o}=e;if(!o.isExternalModuleNameRelative(i))return i;let u=r.getSourceFile().fileName;return KCe.join(KCe.dirname(u),i)}function iCt(i){var e,r,o,u,d;let{node:h,typescript:v,throwError:S,environment:k}=i,L=vcr(i);if(sne(L))return L;if(L==null)return S(new jN({node:h,environment:k,typescript:v}));let z=jk(h,i.environment,L);if(z!=null&&z.literal!=null)return z.literal;let te=jk(h,i.environment,"require").literal,_e=v.isModuleDeclaration(h)?h:bcr(h,v.SyntaxKind.ModuleDeclaration,v);if(_e==null)return S(new jN({node:h,environment:k,typescript:v}));let Ae=_e.name.text,Ie=LEn(Ae,i);try{let Xe=(u=(r=(e=i.moduleOverrides)===null||e===void 0?void 0:e[Ae])!==null&&r!==void 0?r:(o=i.moduleOverrides)===null||o===void 0?void 0:o[Ie])!==null&&u!==void 0?u:te(Ie);return v.isModuleDeclaration(h)?Xe:(d=Xe[L])!==null&&d!==void 0?d:Xe}catch(Xe){return sne(Xe)?Xe:S(new rCt({node:_e,environment:k,path:Ie}))}}function eCt(i,e,r){var o,u,d,h,v,S;let{node:k,throwError:L,environment:z}=r,te=jk(k,r.environment,"require").literal,_e=LEn(e,r);try{let Ae=(h=(u=(o=r.moduleOverrides)===null||o===void 0?void 0:o[e])!==null&&u!==void 0?u:(d=r.moduleOverrides)===null||d===void 0?void 0:d[_e])!==null&&h!==void 0?h:te(_e);return(S=(v=Ae[i])!==null&&v!==void 0?v:Ae.default)!==null&&S!==void 0?S:Ae}catch(Ae){return sne(Ae)?Ae:L(new rCt({node:k,environment:z,path:_e}))}}function bcr(i,e,r){let o=i;for(;;){if(o=o.parent,o==null)return;if(o.kind===e){let u=r.getCombinedNodeFlags(o);if(!((u&r.NodeFlags.Namespace)!==0||(u&r.NodeFlags.NestedNamespace)!==0))return o}if(r.isSourceFile(o))return}}function x9t(i,e,r,o=new WeakSet){let{typescript:u}=r,d;function h(S,k=0){var L,z,te,_e,Ae;if(o.has(S))return!1;if(o.add(S),u.isIdentifier(S)){if(S.text===e)return d=S,!0}else{if(u.isShorthandPropertyAssignment(S))return!1;if(u.isPropertyAssignment(S))return!1;if(u.isImportDeclaration(S)){if(S.importClause!=null){if(S.importClause.name!=null&&h(S.importClause.name)){let Ie=S.moduleSpecifier;if(Ie!=null&&u.isStringLiteralLike(Ie))return d=eCt(e,Ie.text,r),!0}else if(S.importClause.namedBindings!=null&&h(S.importClause.namedBindings))return!0}return!1}else if(u.isImportEqualsDeclaration(S)){if(S.name!=null&&h(S.name)){if(u.isIdentifier(S.moduleReference))return d=x9t(S.parent,S.moduleReference.text,r,o),d!=null;if(u.isQualifiedName(S.moduleReference))return!1;{let Ie=S.moduleReference.expression;if(Ie!=null&&u.isStringLiteralLike(Ie))return d=eCt(e,Ie.text,r),!0}}return!1}else if(u.isNamespaceImport(S)){if(h(S.name)){let Ie=(z=(L=S.parent)===null||L===void 0?void 0:L.parent)===null||z===void 0?void 0:z.moduleSpecifier;return Ie==null||!u.isStringLiteralLike(Ie)?!1:(d=eCt(e,Ie.text,r),!0)}}else if(u.isNamedImports(S)){for(let Ie of S.elements)if(h(Ie))return!0}else if(u.isImportSpecifier(S)){if(h(S.name)){let Ie=(Ae=(_e=(te=S.parent)===null||te===void 0?void 0:te.parent)===null||_e===void 0?void 0:_e.parent)===null||Ae===void 0?void 0:Ae.moduleSpecifier;return Ie==null||!u.isStringLiteralLike(Ie)?!1:(d=eCt(e,Ie.text,r),!0)}}else if(u.isSourceFile(S)){for(let Ie of S.statements)if(h(Ie))return!0}else if(u.isVariableStatement(S)){for(let Ie of S.declarationList.declarations)if(h(Ie)&&(NEn(S.declarationList,u)||k<1))return!0}else if(u.isBlock(S)){for(let Ie of S.statements)if(h(Ie,k+1))return!0}else if(Ccr(S,u)&&S.name!=null&&h(S.name))return d=S,!0}return!1}return u.findAncestor(i,S=>h(S))?d:void 0}function bEn(i,e){let r=i;for(;;){if(r=r.parent,r==null)return;if(PEn(r,e)||e.isSourceFile(r))return r}}function Scr(i){return i!=null&&(typeof i=="function"||typeof i=="object")}function SEn(i){return Scr(i)}function E9t(i,e){switch(i){case Function.prototype.bind:case Function.prototype.call:case Function.prototype.apply:return!0}if(e!=null){let r=jk(void 0,e,"Function").literal;switch(i){case r.prototype.bind:case r.prototype.call:case r.prototype.apply:return!0}}return!1}var ine=class{constructor(e){this.intent=e}construct(e,r){return this.intent(e,r)}};function FEn(i){return typeof i=="object"&&i!=null&&i instanceof ine}function fCt(i,e,r){return FEn(r)?e.throwError(r.construct(i,e)):r}function p9t(i){return i.map(e=>typeof e=="symbol"?e.description:e).join(".")}function xEn({hook:i,item:e,scope:r,policy:o}){function u(d,h){let v=(S,k)=>{if(S!==!1)return FEn(S)||sne(S)?S:k()};return!SEn(h)||E9t(h)?h:new Proxy(h,{construct(S,k,L){return v(i({kind:"__$$_PROXY_CONSTRUCT",policy:o,newTarget:L,argArray:k,target:S,path:p9t(d)}),()=>Reflect.construct(S,k,L))},apply(S,k,L=[]){return v(i({kind:"__$$_PROXY_APPLY",policy:o,thisArg:k,argArray:L,target:S,path:p9t(d)}),()=>Reflect.apply(S,k,L))},get(S,k,L){let z=[...d,k];return v(i({kind:"__$$_PROXY_GET",policy:o,path:p9t(z),target:S}),()=>{let te=Reflect.get(S,k,L),_e=Reflect.getOwnPropertyDescriptor(h,k);return _e!=null&&_e.configurable===!1&&_e.writable===!1?h[k]:u(z,te)})}})}return SEn(e)?u([r],e):e}function EEn(i,e){switch(i){case"__$$_PROXY_GET":return`get ${e}`;case"__$$_PROXY_APPLY":return`${e}(...)`;case"__$$_PROXY_CONSTRUCT":return`new ${e}(...)`}}var OEn={"node:http2":"http2",http2:{connect:{__$$_PROXY_APPLY:!0},createSecureServer:{__$$_PROXY_APPLY:!0},createServer:{__$$_PROXY_APPLY:!0}},"node:https":"https",https:{createServer:{__$$_PROXY_APPLY:!0},request:{__$$_PROXY_APPLY:!0},get:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0},globalAgent:{destroy:{__$$_PROXY_APPLY:!0}},Agent:{__$$_PROXY_CONSTRUCT:!0}},"node:http":"http",http:{createServer:{__$$_PROXY_APPLY:!0},request:{__$$_PROXY_APPLY:!0},get:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0},ClientRequest:{__$$_PROXY_CONSTRUCT:!0},globalAgent:{destroy:{__$$_PROXY_APPLY:!0}},Agent:{__$$_PROXY_CONSTRUCT:!0}},"node:dgram":"dgram",dgram:{createSocket:{__$$_PROXY_APPLY:!0}},"node:dns":"dns",dns:{lookup:{__$$_PROXY_APPLY:!0},lookupService:{__$$_PROXY_APPLY:!0},resolve:{__$$_PROXY_APPLY:!0},resolve4:{__$$_PROXY_APPLY:!0},resolve6:{__$$_PROXY_APPLY:!0},resolveAny:{__$$_PROXY_APPLY:!0},resolveCname:{__$$_PROXY_APPLY:!0},resolveMx:{__$$_PROXY_APPLY:!0},resolveNaptr:{__$$_PROXY_APPLY:!0},resolveNs:{__$$_PROXY_APPLY:!0},resolvePtr:{__$$_PROXY_APPLY:!0},resolveSoa:{__$$_PROXY_APPLY:!0},resolveSrv:{__$$_PROXY_APPLY:!0},resolveTxt:{__$$_PROXY_APPLY:!0},reverse:{__$$_PROXY_APPLY:!0},Resolver:{__$$_PROXY_CONSTRUCT:!0}},"node:net":"net",net:{createServer:{__$$_PROXY_APPLY:!0},createConnection:{__$$_PROXY_APPLY:!0},connect:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0}},"node:tls":"tls",tls:{createServer:{__$$_PROXY_APPLY:!0},createSecureContext:{__$$_PROXY_APPLY:!0},connect:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0},TLSSocket:{__$$_PROXY_CONSTRUCT:!0}}},xcr={...OEn,Math:{random:{__$$_PROXY_APPLY:!0}},Date:{now:{__$$_PROXY_APPLY:!0},__$$_PROXY_CONSTRUCT:(...i)=>i.length===0&&!(i[0]instanceof Date)}};function Ecr(i,e){return typeof i==typeof e||typeof i=="function"}function Tcr(i){return typeof i=="function"}function YCe(i,e,r){let o=r.path.split(".");return _9t(i,e,r,o)}function _9t(i,e,r,o){let[u,...d]=o;if(u==null)return!1;let h=i[u];if(h==null)return!1;if(typeof h=="string")return _9t(i,e,r,[h,...d]);if(Ecr(h,e))return TEn(h,e,r);{let v=h[r.kind];return v!=null?TEn(v,e,r):_9t(h,e,r,d)}}function TEn(i,e,r){if(Tcr(i)){let o=r;return o.argArray!=null&&i(...o.argArray)===e}else return i===e}function Dcr(i){return YCe(xcr,!0,i)}var iue=class extends s7{constructor({violation:e,node:r,environment:o,message:u}){super({node:r,environment:o,message:`[${e}]: ${u}`}),this.violation=e}},m9t=class extends iue{constructor({operation:e,node:r,environment:o,message:u=`The operation: '${e}' is nondeterministic. That is in violation of the policy`}){super({violation:"deterministic",message:u,node:r,environment:o}),this.operation=e}},REn={"node:fs":"fs",fs:{readFile:{__$$_PROXY_APPLY:"read"},readFileSync:{__$$_PROXY_APPLY:"read"},readdir:{__$$_PROXY_APPLY:"read"},readdirSync:{__$$_PROXY_APPLY:"read"},read:{__$$_PROXY_APPLY:"read"},readSync:{__$$_PROXY_APPLY:"read"},exists:{__$$_PROXY_APPLY:"read"},existsSync:{__$$_PROXY_APPLY:"read"},access:{__$$_PROXY_APPLY:"read"},accessSync:{__$$_PROXY_APPLY:"read"},close:{__$$_PROXY_APPLY:"read"},closeSync:{__$$_PROXY_APPLY:"read"},createReadStream:{__$$_PROXY_APPLY:"read"},stat:{__$$_PROXY_APPLY:"read"},statSync:{__$$_PROXY_APPLY:"read"},watch:{__$$_PROXY_APPLY:"read"},watchFile:{__$$_PROXY_APPLY:"read"},unwatchFile:{__$$_PROXY_APPLY:"read"},realpath:{__$$_PROXY_APPLY:"read"},realpathSync:{__$$_PROXY_APPLY:"read"},fstat:{__$$_PROXY_APPLY:"read"},fstatSync:{__$$_PROXY_APPLY:"read"},createWriteStream:{__$$_PROXY_APPLY:"write"},copyFile:{__$$_PROXY_APPLY:"write"},copyFileSync:{__$$_PROXY_APPLY:"write"},unlink:{__$$_PROXY_APPLY:"write"},unlinkSync:{__$$_PROXY_APPLY:"write"},rmdir:{__$$_PROXY_APPLY:"write"},rmdirSync:{__$$_PROXY_APPLY:"write"},symlink:{__$$_PROXY_APPLY:"write"},symlinkSync:{__$$_PROXY_APPLY:"write"},truncate:{__$$_PROXY_APPLY:"write"},truncateSync:{__$$_PROXY_APPLY:"write"},utimes:{__$$_PROXY_APPLY:"write"},utimesSync:{__$$_PROXY_APPLY:"write"},appendFile:{__$$_PROXY_APPLY:"write"},appendFileSync:{__$$_PROXY_APPLY:"write"},write:{__$$_PROXY_APPLY:"write"},writeSync:{__$$_PROXY_APPLY:"write"},writeFile:{__$$_PROXY_APPLY:"write"},writeFileSync:{__$$_PROXY_APPLY:"write"},chmod:{__$$_PROXY_APPLY:"write"},chmodSync:{__$$_PROXY_APPLY:"write"},chown:{__$$_PROXY_APPLY:"write"},chownSync:{__$$_PROXY_APPLY:"write"},mkdir:{__$$_PROXY_APPLY:"write"},mkdirSync:{__$$_PROXY_APPLY:"write"},rename:{__$$_PROXY_APPLY:"write"},renameSync:{__$$_PROXY_APPLY:"write"},futimes:{__$$_PROXY_APPLY:"write"},futimesSync:{__$$_PROXY_APPLY:"write"},link:{__$$_PROXY_APPLY:"write"},linkSync:{__$$_PROXY_APPLY:"write"},mkdtemp:{__$$_PROXY_APPLY:"write"},open:{__$$_PROXY_APPLY:"write"},openSync:{__$$_PROXY_APPLY:"write"},fchmod:{__$$_PROXY_APPLY:"write"},fchmodSync:{__$$_PROXY_APPLY:"write"},fchown:{__$$_PROXY_APPLY:"write"},fchownSync:{__$$_PROXY_APPLY:"write"},ftruncate:{__$$_PROXY_APPLY:"write"},ftruncateSync:{__$$_PROXY_APPLY:"write"},fsync:{__$$_PROXY_APPLY:"write"},fsyncSync:{__$$_PROXY_APPLY:"write"},fdatasync:{__$$_PROXY_APPLY:"write"},fdatasyncSync:{__$$_PROXY_APPLY:"write"},lchmod:{__$$_PROXY_APPLY:"write"},lchmodSync:{__$$_PROXY_APPLY:"write"}}};function Acr(i){return YCe(REn,"read",i)}var sCt=class extends iue{constructor({node:e,environment:r,kind:o,message:u=`${o} operations are in violation of the policy`}){super({violation:"io",message:u,environment:r,node:e}),this.kind=o}};function kcr(i){return YCe(REn,"write",i)}function wcr(i){return YCe(OEn,!0,i)}var h9t=class extends iue{constructor({operation:e,node:r,environment:o,message:u=`The operation: '${e}' is performing network activity. That is in violation of the policy`}){super({violation:"deterministic",message:u,node:r,environment:o}),this.operation=e}},MEn={"node:process":"process",process:{exit:{__$$_PROXY_APPLY:"exit"}},"node:child_process":"child_process",child_process:{__$$_PROXY_APPLY:"spawnChild"},"node:cluster":"cluster",cluster:{Worker:{__$$_PROXY_CONSTRUCT:"spawnChild"}}};function Icr(i){return YCe(MEn,"exit",i)}var aCt=class extends iue{constructor({kind:e,node:r,environment:o,message:u=`${e} operations are in violation of the policy`}){super({violation:"process",message:u,node:r,environment:o}),this.kind=e}};function Pcr(i){return YCe(MEn,"spawnChild",i)}var Ncr={"node:console":"console",console:{__$$_PROXY_APPLY:!0}};function Lcr(i){return YCe(Ncr,!0,i)}function Fcr({policy:i,env:e}){let r=h=>!i.console&&Lcr(h)?!1:!i.io.read&&Acr(h)?new ine((v,S)=>new sCt({...S,node:v,kind:"read"})):!i.io.write&&kcr(h)?new ine((v,S)=>new sCt({...S,node:v,kind:"write"})):!i.process.exit&&Icr(h)?new ine((v,S)=>new aCt({...S,node:v,kind:"exit"})):!i.process.exit&&Pcr(h)?new ine((v,S)=>new aCt({...S,node:v,kind:"spawnChild"})):!i.network&&wcr(h)?new ine((v,S)=>new h9t({...S,node:v,operation:EEn(h.kind,h.path)})):i.deterministic&&Dcr(h)?new ine((v,S)=>new m9t({...S,node:v,operation:EEn(h.kind,h.path)})):!0,o=Object.entries(Object.getOwnPropertyDescriptors(e)),u=Object.assign({},...o.filter(([,h])=>!("value"in h)).map(([h,v])=>({[h]:v}))),d=Object.assign({},...o.filter(([,h])=>"value"in h).map(([h,v])=>({[h]:h==="require"?new Proxy(v.value,{apply(S,k,L=[]){let[z]=L;return xEn({policy:i,item:Reflect.apply(S,k,L),scope:z,hook:r})}}):xEn({policy:i,item:v.value,scope:h,hook:r})})));return Object.defineProperties(d,{...u})}function mqe(i,e){let[r]=e.split(".");if(j9.default.has(i.env,r))return i.env;if(i.parentEnv!=null)return mqe(i.parentEnv,e)}function B9t(i){return i.preset!=null?i.preset:i.parentEnv!=null?B9t(i.parentEnv):"NONE"}function GEn(i,e,r){let o=bEn(i.startingNode,r),u=bEn(e,r);if(o?.pos===u?.pos)return i;if(i.parentEnv!=null)return GEn(i.parentEnv,e,r)}function jk(i,e,r){let[o]=r.split(".");if(j9.default.has(e.env,o)){let u=j9.default.get(e.env,r);switch(r){case"__dirname":case"__filename":{let d=B9t(e);return(d==="NODE"||d==="NODE_CJS")&&typeof u=="function"&&i!=null?{literal:u(i.getSourceFile().fileName)}:{literal:u}}case"import.meta":{let d=B9t(e);return(d==="NODE_ESM"||d==="BROWSER"||d==="ECMA")&&typeof u=="object"&&u!=null&&typeof u.url=="function"&&i!=null?{literal:{url:u.url(i.getSourceFile().fileName)}}:{literal:u}}default:return{literal:u}}}if(e.parentEnv!=null)return jk(i,e.parentEnv,r)}function UT(i,e,r,...o){return o.some(u=>{let d=jk(i,e,u);return d==null?!1:d.literal===r})}function d9t(i){switch(i){case v2:case sR:case r7:case i7:case XCe:return!0;default:return!1}}function RB({environment:i,path:e,value:r,reporting:o,node:u,newBinding:d=!1}){let[h]=e.split(".");if(j9.default.has(i.env,h)||d||i.parentEnv==null){if(j9.default.has(i.env,e)&&j9.default.get(i.env,e)===r)return;j9.default.set(i.env,e,r),o.reportBindings!=null&&!d9t(e)&&o.reportBindings({path:e,value:r,node:u})}else{let v=i.parentEnv;for(;v!=null;)if(j9.default.has(v.env,h)){if(j9.default.has(v.env,e)&&j9.default.get(v.env,e)===r)return;j9.default.set(v.env,e,r),o.reportBindings!=null&&!d9t(e)&&o.reportBindings({path:e,value:r,node:u});return}else v.parentEnv==null?(j9.default.set(v.env,e,r),o.reportBindings!=null&&!d9t(e)&&o.reportBindings({path:e,value:r,node:u})):v=v.parentEnv}}function Ocr({inputEnvironment:{extra:i,preset:e},startingNode:r,policy:o}){let u;switch(e){case"NONE":u=rue(i);break;case"ECMA":u=rue(uCt(),i);break;case"NODE":case"NODE_CJS":u=rue(_cr(),i);break;case"NODE_ESM":u=rue(ycr(),i);break;case"BROWSER":u=rue(gcr(),i);break;default:u={};break}return{parentEnv:void 0,preset:e,startingNode:r,env:Fcr({policy:o,env:u})}}function jEn(i,e){return i.kind===e.SyntaxKind.TrueKeyword||i.kind===e.SyntaxKind.FalseKeyword}function UEn(i,e){return i.kind===e.SyntaxKind.NullKeyword}function Rcr(i,e){var r;return e.isStringLiteralLike(i)?{success:!0,value:i.text}:jEn(i,e)?{success:!0,value:i.kind===e.SyntaxKind.TrueKeyword}:e.isRegularExpressionLiteral(i)?{success:!0,value:new Function(`return ${i.text}`)()}:e.isNumericLiteral(i)?{success:!0,value:Number(i.text)}:!((r=e.isBigIntLiteral)===null||r===void 0)&&r.call(e,i)?{success:!0,value:BigInt(i.text)}:e.isIdentifier(i)&&i.text==="Infinity"?{success:!0,value:1/0}:e.isIdentifier(i)&&i.text==="NaN"?{success:!0,value:NaN}:e.isIdentifier(i)&&i.text==="null"?{success:!0,value:null}:e.isIdentifier(i)&&i.text==="undefined"?{success:!0,value:void 0}:UEn(i,e)?{success:!0,value:null}:{success:!1}}var g9t=class extends iue{constructor({ops:e,node:r,environment:o,message:u=`Maximum ops exceeded: ${e}`}){super({violation:"maxOps",message:u,node:r,environment:o}),this.ops=e}};function WEn(i,e){let{node:r,environment:o,evaluate:u,stack:d,typescript:h,throwError:v,getCurrentError:S}=i,k=e??(r.initializer==null?void 0:u.expression(r.initializer,i));if(S()==null){if(k==null&&!h.isIdentifier(r.name))return v(new s7({node:r,environment:o}));u.nodeWithArgument(r.name,k,i),S()==null&&d.push(k)}}function VEn(i,e){return i.kind===e.SyntaxKind.ThisKeyword}function pCt(i,e){return i.kind===e.SyntaxKind.SuperKeyword}function V3e(i){var e,r;let{node:o,evaluate:u,typescript:d}=i;if(d.isIdentifier(o))return o.text;if(!((e=d.isPrivateIdentifier)===null||e===void 0)&&e.call(d,o))return o.text;if(VEn(o,d))return i7;if(pCt(o,d))return XCe;if(d.isParenthesizedExpression(o))return V3e({...i,node:o.expression});if(!((r=d.isTypeAssertionExpression)===null||r===void 0)&&r.call(d,o)||!("isTypeAssertionExpression"in d)&&d.isTypeAssertion(o))return V3e({...i,node:o.expression});if(d.isPropertyAccessExpression(o)){let h=V3e({...i,node:o.expression});h==null&&(h=u.expression(o.expression,i));let v=V3e({...i,node:o.name});return v==null&&(v=u.expression(o.name,i)),h==null||v==null?void 0:`${h}.${v}`}else if(d.isElementAccessExpression(o)){let h=V3e({...i,node:o.expression});h==null&&(h=u.expression(o.expression,i));let v=u.expression(o.argumentExpression,i);return h==null||v==null?void 0:`${h}.${v}`}else if(d.isFunctionDeclaration(o))return o.name==null?void 0:o.name.text}var y9t=class extends s7{constructor({node:e,environment:r,message:o="'No leftValue could be determined'"}){super({message:o,environment:r,node:e})}};function tCt(i,e){var r;return e.isParenthesizedExpression(i)||e.isAsExpression(i)||!((r=e.isTypeAssertionExpression)===null||r===void 0)&&r.call(e,i)||!("isTypeAssertionExpression"in e)&&e.isTypeAssertion(i)?tCt(i.expression,e):i}function HEn(i){return i!=null&&typeof i=="object"&&"kind"in i&&"flags"in i&&"pos"in i&&"end"in i}function Mcr(i){var e;let{node:r,environment:o,evaluate:u,logger:d,throwError:h,typeChecker:v,typescript:S,getCurrentError:k}=i,L=u.expression(r.left,i);if(k()!=null)return;let z=u.expression(r.right,i);if(k()!=null)return;let te=V3e({...i,node:r.left}),_e=r.operatorToken.kind;switch(_e){case S.SyntaxKind.AmpersandToken:return L&z;case S.SyntaxKind.AmpersandAmpersandToken:return L&&z;case S.SyntaxKind.AmpersandEqualsToken:case S.SyntaxKind.CaretEqualsToken:case S.SyntaxKind.BarEqualsToken:case S.SyntaxKind.MinusEqualsToken:case S.SyntaxKind.PlusEqualsToken:case S.SyntaxKind.PercentEqualsToken:case S.SyntaxKind.SlashEqualsToken:case S.SyntaxKind.AsteriskEqualsToken:case S.SyntaxKind.AsteriskAsteriskEqualsToken:case S.SyntaxKind.LessThanLessThanEqualsToken:case S.SyntaxKind.GreaterThanGreaterThanEqualsToken:case S.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:case S.SyntaxKind.QuestionQuestionEqualsToken:case S.SyntaxKind.BarBarEqualsToken:case S.SyntaxKind.AmpersandAmpersandEqualsToken:{let Ae=L;switch(_e){case S.SyntaxKind.AmpersandEqualsToken:Ae&=z;break;case S.SyntaxKind.CaretEqualsToken:Ae^=z;break;case S.SyntaxKind.BarEqualsToken:Ae|=z;break;case S.SyntaxKind.AsteriskEqualsToken:Ae*=z;break;case S.SyntaxKind.AsteriskAsteriskEqualsToken:Ae**=z;break;case S.SyntaxKind.LessThanLessThanEqualsToken:Ae<<=z;break;case S.SyntaxKind.GreaterThanGreaterThanEqualsToken:Ae>>=z;break;case S.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:Ae>>>=z;break;case S.SyntaxKind.MinusEqualsToken:Ae-=z;break;case S.SyntaxKind.PlusEqualsToken:Ae+=z;break;case S.SyntaxKind.PercentEqualsToken:Ae%=z;break;case S.SyntaxKind.SlashEqualsToken:Ae/=z;break;case S.SyntaxKind.QuestionQuestionEqualsToken:Ae=L??z;break;case S.SyntaxKind.BarBarEqualsToken:L||(Ae=z);break;case S.SyntaxKind.AmpersandAmpersandEqualsToken:L&&(Ae=z);break}return te!=null&&RB({...i,path:te,value:Ae}),Ae}case S.SyntaxKind.AsteriskToken:return L*z;case S.SyntaxKind.AsteriskAsteriskToken:return L**z;case S.SyntaxKind.BarToken:return L|z;case S.SyntaxKind.BarBarToken:return L||z;case S.SyntaxKind.CaretToken:return L^z;case S.SyntaxKind.CommaToken:return z;case S.SyntaxKind.MinusToken:return L-z;case S.SyntaxKind.PlusToken:return d.logResult(L+z,"BinaryExpression (PlusToken)"),L+z;case S.SyntaxKind.PercentToken:return L%z;case S.SyntaxKind.SlashToken:return L/z;case S.SyntaxKind.EqualsToken:{if(te!=null){let Ae=tCt(r.left,S),Ie=v?.getSymbolAtLocation(Ae),Xe=Ie?.valueDeclaration;if(Xe==null&&v==null&&S.isIdentifier(Ae)){let ze=x9t(Ae.parent,Ae.text,i);HEn(ze)&&(Xe=ze)}let Ve=Xe==null?o:(e=GEn(o,Xe,S))!==null&&e!==void 0?e:o;RB({...i,environment:Ve,path:te,value:z}),d.logBinding(te,z,"Assignment")}else return h(new y9t({node:r.left,environment:o}));return z}case S.SyntaxKind.EqualsEqualsToken:return L==z;case S.SyntaxKind.EqualsEqualsEqualsToken:return L===z;case S.SyntaxKind.ExclamationEqualsToken:return L!=z;case S.SyntaxKind.ExclamationEqualsEqualsToken:return L!==z;case S.SyntaxKind.GreaterThanToken:return L>z;case S.SyntaxKind.GreaterThanEqualsToken:return L>=z;case S.SyntaxKind.LessThanToken:return L<z;case S.SyntaxKind.LessThanEqualsToken:return L<=z;case S.SyntaxKind.InKeyword:return L in z;case S.SyntaxKind.QuestionQuestionToken:return L??z;case S.SyntaxKind.InstanceOfKeyword:return L instanceof z}return h(new jN({node:r.operatorToken,typescript:S,environment:o}))}var T9t="___lazyCallFlag";function Gcr(i){return i!=null&&typeof i=="object"&&T9t in i}function D9t(i){return i===void 0?"undefined":i===null?"null":typeof i=="string"?`"${i}"`:i.toString()}var oCt=class extends s7{constructor({value:e,node:r,environment:o,message:u=`${D9t(e)} is not a function'`}){super({message:u,environment:o,node:r}),this.value=e}};function nue(i,e){var r;return pCt(i,e)?!0:e.isPropertyAccessExpression(i)?nue(i.expression,e)||nue(i.name,e):e.isElementAccessExpression(i)?nue(i.expression,e)||nue(i.argumentExpression,e):e.isParenthesizedExpression(i)||e.isAsExpression(i)||!((r=e.isTypeAssertionExpression)===null||r===void 0)&&r.call(e,i)||!("isTypeAssertionExpression"in e)&&e.isTypeAssertion(i)?nue(i.expression,e):!1}function jcr(i){let{node:e,environment:r,evaluate:o,throwError:u,typescript:d,logger:h,getCurrentError:v}=i,S=[];for(let L=0;L<e.arguments.length;L++)if(S[L]=o.expression(e.arguments[L],i),v()!=null)return;let k=o.expression(e.expression,i);if(v()==null)if(Gcr(k)){let L=nue(e.expression,d)?jk(e,r,i7):void 0,z=k.invoke(L?.literal,...S);return v()!=null?void 0:(h.logResult(z,"CallExpression"),z)}else{if(e.questionDotToken==null&&typeof k!="function")return u(new oCt({value:k,node:e.expression,environment:r}));let L=typeof k!="function"?void 0:fCt(e,i,k(...S));return v()!=null?void 0:(h.logResult(L,"CallExpression"),L)}}function Ucr({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function A6(i,e){return{parentEnv:i,startingNode:e,env:{}}}function AX(i,e){let r=Array.isArray(i)?i:i.modifiers;return r!=null&&r.some(o=>o.kind===e)}function kX(i,e,r){let{node:o,evaluate:u,environment:d,typescript:h,getCurrentError:v}=i,S=o.filter(k=>!(h.isIdentifier(k.name)&&k.name.text==="this"));for(let k=0;k<S.length;k++){let L=S[k];if(L.dotDotDotToken!=null){if(u.nodeWithArgument(L,e.slice(k),i),v()!=null)return;break}else{if(u.nodeWithArgument(L,e[k],i),v()!=null)return;if(r!=null&&h.isIdentifier(L.name)&&(AX(L,h.SyntaxKind.PublicKeyword)||AX(L,h.SyntaxKind.ProtectedKeyword)||AX(L,h.SyntaxKind.PrivateKeyword))){let z=jk(L,d,L.name.text);z!=null&&(r[L.name.text]=z.literal)}}}}function Wcr(i){let{node:e,environment:r,evaluate:o,stack:u,typescript:d,getCurrentError:h}=i,v=AX(e,d.SyntaxKind.AsyncKeyword)?async(...S)=>{let k=A6(r,e),L={...i,environment:k};if(RB({...L,path:v2,value:!1,newBinding:!0}),RB({...L,path:"arguments",value:arguments,newBinding:!0}),kX({...i,node:e.parameters,environment:k},S),h()==null)return d.isBlock(e.body)?(o.statement(e.body,L),h()!=null?void 0:UT(e,k,!0,v2)?u.pop():void 0):o.expression(e.body,L)}:(...S)=>{let k=A6(r,e),L={...i,environment:k};if(RB({...L,path:v2,value:!1,newBinding:!0}),RB({...L,path:"arguments",value:arguments,newBinding:!0}),kX({...i,node:e.parameters,environment:k},S),h()==null)return d.isBlock(e.body)?(o.statement(e.body,L),h()!=null?void 0:UT(e,k,!0,v2)?u.pop():void 0):o.expression(e.body,L)};return v.toString=()=>"[Function: anonymous]",Object.setPrototypeOf(v,jk(e,r,"Function").literal),v}function Vcr({node:i}){return i.text}function Hcr({node:i}){return Number(i.text)}function zcr({node:i,typescript:e}){return i.kind===e.SyntaxKind.TrueKeyword}function Jcr({node:i,environment:e}){let r=jk(i,e,"Function").literal;return new r(`return ${i.text}`)()}function qcr(i){let{node:e,evaluate:r,environment:o,getCurrentError:u}=i,d=jk(e,o,"Object").literal,h=d.create(d.prototype);RB({...i,path:i7,value:h,newBinding:!0});for(let v of e.properties)if(r.nodeWithArgument(v,h,i),u()!=null)return;return h}function Kcr(i){return i!=null&&i[Symbol.iterator]!=null}function Xcr(i){let{node:e,environment:r,evaluate:o,typescript:u,getCurrentError:d}=i,v=jk(e,r,"Array").literal.of();for(let S of e.elements){let k=o.expression(S,i);if(d()!=null)return;u.isSpreadElement(S)&&Kcr(k)?v.push(...k):v.push(k)}return v}var lCt=class extends s7{constructor({node:e,environment:r,message:o=`'${e.text}' is not defined'`}){super({message:o,environment:r,node:e})}};function DEn(i){let{node:e,environment:r,typeChecker:o,evaluate:u,stack:d,logger:h,reporting:v,typescript:S,throwError:k,getCurrentError:L}=i,z=jk(e,r,e.text);if(z!=null)return h.logBinding(e.text,z.literal,"Lexical Environment match"),z.literal;let te=S.isShorthandPropertyAssignment(e.parent)?o?.getShorthandAssignmentValueSymbol(e.parent):o?.getSymbolAtLocation(e),_e=te?.valueDeclaration;if(te!=null&&_e==null)try{let Ae=o?.getAliasedSymbol(te);_e=Ae?.valueDeclaration}catch{}if(_e==null){let Ae=x9t(e.parent,e.text,i);if(L()!=null)return;if(HEn(Ae)&&!S.isIdentifier(Ae))_e=Ae;else if(Ae!=null)return RB({...i,path:e.text,value:Ae}),h.logBinding(e.text,Ae,"Discovered declaration value"),Ae}if(_e!=null){if(_e.getSourceFile().isDeclarationFile){let Ie=iCt({...i,node:_e});return L()!=null?void 0:(RB({environment:r,path:e.text,value:Ie,reporting:v,node:_e}),h.logBinding(e.text,Ie,`Discovered declaration value${_e.getSourceFile()===e.getSourceFile()?"":` (imported into '${e.getSourceFile().fileName}' from '${_e.getSourceFile().fileName}')`}`),Ie)}if(S.isVariableDeclaration(_e)&&_e.getSourceFile().fileName===e.getSourceFile().fileName&&_e.pos>e.pos)if(S.isVariableDeclarationList(_e.parent)&&NEn(_e.parent,S)){RB({...i,path:e.text,value:void 0,newBinding:!0,node:_e}),h.logBinding(e.text,void 0,"Hoisted var declaration");return}else return k(new lCt({node:e,environment:r}));if(u.declaration(_e,i),L()!=null)return;let Ae=d.pop();return RB({...i,path:e.text,value:Ae,node:_e}),h.logBinding(e.text,Ae,`Discovered declaration value${_e.getSourceFile()===e.getSourceFile()?"":` (imported into '${e.getSourceFile().fileName}' from '${_e.getSourceFile().fileName}')`}`),Ae}return k(new lCt({node:e,environment:r}))}function Ycr(i){let{node:e,environment:r,typescript:o,evaluate:u,getCurrentError:d}=i,h=A6(r,e);for(let v=0;v<e.statements.length;v++){let S=e.statements[v];if(!(o.isConstructorDeclaration(e.parent)&&v===0&&o.isExpressionStatement(S)&&o.isCallExpression(S.expression)&&pCt(S.expression.expression,o))&&(u.statement(S,{...i,environment:h}),d()!=null||UT(e,h,!0,sR,r7,v2)))break}}function Qcr({node:i,evaluate:e,stack:r,...o}){let{getCurrentError:u}=o;if(RB({...o,environment:o.environment,path:v2,value:!0,node:i}),i.expression==null)r.push(void 0);else{let d=e.expression(i.expression,o);if(u()!=null)return;r.push(d)}}function zEn({node:i,evaluate:e,...r}){for(let o of i.declarations)if(e.declaration(o,r),r.getCurrentError()!=null)return}function $cr({node:i,...e}){zEn({node:i.declarationList,...e})}function Zcr(i){var e,r;let{node:o,environment:u,evaluate:d,reporting:h,typescript:v,throwError:S,getCurrentError:k}=i,L=d.expression(o.operand,i);if(k()==null)switch(o.operator){case v.SyntaxKind.PlusToken:return+L;case v.SyntaxKind.MinusToken:return-L;case v.SyntaxKind.TildeToken:return~L;case v.SyntaxKind.ExclamationToken:return!L;case v.SyntaxKind.PlusPlusToken:{if(!v.isIdentifier(o.operand)&&!(!((e=v.isPrivateIdentifier)===null||e===void 0)&&e.call(v,o.operand)))return S(new jN({node:o.operand,environment:u,typescript:v}));let z=mqe(u,o.operand.text),te=++z[o.operand.text];return h.reportBindings!=null&&h.reportBindings({path:o.operand.text,value:te,node:o}),te}case v.SyntaxKind.MinusMinusToken:{if(!v.isIdentifier(o.operand)&&!(!((r=v.isPrivateIdentifier)===null||r===void 0)&&r.call(v,o.operand)))return S(new jN({node:o.operand,environment:u,typescript:v}));let z=mqe(u,o.operand.text),te=--z[o.operand.text];return h.reportBindings!=null&&h.reportBindings({path:o.operand.text,value:te,node:o}),te}}}function eur(i){let{evaluate:e,node:r,statementTraversalStack:o,environment:u,typescript:d,getCurrentError:h}=i,v=e.expression(r.expression,i);if(v==null||h()!=null)return;let S=r.questionDotToken!=null&&v==null?void 0:v[r.name.text];return typeof S=="function"&&o.includes(d.SyntaxKind.CallExpression)?{[T9t]:0,invoke:(k,...L)=>fCt(r,i,k!=null&&!E9t(S,u)?v[r.name.text].call(k,...L):v[r.name.text](...L))}:S}function tur(i){let{node:e,environment:r,evaluate:o,statementTraversalStack:u,typescript:d,getCurrentError:h}=i,v=o.expression(e.expression,i);if(h()!=null)return;let S=o.expression(e.argumentExpression,i);if(h()!=null)return;let k=e.questionDotToken!=null&&v==null?void 0:v[S];return typeof k=="function"&&u.includes(d.SyntaxKind.CallExpression)?{[T9t]:0,invoke:(L,...z)=>fCt(e,i,L!=null&&!E9t(k,r)?v[S].call(L,...z):v[S](...z))}:k}function nur({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function rur(i){let{node:e,environment:r,evaluate:o,stack:u,typescript:d,getCurrentError:h}=i,v=e.name==null?void 0:e.name.text,S=AX(e,d.SyntaxKind.AsyncKeyword)?async function(...L){let z=A6(r,e),te={...i,environment:z};if(RB({...te,path:v2,value:!1,newBinding:!0}),RB({...te,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...te,path:i7,value:this,newBinding:!0}),kX({...i,node:e.parameters,environment:z},L),h()!=null)return;let _e=e.getSourceFile();if(v!=null&&_e.isDeclarationFile)return iCt(i)(...L);if(e.body!=null&&(o.statement(e.body,te),h()==null&&UT(e,z,!0,v2)))return u.pop()}:function(...L){let z=A6(r,e),te={...i,environment:z};if(RB({...te,path:v2,value:!1,newBinding:!0}),RB({...te,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...te,path:i7,value:this,newBinding:!0}),kX({...te,node:e.parameters},L),h()!=null)return;let _e=e.getSourceFile();if(v!=null&&_e.isDeclarationFile)return iCt(i)(...L);if(e.body!=null&&(o.statement(e.body,te),h()==null&&UT(e,z,!0,v2)))return u.pop()};v!=null&&RB({...i,path:v,value:S.bind(S)}),S.toString=()=>`[Function${v==null?"":`: ${v}`}]`,Object.setPrototypeOf(S,jk(e,r,"Function").literal),u.push(S)}function iur({node:i,evaluate:e,...r}){let{getCurrentError:o}=r,u=e.expression(i.expression,r);if(o()==null){if(u){if(e.statement(i.thenStatement,r),o()!=null)return}else if(i.elseStatement!=null)return e.statement(i.elseStatement,r)}}function sur({node:i,evaluate:e,stack:r,...o}){let u=e.expression(i.expression,o);o.getCurrentError()==null&&r.push(u)}function aur({node:i,evaluate:e,...r}){let o="";o+=i.head.text;for(let u of i.templateSpans){let d=e.expression(u.expression,r);if(r.getCurrentError()!=null)return;o+=d,o+=u.literal.text}return o}function our({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function lur(i){var e,r;let{evaluate:o,node:u,environment:d,typescript:h,throwError:v,reporting:S}=i;switch(o.expression(u.operand,i),u.operator){case h.SyntaxKind.PlusPlusToken:{if(!h.isIdentifier(u.operand)&&!(!((e=h.isPrivateIdentifier)===null||e===void 0)&&e.call(h,u.operand)))return v(new jN({node:u.operand,environment:d,typescript:h}));let k=mqe(d,u.operand.text)[u.operand.text]++;return S.reportBindings!=null&&S.reportBindings({path:u.operand.text,value:k,node:u}),k}case h.SyntaxKind.MinusMinusToken:{if(!h.isIdentifier(u.operand)&&!(!((r=h.isPrivateIdentifier)===null||r===void 0)&&r.call(h,u.operand)))return v(new jN({node:u.operand,environment:d,typescript:h}));let k=mqe(d,u.operand.text)[u.operand.text]--;return S.reportBindings!=null&&S.reportBindings({path:u.operand.text,value:k,node:u}),k}}}function cur({node:i,evaluate:e,...r}){let{getCurrentError:o}=r,u=[];if(i.arguments!=null){for(let h=0;h<i.arguments.length;h++)if(u[h]=e.expression(i.arguments[h],r),o()!=null)return}let d=e.expression(i.expression,r);if(o()==null)return typeof d=="function"&&RB({...r,node:i,path:"[[NewTarget]]",value:d,newBinding:!0}),fCt(i,r,new d(...u))}function uur({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function fur({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function pur({node:i,evaluate:e,...r}){let o=e.expression(i.expression,r);r.getCurrentError()==null&&e.nodeWithArgument(i.caseBlock,o,r)}var C9t=class extends s7{constructor({message:e="It is not possible to evaluate an async iterator'",typescript:r,environment:o}){var u,d;super({message:e,environment:o,node:(d=(u=r.factory)===null||u===void 0?void 0:u.createEmptyStatement())!==null&&d!==void 0?d:r.createEmptyStatement()})}};function dur(i){let{node:e,environment:r,evaluate:o,logger:u,typescript:d,throwError:h,getCurrentError:v}=i,S=o.expression(e.expression,i);if(v()==null){if(d.isVariableDeclarationList(e.initializer)){if(e.initializer.declarations.length>1)return h(new jN({node:e.initializer.declarations[1],environment:r,typescript:d}))}else return h(new jN({node:e.initializer,environment:r,typescript:d}));if(e.awaitModifier!=null)return h(new C9t({typescript:d,environment:r}));for(let k of S){let L=A6(r,e),z={...i,environment:L};if(RB({...z,path:sR,value:!1,newBinding:!0}),RB({...z,path:r7,value:!1,newBinding:!0}),o.nodeWithArgument(e.initializer.declarations[0],k,z),v()!=null||(o.statement(e.statement,z),v()!=null))return;if(UT(e,L,!0,sR)){u.logBreak(e,d);break}else if(UT(e,L,!0,r7)){u.logContinue(e,d);continue}else if(UT(e,L,!0,v2)){u.logReturn(e,d);return}}}}function _ur({node:i,environment:e}){let r=jk(i,e,i7);return r?.literal}function mur(i){RB({...i,path:sR,value:!0})}function hur(i){RB({...i,path:r7,value:!0})}function Bur({environment:i,evaluate:e,typescript:r,...o}){let{node:u,getCurrentError:d}=o,h=A6(i,u),v={...o,environment:h};if(u.initializer!==void 0){if(r.isVariableDeclarationList(u.initializer)){for(let S of u.initializer.declarations)if(e.declaration(S,v),d()!=null)return}else if(e.expression(u.initializer,v),d()!=null)return}for(;;){let S=A6(h,u),k={...o,environment:S};if(RB({...k,path:sR,value:!1,newBinding:!0}),RB({...k,path:r7,value:!1,newBinding:!0}),!(u.condition==null?!0:e.expression(u.condition,v))||d()!=null||(e.statement(u.statement,k),d()!=null))return;if(UT(u,S,!0,sR))break;if(UT(u,S,!0,v2))return;if(u.incrementor!=null){if(e.expression(u.incrementor,v),d()!=null)return}else if(UT(u,S,!0,r7))continue}}function gur(i){let{node:e,environment:r,evaluate:o,logger:u,typescript:d,getCurrentError:h}=i,v=o.expression(e.expression,i);if(h()==null)for(;v;){let S=A6(r,e),k={...i,environment:S};if(RB({...k,path:sR,value:!1,newBinding:!0}),RB({...k,path:r7,value:!1,newBinding:!0}),o.statement(e.statement,k),h()!=null)return;if(UT(e,S,!0,sR)){u.logBreak(e,d);break}else if(UT(e,S,!0,v2)){u.logReturn(e,d);return}if(v=o.expression(e.expression,i),h()!=null)return;if(UT(e,S,!0,r7)){u.logContinue(e,d);continue}}}function yur(i){let{node:e,environment:r,evaluate:o,logger:u,typescript:d,throwError:h,getCurrentError:v}=i,S=o.expression(e.expression,i);if(v()==null){if(d.isVariableDeclarationList(e.initializer)){if(e.initializer.declarations.length>1)return h(new jN({node:e.initializer.declarations[1],environment:r,typescript:d}))}else return h(new jN({node:e.initializer,environment:r,typescript:d}));for(let k in S){let L=A6(r,e),z={...i,environment:L};if(RB({...z,path:sR,value:!1,newBinding:!0}),RB({...z,path:r7,value:!1,newBinding:!0}),o.nodeWithArgument(e.initializer.declarations[0],k,z),v()!=null||(o.statement(e.statement,z),v()!=null))return;if(UT(e,L,!0,sR)){u.logBreak(e,d);break}else if(UT(e,L,!0,r7)){u.logContinue(e,d);continue}else if(UT(e,L,!0,v2)){u.logReturn(e,d);return}}}}function Cur(i){let{node:e,environment:r,evaluate:o,stack:u,typescript:d,getCurrentError:h}=i,v=e.name==null?void 0:e.name.text,S=AX(e,d.SyntaxKind.AsyncKeyword)?async function(...L){let z=A6(r,e),te={...i,environment:z};if(RB({...te,path:v2,value:!1,newBinding:!0}),RB({...te,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...te,path:i7,value:this,newBinding:!0}),kX({...te,node:e.parameters},L),!(e.body==null||h()!=null)&&(o.statement(e.body,te),h()==null&&UT(e,z,!0,v2)))return u.pop()}:function(...L){let z=A6(r,e),te={...i,environment:z};if(RB({...te,path:v2,value:!1,newBinding:!0}),RB({...te,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...te,path:i7,value:this,newBinding:!0}),kX({...te,node:e.parameters},L),!(e.body==null||h()!=null)&&(o.statement(e.body,te),h()==null&&UT(e,z,!0,v2)))return u.pop()};return v!=null&&RB({...i,path:v,value:S.bind(S)}),S.toString=()=>`[Function${v==null?"":`: ${v}`}]`,Object.setPrototypeOf(S,jk(e,r,"Function").literal),S}var v9t=class extends s7{constructor({node:e,environment:r,message:o="Missing catch or finally after try"}){super({node:e,environment:r,message:o})}};function vur(i){let{node:e,evaluate:r,environment:o,throwError:u}=i,d,h=()=>{try{return r.statement(e.tryBlock,{...i,throwError:k=>(d=k,k),getCurrentError:()=>d})}catch(k){d=k}},v=k=>{r.nodeWithArgument(e.catchClause,k,i)},S=()=>{let k;r.statement(e.finallyBlock,{...i,throwError:L=>(k=L,i.throwError(L),L),getCurrentError:()=>k})};if(e.catchClause==null&&e.finallyBlock==null)return u(new v9t({node:e,environment:o}));e.catchClause!=null&&e.finallyBlock==null?(h(),d!=null&&v(d)):e.catchClause!=null&&e.finallyBlock!=null?(h(),d!=null&&v(d),S()):e.catchClause==null&&e.finallyBlock!=null&&(h(),d!=null&&u(d),S())}function JEn({name:i,extendedType:e,ctor:r=()=>{}}){return e==null?new Function("ctor",`return class ${i??""} {constructor () {const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(r):new Function("extendedType","ctor",`return class ${i??""} extends extendedType {constructor () {super(...arguments); const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(e,r)}function hqe(i,e){return"canHaveDecorators"in e?e.canHaveDecorators(i):!0}function Bqe(i,e){var r;if("getDecorators"in e)return e.getDecorators(i);{let o="decorators"in i&&Array.isArray(i.decorators)?i.decorators:void 0,u=(r=i.modifiers)===null||r===void 0?void 0:r.filter(d=>"expression"in d);return[...o??[],...u??[]]}}function bur(i){var e;let{node:r,evaluate:o,stack:u,logger:d,typescript:h,getCurrentError:v}=i,S,k=r.members.find(h.isConstructorDeclaration),L=r.members.filter(Ae=>!h.isConstructorDeclaration(Ae)),z;if(k!=null){if(o.declaration(k,i),v()!=null)return;z=u.pop()}if(r.heritageClauses!=null){let Ae=r.heritageClauses.find(Ie=>Ie.token===h.SyntaxKind.ExtendsKeyword);if(Ae!=null){let[Ie]=Ae.types;if(Ie!=null&&(S=o.expression(Ie.expression,i),v()!=null))return}}let te=r.name==null?void 0:r.name.text,_e=JEn({name:te,extendedType:S,ctor:z});if(hqe(r,h))for(let Ae of(e=Bqe(r,h))!==null&&e!==void 0?e:[]){if(o.nodeWithArgument(Ae,[_e],i),v()!=null)return;_e=u.pop()}_e.toString=()=>`[Class${te==null?"":`: ${te}`}]`,te!=null&&RB({...i,path:te,value:_e,newBinding:!0});for(let Ae of L)if(o.nodeWithArgument(Ae,AX(Ae,h.SyntaxKind.StaticKeyword)?_e:_e.prototype,i),v()!=null)return;d.logHeritage(_e),u.push(_e),d.logStack(u)}function Sur(i){let{node:e,environment:r,evaluate:o,stack:u,getCurrentError:d}=i;function h(...v){let S=A6(r,e),k={...i,environment:S};if(RB({...k,path:v2,value:!1,newBinding:!0}),RB({...k,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...k,path:i7,value:this,newBinding:!0}),kX({...k,node:e.parameters},v,this),!(e.body==null||d()!=null)&&(o.statement(e.body,k),d()==null&&UT(e,S,!0,v2)))return u.pop()}h.toString=()=>"[Function: constructor]",u.push(h)}function xur({node:i,environment:e}){let r=jk(i,e,XCe);return r?.literal}function Eur({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function Tur(i){var e;let{node:r,evaluate:o,stack:u,logger:d,typescript:h,getCurrentError:v}=i,S,k=r.members.find(h.isConstructorDeclaration),L=r.members.filter(Ae=>!h.isConstructorDeclaration(Ae)),z;if(k!=null){if(o.declaration(k,i),v()!=null)return;z=u.pop()}if(r.heritageClauses!=null){let Ae=r.heritageClauses.find(Ie=>Ie.token===h.SyntaxKind.ExtendsKeyword);if(Ae!=null){let[Ie]=Ae.types;if(Ie!=null&&(S=o.expression(Ie.expression,i),v()!=null))return}}let te=r.name==null?void 0:r.name.text,_e=JEn({name:te,extendedType:S,ctor:z});if(hqe(r,h))for(let Ae of(e=Bqe(r,h))!==null&&e!==void 0?e:[]){if(o.nodeWithArgument(Ae,[_e],i),v()!=null)return;_e=u.pop()}_e.toString=()=>`[Class${te==null?"":`: ${te}`}]`,te!=null&&RB({...i,path:te,value:_e,newBinding:!0});for(let Ae of L)if(o.nodeWithArgument(Ae,AX(Ae,h.SyntaxKind.StaticKeyword)?_e:_e.prototype,i),v()!=null)return;return d.logHeritage(_e),_e}function Dur(i){return null}function Aur({node:i,evaluate:e,...r}){e.expression(i.expression,r)}function kur({evaluate:i,node:e,...r}){let o=i.expression(e.expression,r);if(r.getCurrentError()==null)return typeof o}function wur({node:i,environment:e}){let r=jk(i,e,"BigInt").literal;return r(i.text.endsWith("n")?i.text.slice(0,-1):i.text)}function Iur(i){let{node:e,environment:r,evaluate:o,stack:u,getCurrentError:d}=i,h=jk(e,r,"Object").literal,v=h.create(h.prototype),S=e.name.text;RB({...i,path:S,value:v,newBinding:!0});for(let k of e.members)if(o.nodeWithArgument(k,v,i),d()!=null)return;v.toString=()=>`[Enum: ${S}]`,u.push(v)}function Pur(i){let{node:e,evaluate:r,environment:o,typeChecker:u,stack:d,getCurrentError:h}=i,v=jk(e,o,"Object").literal,S=v.create(v.prototype),k=u?.getSymbolAtLocation(e);if(k!=null){let L=k.exports;if(L!=null)for(let[z,te]of L.entries()){let _e=te.valueDeclaration;if(_e==null||(r.declaration(_e,i),h()!=null))return;S[z]=d.pop()}}d.push(S)}function Nur(i){let{getCurrentError:e,stack:r}=i,o=iCt(i);e()==null&&r.push(o)}function Lur({node:i,evaluate:e,...r}){i.importClause!=null&&e.declaration(i.importClause,r)}function Fur({node:i,evaluate:e,...r}){let{getCurrentError:o,throwError:u}=r,d=e.expression(i.expression,r);if(o()==null)return u(d)}var b9t=class extends iue{constructor({duration:e,environment:r,node:o,message:u=`Maximum operation duration exceeded: ${e}`}){super({violation:"maxOpDuration",message:u,node:o,environment:r}),this.duration=e}};async function Our(i){let{node:e,environment:r,evaluate:o,policy:u,throwError:d,getCurrentError:h}=i,v=u.maxOpDuration===1/0?void 0:setTimeout(()=>{d(new b9t({duration:u.maxOpDuration,node:e,environment:r}))},u.maxOpDuration),S=o.expression(e.expression,i);if(v!=null&&clearTimeout(v),h()==null)return S}function Rur({node:i,evaluate:e,...r}){let{getCurrentError:o}=r,u=e.expression(i.condition,r);if(o()==null)return u?e.expression(i.whenTrue,r):e.expression(i.whenFalse,r)}function dCt(i,e){let r=i;for(;r!=null&&!e.isSourceFile(r);){if(AX(r,e.SyntaxKind.StaticKeyword))return!0;r=r.parent}return!1}function qEn(i,e){var r,o;let{node:u,environment:d,evaluate:h,stack:v,typescript:S,getCurrentError:k}=i,L=h.nodeWithValue(u.name,i);if(k()!=null)return;let z=dCt(u,S);if(e==null){let _e;if(S.isClassLike(u.parent)){if(h.declaration(u.parent,i),k()!=null)return;_e=v.pop()}else if(_e=h.expression(u.parent,i),k()!=null)return;v.push(z?_e[L]:_e.prototype[L]);return}let te=AX(u,S.SyntaxKind.AsyncKeyword)?async function(...Ae){let Ie=A6(d,u),Xe={...i,environment:Ie};if(RB({...Xe,path:v2,value:!1,newBinding:!0}),RB({...Xe,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(RB({...Xe,path:i7,value:this,newBinding:!0}),RB({...Xe,path:XCe,value:z?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),kX({...i,node:u.parameters,environment:Ie},Ae),!(u.body==null||k()!=null)&&(h.statement(u.body,Xe),k()==null&&UT(u,Ie,!0,v2)))return v.pop()}:function(...Ae){let Ie=A6(d,u),Xe={...i,environment:Ie};if(RB({...Xe,path:v2,value:!1,newBinding:!0}),RB({...Xe,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(RB({...Xe,path:i7,value:this,newBinding:!0}),RB({...Xe,path:XCe,value:z?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),kX({...i,node:u.parameters,environment:Ie},Ae),!(u.body==null||k()!=null)&&(h.statement(u.body,Xe),k()==null&&UT(u,Ie,!0,v2)))return v.pop()};if(te.toString=()=>`[Method: ${L}]`,Object.setPrototypeOf(te,jk(u,d,"Function").literal),e[L]=te,hqe(u,S))for(let _e of(r=Bqe(u,S))!==null&&r!==void 0?r:[]){if(h.nodeWithArgument(_e,[e,L],i),k()!=null)return;v.pop()}if(u.parameters!=null){let _e=u.parameters.filter(Ae=>!(S.isIdentifier(Ae.name)&&Ae.name.text==="this"));for(let Ae=0;Ae<_e.length;Ae++){let Ie=_e[Ae];if(hqe(Ie,S))for(let Xe of(o=Bqe(Ie,S))!==null&&o!==void 0?o:[]){if(h.nodeWithArgument(Xe,[e,L,Ae],i),k()!=null)return;v.pop()}}}}function KEn({node:i,evaluate:e,typescript:r,stack:o,...u},d){var h;let{getCurrentError:v}=u,S=e.nodeWithValue(i.name,u);if(v()==null){if(d==null){if(e.declaration(i.parent,u),v()!=null)return;let k=o.pop(),L=dCt(i,r);o.push(L?k[S]:k.prototype[S]);return}if(d[S]=i.initializer==null?void 0:e.expression(i.initializer,u),v()==null&&hqe(i,r))for(let k of(h=Bqe(i,r))!==null&&h!==void 0?h:[]){if(e.nodeWithArgument(k,[d,S],u),v()!=null)return;o.pop()}}}function XEn(i,e){let{node:r,environment:o,evaluate:u,stack:d,typescript:h,getCurrentError:v}=i;if(h.isTypeLiteralNode(r.parent)||h.isInterfaceDeclaration(r.parent))return;let S=u.nodeWithValue(r.name,i);if(v()!=null)return;let k=dCt(r,h);if(e==null){let te;if(h.isClassLike(r.parent)){if(u.declaration(r.parent,i),v()!=null)return;te=d.pop()}else if(te=u.expression(r.parent,i),v()!=null)return;d.push(k?te[S]:te.prototype[S]);return}function L(){let te=A6(o,r),_e={...i,environment:te};if(RB({..._e,path:v2,value:!1,newBinding:!0}),RB({..._e,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(RB({..._e,path:i7,value:this,newBinding:!0}),RB({..._e,path:XCe,value:k?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),r.body!=null&&(u.statement(r.body,_e),v()==null&&UT(r,te,!0,v2)))return d.pop()}L.toString=()=>`[Get: ${S}]`;let z=Object.getOwnPropertyDescriptor(e,S);z==null&&(z={}),Object.defineProperty(e,S,{...z,configurable:!0,get:L})}function Mur({node:i,evaluate:e,...r}){let{getCurrentError:o}=r;if(!(i.name!=null&&(e.declaration(i.name,r),o()!=null))&&i.namedBindings!=null)if("elements"in i.namedBindings){for(let u of i.namedBindings.elements)if(e.declaration(u,r),o()!=null)return}else e.declaration(i.namedBindings.name,r)}function Gur({node:i,evaluate:e,...r}){var o;e.declaration((o=i.propertyName)!==null&&o!==void 0?o:i.name,r)}function jur({node:i,evaluate:e,...r}){e.declaration(i.name,r)}var cCt=class extends s7{constructor({node:e,environment:r,message:o="'SyntaxError'"}){super({message:o,environment:r,node:e})}};function Uur({node:i,typescript:e,throwError:r,environment:o}){var u,d;switch(i.keywordToken){case e.SyntaxKind.NewKeyword:switch(i.name.text){case"target":return(u=jk(i,o,"[[NewTarget]]"))===null||u===void 0?void 0:u.literal;default:return r(new cCt({node:i.name,environment:o}))}case e.SyntaxKind.ImportKeyword:switch(i.name.text){case"meta":return(d=jk(i,o,"import.meta"))===null||d===void 0?void 0:d.literal;default:return r(new cCt({node:i.name,environment:o}))}}}function A9t({node:i,...e}){var r,o,u,d,h,v;return e.typescript.isIdentifier(i)?DEn({node:i,...e}):!((o=(r=e.typescript).isPrivateIdentifier)===null||o===void 0)&&o.call(r,i)?DEn({node:i,...e}):e.typescript.isStringLiteralLike(i)?Vcr({node:i,...e}):e.typescript.isNumericLiteral(i)?Hcr({node:i,...e}):jEn(i,e.typescript)?zcr({node:i,...e}):e.typescript.isForOfStatement(i)?dur({node:i,...e}):e.typescript.isForInStatement(i)?yur({node:i,...e}):e.typescript.isForStatement(i)?Bur({node:i,...e}):e.typescript.isWhileStatement(i)?gur({node:i,...e}):e.typescript.isRegularExpressionLiteral(i)?Jcr({node:i,...e}):e.typescript.isObjectLiteralExpression(i)?qcr({node:i,...e}):e.typescript.isAwaitExpression(i)?Our({node:i,...e}):!((d=(u=e.typescript).isTypeAssertionExpression)===null||d===void 0)&&d.call(u,i)||!("isTypeAssertionExpression"in e.typescript)&&e.typescript.isTypeAssertion(i)?our({node:i,...e}):e.typescript.isTemplateExpression(i)?aur({node:i,...e}):e.typescript.isMethodDeclaration(i)?qEn({node:i,...e}):e.typescript.isPropertyDeclaration(i)?KEn({node:i,...e}):e.typescript.isGetAccessorDeclaration(i)?XEn({node:i,...e}):e.typescript.isArrayLiteralExpression(i)?Xcr({node:i,...e}):e.typescript.isSourceFile(i)?Pur({node:i,...e}):e.typescript.isModuleDeclaration(i)?Nur({node:i,...e}):e.typescript.isPrefixUnaryExpression(i)?Zcr({node:i,...e}):e.typescript.isPostfixUnaryExpression(i)?lur({node:i,...e}):e.typescript.isVariableStatement(i)?$cr({node:i,...e}):e.typescript.isComputedPropertyName(i)?nur({node:i,...e}):e.typescript.isVariableDeclarationList(i)?zEn({node:i,...e}):e.typescript.isImportDeclaration(i)?Lur({node:i,...e}):e.typescript.isImportClause(i)?Mur({node:i,...e}):e.typescript.isImportSpecifier(i)?Gur({node:i,...e}):e.typescript.isNamespaceImport(i)?jur({node:i,...e}):e.typescript.isImportEqualsDeclaration(i)?({...e},void 0):e.typescript.isMetaProperty(i)?Uur({node:i,...e}):e.typescript.isThrowStatement(i)?Fur({node:i,...e}):e.typescript.isVariableDeclaration(i)?WEn({node:i,...e}):e.typescript.isEnumDeclaration(i)?Iur({node:i,...e}):e.typescript.isConstructorDeclaration(i)?Sur({node:i,...e}):e.typescript.isBinaryExpression(i)?Mcr({node:i,...e}):e.typescript.isParenthesizedExpression(i)?Ucr({node:i,...e}):e.typescript.isExpressionStatement(i)?sur({node:i,...e}):e.typescript.isArrowFunction(i)?Wcr({node:i,...e}):e.typescript.isFunctionDeclaration(i)?rur({node:i,...e}):e.typescript.isFunctionExpression(i)?Cur({node:i,...e}):e.typescript.isClassDeclaration(i)?bur({node:i,...e}):e.typescript.isIfStatement(i)?iur({node:i,...e}):e.typescript.isConditionalExpression(i)?Rur({node:i,...e}):e.typescript.isPropertyAccessExpression(i)?eur({node:i,...e}):e.typescript.isElementAccessExpression(i)?tur({node:i,...e}):e.typescript.isCallExpression(i)?jcr({node:i,...e}):e.typescript.isSwitchStatement(i)?pur({node:i,...e}):e.typescript.isNewExpression(i)?cur({node:i,...e}):e.typescript.isNonNullExpression(i)?uur({node:i,...e}):e.typescript.isAsExpression(i)?fur({node:i,...e}):e.typescript.isBlock(i)?Ycr({node:i,...e}):e.typescript.isClassExpression(i)?Tur({node:i,...e}):e.typescript.isSpreadElement(i)?Eur({node:i,...e}):e.typescript.isTryStatement(i)?vur({node:i,...e}):e.typescript.isReturnStatement(i)?Qcr({node:i,...e}):VEn(i,e.typescript)?_ur({node:i,...e}):e.typescript.isVoidExpression(i)?Aur({node:i,...e}):e.typescript.isTypeOfExpression(i)?kur({node:i,...e}):pCt(i,e.typescript)?xur({node:i,...e}):UEn(i,e.typescript)?Dur({node:i,...e}):!((v=(h=e.typescript).isBigIntLiteral)===null||v===void 0)&&v.call(h,i)?wur({node:i,...e}):e.typescript.isBreakStatement(i)?mur({node:i,...e}):e.typescript.isContinueStatement(i)?hur({node:i,...e}):e.typescript.isTypeAliasDeclaration(i)?({...e},void 0):e.typescript.isInterfaceDeclaration(i)?({...e},void 0):e.getCurrentError()!=null?void 0:e.throwError(new jN({node:i,environment:e.environment,typescript:e.typescript}))}function k9t(){return[]}function Wur(i){i.logger.logNode(i.node,i.typescript),i.statementTraversalStack=k9t(),A9t(i)}function Vur(i){let{getCurrentError:e}=i;i.logger.logNode(i.node,i.typescript);let r=A9t(i);if(e()==null)return i.reporting.reportIntermediateResults!=null&&i.reporting.reportIntermediateResults({node:i.node,value:r}),r}function Hur(i){i.logger.logNode(i.node,i.typescript),A9t(i)}function zur({node:i,evaluate:e,typescript:r,logger:o,...u},d){var h;r.isIdentifier(i)||!((h=r.isPrivateIdentifier)===null||h===void 0)&&h.call(r,i)?(RB({...u,node:i,path:i.text,value:d,newBinding:!0}),o.logBinding(i.text,d,"evaluateBindingName")):e.nodeWithArgument(i,d,u)}function Jur(i,e){let{node:r,environment:o,evaluate:u,typescript:d,getCurrentError:h}=i,v=u.nodeWithValue(r.name,i);if(h()!=null)return;let S=dCt(r,d);function k(...z){let te=A6(o,r),_e={...i,environment:te};RB({..._e,path:v2,value:!1,newBinding:!0}),RB({..._e,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(RB({..._e,path:i7,value:this,newBinding:!0}),RB({..._e,path:XCe,value:S?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),kX({..._e,node:r.parameters},z),!(r.body==null||h()!=null)&&(u.statement(r.body,_e),h()==null)}k.toString=()=>`[Set: ${v}]`;let L=Object.getOwnPropertyDescriptor(e,v);L==null&&(L={}),Object.defineProperty(e,v,{...L,configurable:!0,set:k})}function qur({node:i,evaluate:e,...r},o){let u=e.expression(i.initializer,r);if(r.getCurrentError()!=null)return;let d=e.nodeWithValue(i.name,r);r.getCurrentError()==null&&(o[d]=u)}function Kur({node:i,evaluate:e,logger:r,...o},u){let d=u!=null||i.initializer===void 0?u:e.expression(i.initializer,o);o.getCurrentError()==null&&(r.logBinding(i.name.getText(),d,"evaluateParameterDeclaration"),e.nodeWithArgument(i.name,d,o))}function Xur({node:i,evaluate:e,...r},o){let{getCurrentError:u}=r,d=i.name.text,h=e.expression(i.name,r);u()==null&&(o[d]=h)}function Yur({node:i,evaluate:e,...r},o){let u=e.expression(i.expression,r);r.getCurrentError()==null&&Object.assign(o,u)}function Qur({node:i,evaluate:e,...r},o){let u=o[Symbol.iterator](),d=0;for(;d<i.elements.length;){let{done:h,value:v}=u.next();if(h===!0)break;if(e.nodeWithArgument(i.elements[d++],v,r),r.getCurrentError()!=null)return}}function $ur(i,e){var r,o,u,d;let{node:h,evaluate:v,logger:S,typescript:k,getCurrentError:L}=i,z=h.initializer==null?void 0:v.expression(h.initializer,i);if(L()==null){if((k.isIdentifier(h.name)||!((r=k.isPrivateIdentifier)===null||r===void 0)&&r.call(k,h.name))&&h.propertyName!=null){let te=h.name.text,_e=v.nodeWithValue(h.propertyName,i);if(L()!=null)return;let Ae=k.isArrayBindingPattern(h.parent)?e:e[_e];RB({...i,path:te,value:Ae??z,newBinding:!0})}else if((k.isIdentifier(h.name)||!((o=k.isPrivateIdentifier)===null||o===void 0)&&o.call(k,h.name))&&h.propertyName==null){let te=h.name.text,_e=k.isArrayBindingPattern(h.parent)?e:e[te],Ae=_e??z;S.logBinding(h.name.text,Ae),RB({...i,path:h.name.text,value:Ae,newBinding:!0})}else if(!k.isIdentifier(h.name)&&!(!((u=k.isPrivateIdentifier)===null||u===void 0)&&u.call(k,h.name))&&h.propertyName!=null){let te=v.nodeWithValue(h.propertyName,i);if(L()!=null)return;let _e=k.isArrayBindingPattern(h.parent)?e:e[te],Ae=_e??z;if(v.nodeWithArgument(h.name,Ae,i),L()!=null)return}else if(!k.isIdentifier(h.name)&&!(!((d=k.isPrivateIdentifier)===null||d===void 0)&&d.call(k,h.name))&&h.propertyName==null){let te=e??z;if(v.nodeWithArgument(h.name,te,i),L()!=null)return}}}function Zur({node:i,evaluate:e,...r},o){for(let u of i.elements)if(e.nodeWithArgument(u,o,r),r.getCurrentError()!=null)return}function efr(i,e){let{node:r,evaluate:o,environment:u,getCurrentError:d}=i,h=A6(u,r),v={...i,environment:h};RB({...v,path:sR,value:!1,newBinding:!0});for(let S of r.clauses){if(o.nodeWithArgument(S,e,v),d()!=null)return;if(UT(r,h,!0,sR,r7,v2))break}}function tfr({node:i,evaluate:e,...r},o){let{getCurrentError:u}=r;if(!(e.expression(i.expression,r)!==o||u()!=null))for(let h of i.statements){if(e.statement(h,r),u()!=null)return;if(UT(i,r.environment,!0,sR,r7,v2))break}}function nfr(i){let{node:e,evaluate:r,environment:o,getCurrentError:u}=i;for(let d of e.statements){if(r.statement(d,i),u()!=null)return;if(UT(e,o,!0,sR,r7,v2))break}}function rfr(i,e){let{node:r,evaluate:o,environment:u,getCurrentError:d}=i,h=r.variableDeclaration==null?u:A6(u,r),v={...i,environment:h};r.variableDeclaration!=null&&(o.nodeWithArgument(r.variableDeclaration,e,v),d()!=null)||o.statement(r.block,v)}function ifr(i,e,r,o){let u=arguments.length,d=u<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;for(let v=i.length-1;v>=0;v--)(h=i[v])&&(d=(u<3?h(d):u>3?h(e,r,d):h(e,r))||d);return u>3&&d&&Object.defineProperty(e,r,d),d}function sfr(i,e){return function(r,o){e(r,o,i)}}function afr(i,[e,r,o]){let{node:u,evaluate:d,environment:h,throwError:v,stack:S,getCurrentError:k}=i,L=d.expression(u.expression,i);if(k()==null){if(typeof L!="function")return v(new oCt({node:u,environment:h,value:L,message:`${D9t(L)} is not a valid decorator implementation'`}));S.push(ifr([o!=null?sfr(o,L):L],e,r))}}function ofr(i,e){let{node:r,typeChecker:o,evaluate:u,getCurrentError:d}=i,h=o?.getConstantValue(r);if(h==null)if(r.initializer!=null){if(h=u.expression(r.initializer,i),d()!=null)return}else{let S=r.parent.members,k=S.findIndex(te=>te===r),L=S.slice(0,k),z=0;for(let te of[...L].reverse())if(z++,te.initializer!=null){let _e=u.expression(te.initializer,i);if(d()!=null)return;if(typeof _e=="number"){h=_e+z;break}}h==null&&(h=k)}let v=u.nodeWithValue(r.name,i);d()==null&&(typeof h=="string"?e[v]=h:e[e[v]=h??0]=v)}function lfr(i,e){i.logger.logNode(i.node,i.typescript,"nodeWithArgument");let{node:r,...o}=i;if(o.typescript.isGetAccessorDeclaration(r))XEn({node:r,...o},e);else if(o.typescript.isSetAccessorDeclaration(r))Jur({node:r,...o},e);else if(o.typescript.isPropertyAssignment(r))qur({node:r,...o},e);else if(o.typescript.isPropertyDeclaration(r))KEn({node:r,...o},e);else if(o.typescript.isParameter(r))Kur({node:r,...o},e);else if(o.typescript.isEnumMember(r))ofr({node:r,...o},e);else if(o.typescript.isShorthandPropertyAssignment(r))Xur({node:r,...o},e);else if(o.typescript.isDecorator(r))afr({node:r,...o},e);else if(o.typescript.isSpreadAssignment(r))Yur({node:r,...o},e);else if(o.typescript.isMethodDeclaration(r))qEn({node:r,...o},e);else if(o.typescript.isArrayBindingPattern(r))Qur({node:r,...o},e);else if(o.typescript.isBindingElement(r))$ur({node:r,...o},e);else if(o.typescript.isObjectBindingPattern(r))Zur({node:r,...o},e);else if(o.typescript.isVariableDeclaration(r))WEn({node:r,...o},e);else if(o.typescript.isCaseBlock(r))efr({node:r,...o},e);else if(o.typescript.isCaseClause(r))tfr({node:r,...o},e);else if(o.typescript.isDefaultClause(r))nfr({node:r,...o});else if(o.typescript.isCatchClause(r))rfr({node:r,...o},e);else if(o.typescript.isBindingName(r))zur({node:r,...o},e);else if(o.typescript.isOmittedExpression(r))({...o});else{if(i.getCurrentError()!=null)return;o.throwError(new jN({node:r,environment:o.environment,typescript:o.typescript}))}}function cfr({node:i,evaluate:e,typescript:r,...o}){var u;return r.isComputedPropertyName(i)?e.expression(i.expression,o):r.isIdentifier(i)||!((u=r.isPrivateIdentifier)===null||u===void 0)&&u.call(r,i)?i.text:e.expression(i,o)}function ufr(i){i.logger.logNode(i.node,i.typescript,"nodeWithValue");let{node:e,...r}=i;return i.typescript.isPropertyName(e)||i.typescript.isPrivateIdentifier(e)?cfr({node:e,...r}):i.throwError(new jN({node:e,environment:i.environment,typescript:i.typescript}))}function ffr(i){let e=0,{policy:r,reporting:o}=i,u=(v,S)=>{let{environment:k=i.environment,statementTraversalStack:L=i.statementTraversalStack,getCurrentError:z=i.getCurrentError,throwError:te=i.throwError}=S??{},_e=z();if(_e!=null)return _e;if(e++,e>=r.maxOps)return te(new g9t({ops:e,environment:k,node:v}));L.push(v.kind),o.reportTraversal!=null&&o.reportTraversal({node:v})},d={statement:(v,S)=>{let k={...S,statementTraversalStack:k9t()},L=u(v,k);if(!sne(L))return Wur(h(v,k))},declaration:(v,S)=>{let k=u(v,S);if(!sne(k))return Hur(h(v,S))},nodeWithArgument:(v,S,k)=>{let L=u(v,k);if(!sne(L))return lfr(h(v,k),S)},expression:(v,S)=>{let k=u(v,S);return sne(k)?k:Vur(h(v,S))},nodeWithValue:(v,S)=>{let k=u(v,S);return sne(k)?k:ufr(h(v,S))}};function h(v,S){return{...i,...S,evaluate:d,node:v}}return d}function _qe(i,e){return i===e.SyntaxKind.NumericLiteral?"NumericLiteral":e.SyntaxKind[i]}var S9t=class{constructor(e={}){let{logLevel:r=0,color:{info:o="white",verbose:u="yellow",debug:d="magenta"}={}}=typeof e=="object"?e:{logLevel:e};this.options={logLevel:r,color:{info:o,verbose:u,debug:d}}}logInfo(e){this.options.logLevel<1||console.log(this.formatWithColor(this.options.color.info,e))}logVerbose(e){this.options.logLevel<2||console.log(this.formatWithColor(this.options.color.verbose,e))}logDebug(e){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,e))}logContinue(e,r){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"continue")} encountered within ${this.formatWithColor(this.options.color.debug,_qe(e.kind,r))}`)}logBreak(e,r){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"break")} encountered within ${this.formatWithColor(this.options.color.debug,_qe(e.kind,r))}`)}logReturn(e,r){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"return")} encountered within ${this.formatWithColor(this.options.color.debug,_qe(e.kind,r))}`)}logResult(e,r){this.options.logLevel<1||(r!=null?console.log(this.formatWithColor(this.options.color.info,`(intermediate value from context '${r}'):`),this.formatWithColor(this.options.color.info,"[RESULT]:"),this.compactValue(e)):console.log(this.formatWithColor(this.options.color.info,"[RESULT]:"),e))}logNode(e,r,o){if(this.options.logLevel<3)return;let u=`[${_qe(e.kind,r)}]`.padEnd(25);o!=null&&(u+=this.formatWithColor(this.options.color.debug,`(${o})`));let d=e.getText(),h=this.formatWithColor(this.options.color.debug,u),v=this.formatWithColor(this.options.color.debug,d);console.log(h),console.log(v)}logBinding(e,r,o){this.options.logLevel<2||console.log(`${o==null?"":this.formatWithColor(this.options.color.verbose,`(${o}): `)}${this.formatWithColor(this.options.color.verbose,`${e} ->`)}`,this.formatWithColor(this.options.color.verbose,this.compactValue(r)))}logHeritage(e){if(this.options.logLevel<3)return;let r=Object.getPrototypeOf(e);r.toString().includes("[Class")&&console.log(`${this.formatWithColor(this.options.color.debug,e.toString())} ${this.formatWithColor(this.options.color.debug,"extends")} ${this.formatWithColor(this.options.color.debug,r.toString())}`)}logStack(e){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`Stack value: ${D9t(this.compactValue(e.lastItem))}`))}logStatementTraversalStack(e,r){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`[${e.map(o=>_qe(o,r)).join(", ")}]`))}compactValue(e){return(0,kEn.inspect)(e,{depth:0,colors:!0,compact:!0,maxArrayLength:5})}formatWithColor(e,r){return wEn.default[e](r)}};function pfr(i,e){var r;return e.isExpressionNode(i)||e.isIdentifier(i)||((r=e.isPrivateIdentifier)===null||r===void 0?void 0:r.call(e,i))}function dfr(i,e){return e.isStatementButNotDeclaration(i)}function _fr(){let i=[];return{[Symbol.iterator](){return i[Symbol.iterator]()},get length(){return i.length},get lastItem(){return i[i.length-1]},push(...e){return i.push(...e)},pop(){return i.pop()}}}function mfr(i,e,r){i.reportErrors!=null&&!i.reportedErrorSet.has(e)&&(i.reportedErrorSet.add(e),i.reportErrors({error:e,node:e instanceof s7?e.node:r}))}function hfr(){return new WeakSet}function YEn({typeChecker:i,node:e,environment:{preset:r="NODE",extra:o={}}={},moduleOverrides:u={},typescript:d=dcr,logLevel:h=0,policy:{deterministic:v=!1,network:S=!1,console:k=!1,maxOps:L=1/0,maxOpDuration:z=1/0,io:te={read:!0,write:!1},process:_e={exit:!1,spawnChild:!1}}={},reporting:Ae={}}){let Ie=Rcr(e,d);if(Ie.success)return Ie;let Xe={deterministic:v,maxOps:L,maxOpDuration:z,network:S,console:k,io:{read:typeof te=="boolean"?te:te.read,write:typeof te=="boolean"?te:te.write},process:{exit:typeof _e=="boolean"?_e:_e.exit,spawnChild:typeof _e=="boolean"?_e:_e.spawnChild}},Ve={...Ae,reportedErrorSet:hfr()},ze,Pt=new S9t(h),Zt=br=>(mfr(Ve,br,br.node),ze=br,ze),mn=Ocr({inputEnvironment:{preset:r,extra:o},startingNode:e,policy:Xe}),zn=_fr(),wn=k9t(),Cn={policy:Xe,typeChecker:i,typescript:d,logger:Pt,stack:zn,moduleOverrides:u,reporting:Ve,throwError:Zt,environment:mn,statementTraversalStack:wn,getCurrentError:()=>ze},Qn=ffr(Cn);try{let br;return pfr(e,d)?br=Qn.expression(e,Cn):dfr(e,d)?(Qn.statement(e,Cn),br=zn.pop()):PEn(e,d)?(Qn.declaration(e,Cn),br=zn.pop()):Zt(new jN({node:e,environment:mn,typescript:d})),ze!=null?{success:!1,reason:ze}:(Pt.logResult(br),{success:!0,value:br})}catch(br){return Zt(br),{success:!1,reason:br}}}var iTn=Bm(G9(),1);var a7=Bm(G9(),1);var Cqe=Bm(G9(),1);var $Ce=Bm(G9(),1);var IX=Bm(G9(),1);var N9t=Bm(G9(),1);var L9t=Bm(G9(),1);var Bfr=i=>{if(Array.isArray(i))return"array";if(typeof i=="string")return"string";if(typeof i=="number")return"number";if(typeof i=="boolean")return"boolean";if(i===null)return"null";if(i===void 0)return"undefined";throw new Error(`Unexpected literal type: ${i}`)},KI=i=>i!=null,tTn=i=>i==null,nTn=i=>i!=null&&typeof i=="object",gfr=i=>Array.isArray(i),yfr=i=>{let e=typeof i;return e==="string"||e==="number"||e==="boolean"||i===null||i===void 0},dx=i=>yqe.Node.isAsExpression(i)||yqe.Node.isParenthesizedExpression(i)||yqe.Node.isNonNullExpression(i)||yqe.Node.isTypeAssertion(i)?dx(i.getExpression()):i,Cfr=i=>i.getTagNameNode().getText(),vfr=/\s+/g,rTn=i=>i.replaceAll(vfr," "),bfr=i=>{let e=i.getSourceFile(),[r,o]=[i.getStart(),i.getEnd()],u=e.getLineAndColumnAtPos(r),d=e.getLineAndColumnAtPos(o);return{startPosition:r,startLineNumber:u.line,startColumn:u.column,endPosition:o,endLineNumber:d.line,endColumn:d.column}},aue=class{type;stack=[];node;constructor(i){this.type=i.type,this.node=i.node,this.stack=[...i.stack??[]]}getNode(){return this.node}getStack(){return this.stack}getRange=()=>bfr(this.node);toJSON(){let i=this.getRange();return{type:this.type,value:this.value,node:this.node.getKindName(),line:i.startLineNumber,column:i.startColumn}}toString(){return JSON.stringify(this.toJSON(),null,2)}},QEn=class extends aue{value;isEmpty;constructor(i){super(i),this.value=i.value,this.isEmpty=i.isEmpty}},Sfr=class extends aue{value;kind;constructor(i){super(i),this.value=i.value,this.kind=i.kind}},xfr=class extends aue{value;spreadConditions;constructor(i){super(i),this.value=i.value}},Efr=class extends aue{value;constructor(i){super(i),this.value=i.value}},Tfr=class extends aue{},Dfr=class extends aue{whenTrue;whenFalse;constructor(i){super(i),this.whenTrue=i.whenTrue,this.whenFalse=i.whenFalse}},Afr=class extends aue{},H3e=i=>i instanceof aue;function P9t(i,e,r){return f0(i).when(tTn,()=>{}).when(H3e,o=>o).when(nTn,o=>Ff.object(o,e,r)).when(gfr,o=>o.length===1?P9t(o[0],e,r):o.map(u=>P9t(u,e,r))).when(yfr,o=>Ff.literal(o,e,r)).otherwise(()=>{})}var Ff={object(i,e,r){return new QEn({type:"object",value:i,node:e,stack:r})},literal(i,e,r){return new Sfr({type:"literal",value:i,kind:Bfr(i),node:e,stack:r})},map(i,e,r){return new xfr({type:"map",value:i,node:e,stack:r})},array(i,e,r){return new Efr({type:"array",value:i,node:e,stack:r})},conditional(i,e,r,o){return new Dfr({type:"conditional",whenTrue:i,whenFalse:e,node:r,stack:o})},from:P9t,emptyObject:(i,e)=>new QEn({type:"object",value:{},isEmpty:!0,node:i,stack:e}),emptyInitializer:(i,e)=>new Afr({type:"empty-initializer",node:i,stack:e}),unresolvable:(i,e)=>new Tfr({type:"unresolvable",node:i,stack:e}),isObject(i){return i?.type==="object"},isLiteral(i){return i?.type==="literal"},isMap(i){return i?.type==="map"},isArray(i){return i?.type==="array"},isUnresolvable(i){return i?.type==="unresolvable"},isConditional(i){return i?.type==="conditional"},isEmptyInitializer(i){return i?.type==="empty-initializer"},isNumberLiteral(i){return Ff.isLiteral(i)&&i.kind==="number"},hasValue:i=>Ff.isObject(i)||Ff.isLiteral(i)||Ff.isMap(i)||Ff.isArray(i)},sTn=Symbol("EvalError"),w9t=new WeakMap,kfr=(i,e,r)=>{if(r.flags?.skipEvaluate||r.canEval&&!r.canEval?.(i,e))return;if(w9t.has(i))return w9t.get(i);let o=YEn({node:i.compilerNode,typescript:iTn.ts,policy:{deterministic:!0,network:!1,console:!1,maxOps:Number.POSITIVE_INFINITY,maxOpDuration:1e3,io:{read:!0,write:!1},process:{exit:!1,spawnChild:!1}},...r.getEvaluateOptions?.(i,e)}),u=o.success?o.value:sTn;return w9t.set(i,u),u},I9t=(i,e,r)=>{let o=kfr(i,e,r);if(o!==sTn)return o},_Ct=U$t("findIdentifierValueDeclaration");function wfr(i){return a7.Node.isFunctionDeclaration(i)||a7.Node.isFunctionExpression(i)||a7.Node.isArrowFunction(i)||a7.Node.isSourceFile(i)}function Ifr(i,e,r){let o=i.getParent();if(!o)return;let u=[],d;if((a7.Node.isVariableDeclaration(o)||a7.Node.isParameterDeclaration(o)||a7.Node.isFunctionDeclaration(o)||a7.Node.isBindingElement(o))&&o.getNameNode()==i)y_.debug(_Ct("getDeclarationFor"),{isDeclarationLike:!0,kind:o.getKindName()}),u.push(o),d=o;else if(a7.Node.isImportSpecifier(o)&&o.getNameNode()==i){if(r.flags?.skipTraverseFiles)return;let h=fTn(o.getImportDeclaration());if(y_.debug(_Ct("getDeclarationFor"),{isImportDeclaration:!0,sourceFile:!!h}),h){let v=[o,h],S=uTn(i.getText(),h,v,r);y_.debug(_Ct("getDeclarationFor"),{from:h.getFilePath(),hasVar:!!S}),S&&(u.push(...v.concat(S)),d=S)}}return y_.debug(_Ct("getDeclarationFor"),{node:i.getKindName(),parent:o.getKindName(),declaration:d?.getKindName()}),d&&e.push(...u),d}var Pfr=i=>{let e=i.getParent();for(;e&&!wfr(e);)e=e.getParent();return y_.debug("getInnermostScope",{found:e?.getKindName()}),e};function gCt(i,e,r,o=new Map){let u=i,d,h=!1,v=0,S=[];do{if(u=Pfr(u),y_.debug("find",{identifier:i.getText(),scope:u?.getKindName(),count:v++}),!u)return;let k=i.getText();if(u.forEachDescendant((L,z)=>{if(o.has(L)){z.skip(),S.push(...o.get(L));return}if(L!=i&&(o.set(L,S),a7.Node.isIdentifier(L)&&L.getText()==k)){let te=[L],_e=Ifr(L,te,r);if(_e){if(a7.Node.isParameterDeclaration(_e)){let Ae=_e.getInitializer(),Ie=_e.getTypeNode();Ae?(S.push(...te.concat(Ae)),d=_e):Ie&&a7.Node.isTypeLiteral(Ie)?(S.push(...te.concat(Ie)),d=_e):h=!0,z.stop();return}S.push(...te),d=_e,z.stop()}}}),y_.debug("find",{scope:u.getKindName(),foundNode:d?.getKindName(),isUnresolvable:h}),d||h)return d&&e.push(...S),d}while(u&&!a7.Node.isSourceFile(u)&&!d&&!h&&v<100);y_.debug("find",{end:!0,count:v,scope:u?.getKindName(),isUnresolvable:h})}var Nfr=(i,e,r)=>f0(i).when($Ce.Node.isPropertyAssignment,o=>{let u=dx(o.getNameNode());return f0(u).when($Ce.Node.isIdentifier,d=>Ff.from(d.getText(),d,e)).when($Ce.Node.isComputedPropertyName,d=>{let h=d.getExpression();return e.push(h),PX(h,e,r)}).when(E6.or($Ce.Node.isStringLiteral,$Ce.Node.isNumericLiteral),d=>Ff.from(d.getLiteralText(),d,e)).otherwise(()=>{})}).when($Ce.Node.isShorthandPropertyAssignment,o=>{let u=o.getName();if(u!=null)return Ff.from(u,o,e)}).otherwise(()=>{}),Lfr=(i,e,r,o)=>{let u=i.getProperties();if(u.length===0)return Ff.emptyObject(i,e);let d=[],h=[];u.forEach(k=>{let L=[...e];if(L.push(k),Cqe.Node.isPropertyAssignment(k)||Cqe.Node.isShorthandPropertyAssignment(k)){let z=Nfr(k,L,r);if(!z)return;let te=z.value;if(tTn(te)||o&&!o?.({propName:te,propNode:k}))return;if(Cqe.Node.isShorthandPropertyAssignment(k)){let Xe=k.getNameNode();L.push(Xe);let Ve=TE(Xe,L,r);if(Ve){d.push([te.toString(),Ve]);return}}let _e=k.getInitializer();if(!_e)return;let Ae=dx(_e);L.push(Ae),y_.debug("prop",{propName:te,kind:Ae.getKindName()});let Ie=TE(Ae,L,r);if(y_.debug("prop-value",{propName:te,hasValue:!!Ie}),Ie){y_.debug("prop-value",{propName:te,maybeValue:Ie}),d.push([te.toString(),Ie]);return}}if(Cqe.Node.isSpreadAssignment(k)){let z=dx(k.getExpression());L.push(z);let te=TE(z,L,r,o);if(y_.debug("isSpreadAssignment",{extracted:!!te}),!te)return;if(Ff.isObject(te)){Object.entries(te.value).forEach(([_e,Ae])=>{let Ie=Ff.from(Ae,z,L);Ie&&d.push([_e,Ie])});return}if(Ff.isMap(te)){te.value.forEach((_e,Ae)=>{d.push([Ae,_e])});return}Ff.isConditional(te)&&h.push(te)}});let v=new Map;d.forEach(([k,L])=>{v.has(k)&&v.delete(k),v.set(k,L)});let S=Ff.map(v,i,e);return h.length>0&&(S.spreadConditions=h),S},F9t=new WeakMap,Ffr=i=>F9t.has(i),Ofr=i=>F9t.get(i),Rfr=i=>i===Xd.ts.SyntaxKind.PlusToken,Mfr=i=>i===Xd.ts.SyntaxKind.BarBarToken||i===Xd.ts.SyntaxKind.QuestionQuestionToken||i===Xd.ts.SyntaxKind.AmpersandAmpersandToken||i===Xd.ts.SyntaxKind.EqualsEqualsEqualsToken||i===Xd.ts.SyntaxKind.EqualsEqualsToken||i===Xd.ts.SyntaxKind.ExclamationEqualsEqualsToken||i===Xd.ts.SyntaxKind.ExclamationEqualsToken||i===Xd.ts.SyntaxKind.GreaterThanEqualsToken||i===Xd.ts.SyntaxKind.GreaterThanToken||i===Xd.ts.SyntaxKind.LessThanEqualsToken||i===Xd.ts.SyntaxKind.LessThanToken||i===Xd.ts.SyntaxKind.InstanceOfKeyword||i===Xd.ts.SyntaxKind.InKeyword,Gfr=i=>i===Xd.ts.SyntaxKind.AsteriskToken||i===Xd.ts.SyntaxKind.SlashToken||i===Xd.ts.SyntaxKind.PercentToken||i===Xd.ts.SyntaxKind.AsteriskAsteriskToken||i===Xd.ts.SyntaxKind.MinusToken,jfr=i=>i===Xd.ts.SyntaxKind.BarBarToken||i===Xd.ts.SyntaxKind.QuestionQuestionToken;function TE(i,e,r,o){let u=d=>(F9t.set(i,d),d);return f0(i).when(Ffr,Ofr).when(E6.or(Xd.Node.isStringLiteral,Xd.Node.isNoSubstitutionTemplateLiteral),d=>{let h=rTn(d.getLiteralValue());return u(Ff.literal(h,d,e))}).when(Xd.Node.isObjectLiteralExpression,d=>u(Lfr(d,e,r,o))).when(E6.or(Xd.Node.isTrueLiteral,Xd.Node.isFalseLiteral),d=>{let h=d.getLiteralValue();return u(Ff.literal(h,d,e))}).when(Xd.Node.isNumericLiteral,d=>{let h=d.getLiteralValue();return u(Ff.literal(h,d,e))}).when(Xd.Node.isNullLiteral,d=>u(Ff.literal(null,d,e))).when(Xd.Node.isPrefixUnaryExpression,d=>{let h=d.getOperand(),v=d.getOperatorToken(),S=TE(h,e,r);if(Ff.isNumberLiteral(S))return u(v===Xd.ts.SyntaxKind.MinusToken?Ff.literal(-Number(S.value),d,e):S)}).when(Xd.Node.isArrayLiteralExpression,d=>{let h=d.getElements().map(v=>TE(v,e,r)??u(Ff.unresolvable(v,e)));return u(Ff.array(h,d,e))}).when(Xd.Node.isIdentifier,d=>f0(d.getText()).with("undefined",()=>u(Ff.literal(void 0,d,e))).otherwise(()=>u(Xfr(d,e,r)))).when(Xd.Node.isTemplateHead,d=>u(Ff.literal(d.getLiteralText(),d,e))).when(Xd.Node.isTemplateExpression,d=>{let h=oTn(d,e,r);return u(Ff.literal(h,d,e))}).when(Xd.Node.isTaggedTemplateExpression,d=>u(TE(d.getTemplate(),e,r))).when(Xd.Node.isElementAccessExpression,d=>u(hCt(d,e,r))).when(Xd.Node.isPropertyAccessExpression,d=>u(BCt(d,[],e,r))).when(Xd.Node.isConditionalExpression,d=>{if(r.flags?.skipConditions)return u(Ff.unresolvable(d,e));let h=dx(d.getCondition()),v=(Xd.Node.isIdentifier(h)?TE(h,[],r):I9t(h,e,r))??Ff.unresolvable(h,e),S=H3e(v)?v:Ff.from(v,d,e);if(Ff.isEmptyInitializer(S))return;if(Ff.isUnresolvable(S)||Ff.isConditional(S)){let te=dx(d.getWhenTrue()),_e=dx(d.getWhenFalse());return u($En({whenTrueExpr:te,whenFalseExpr:_e,node:d,stack:e},r))}if(S.value){let te=dx(d.getWhenTrue()),_e=[...e],Ae=TE(te,_e,r);return u(Ae??Ff.unresolvable(te,e))}let k=dx(d.getWhenFalse()),L=[...e],z=TE(k,L,r);return u(z??Ff.unresolvable(d,e))}).when(Xd.Node.isCallExpression,d=>{let h=I9t(d,e,r);if(h)return u(Ff.from(h,d,e))}).when(Xd.Node.isBinaryExpression,d=>{let h=d.getOperatorToken().getKind();return f0(h).when(Rfr,()=>{let v=pTn(d,e,r)??I9t(d,e,r);if(v)return u(Ff.from(v,d,e))}).when(Mfr,v=>{let S=dx(d.getLeft()),k=dx(d.getRight()),L={whenTrueExpr:S,whenFalseExpr:k,node:d,stack:e,canReturnWhenTrue:jfr(v)};return u($En(L,r))}).when(Gfr,()=>u(Ff.literal(d.getText(),d,e))).otherwise(()=>{})}).otherwise(()=>{})}var aTn=i=>{if(i&&H3e(i)&&Ff.isLiteral(i)&&typeof i.value=="string")return i},Ufr=i=>{if(i&&H3e(i)&&Ff.isLiteral(i)&&typeof i.value=="number")return i},Wfr=(i,e,r)=>aTn(TE(i,e,r)),PX=(i,e,r)=>{y_.debug("prop-name",i.getKindName());let o=TE(i,e,r),u=aTn(o);if(u)return u;let d=Ufr(o);if(d)return d},$En=({whenTrueExpr:i,whenFalseExpr:e,node:r,stack:o,canReturnWhenTrue:u},d)=>{let h=TE(i,o,d),v=TE(e,o,d);if(y_.debug("cond",{before:!0,whenTrueValue:h,whenFalseValue:v,canReturnWhenTrue:u}),u&&h&&!Ff.isUnresolvable(h))return y_.debug("cond",{earlyReturn:!0,whenTrueValue:h}),h;if(y_.debug("cond",{after:!0,whenTrueValue:h,whenFalseValue:v}),Xd.Node.isBinaryExpression(r)&&r.getOperatorToken().getKind()===Xd.ts.SyntaxKind.AmpersandAmpersandToken&&h&&v&&Ff.isLiteral(h)&&h.value===!0)return v;if(!h&&!v)return;if(h&&!v)return h;if(!h&&v)return v;let S=h,k=v;return Ff.isLiteral(S)&&Ff.isLiteral(k)&&S.value===k.value?S:Ff.conditional(S,k,r,o)},Vfr=(i,e,r,o)=>{let u=[...r];if(y_.debug("find-prop",{propName:e,kind:i.getKindName()}),Xd.Node.isPropertyAssignment(i)){let d=i.getNameNode();if(Xd.Node.isIdentifier(d)&&d.getText()===e)return u.push(d),i;if(Xd.Node.isStringLiteral(d)&&d.getLiteralText()===e)return u.push(d),d.getLiteralText();if(Xd.Node.isComputedPropertyName(d)){let h=dx(d.getExpression()),v=PX(h,u,o);if(!v)return;if(String(v.value)===e)return u.push(d,h),i}}if(Xd.Node.isShorthandPropertyAssignment(i)){let d=i.getNameNode();if(Xd.Node.isIdentifier(d)&&d.getText()===e)return u.push(d),i}},O9t=(i,e,r,o)=>{let u=[...r],d=e.pop(),h=i.getProperty(d)??i.getProperties().find(v=>Vfr(v,d,u,o));if(y_.debug("get-prop",{propName:d,accessList:e,propertyKind:h?.getKindName(),initializerKind:i.getKindName()}),!!h){if(u.push(h),Xd.Node.isPropertyAssignment(h)){let v=h.getInitializer();if(!v)return;if(y_.debug("get-prop",{propAssignment:!0,propInitKind:v.getKindName()}),Xd.Node.isObjectLiteralExpression(v))return e.length>0?O9t(v,e,u,o):TE(v,u,o);let S=TE(v,u,o);if(S)return S}if(Xd.Node.isShorthandPropertyAssignment(h)){let v=h.getNameNode();if(y_.debug("get-prop",{shorthand:!0,accessList:e,propInit:v.getText()}),e.length>0)return wX(v,e,u,o);let S=TE(v,u,o);if(S)return S}}},oTn=(i,e,r)=>{let o=i.getHead(),u=i.getTemplateSpans(),d=Wfr(o,e,r);if(!d)return;let h=u.map(v=>{let S=v.getExpression(),k=PX(S,e,r);if(!k)return;let L=v.getLiteral();return k.value+L.getLiteralText()});if(h.every(KI))return d.value+h.join("")},lTn=(i,e,r,o)=>{let u=i.getParent();if(y_.debug("id-def",{parent:u?.getKindName()}),!u)return;let d=u.getParent();if(y_.debug("id-def",{grandParent:d?.getKindName()}),!!d){if(Xd.Node.isArrayBindingPattern(u)){let h=u.getChildIndex();if(Number.isNaN(h))return;if(Xd.Node.isVariableDeclaration(d)){let v=d.getInitializer();if(y_.debug("id-def",{grandParentInit:v?.getKindName()}),!v)return;let S=dx(v);if(!Xd.Node.isArrayLiteralExpression(S))return;let k=S.getElements()[h+1];if(y_.debug("id-def",{index:h,propName:r,elementKind:k?.getKindName()}),!k)return;let L=[...e,S,k],z=TE(k,L,o);if(!z)return;if(Ff.isObject(z)){let _e=z.value[r];return y_.debug("id-def",{propName:r,propValue:_e}),Ff.from(_e,k,L)}if(!Ff.isMap(z))return z;let te=z.value.get(r);return te?(y_.debug("id-def",{propName:r,propValue:te}),te):void 0}}Xd.Node.isObjectBindingPattern(u)}};function Hfr(i,e,r,o){let u=e.at(-1);if(y_.debug("maybe-prop-def-value",{propName:u,accessList:e,kind:i.getKindName()}),Xd.Node.isVariableDeclaration(i)){let d=i.getInitializer();if(y_.debug("maybe-prop-def-value",{kind:d?.getKindName(),propName:u}),!d){let k=i.getTypeNode();if(!k)return;if(Xd.Node.isTypeLiteral(k)){if(y_.debug("maybe-prop-def-value",{typeLiteral:!0}),e.length>0){let z=[...r];z.push(k);let te=e.pop(),_e=k.getProperty(te),Ae=_e?.getTypeNode();for(;_e&&e.length>0&&Ae&&Xd.Node.isTypeLiteral(Ae);)z.push(_e,Ae),te=e.pop(),_e=Ae.getProperty(te),Ae=_e?.getTypeNode();if(!Ae)return;let Ie=R9t(Ae,z,o);return y_.debug("maybe-prop-def-value",{propName:te,typeValue:!!Ie}),Ff.from(Ie,Ae,z)}let L=cTn(k,u,r,o);return r.push(k),Ff.from(L,k,r)}return}let h=dx(d);if(y_.debug("maybe-prop-def-value",{kind:h.getKindName(),propName:u}),Xd.Node.isObjectLiteralExpression(h)){let k=O9t(h,e,r,o);return k?(r.push(h),k):void 0}if(Xd.Node.isArrayLiteralExpression(h)){let k=Number(u);if(Number.isNaN(k))return;let L=h.getElements()[k];if(!L)return;r.push(h);let z=TE(L,r,o);if(z&&H3e(z)&&Ff.isLiteral(z))return z}let v=[...r,h],S=TE(h,v,o);if(S)return S}if(Xd.Node.isBindingElement(i)){let d=lTn(i,r,u,o);if(d)return d}}var wX=(i,e,r,o)=>{let u=gCt(i,r,o);if(y_.debug("maybePropIdentifierValue",{identifier:i.getText(),hasValueDeclaration:!!u}),!u)return Ff.unresolvable(i,r);let d=dx(u);y_.debug("maybePropIdentifierValue",{def:d.getKindName(),accessList:e});let h=Hfr(u,e,r,o);return h||Ff.unresolvable(i,r)},QCe=new WeakMap,cTn=(i,e,r,o)=>{if(QCe.has(i)){let h=QCe.get(i);if(y_.debug("cached",{typeLiteralNodeProp:!0,kind:i.getKindName()}),h===null)return;if(h?.has(e))return h.get(e)}let d=i.getMembers().find(h=>Xd.Node.isPropertySignature(h)&&h.getName()===e);if(Xd.Node.isPropertySignature(d)&&d.isReadonly()){let h=d.getTypeNode();if(!h){QCe.set(i,null);return}let v=R9t(h,r,o);if(y_.debug("type",{propName:e,hasPropValue:KI(v)}),KI(v))return QCe.has(i)||QCe.set(i,new Map),QCe.get(i).set(e,v),v}QCe.set(i,null)};function zfr(i){return y_.debug("literal",{name:i.getText(),kind:i.getKindName()}),Xd.Node.isStringLiteral(i)?i.getLiteralText():i.getText()}var gqe=new WeakMap,R9t=(i,e,r)=>{if(gqe.has(i))return y_.debug("cached",{typeNode:!0,kind:i.getKindName()}),gqe.get(i);if(Xd.Node.isLiteralTypeNode(i)){let o=i.getLiteral();if(Xd.Node.isStringLiteral(o)){let u=o.getLiteralText();return y_.debug("type-value",{result:u}),gqe.set(i,u),u}}if(Xd.Node.isTypeLiteral(i)){let o=i.getMembers();if(!o.some(u=>!Xd.Node.isPropertySignature(u)||!u.isReadonly())){let d=o.map(v=>{let S=v.getNameNode(),k=S.getText(),L=zfr(S);if(y_.debug("isTypeLiteral",{nameNodeKind:S.getKindName(),name:L}),!L)return;let z=cTn(i,k,e,r);return[L,z]}).filter(KI),h=Object.fromEntries(d);return gqe.set(i,h),h}}gqe.set(i,void 0)},Jfr=(i,e,r)=>{if(y_.debug("maybe-def-value",{kind:i.getKindName()}),Xd.Node.isShorthandPropertyAssignment(i)){let o=i.getNameNode();return wX(o,[o.getText()],e,r)}if(Xd.Node.isVariableDeclaration(i)){let o=i.getInitializer();if(y_.debug("maybe-def-value",{varDeclaration:!0,kind:o?.getKindName()}),!o){let v=i.getTypeNode();if(!v)return;if(y_.debug("maybe-def-value",{noInit:!0,kind:v.getKindName()}),Xd.Node.isTypeLiteral(v)){e.push(v);let S=R9t(v,e,r);if(KI(S))return Ff.from(S,i,e)}return Ff.unresolvable(i,e)}let u=dx(o),d=[...e,u],h=TE(u,d,r);if(h)return h}if(Xd.Node.isBindingElement(i)&&!i.getInitializer()){let u=i.getPropertyNameNode()??i.getNameNode(),d=u.getText(),h=[...e,u];y_.debug("maybe-def-value",{bindingElement:!0,propName:d});let v=lTn(i,h,d,r);return v||Ff.unresolvable(i,e)}},uTn=(i,e,r,o)=>{let u=e.getVariableDeclaration(i);if(y_.debug("getExportedVarDeclarationWithName",{varName:i,path:e.getFilePath(),hasVar:!!u}),u)return u;let d=Kfr(i,e,r,o);if(y_.debug("getExportedVarDeclarationWithName",{exportDeclaration:!!d}),!!d)return d},qfr=(i,e)=>{let r=e.getNamedExports();if(r.length===0)return!0;for(let o of r){let u=o.getNameNode().getText();if(y_.debug("export-declaration",{searching:i,exportedName:u}),u===i)return!0}},fTn=i=>{let e=i.getProject(),r=i.getModuleSpecifierValue();if(y_.debug("getModuleSpecifierSourceFile",{moduleName:r}),!r)return;let o=i.getSourceFile().getFilePath(),u=Xd.ts.resolveModuleName(r,o,e.getCompilerOptions(),e.getModuleResolutionHost());if(y_.debug("getModuleSpecifierSourceFile",u),!u.resolvedModule)return;let d=e.addSourceFileAtPath(u.resolvedModule.resolvedFileName);return y_.debug("getModuleSpecifierSourceFile",{found:!!d}),d};function Kfr(i,e,r,o){for(let u of e.getExportDeclarations()){let d=[u];if(y_.debug("resolveVarDeclarationFromExportWithName",{symbolName:i,exporDeclarationKind:u.getKindName()}),!qfr(i,u))continue;let h=fTn(u);if(!h)continue;d.push(h);let v=uTn(i,h,r,o);if(v)return r.push(...d.concat(v)),v}}var Xfr=(i,e,r)=>{let o=gCt(i,e,r);if(y_.debug("id-ref",{identifier:i.getText(),hasValueDeclaration:!!o}),!o)return Ff.unresolvable(i,e);let u=dx(o);y_.debug("id-ref",{def:u.getKindName()});let d=[...e],h=Jfr(u,d,r);return h||Ff.unresolvable(i,d)},pTn=(i,e,r)=>{let o=dx(i.getLeft()),u=dx(i.getRight()),d=PX(o,e,r),h=PX(u,e,r);if(!(!d||!h)&&(y_.debug("tryComputingPlusTokenBinaryExpressionToString",{leftValue:d,rightValue:h}),KI(d.value)&&KI(h.value)))return Ff.literal(String(d.value)+String(h.value),i,e)},hCt=(i,e,r)=>{let o=dx(i.getExpression()),u=i.getArgumentExpression();if(!u)return;let d=dx(u),h=[...e,o,d],v=PX(d,h,r);if(Xd.Node.isIdentifier(o)&&v)return KI(v.value)?wX(o,[v.value.toString()],h,r):void 0;if(Xd.Node.isBinaryExpression(d)){if(d.getOperatorToken().getKind()!==Xd.ts.SyntaxKind.PlusToken)return;let S=pTn(d,h,r)??PX(d,h,r);if(S&&Xd.Node.isIdentifier(o))return KI(S.value)?wX(o,[S.value.toString()],h,r):void 0}if(Xd.Node.isTemplateExpression(d)){let S=oTn(d,h,r);if(S&&Xd.Node.isIdentifier(o))return wX(o,[S],h,r)}if(Xd.Node.isObjectLiteralExpression(o)&&v)return KI(v.value)?O9t(o,[v.value.toString()],h,r):void 0;if(Xd.Node.isPropertyAccessExpression(d))return BCt(d,[],h,r);if(Xd.Node.isPropertyAccessExpression(o)&&v&&KI(v.value)){let S=BCt(o,[],h,r);if(!S)return Ff.unresolvable(o,h);let k=v.value.toString();if(y_.debug("PropertyAccessExpression",{propRefValue:S,propName:k}),Ff.isObject(S)){let L=S.value[k];return Ff.from(L,d,h)}if(Ff.isMap(S)){let L=S.value.get(k);return Ff.from(L,d,h)}if(Ff.isArray(S)){let L=S.value[Number(k)];return Ff.from(L,d,h)}return Ff.unresolvable(o,h)}if(Xd.Node.isIdentifier(o)&&Xd.Node.isElementAccessExpression(d)){let S=hCt(d,h,r);if(y_.debug("element:access",{isArgElementAccessExpression:!0,propName:S}),typeof S=="string"&&KI(S))return wX(o,[S],h,r)}if(Xd.Node.isElementAccessExpression(o)&&v&&KI(v.value)){let S=hCt(o,h,r);if(y_.debug("element:access",{isElementAccessExpression:!0,identifier:S,argValue:v}),nTn(S)){let k=v.value.toString();if(Ff.isMap(S)){let L=S.value.get(k);return y_.debug("isMap",{isElementAccessExpression:!0,maybeValue:L}),L}if(Ff.isObject(S)){let L=S.value[k];return y_.debug("isObject",{isElementAccessExpression:!0,maybeLiteralValue:L}),L?Ff.from(L,i,h):void 0}}}if(Xd.Node.isArrayLiteralExpression(o)&&v)return Yfr(o,Number(v.value),h,r);if(Xd.Node.isConditionalExpression(d)){if(r.flags?.skipConditions)return Ff.unresolvable(d,h);let S=PX(d,h,r);if(y_.debug("isConditional",{isConditionalExpression:!0,propName:S}),KI(S)&&KI(S.value)&&Xd.Node.isIdentifier(o))return wX(o,[S.value.toString()],h,r);let k=dx(d.getWhenTrue()),L=dx(d.getWhenFalse()),z=PX(k,h,r),te=PX(L,h,r);if(Xd.Node.isIdentifier(o)){let _e=z&&KI(z.value)?wX(o,[z.value.toString()],h,r):void 0,Ae=te&&KI(te.value)?wX(o,[te.value.toString()],h,r):void 0;return!_e&&!Ae?void 0:_e&&!Ae?_e:!_e&&Ae?Ae:Ff.conditional(_e,Ae,d,h)}}},Yfr=(i,e,r,o)=>{let u=i.getElements()[e];if(!u)return;let d=TE(u,r,o);if(y_.debug("array:element",{arrayKind:i.getKindName(),elementKind:u.getKindName(),value:d}),KI(d))return d},BCt=(i,e,r,o)=>{let u=i.getName(),d=dx(i.getExpression()),h=e.concat(u);if(y_.debug("prop-access-value",{propName:u,accessList:h,elementAccessedKind:d.getKindName()}),r.push(d),Xd.Node.isIdentifier(d))return wX(d,h,r,o);if(Xd.Node.isPropertyAccessExpression(d)){let v=BCt(d,h,r,o);return y_.debug("prop-access-value",{propName:u,propValue:v}),v}if(Xd.Node.isElementAccessExpression(d)){let v=hCt(d,r,o);if(!v)return;if(y_.debug("prop-access-value",{propName:u,leftElementAccessed:v}),Ff.isObject(v)){let S=v.value[u];return Ff.from(S,i,r)}if(Ff.isMap(v)){let S=v.value.get(u);return Ff.from(S,i,r)}}},ZEn=()=>!0,yCt=(i,e,r=ZEn,o=ZEn)=>{let u=i.getArguments(),d=i.getExpression().getText();return u.length===0?Ff.array([],i,[]):Ff.array(u.map((h,v)=>{let S=dx(h),k=[i,S];return f0(S).when(L=>o({fnNode:i,fnName:d,argNode:L,index:v}),L=>TE(L,k,e,r)??Ff.unresolvable(L,k)).otherwise(()=>Ff.unresolvable(S,k))}),i,[])},CCt=(i,e)=>{let r=i.getInitializer(),o=[i,r];return f0(r).with(EE.nullish,()=>{let u=i.getNameNode();return Ff.emptyInitializer(u,o)}).when(N9t.Node.isStringLiteral,u=>{let d=u.getLiteralText();return Ff.literal(rTn(d),u,o)}).when(N9t.Node.isJsxExpression,u=>{let d=u.getExpression();if(!d)return;let h=dx(d);if(!h)return;o.push(h);let v=TE(h,o,e);if(v)return v}).otherwise(()=>{})},dTn=(i,e,r)=>{let o=dx(i.getExpression());return TE(o,[],e,r)},eTn=(i,e)=>i?H3e(i)?Ff.isUnresolvable(i)||Ff.isConditional(i)?new Map:Ff.isMap(i)?i.value:new Map(Object.entries(i.value).map(([r,o])=>{let u=Ff.from(o,i.getNode()??e,i.getStack()??[]);return[r,u||null]}).filter(([,r])=>r!==null)):new Map(Object.entries(i)):new Map,Qfr=E6.or(IX.Node.isImportDeclaration,IX.Node.isExportDeclaration),_Tn=({ast:i,...e})=>{let{components:r,functions:o,taggedTemplates:u}=e,d=new Map,h=new Map,v,S,k,L,z;return i.forEachDescendant((te,_e)=>{if(Qfr(te)){_e.skip();return}if(r){if(IX.Node.isJsxOpeningElement(te)||IX.Node.isJsxSelfClosingElement(te)){if(v=te,S=Cfr(v),k=S.includes("."),!r.matchTag({tagNode:v,tagName:S,isFactory:k})){v=void 0;return}d.has(S)||d.set(S,{kind:"component",nodesByProp:new Map,queryList:[]}),L=d.get(S).nodesByProp,h.has(v)||h.set(v,{name:S,props:new Map,conditionals:[]}),z=h.get(v)}if(IX.Node.isJsxSpreadAttribute(te)){if(!v||!z)return;let Ae=({propName:ze,propNode:Pt})=>r.matchProp({tagNode:v,tagName:S,propName:ze,propNode:Pt}),Ie=dTn(te,e,fX(Ae));if(!Ie)return;let Xe=ze=>{let Pt=eTn(ze,te),Zt=Ff.isMap(ze),mn=Ff.map(Pt,te,[v]);Zt&&ze.spreadConditions?.length&&(mn.spreadConditions=ze.spreadConditions),Pt.forEach((zn,wn)=>{(Zt||Ae({propName:wn,propNode:te}))&&(z.props.set(wn,zn),L.set(wn,(L.get(wn)??[]).concat(zn)))})};(ze=>f0(ze).when(Ff.isConditional,Pt=>{z.conditionals.push(Pt)}).when(E6.or(Ff.isObject,Ff.isMap),Pt=>Xe(Pt)).otherwise(F_t))(Ie);return}if(IX.Node.isJsxAttribute(te)){if(!v||!z)return;let Ae=te.getNameNode().getText();if(!r.matchProp({tagNode:v,tagName:S,propName:Ae,propNode:te}))return;vA(CCt(te,e),mJe.fromNullable,mJe.tap(Ie=>{z.props.set(Ae,Ie),L.set(Ae,(L.get(Ae)??[]).concat(Ie))}))}}if(o&&IX.Node.isCallExpression(te)){let Ae=te.getExpression().getText();if(!o.matchFn({fnNode:te,fnName:Ae}))return;let Ie=({propName:mn,propNode:zn})=>o.matchProp({fnNode:te,fnName:Ae,propName:mn,propNode:zn});d.has(Ae)||d.set(Ae,{kind:"function",nodesByProp:new Map,queryList:[]});let Xe=d.get(Ae),Ve=Xe.nodesByProp,ze=yCt(te,e,Ie,o.matchArg),Pt=vA(ze.value,P9.map(mn=>f0(mn).when(E6.or(Ff.isObject,Ff.isMap),zn=>{let wn=eTn(zn,te),Cn=Ff.isMap(zn);wn.forEach((br,cn)=>{(Cn||Ie({propName:cn,propNode:te}))&&Ve.set(cn,(Ve.get(cn)??[]).concat(br))});let Qn=Ff.map(wn,te,zn.getStack());return Ff.isMap(zn)&&zn.spreadConditions?.length&&(Qn.spreadConditions=zn.spreadConditions),Qn}).otherwise(zn=>zn))),Zt={kind:"call-expression",name:Ae,box:Ff.array(Pt,te,[])};Xe.queryList.push(Zt)}if(u&&IX.Node.isTaggedTemplateExpression(te)){let Ae=te.getTag(),Ie=IX.Node.isCallExpression(Ae)?Ae.getExpression().getText():Ae.getText();if(!u.matchTaggedTemplate({taggedTemplateNode:te,fnName:Ie}))return;d.has(Ie)||d.set(Ie,{kind:"function",nodesByProp:new Map,queryList:[]});let Xe=d.get(Ie),Ve={kind:"tagged-template",name:Ie,box:TE(te,[],e)};Xe.queryList.push(Ve)}}),h.forEach((te,_e)=>{let Ae=h.get(_e);if(!Ae)return;let Ie=fX({name:te.name,box:Ff.map(Ae.props,_e,[])});Ae.conditionals?.length&&(Ie.box.spreadConditions=Ae.conditionals);let Xe=te.name;d.get(Xe).queryList.push(Ie)}),d},$fr=E6.or(Ff.isObject,Ff.isMap),mTn=(i,e)=>{let r=i.getTagNameNode().getText(),o=i.getAttributes(),u=new Map;return o.forEach(d=>{if(L9t.Node.isJsxAttribute(d)){let h=d.getNameNode(),v=CCt(d,e);if(!v)return;u.set(h.getText(),v);return}if(L9t.Node.isJsxSpreadAttribute(d)){let h=dTn(d,e,()=>!0);if(!$fr(h))return;Ff.isMap(h)&&h.value.forEach((v,S)=>{u.set(S,v)}),Ff.isObject(h)&&Object.entries(h.value).forEach(([v,S])=>{u.set(v,Ff.literal(S,i,[]))})}}),{name:r,props:u}},mCt=(i,e)=>{if(!i.length)return e;let r={};return i.reduce((o,u,d)=>{let h=d===i.length-1;return o[u]=h?e:{},h?r:o[u]},r),r},sue=(i,e)=>f0(i).with(EE.nullish,()=>{}).when(Ff.isConditional,r=>{let o=e.path,u=sue(r.whenTrue,Object.assign({},e,{path:o,parent:r})),d=sue(r.whenFalse,Object.assign({},e,{path:o,parent:r}));u&&e.conditions.push(mCt(o,u)),d&&e.conditions.push(mCt(o,d))}).when(E6.or(Ff.isLiteral,Ff.isObject),r=>r.value).when(Ff.isEmptyInitializer,()=>!0).when(Ff.isMap,r=>{if(r.spreadConditions){let o=e.path;r.spreadConditions.forEach(u=>{let d=sue(u.whenTrue,Object.assign({},e,{path:o,parent:r})),h=sue(u.whenFalse,Object.assign({},e,{path:o,parent:r}));d&&e.spreadConditions.push(mCt(o,d)),h&&e.spreadConditions.push(mCt(o,h))})}return vA(P9.from(r.value.entries()),P9.map(([o,u])=>[o,sue(u,Object.assign({},e,{path:e.path.concat(o),parent:r}))]),P9.filter(([,o])=>KI(o)),Object.fromEntries)}).when(Ff.isArray,r=>{let o=0;return vA(r.value,P9.map(u=>sue(u,Object.assign({},e,{path:e.path.concat(String(o++)),parent:r}))),P9.filter(KI),u=>u.flat())}).otherwise(()=>{}),Zfr=new WeakMap,epr=i=>({value:i,has:e=>i.has(e),get:e=>i.get(e),set:(e,r)=>i.set(e,r)}),NX=(i,e)=>{let r={cache:e?.cache??Zfr,...e,path:[],parent:void 0,conditions:[],spreadConditions:[]},o=epr(r.cache);return{raw:f0(i).with(EE.nullish,()=>{}).when(o.has,o.get).when(Array.isArray,d=>{let h=vA(d,P9.map(v=>sue(v,r)),P9.filter(KI),P9.head);return o.set(d,h),h}).otherwise(d=>{let h=sue(d,r);return o.set(d,h),h})??{},conditions:r.conditions,spreadConditions:r.spreadConditions}};oe();oe();var z3e=require("path"),vCt=require("fs");function hTn(i,e){let r=(0,z3e.resolve)(".",i),o;for((0,vCt.statSync)(r).isDirectory()||(r=(0,z3e.dirname)(r));;){if(o=e(r,(0,vCt.readdirSync)(r)),o)return(0,z3e.resolve)(r,o);if(r=(0,z3e.dirname)(o=r),o===r)break}}var TTn=require("path"),xqe=Bm(require("fs"),1),J3e=Bm(require("path"),1);oe();var BTn=class extends Error{code;hint;constructor(i,e,r){super(e),this.code=`ERR_PANDA_${i}`,this.hint=r?.hint}};var bCt=class extends BTn{constructor(){let i="Cannot find config file: panda.config.ts or panda.config.js/cjs/mjs. Did you forget to run `panda init`?";super("NO_CONFIG",i)}},gTn=class extends BTn{constructor(i){super("CONFIG_ERROR",i)}};oe();var yTn=require("esbuild"),CTn=Bm(require("path"),1),SCt=Bm(require("fs"),1),LX=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+i+'" is not supported')});function tpr(i){let e=SCt.default.realpathSync(i);delete LX.cache[i];let r=LX(e);return{mod:r.default??r,dependencies:[e],code:SCt.default.readFileSync(e,"utf-8")}}async function npr(i,e){let r=await(0,yTn.build)({absWorkingDir:e,entryPoints:[i],outfile:"out.js",write:!1,platform:"node",bundle:!0,format:"cjs",sourcemap:!1,metafile:!0,mainFields:["module","main"]}),{text:o}=r.outputFiles[0];return{code:o,dependencies:r.metafile?Object.keys(r.metafile.inputs):[]}}function rpr(i,e){let r=CTn.default.extname(i),o=SCt.default.realpathSync(i),u=LX.extensions[r];LX.extensions[r]=(v,S)=>{S===o?v._compile(e,S):u(v,S)},delete LX.cache[LX.resolve(i)];let d=LX(i),h=d.default??d;return LX.extensions[r]=u,h}async function vTn(i,e={}){let{cwd:r=process.cwd()}=e,o=LX.resolve(i,{paths:[r]});try{return tpr(o)}catch{let u=await npr(o,r);try{u.mod=await rpr(o,u.code)}catch{u.mod=LX("node-eval")(u.code).default}return u}}oe();oe();function vqe(i){return Object.prototype.toString.call(i).slice(8,-1)}function ipr(i){return vqe(i)==="Undefined"}function spr(i){return vqe(i)==="Null"}function bqe(i){if(vqe(i)!=="Object")return!1;let e=Object.getPrototypeOf(i);return e.constructor===Object&&e===Object.prototype}function M9t(i){return vqe(i)==="Array"}function G9t(i){return vqe(i)==="Symbol"}var agi=apr(spr,ipr);function apr(i,e,r,o,u){return d=>i(d)||e(d)||!!r&&r(d)||!!o&&o(d)||!!u&&u(d)}function opr(i,e){return M9t(i)&&M9t(e)?i.concat(e):e}function bTn(i,e,r,o){let u={}.propertyIsEnumerable.call(o,e)?"enumerable":"nonenumerable";u==="enumerable"&&(i[e]=r),u==="nonenumerable"&&Object.defineProperty(i,e,{value:r,enumerable:!1,writable:!0,configurable:!0})}function STn(i,e,r){if(!bqe(e))return e;let o={};if(bqe(i)){let v=Object.getOwnPropertyNames(i),S=Object.getOwnPropertySymbols(i);o=[...v,...S].reduce((k,L)=>{let z=i[L];return(!G9t(L)&&!Object.getOwnPropertyNames(e).includes(L)||G9t(L)&&!Object.getOwnPropertySymbols(e).includes(L))&&bTn(k,L,z,i),k},{})}let u=Object.getOwnPropertyNames(e),d=Object.getOwnPropertySymbols(e);return[...u,...d].reduce((v,S)=>{let k=e[S],L=bqe(i)?i[S]:void 0;L!==void 0&&bqe(k)&&(k=STn(L,k,r));let z=r?r(L,k,S):k;return bTn(v,S,z,e),v},o)}function xTn(i,...e){return e.reduce((r,o)=>STn(r,o,opr),i)}var W9t=require("@pandacss/preset-base"),xCt=require("@pandacss/preset-panda"),lpr=[".ts",".js",".mjs",".cjs"],cpr=new RegExp(`panda.config(${lpr.join("|")})$`),upr=i=>cpr.test(i);function fpr({cwd:i,file:e}){return e?(0,TTn.resolve)(i,e):hTn(i,(r,o)=>o.find(upr))}var ppr=(i,e)=>{for(let r of i){let o=e.match(r.pattern);if(o)for(let u of r.paths){let d=0;return u.replace(/\*/g,()=>{let v=Math.min(++d,o.length-1);return o[v]})}}},dpr=[".js",".cjs",".mjs"],_pr=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],mpr=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];function hpr(i,e){for(let r of e){let o=`${i}${r}`;if(xqe.default.existsSync(o)&&xqe.default.statSync(o).isFile())return o}for(let r of e){let o=`${i}/index${r}`;if(xqe.default.existsSync(o))return o}return null}var Bpr=/import[\s\S]*?['"](.{3,}?)['"]/gi,gpr=/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,ypr=/require\(['"`](.+)['"`]\)/gi,Cpr=/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi;function j9t(i,e){let{filename:r,seen:o}=i,u=hpr(J3e.default.resolve(i.cwd,r),dpr.includes(i.ext)?_pr:mpr);if(u===null||(e&&i.foundModuleAliases.set(e,u),o.has(u)))return;o.add(u);let d=xqe.default.readFileSync(u,"utf-8"),h=[...d.matchAll(Bpr),...d.matchAll(gpr),...d.matchAll(ypr),...d.matchAll(Cpr)];if(!h.length)return;let v={cwd:J3e.default.dirname(u),ext:J3e.default.extname(u),seen:o,baseUrl:i.baseUrl,pathMappings:i.pathMappings,foundModuleAliases:i.foundModuleAliases};h.forEach(S=>{let k=S[1];if(k[0]==="."){j9t(Object.assign({},v,{filename:k}));return}if(!i.pathMappings)return;let L=ppr(i.pathMappings,k);L&&j9t(Object.assign({},v,{filename:L}),k)})}function DTn(i,e={pathMappings:[]}){if(i===null)return{deps:new Set,aliases:new Map};let r=new Map,o=new Set;return o.add(i),j9t({filename:i,ext:J3e.default.extname(i),cwd:J3e.default.dirname(i),seen:o,baseUrl:e.baseUrl,pathMappings:e.pathMappings??[],foundModuleAliases:r}),{deps:o,aliases:r}}async function ATn(i,e){let{mod:r,dependencies:o}=await vTn(i,{cwd:e,interopDefault:!0});return{config:r?.default??r,dependencies:o}}var ETn=i=>Object.prototype.toString.call(i)==="[object Object]";function U9t(i,...e){let r=e.pop();for(let o of e)for(let u in o){let d=r(i[u],o[u]);d===void 0?ETn(i[u])&&ETn(o[u])?i[u]=U9t({},i[u],o[u],r):i[u]=o[u]:i[u]=d}return i}function kTn(i,...e){for(let r of e)for(let o in r)i?.hasOwnProperty?.(o)||(i[o]=r[o]);return i}function vpr(i){return i.reduce((e,{extend:r})=>r?U9t(e,r,(o,u)=>u===void 0?o??[]:o===void 0?[u]:Array.isArray(o)?[u,...o]:[u,o]):e,{})}function bpr(i){return{...i.reduce((e,r)=>kTn(e,r),{}),extend:vpr(i)}}function Sqe(i){let{extend:e=[],...r}=bpr(i);return U9t(r,e,(o,u)=>xTn({},o,...u))}var Spr=i=>typeof i=="object"&&Object.keys(i).length===0,xpr=i=>Object.keys(i).reduce((e,r)=>(i[r]!==void 0&&!Spr(i[r])&&(e[r]=i[r]),e),{});function Epr(i){let e=kTn({conditions:Sqe(i.map(r=>r.conditions??{})),theme:Sqe(i.map(r=>r.theme??{})),patterns:Sqe(i.map(r=>r.patterns??{})),utilities:Sqe(i.map(r=>r.utilities??{})),globalCss:Sqe(i.map(r=>r.globalCss??{}))},...i);return xpr(e)}async function Tpr(i,e){let r=i.presets??[],o=[i];for(;r.length>0;){let u=await r.shift();if(typeof u=="string"){let d=await ATn(u,e);o.push(await d.config),r.unshift(...await d.config.presets??[])}else o.push(u),r.unshift(...u.presets??[])}return Epr(o)}var wTn={"@pandacss/preset-base":W9t.preset,"@pandacss/preset-panda":xCt.preset,"@pandacss/dev/presets":xCt.preset},Dpr=Object.keys(wTn),Apr=i=>Dpr.includes(i);async function ITn(i){let e=await wpr(i);return kpr(e,i.cwd)}async function kpr(i,e){let r=new Set;i.config.eject||r.add(W9t.preset),i.config.presets?i.config.presets.forEach(u=>{typeof u=="string"&&Apr(u)?r.add(wTn[u]):r.add(u)}):i.config.eject||r.add(xCt.preset),i.config.presets=Array.from(r);let o=await Tpr(i.config,e);return{...i,config:o}}async function wpr(i){let{cwd:e,file:r}=i,o=fpr({cwd:e,file:r});if(!o)throw new bCt;y_.debug("config:path",o);let u=await ATn(o,e);if(typeof u.config!="object")throw new gTn("\u{1F4A5} Config must export or return an object.");return{...u,config:u.config,path:o}}var xOn=require("fs"),IHt=Bm(aGt(),1),EOn=require("path");oe();var Q3e=require("path"),oGt=require("fs");var kAn=i=>i===(0,Q3e.dirname)(i),R_r=Symbol("stop"),M_r=i=>i===R_r;var OCt=(i,e=process.cwd())=>{if(typeof i=="function"&&i(e)instanceof Promise)throw new Error("Async matcher can not be used in 'lookItUpSync'");if(typeof i=="string"){let o=(0,Q3e.join)(e,i);return(0,oGt.existsSync)(o)?o:kAn(e)?null:OCt(i,(0,Q3e.dirname)(e))}let r=i(e);return M_r(r)?null:r??(kAn(e)?null:OCt(i,(0,Q3e.dirname)(e)))};oe();var $3e=Bm(require("path"),1),RAn=require("fs"),MAn=Bm(require("path"),1);var nz=Bm(require("path"),1),jAn=require("fs"),pGt=require("module"),Iw=Bm(require("path"),1),UAn=require("fs");async function wAn(i,e){let r=$3e.default.dirname($3e.default.resolve(i)),o=e?.root?$3e.default.resolve(e.root):null;for(;r;){let u=await G_r(r,e);if(u)return u;{if(o===r)break;let d=$3e.default.dirname(r);if(d===r)break;r=d}}throw new Error(`no tsconfig file found for ${i}`)}async function G_r(i,e){let r=$3e.default.join(i,"tsconfig.json");if(e?.tsConfigPaths)return e.tsConfigPaths.has(r)?r:void 0;try{let o=await RAn.promises.stat(r);if(o.isFile()||o.isFIFO())return r}catch(o){if(o.code!=="ENOENT")throw o}}var Fyi=MAn.default.sep;function j_r(i){let e=U_r(W_r(V_r(i)));return e.trim()===""?"{}":e}function U_r(i){let e=!1,r=0,o="",u=null;for(let d=0;d<i.length;d++){let h=i[d];if(h==='"'&&(GAn(i,d)||(e=!e)),e){u=null;continue}if(h===","){u=d;continue}u&&(h==="}"||h==="]"?(o+=i.slice(r,u)+" ",r=u+1,u=null):h.match(/\s/)||(u=null))}return o+i.substring(r)}function GAn(i,e){let r=e-1,o=0;for(;i[r]==="\\";)r-=1,o+=1;return!!(o%2)}function RCt(i,e,r){return i.slice(e,r).replace(/\S/g," ")}var lGt=Symbol("singleComment"),IAn=Symbol("multiComment");function W_r(i){let e=!1,r=!1,o=0,u="";for(let d=0;d<i.length;d++){let h=i[d],v=i[d+1];!r&&h==='"'&&(GAn(i,d)||(e=!e)),!e&&(!r&&h+v==="//"?(u+=i.slice(o,d),o=d,r=lGt,d++):r===lGt&&h+v===`\r
21120
21120
  `?(d++,r=!1,u+=RCt(i,o,d),o=d):r===lGt&&h===`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pandacss/language-server",
3
3
  "displayName": "Panda CSS",
4
4
  "description": "🐼 The official Panda language server",
5
- "version": "0.0.0-dev-20230630222130",
5
+ "version": "0.0.0-dev-20230630223330",
6
6
  "main": "dist/index.js",
7
7
  "repository": {
8
8
  "url": "https://github.com/chakra-ui/panda",
@@ -32,14 +32,14 @@
32
32
  "vscode-languageserver": "^8.1.0",
33
33
  "vscode-languageserver-textdocument": "^1.0.8",
34
34
  "vscode-uri": "^3.0.7",
35
- "@pandacss/core": "0.0.0-dev-20230630222130",
36
- "@pandacss/extension-shared": "0.0.0-dev-20230630222130",
37
- "@pandacss/extractor": "0.0.0-dev-20230630222130",
38
- "@pandacss/node": "0.0.0-dev-20230630222130",
39
- "@pandacss/parser": "0.0.0-dev-20230630222130",
40
- "@pandacss/shared": "0.0.0-dev-20230630222130",
41
- "@pandacss/token-dictionary": "0.0.0-dev-20230630222130",
42
- "@pandacss/types": "0.0.0-dev-20230630222130"
35
+ "@pandacss/core": "0.0.0-dev-20230630223330",
36
+ "@pandacss/extension-shared": "0.0.0-dev-20230630223330",
37
+ "@pandacss/extractor": "0.0.0-dev-20230630223330",
38
+ "@pandacss/node": "0.0.0-dev-20230630223330",
39
+ "@pandacss/parser": "0.0.0-dev-20230630223330",
40
+ "@pandacss/shared": "0.0.0-dev-20230630223330",
41
+ "@pandacss/token-dictionary": "0.0.0-dev-20230630223330",
42
+ "@pandacss/types": "0.0.0-dev-20230630223330"
43
43
  },
44
44
  "dependencies": {
45
45
  "fast-glob": "^3.2.12"