@pandacss/language-server 0.0.0-dev-20230918131304 → 0.0.0-dev-20230918133037
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -30729,7 +30729,7 @@ ${r.type!=="rule"&&l>0?`
|
|
|
30729
30729
|
|
|
30730
30730
|
${p}`),r?Pet(p,{minify:n}):p}catch(i){throw i instanceof l$t&&(N1.error("sheet",i.message),i.plugin&&N1.error("sheet",`By plugin: ${i.plugin}:`),i.source&&(N1.error("sheet",`Line ${i.line}:${i.column}, in:`),N1.error("sheet",i.source))),i}};append=(...r)=>{this.context.root.append(...r)};prepend=(...r)=>{this.context.root.prepend(...r)}},aSn=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="";strictTokens=!1;constructor(r){let{tokens:n,config:i={},separator:l,prefix:p,shorthands:m,strictTokens:g}=r;this.tokens=n,this.config=i,l&&(this.separator=l),p&&(this.prefix=p),g&&(this.strictTokens=g),m&&this.assignShorthands(),this.assignColorPaletteProperty(),this.assignProperties(),this.assignPropertyTypes()}register=(r,n)=>{this.assignProperty(r,n),this.assignPropertyType(r,n),this.config[r]=n};assignShorthands=()=>{for(let[r,n]of Object.entries(this.config)){let{shorthand:i}=this.normalize(n)??{};if(!i)continue;(Array.isArray(i)?i:[i]).forEach(p=>{this.shorthands.set(p,r)})}};assignColorPaletteProperty=()=>{let r=this.tokens.colorPalettes;this.config.colorPalette={values:Object.keys(r),transform(n){return r[n]}}};resolveShorthand=r=>this.shorthands.get(r)??r;get hasShorthand(){return this.shorthands.size>0}get isEmpty(){return Object.keys(this.config).length===0}entries=()=>Object.entries(this.config).filter(([,n])=>!!n?.className).map(([n,i])=>[n,i.className]);getPropKey=(r,n)=>`(${r} = ${n})`;hash=(r,n)=>`${r}${this.separator}${n}`;getPropertyValues=(r,n)=>{let{values:i}=r,l=p=>{let m=n?.(p);return m?{[m]:m}:void 0};return K7(i)?l?.(i)??this.tokens.getValue(i)??{}:Array.isArray(i)?i.reduce((p,m)=>(p[m]=m,p),{}):P4t(i)?i(n?l:this.getToken.bind(this)):i};getToken=r=>this.tokens.get(r);normalize=r=>r;assignProperty=(r,n)=>{let i=this.normalize(n);if(this.setTransform(r,i?.transform),!i)return;this.configs.set(r,i);let l=this.getPropertyValues(i);if(l)for(let[p,m]of Object.entries(l)){let g=this.getPropKey(r,p);this.setStyles(r,m,p,g),this.setClassName(r,p)}};assignProperties=()=>{for(let[r,n]of Object.entries(this.config))n&&this.assignProperty(r,n)};getPropertyKeys=r=>{let n=this.propertyKeys.get(r);return n?Array.from(n):[]};assignPropertyType=(r,n)=>{let i=this.normalize(n);if(!i)return;let l=this.getPropertyValues(i,m=>`type:Tokens["${m}"]`);if(typeof l=="object"&&l.type){this.types.set(r,new Set([`type:${l.type}`]));return}if(l){let m=new Set(Object.keys(l));this.types.set(r,m),this.propertyKeys.set(r,m)}let p=this.types.get(r)??new Set;!this.strictTokens&&i.property&&this.types.set(r,p.add(`CssProperties["${i.property}"]`))};assignPropertyTypes=()=>{for(let[r,n]of Object.entries(this.config))n&&this.assignPropertyType(r,n)};getTypes=()=>{let r=new Map;for(let[n,i]of this.types.entries()){if(i.size===0){r.set(n,["string"]);continue}let l=Array.from(i).map(p=>p.startsWith("CssProperties")?p:p.startsWith("type:")?p.replace("type:",""):JSON.stringify(p));r.set(n,l)}return r};defaultTransform=zb((r,n)=>{if(n.startsWith("--")){let l=this.tokens.getTokenVar(r);r=typeof l=="string"?l:r}return{[n]:r}});setTransform=(r,n)=>{let l=n??(p=>this.defaultTransform(p,r));return this.transforms.set(r,l),this};setStyles=(r,n,i,l)=>{l=l??this.getPropKey(r,n);let p=E=>this.defaultTransform(E,r),m=this.transforms.get(r)??p,g=Object.assign(this.getToken.bind(this),{raw:E=>this.tokens.getByName(E)}),b=m(n,{token:g,raw:i});return this.styles.set(l,b??{}),this};formatClassName=r=>[this.prefix,r].filter(Boolean).join("-");setClassName=(r,n)=>{let i=this.getPropKey(r,n),l=this.configs.get(r),p;return!l||!l.className?p=this.hash(dCe(r),n):p=this.hash(l.className,n),this.classNames.set(i,p),this};isProperty=r=>this.configs.has(r);getOrCreateClassName=(r,n)=>((l,p)=>{let m=this.getPropKey(l,p);return this.classNames.has(m)||(this.isProperty(l)&&this.customValues.set(l,p),this.setClassName(l,p)),this.classNames.get(m)})(r,n);getOrCreateStyle=(r,n)=>{let i=this.getPropKey(r,n);return this.styles.get(i)??this.setStyles(r,n,n,i),this.styles.get(i)};transform=(r,n)=>{if(n==null)return{className:"",styles:{}};let i=this.resolveShorthand(r);return cre({layer:this.configs.get(i)?.layer,className:this.getOrCreateClassName(i,Jze(n)),styles:this.getOrCreateStyle(i,n)})};keys=()=>{let r=Array.from(this.shorthands.keys()),n=Object.keys(this.config);return[...r,...n]};getPropShorthandsMap=()=>{let r=new Map;return this.shorthands.forEach((n,i)=>{let l=r.get(n)??[];l.push(i),r.set(n,l)}),r};getPropShorthands=r=>this.getPropShorthandsMap().get(r)??[]};re();re();var uxe=_d(j8(),1);var jp=_d(j8(),1);re();var dfr=_d(xWt(),1),V8=_d(TTn(),1);re();var l5=_d(require("path"),1),kTn=_d(require("os"),1),Jpr=/(^\/\w:\/)|(^\/\w:\\)/,ATn=l5.default.parse(process.cwd()).root,wTn=/^\w:/,qpr=kTn.default.platform();function Kpr(r){return/\\/.test(r)||wTn.test(r)}function ITn(r){let n=/^\\\\\?\\/.test(r),i=/[^\u0000-\u0080]+/.test(r);return n||i?r:r.replace(/\\/g,"/")}function Xpr(r){let n=typeof r=="string"?r:r.pathname;return n.startsWith("file:")&&(n.startsWith("file://")&&(n=n.slice(7)),Jpr.test(n)&&(n=n.slice(1))),EWt(n)}function PTn(r){return[...r].some(n=>typeof n=="string"&&Kpr(n))?l5.default.win32:l5.default}function zre(r,n){return ITn(PTn(n)[r](...n))}function NTn(r,n){return l5.default.posix[r](...[...n].map(i=>typeof i=="string"?ITn(i):i))}function Ypr(r){return NTn("parse",arguments)}function Qpr(r){return NTn("extname",arguments)}function $pr(r){return PTn(arguments).isAbsolute(r)}function Zpr(...r){return zre("join",arguments)}function EWt(r){let n=zre("normalize",arguments);return r.startsWith("./")&&!n.startsWith("./")?"./"+n:n}function efr(r,n){return zre("relative",arguments)}function tfr(...r){return zre("resolve",arguments)}function nfr(r){return zre("dirname",arguments)}function rfr(r,n){return zre("basename",arguments)}function ifr(r){return zre("format",arguments)}function ofr(r){return zre("toNamespacedPath",arguments)}function sfr(r){return qpr!=="win32"||wTn.test(r)||r.startsWith(ATn)||!l5.default.win32.isAbsolute(l5.default.win32.normalize(r))?r:l5.default.win32.join(ATn,r)}var DWt={sep:l5.default.posix.sep,delimiter:l5.default.posix.delimiter,parse:Ypr,isAbsolute:$pr,join:Zpr,extname:Qpr,normalize:EWt,relative:efr,resolve:tfr,dirname:nfr,basename:rfr,format:ifr,toNamespacedPath:ofr,get posix(){return this},get win32(){return RTn}},RTn={...l5.default.win32,get posix(){return DWt},get win32(){return this}},afr=l5.default,n0e={...DWt,posix:DWt,win32:RTn,native:afr,includeDriveLetter:sfr,urlToFilename:Xpr};var qTn=require("module"),KTn=require("util"),XTn=_d(GTn(),1),Est=()=>{let r={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{r.AggregateError=AggregateError}catch{}try{r.FinalizationRegistry=FinalizationRegistry}catch{}try{r.WeakRef=WeakRef}catch{}try{r.BigInt=BigInt}catch{}try{r.Reflect=Reflect}catch{}try{r.WeakMap=WeakMap}catch{}try{r.WeakSet=WeakSet}catch{}try{r.Set=Set}catch{}try{r.Map=Map}catch{}try{r.Uint8Array=Uint8Array}catch{}try{r.BigUint64Array=BigUint64Array}catch{}try{r.BigInt64Array=BigInt64Array}catch{}try{r.Atomics=Atomics}catch{}try{r.SharedArrayBuffer=SharedArrayBuffer}catch{}try{r.WebAssembly=WebAssembly}catch{}try{r.Uint8ClampedArray=Uint8ClampedArray}catch{}try{r.Uint16Array=Uint16Array}catch{}try{r.Uint32Array=Uint32Array}catch{}try{r.Intl=Intl}catch{}try{r.Int8Array=Int8Array}catch{}try{r.Int16Array=Int16Array}catch{}try{r.Int32Array=Int32Array}catch{}try{r.Float32Array=Float32Array}catch{}try{r.Float64Array=Float64Array}catch{}try{r.ArrayBuffer=ArrayBuffer}catch{}try{r.DataView=DataView}catch{}try{r.isFinite=isFinite}catch{}try{r.Promise=Promise}catch{}try{r.Proxy=Proxy}catch{}try{r.Symbol=Symbol}catch{}return r};function Vre(r,n,i){let l={};return[r,n??{},i??{}].forEach(g=>Object.defineProperties(l,Object.getOwnPropertyDescriptors(g))),l}function gst(r,n){let i={};return Object.getOwnPropertyNames(r).forEach(l=>{l in n||Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(r,l))}),i}var YTn=(0,qTn.createRequire)(Ye),mfr=()=>{let r=Est(),n=Vre(gst(global,r),r,{require:YTn,process,__dirname:i=>n0e.native.normalize(n0e.native.dirname(i)),__filename:i=>n0e.native.normalize(i)});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function _fr(r){let n=0;return{requestAnimationFrame:function(m){let g=new Date().getTime(),b=Math.max(0,16-(g-n)),E=r.setTimeout(function(){m(g+b)},b);return n=g+b,E},cancelAnimationFrame:function(m){clearTimeout(m)}}}var mst;function hfr(r=!1){return mst??(mst=gfr("evaluate against a browser environment",r,"jsdom"))}function gfr(r,n,i=r){try{return YTn(i)}catch{if(n)throw new ReferenceError(`You must install the peer dependency '${i}' in order to ${r} with ts-evaluator`);return}}var Bfr=()=>{let{JSDOM:r}=hfr(!0),{window:n}=new r("",{url:"https://example.com"}),i=Est(),l=_fr(n),p=Vre(gst(n,i),gst(l,n),i);return Object.defineProperties(p,{window:{get(){return p}},globalThis:{get(){return p}}}),p},B1="[return]",ZL="[break]",t4="[continue]",n4="this",r0e="super",yfr=()=>{let r=Est(),n=Vre(gst(global,r),r,{import:{meta:{url:i=>{let l=n0e.normalize(i);return`file:///${l.startsWith("/")?l.slice(1):l}`}}},process});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function QTn(r,n){return n.isDeclaration(r)}function Cfr(r,n){return n.isPropertyAccessExpression(r)?!1:"name"in r&&r.name!=null}function $Tn(r,n){return r.flags!==n.NodeFlags.Const&&r.flags!==n.NodeFlags.Let}var r4=class extends Error{constructor({node:n,environment:i,message:l}){super(l),Error.captureStackTrace(this,this.constructor),this.node=n,this.environment=i}};function Uee(r){return typeof r=="object"&&r!=null&&r instanceof r4}var Bst=class extends r4{constructor({path:n,node:i,environment:l,message:p=`Module '${n}' could not be resolved'`}){super({message:p,environment:l,node:i}),this.path=n}},qI=class extends r4{constructor({node:n,environment:i,typescript:l,message:p=`Unexpected Node: '${l.SyntaxKind[n.kind]}'`}){super({message:p,node:n,environment:i})}};function vfr(r){var n;let{node:i,evaluate:l,environment:p,typescript:m,throwError:g}=r,b=m.getNameOfDeclaration(i);if(b!=null)return m.isIdentifier(b)||!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,b)||m.isStringLiteralLike(b)?b.text:m.isNumericLiteral(b)?Number(b.text):m.isComputedPropertyName(b)?l.expression(b.expression,r):g(new qI({node:b,environment:p,typescript:m}))}function ZTn(r,n){let{node:i,typescript:l}=n;if(!l.isExternalModuleNameRelative(r))return r;let p=i.getSourceFile().fileName;return n0e.join(n0e.dirname(p),r)}function yst(r){var n,i,l,p,m;let{node:g,typescript:b,throwError:E,environment:I}=r,R=vfr(r);if(Uee(R))return R;if(R==null)return E(new qI({node:g,environment:I,typescript:b}));let V=ED(g,r.environment,R);if(V!=null&&V.literal!=null)return V.literal;let X=ED(g,r.environment,"require").literal,ue=b.isModuleDeclaration(g)?g:bfr(g,b.SyntaxKind.ModuleDeclaration,b);if(ue==null)return E(new qI({node:g,environment:I,typescript:b}));let De=ue.name.text,we=ZTn(De,r);try{let We=(p=(i=(n=r.moduleOverrides)===null||n===void 0?void 0:n[De])!==null&&i!==void 0?i:(l=r.moduleOverrides)===null||l===void 0?void 0:l[we])!==null&&p!==void 0?p:X(we);return b.isModuleDeclaration(g)?We:(m=We[R])!==null&&m!==void 0?m:We}catch(We){return Uee(We)?We:E(new Bst({node:ue,environment:I,path:we}))}}function _st(r,n,i){var l,p,m,g,b,E;let{node:I,throwError:R,environment:V}=i,X=ED(I,i.environment,"require").literal,ue=ZTn(n,i);try{let De=(g=(p=(l=i.moduleOverrides)===null||l===void 0?void 0:l[n])!==null&&p!==void 0?p:(m=i.moduleOverrides)===null||m===void 0?void 0:m[ue])!==null&&g!==void 0?g:X(ue);return(E=(b=De[r])!==null&&b!==void 0?b:De.default)!==null&&E!==void 0?E:De}catch(De){return Uee(De)?De:R(new Bst({node:I,environment:V,path:ue}))}}function bfr(r,n,i){let l=r;for(;;){if(l=l.parent,l==null)return;if(l.kind===n){let p=i.getCombinedNodeFlags(l);if(!((p&i.NodeFlags.Namespace)!==0||(p&i.NodeFlags.NestedNamespace)!==0))return l}if(i.isSourceFile(l))return}}function zWt(r,n,i,l=new WeakSet){let{typescript:p}=i,m;function g(E,I=0){var R,V,X,ue,De;if(l.has(E))return!1;if(l.add(E),p.isIdentifier(E)){if(E.text===n)return m=E,!0}else{if(p.isShorthandPropertyAssignment(E))return!1;if(p.isPropertyAssignment(E))return!1;if(p.isImportDeclaration(E)){if(E.importClause!=null){if(E.importClause.name!=null&&g(E.importClause.name)){let we=E.moduleSpecifier;if(we!=null&&p.isStringLiteralLike(we))return m=_st(n,we.text,i),!0}else if(E.importClause.namedBindings!=null&&g(E.importClause.namedBindings))return!0}return!1}else if(p.isImportEqualsDeclaration(E)){if(E.name!=null&&g(E.name)){if(p.isIdentifier(E.moduleReference))return m=zWt(E.parent,E.moduleReference.text,i,l),m!=null;if(p.isQualifiedName(E.moduleReference))return!1;{let we=E.moduleReference.expression;if(we!=null&&p.isStringLiteralLike(we))return m=_st(n,we.text,i),!0}}return!1}else if(p.isNamespaceImport(E)){if(g(E.name)){let we=(V=(R=E.parent)===null||R===void 0?void 0:R.parent)===null||V===void 0?void 0:V.moduleSpecifier;return we==null||!p.isStringLiteralLike(we)?!1:(m=_st(n,we.text,i),!0)}}else if(p.isNamedImports(E)){for(let we of E.elements)if(g(we))return!0}else if(p.isImportSpecifier(E)){if(g(E.name)){let we=(De=(ue=(X=E.parent)===null||X===void 0?void 0:X.parent)===null||ue===void 0?void 0:ue.parent)===null||De===void 0?void 0:De.moduleSpecifier;return we==null||!p.isStringLiteralLike(we)?!1:(m=_st(n,we.text,i),!0)}}else if(p.isSourceFile(E)){for(let we of E.statements)if(g(we))return!0}else if(p.isVariableStatement(E)){for(let we of E.declarationList.declarations)if(g(we)&&($Tn(E.declarationList,p)||I<1))return!0}else if(p.isBlock(E)){for(let we of E.statements)if(g(we,I+1))return!0}else if(Cfr(E,p)&&E.name!=null&&g(E.name))return m=E,!0}return!1}return p.findAncestor(r,E=>g(E))?m:void 0}function zTn(r,n){let i=r;for(;;){if(i=i.parent,i==null)return;if(QTn(i,n)||n.isSourceFile(i))return i}}function Sfr(r){return r!=null&&(typeof r=="function"||typeof r=="object")}function jTn(r){return Sfr(r)}function jWt(r,n){switch(r){case Function.prototype.bind:case Function.prototype.call:case Function.prototype.apply:return!0}if(n!=null){let i=ED(void 0,n,"Function").literal;switch(r){case i.prototype.bind:case i.prototype.call:case i.prototype.apply:return!0}}return!1}var Vee=class{constructor(n){this.intent=n}construct(n,i){return this.intent(n,i)}};function eAn(r){return typeof r=="object"&&r!=null&&r instanceof Vee}function Dst(r,n,i){return eAn(i)?n.throwError(i.construct(r,n)):i}function kWt(r){return r.map(n=>typeof n=="symbol"?n.description:n).join(".")}function VTn({hook:r,item:n,scope:i,policy:l}){function p(m,g){let b=(E,I)=>{if(E!==!1)return eAn(E)||Uee(E)?E:I()};return!jTn(g)||jWt(g)?g:new Proxy(g,{construct(E,I,R){return b(r({kind:"__$$_PROXY_CONSTRUCT",policy:l,newTarget:R,argArray:I,target:E,path:kWt(m)}),()=>Reflect.construct(E,I,R))},apply(E,I,R=[]){return b(r({kind:"__$$_PROXY_APPLY",policy:l,thisArg:I,argArray:R,target:E,path:kWt(m)}),()=>Reflect.apply(E,I,R))},get(E,I,R){let V=[...m,I];return b(r({kind:"__$$_PROXY_GET",policy:l,path:kWt(V),target:E}),()=>{let X=Reflect.get(E,I,R),ue=Reflect.getOwnPropertyDescriptor(g,I);return ue!=null&&ue.configurable===!1&&ue.writable===!1?g[I]:p(V,X)})}})}return jTn(n)?p([i],n):n}function UTn(r,n){switch(r){case"__$$_PROXY_GET":return`get ${n}`;case"__$$_PROXY_APPLY":return`${n}(...)`;case"__$$_PROXY_CONSTRUCT":return`new ${n}(...)`}}var tAn={"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}}},xfr={...tAn,Math:{random:{__$$_PROXY_APPLY:!0}},Date:{now:{__$$_PROXY_APPLY:!0},__$$_PROXY_CONSTRUCT:(...r)=>r.length===0&&!(r[0]instanceof Date)}};function Efr(r,n){return typeof r==typeof n||typeof r=="function"}function Dfr(r){return typeof r=="function"}function i0e(r,n,i){let l=i.path.split(".");return IWt(r,n,i,l)}function IWt(r,n,i,l){let[p,...m]=l;if(p==null)return!1;let g=r[p];if(g==null)return!1;if(typeof g=="string")return IWt(r,n,i,[g,...m]);if(Efr(g,n))return HTn(g,n,i);{let b=g[i.kind];return b!=null?HTn(b,n,i):IWt(g,n,i,m)}}function HTn(r,n,i){if(Dfr(r)){let l=i;return l.argArray!=null&&r(...l.argArray)===n}else return r===n}function Tfr(r){return i0e(xfr,!0,r)}var Ure=class extends r4{constructor({violation:n,node:i,environment:l,message:p}){super({node:i,environment:l,message:`[${n}]: ${p}`}),this.violation=n}},PWt=class extends Ure{constructor({operation:n,node:i,environment:l,message:p=`The operation: '${n}' is nondeterministic. That is in violation of the policy`}){super({violation:"deterministic",message:p,node:i,environment:l}),this.operation=n}},nAn={"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 Afr(r){return i0e(nAn,"read",r)}var Cst=class extends Ure{constructor({node:n,environment:i,kind:l,message:p=`${l} operations are in violation of the policy`}){super({violation:"io",message:p,environment:i,node:n}),this.kind=l}};function kfr(r){return i0e(nAn,"write",r)}function wfr(r){return i0e(tAn,!0,r)}var NWt=class extends Ure{constructor({operation:n,node:i,environment:l,message:p=`The operation: '${n}' is performing network activity. That is in violation of the policy`}){super({violation:"deterministic",message:p,node:i,environment:l}),this.operation=n}},rAn={"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 Ifr(r){return i0e(rAn,"exit",r)}var vst=class extends Ure{constructor({kind:n,node:i,environment:l,message:p=`${n} operations are in violation of the policy`}){super({violation:"process",message:p,node:i,environment:l}),this.kind=n}};function Pfr(r){return i0e(rAn,"spawnChild",r)}var Nfr={"node:console":"console",console:{__$$_PROXY_APPLY:!0}};function Rfr(r){return i0e(Nfr,!0,r)}function Lfr({policy:r,env:n}){let i=g=>!r.console&&Rfr(g)?!1:!r.io.read&&Afr(g)?new Vee((b,E)=>new Cst({...E,node:b,kind:"read"})):!r.io.write&&kfr(g)?new Vee((b,E)=>new Cst({...E,node:b,kind:"write"})):!r.process.exit&&Ifr(g)?new Vee((b,E)=>new vst({...E,node:b,kind:"exit"})):!r.process.exit&&Pfr(g)?new Vee((b,E)=>new vst({...E,node:b,kind:"spawnChild"})):!r.network&&wfr(g)?new Vee((b,E)=>new NWt({...E,node:b,operation:UTn(g.kind,g.path)})):r.deterministic&&Tfr(g)?new Vee((b,E)=>new PWt({...E,node:b,operation:UTn(g.kind,g.path)})):!0,l=Object.entries(Object.getOwnPropertyDescriptors(n)),p=Object.assign({},...l.filter(([,g])=>!("value"in g)).map(([g,b])=>({[g]:b}))),m=Object.assign({},...l.filter(([,g])=>"value"in g).map(([g,b])=>({[g]:g==="require"?new Proxy(b.value,{apply(E,I,R=[]){let[V]=R;return VTn({policy:r,item:Reflect.apply(E,I,R),scope:V,hook:i})}}):VTn({policy:r,item:b.value,scope:g,hook:i})})));return Object.defineProperties(m,{...p})}function XVe(r,n){let[i]=n.split(".");if(V8.default.has(r.env,i))return r.env;if(r.parentEnv!=null)return XVe(r.parentEnv,n)}function RWt(r){return r.preset!=null?r.preset:r.parentEnv!=null?RWt(r.parentEnv):"NONE"}function iAn(r,n,i){let l=zTn(r.startingNode,i),p=zTn(n,i);if(l?.pos===p?.pos)return r;if(r.parentEnv!=null)return iAn(r.parentEnv,n,i)}function ED(r,n,i){let[l]=i.split(".");if(V8.default.has(n.env,l)){let p=V8.default.get(n.env,i);switch(i){case"__dirname":case"__filename":{let m=RWt(n);return(m==="NODE"||m==="NODE_CJS")&&typeof p=="function"&&r!=null?{literal:p(r.getSourceFile().fileName)}:{literal:p}}case"import.meta":{let m=RWt(n);return(m==="NODE_ESM"||m==="BROWSER"||m==="ECMA")&&typeof p=="object"&&p!=null&&typeof p.url=="function"&&r!=null?{literal:{url:p.url(r.getSourceFile().fileName)}}:{literal:p}}default:return{literal:p}}}if(n.parentEnv!=null)return ED(r,n.parentEnv,i)}function cx(r,n,i,...l){return l.some(p=>{let m=ED(r,n,p);return m==null?!1:m.literal===i})}function wWt(r){switch(r){case B1:case ZL:case t4:case n4:case r0e:return!0;default:return!1}}function e_({environment:r,path:n,value:i,reporting:l,node:p,newBinding:m=!1}){let[g]=n.split(".");if(V8.default.has(r.env,g)||m||r.parentEnv==null){if(V8.default.has(r.env,n)&&V8.default.get(r.env,n)===i)return;V8.default.set(r.env,n,i),l.reportBindings!=null&&!wWt(n)&&l.reportBindings({path:n,value:i,node:p})}else{let b=r.parentEnv;for(;b!=null;)if(V8.default.has(b.env,g)){if(V8.default.has(b.env,n)&&V8.default.get(b.env,n)===i)return;V8.default.set(b.env,n,i),l.reportBindings!=null&&!wWt(n)&&l.reportBindings({path:n,value:i,node:p});return}else b.parentEnv==null?(V8.default.set(b.env,n,i),l.reportBindings!=null&&!wWt(n)&&l.reportBindings({path:n,value:i,node:p})):b=b.parentEnv}}function Mfr({inputEnvironment:{extra:r,preset:n},startingNode:i,policy:l}){let p;switch(n){case"NONE":p=Vre(r);break;case"ECMA":p=Vre(Est(),r);break;case"NODE":case"NODE_CJS":p=Vre(mfr(),r);break;case"NODE_ESM":p=Vre(yfr(),r);break;case"BROWSER":p=Vre(Bfr(),r);break;default:p={};break}return{parentEnv:void 0,preset:n,startingNode:i,env:Lfr({policy:l,env:p})}}function oAn(r,n){return r.kind===n.SyntaxKind.TrueKeyword||r.kind===n.SyntaxKind.FalseKeyword}function sAn(r,n){return r.kind===n.SyntaxKind.NullKeyword}function Ffr(r,n){var i;return n.isStringLiteralLike(r)?{success:!0,value:r.text}:oAn(r,n)?{success:!0,value:r.kind===n.SyntaxKind.TrueKeyword}:n.isRegularExpressionLiteral(r)?{success:!0,value:new Function(`return ${r.text}`)()}:n.isNumericLiteral(r)?{success:!0,value:Number(r.text)}:!((i=n.isBigIntLiteral)===null||i===void 0)&&i.call(n,r)?{success:!0,value:BigInt(r.text)}:n.isIdentifier(r)&&r.text==="Infinity"?{success:!0,value:1/0}:n.isIdentifier(r)&&r.text==="NaN"?{success:!0,value:NaN}:n.isIdentifier(r)&&r.text==="null"?{success:!0,value:null}:n.isIdentifier(r)&&r.text==="undefined"?{success:!0,value:void 0}:sAn(r,n)?{success:!0,value:null}:{success:!1}}var LWt=class extends Ure{constructor({ops:n,node:i,environment:l,message:p=`Maximum ops exceeded: ${n}`}){super({violation:"maxOps",message:p,node:i,environment:l}),this.ops=n}};function aAn(r,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,throwError:b,getCurrentError:E}=r,I=n??(i.initializer==null?void 0:p.expression(i.initializer,r));if(E()==null){if(I==null&&!g.isIdentifier(i.name))return b(new r4({node:i,environment:l}));p.nodeWithArgument(i.name,I,r),E()==null&&m.push(I)}}function lAn(r,n){return r.kind===n.SyntaxKind.ThisKeyword}function Tst(r,n){return r.kind===n.SyntaxKind.SuperKeyword}function cxe(r){var n,i;let{node:l,evaluate:p,typescript:m}=r;if(m.isIdentifier(l))return l.text;if(!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,l))return l.text;if(lAn(l,m))return n4;if(Tst(l,m))return r0e;if(m.isParenthesizedExpression(l))return cxe({...r,node:l.expression});if(!((i=m.isTypeAssertionExpression)===null||i===void 0)&&i.call(m,l)||!("isTypeAssertionExpression"in m)&&m.isTypeAssertion(l))return cxe({...r,node:l.expression});if(m.isPropertyAccessExpression(l)){let g=cxe({...r,node:l.expression});g==null&&(g=p.expression(l.expression,r));let b=cxe({...r,node:l.name});return b==null&&(b=p.expression(l.name,r)),g==null||b==null?void 0:`${g}.${b}`}else if(m.isElementAccessExpression(l)){let g=cxe({...r,node:l.expression});g==null&&(g=p.expression(l.expression,r));let b=p.expression(l.argumentExpression,r);return g==null||b==null?void 0:`${g}.${b}`}else if(m.isFunctionDeclaration(l))return l.name==null?void 0:l.name.text}var MWt=class extends r4{constructor({node:n,environment:i,message:l="'No leftValue could be determined'"}){super({message:l,environment:i,node:n})}};function hst(r,n){var i;return n.isParenthesizedExpression(r)||n.isAsExpression(r)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,r)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(r)?hst(r.expression,n):r}function cAn(r){return r!=null&&typeof r=="object"&&"kind"in r&&"flags"in r&&"pos"in r&&"end"in r}function Ofr(r){var n;let{node:i,environment:l,evaluate:p,logger:m,throwError:g,typeChecker:b,typescript:E,getCurrentError:I}=r,R=p.expression(i.left,r);if(I()!=null)return;let V=p.expression(i.right,r);if(I()!=null)return;let X=cxe({...r,node:i.left}),ue=i.operatorToken.kind;switch(ue){case E.SyntaxKind.AmpersandToken:return R&V;case E.SyntaxKind.AmpersandAmpersandToken:return R&&V;case E.SyntaxKind.AmpersandEqualsToken:case E.SyntaxKind.CaretEqualsToken:case E.SyntaxKind.BarEqualsToken:case E.SyntaxKind.MinusEqualsToken:case E.SyntaxKind.PlusEqualsToken:case E.SyntaxKind.PercentEqualsToken:case E.SyntaxKind.SlashEqualsToken:case E.SyntaxKind.AsteriskEqualsToken:case E.SyntaxKind.AsteriskAsteriskEqualsToken:case E.SyntaxKind.LessThanLessThanEqualsToken:case E.SyntaxKind.GreaterThanGreaterThanEqualsToken:case E.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:case E.SyntaxKind.QuestionQuestionEqualsToken:case E.SyntaxKind.BarBarEqualsToken:case E.SyntaxKind.AmpersandAmpersandEqualsToken:{let De=R;switch(ue){case E.SyntaxKind.AmpersandEqualsToken:De&=V;break;case E.SyntaxKind.CaretEqualsToken:De^=V;break;case E.SyntaxKind.BarEqualsToken:De|=V;break;case E.SyntaxKind.AsteriskEqualsToken:De*=V;break;case E.SyntaxKind.AsteriskAsteriskEqualsToken:De**=V;break;case E.SyntaxKind.LessThanLessThanEqualsToken:De<<=V;break;case E.SyntaxKind.GreaterThanGreaterThanEqualsToken:De>>=V;break;case E.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:De>>>=V;break;case E.SyntaxKind.MinusEqualsToken:De-=V;break;case E.SyntaxKind.PlusEqualsToken:De+=V;break;case E.SyntaxKind.PercentEqualsToken:De%=V;break;case E.SyntaxKind.SlashEqualsToken:De/=V;break;case E.SyntaxKind.QuestionQuestionEqualsToken:De=R??V;break;case E.SyntaxKind.BarBarEqualsToken:R||(De=V);break;case E.SyntaxKind.AmpersandAmpersandEqualsToken:R&&(De=V);break}return X!=null&&e_({...r,path:X,value:De}),De}case E.SyntaxKind.AsteriskToken:return R*V;case E.SyntaxKind.AsteriskAsteriskToken:return R**V;case E.SyntaxKind.BarToken:return R|V;case E.SyntaxKind.BarBarToken:return R||V;case E.SyntaxKind.CaretToken:return R^V;case E.SyntaxKind.CommaToken:return V;case E.SyntaxKind.MinusToken:return R-V;case E.SyntaxKind.PlusToken:return m.logResult(R+V,"BinaryExpression (PlusToken)"),R+V;case E.SyntaxKind.PercentToken:return R%V;case E.SyntaxKind.SlashToken:return R/V;case E.SyntaxKind.EqualsToken:{if(X!=null){let De=hst(i.left,E),we=b?.getSymbolAtLocation(De),We=we?.valueDeclaration;if(We==null&&b==null&&E.isIdentifier(De)){let Me=zWt(De.parent,De.text,r);cAn(Me)&&(We=Me)}let Ne=We==null?l:(n=iAn(l,We,E))!==null&&n!==void 0?n:l;e_({...r,environment:Ne,path:X,value:V}),m.logBinding(X,V,"Assignment")}else return g(new MWt({node:i.left,environment:l}));return V}case E.SyntaxKind.EqualsEqualsToken:return R==V;case E.SyntaxKind.EqualsEqualsEqualsToken:return R===V;case E.SyntaxKind.ExclamationEqualsToken:return R!=V;case E.SyntaxKind.ExclamationEqualsEqualsToken:return R!==V;case E.SyntaxKind.GreaterThanToken:return R>V;case E.SyntaxKind.GreaterThanEqualsToken:return R>=V;case E.SyntaxKind.LessThanToken:return R<V;case E.SyntaxKind.LessThanEqualsToken:return R<=V;case E.SyntaxKind.InKeyword:return R in V;case E.SyntaxKind.QuestionQuestionToken:return R??V;case E.SyntaxKind.InstanceOfKeyword:return R instanceof V}return g(new qI({node:i.operatorToken,typescript:E,environment:l}))}var VWt="___lazyCallFlag";function Wfr(r){return r!=null&&typeof r=="object"&&VWt in r}function UWt(r){return r===void 0?"undefined":r===null?"null":typeof r=="string"?`"${r}"`:r.toString()}var bst=class extends r4{constructor({value:n,node:i,environment:l,message:p=`${UWt(n)} is not a function'`}){super({message:p,environment:l,node:i}),this.value=n}};function jre(r,n){var i;return Tst(r,n)?!0:n.isPropertyAccessExpression(r)?jre(r.expression,n)||jre(r.name,n):n.isElementAccessExpression(r)?jre(r.expression,n)||jre(r.argumentExpression,n):n.isParenthesizedExpression(r)||n.isAsExpression(r)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,r)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(r)?jre(r.expression,n):!1}function Gfr(r){let{node:n,environment:i,evaluate:l,throwError:p,typescript:m,logger:g,getCurrentError:b}=r,E=[];for(let R=0;R<n.arguments.length;R++)if(E[R]=l.expression(n.arguments[R],r),b()!=null)return;let I=l.expression(n.expression,r);if(b()==null)if(Wfr(I)){let R=jre(n.expression,m)?ED(n,i,n4):void 0,V=I.invoke(R?.literal,...E);return b()!=null?void 0:(g.logResult(V,"CallExpression"),V)}else{if(n.questionDotToken==null&&typeof I!="function")return p(new bst({value:I,node:n.expression,environment:i}));let R=typeof I!="function"?void 0:Dst(n,r,I(...E));return b()!=null?void 0:(g.logResult(R,"CallExpression"),R)}}function zfr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function _I(r,n){return{parentEnv:r,startingNode:n,env:{}}}function RU(r,n){let i=Array.isArray(r)?r:r.modifiers;return i!=null&&i.some(l=>l.kind===n)}function LU(r,n,i){let{node:l,evaluate:p,environment:m,typescript:g,getCurrentError:b}=r,E=l.filter(I=>!(g.isIdentifier(I.name)&&I.name.text==="this"));for(let I=0;I<E.length;I++){let R=E[I];if(R.dotDotDotToken!=null){if(p.nodeWithArgument(R,n.slice(I),r),b()!=null)return;break}else{if(p.nodeWithArgument(R,n[I],r),b()!=null)return;if(i!=null&&g.isIdentifier(R.name)&&(RU(R,g.SyntaxKind.PublicKeyword)||RU(R,g.SyntaxKind.ProtectedKeyword)||RU(R,g.SyntaxKind.PrivateKeyword))){let V=ED(R,m,R.name.text);V!=null&&(i[R.name.text]=V.literal)}}}}function jfr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=RU(n,m.SyntaxKind.AsyncKeyword)?async(...E)=>{let I=_I(i,n),R={...r,environment:I};if(e_({...R,path:B1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),LU({...r,node:n.parameters,environment:I},E),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:cx(n,I,!0,B1)?p.pop():void 0):l.expression(n.body,R)}:(...E)=>{let I=_I(i,n),R={...r,environment:I};if(e_({...R,path:B1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),LU({...r,node:n.parameters,environment:I},E),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:cx(n,I,!0,B1)?p.pop():void 0):l.expression(n.body,R)};return b.toString=()=>"[Function: anonymous]",Object.setPrototypeOf(b,ED(n,i,"Function").literal),b}function Vfr({node:r}){return r.text}function Ufr({node:r}){return Number(r.text)}function Hfr({node:r,typescript:n}){return r.kind===n.SyntaxKind.TrueKeyword}function Jfr({node:r,environment:n}){let i=ED(r,n,"Function").literal;return new i(`return ${r.text}`)()}function qfr(r){let{node:n,evaluate:i,environment:l,getCurrentError:p}=r,m=ED(n,l,"Object").literal,g=m.create(m.prototype);e_({...r,path:n4,value:g,newBinding:!0});for(let b of n.properties)if(i.nodeWithArgument(b,g,r),p()!=null)return;return g}function Kfr(r){return r!=null&&r[Symbol.iterator]!=null}function Xfr(r){let{node:n,environment:i,evaluate:l,typescript:p,getCurrentError:m}=r,b=ED(n,i,"Array").literal.of();for(let E of n.elements){let I=l.expression(E,r);if(m()!=null)return;p.isSpreadElement(E)&&Kfr(I)?b.push(...I):b.push(I)}return b}var Sst=class extends r4{constructor({node:n,environment:i,message:l=`'${n.text}' is not defined'`}){super({message:l,environment:i,node:n})}};function JTn(r){let{node:n,environment:i,typeChecker:l,evaluate:p,stack:m,logger:g,reporting:b,typescript:E,throwError:I,getCurrentError:R}=r,V=ED(n,i,n.text);if(V!=null)return g.logBinding(n.text,V.literal,"Lexical Environment match"),V.literal;let X=E.isShorthandPropertyAssignment(n.parent)?l?.getShorthandAssignmentValueSymbol(n.parent):l?.getSymbolAtLocation(n),ue=X?.valueDeclaration;if(X!=null&&ue==null)try{let De=l?.getAliasedSymbol(X);ue=De?.valueDeclaration}catch{}if(ue==null){let De=zWt(n.parent,n.text,r);if(R()!=null)return;if(cAn(De)&&!E.isIdentifier(De))ue=De;else if(De!=null)return e_({...r,path:n.text,value:De}),g.logBinding(n.text,De,"Discovered declaration value"),De}if(ue!=null){if(ue.getSourceFile().isDeclarationFile){let we=yst({...r,node:ue});return R()!=null?void 0:(e_({environment:i,path:n.text,value:we,reporting:b,node:ue}),g.logBinding(n.text,we,`Discovered declaration value${ue.getSourceFile()===n.getSourceFile()?"":` (imported into '${n.getSourceFile().fileName}' from '${ue.getSourceFile().fileName}')`}`),we)}if(E.isVariableDeclaration(ue)&&ue.getSourceFile().fileName===n.getSourceFile().fileName&&ue.pos>n.pos)if(E.isVariableDeclarationList(ue.parent)&&$Tn(ue.parent,E)){e_({...r,path:n.text,value:void 0,newBinding:!0,node:ue}),g.logBinding(n.text,void 0,"Hoisted var declaration");return}else return I(new Sst({node:n,environment:i}));if(p.declaration(ue,r),R()!=null)return;let De=m.pop();return e_({...r,path:n.text,value:De,node:ue}),g.logBinding(n.text,De,`Discovered declaration value${ue.getSourceFile()===n.getSourceFile()?"":` (imported into '${n.getSourceFile().fileName}' from '${ue.getSourceFile().fileName}')`}`),De}return I(new Sst({node:n,environment:i}))}function Yfr(r){let{node:n,environment:i,typescript:l,evaluate:p,getCurrentError:m}=r,g=_I(i,n);for(let b=0;b<n.statements.length;b++){let E=n.statements[b];if(!(l.isConstructorDeclaration(n.parent)&&b===0&&l.isExpressionStatement(E)&&l.isCallExpression(E.expression)&&Tst(E.expression.expression,l))&&(p.statement(E,{...r,environment:g}),m()!=null||cx(n,g,!0,ZL,t4,B1)))break}}function Qfr({node:r,evaluate:n,stack:i,...l}){let{getCurrentError:p}=l;if(e_({...l,environment:l.environment,path:B1,value:!0,node:r}),r.expression==null)i.push(void 0);else{let m=n.expression(r.expression,l);if(p()!=null)return;i.push(m)}}function uAn({node:r,evaluate:n,...i}){for(let l of r.declarations)if(n.declaration(l,i),i.getCurrentError()!=null)return}function $fr({node:r,...n}){uAn({node:r.declarationList,...n})}function Zfr(r){var n,i;let{node:l,environment:p,evaluate:m,reporting:g,typescript:b,throwError:E,getCurrentError:I}=r,R=m.expression(l.operand,r);if(I()==null)switch(l.operator){case b.SyntaxKind.PlusToken:return+R;case b.SyntaxKind.MinusToken:return-R;case b.SyntaxKind.TildeToken:return~R;case b.SyntaxKind.ExclamationToken:return!R;case b.SyntaxKind.PlusPlusToken:{if(!b.isIdentifier(l.operand)&&!(!((n=b.isPrivateIdentifier)===null||n===void 0)&&n.call(b,l.operand)))return E(new qI({node:l.operand,environment:p,typescript:b}));let V=XVe(p,l.operand.text),X=++V[l.operand.text];return g.reportBindings!=null&&g.reportBindings({path:l.operand.text,value:X,node:l}),X}case b.SyntaxKind.MinusMinusToken:{if(!b.isIdentifier(l.operand)&&!(!((i=b.isPrivateIdentifier)===null||i===void 0)&&i.call(b,l.operand)))return E(new qI({node:l.operand,environment:p,typescript:b}));let V=XVe(p,l.operand.text),X=--V[l.operand.text];return g.reportBindings!=null&&g.reportBindings({path:l.operand.text,value:X,node:l}),X}}}function edr(r){let{evaluate:n,node:i,statementTraversalStack:l,environment:p,typescript:m,getCurrentError:g}=r,b=n.expression(i.expression,r);if(b==null||g()!=null)return;let E=i.questionDotToken!=null&&b==null?void 0:b[i.name.text];return typeof E=="function"&&l.includes(m.SyntaxKind.CallExpression)?{[VWt]:0,invoke:(I,...R)=>Dst(i,r,I!=null&&!jWt(E,p)?b[i.name.text].call(I,...R):b[i.name.text](...R))}:E}function tdr(r){let{node:n,environment:i,evaluate:l,statementTraversalStack:p,typescript:m,getCurrentError:g}=r,b=l.expression(n.expression,r);if(g()!=null)return;let E=l.expression(n.argumentExpression,r);if(g()!=null)return;let I=n.questionDotToken!=null&&b==null?void 0:b[E];return typeof I=="function"&&p.includes(m.SyntaxKind.CallExpression)?{[VWt]:0,invoke:(R,...V)=>Dst(n,r,R!=null&&!jWt(I,i)?b[E].call(R,...V):b[E](...V))}:I}function ndr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function rdr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=n.name==null?void 0:n.name.text,E=RU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=_I(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...r,node:n.parameters,environment:V},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return yst(r)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()}:function(...R){let V=_I(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return yst(r)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()};b!=null&&e_({...r,path:b,value:E.bind(E)}),E.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(E,ED(n,i,"Function").literal),p.push(E)}function idr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(r.expression,i);if(l()==null){if(p){if(n.statement(r.thenStatement,i),l()!=null)return}else if(r.elseStatement!=null)return n.statement(r.elseStatement,i)}}function odr({node:r,evaluate:n,stack:i,...l}){let p=n.expression(r.expression,l);l.getCurrentError()==null&&i.push(p)}function sdr({node:r,evaluate:n,...i}){let l="";l+=r.head.text;for(let p of r.templateSpans){let m=n.expression(p.expression,i);if(i.getCurrentError()!=null)return;l+=m,l+=p.literal.text}return l}function adr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function ldr(r){var n,i;let{evaluate:l,node:p,environment:m,typescript:g,throwError:b,reporting:E}=r;switch(l.expression(p.operand,r),p.operator){case g.SyntaxKind.PlusPlusToken:{if(!g.isIdentifier(p.operand)&&!(!((n=g.isPrivateIdentifier)===null||n===void 0)&&n.call(g,p.operand)))return b(new qI({node:p.operand,environment:m,typescript:g}));let I=XVe(m,p.operand.text)[p.operand.text]++;return E.reportBindings!=null&&E.reportBindings({path:p.operand.text,value:I,node:p}),I}case g.SyntaxKind.MinusMinusToken:{if(!g.isIdentifier(p.operand)&&!(!((i=g.isPrivateIdentifier)===null||i===void 0)&&i.call(g,p.operand)))return b(new qI({node:p.operand,environment:m,typescript:g}));let I=XVe(m,p.operand.text)[p.operand.text]--;return E.reportBindings!=null&&E.reportBindings({path:p.operand.text,value:I,node:p}),I}}}function cdr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=[];if(r.arguments!=null){for(let g=0;g<r.arguments.length;g++)if(p[g]=n.expression(r.arguments[g],i),l()!=null)return}let m=n.expression(r.expression,i);if(l()==null)return typeof m=="function"&&e_({...i,node:r,path:"[[NewTarget]]",value:m,newBinding:!0}),Dst(r,i,new m(...p))}function udr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function pdr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function fdr({node:r,evaluate:n,...i}){let l=n.expression(r.expression,i);i.getCurrentError()==null&&n.nodeWithArgument(r.caseBlock,l,i)}var FWt=class extends r4{constructor({message:n="It is not possible to evaluate an async iterator'",typescript:i,environment:l}){var p,m;super({message:n,environment:l,node:(m=(p=i.factory)===null||p===void 0?void 0:p.createEmptyStatement())!==null&&m!==void 0?m:i.createEmptyStatement()})}};function ddr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=r,E=l.expression(n.expression,r);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new qI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new qI({node:n.initializer,environment:i,typescript:m}));if(n.awaitModifier!=null)return g(new FWt({typescript:m,environment:i}));for(let I of E){let R=_I(i,n),V={...r,environment:R};if(e_({...V,path:ZL,value:!1,newBinding:!0}),e_({...V,path:t4,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(cx(n,R,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,R,!0,t4)){p.logContinue(n,m);continue}else if(cx(n,R,!0,B1)){p.logReturn(n,m);return}}}}function mdr({node:r,environment:n}){let i=ED(r,n,n4);return i?.literal}function _dr(r){e_({...r,path:ZL,value:!0})}function hdr(r){e_({...r,path:t4,value:!0})}function gdr({environment:r,evaluate:n,typescript:i,...l}){let{node:p,getCurrentError:m}=l,g=_I(r,p),b={...l,environment:g};if(p.initializer!==void 0){if(i.isVariableDeclarationList(p.initializer)){for(let E of p.initializer.declarations)if(n.declaration(E,b),m()!=null)return}else if(n.expression(p.initializer,b),m()!=null)return}for(;;){let E=_I(g,p),I={...l,environment:E};if(e_({...I,path:ZL,value:!1,newBinding:!0}),e_({...I,path:t4,value:!1,newBinding:!0}),!(p.condition==null?!0:n.expression(p.condition,b))||m()!=null||(n.statement(p.statement,I),m()!=null))return;if(cx(p,E,!0,ZL))break;if(cx(p,E,!0,B1))return;if(p.incrementor!=null){if(n.expression(p.incrementor,b),m()!=null)return}else if(cx(p,E,!0,t4))continue}}function Bdr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,getCurrentError:g}=r,b=l.expression(n.expression,r);if(g()==null)for(;b;){let E=_I(i,n),I={...r,environment:E};if(e_({...I,path:ZL,value:!1,newBinding:!0}),e_({...I,path:t4,value:!1,newBinding:!0}),l.statement(n.statement,I),g()!=null)return;if(cx(n,E,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,E,!0,B1)){p.logReturn(n,m);return}if(b=l.expression(n.expression,r),g()!=null)return;if(cx(n,E,!0,t4)){p.logContinue(n,m);continue}}}function ydr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=r,E=l.expression(n.expression,r);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new qI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new qI({node:n.initializer,environment:i,typescript:m}));for(let I in E){let R=_I(i,n),V={...r,environment:R};if(e_({...V,path:ZL,value:!1,newBinding:!0}),e_({...V,path:t4,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(cx(n,R,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,R,!0,t4)){p.logContinue(n,m);continue}else if(cx(n,R,!0,B1)){p.logReturn(n,m);return}}}}function Cdr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=n.name==null?void 0:n.name.text,E=RU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=_I(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()}:function(...R){let V=_I(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()};return b!=null&&e_({...r,path:b,value:E.bind(E)}),E.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(E,ED(n,i,"Function").literal),E}var OWt=class extends r4{constructor({node:n,environment:i,message:l="Missing catch or finally after try"}){super({node:n,environment:i,message:l})}};function vdr(r){let{node:n,evaluate:i,environment:l,throwError:p}=r,m,g=()=>{try{return i.statement(n.tryBlock,{...r,throwError:I=>(m=I,I),getCurrentError:()=>m})}catch(I){m=I}},b=I=>{i.nodeWithArgument(n.catchClause,I,r)},E=()=>{let I;i.statement(n.finallyBlock,{...r,throwError:R=>(I=R,r.throwError(R),R),getCurrentError:()=>I})};if(n.catchClause==null&&n.finallyBlock==null)return p(new OWt({node:n,environment:l}));n.catchClause!=null&&n.finallyBlock==null?(g(),m!=null&&b(m)):n.catchClause!=null&&n.finallyBlock!=null?(g(),m!=null&&b(m),E()):n.catchClause==null&&n.finallyBlock!=null&&(g(),m!=null&&p(m),E())}function pAn({name:r,extendedType:n,ctor:i=()=>{}}){return n==null?new Function("ctor",`return class ${r??""} {constructor () {const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(i):new Function("extendedType","ctor",`return class ${r??""} extends extendedType {constructor () {super(...arguments); const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(n,i)}function YVe(r,n){return"canHaveDecorators"in n?n.canHaveDecorators(r):!0}function QVe(r,n){var i;if("getDecorators"in n)return n.getDecorators(r);{let l="decorators"in r&&Array.isArray(r.decorators)?r.decorators:void 0,p=(i=r.modifiers)===null||i===void 0?void 0:i.filter(m=>"expression"in m);return[...l??[],...p??[]]}}function bdr(r){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=r,E,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,r),b()!=null)return;V=p.pop()}if(i.heritageClauses!=null){let De=i.heritageClauses.find(we=>we.token===g.SyntaxKind.ExtendsKeyword);if(De!=null){let[we]=De.types;if(we!=null&&(E=l.expression(we.expression,r),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=pAn({name:X,extendedType:E,ctor:V});if(YVe(i,g))for(let De of(n=QVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],r),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...r,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,RU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,r),b()!=null)return;m.logHeritage(ue),p.push(ue),m.logStack(p)}function Sdr(r){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=r;function g(...b){let E=_I(i,n),I={...r,environment:E};if(e_({...I,path:B1,value:!1,newBinding:!0}),e_({...I,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...I,path:n4,value:this,newBinding:!0}),LU({...I,node:n.parameters},b,this),!(n.body==null||m()!=null)&&(l.statement(n.body,I),m()==null&&cx(n,E,!0,B1)))return p.pop()}g.toString=()=>"[Function: constructor]",p.push(g)}function xdr({node:r,environment:n}){let i=ED(r,n,r0e);return i?.literal}function Edr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function Ddr(r){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=r,E,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,r),b()!=null)return;V=p.pop()}if(i.heritageClauses!=null){let De=i.heritageClauses.find(we=>we.token===g.SyntaxKind.ExtendsKeyword);if(De!=null){let[we]=De.types;if(we!=null&&(E=l.expression(we.expression,r),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=pAn({name:X,extendedType:E,ctor:V});if(YVe(i,g))for(let De of(n=QVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],r),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...r,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,RU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,r),b()!=null)return;return m.logHeritage(ue),ue}function Tdr(r){return null}function Adr({node:r,evaluate:n,...i}){n.expression(r.expression,i)}function kdr({evaluate:r,node:n,...i}){let l=r.expression(n.expression,i);if(i.getCurrentError()==null)return typeof l}function wdr({node:r,environment:n}){let i=ED(r,n,"BigInt").literal;return i(r.text.endsWith("n")?r.text.slice(0,-1):r.text)}function Idr(r){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=r,g=ED(n,i,"Object").literal,b=g.create(g.prototype),E=n.name.text;e_({...r,path:E,value:b,newBinding:!0});for(let I of n.members)if(l.nodeWithArgument(I,b,r),m()!=null)return;b.toString=()=>`[Enum: ${E}]`,p.push(b)}function Pdr(r){let{node:n,evaluate:i,environment:l,typeChecker:p,stack:m,getCurrentError:g}=r,b=ED(n,l,"Object").literal,E=b.create(b.prototype),I=p?.getSymbolAtLocation(n);if(I!=null){let R=I.exports;if(R!=null)for(let[V,X]of R.entries()){let ue=X.valueDeclaration;if(ue==null||(i.declaration(ue,r),g()!=null))return;E[V]=m.pop()}}m.push(E)}function Ndr(r){let{getCurrentError:n,stack:i}=r,l=yst(r);n()==null&&i.push(l)}function Rdr({node:r,evaluate:n,...i}){r.importClause!=null&&n.declaration(r.importClause,i)}function Ldr({node:r,evaluate:n,...i}){let{getCurrentError:l,throwError:p}=i,m=n.expression(r.expression,i);if(l()==null)return p(m)}var WWt=class extends Ure{constructor({duration:n,environment:i,node:l,message:p=`Maximum operation duration exceeded: ${n}`}){super({violation:"maxOpDuration",message:p,node:l,environment:i}),this.duration=n}};async function Mdr(r){let{node:n,environment:i,evaluate:l,policy:p,throwError:m,getCurrentError:g}=r,b=p.maxOpDuration===1/0?void 0:setTimeout(()=>{m(new WWt({duration:p.maxOpDuration,node:n,environment:i}))},p.maxOpDuration),E=l.expression(n.expression,r);if(b!=null&&clearTimeout(b),g()==null)return E}function Fdr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(r.condition,i);if(l()==null)return p?n.expression(r.whenTrue,i):n.expression(r.whenFalse,i)}function Ast(r,n){let i=r;for(;i!=null&&!n.isSourceFile(i);){if(RU(i,n.SyntaxKind.StaticKeyword))return!0;i=i.parent}return!1}function fAn(r,n){var i,l;let{node:p,environment:m,evaluate:g,stack:b,typescript:E,getCurrentError:I}=r,R=g.nodeWithValue(p.name,r);if(I()!=null)return;let V=Ast(p,E);if(n==null){let ue;if(E.isClassLike(p.parent)){if(g.declaration(p.parent,r),I()!=null)return;ue=b.pop()}else if(ue=g.expression(p.parent,r),I()!=null)return;b.push(V?ue[R]:ue.prototype[R]);return}let X=RU(p,E.SyntaxKind.AsyncKeyword)?async function(...De){let we=_I(m,p),We={...r,environment:we};if(e_({...We,path:B1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:n4,value:this,newBinding:!0}),e_({...We,path:r0e,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...r,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&cx(p,we,!0,B1)))return b.pop()}:function(...De){let we=_I(m,p),We={...r,environment:we};if(e_({...We,path:B1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:n4,value:this,newBinding:!0}),e_({...We,path:r0e,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...r,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&cx(p,we,!0,B1)))return b.pop()};if(X.toString=()=>`[Method: ${R}]`,Object.setPrototypeOf(X,ED(p,m,"Function").literal),n[R]=X,YVe(p,E))for(let ue of(i=QVe(p,E))!==null&&i!==void 0?i:[]){if(g.nodeWithArgument(ue,[n,R],r),I()!=null)return;b.pop()}if(p.parameters!=null){let ue=p.parameters.filter(De=>!(E.isIdentifier(De.name)&&De.name.text==="this"));for(let De=0;De<ue.length;De++){let we=ue[De];if(YVe(we,E))for(let We of(l=QVe(we,E))!==null&&l!==void 0?l:[]){if(g.nodeWithArgument(We,[n,R,De],r),I()!=null)return;b.pop()}}}}function dAn({node:r,evaluate:n,typescript:i,stack:l,...p},m){var g;let{getCurrentError:b}=p,E=n.nodeWithValue(r.name,p);if(b()==null){if(m==null){if(n.declaration(r.parent,p),b()!=null)return;let I=l.pop(),R=Ast(r,i);l.push(R?I[E]:I.prototype[E]);return}if(m[E]=r.initializer==null?void 0:n.expression(r.initializer,p),b()==null&&YVe(r,i))for(let I of(g=QVe(r,i))!==null&&g!==void 0?g:[]){if(n.nodeWithArgument(I,[m,E],p),b()!=null)return;l.pop()}}}function mAn(r,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,getCurrentError:b}=r;if(g.isTypeLiteralNode(i.parent)||g.isInterfaceDeclaration(i.parent))return;let E=p.nodeWithValue(i.name,r);if(b()!=null)return;let I=Ast(i,g);if(n==null){let X;if(g.isClassLike(i.parent)){if(p.declaration(i.parent,r),b()!=null)return;X=m.pop()}else if(X=p.expression(i.parent,r),b()!=null)return;m.push(I?X[E]:X.prototype[E]);return}function R(){let X=_I(l,i),ue={...r,environment:X};if(e_({...ue,path:B1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:n4,value:this,newBinding:!0}),e_({...ue,path:r0e,value:I?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),i.body!=null&&(p.statement(i.body,ue),b()==null&&cx(i,X,!0,B1)))return m.pop()}R.toString=()=>`[Get: ${E}]`;let V=Object.getOwnPropertyDescriptor(n,E);V==null&&(V={}),Object.defineProperty(n,E,{...V,configurable:!0,get:R})}function Odr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i;if(!(r.name!=null&&(n.declaration(r.name,i),l()!=null))&&r.namedBindings!=null)if("elements"in r.namedBindings){for(let p of r.namedBindings.elements)if(n.declaration(p,i),l()!=null)return}else n.declaration(r.namedBindings.name,i)}function Wdr({node:r,evaluate:n,...i}){var l;n.declaration((l=r.propertyName)!==null&&l!==void 0?l:r.name,i)}function Gdr({node:r,evaluate:n,...i}){n.declaration(r.name,i)}var xst=class extends r4{constructor({node:n,environment:i,message:l="'SyntaxError'"}){super({message:l,environment:i,node:n})}};function zdr({node:r,typescript:n,throwError:i,environment:l}){var p,m;switch(r.keywordToken){case n.SyntaxKind.NewKeyword:switch(r.name.text){case"target":return(p=ED(r,l,"[[NewTarget]]"))===null||p===void 0?void 0:p.literal;default:return i(new xst({node:r.name,environment:l}))}case n.SyntaxKind.ImportKeyword:switch(r.name.text){case"meta":return(m=ED(r,l,"import.meta"))===null||m===void 0?void 0:m.literal;default:return i(new xst({node:r.name,environment:l}))}}}function HWt({node:r,...n}){var i,l,p,m,g,b;return n.typescript.isIdentifier(r)?JTn({node:r,...n}):!((l=(i=n.typescript).isPrivateIdentifier)===null||l===void 0)&&l.call(i,r)?JTn({node:r,...n}):n.typescript.isStringLiteralLike(r)?Vfr({node:r,...n}):n.typescript.isNumericLiteral(r)?Ufr({node:r,...n}):oAn(r,n.typescript)?Hfr({node:r,...n}):n.typescript.isForOfStatement(r)?ddr({node:r,...n}):n.typescript.isForInStatement(r)?ydr({node:r,...n}):n.typescript.isForStatement(r)?gdr({node:r,...n}):n.typescript.isWhileStatement(r)?Bdr({node:r,...n}):n.typescript.isRegularExpressionLiteral(r)?Jfr({node:r,...n}):n.typescript.isObjectLiteralExpression(r)?qfr({node:r,...n}):n.typescript.isAwaitExpression(r)?Mdr({node:r,...n}):!((m=(p=n.typescript).isTypeAssertionExpression)===null||m===void 0)&&m.call(p,r)||!("isTypeAssertionExpression"in n.typescript)&&n.typescript.isTypeAssertion(r)?adr({node:r,...n}):n.typescript.isTemplateExpression(r)?sdr({node:r,...n}):n.typescript.isMethodDeclaration(r)?fAn({node:r,...n}):n.typescript.isPropertyDeclaration(r)?dAn({node:r,...n}):n.typescript.isGetAccessorDeclaration(r)?mAn({node:r,...n}):n.typescript.isArrayLiteralExpression(r)?Xfr({node:r,...n}):n.typescript.isSourceFile(r)?Pdr({node:r,...n}):n.typescript.isModuleDeclaration(r)?Ndr({node:r,...n}):n.typescript.isPrefixUnaryExpression(r)?Zfr({node:r,...n}):n.typescript.isPostfixUnaryExpression(r)?ldr({node:r,...n}):n.typescript.isVariableStatement(r)?$fr({node:r,...n}):n.typescript.isComputedPropertyName(r)?ndr({node:r,...n}):n.typescript.isVariableDeclarationList(r)?uAn({node:r,...n}):n.typescript.isImportDeclaration(r)?Rdr({node:r,...n}):n.typescript.isImportClause(r)?Odr({node:r,...n}):n.typescript.isImportSpecifier(r)?Wdr({node:r,...n}):n.typescript.isNamespaceImport(r)?Gdr({node:r,...n}):n.typescript.isImportEqualsDeclaration(r)?({...n},void 0):n.typescript.isMetaProperty(r)?zdr({node:r,...n}):n.typescript.isThrowStatement(r)?Ldr({node:r,...n}):n.typescript.isVariableDeclaration(r)?aAn({node:r,...n}):n.typescript.isEnumDeclaration(r)?Idr({node:r,...n}):n.typescript.isConstructorDeclaration(r)?Sdr({node:r,...n}):n.typescript.isBinaryExpression(r)?Ofr({node:r,...n}):n.typescript.isParenthesizedExpression(r)?zfr({node:r,...n}):n.typescript.isExpressionStatement(r)?odr({node:r,...n}):n.typescript.isArrowFunction(r)?jfr({node:r,...n}):n.typescript.isFunctionDeclaration(r)?rdr({node:r,...n}):n.typescript.isFunctionExpression(r)?Cdr({node:r,...n}):n.typescript.isClassDeclaration(r)?bdr({node:r,...n}):n.typescript.isIfStatement(r)?idr({node:r,...n}):n.typescript.isConditionalExpression(r)?Fdr({node:r,...n}):n.typescript.isPropertyAccessExpression(r)?edr({node:r,...n}):n.typescript.isElementAccessExpression(r)?tdr({node:r,...n}):n.typescript.isCallExpression(r)?Gfr({node:r,...n}):n.typescript.isSwitchStatement(r)?fdr({node:r,...n}):n.typescript.isNewExpression(r)?cdr({node:r,...n}):n.typescript.isNonNullExpression(r)?udr({node:r,...n}):n.typescript.isAsExpression(r)?pdr({node:r,...n}):n.typescript.isBlock(r)?Yfr({node:r,...n}):n.typescript.isClassExpression(r)?Ddr({node:r,...n}):n.typescript.isSpreadElement(r)?Edr({node:r,...n}):n.typescript.isTryStatement(r)?vdr({node:r,...n}):n.typescript.isReturnStatement(r)?Qfr({node:r,...n}):lAn(r,n.typescript)?mdr({node:r,...n}):n.typescript.isVoidExpression(r)?Adr({node:r,...n}):n.typescript.isTypeOfExpression(r)?kdr({node:r,...n}):Tst(r,n.typescript)?xdr({node:r,...n}):sAn(r,n.typescript)?Tdr({node:r,...n}):!((b=(g=n.typescript).isBigIntLiteral)===null||b===void 0)&&b.call(g,r)?wdr({node:r,...n}):n.typescript.isBreakStatement(r)?_dr({node:r,...n}):n.typescript.isContinueStatement(r)?hdr({node:r,...n}):n.typescript.isTypeAliasDeclaration(r)?({...n},void 0):n.typescript.isInterfaceDeclaration(r)?({...n},void 0):n.getCurrentError()!=null?void 0:n.throwError(new qI({node:r,environment:n.environment,typescript:n.typescript}))}function JWt(){return[]}function jdr(r){r.logger.logNode(r.node,r.typescript),r.statementTraversalStack=JWt(),HWt(r)}function Vdr(r){let{getCurrentError:n}=r;r.logger.logNode(r.node,r.typescript);let i=HWt(r);if(n()==null)return r.reporting.reportIntermediateResults!=null&&r.reporting.reportIntermediateResults({node:r.node,value:i}),i}function Udr(r){r.logger.logNode(r.node,r.typescript),HWt(r)}function Hdr({node:r,evaluate:n,typescript:i,logger:l,...p},m){var g;i.isIdentifier(r)||!((g=i.isPrivateIdentifier)===null||g===void 0)&&g.call(i,r)?(e_({...p,node:r,path:r.text,value:m,newBinding:!0}),l.logBinding(r.text,m,"evaluateBindingName")):n.nodeWithArgument(r,m,p)}function Jdr(r,n){let{node:i,environment:l,evaluate:p,typescript:m,getCurrentError:g}=r,b=p.nodeWithValue(i.name,r);if(g()!=null)return;let E=Ast(i,m);function I(...V){let X=_I(l,i),ue={...r,environment:X};e_({...ue,path:B1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:n4,value:this,newBinding:!0}),e_({...ue,path:r0e,value:E?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...ue,node:i.parameters},V),!(i.body==null||g()!=null)&&(p.statement(i.body,ue),g()==null)}I.toString=()=>`[Set: ${b}]`;let R=Object.getOwnPropertyDescriptor(n,b);R==null&&(R={}),Object.defineProperty(n,b,{...R,configurable:!0,set:I})}function qdr({node:r,evaluate:n,...i},l){let p=n.expression(r.initializer,i);if(i.getCurrentError()!=null)return;let m=n.nodeWithValue(r.name,i);i.getCurrentError()==null&&(l[m]=p)}function Kdr({node:r,evaluate:n,logger:i,...l},p){let m=p!=null||r.initializer===void 0?p:n.expression(r.initializer,l);l.getCurrentError()==null&&(i.logBinding(r.name.getText(),m,"evaluateParameterDeclaration"),n.nodeWithArgument(r.name,m,l))}function Xdr({node:r,evaluate:n,...i},l){let{getCurrentError:p}=i,m=r.name.text,g=n.expression(r.name,i);p()==null&&(l[m]=g)}function Ydr({node:r,evaluate:n,...i},l){let p=n.expression(r.expression,i);i.getCurrentError()==null&&Object.assign(l,p)}function Qdr({node:r,evaluate:n,...i},l){let p=l[Symbol.iterator](),m=0;for(;m<r.elements.length;){let{done:g,value:b}=p.next();if(g===!0)break;if(n.nodeWithArgument(r.elements[m++],b,i),i.getCurrentError()!=null)return}}function $dr(r,n){var i,l,p,m;let{node:g,evaluate:b,logger:E,typescript:I,getCurrentError:R}=r,V=g.initializer==null?void 0:b.expression(g.initializer,r);if(R()==null){if((I.isIdentifier(g.name)||!((i=I.isPrivateIdentifier)===null||i===void 0)&&i.call(I,g.name))&&g.propertyName!=null){let X=g.name.text,ue=b.nodeWithValue(g.propertyName,r);if(R()!=null)return;let De=I.isArrayBindingPattern(g.parent)?n:n[ue];e_({...r,path:X,value:De??V,newBinding:!0})}else if((I.isIdentifier(g.name)||!((l=I.isPrivateIdentifier)===null||l===void 0)&&l.call(I,g.name))&&g.propertyName==null){let X=g.name.text,ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;E.logBinding(g.name.text,De),e_({...r,path:g.name.text,value:De,newBinding:!0})}else if(!I.isIdentifier(g.name)&&!(!((p=I.isPrivateIdentifier)===null||p===void 0)&&p.call(I,g.name))&&g.propertyName!=null){let X=b.nodeWithValue(g.propertyName,r);if(R()!=null)return;let ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;if(b.nodeWithArgument(g.name,De,r),R()!=null)return}else if(!I.isIdentifier(g.name)&&!(!((m=I.isPrivateIdentifier)===null||m===void 0)&&m.call(I,g.name))&&g.propertyName==null){let X=n??V;if(b.nodeWithArgument(g.name,X,r),R()!=null)return}}}function Zdr({node:r,evaluate:n,...i},l){for(let p of r.elements)if(n.nodeWithArgument(p,l,i),i.getCurrentError()!=null)return}function emr(r,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=r,g=_I(p,i),b={...r,environment:g};e_({...b,path:ZL,value:!1,newBinding:!0});for(let E of i.clauses){if(l.nodeWithArgument(E,n,b),m()!=null)return;if(cx(i,g,!0,ZL,t4,B1))break}}function tmr({node:r,evaluate:n,...i},l){let{getCurrentError:p}=i;if(!(n.expression(r.expression,i)!==l||p()!=null))for(let g of r.statements){if(n.statement(g,i),p()!=null)return;if(cx(r,i.environment,!0,ZL,t4,B1))break}}function nmr(r){let{node:n,evaluate:i,environment:l,getCurrentError:p}=r;for(let m of n.statements){if(i.statement(m,r),p()!=null)return;if(cx(n,l,!0,ZL,t4,B1))break}}function rmr(r,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=r,g=i.variableDeclaration==null?p:_I(p,i),b={...r,environment:g};i.variableDeclaration!=null&&(l.nodeWithArgument(i.variableDeclaration,n,b),m()!=null)||l.statement(i.block,b)}function imr(r,n,i,l){let p=arguments.length,m=p<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,i):l,g;for(let b=r.length-1;b>=0;b--)(g=r[b])&&(m=(p<3?g(m):p>3?g(n,i,m):g(n,i))||m);return p>3&&m&&Object.defineProperty(n,i,m),m}function omr(r,n){return function(i,l){n(i,l,r)}}function smr(r,[n,i,l]){let{node:p,evaluate:m,environment:g,throwError:b,stack:E,getCurrentError:I}=r,R=m.expression(p.expression,r);if(I()==null){if(typeof R!="function")return b(new bst({node:p,environment:g,value:R,message:`${UWt(R)} is not a valid decorator implementation'`}));E.push(imr([l!=null?omr(l,R):R],n,i))}}function amr(r,n){let{node:i,typeChecker:l,evaluate:p,getCurrentError:m}=r,g=l?.getConstantValue(i);if(g==null)if(i.initializer!=null){if(g=p.expression(i.initializer,r),m()!=null)return}else{let E=i.parent.members,I=E.findIndex(X=>X===i),R=E.slice(0,I),V=0;for(let X of[...R].reverse())if(V++,X.initializer!=null){let ue=p.expression(X.initializer,r);if(m()!=null)return;if(typeof ue=="number"){g=ue+V;break}}g==null&&(g=I)}let b=p.nodeWithValue(i.name,r);m()==null&&(typeof g=="string"?n[b]=g:n[n[b]=g??0]=b)}function lmr(r,n){r.logger.logNode(r.node,r.typescript,"nodeWithArgument");let{node:i,...l}=r;if(l.typescript.isGetAccessorDeclaration(i))mAn({node:i,...l},n);else if(l.typescript.isSetAccessorDeclaration(i))Jdr({node:i,...l},n);else if(l.typescript.isPropertyAssignment(i))qdr({node:i,...l},n);else if(l.typescript.isPropertyDeclaration(i))dAn({node:i,...l},n);else if(l.typescript.isParameter(i))Kdr({node:i,...l},n);else if(l.typescript.isEnumMember(i))amr({node:i,...l},n);else if(l.typescript.isShorthandPropertyAssignment(i))Xdr({node:i,...l},n);else if(l.typescript.isDecorator(i))smr({node:i,...l},n);else if(l.typescript.isSpreadAssignment(i))Ydr({node:i,...l},n);else if(l.typescript.isMethodDeclaration(i))fAn({node:i,...l},n);else if(l.typescript.isArrayBindingPattern(i))Qdr({node:i,...l},n);else if(l.typescript.isBindingElement(i))$dr({node:i,...l},n);else if(l.typescript.isObjectBindingPattern(i))Zdr({node:i,...l},n);else if(l.typescript.isVariableDeclaration(i))aAn({node:i,...l},n);else if(l.typescript.isCaseBlock(i))emr({node:i,...l},n);else if(l.typescript.isCaseClause(i))tmr({node:i,...l},n);else if(l.typescript.isDefaultClause(i))nmr({node:i,...l});else if(l.typescript.isCatchClause(i))rmr({node:i,...l},n);else if(l.typescript.isBindingName(i))Hdr({node:i,...l},n);else if(l.typescript.isOmittedExpression(i))({...l});else{if(r.getCurrentError()!=null)return;l.throwError(new qI({node:i,environment:l.environment,typescript:l.typescript}))}}function cmr({node:r,evaluate:n,typescript:i,...l}){var p;return i.isComputedPropertyName(r)?n.expression(r.expression,l):i.isIdentifier(r)||!((p=i.isPrivateIdentifier)===null||p===void 0)&&p.call(i,r)?r.text:n.expression(r,l)}function umr(r){r.logger.logNode(r.node,r.typescript,"nodeWithValue");let{node:n,...i}=r;return r.typescript.isPropertyName(n)||r.typescript.isPrivateIdentifier(n)?cmr({node:n,...i}):r.throwError(new qI({node:n,environment:r.environment,typescript:r.typescript}))}function pmr(r){let n=0,{policy:i,reporting:l}=r,p=(b,E)=>{let{environment:I=r.environment,statementTraversalStack:R=r.statementTraversalStack,getCurrentError:V=r.getCurrentError,throwError:X=r.throwError}=E??{},ue=V();if(ue!=null)return ue;if(n++,n>=i.maxOps)return X(new LWt({ops:n,environment:I,node:b}));R.push(b.kind),l.reportTraversal!=null&&l.reportTraversal({node:b})},m={statement:(b,E)=>{let I={...E,statementTraversalStack:JWt()},R=p(b,I);if(!Uee(R))return jdr(g(b,I))},declaration:(b,E)=>{let I=p(b,E);if(!Uee(I))return Udr(g(b,E))},nodeWithArgument:(b,E,I)=>{let R=p(b,I);if(!Uee(R))return lmr(g(b,I),E)},expression:(b,E)=>{let I=p(b,E);return Uee(I)?I:Vdr(g(b,E))},nodeWithValue:(b,E)=>{let I=p(b,E);return Uee(I)?I:umr(g(b,E))}};function g(b,E){return{...r,...E,evaluate:m,node:b}}return m}function KVe(r,n){return r===n.SyntaxKind.NumericLiteral?"NumericLiteral":n.SyntaxKind[r]}var GWt=class{constructor(n={}){let{logLevel:i=0,color:{info:l="white",verbose:p="yellow",debug:m="magenta"}={}}=typeof n=="object"?n:{logLevel:n};this.options={logLevel:i,color:{info:l,verbose:p,debug:m}}}logInfo(n){this.options.logLevel<1||console.log(this.formatWithColor(this.options.color.info,n))}logVerbose(n){this.options.logLevel<2||console.log(this.formatWithColor(this.options.color.verbose,n))}logDebug(n){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,n))}logContinue(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"continue")} encountered within ${this.formatWithColor(this.options.color.debug,KVe(n.kind,i))}`)}logBreak(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"break")} encountered within ${this.formatWithColor(this.options.color.debug,KVe(n.kind,i))}`)}logReturn(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"return")} encountered within ${this.formatWithColor(this.options.color.debug,KVe(n.kind,i))}`)}logResult(n,i){this.options.logLevel<1||(i!=null?console.log(this.formatWithColor(this.options.color.info,`(intermediate value from context '${i}'):`),this.formatWithColor(this.options.color.info,"[RESULT]:"),this.compactValue(n)):console.log(this.formatWithColor(this.options.color.info,"[RESULT]:"),n))}logNode(n,i,l){if(this.options.logLevel<3)return;let p=`[${KVe(n.kind,i)}]`.padEnd(25);l!=null&&(p+=this.formatWithColor(this.options.color.debug,`(${l})`));let m=n.getText(),g=this.formatWithColor(this.options.color.debug,p),b=this.formatWithColor(this.options.color.debug,m);console.log(g),console.log(b)}logBinding(n,i,l){this.options.logLevel<2||console.log(`${l==null?"":this.formatWithColor(this.options.color.verbose,`(${l}): `)}${this.formatWithColor(this.options.color.verbose,`${n} ->`)}`,this.formatWithColor(this.options.color.verbose,this.compactValue(i)))}logHeritage(n){if(this.options.logLevel<3)return;let i=Object.getPrototypeOf(n);i.toString().includes("[Class")&&console.log(`${this.formatWithColor(this.options.color.debug,n.toString())} ${this.formatWithColor(this.options.color.debug,"extends")} ${this.formatWithColor(this.options.color.debug,i.toString())}`)}logStack(n){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`Stack value: ${UWt(this.compactValue(n.lastItem))}`))}logStatementTraversalStack(n,i){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`[${n.map(l=>KVe(l,i)).join(", ")}]`))}compactValue(n){return(0,KTn.inspect)(n,{depth:0,colors:!0,compact:!0,maxArrayLength:5})}formatWithColor(n,i){return XTn.default[n](i)}};function fmr(r,n){var i;return n.isExpressionNode(r)||n.isIdentifier(r)||((i=n.isPrivateIdentifier)===null||i===void 0?void 0:i.call(n,r))}function dmr(r,n){return n.isStatementButNotDeclaration(r)}function mmr(){let r=[];return{[Symbol.iterator](){return r[Symbol.iterator]()},get length(){return r.length},get lastItem(){return r[r.length-1]},push(...n){return r.push(...n)},pop(){return r.pop()}}}function _mr(r,n,i){r.reportErrors!=null&&!r.reportedErrorSet.has(n)&&(r.reportedErrorSet.add(n),r.reportErrors({error:n,node:n instanceof r4?n.node:i}))}function hmr(){return new WeakSet}function _An({typeChecker:r,node:n,environment:{preset:i="NODE",extra:l={}}={},moduleOverrides:p={},typescript:m=dfr,logLevel:g=0,policy:{deterministic:b=!1,network:E=!1,console:I=!1,maxOps:R=1/0,maxOpDuration:V=1/0,io:X={read:!0,write:!1},process:ue={exit:!1,spawnChild:!1}}={},reporting:De={}}){let we=Ffr(n,m);if(we.success)return we;let We={deterministic:b,maxOps:R,maxOpDuration:V,network:E,console:I,io:{read:typeof X=="boolean"?X:X.read,write:typeof X=="boolean"?X:X.write},process:{exit:typeof ue=="boolean"?ue:ue.exit,spawnChild:typeof ue=="boolean"?ue:ue.spawnChild}},Ne={...De,reportedErrorSet:hmr()},Me,Ct=new GWt(g),Rt=Xn=>(_mr(Ne,Xn,Xn.node),Me=Xn,Me),en=Mfr({inputEnvironment:{preset:i,extra:l},startingNode:n,policy:We}),Tn=mmr(),hn=JWt(),on={policy:We,typeChecker:r,typescript:m,logger:Ct,stack:Tn,moduleOverrides:p,reporting:Ne,throwError:Rt,environment:en,statementTraversalStack:hn,getCurrentError:()=>Me},Pn=pmr(on);try{let Xn;return fmr(n,m)?Xn=Pn.expression(n,on):dmr(n,m)?(Pn.statement(n,on),Xn=Tn.pop()):QTn(n,m)?(Pn.declaration(n,on),Xn=Tn.pop()):Rt(new qI({node:n,environment:en,typescript:m})),Me!=null?{success:!1,reason:Me}:(Ct.logResult(Xn),{success:!0,value:Xn})}catch(Xn){return Rt(Xn),{success:!1,reason:Xn}}}var SAn=_d(j8(),1),i4=_d(j8(),1),ZVe=_d(j8(),1);var s0e=_d(j8(),1);var Jj=_d(j8(),1);var XWt=_d(j8(),1);var YWt=_d(j8(),1);var gmr=r=>{if(Array.isArray(r))return"array";if(typeof r=="string")return"string";if(typeof r=="number")return"number";if(typeof r=="boolean")return"boolean";if(r===null)return"null";if(r===void 0)return"undefined";throw new Error(`Unexpected literal type: ${r}`)},hI=r=>r!=null,CAn=r=>r==null,vAn=r=>r!=null&&typeof r=="object",Bmr=r=>Array.isArray(r),ymr=r=>{let n=typeof r;return n==="string"||n==="number"||n==="boolean"||r===null||r===void 0},y1=r=>uxe.Node.isAsExpression(r)||uxe.Node.isParenthesizedExpression(r)||uxe.Node.isNonNullExpression(r)||uxe.Node.isTypeAssertion(r)||uxe.Node.isSatisfiesExpression(r)?y1(r.getExpression()):r,Cmr=r=>r.getTagNameNode().getText(),vmr=/\s+/g,bAn=r=>r.replaceAll(vmr," "),bmr=r=>{let n=r.getSourceFile(),[i,l]=[r.getStart(),r.getEnd()],p=n.getLineAndColumnAtPos(i),m=n.getLineAndColumnAtPos(l);return{startPosition:i,startLineNumber:p.line,startColumn:p.column,endPosition:l,endLineNumber:m.line,endColumn:m.column}},Jre=class{type;stack=[];node;constructor(r){this.type=r.type,this.node=r.node,this.stack=[...r.stack??[]]}getNode(){return this.node}getStack(){return this.stack}getRange=()=>bmr(this.node);toJSON(){let r=this.getRange();return{type:this.type,value:this.value,node:this.node.getKindName(),line:r.startLineNumber,column:r.startColumn}}toString(){return JSON.stringify(this.toJSON(),null,2)}},hAn=class extends Jre{value;isEmpty;constructor(r){super(r),this.value=r.value,this.isEmpty=r.isEmpty}},Smr=class extends Jre{value;kind;constructor(r){super(r),this.value=r.value,this.kind=r.kind}},xmr=class extends Jre{value;spreadConditions;constructor(r){super(r),this.value=r.value}},Emr=class extends Jre{value;constructor(r){super(r),this.value=r.value}},Dmr=class extends Jre{},Tmr=class extends Jre{whenTrue;whenFalse;constructor(r){super(r),this.whenTrue=r.whenTrue,this.whenFalse=r.whenFalse}},Amr=class extends Jre{},pxe=r=>r instanceof Jre;function KWt(r,n,i){return H_(r).when(CAn,()=>{}).when(pxe,l=>l).when(vAn,l=>Vc.object(l,n,i)).when(Bmr,l=>l.length===1?KWt(l[0],n,i):l.map(p=>KWt(p,n,i))).when(ymr,l=>Vc.literal(l,n,i)).otherwise(()=>{})}var Vc={object(r,n,i){return new hAn({type:"object",value:r,node:n,stack:i})},literal(r,n,i){return new Smr({type:"literal",value:r,kind:gmr(r),node:n,stack:i})},map(r,n,i){return new xmr({type:"map",value:r,node:n,stack:i})},array(r,n,i){return new Emr({type:"array",value:r,node:n,stack:i})},conditional(r,n,i,l){return new Tmr({type:"conditional",whenTrue:r,whenFalse:n,node:i,stack:l})},from:KWt,emptyObject:(r,n)=>new hAn({type:"object",value:{},isEmpty:!0,node:r,stack:n}),emptyInitializer:(r,n)=>new Amr({type:"empty-initializer",node:r,stack:n}),unresolvable:(r,n)=>new Dmr({type:"unresolvable",node:r,stack:n}),isObject(r){return r?.type==="object"},isLiteral(r){return r?.type==="literal"},isMap(r){return r?.type==="map"},isArray(r){return r?.type==="array"},isUnresolvable(r){return r?.type==="unresolvable"},isConditional(r){return r?.type==="conditional"},isEmptyInitializer(r){return r?.type==="empty-initializer"},isNumberLiteral(r){return Vc.isLiteral(r)&&r.kind==="number"},hasValue:r=>Vc.isObject(r)||Vc.isLiteral(r)||Vc.isMap(r)||Vc.isArray(r)},xAn=Symbol("EvalError"),qWt=new WeakMap,kmr=(r,n,i)=>{if(i.flags?.skipEvaluate||i.canEval&&!i.canEval?.(r,n))return;if(qWt.has(r))return qWt.get(r);let l=_An({policy:{deterministic:!0,network:!1,console:!1,maxOps:Number.POSITIVE_INFINITY,maxOpDuration:1e3,io:{read:!0,write:!1},process:{exit:!1,spawnChild:!1}},...i.getEvaluateOptions?.(r,n),node:r.compilerNode,typescript:SAn.ts}),p=l.success?l.value:xAn;return qWt.set(r,p),p},kst=(r,n,i)=>{let l=kmr(r,n,i);if(l!==xAn)return l};function wmr(r){return i4.Node.isFunctionDeclaration(r)||i4.Node.isFunctionExpression(r)||i4.Node.isArrowFunction(r)||i4.Node.isSourceFile(r)}function Imr(r,n,i){let l=r.getParent();if(!l)return;let p=[],m;if((i4.Node.isVariableDeclaration(l)||i4.Node.isParameterDeclaration(l)||i4.Node.isFunctionDeclaration(l)||i4.Node.isBindingElement(l))&&l.getNameNode()==r)p.push(l),m=l;else if(i4.Node.isImportSpecifier(l)&&l.getNameNode()==r){if(i.flags?.skipTraverseFiles)return;let g=wAn(l.getImportDeclaration());if(g){let b=[l,g],E=kAn(r.getText(),g,b,i);E&&(p.push(...b.concat(E)),m=E)}}return m&&n.push(...p),m}var Pmr=r=>{let n=r.getParent();for(;n&&!wmr(n);)n=n.getParent();return n};function Nst(r,n,i,l=new Map){let p=r,m,g=!1,b=0,E=[];do{if(p=Pmr(p),b++,!p)return;let I=r.getText();if(p.forEachDescendant((R,V)=>{if(l.has(R)){V.skip(),E.push(...l.get(R));return}if(R!=r&&(l.set(R,E),i4.Node.isIdentifier(R)&&R.getText()==I)){let X=[R],ue=Imr(R,X,i);if(ue){if(i4.Node.isParameterDeclaration(ue)){let De=ue.getInitializer(),we=ue.getTypeNode();De?(E.push(...X.concat(De)),m=ue):we&&i4.Node.isTypeLiteral(we)?(E.push(...X.concat(we)),m=ue):g=!0,V.stop();return}E.push(...X),m=ue,V.stop()}}}),m||g)return m&&n.push(...E),m}while(p&&!i4.Node.isSourceFile(p)&&!m&&!g&&b<100)}var Nmr=(r,n,i)=>H_(r).when(s0e.Node.isPropertyAssignment,l=>{let p=y1(l.getNameNode());return H_(p).when(s0e.Node.isIdentifier,m=>Vc.from(m.getText(),m,n)).when(s0e.Node.isComputedPropertyName,m=>{let g=m.getExpression();return n.push(g),FU(g,n,i)}).when(uI.or(s0e.Node.isStringLiteral,s0e.Node.isNumericLiteral),m=>Vc.from(m.getLiteralText(),m,n)).otherwise(()=>{})}).when(s0e.Node.isShorthandPropertyAssignment,l=>{let p=l.getName();if(p!=null)return Vc.from(p,l,n)}).otherwise(()=>{}),Rmr=(r,n,i,l)=>{let p=r.getProperties();if(p.length===0)return Vc.emptyObject(r,n);let m=[],g=[];p.forEach(I=>{let R=[...n];if(R.push(I),ZVe.Node.isPropertyAssignment(I)||ZVe.Node.isShorthandPropertyAssignment(I)){let V=Nmr(I,R,i);if(!V)return;let X=V.value;if(CAn(X)||l&&!l?.({propName:X,propNode:I}))return;if(ZVe.Node.isShorthandPropertyAssignment(I)){let We=I.getNameNode();R.push(We);let Ne=Ab(We,R,i);if(Ne){m.push([X.toString(),Ne]);return}}let ue=I.getInitializer();if(!ue)return;let De=y1(ue);R.push(De);let we=Ab(De,R,i);if(we){m.push([X.toString(),we]);return}}if(ZVe.Node.isSpreadAssignment(I)){let V=y1(I.getExpression());R.push(V);let X=Ab(V,R,i,l);if(!X)return;if(Vc.isObject(X)){Object.entries(X.value).forEach(([ue,De])=>{let we=Vc.from(De,V,R);we&&m.push([ue,we])});return}if(Vc.isMap(X)){X.value.forEach((ue,De)=>{m.push([De,ue])});return}Vc.isConditional(X)&&g.push(X)}});let b=new Map;m.forEach(([I,R])=>{b.has(I)&&b.delete(I),b.set(I,R)});let E=Vc.map(b,r,n);return g.length>0&&(E.spreadConditions=g),E},QWt=new WeakMap,Lmr=r=>QWt.has(r),Mmr=r=>QWt.get(r),Fmr=r=>r===jp.ts.SyntaxKind.PlusToken,Omr=r=>r===jp.ts.SyntaxKind.BarBarToken||r===jp.ts.SyntaxKind.QuestionQuestionToken||r===jp.ts.SyntaxKind.AmpersandAmpersandToken||r===jp.ts.SyntaxKind.EqualsEqualsEqualsToken||r===jp.ts.SyntaxKind.EqualsEqualsToken||r===jp.ts.SyntaxKind.ExclamationEqualsEqualsToken||r===jp.ts.SyntaxKind.ExclamationEqualsToken||r===jp.ts.SyntaxKind.GreaterThanEqualsToken||r===jp.ts.SyntaxKind.GreaterThanToken||r===jp.ts.SyntaxKind.LessThanEqualsToken||r===jp.ts.SyntaxKind.LessThanToken||r===jp.ts.SyntaxKind.InstanceOfKeyword||r===jp.ts.SyntaxKind.InKeyword,Wmr=r=>r===jp.ts.SyntaxKind.AsteriskToken||r===jp.ts.SyntaxKind.SlashToken||r===jp.ts.SyntaxKind.PercentToken||r===jp.ts.SyntaxKind.AsteriskAsteriskToken||r===jp.ts.SyntaxKind.MinusToken,Gmr=r=>r===jp.ts.SyntaxKind.BarBarToken||r===jp.ts.SyntaxKind.QuestionQuestionToken;function Ab(r,n,i,l){let p=m=>(QWt.set(r,m),m);return H_(r).when(Lmr,Mmr).when(uI.or(jp.Node.isStringLiteral,jp.Node.isNoSubstitutionTemplateLiteral),m=>{let g=bAn(m.getLiteralValue());return p(Vc.literal(g,m,n))}).when(jp.Node.isObjectLiteralExpression,m=>p(Rmr(m,n,i,l))).when(uI.or(jp.Node.isTrueLiteral,jp.Node.isFalseLiteral),m=>{let g=m.getLiteralValue();return p(Vc.literal(g,m,n))}).when(jp.Node.isNumericLiteral,m=>{let g=m.getLiteralValue();return p(Vc.literal(g,m,n))}).when(jp.Node.isNullLiteral,m=>p(Vc.literal(null,m,n))).when(jp.Node.isPrefixUnaryExpression,m=>{let g=m.getOperand(),b=m.getOperatorToken(),E=Ab(g,n,i);if(Vc.isNumberLiteral(E))return p(b===jp.ts.SyntaxKind.MinusToken?Vc.literal(-Number(E.value),m,n):E)}).when(jp.Node.isArrayLiteralExpression,m=>{let g=m.getElements().map(b=>Ab(b,n,i)??p(Vc.unresolvable(b,n)));return p(Vc.array(g,m,n))}).when(jp.Node.isIdentifier,m=>H_(m.getText()).with("undefined",()=>p(Vc.literal(void 0,m,n))).otherwise(()=>p(Xmr(m,n,i)))).when(jp.Node.isTemplateHead,m=>p(Vc.literal(m.getLiteralText(),m,n))).when(jp.Node.isTemplateExpression,m=>{let g=DAn(m,n,i);return p(Vc.literal(g,m,n))}).when(jp.Node.isTaggedTemplateExpression,m=>p(Ab(m.getTemplate(),n,i))).when(jp.Node.isElementAccessExpression,m=>p(Ist(m,n,i))).when(jp.Node.isPropertyAccessExpression,m=>p(Pst(m,[],n,i))).when(jp.Node.isConditionalExpression,m=>{if(i.flags?.skipConditions)return p(Vc.unresolvable(m,n));let g=y1(m.getCondition()),b=(jp.Node.isIdentifier(g)?Ab(g,[],i):kst(g,n,i))??Vc.unresolvable(g,n),E=pxe(b)?b:Vc.from(b,m,n);if(Vc.isEmptyInitializer(E))return;let I=E.getStack().some(ue=>jp.Node.isBindingElement(ue));if(Vc.isUnresolvable(E)||Vc.isConditional(E)||I){let ue=y1(m.getWhenTrue()),De=y1(m.getWhenFalse());return p(gAn({whenTrueExpr:ue,whenFalseExpr:De,node:m,stack:n},i))}if(E.value){let ue=y1(m.getWhenTrue()),De=[...n],we=Ab(ue,De,i);return p(we??Vc.unresolvable(ue,n))}let R=y1(m.getWhenFalse()),V=[...n],X=Ab(R,V,i);return p(X??Vc.unresolvable(m,n))}).when(jp.Node.isCallExpression,m=>{let g=kst(m,n,i);if(g)return p(Vc.from(g,m,n))}).when(jp.Node.isBinaryExpression,m=>{let g=m.getOperatorToken().getKind();return H_(g).when(Fmr,()=>{let b=IAn(m,n,i)??kst(m,n,i);if(b)return p(Vc.from(b,m,n))}).when(Omr,b=>{let E=y1(m.getLeft()),I=y1(m.getRight()),R={whenTrueExpr:E,whenFalseExpr:I,node:m,stack:n,canReturnWhenTrue:Gmr(b)};return p(gAn(R,i))}).when(Wmr,()=>p(Vc.literal(kst(m,n,i),m,n))).otherwise(()=>{})}).otherwise(()=>{})}var EAn=r=>{if(r&&pxe(r)&&Vc.isLiteral(r)&&typeof r.value=="string")return r},zmr=r=>{if(r&&pxe(r)&&Vc.isLiteral(r)&&typeof r.value=="number")return r},jmr=(r,n,i)=>EAn(Ab(r,n,i)),FU=(r,n,i)=>{let l=Ab(r,n,i),p=EAn(l);if(p)return p;let m=zmr(l);if(m)return m},gAn=({whenTrueExpr:r,whenFalseExpr:n,node:i,stack:l,canReturnWhenTrue:p},m)=>{let g=Ab(r,l,m),b=Ab(n,l,m);if(p&&g&&!Vc.isUnresolvable(g))return g;if(jp.Node.isBinaryExpression(i)&&i.getOperatorToken().getKind()===jp.ts.SyntaxKind.AmpersandAmpersandToken&&g&&b&&Vc.isLiteral(g)&&g.value===!0)return b;if(!g&&!b)return;if(g&&!b)return g;if(!g&&b)return b;let E=g,I=b;return Vc.isLiteral(E)&&Vc.isLiteral(I)&&E.value===I.value?E:Vc.conditional(E,I,i,l)},Vmr=(r,n,i,l)=>{let p=[...i];if(jp.Node.isPropertyAssignment(r)){let m=r.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),r;if(jp.Node.isStringLiteral(m)&&m.getLiteralText()===n)return p.push(m),m.getLiteralText();if(jp.Node.isComputedPropertyName(m)){let g=y1(m.getExpression()),b=FU(g,p,l);if(!b)return;if(String(b.value)===n)return p.push(m,g),r}}if(jp.Node.isShorthandPropertyAssignment(r)){let m=r.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),r}},$Wt=(r,n,i,l)=>{let p=[...i],m=n.pop(),g=r.getProperty(m)??r.getProperties().find(b=>Vmr(b,m,p,l));if(g){if(p.push(g),jp.Node.isPropertyAssignment(g)){let b=g.getInitializer();if(!b)return;if(jp.Node.isObjectLiteralExpression(b))return n.length>0?$Wt(b,n,p,l):Ab(b,p,l);let E=Ab(b,p,l);if(E)return E}if(jp.Node.isShorthandPropertyAssignment(g)){let b=g.getNameNode();if(n.length>0)return MU(b,n,p,l);let E=Ab(b,p,l);if(E)return E}}},DAn=(r,n,i)=>{let l=r.getHead(),p=r.getTemplateSpans(),m=jmr(l,n,i);if(!m)return;let g=p.map(b=>{let E=b.getExpression(),I=FU(E,n,i);if(!I)return;let R=b.getLiteral();return I.value+R.getLiteralText()});if(g.every(hI))return m.value+g.join("")},TAn=(r,n,i,l)=>{let p=r.getParent();if(!p)return;let m=p.getParent();if(m){if(jp.Node.isArrayBindingPattern(p)){let g=p.getChildIndex();if(Number.isNaN(g))return;if(jp.Node.isVariableDeclaration(m)){let b=m.getInitializer();if(!b)return;let E=y1(b);if(!jp.Node.isArrayLiteralExpression(E))return;let I=E.getElements()[g+1];if(!I)return;let R=[...n,E,I],V=Ab(I,R,l);if(!V)return;if(Vc.isObject(V)){let ue=V.value[i];return Vc.from(ue,I,R)}if(!Vc.isMap(V))return V;let X=V.value.get(i);return X||void 0}}jp.Node.isObjectBindingPattern(p)}};function Umr(r,n,i,l){let p=n.at(-1);if(jp.Node.isVariableDeclaration(r)){let m=r.getInitializer();if(!m){let I=r.getTypeNode();if(!I)return;if(jp.Node.isTypeLiteral(I)){if(n.length>0){let V=[...i];V.push(I);let X=n.pop(),ue=I.getProperty(X),De=ue?.getTypeNode();for(;ue&&n.length>0&&De&&jp.Node.isTypeLiteral(De);)V.push(ue,De),X=n.pop(),ue=De.getProperty(X),De=ue?.getTypeNode();if(!De)return;let we=ZWt(De,V,l);return Vc.from(we,De,V)}let R=AAn(I,p,i,l);return i.push(I),Vc.from(R,I,i)}return}let g=y1(m);if(jp.Node.isObjectLiteralExpression(g)){let I=$Wt(g,n,i,l);return I?(i.push(g),I):void 0}if(jp.Node.isArrayLiteralExpression(g)){let I=Number(p);if(Number.isNaN(I))return;let R=g.getElements()[I];if(!R)return;i.push(g);let V=Ab(R,i,l);if(V&&pxe(V)&&Vc.isLiteral(V))return V}let b=[...i,g],E=Ab(g,b,l);if(E)return E}if(jp.Node.isBindingElement(r)){let m=TAn(r,i,p,l);if(m)return m}}var MU=(r,n,i,l)=>{let p=Nst(r,i,l);if(!p)return Vc.unresolvable(r,i);let m=Umr(p,n,i,l);return m||Vc.unresolvable(r,i)},o0e=new WeakMap,AAn=(r,n,i,l)=>{if(o0e.has(r)){let g=o0e.get(r);if(g===null)return;if(g?.has(n))return g.get(n)}let m=r.getMembers().find(g=>jp.Node.isPropertySignature(g)&&g.getName()===n);if(jp.Node.isPropertySignature(m)&&m.isReadonly()){let g=m.getTypeNode();if(!g){o0e.set(r,null);return}let b=ZWt(g,i,l);if(hI(b))return o0e.has(r)||o0e.set(r,new Map),o0e.get(r).set(n,b),b}o0e.set(r,null)};function Hmr(r){return jp.Node.isStringLiteral(r)?r.getLiteralText():r.getText()}var $Ve=new WeakMap,ZWt=(r,n,i)=>{if($Ve.has(r))return $Ve.get(r);if(jp.Node.isLiteralTypeNode(r)){let l=r.getLiteral();if(jp.Node.isStringLiteral(l)){let p=l.getLiteralText();return $Ve.set(r,p),p}}if(jp.Node.isTypeLiteral(r)){let l=r.getMembers();if(!l.some(p=>!jp.Node.isPropertySignature(p)||!p.isReadonly())){let m=l.map(b=>{let E=b.getNameNode(),I=E.getText(),R=Hmr(E);if(!R)return;let V=AAn(r,I,n,i);return[R,V]}).filter(hI),g=Object.fromEntries(m);return $Ve.set(r,g),g}}$Ve.set(r,void 0)},Jmr=(r,n,i)=>{if(jp.Node.isShorthandPropertyAssignment(r)){let l=r.getNameNode();return MU(l,[l.getText()],n,i)}if(jp.Node.isVariableDeclaration(r)){let l=r.getInitializer();if(!l){let b=r.getTypeNode();if(!b)return;if(jp.Node.isTypeLiteral(b)){n.push(b);let E=ZWt(b,n,i);if(hI(E))return Vc.from(E,r,n)}return Vc.unresolvable(r,n)}let p=y1(l),m=[...n,p],g=Ab(p,m,i);if(g)return g}if(jp.Node.isBindingElement(r)){let l=r.getInitializer();if(!l){let b=r.getPropertyNameNode()??r.getNameNode(),E=b.getText(),I=[...n,b],R=TAn(r,I,E,i);return R||Vc.unresolvable(r,n)}let p=y1(l),m=[...n,p],g=Ab(p,m,i);if(g)return g}},kAn=(r,n,i,l)=>{let p=n.getVariableDeclaration(r);if(p)return p;let m=Kmr(r,n,i,l);if(m)return m},qmr=(r,n)=>{let i=n.getNamedExports();if(i.length===0)return!0;for(let l of i)if(l.getNameNode().getText()===r)return!0},wAn=r=>{let n=r.getProject(),i=r.getModuleSpecifierValue();if(!i)return;let l=r.getSourceFile().getFilePath(),p=jp.ts.resolveModuleName(i,l,n.getCompilerOptions(),n.getModuleResolutionHost());return p.resolvedModule?n.addSourceFileAtPath(p.resolvedModule.resolvedFileName):void 0};function Kmr(r,n,i,l){for(let p of n.getExportDeclarations()){let m=[p];if(!qmr(r,p))continue;let g=wAn(p);if(!g)continue;m.push(g);let b=kAn(r,g,i,l);if(b)return i.push(...m.concat(b)),b}}var Xmr=(r,n,i)=>{let l=Nst(r,n,i);if(!l)return Vc.unresolvable(r,n);let p=y1(l),m=[...n],g=Jmr(p,m,i);return g||Vc.unresolvable(r,m)},IAn=(r,n,i)=>{let l=y1(r.getLeft()),p=y1(r.getRight()),m=FU(l,n,i),g=FU(p,n,i);if(!(!m||!g)&&hI(m.value)&&hI(g.value))return Vc.literal(String(m.value)+String(g.value),r,n)},Ist=(r,n,i)=>{let l=y1(r.getExpression()),p=r.getArgumentExpression();if(!p)return;let m=y1(p),g=[...n,l,m],b=FU(m,g,i);if(jp.Node.isIdentifier(l)&&b)return hI(b.value)?MU(l,[b.value.toString()],g,i):void 0;if(jp.Node.isBinaryExpression(m)){if(m.getOperatorToken().getKind()!==jp.ts.SyntaxKind.PlusToken)return;let E=IAn(m,g,i)??FU(m,g,i);if(E&&jp.Node.isIdentifier(l))return hI(E.value)?MU(l,[E.value.toString()],g,i):void 0}if(jp.Node.isTemplateExpression(m)){let E=DAn(m,g,i);if(E&&jp.Node.isIdentifier(l))return MU(l,[E],g,i)}if(jp.Node.isObjectLiteralExpression(l)&&b)return hI(b.value)?$Wt(l,[b.value.toString()],g,i):void 0;if(jp.Node.isPropertyAccessExpression(m))return Pst(m,[],g,i);if(jp.Node.isPropertyAccessExpression(l)&&b&&hI(b.value)){let E=Pst(l,[],g,i);if(!E)return Vc.unresolvable(l,g);let I=b.value.toString();if(Vc.isObject(E)){let R=E.value[I];return Vc.from(R,m,g)}if(Vc.isMap(E)){let R=E.value.get(I);return Vc.from(R,m,g)}if(Vc.isArray(E)){let R=E.value[Number(I)];return Vc.from(R,m,g)}return Vc.unresolvable(l,g)}if(jp.Node.isIdentifier(l)&&jp.Node.isElementAccessExpression(m)){let E=Ist(m,g,i);if(typeof E=="string"&&hI(E))return MU(l,[E],g,i)}if(jp.Node.isElementAccessExpression(l)&&b&&hI(b.value)){let E=Ist(l,g,i);if(vAn(E)){let I=b.value.toString();if(Vc.isMap(E))return E.value.get(I);if(Vc.isObject(E)){let R=E.value[I];return R?Vc.from(R,r,g):void 0}}}if(jp.Node.isArrayLiteralExpression(l)&&b)return Ymr(l,Number(b.value),g,i);if(jp.Node.isConditionalExpression(m)){if(i.flags?.skipConditions)return Vc.unresolvable(m,g);let E=FU(m,g,i);if(hI(E)&&hI(E.value)&&jp.Node.isIdentifier(l))return MU(l,[E.value.toString()],g,i);let I=y1(m.getWhenTrue()),R=y1(m.getWhenFalse()),V=FU(I,g,i),X=FU(R,g,i);if(jp.Node.isIdentifier(l)){let ue=V&&hI(V.value)?MU(l,[V.value.toString()],g,i):void 0,De=X&&hI(X.value)?MU(l,[X.value.toString()],g,i):void 0;return!ue&&!De?void 0:ue&&!De?ue:!ue&&De?De:Vc.conditional(ue,De,m,g)}}},Ymr=(r,n,i,l)=>{let p=r.getElements()[n];if(!p)return;let m=Ab(p,i,l);if(hI(m))return m},Pst=(r,n,i,l)=>{let p=r.getName(),m=y1(r.getExpression()),g=n.concat(p);if(i.push(m),jp.Node.isIdentifier(m))return MU(m,g,i,l);if(jp.Node.isPropertyAccessExpression(m))return Pst(m,g,i,l);if(jp.Node.isElementAccessExpression(m)){let b=Ist(m,i,l);if(!b)return;if(Vc.isObject(b)){let E=b.value[p];return Vc.from(E,r,i)}if(Vc.isMap(b)){let E=b.value.get(p);return Vc.from(E,r,i)}}},BAn=()=>!0,Rst=(r,n,i=BAn,l=BAn)=>{let p=r.getArguments(),m=r.getExpression().getText();return p.length===0?Vc.array([],r,[]):Vc.array(p.map((g,b)=>{let E=y1(g),I=[r,E];return H_(E).when(R=>l({fnNode:r,fnName:m,argNode:R,index:b}),R=>Ab(R,I,n,i)??Vc.unresolvable(R,I)).otherwise(()=>Vc.unresolvable(E,I))}),r,[])},Lst=(r,n)=>{let i=r.getInitializer(),l=[r,i];return H_(i).with(FS.nullish,()=>{let p=r.getNameNode();return Vc.emptyInitializer(p,l)}).when(XWt.Node.isStringLiteral,p=>{let m=p.getLiteralText();return Vc.literal(bAn(m),p,l)}).when(XWt.Node.isJsxExpression,p=>{let m=p.getExpression();if(!m)return;let g=y1(m);if(!g)return;l.push(g);let b=Ab(g,l,n);if(b)return b}).otherwise(()=>{})},PAn=(r,n,i)=>{let l=y1(r.getExpression());return Ab(l,[],n,i)},yAn=(r,n)=>r?pxe(r)?Vc.isUnresolvable(r)||Vc.isConditional(r)?new Map:Vc.isMap(r)?r.value:new Map(Object.entries(r.value).map(([i,l])=>{let p=Vc.from(l,r.getNode()??n,r.getStack()??[]);return[i,p||null]}).filter(([,i])=>i!==null)):new Map(Object.entries(r)):new Map,Qmr=uI.or(Jj.Node.isImportDeclaration,Jj.Node.isExportDeclaration),NAn=({ast:r,...n})=>{let{components:i,functions:l,taggedTemplates:p}=n,m=new Map,g=new Map,b,E,I,R,V;return r.forEachDescendant((X,ue)=>{if(Qmr(X)){ue.skip();return}if(i){if(Jj.Node.isJsxOpeningElement(X)||Jj.Node.isJsxSelfClosingElement(X)){if(b=X,E=Cmr(b),I=E.includes("."),!i.matchTag({tagNode:b,tagName:E,isFactory:I})){b=void 0;return}m.has(E)||m.set(E,{kind:"component",nodesByProp:new Map,queryList:[]}),R=m.get(E).nodesByProp,g.has(b)||g.set(b,{name:E,props:new Map,conditionals:[]}),V=g.get(b)}if(Jj.Node.isJsxSpreadAttribute(X)){if(!b||!V)return;let De=({propName:Me,propNode:Ct})=>i.matchProp({tagNode:b,tagName:E,propName:Me,propNode:Ct}),we=PAn(X,n,mU(De));if(!we)return;let We=Me=>{let Ct=yAn(Me,X),Rt=Vc.isMap(Me),en=Vc.map(Ct,X,[b]);Rt&&Me.spreadConditions?.length&&(en.spreadConditions=Me.spreadConditions),Ct.forEach((Tn,hn)=>{De({propName:hn,propNode:X})&&(V.props.set(hn,Tn),R.set(hn,(R.get(hn)??[]).concat(Tn)))})};(Me=>H_(Me).when(Vc.isConditional,Ct=>{V.conditionals.push(Ct)}).when(uI.or(Vc.isObject,Vc.isMap),Ct=>We(Ct)).otherwise(RZe))(we);return}if(Jj.Node.isJsxAttribute(X)){if(!b||!V)return;let De=X.getNameNode().getText();if(!i.matchProp({tagNode:b,tagName:E,propName:De,propNode:X}))return;ok(Lst(X,n),Jje.fromNullable,Jje.tap(we=>{V.props.set(De,we),R.set(De,(R.get(De)??[]).concat(we))}))}}if(l&&Jj.Node.isCallExpression(X)){let De=X.getExpression(),we=Jj.Node.isCallExpression(De)?De.getExpression().getText():De.getText();if(!l.matchFn({fnNode:X,fnName:we}))return;let We=({propName:Tn,propNode:hn})=>l.matchProp({fnNode:X,fnName:we,propName:Tn,propNode:hn});m.has(we)||m.set(we,{kind:"function",nodesByProp:new Map,queryList:[]});let Ne=m.get(we),Me=Ne.nodesByProp,Ct=Rst(X,n,We,l.matchArg),Rt=ok(Ct.value,e5.map(Tn=>H_(Tn).when(uI.or(Vc.isObject,Vc.isMap),hn=>{let on=yAn(hn,X),Pn=Vc.isMap(hn);on.forEach((Jt,Gs)=>{(Pn||We({propName:Gs,propNode:X}))&&Me.set(Gs,(Me.get(Gs)??[]).concat(Jt))});let Xn=Vc.map(on,X,hn.getStack());return Vc.isMap(hn)&&hn.spreadConditions?.length&&(Xn.spreadConditions=hn.spreadConditions),Xn}).otherwise(hn=>hn))),en={kind:"call-expression",name:we,box:Vc.array(Rt,X,[])};Ne.queryList.push(en)}if(p&&Jj.Node.isTaggedTemplateExpression(X)){let De=X.getTag(),we=Jj.Node.isCallExpression(De)?De.getExpression().getText():De.getText();if(!p.matchTaggedTemplate({taggedTemplateNode:X,fnName:we}))return;m.has(we)||m.set(we,{kind:"function",nodesByProp:new Map,queryList:[]});let We=m.get(we),Ne={kind:"tagged-template",name:we,box:Ab(X,[],n)};We.queryList.push(Ne)}}),g.forEach((X,ue)=>{let De=g.get(ue);if(!De)return;let we=mU({name:X.name,box:Vc.map(De.props,ue,[])});De.conditionals?.length&&(we.box.spreadConditions=De.conditionals);let We=X.name;m.get(We).queryList.push(we)}),m},$mr=uI.or(Vc.isObject,Vc.isMap),RAn=(r,n)=>{let i=r.getTagNameNode().getText(),l=r.getAttributes(),p=new Map;return l.forEach(m=>{if(YWt.Node.isJsxAttribute(m)){let g=m.getNameNode(),b=Lst(m,n);if(!b)return;p.set(g.getText(),b);return}if(YWt.Node.isJsxSpreadAttribute(m)){let g=PAn(m,n,()=>!0);if(!$mr(g))return;Vc.isMap(g)&&g.value.forEach((b,E)=>{p.set(E,b)}),Vc.isObject(g)&&Object.entries(g.value).forEach(([b,E])=>{p.set(b,Vc.literal(E,r,[]))})}}),{name:i,props:p}},wst=(r,n)=>{if(!r.length)return n;let i={};return r.reduce((l,p,m)=>{let g=m===r.length-1;return l[p]=g?n:{},g?i:l[p]},i),i},Hre=(r,n)=>H_(r).with(FS.nullish,()=>{}).when(Vc.isConditional,i=>{let l=n.path,p=Hre(i.whenTrue,Object.assign({},n,{path:l,parent:i})),m=Hre(i.whenFalse,Object.assign({},n,{path:l,parent:i}));p&&n.conditions.push(wst(l,p)),m&&n.conditions.push(wst(l,m))}).when(uI.or(Vc.isLiteral,Vc.isObject),i=>i.value).when(Vc.isEmptyInitializer,()=>!0).when(Vc.isMap,i=>{if(i.spreadConditions){let l=n.path;i.spreadConditions.forEach(p=>{let m=Hre(p.whenTrue,Object.assign({},n,{path:l,parent:i})),g=Hre(p.whenFalse,Object.assign({},n,{path:l,parent:i}));m&&n.spreadConditions.push(wst(l,m)),g&&n.spreadConditions.push(wst(l,g))})}return ok(e5.from(i.value.entries()),e5.map(([l,p])=>[l,Hre(p,Object.assign({},n,{path:n.path.concat(l),parent:i}))]),e5.filter(([,l])=>hI(l)),Object.fromEntries)}).when(Vc.isArray,i=>{let l=0;return ok(i.value,e5.map(p=>Hre(p,Object.assign({},n,{path:n.path.concat(String(l++)),parent:i}))),p=>p.flat())}).otherwise(()=>{}),Zmr=new WeakMap,e_r=r=>({value:r,has:n=>r.has(n),get:n=>r.get(n),set:(n,i)=>r.set(n,i)}),qj=(r,n)=>{let i={cache:n?.cache??Zmr,...n,path:[],parent:void 0,conditions:[],spreadConditions:[]},l=e_r(i.cache);return{raw:H_(r).with(FS.nullish,()=>{}).when(l.has,l.get).when(Array.isArray,m=>{let g=ok(m,e5.map(b=>Hre(b,i)),e5.filter(hI),e5.head);return l.set(m,g),g}).otherwise(m=>{let g=Hre(m,i);return l.set(m,g),g})??{},conditions:i.conditions,spreadConditions:i.spreadConditions}};re();re();re();re();function eUe(r){return Object.prototype.toString.call(r).slice(8,-1)}function t_r(r){return eUe(r)==="Undefined"}function n_r(r){return eUe(r)==="Null"}function tUe(r){if(eUe(r)!=="Object")return!1;let n=Object.getPrototypeOf(r);return n.constructor===Object&&n===Object.prototype}function eGt(r){return eUe(r)==="Array"}function tGt(r){return eUe(r)==="Symbol"}var C0i=r_r(n_r,t_r);function r_r(r,n,i,l,p){return m=>r(m)||n(m)||!!i&&i(m)||!!l&&l(m)||!!p&&p(m)}function i_r(r,n){return eGt(r)&&eGt(n)?r.concat(n):n}function LAn(r,n,i,l){let p={}.propertyIsEnumerable.call(l,n)?"enumerable":"nonenumerable";p==="enumerable"&&(r[n]=i),p==="nonenumerable"&&Object.defineProperty(r,n,{value:i,enumerable:!1,writable:!0,configurable:!0})}function MAn(r,n,i){if(!tUe(n))return n;let l={};if(tUe(r)){let b=Object.getOwnPropertyNames(r),E=Object.getOwnPropertySymbols(r);l=[...b,...E].reduce((I,R)=>{let V=r[R];return(!tGt(R)&&!Object.getOwnPropertyNames(n).includes(R)||tGt(R)&&!Object.getOwnPropertySymbols(n).includes(R))&&LAn(I,R,V,r),I},{})}let p=Object.getOwnPropertyNames(n),m=Object.getOwnPropertySymbols(n);return[...p,...m].reduce((b,E)=>{let I=n[E],R=tUe(r)?r[E]:void 0;R!==void 0&&tUe(I)&&(I=MAn(R,I,i));let V=i?i(R,I,E):I;return LAn(b,E,V,n),b},l)}function FAn(r,...n){return n.reduce((i,l)=>MAn(i,l,i_r),r)}var OAn=r=>Object.prototype.toString.call(r)==="[object Object]";function nGt(r,...n){let i=n.pop();for(let l of n)for(let p in l){let m=i(r[p],l[p]);m===void 0?OAn(r[p])&&OAn(l[p])?r[p]=nGt({},r[p],l[p],i):r[p]=l[p]:r[p]=m}return r}function WAn(r,...n){for(let i of n)for(let l in i)r?.hasOwnProperty?.(l)||(r[l]=i[l]);return r}function o_r(r){return r.reduce((n,{extend:i})=>i?nGt(n,i,(l,p)=>p===void 0?l??[]:l===void 0?[p]:Array.isArray(l)?[p,...l]:[p,l]):n,{})}function s_r(r){return{...r.reduce((n,i)=>WAn(n,i),{}),extend:o_r(r)}}function nUe(r){let{extend:n=[],...i}=s_r(r);return nGt(i,n,(l,p)=>FAn({},l,...p))}var a_r=r=>typeof r=="object"&&Object.keys(r).length===0,l_r=r=>Object.keys(r).reduce((n,i)=>(r[i]!==void 0&&!a_r(r[i])&&(n[i]=r[i]),n),{});function GAn(r){let n=WAn({conditions:nUe(r.map(i=>i.conditions??{})),theme:nUe(r.map(i=>i.theme??{})),patterns:nUe(r.map(i=>i.patterns??{})),utilities:nUe(r.map(i=>i.utilities??{})),globalCss:nUe(r.map(i=>i.globalCss??{}))},...r);return l_r(n)}re();var Mst=require("path"),rUe=(r,n)=>{for(let i of r){let l=n.match(i.pattern);if(l)for(let p of i.paths){let m=0;return p.replace(/\*/g,()=>{let b=Math.min(++m,l.length-1);return l[b]}).split(Mst.sep).join(Mst.posix.sep)}}};re();var fxe=require("path"),Fst=require("fs");function zAn(r,n){let i=(0,fxe.resolve)(".",r),l;for((0,Fst.statSync)(i).isDirectory()||(i=(0,fxe.dirname)(i));;){if(l=n(i,(0,Fst.readdirSync)(i)),l)return(0,fxe.resolve)(i,l);if(i=(0,fxe.dirname)(l=i),l===i)break}}var KAn=require("path"),iUe=_d(require("fs"),1),dxe=_d(require("path"),1),XAn=require("path"),rGt=_d(xWt(),1);re();var jAn=require("esbuild"),VAn=_d(require("path"),1),Ost=_d(require("fs"),1),OU=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});function c_r(r){let n=Ost.default.realpathSync(r);delete OU.cache[r];let i=OU(n);return{mod:i.default??i,dependencies:[n],code:Ost.default.readFileSync(n,"utf-8")}}async function u_r(r,n){let i=await(0,jAn.build)({absWorkingDir:n,entryPoints:[r],outfile:"out.js",write:!1,platform:"node",bundle:!0,format:"cjs",sourcemap:!1,metafile:!0,mainFields:["module","main"]}),{text:l}=i.outputFiles[0];return{code:l,dependencies:i.metafile?Object.keys(i.metafile.inputs):[]}}function p_r(r,n){let i=VAn.default.extname(r),l=Ost.default.realpathSync(r),p=OU.extensions[i];OU.extensions[i]=(b,E)=>{E===l?b._compile(n,E):p(b,E)},delete OU.cache[OU.resolve(r)];let m=OU(r),g=m.default??m;return OU.extensions[i]=p,g}async function UAn(r,n={}){let{cwd:i=process.cwd()}=n,l=OU.resolve(r,{paths:[i]});try{return c_r(l)}catch{let p=await u_r(l,i);try{p.mod=await p_r(l,p.code)}catch{p.mod=OU("node-eval")(p.code).default}return p}}re();var HAn=class extends Error{code;hint;constructor(r,n,i){super(n),this.code=`ERR_PANDA_${r}`,this.hint=i?.hint}};var Wst=class extends HAn{constructor(){let r="Cannot find config file: panda.config.ts or panda.config.js/cjs/mjs/mts/cts. Did you forget to run `panda init`?";super("NO_CONFIG",r)}},JAn=class extends HAn{constructor(r){super("CONFIG_ERROR",r)}};var iGt=require("@pandacss/preset-base"),zst=require("@pandacss/preset-panda"),f_r=[".ts",".js",".mts",".mjs",".cts",".cjs"],d_r=new RegExp(`panda.config(${f_r.join("|")})$`),m_r=r=>d_r.test(r);function __r({cwd:r,file:n}){return n?(0,KAn.resolve)(r,n):zAn(r,(i,l)=>l.find(m_r))}function YAn(r,n){let i=Object.keys(r).sort((p,m)=>qAn(m)-qAn(p)),l=[];for(let p of i){let m=r[p];p=h_r(p).replace(/\*/g,"(.+)"),l.push({pattern:new RegExp("^"+p+"$"),paths:m.map(g=>(0,XAn.resolve)(n,g))})}return l}function qAn(r){let n=r.indexOf("*");return r.substr(0,n).length}function h_r(r){return r.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/-/g,"\\x2d")}var g_r=[".js",".cjs",".mjs"],B_r=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],y_r=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];function C_r(r,n){for(let i of n){let l=`${r}${i}`;if(iUe.default.existsSync(l)&&iUe.default.statSync(l).isFile())return l}for(let i of n){let l=`${r}/index${i}`;if(iUe.default.existsSync(l))return l}return null}var v_r=/import[\s\S]*?['"](.{3,}?)['"]/gi,b_r=/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,S_r=/require\(['"`](.+)['"`]\)/gi,x_r=/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi;function Gst(r,n){let{filename:i,seen:l}=r,{moduleResolution:p,...m}=r.compilerOptions??{},g=C_r(dxe.default.resolve(r.cwd,i),g_r.includes(r.ext)?B_r:y_r);if(g===null||(n&&r.foundModuleAliases.set(n,g),l.size>1&&l.has(g)))return;l.add(g);let b=iUe.default.readFileSync(g,"utf-8"),E=[...b.matchAll(v_r),...b.matchAll(b_r),...b.matchAll(S_r),...b.matchAll(x_r)];if(!E.length)return;let I={cwd:dxe.default.dirname(g),ext:dxe.default.extname(g),seen:l,baseUrl:r.baseUrl,pathMappings:r.pathMappings,foundModuleAliases:r.foundModuleAliases};E.forEach(R=>{let V=R[1];if(V[0]==="."){Gst(Object.assign({},I,{filename:V}));return}try{let X=rGt.default.resolveModuleName(V,g,m,rGt.default.sys).resolvedModule;if(X&&X.extension===".ts"){Gst(Object.assign({},I,{filename:X.resolvedFileName}));return}if(!r.pathMappings)return;let ue=rUe(r.pathMappings,V);if(!ue)return;Gst(Object.assign({},I,{filename:ue}),V)}catch{}})}function QAn(r,n={pathMappings:[]},i){if(r===null)return{deps:new Set,aliases:new Map};let l=new Map,p=new Set;return p.add(r),Gst({filename:r,ext:dxe.default.extname(r),cwd:dxe.default.dirname(r),seen:p,baseUrl:n.baseUrl,pathMappings:n.pathMappings??[],foundModuleAliases:l,compilerOptions:i}),{deps:p,aliases:l}}async function $An(r,n){let{mod:i,dependencies:l}=await UAn(r,{cwd:n,interopDefault:!0});return{config:i?.default??i,dependencies:l}}async function E_r(r,n){let i=r.presets??[],l=[r];for(;i.length>0;){let p=await i.shift();if(typeof p=="string"){let m=await $An(p,n);l.push(await m.config),i.unshift(...await m.config.presets??[])}else l.push(p),i.unshift(...p.presets??[])}return GAn(l)}var ZAn={"@pandacss/preset-base":iGt.preset,"@pandacss/preset-panda":zst.preset,"@pandacss/dev/presets":zst.preset},D_r=Object.keys(ZAn),T_r=r=>D_r.includes(r);async function ekn(r){let n=await k_r(r);return A_r(n,r.cwd)}async function A_r(r,n){let i=new Set;r.config.eject||i.add(iGt.preset),r.config.presets?r.config.presets.forEach(p=>{typeof p=="string"&&T_r(p)?i.add(ZAn[p]):i.add(p)}):r.config.eject||i.add(zst.preset),r.config.presets=Array.from(i);let l=await E_r(r.config,n);return{...r,config:l}}async function k_r(r){let{cwd:n,file:i}=r,l=__r({cwd:n,file:i});if(!l)throw new Wst;N1.debug("config:path",l);let p=await $An(l,n);if(typeof p.config!="object")throw new JAn("\u{1F4A5} Config must export or return an object.");return{...p,config:p.config,path:l}}var X8n=require("fs"),QHt=_d(bGt(),1),nut=require("path");re();var Bxe=require("path"),SGt=require("fs");var $wn=r=>r===(0,Bxe.dirname)(r),Mgr=Symbol("stop"),Fgr=r=>r===Mgr;var Zst=(r,n=process.cwd())=>{if(typeof r=="function"&&r(n)instanceof Promise)throw new Error("Async matcher can not be used in 'lookItUpSync'");if(typeof r=="string"){let l=(0,Bxe.join)(n,r);return(0,SGt.existsSync)(l)?l:$wn(n)?null:Zst(r,(0,Bxe.dirname)(n))}let i=r(n);return Fgr(i)?null:i??($wn(n)?null:Zst(r,(0,Bxe.dirname)(n)))};re();var yxe=_d(require("path"),1),sIn=require("fs"),aIn=_d(require("path"),1);var Yj=_d(require("path"),1),cIn=require("fs"),AGt=require("module"),HD=_d(require("path"),1),uIn=require("fs");async function Zwn(r,n){let i=yxe.default.dirname(yxe.default.resolve(r)),l=n?.root?yxe.default.resolve(n.root):null;for(;i;){let p=await Ogr(i,n);if(p)return p;{if(l===i)break;let m=yxe.default.dirname(i);if(m===i)break;i=m}}throw new Error(`no tsconfig file found for ${r}`)}async function Ogr(r,n){let i=yxe.default.join(r,"tsconfig.json");if(n?.tsConfigPaths)return n.tsConfigPaths.has(i)?i:void 0;try{let l=await sIn.promises.stat(i);if(l.isFile()||l.isFIFO())return i}catch(l){if(l.code!=="ENOENT")throw l}}var u1i=aIn.default.sep;function Wgr(r){let n=Ggr(zgr(jgr(r)));return n.trim()===""?"{}":n}function Ggr(r){let n=!1,i=0,l="",p=null;for(let m=0;m<r.length;m++){let g=r[m];if(g==='"'&&(lIn(r,m)||(n=!n)),n){p=null;continue}if(g===","){p=m;continue}p&&(g==="}"||g==="]"?(l+=r.slice(i,p)+" ",i=p+1,p=null):g.match(/\s/)||(p=null))}return l+r.substring(i)}function lIn(r,n){let i=n-1,l=0;for(;r[i]==="\\";)i-=1,l+=1;return!!(l%2)}function eat(r,n,i){return r.slice(n,i).replace(/\S/g," ")}var xGt=Symbol("singleComment"),eIn=Symbol("multiComment");function zgr(r){let n=!1,i=!1,l=0,p="";for(let m=0;m<r.length;m++){let g=r[m],b=r[m+1];!i&&g==='"'&&(lIn(r,m)||(n=!n)),!n&&(!i&&g+b==="//"?(p+=r.slice(l,m),l=m,i=xGt,m++):i===xGt&&g+b===`\r
|
|
30731
30731
|
`?(m++,i=!1,p+=eat(r,l,m),l=m):i===xGt&&g===`
|
|
30732
|
-
`?(i=!1,p+=eat(r,l,m),l=m):!i&&g+b==="/*"?(p+=r.slice(l,m),l=m,i=eIn,m++):i===eIn&&g+b==="*/"&&(m++,i=!1,p+=eat(r,l,m+1),l=m+1))}return p+(i?eat(r.slice(l)):r.slice(l))}function jgr(r){return r.charCodeAt(0)===65279?r.slice(1):r}var Vgr=new RegExp("\\"+HD.default.posix.sep,"g"),Ugr=new RegExp("\\"+HD.default.sep,"g"),EGt=new Map,pIn="**/*",wGt=[".ts",".tsx",".mts",".cts"],Hgr=`\\.(?:${wGt.map(r=>r.substring(1)).join("|")})`,p1i=new Function("path","return import(path).then(m => m.default)");async function tIn(r){if(HD.default.extname(r)!==".json")return;let n=HD.default.resolve(r);try{let i=await uIn.promises.stat(n);if(i.isFile()||i.isFIFO())return n}catch(i){if(i.code!=="ENOENT")throw i}throw new Error(`no tsconfig file found for ${r}`)}function DGt(r){return HD.default.posix.sep!==HD.default.sep&&r.includes(HD.default.posix.sep)?r.replace(Vgr,HD.default.sep):r}function IGt(r){return HD.default.posix.sep!==HD.default.sep&&r.includes(HD.default.sep)?r.replace(Ugr,HD.default.posix.sep):r}function dUe(r,n){return HD.default.sep===HD.default.posix.sep?r?HD.default.resolve(r,n):HD.default.resolve(n):IGt(r?HD.default.resolve(DGt(r),DGt(n)):HD.default.resolve(DGt(n)))}function Jgr(r){let n=HD.default.dirname(r.tsconfigFile);return r.tsconfig.references.map(i=>{let l=i.path.endsWith(".json")?i.path:HD.default.join(i.path,"tsconfig.json");return dUe(n,l)})}function qgr(r,n){if(n.referenced&&wGt.some(i=>r.endsWith(i))&&!nIn(r,n)){let i=n.referenced.find(l=>nIn(r,l));if(i)return{...i,solution:n}}return n}function nIn(r,n){let i=IGt(HD.default.dirname(n.tsconfigFile)),l=(n.tsconfig.files||[]).map(g=>dUe(i,g)),p=dUe(null,r);return l.includes(r)?!0:rIn(p,i,n.tsconfig.include||(n.tsconfig.files?[]:[pIn]))?!rIn(p,i,n.tsconfig.exclude||[]):!1}function rIn(r,n,i){return i.some(l=>{let p=l.length,m=!1;for(let I=l.length-1;I>-1;I--)if(l[I]==="*"||l[I]==="?"){p=I,m=!0;break}if(p<l.length-1&&!r.endsWith(l.slice(p+1))||l.endsWith("*")&&!wGt.some(I=>r.endsWith(I)))return!1;if(l===pIn)return r.startsWith(`${n}/`);let g=dUe(n,l),b=-1;for(let I=0;I<g.length;I++)if(g[I]==="*"||g[I]==="?"){b=I,m=!0;break}if(b>1&&!r.startsWith(g.slice(0,b-1)))return!1;if(!m)return r===g;if(EGt.has(g))return EGt.get(g).test(r);let E=Kgr(g);return EGt.set(g,E),E.test(r)})}function Kgr(r){let n="^";for(let i=0;i<r.length;i++){let l=r[i];if(l==="?"){n+="[^\\/]";continue}if(l==="*"){if(r[i+1]==="*"&&r[i+2]==="/"){i+=2,n+="(?:[^\\/]*\\/)*";continue}n+="[^\\/]*";continue}"/.+^${}()|[]\\".includes(l)&&(n+="\\"),n+=l}return r.endsWith("*")&&(n+=Hgr),n+="$",new RegExp(n)}async function fIn(r,n){let i=n?.cache;if(i?.has(r))return i.get(r);let l;if(n?.resolveWithEmptyIfConfigNotFound)try{l=await tIn(r)||await Zwn(r,n)}catch{let g={tsconfigFile:"no_tsconfig_file_found",tsconfig:{}};return i?.set(r,g),g}else l=await tIn(r)||await Zwn(r,n);let p;return i?.has(l)?p=i.get(l):(p=await PGt(l,i),await Promise.all([dIn(p,i),Ygr(p,i)]),i?.set(l,p)),p=qgr(r,p),i?.set(r,p),p}async function PGt(r,n){if(n?.has(r))return n.get(r);try{let i=await cIn.promises.readFile(r,"utf-8"),l=Wgr(i),p={tsconfigFile:r,tsconfig:Xgr(JSON.parse(l),Yj.default.dirname(r))};return n?.set(r,p),p}catch(i){throw new NGt(`parsing ${r} failed: ${i}`,"PARSE_FILE",r,i)}}function Xgr(r,n){var i;return(i=r.compilerOptions)!=null&&i.baseUrl&&!Yj.default.isAbsolute(r.compilerOptions.baseUrl)&&(r.compilerOptions.baseUrl=dUe(n,r.compilerOptions.baseUrl)),r}async function Ygr(r,n){if(!r.tsconfig.references)return;let i=Jgr(r),l=await Promise.all(i.map(p=>PGt(p,n)));await Promise.all(l.map(p=>dIn(p,n))),r.referenced=l}async function dIn(r,n){if(!r.tsconfig.extends)return;let i=[{tsconfigFile:r.tsconfigFile,tsconfig:JSON.parse(JSON.stringify(r.tsconfig))}],l=0,p=[],m=0;for(;l<i.length;){let g=i[l];if(p.push(g.tsconfigFile),g.tsconfig.extends){m+=1;let b;Array.isArray(g.tsconfig.extends)?b=g.tsconfig.extends.reverse().map(I=>iIn(I,g.tsconfigFile)):b=[iIn(g.tsconfig.extends,g.tsconfigFile)];let E=b.find(I=>p.includes(I));if(E){let I=p.concat([E]).join(" -> ");throw new NGt(`Circular dependency in "extends": ${I}`,"EXTENDS_CIRCULAR",r.tsconfigFile)}i.splice(l+1,0,...await Promise.all(b.map(I=>PGt(I,n))))}else p.splice(-m),m=0;l=l+1}r.extended=i;for(let g of r.extended.slice(1))$gr(r,g)}function iIn(r,n){let i;try{return(0,AGt.createRequire)(n).resolve(r)}catch(l){i=l}if(!Yj.default.isAbsolute(r)&&!r.startsWith("./")&&!r.startsWith("../"))try{let l=Yj.default.join(r,"tsconfig.json");return(0,AGt.createRequire)(n).resolve(l)}catch(l){i=l}throw new NGt(`failed to resolve "extends":"${r}" in ${n}`,"EXTENDS_RESOLVE",n,i)}var Qgr=["compilerOptions","files","include","exclude","watchOptions","compileOnSave","typeAcquisition","buildOptions"];function $gr(r,n){let i=r.tsconfig,l=n.tsconfig,p=IGt(Yj.default.relative(Yj.default.dirname(r.tsconfigFile),Yj.default.dirname(n.tsconfigFile)));for(let m of Object.keys(l).filter(g=>Qgr.includes(g)))if(m==="compilerOptions"){i.compilerOptions||(i.compilerOptions={});for(let g of Object.keys(l.compilerOptions))Object.prototype.hasOwnProperty.call(i.compilerOptions,g)||(i.compilerOptions[g]=TGt(g,l.compilerOptions[g],p))}else if(i[m]===void 0)if(m==="watchOptions"){i.watchOptions={};for(let g of Object.keys(l.watchOptions))i.watchOptions[g]=TGt(g,l.watchOptions[g],p)}else i[m]=TGt(m,l[m],p)}var Zgr=["files","include","exclude","baseUrl","rootDir","rootDirs","typeRoots","outDir","outFile","declarationDir","excludeDirectories","excludeFiles"];function TGt(r,n,i){return Zgr.includes(r)?Array.isArray(n)?n.map(l=>oIn(l,i)):oIn(n,i):n}function oIn(r,n){return Yj.default.isAbsolute(r)?r:Yj.default.posix.normalize(Yj.default.posix.join(n,r))}var NGt=class kGt extends Error{constructor(n,i,l,p){super(n),Object.setPrototypeOf(this,kGt.prototype),this.name=kGt.name,this.code=i,this.cause=p,this.tsconfigFile=l}};re();re();function tat(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n]}function mIn(){return typeof WeakMap<"u"?new WeakMap:eBr()}function eBr(){return{add:tat,delete:tat,get:tat,set:tat,has:function(r){return!1}}}var tBr=Object.prototype.hasOwnProperty,LGt=function(r,n){return tBr.call(r,n)};function RGt(r,n){for(var i in n)LGt(n,i)&&(r[i]=n[i]);return r}var nBr=/^[ \t]*(?:\r\n|\r|\n)/,rBr=/(?:\r\n|\r|\n)[ \t]*$/,iBr=/^(?:[\r\n]|$)/,oBr=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,sBr=/^[ \t]*[\r\n][ \t\r\n]*$/;function _In(r,n,i){var l=0,p=r[0].match(oBr);p&&(l=p[1].length);var m="(\\r\\n|\\r|\\n).{0,"+l+"}",g=new RegExp(m,"g");n&&(r=r.slice(1));var b=i.newline,E=i.trimLeadingNewline,I=i.trimTrailingNewline,R=typeof b=="string",V=r.length,X=r.map(function(ue,De){return ue=ue.replace(g,"$1"),De===0&&E&&(ue=ue.replace(nBr,"")),De===V-1&&I&&(ue=ue.replace(rBr,"")),R&&(ue=ue.replace(/\r\n|\n|\r/g,function(we){return b})),ue});return X}function aBr(r,n){for(var i="",l=0,p=r.length;l<p;l++)i+=r[l],l<p-1&&(i+=n[l]);return i}function lBr(r){return LGt(r,"raw")&&LGt(r,"length")}function hIn(r){var n=mIn(),i=mIn();function l(m){for(var g=[],b=1;b<arguments.length;b++)g[b-1]=arguments[b];if(lBr(m)){var E=m,I=(g[0]===l||g[0]===jc)&&sBr.test(E[0])&&iBr.test(E[1]),R=I?i:n,V=R.get(E);if(V||(V=_In(E,I,r),R.set(E,V)),g.length===0)return V[0];var X=aBr(V,I?g.slice(1):g);return X}else return hIn(RGt(RGt({},r),m||{}))}var p=RGt(l,{string:function(m){return _In([m],!1,r)[0]}});return p}var jc=hIn({trimLeadingNewline:!0,trimTrailingNewline:!0}),ux=jc;if(typeof module<"u")try{module.exports=jc,Object.defineProperty(jc,"__esModule",{value:!0}),jc.default=jc,jc.outdent=jc}catch{}vv();vv();var YIn=_d(EIn(),1);vv();re();var LBr="",MBr=LBr.split(","),FBr="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockOverflow,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTransitionName,visibility,whiteSpace,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect",WGt=FBr.split(",").concat(MBr),OBr=new Map(WGt.map(r=>[r,!0]));function WBr(r){let n=Object.create(null);return i=>(n[i]===void 0&&(n[i]=r(i)),n[i])}var GBr=/&|@/,DIn=WBr(r=>OBr.has(r)||r.startsWith("--")||GBr.test(r));vv();var $In=_d(TIn(),1);re();vv();re();vv();vv();vv();vv();vv();vv();vv();var wIn=/(\$[^\s,]+\w)|({([^}]*)})/g,zBr=/[{}]/g;function HGt(r){if(typeof r!="string")return[];let n=r.match(wIn);return n?n.map(i=>i.replace(zBr,"")).map(i=>i.trim()):[]}function jBr(r){return wIn.test(r)}function VBr(r){let n={};return r.forEach((i,l)=>{i instanceof Map?n[l]=Object.fromEntries(i):n[l]=i}),n}var VGt=r=>R8(r)&&"value"in r;function AIn(r){if(!VGt(r))throw new Error(`Invalid token format: ${JSON.stringify(r)}`)}var aat=class IIn{name;value;originalValue;path;type;description;extensions;constructor(n){this.name=n.name,this.value=n.value,this.originalValue=n.value,this.path=n.path??[],n.type&&(this.type=n.type),n.description&&(this.description=n.description),this.extensions=n.extensions??{},this.extensions.condition=n.extensions?.condition??"base",this.setType()}get id(){return uCe(`${this.name}-${this.extensions.condition}-${this.value}`)}get isConditional(){return!!this.extensions?.conditions}get hasReference(){return!!this.extensions?.references}get isComposite(){return R8(this.originalValue)||Array.isArray(this.originalValue)}expandReferences(){if(!this.hasReference)return this.value;let n=this.extensions.references??{};return this.value=Object.keys(n).reduce((i,l)=>{let p=n[l];if(p.isConditional)return i;let m=p.expandReferences();return i.replace(`{${l}}`,m)},this.value),delete this.extensions.references,this.value}get isReference(){return jBr(this.originalValue)}get references(){return HGt(this.originalValue)}clone(){return new IIn({name:this.name,value:this.value,type:this.type,path:[...this.path],description:this.description,extensions:UGt(this.extensions)})}getConditionTokens(){if(!this.isConditional)return;let n=this.extensions.conditions??{},i=[];return B3(n,(l,p)=>{let m=p.filter(b=>!nSe(b));if(!m.length)return;let g=this.clone();g.value=l,g.extensions.condition=m.join(":"),i.push(g)}),i}setExtensions(n){return this.extensions={...this.extensions,...n},this.setType(),this}setType(){this.type||this.extensions.category&&(this.type=UBr[this.extensions.category])}};function UGt(r){return r instanceof aat?r.clone():Array.isArray(r)?r.map(n=>UGt(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,i])=>[n,UGt(i)])):r}var UBr={colors:"color",spacing:"dimension",sizing:"dimension",shadows:"shadow",fonts:"fontFamily",fontSizes:"fontSize",fontWeights:"fontWeight",letterSpacings:"letterSpacing",durations:"duration",transitions:"transition",radii:"borderRadius",gradients:"gradient",easings:"cubicBezier",borders:"border",components:"cti",assets:"asset"};function HBr(r){return r?{breakpoints:pCe(r,n=>({value:n})),sizes:Object.fromEntries(Object.entries(r).map(([n,i])=>[`breakpoint-${n}`,{value:i}]))}:{breakpoints:{},sizes:{}}}function kIn(r){return r[0]==="DEFAULT"?r:r.filter(n=>n!=="DEFAULT")}var JBr=class{allTokens=[];prefix;hash;get allNames(){return Array.from(new Set(this.allTokens.map(r=>r.name)))}constructor(r){let{tokens:n={},semanticTokens:i={},breakpoints:l,prefix:p,hash:m}=r,g=HBr(l),b=cre({...n,breakpoints:g.breakpoints,sizes:{...n.sizes,...g.sizes}});this.prefix=p,this.hash=m,B3(b,(E,I)=>{I=kIn(I),AIn(E);let R=I[0],V=I.join("."),X=new aat({...E,name:V,path:I});X.setExtensions({category:R,prop:I.slice(1).join(".")}),this.allTokens.push(X)},{stop:VGt}),B3(i,(E,I)=>{I=kIn(I),AIn(E);let R=I[0],V=I.join("."),X=K7(E.value)?{value:{base:E.value}}:E,{value:ue,...De}=X,we=new aat({...De,name:V,value:ue.base||"",path:I});we.setExtensions({category:R,conditions:ue,prop:I.slice(1).join(".")}),this.allTokens.push(we)},{stop:VGt})}getByName=zb(r=>{for(let n of this.allTokens)if(n.name===r)return n});transforms=new Map;registerTransform(...r){return r.forEach(n=>{n.type||="value",n.enforce||="pre",this.transforms.set(n.name,n)}),this}execTransform(r){let n=this.transforms.get(r);n&&this.allTokens.forEach(i=>{if(i.extensions.hasReference||typeof n.match=="function"&&!n.match(i))return;let l=n.transform(i,{prefix:this.prefix,hash:this.hash});H_(n).with({type:"extensions"},()=>{i.setExtensions(l)}).with({type:"value"},()=>{i.value=l,i.isComposite&&(i.originalValue=l)}).otherwise(()=>{i[n.type]=l})})}transformTokens(r){return this.transforms.forEach(n=>{n.enforce===r&&this.execTransform(n.name)}),this}middlewares=[];registerMiddleware(...r){for(let n of r)n.enforce||="pre",this.middlewares.push(n);return this}applyMiddlewares(r){this.middlewares.forEach(n=>{n.enforce===r&&n.transform(this,{prefix:this.prefix,hash:this.hash})})}getReferences(r){return HGt(r).map(i=>this.getByName(i)).filter(Boolean)}usesReference(r){return K7(r)?this.getReferences(r).length>0:!1}addReferences(){return this.allTokens.forEach(r=>{if(!this.usesReference(r.value))return;let n=this.getReferences(r.value);r.setExtensions({references:n.reduce((i,l)=>(i[l.name]=l,i),{})})}),this}filter(r){let n=typeof r=="function"?r:hre(r);return this.allTokens.filter(n)}addConditionalTokens(){let r=[];return this.allTokens.forEach(n=>{r.push(n);let i=n.getConditionTokens();i&&i.length>0&&r.push(...i)}),this.allTokens=r,this}expandReferences(){return this.allTokens.forEach(r=>{r.expandReferences()}),this}build(){this.applyMiddlewares("pre"),this.transformTokens("pre"),this.addConditionalTokens(),this.addReferences(),this.expandReferences(),this.applyMiddlewares("post"),this.transformTokens("post")}get isEmpty(){return this.allTokens.length===0}},Jee={groupByCondition(r){let n=new Map;return r.allTokens.forEach(i=>{let{condition:l}=i.extensions;l&&(n.get(l)||n.set(l,new Set),n.set(l,n.get(l).add(i)))}),n},groupByColorPalette(r){let n=new Map;return r.allTokens.forEach(i=>{let{colorPalette:l,colorPaletteRoots:p}=i.extensions;!l||i.extensions.isVirtual||p.forEach(m=>{n.get(m)||n.set(m,new Map);let g=i.name.replace(m,"colorPalette"),b=r.getByName(g);if(!b)return;let E=b.extensions.var;n.get(m).set(E,i.extensions.varRef)})}),n},groupByCategory(r){let n=new Map;return r.allTokens.forEach(i=>{let{category:l,prop:p}=i.extensions;l&&(n.get(l)||n.set(l,new Map),n.set(l,n.get(l).set(p,i)))}),n},getFlattenedValues(r){let n=Jee.groupByCategory(r),i=new Map;return n.forEach((l,p)=>{i.get(p)||i.set(p,new Map),l.forEach(m=>{let{prop:g,varRef:b,isNegative:E}=m.extensions,I=E?m.isConditional?m.originalValue:m.value:b;i.set(p,i.get(p).set(g,I))})}),i},getVars(r){let n=Jee.groupByCondition(r),i=new Map;return n.forEach((l,p)=>{i.get(p)||i.set(p,new Map),l.forEach(m=>{m.extensions.isNegative||m.extensions.isVirtual||i.get(p).set(m.extensions.var,m.value)})}),i},createVarGetter(r){let n=VBr(Jee.getFlattenedValues(r));return function(l,p){return aSe(n,l,p)}},getColorPaletteValues(r){let n=new Set;return r.allTokens.forEach(i=>{let{colorPalette:l}=i.extensions;!l||i.extensions.isVirtual||n.add(l)}),n}},qBr={enforce:"pre",transform(r,{prefix:n,hash:i}){r.filter({extensions:{category:"spacing"}}).forEach(p=>{let m=[...p.path],g=sSe(m.join("-"),{prefix:n,hash:i});if(p.value==="0rem")return;let b=p.clone();b.setExtensions({isNegative:!0,prop:`-${p.extensions.prop}`,originalPath:m}),b.value=N4t.negate(g);let E=b.path.at(-1);E!=null&&(b.path[b.path.length-1]=`-${E}`),b.path&&(b.name=b.path.join(".")),r.allTokens.push(b)})}},KBr=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),XBr={enforce:"post",transform(r){r.filter(i=>KBr.has(i.extensions.category)&&!i.extensions.isNegative).forEach(i=>{i.setExtensions({pixelValue:fCe(i.value)})})}},YBr={enforce:"post",transform(r){let n=r.filter({extensions:{category:"colors"}}),i=new Set,l=new Map;n.forEach(p=>{let{colorPalette:m,colorPaletteRoots:g,colorPaletteTokenKeys:b}=p.extensions;m&&(b.forEach(i.add,i),g.forEach(E=>{let I=l.get(E)||[];I.push(p),l.set(E,I)}))}),i.forEach(p=>{let m=new aat({name:`colors.colorPalette.${p}`,value:`{colors.colorPalette.${p}}`,path:["colors","colorPalette",...p.split(".")]});m.setExtensions({category:"colors",prop:`colorPalette.${p}`,isVirtual:!0}),r.allTokens.push(m)}),r.transformTokens("pre")}},QBr={enforce:"post",transform(r){r.allTokens=r.allTokens.filter(n=>n.value!=="")}},$Br=[qBr,YBr,QBr,XBr],jGt={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,olive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi},JGt={whitespace:/\s+/g,urlHexPairs:/%[\dA-F]{2}/g,quotes:/"/g};function ZBr(r){return r.trim().replace(JGt.whitespace," ")}function eyr(r){return encodeURIComponent(r).replace(JGt.urlHexPairs,nyr)}function tyr(r){return iyr(jGt).forEach(n=>{jGt[n].test(r)&&(r=r.replace(jGt[n],n))}),r}function nyr(r){switch(r){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return r.toLowerCase()}}function ryr(r){if(typeof r!="string")throw new TypeError("Expected a string, but received "+typeof r);r.charCodeAt(0)===65279&&(r=r.slice(1));let n=tyr(ZBr(r)).replace(JGt.quotes,"'");return"data:image/svg+xml,"+eyr(n)}var iyr=r=>Object.keys(r),oyr=hre({inset:FS.optional(FS.boolean),offsetX:FS.number,offsetY:FS.number,blur:FS.number,spread:FS.number,color:FS.string}),syr={name:"tokens/shadow",match:r=>r.extensions.category==="shadows",transform(r,{prefix:n}){if(K7(r.value))return r.value;if(Array.isArray(r.value)){if(r.extensions.conditions){let i=r.extensions.conditions;for(let[l,p]of Object.entries(i))Array.isArray(p)&&(i[l]=p.map(m=>this.transform({value:m},{prefix:n})).join(", "));if(r.extensions.conditions?.base&&Array.isArray(r.originalValue))return r.extensions.conditions.base}return r.value.map(i=>this.transform({value:i},{prefix:n})).join(", ")}if(oyr(r.value)){let{offsetX:i,offsetY:l,blur:p,spread:m,color:g,inset:b}=r.value;return`${b?"inset ":""}${i}px ${l}px ${p}px ${m}px ${g}`}return r.value}},ayr=hre({type:FS.string,placement:FS.string,stops:FS.union(FS.array(FS.string),FS.array({color:FS.string,position:FS.number}))}),lyr={name:"tokens/gradient",match:r=>r.extensions.category==="gradients",transform(r){if(K7(r.value))return r.value;if(ayr(r.value)){let{type:n,stops:i,placement:l}=r.value,p=i.map(m=>{if(K7(m))return m;let{color:g,position:b}=m;return`${g} ${b}px`});return`${n}-gradient(${l}, ${p.join(", ")})`}return r.value}},cyr={name:"tokens/fonts",match:r=>r.extensions.category==="fonts",transform(r){return Array.isArray(r.value)?r.value.join(", "):r.value}},uyr={name:"tokens/easings",match:r=>r.extensions.category==="easings",transform(r){return K7(r.value)?r.value:`cubic-bezier(${r.value.join(", ")})`}},pyr={name:"tokens/borders",match:r=>r.extensions.category==="borders",transform(r){if(K7(r.value))return r.value;let{width:n,style:i,color:l}=r.value;return`${n}px ${i} ${l}`}},fyr={name:"tokens/assets",match:r=>r.extensions.category==="assets",transform(r){let n=r.value;return H_(n).with(FS.string,i=>i).with({type:"url"},({value:i})=>`url('${i}')`).with({type:"svg"},({value:i})=>`url('${ryr(i)})'`).exhaustive()}},dyr={type:"extensions",name:"tokens/css-var",transform(r,{prefix:n,hash:i}){let{isNegative:l,originalPath:p}=r.extensions,m=l?p:r.path,g=sSe(m.join("-"),{prefix:n,hash:i});return{var:g.var,varRef:g.ref}}},myr={enforce:"post",name:"tokens/conditionals",transform(r,{prefix:n,hash:i}){let l=HGt(r.value);return l.length&&l.forEach(p=>{let m=sSe(p.split(".").join("-"),{prefix:n,hash:i}).ref;r.value=r.value.replace(`{${p}}`,m)}),r.value}},_yr={type:"extensions",name:"tokens/colors/colorPalette",match(r){return r.extensions.category==="colors"&&!r.extensions.isVirtual},transform(r){let n=[...r.path];if(n.pop(),n.shift(),n.length===0)return{};let i=n.reduce((g,b,E,I)=>(g.push(I.slice(0,E+1).join(".")),g),[]),l=n.at(0),p=n.join("."),m=r.path.slice(r.path.indexOf(l)+1).reduce((g,b,E,I)=>(g.push(I.slice(E).join(".")),g),[]);return{colorPalette:p,colorPaletteRoots:i,colorPaletteTokenKeys:m}}},hyr=[syr,lyr,cyr,uyr,pyr,fyr,dyr,myr,_yr],PIn=class extends JBr{constructor(r){super(r),this.registerTransform(...hyr),this.registerMiddleware(...$Br),this.build()}get get(){return Jee.createVarGetter(this)}get conditionMap(){return Jee.groupByCondition(this)}get categoryMap(){return Jee.groupByCategory(this)}get values(){return Jee.getFlattenedValues(this)}get colorPalettes(){return z$e(Jee.groupByColorPalette(this))}get vars(){return Jee.getVars(this)}getValue(r){let n=this.values.get(r);if(n!=null)return Object.fromEntries(n)}getTokenVar(r){let n=z$e(this.values);return aSe(n,r)}};vv();vv();var gyr=Object.defineProperty,Byr=(r,n)=>{for(var i in n)gyr(r,i,{get:n[i],enumerable:!0})},yyr={};Byr(yyr,{artifactsGenerated:()=>LIn,buildComplete:()=>jIn,codegenComplete:()=>OIn,configExists:()=>MIn,configWatch:()=>zIn,getMessages:()=>VIn,noExtract:()=>WIn,thankYou:()=>FIn,watch:()=>GIn});var _Ue=UI.green().bold("\u2714\uFE0F"),LIn=r=>{let{config:{outdir:n},recipes:i,patterns:l,tokens:p,jsx:m}=r;return()=>[jc`
|
|
30732
|
+
`?(i=!1,p+=eat(r,l,m),l=m):!i&&g+b==="/*"?(p+=r.slice(l,m),l=m,i=eIn,m++):i===eIn&&g+b==="*/"&&(m++,i=!1,p+=eat(r,l,m+1),l=m+1))}return p+(i?eat(r.slice(l)):r.slice(l))}function jgr(r){return r.charCodeAt(0)===65279?r.slice(1):r}var Vgr=new RegExp("\\"+HD.default.posix.sep,"g"),Ugr=new RegExp("\\"+HD.default.sep,"g"),EGt=new Map,pIn="**/*",wGt=[".ts",".tsx",".mts",".cts"],Hgr=`\\.(?:${wGt.map(r=>r.substring(1)).join("|")})`,p1i=new Function("path","return import(path).then(m => m.default)");async function tIn(r){if(HD.default.extname(r)!==".json")return;let n=HD.default.resolve(r);try{let i=await uIn.promises.stat(n);if(i.isFile()||i.isFIFO())return n}catch(i){if(i.code!=="ENOENT")throw i}throw new Error(`no tsconfig file found for ${r}`)}function DGt(r){return HD.default.posix.sep!==HD.default.sep&&r.includes(HD.default.posix.sep)?r.replace(Vgr,HD.default.sep):r}function IGt(r){return HD.default.posix.sep!==HD.default.sep&&r.includes(HD.default.sep)?r.replace(Ugr,HD.default.posix.sep):r}function dUe(r,n){return HD.default.sep===HD.default.posix.sep?r?HD.default.resolve(r,n):HD.default.resolve(n):IGt(r?HD.default.resolve(DGt(r),DGt(n)):HD.default.resolve(DGt(n)))}function Jgr(r){let n=HD.default.dirname(r.tsconfigFile);return r.tsconfig.references.map(i=>{let l=i.path.endsWith(".json")?i.path:HD.default.join(i.path,"tsconfig.json");return dUe(n,l)})}function qgr(r,n){if(n.referenced&&wGt.some(i=>r.endsWith(i))&&!nIn(r,n)){let i=n.referenced.find(l=>nIn(r,l));if(i)return{...i,solution:n}}return n}function nIn(r,n){let i=IGt(HD.default.dirname(n.tsconfigFile)),l=(n.tsconfig.files||[]).map(g=>dUe(i,g)),p=dUe(null,r);return l.includes(r)?!0:rIn(p,i,n.tsconfig.include||(n.tsconfig.files?[]:[pIn]))?!rIn(p,i,n.tsconfig.exclude||[]):!1}function rIn(r,n,i){return i.some(l=>{let p=l.length,m=!1;for(let I=l.length-1;I>-1;I--)if(l[I]==="*"||l[I]==="?"){p=I,m=!0;break}if(p<l.length-1&&!r.endsWith(l.slice(p+1))||l.endsWith("*")&&!wGt.some(I=>r.endsWith(I)))return!1;if(l===pIn)return r.startsWith(`${n}/`);let g=dUe(n,l),b=-1;for(let I=0;I<g.length;I++)if(g[I]==="*"||g[I]==="?"){b=I,m=!0;break}if(b>1&&!r.startsWith(g.slice(0,b-1)))return!1;if(!m)return r===g;if(EGt.has(g))return EGt.get(g).test(r);let E=Kgr(g);return EGt.set(g,E),E.test(r)})}function Kgr(r){let n="^";for(let i=0;i<r.length;i++){let l=r[i];if(l==="?"){n+="[^\\/]";continue}if(l==="*"){if(r[i+1]==="*"&&r[i+2]==="/"){i+=2,n+="(?:[^\\/]*\\/)*";continue}n+="[^\\/]*";continue}"/.+^${}()|[]\\".includes(l)&&(n+="\\"),n+=l}return r.endsWith("*")&&(n+=Hgr),n+="$",new RegExp(n)}async function fIn(r,n){let i=n?.cache;if(i?.has(r))return i.get(r);let l;if(n?.resolveWithEmptyIfConfigNotFound)try{l=await tIn(r)||await Zwn(r,n)}catch{let g={tsconfigFile:"no_tsconfig_file_found",tsconfig:{}};return i?.set(r,g),g}else l=await tIn(r)||await Zwn(r,n);let p;return i?.has(l)?p=i.get(l):(p=await PGt(l,i),await Promise.all([dIn(p,i),Ygr(p,i)]),i?.set(l,p)),p=qgr(r,p),i?.set(r,p),p}async function PGt(r,n){if(n?.has(r))return n.get(r);try{let i=await cIn.promises.readFile(r,"utf-8"),l=Wgr(i),p={tsconfigFile:r,tsconfig:Xgr(JSON.parse(l),Yj.default.dirname(r))};return n?.set(r,p),p}catch(i){throw new NGt(`parsing ${r} failed: ${i}`,"PARSE_FILE",r,i)}}function Xgr(r,n){var i;return(i=r.compilerOptions)!=null&&i.baseUrl&&!Yj.default.isAbsolute(r.compilerOptions.baseUrl)&&(r.compilerOptions.baseUrl=dUe(n,r.compilerOptions.baseUrl)),r}async function Ygr(r,n){if(!r.tsconfig.references)return;let i=Jgr(r),l=await Promise.all(i.map(p=>PGt(p,n)));await Promise.all(l.map(p=>dIn(p,n))),r.referenced=l}async function dIn(r,n){if(!r.tsconfig.extends)return;let i=[{tsconfigFile:r.tsconfigFile,tsconfig:JSON.parse(JSON.stringify(r.tsconfig))}],l=0,p=[],m=0;for(;l<i.length;){let g=i[l];if(p.push(g.tsconfigFile),g.tsconfig.extends){m+=1;let b;Array.isArray(g.tsconfig.extends)?b=g.tsconfig.extends.reverse().map(I=>iIn(I,g.tsconfigFile)):b=[iIn(g.tsconfig.extends,g.tsconfigFile)];let E=b.find(I=>p.includes(I));if(E){let I=p.concat([E]).join(" -> ");throw new NGt(`Circular dependency in "extends": ${I}`,"EXTENDS_CIRCULAR",r.tsconfigFile)}i.splice(l+1,0,...await Promise.all(b.map(I=>PGt(I,n))))}else p.splice(-m),m=0;l=l+1}r.extended=i;for(let g of r.extended.slice(1))$gr(r,g)}function iIn(r,n){let i;try{return(0,AGt.createRequire)(n).resolve(r)}catch(l){i=l}if(!Yj.default.isAbsolute(r)&&!r.startsWith("./")&&!r.startsWith("../"))try{let l=Yj.default.join(r,"tsconfig.json");return(0,AGt.createRequire)(n).resolve(l)}catch(l){i=l}throw new NGt(`failed to resolve "extends":"${r}" in ${n}`,"EXTENDS_RESOLVE",n,i)}var Qgr=["compilerOptions","files","include","exclude","watchOptions","compileOnSave","typeAcquisition","buildOptions"];function $gr(r,n){let i=r.tsconfig,l=n.tsconfig,p=IGt(Yj.default.relative(Yj.default.dirname(r.tsconfigFile),Yj.default.dirname(n.tsconfigFile)));for(let m of Object.keys(l).filter(g=>Qgr.includes(g)))if(m==="compilerOptions"){i.compilerOptions||(i.compilerOptions={});for(let g of Object.keys(l.compilerOptions))Object.prototype.hasOwnProperty.call(i.compilerOptions,g)||(i.compilerOptions[g]=TGt(g,l.compilerOptions[g],p))}else if(i[m]===void 0)if(m==="watchOptions"){i.watchOptions={};for(let g of Object.keys(l.watchOptions))i.watchOptions[g]=TGt(g,l.watchOptions[g],p)}else i[m]=TGt(m,l[m],p)}var Zgr=["files","include","exclude","baseUrl","rootDir","rootDirs","typeRoots","outDir","outFile","declarationDir","excludeDirectories","excludeFiles"];function TGt(r,n,i){return Zgr.includes(r)?Array.isArray(n)?n.map(l=>oIn(l,i)):oIn(n,i):n}function oIn(r,n){return Yj.default.isAbsolute(r)?r:Yj.default.posix.normalize(Yj.default.posix.join(n,r))}var NGt=class kGt extends Error{constructor(n,i,l,p){super(n),Object.setPrototypeOf(this,kGt.prototype),this.name=kGt.name,this.code=i,this.cause=p,this.tsconfigFile=l}};re();re();function tat(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n]}function mIn(){return typeof WeakMap<"u"?new WeakMap:eBr()}function eBr(){return{add:tat,delete:tat,get:tat,set:tat,has:function(r){return!1}}}var tBr=Object.prototype.hasOwnProperty,LGt=function(r,n){return tBr.call(r,n)};function RGt(r,n){for(var i in n)LGt(n,i)&&(r[i]=n[i]);return r}var nBr=/^[ \t]*(?:\r\n|\r|\n)/,rBr=/(?:\r\n|\r|\n)[ \t]*$/,iBr=/^(?:[\r\n]|$)/,oBr=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,sBr=/^[ \t]*[\r\n][ \t\r\n]*$/;function _In(r,n,i){var l=0,p=r[0].match(oBr);p&&(l=p[1].length);var m="(\\r\\n|\\r|\\n).{0,"+l+"}",g=new RegExp(m,"g");n&&(r=r.slice(1));var b=i.newline,E=i.trimLeadingNewline,I=i.trimTrailingNewline,R=typeof b=="string",V=r.length,X=r.map(function(ue,De){return ue=ue.replace(g,"$1"),De===0&&E&&(ue=ue.replace(nBr,"")),De===V-1&&I&&(ue=ue.replace(rBr,"")),R&&(ue=ue.replace(/\r\n|\n|\r/g,function(we){return b})),ue});return X}function aBr(r,n){for(var i="",l=0,p=r.length;l<p;l++)i+=r[l],l<p-1&&(i+=n[l]);return i}function lBr(r){return LGt(r,"raw")&&LGt(r,"length")}function hIn(r){var n=mIn(),i=mIn();function l(m){for(var g=[],b=1;b<arguments.length;b++)g[b-1]=arguments[b];if(lBr(m)){var E=m,I=(g[0]===l||g[0]===jc)&&sBr.test(E[0])&&iBr.test(E[1]),R=I?i:n,V=R.get(E);if(V||(V=_In(E,I,r),R.set(E,V)),g.length===0)return V[0];var X=aBr(V,I?g.slice(1):g);return X}else return hIn(RGt(RGt({},r),m||{}))}var p=RGt(l,{string:function(m){return _In([m],!1,r)[0]}});return p}var jc=hIn({trimLeadingNewline:!0,trimTrailingNewline:!0}),ux=jc;if(typeof module<"u")try{module.exports=jc,Object.defineProperty(jc,"__esModule",{value:!0}),jc.default=jc,jc.outdent=jc}catch{}vv();vv();var YIn=_d(EIn(),1);vv();re();var LBr="",MBr=LBr.split(","),FBr="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockOverflow,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTransitionName,visibility,whiteSpace,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect",WGt=FBr.split(",").concat(MBr),OBr=new Map(WGt.map(r=>[r,!0]));function WBr(r){let n=Object.create(null);return i=>(n[i]===void 0&&(n[i]=r(i)),n[i])}var GBr=/&|@/,DIn=WBr(r=>OBr.has(r)||r.startsWith("--")||GBr.test(r));vv();var $In=_d(TIn(),1);re();vv();re();vv();vv();vv();vv();vv();vv();vv();var wIn=/(\$[^\s,]+\w)|({([^}]*)})/g,zBr=/[{}]/g;function HGt(r){if(typeof r!="string")return[];let n=r.match(wIn);return n?n.map(i=>i.replace(zBr,"")).map(i=>i.trim()):[]}function jBr(r){return wIn.test(r)}function VBr(r){let n={};return r.forEach((i,l)=>{i instanceof Map?n[l]=Object.fromEntries(i):n[l]=i}),n}var VGt=r=>R8(r)&&"value"in r;function AIn(r){if(!VGt(r))throw new Error(`Invalid token format: ${JSON.stringify(r)}`)}var aat=class IIn{name;value;originalValue;path;type;description;extensions;constructor(n){this.name=n.name,this.value=n.value,this.originalValue=n.value,this.path=n.path??[],n.type&&(this.type=n.type),n.description&&(this.description=n.description),this.extensions=n.extensions??{},this.extensions.condition=n.extensions?.condition??"base",this.setType()}get id(){return uCe(`${this.name}-${this.extensions.condition}-${this.value}`)}get isConditional(){return!!this.extensions?.conditions}get hasReference(){return!!this.extensions?.references}get isComposite(){return R8(this.originalValue)||Array.isArray(this.originalValue)}expandReferences(){if(!this.hasReference)return this.extensions.varRef??this.value;let n=this.extensions.references??{};return this.value=Object.keys(n).reduce((i,l)=>{let p=n[l];if(p.isConditional)return i;let m=p.expandReferences();return i.replace(`{${l}}`,m)},this.value),delete this.extensions.references,this.value}get isReference(){return jBr(this.originalValue)}get references(){return HGt(this.originalValue)}clone(){return new IIn({name:this.name,value:this.value,type:this.type,path:[...this.path],description:this.description,extensions:UGt(this.extensions)})}getConditionTokens(){if(!this.isConditional)return;let n=this.extensions.conditions??{},i=[];return B3(n,(l,p)=>{let m=p.filter(b=>!nSe(b));if(!m.length)return;let g=this.clone();g.value=l,g.extensions.condition=m.join(":"),i.push(g)}),i}setExtensions(n){return this.extensions={...this.extensions,...n},this.setType(),this}setType(){this.type||this.extensions.category&&(this.type=UBr[this.extensions.category])}};function UGt(r){return r instanceof aat?r.clone():Array.isArray(r)?r.map(n=>UGt(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,i])=>[n,UGt(i)])):r}var UBr={colors:"color",spacing:"dimension",sizing:"dimension",shadows:"shadow",fonts:"fontFamily",fontSizes:"fontSize",fontWeights:"fontWeight",letterSpacings:"letterSpacing",durations:"duration",transitions:"transition",radii:"borderRadius",gradients:"gradient",easings:"cubicBezier",borders:"border",components:"cti",assets:"asset"};function HBr(r){return r?{breakpoints:pCe(r,n=>({value:n})),sizes:Object.fromEntries(Object.entries(r).map(([n,i])=>[`breakpoint-${n}`,{value:i}]))}:{breakpoints:{},sizes:{}}}function kIn(r){return r[0]==="DEFAULT"?r:r.filter(n=>n!=="DEFAULT")}var JBr=class{allTokens=[];prefix;hash;get allNames(){return Array.from(new Set(this.allTokens.map(r=>r.name)))}constructor(r){let{tokens:n={},semanticTokens:i={},breakpoints:l,prefix:p,hash:m}=r,g=HBr(l),b=cre({...n,breakpoints:g.breakpoints,sizes:{...n.sizes,...g.sizes}});this.prefix=p,this.hash=m,B3(b,(E,I)=>{I=kIn(I),AIn(E);let R=I[0],V=I.join("."),X=new aat({...E,name:V,path:I});X.setExtensions({category:R,prop:I.slice(1).join(".")}),this.allTokens.push(X)},{stop:VGt}),B3(i,(E,I)=>{I=kIn(I),AIn(E);let R=I[0],V=I.join("."),X=K7(E.value)?{value:{base:E.value}}:E,{value:ue,...De}=X,we=new aat({...De,name:V,value:ue.base||"",path:I});we.setExtensions({category:R,conditions:ue,prop:I.slice(1).join(".")}),this.allTokens.push(we)},{stop:VGt})}getByName=zb(r=>{for(let n of this.allTokens)if(n.name===r)return n});transforms=new Map;registerTransform(...r){return r.forEach(n=>{n.type||="value",n.enforce||="pre",this.transforms.set(n.name,n)}),this}execTransform(r){let n=this.transforms.get(r);n&&this.allTokens.forEach(i=>{if(i.extensions.hasReference||typeof n.match=="function"&&!n.match(i))return;let l=n.transform(i,{prefix:this.prefix,hash:this.hash});H_(n).with({type:"extensions"},()=>{i.setExtensions(l)}).with({type:"value"},()=>{i.value=l,i.isComposite&&(i.originalValue=l)}).otherwise(()=>{i[n.type]=l})})}transformTokens(r){return this.transforms.forEach(n=>{n.enforce===r&&this.execTransform(n.name)}),this}middlewares=[];registerMiddleware(...r){for(let n of r)n.enforce||="pre",this.middlewares.push(n);return this}applyMiddlewares(r){this.middlewares.forEach(n=>{n.enforce===r&&n.transform(this,{prefix:this.prefix,hash:this.hash})})}getReferences(r){return HGt(r).map(i=>this.getByName(i)).filter(Boolean)}usesReference(r){return K7(r)?this.getReferences(r).length>0:!1}addReferences(){return this.allTokens.forEach(r=>{if(!this.usesReference(r.value))return;let n=this.getReferences(r.value);r.setExtensions({references:n.reduce((i,l)=>(i[l.name]=l,i),{})})}),this}filter(r){let n=typeof r=="function"?r:hre(r);return this.allTokens.filter(n)}addConditionalTokens(){let r=[];return this.allTokens.forEach(n=>{r.push(n);let i=n.getConditionTokens();i&&i.length>0&&r.push(...i)}),this.allTokens=r,this}expandReferences(){return this.allTokens.forEach(r=>{r.expandReferences()}),this}build(){this.applyMiddlewares("pre"),this.transformTokens("pre"),this.addConditionalTokens(),this.addReferences(),this.expandReferences(),this.applyMiddlewares("post"),this.transformTokens("post")}get isEmpty(){return this.allTokens.length===0}},Jee={groupByCondition(r){let n=new Map;return r.allTokens.forEach(i=>{let{condition:l}=i.extensions;l&&(n.get(l)||n.set(l,new Set),n.set(l,n.get(l).add(i)))}),n},groupByColorPalette(r){let n=new Map;return r.allTokens.forEach(i=>{let{colorPalette:l,colorPaletteRoots:p}=i.extensions;!l||i.extensions.isVirtual||p.forEach(m=>{n.get(m)||n.set(m,new Map);let g=i.name.replace(m,"colorPalette"),b=r.getByName(g);if(!b)return;let E=b.extensions.var;n.get(m).set(E,i.extensions.varRef)})}),n},groupByCategory(r){let n=new Map;return r.allTokens.forEach(i=>{let{category:l,prop:p}=i.extensions;l&&(n.get(l)||n.set(l,new Map),n.set(l,n.get(l).set(p,i)))}),n},getFlattenedValues(r){let n=Jee.groupByCategory(r),i=new Map;return n.forEach((l,p)=>{i.get(p)||i.set(p,new Map),l.forEach(m=>{let{prop:g,varRef:b,isNegative:E}=m.extensions,I=E?m.isConditional?m.originalValue:m.value:b;i.set(p,i.get(p).set(g,I))})}),i},getVars(r){let n=Jee.groupByCondition(r),i=new Map;return n.forEach((l,p)=>{i.get(p)||i.set(p,new Map),l.forEach(m=>{m.extensions.isNegative||m.extensions.isVirtual||i.get(p).set(m.extensions.var,m.value)})}),i},createVarGetter(r){let n=VBr(Jee.getFlattenedValues(r));return function(l,p){return aSe(n,l,p)}},getColorPaletteValues(r){let n=new Set;return r.allTokens.forEach(i=>{let{colorPalette:l}=i.extensions;!l||i.extensions.isVirtual||n.add(l)}),n}},qBr={enforce:"pre",transform(r,{prefix:n,hash:i}){r.filter({extensions:{category:"spacing"}}).forEach(p=>{let m=[...p.path],g=sSe(m.join("-"),{prefix:n,hash:i});if(p.value==="0rem")return;let b=p.clone();b.setExtensions({isNegative:!0,prop:`-${p.extensions.prop}`,originalPath:m}),b.value=N4t.negate(g);let E=b.path.at(-1);E!=null&&(b.path[b.path.length-1]=`-${E}`),b.path&&(b.name=b.path.join(".")),r.allTokens.push(b)})}},KBr=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),XBr={enforce:"post",transform(r){r.filter(i=>KBr.has(i.extensions.category)&&!i.extensions.isNegative).forEach(i=>{i.setExtensions({pixelValue:fCe(i.value)})})}},YBr={enforce:"post",transform(r){let n=r.filter({extensions:{category:"colors"}}),i=new Set,l=new Map;n.forEach(p=>{let{colorPalette:m,colorPaletteRoots:g,colorPaletteTokenKeys:b}=p.extensions;m&&(b.forEach(i.add,i),g.forEach(E=>{let I=l.get(E)||[];I.push(p),l.set(E,I)}))}),i.forEach(p=>{let m=new aat({name:`colors.colorPalette.${p}`,value:`{colors.colorPalette.${p}}`,path:["colors","colorPalette",...p.split(".")]});m.setExtensions({category:"colors",prop:`colorPalette.${p}`,isVirtual:!0}),r.allTokens.push(m)}),r.transformTokens("pre")}},QBr={enforce:"post",transform(r){r.allTokens=r.allTokens.filter(n=>n.value!=="")}},$Br=[qBr,YBr,QBr,XBr],jGt={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,olive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi},JGt={whitespace:/\s+/g,urlHexPairs:/%[\dA-F]{2}/g,quotes:/"/g};function ZBr(r){return r.trim().replace(JGt.whitespace," ")}function eyr(r){return encodeURIComponent(r).replace(JGt.urlHexPairs,nyr)}function tyr(r){return iyr(jGt).forEach(n=>{jGt[n].test(r)&&(r=r.replace(jGt[n],n))}),r}function nyr(r){switch(r){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return r.toLowerCase()}}function ryr(r){if(typeof r!="string")throw new TypeError("Expected a string, but received "+typeof r);r.charCodeAt(0)===65279&&(r=r.slice(1));let n=tyr(ZBr(r)).replace(JGt.quotes,"'");return"data:image/svg+xml,"+eyr(n)}var iyr=r=>Object.keys(r),oyr=hre({inset:FS.optional(FS.boolean),offsetX:FS.number,offsetY:FS.number,blur:FS.number,spread:FS.number,color:FS.string}),syr={name:"tokens/shadow",match:r=>r.extensions.category==="shadows",transform(r,{prefix:n}){if(K7(r.value))return r.value;if(Array.isArray(r.value)){if(r.extensions.conditions){let i=r.extensions.conditions;for(let[l,p]of Object.entries(i))Array.isArray(p)&&(i[l]=p.map(m=>this.transform({value:m},{prefix:n})).join(", "));if(r.extensions.conditions?.base&&Array.isArray(r.originalValue))return r.extensions.conditions.base}return r.value.map(i=>this.transform({value:i},{prefix:n})).join(", ")}if(oyr(r.value)){let{offsetX:i,offsetY:l,blur:p,spread:m,color:g,inset:b}=r.value;return`${b?"inset ":""}${i}px ${l}px ${p}px ${m}px ${g}`}return r.value}},ayr=hre({type:FS.string,placement:FS.string,stops:FS.union(FS.array(FS.string),FS.array({color:FS.string,position:FS.number}))}),lyr={name:"tokens/gradient",match:r=>r.extensions.category==="gradients",transform(r){if(K7(r.value))return r.value;if(ayr(r.value)){let{type:n,stops:i,placement:l}=r.value,p=i.map(m=>{if(K7(m))return m;let{color:g,position:b}=m;return`${g} ${b}px`});return`${n}-gradient(${l}, ${p.join(", ")})`}return r.value}},cyr={name:"tokens/fonts",match:r=>r.extensions.category==="fonts",transform(r){return Array.isArray(r.value)?r.value.join(", "):r.value}},uyr={name:"tokens/easings",match:r=>r.extensions.category==="easings",transform(r){return K7(r.value)?r.value:`cubic-bezier(${r.value.join(", ")})`}},pyr={name:"tokens/borders",match:r=>r.extensions.category==="borders",transform(r){if(K7(r.value))return r.value;let{width:n,style:i,color:l}=r.value;return`${n}px ${i} ${l}`}},fyr={name:"tokens/assets",match:r=>r.extensions.category==="assets",transform(r){let n=r.value;return H_(n).with(FS.string,i=>i).with({type:"url"},({value:i})=>`url('${i}')`).with({type:"svg"},({value:i})=>`url('${ryr(i)})'`).exhaustive()}},dyr={type:"extensions",name:"tokens/css-var",transform(r,{prefix:n,hash:i}){let{isNegative:l,originalPath:p}=r.extensions,m=l?p:r.path,g=sSe(m.join("-"),{prefix:n,hash:i});return{var:g.var,varRef:g.ref}}},myr={enforce:"post",name:"tokens/conditionals",transform(r,{prefix:n,hash:i}){let l=HGt(r.value);return l.length&&l.forEach(p=>{let m=sSe(p.split(".").join("-"),{prefix:n,hash:i}).ref;r.value=r.value.replace(`{${p}}`,m)}),r.value}},_yr={type:"extensions",name:"tokens/colors/colorPalette",match(r){return r.extensions.category==="colors"&&!r.extensions.isVirtual},transform(r){let n=[...r.path];if(n.pop(),n.shift(),n.length===0)return{};let i=n.reduce((g,b,E,I)=>(g.push(I.slice(0,E+1).join(".")),g),[]),l=n.at(0),p=n.join("."),m=r.path.slice(r.path.indexOf(l)+1).reduce((g,b,E,I)=>(g.push(I.slice(E).join(".")),g),[]);return{colorPalette:p,colorPaletteRoots:i,colorPaletteTokenKeys:m}}},hyr=[syr,lyr,cyr,uyr,pyr,fyr,dyr,myr,_yr],PIn=class extends JBr{constructor(r){super(r),this.registerTransform(...hyr),this.registerMiddleware(...$Br),this.build()}get get(){return Jee.createVarGetter(this)}get conditionMap(){return Jee.groupByCondition(this)}get categoryMap(){return Jee.groupByCategory(this)}get values(){return Jee.getFlattenedValues(this)}get colorPalettes(){return z$e(Jee.groupByColorPalette(this))}get vars(){return Jee.getVars(this)}getValue(r){let n=this.values.get(r);if(n!=null)return Object.fromEntries(n)}getTokenVar(r){let n=z$e(this.values);return aSe(n,r)}};vv();vv();var gyr=Object.defineProperty,Byr=(r,n)=>{for(var i in n)gyr(r,i,{get:n[i],enumerable:!0})},yyr={};Byr(yyr,{artifactsGenerated:()=>LIn,buildComplete:()=>jIn,codegenComplete:()=>OIn,configExists:()=>MIn,configWatch:()=>zIn,getMessages:()=>VIn,noExtract:()=>WIn,thankYou:()=>FIn,watch:()=>GIn});var _Ue=UI.green().bold("\u2714\uFE0F"),LIn=r=>{let{config:{outdir:n},recipes:i,patterns:l,tokens:p,jsx:m}=r;return()=>[jc`
|
|
30733
30733
|
${_Ue} ${wee(n,"/css")}: the css function to author styles
|
|
30734
30734
|
`,!p.isEmpty&&jc`
|
|
30735
30735
|
${_Ue} ${wee(n,"/tokens")}: the css variables and js function to query your tokens
|
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-
|
|
5
|
+
"version": "0.0.0-dev-20230918133037",
|
|
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-
|
|
36
|
-
"@pandacss/extension-shared": "0.0.0-dev-
|
|
37
|
-
"@pandacss/extractor": "0.0.0-dev-
|
|
38
|
-
"@pandacss/node": "0.0.0-dev-
|
|
39
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
40
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
41
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
42
|
-
"@pandacss/types": "0.0.0-dev-
|
|
35
|
+
"@pandacss/core": "0.0.0-dev-20230918133037",
|
|
36
|
+
"@pandacss/extension-shared": "0.0.0-dev-20230918133037",
|
|
37
|
+
"@pandacss/extractor": "0.0.0-dev-20230918133037",
|
|
38
|
+
"@pandacss/node": "0.0.0-dev-20230918133037",
|
|
39
|
+
"@pandacss/parser": "0.0.0-dev-20230918133037",
|
|
40
|
+
"@pandacss/shared": "0.0.0-dev-20230918133037",
|
|
41
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230918133037",
|
|
42
|
+
"@pandacss/types": "0.0.0-dev-20230918133037"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"fast-glob": "^3.3.1"
|